/*
Theme Name: iTennis
Theme URI: https://itennis.com
Description: iTennis child theme for GeneratePress. Mid-century flat design system: Jost + Fraunces, court green on paper. Tokens live in theme.json; this file carries @font-face and the few rules theme.json cannot express.
Author: NEXT / devHOUSE
Template: generatepress
Version: 1.4.1
Text Domain: itennis
*/

/* Self-hosted type. Files in assets/fonts (Google Fonts, OFL). */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-regular.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/jost-600.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/jost-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/fraunces-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/fraunces-700.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/fraunces-500italic.woff2") format("woff2"); }

/* Ground and text defaults (theme.json sets the same; this guards GP's own body rule). */
body { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); -webkit-font-smoothing: antialiased; }

/* Tagline and editorial asides: Fraunces italic, always lowercase. */
.it-tagline, .is-style-it-tagline { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-weight: 500; color: var(--wp--preset--color--court-deep); text-transform: lowercase; }

/* Kicker: small caps label above headings and cards. */
.it-kicker, .is-style-it-kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--court-deep); }

/* Card surface. */
.it-card { background: var(--wp--preset--color--card); border: 1.5px solid var(--wp--preset--color--line); border-radius: var(--it-radius-card); }

/* Buttons are pills. GP and core buttons both get it. */
.wp-block-button__link, .button, button.it-btn, a.it-btn { border-radius: 999px; font-family: var(--wp--preset--font-family--jost); font-weight: 600; min-height: 48px; padding: 0.7em 1.5em; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }

/* Inline SVG marks scale with the font size of their container. */
.it-mark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }
.it-mark svg { width: 100%; height: 100%; display: block; }

/* Wordmark lockup: the ball is the i. */
.it-lockup { display: inline-flex; align-items: center; gap: 0.15em; font-family: var(--wp--preset--font-family--jost); font-weight: 400; letter-spacing: 0.02em; line-height: 1; color: var(--wp--preset--color--net); text-decoration: none; }
.it-lockup .it-mark { font-size: 1.3em; }
.it-lockup--reversed { color: #fff; }

/* Tabular scores. */
.it-score { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

:root { --it-radius-card: 18px; --it-radius-pill: 999px; }

/* ------------------------------------------------------------------ */
/* 1.2.0 (10-Oct-2026): layout for the Phase 1 patterns, header CTA,  */
/* footer, archive band. Tokens still come from theme.json.            */
/* ------------------------------------------------------------------ */

:root { --it-radius-band: 28px; --it-ink-soft: #273830; --it-ink-line: #3A4D44; --it-ink-text: #B9C7BF; --it-tint: #CDEBD5; --it-ball-deep: #B5711E; --it-sky-deep: #2E7F99; }

/* Utilities shared by patterns. */
.it-meta { font-size: 0.875rem; color: var(--wp--preset--color--net); margin: 0; }
.it-band--ink .it-meta, .it-card--dark .it-meta { color: var(--it-ink-text); }
.it-band--ink .it-meta a { color: var(--it-ink-text); }
.it-kicker--seam { color: var(--it-tint); } /* seam green is 3.98:1 on dark cards; tint is 9.7:1 */
.it-kicker--ball { color: var(--wp--preset--color--ball); }
.it-kicker--sky { color: var(--wp--preset--color--sky); }
.it-kicker--tint { color: #fff; }
.it-kicker--ball-deep { color: var(--it-ball-deep); }
.it-chip { display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: var(--wp--preset--color--ball); color: var(--wp--preset--color--ink); border-radius: 999px; padding: 4px 10px; vertical-align: middle; }
.it-grid { display: grid; gap: 18px; }
.it-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .it-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .it-grid--4 { grid-template-columns: 1fr; } }
.it-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.it-card--dark { background: var(--it-ink-soft); border-color: var(--it-ink-line); color: var(--wp--preset--color--paper); }
.it-section { padding-block: var(--wp--preset--spacing--80) 0; }
.it-band { padding-block: var(--wp--preset--spacing--70); margin-block: var(--wp--preset--spacing--80) 0; }
.it-band__head { gap: 12px 20px !important; margin-bottom: var(--wp--preset--spacing--50); }
.it-band__title { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem); }
.it-band--ink .it-band__title { color: var(--wp--preset--color--paper); }
.it-band__more { margin: 0 0 0 auto !important; font-weight: 500; }
.it-band--ink .it-band__more a { color: var(--wp--preset--color--seam); }

/* Buttons and inputs used inside pattern forms. */
.it-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-family: var(--wp--preset--font-family--jost); font-weight: 600; font-size: 1rem; cursor: pointer; border: 2px solid transparent; background: var(--wp--preset--color--court-deep); color: #fff; }
.it-btn:hover { background: #0A6B32; color: #fff; }
.it-btn--ink { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); }
.it-btn--ink:hover { background: #000; color: #fff; }
.it-input, .it-form input[type="email"], .it-form input[type="search"], .it-form input[type="text"] { flex: 1 1 220px; min-height: 52px; border-radius: 999px; border: 2px solid var(--wp--preset--color--ink); padding: 0 22px; font-family: var(--wp--preset--font-family--jost); font-size: 1.0625rem; background: #fff; color: var(--wp--preset--color--ink); }
.it-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.it-form--courts .it-input { border-color: #fff; }

/* Hero. */
.it-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70); }
.it-hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.it-hero__copy > * { margin: 0 !important; }
.it-hero__tagline { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.it-hero__lead { color: var(--wp--preset--color--net); max-width: 32rem; }
.it-hero__actions { gap: 14px; }
.it-hero__art { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 560; margin-inline: auto; }
.it-hero__sky { position: absolute; right: 0; top: 0; width: 38.5%; aspect-ratio: 1; border-radius: 50%; background: var(--wp--preset--color--sky); }
.it-hero__ball { position: absolute; left: 0; top: 12.5%; width: 90.4%; aspect-ratio: 1; border-radius: 50%; background: var(--wp--preset--color--court); overflow: hidden; display: block; }
.it-hero__seam { position: absolute; inset: 3.8%; border-radius: 50%; border: 7px solid transparent; border-top-color: var(--wp--preset--color--seam); transform: rotate(-30deg); }
.it-hero__ball .it-hero__kate { position: absolute; left: 4.5%; top: -10.6%; height: 127.7%; width: auto; max-width: none; display: block; }
.it-hero__kate--over { position: absolute; left: 4.05%; top: 3.6%; height: 107.2%; width: auto; max-width: none; display: block; clip-path: inset(0 0 83.4% 0); pointer-events: none; }
.it-hero__dot { position: absolute; right: 5.8%; bottom: 5.4%; width: 16.9%; aspect-ratio: 1; border-radius: 50%; background: var(--wp--preset--color--ball); }
@media (max-width: 900px) { .it-hero { grid-template-columns: 1fr; } .it-hero__art { max-width: 420px; } }

/* Scores. */
.it-score { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; font-size: 1rem; }
.it-score__w { font-weight: 600; }
.it-score__n { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: var(--it-ink-text); }

/* Stories: query loop as 2 + 1 grid. */
.it-stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.it-stories__grid > li { margin: 0; }
.it-stories__grid > li:first-child { grid-column: span 2; grid-row: span 3; }
.it-story { padding: 0; overflow: hidden; height: 100%; gap: 0; }
.it-story__media { margin: 0; background: var(--wp--preset--color--seam); }
.it-story__media img { display: block; width: 100%; }
.it-stories__grid > li:not(:first-child) .it-story__media, .it-stories__grid > li:not(:first-child) .it-story__standfirst, .it-stories__grid > li:not(:first-child) .it-story__meta .wp-block-post-author-name { display: none; }
.it-story__body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.it-story__body > * { margin: 0 !important; }
.it-story__kicker a { color: inherit; }
.it-story__title { font-size: 1.3125rem; line-height: 1.25; }
.it-stories__grid > li:first-child .it-story__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.15; }
.it-story__title a { color: var(--wp--preset--color--ink); }
.it-story__title a:hover { color: var(--wp--preset--color--court-deep); }
.it-story__standfirst { color: var(--wp--preset--color--net); font-size: 1.0625rem; }
.it-story__meta { gap: 0 6px !important; }
.it-story__meta .wp-block-post-date::before { content: "· "; }
.it-stories__empty { padding: 28px; border: 1.5px dashed var(--wp--preset--color--line); border-radius: var(--it-radius-card); }
@media (max-width: 900px) { .it-stories__grid { grid-template-columns: 1fr; } .it-stories__grid > li:first-child { grid-column: auto; grid-row: auto; } }

/* Court finder band. */
.it-band--court .it-kicker, .it-band--court h2, .it-band--court p { color: inherit; }
.it-courts { gap: 2.5rem 3.5rem !important; }
.it-courts__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
.it-courts__lead { color: #E2F2E7 !important; max-width: 32rem; margin-bottom: 1.25rem; }
.it-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 1.5rem; }
.it-stat { display: flex; flex-direction: column; gap: 4px; }
.it-stat__n { font-weight: 700; font-size: 2.125rem; line-height: 1; }
.it-stat__l { font-size: 0.875rem; color: #fff; }
.it-court-sketch { position: relative; width: 100%; max-width: 460px; aspect-ratio: 460 / 360; margin-inline: auto; border-radius: var(--it-radius-band); background: var(--it-tint); overflow: hidden; }
.it-court-sketch span { position: absolute; display: block; }
.it-court-sketch__outer { left: 8.7%; top: 13.9%; width: 82.6%; height: 72.2%; border: 3px solid var(--wp--preset--color--court); border-radius: 6px; box-sizing: border-box; }
.it-court-sketch__net { left: 8.7%; top: 50%; width: 82.6%; height: 3px; background: var(--wp--preset--color--court); }
.it-court-sketch__centre { left: 50%; top: 13.9%; width: 3px; height: 72.2%; background: var(--wp--preset--color--court); }
.it-court-sketch__inner { left: 21.7%; top: 30.5%; width: 56.5%; height: 38.9%; border: 3px solid var(--wp--preset--color--court); border-radius: 4px; box-sizing: border-box; }
.it-court-sketch__pin { width: 7.8%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 8px 16px rgba(0,0,0,0.18); }
.it-court-sketch__pin--ball { left: 65%; top: 25%; background: var(--wp--preset--color--ball); }
.it-court-sketch__pin--ink { left: 28%; top: 61%; background: var(--wp--preset--color--ink); }
.it-court-sketch__label { left: 20px; bottom: 14px; font-family: var(--wp--preset--font-family--fraunces); font-style: italic; color: var(--wp--preset--color--ink); font-size: 1rem; }

/* Newsletter band. */
.it-nl__card { position: relative; overflow: hidden; background: var(--wp--preset--color--card); border: 1.5px solid var(--wp--preset--color--line); border-radius: var(--it-radius-band); padding: 48px 56px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.it-nl__card::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: var(--wp--preset--color--sky); opacity: 0.7; }
.it-nl__copy { flex: 1 1 420px; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.it-nl__copy > * { margin: 0 !important; }
.it-nl__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.015em; }
.it-nl .wp-block-shortcode, .it-nl .wpcf7 { flex: 1 1 360px; min-width: 0; position: relative; }
@media (max-width: 640px) { .it-nl__card { padding: 32px 24px; } }

/* Contact Form 7 inside our forms: fields in a row, pill controls, quiet messages. */
.it-form .wpcf7-form-control-wrap { flex: 1 1 220px; display: block; }
.it-form .wpcf7-form-control-wrap input { width: 100%; box-sizing: border-box; }
.it-form input.wpcf7-submit { flex: 0 0 auto; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--wp--preset--color--court-deep); color: #fff; border: 2px solid var(--wp--preset--color--court-deep); font-family: var(--wp--preset--font-family--jost); font-weight: 600; font-size: 1rem; cursor: pointer; }
.it-form input.wpcf7-submit:hover { background: #0A6B32; border-color: #0A6B32; }
.it-form .wpcf7-spinner { margin: 0; }
.it-form .wpcf7-response-output, .it-form .wpcf7-not-valid-tip { flex-basis: 100%; margin: 0 !important; font-size: 0.875rem; border: 0 !important; padding: 0 !important; }
.it-form .wpcf7-response-output { color: var(--wp--preset--color--court-deep); }
.it-form .wpcf7-not-valid-tip { color: #B51D22; }
.it-form p { margin: 0; display: contents; }
.it-form--stack { flex-direction: column; align-items: stretch; }
.it-form--stack .wpcf7-form-control-wrap, .it-form--stack textarea { width: 100%; flex-basis: auto; }
.it-form--stack textarea { border-radius: 18px; border: 2px solid var(--wp--preset--color--ink); padding: 14px 22px; font-family: var(--wp--preset--font-family--jost); font-size: 1.0625rem; min-height: 160px; background: #fff; box-sizing: border-box; }
.it-form--stack label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.it-form--stack input.wpcf7-submit { align-self: flex-start; }

/* Shop teaser. */
.it-shop__grid { align-items: stretch; gap: 24px; }
.it-shop__intro { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.it-shop__title { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.it-tile { align-items: center; justify-content: center; min-height: 180px; text-decoration: none; }
.it-tile__word { font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-size: 1.375rem; }
.it-tile--court { background: var(--wp--preset--color--court-deep); border-color: var(--wp--preset--color--court-deep); color: #fff; }
.it-tile--court .it-meta { color: #fff; }
.it-tile--ball { background: var(--wp--preset--color--ball); border-color: var(--wp--preset--color--ball); color: var(--wp--preset--color--ink); }
.it-tile--ball .it-meta { color: #5A4410; }
.it-tile--sky { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); color: var(--wp--preset--color--ink); }
.it-tile--sky .it-meta { color: #1F4C5C; }

/* Inner page header and archive band. */
.it-page-head { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); border-bottom: 1.5px solid var(--wp--preset--color--line); margin-bottom: var(--wp--preset--spacing--60); }
.it-page-head > * { margin: 0 0 0.75rem !important; }
.it-page-head__standfirst { font-size: 1.25rem; }
.it-archive-band { padding-block: var(--wp--preset--spacing--60); margin-bottom: var(--wp--preset--spacing--60); border-bottom: 1.5px solid var(--wp--preset--color--line); }
.it-archive-band .it-kicker { margin: 0 0 0.5rem; }
.it-archive-band h1 { margin: 0 0 0.5rem; }
.it-archive-band p { margin: 0; color: var(--wp--preset--color--net); max-width: 40rem; }

/* Header: GP's site title is the lockup; CTA after the menu. */
.site-logo { display: flex; align-items: center; }
.it-lockup { font-size: 2.125rem; }
.main-navigation .main-nav ul li a { font-weight: 500; font-size: 1rem; letter-spacing: 0.01em; }
.it-header-cta { display: inline-flex; align-items: center; margin-left: 10px; }
.it-header-cta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--wp--preset--color--court-deep); color: #fff !important; font-weight: 600; font-size: 0.9375rem; line-height: 1; }
.it-header-cta a:hover { background: #0A6B32; }
@media (max-width: 768px) { .it-header-cta { display: none; } }

/* Footer. */
.it-footer { background: var(--wp--preset--color--ink); color: var(--it-ink-text); padding-block: var(--wp--preset--spacing--70); margin-top: var(--wp--preset--spacing--80); }
.it-footer__inner { max-width: 1248px; margin-inline: auto; padding-inline: var(--wp--preset--spacing--50); display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; }
.it-footer__brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.it-footer__brand .it-lockup { font-size: 1.75rem; }
.it-footer__tagline { margin: 0; font-family: var(--wp--preset--font-family--fraunces); font-style: italic; font-size: 1.0625rem; color: var(--wp--preset--color--paper); text-transform: lowercase; }
.it-footer__note { margin: 0; font-size: 0.8125rem; line-height: 1.5; max-width: 36rem; }
.it-footer__nav { margin-left: auto; }
.it-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 0.9375rem; }
.it-footer__nav a { color: var(--wp--preset--color--paper); }
.it-footer__nav a:hover { color: var(--wp--preset--color--seam); }
.it-footer__legal { flex-basis: 100%; margin: 8px 0 0; font-size: 0.8125rem; }

/* Front page: no GP page title, no top padding on the container. */
.home.page .entry-header, .page-id-0 .entry-header { display: none; }
.it-front .site-content .content-area { padding-top: 0; }
.it-front .entry-content > .alignfull:first-child { margin-top: 0; }
.it-story__tile { display: block; aspect-ratio: 16 / 9; background: radial-gradient(circle at 15% 110%, var(--wp--preset--color--court) 0 30%, transparent 31%), radial-gradient(circle at 85% 20%, var(--wp--preset--color--ball) 0 12%, transparent 13%), radial-gradient(circle at 105% 105%, var(--wp--preset--color--sky) 0 25%, transparent 26%), var(--wp--preset--color--seam); }
.it-footer__nav a, .it-footer a { text-decoration: none; }

/* 1.2.1 (10-Oct-2026): AA contrast. Small white or tinted text never sits on court #0B9444 (3.9:1); bands and buttons use court-deep #0B7A39 (5.4:1). The hero ball keeps #0B9444 (no small text). */
.it-band--court.has-court-background-color { background-color: var(--wp--preset--color--court-deep) !important; }

/* ------------------------------------------------------------------ */
/* 1.2.2 (10-Oct-2026): one gutter line for everything.                */
/* Header, page content, wide blocks, full-bleed bands and the footer   */
/* all align on --it-gutter; wide blocks are a real 1248 px column, not  */
/* GeneratePress's bleed; prose on inner pages measures 720 px.         */
/* ------------------------------------------------------------------ */
:root { --it-gutter: 20px; --it-max: 1248px; }
@media (min-width: 600px)  { :root { --it-gutter: 32px; } }
@media (min-width: 1024px) { :root { --it-gutter: 40px; } }
@media (min-width: 1360px) { :root { --it-gutter: 56px; } }

/* Header and content share the gutter. */
.site-header .inside-header { padding: 22px var(--it-gutter); }
.site-content { padding-left: var(--it-gutter) !important; padding-right: var(--it-gutter) !important; }
@media (max-width: 768px) { .site-header .inside-header { padding-top: 16px; padding-bottom: 16px; } .site-content { padding-top: 24px !important; padding-bottom: 24px !important; } }

/* Wide blocks: a centred 1248 px column inside the gutters, never a bleed. */
.entry-content > .alignwide, .entry-content .alignwide { width: auto !important; max-width: var(--it-max) !important; margin-left: auto !important; margin-right: auto !important; }

/* Full-bleed bands: their inner column sits on the same gutter line. */
.it-band { padding-left: var(--it-gutter) !important; padding-right: var(--it-gutter) !important; }
.it-band > .wp-block-group__inner-container, .it-band.is-layout-constrained > * { max-width: var(--it-max); }

/* Footer column on the gutter line. */
.it-footer__inner { max-width: calc(var(--it-max) + 2 * var(--it-gutter)); padding-left: var(--it-gutter); padding-right: var(--it-gutter); }
.it-footer { margin-top: var(--wp--preset--spacing--70); }

/* Vertical rhythm. */
.it-front .entry-content { margin-top: 0 !important; }
.it-hero { padding-top: var(--wp--preset--spacing--50); }
@media (max-width: 599px) {
  .it-hero { padding-top: var(--wp--preset--spacing--30); padding-bottom: var(--wp--preset--spacing--60); gap: 2rem; }
  .it-section { padding-top: var(--wp--preset--spacing--70); }
  .it-band { margin-top: var(--wp--preset--spacing--70); padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
  .it-nl__card { padding: 28px 20px; }
  .it-courts { gap: 2rem !important; }
}
.it-page-head { padding-top: var(--wp--preset--spacing--40); }
body:not(.it-front) .entry-content { margin-top: 0 !important; }

/* Inner pages: prose measures 720 px on the gutter line; bands and wide blocks keep their width. */
body:not(.it-front) .entry-content > :where(p, h1, h2, h3, h4, ul, ol, blockquote, figure, table, .it-page-head, .wp-block-shortcode, .wpcf7, .wp-block-list) { max-width: 720px; }
body:not(.it-front) .it-archive-band > * { max-width: 720px; }

/* 1.2.3 (11-Oct-2026, cut-over): the scores strip was hidden on the front page while it held sample data. It went live in 1.4.0 (see below). */

/* 1.3.0 (11-Oct-2026): single story template. */

/* GP's own title, entry meta and featured image are replaced by the band, the figure and the pills. */
.single-post .entry-header, .single-post footer.entry-meta, .single-post .featured-image, .single-post .page-header-image-single { display: none; }
.single-post .inside-article { padding: 0 !important; background: transparent !important; }

/* Story header band: full bleed, court-deep so small white text keeps 5.4:1. Discs are decoration only. */
.it-story-band { position: relative; overflow: hidden; background: var(--wp--preset--color--court-deep); color: #fff; }
.it-story-band__disc { position: absolute; display: block; border-radius: 50%; pointer-events: none; }
.it-story-band__disc--seam { right: -120px; top: -120px; width: 420px; height: 420px; background: var(--wp--preset--color--seam); }
.it-story-band__disc--ball { right: 120px; bottom: -60px; width: 150px; height: 150px; background: var(--wp--preset--color--ball); }
.it-story-band__disc--sky { left: -80px; bottom: -140px; width: 300px; height: 300px; border: 8px solid transparent; border-top-color: var(--wp--preset--color--sky); transform: rotate(20deg); }
.it-story-band__inner { position: relative; box-sizing: border-box; max-width: calc(var(--it-max) + 2 * var(--it-gutter)); margin-inline: auto; padding: 56px var(--it-gutter) 64px; display: flex; flex-direction: column; gap: 18px; }
.it-story-band__inner > * { margin: 0; max-width: 820px; }
.it-story-band a, .it-story-band a:hover { color: #fff; }
.it-story-band a:hover { text-decoration: underline; }
.it-story-band .it-kicker { color: #fff; margin: 0; }
.it-story-band__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.9375rem; }
.it-story-band__tournament { font-weight: 500; }
.it-story-band__title { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; }
.it-story-band .it-tagline, .it-story-band .it-tagline--plain { color: #fff; text-transform: none; max-width: 720px; font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.4; font-weight: 400; }
.it-tagline--plain { text-transform: none; }
.it-story-band__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 0.9375rem; color: #fff; }
.it-story-band__by { display: inline-flex; align-items: center; gap: 8px; }
.it-story-band__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--ink); display: inline-block; }
@media (max-width: 1023px) { .it-story-band__disc--seam { opacity: 0.5; } .it-story-band__disc--ball { display: none; } }
@media (max-width: 599px) {
  .it-story-band__inner { padding-top: 36px; padding-bottom: 40px; gap: 14px; }
  .it-story-band__disc--seam { width: 260px; height: 260px; right: -110px; top: -110px; }
}

/* Body and rail: one column below 1024 px; at 1024 px and up the article is a 720 px measure with a rail beside it. */
.single-post .entry-content { min-width: 0; margin-top: 0; }
.single-post .entry-content > :where(.it-matchbox, .it-keynums, .it-pills, .it-figure) { max-width: 720px; }
.single-post .it-rail { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-top: var(--wp--preset--spacing--60); }
@media (min-width: 1024px) {
  .single-post .inside-article { display: grid; grid-template-columns: minmax(0, 720px) minmax(300px, 360px); column-gap: 48px; row-gap: 0; justify-content: space-between; align-items: start; max-width: var(--it-max); margin-inline: auto; }
  .single-post .inside-article > * { grid-column: 1; }
  .single-post .inside-article > .it-rail { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; max-width: none; position: sticky; top: 24px; align-self: start; }
}

/* Match box: recap table, results and preview list. Scores use tabular numerals. */
.it-matchbox { padding: 18px 22px; margin: 0 0 32px; gap: 8px; }
.it-matchbox .it-kicker, .it-matchbox .it-meta { margin: 0; }
.it-matchbox__scroll { overflow-x: auto; }
.it-matchtable { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0; }
.it-matchtable th, .it-matchtable td { text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); background: none; }
.it-matchtable thead th { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--net); font-weight: 600; }
.it-matchtable tbody tr:last-child th, .it-matchtable tbody tr:last-child td { border-bottom: 0; }
.it-matchtable tbody th { font-weight: 500; }
.it-matchtable .n { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.it-matchtable tr.is-winner th, .it-matchtable td.is-won { font-weight: 700; }
.it-matchtable__time { vertical-align: middle; border-left: 1px solid var(--wp--preset--color--line); white-space: nowrap; }
.it-tb { font-size: 0.6em; line-height: 0; vertical-align: super; letter-spacing: 0; margin-left: 1px; font-weight: 400; }
.it-seed { font-weight: 400; font-size: 0.875em; color: var(--wp--preset--color--net); }
.it-matchlist { list-style: none; margin: 0; padding: 0; }
.it-matchlist__item { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.it-matchlist__item:last-child { border-bottom: 0; }
.it-matchlist__round { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--net); }
.it-matchlist__vs { color: var(--wp--preset--color--net); }
.it-matchlist__sub { display: block; margin-top: 2px; }
.it-matchlist__result { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 599px) {
  .it-matchlist__item { grid-template-columns: minmax(0, 1fr) auto; }
  .it-matchlist__round { grid-column: 1 / -1; }
  .it-matchbox { padding: 16px 16px; }
}

/* Illustration figure, placed after the first paragraph. */
.it-figure { margin: 8px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.it-figure__img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--wp--preset--color--sky); }
.it-figure figcaption { margin: 0; }

/* Key numbers. */
.it-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.it-keynums { margin: 32px 0 28px; }
.it-keynums__title { margin: 0 0 14px; }
.it-keynum { align-items: flex-start; gap: 6px; }
.it-keynum__n { font-weight: 700; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.it-keynum__l { font-weight: 600; font-size: 0.9375rem; }
.it-keynum .it-meta { margin: 0; }
@media (max-width: 599px) { .it-grid--3 { grid-template-columns: 1fr; } }

/* Tag pills. */
.it-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.it-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--wp--preset--color--line); border-radius: var(--it-radius-pill); font-size: 0.875rem; background: var(--wp--preset--color--card); color: var(--wp--preset--color--ink); }
.it-pill:hover { border-color: var(--wp--preset--color--court-deep); color: var(--wp--preset--color--court-deep); }

/* Rail cards. */
.it-rail__card { gap: 12px; }
.it-rail__card .it-kicker, .it-rail__card p { margin: 0; }
.it-rail__title { font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
.it-rail__nl .it-rail__title { color: var(--wp--preset--color--paper); }
.it-rail__nl .it-btn { align-self: flex-start; }
.it-upnext { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; }
.it-upnext__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin: 0; }
.it-upnext__players { font-weight: 500; }
.it-upnext__time { font-variant-numeric: tabular-nums; text-align: right; }
.it-upnext__round { grid-column: 1 / -1; font-size: 0.8125rem; }
.it-rail__courts { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }
.it-rail__courts .it-kicker, .it-rail__courts .it-rail__title, .it-rail__courts a { color: var(--wp--preset--color--ink); }
.it-rail__link { font-weight: 500; text-decoration: underline; }
.it-rail__data { padding-block: 14px; }

/* More from this tournament: full width below the article, same card as the home stories. */
.it-more { max-width: var(--it-max); margin: var(--wp--preset--spacing--70) auto 0; }
.it-more__title { margin: 0 0 20px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.it-more .it-grid--3 { gap: 24px; }
.it-more .it-story__title { margin: 0; }
@media (max-width: 1023px) { .it-more .it-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .it-more .it-grid--3 { grid-template-columns: 1fr; } }

/* 1.4.0 (11-Oct-2026): live scores strip. */
.it-scores { transition: opacity 200ms ease; }
.it-scores.is-swapping { opacity: 0; }
.it-scores__updated { margin-top: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.it-scores__empty { gap: 8px; }
.it-scores__empty-text { margin: 0; font-size: 1.0625rem; max-width: 40rem; }
.it-scores__empty .it-meta a { color: var(--wp--preset--color--seam); font-weight: 500; }
.it-band--ink .wp-block-shortcode { max-width: none; }
@media (prefers-reduced-motion: reduce) { .it-scores { transition: none; } }

/* 1.4.1 (14-Oct-2026): story band. The sky arc sat low-left across the standfirst and byline. Push it down so only a sliver of the arc shows under the text, and keep the text layer above all discs. */
.it-story-band__inner { z-index: 1; }
.it-story-band__disc--sky { z-index: 0; bottom: -270px; }
@media (max-width: 599px) { .it-story-band__disc--sky { width: 220px; height: 220px; bottom: -205px; left: -70px; } }
