/* MatchFit. Plain CSS, no build step.
   Brand rules: orange means "shop". Ink text sits on every sport colour. */

:root {
  /* Base */
  --ink: #12141c;
  --chalk: #f6f5f1;
  --paper: #ffffff;

  /* Orange is reserved for shopping: tag buttons and the logo */
  --tag: #ff5a36;
  --tag-dim: #ffe4dc;

  /* Sport colours */
  --sport-tennis: #cfee3f;
  --sport-badminton: #2cc4b4;
  --sport-climbing: #a48dff;

  /* Status */
  --ok-bg: #d9f3ef;
  --ok-ink: #0b5c53;
  --error: #c92a2a;

  /* Neutrals */
  --line: #dedad0;
  --slate: #6b6a63;
  --slate-light: #a19f96;

  --radius: 16px;
  --radius-lg: 28px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(18, 20, 28, 0.05), 0 16px 30px -20px rgba(18, 20, 28, 0.32);
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sport-tennis { --sport: var(--sport-tennis); }
.sport-badminton { --sport: var(--sport-badminton); }
.sport-climbing { --sport: var(--sport-climbing); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--chalk);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sport-tennis); color: var(--ink); }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--chalk);
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(246, 245, 241, 0.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand:focus-visible { outline-offset: 5px; border-radius: 6px; }
.logo { display: block; height: 34px; width: auto; max-width: none; }

.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--slate);
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover { color: var(--ink); background: rgba(18, 20, 28, 0.06); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
@media (max-width: 640px) {
  .logo { height: 30px; }
  .nav { order: 3; width: 100%; margin: 0 -8px; justify-content: space-between; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
}
@media (max-width: 400px) { .nav a { padding: 8px 7px; font-size: 13px; } }
@media (max-width: 340px) { .nav a { padding: 8px 5px; font-size: 12.5px; } }

#banner {
  background: var(--ink); color: var(--chalk);
  font-size: 14px; padding: 10px 16px; text-align: center;
}
#banner a { color: var(--sport-tennis); font-weight: 700; }

/* ---------- Type ---------- */
.hero { padding: 40px 0 4px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 9.2vw, 100px); line-height: 0.88; letter-spacing: -0.002em; margin: 0 0 16px;
}
.hero p { max-width: 54ch; margin: 0; color: var(--slate); font-size: 18px; }

.page-head { padding: 28px 0 4px; }
.page-head .ph-text { min-width: 0; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(42px, 8vw, 88px); line-height: 0.9; margin: 8px 0 10px;
}
.page-head .lede { margin: 0; color: var(--slate); max-width: 60ch; }
.page-head.has-sport {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--sport); border-radius: var(--radius-lg);
  padding: 22px 22px 26px; margin-top: 20px;
}
.page-head.has-sport .crumbs,
.page-head.has-sport .crumbs a { color: rgba(18, 20, 28, 0.74); }
.page-head.has-sport .crumbs a:hover { color: var(--ink); }
.page-head.has-sport .lede { color: rgba(18, 20, 28, 0.8); }
.page-head.has-sport h1 { margin-bottom: 8px; }
.ph-icon { flex: none; width: 64px; }
.ph-icon svg { display: block; width: 100%; height: auto; }
@media (min-width: 720px) {
  .page-head.has-sport { padding: 30px 36px 34px; }
  .ph-icon { width: 124px; }
}
.crumbs { font-size: 13px; font-weight: 600; color: var(--slate); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.section { margin: 40px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; }
.title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 38px); line-height: 1; margin: 0;
}
.more { font-size: 14px; font-weight: 600; color: var(--slate); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--ink); text-decoration: underline; }
.meta { color: var(--slate); font-size: 14px; margin: 0; }
.fine { color: var(--slate); font-size: 13px; margin: 10px 0 0; }

/* ---------- Sport tiles ---------- */
.tiles { display: grid; gap: 14px; margin: 28px 0 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 188px; padding: 22px; border-radius: var(--radius-lg);
  background: var(--sport); color: var(--ink); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 720px) { .tile { min-height: 340px; padding: 28px; } }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(18, 20, 28, 0.5); }
.tile:focus-visible { outline-offset: 5px; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile-top .sport-icon { width: 76px; height: 76px; flex: none; }
@media (min-width: 720px) { .tile-top .sport-icon { width: 104px; height: 104px; } }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: var(--chalk); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.tile-body { display: block; }
.tile-label {
  display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 12vw, 56px); line-height: 0.88; overflow-wrap: normal; word-break: keep-all;
}
/* Sized so BADMINTON, the longest label, always fits inside the tile (checked from 320px to 1440px). */
@media (min-width: 720px) { .tile-label { font-size: clamp(34px, calc(7.4vw - 18px), 62px); } }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tile-sub { font-size: 15px; font-weight: 600; }
.tile-go {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f5f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.2s ease;
}
.tile:hover .tile-go { transform: translateX(4px); }

/* ---------- Cards and chips ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 28px; line-height: 1; margin: 12px 0 8px;
}
.card .meta + .meta { margin-top: 2px; }
.sport-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--sport, var(--line)); color: var(--ink); font-size: 12px; font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: var(--chalk); border: 1px solid var(--line);
  color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
a.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.chips.big .chip { font-size: 14px; padding: 6px 14px; background: var(--paper); }
.chip small { color: var(--slate); font-weight: 600; margin-left: 4px; }
a.chip:hover small { color: var(--line); }

/* ---------- Fit page ---------- */
.fit-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 860px) { .fit-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.embed-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 160px; }
.embed-box .instagram-media { margin: 0 auto !important; max-width: 100% !important; min-width: 0 !important; width: 100% !important; }
.ig-fallback { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--slate); }
.ig-fallback:hover { color: var(--ink); }

.items { list-style: none; margin: 14px 0 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex: 1 1 200px; }
.item-type { font-size: 13px; font-weight: 600; color: var(--slate); }
.item-name { font-size: 16px; }
.item-name a { font-weight: 700; text-decoration: none; }
.item-name a:hover { text-decoration: underline; }
.item-buy { display: flex; align-items: center; gap: 12px; }
.item-price { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
@media (max-width: 520px) {
  .item-buy { width: 100%; justify-content: space-between; }
  .item-price { text-align: left; }
}
.total { margin: 14px 2px 0; font-weight: 600; }
.total b { font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; margin-top: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--slate);
}
.badge.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.badge.maybe { border-style: dashed; }

/* Shop button: the logo's price tag. 45 degree shoulders, eyelet punched through. */
.tag-btn {
  --tag-h: 42px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tag-h); padding: 0 20px 0 calc(var(--tag-h) / 2 + 14px);
  background: var(--tag); color: var(--ink);
  font: 700 14px var(--font-body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  border-radius: 0 8px 8px 0;
  clip-path: polygon(calc(var(--tag-h) / 2) 0, 100% 0, 100% 100%, calc(var(--tag-h) / 2) 100%, 0 50%);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tag-btn::before {
  content: ""; position: absolute; left: calc(var(--tag-h) * 0.35 - 4.5px); top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper);
}
.tag-btn:hover, .tag-btn:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.tag-btn[aria-disabled="true"] { background: var(--line); color: var(--slate); cursor: default; }
.tag-btn[aria-disabled="true"]:hover { background: var(--line); color: var(--slate); }

/* ---------- Charts ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 170px) 1fr 2.2em; gap: 12px; align-items: center; font-size: 14px; }
@media (max-width: 520px) { .bar-row { grid-template-columns: minmax(72px, 38%) 1fr 1.8em; gap: 10px; } }
.bar-row a { font-weight: 600; text-decoration: none; }
.bar-row a:hover { text-decoration: underline; }
.bar-track { height: 14px; background: var(--chalk); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.bar-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; margin: 0 0 14px; }

/* ---------- Lists / tables ---------- */
.rows { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rows li { border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 15px 18px; text-decoration: none; transition: background-color 0.15s ease; }
.rows a:hover { background: var(--chalk); }
.rows .r-main { font-weight: 700; }
.rows .r-sub { color: var(--slate); font-size: 14px; }

.empty { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 2px dashed var(--line); }
.empty h2 { margin: 0 0 8px; font-family: var(--font-display); text-transform: uppercase; font-size: 32px; line-height: 1; }
.empty p { margin: 0 0 12px; color: var(--slate); max-width: 60ch; }

/* ---------- Check page ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: var(--chalk);
  font: 700 15px var(--font-body); border: 2px solid var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #2b3040; border-color: #2b3040; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--chalk); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-label:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.dropzone { background: var(--paper); border: 2px dashed var(--ink); border-radius: 20px; padding: 24px; margin-top: 20px; }
.dropzone p { margin: 0 0 14px; max-width: 60ch; }
.source-note { margin-top: 14px; }
.filename { text-transform: none; margin-top: 28px; overflow-wrap: anywhere; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-width: 112px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 1; }
.stat span { font-size: 13px; color: var(--slate); font-weight: 600; }
.issues { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.issues li { background: var(--paper); border-radius: 10px; padding: 10px 14px; font-size: 14px; border-left: 6px solid var(--slate-light); }
.issues li.error { border-left-color: var(--error); }
.issues li.warn { border-left-color: var(--tag); }
.issues strong { margin-right: 6px; }
.ok-note { background: var(--ok-bg); border-radius: 10px; padding: 12px 14px; font-weight: 600; color: var(--ok-ink); margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.loading { padding: 56px 0; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 56px; color: var(--slate); font-size: 13px; }
.site-footer p { margin: 0 0 10px; max-width: 80ch; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 18px; }
.foot-top .logo { height: 28px; }
.foot-tagline { margin: 0 !important; font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--ink); letter-spacing: 0.01em; }
.foot-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-meta a { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .tile:hover, .card:hover { transform: none; }
}
