/* ==========================================================================
   A Three Days' Journey — athreedaysjourney.com
   Brand (Renewal Intensive Brand & Style Sheet): warm only — ink, umber,
   amber, sand, paper, soft. Konfus for kickers and headings, Konfus Brush
   for the single hero word, EB Garamond for reading. The torn desert band
   is the brand; everything else supports it.
   Layout follows thedwellingplacems.com: white sticky header, paper hero
   with an emblem card, alternating warm bands, white panels, light footer.
   ========================================================================== */

@font-face { font-family: "Konfus"; src: url("../fonts/Konfus-Regular.woff2") format("woff2"), url("../fonts/Konfus-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Konfus Brush"; src: url("../fonts/Konfus-Brush.woff2") format("woff2"), url("../fonts/Konfus-Brush.woff") format("woff"); font-display: swap; }

:root {
  /* palette — sampled from the cover (brand sheet, p. 2) */
  --ink: #3E3126;        /* body text and display lettering; never true black */
  --umber: #5A3419;      /* headings, header bands, primary buttons */
  --amber: #A96C31;      /* rules, bullets, numbers, the accent */
  --amber-ink: #8B5524;  /* amber deepened for small text and filled buttons (AA contrast) */
  --sand: #C9BD9A;       /* hairlines and the Holy Defiance mark */
  --paper: #FBF7F1;      /* the page */
  --soft: #6E6053;       /* captions, secondary text */
  --white: #FFFFFF;
  --mist: #F4ECDF;       /* alternating bands */
  --line: #E8DDCB;
  --line-2: #D8C9AE;
  --ok: #4F6A33;
  --bad: #9B2C2C;
  /* type */
  --display: "Konfus", "EB Garamond", Georgia, serif;
  --brush: "Konfus Brush", "Konfus", Georgia, serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  /* shape */
  --wrap: 1180px;
  --gutter: max(16px, min(4vw, 40px));
  --r-sm: 3px;
  --r-md: 6px;
  --shadow: 0 1px 2px rgba(62, 49, 38, .06), 0 8px 22px rgba(62, 49, 38, .07);
  --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.6; font-kerning: normal; }
img { max-width: 100%; display: block; }
a { color: var(--amber-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--umber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: normal; line-height: 1.15; color: var(--umber); margin: 0 0 .5em; letter-spacing: .015em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.8vw, 56px); }
h2 { font-size: clamp(30px, 3.4vw, 42px); }
h3 { font-size: clamp(21px, 2vw, 25px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--umber); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--soft); }
.serif { font-family: var(--serif); }
.center { text-align: center; }
[hidden] { display: none !important; }
.eyebrow, .kicker { font-family: var(--display); font-size: 14px; line-height: 1.3; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 12px; font-style: normal; }
.accent { color: var(--amber); }
.text-link { font-family: var(--display); font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--amber-ink); white-space: nowrap; }
.text-link:hover { color: var(--umber); }
.text-link::after { content: " \2192"; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; padding: 14px 22px; border: 0; border-radius: var(--r-sm); background: var(--umber); color: var(--paper); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; text-align: center; }
.btn:hover { background: #47290f; color: var(--white); }
.btn.gold, .btn-accent { background: var(--amber-ink); color: var(--white); }
.btn.gold:hover, .btn-accent:hover { background: var(--umber); }
.btn.line, .btn-outline { background: transparent; color: var(--umber); box-shadow: inset 0 0 0 1.5px var(--umber); }
.btn.line:hover, .btn-outline:hover { background: var(--umber); color: var(--paper); }
.btn.light { color: var(--umber); }
.btn.small { padding: 10px 14px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s4); }
.link { background: none; border: none; padding: 0; color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* ---------- announcement + header ---------- */
.announce { background: var(--umber); color: var(--paper); font-size: 16.5px; }
.announce .wrap { display: flex; gap: 6px 14px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; flex-wrap: wrap; }
.announce a { color: #F1D9B5; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.announce .x { background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--paper); margin-left: 4px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 41; }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; min-width: 0; }
.brand .seal { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--display); font-size: 21px; line-height: 1.1; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.brand-tag { font-family: var(--display); font-size: 10px; line-height: 1.4; letter-spacing: .26em; text-transform: uppercase; color: var(--amber-ink); margin-top: 4px; white-space: nowrap; }
.brand:hover .brand-name { color: var(--umber); }
.mainnav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.mainnav a { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 14px 9px; border-radius: var(--r-sm); white-space: nowrap; }
.mainnav a:hover { color: var(--amber-ink); }
.mainnav a[aria-current="page"] { color: var(--umber); box-shadow: inset 0 -2px 0 var(--amber); }
.head-actions { display: flex; align-items: center; gap: 4px; }
.head-actions .speak { margin-left: 6px; padding: 12px 15px; font-size: 12px; white-space: nowrap; letter-spacing: .12em; }
.iconbtn { position: relative; background: none; border: none; color: var(--ink); width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; text-decoration: none; }
.iconbtn:hover { background: var(--mist); color: var(--umber); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .count { position: absolute; top: 3px; right: 1px; background: var(--amber-ink); color: var(--white); font-family: var(--serif); font-size: 12px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.menu-toggle { display: none; }
@media (max-width: 1180px) {
  .mainnav { position: fixed; inset: calc(78px + env(safe-area-inset-top, 0px)) 0 auto 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 22px; gap: 0; transform: translateY(-130%); transition: transform .25s; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(62,49,38,.08); max-height: calc(100vh - 78px); overflow: auto; z-index: 39; }
  .mainnav.open { transform: none; }
  .mainnav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .mainnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); padding-left: 12px; }
  .menu-toggle { display: inline-flex; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 68px; gap: 8px; }
  .mainnav { inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; }
  .head-actions .speak { display: none; }
  .brand { gap: 9px; }
  .brand .seal { width: 40px; height: 40px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 8.5px; letter-spacing: .2em; }
  .head-actions { gap: 0; }
  .iconbtn { width: 38px; height: 38px; }
}
@media (max-width: 370px) { .brand-tag { display: none; } }

/* ---------- section scaffolding ---------- */
.band { padding: var(--s6) 0; position: relative; }
.band.mist, .band.cream { background: var(--mist); }
.band.paper { background: var(--paper); }
.band.white { background: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--s4); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; max-width: 40em; color: var(--soft); font-size: 19px; }
.section-head p.eyebrow { margin: 0 0 12px; font-size: 14px; color: var(--amber-ink); }
.section-head .more { white-space: nowrap; }
.section-intro { font-size: 20px; line-height: 1.6; max-width: 36em; }
.rule-top { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .band { padding: var(--s5) 0; } }

/* ---------- hero (paper, emblem card) ---------- */
.hero { padding: var(--s6) 0 var(--s5); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--s6); align-items: center; }
.lockup { margin: 0 0 18px; color: var(--ink); font-weight: normal; }
.lockup .kick { display: block; font-family: var(--display); font-size: clamp(20px, 2.5vw, 30px); letter-spacing: .32em; text-transform: uppercase; line-height: 1.2; color: var(--ink); }
.lockup .word { display: block; font-family: var(--brush); font-size: clamp(76px, 10.4vw, 138px); line-height: .92; letter-spacing: .005em; color: var(--ink); margin: 2px 0 0 -4px; }
.hero .subtitle { font-family: var(--display); font-size: clamp(22px, 2.4vw, 29px); color: var(--umber); margin: 0 0 22px; letter-spacing: .02em; }
.hero .lede { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.62; max-width: 33em; }
.hero-emblem { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: var(--s5) var(--s5) var(--s4); text-align: center; }
.hero-emblem .seal { width: min(200px, 54%); height: auto; margin: 0 auto 26px; }
.hero-emblem blockquote { margin: 0; }
.hero-emblem blockquote p { font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); margin: 0 0 14px; }
.hero-emblem cite { font-style: normal; font-family: var(--display); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.hero-emblem .rule { width: 56px; height: 1px; background: var(--amber); margin: 0 auto 18px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s5); } .hero-emblem { max-width: 560px; } }
@media (max-width: 640px) { .hero { padding: var(--s5) 0 var(--s4); } .hero-emblem { padding: 28px 22px 20px; } }

/* ---------- the torn band ---------- */
.torn-band { margin: 0; line-height: 0; background: var(--paper); }
.torn-band img { width: 100%; height: auto; }
.torn-strip { line-height: 0; background: var(--paper); }
.torn-strip img { width: 100%; height: auto; }

/* ---------- this season: dashboard of panels ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.dash-head h2 { margin: 0; }
.dash-date { margin: 0; font-family: var(--display); font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.panel, .card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.panel { padding: var(--s4); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4); padding: 14px var(--s4); border-bottom: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md) var(--r-md) 0 0; }
.panel-head h3, .panel-head h2 { margin: 0; line-height: 1.3; font-family: var(--display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--umber); }
.panel-head a { font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.span-2 { grid-column: span 2; }
@media (max-width: 1060px) { .dash-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* feature article inside a panel */
.feature-post .img { aspect-ratio: 16 / 9; background: var(--mist) center/cover; margin-bottom: 20px; border-radius: var(--r-sm); }
.img.placeholder { display: flex; align-items: center; justify-content: center; padding: 0 20px 14%; background: var(--paper) url("../img/brand/strip.webp") center bottom / 230% auto no-repeat; border: 1px solid var(--line); }
.img.placeholder span { font-family: var(--display); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--amber-ink); text-align: center; }
a:has(> .img) { text-decoration: none; }
.feature-post h3 { font-size: clamp(25px, 2.6vw, 32px); margin-bottom: 10px; }
.feature-post h3 a { color: var(--umber); text-decoration: none; }
.feature-post h3 a:hover { color: var(--amber-ink); }
.feature-post .ex { font-size: 19.5px; line-height: 1.6; color: var(--ink); max-width: 36em; }
.byline { font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { padding-top: 0; }
.post-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.post-list a { font-family: var(--display); font-size: 19px; text-decoration: none; color: var(--umber); line-height: 1.3; }
.post-list a:hover { color: var(--amber-ink); }
.post-list .byline { margin: 6px 0 0; }
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item .kind { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
.news-item h4 { font-size: 20px; margin: 4px 0 6px; line-height: 1.25; }
.news-item h4 a { text-decoration: none; color: var(--umber); }
.news-item p { font-size: 17.5px; color: var(--ink); margin: 0; line-height: 1.5; }
.news-item.pinned { background: var(--paper); padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-sm); margin-bottom: 14px; }
.news-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); }
@media (max-width: 640px) { .news-cols { grid-template-columns: 1fr; } }

/* events (mini list + calendar) */
.event-mini-list { list-style: none; margin: 0 0 18px; padding: 0; }
.event-mini-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.event-mini-list li:first-child { padding-top: 0; }
.date-badge { flex: none; width: 52px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); padding: 5px 0 6px; }
.date-badge .m { display: block; font-family: var(--display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-ink); }
.date-badge .d { display: block; font-family: var(--display); font-size: 25px; line-height: 1; color: var(--umber); }
.event-mini-list h4 { font-size: 18.5px; margin: 0 0 3px; line-height: 1.25; }
.event-mini-list h4 a { color: var(--umber); text-decoration: none; }
.event-mini-list .info { font-size: 16px; color: var(--soft); line-height: 1.4; }
.minical { margin: 0 0 18px; }
.minical .bar { display: flex; align-items: center; margin-bottom: 6px; }
.minical .bar b { font-family: var(--display); font-weight: normal; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--umber); flex: 1; }
.minical .bar button { background: none; border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--umber); }
.minical table { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.minical th { font-weight: normal; color: var(--soft); font-family: var(--display); font-size: 11.5px; letter-spacing: .1em; padding: 4px 0; }
.minical td { padding: 1px; }
.minical td span, .minical td a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; text-decoration: none; color: var(--ink); }
.minical td.other span { color: #C8BBA4; }
.minical td.today span, .minical td.today a { box-shadow: inset 0 0 0 1px var(--amber); }
.minical td a.has { background: var(--umber); color: var(--paper); }
.minical td a.has:hover { background: var(--amber-ink); }
.minical .sub { margin-top: 6px; font-size: 15px; color: var(--soft); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event-row:first-child { border-top: 1px solid var(--line); }
.datechip { text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 0 8px; background: var(--white); }
.datechip .m { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
.datechip .d { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--umber); }
.datechip .w { font-size: 13.5px; color: var(--soft); }
.event-row h3 { font-size: 22px; margin: 0 0 4px; }
.event-row h3 a { text-decoration: none; color: var(--umber); }
.event-row .info { font-size: 16.5px; color: var(--soft); }
.event-row .kind { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
.events-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 860px) { .events-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .event-row { grid-template-columns: 64px 1fr; } .event-row .act { grid-column: 2; } }

/* ---------- books ---------- */
.cover { width: min(300px, 70vw); aspect-ratio: 17 / 22; border-radius: 1px 4px 4px 1px; background: var(--white) center/cover; position: relative; box-shadow: 0 1px 2px rgba(62,49,38,.12), 0 18px 34px rgba(62,49,38,.16); }
.cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(62,49,38,.16), transparent); }
.cover.gen { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 11% 0 9%; background: var(--white); color: var(--ink); overflow: hidden; container-type: inline-size; }
.cover.gen .cs { font-family: var(--display); font-size: 5.2cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--sand); }
.cover.gen .ck { font-family: var(--display); font-size: 6.4cqw; letter-spacing: .28em; text-transform: uppercase; margin-top: 7%; }
.cover.gen .ct { font-family: var(--display); font-size: 10.5cqw; line-height: 1.1; padding: 0 9%; margin-top: 2%; color: var(--ink); }
.cover.gen .cb { width: 100%; flex: 1; margin: 7% 0; background: url("../img/brand/band-mobile.webp") center 40% / cover no-repeat; }
.cover.gen .cf { font-family: var(--display); font-size: 6cqw; padding: 0 8%; color: var(--ink); }
.cover.gen .ca { font-family: var(--display); font-size: 5cqw; letter-spacing: .4em; text-transform: uppercase; margin-top: 6%; color: var(--ink); }
.book-feature { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.book-feature .cover { width: 100%; }
.book-feature .series { margin-bottom: 10px; }
.book-feature h2 { margin-bottom: 4px; }
.book-feature .sub { font-family: var(--display); font-size: 24px; color: var(--amber-ink); margin: 0 0 18px; }
.book-feature .desc { font-size: 20px; line-height: 1.65; max-width: 36em; }
.buybox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 8px; }
.price { font-family: var(--display); font-size: 30px; color: var(--umber); }
.price s { font-size: 18px; color: var(--soft); margin-left: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s6); }
@media (max-width: 900px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shelf .item { text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 22px 20px 20px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.shelf .item:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(62,49,38,.08), 0 16px 32px rgba(62,49,38,.12); }
.shelf .item .cover { width: 58%; margin: 0 auto 20px; }
.shelf .item h3 { font-size: 19.5px; margin-bottom: 4px; line-height: 1.25; }
.shelf .item .meta { font-size: 16px; color: var(--soft); margin-top: auto; }
.badge { display: inline-block; font-family: var(--display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 12px; background: var(--umber); color: var(--paper); vertical-align: middle; }
.badge.gold { background: var(--amber-ink); color: var(--white); }
@media (max-width: 760px) { .book-feature { grid-template-columns: 1fr; gap: var(--s5); } .book-feature .cover { max-width: 240px; } }
@media (max-width: 480px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .shelf .item { padding: 16px 14px; } .shelf .item h3 { font-size: 17px; } }

/* ---------- churches: two columns + numbered pathway ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: var(--s6); align-items: start; }
.service-list { list-style: none; margin: 0; padding: var(--s2) var(--s4); background: var(--mist); border-radius: var(--r-md); }
.band.mist .service-list { background: var(--white); border: 1px solid var(--line); }
.service-list li { display: flex; gap: var(--s3); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 0; }
.service-list .num { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--amber); min-width: 38px; padding-right: 12px; border-right: 1px solid var(--sand); text-align: center; }
.service-list b { display: block; font-family: var(--display); font-weight: normal; font-size: 21px; color: var(--umber); line-height: 1.25; }
.service-list span.d { display: block; font-size: 17.5px; color: var(--ink); line-height: 1.5; margin-top: 3px; }
.photo { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); margin: var(--s5) 0 0; border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; }
.photo figcaption { font-size: 15.5px; color: var(--soft); padding: 10px 14px; background: var(--white); line-height: 1.4; }
@media (max-width: 1060px) { .two-col { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---------- mission quote ---------- */
.quote-text { text-align: center; }
.quote-text p.q { font-style: italic; font-size: clamp(22px, 2.6vw, 29px); line-height: 1.5; color: var(--ink); max-width: 840px; margin: 0 auto var(--s3); }
.quote-text .src { font-family: var(--display); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }

/* ---------- speaking / meet the author ---------- */
.speak-band { background: var(--mist); position: relative; }
.speak-band::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--sand); pointer-events: none; border-radius: var(--r-md); }
.speak-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--s6); align-items: start; position: relative; }
.speak-band h2 { font-size: clamp(32px, 4vw, 48px); }
.speak-band .intro { font-size: 20px; line-height: 1.65; max-width: 33em; }
.director { display: flex; gap: var(--s4); align-items: flex-start; margin-bottom: var(--s4); }
.headshot { flex: none; width: 170px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.headshot img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.headshot.lg { width: 100%; max-width: 380px; }
.topics { list-style: none; padding: 0; margin: 22px 0; }
.topics li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.topics li:first-child { border-top: 1px solid var(--line-2); }
.topics li b { font-family: var(--display); font-weight: normal; font-size: 20px; color: var(--umber); display: block; }
.topics li span { font-size: 17.5px; color: var(--ink); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.formats span { border: 1px solid var(--line-2); background: var(--white); border-radius: 20px; padding: 4px 12px; font-size: 16px; }
.speak-card { background: var(--white); color: var(--ink); padding: 30px; border-radius: var(--r-md); box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 3px solid var(--amber); }
.speak-card h3 { margin-bottom: 4px; }
.speak-band.wide .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); }
@media (max-width: 960px) { .speak-band .wrap, .speak-band.wide .wrap { grid-template-columns: 1fr; gap: var(--s5); } .speak-band::before { inset: 8px; } }
@media (max-width: 520px) { .director { flex-direction: column; } .headshot { width: 150px; } .speak-card { padding: 22px; } }

/* ---------- membership ---------- */
.member-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s6); align-items: start; }
.plan { border: 1px solid var(--line); background: var(--white); padding: 30px; border-radius: var(--r-md); box-shadow: var(--shadow); border-top: 3px solid var(--umber); }
.plan .p { font-family: var(--display); font-size: 46px; color: var(--umber); line-height: 1; }
.plan .p small { font-size: 18px; color: var(--soft); }
.plan ul { padding-left: 0; list-style: none; margin: 20px 0; }
.plan li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: 18px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.plan-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 20px; padding: 3px; margin-bottom: 16px; background: var(--paper); }
.plan-switch button { border: none; background: none; padding: 5px 14px; border-radius: 16px; cursor: pointer; font-family: var(--display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.plan-switch button.on { background: var(--umber); color: var(--paper); }
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.course-list li:first-child { border-top: 1px solid var(--line); }
.course-list .thumb, .thumb { aspect-ratio: 4 / 3; background: var(--mist) center/cover; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.thumb .seal { width: 46%; height: auto; opacity: .9; }
.course-list h3 { font-size: 21px; margin: 0 0 4px; }
.course-list h3 a { text-decoration: none; color: var(--umber); }
.course-list .meta { font-size: 16.5px; color: var(--soft); }
.access { font-family: var(--display); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--amber); color: var(--amber-ink); margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
.access.free { border-color: var(--ok); color: var(--ok); }
@media (max-width: 860px) { .member-grid { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---------- writing desk + podcast ---------- */
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.project { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.project:first-child { border-top: 1px solid var(--line-2); }
.project .top { display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; }
.project h3 { font-size: 23px; margin: 0; }
.project .series { font-style: italic; font-size: 17px; color: var(--amber-ink); }
.project .stage { margin-left: auto; font-family: var(--display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.project p { margin: 6px 0 10px; font-size: 18px; }
.meter { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--amber); }
.pod { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; border-radius: var(--r-md); }
.pod h3 { font-size: 25px; }
.ep { padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.ep b { font-family: var(--display); font-weight: normal; font-size: 19px; color: var(--umber); display: block; }
@media (max-width: 860px) { .desk-grid { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---------- endorsements ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.quotes blockquote { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; font-style: italic; }
.quotes blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-style: normal; font-size: 56px; line-height: .6; color: var(--amber); margin-bottom: 8px; }
.quotes cite { display: block; font-style: normal; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-top: 14px; }

/* ---------- newsletter ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.signup h2 { font-size: clamp(30px, 3.6vw, 42px); }
.signup .lead { font-size: 20px; line-height: 1.6; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type=email], .inline-form input[type=text] { flex: 1 1 200px; }
.prayer-line { display: flex; gap: 18px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.prayer-line p { font-style: italic; font-size: 22px; margin: 0; color: var(--ink); max-width: 30em; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.field > span em { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-style: italic; font-size: 15px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font-family: var(--serif); font-size: 18px; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(169,108,49,.16); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; margin: 6px 0 14px; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--umber); width: 17px; height: 17px; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 17px; }
.form-msg.ok { background: #EEF1E4; color: #33461F; border-left: 3px solid var(--ok); }
.form-msg.err { background: #F7E6E1; color: #7A2121; border-left: 3px solid var(--bad); }
fieldset { border: none; padding: 0; margin: 0 0 8px; }
legend { font-family: var(--display); font-size: 22px; color: var(--umber); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips label { border: 1px solid var(--line-2); border-radius: 20px; padding: 6px 14px; font-size: 16.5px; cursor: pointer; background: var(--white); position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--umber); border-color: var(--umber); color: var(--paper); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--amber); }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--paper); padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 22ch; padding-bottom: 18px; position: relative; }
.page-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 1px; background: var(--amber); }
.page-head p { font-size: 20.5px; color: var(--ink); max-width: 38em; margin: 0; }
.page-head .crumbs { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; color: var(--soft); }
.page-head .crumbs a { color: var(--amber-ink); text-decoration: none; }
.page-head svg.horizon { display: none; }
.post-meta { font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-top: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 10px 14px; text-decoration: none; color: var(--soft); border: none; background: none; cursor: pointer; font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="true"], .tabs button[aria-pressed="true"] { color: var(--umber); border-bottom-color: var(--amber); }

/* ---------- article ---------- */
.article { font-size: 21px; line-height: 1.72; color: var(--ink); max-width: 680px; margin: 0 auto; }
.article h2 { font-size: 30px; margin: 1.7em 0 .5em; }
.article h3 { font-family: var(--serif); font-weight: 700; color: var(--amber-ink); font-size: 23px; margin: 1.5em 0 .4em; letter-spacing: 0; }
.article blockquote { margin: 1.4em 0; padding: 18px 26px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--amber); font-style: italic; border-radius: var(--r-sm); }
.article blockquote p:last-child { margin-bottom: 0; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .5em; }
.article li::marker { color: var(--amber); }
.article hr { border: none; text-align: center; margin: 2.2em 0; }
.article hr::after { content: "\00B7  \00B7  \00B7"; color: var(--amber); letter-spacing: .6em; font-size: 20px; }
.article img { margin: 1.4em auto; border-radius: var(--r-sm); }
.article .lead-img { aspect-ratio: 16 / 9; background: var(--mist) center/cover; margin: 0 0 36px; border-radius: var(--r-sm); }
.post-foot { max-width: 680px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- the weekly article, laid out like the Weekly Article plan ----------
   White page and cream panels, as in the plan. The eyebrow and labels are Konfus
   in letter-spaced capitals; headings inside the article are amber EB Garamond
   (the "ellipsis subheadings"); the torn desert band sits under the title. The
   house formats (.scripture, .charge, .closing-line, .sign-off) come from the
   Writing Room and the editor's buttons; post.js gives older articles the same
   look where their shape makes it clear. */
:root { --cream: #F8F1E6; }
.article-head { background: var(--white); padding: var(--s5) 0 26px; }
.article-wrap { max-width: 860px; }
.article-head .crumbs { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; color: var(--soft); }
.article-head .crumbs a { color: var(--amber-ink); text-decoration: none; }
.eyebrow-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; flex-wrap: wrap; margin-bottom: 6px; }
.eyebrow, .glance dt, .book-door .eyebrow, .article .scripture cite, .article .charge::before { font-family: var(--display); font-style: normal; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-ink); }
.occasion { font-style: italic; font-size: 17px; color: var(--soft); }
.article-head h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 0; padding-bottom: 16px; border-bottom: 1.5px solid var(--amber); max-width: none; text-wrap: balance; }
.article-head .post-meta { margin-top: 14px; }
.article-hero { margin: 0; line-height: 0; background: var(--white); }
.article-hero img { width: 100%; height: auto; }
.torn-photo { width: 100%; aspect-ratio: 1200 / 816; background: var(--mist) center / cover no-repeat;
  -webkit-mask: url("../img/brand/band-mobile.webp") center / 100% 100% no-repeat; mask: url("../img/brand/band-mobile.webp") center / 100% 100% no-repeat; }
@media (min-width: 700px) {
  .torn-photo { aspect-ratio: 3 / 1; max-height: 560px; -webkit-mask-image: url("../img/brand/band-wide.webp"); mask-image: url("../img/brand/band-wide.webp"); }
}
.band.article-band { background: var(--white); padding-top: 34px; }
.article.weekly { max-width: 680px; }

/* at a glance: the plan's brief panel */
.glance { max-width: 680px; margin: 0 auto 34px; background: var(--cream); border-radius: var(--r-sm); padding: 8px 20px; }
.glance dl { margin: 0; }
.glance dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.glance dl > div:last-child { border-bottom: 0; }
.glance dt { font-size: 12px; padding-top: 3px; }
.glance dd { margin: 0; font-size: 17.5px; line-height: 1.5; color: var(--ink); }
.glance dd a { color: var(--ink); text-decoration-color: var(--line-2); }
@media (max-width: 560px) { .glance dl > div { grid-template-columns: 1fr; gap: 2px; } .eyebrow { letter-spacing: .15em; font-size: 12px; } .article blockquote.scripture { font-size: 19.5px; padding: 20px 22px 18px; } .article aside.charge { padding: 18px 20px 6px; } }

/* headings: the movements of the article */
.article.weekly h2 { font-family: var(--serif); font-weight: 700; color: var(--amber-ink); font-size: clamp(23px, 2.4vw, 26px); letter-spacing: 0; line-height: 1.3; margin: 1.8em 0 .5em; }
.article.weekly h3 { font-family: var(--display); font-weight: normal; color: var(--umber); font-size: 17px; letter-spacing: .16em; text-transform: uppercase; margin: 1.7em 0 .5em; }
.article.weekly > p:first-child { margin-top: 0; }

/* the opening Scripture: the plan's thesis panel with the reference beneath */
.article blockquote.scripture { background: var(--cream); border: 0; border-left: 3px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 24px 30px 22px; margin: 0 0 2em; font-size: 22px; line-height: 1.6; color: var(--ink); }
.article blockquote.scripture p { margin: 0 0 .5em; }
.article blockquote.scripture cite { display: block; margin-top: 12px; font-size: 12.5px; }
.article blockquote:not(.scripture) { background: var(--cream); border: 0; border-left: 3px solid var(--sand); }

/* the charge */
.article aside.charge { display: block; background: var(--cream); border-left: 3px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 20px 28px 8px; margin: 1.8em 0; }
.article aside.charge::before { content: "This week\2019s charge"; display: block; font-size: 12px; margin-bottom: 8px; }
.article aside.charge p { margin: 0 0 .8em; }
.article aside.charge ul { margin: 0 0 .8em; }

/* the closing line, between rules, and the sign-off */
.article .closing-line { text-align: center; font-weight: 700; font-style: italic; color: var(--umber); font-size: clamp(23px, 2.6vw, 28px); line-height: 1.4; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 26px 8px; margin: 2.2em 0 1.4em; text-wrap: balance; }
.article .closing-line strong, .article .closing-line em, .article .closing-line b, .article .closing-line i { font: inherit; }
.article .sign-off { text-align: center; font-style: italic; color: var(--soft); font-size: 19px; line-height: 1.5; }

/* tables: the plan's umber header and cream rows */
.article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 17.5px; line-height: 1.45; }
.article th { background: var(--umber); color: var(--paper); font-family: var(--display); font-weight: normal; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; text-align: left; padding: 10px 12px; }
.article td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:nth-child(even) td { background: var(--cream); }

/* the doorway into the book */
.book-door { max-width: 680px; margin: 52px auto 0; display: grid; grid-template-columns: 128px 1fr; gap: 26px; align-items: start; background: var(--cream); border-radius: var(--r-md); padding: 26px; }
.book-door .door-cover { display: block; line-height: 0; }
.book-door .door-cover img { width: 128px; height: auto; box-shadow: 0 1px 2px rgba(62,49,38,.12), 0 8px 18px rgba(62,49,38,.16); border-radius: 2px; }
.book-door h3 { font-family: var(--display); font-size: 23px; margin: 6px 0 8px; }
.book-door h3 em { font-family: var(--serif); font-style: italic; }
.book-door .tie { font-size: 17.5px; margin: 0 0 8px; color: var(--ink); }
.book-door .why { font-style: italic; font-size: 16.5px; color: var(--amber-ink); margin: 0 0 16px; }
.book-door .btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .book-door { grid-template-columns: 88px 1fr; gap: 16px; padding: 20px; } .book-door .door-cover img { width: 88px; } }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share a, .share button { border: 1px solid var(--line-2); background: var(--white); border-radius: 20px; padding: 6px 14px; font-size: 16px; text-decoration: none; color: var(--umber); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--amber); }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; }
.pager a { text-decoration: none; max-width: 48%; }
.pager small { display: block; font-family: var(--display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.pager span { font-family: var(--display); font-size: 19px; color: var(--umber); }

/* ---------- cards (listing pages) ---------- */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--s4); }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 16px 22px; }
.post-card .img { aspect-ratio: 16 / 9; background: var(--mist) center/cover; border-radius: var(--r-sm); margin-bottom: 16px; }
.post-card .byline, .post-card h3, .post-card p { padding: 0 6px; }
.post-card h3 { font-size: 23px; margin-bottom: 8px; }
.post-card h3 a { text-decoration: none; color: var(--umber); }
.post-card p { font-size: 17.5px; margin: 0; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.filters input[type=search] { max-width: 320px; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.product .cover { width: 100%; }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); }
.qty button { width: 40px; border: none; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 54px; border: none; text-align: center; padding: 10px 0; min-height: 0; }
.prose { font-size: 20px; line-height: 1.68; max-width: 38em; }
.prose h3 { margin-top: 1.4em; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: var(--s5); } .product .cover { max-width: 260px; } }

/* ---------- cart drawer ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(62,49,38,.42); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 61; transform: translateX(100%); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; box-shadow: none; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.open { transform: none; box-shadow: -10px 0 40px rgba(62,49,38,.18); }   /* no shadow peeking at the page edge while closed */
.drawer header { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 26px; flex: 1; }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line .mini { aspect-ratio: 17/22; background: var(--white) center/cover; border-radius: 2px; border: 1px solid var(--line); }
.cart-line .t { font-family: var(--display); color: var(--umber); font-size: 18px; line-height: 1.25; }
.cart-line .p { font-size: 16px; color: var(--soft); }
.cart-line .ctl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart-line .ctl button { width: 28px; height: 28px; border: 1px solid var(--line-2); background: var(--white); border-radius: 50%; cursor: pointer; }
.drawer footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--white); }
.drawer .total { display: flex; justify-content: space-between; font-size: 19px; margin-bottom: 12px; }
.drawer .total b { font-family: var(--display); font-weight: normal; font-size: 26px; color: var(--umber); }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.summary { background: var(--white); border: 1px solid var(--line); padding: 24px; border-radius: var(--r-md); box-shadow: var(--shadow); position: sticky; top: 100px; }
.summary h2 { font-size: 26px; }
#stripe-checkout { min-height: 420px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; }
.secure { font-size: 16px; color: var(--soft); display: flex; gap: 8px; align-items: center; margin-top: 12px; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .summary { position: static; } }

/* ---------- members portal ---------- */
.portal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.portal nav { position: sticky; top: 100px; }
.portal nav a { display: block; padding: 10px 14px; text-decoration: none; border-left: 2px solid var(--line); color: var(--ink); font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.portal nav a.on { border-left-color: var(--amber); color: var(--umber); background: var(--white); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-md); overflow: hidden; margin-bottom: 26px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.outline { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.outline h4 { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 12px 0 6px; color: var(--soft); }
.outline a { display: flex; gap: 8px; padding: 6px 4px; text-decoration: none; font-size: 17px; color: var(--ink); border-radius: 2px; }
.outline a.on { background: var(--mist); color: var(--umber); }
.outline a .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; margin-top: 4px; }
.outline a.done .dot { background: var(--ok); border-color: var(--ok); }
.lock { text-align: center; padding: 48px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.progressbar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progressbar i { display: block; height: 100%; background: var(--amber); }
@media (max-width: 900px) { .portal, .lesson-layout { grid-template-columns: minmax(0, 1fr); } .portal nav, .outline { position: static; } }

/* ---------- full calendar ---------- */
.bigcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); overflow: hidden; }
.bigcal .dow { padding: 8px; font-family: var(--display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.bigcal .day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.bigcal .day.other { background: var(--paper); color: #C2B49C; }
.bigcal .day.today { box-shadow: inset 0 0 0 2px var(--amber); }
.bigcal .day a { display: block; background: var(--umber); color: var(--paper); padding: 3px 6px; border-radius: 2px; text-decoration: none; margin-top: 4px; font-size: 14px; line-height: 1.3; }
.bigcal .day a.webinar { background: var(--amber-ink); }
@media (max-width: 760px) { .bigcal { display: none; } }

/* ---------- responsive two-column layouts ---------- */
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.cols-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s6); align-items: start; }
.cols-wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.cols-photo { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.sticky-side { position: sticky; top: 100px; }
@media (max-width: 900px) { .cols-2, .cols-side, .cols-wide, .cols-photo { grid-template-columns: 1fr; gap: var(--s5); } .sticky-side { position: static; } .headshot.lg { max-width: 280px; } }

/* ---------- footer (light, under the torn strip) ---------- */
.site-footer { background: var(--mist); color: var(--ink); padding: var(--s6) 0 0; font-size: 17.5px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.4fr; gap: var(--s5); padding-bottom: var(--s6); }
.footer-about p { margin: 16px 0; max-width: 26em; }
.footer-head { font-family: var(--display); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--umber); margin: 8px 0 var(--s3); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--amber-ink); text-decoration: underline; }
.hd-mark { width: 150px; height: auto; margin-top: 18px; }
.site-footer .social { display: flex; gap: 8px; margin-top: 16px; }
.site-footer .social a { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--umber); background: var(--white); }
.site-footer .social a:hover { border-color: var(--amber); color: var(--amber-ink); }
.site-footer .social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-signup p { margin: 0 0 14px; }
.footer-signup .inline-form input { min-height: 46px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line-2); padding-top: var(--s3); padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--soft); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--soft); }
.footer-base .notice-text { flex-basis: 100%; font-size: 14px; line-height: 1.5; }
@media (max-width: 1160px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- misc ---------- */
.notice { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 660px; margin: 0 auto; background: var(--white); color: var(--ink); padding: 16px 20px; border-radius: var(--r-md); z-index: 70; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; box-shadow: 0 14px 40px rgba(62,49,38,.22); border: 1px solid var(--line); border-left: 3px solid var(--amber); font-size: 17px; }
.notice p { margin: 0; flex: 1 1 280px; }
.preview-ribbon { position: fixed; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 69; background: var(--umber); color: var(--paper); font-family: var(--display); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 13px; border-radius: 20px; box-shadow: 0 6px 20px rgba(62,49,38,.25); }
.empty { padding: 30px; border: 1px dashed var(--line-2); text-align: center; color: var(--soft); border-radius: var(--r-md); background: var(--white); }
.panel .empty { border: 0; padding: 12px 0; text-align: left; background: none; }
.skeleton { background: linear-gradient(90deg, rgba(62,49,38,.04), rgba(62,49,38,.08), rgba(62,49,38,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toast { position: fixed; top: calc(90px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); background: var(--umber); color: var(--paper); padding: 12px 18px; border-radius: var(--r-sm); z-index: 80; box-shadow: 0 10px 30px rgba(62,49,38,.25); max-width: 360px; font-size: 17px; }
.legal-page h2 { font-size: 28px; margin-top: 1.6em; }
.note-box { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 14px 18px; font-size: 17.5px; margin: 20px 0; border-radius: var(--r-sm); }
.lede-sm { font-size: 20px; }

/* ---------- legacy hooks kept for older page fragments ---------- */
.on-dark, .band.navy, .band.night { background: var(--mist); color: var(--ink); }
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.resource-list .t { font-family: var(--display); font-size: 20px; color: var(--umber); }
.resource-list .d { font-size: 17px; color: var(--soft); }

/* ---------- The Whole Distance: the counselor's manual (page, home and books features, product note) ---------- */
.manual-hero { background: var(--white); padding: var(--s5) 0 var(--s3); }
.manual-hero .crumbs { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); margin-bottom: 26px; }
.manual-hero .crumbs a { color: var(--amber-ink); text-decoration: none; }
.manual-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s6); align-items: center; }
.manual-hero .lockup .word { font-size: clamp(72px, 9.6vw, 128px); }
.manual-hero .subtitle { font-family: var(--display); font-size: clamp(18px, 2vw, 24px); letter-spacing: .26em; text-transform: uppercase; color: var(--umber); margin: 8px 0 6px; }
.manual-hero .tagline { font-style: italic; font-size: 21px; color: var(--soft); margin: 0 0 22px; }
.manual-hero .lede { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.62; max-width: 34em; }
.manual-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 6px; }
.manual-buy .status { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
.manual-buy .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(169, 108, 49, .16); flex: none; }
.companion-note { font-size: 16.5px; color: var(--soft); margin: 18px 0 0; }
.manual-cover { margin: 0; justify-self: center; width: min(420px, 100%); }
.manual-cover img { width: 100%; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 0 1px 2px rgba(62, 49, 38, .14), 0 24px 46px rgba(62, 49, 38, .2); }
.manual-band { margin: 0; line-height: 0; background: var(--white); text-align: center; }
.manual-band img { width: 100%; max-width: 1400px; height: auto; }
@media (max-width: 980px) { .manual-hero-grid { grid-template-columns: 1fr; gap: var(--s5); } .manual-cover { width: min(320px, 78%); } }

.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.aud { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--r-md); padding: 26px 26px 22px; }
.aud h3 { font-size: 23px; margin: 0 0 10px; color: var(--umber); }
.aud p { margin: 0; font-size: 18px; line-height: 1.55; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

.manual-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s6); align-items: center; }
.manual-split.flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.prose-lg p { font-size: 19.5px; line-height: 1.65; margin: 0 0 16px; }
.visual { margin: 0; }
.visual a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.visual a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(62, 49, 38, .08), 0 16px 34px rgba(62, 49, 38, .14); }
.visual img { display: block; width: 100%; height: auto; }
.visual figcaption { font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin-top: 12px; text-align: center; line-height: 1.5; }
.manual-split > .visual { width: 100%; max-width: 440px; justify-self: center; }
@media (max-width: 960px) { .manual-split, .manual-split.flip { grid-template-columns: 1fr; gap: var(--s5); } .manual-split.flip > .visual { order: 2; } .manual-split > .visual { max-width: 380px; } }

.pair-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.pair-covers { position: relative; width: min(440px, 100%); aspect-ratio: 1 / 1.02; justify-self: center; }
.pair-covers img { position: absolute; width: 62%; height: auto; border-radius: 1px 4px 4px 1px; box-shadow: 0 1px 2px rgba(62, 49, 38, .14), 0 18px 34px rgba(62, 49, 38, .2); }
.pair-covers .back { left: 2%; top: 2%; transform: rotate(-4deg); }
.pair-covers .front { right: 2%; bottom: 2%; transform: rotate(3deg); }
.pair-list { margin: 22px 0 26px; }
@media (max-width: 960px) { .pair-split { grid-template-columns: 1fr; } .pair-covers { width: min(340px, 86%); } }

.parts-split { align-items: start; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.service-list.parts { margin-top: 26px; }
.service-list .ch { display: block; font-size: 15.5px; font-style: italic; color: var(--soft); margin-top: 6px; line-height: 1.45; }
.spec-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 26px 26px 14px; position: sticky; top: 112px; }
.spec-card h3 { font-size: 24px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--amber); }
.spec-card dl { margin: 0; }
.spec-card dl > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-card dl > div:last-child { border-bottom: 0; }
.spec-card dt { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-ink); }
.spec-card dd { margin: 3px 0 0; font-size: 18px; line-height: 1.4; }
@media (max-width: 960px) { .parts-split { grid-template-columns: 1fr; } .spec-card { position: static; } }

.visual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.grid-note { text-align: center; color: var(--soft); font-size: 16px; margin: 30px 0 0; }
@media (max-width: 900px) { .visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } .visual-grid .visual figcaption { font-size: 10.5px; letter-spacing: .12em; } }

.instruments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.inst { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.inst .who { display: inline-block; font-family: var(--display); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--white); background: var(--amber-ink); padding: 5px 10px 4px; border-radius: 2px; }
.inst h3 { font-size: 25px; margin: 14px 0 8px; color: var(--umber); }
.inst p { margin: 0; font-size: 18px; line-height: 1.55; }
@media (max-width: 760px) { .instruments { grid-template-columns: 1fr; } .inst { padding: 22px; } }

.arc { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 0 28px; }
.arc li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.arc b { font-family: var(--display); font-weight: normal; color: var(--amber-ink); font-size: 20px; min-width: 44px; }
.arc span { font-size: 18.5px; line-height: 1.35; }
.arc-note { font-size: 17.5px; color: var(--soft); margin: 18px 0 0; line-height: 1.55; }
@media (max-width: 480px) { .arc { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

.pull { font-family: var(--display); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; color: var(--umber); border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; margin: 22px 0 14px; }
.fine { font-size: 15.5px; color: var(--soft); margin: 0; }
.group-note { font-size: 16.5px; color: var(--soft); margin: 16px 0 0; }

.lightbox { border: 0; padding: 0; background: transparent; width: min(92vw, 820px); max-width: none; max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(40, 30, 22, .84); }
.lightbox figure { margin: 0; background: var(--white); border-radius: 4px; overflow: hidden; }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; background: var(--white); }
.lightbox figcaption { font-family: var(--display); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); padding: 12px 16px; text-align: center; border-top: 1px solid var(--line); }
.lightbox .close { position: absolute; top: -46px; right: 0; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .94); border: 1px solid var(--line); width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; color: var(--umber); cursor: pointer; }
.lightbox .prev { left: -62px; }
.lightbox .next { right: -62px; }
@media (max-width: 1000px) { .lightbox .prev { left: 8px; } .lightbox .next { right: 8px; } }

/* the manual on the home page, the books page, and Book One's product page */
.manual-feature .cover { background-image: url("/assets/img/manual/cover-560.webp"); }
.manual-feature .badge { margin-bottom: 14px; }
.manual-feature .manual-buy { margin-top: 18px; }
.hero-note { margin: 20px 0 0; font-size: 17px; color: var(--soft); }
.hero-note .badge { margin-right: 6px; }
.hero-note a { color: var(--umber); }
.companion { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-top: 26px; color: inherit; text-decoration: none; }
.companion img { width: 70px; height: auto; box-shadow: 0 6px 14px rgba(62, 49, 38, .18); }
.companion b { display: block; font-family: var(--display); font-weight: normal; color: var(--umber); font-size: 19px; line-height: 1.3; }
.companion span { display: block; font-size: 16.5px; line-height: 1.45; margin-top: 4px; }
.companion:hover b { color: var(--amber-ink); }
.manual-feature a.cover { display: block; }
.manual-feature .badge.gold + h2 { margin-top: 12px; }

/* ==========================================================================
   Course catalog, lessons, final assessments, certificates, church seats
   ========================================================================== */
.track { padding: 8px 0 56px; }
.track + .track { border-top: 1px solid var(--line); padding-top: 48px; }
.track h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 4px 0 8px; }
.track-intro { font-size: 19px; max-width: 760px; color: var(--ink); margin-bottom: 28px; }
.ccards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.ccard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.ccard-img { display: block; }
.ccard-img .thumb { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.ccard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ccard-code { font-family: var(--display); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 4px; }
.ccard h3 { font-size: 25px; margin: 0; line-height: 1.15; }
.ccard h3 a { color: var(--umber); text-decoration: none; }
.ccard h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.ccard-sub { font-style: italic; color: var(--soft); margin: 4px 0 10px; font-size: 17px; }
.ccard-hook { font-size: 17px; margin: 0 0 14px; flex: 1; }
.ccard-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 15.5px; color: var(--soft); }
.ccard .price, .buy .price { font-family: var(--display); color: var(--umber); font-size: 22px; }
.ccard .price s, .bundle-note s { color: var(--soft); font-size: .7em; margin-left: 6px; }
.ccard .price.free { color: var(--ok); }
.ccard.bundle { background: var(--mist); border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.ccard.bundle .btn { margin-top: 14px; align-self: flex-start; }
.course-sub { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--soft); margin: 0 0 18px; }
.course-hook { font-family: var(--serif); font-size: 25px; line-height: 1.35; color: var(--umber); border-left: 3px solid var(--amber); padding-left: 18px; margin: 20px 0; }
.course-main h2.sec, h2.sec { font-size: 28px; margin: 38px 0 10px; }
.outcomes { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; margin: 26px 0; }
.outcomes h2 { font-size: 22px; margin: 0 0 8px; }
.outcomes ul { margin: 0; padding-left: 1.2em; }
.outcomes li { font-size: 18.5px; margin: 4px 0; }
.outcomes li::marker { color: var(--amber); }
.lesson-outline { list-style: none; counter-reset: les; margin: 8px 0 0; padding: 0; }
.lesson-outline li { counter-increment: les; display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lesson-outline li::before { content: counter(les); font-family: var(--display); color: var(--amber); min-width: 22px; }
.lesson-outline .t { flex: 1; font-family: var(--serif); font-size: 19px; color: var(--umber); }
.lesson-outline.in-portal li::before { display: none; }
.lesson-outline.in-portal .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; align-self: center; }
.lesson-outline.in-portal li.done .dot { background: var(--ok); border-color: var(--ok); }
h3.mod { font-size: 18px; margin: 22px 0 4px; color: var(--soft); font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; }
.books-list { padding-left: 1.2em; }
.books-list li { margin: 6px 0; font-size: 17.5px; }
.cert-explain { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--mist); }
.cert-explain h2 { font-size: 24px; margin: 0 0 6px; }
.cert-explain p { margin: 0; }
.buy .p { margin: 6px 0 4px; }
.buy h3 { margin: 4px 0 8px; }
.bundle-note { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.bundle-note .btn { justify-self: start; margin-top: 4px; }
.seatbox { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.seatbox summary { cursor: pointer; font-family: var(--serif); font-weight: 700; color: var(--amber-ink); font-size: 17px; }
.seatbox p { font-size: 15.5px; }
.seatbox .field input { max-width: 140px; }
.seat-quote { font-size: 17px !important; margin: 4px 0 10px; }
.tiers { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px; }
.tiers th, .tiers td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.tiers th { font-family: var(--display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: normal; }
.plan.buy li::before { display: none; }
.mini-courses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 22px; }
.mini-courses li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.mini-courses a { text-decoration: none; color: var(--ink); }
.mini-courses b { color: var(--amber-ink); font-weight: 700; margin-right: 4px; }
.state { font-size: 15px; color: var(--soft); }
.state.ok { color: var(--ok); }
.state.go { color: var(--amber-ink); font-weight: 700; }

/* lesson body */
.lesson-body { font-size: 20px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15.5px; color: var(--soft); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
.lesson-meta b { font-family: var(--display); font-weight: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin-right: 6px; }
.article blockquote.scripture { font-style: normal; background: var(--mist); border-left-color: var(--umber); font-family: var(--serif); font-size: 21px; }
.article blockquote.scripture p { font-style: italic; }
.article blockquote.scripture cite { display: block; font-style: normal; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin-top: 8px; }
.article figure.visual { margin: 1.8em auto; max-width: 520px; text-align: center; }
.article figure.visual a { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.article figure.visual img { margin: 0; width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.article figure.visual figcaption { font-size: 15px; color: var(--soft); margin-top: 8px; }
.article figure.visual figcaption b { font-family: var(--display); font-weight: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin-right: 6px; }
.article figure.visual figcaption span { display: block; font-size: 13.5px; font-style: italic; }
.article .callout, .article .safety { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin: 1.6em 0; font-size: 18px; }
.article .callout > b, .article .safety > b { display: block; font-family: var(--display); font-weight: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 4px; }
.article .callout p:last-child, .article .safety p:last-child { margin-bottom: 0; }
.article .safety { border-left: 4px solid var(--bad); background: #fff8f6; }
.article .safety > b { color: var(--bad); }
.article .practice, .article .reflect, .article .read { border-radius: var(--r-md); padding: 18px 22px 8px; margin: 1.8em 0; font-size: 18.5px; }
.article .practice { background: var(--umber); color: var(--paper); }
.article .practice a { color: #fff; }
.article .practice h3, .article .reflect h3, .article .read h3 { margin: 0 0 8px; font-size: 22px; color: inherit; }
.article .practice h3 span, .article .reflect h3 span, .article .read h3 span { display: block; font-family: var(--display); font-weight: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 2px; }
.article .reflect { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber); }
.article .reflect h3, .article .read h3 { color: var(--umber); }
.article .reflect h3 span, .article .read h3 span { color: var(--amber-ink); }
.article .reflect-note { font-size: 15px; color: var(--soft); font-style: italic; }
.article .read { background: var(--mist); }
.article .worksheet { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 14px 18px; margin: 1.2em 0; color: var(--ink); }
.article .worksheet:hover { border-color: var(--amber); }
.article .worksheet b { display: block; color: var(--umber); font-size: 19px; }
.article .worksheet small { color: var(--soft); font-size: 14.5px; }
.ws-ico { width: 34px; height: 42px; flex: none; border: 2px solid var(--amber); border-radius: 3px; position: relative; background: linear-gradient(var(--amber), var(--amber)) 6px 12px / 18px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) 6px 19px / 18px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) 6px 26px / 12px 2px no-repeat; }
.lesson-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.scripture-note { font-size: 13px; color: var(--soft); margin-top: 26px; }
.downloads { padding-left: 1.2em; }
.zoom-dlg { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 94vh; }
.zoom-dlg::backdrop { background: rgba(30, 22, 15, .82); }
.zoom-dlg img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; display: block; border-radius: var(--r-sm); background: #fff; }
.zoom-dlg p { color: #fff; text-align: center; font-size: 15px; margin: 8px 0 0; }
.zoom-dlg .close { position: absolute; top: 6px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 24px; cursor: pointer; }

/* final assessment */
.quiz-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--r-md); padding: 20px 24px; margin: 28px 0; }
.quiz-card h2, .quiz-card h3 { margin: 0 0 6px; font-size: 24px; }
.quiz { margin-top: 26px; }
.qq { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-md); padding: 16px 20px 10px; margin: 0 0 18px; }
.qq legend { font-family: var(--serif); font-size: 20px; color: var(--umber); padding: 0 4px; display: flex; gap: 10px; float: left; width: 100%; margin-bottom: 10px; }
.qq legend span { font-family: var(--display); color: var(--amber); min-width: 22px; }
.qc { display: flex; gap: 8px; align-items: baseline; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 18px; clear: both; }
.qc:hover { background: var(--mist); }
.qc input { accent-color: var(--umber); transform: translateY(2px); }
.qc span { color: var(--soft); }
.qc:has(input:checked) { background: var(--mist); outline: 1px solid var(--line-2); }
.quiz-bar { position: sticky; bottom: 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--paper); border-top: 1px solid var(--line); padding: 14px 0; }
.result { text-align: center; padding: 34px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin: 10px 0 24px; }
.result h1 { font-size: 46px; margin: 4px 0; }
.result.pass { border-top: 4px solid var(--ok); }
.result .score { font-family: var(--display); font-size: 20px; color: var(--amber-ink); margin: 0; }
.quiz-review { padding-left: 1.4em; }
.quiz-review > li { margin: 0 0 20px; }
.quiz-review .qp { font-family: var(--serif); font-size: 19px; color: var(--umber); margin: 0 0 4px; }
.quiz-review ul { list-style: none; padding: 0; margin: 0; }
.quiz-review ul li { font-size: 16.5px; padding: 2px 0; color: var(--soft); }
.quiz-review ul li.right { color: var(--ok); }
.quiz-review ul li.wrong { color: var(--bad); text-decoration: line-through; }
.quiz-review .why { font-size: 16px; font-style: italic; margin: 6px 0 0; }
.name-form { max-width: 560px; margin: 10px 0 26px; }

/* certificates list, transcript, seats */
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert-list li > div { flex: 1; }
.cert-list b { display: block; color: var(--umber); font-size: 18.5px; }
.cert-list span { font-size: 15px; color: var(--soft); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.transcript, table.roster { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--white); }
table.transcript th, table.transcript td, table.roster th, table.roster td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.transcript th, table.roster th { font-family: var(--display); font-weight: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.pack { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin: 22px 0; }
.pack header { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.pack h2 { font-size: 26px; margin: 0; }
.pack-count { font-size: 17px; }
.pack-count b { font-family: var(--display); font-size: 26px; color: var(--umber); }
.pack-code { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; background: var(--mist); border-radius: var(--r-sm); padding: 12px 14px; margin: 14px 0; }
.pack-code > span { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.pack-code small { flex-basis: 100%; font-size: 13.5px; color: var(--soft); overflow-wrap: anywhere; }
.pack header > div { min-width: 0; }
.pack { overflow: hidden; }
.seat-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 19px; letter-spacing: .08em; color: var(--umber); }
.seat-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.seat-add input { flex: 1 1 180px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 16px; background: #fff; }

/* verification and the certificate */
.verify-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: 640px; }
.verify-form .field { flex: 1 1 280px; margin: 0; }
.verify-form input { text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.verify-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px; margin: 28px 0 18px; max-width: 760px; }
.verify-card dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 18px; margin: 14px 0; font-size: 17.5px; }
.verify-card dt { font-family: var(--display); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); padding-top: 4px; }
.verify-card dd { margin: 0; color: var(--ink); }
.vstat { display: inline-block; font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 14px; }
.vstat.ok { background: #eef3e6; color: var(--ok); border: 1px solid #c9d8b4; }
.vstat.bad { background: #fbeeee; color: var(--bad); border: 1px solid #efcaca; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.cert-view { overflow: hidden; max-width: 1100px; }
.cert-scale { width: 1100px; transform-origin: 0 0; }
.cert-sheet { position: relative; width: 1100px; height: 850px; background: #FBF7F1; color: var(--ink); overflow: hidden; box-shadow: var(--shadow); font-family: var(--serif); }
.cert-frame { position: absolute; inset: 30px 30px 104px; border: 2px solid var(--umber); padding: 30px 64px 0; text-align: center; }
.cert-inner { position: absolute; inset: 7px; border: 1px solid var(--sand); pointer-events: none; }
.cert-mark { display: block; width: 70px; height: 70px; margin: 0 auto 8px; position: relative; }
.cert-mark svg { display: block; width: 100%; height: 100%; }
.cert-mark.sm { width: 54px; height: 54px; margin: 0; flex: none; }
.cert-kicker { font-family: var(--display); font-size: 17px; letter-spacing: .34em; text-transform: uppercase; color: var(--amber-ink); margin: 0 0 20px; position: relative; }
.cert-line { font-style: italic; font-size: 22px; color: var(--soft); margin: 0; position: relative; }
.cert-name { font-family: var(--display); font-size: 62px; line-height: 1.1; color: var(--umber); margin: 8px 0 24px; font-weight: normal; letter-spacing: .01em; position: relative; }
.cert-course { font-family: var(--serif); font-size: 31px; color: var(--ink); margin: 10px 0 4px; font-weight: 500; line-height: 1.2; position: relative; }
.cert-course span { display: block; font-family: var(--display); font-size: 15px; letter-spacing: .24em; color: var(--amber-ink); margin-bottom: 6px; }
.cert-track { font-size: 17px; color: var(--soft); margin: 2px 0 0; font-style: italic; position: relative; }
.cert-date { font-size: 21px; margin: 16px 0 0; position: relative; }
.cert-hours { font-size: 15px; color: var(--soft); margin: 4px 0 0; position: relative; }
.cert-foot { position: absolute; left: 44px; right: 44px; bottom: 26px; display: grid; grid-template-columns: 1fr 1.1fr 96px; gap: 26px; align-items: end; text-align: left; }
.cert-id span { display: block; font-family: var(--display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.cert-id b { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; color: var(--umber); margin: 3px 0 4px; letter-spacing: .02em; }
.cert-id small { display: block; font-size: 12.5px; color: var(--soft); }
.cert-sign { text-align: center; }
.cert-sig { display: block; font-family: var(--brush); font-size: 40px; color: var(--umber); line-height: 1; height: 44px; margin-bottom: 18px; }
.cert-sign b { display: block; font-size: 16px; font-weight: 500; border-top: 1px solid var(--ink); padding-top: 6px; margin: 0 16px; }
.cert-sign small { display: block; font-size: 13.5px; color: var(--soft); font-style: italic; }
.cert-qr svg { width: 96px; height: 96px; display: block; }
.cert-qr svg path, .cert-qr svg rect[fill="black"] { fill: var(--umber); }
.cert-band { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; }
.cert-void { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-family: var(--display); font-size: 120px; letter-spacing: .1em; color: rgba(155, 44, 44, .28); border: 8px solid rgba(155, 44, 44, .28); padding: 0 30px; text-transform: uppercase; }
.tr-sheet { position: relative; width: 850px; height: 1100px; background: #FBF7F1; padding: 60px 64px 110px; font-family: var(--serif); color: var(--ink); overflow: hidden; }
.tr-sheet header { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid var(--umber); padding-bottom: 16px; margin-bottom: 20px; }
.tr-sheet header .cert-kicker { margin: 0; font-size: 13px; }
.tr-sheet h2 { font-family: var(--display); font-size: 34px; color: var(--umber); margin: 2px 0; font-weight: normal; }
.tr-sheet header p { margin: 0; font-size: 14px; color: var(--soft); }
.tr-sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tr-sheet th, .tr-sheet td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tr-sheet th { font-family: var(--display); font-weight: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.tr-sheet td.mono { font-size: 12px; }
.tr-sheet footer { position: absolute; left: 64px; right: 64px; bottom: 96px; font-size: 12px; color: var(--soft); }
#cert-stage { position: fixed; left: -12000px; top: 0; width: 1100px; pointer-events: none; }
#cert-stage .cert-sheet, #cert-stage .tr-sheet { box-shadow: none; margin: 0; }
@media (max-width: 700px) {
  .verify-card dl { grid-template-columns: 1fr; gap: 0 0; }
  .verify-card dt { padding-top: 10px; }
  .ccard h3 { font-size: 23px; }
  .course-hook { font-size: 21px; }
  .qq { padding: 14px 14px 8px; }
  .qq legend { font-size: 18px; }
  .lesson-body { font-size: 19px; }
}
@media print {
  @page { size: letter landscape; margin: 0; }
  body.page-certificate > *:not(main), body.page-certificate main > *:not(.band), body.page-certificate .verify-form, body.page-certificate .verify-card, body.page-certificate .cert-actions { display: none !important; }
  body.page-certificate main .band { padding: 0 !important; background: none !important; }
  body.page-certificate .wrap { padding: 0 !important; max-width: none !important; }
  body.page-certificate .cert-view { height: auto !important; max-width: none; overflow: visible; }
  body.page-certificate .cert-scale { transform: none !important; width: 11in; }
  body.page-certificate .cert-sheet { width: 11in; height: 8.5in; box-shadow: none; zoom: 0.96; }
}

/* ==========================================================================
   Offer codes: the code box (course page, checkout) and the offer page
   (members.html#/offer/CODE, reached from /vip/CODE and the printed VIP cards)
   ========================================================================== */
.offer-box { margin: 16px 0 6px; }
.offer-box label { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; color: var(--amber-ink); margin-bottom: 6px; }
.offer-box div { display: flex; gap: 8px; }
.offer-box input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); font-size: 16px; }
.offer-box .btn { flex: 0 0 auto; }
.offer-line span:last-child { color: var(--ok); white-space: nowrap; }
.offer-page { max-width: 760px; }
.offer-ticket { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--umber); border-radius: var(--r-md); padding: 26px 28px 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.offer-ticket::after { content: ""; position: absolute; right: 22px; top: 22px; width: 54px; height: 54px; background: url("/assets/img/brand/seal.svg") center/contain no-repeat; opacity: .85; }
.offer-ticket h1 { font-size: clamp(30px, 5vw, 44px); margin: 6px 64px 8px 0; }
.offer-ticket .mono { color: var(--umber); font-size: 1.05em; }
.offer-what { font-size: 21px; color: var(--amber-ink); margin: 0; font-family: var(--serif); }
.offer-items { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.offer-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.offer-item h3 { font-size: 22px; margin: 0 0 4px; color: var(--umber); }
.offer-price { font-size: 20px; margin: 0 0 12px; }
.offer-price s { color: var(--soft); margin-right: 6px; }
.offer-price b { color: var(--ok); font-weight: 600; }
.offer-signin form { margin-top: 10px; }
@media (max-width: 560px) {
  .offer-item { grid-template-columns: 1fr; }
  .offer-thumb { max-width: 220px; }
  .offer-ticket { padding: 22px 18px 20px; }
  .offer-ticket::after { width: 40px; height: 40px; right: 14px; top: 14px; }
}

/* ==========================================================================
   VIP cards (vip-cards.html): the controls, the preview, and the cards
   themselves, which are measured in inches so they print true to size.
   ========================================================================== */
.vip-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: start; }
.vip-controls { position: sticky; top: 90px; }
.vip-controls input[name=code] { text-transform: uppercase; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.vip-choice { border: 0; padding: 0; margin: 0 0 14px; }
.vip-choice legend { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--amber-ink); margin-bottom: 8px; }
.vip-choice .check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.vip-choice small { color: var(--soft); font-size: 14px; line-height: 1.35; }
.vip-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.vip-preview { min-width: 0; }
.vip-cap { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--amber-ink); margin: 0 0 8px; }
.vip-one { margin-bottom: 26px; filter: drop-shadow(0 6px 14px rgba(62, 49, 38, .18)); width: max-content; max-width: 100%; overflow: auto; }
.vip-sheetwrap { width: 100%; max-width: 640px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.vip-trimwrap { position: relative; width: max-content; margin-bottom: 22px; box-shadow: var(--shadow); }
.vip-trim { position: absolute; inset: .125in; border: 1px dashed rgba(169, 108, 49, .9); pointer-events: none; }
.vip-tips { margin-top: 22px; font-size: 16px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 12px 16px; border-radius: var(--r-sm); max-width: 640px; }
#vipPrintOut { display: none; }
@media (max-width: 900px) { .vip-layout { grid-template-columns: 1fr; } .vip-controls { position: static; } }

.vip-sheet { position: relative; width: 8.5in; height: 11in; background: #fff; overflow: hidden; }
.vip-slot { position: absolute; width: 3.5in; height: 2in; }
.vm { position: absolute; background: #9a8b78; }
.vm.v { width: .5pt; height: .26in; }
.vm.h { height: .5pt; width: .38in; }

.vc { position: relative; overflow: hidden; font-family: var(--serif); color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.vc-one { width: 3.5in; height: 2in; background: var(--paper); }
.vc-one .vc-l { position: absolute; left: .17in; top: .15in; width: 2.0in; }
.vc-brand { display: flex; align-items: center; gap: .06in; }
.vc-brand span { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: 5.6pt; color: var(--amber-ink); white-space: nowrap; }
.vc-one .vc-vip { font-family: var(--display); font-size: 31pt; line-height: .95; letter-spacing: .06em; color: var(--umber); margin: .07in 0 .03in; }
.vc-one .vc-head { font-style: italic; font-size: 9.3pt; line-height: 1.15; color: var(--ink); max-height: 2.35em; overflow: hidden; }
.vc-one .vc-offer { font-weight: 700; font-size: 8.2pt; line-height: 1.18; color: var(--umber); margin-top: .05in; max-height: 2.4em; overflow: hidden; }
.vc-one .vc-note { font-style: italic; font-size: 6.6pt; color: var(--soft); margin-top: .03in; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.vc-one .vc-qr { position: absolute; right: .15in; top: .16in; width: 1.14in; text-align: center; }
.vc-qrbox { background: #fff; border: .5pt solid var(--line); padding: .08in; width: max-content; }
.vc-one .vc-qrbox { margin: 0 auto; }
.vc-one .vc-scan { font-family: var(--display); text-transform: uppercase; letter-spacing: .16em; font-size: 5.6pt; color: var(--amber-ink); margin-top: .05in; }
.vc-one .vc-foot { position: absolute; left: .17in; right: .15in; bottom: .21in; display: flex; justify-content: space-between; gap: .1in; font-size: 6.1pt; color: var(--ink); white-space: nowrap; }
.vc-one .vc-foot b { color: var(--umber); letter-spacing: .04em; }
.vc-one .vc-foot span:first-child:not(:last-child) { color: var(--soft); }
.vc-band { position: absolute; left: 0; width: 100%; height: auto; display: block; }
.vc-one .vc-band { bottom: -.13in; }

.vc-shop { width: 3.75in; height: 2.25in; }
.vc-front { background: #3a2412; color: var(--paper); }
.vc-photo { position: absolute; left: 0; top: 0; width: 3.75in; height: 2.25in; display: block; }
.vc-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 24, 12, .92) 0%, rgba(52, 30, 14, .74) 58%, rgba(52, 30, 14, .2) 100%); }
.vc-front .vc-stack { position: absolute; left: .32in; top: .28in; width: 2.75in; }
.vc-front .vc-vip { font-family: var(--display); font-size: 40pt; line-height: 1; letter-spacing: .08em; color: var(--paper); margin: .1in 0 .04in -.02in; }
.vc-front .vc-head { font-style: italic; font-size: 10.5pt; line-height: 1.18; color: #EADBC4; max-height: 2.4em; overflow: hidden; }
.vc-front .vc-kick { position: absolute; left: .32in; bottom: .3in; font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: 6.2pt; color: var(--sand); }
.vc-front .vc-site { position: absolute; right: .3in; bottom: .28in; font-size: 7.2pt; color: var(--paper); letter-spacing: .02em; }
.vc-back { background: var(--paper); }
.vc-back .vc-qrbox { position: absolute; left: .3in; top: .3in; padding: .07in; }
.vc-back .vc-r { position: absolute; left: 1.72in; top: .32in; right: .28in; }
.vc-back .vc-scan { font-family: var(--display); text-transform: uppercase; letter-spacing: .18em; font-size: 6.6pt; color: var(--amber-ink); }
.vc-back .vc-offer { font-weight: 700; font-size: 9.6pt; line-height: 1.18; color: var(--umber); margin: .05in 0 .07in; }
.vc-back .vc-or { font-size: 6.9pt; line-height: 1.25; color: var(--ink); }
.vc-back .vc-code { font-family: var(--display); font-size: 15pt; letter-spacing: .12em; color: var(--umber); line-height: 1.1; margin-top: .02in; }
.vc-back .vc-note { font-style: italic; font-size: 6.8pt; color: var(--soft); margin-top: .05in; line-height: 1.2; }
.vc-back .vc-ends { font-size: 6.2pt; color: var(--soft); margin-top: .04in; }
.vc-back .vc-band { bottom: -.1in; }

@media print {
  body.page-vipcards > :not(#vipPrintOut) { display: none !important; }
  body.page-vipcards { margin: 0; background: #fff; }
  #vipPrintOut { display: block; }
  #vipPrintOut .vip-sheet, #vipPrintOut .vip-shoppage { page-break-after: always; break-after: page; overflow: hidden; }
  #vipPrintOut .vip-shoppage { width: 3.75in; height: 2.25in; }
  #vipPrintOut > :last-child { page-break-after: auto; break-after: auto; }
}
