/* Every Stone Speaks: warm paper, deep navy and gold. Georgia for headings and Bible text, the system font for the rest. */
:root {
  --bg: #fbf7ef; --paper: #fffdf8; --ink: #1f2430; --muted: #555c6b; --line: #e7dcc5;
  --navy: #22344f; --navy-2: #2f4668; --gold: #b5852a; --gold-2: #85600f; --gold-soft: #f5e9cc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px; --c: var(--navy);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; }
/* Line breaks: headings and short centered verses even out their lines; paragraphs never end on one lone word */
h1, h2, h3, .card-title, .door-card b, .verse-center p { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
::selection { background: var(--gold-soft); color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: .15em 0 .35em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .45em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { margin-top: 56px; margin-bottom: 56px; }
.small { font-size: .88rem; color: var(--muted); }
.lead { font-size: 1.17rem; color: var(--muted); }
.kicker { margin: 0; color: var(--c); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: .82rem; }
.kicker a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }
main:focus { outline: none; }

/* Header and the chapter bar */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.25rem var(--serif); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 6px 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a[aria-current] { border-color: var(--gold); }
.site-nav a:hover { color: var(--gold-2); }
.walk { background: var(--navy); }
.walk ol { display: flex; margin: 0 auto; padding: 0 12px; list-style: none; }
.walk li { flex: 1 1 0; }
.walk a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100%; padding: 9px 6px; color: #e8edf5; font-size: .86rem; text-decoration: none; text-align: center; line-height: 1.2; }
.walk a:hover { background: var(--navy-2); color: #fff; }
.walk a[aria-current] { background: var(--gold); color: #1f2430; font-weight: 700; }
.walk .n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; font-size: .78rem; }
@media (max-width: 860px) { .walk .t { display: none; } .walk a { padding: 10px 2px; } }

/* Buttons */
.btn { display: inline-block; margin: 4px 6px 4px 0; padding: 12px 22px; border: 2px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--navy); color: #fff; }
.link-btn { margin-left: 16px; padding: 0; border: 0; background: none; color: var(--navy); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--gold-2); }
.tools { font-size: .95rem; }

/* Bible text */
.verse { margin: 1em 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; font: 1.06rem/1.55 var(--serif); }
.verse p { margin: 0; }
.verse cite { display: block; margin-top: 6px; color: var(--gold-2); font: 700 .8rem var(--sans); font-style: normal; letter-spacing: .04em; }
.verse-center { max-width: 34em; margin: 1.2em auto; border-left: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 0 0 10px 10px; text-align: center; font-size: 1.15rem; }

/* Home */
.hero { padding: 44px 0 0; background: linear-gradient(#fffaf0, #f4e8cf); border-bottom: 1px solid var(--line); text-align: center; overflow: hidden; }
.hero .lead { max-width: 36em; margin: 0 auto; }
.hero .cta { margin: 1.2em 0 0; }
.hero .btn-quiet { background: var(--paper); box-shadow: 0 2px 10px rgba(31, 36, 48, .18); }
.hero .btn-quiet:hover { background: var(--navy); color: #fff; }
/* The painted banner: words in the sky on wide screens; on phones the words, then a closer crop of the painting */
.hero-art { display: flex; flex-direction: column; padding: 0; background: #fbf1dc; }
.hero-art .hero-text { padding-top: 34px; padding-bottom: 22px; }
.hero-pic { order: 2; }
.hero-pic img { display: block; width: 100%; height: auto; }
@media (min-width: 760px) {
  /* the painting sits at the bottom, under extra sky in its own colors, so the words never cover the buildings */
  .hero-art { --pic: min(50vw, 760px); position: relative; display: block; min-height: calc(var(--pic) + clamp(150px, 330px - 15vw, 230px)); background: linear-gradient(#fbf7ef, #f1e3d9 60%); }
  .hero-pic img { position: absolute; left: 0; bottom: 0; width: 100%; height: var(--pic); object-fit: cover; object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(transparent, #000 14%); mask-image: linear-gradient(transparent, #000 14%); }
  .hero-art .hero-text { position: relative; padding-top: clamp(28px, 3vw, 48px); }
  /* a soft glow keeps the words clear over the painted sky; the buttons and the verse have their own backgrounds */
  .hero-art .hero-text > :is(.kicker, h1, .lead) { text-shadow: 0 0 18px #fff8e8, 0 0 6px #fff8e8; }
  .hero-art .verse-center { background: rgba(255, 253, 248, .82); }
}
.chapters { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; height: 100%; padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card:hover { color: var(--ink); box-shadow: 0 10px 24px rgba(34, 52, 79, .12); transform: translateY(-2px); }
/* Only the seven chapter cards carry their chapter's color as a band across the top. An inset shadow draws it, so the
   band follows the rounded corners; every other box has a plain frame. */
.card.chapter-card { padding-top: 24px; box-shadow: inset 0 6px 0 var(--c); }
.card.chapter-card:hover { box-shadow: inset 0 6px 0 var(--c), 0 10px 24px rgba(34, 52, 79, .12); }
.card img { display: block; width: 100%; height: 190px; margin-bottom: 10px; object-fit: contain; }
.card-title { margin: 4px 0 6px; font: 700 1.4rem/1.2 var(--serif); }
.card-text { flex: 1; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: 12px; color: var(--c); font-weight: 700; font-size: .92rem; }
.card .more::after { content: " →"; }
/* Card grids: 1, 2 or 3 columns. A last card that would sit alone, or leave one slot empty, stretches across the rest
   of its row and lays out wide (picture beside the words), so a row never ends with empty slots. */
@media (min-width: 640px) {
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .chapters > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .chapters > li:last-child:nth-child(odd) > .card { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 28px; align-content: start; }
  .chapters > li:last-child:nth-child(odd) > .card img { grid-row: 1 / -1; align-self: center; margin: 0; }
}
@media (min-width: 950px) {
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .chapters > li:last-child:nth-child(odd) { grid-column: auto; }
  .chapters > li:last-child:nth-child(odd) > .card { display: flex; }
  .chapters > li:last-child:nth-child(odd) > .card img { margin: 0 0 10px; }
  .chapters > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .chapters > li:last-child:nth-child(3n+2) { grid-column: span 2; }
  .chapters > li:last-child:is(:nth-child(3n+1), :nth-child(3n+2)) > .card { display: grid; }
  .chapters > li:last-child:is(:nth-child(3n+1), :nth-child(3n+2)) > .card img { margin: 0; }
}
.advent-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 30px; align-items: center; padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); --c: #8f2f2f; }
.peeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.peek { display: block; padding: 8px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; color: var(--ink); font: 700 .9rem var(--serif); text-align: center; text-decoration: none; }
.peek:hover { border-color: var(--gold); }
.peek span { display: block; margin-bottom: 4px; }
/* Tip boxes: one column on phones, then two (a lone last box stretches across the row), three in a row when there are three */
.how { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) {
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 950px) {
  .how:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how:has(> :nth-child(3):last-child) > :last-child { grid-column: auto; }
}
.how > div { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.how p { margin: 0; font-size: .97rem; }
.why { max-width: 760px; }

/* The good news */
.gospel { padding: 30px; background: var(--navy); color: #eef2f8; border-radius: var(--radius); }
.gospel h2 { color: #fff; }
/* The four steps: one column on phones, then 2 + 2, then 4 in a row; never 3 + 1 */
.gospel ol { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 6px; padding: 0; list-style: none; }
@media (min-width: 560px) { .gospel ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gospel ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gospel li { padding: 16px; background: rgba(255, 255, 255, .07); border-radius: 10px; }
.gospel .step { margin: 0; font-weight: 700; }
.gospel .num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--gold); color: #1f2430; font-size: .9rem; }
.gospel .verse { background: transparent; border-color: rgba(255, 255, 255, .18); border-left-color: var(--gold); color: #fff; font-size: 1rem; }
.gospel .verse cite { color: #f0cf85; }
.gospel p { max-width: 46em; }

/* Chapter pages */
.chapter-head { padding: 34px 0 26px; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 34px; align-items: center; }
.head-pic { margin: 0; text-align: center; }
.stones { padding-bottom: 20px; }
.stone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.stone:nth-child(even) figure { order: 2; }
.stone figure { margin: 0; text-align: center; }
.stone figure img { max-height: 420px; width: auto; }
figcaption { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.stone-text h2 { color: var(--c); }
.ask { padding: 12px 16px; background: var(--gold-soft); border-radius: 10px; }
.stone .ask span { display: block; color: var(--gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

/* Advent */
.page-head { padding-top: 36px; }
.page-head .lead { max-width: 44em; }
.today-note { display: inline-block; padding: 10px 16px; background: var(--gold-soft); border-radius: 10px; font-weight: 700; }
/* The 25 doors: five rows of five. On narrow phones three across, and the last door, Christmas Day, fills its own row. */
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
@media (max-width: 571px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .doors > .door:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
.door a { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 10px 10px 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; color: var(--ink); text-align: center; text-decoration: none; transition: border-color .2s, transform .2s; }
.door a:hover { border-color: var(--gold); transform: translateY(-2px); }
.door .num { font: 700 1.7rem/1 var(--serif); color: var(--navy); }
.door img { display: block; width: auto; height: 104px; margin: 8px 0; object-fit: contain; }
.door .dt { font-size: .9rem; line-height: 1.3; }
.door.today a { border-color: var(--gold); background: #fff6df; box-shadow: 0 0 0 4px var(--gold-soft); }
.note { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.note p { margin-bottom: 0; }
.day { padding-top: 32px; }
.day-head h1 { margin-bottom: .2em; }
.day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; align-items: start; }
.day-pic { position: sticky; top: 16px; margin: 0; text-align: center; }
.day-text h2 { margin: 1.2em 0 .3em; color: var(--gold-2); font: 700 .82rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.day-text section:first-child h2 { margin-top: 0; }
.day-text p { margin: 0 0 .6em; }
.day-text .ask { padding: 2px 16px 8px; }
.day-text .pray p { font: italic 1.12rem/1.5 var(--serif); }

/* Prev and next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; margin-bottom: 50px; }
.pager a { display: block; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font: 700 1.05rem var(--serif); text-decoration: none; }
.pager a:hover { border-color: var(--gold); }
.pager span { display: block; color: var(--muted); font: 600 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.pager .prev span::before { content: "← "; }
.pager .next { grid-column: 2; text-align: right; }
.pager .next span::after { content: " →"; }

/* Text pages */
.prose { max-width: 760px; padding-top: 36px; padding-bottom: 40px; }
.prose h2 { margin-top: 1.4em; }

/* Footer */
.site-footer { padding: 26px 0 34px; background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { margin-top: 40px; margin-bottom: 40px; }
  .head-grid, .stone, .day-grid, .advent-teaser { grid-template-columns: 1fr; gap: 18px; }
  .head-pic { order: -1; }
  .head-pic img { max-height: 230px; width: auto; }
  .stone { padding: 30px 0; }
  .stone:nth-child(even) figure { order: 0; }
  .stone figure img { max-height: 300px; }
  .day-pic { position: static; }
  .day-pic img { max-height: 320px; width: auto; }
  .advent-teaser { padding: 22px; }
  .doors { gap: 10px; }
  .door img { height: 70px; }
  .door .dt { font-size: .8rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .gospel { padding: 22px 18px; }
  .link-btn { margin-left: 0; display: block; margin-top: 6px; }
}

@media print {
  .site-header, .walk, .site-footer, .pager, .tools, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .chapter-head { background: #fff; border: 0; padding: 0; }
  .stone, .day-grid { break-inside: avoid; }
  .verse, .ask, .card, .note { background: #fff; }
  .day-pic { position: static; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Leader guides and the Advent printable */
/* At a glance: ages and time side by side, and what you need (the longest) on its own row, then at double width */
.leader .glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.leader .glance > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 700px) { .leader .glance { grid-template-columns: 1fr 1fr 2fr; } .leader .glance > div:last-child:nth-child(odd) { grid-column: auto; } }
.leader .glance div { padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.leader .glance dt { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.leader .glance dd { margin: 2px 0 0; font-size: .97rem; }
.plan { padding-left: 1.4em; }
.plan > li { margin-bottom: 1.1em; }
.plan h3 { margin: 0 0 .25em; font-size: 1.2rem; }
.plan h3 span { margin-left: .5em; font: 600 .82rem var(--sans); color: var(--gold-2); }
.picks { list-style: none; padding: 0; margin: .8em 0 0; display: grid; gap: 12px; }
.pick { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.pick img { display: block; width: 96px; height: 96px; object-fit: contain; }
.pick h4 { margin: 0 0 .2em; font: 700 1.05rem var(--serif); }
.pick p { margin: 0 0 .25em; font-size: .95rem; }
.pick .refs { color: var(--gold-2); font-weight: 600; font-size: .88rem; }
.pray-line { font-style: italic; padding-left: 14px; border-left: 4px solid var(--gold); }
.tools a { margin-right: 1em; }
@media print { .pick { break-inside: avoid; } }
@media (max-width: 420px) { .site-nav ul { gap: 4px 14px; } .site-nav a { font-size: .95rem; } }

/* The "I am" sayings and the memory verse cards */
.iam-list { columns: 2 220px; margin: 0 0 1em; padding-left: 1.3em; font-size: .97rem; }
.iam-list a { color: var(--c); font-weight: 600; }
.mv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 10px 0 0; padding: 0; list-style: none; }
.mv { display: grid; grid-template-columns: 84px 1fr; gap: 0 14px; align-content: start; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.mv img { grid-row: span 2; width: 84px; height: 84px; object-fit: contain; }
.mv .kicker { margin: 0 0 4px; }
.mv .kicker a { color: var(--c); text-decoration: none; }
.mv .verse { margin: 0; padding: 0; background: none; border: 0; font-size: 1.02rem; }
@media print {
  .mv-cards { grid-template-columns: 1fr 1fr; gap: 0; }
  .mv { break-inside: avoid; border: 1px dashed #999; border-radius: 0; padding: 14px; }
  .mv-head .small, .mv-head .lead, .mv-extra { display: none; }
}

/* Picture stories */
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 6px 0 0; padding: 0; list-style: none; }
.panels figure { margin: 0; }
.panels img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(34, 52, 79, .14); }
.panels figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font: 1.08rem/1.5 var(--serif); }
.pn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font: 700 .85rem var(--sans); }
.where { padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; }
.where h2 { color: var(--c); margin-top: 0; }
.where .ask span { display: block; color: var(--gold-2); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.stories-list .card img { height: 200px; object-fit: cover; border-radius: 10px; }
.gospel .invite { font: italic 1.15rem/1.5 var(--serif); color: #fff; padding-left: 14px; border-left: 4px solid var(--gold); }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } .where { padding: 20px 18px; } }
@media print { .panels { grid-template-columns: 1fr 1fr 1fr; } .panels img { box-shadow: none; } .where { break-inside: avoid; } }

/* Breadcrumbs, numbered sections, jump links, home doors, footer columns and the printable packs */
.crumbs { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 auto; padding-top: 9px; padding-bottom: 9px; list-style: none; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--gold); }
.crumbs a { color: var(--navy); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: var(--gold); color: #1f2430; font: 700 1rem var(--sans); vertical-align: 4px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: j; }
.jump li { counter-increment: j; }
.jump a { display: inline-block; padding: 8px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: .93rem; text-decoration: none; }
.jump a::before { content: counter(j) ". "; color: var(--gold-2); }
.jump a:hover { border-color: var(--gold); }
.doors-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; }
.door-card { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-align: center; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.door-card:hover { color: var(--ink); box-shadow: 0 10px 24px rgba(34, 52, 79, .12); transform: translateY(-2px); }
.door-card img { width: 150px; height: 120px; object-fit: contain; }
.door-card span { color: var(--muted); font-size: .97rem; }
.door-card b { display: block; margin-bottom: 4px; color: var(--c); font: 700 1.35rem var(--serif); }
/* Footer: two by two on phones and tablets, four in a row on wide screens; never three and one */
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-cols h2 { margin: 0 0 6px; color: var(--navy); font: 700 1rem var(--sans); }
.foot-cols ul { margin: 0; padding: 0; list-style: none; }
.foot-cols li { margin: 3px 0; }
.products { display: grid; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.product { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 26px; align-items: center; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.product img { display: block; width: 100%; height: auto; border-radius: 10px; }
.product h3 { margin: 4px 0 6px; font: 700 1.45rem/1.2 var(--serif); }
.product p { margin: 0 0 8px; }
.product .buy { margin-top: 12px; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 14px; } .step-n { width: 28px; height: 28px; font-size: .9rem; } }
@media print { .crumbs, .jump { display: none !important; } }

/* The family reading plan */
/* The seven weeks: one column, then two, then three. A last week that would sit alone stretches across the rest of its
   row and lays its days out in columns, like the card grids. */
.plan-weeks { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
.plan-days li { break-inside: avoid; }
@media (min-width: 700px) {
  .plan-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-weeks > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .plan-weeks > :last-child:nth-child(odd) .plan-days { columns: 2; column-gap: 28px; }
}
@media (min-width: 1060px) {
  .plan-weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-weeks > :last-child:nth-child(odd) { grid-column: auto; }
  .plan-weeks > :last-child:nth-child(odd) .plan-days { columns: auto; }
  .plan-weeks > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .plan-weeks > :last-child:nth-child(3n+1) .plan-days { columns: 3; }
  .plan-weeks > :last-child:nth-child(3n+2) { grid-column: span 2; }
  .plan-weeks > :last-child:nth-child(3n+2) .plan-days { columns: 2; }
}
.week { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.week h2 { font-size: 1.3rem; }
.week h2 a { color: var(--c); text-decoration: none; }
.week .small { margin: 0 0 8px; }
.plan-days { margin: 0; padding: 0; list-style: none; }
.plan-days li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.plan-days label { grid-row: span 2; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.plan-days .tick { width: 18px; height: 18px; accent-color: var(--gold-2); }
.plan-days .r { color: var(--gold-2); font-size: .84rem; font-weight: 600; }
@media print { .plan-weeks { grid-template-columns: 1fr 1fr; gap: 12px; } .week { break-inside: avoid; padding: 10px 12px; } }

/* The take-home note on each leader guide */
.take-home { padding: 18px 22px; background: var(--paper); border: 2px dashed var(--gold); border-radius: var(--radius); }
.take-home h3 { margin-top: 4px; }
.take-home p { margin: 0 0 8px; }
@media print { .take-home { break-inside: avoid; } }

.related { margin: 1em 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.related a { font-weight: 600; }

/* Questions parents ask */
.faq details { margin: 0 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { padding: 12px 16px; font-weight: 700; cursor: pointer; }
.faq summary:hover { color: var(--gold-2); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 12px 16px; }
@media print { .faq details { break-inside: avoid; } }

/* Keyboard focus: a clear gold ring on every link and button */
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.card:focus-visible, .door-card:focus-visible, .door a:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

/* Home: the four doors in one row, two by two, or one under another, never three and one */
.doors-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .doors-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .doors-4 { grid-template-columns: 1fr; } .door-card { flex-direction: row; text-align: left; padding: 14px; } .door-card img { width: 90px; height: 80px; flex: none; } }

/* Chapter pages: the chapter bar stays at the top while you scroll, and a strip of the chapter's pictures */
.walk { position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 8px rgba(31, 36, 48, .15); }
.stone, .closing, #stones { scroll-margin-top: 64px; }
.strip-nav { margin-top: 22px; }
.strip { display: flex; gap: 10px; margin: 0; padding: 4px 2px 10px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.strip li { flex: 0 0 116px; scroll-snap-align: start; }
.strip a { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 8px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: .8rem; line-height: 1.25; text-align: center; text-decoration: none; }
.strip a:hover { border-color: var(--c); }
.strip img { width: 76px; height: 64px; object-fit: contain; margin-bottom: 4px; }
.strip b { color: var(--c); }
.closing .btn { margin-top: 6px; }
@media print { .strip-nav { display: none; } .walk { position: static; } }

/* Bible verses get a large opening quotation mark; "Talk about it" boxes read like a speech bubble */
.verse { position: relative; z-index: 0; }
.verse:not(.verse-center)::before { content: "\201C"; position: absolute; z-index: -1; top: -6px; right: 12px; color: var(--gold-soft); font: 700 3.6rem/1 var(--serif); pointer-events: none; }
.gospel .verse::before, .mv .verse::before { content: none; }
@media (min-width: 761px) { .verse:not(.verse-center) { padding-right: 46px; } .gospel .verse { padding-right: 18px; } .mv .verse { padding-right: 0; } }
@media (max-width: 760px) { .verse:not(.verse-center)::before { opacity: .6; } }
.stone .ask, .where .ask { position: relative; margin-bottom: 18px; }
.stone .ask::after, .where .ask::after { content: ""; position: absolute; left: 26px; bottom: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--gold-soft); }
.stone .ask span::before, .where .ask span::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--gold-2); color: #fff; font-size: .72rem; }
/* Lessons in real photos: rounded photos with a soft shadow, the credit in small type under the caption */
.photo img { border-radius: 12px; box-shadow: 0 6px 18px rgba(31, 36, 48, .16); }
.stone .photo img { max-height: 440px; }
.head-pic.photo img { max-height: 380px; width: auto; }
.credit { display: block; margin-top: 3px; font-size: .78rem; }
.credit a { color: inherit; }
.card.photo-card img { height: 200px; object-fit: cover; border-radius: 10px; }
/* A wide last photo card: the photo fills the left side from top to bottom. */
@media (min-width: 640px) and (max-width: 949px) {
  .chapters > li:last-child:nth-child(odd) > .card.photo-card img { align-self: stretch; width: 100%; height: 100%; min-height: 200px; }
}
@media (min-width: 950px) {
  .chapters > li:last-child:is(:nth-child(3n+1), :nth-child(3n+2)) > .card.photo-card img { align-self: stretch; width: 100%; height: 100%; min-height: 200px; }
}
@media (max-width: 760px) { .stone .photo img { max-height: 320px; } .head-pic.photo img { max-height: 240px; } }
@media print { .photo img { box-shadow: none; } }
