/* Write your own obituary (November 6, 2026). The .ob-paper rules draw the finished page; the rest is the writer.
   Inter only (owner decision, November 27, 2026): the page, samples and templates all use the site font. */

/* ---------- The page ---------- */
.ob-stage, .ob-thumb, .ob-view-stage { container-type: inline-size; }
.ob-paper {
  --ob-ink: #23201B; --ob-soft: #5F5A52; --ob-bg: #FFFFFF;
  position: relative; background: var(--ob-bg); color: var(--ob-ink); font-family: var(--ob-font);
  font-size: clamp(9px, 2.45cqw, 18px); line-height: 1.55; overflow: hidden; text-align: left;
  aspect-ratio: 8.5 / 11; min-height: 0; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(28,43,39,.08), 0 24px 50px -24px rgba(28,43,39,.35); border-radius: 3px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ob-paper p { margin: 0 0 .85em; text-wrap: pretty; }
.ob-frame { position: relative; flex: 1; padding: 2.6em 3em; display: flex; flex-direction: column; min-height: 0; }
.ob-head { text-align: center; margin-bottom: 1.4em; position: relative; }
.ob-kicker { font-size: .78em; letter-spacing: .2em; text-transform: uppercase; color: var(--ob-accent); margin: 0 0 .5em !important; font-weight: 600; }
.ob-name { font-family: var(--ob-font); font-weight: 600; font-size: 2.7em; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .15em; color: var(--ob-ink); text-wrap: balance; }
.ob-dates { color: var(--ob-soft); letter-spacing: .08em; font-size: .95em; margin: 0 0 .4em !important; }
.ob-quote { font-style: italic; color: var(--ob-soft); font-size: 1.08em; margin: .5em auto 0 !important; max-width: 30em; text-wrap: balance; }
.ob-symbol { width: 2.1em; height: 2.1em; margin: 0 auto .6em; fill: none; stroke: var(--ob-accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ob-body { flex: 1; min-height: 0; }
.ob-empty { color: var(--ob-soft); font-style: italic; text-align: center; }
.ob-blank { background: color-mix(in srgb, var(--ob-accent) 13%, transparent); border-bottom: 1px dashed var(--ob-accent); padding: 0 .25em; border-radius: 2px; font-size: .94em; white-space: nowrap; }
.ob-photo { margin: 0 auto 1em; width: 9.5em; height: 9.5em; overflow: hidden; background: #E8E4DC; }
.ob-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ob-y-top img { object-position: center top; }
.ob-y-bottom img { object-position: center bottom; }
.ob-photo-circle { border-radius: 50%; }
.ob-photo-oval { border-radius: 50%; width: 8.4em; height: 11em; }
.ob-photo-rect { border-radius: 2px; width: 9em; height: 11em; }
.ob-photo-arch { border-radius: 999px 999px 3px 3px; width: 9.5em; height: 12em; }
.ob-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-28deg); z-index: 3; white-space: nowrap; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: .06em; font-size: 2.2em; color: rgba(28,43,39,.13); pointer-events: none; }

/* Newsprint */
.ob-theme-classic .ob-frame { padding: 2.4em 2.6em; }
.ob-theme-classic .ob-kicker { color: var(--ob-accent); border-top: .28em solid var(--ob-accent); border-bottom: 1px solid var(--ob-accent); padding: .55em 0; letter-spacing: .3em; margin-bottom: 1.3em !important; }
.ob-theme-classic .ob-name { font-weight: 800; font-size: 3em; letter-spacing: -.02em; }
.ob-theme-classic .ob-head { border-bottom: 1px solid #CFCBC3; padding-bottom: 1em; }
.ob-theme-classic .ob-body { column-count: 2; column-gap: 2em; column-rule: 1px solid #DAD6CE; font-size: .95em; }
.ob-theme-classic .ob-body p:first-child::first-letter { font-size: 3.1em; line-height: .85; float: left; padding: .06em .08em 0 0; font-weight: 700; color: var(--ob-accent); }
.ob-theme-classic .ob-symbol { margin: .7em auto 0; }

/* Heirloom */
.ob-theme-heirloom { --ob-bg: #FBF6EA; }
.ob-theme-heirloom .ob-frame { margin: 1.1em; padding: 2.3em 2.6em; border: 1px solid var(--ob-accent); outline: 1px solid var(--ob-accent); outline-offset: .3em; }
.ob-theme-heirloom .ob-name { font-weight: 500; font-size: 3.1em; font-style: italic; }
.ob-theme-heirloom .ob-body { font-size: 1.08em; text-align: center; }
.ob-theme-heirloom .ob-head::after { content: ""; display: block; width: 4em; height: 1px; background: var(--ob-accent); margin: 1em auto 0; }

/* Garden */
.ob-theme-garden { --ob-bg: #F6F8F1; }
.ob-sprigs { position: absolute; left: -2.2em; right: -2.2em; top: -1.8em; display: flex; justify-content: space-between; color: var(--ob-accent); opacity: .75; pointer-events: none; }
.ob-sprig { width: 8.5em; height: 8.5em; transform: rotate(180deg) scaleX(-1); }
.ob-sprig + .ob-sprig { transform: rotate(180deg); }
.ob-theme-garden .ob-frame { padding-top: 3.4em; }
.ob-theme-garden .ob-photo { box-shadow: 0 0 0 .3em var(--ob-bg), 0 0 0 .38em var(--ob-accent); }
.ob-theme-garden .ob-name { font-weight: 500; }
.ob-theme-garden .ob-body { font-size: 1.05em; }

/* Modern */
.ob-theme-modern .ob-frame { padding: 2.8em 3em 2.8em 5em; }
.ob-theme-modern::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2.4em; background: var(--ob-accent); }
.ob-theme-modern .ob-head { text-align: left; }
.ob-theme-modern .ob-photo { margin: 0 0 1.2em; }
.ob-theme-modern .ob-symbol { margin: 0 0 .7em; }
.ob-theme-modern .ob-name { font-weight: 700; font-size: 3.1em; letter-spacing: -.03em; }
.ob-theme-modern .ob-quote { margin-left: 0 !important; }

/* Keepsake */
.ob-theme-keepsake .ob-frame { padding: 0; }
.ob-theme-keepsake .ob-head { background: var(--ob-accent); color: #fff; padding: 2.2em 2.6em 2em; margin: 0; }
.ob-theme-keepsake .ob-kicker, .ob-theme-keepsake .ob-name, .ob-theme-keepsake .ob-dates, .ob-theme-keepsake .ob-quote { color: #fff; }
.ob-theme-keepsake .ob-dates, .ob-theme-keepsake .ob-quote, .ob-theme-keepsake .ob-kicker { opacity: .85; }
.ob-theme-keepsake .ob-symbol { stroke: #fff; }
.ob-theme-keepsake .ob-photo { box-shadow: 0 0 0 .3em rgba(255,255,255,.9); }
.ob-theme-keepsake .ob-body { padding: 1.8em 3em 2em; font-size: 1.03em; }
.ob-theme-keepsake .ob-head .ob-blank { background: rgba(255,255,255,.2); border-color: #fff; }

/* Arch */
.ob-theme-arch { --ob-bg: #F5EDE3; }
.ob-theme-arch .ob-name { font-weight: 500; }
.ob-theme-arch .ob-head::after { content: "· · ·"; display: block; color: var(--ob-accent); letter-spacing: .3em; margin-top: .7em; }
.ob-theme-arch .ob-body { font-size: 1.05em; }

.ob-size-small .ob-body { font-size: .88em; }
.ob-size-large .ob-body { font-size: 1.16em; }
.ob-theme-heirloom.ob-size-small .ob-body, .ob-theme-garden.ob-size-small .ob-body, .ob-theme-arch.ob-size-small .ob-body { font-size: .92em; }
.ob-theme-heirloom.ob-size-large .ob-body, .ob-theme-garden.ob-size-large .ob-body, .ob-theme-arch.ob-size-large .ob-body { font-size: 1.22em; }

/* Card and newspaper shapes */
.ob-format-card { aspect-ratio: 5.5 / 8.5; font-size: clamp(9px, 2.55cqw, 17px); }
.ob-format-card .ob-frame { padding: 1.6em 1.9em; }
.ob-format-card.ob-theme-heirloom .ob-frame { margin: .8em; padding: 1.5em 1.5em; }
.ob-format-card .ob-photo { width: 7em; height: 7em; }
.ob-format-card .ob-name { font-size: 2.3em; }
.ob-format-card .ob-body { column-count: 1 !important; font-size: .9em; }
.ob-format-card.ob-theme-modern .ob-frame { padding-left: 3em; }
.ob-format-card.ob-theme-modern::before { width: 1.4em; }
.ob-format-column { aspect-ratio: auto; width: min(62%, 300px); margin: 0 auto; font-size: 14px; }
.ob-format-column .ob-frame { padding: 1.1em 1.1em; margin: 0 !important; border: 0 !important; outline: 0 !important; }
.ob-format-column .ob-photo { width: 6em; height: 7em; }
.ob-format-column .ob-name { font-size: 1.5em; font-weight: 700; }
.ob-format-column .ob-kicker, .ob-format-column .ob-sprigs, .ob-format-column .ob-quote, .ob-format-column .ob-symbol { display: none; }
.ob-format-column .ob-head { text-align: left; margin-bottom: .5em; padding: 0 !important; background: none; border: 0; }
.ob-format-column .ob-head::after { display: none; }
.ob-format-column .ob-name, .ob-format-column .ob-dates { color: var(--ob-ink); }
.ob-format-column .ob-photo { margin: 0 0 .5em; }
.ob-format-column.ob-theme-modern::before { display: none; }
.ob-format-column .ob-body { column-count: 1 !important; font-size: .92em !important; line-height: 1.38; padding: 0 !important; text-align: left !important; }

/* The wishes page */
.ob-wishes { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: #fff; color: var(--text, #1C2B27); padding: 28px; border-top: 4px solid var(--ob-accent); margin-top: 24px; border-radius: 3px; }
.ob-wishes h2 { font-size: 1.35rem; margin: 0 0 16px; }
.ob-wish { margin: 0 0 14px; }
.ob-wish h3 { font-size: .86rem; letter-spacing: .02em; color: var(--ob-accent); margin: 0 0 3px; }
.ob-wish p { margin: 0; }
.ob-wish ul { margin: 0; padding-left: 18px; }

/* ---------- The writer ---------- */
.page-obituary .mobile-cta { display: none !important; }
.ob-intro { padding: 40px 0 20px; }
.ob-intro h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); letter-spacing: -.03em; font-weight: 700; margin-bottom: .35em; }
.ob-promise { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.ob-promise li { display: inline-flex; gap: 7px; align-items: center; }
.ob-promise .icon { color: var(--pass); }
.ob-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.ob-steps { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 22px; padding: 0 0 2px; }
.ob-steps::-webkit-scrollbar { display: none; }
.ob-steps button { display: inline-flex; gap: 7px; align-items: center; background: none; border: 0; padding: 8px 10px 8px 7px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--muted); white-space: nowrap; min-height: 40px; }
.ob-steps button span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: .76rem; font-weight: 600; color: var(--muted); }
.ob-steps button:hover { background: var(--surface); }
.ob-steps button[aria-current] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ob-steps button[aria-current] span { background: var(--primary); color: #fff; }
#ob-form h2 { font-size: 1.55rem; margin: 0 0 4px; outline: none; }
.ob-line { color: var(--muted); margin: 0 0 22px; }
.ob-field { margin: 0 0 18px; }
.ob-field label, .ob-set legend { display: block; font-weight: 600; font-size: .97rem; margin: 0 0 6px; padding: 0; }
.ob-field input, .ob-field select, .ob-field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--text); min-height: 46px; }
.ob-field textarea { line-height: 1.5; resize: vertical; }
.ob-field input:focus, .ob-field select:focus, .ob-field textarea:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.ob-field ::placeholder { color: #9AA3A0; }
.ob-hint { font-size: .87rem; color: var(--muted); margin: 5px 0 0; line-height: 1.4; }
.ob-words { font-size: 1rem; }
.ob-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ob-set { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.ob-choices { display: grid; gap: 8px; }
.ob-two { grid-template-columns: 1fr 1fr; }
.ob-tones { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ob-choice { display: block; cursor: pointer; }
.ob-choice input { position: absolute; opacity: 0; }
.ob-choice > span { display: block; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; height: 100%; transition: border-color .12s, background .12s; }
.ob-choice b { display: block; font-size: .97rem; }
.ob-choice small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.ob-choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.ob-choice input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.ob-check { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; font-size: .97rem; cursor: pointer; }
.ob-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.ob-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.ob-link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.ob-note { display: flex; gap: 10px; background: var(--surface); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-size: .94rem; }
.ob-note p { margin: 0; }
.ob-note ul { margin: 4px 0 0; padding-left: 18px; }
.ob-note .icon { color: var(--primary); width: 20px; height: 20px; margin-top: 2px; }
.ob-note-warn { background: var(--fix-soft); }
.ob-note-warn .icon { color: var(--fix-icon); }
.ob-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.ob-more { margin: 0 0 18px; }
.ob-more summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: .95rem; padding: 6px 0; }
.ob-blocks { list-style: none; margin: 6px 0 0; padding: 0; }
.ob-blocks li { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ob-blocks label { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.ob-blocks input { accent-color: var(--primary); width: 17px; height: 17px; }
.ob-move { background: none; border: 1px solid var(--line-strong); border-radius: 7px; width: 34px; height: 34px; margin-left: 4px; cursor: pointer; font-size: 1rem; color: var(--text); }
.ob-move:disabled { opacity: .35; cursor: default; }
.ob-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-style: normal; }

.ob-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ob-theme { cursor: pointer; display: block; font-size: .9rem; line-height: 1.3; }
.ob-theme input { position: absolute; opacity: 0; }
.ob-thumb { display: block; border-radius: 6px; padding: 5px; margin-bottom: 6px; border: 2px solid transparent; background: var(--surface); pointer-events: none; }
.ob-thumb .ob-paper { box-shadow: 0 1px 3px rgba(0,0,0,.14); font-size: 2.3cqw; height: auto; }
.ob-theme input:checked + .ob-thumb { border-color: var(--primary); }
.ob-theme input:focus-visible + .ob-thumb { outline: 3px solid var(--primary); outline-offset: 2px; }
.ob-theme b { display: block; }
.ob-theme small { display: block; color: var(--muted); font-size: .8rem; }
.ob-colors { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.ob-color { position: relative; cursor: pointer; }
.ob-color input { position: absolute; opacity: 0; }
.ob-color span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.ob-color input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.ob-color input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 5px; }
.ob-color-own { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; margin-left: 6px; cursor: pointer; }
.ob-color-own input { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }
.ob-symbols { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-symbol-pick { cursor: pointer; position: relative; }
.ob-symbol-pick input { position: absolute; opacity: 0; }
.ob-symbol-pick > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 9px; font-size: .78rem; color: var(--muted); }
.ob-symbol-pick svg { width: 24px; height: 24px; margin: 0; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ob-symbol-pick input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.ob-symbol-pick input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.ob-photo-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.ob-photo-mini { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex: none; }
.ob-file { cursor: pointer; position: relative; }
.ob-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* Preview column */
.ob-preview { position: sticky; top: 84px; }
.ob-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ob-seg { display: inline-flex; background: var(--surface); border-radius: 9px; padding: 3px; }
.ob-seg button { background: none; border: 0; padding: 7px 13px; border-radius: 7px; cursor: pointer; font-size: .9rem; font-weight: 500; min-height: 36px; }
.ob-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); font-weight: 600; color: var(--primary); }
.ob-stage { background: var(--surface); border-radius: 12px; padding: 22px; }
.ob-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: .86rem; color: var(--muted); }
.ob-sample { position: absolute; top: 58px; left: 10px; z-index: 4; background: var(--text); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.ob-toggle { display: none; }
.ob-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--text); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .95rem; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 90; max-width: calc(100vw - 32px); }
.ob-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Buying and sharing */
.ob-buy { background: var(--primary); color: #fff; border-radius: 14px; padding: 24px; margin: 8px 0 14px; }
.ob-buy h3 { font-size: 1.35rem; margin: 0 0 5px; color: #fff; }
.ob-buy p { color: var(--on-dark); margin: 0 0 12px; font-size: .97rem; }
.ob-buy ul { list-style: none; margin: 0 0 18px; padding: 0; }
.ob-buy li { display: flex; gap: 9px; padding: 3px 0; font-size: .96rem; align-items: baseline; }
.ob-buy li .icon { color: #E7C877; flex: none; transform: translateY(2px); }
.ob-buy .btn-primary { background: #fff; color: var(--primary); width: 100%; }
.ob-buy .btn-primary:hover { background: #F2F4F3; color: var(--primary); }
.ob-buy .ob-fine { color: var(--on-dark-muted); margin: 11px 0 6px; }
.ob-buy a, .ob-buy .ob-link { color: #fff; }
.ob-fine { font-size: .87rem; color: var(--muted); margin: 8px 0; }
.ob-ready { border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 8px 0 14px; }
.ob-ready h3 { font-size: 1.12rem; margin: 0 0 4px; }
.ob-ready h4 { font-size: .97rem; margin: 20px 0 8px; }
.ob-ready p { margin: 0 0 12px; font-size: .95rem; color: var(--muted); }
.ob-ready .ob-field { margin-top: 12px; }
.ob-ready-tag { display: inline-flex; gap: 6px; align-items: center; background: var(--pass-soft); color: var(--pass-ink) !important; padding: 3px 10px; border-radius: 999px; font-size: .84rem !important; font-weight: 600; }
.ob-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; margin-bottom: 8px; }
.ob-row input, .ob-link-row input { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; min-height: 44px; width: 100%; min-width: 0; }
.ob-link-row { display: flex; gap: 8px; }
.ob-people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ob-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 0; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-size: .9rem; min-height: 36px; }
.ob-error { color: var(--fail-ink); font-size: .92rem; margin: 8px 0 !important; }
.ob-error:empty { display: none; }
.ob-list { list-style: none; margin: 0; padding: 0; }
.ob-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ob-list li:last-child { border: 0; }
.ob-list small { display: block; color: var(--muted); font-size: .86rem; }
.ob-list p { margin: 4px 0; color: var(--text); }
.ob-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(28,43,39,.5); display: grid; place-items: center; padding: 16px; }
.ob-overlay[hidden] { display: none; }
.ob-dialog { background: #fff; border-radius: 14px; padding: 26px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; }
.ob-dialog h2 { font-size: 1.35rem; margin: 0 0 6px; }
.ob-dialog p { font-size: .96rem; color: var(--muted); }

/* Sample excerpts on the supporting pages */
.ob-sample-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ob-sample-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.ob-sample-card h3 { margin: 0 0 3px; font-size: 1.1rem; }
.ob-sample-card .ob-sample-why { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }
.ob-sample-card blockquote { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.1rem; line-height: 1.5; margin: 0 0 12px; padding: 0; color: var(--text); }
.ob-sample-card blockquote p { margin: 0 0 .7em; }
.ob-hero-paper { max-width: 340px; margin: 0 auto; }
.ob-table-wrap { overflow-x: auto; }

/* Shared view */
.ob-view-page { background: var(--surface); }
.ob-view-note { max-width: 680px; margin: 0 auto; padding: 32px 16px 8px; }
.ob-view-note h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: .3em; }
.ob-view-note h2 { font-size: 1.3rem; }
.ob-view-kicker { color: var(--primary); font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.ob-view-stage { max-width: 680px; margin: 12px auto 0; padding: 0 16px; }
.ob-view-foot { font-size: .88rem; color: var(--muted); padding-bottom: 40px; }
.ob-view-page .ob-paper { aspect-ratio: auto; min-height: 860px; font-size: clamp(11px, 2.5cqw, 17px); }

#ob-print { display: none; }

@media (max-width: 960px) {
  .ob-app { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 88px; }
  .ob-preview { display: none; position: fixed; inset: 0; z-index: 70; top: 0; background: #fff; padding: 14px 16px 90px; overflow: auto; }
  .ob-show-preview .ob-preview { display: block; }
  .ob-show-preview, .ob-show-preview body { overflow: hidden; }
  .ob-stage { padding: 12px; }
  .ob-sample { top: 66px; }
  .ob-toggle { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 75; justify-content: center; box-shadow: 0 8px 24px rgba(28,43,39,.3); }
}
@media (max-width: 560px) {
  .ob-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-two, .ob-pair { grid-template-columns: 1fr; }
  .ob-row { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .ob-row .ob-move { justify-self: end; }
  .ob-format-column { width: 82%; }
  .ob-nav .btn { flex: 1; }
}

@media print {
  html, body { background: #fff !important; }
  .ob-print-page > *:not(#ob-print) { display: none !important; }
  #ob-print { display: block !important; }
  #ob-print .ob-paper, .ob-view-stage .ob-paper { box-shadow: none; border-radius: 0; aspect-ratio: auto; font-size: 12pt; min-height: 9.9in; overflow: visible; width: 100%; }
  #ob-print .ob-format-card { font-size: 10pt; min-height: 7.5in; }
  #ob-print .ob-format-column { min-height: 0; width: 2.2in; margin: 0; font-size: 9.5pt; }
  #ob-print .ob-format-column .ob-frame { padding: 0; }
  .ob-frame { display: block; }
  .ob-theme-classic .ob-body { column-fill: balance; }
  .ob-blank { background: none; border-bottom: 1px solid #555; color: #666; font-size: .8em; }
  .ob-wishes { break-before: page; box-shadow: none; margin: 0; }
  .ob-mark { position: fixed; font-size: 46pt; color: rgba(28,43,39,.16); }
  .no-print, .site-header, .site-footer, .mobile-cta { display: none !important; }
  .ob-view-stage { max-width: none; padding: 0; margin: 0; container-type: normal; }
  .ob-view-page { background: #fff; }
}
.ob-table-wrap { margin: 0 0 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ob-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ob-table th, .ob-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ob-table thead th { background: var(--surface); font-weight: 700; }
.ob-table tbody th { font-weight: 600; }
.ob-table tbody tr:last-child th, .ob-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .ob-table { font-size: .88rem; } .ob-table th, .ob-table td { padding: 9px 10px; } }
.ob-paper .ob-name.ob-name-l { font-size: 2.35em; }
.ob-paper .ob-name.ob-name-xl { font-size: 1.9em; }
.ob-format-column .ob-name.ob-name-l, .ob-format-column .ob-name.ob-name-xl { font-size: 1.5em; }
.ob-gap { margin-top: 24px; }
.ob-gap-s { margin-top: 10px; }
.ob-gap-l { margin-top: 32px; }
.ob-gap-b { margin-bottom: 18px; }
.ob-flush { padding-top: 0; }
.ob-template { white-space: pre-wrap; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.1rem; line-height: 1.55; background: var(--surface); padding: 20px; border-radius: 10px; }
.ob-lines-out { padding: 12px 14px; background: var(--surface); border-radius: 10px; }
.ob-sample-card .ob-blank { --ob-accent: #1F4A40; }
.ob-tfill { color: var(--primary); font-weight: 600; }
