/* IV Revival, idea G's inner pages (2026-11-15). Loaded after g.css on every page except the home page: g.css gives the
   whole site its look (her logo's black, warm white and green, Archivo's wide capitals for headlines, Public Sans for
   sentences, the header, the footer, the buttons); this file is what every inner page shares on top of it:
     1. the header is solid from the top (there is no film behind it here)
     2. THE opening (one shape for every inner page, Rulebook step 8): on a phone the headline, then her picture, then
        the words and at most one button; on a computer the words on the left edge of the page's one grid and her
        picture filling the right half to the window's edge, so the margin on the left is the margin of every section
     3. the trail back (Home / IV menu / Renew IV)
     4. stickers on the opening picture (the home's die-cut stickers, smaller)
     5. one big Google review, its best words swiped with her green marker
     6. the questions, opening one at a time
     7. the other drips, each bag on its own colour, each opening its page
     8. the end of every page: the black plate with the white and blue rings, and Book
   Each kind of page then has its own file for what only it has. Reduce Motion: calmer, never frozen. */

/* 1. the header: solid from the top */
body.gi .f-hd::before { opacity: 1; }
body.gi .f-hd { background: var(--ink); }

/* 2. THE opening */
.gi-open {
  --pic-h: clamp(460px, 74svh, 820px);
  display: grid;
  grid-template-columns: [full-start] minmax(var(--gut), 1fr) [words-start] minmax(0, calc(var(--max) / 2)) [pic-start] minmax(0, calc(var(--max) / 2)) [words-end] minmax(var(--gut), 1fr) [full-end];
  grid-template-rows: 1fr auto auto 1fr;
  min-height: var(--pic-h);
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.gi-open__head { grid-column: words-start / pic-start; grid-row: 2; padding: clamp(40px, 4vw, 72px) clamp(32px, 4.4vw, 84px) 0 0; }
.gi-open__more { grid-column: words-start / pic-start; grid-row: 3; padding: 0 clamp(32px, 4.4vw, 84px) clamp(40px, 4vw, 72px) 0; }
.gi-open__pic { grid-column: pic-start / full-end; grid-row: 1 / -1; position: relative; margin: 0; min-height: var(--pic-h); }
.gi-open__pic > img, .gi-open__pic > picture > img, .gi-open__pic > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* sizes lean on rem so they still grow at 200% zoom, when a 1440 window lays out as the phone design (zoom test) */
.gi-open__h.f-open__h { color: var(--ink); text-shadow: none; max-width: 12ch; font-size: clamp(2.7rem, 1.6rem + 3vw, 5rem); }
.gi-open__h small { display: block; margin-top: .3em; font: 800 clamp(1rem, .85rem + .5vw, 1.4rem)/1.15 var(--font); font-stretch: var(--wide); letter-spacing: .06em; color: var(--mute-ink); }
.gi-open__line { margin-top: clamp(22px, 2vw, 30px); max-width: 42ch; font: 400 clamp(1.08rem, 1rem + .35vw, 1.3rem)/1.5 var(--text); color: var(--mute-ink); }
.gi-open__line b { color: var(--ink); font-weight: 700; }
.gi-open__more .f-btn { margin-top: clamp(24px, 2.2vw, 34px); }
.gi-open__note { margin-top: 14px; font: 600 .9rem/1.4 var(--text); color: var(--mute-ink); }
.gi-open__note a { color: var(--ink); font-weight: 700; }
.gi-open--white { background: #fff; }
.gi-open--mint { background: #eaf3df; }
/* tablets and phones: the headline, then the picture right across, then the words and the one button */
@media (max-width: 899px) {
  .gi-open { grid-template-columns: [full-start] var(--gut) [words-start] minmax(0, 1fr) [words-end] var(--gut) [full-end]; grid-template-rows: auto auto auto; min-height: 0; }
  .gi-open__head { grid-column: words-start / words-end; grid-row: 1; padding: 22px 0 22px; }
  .gi-open__pic { grid-column: full-start / full-end; grid-row: 2; min-height: 0; aspect-ratio: 5 / 4; max-height: 52svh; width: 100%; }
  .gi-open__more { grid-column: words-start / words-end; grid-row: 3; padding: 26px 0 clamp(44px, 9vw, 64px); }
  .gi-open__h.f-open__h { max-width: none; font-size: min(clamp(2.3rem, 1.9rem + 3.6vw, 3.6rem), calc((100vw - 48px) / 7.8)); } /* the min(): the longest one-word headline ("Hangover", "Replenish") fits a 320-380 screen; unchanged from 390 up */
}
@media (max-width: 599px) { .gi-open__more .f-btn { width: 100%; } }

/* 3. the trail back */
.gi-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin-bottom: clamp(18px, 1.6vw, 26px); font: 700 .74rem/1.2 var(--font); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-ink); }
.gi-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none; }
.gi-crumbs a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.gi-crumbs a::after { content: "/"; margin: 0 10px; color: #8c877c; }
.gi-crumbs [aria-current] { color: var(--mute-ink); }
@media (max-width: 899px) { .gi-crumbs { margin-bottom: 12px; } }

/* 4. stickers on the opening picture: round, die-cut edges, a little tilt (they pop in once the page has opened) */
.gi-tags { position: absolute; z-index: 2; left: clamp(-70px, -3.4vw, -40px); bottom: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.gi-tags .g-stick__s { width: clamp(108px, 5rem + 3vw, 150px); }
.gi-tags .g-stick__s b { font-size: clamp(1.15rem, 1rem + .5vw, 1.6rem); }
.gi-tags--top { bottom: auto; top: clamp(28px, 4vw, 64px); }
.f-js .gi-tags:not(.is-in) .g-stick__s { scale: .55; opacity: 0; }
.gi-tags .g-stick__s { transition: scale .55s cubic-bezier(.34,1.45,.64,1), opacity .25s ease-out; transition-delay: calc(.6s + var(--i, 0) * 120ms); }
@media (prefers-reduced-motion: reduce) { .f-js .gi-tags:not(.is-in) .g-stick__s { scale: 1; } .gi-tags .g-stick__s { transition: opacity .5s ease-out; } }
@media (max-width: 899px) {
  .gi-tags { left: auto; right: var(--gut); bottom: -34px; flex-direction: row; }
  .gi-tags--top { top: auto; bottom: -34px; }
  .gi-tags .g-stick__s { width: 96px; padding: 8px; }
  .gi-tags .g-stick__s b { font-size: 1.15rem; }
  .gi-tags .g-stick__s > span { font-size: .68rem; }
  .gi-open__pic:has(.gi-tags) + .gi-open__more { padding-top: 54px; }
}

/* 5. one big Google review */
.gi-quote { display: grid; justify-items: center; text-align: center; max-width: 980px; margin-inline: auto; }
.gi-quote__src { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 700 .82rem/1 var(--font); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-ink); }
.gi-quote__src svg { width: 26px; height: 26px; }
.gi-quote blockquote { font: 800 clamp(1.5rem, 1.9rem + .8vw, 2.9rem)/1.18 var(--font); font-stretch: 108%; letter-spacing: -.01em; text-wrap: balance; }
@media (max-width: 599px) { .gi-quote blockquote { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.6rem); } }
.gi-quote cite { display: block; margin-top: 24px; font: 700 1rem/1.3 var(--text); font-style: normal; color: var(--mute-ink); }
.gi-quote cite b { color: var(--ink); }
.gi-mk { background: linear-gradient(transparent 58%, rgba(138, 199, 62, .55) 58%, rgba(138, 199, 62, .55) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; color: inherit; padding: 0 .06em; }
.f-js .gi-quote:not(.is-in) .gi-mk { background-size: 0% 100%; }
.f-js .gi-quote .gi-mk { transition: background-size .9s cubic-bezier(.23,1,.32,1) .45s; }
@media (prefers-reduced-motion: reduce) { .f-js .gi-quote .gi-mk { transition: none; } .f-js .gi-quote:not(.is-in) .gi-mk { background-size: 100% 100%; } }

/* 6. the questions: one line each, open one to read it */
.gi-faq { max-width: 920px; margin-inline: auto; border-top: 2px solid var(--ink); }
.gi-faq details { border-bottom: 1px solid var(--line-dark); }
.gi-faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 18px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font: 800 clamp(1.02rem, .95rem + .3vw, 1.2rem)/1.3 var(--font); font-stretch: 108%; }
.gi-faq summary::-webkit-details-marker { display: none; }
.gi-faq summary::after { content: ""; justify-self: end; width: 34px; height: 34px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%230d0d0c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: rotate .25s ease; }
.gi-faq details[open] summary::after { rotate: 45deg; }
.gi-faq summary:hover { color: #3f6b14; }
.gi-faq details > div { padding: 0 56px 24px 0; font: 400 1.05rem/1.6 var(--text); color: var(--mute-ink); }
.gi-faq details > div p + p { margin-top: 12px; }
.gi-faq details > div a { color: var(--ink); font-weight: 700; }
@media (max-width: 599px) { .gi-faq details > div { padding-right: 0; } }

/* 7. the other drips: each bag on its own colour, the whole tile opens its page */
.gi-bags { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.gi-bags a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; border-radius: 18px; background: var(--tint, var(--paper-2)); color: var(--ink); text-decoration: none; transition: translate .25s ease, box-shadow .25s ease; }
.gi-bags img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; margin-bottom: 8px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gi-bags span { font: 900 .92rem/1.15 var(--font); font-stretch: var(--wide); text-transform: uppercase; }
.gi-bags b { font: 900 1.25rem/1 var(--font); font-stretch: var(--wide); }
@media (hover: hover) and (pointer: fine) { .gi-bags a:hover { translate: 0 -4px; box-shadow: 0 22px 34px -22px rgba(13,13,12,.55); } .gi-bags a:hover img { transform: rotate(-4deg) scale(1.04); } }
@media (max-width: 1099px) { .gi-bags { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .gi-bags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 8. the end of every page: on her soft green, the headline with a "9 to 9" sticker stuck on its corner, one line,
   Book, and call or text under it */
.gi-end { text-align: center; }
.gi-end__h { position: relative; display: inline-block; max-width: min(100%, 1040px); padding-inline: clamp(0px, 5vw, 90px); }
.gi-end__h .f-h2 { max-width: 13em; margin-inline: auto; }
/* the sticker hangs off the headline's top corner, clear of its last letter, and its words fit inside the circle */
.gi-end__h .g-stick__s { position: absolute; right: calc(-1 * clamp(0px, 3vw, 56px)); top: clamp(-96px, -5.6vw, -56px); width: clamp(104px, 5.4rem + 2vw, 140px); rotate: 9deg; }
.gi-end__h .g-stick__s b { font-size: clamp(1rem, .9rem + .4vw, 1.3rem); }
.gi-end__line { margin: clamp(26px, 2.4vw, 40px) auto 0; max-width: 46ch; font: 400 clamp(1.05rem, 1rem + .3vw, 1.25rem)/1.5 var(--text); color: var(--ink); text-wrap: balance; }
.gi-end__do { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: clamp(26px, 2.4vw, 36px); }
.gi-end__call { font: 700 1rem/1.3 var(--text); }
.gi-end__call a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); }
/* narrower than a laptop the headline fills the width, so the sticker sits centred above it with room to spare */
@media (max-width: 1099px) {
  .gi-end__h { padding-top: clamp(96px, 4rem + 4vw, 112px); padding-inline: 0; }
  .gi-end__h .g-stick__s { right: 50%; translate: 50% 0; top: -16px; rotate: -6deg; }
}
@media (max-width: 699px) {
  .gi-end__h .g-stick__s { width: 92px; padding: 8px; }
  .gi-end__h .g-stick__s b { font-size: 1rem; }
}
@media (max-width: 599px) { .gi-end__do .f-btn { width: 100%; } }

/* small things every inner page uses */
.gi-prose { max-width: 68ch; font: 400 clamp(1.04rem, 1rem + .2vw, 1.15rem)/1.65 var(--text); color: var(--mute-ink); }
.gi-prose p + p { margin-top: 1em; }
.gi-prose b, .gi-prose strong { color: var(--ink); }
.gi-prose a { color: var(--ink); font-weight: 700; }
.gi-note { font: 400 .92rem/1.5 var(--text); color: var(--mute-ink); }

/* a black card inside a light section: the light section swaps the small-text grey for the paper one (2:1 on black),
   so the card takes the light-on-black grey back (the ready check's readability check, 2026-11-15) */
.gi :is(.g-plate, .co-talk, .co-towns__home, .pc--home, .ce-pad__do) { --mute-ink: rgba(255, 255, 255, .74); --mute-light: rgba(255, 255, 255, .74); }

/* a section whose decoration (a hand-drawn circle, a tilted sticker) may poke a few pixels past a 320 screen: clip it
   sideways only, so the page never scrolls sideways. Never for text or tables: those get smaller instead. */
.gi-clipx { overflow-x: clip; }

/* 320 wide (a laptop zoomed to 400%, the smallest phones): one long word in a big heading ("MEMBERSHIP",
   "AFTERNOONS") was wider than the screen. 360 and up keep each page's own sizes. */
@media (max-width: 340px) { .gi main .f-h2 { font-size: clamp(1.6rem, 1rem + 4vw, 2.2rem); } }

/* Reading pages, "four more" (the heat page's last row): each item opens its own page. The link carries the item's
   layout so the picture, name and line keep the same spacing; the name underlines and the picture lifts on hover. */
.gl-more__a { display: grid; align-content: start; gap: 8px; color: inherit; text-decoration: none; border-radius: 22px; }
.gl-more__a b { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(13,13,12,.28); text-underline-offset: 5px; }
.gl-more__a img { transition: translate .25s ease; }
@media (hover: hover) and (pointer: fine) { .gl-more__a:hover b { text-decoration-color: var(--sun); text-decoration-thickness: 3px; } .gl-more__a:hover img { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .gl-more__a img { transition: none; } }
.gl-more__a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
