/* Program.Memorial — the press room.
   Ivory paper, deep ink, laid-paper green, brass. Sibling of the .Memorial family.

   THE PRINT ENGINE IS THE PRODUCT. Everything under "Sheets" below is measured in
   real inches, prints at 100% scale, and is nudged by --cal (the per-printer
   correction from Printer setup). Do not convert these to px or rem. */

:root {
  --bg: #f8f5ee;
  --surface: #fffdf8;
  --ink: #29251c;
  --ink-soft: #6f6a5c;
  --line: #e6dfd0;
  --green: #42513f;
  --green-dark: #333f31;
  --brass: #a5854f;
  --brass-soft: #f1e8d3;
  --danger: #9c4a3c;
  --danger-soft: #f7e9e6;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --cal: 1;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }
body.bare main { max-width: none; padding: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 30px 0 12px; }
h3 { font-size: 1.12rem; margin: 18px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--green); }
.center { text-align: center; }
.subtle, .fineprint { color: var(--ink-soft); font-size: 0.9rem; }
.muted { color: var(--ink-soft); }

.appnav { display: flex; align-items: center; gap: 26px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brass); }
.appnav .links { display: flex; gap: 4px; flex-wrap: wrap; }
.appnav .links a { text-decoration: none; color: var(--ink-soft); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; }
.appnav .links a:hover { background: var(--bg); color: var(--ink); }
.appnav .links a.active { background: var(--brass-soft); color: var(--ink); font-weight: 600; }
.navright { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.username { color: var(--ink-soft); font-size: 0.9rem; }
a.quiet { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; }
a.quiet:hover { color: var(--ink); }

.btn { display: inline-block; background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 1rem; font-family: var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-dark); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.big { padding: 14px 26px; font-size: 1.08rem; }
.btn.secondary { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.secondary:hover { background: var(--brass-soft); }
.btn.gold { background: var(--brass); }
.btn.gold:hover { background: #8d713f; }
.btn.danger { background: var(--danger); }

form.stack label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: 0.92rem; }
label .req { color: var(--green); font-weight: 400; font-size: 0.8rem; }
label .opt { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--sans); background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; line-height: 1.6; }
.form-hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.checklist { color: var(--ink-soft); }
.checklist li { margin-bottom: 5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 480px; margin: 40px auto; }
.card.narrow-wide { max-width: 720px; margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-value { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.stat-label { color: var(--ink-soft); font-size: 0.88rem; }
.stat-hint { color: var(--ink-soft); font-size: 0.78rem; margin-top: 6px; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.pagehead h1 { margin-bottom: 2px; }
.pagehead-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
tr:last-child td { border-bottom: none; }
a.rowlink { font-weight: 600; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; }
a.rowlink:hover { color: var(--green); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-published { background: #e3e9e0; color: var(--green-dark); }
.badge-draft { background: #eeeae2; color: var(--ink-soft); }
.flash { max-width: 1180px; margin: 16px auto 0; padding: 12px 18px; background: var(--danger-soft); border: 1px solid #e0c1ba; border-radius: 8px; color: var(--danger); }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 0.94rem; }
.notice.welcome { background: #e9eee7; border: 1px solid #cdd8c9; color: var(--green-dark); }
.empty-state { text-align: center; padding: 48px 24px; }
.inline-form { display: inline; }
.btnpair { display: flex; gap: 8px; flex-wrap: wrap; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.linkrow:last-child { border-bottom: none; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 24px 36px; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }
.site-footer .fineprint { font-size: 0.8rem; margin-top: 6px; }
.prose { max-width: 720px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.prose h1 { margin-top: 0; }

/* ============================== Landing ============================== */

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 48px 0 40px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; background: var(--brass-soft); color: #6d5628; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 2.7rem; line-height: 1.12; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }
.lede-sm { color: var(--ink-soft); max-width: 660px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 14px; margin: 26px 0 20px; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.9rem; }

/* A folder standing half-open, on the screen only. */
.folder-demo { position: relative; height: 320px; perspective: 1200px; }
.fd-panel { position: absolute; top: 0; width: 210px; height: 300px; background: var(--surface); border: 1px solid var(--line); }
.fd-back { left: 50%; transform-origin: left center; transform: rotateY(38deg); background: #f2ecdf; }
.fd-cover { left: calc(50% - 210px); transform-origin: right center; transform: rotateY(-14deg); box-shadow: -14px 14px 34px rgba(41,37,28,0.16); padding: 34px 22px; text-align: center; }
.fd-label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.fd-rule { width: 44px; height: 2px; background: var(--brass); margin: 14px auto; }
.fd-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.fd-dates { color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.1em; margin-top: 6px; }
.fd-cap { text-align: center; color: var(--ink-soft); font-size: 0.8rem; font-style: italic; margin-top: 10px; }

.band { padding: 54px 0; }
.band.alt { position: relative; }
.band.alt::before { content: ''; position: absolute; inset: 0 -100vw; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: -1; }
.band h2 { font-size: 1.9rem; margin-top: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { width: 36px; height: 36px; border-radius: 999px; background: var(--green); color: #fff; font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { margin-top: 0; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.outputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .outputs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .outputs-grid { grid-template-columns: 1fr; } }
.output { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.output h3 { margin-top: 0; font-size: 1rem; }
.output p { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }
.band.dark { position: relative; color: #efeadf; }
.band.dark::before { content: ''; position: absolute; inset: 0 -100vw; background: #232a21; z-index: -1; }
.dark-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.band.dark h2 { color: #f6f2e8; }
.band.dark p { color: #b5bcb0; }
.band.dark blockquote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #e4e2d2; border-top: 1px solid #46503f; margin: 28px auto 0; padding: 22px 12px 0; }
.whyfree-card { background: var(--surface); border: 1px solid var(--brass); border-radius: var(--radius); padding: 34px 38px; max-width: 760px; margin: 0 auto; }
.whyfree-card h2 { margin-top: 0; }
.faq { max-width: 760px; margin: 30px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; margin: 0; }
.final-cta { text-align: center; padding: 64px 0 54px; }
.final-cta h2 { font-size: 1.9rem; }
.final-cta p { color: var(--ink-soft); margin-bottom: 24px; }

/* ============================== Editor ============================== */

.editor-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: 1fr; } }
.style-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.style-opt { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; font-weight: 400; margin: 0; background: var(--bg); }
.style-opt.on { border-color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); }
.style-opt input { display: none; }
.style-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.style-hint { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 2px; }
.order-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.1fr auto auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.order-row input { padding: 7px 9px; font-size: 0.88rem; }
.order-row button { background: none; border: 1px solid var(--line); border-radius: 6px; width: 28px; height: 30px; cursor: pointer; color: var(--ink-soft); }
.order-row button:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 700px) { .order-row { grid-template-columns: 1fr 1fr auto auto; } }
.tpl-pick { max-width: 240px; }

/* ============================== The family's digital copy ============================== */

.digital { max-width: 620px; margin: 0 auto; padding: 46px 22px 60px; }
.dg-head { text-align: center; margin-bottom: 28px; }
.dg-photo { width: 128px; height: 128px; object-fit: cover; border-radius: 999px; border: 4px solid var(--surface); box-shadow: 0 6px 24px rgba(41,37,28,0.16); margin-bottom: 14px; }
.dg-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.dg-name { font-family: var(--serif); font-size: 2.2rem; margin: 6px 0 3px; }
.dg-dates { color: var(--ink-soft); letter-spacing: 0.08em; }
.dg-when { color: var(--ink-soft); margin-top: 8px; font-size: 0.95rem; }
.dg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; }
.dg-card h2 { margin-top: 0; font-size: 1.15rem; color: var(--green); }
.dg-order { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.dg-order:last-of-type { border-bottom: none; }
.dg-el { font-weight: 600; }
.dg-sub { color: var(--ink-soft); font-size: 0.9rem; margin-top: 10px; }
.dg-obit { font-family: var(--serif); font-size: 1.03rem; line-height: 1.7; }
.dg-names { columns: 2 140px; }
.dg-verse { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.7; padding: 22px 18px; }
.dg-attr { font-style: normal; color: var(--ink-soft); font-size: 0.85rem; margin-top: 6px; }
.dg-foot { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.8; }

/* ============================== SHEETS — the print engine ============================== */

.print-note { max-width: 8in; margin: 16px auto; background: var(--brass-soft); border: 1px solid #dcc99b; color: #6d5628; border-radius: 8px; padding: 12px 18px; font-size: 0.88rem; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.pn-sub { font-size: 0.82rem; margin-top: 4px; }

.sheet {
  background: #fff;
  margin: 0 auto 18px;
  position: relative;
  overflow: hidden;
  zoom: var(--cal);            /* per-printer correction; 1 for a truthful driver */
  box-shadow: 0 2px 14px rgba(41,37,28,0.14);
}
.sheet.land { width: 11in; height: 8.5in; display: grid; grid-template-columns: 5.5in 5.5in; }
.sheet.port { width: 8.5in; height: 11in; }
/* The fold line prints as nothing; on screen it shows where the crease lands. */
.fold { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed #d8d0be; }

.panel { padding: 0.55in 0.45in; display: flex; flex-direction: column; overflow: hidden; font-size: 9.5pt; line-height: 1.4; }
.panel-title { font-family: var(--serif); font-size: 10.5pt; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); text-align: center; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 0.5pt solid var(--line); }
.panel-sub { margin-top: 8px; font-size: 8.6pt; }
.panel-sub .lbl { display: block; font-size: 7.4pt; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

/* Cover */
.cover { text-align: center; justify-content: center; }
.cover-label { font-size: 8.4pt; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.orn { width: 1.4in; height: auto; margin: 0.1in auto; display: block; fill: var(--accent); stroke: var(--accent); stroke-width: 1.1; }
.cover-photo { width: 2.1in; height: 2.55in; object-fit: cover; margin: 0.12in auto; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.22); }
.cover-gap { height: 0.35in; }
.cover-name { font-family: var(--serif); font-size: 20pt; font-weight: 700; line-height: 1.15; margin-top: 0.1in; }
.cover-dates { color: var(--ink-soft); font-size: 9pt; letter-spacing: 0.08em; margin-top: 0.05in; }
.cover-line { font-family: var(--serif); font-style: italic; font-size: 9pt; margin-top: 0.14in; color: #4a463c; }
.cover-foot { margin-top: auto; padding-top: 0.2in; font-size: 8.6pt; color: var(--ink-soft); line-height: 1.5; }

/* Order of service */
.order-item { padding: 3.5pt 0; border-bottom: 0.5pt dotted #ded6c6; break-inside: avoid; }
.order-item:last-child { border-bottom: none; }
.order-element { font-weight: 600; }
.order-detail { font-style: italic; color: #4a463c; }
.order-performer { font-size: 8.4pt; color: var(--ink-soft); }

/* Life panel */
.obit p { margin: 0 0 5pt; text-align: justify; hyphens: auto; }
.survivors { margin-top: 8pt; }

/* Back panel */
.back { justify-content: flex-start; }
.namecols { columns: 2; column-gap: 12pt; font-size: 9pt; }
.namecols div { break-inside: avoid; padding: 1pt 0; }
.verse { text-align: center; font-family: var(--serif); font-style: italic; font-size: 9pt; line-height: 1.55; margin: 10pt 0; padding: 8pt 4pt; border-top: 0.5pt solid var(--line); border-bottom: 0.5pt solid var(--line); }
.verse p { margin: 0; }
.verse-attr { font-style: normal; font-size: 7.6pt; color: var(--ink-soft); margin-top: 4pt; }
.ack p { font-size: 8.8pt; text-align: center; }
.back-foot { margin-top: auto; padding-top: 8pt; display: flex; align-items: flex-end; justify-content: space-between; gap: 10pt; border-top: 0.5pt solid var(--line); }
.back-qr { text-align: center; }
.back-qr img { width: 0.85in; height: 0.85in; display: block; }
.back-qr-cap { font-size: 6.2pt; color: var(--ink-soft); margin-top: 2pt; max-width: 1in; line-height: 1.25; }
.back-home { text-align: right; font-size: 8pt; color: var(--ink-soft); }
.home-name { font-family: var(--serif); font-size: 9.5pt; color: var(--ink); }

/* Single sheet */
.single-front { height: 11in; display: flex; }
.single-front .panel { flex: 1; }
.single-back { height: 11in; padding: 0.5in 0.55in; display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.3in; }
.single-back .panel { padding: 0; }
.single-back .back { grid-column: 1 / -1; border-top: 0.5pt solid var(--line); padding-top: 0.15in; }

/* Prayer cards 6-up (2.5 × 4.25) and bookmarks 4-up (2 × 7).
   The mirrored class reverses column order so a long-edge duplex flip lands the
   backs on the right fronts. */
.grid-6 { display: grid; grid-template-columns: repeat(3, 2.5in); grid-auto-rows: 4.25in; justify-content: center; align-content: center; height: 11in; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 2in); grid-auto-rows: 7in; justify-content: center; align-content: center; height: 11in; }
.mirrored { direction: rtl; }
.mirrored > * { direction: ltr; }
.card-face, .bm-face { border: 0.5pt dashed #ddd5c4; padding: 0.22in 0.2in; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.mini-photo { width: 1.15in; height: 1.4in; object-fit: cover; margin-bottom: 5pt; }
.mini-label { font-size: 6.4pt; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.mini-name { font-family: var(--serif); font-size: 11pt; font-weight: 700; line-height: 1.2; margin: 2pt 0; }
.mini-dates { font-size: 7.2pt; color: var(--ink-soft); letter-spacing: 0.06em; }
.mini-home { margin-top: auto; font-size: 6.6pt; color: var(--ink-soft); }
.card-face .verse { border: none; font-size: 8pt; margin: 0; }
.bm-photo { width: 1.5in; height: 1.5in; object-fit: cover; border-radius: 999px; margin-bottom: 6pt; }
.bm-name { font-family: var(--serif); font-size: 10pt; font-weight: 700; line-height: 1.2; margin: 3pt 0; }
.bm-face .verse { border: none; font-size: 7.6pt; margin: 0; }
.bm-qr { width: 0.7in; height: 0.7in; margin-top: 8pt; }

/* Podium copy — 18pt, and a sentence is never torn across a page. */
.podium { height: auto; min-height: 11in; padding: 0.7in 0.85in; font-size: 18pt; line-height: 1.55; }
.podium-head { border-bottom: 1.5pt solid var(--ink); padding-bottom: 10pt; margin-bottom: 16pt; }
.podium-name { font-family: var(--serif); font-size: 26pt; font-weight: 700; }
.podium-phon { font-size: 13pt; margin-top: 10pt; background: #f4f0e4; padding: 6pt 9pt; }
.podium h3 { font-size: 13pt; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin: 18pt 0 8pt; }
.podium-item { padding: 4pt 0; break-inside: avoid; }
.podium-item .who { color: var(--ink-soft); }
.podium .sent { margin: 0 0 10pt; break-inside: avoid; page-break-inside: avoid; orphans: 3; widows: 3; }

/* Easel sign */
.sign { display: flex; align-items: center; justify-content: center; }
.sign-inner { text-align: center; padding: 0.8in; }
.sign-photo { width: 3.2in; height: 3.9in; object-fit: cover; border: 4px solid #fff; box-shadow: 0 3px 16px rgba(0,0,0,0.22); margin-bottom: 0.25in; }
.sign-name { font-family: var(--serif); font-size: 34pt; font-weight: 700; line-height: 1.12; margin-top: 6pt; }
.sign-dates { font-size: 14pt; color: var(--ink-soft); letter-spacing: 0.1em; margin-top: 6pt; }
.sign-when { font-size: 12pt; margin-top: 16pt; }
.sign-qr { margin-top: 0.3in; font-size: 9pt; color: var(--ink-soft); }
.sign-qr img { width: 1.3in; height: 1.3in; display: block; margin: 0 auto 5pt; }

/* Calibration */
.caltest { padding: 1in 1.25in; font-size: 11pt; }
.caltest h1 { font-size: 20pt; }
.ruler { position: relative; height: 0.6in; margin: 0.5in 0 0.7in; width: 6in; }
.ruler-line { position: absolute; top: 0.28in; left: 0; width: 6in; height: 2px; background: #000; }
.ruler-tick { position: absolute; top: 0.06in; width: 0; border-left: 1px solid #000; height: 0.42in; }
.ruler-tick span { position: absolute; top: -0.16in; left: -0.1in; font-size: 8pt; }
.calnote { font-size: 10pt; color: #4a463c; }
.calbox { width: 4in; height: 2in; border: 1.5px solid #000; display: flex; align-items: center; justify-content: center; font-size: 10pt; margin-top: 0.4in; }
.foldtest { align-items: center; justify-content: center; text-align: center; }
.ft-big { font-family: var(--serif); font-size: 30pt; font-weight: 700; }
.ft-note { font-size: 10pt; color: var(--ink-soft); margin-top: 10pt; max-width: 3in; }

@media print {
  .no-print, .print-note, .appnav, .site-footer, .mbar { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .sheet { box-shadow: none; margin: 0 auto; page-break-after: always; break-after: page; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
  .fold { display: none; }
  .card-face, .bm-face { border-color: #e6e0d2; }
}
/* Paper size per format — set by the page that renders the sheets. */
@page { margin: 0; }

/* Copied verbatim from memorial-hub/clients/mbar.css — edit it there, not here. */
/* THE SERVICE BAR — append verbatim to each tool's public/styles.css.
   Canonical source: memorial-hub/clients/mbar.css
   Uses each tool's own --surface/--line if defined, with safe fallbacks. */

.mbar { background: var(--surface, #fffdf8); border-bottom: 1px solid var(--line, #e6dfd0); }
.mbar-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 14px; flex-wrap: wrap; }
.mbar-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 0.86rem; line-height: 1; }
.mbar-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mbar-item.live { color: var(--c, #29251c); background: color-mix(in srgb, var(--c, #29251c) 9%, transparent); font-weight: 600; }
.mbar-item.live:hover { background: color-mix(in srgb, var(--c, #29251c) 16%, transparent); }
.mbar-item.current { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #29251c) 35%, transparent); }
.mbar-item.off { color: #b3ada0; cursor: default; }
.mbar-count { margin-left: auto; font-size: 0.74rem; color: #a29c8e; letter-spacing: 0.04em; }
.mbar-all { font-size: 0.78rem; color: #6f6a5c; text-decoration: none; border-left: 1px solid var(--line, #e6dfd0); padding-left: 12px; margin-left: 10px; }
.mbar-all:hover { color: #29251c; }
@media (max-width: 560px) {
  .mbar-item span { display: none; }
  .mbar-item { padding: 7px 10px; }
  .mbar-count { font-size: 0.7rem; }
}
@media print { .mbar { display: none !important; } }

/* Founder note on /why-free — a real person, at a size that reads as a byline
   rather than an author photo on a dust jacket. */
.whyfree .lede-strong { font-size: 1.06rem; color: var(--ink); }
.founder { display: flex; gap: 20px; align-items: flex-start; margin: 20px 0 18px; }
.founder-photo { width: 120px; height: 150px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(41,37,28,0.14); flex: none; }
.founder-words p { margin: 0; }
@media (max-width: 560px) {
  .founder { flex-direction: column; gap: 14px; }
  .founder-photo { width: 108px; height: 135px; }
}
