/* The leaders page. Loaded after house.css and style.css, which bring the type, the colours, the bar and the footer.
   Its own pieces: a painting beside the opening, a table that sets the two apps side by side, and a sheet of
   paper on a desk that fills in as the leader chooses a passage and prints on one page. */

.leaders-page h2 { margin-bottom: 4px; }

/* ───────── opening ───────── */
main > .l-open { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(26px, 5vw, 76px); align-items: center; padding-top: clamp(30px, 4.5vw, 64px); padding-bottom: clamp(44px, 6vw, 84px); }
.l-open .ap-kicker { font-size: clamp(1.12rem, 1.7vw, 1.4rem); }
.l-open h1 { font-size: clamp(2.7rem, 6.3vw, 6.3rem); line-height: .98; letter-spacing: -.02em; margin-bottom: clamp(18px, 2.4vw, 30px); }
.l-open .lead { max-width: 34em; }
.l-open-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(20px, 2.6vw, 32px); }
.l-open-go .ap-btn { font-size: 1.06rem; padding: 18px 28px; }
.l-open-art { margin: 0; }
.l-open-art img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.l-open-art figcaption, .ask-art figcaption, .teach-app figcaption { font-size: .86rem; color: var(--ap-soft); margin-top: 10px; }
@media (max-width: 860px) {
  main > .l-open { grid-template-columns: 1fr; }
  .l-open-art img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
}

/* ───────── the two apps side by side ───────── */
main > .facts { border-top: 1px solid var(--ap-line); }
.facts-scroll { margin-top: clamp(22px, 3vw, 38px); }
.facts table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.facts col, .facts thead td { width: 17%; }
.facts thead th { text-align: left; vertical-align: bottom; font: 500 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--ap-serif); padding: 18px 22px 16px; }
.facts thead th img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 10px; }
.facts thead th span { display: block; font: 400 .86rem/1.4 var(--ap-sans); color: var(--ap-soft); margin-top: 2px; }
.facts tbody th { text-align: left; vertical-align: top; font: 500 1.22rem/1.3 var(--ap-serif); padding: 15px 18px 15px 0; }
.facts tbody td { vertical-align: top; padding: 16px 22px; font-size: .98rem; line-height: 1.55; }
.facts tbody tr { border-top: 1px solid var(--ap-line); }
/* each column carries a little of its app's own colour: Meek's night blue, BibleBound's gold */
.facts th:nth-child(2), .facts td:nth-child(2) { background: color-mix(in srgb, #3b4a8c 9%, transparent); }
.facts th:nth-child(3), .facts td:nth-child(3) { background: color-mix(in srgb, #a67c1a 11%, transparent); }
.facts thead th:nth-child(2), .facts thead th:nth-child(3) { border-radius: 12px 12px 0 0; }
.facts tbody tr:last-child td { border-radius: 0 0 12px 12px; }
.facts-more { margin: 20px 0 0; color: var(--ap-soft); font-size: .95rem; }
@media (max-width: 760px) {
  .facts thead { display: none; }
  .facts table, .facts tbody, .facts tr, .facts tbody th, .facts tbody td { display: block; width: auto; }
  .facts tbody tr { padding: 18px 0 8px; }
  .facts tbody th { padding: 0 0 10px; font-size: 1.4rem; }
  .facts tbody td { border-radius: 10px !important; margin-bottom: 8px; padding: 12px 14px; }
  .facts tbody td::before { content: attr(data-app); display: block; font: 700 .82rem/1.4 var(--ap-sans); margin-bottom: 2px; }
}

/* ───────── a week to print: a sheet of paper on a desk ───────── */
main > .sheet-sec { max-width: none; padding-inline: 0; background: var(--band); }
.sheet-head, .desk { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.desk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); margin-top: clamp(26px, 3.4vw, 44px); align-items: start; }
.desk-set { position: sticky; top: 84px; display: grid; gap: 16px; }
.set-row label { display: block; font-size: .9rem; color: var(--ap-soft); margin-bottom: 6px; }
.set-pair { display: grid; gap: 8px; }
.desk-set select, .desk-set input[type="text"], .desk-set input[type="date"] { width: 100%; font: 500 1.02rem/1.2 var(--ap-sans); color: var(--ap-ink); background: var(--card); border: 1px solid var(--ap-line); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.set-check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.set-check input { width: 18px; height: 18px; accent-color: var(--ap-ink); flex: none; }
.set-go { display: grid; gap: 10px; justify-items: start; }
.desk-set .fine { line-height: 1.5; }
#l-say { color: var(--ap-accent); font-size: .92rem; }

/* paper is paper in light and dark alike */
.paper { --p-ink: #1d1812; --p-soft: #5d5245; --p-line: #ddd2bd; --p-accent: #8b3a1f;
  background: #fffdf7; color: var(--p-ink); border-radius: 3px; padding: clamp(22px, 4.6vw, 54px); max-width: 800px;
  box-shadow: 0 1px 1px rgba(40, 25, 10, .12), 0 30px 60px -28px rgba(40, 25, 10, .55); }
.paper + .paper { margin-top: 26px; }
.paper-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; border-bottom: 2px solid var(--p-ink); padding-bottom: 12px; }
.paper-kicker { font: italic 400 1.08rem/1.3 var(--ap-serif); color: var(--p-accent); margin: 0 0 2px; }
.paper h3 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -.012em; }
.paper-title { font: italic 400 1.25rem/1.25 var(--ap-serif); margin: 8px 0 0; }
.paper-who { text-align: right; font-size: .86rem; line-height: 1.4; color: var(--p-soft); flex: none; max-width: 46%; }
.paper-who b { display: block; font: 500 1.15rem/1.2 var(--ap-serif); color: var(--p-ink); }
.paper-sum { font: 400 1.08rem/1.45 var(--ap-serif); color: var(--p-soft); margin: 12px 0 4px; }
.paper-days { list-style: none; margin: 0; padding: 0; }
.paper-days li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 22px; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--p-line); align-items: start; }
.paper-days img { width: 58px; height: 58px; border-radius: 4px; }
.paper-days h4 { font: italic 400 1.12rem/1.2 var(--ap-serif); color: var(--p-accent); margin: 0 0 3px; }
.paper-days h4 b { font: 600 1.22rem/1.2 var(--ap-serif); font-style: normal; color: var(--p-ink); margin-right: 9px; }
.paper-days p { margin: 0; font-size: .93rem; line-height: 1.48; }
.rules i { display: block; height: 24px; border-bottom: 1px solid #b9ad97; }
.blank { margin-top: 6px !important; color: var(--p-soft); }
.blank span { display: inline-block; width: 13em; max-width: 60%; border-bottom: 1px solid #b9ad97; margin-left: 8px; }
.tick { width: 20px; height: 20px; border: 1.5px solid var(--p-ink); border-radius: 3px; margin-top: 3px; }
.paper-sunday { font: italic 400 1.12rem/1.4 var(--ap-serif); margin: 12px 0 0; }
.paper-foot { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--p-ink); }
.paper-foot img { width: 66px; height: 66px; flex: none; }
.paper-foot p { margin: 0; font-size: .86rem; line-height: 1.45; }
.paper-small { font-size: .82rem !important; color: var(--p-soft); margin-top: 4px !important; }
.notes .notes-h { font: 500 1.35rem/1.2 var(--ap-serif); margin: 20px 0 8px; }
.notes > p:not(.paper-sum):not(.paper-small), .notes li, .notes dd { font-size: .95rem; line-height: 1.5; margin: 0 0 8px; }
.notes ol, .notes ul { margin: 0; padding-left: 1.3em; }
.notes li { margin-bottom: 7px; }
.notes dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.notes dt { font: 500 1.05rem/1.4 var(--ap-serif); }
.notes dd { margin: 0; color: var(--p-soft); }
.notes > .paper-small { margin-top: 18px !important; padding-top: 10px; border-top: 1px solid var(--p-line); }
@media (max-width: 900px) {
  .desk { grid-template-columns: 1fr; }
  .desk-set { position: static; }
  .set-pair { grid-template-columns: 1fr 1fr; }
  .set-go { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 520px) {
  .paper-days li { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 10px; }
  .paper-days img { width: 44px; height: 44px; }
  .paper-top { flex-direction: column; align-items: flex-start; }
  .paper-who { text-align: left; max-width: none; }
  .set-go { grid-auto-flow: row; }
  .notes dl { grid-template-columns: 1fr; gap: 0; } .notes dd { margin-bottom: 8px; }
}

/* ───────── what they teach: each app in its own colours ───────── */
main > .teach { max-width: none; padding-inline: 0; padding-bottom: 0; }
.teach-head { max-width: var(--wide); margin: 0 auto clamp(30px, 4vw, 52px); padding-inline: var(--gutter); }
.teach-app { --t-bg: #0d1424; --t-ink: #ecebf6; --t-soft: #b5b6cf; --t-accent: #f0b866; background: var(--t-bg); color: var(--t-ink); padding: clamp(44px, 6.5vw, 92px) max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 76px); align-items: start; }
.teach-bb { --t-bg: #efe6d3; --t-ink: #33281c; --t-soft: #5d4f3d; --t-accent: #7a5c12; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.teach-bb figure { order: 2; }
.teach-app figure { margin: 0; position: sticky; top: 90px; }
.teach-app figure img { width: 100%; border-radius: 10px; box-shadow: 0 24px 60px -26px rgba(0, 0, 0, .7); }
.teach-app figcaption { color: var(--t-soft); }
.teach-app h3 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.015em; margin-bottom: 18px; }
.teach-app p { max-width: 38em; }
.teach-app a { color: var(--t-accent); }
.qs { margin-top: 22px; border-top: 1px solid color-mix(in srgb, var(--t-ink) 22%, transparent); padding-top: 14px; }
.qs summary { cursor: pointer; font-weight: 500; color: var(--t-accent); }
.qs summary span { text-decoration: underline; text-underline-offset: 3px; }
.qs input { display: block; width: 100%; max-width: 26em; margin: 16px 0 6px; font: 400 1rem/1.2 var(--ap-sans); color: var(--t-ink); background: color-mix(in srgb, var(--t-ink) 8%, transparent); border: 1px solid color-mix(in srgb, var(--t-ink) 30%, transparent); border-radius: 999px; padding: 12px 18px; }
.qs input::placeholder { color: color-mix(in srgb, var(--t-ink) 50%, transparent); }
.qs ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 26em; overflow-y: auto; }
.qs li { font: 400 1.18rem/1.3 var(--ap-serif); padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--t-ink) 12%, transparent); }
@media (max-width: 860px) {
  .teach-app, .teach-bb { grid-template-columns: 1fr; }
  .teach-app figure { position: static; }
  .teach-bb figure { order: 0; max-width: 420px; }
}

/* ───────── how it was checked ───────── */
.checked-body { max-width: 44rem; margin-top: clamp(18px, 2.6vw, 30px); }
.checked-first { font: 400 clamp(1.5rem, 2.6vw, 2.05rem)/1.3 var(--ap-serif); margin-bottom: .8em; }

/* ───────── not yet ───────── */
main > .notyet { border-top: 1px solid var(--ap-line); }
.notyet ul { list-style: none; margin: clamp(18px, 2.6vw, 30px) 0 0; padding: 0; max-width: 60rem; }
.notyet li { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4px 28px; padding: 15px 0; border-top: 1px solid var(--ap-line); }
.notyet li b { font: 500 1.3rem/1.3 var(--ap-serif); }
@media (max-width: 700px) { .notyet li { grid-template-columns: 1fr; } }

/* ───────── in the room ───────── */
main > .room { border-top: 1px solid var(--ap-line); }
.room-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 6vw, 90px); margin-top: clamp(20px, 3vw, 36px); }
.room h3 { font-size: 1.5rem; margin-bottom: 10px; }
.room ol { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.room li { counter-increment: step; position: relative; padding: 10px 0 10px 2.6rem; border-top: 1px solid var(--ap-line); }
.room li::before { content: counter(step); position: absolute; left: 0; top: 4px; font: italic 400 1.7rem/1.3 var(--ap-serif); color: var(--ap-accent); }
@media (max-width: 760px) { .room-two { grid-template-columns: 1fr; } }

/* ───────── write to me ───────── */
main > .ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(26px, 5vw, 76px); align-items: start; border-top: 1px solid var(--ap-line); }
.ask-art { margin: 0; }
.ask-art img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.ask-text h2 { margin-bottom: 16px; }
.ask-text > p { max-width: 36em; }
.ask-go { margin: 22px 0 0; }
.l-join { margin-top: clamp(30px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--ap-line); max-width: 38rem; }
.l-join h3 { margin-bottom: 8px; }
.l-join label { display: block; font-size: .9rem; color: var(--ap-soft); margin-bottom: 8px; }
.l-join-row { display: flex; gap: 10px; flex-wrap: wrap; }
.l-join-row input { flex: 1 1 240px; min-width: 0; font: 400 1.05rem/1.2 var(--ap-sans); padding: 15px 18px; border-radius: 999px; border: 1px solid var(--ap-line); background: var(--card); color: var(--ap-ink); }
.l-join .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.l-join .join-say.bad { color: var(--ap-accent); }
.l-join.done .l-join-row, .l-join.done > label { display: none; }
@media (max-width: 860px) { main > .ask { grid-template-columns: 1fr; } .ask-art { max-width: 420px; } }

/* ───────── printing: only the sheet, on one page, and the notes on a second if they are wanted ───────── */
@media print {
  @page { margin: 11mm 13mm; }
  html, body { background: #fff !important; }
  .ap-strip, .bar, .skip, .ap-foot, .toast, .sheet-head, .desk-set, main > section:not(.sheet-sec) { display: none !important; }
  main > .sheet-sec { padding: 0; background: none; }
  .desk { display: block; margin: 0; padding: 0; max-width: none; }
  .paper { box-shadow: none; border-radius: 0; padding: 0; max-width: none; background: none; color: #000; --p-ink: #000; --p-soft: #333; --p-line: #bbb; --p-accent: #6d2c16; }
  .notes { display: none; }
  body.with-notes .notes { display: block; break-before: page; page-break-before: always; margin-top: 0; }
  .paper-top { padding-bottom: 6pt; }
  .paper-kicker { font-size: 11pt; }
  .paper h3 { font-size: 25pt; }
  .paper-title { font-size: 13pt; margin-top: 2pt; }
  .paper-who { font-size: 8.5pt; } .paper-who b { font-size: 12pt; }
  .paper-sum { font-size: 10.5pt; line-height: 1.32; margin: 7pt 0 2pt; }
  .paper-days li { grid-template-columns: 40pt minmax(0, 1fr) 14pt; gap: 10pt; padding: 8pt 0; break-inside: avoid; }
  .paper-days img { width: 40pt; height: 40pt; }
  .paper-days h4 { font-size: 11.5pt; margin-bottom: 1.5pt; } .paper-days h4 b { font-size: 12.5pt; }
  .paper-days p { font-size: 9.8pt; line-height: 1.38; }
  .rules i { height: 19pt; }
  .tick { width: 13pt; height: 13pt; margin-top: 2pt; }
  .paper-sunday { font-size: 11pt; margin-top: 7pt; }
  .paper-foot { margin-top: 7pt; padding-top: 7pt; gap: 10pt; }
  .paper-foot img { width: 46pt; height: 46pt; }
  .paper-foot p { font-size: 8.6pt; line-height: 1.35; } .paper-small { font-size: 8pt !important; margin-top: 2pt !important; }
  .notes .notes-h { font-size: 14pt; margin: 14pt 0 6pt; }
  .notes > p:not(.paper-sum):not(.paper-small), .notes li, .notes dd { font-size: 10.5pt; line-height: 1.42; }
  .notes dt { font-size: 11.5pt; }
}
