/* Sacred Name Collection — Facebook Collection Edition (draft)
   Palette follows the facebook.html front door; status badges and notice
   styles follow the website_v2 shared approach. */
:root{--deep:#12322f;--gold:#9b742e;--paper:#fbfaf5;--ink:#18201e;--muted:#5f6b67;--line:#ddd8ca}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}
.shell{max-width:1120px;margin:auto;padding:0 20px}
.site-header{background:var(--deep);color:#fff;padding:16px 0;position:sticky;top:0;z-index:5}
.site-header .brand{font-family:Georgia,serif;font-size:22px;font-weight:700;color:#fff;text-decoration:none}
.topnav{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px 14px}
.topnav a{color:#dbe4e1;text-decoration:none;font-size:14px;font-weight:600}
.topnav a:hover{text-decoration:underline;color:#fff}
main.shell{padding-top:28px;padding-bottom:10px}
h1{font-family:Georgia,serif;font-size:clamp(30px,5vw,46px);line-height:1.1;margin:8px 0 14px;color:var(--deep)}
h2{font-family:Georgia,serif;color:var(--deep)}
.lead{font-size:19px;line-height:1.55;color:var(--muted);max-width:860px}
.btn{display:inline-block;text-decoration:none;border-radius:11px;padding:13px 17px;font-weight:800;background:var(--deep);color:#fff;border:1px solid var(--deep)}
.btn.alt{background:#fff;color:var(--deep);border-color:var(--line)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;display:flex;flex-direction:column}
.card h2,.card h3{font-family:Georgia,serif;color:var(--deep);margin:4px 0 8px}
.card p{color:var(--muted);line-height:1.5}
.card .btn{margin-top:auto;text-align:center}
.notice{background:#f0eadb;border:1px solid #d9cda9;border-radius:16px;padding:18px 20px;line-height:1.55;margin:16px 0}
.notice.important{background:#f7e8e4;border-color:#d9a79b}
article.reading{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px;line-height:1.75;font-size:18px}
article.reading h1{font-size:clamp(28px,4.5vw,40px)}
article.reading h2{margin-top:1.2em}
.workmeta{color:var(--muted);font-size:15px;margin-top:-6px}
.crumbs a,.prevnext a{color:var(--deep);font-weight:700;text-decoration:none}
.crumbs a:hover,.prevnext a:hover{text-decoration:underline}
.prevnext{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:22px 0 6px}
.chapnav{display:flex;flex-wrap:wrap;gap:4px 10px;margin:14px 0 22px;font-size:14px}
.chapnav a{color:var(--deep);text-decoration:none;border:1px solid var(--line);border-radius:8px;padding:3px 8px;background:var(--paper)}
.chapnav a:hover{border-color:var(--gold)}
section.chapter,section.unit{margin-bottom:10px}
p.verse{margin:.45em 0}
.vnum{font-size:.72em;font-weight:700;color:var(--gold);vertical-align:super;margin-right:2px}
.ad-slot{border:2px dashed #c9bfa5;background:#f5f1e6;border-radius:12px;padding:16px 20px;margin:26px 0;text-align:center}
.ad-slot .ad-label{font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:12px;color:var(--gold);margin:0 0 6px}
.ad-slot .ad-note{color:var(--muted);font-size:14px;line-height:1.5;margin:0}
.status{display:inline-block;font-size:12px;font-weight:800;padding:3px 10px;border-radius:12px;margin-left:8px;vertical-align:middle;letter-spacing:.03em}
.status.held{background:#2e7d32;color:#fff}
.status.forthcoming{background:#6d6759;color:#fff}
.status.partial{background:#b7791f;color:#fff}
.booklist{list-style:none;padding:0;margin:10px 0 26px}
.booklist li{padding:9px 0;border-bottom:1px solid var(--line)}
.booklist a{color:var(--deep);font-weight:700;text-decoration:none;font-size:18px}
.booklist a:hover{text-decoration:underline}
.booklist .sub{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.site-footer{background:var(--deep);color:#dbe4e1;padding:30px 0;margin-top:34px}
.site-footer .fineprint{font-size:13px;color:#a9bcb6;line-height:1.5}
table.facts{border-collapse:collapse;margin:14px 0}
table.facts td,table.facts th{border:1px solid var(--line);padding:8px 12px;text-align:left}
table.facts th{background:#f0eadb}
@media(max-width:850px){.grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.grid{grid-template-columns:1fr}article.reading{padding:20px;font-size:17px}.btn{width:100%;text-align:center}}

/* Language list — one international website (2026-10-17) */
.lang-menu{margin:10px 0 0;font-size:14px}
.lang-menu-title{font-weight:700;margin:0 0 4px}
.lang-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px}
.lang-list a{color:inherit}
.lang-list a.current{font-weight:800}
.lang-pending{opacity:.6}


/* Multilingual gateway, Listen & Read pairing, audio slots (2026-10-17) */
.gateway{padding:34px 0 6px}
.gateway h2{font-family:Georgia,serif;color:var(--deep);margin:0 0 8px}
.gw-lead{color:var(--muted);line-height:1.55;max-width:860px}
.gateway-grid{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.gw-chip{display:inline-flex;flex-direction:column;gap:2px;text-decoration:none;border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:#fff;color:var(--deep);font-weight:700;font-size:17px}
a.gw-chip:hover{border-color:var(--gold)}
.gw-chip small{font-weight:600;font-size:12px;color:var(--muted)}
.gw-chip.gw-soon{opacity:.65;font-weight:600}
.gw-chip.current{outline:2px solid var(--gold)}
.gw-pair{line-height:1.55;color:var(--muted);max-width:860px}
.pairing{border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:20px 22px;margin:20px 0}
.pairing h2{margin-top:0}
.pair-intro{line-height:1.55;color:var(--muted)}
.pair-controls{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:12px 0}
.pair-controls label{font-weight:700;color:var(--deep);font-size:15px}
.pair-controls select{font-size:15px;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:#fff;margin-left:6px;max-width:100%}
.pair-follow-label{font-weight:600}
.pair-status{font-size:14px;color:var(--muted);margin:10px 0 0}
.pair-reader{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:14px}
.pair-col{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;min-height:120px}
.pair-col h3{font-family:Georgia,serif;color:var(--deep);margin:0 0 10px;font-size:19px}
.pair-summary{font-style:italic;color:var(--muted)}
.pair-note{font-size:.86em;color:var(--muted);border-left:3px solid var(--line);padding-left:10px;margin:.4em 0 .8em}
.pair-none{color:var(--muted);line-height:1.55}
.pair-draft-note{font-size:13px;color:var(--muted);line-height:1.5}
.pair-note-line{color:var(--muted);font-size:14px;line-height:1.5}
.pair-read-links{list-style:none;padding:0;margin:6px 0 10px;display:flex;flex-wrap:wrap;gap:6px 16px}
.pair-read-links a{color:var(--deep);font-weight:700;text-decoration:none}
.pair-read-links a:hover{text-decoration:underline}
.pair-read-links a.current{outline:2px solid var(--gold);border-radius:6px;padding:0 4px}
.audio-slot{border:1px solid var(--line);border-left:5px solid var(--gold);border-radius:12px;background:#fff;padding:14px 18px;margin:14px 0}
.audio-slot-label{font-weight:800;color:var(--deep);margin:0 0 8px}
.audio-slot audio{width:100%;max-width:520px}
.audio-slot audio[disabled]{opacity:.45}
.audio-slot-state{color:var(--muted);font-size:14px;line-height:1.5;margin:8px 0 0}
.audio-slot code{font-size:12.5px}
.audio-slot select{font-size:15px;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:#fff;margin-left:6px}
.audio-aspect{margin:26px 0}
@media(max-width:700px){.pair-reader{grid-template-columns:1fr}}


/* ============================================================================
   READING DEDICATION + PRINT — owner rulings 2026-10-19 (19:31–19:35 EDT)
   Opened works (body.rd): the screen is dedicated to the work. The standing
   header, contents list and Listen & Read panel are moved by ads.js into a
   tap-summoned overlay; one small corner control remains — a BACK ARROW to
   the shelf, with a companion menu glyph that summons the overlay.
   Shelf/door pages keep light chrome, slimmed on phones.
   Print: clean classroom handouts — title head + content only.
   ========================================================================== */

/* --- Shelf/door chrome: slim on phones (tap-era browsing surfaces) --- */
@media(max-width:700px){body:not(.rd) header:not(.site-header){padding:8px 0}}
@media(max-width:700px){
  body:not(.rd) .site-header{padding:8px 0}
  body:not(.rd) .site-header .brand{font-size:19px}
  body:not(.rd) .topnav{margin-top:6px;gap:4px 10px}
  body:not(.rd) .topnav a{font-size:13px}
  body:not(.rd) .lang-menu{margin-top:6px;font-size:12.5px}
  body:not(.rd) .lang-menu-title{display:none}
  body:not(.rd) .lang-list{gap:2px 10px}
  body:not(.rd) .lang-list .lang-pending{display:none}
}

/* --- Opened works: full-viewport dedication --- */
body.rd main.shell{max-width:none;width:100%;padding:64px 16px 10px}
@media(min-width:701px){body.rd main.shell{padding:64px 30px 10px}}
body.rd article.reading{border-left:0;border-right:0;border-radius:0}
body.rd .crumbs{display:none}

/* The one standing control: back arrow + companion summon glyph (corner).
   A single horizontal cluster, 42px tall; the reading surface carries a
   matching 64px top inset so the work's title never sits beneath it. */
.rd-corner{position:fixed;top:10px;left:10px;z-index:90;display:flex;flex-direction:row;gap:8px}
.rd-corner button{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.45);background:rgba(18,50,47,.85);color:#fff;font-size:21px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.30);display:flex;align-items:center;justify-content:center;padding:0;font-family:inherit}
.rd-corner button:active{background:rgba(18,50,47,1)}
.rd-corner .rd-back{font-weight:700}

/* Tap-summoned overlay: shelf nav, contents, Listen & Read, print actions */
.rd-overlay{position:fixed;inset:0;z-index:80;background:rgba(251,250,245,.985);overflow:auto;padding:18px 16px 30px}
.rd-overlay[hidden]{display:none}
.rd-overlay-inner{max-width:860px;margin:0 auto}
.rd-overlay .site-header{position:static;border-radius:14px}
.rd-overlay .chapnav{margin:16px 0;font-size:15px}
.rd-overlay .chapnav a{padding:6px 10px}
.rd-overlay .pairing{margin:16px 0}
.rd-overlay-close{display:block;margin:0 0 12px auto;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--deep);font-size:19px;cursor:pointer}
.rd-printbar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px}
.rd-printbar button{border:1px solid var(--deep);background:var(--deep);color:#fff;border-radius:10px;padding:11px 16px;font-weight:700;font-size:15px;cursor:pointer;font-family:inherit}
.rd-printbar button.alt{background:#fff;color:var(--deep)}

/* Print head: built by ads.js from the page's own brand/title/crumbs text */
.rd-print-head{display:none}

/* --- Print: clean classroom handouts for every page class --- */
@media print{
  @page{margin:17mm 14mm}
  body{background:#fff !important;color:#000}
  header,footer,.site-header,.site-footer,.rd-corner,.rd-overlay,.crumbs,.prevnext,.ad-slot,.pairing,.audio-slot,.chapnav,.lang-menu,.topnav,.gateway{display:none !important}
  audio,video,iframe{display:none !important}
  .shell,main.shell,body.rd main.shell{max-width:none !important;width:100% !important;padding:0 !important;margin:0 !important}
  article.reading{border:0 !important;border-radius:0 !important;padding:0 !important;font-size:12pt;line-height:1.6;background:#fff !important}
  h1,h2,h3{color:#000 !important}
  h2,h3{break-after:avoid}
  a{color:#000 !important;text-decoration:none}
  p.verse{break-inside:avoid}
  section.chapter,section.unit{break-inside:auto}
  .notice{background:#fff !important;border-color:#999}
  .rd-print-head{display:block !important;border-bottom:2px solid #000;padding-bottom:8px;margin:0 0 16px}
  .rd-print-head .rd-ph-brand{font-size:9.5pt;letter-spacing:.09em;text-transform:uppercase}
  .rd-print-head .rd-ph-title{font-family:Georgia,serif;font-size:20pt;font-weight:700;line-height:1.15;margin:2px 0}
  .rd-print-head .rd-ph-sub{font-size:10.5pt;color:#333}
  .rd-print-head .rd-ph-mode{font-size:10.5pt;font-weight:700;margin-top:2px}
  .rd-print-head .rd-ph-mode:empty{display:none}
  /* Music lanes: lyrics sheet vs notes sheet (lane set by ads.js) */
  body.rd-print-lyrics [data-rd-lane="notes"],body.rd-print-lyrics [data-rd-lane="other"],body.rd-print-lyrics [data-rd-lane="head"]{display:none !important}
  body.rd-print-notes [data-rd-lane="lyrics"],body.rd-print-notes [data-rd-lane="other"],body.rd-print-notes [data-rd-lane="head"]{display:none !important}
  /* Education handout mode: questions only, with ruled writing space */
  body.rd-print-questions [data-rd-block="answers"]{display:none !important}
  body.rd-print-questions [data-rd-block="questions"] li,body.rd-print-questions [data-rd-q]{padding-bottom:11mm;margin-bottom:3mm;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 5.4mm,#aaa 5.5mm);background-size:100% 11mm;background-repeat:no-repeat;background-position:bottom left}
}
