/* Georgia Wood Char — branded video frame (click-to-play YouTube facade + custom end overlay)
   Brand tokens come from gwc-v14.css (Carbon, Pine, Moss, Clay, Sand, Ash, Paper; Fraunces + Satoshi).
   Markup: see js/gwc-video.js header. */

.gwc-vf {
  --vf-radius: 18px;
  --vf-accent: var(--clay, #B45A32);
  --vf-offset: var(--moss, #6F7D46);
  --vf-ink: var(--carbon, #151815);
  --vf-muted: var(--muted, #6B665C);
  position: relative;
  margin: 0;
  min-width: 0;
}
.gwc-vf--on-dark { --vf-ink: var(--sand, #F4EFE7); --vf-muted: var(--ash, #D8D3C8); --vf-offset: rgba(111, 125, 70, .75); }

.gwc-vf__eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font: 600 .72rem/1.2 'Satoshi', system-ui, sans-serif;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--vf-accent);
}
.gwc-vf--on-dark .gwc-vf__eyebrow { color: #E2A27F; }
.gwc-vf__eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; flex: none;
}

/* Frame: rounded stage with a soft offset accent behind it */
.gwc-vf__frame { position: relative; margin: 0 10px 10px 0; }
.gwc-vf__frame::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px;
  border: 1.5px solid var(--vf-offset); border-radius: calc(var(--vf-radius) + 2px);
  pointer-events: none;
}
.gwc-vf__stage {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9;
  border-radius: var(--vf-radius);
  overflow: hidden;
  background: radial-gradient(110% 90% at 30% 25%, #2c4d3c, #101310);
  box-shadow: 0 14px 34px rgba(21, 24, 21, .16), 0 0 0 1px rgba(21, 24, 21, .08);
  container-type: inline-size;
}
.gwc-vf--short .gwc-vf__stage { aspect-ratio: 9 / 16; }
.gwc-vf__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* Facade */
.gwc-vf__facade {
  all: unset; box-sizing: border-box;
  position: absolute; inset: 0; cursor: pointer; display: block;
  border-radius: inherit;
}
.gwc-vf__facade img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), filter .3s;
}
.gwc-vf--short .gwc-vf__facade img { object-position: center 20%; }
.gwc-vf__facade::after { /* gentle bottom shade so the runtime chip reads on any thumbnail */
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(to top, rgba(16, 19, 16, .55), rgba(16, 19, 16, 0));
  pointer-events: none;
}
.gwc-vf__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--vf-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 6px rgba(244, 239, 231, .22);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .2s;
}
.gwc-vf__play svg { width: 28px; height: 28px; margin-left: 4px; fill: #FAF7F1; }
.gwc-vf--short .gwc-vf__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
/* Custom cover art with the headline on the left: play button sits on the artwork's focal point (the green) */
.gwc-vf--play-right .gwc-vf__play { left: 79%; top: 46%; }
.gwc-vf__chip {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 4px 9px; border-radius: 999px;
  font: 600 .78rem/1.2 'Satoshi', system-ui, sans-serif; letter-spacing: .02em;
  color: #FAF7F1; background: rgba(21, 24, 21, .78);
}
.gwc-vf__facade:hover .gwc-vf__play { transform: scale(1.07); background: var(--clay-hover, #9A4C2A); }
.gwc-vf__facade:hover img { transform: scale(1.02); }
.gwc-vf__facade:focus-visible { outline: 3px solid #E9C9B6; outline-offset: -6px; }
.gwc-vf__facade:focus-visible .gwc-vf__play { box-shadow: 0 0 0 4px #FAF7F1, 0 0 0 7px var(--vf-accent); }

/* Caption */
.gwc-vf__meta { margin-top: 16px; }
.gwc-vf__title {
  margin: 0 0 6px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -.01em;
  color: var(--vf-ink);
}
.gwc-vf--feature .gwc-vf__title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.gwc-vf__sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0; font-size: .88rem; color: var(--vf-muted);
}
.gwc-vf__sub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(180, 90, 50, .5); }
.gwc-vf__sub a:hover { color: var(--vf-accent); }
.gwc-vf__desc { margin: 10px 0 0; color: var(--vf-muted); font-size: .98rem; line-height: 1.6; max-width: 62ch; }

/* End / near-end overlay */
.gwc-vf__end {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(14px, 4cqi, 32px);
  overflow: auto;
  color: #F4EFE7;
  background: radial-gradient(120% 100% at 15% 0%, rgba(35, 67, 51, .97), rgba(16, 19, 16, .98) 70%);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.gwc-vf__end.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.gwc-vf__end-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gwc-vf__btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font: 600 .88rem/1.2 'Satoshi', system-ui, sans-serif;
  background: var(--vf-accent); color: #FAF7F1;
  transition: background .2s, color .2s;
}
.gwc-vf__btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.gwc-vf__btn:hover { background: var(--clay-hover, #9A4C2A); }
.gwc-vf__btn--ghost { background: transparent; color: #F4EFE7; box-shadow: inset 0 0 0 1.5px rgba(244, 239, 231, .55); }
.gwc-vf__btn--ghost:hover { background: rgba(244, 239, 231, .12); }
.gwc-vf__btn:focus-visible, .gwc-vf__card:focus-visible { outline: 3px solid #E9C9B6; outline-offset: 2px; }
.gwc-vf__end-h {
  margin: 4px 0 0; font: 600 .72rem/1.2 'Satoshi', system-ui, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: #B9C38F;
}
.gwc-vf__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; }
.gwc-vf__card {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
  border-radius: 12px; padding: 6px; background: rgba(244, 239, 231, .06);
  transition: background .2s;
}
.gwc-vf__card:hover { background: rgba(244, 239, 231, .14); }
.gwc-vf__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.gwc-vf__card-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 8px 2px 2px; font: 500 .9rem/1.3 'Satoshi', system-ui, sans-serif; color: #F4EFE7;
}
.gwc-vf__card-d { display: block; margin: 0 2px 2px; font-size: .78rem; color: #C9C3B6; }

/* Narrow 16:9 players (phones): compact, everything fits in the frame height */
@container (max-width: 520px) {
  .gwc-vf__end { justify-content: center; gap: 7px; padding: 10px 12px; }
  .gwc-vf__end-top { gap: 6px; }
  .gwc-vf__btn { padding: 6px 11px; font-size: .76rem; gap: 6px; }
  .gwc-vf__btn svg { width: 13px; height: 13px; }
  .gwc-vf__end-h { margin: 0; font-size: .62rem; letter-spacing: .12em; }
  .gwc-vf__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gwc-vf__card { padding: 4px; border-radius: 10px; }
  .gwc-vf__card img { border-radius: 7px; }
  .gwc-vf__card-t { margin: 5px 2px 1px; font-size: .74rem; line-height: 1.25; -webkit-line-clamp: 1; }
  .gwc-vf__card-d { display: none; }
}
.gwc-vf__end [hidden] { display: none !important; }
.gwc-vf--short .gwc-vf__end { justify-content: center; gap: 10px; padding: 14px; }
.gwc-vf--short .gwc-vf__btn { padding: 8px 12px; font-size: .82rem; }
.gwc-vf--short .gwc-vf__cards { grid-template-columns: 1fr; }
.gwc-vf--short .gwc-vf__card-t { -webkit-line-clamp: 2; font-size: .82rem; }
.gwc-vf--short .gwc-vf__card-d { display: block; }
.gwc-vf--short .gwc-vf__end-h { text-align: center; }
.gwc-vf--short .gwc-vf__eyebrow { letter-spacing: .1em; font-size: .68rem; }
.gwc-vf--short .gwc-vf__play { top: 74%; }
.gwc-vf--short .gwc-vf__end-top { flex-direction: column; align-items: stretch; }
.gwc-vf--short .gwc-vf__btn { justify-content: center; }
.gwc-vf--short .gwc-vf__card { grid-template-columns: 1fr; }
.gwc-vf--short .gwc-vf__card img { aspect-ratio: 9 / 16; max-height: 170px; width: auto; margin: 0 auto; grid-row: auto; }
.gwc-vf--short .gwc-vf__card-t { text-align: center; }
.gwc-vf--short .gwc-vf__card-d { text-align: center; }

.gwc-vf__live { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ===== Layouts ===== */
.gwc-vh { padding: 80px 0; }
.gwc-vh-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.gwc-vh-feature__text .section-title { max-width: 18ch; }
.gwc-vh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; margin-top: 64px; }
.gwc-vh-shorts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.gwc-vh-shorts__row { display: grid; grid-template-columns: repeat(2, 260px); gap: 28px; }
.gwc-vh-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.gwc-vh-qa { margin-top: 72px; }
.gwc-vh-note { font-size: .95rem; color: var(--muted, #6B665C); margin-top: 14px; }
.gwc-vh-note a, .gwc-vh-link { color: var(--clay, #B45A32); text-decoration: underline; text-underline-offset: 3px; }

/* Golf page: pending full-episode card (no embed until the episode is public) */
.gwc-vf__pending {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; color: #F4EFE7; text-decoration: none;
  background: radial-gradient(110% 90% at 30% 25%, #2c4d3c, #101310);
}
.gwc-vf__pending img { width: 92px; height: auto; opacity: .95; }
.gwc-vf__pending span { max-width: 34ch; font-size: .95rem; color: #D8D3C8; }
.gwc-vf__pending b { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.25rem; color: #F4EFE7; }
.gwc-vf__pending:focus-visible { outline: 3px solid #E9C9B6; outline-offset: -6px; }
.gwc-vf__pending > * { margin: 0; }
@container (max-width: 520px) {
  .gwc-vf__pending { gap: 8px; padding: 14px 18px; }
  .gwc-vf__pending img { width: 54px; }
  .gwc-vf__pending b { font-size: 1.05rem; }
  .gwc-vf__pending span { font-size: .82rem; line-height: 1.45; }
}
.gwc-vf__pending u { text-decoration-color: rgba(233, 201, 182, .7); text-underline-offset: 3px; color: #E9C9B6; }

.rp-faq-video { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 8px 0 40px; }
.rp-faq-video > div p { color: var(--muted, #6B665C); line-height: 1.6; }
.rp-faq-video > div h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 1.45rem; line-height: 1.25; margin: 0 0 10px; color: var(--carbon, #151815); }

@media (max-width: 900px) {
  .gwc-vh { padding: 60px 0; }
  .gwc-vh-feature, .gwc-vh-split, .rp-faq-video { grid-template-columns: 1fr; gap: 28px; }
  .gwc-vh-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 52px; }
  .gwc-vh-qa { margin-top: 56px; }
  .gwc-vh-shorts { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  /* Shorts: swipe row with a peek of the next card; stays inside the page padding */
  .gwc-vh-shorts__row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(66vw, 250px);
    position: relative; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 0;
    padding: 0 0 14px; scrollbar-width: thin;
  }
  .gwc-vh-shorts__row > .gwc-vf { scroll-snap-align: start; }
  .gwc-vf__frame { margin: 0 8px 8px 0; }
  .gwc-vf__frame::before { inset: 8px -8px -8px 8px; }
  .gwc-vf__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .gwc-vf__play svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .gwc-vf__facade img, .gwc-vf__play, .gwc-vf__end, .gwc-vf__btn, .gwc-vf__card { transition: none !important; }
  .gwc-vf__facade:hover img, .gwc-vf__facade:hover .gwc-vf__play { transform: none; }
}

/* Hub feature: heading first in the DOM (good outline), video shown on the left on wide screens */
@media (min-width: 901px) {
  .gwc-vh-feature > .gwc-vf { order: 1; }
  .gwc-vh-feature > .gwc-vh-feature__text { order: 2; }
}

/* Grid children must be allowed to shrink (keeps the Shorts swipe row from widening the page) */
.gwc-vh-feature > *, .gwc-vh-grid > *, .gwc-vh-shorts > *, .gwc-vh-split > *, .rp-faq-video > * { min-width: 0; }
