/* LaFrame101 shared styles (style B, "warm boutique"). Used by /, /quote, /admin and /404.
   Sections: tokens · base · layout · header/nav · buttons · hero · sections & cards · steps ·
   gallery · lightbox · products · about/visit · forms · contact · footer · sticky bar ·
   estimate page · print */

/* ---------- Tokens ---------- */
:root {
  --paper: #fbf7ef;
  --ink: #2a2622;
  --accent: #9a7b4f;
  --card: #fff;
  --shadow: 0 1px 2px rgb(42 38 34 / 0.10), 0 6px 18px rgb(42 38 34 / 0.10);

  --accent-ink: #7a5f38;      /* accent for small text: AA on --paper */
  --muted: #6b6258;
  --line: #e9e1d2;
  --line-strong: #d9cfbd;     /* decorative rules only */
  --field-border: #8f8070;    /* form controls and chips: 3.8:1 on white, 3.6:1 on --paper (WCAG 1.4.11) */
  --tag-bg: #efe6d6;
  --tag-ink: #6e5838;
  --error: #a3341f;
  --success: #3d6b3a;
  --footer-ink: #d8cfc0;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --sticky-h: 56px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
figure { margin: 0; }
.muted { color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 0.6em; color: var(--accent-ink); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.section-lede { color: var(--muted); max-width: 60ch; margin-bottom: 1.5em; }
.lede, .section-lede { text-wrap: pretty; }
.nobreak { white-space: nowrap; }
.two-col { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 821px) { .two-col { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 239 / 0.94);
  border-bottom: 1px solid #e4dccd;
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a { text-decoration: none; font-size: 0.95rem; padding-block: 10px; display: inline-block; }
.site-nav a:hover { color: var(--accent-ink); }
.header-phone { font-weight: 700; white-space: nowrap; }
.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px; padding: 0;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; background: currentColor; margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

@media (max-width: 720px) {
  .header-inner { min-height: 56px; }
  .wordmark { font-size: 1.35rem; }
  .nav-toggle { display: block; }
  /* Without JS the nav stays a simple wrapped row; nav.js marks the header and collapses it. */
  .site-nav { flex-wrap: wrap; gap: 0 16px; }
  .site-nav ul { flex-wrap: wrap; gap: 0 16px; }
  .header-phone { display: none; }
  .site-header.has-js .header-inner { flex-wrap: nowrap; }
  .site-header.has-js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid #e4dccd;
    box-shadow: 0 12px 24px rgb(42 38 34 / 0.12);
    padding: 8px var(--gutter) 16px;
  }
  .site-header.has-js .site-nav.is-open { display: flex; }
  .site-header.has-js .site-nav ul { flex-direction: column; gap: 0; }
  .site-header.has-js .site-nav li + li { border-top: 1px solid var(--line); }
  .site-header.has-js .site-nav a { display: block; padding: 12px 0; font-size: 1.1rem; min-height: 48px; }
  .site-header.has-js .header-phone { display: block; border-top: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em; border-radius: 3px; border: 1px solid var(--ink);
  font: 600 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #443d36; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn:disabled:hover { background: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 821px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-bottom: 0.4em; max-width: 14ch; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 44ch; margin-bottom: 1.6em; }
.hero-note { margin: 1.2em 0 0; font-size: 0.92rem; color: var(--muted); }
.hero-note a { color: var(--muted); }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.5vw, 28px); align-items: start; }
.mat { background: var(--card); padding: clamp(6px, 1vw, 12px); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-photo-offset { margin-top: clamp(28px, 6vw, 64px); }
@media (max-width: 720px) {
  .hero h1 { max-width: none; }
  .hero .button-row .btn { flex: 1 1 100%; }
}

/* ---------- Sections and cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); }
.tag-line { margin: -0.2em 0 0; }
.tag {
  display: inline-block; vertical-align: middle;
  padding: 0.2em 0.75em; border-radius: 999px; background: var(--tag-bg); color: var(--tag-ink);
  font: 600 0.75rem/1.5 var(--sans); letter-spacing: 0.02em;
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 1.5em 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 721px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent-ink); font: 1.25rem/1 var(--serif);
}
.step h3 { margin-bottom: 0.3em; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip {
  min-height: 44px; padding: 0.4em 1.05em; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--field-border); background: var(--card); color: var(--ink);
  font: 600 0.92rem/1 var(--sans);
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 400px) { .chip { padding-inline: 0.8em; font-size: 0.88rem; } }
.gallery-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(12px, 2vw, 22px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 521px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 901px) { .gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thumb {
  display: block; background: var(--card); padding: clamp(5px, 0.8vw, 8px); box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f1ebe0; }
.thumb:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(42 38 34 / 0.12), 0 14px 28px rgb(42 38 34 / 0.16); }
@media (prefers-reduced-motion: reduce) { .thumb, .thumb:hover { transition: none; transform: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #f3ede3; overflow: hidden;
}
.lightbox::backdrop { background: rgb(24 21 18 / 0.94); }
.lightbox-stage {
  position: relative; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 64px clamp(12px, 8vw, 96px) 24px;
}
.lightbox-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; min-height: 0; touch-action: pan-y; }
.lightbox-figure img {
  max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain;
  background: #fff; padding: clamp(6px, 1vw, 12px); box-shadow: 0 20px 50px rgb(0 0 0 / 0.5);
}
.lightbox-caption { margin-top: 14px; max-width: 70ch; text-align: center; font-size: 0.95rem; line-height: 1.45; }
.lightbox-count { position: absolute; top: 18px; left: 20px; margin: 0; font-size: 0.9rem; opacity: 0.8; }
.lightbox-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.35); background: rgb(24 21 18 / 0.55); color: #fff;
  font: 1.9rem/1 var(--serif); display: flex; align-items: center; justify-content: center; padding: 0 0 4px;
}
.lightbox-btn:hover { background: rgb(255 255 255 / 0.15); }
.lightbox-btn:focus-visible { outline-color: #fff; }
.lightbox-prev { left: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(8px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 10px; right: 12px; }
@media (max-width: 720px) {
  .lightbox-stage { padding-inline: 12px; padding-bottom: 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .lightbox-figure img { max-height: calc(100dvh - 230px); }
}

/* ---------- Products ---------- */
.products { display: grid; gap: clamp(16px, 2.5vw, 24px); grid-template-columns: 1fr; margin-top: 1.5em; }
@media (min-width: 721px) { .products { grid-template-columns: 1fr 1fr; } .product-feature { grid-column: 1 / -1; } }
@media (min-width: 1025px) { .products { grid-template-columns: 1fr 1fr 2fr; } .product-feature { grid-column: auto; } }
.product { display: flex; flex-direction: column; }
.product > p { color: var(--muted); }
.product .price { font: 1.5rem/1.2 var(--serif); color: var(--ink); margin: auto 0 0.4em; }
.product .price-note { margin: auto 0 0.5em; padding-top: 0.5em; font: 1.15rem/1.3 var(--serif); color: var(--ink); }
.product-links { margin: 0; font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.call-to-order { color: var(--accent-ink); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.product-feature { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 521px) { .product-feature { grid-template-columns: minmax(140px, 0.8fr) 1.2fr; } }
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-feature-body > p { color: var(--muted); }
.price-list { margin: 0; }
.price-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.price-list dt { font-weight: 600; flex: 1 1 12rem; }
.price-list dt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.price-list dd { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.price-list .price { margin: 0; }

/* ---------- About / visit ---------- */
.about-visit p { max-width: 62ch; }
.visit-card h2 { margin-bottom: 0.6em; }
.hours { margin: 0 0 1.2em; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.visit-place { margin-bottom: 1.2em; }
.visit-card .btn { width: 100%; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--field-border); border-radius: 3px; background: #fff; color: var(--ink);
  font: 1rem/1.4 var(--sans);
}
textarea { resize: vertical; min-height: 128px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(154 123 79 / 0.25); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: 0.9rem; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }
.form .btn[type="submit"] { justify-self: start; min-width: 12rem; }
/* Turnstile "flexible" needs 300 px; narrower containers get the compact widget (see turnstile.js). */
.turnstile { min-height: 65px; max-width: 100%; }
.turnstile:empty { min-height: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.noscript-note { font-size: 1.1rem; }
@media (max-width: 720px) { .form .btn[type="submit"] { justify-self: stretch; } }
/* Phones: slimmer form card so the 300 px Turnstile widget fits from a 360 px viewport up. */
@media (max-width: 400px) { .form.card { padding-inline: 12px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: 1fr; margin-top: 1.5em; }
@media (min-width: 821px) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; align-items: start; } }
.contact-form-wrap { position: relative; min-width: 0; }
.contact-line { margin-bottom: 1.1em; }
.contact-label { display: block; color: var(--accent-ink); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-big { font: 1.6rem/1.3 var(--serif); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--footer-ink); padding-block: 40px; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 0.5em; }
.footer-name { font: 1.35rem/1.2 var(--serif); color: #fff; }
.site-footer .footer-copy { opacity: 0.85; margin-top: 1em; }

/* ---------- Sticky bar (phones) ---------- */
.sticky-bar { display: none; }
@media (max-width: 720px) {
  .sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -6px 18px rgb(42 38 34 / 0.18);
  }
  .sticky-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--sticky-h); color: #fff; font-weight: 700; text-decoration: none; letter-spacing: 0.02em;
  }
  .sticky-bar a + a { border-left: 1px solid rgb(255 255 255 / 0.2); }
  body { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Estimate page (/quote) ---------- */
/* At least one screen tall, so the footer stays below the fold while prices load (no layout shift). */
.quote-section { border-top: 0; padding-block: clamp(36px, 6vw, 72px); min-height: 100vh; min-height: 100svh; }
.print-header, .print-inputs { display: none; }
.quote-unavailable { font-size: 1.2rem; max-width: 40rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin-bottom: 24px; overflow-x: auto; }
.tab {
  min-height: 48px; padding: 8px 18px; background: none; border: 0; border-bottom: 3px solid transparent;
  font: 600 1rem/1.2 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:hover { color: var(--ink); }
.quote-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 821px) { .quote-grid { grid-template-columns: 1.05fr 1fr; } }
.calc-inputs, .calc-output { display: grid; gap: 18px; min-width: 0; }
.size-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.size-x { padding-bottom: 12px; color: var(--muted); }
.hint { margin: -10px 0 0; color: var(--muted); font-size: 0.9rem; }
.field-set { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.field-set legend, .photo-set > label { padding: 0; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field-set .hint { margin: 0; }
.qty-field input { max-width: 8rem; }
/* Segmented control: real radios, visually hidden, styled through their label. */
.seg { justify-self: start; display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; max-width: 100%; }
.seg label { position: relative; display: flex; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { position: relative; display: flex; align-items: center; min-height: 46px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem; background: #fff; }
.seg label + label span { border-left: 1px solid var(--ink); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.custom-mat { max-width: 12rem; }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-set { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.photo-set > label { flex: 1 1 100%; }
.btn-link { border-color: transparent; background: none; text-decoration: underline; text-decoration-color: var(--accent); }
.preview { display: grid; justify-items: center; gap: 8px; text-align: center; }
.preview-canvas { display: flex; justify-content: center; max-width: 100%; }
.pv-frame { background: #1d1a17; box-shadow: 0 3px 10px rgb(0 0 0 / 0.28); }
.pv-frame.pv-canvas { background: #e8e1d3; box-shadow: 3px 4px 10px rgb(0 0 0 / 0.28); }
.pv-mat { background: #f6f2e8; }
.pv-art { background: linear-gradient(135deg, #c9b99b, #a8946f); }
.pv-art-photo { background-color: #d8cfbd; background-size: cover; background-position: center; }
.sum { padding: 16px 18px; }
.sum-lines { list-style: none; margin: 0 0 4px; padding: 0; }
.sum-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.sum-lines .is-included { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--accent); margin-top: 8px; padding-top: 10px; font-size: 1.15rem; }
.sum-total strong { font: 1.9rem/1.1 var(--serif); font-weight: 400; }
.sum p { margin: 8px 0 0; font-size: 0.95rem; }
.quote-actions .btn { flex: 1 1 12rem; }
.form-title { font-size: 1.3rem; margin: 0; }
#sent-note { margin: 0; }

/* ---------- 404 / simple pages ---------- */
.page-message { padding-block: clamp(64px, 12vw, 140px); }
.page-message .lede { margin-bottom: 1.4em; }

/* ---------- Print ---------- */
@media print {
  :root { --shadow: none; }
  body { background: #fff; color: #000; font-size: 11pt; padding: 0; }
  .site-header, .site-footer, .eyebrow, .quote-section h1, .noscript-note { display: none !important; }
  .site-nav, .nav-toggle, .skip-link, .sticky-bar, .lightbox, .gallery-filters, form, .button-row, .btn { display: none !important; }
  .section { padding-block: 16pt; border-color: #ccc; }
  .card { border-color: #ccc; }
  .print-header { display: block; margin-bottom: 14pt; border-bottom: 1px solid #000; padding-bottom: 8pt; }
  .print-header p { margin: 0; }
  .print-shop { font: 20pt var(--serif); }
  .print-inputs { display: block; margin-top: 14pt; }
  .print-inputs h2 { font-size: 14pt; }
  .print-inputs ul { margin: 0; padding-left: 16pt; }
  .tabs, .calc-inputs, .quote-actions, #stale-note, #sent-note, #quote-loading { display: none !important; }
  .quote-grid { display: block; }
  .preview:not(.has-photo) { display: none !important; }
  .pv-frame, .pv-mat, .pv-art { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .quote-section { padding-block: 0; border: 0; min-height: 0; }
  .container { max-width: none; padding-inline: 0; }
  .size-line { text-align: center; margin: 6pt 0; }
  .sum { padding: 8pt 0; border: 0; }
  body { padding: 0; }
  .thumb:hover { transform: none; }
    .site-footer a, .footer-name { color: #000; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Owner settings (/admin) ---------- */
.admin-tag { color: var(--accent-ink); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.admin { max-width: 760px; padding-block: clamp(28px, 5vw, 56px) 72px; }
.admin h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
.admin-form { gap: 24px; }
.admin-group h2, .admin-sample h2 { font-size: 1.35rem; }
.admin-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; border-inline: 0; border-bottom: 0; min-width: 0; }
.admin-row:first-of-type { border-top: 0; }
.admin-row label, .admin-row legend { font-weight: 600; font-size: 0.98rem; padding: 0; }
.admin-row .hint { color: var(--muted); font-size: 0.88rem; }
.admin-row input[type="text"] { max-width: 100%; }
.admin-radios { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.admin-radios legend { flex: 1 1 100%; margin-bottom: 4px; }
.admin-radios .field-error { flex: 1 1 100%; }
.radio { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; cursor: pointer; }
.radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
@media (min-width: 640px) {
  .admin-row:not(.admin-check):not(.admin-radios) { grid-template-columns: 1fr 11rem; align-items: center; column-gap: 20px; }
  .admin-row:not(.admin-check):not(.admin-radios) .hint { grid-column: 1; grid-row: 2; }
  .admin-row:not(.admin-check):not(.admin-radios) label { grid-column: 1; grid-row: 1; }
  .admin-row:not(.admin-check):not(.admin-radios) input { grid-column: 2; grid-row: 1 / span 2; }
  .admin-row:not(.admin-check):not(.admin-radios) .field-error { grid-column: 1 / -1; }
}
.admin-banner { background: #fbeeea; border: 1px solid var(--error); color: var(--error); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-banner p { margin: 0; }
.sample-total { font: 2.2rem/1.1 var(--serif); margin: 0; }
