/* ==========================================================================
   Self-hosted web fonts (generated by tools/selfhost-google-fonts.py, 2026-09-02)
   Google Fonts used to be fetched from fonts.googleapis.com + fonts.gstatic.com:
   two extra origins on the critical rendering path, 876 ms of render-blocking
   on mobile in the 2026-09-01 Lighthouse run. Served from this origin instead
   (Nunito Sans and Poppins are OFL-licensed). font-display: optional = the text
   never reflows when the font lands (CLS 0) and the browser waits at most
   ~100 ms before committing to the fallback stack — the same trade
   netwebmedia.com and marpolis.com made in August. Latin subset only; other
   scripts fall back to the system stack through the unicode-range.
   ========================================================================== */
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(../assets/fonts/nunito-sans-400-700.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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../assets/fonts/poppins-600.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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../assets/fonts/poppins-700.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;
}

/* ==========================================================================
   Golf en Chile — hoja de estilos canónica
   Marca: verde fairway profundo + arena + rojo Chile (acento mínimo)
   Sin build step. Vanilla CSS.
   ========================================================================== */

:root {
  --green-900: #06281F;
  --green-800: #0B3B2E;
  --green-700: #12513E;
  --green-500: #1E8A5F;
  --green-300: #6FC49B;
  --sand-500: #C8964A;
  --sand-300: #E4C48A;
  --sand-100: #F5EEE1;
  --sand-700: #7E5A1C; /* text-safe sand: >= 4.5:1 on white, --page and --sand-100 */
  --paper: #FBFAF6;
  --ink: #14211C;
  --ink-soft: #4A5A53;
  --line: #DFDACD;
  --chile-red: #C8322A;

  /* Canal: acento lima + fondo gris, patrón de portada tipo canal de noticias. */
  --lime: #C1F917;
  --page: #F1F1F1;
  --surface: #fff;

  --wrap: 1240px;
  --radius: 14px;
  --card-radius: 21px;
  --shadow: 0 1px 2px rgba(6, 40, 31, .05), 0 12px 32px -12px rgba(6, 40, 31, .18);

  --f-display: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Nunito Sans", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.018em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-500); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.center .lede { margin-inline: auto; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sand-700); margin: 0 0 .9rem;
}

/* ---------- Barra de socios (hat) ---------- */
.site-hat {
  background: #fff;
  border-bottom: 4px solid var(--lime);
}
.hat-inner { display: flex; align-items: center; gap: 1.6rem; height: 38px; }
.hat-inner a {
  font-family: var(--f-display);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-800); text-decoration: none; white-space: nowrap;
}
.hat-inner a:hover { color: var(--green-500); }
.hat-inner .hat-sep { color: var(--line); }
.hat-tag { margin-left: auto; font-size: .7rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Header (barra de canal, oscura) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--green-900);
  border-bottom: 3px solid var(--lime);
}
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 61px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; flex: 0 0 30px; }
.nav-links { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; border-bottom-color: var(--lime); }
.nav-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--lime); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; width: 42px; height: 38px; cursor: pointer; font-size: 1.1rem; color: #fff; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.lang-switch button {
  border: 0; background: none; padding: .3rem .68rem; font: inherit; font-size: .74rem; font-weight: 700;
  cursor: pointer; color: rgba(255, 255, 255, .72); letter-spacing: .04em;
}
.lang-switch button[aria-pressed="true"] { background: var(--sand-500); color: #241704; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .97rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green-800); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--sand { background: var(--sand-500); color: #241704; }
.btn--sand:hover { background: var(--sand-300); color: #241704; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { border-color: var(--green-800); color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(30, 138, 95, .40) 0%, transparent 58%),
    radial-gradient(90% 70% at 12% 92%, rgba(200, 150, 74, .22) 0%, transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 55%, #08321F 100%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: rgba(255, 255, 255, .84); font-size: 1.2rem; max-width: 56ch; }
.hero .eyebrow { color: var(--sand-300); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 3rem; align-items: center; }

.hero-stats { display: grid; gap: .8rem; }
.hero-stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 1rem 1.15rem;
}
.hero-stat b { display: block; font-family: var(--f-display); font-size: 1.85rem; color: var(--sand-300); line-height: 1; }
.hero-stat span { font-size: .86rem; color: rgba(255, 255, 255, .74); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform .14s ease, border-color .14s ease; }
.card--link:hover { transform: translateY(-3px); border-color: var(--green-300); color: inherit; }
.card-num { font-family: var(--f-display); font-size: 2rem; color: var(--sand-700); line-height: 1; display: block; margin-bottom: .45rem; }

/* ---------- Club directory ---------- */
.dir-controls { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1.8rem; }
.dir-search {
  flex: 1 1 260px; padding: .78rem 1.05rem; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink);
}
.dir-search:focus { outline: 2px solid var(--green-300); outline-offset: 1px; border-color: var(--green-500); }
.chip {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }

.zone-block { margin-bottom: 2.6rem; }
.zone-head { display: flex; align-items: baseline; gap: .75rem; border-bottom: 2px solid var(--green-800); padding-bottom: .5rem; margin-bottom: 1.1rem; }
.zone-head h2 { margin: 0; font-size: 1.42rem; }
.zone-count { font-size: .82rem; font-weight: 700; color: var(--sand-700); letter-spacing: .08em; text-transform: uppercase; }

.club-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 0; }
.club-item {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green-500);
  border-radius: 10px; padding: .82rem 1rem; font-size: .96rem; font-weight: 500;
}
.dir-empty { padding: 2rem; text-align: center; color: var(--ink-soft); }
.dir-note { font-size: .86rem; color: var(--ink-soft); background: var(--sand-100); border-radius: 10px; padding: 1rem 1.15rem; border: 1px solid var(--line); }

/* ---------- Bands ---------- */
.band-dark { background: var(--green-800); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: rgba(255, 255, 255, .82); }
.band-dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.band-sand { background: var(--sand-100); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sand-500); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: .85rem 0 0; color: var(--ink-soft); }

/* ---------- Article ---------- */
.article { max-width: 74ch; margin-inline: auto; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article li { margin-bottom: .45em; }

/* Fotografía de portada del artículo.
   El crédito va bajo la imagen y no en una página aparte: la licencia CC BY
   pide que la atribución acompañe a la obra. Ver golf-chile/assets/photos/
   ATTRIBUTION.md y _ci/validate-blog-photo-attribution.mjs. */
.article-photo {
  margin: 1.6rem 0 1.8rem;
}
.article-photo img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; background: var(--green-800);
  box-shadow: var(--shadow);
}
.article-photo figcaption {
  margin-top: .55rem;
  font-size: .78rem; line-height: 1.45; color: var(--ink-soft);
}
.article-photo figcaption a { color: var(--ink-soft); text-decoration: underline; }
.article-photo figcaption a:hover { color: var(--green-700); }
.article blockquote {
  margin: 1.6rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--sand-500);
  font-family: var(--f-display); font-size: 1.2rem; color: var(--green-800);
}
.meta { font-size: .87rem; color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .87rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: .78rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem;
  background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-300); outline-offset: 1px; border-color: var(--green-500); }
/* mobile-overflow-fix-2026-10-06 — a grid track is minmax(auto, 1fr), so its floor is the widest
   child's min-content, and an <input> is ~355px wide by itself: on a 375px phone /contacto/
   pushed the page to 394px and the whole page scrolled sideways. Let the tracks shrink to the
   column and let the controls compress with them. */
.form-grid, .field { grid-template-columns: minmax(0, 1fr); }
.field input, .field select, .field textarea { max-width: 100%; min-width: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--ink-soft); }
.form-status { font-size: .92rem; font-weight: 600; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .74); padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4, .footer-grid .footer-head { color: #fff; font-family: var(--f-body); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .84rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 1.2rem; color: #fff; margin-bottom: .7rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--green-900); border-bottom: 3px solid var(--sand-500); padding: .5rem 1.25rem 1.1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8rem 0; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--sand-500); }
  .nav-links .lang-switch { margin-top: .8rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   CANAL — portada tipo canal de noticias
   Estructura calcada de golfchannel.com (hat + barra + tarjeta hub 1:2:1 +
   franja "en vivo"), con la paleta y el arte propios de Golferos.
   Métricas de referencia: página #F1F1F1, tarjeta blanca radio 21px,
   columnas 295 / 602 / 295, miniaturas 16:9 (115x65 y 200x112), lead 576x324.
   ========================================================================== */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Contenido sobre gris: cada sección normal es una tarjeta blanca. */
.section:not(.band-dark):not(.band-sand):not(.section--flush) > .wrap {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
}
.section { padding: clamp(.9rem, 2vw, 1.4rem) 0; }
.section--tight { padding: clamp(.9rem, 2vw, 1.4rem) 0; }
.band-dark, .band-sand { padding: clamp(2.6rem, 5vw, 4rem) 0; }
main > .section:first-child { padding-top: clamp(1.1rem, 2.4vw, 1.6rem); }

/* ---------- Ticker de torneos ---------- */
.ticker { background: var(--green-800); }
.ticker-inner { display: flex; align-items: stretch; gap: 0; min-height: 42px; }
.ticker-label {
  display: flex; align-items: center; flex: 0 0 auto;
  background: var(--lime); color: #14210A;
  font-family: var(--f-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 .9rem;
}
.ticker-track {
  display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ticker-track::-webkit-scrollbar { display: none; }
.ticker-item {
  display: flex; align-items: center; gap: .55rem; flex: 0 0 auto;
  padding: 0 1.05rem; text-decoration: none; color: rgba(255, 255, 255, .9);
  font-size: .8rem; white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .1);
}
.ticker-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ticker-name { font-weight: 600; }
.ticker-when { color: rgba(255, 255, 255, .55); font-size: .74rem; }
.ticker-live {
  background: var(--chile-red); color: #fff; border-radius: 3px;
  font-size: .58rem; font-weight: 800; letter-spacing: .09em; padding: .16rem .36rem;
}

/* ---------- Tarjeta hub (portada) ---------- */
.hub {
  background: var(--surface); border-radius: var(--card-radius);
  padding: clamp(1rem, 2vw, 1.5rem);
}
.hub-grid {
  display: grid;
  grid-template-columns: 295fr 602fr 295fr;
  gap: 12px;
  align-items: start;
}

/* Media 16:9 con arte propio */
.media {
  position: relative; display: block; overflow: hidden;
  border-radius: 10px; background: var(--green-800);
  aspect-ratio: 16 / 9;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-badge {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(6, 32, 25, .82); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .12rem .4rem; border-radius: 3px;
}
/* Photo credit — bottom overlay for a card whose image is a real photo from
   a named source (data/noticias.json → img + credito), added 2026-09-03.
   Never appears on the generated SVG art, which we own outright and needs
   no credit — js/channel.js and _deploy/golferos-prerender-home.js both
   gate this on item.img && item.credito. A gradient, not a solid bar, so it
   reads on any photo without a hard edge across the frame. */
.media-credit {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(6, 32, 25, .85), rgba(6, 32, 25, 0));
  color: rgba(255, 255, 255, .92);
  font-size: .62rem; font-weight: 600; letter-spacing: .01em;
  padding: 1rem .5rem .3rem;
  pointer-events: none;
}

/* Columna central — nota principal */
.hub-lead { text-decoration: none; color: inherit; display: block; }
.hub-lead .media { border-radius: 12px; }
.hub-lead h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.18;
  margin: .85rem 0 .45rem; color: var(--ink);
}
.hub-lead:hover h2 { color: var(--green-700); }
.hub-lead p { font-size: .95rem; color: var(--ink-soft); margin: 0 0 .5rem; }

/* Columnas laterales */
.hub-side { min-width: 0; }
.hub-side-head {
  font-family: var(--f-display);
  font-size: 1.14rem; font-weight: 600; letter-spacing: -.024em;
  margin: 0 0 .7rem; color: var(--ink);
}
.hub-feature { display: block; text-decoration: none; color: inherit; margin-bottom: .55rem; }
.hub-feature h3 { font-size: 1rem; line-height: 1.25; margin: .55rem 0 .3rem; }
.hub-feature:hover h3 { color: var(--green-700); }
.hub-feature p { font-size: .84rem; color: var(--ink-soft); margin: 0; }

.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li { border-top: 1px solid var(--line); }
.hub-list li:first-child { border-top: 0; }
.hub-list a {
  display: grid; grid-template-columns: 115px 1fr; gap: .65rem; align-items: start;
  padding: .62rem 0; text-decoration: none; color: var(--ink);
}
.hub-list a:hover { color: var(--green-700); }
.hub-list .media { border-radius: 7px; }
/* Too small to caption over the photo (115–128px), so the credit sits under
   the thumbnail instead (Carlos, 2026-10-20: the source under every picture). */
.hub-list .media { overflow: visible; aspect-ratio: auto; background: none; }
.hub-list .media img { aspect-ratio: 16 / 9; height: auto; border-radius: 7px; }
.hub-list .media-credit {
  position: static; display: block; background: none;
  color: var(--ink-soft); font-size: .6rem; font-weight: 500; line-height: 1.25;
  padding: .25rem 0 0;
}
.hub-list .hub-list-txt { font-size: .84rem; line-height: 1.22; font-weight: 600; }
.hub-list .hub-list-src { display: block; font-size: .72rem; color: var(--ink-soft); font-weight: 400; margin-top: .2rem; }

/* Etiqueta de categoría */
.kicker {
  display: inline-block; font-family: var(--f-display);
  font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-700); /* 8.7:1 on white; --green-500 measured 4.32:1 (fails AA) */
}
.kicker--latam { color: var(--sand-700); }
.kicker--mundo { color: var(--ink-soft); }
.kicker-dot { color: var(--line); margin: 0 .35rem; }
.kicker-time { font-size: .68rem; color: var(--ink-soft); font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ---------- Franja "en vivo y próximamente" ---------- */
.live-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .6rem; }
.live-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem;
  border-top: 3px solid var(--green-500);
}
.live-card:hover { border-color: var(--green-300); color: inherit; background: #FCFDFC; }
.live-card.is-live { border-top-color: var(--chile-red); }
.live-when { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.live-name { font-size: .93rem; font-weight: 600; line-height: 1.25; margin: .3rem 0 .18rem; }
.live-sede { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Encabezado de sección tipo canal ---------- */
.rule-head {
  display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap;
  border-bottom: 3px solid var(--green-800); padding-bottom: .5rem; margin-bottom: 1.2rem;
}
.rule-head h1, .rule-head h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.rule-head .rule-more { margin-left: auto; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.rule-head .rule-note { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Rejilla de noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.15rem; }
.news-list { display: grid; gap: .9rem; }
.news-card { display: block; text-decoration: none; color: inherit; }
.news-card .media { margin-bottom: .55rem; }
.news-card h3 { font-size: 1rem; line-height: 1.25; margin: .35rem 0 .3rem; }
.news-card:hover h3 { color: var(--green-700); }
.news-card p { font-size: .86rem; color: var(--ink-soft); margin: 0 0 .4rem; }
.news-src { font-size: .74rem; color: var(--ink-soft); margin: 0; }
/* The source name is text inside a card that already links to it (see
   js/channel.js sourceRow) — styled to read as attribution, not as a link. */
.news-src a, .news-src .news-src-name { color: var(--green-700); font-weight: 600; }
.news-card--row { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; align-items: start; }
.news-card--row .media { margin-bottom: 0; }

/* ---------- Torneos ---------- */
.tourn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.tourn-item {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.2rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1.1rem;
}
.tourn-item.is-live { border-left: 4px solid var(--chile-red); }
.tourn-item.is-result { border-left: 4px solid var(--sand-500); }
.tourn-when { display: grid; gap: .2rem; align-content: start; }
.tourn-when b { font-size: .92rem; }
.tourn-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 700; }
.tourn-body { min-width: 0; }
.tourn-name { font-size: 1rem; margin: 0 0 .25rem; }
.tourn-sede { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .3rem; }
.tourn-nota { font-size: .85rem; margin: 0 0 .4rem; }
.tourn-winner { font-size: .9rem; margin: 0 0 .3rem; }
.tourn-link { font-size: .78rem; font-weight: 700; }
.zone-block { margin-bottom: 1.8rem; }
.zone-head { display: flex; align-items: baseline; gap: .75rem; border-bottom: 2px solid var(--green-800); padding-bottom: .45rem; margin-bottom: .9rem; }
.zone-head h2 { margin: 0; font-size: 1.2rem; }

/* ---------- Tienda ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.2rem; }
.shop-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; display: flex; flex-direction: column;
}
.shop-type {
  font-family: var(--f-display);
  font-size: .63rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sand-700); margin-bottom: .3rem;
}
.shop-name { font-size: 1.2rem; margin: 0 0 .45rem; }
.shop-desc { font-size: .9rem; color: var(--ink-soft); margin: 0 0 .85rem; }
.shop-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; margin: 0 0 .85rem; font-size: .84rem; }
.shop-facts dt { font-weight: 700; color: var(--ink); }
.shop-facts dd { margin: 0; color: var(--ink-soft); }
.shop-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.shop-tag {
  font-size: .72rem; font-weight: 600; background: var(--sand-100);
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--ink-soft);
}
.shop-cta { margin-top: auto; align-self: flex-start; }

/* ---------- Nota de transparencia ---------- */
.src-note {
  font-size: .84rem; color: var(--ink-soft); background: var(--sand-100);
  border: 1px solid var(--line); border-left: 3px solid var(--sand-500);
  border-radius: 10px; padding: .85rem 1.05rem; margin: 0 0 1.3rem;
}

/* ---------- Equipamiento (módulo de afiliado Amazon) ----------
   Rendered server-side by _deploy/build-golferos-gear.py between
   <!-- gear:start --> … <!-- gear:end -->. Text cards only: the CSP is
   img-src 'self', and the disclosure is an Amazon Operating Agreement
   requirement, not decoration — keep it visible. */
.gear-tag {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .6rem; white-space: nowrap;
}
.gear-lede { color: var(--ink-soft); margin: -.3rem 0 1.1rem; }
.gear-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gear-card {
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem;
  transition: transform .14s ease, border-color .14s ease;
}
.gear-card:hover { transform: translateY(-3px); border-color: var(--green-300); color: inherit; }
.gear-name { font-family: var(--f-display); font-weight: 600; line-height: 1.25; }
.gear-desc { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.gear-go { font-size: .82rem; font-weight: 700; color: var(--green-800); margin-top: .2rem; }
.gear-disclosure { font-size: .78rem; color: var(--ink-soft); margin: 1rem 0 0; line-height: 1.5; }
@media (max-width: 900px) { .gear-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gear-grid { grid-template-columns: 1fr; } }

/* ---------- Destacados de Lackington Golf (tienda/) ----------
   Product cards that hand off to Lackington's own cart. Photos are
   self-hosted in assets/tienda/ because the CSP is img-src 'self'. */
.lk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.lk-card {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem 1rem;
  transition: transform .14s ease, border-color .14s ease;
}
.lk-card:hover { transform: translateY(-3px); border-color: var(--green-300); color: inherit; }
.lk-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; margin-bottom: .4rem; }
.lk-brand { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lk-name { font-family: var(--f-display); font-weight: 600; line-height: 1.25; }
.lk-desc { font-size: .86rem; color: var(--ink-soft); flex: 1; }
.lk-price { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; margin-top: .2rem; }
.lk-go {
  align-self: stretch; text-align: center; font-size: .84rem; font-weight: 700; color: #fff;
  background: var(--green-800); border-radius: 999px; padding: .55rem .9rem; margin-top: .3rem;
}
.lk-card:hover .lk-go { background: var(--green-900); }
@media (max-width: 900px) { .lk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lk-grid { gap: .6rem; } .lk-card { padding: .6rem .65rem .8rem; } .lk-desc { font-size: .8rem; } }

/* ---------- Ficha patrocinada en el directorio ----------
   Pre-wired for the dark "Ficha Patrocinada" SKU (golf-chile/patrocinar/).
   A club with `patrocinado: true` in data/clubes.json renders first in its
   zone with this badge; nothing in the data carries it until the SKU sells. */
.club-item--patrocinado {
  background: var(--sand-100); border-color: var(--sand-500);
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.club-item--patrocinado a { color: inherit; font-weight: 700; text-decoration: none; }
.club-item--patrocinado a:hover { text-decoration: underline; }
.club-badge {
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: #241704; background: var(--sand-500); border-radius: 999px; padding: .15rem .5rem;
}

/* ---------- Cross-sell: software para tu club (FracMO Golf) ---------- */
.club-soft { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; align-items: center; }
.club-soft ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.club-soft li { margin-bottom: .3rem; }
.club-soft-note { font-size: .8rem; color: var(--ink-soft); margin: .8rem 0 0; }
@media (max-width: 760px) { .club-soft { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-lead { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 760px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-list a { grid-template-columns: 128px 1fr; }
  .news-card--row { grid-template-columns: 132px 1fr; }
  .hat-inner { gap: 1rem; overflow-x: auto; scrollbar-width: none; }
  .hat-inner::-webkit-scrollbar { display: none; }
  .hat-tag { display: none; }
}
@media (max-width: 620px) {
  .tourn-item { grid-template-columns: 1fr; gap: .5rem; }
  .tourn-when { display: flex; align-items: baseline; gap: .7rem; }
}

/* ---------- Modo oscuro (prefers-color-scheme) ----------
   Solo tokens: las bandas verdes (.band-dark, pie, ticker) ya son oscuras y
   no cambian. La barra de socios (.site-hat) se queda blanca porque aloja
   logotipos de fondo claro. Contraste verificado >= 4.5:1 para texto. */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0A130F;
    --surface: #101D17;
    --paper: #0E1A15;
    --ink: #E8EFEA;
    --ink-soft: #A9B9B0;
    --line: #2B3A33;
    --sand-100: #1A241E;
    --sand-700: #E4C48A;
    --green-700: #6FC49B;
    --green-500: #8AD6B2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
  html { color-scheme: dark; }
  .site-hat .hat-tag { color: #4A5A53; }
  .btn--outline { border-color: var(--green-300); color: var(--green-300); }
  .btn--outline:hover { background: var(--green-300); color: var(--green-900); }
  .gear-go, .zone-head h2, .zone-head h3 { color: var(--green-300); }
  [style*="color:var(--green-800)"] { color: var(--green-300) !important; }
  .kicker-dot, .article blockquote { color: var(--ink-soft); }
  .zone-head { border-bottom-color: var(--green-500); }
}

/* Skip link (WCAG 2.4.1): oculto hasta recibir foco de teclado. */
.skip-link { position: absolute; left: .5rem; top: -3.5rem; z-index: 10000; background: var(--green-800); color: #fff;
  padding: .65rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: .5rem; outline: 3px solid var(--lime); outline-offset: 2px; color: #fff; }
#main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* ---------- Canchas / profiles (generated by _deploy/build-golferos-canchas.py) ---------- */
.fact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem 1.4rem; margin: 0 0 1rem; }
.fact-list dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sand-700); }
.fact-list dd { margin: .15rem 0 0; font-weight: 600; }
.fact-blank, .dim-empty { color: var(--ink-soft); font-weight: 400; font-style: italic; }
.badge-ver, .badge-pend {
  display: inline-block; padding: .22rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.badge-ver { background: var(--green-800); color: #fff; }
.badge-pend { background: transparent; color: var(--ink-soft); border: 1px dashed var(--line); }
.rule-list { padding-left: 1.2rem; display: grid; gap: .55rem; }
.club-item a { text-decoration: none; color: inherit; display: block; }
.club-item a:hover { color: var(--green-700); text-decoration: underline; }
