/* ===========================================================================
   v2.css — the 2026-10-05 "no untouched default" pass for the self-styled
   pages (blog, privacy, terms, contact, cities, partnerships, delete-account,
   the generated /courts/… venue pages).

   Those pages carry their own inline theme (system-font stack, Tailwind slate
   greys, pill-shaped everything). This file loads LAST in their <head> and
   maps them onto the same decisions as nk.css's v2 layer
   (websites/_standards/DESIGN-STANDARDS.md):
   - Bricolage Grotesque for headings, Public Sans for text; Arabic falls
     through to Tajawal.
   - Near-black on the warm off-white; pitch green for links and small labels;
     lime only on the primary button.
   - Solid surfaces, 1 px rules, no shadows; radii 0 / 8 px buttons / 4 px
     controls. No hover lift, no highlighted accent word, no uppercase kickers.
   =========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/public-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/public-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Tajawal for the Arabic pages (same files nk.css uses). */
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap; src: url('/fonts/tajawal-ar-500.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url('/fonts/tajawal-ar-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url('/fonts/tajawal-ar-800.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* --- Tokens: the old theme's names, the new values ------------------------- */
:root {
  --f-display: 'Bricolage Grotesque', Tajawal, system-ui, sans-serif;
  --f-body: 'Public Sans', Tajawal, system-ui, sans-serif;
  --bg: #f7f6f2;
  --surface: #efeee8;
  --surface-2: #e8e7e0;
  --text: #151613;
  --text-mute: #5c5e57;     /* 6.3:1 on --bg */
  --border: #dcdad2;
  --brand-ink: #111111;
  --pitch: #1f5f3a;         /* 7.0:1 on --bg */
}
/* Font only: colours come through the tokens above, so pages with their own
   dark-mode variant (privacy, delete-account) keep it intact. */
body, html[dir="rtl"] body { font-family: var(--f-body); }
:is(h1, h2, h3) { font-family: var(--f-display); letter-spacing: -.02em; }
h1 { letter-spacing: -.035em; line-height: 1.02; }
html[dir="rtl"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.2; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pitch); outline-offset: 3px; }

/* --- Surfaces: flat, ruled, square ------------------------------------------ */
:is(.post, .prop, .step, .fact, .gcard, .cta, .state, .success-card, article, form, .cover) {
  border-radius: 0; box-shadow: none;
}
.cover { background: var(--brand-ink); }            /* was a decorative gradient behind the photo */
article .tip { border-radius: 0; }
:is(.post, .gcard, .prop, .step):hover { transform: none; box-shadow: none; }
.post:hover { border-color: var(--text); }
:is(.brand-mark, .step-num, .prop-ico, .lang-jump a) { border-radius: var(--r-ctl, 4px); }
.prop-ico, .step-num { background: none; color: var(--pitch); }

/* --- Buttons and controls ---------------------------------------------------- */
:is(.btn, a.btn, button.submit, .topbar-cta, .cta a.btn, .success-card a.btn) { border-radius: 8px; box-shadow: none; }
:is(.btn-primary, a.btn-primary, button.submit):hover, .topbar-cta:hover { transform: none; box-shadow: none; }
:is(.chip, .badge, .trust-chip, .city-chip, .sib, .lang-picker button) { border-radius: 4px; }
:is(input, select, textarea) { border-radius: 4px; }
:is(input, select, textarea):focus { box-shadow: none; outline: 2px solid var(--pitch); outline-offset: 1px; }

/* --- Lime only for the primary action ---------------------------------------- */
.badge.managed, .gcard .spots, .sib-city {
  background: none; border: 1px solid currentColor; color: var(--pitch); border-radius: 4px;
}
.hero h1 .accent { background: none; padding: 0; color: inherit; border-radius: 0; }

/* --- No uppercase kickers; a kicker right above a heading is dropped ---------- */
:is(.kicker, .section .kicker, .hero-eyebrow) {
  text-transform: none; letter-spacing: 0; background: none; padding: 0; border-radius: 0;
  color: var(--pitch); font: 600 .95rem/1.4 var(--f-body);
}
:is(.kicker, .hero-eyebrow):has(+ h1), :is(.kicker, .hero-eyebrow):has(+ h2) { display: none; }
article th { text-transform: none; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* --- Card grids become ruled index rows (partnerships, blog list) ---------- */
.props, .steps { display: block; border-top: 1px solid var(--border); }
:is(.props > .prop, .steps > .step) {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 28px; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 22px 0;
}
.prop-ico svg { stroke: var(--pitch); }
.step-num { font: 700 1.6rem/1 var(--f-display); letter-spacing: -.02em; }
.post { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 24px 0; }
.post:last-of-type { border-bottom: 1px solid var(--border); }
.post h2, .post h3 { font-size: 1.3rem; line-height: 1.2; }
@media (max-width: 767px) {
  :is(.props > .prop, .steps > .step) { grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: 6px; }
  :is(.props > .prop, .steps > .step) p { grid-column: 2; }
}

/* Status badges on the venue pages: outlined, AA on the page background. */
.badge { background: none; letter-spacing: 0; font-weight: 700; }
.badge.free { background: none; color: var(--pitch); border-color: currentColor; }
.badge.paid { background: none; color: #8a4a07; border-color: currentColor; }   /* was #b45309 on tint, 4.2:1 */

/* Phones: the language row wraps under the wordmark instead of pushing the
   button off-screen; wide data tables scroll inside their own box. */
@media (max-width: 520px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 10px; }
  .topbar-inner .lang-picker { order: 3; width: 100%; justify-content: flex-start; }
}
article table { display: block; max-width: 100%; overflow-x: auto; }
