/* The National Archive of Schwartzistan: an archives catalogue of 2026.
   A government-agency header with the catalogue search, record pages with a reference code and a details table,
   and the record itself shown as a digitised document: paper, ruled ledger, the hand of its decade. */

html.shell-archive {
  --body-font: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head-font: 'Source Serif 4', Georgia, serif;
  --ui: var(--body-font);
  --paper: #ffffff; --ink: #1d1d1b; --accent: #0b4f6c; --rule: #b9c2c9; --muted: #555b60; --rule-soft: #e3e7ea; --panel: #f3f5f6;
  --na-navy: #10263b; --na-gold: #d9a441; --na-link: #0b5c8a;
  --measure: 78ch; --fs: 17px; --lh: 1.55; --gap: 1rem; --block: 1.8rem;
  --rule-w: 1px; --rule-style: solid; --h-weight: 600; --h1: 2.1rem; --h2: 1.35rem;
}
.shell-archive body { background: #fff; font-variant-numeric: lining-nums; }
.shell-archive a { color: var(--na-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--na-link) 40%, transparent); text-underline-offset: .15em; }
.shell-archive a:hover { color: #073a57; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.na-in { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.na-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.na-skip { position: absolute; left: -999px; }
.na-skip:focus { left: 1rem; top: .5rem; background: var(--na-gold); color: #000; padding: .4rem .8rem; z-index: 10; }

/* ---------- header ---------- */
.na-govbar { background: #0a1a29; color: #c9d3dc; font-size: .78rem; }
.na-govbar .na-in { display: flex; justify-content: space-between; padding-top: .3rem; padding-bottom: .3rem; }
.na-govbar a { color: #c9d3dc !important; text-decoration: none !important; }
.na-header { background: var(--na-navy); color: #fff; border-bottom: 4px solid var(--na-gold); }
.na-header-in { display: flex; align-items: center; gap: 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.na-logo { display: flex; align-items: center; gap: .8rem; color: #fff !important; text-decoration: none !important; flex: none; }
.na-logo img { background: #fff; border-radius: 50%; padding: 2px; }
.na-logo span { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--head-font); }
.na-logo b { font-size: 1.45rem; font-weight: 600; letter-spacing: .005em; }
.na-logo small { font-size: .9rem; color: #c9d3dc; font-weight: 400; }
.na-headsearch { flex: 1; max-width: 34rem; margin-left: auto; display: flex; }
.na-headsearch input { flex: 1; font: inherit; font-size: 1rem; padding: .55rem .8rem; border: 2px solid #fff; border-right: 0; border-radius: 0; background: #fff; color: var(--ink); }
.na-headsearch input:focus { outline: 3px solid var(--na-gold); outline-offset: 0; }
.na-headsearch button { border: 2px solid #fff; background: var(--na-gold); color: #10263b; padding: 0 .9rem; cursor: pointer; display: flex; align-items: center; }
.na-nav { background: #183650; }
.na-nav .na-in { display: flex; flex-wrap: wrap; gap: 0; }
.na-nav a { color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: .95rem; padding: .7rem 1rem; border-bottom: 3px solid transparent; }
.na-nav a:first-child { padding-left: 0; }
.na-nav a:hover { border-bottom-color: var(--na-gold); background: rgba(255,255,255,.05); }

/* ---------- page ---------- */
.shell-archive main.na-main { max-width: 1180px; padding: 1.5rem 1.5rem 3rem; }
.shell-archive h1, .shell-archive h2, .shell-archive h3 { font-family: var(--head-font); color: var(--na-navy); }
.shell-archive h1 { font-size: 2.1rem; font-weight: 600; line-height: 1.15; }
.shell-archive h1 small { font-family: var(--body-font); font-size: .5em; color: var(--muted); font-weight: 400; }
.shell-archive h2 { font-size: 1.35rem; font-weight: 600; margin-top: 2rem; }
.shell-archive .kicker { font-family: var(--body-font); font-size: .85rem; color: var(--muted); font-variant: normal; letter-spacing: 0; }
.shell-archive .deck { font-style: normal; color: var(--muted); }
.shell-archive th { font-family: var(--body-font); font-size: .85rem; color: var(--ink); letter-spacing: 0; font-variant: normal; font-weight: 700; border-bottom: 2px solid var(--na-navy); }
.shell-archive td { border-bottom-color: var(--rule-soft); }
.shell-archive table { font-size: .95rem; }
.na-crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1rem; }
.na-crumbs a { color: var(--na-link); }
.na-type { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .3rem; font-weight: 600; }
.na-ref { font-size: 1rem; margin: .2rem 0 0; }
.na-ref b { font-family: 'Courier Prime', 'Courier New', monospace; font-weight: 700; background: var(--panel); border: 1px solid var(--rule); padding: .05rem .45rem; letter-spacing: .02em; }
.na-record-head { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.na-record-head h1 { margin: 0; }
.na-record-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; }
.na-record-side { position: sticky; top: 1rem; font-size: .95rem; }
.na-record-side h2 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
.na-section { margin-top: 2rem; }
.na-section > h2 { border-bottom: 2px solid var(--na-navy); padding-bottom: .3rem; margin-top: 0; }
.na-note { font-size: .92rem; color: var(--muted); max-width: none; }
.na-see { font-size: .92rem; margin: .4rem 0; }
dl.na-details { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; margin: 0 0 1rem; border-top: 1px solid var(--rule); }
dl.na-details dt, dl.na-details dd { margin: 0; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule-soft); max-width: none; }
dl.na-details dt { font-weight: 700; color: var(--ink); }
dl.na-details.side { grid-template-columns: 1fr; border-top: 0; }
dl.na-details.side dt { padding: .45rem 0 0; border: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
dl.na-details.side dd { padding: 0 0 .45rem; }
.na-actions { background: var(--panel); border: 1px solid var(--rule); border-top: 4px solid var(--na-gold); padding: 1rem; }
.na-btn { display: block; width: 100%; font: inherit; font-weight: 700; font-size: 1rem; padding: .65rem 1rem; margin: 0 0 .5rem; background: #1a6b3c; color: #fff; border: 0; border-bottom: 3px solid #0e4424; cursor: pointer; text-align: center; }
.na-btn:hover { background: #155a31; }
.na-btn.secondary { background: #fff; color: var(--na-navy); border: 2px solid var(--na-navy); }
.na-order-note { font-size: .88rem; color: var(--ink); background: #fff8e5; border-left: 4px solid var(--na-gold); padding: .5rem .7rem; margin: .4rem 0 0; }
table.na-table td.no, .register-list td.no { font-family: 'Courier Prime', 'Courier New', monospace; font-size: .85rem; white-space: nowrap; color: var(--ink); }
.shell-archive .stamp { transform: none; font-size: 10px; }
img.tree { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; margin: .5rem 0 1rem; }

/* ---------- the digitised document ---------- */
.scan-viewer { margin: 0 0 1rem; border: 1px solid #2b2b2b; background: #3a3a3a; }
.scan-toolbar { display: flex; justify-content: space-between; align-items: center; color: #e9e9e9; background: #262626; font-size: .82rem; padding: .35rem .7rem; }
.scan-tools button { font: inherit; font-size: 1rem; line-height: 1; width: 2rem; height: 1.7rem; background: #444; color: #fff; border: 1px solid #555; cursor: pointer; margin-left: .25rem; }
.scan-tools button:hover { background: #555; }
.scan-stage { padding: 1.4rem; overflow: auto; max-height: 38rem; }
.scan-viewer.compact .scan-stage { max-height: 22rem; }
.scan-viewer figcaption { max-width: none; background: #262626; color: #cfcfcf; font-size: .8rem; padding: .35rem .7rem; margin: 0; }
.scan-page { position: relative; margin: 0 auto; max-width: 860px; min-width: 560px; padding: 1.6rem 1.8rem 1.4rem; color: #2a2118; transition: transform .2s;
  background-color: #efe4c8;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,.35), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(120,85,40,.22), transparent 60%),
    radial-gradient(circle at 60% 40%, rgba(150,110,60,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 70%, rgba(150,110,60,.07) 0 1px, transparent 2px),
    linear-gradient(90deg, rgba(90,60,20,.12), transparent 6%, transparent 94%, rgba(90,60,20,.14));
  background-size: 100% 100%, 100% 100%, 37px 41px, 23px 29px, 100% 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.5), inset 0 0 60px rgba(120,80,30,.25); }
.scan-page.script-type { background-color: #f1ecdf; color: #222; }
.scan-page.script-print { background-color: #f7f5ef; color: #1f1f1f; box-shadow: 0 2px 10px rgba(0,0,0,.5), inset 0 0 30px rgba(0,0,0,.08); }
.ledger-title { font-family: 'IM Fell English SC', 'IM Fell English', Georgia, serif; font-size: 1.15rem; text-align: center; letter-spacing: .04em; margin: 0 0 .7rem; color: #3b2a17; max-width: none; border-bottom: 3px double rgba(60,40,20,.6); padding-bottom: .35rem; }
.script-type .ledger-title, .script-print .ledger-title { font-family: 'Courier Prime', 'Courier New', monospace; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: #222; border-bottom: 2px solid #333; }
table.ledger-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: transparent; }
.ledger-table th { font-family: 'IM Fell English', Georgia, serif; font-weight: 400; font-style: italic; font-size: .8rem; color: #4a3520; text-align: left; border: 0; border-bottom: 1.5px solid rgba(140,40,30,.55); border-right: 1px solid rgba(140,40,30,.35); padding: .25rem .4rem; letter-spacing: 0; }
.ledger-table td { border: 0; border-bottom: 1px solid rgba(60,80,140,.35); border-right: 1px solid rgba(140,40,30,.35); padding: .45rem .4rem .3rem; vertical-align: bottom; height: 2.6rem; }
.ledger-table th:last-child, .ledger-table td:last-child { border-right: 0; }
.script-hand .ledger-table td { font-family: 'Cedarville Cursive', 'Brush Script MT', cursive; font-size: 1.02rem; color: #2b2217; line-height: 1.25; }
.script-type .ledger-table td { font-family: 'Special Elite', 'Courier New', monospace; font-size: .86rem; color: #262626; }
.script-type .ledger-table th, .script-print .ledger-table th { font-family: 'Courier Prime', 'Courier New', monospace; font-style: normal; text-transform: uppercase; font-size: .7rem; color: #333; border-bottom-color: #555; border-right-color: #bbb; }
.script-print .ledger-table td { font-family: 'Courier Prime', 'Courier New', monospace; font-size: .86rem; color: #1f1f1f; border-bottom-color: #ccc; border-right-color: #ddd; }
.ledger-table tr.entry td { background: rgba(255, 236, 150, .28); }
.ledger-table tr.illegible i { display: block; height: .7rem; width: 85%; border-radius: 40% 60% 50% 50%; background: rgba(40,30,20,.45); filter: blur(2.5px); opacity: .55; }
.ledger-table tr.illegible td:nth-child(2n) i { width: 60%; }
.ledger-table tr.illegible td:nth-child(3n) i { width: 95%; }
.ledger-table tr.illegible.short td:nth-child(n+4) i { width: 35%; }
.script-type .ledger-table tr.illegible i, .script-print .ledger-table tr.illegible i { border-radius: 1px; background: rgba(0,0,0,.35); filter: blur(1.6px); }
.ledger-foot { font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: .82rem; margin: .8rem 0 0; color: #5a4630; max-width: none; }
.script-type .ledger-foot, .script-print .ledger-foot { font-family: 'Courier Prime', monospace; font-style: normal; color: #444; }
/* a document inside the viewer that is prose, not a ledger (wills, printed pages) */
.scan-page.document { padding: 2.2rem 2.6rem; }
.scan-page.document p, .scan-page.document li { max-width: none; }
.script-hand.document { font-family: 'Cedarville Cursive', cursive; font-size: 1.08rem; line-height: 1.75; }
.script-type.document { font-family: 'Special Elite', 'Courier New', monospace; font-size: .95rem; line-height: 1.65; }
.script-print.document { font-family: 'Courier Prime', 'Courier New', monospace; font-size: .95rem; line-height: 1.6; }
.scan-page.document a { color: inherit; text-decoration-color: rgba(0,0,0,.3); }
.scan-page.printed { font-family: 'IM Fell English', Georgia, serif; }

/* ---------- catalogue home ---------- */
.na-hero { background: linear-gradient(120deg, #10263b 0%, #1e4468 100%); color: #fff; margin: -1.5rem -1.5rem 2rem; padding: 2.5rem 1.5rem 2.2rem; }
.na-hero h1 { color: #fff; font-size: 2.3rem; margin: 0 0 .4rem; }
.na-hero p { color: #dbe4ec; max-width: 48rem; margin: 0 0 1rem; font-size: 1.08rem; }
.na-hero a { color: #fff !important; }
.na-bigsearch { display: flex; max-width: 46rem; }
.na-bigsearch input { flex: 1; font: inherit; font-size: 1.1rem; padding: .75rem 1rem; border: 0; border-radius: 0; }
.na-bigsearch button { font: inherit; font-weight: 700; font-size: 1.05rem; padding: 0 1.6rem; border: 0; background: var(--na-gold); color: #10263b; cursor: pointer; }
.na-filters { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: 1rem 0 0; font-size: .92rem; color: #dbe4ec; }
.na-filters label { display: flex; align-items: center; gap: .4rem; }
.na-filters select, .na-filters input { font: inherit; font-size: .9rem; padding: .25rem .4rem; border: 0; border-radius: 2px; }
.na-filters input { width: 5.5rem; }
.na-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.na-card { border: 1px solid var(--rule); border-top: 4px solid var(--na-navy); padding: 1rem 1.1rem; background: #fff; display: flex; flex-direction: column; }
.na-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.na-card h3 a { text-decoration: none; color: var(--na-navy); }
.na-card .code { font-family: 'Courier Prime', monospace; font-size: .8rem; color: var(--muted); }
.na-card p { font-size: .93rem; margin: .3rem 0 .6rem; color: var(--ink); }
.na-card .more { margin-top: auto; font-weight: 600; font-size: .92rem; }
.na-twocol { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.na-panel { background: var(--panel); border: 1px solid var(--rule); padding: 1rem 1.2rem; margin: 0 0 1rem; }
.na-panel h2 { margin-top: 0; font-size: 1.2rem; }
.na-panel dl.facts { grid-template-columns: minmax(6rem, 8rem) 1fr; font-size: .93rem; }

/* ---------- the older classes, kept for pages already built ---------- */
.shell-archive { --panel: #f3f5f6; }
.archive-page { max-width: none; margin: 0; }
.archive-page h1 { margin: .2rem 0 .3rem; }
.archive-page h2 { border-bottom: 2px solid var(--na-navy); padding-bottom: .25rem; }
.archive-page .deck { font-style: normal; }
.archive-head { display: flex; gap: 1.2rem; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin-bottom: var(--gap); }
.archive-head img { width: 80px; height: 80px; flex: none; }
.archive-stats, .shell-archive .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.shell-archive .archive-stats div { border: 1px solid var(--rule); border-left: 4px solid var(--na-gold); background: var(--panel); padding: .7rem .9rem; }
.shell-archive .archive-stats b { font-family: var(--head-font); font-weight: 600; font-size: 1.5rem; color: var(--na-navy); }
.shell-archive .archive-stats b a { text-decoration: none; }
.shell-archive .archive-stats span { font-size: .85rem; }
.genealogy { border: 1px solid var(--rule); border-top: 4px solid var(--na-navy); background: var(--panel); }
.genealogy form { display: flex; gap: 0; margin: .6rem 0; }
.genealogy input { flex: 1; font: inherit; font-size: 1.05rem; padding: .5rem .8rem; border: 2px solid var(--na-navy); background: #fff; }
.genealogy button { font: inherit; font-weight: 700; padding: .5rem 1.4rem; background: var(--na-navy); color: #fff; border: 0; cursor: pointer; }
.genealogy .note { font-size: .88rem; color: var(--muted); margin: 0; }
.years-index { columns: 4; column-gap: 1.5rem; font-size: .93rem; }
.years-index div { break-inside: avoid; margin-bottom: .7rem; }
.years-index b { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.years-index a { display: inline-block; margin-right: .45rem; }
.register { position: relative; padding: 1rem 1.3rem; border: 1px solid var(--rule); background: #fff; }
.register .entry-no { position: absolute; right: 1.2rem; top: .9rem; font: 12px/1.4 'Courier Prime', monospace; letter-spacing: .04em; color: var(--muted); }
.register h2 { margin-top: .2rem; border: 0; padding-right: 9rem; }
.register dl.facts { grid-template-columns: minmax(7rem, 9rem) 1fr; }
.register .rule { border-top: 1px dotted var(--rule); margin: .8rem 0; }
.register-list td, .register-list th { font-size: .93rem; }
.descent { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.descent div { border-top: 2px solid var(--na-navy); padding: .5rem 0; font-size: .93rem; }
.descent b { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.census-table td.num, .census-table th.num { text-align: right; white-space: nowrap; }
.census-table td.up { color: #1a6b3c; } .census-table td.down { color: #9b1c1c; }
.year-events { list-style: none; padding: 0; }
.year-events li { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--rule-soft); max-width: none; }
.year-events .sc { color: var(--muted); font-variant: normal; font-weight: 600; letter-spacing: 0; }
.year-events li.canon { background: #fff8e5; padding: .45rem .6rem; border-left: 4px solid var(--na-gold); }
.archive-foot { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: .7rem; }
.shell-archive .yearnav { font-family: var(--body-font); border-top: 0; border-bottom: 1px solid var(--rule); padding: 0 0 .6rem; margin: .4rem 0 1.2rem; font-weight: 600; }
.shell-archive .chart img { border: 1px solid var(--rule); }
.shell-archive .twocol { gap: 0 2.5rem; }
.shell-archive dl.facts dt { font-family: var(--body-font); font-size: .9rem; font-weight: 700; color: var(--ink); font-variant: normal; letter-spacing: 0; }

/* directories */
.directory-head p { margin: .3rem 0; }
.register-list.directory td.who { width: 50%; }
.register-list.directory td.where { color: inherit; }
.register-list.directory td.no { text-align: right; font-size: .95rem; }
.phonebook h3.trade { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 1.1rem 0 .25rem; color: #3b2a17; border-bottom: 1px solid rgba(0,0,0,.4); }
.phonebook h3.trade small { text-transform: none; letter-spacing: 0; }
.phonebook .register-list.directory { columns: 2; column-gap: 2rem; }
.phonebook .register-list.directory tr { break-inside: avoid; }
.streets-table td.small a { text-decoration: none; }
/* the printed telephone book inside the viewer */
.scan-page.directory-print { font-family: 'IM Fell English', Georgia, serif; color: #1f1a14; background-color: #f2ecdc; }
.directory-print table { font-size: .88rem; border: 0; width: 100%; }
.directory-print td { border: 0; border-bottom: 1px dotted rgba(0,0,0,.25); padding: .12rem .3rem .12rem 0; }
.directory-print td.no { font-family: 'IM Fell English', Georgia, serif; font-weight: 700; text-align: right; }
.directory-print td a { color: inherit; text-decoration: none; }
.directory-print td a:hover { text-decoration: underline; }
.directory-print .dir-cols { columns: 2; column-gap: 1.6rem; column-rule: 1px solid rgba(0,0,0,.35); }
.directory-print .dir-cols table { break-inside: auto; }
.directory-print .dir-cols tr { break-inside: avoid; }
.directory-print h3.trade { color: inherit; }
.directory-print .dir-head { text-align: center; border-top: 3px double #333; border-bottom: 3px double #333; padding: .3rem 0; margin: 0 0 .8rem; font-variant: small-caps; letter-spacing: .08em; }

/* wills */
.will-text ol.clauses { padding-left: 1.6rem; }
.will-text ol.clauses li { margin: .5rem 0; }
.will-text .attest { font-style: italic; margin-top: 1rem; }
.will-text .signed { font-family: 'Cedarville Cursive', cursive; font-size: 1.6rem; margin: .5rem 0 .3rem 2rem; }
.script-type.will-text .signed, .script-print.will-text .signed { font-family: 'Cedarville Cursive', cursive; }
.will-text .witnesses { font-size: .95em; }

/* ---------- footer ---------- */
.shell-archive footer.na-footer { background: var(--na-navy); color: #c9d3dc; text-align: left; border: 0; border-top: 4px solid var(--na-gold); padding: 2rem 0 1.5rem; font-size: .9rem; }
.na-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 1.2rem; }
.na-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; font-family: var(--body-font); font-weight: 700; }
.na-footer ul { list-style: none; padding: 0; margin: 0; }
.na-footer li { margin: 0 0 .3rem; }
.na-footer a { color: #fff !important; }
.na-footer p { max-width: none; }
.na-legal { font-size: .82rem; color: #a9b6c2; border-top: 1px solid rgba(255,255,255,.15); padding-top: .8rem; }
.na-footer .vmt { color: #a9b6c2; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .na-record-grid, .na-twocol { grid-template-columns: 1fr; }
  .na-record-side { position: static; }
  .na-record-grid, .na-twocol { grid-template-columns: minmax(0, 1fr); }
  .na-foot-grid { grid-template-columns: 1fr 1fr; }
  .na-header-in { flex-wrap: wrap; gap: .8rem; }
  .na-headsearch { flex-basis: 100%; max-width: none; margin: 0; }
  .years-index { columns: 2; }
  .descent { grid-template-columns: 1fr; }
  .archive-head { flex-direction: column; align-items: flex-start; }
  .register .entry-no { position: static; display: block; margin-bottom: .3rem; }
  .register h2 { padding-right: 0; }
}
@media (max-width: 640px) {
  .na-in { padding: 0 16px; }
  .na-govbar-right { display: none; }
  .na-logo b { font-size: 1.2rem; }
  .na-nav .na-in { flex-wrap: nowrap; overflow-x: auto; }
  .na-nav a { white-space: nowrap; padding: .6rem .7rem; font-size: .9rem; }
  .shell-archive main.na-main { padding: 1rem 16px 2rem; }
  .na-hero { margin: -1rem -16px 1.5rem; padding: 1.6rem 16px; }
  .na-hero h1 { font-size: 1.7rem; }
  .shell-archive h1 { font-size: 1.6rem; }
  dl.na-details { grid-template-columns: 1fr; }
  dl.na-details dt { border-bottom: 0; padding-bottom: 0; }
  .scan-stage { padding: .7rem; }
  .scan-page { min-width: 520px; padding: 1rem; }
  .na-foot-grid { grid-template-columns: 1fr; gap: 1rem; }
  .phonebook .register-list.directory, .directory-print .dir-cols { columns: 1; }
  .years-index { columns: 2; }
}
/* full-bleed hero, monospaced references everywhere, documents shown at full height */
.shell-archive body { overflow-x: clip; }
.na-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(1.5rem, calc(50vw - 590px + 1.5rem)); padding-right: max(1.5rem, calc(50vw - 590px + 1.5rem)); }
.shell-archive td.no { font-family: 'Courier Prime', 'Courier New', monospace; font-size: .85rem; white-space: nowrap; }
.scan-stage:has(.document), .scan-stage:has(.directory-print) { max-height: none; }
@media (max-width: 640px) { .na-hero { padding-left: 16px; padding-right: 16px; } }
.directory-print .register { background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,.35); padding: 0 0 .6rem; margin: 0 0 .6rem; }
.directory-print .register .entry-no { position: static; display: block; text-align: right; }
.directory-print .register p { font-size: .9rem; }
@media (max-width: 640px) {
  .na-nav a { flex: none; }
  .na-govbar .na-in span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scan-viewer, .na-record-main { min-width: 0; max-width: 100%; }
  .na-record-grid > * { min-width: 0; }
}

/* ---------- copies of records: orders and certified copies ---------- */
.na-order-inline { margin: 0; }
.na-order-inline + .na-order-inline { margin-top: .2rem; }
.na-steps { list-style: none; padding: 0; margin: 0 0 .8rem; border-left: 3px solid var(--rule); }
.na-steps li { position: relative; padding: 0 0 .8rem 1.2rem; }
.na-steps li::before { content: ""; position: absolute; left: -.55rem; top: .3rem; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; border: 3px solid var(--rule); }
.na-steps li.done::before { background: #1a6b3c; border-color: #1a6b3c; }
.na-steps li b { display: block; }
.na-copy { position: relative; overflow: hidden; border: 1px solid var(--rule); background: #fbfaf6; padding: 1.2rem; }
.na-copy > .scan-page { min-width: 0; max-width: none; overflow-x: auto; }
.na-copy.plain::after { content: "Uncertified copy"; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-18deg); font: 700 2.4rem/1 'Source Sans 3', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(160, 30, 30, .16); pointer-events: none; white-space: nowrap; }
.na-copy-cert { font-family: var(--head-font); font-size: 1.02rem; margin: 1rem 0 .6rem; }
.na-copy-seal { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: .8rem; }
.na-copy-seal p { margin: 0 0 .3rem; }
.na-copy-sign { font-family: 'IM Fell English', Georgia, serif; font-style: italic; font-size: 1.15rem; }
.na-copy-sign span { font-family: var(--body-font); font-style: normal; font-size: .85rem; color: var(--muted); }
.na-copy-stamp { margin-left: auto; transform: rotate(-8deg); border: 3px double #8c1d1d; color: #8c1d1d; font: 700 .85rem/1.15 'Courier Prime', monospace; text-transform: uppercase; letter-spacing: .1em; padding: .5rem .8rem; text-align: center; }
.na-copy-warn { color: #8c1d1d; font-weight: 700; font-size: .95rem; margin: .6rem 0 0; }
.na-copy-foot { font: .8rem/1.3 'Courier Prime', monospace; color: var(--muted); margin: .8rem 0 0; }
.na-dir-title { text-align: center; }
.na-dir-town { font: 400 2.4rem/1.1 var(--head-font); margin: .4rem 0; }
.na-fee { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .6rem; }
.na-fee b { font-size: 1.5rem; }
.na-pay { display: grid; justify-items: center; gap: .2rem; background: #fff; padding: .6rem; margin: 0 0 .6rem; font: .8rem/1.2 'Courier Prime', monospace; }
.na-pay .sz-barcode { width: 190px; height: 44px; }
.na-order-form fieldset { border: 0; border-top: 1px solid var(--rule); padding: .8rem 0; margin: 0; }
.na-order-form legend { font-weight: 700; font-size: 1.1rem; }
.na-order-form label { display: grid; gap: .25rem; margin: 0 0 .9rem; font-weight: 600; max-width: 34rem; }
.na-order-form label .small { font-weight: 400; color: var(--muted); }
.na-order-form label.na-radio { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.na-order-form select, .na-order-form input[type=number], .na-order-form input[type=text] { font: inherit; padding: .5rem .6rem; border: 2px solid var(--na-navy); border-radius: 0; background: #fff; }
.na-order-form .na-btn { width: auto; display: inline-block; padding: .7rem 1.6rem; }
.na-lede { font-size: 1.15rem; max-width: 60ch; }
.na-nav .sz-acct { opacity: .85; }
@media (max-width: 640px) { .na-copy { padding: .7rem; } .na-copy .ledger-table { font-size: .75rem; } .na-copy .ledger-table td { height: auto; } .na-copy.plain::after { font-size: 1.5rem; } .na-copy-stamp { margin-left: 0; } }
@media print { .na-govbar, .na-header, .na-footer, .na-crumbs, .na-record-side .sz-when-active, .na-record-side .na-see { display: none !important; } .na-record-grid { display: block; } }
