/* GoalkeeperGuide managed-page components — hardened 2026-09-28.
   Governed by the canonical Google Drive master blueprint, section 6A.
   Everything is prefixed and opt-in: this file must never restyle legacy bodies globally. */
:root {
  --gkg-pitch: #0b8743;
  --gkg-pitch-field: #087a3d;
  --gkg-deep: #075f32;
  --gkg-lime: #b7ed3f;
  --gkg-navy: #071a2e;
  --gkg-cream: #f5f3ec;
  --gkg-white: #fff;
  --gkg-ink: #102033;
  --gkg-muted: #596879;
  --gkg-line: #dce3df;
  --gkg-focus: #b7ed3f;
  --gkg-content: 1160px;
  --gkg-reading: 70ch;
  --gkg-font-body: InterVariable, Inter, ui-sans-serif, system-ui, Arial, sans-serif;
  --gkg-font-heading: "Barlow Semi Condensed", InterVariable, Inter, ui-sans-serif, system-ui, sans-serif;
  --gkg-radius-sm: 7px;
  --gkg-radius-md: 11px;
  --gkg-radius-lg: 16px;
  --gkg-shadow-card: 0 10px 28px rgba(7, 26, 46, .075);
}

/* Existing page.php supplies the main landmark. A reviewed managed body owns
   its opening and sections, as on the managed single.php branch. Legacy pages
   remain on their existing layout; this opt-in is shared across Page builders. */
body:has(.gkg-page--template-owned) #soledad_wrapper { width: 100%; max-width: none; }
.gkg-standard-page:has(.gkg-page--template-owned) { margin-top: 0; }
.gkg-standard-page:has(.gkg-page--template-owned) > .gkg-page-hero { display: none; }
.gkg-standard-page:has(.gkg-page--template-owned) > .gkg-page-layout { width: 100%; max-width: none; margin: 0; padding: 0; }
.gkg-standard-page:has(.gkg-page--template-owned) .gkg-page-content { width: 100%; max-width: none; margin: 0; padding: 0; }

/* Opt-in managed page foundation. */
.gkg-page { color: var(--gkg-ink); background: var(--gkg-white); font: 16px/1.65 var(--gkg-font-body); }
.gkg-page, .gkg-page * { box-sizing: border-box; }
.gkg-page img { display: block; max-width: 100%; height: auto; }
.gkg-page .gkg-page__sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.gkg-page a { color: var(--gkg-deep); text-underline-offset: .18em; }
/* Two-colour focus: white inner edge and navy outer edge remain visible on
   light and dark surfaces. Inspect clipping and inline link fragments in theme. */
:is(.gkg-page, .gkg-focus-scope) :is(a, button, input, select, summary, textarea):focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px var(--gkg-navy); }
.gkg-page h1, .gkg-page h2, .gkg-page h3 { text-wrap: balance; }
.gkg-page h2 { text-align: left; }
.gkg-page__wrap { width: min(var(--gkg-content), calc(100% - 40px)); margin-inline: auto; }
.gkg-page__reading { max-width: var(--gkg-reading); }
.gkg-page .gkg-page__reading > p + p { margin-top:16px; }
.gkg-page .gkg-page__reading > .gkg-page__instructions { margin-top:24px; margin-bottom:24px; }
.gkg-page__eyebrow { margin: 0 0 10px; color: var(--gkg-navy); font-size: 11px; font-weight: 850; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; }
.gkg-page__eyebrow--rule { display: flex; align-items: center; gap: 9px; }
.gkg-page__eyebrow--rule:before { width: 24px; height: 3px; flex: 0 0 24px; border-radius: 3px; background: var(--gkg-lime); content: ""; }
.gkg-page__title { max-width: 16ch; margin: 0 0 20px; font: 700 clamp(44px, 6vw, 76px)/.98 var(--gkg-font-heading); letter-spacing: -.035em; }
.gkg-page .gkg-page__heading { max-width: 24ch; margin: 0 0 15px; color: var(--gkg-navy); font: 700 clamp(32px, 4vw, 48px)/1.04 var(--gkg-font-heading); letter-spacing: -.025em; }
.gkg-page__lede { max-width: 60ch; margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.56; }
.gkg-page__copy { max-width: var(--gkg-reading); margin: 0; color: var(--gkg-muted); }
.gkg-page__section { padding-block: clamp(52px, 5.4vw, 72px); }
.gkg-page__section--paper { background: var(--gkg-white); }
.gkg-page__section--warm { background: var(--gkg-cream); }
.gkg-page__section--deep { background: var(--gkg-deep); color: var(--gkg-white); }
.gkg-page__section--navy { background: var(--gkg-navy); color: var(--gkg-white); }
.gkg-page__section--deep .gkg-page__eyebrow, .gkg-page__section--navy .gkg-page__eyebrow { color: var(--gkg-lime); }
.gkg-page__section--deep .gkg-page__copy, .gkg-page__section--navy .gkg-page__copy { color: #e5f3e9; }
.gkg-page__section--navy .gkg-page__copy { color: #dce7ed; }
.gkg-page .gkg-page__section--deep .gkg-page__heading, .gkg-page .gkg-page__section--navy .gkg-page__heading { color: #fff; }
.gkg-page .gkg-page__section--navy a, .gkg-page .gkg-page__section--deep a { color: var(--gkg-lime); }
.gkg-page__section--pitch { background: var(--gkg-pitch-field); color: var(--gkg-white); }
.gkg-page__section--pitch .gkg-page__eyebrow, .gkg-page__section--pitch .gkg-page__copy { color: var(--gkg-white); }
.gkg-page__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 5vw, 76px); }
.gkg-page__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.gkg-page__cards { margin-top: 32px; }
.gkg-page .gkg-page__cards + p { margin-top:24px; }
.gkg-page .gkg-page__note + h3, .gkg-page .gkg-page__reading > h3 { margin-top:24px; }
.gkg-page__hero { position: relative; isolation: isolate; overflow: hidden; background: var(--gkg-navy); color: var(--gkg-white); }
.gkg-page__hero .gkg-page__wrap { position: relative; z-index: 2; display: flex; align-items: center; min-height: 500px; }
.gkg-page__hero-copy { width: min(740px, 100%); padding: 58px 0 66px; }
.gkg-page__hero-copy:before { display: block; width: 58px; height: 5px; margin-bottom: 24px; border-radius: 5px; background: var(--gkg-lime); content: ""; }
.gkg-page__hero .gkg-page__title { max-width: 14ch; margin-bottom: 22px !important; font: 700 clamp(52px, 6.8vw, 86px)/.94 var(--gkg-font-heading); letter-spacing: -.04em; }
.gkg-page__hero .gkg-page__title em { color: var(--gkg-lime); font-style: normal; }
.gkg-page__hero .gkg-page__lede { max-width: 49ch; color: #f1f7f1; font-size: clamp(18px, 1.7vw, 21px); }
.gkg-page__hero .gkg-page__eyebrow { color: #fff; }
.gkg-page .gkg-page__hero-photo { position: absolute; z-index: 0; inset: 0; margin: 0; background: var(--gkg-navy); }
.gkg-page__hero-photo:after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,46,.96) 0%, rgba(7,26,46,.82) 36%, rgba(7,26,46,.25) 65%, rgba(7,26,46,.32) 100%); content: ""; }
.gkg-page .gkg-page__hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.gkg-page__hero-strip { position: relative; z-index: 2; background: var(--gkg-pitch); }
.gkg-page__hero-strip .gkg-page__wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 0; }
.gkg-page__hero-strip div { padding: 20px 25px; border-right: 1px solid rgba(255,255,255,.25); }
.gkg-page__hero-strip div:first-child { padding-left: 0; }
.gkg-page__hero-strip div:last-child { border-right: 0; }
.gkg-page__hero-strip small { display: inline-block; margin-bottom: 7px; padding: 2px 6px; border-radius: 3px; background: var(--gkg-lime); color: var(--gkg-navy); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.gkg-page__hero-strip strong { display: block; color: #fff; font-size: 15px; line-height: 1.25; }
.gkg-page__hero-rule { height: 8px; background: linear-gradient(90deg, var(--gkg-lime) 0 28%, var(--gkg-pitch) 28% 100%); }
.gkg-page__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.gkg-page__button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 19px; border: 2px solid var(--gkg-lime); border-radius: var(--gkg-radius-sm); background: var(--gkg-lime); color: var(--gkg-navy) !important; font-size: 14px; font-weight: 850; line-height: 1.2; text-align: center; text-decoration: none; }
.gkg-page__button:hover { background: #d0f57d; }
.gkg-page .gkg-page__button:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px var(--gkg-navy); }
.gkg-page__button--outline { border-color: var(--gkg-lime); background: transparent; color: inherit !important; }
.gkg-page__button--outline:hover { background: var(--gkg-lime); color: var(--gkg-navy) !important; }
.gkg-page__card { height: 100%; padding: clamp(23px, 3vw, 32px); border: 1px solid var(--gkg-line); border-top: 5px solid var(--gkg-lime); border-radius: var(--gkg-radius-md); background: #fff; box-shadow: var(--gkg-shadow-card); }
.gkg-page__card h3 { margin: 0 0 10px; color: var(--gkg-navy); font: 700 23px/1.12 var(--gkg-font-heading); letter-spacing: -.015em; }
.gkg-page__card p { margin: 0; color: var(--gkg-muted); }
.gkg-page__card--ordered { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; text-align: center; border-top-color: var(--gkg-navy); }
.gkg-page__card-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border: 0; border-radius: 50%; background: var(--gkg-lime); color: var(--gkg-navy); font: 800 18px/1 var(--gkg-font-heading); }
.gkg-page__rule { width: 52px; height: 4px; margin: 0 0 20px; border: 0; border-radius: 4px; background: var(--gkg-lime); }
/* Paired teaching views keep source edges; one caption owns the explanation. */
.gkg-page .gkg-page__paired-figure { margin:24px 0; padding:0; border:0; background:transparent; box-shadow:none; }
.gkg-page .gkg-page__teaching-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:center; }
.gkg-page .gkg-page__teaching-pair img { display:block; width:100%; max-width:100%; height:auto; margin:0; border:0; box-shadow:none; object-fit:contain; }
.gkg-page .gkg-page__teaching-map { display:block; width:100%; max-width:450px; height:auto; margin-inline:auto; }
.gkg-page .gkg-page__teaching-photos { min-width:0; }
.gkg-page .gkg-page__teaching-detail { display:grid; grid-template-columns:minmax(0,160px) minmax(0,1fr); gap:16px; align-items:center; margin-top:16px; }
.gkg-page .gkg-page__teaching-detail p { margin:0; color:var(--gkg-ink); font:400 16px/1.5 var(--gkg-font-body); }
.gkg-page .gkg-page__teaching-crop { position:relative; overflow:clip; aspect-ratio:6/7; }
.gkg-page .gkg-page__teaching-crop img { position:absolute; width:640%; max-width:none; height:auto; left:var(--gkg-detail-x,-200%); top:var(--gkg-detail-y,-32.142857%); }
.gkg-page .gkg-page__paired-figure figcaption { margin:18px auto 0; padding:0; max-width:78ch; color:var(--gkg-navy); font:400 16px/1.6 var(--gkg-font-body); background:transparent; }
/* The preserved background is contextual; the paired instruction view stays whole. */
.gkg-page .gkg-page__hero-photo--preserve img { position:absolute; right:0; top:0; width:auto; max-width:100%; height:100%; object-fit:contain; object-position:right center; mask-image:linear-gradient(90deg,transparent,black 24%),linear-gradient(180deg,black 75%,transparent); mask-composite:intersect; }
@media(max-width:650px) { .gkg-page .gkg-page__teaching-pair { grid-template-columns:1fr; gap:18px; } .gkg-page .gkg-page__hero-photo--preserve img { width:100%; height:auto; object-position:center top; } }
@media(max-width:650px) { .gkg-page .gkg-page__teaching-detail { grid-template-columns:1fr; } .gkg-page .gkg-page__teaching-crop { width:100%; max-width:280px; margin-inline:auto; } }
.gkg-page .gkg-page__image { overflow: hidden; margin: 0; border: 2px solid var(--gkg-navy); border-radius: var(--gkg-radius-md); background: var(--gkg-navy); }
.gkg-page__image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gkg-page__image--instruction img { aspect-ratio: auto; object-fit: contain; }
.gkg-page__image figcaption { padding: 12px 17px; color: #dce7ed; font-size: 12px; }
.gkg-page__inset { padding: clamp(26px, 4vw, 46px); border-left: 6px solid var(--gkg-lime); border-radius: 0 var(--gkg-radius-md) var(--gkg-radius-md) 0; background: #fff; box-shadow: var(--gkg-shadow-card); }
.gkg-page__inset h3 { margin: 0 0 10px; color: var(--gkg-navy); font: 700 28px/1.08 var(--gkg-font-heading); letter-spacing: -.02em; }
.gkg-page__inset p { margin: 0; color: var(--gkg-muted); }
.gkg-page__note { padding: 17px 19px; border-left: 5px solid var(--gkg-lime); border-radius: 0 var(--gkg-radius-sm) var(--gkg-radius-sm) 0; background: var(--gkg-navy); color: #e7eef3; }
.gkg-page__note strong { color: #fff; }
.gkg-page .gkg-page__note a { color: var(--gkg-lime); }
.gkg-page__sources { padding-block: 26px; border-top: 1px solid var(--gkg-line); background: #fff; color: var(--gkg-muted); font-size: 12px; }
.gkg-page__sources p { margin: 0; }
.gkg-page__proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.gkg-page__proof span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.5); border-radius: 100px; color: #fff; font-size: 12px; font-weight: 800; }
.gkg-page__tool-intro { max-width: 780px; margin-bottom: 30px; }
.gkg-page__tool-demo { padding: 32px; border: 2px solid var(--gkg-deep); border-top: 7px solid var(--gkg-lime); border-radius: 11px; background: #fff; box-shadow: 0 14px 30px rgba(7,26,46,.08); }
.gkg-page__tool-demo h3 { margin: 0 0 9px; color: var(--gkg-navy); font: 700 29px/1.08 var(--gkg-font-heading); letter-spacing: -.02em; }
.gkg-page__tool-demo p { margin: 0 0 20px; color: var(--gkg-muted); }
.gkg-page__tool-demo label { display: block; margin-bottom: 7px; font-weight: 800; }
.gkg-page__tool-demo select { width: 100%; max-width: 360px; min-height: 48px; padding: 8px 10px; border: 1px solid #879b90; border-radius: 5px; background: #fff; color: var(--gkg-ink); font: inherit; }
.gkg-page__tool-demo .gkg-page__button { margin-top: 18px; }
.gkg-page__brandline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--gkg-line); }
.gkg-page__brandline img { width: min(240px, 55%); }
.gkg-page__brandline span { color: var(--gkg-navy); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) {
  .gkg-page__wrap { width: calc(100% - 28px); }
  .gkg-page__grid, .gkg-page__grid--three { grid-template-columns: 1fr; }
  .gkg-page__hero .gkg-page__wrap { min-height: 530px; align-items: flex-end; }
  .gkg-page__hero-copy { padding: 58px 0 58px; }
  .gkg-page .gkg-page__hero-photo img { object-position: 65% center; }
  .gkg-page__hero-photo:after { background: linear-gradient(0deg, rgba(7,26,46,.98) 0%, rgba(7,26,46,.89) 48%, rgba(7,26,46,.18) 100%); }
  .gkg-page__hero-strip .gkg-page__wrap { grid-template-columns: 1fr; }
  .gkg-page__hero-strip div, .gkg-page__hero-strip div:first-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .gkg-page__hero-strip div:last-child { border-bottom: 0; }
  .gkg-page__section { padding-block: 36px; }
  .gkg-page__eyebrow { margin-bottom: 8px; }
  .gkg-page__hero .gkg-page__title { font-size: clamp(44px, 11vw, 62px); }
  .gkg-page__tool-demo { padding: 24px; }
}
/* A stacked layout does not turn a 651–760px tablet into a phone spacing target. */
@media (min-width: 651px) and (max-width: 900px) {
  .gkg-page__section { padding-block: 52px; }
}
@media print {
  .gkg-page { color: #111; background: #fff; font: 11pt/1.45 var(--gkg-font-body); }
  .gkg-page__section { padding: 0 0 16mm; background: #fff !important; color: #111 !important; }
  .gkg-page__hero, .gkg-page__actions, .gkg-page__tool-demo, .gkg-page__image { display: none !important; }
  .gkg-page__grid, .gkg-page__grid--three { display: block; }
  .gkg-page__card, .gkg-page__inset { margin-bottom: 5mm; border: 1px solid #b6beb8; box-shadow: none; break-inside: avoid; }
  .gkg-page .gkg-page__heading { font-size: 21pt; }
  .gkg-page__eyebrow, .gkg-page__copy, .gkg-page__card p { color: #333 !important; }
  .gkg-page__brandline { margin-bottom: 8mm; border-bottom: 2px solid #0b8743; }
  .gkg-page__brandline img { width: 52mm; }
}

.gkg-tool {
  border: 1px solid var(--gkg-line);
  border-top: 7px solid var(--gkg-lime);
  border-radius: 14px;
  background: var(--gkg-white);
  box-shadow: 0 15px 35px rgba(7, 26, 46, .09);
  overflow: hidden;
}
.gkg-tool__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: var(--gkg-navy);
  color: var(--gkg-white);
}
.gkg-tool__head img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  flex: 0 0 auto;
}
.gkg-tool__eyebrow {
  margin: 0 0 3px;
  color: var(--gkg-lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gkg-tool__head h2 {
  margin: 0;
  color: var(--gkg-white);
  font: 700 clamp(27px, 3vw, 36px)/1.06 var(--gkg-font-heading);
  letter-spacing: -.015em;
  text-align: left;
}
.gkg-tool__body { padding: 27px; }
.gkg-tool__intro { margin: 0 0 20px; max-width: 72ch; color: var(--gkg-muted); }
.gkg-tool__field label, .gkg-tool__field legend {
  display: block;
  margin: 0 0 7px;
  color: var(--gkg-ink);
  font-size: 13px;
  font-weight: 900;
}
.gkg-tool select, .gkg-tool input[type="date"], .gkg-tool input[type="time"] {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #9eaea8;
  border-radius: 6px;
  background: #fff;
  color: var(--gkg-ink);
  font: inherit;
  font-size: 14px;
}
.gkg-tool button {
  min-height: 44px;
  padding: 9px 15px;
  border: 2px solid var(--gkg-lime);
  border-radius: 6px;
  background: var(--gkg-lime);
  color: var(--gkg-navy);
  font: 850 13px var(--gkg-font-body);
  cursor: pointer;
}
.gkg-tool button:hover { background: #d0f57d; }
.gkg-tool button.gkg-tool__secondary { background: #fff; color: var(--gkg-navy); }
.gkg-tool button.gkg-tool__secondary:hover { background: var(--gkg-cream); }
.gkg-tool button.gkg-tool__remove {
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid #b2c2b8;
  background: #fff;
  color: var(--gkg-navy);
  font-size: 11px;
}
.gkg-tool :is(button,select,input):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 4px var(--gkg-navy);
}
.gkg-tool__result {
  border-top: 5px solid var(--gkg-lime);
  background: #fff;
}
.gkg-tool__print-brand { display: none; }

@media(max-width:650px) {
  .gkg-tool__head { align-items: flex-start; flex-direction: column; padding: 20px; gap: 15px; }
  .gkg-tool__head img { width: 190px; }
  .gkg-tool__body { padding: 20px; }
}

@media print {
  @page { size: auto; margin: 14mm; }
  .gkg-tool { border: 0; box-shadow: none; border-radius: 0; }
  .gkg-tool__head, .gkg-tool__body { display: none !important; }
  .gkg-tool__result { display: block !important; border: 0; background: #fff; }
  .gkg-tool__print-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 3px solid var(--gkg-navy); }
  .gkg-tool__print-brand img { width: 235px; height: auto; }
  .gkg-tool__print-brand span { color: var(--gkg-navy); font: 850 12px var(--gkg-font-body); }
}

/* Instruction lists own their layout; a nearby intro grid must not capture them. */
.gkg-page__instructions {
  display: block !important;
  width: 100%;
  max-width: 76ch;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  color: var(--gkg-navy);
}
.gkg-page__instructions > h3 {
  display: block;
  height: auto;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
  font: 700 24px/1.15 var(--gkg-font-heading);
}
.gkg-page__instructions > ol {
  display: block;
  margin: 0;
  padding: 0 0 0 25px;
  list-style: decimal outside !important;
}
.gkg-page__instructions > ol > li {
  display: list-item !important;
  margin: 0 0 10px;
  padding: 0 0 0 5px;
  list-style: decimal outside !important;
  font: 400 16px/1.6 var(--gkg-font-body);
}
.gkg-page__instructions > ol > li:last-child { margin-bottom: 0; }
.gkg-page__instructions > ol > li::before { content: none !important; }
.gkg-page__instructions > ol > li::marker { color: var(--gkg-navy); font-weight: 800; }

/* Opt-in native featured-photo integrity: preserve the complete source frame.
   The child template supplies the figure; this utility does not rebuild it. */
body:has(.gkg-media-preserve) .gkg-article-hero-media { background-image: none !important; }
body:has(.gkg-media-preserve) .gkg-article-hero-media img { opacity: 1 !important; aspect-ratio: auto; height: auto; object-fit: contain; }
