/* ============================================================
   BOOKMASTERS — EDITORIAL / MAGAZINE design language
   「出版工房」: warm paper, ink-navy type, vermillion stamps,
   double rules, serif masthead (Fraunces × Noto Serif TC),
   mono folios. Loaded AFTER styles.css + theme.css and wins.
   One dark block only (final CTA + footer).
   ============================================================ */

:root {
  --ed-paper: #F7F2E9;
  --ed-paper-2: #EFE8D9;
  --ed-card: #FFFDF6;
  --ed-ink: #1C2A42;
  --ed-ink-soft: #5C637A;
  --ed-red: #C2382F;
  --ed-teal: #66BCB8;
  --ed-teal-deep: #2E7975;
  --ed-line: #D9CFBC;
  --ed-line-strong: #1C2A42;

  --ed-serif: "Fraunces", "Noto Serif TC", "Songti TC", serif;
  --ed-sans: "Inter", "Noto Sans TC", system-ui, -apple-system, "PingFang HK", sans-serif;
  --ed-mono: "IBM Plex Mono", "Courier New", monospace;
}

/* scrolling sanity: clip x, keep viewport scrolling alive */
html { overflow-x: clip; overflow-y: auto; scroll-behavior: smooth; }
body.ed { overflow-x: clip; }

body.ed {
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* faint paper grain over everything (cheap inline noise) */
body.ed::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
body.ed > * { position: relative; z-index: 1; }

body.ed ::selection { background: var(--ed-teal); color: var(--ed-ink); }

.nowrap { white-space: nowrap; }

/* ============================================================
   CHROME — slim topbar + single compact masthead nav
   (logo lives inside .nav__inner; no brandstrip row)
   ============================================================ */
body.ed .topbar { background: var(--ed-ink); color: #EFE8D9; border-bottom: 0; font-size: 13px; }
body.ed .topbar a, body.ed .topbar__item { color: #EFE8D9; }
body.ed .topbar__item .ico { color: var(--ed-teal); }
body.ed .topbar__item:hover { color: #fff; }
body.ed .topbar__inner { min-height: 34px; }

body.ed .logo__word { font-family: var(--ed-serif); letter-spacing: .02em; }
body.ed .logo__word b { color: var(--ed-ink); font-weight: 900; font-size: 19px; }
body.ed .logo__word span { color: var(--ed-red); font-weight: 700; }
body.ed .logo__word > span { font-size: 9.5px; letter-spacing: 3.5px; margin-top: 2px; }

body.ed .nav { background: var(--ed-paper); border-bottom: 2px solid var(--ed-ink); box-shadow: none; }
body.ed .nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 0;
  padding-top: 9px;
  padding-bottom: 9px;
}
body.ed .nav .logo__mark { width: 34px; height: 34px; }
body.ed .nav__link { color: var(--ed-ink); font-family: var(--ed-sans); font-weight: 600; padding: 8px 14px; }
body.ed .nav__link:hover { color: var(--ed-red); background: transparent; }
body.ed .btn--solid { background: var(--ed-ink); color: var(--ed-paper); border-radius: 4px; padding: 9px 20px; }
body.ed .btn--solid:hover { background: var(--ed-red); color: #fff; }

@media (max-width: 980px) {
  body.ed .nav__link { padding: 8px 10px; font-size: 15px; }
}
@media (max-width: 620px) {
  body.ed .nav__inner { flex-wrap: wrap; gap: 6px 14px; padding-top: 7px; padding-bottom: 0; }
  body.ed .nav__actions { display: none; }
  body.ed .nav__menu {
    width: 100%;
    order: 3;
    justify-content: space-between;
    border-top: 1px solid var(--ed-line);
  }
  body.ed .nav__link { padding: 8px 4px; font-size: 13.5px; }
}

/* ============================================================
   SHARED EDITORIAL ATOMS
   ============================================================ */
.ed-eyebrow {
  display: inline-block;
  font-family: var(--ed-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ed-red);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.ed-h2 {
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.18;
  letter-spacing: .01em;
  margin: 0 0 14px;
  color: var(--ed-ink);
  text-wrap: balance;
}
.ed-h2 em { font-style: normal; color: var(--ed-red); }
.ed-sub { max-width: 640px; color: var(--ed-ink-soft); font-size: 16.5px; margin: 0; text-wrap: pretty; }
.ed-sechead { margin-bottom: 46px; }
.ed-sechead--center { text-align: center; }
.ed-sechead--center .ed-sub { margin: 0 auto; }

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 30px;
  font-family: var(--ed-sans);
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  border: 2px solid var(--ed-ink);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.ed-btn:hover { transform: translateY(-2px); }
.ed-btn:focus-visible { outline: 3px solid var(--ed-teal); outline-offset: 2px; }
.ed-btn--ink { background: var(--ed-ink); color: var(--ed-paper); }
.ed-btn--ink:hover { background: var(--ed-red); border-color: var(--ed-red); color: #fff; }
.ed-btn--line { background: transparent; color: var(--ed-ink); }
.ed-btn--line:hover { background: var(--ed-ink); color: var(--ed-paper); }
.ed-btn--teal { background: var(--ed-teal); border-color: var(--ed-teal); color: var(--ed-ink); }
.ed-btn--teal:hover { background: #fff; border-color: #fff; }
.ed-btn--ghost { background: transparent; border-color: rgba(247,242,233,.55); color: var(--ed-paper); }
.ed-btn--ghost:hover { border-color: var(--ed-paper); background: rgba(247,242,233,.08); }

.ed-dot { font-style: normal; color: var(--ed-red); }
.ed-dot--teal { color: var(--ed-teal); }

/* ============================================================
   01 · HERO MASTHEAD
   ============================================================ */
.ed-hero { padding: 34px 0 0; background: var(--ed-paper); }

.ed-folio {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ed-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ed-ink-soft);
  text-transform: uppercase;
  border-top: 3px double var(--ed-ink);
  border-bottom: 1px solid var(--ed-line);
  padding: 9px 2px;
}
.ed-folio__mid { color: var(--ed-red); }

.ed-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, .95fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(38px, 6vw, 72px) 0 56px;
}

.ed-h1 {
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 22px;
  color: var(--ed-ink);
}
.ed-h1__line { display: block; }
.ed-h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--ed-ink);
  background: linear-gradient(transparent 62%, rgba(102,188,184,.45) 62% 92%, transparent 92%);
  padding: 0 .04em;
}

.ed-lead { max-width: 470px; font-size: 17.5px; color: var(--ed-ink-soft); margin: 0 0 28px; text-wrap: pretty; }
.ed-lead b { color: var(--ed-ink); font-weight: 700; }

.ed-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.ed-stamps { display: flex; flex-wrap: wrap; gap: 12px; }
.ed-stamp {
  display: inline-block;
  font-family: var(--ed-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ed-ink);
  border: 2px solid var(--ed-ink);
  border-radius: 999px;
  padding: 6px 14px;
  transform: rotate(var(--r, 0deg));
  background: var(--ed-card);
  box-shadow: 2px 2px 0 rgba(28,42,66,.14);
}
.ed-stamp--red { color: var(--ed-red); border-color: var(--ed-red); box-shadow: 2px 2px 0 rgba(194,56,47,.18); }
.ed-stamp--teal { color: var(--ed-teal-deep); border-color: var(--ed-teal-deep); box-shadow: 2px 2px 0 rgba(46,121,117,.18); }

/* vertical CJK side column + seal */
.ed-hero__vert { display: flex; flex-direction: column; align-items: center; gap: 16px; align-self: stretch; justify-content: center; }
.ed-vert {
  writing-mode: vertical-rl;
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .42em;
  color: var(--ed-ink-soft);
  border-left: 1px solid var(--ed-line);
  border-right: 1px solid var(--ed-line);
  padding: 14px 6px;
}
.ed-seal {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ed-red);
  color: #F7F2E9;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 22px;
  border-radius: 6px;
  box-shadow: 1px 2px 0 rgba(28,42,66,.25);
  transform: rotate(-3deg);
}

/* fanned book mockups on a drawn shelf */
.ed-hero__fan { position: relative; perspective: 1100px; }
.ed-fan { position: relative; height: clamp(260px, 30vw, 400px); }
.ed-fan__c {
  position: absolute;
  bottom: 18px;
  width: clamp(150px, 16vw, 220px);
  aspect-ratio: 7/9;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 24px 38px -18px rgba(28,42,66,.5);
  background: #fff;
  transition: transform .5s cubic-bezier(.2,.9,.25,1.2);
}
/* --p (0→1, set by editorial.js from scroll) fans the deck out */
.ed-fan__c--1 { left: 2%;  z-index: 1; transform: rotate(calc(-11deg - var(--p, 0) * 5deg)) translateY(calc(var(--p, 0) * -8px)); }
.ed-fan__c--2 { left: 50%; z-index: 3; transform: translateX(-50%) rotate(calc(-1deg + var(--p, 0) * 1.5deg)) translateY(calc(8px - var(--p, 0) * 22px)); }
.ed-fan__c--3 { right: 2%; z-index: 2; transform: rotate(calc(10deg + var(--p, 0) * 5deg)) translateY(calc(var(--p, 0) * -8px)); }
.ed-fan__shelf {
  display: block;
  height: 10px;
  background: var(--ed-ink);
  border-radius: 2px;
  box-shadow: 0 14px 18px -10px rgba(28,42,66,.45);
}
.ed-fan__cap {
  font-family: var(--ed-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ed-ink-soft);
  margin: 12px 0 0;
  text-align: center;
}

.ed-hero__rule { border-top: 1px solid var(--ed-line); }

/* ============================================================
   02 · CLIENT LOGO ROW (between newspaper rules)
   ============================================================ */
.ed-clients { padding: 30px 0 34px; background: var(--ed-paper); }
.ed-clients__label {
  font-family: var(--ed-mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  color: var(--ed-ink-soft);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.ed-clients__marquee {
  overflow: hidden;
  border-top: 1px solid var(--ed-line);
  border-bottom: 3px double var(--ed-ink);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ed-clients__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  width: max-content;
  animation: ed-marquee 36s linear infinite;
}
.ed-clients__track img {
  height: 46px;
  width: auto;
  filter: grayscale(1) contrast(.92);
  opacity: .72;
  mix-blend-mode: multiply;
}
@keyframes ed-marquee { to { transform: translateX(-50%); } }

/* ============================================================
   03 · CONTENTS (services as a magazine TOC)
   ============================================================ */
.ed-toc { padding: clamp(70px, 9vw, 110px) 0; background: var(--ed-paper); }
.ed-toc__list { list-style: none; margin: 0; padding: 0; position: relative; }
.ed-toc__row { position: relative; border-bottom: 1px solid var(--ed-line); }
.ed-toc__row:first-child { border-top: 3px double var(--ed-ink); }
.ed-toc__row > a {
  display: grid;
  grid-template-columns: auto minmax(0, auto) 1fr auto auto;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 28px);
  padding: 24px 6px;
  text-decoration: none;
  color: inherit;
  transition: background .18s ease, padding-left .18s ease;
}
.ed-toc__row > a:hover { background: var(--ed-card); padding-left: 16px; }
.ed-toc__row > a:focus-visible { outline: 3px solid var(--ed-teal); outline-offset: -3px; }
.ed-toc__no {
  font-family: var(--ed-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ed-red);
  min-width: 1.6em;
}
.ed-toc__t h3 {
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 30px);
  margin: 0;
  line-height: 1.25;
  color: var(--ed-ink);
}
.ed-toc__t p { margin: 2px 0 0; font-size: 14px; color: var(--ed-ink-soft); }
.ed-toc__leader { border-bottom: 2px dotted var(--ed-line); transform: translateY(-8px); min-width: 30px; }
.ed-toc__price { font-family: var(--ed-mono); font-size: 14px; font-weight: 600; color: var(--ed-ink); white-space: nowrap; }
.ed-toc__row > a::after { content: "→"; font-family: var(--ed-serif); color: var(--ed-red); opacity: 0; transition: opacity .18s ease; }
.ed-toc__row > a:hover::after { opacity: 1; }

/* hover preview plate (pointer devices only) */
.ed-toc__prev {
  display: none;
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  top: 50%;
  width: 190px;
  aspect-ratio: 7/9;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 24px 44px -16px rgba(28,42,66,.5);
  transform: translateY(-50%) rotate(3deg) scale(.92);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity .22s ease, transform .22s ease;
}
@media (hover: hover) and (min-width: 980px) {
  .ed-toc__prev { display: block; }
  .ed-toc__row:hover .ed-toc__prev { opacity: 1; transform: translateY(-50%) rotate(-2deg) scale(1); }
}
/* below 980px the hover plate becomes an always-visible inline thumbnail */
@media (max-width: 979px) {
  .ed-toc__row { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 12px; }
  .ed-toc__prev {
    display: block;
    position: static;
    width: 76px;
    aspect-ratio: 7/9;
    border-width: 3px;
    box-shadow: 0 10px 18px -10px rgba(28,42,66,.45);
    transform: rotate(2deg);
    opacity: 1;
  }
}

/* blurred translucent work-mockup layers — modern showcase backdrop */
.ed-bgart {
  position: absolute;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 7/9;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  filter: blur(26px) saturate(1.05);
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}
.ed-hero, .ed-toc, .ed-plans, .ed-voices { position: relative; overflow: clip; }
.ed-hero > .container, .ed-toc > .container, .ed-plans > .container, .ed-voices > .container { position: relative; z-index: 1; }
.ed-bgart--a { top: -6%; right: -8%; transform: rotate(8deg); }
.ed-bgart--b { bottom: -10%; left: -10%; transform: rotate(-10deg); opacity: .12; }
.ed-bgart--c { top: 8%; right: -12%; transform: rotate(-7deg); }
.ed-bgart--d { bottom: -8%; right: -6%; transform: rotate(6deg); opacity: .13; }
.ed-bgart--e { top: -4%; left: -10%; transform: rotate(9deg); opacity: .12; }
@media (max-width: 880px) { .ed-bgart { opacity: .1; filter: blur(30px); } }
@media (prefers-reduced-motion: no-preference) {
  html.motion .ed-bgart { transition: transform 1s ease; }
}

/* ============================================================
   04 · WORKS — bookshelf wall
   ============================================================ */
.ed-shelfsec { padding: clamp(70px, 9vw, 110px) 0; background: var(--ed-paper-2); border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line); }
.ed-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 30px);
  align-items: end;
  padding: 0 8px 0;
  margin-bottom: 16px;
  border-bottom: 9px solid var(--ed-ink);
  position: relative;
}
.ed-shelf::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: -16px;
  height: 8px;
  background: rgba(28,42,66,.16);
  filter: blur(5px);
}
.ed-shelf + .ed-shelf { margin-top: 54px; }
.ed-book { margin: 0; position: relative; transform: rotate(var(--r, 0deg)); transition: transform .3s ease; }
.ed-book:hover { transform: rotate(0deg) translateY(-10px); z-index: 2; }
.ed-book img {
  display: block;
  width: 100%;
  aspect-ratio: 7/9;
  object-fit: cover;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: 0 16px 28px -14px rgba(28,42,66,.45);
}
.ed-book--tall img { aspect-ratio: 7/10; }
.ed-book figcaption {
  font-family: var(--ed-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ed-ink-soft);
  text-align: center;
  padding: 9px 0 12px;
}
.ed-book--cta { display: flex; align-items: stretch; }
.ed-book--cta a {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  aspect-ratio: 7/9;
  border: 2px dashed var(--ed-ink);
  background: var(--ed-card);
  color: var(--ed-ink);
  margin-bottom: 37px;
  transition: background .2s ease, transform .2s ease;
}
.ed-book--cta a:hover { background: #fff; transform: translateY(-8px); }
.ed-book--cta b { font-family: var(--ed-serif); font-weight: 900; font-size: clamp(19px, 2vw, 26px); line-height: 1.3; }
.ed-book--cta span { font-family: var(--ed-mono); font-size: 12.5px; color: var(--ed-red); }

/* ============================================================
   05 · SHOWREEL — framed plate
   ============================================================ */
.ed-reel { padding: clamp(70px, 9vw, 100px) 0; background: var(--ed-paper); }
.ed-reel__mat {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ed-line);
  box-shadow: 0 30px 56px -28px rgba(28,42,66,.4);
  padding: clamp(12px, 2vw, 20px);
  transform: rotate(-.6deg);
}
.ed-reel__frame { position: relative; aspect-ratio: 16/9; background: var(--ed-ink); }
.ed-reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ed-reel__cap {
  font-family: var(--ed-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ed-ink-soft);
  text-transform: uppercase;
  margin: 14px 4px 2px;
  padding-top: 12px;
  border-top: 1px solid var(--ed-line);
}

/* ============================================================
   06 · PROCESS — 3D cloth-bound book opens on scroll
   ============================================================ */
.ed-proc { padding: clamp(70px, 9vw, 110px) 0; background: var(--ed-paper); border-top: 1px solid var(--ed-line); }
.ed-proc__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.ed-proc__stage { position: sticky; top: 120px; perspective: 1500px; }
.ed-vol { position: relative; width: min(300px, 78%); aspect-ratio: 7/9.4; margin: 0 auto; transform-style: preserve-3d; }
.ed-vol__page, .ed-vol__cover {
  position: absolute;
  inset: 0;
  border-radius: 4px 10px 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ed-vol__page {
  background:
    repeating-linear-gradient(#FFFDF6 0 25px, #EFE7D6 25px 26px);
  border: 1px solid var(--ed-line);
  box-shadow: inset 14px 0 22px -16px rgba(28,42,66,.35), 0 22px 40px -20px rgba(28,42,66,.4);
}
.ed-vol__colophon {
  font-family: var(--ed-serif);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  line-height: 1.7;
  color: var(--ed-ink);
  letter-spacing: .12em;
}
.ed-vol__stamp {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--ed-red);
  border: 3px solid var(--ed-red);
  border-radius: 8px;
  padding: 6px 14px;
  transform: rotate(-9deg);
  opacity: calc((var(--open, 0) - .72) * 4);
}
.ed-vol__cover {
  transform-origin: left center;
  transform: rotateY(calc(var(--open, 0) * -148deg));
  background:
    radial-gradient(120% 100% at 80% 10%, #2A3D60 0%, #1C2A42 55%, #14203A 100%);
  border-left: 10px solid #101B30;
  box-shadow: 0 26px 44px -18px rgba(28,42,66,.55);
  backface-visibility: hidden;
  color: var(--ed-paper);
  z-index: 2;
}
.ed-vol__logo { width: 54px; height: 54px; }
.ed-vol__cover b { font-family: var(--ed-serif); font-weight: 900; font-size: 19px; letter-spacing: .1em; }
.ed-vol__cover span { font-family: var(--ed-mono); font-size: 11px; letter-spacing: .26em; color: var(--ed-teal); }
.ed-proc__cap {
  font-family: var(--ed-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ed-ink-soft);
  text-align: center;
  margin: 18px 0 0;
}

.ed-chapters { list-style: none; margin: 0; padding: 0; }
.ed-chap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2.6vw, 30px);
  align-items: start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-chap:first-child { border-top: 3px double var(--ed-ink); }
.ed-chap__no {
  writing-mode: vertical-rl;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .3em;
  color: var(--ed-red);
  border-right: 1px solid var(--ed-line);
  padding-right: 12px;
  min-height: 86px;
}
.ed-chap__body h3 { font-family: var(--ed-serif); font-weight: 900; font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 6px; color: var(--ed-ink); }
.ed-chap__body p { margin: 0; color: var(--ed-ink-soft); font-size: 15.5px; max-width: 480px; }

/* ============================================================
   07 · PRICING — library lending cards
   ============================================================ */
.ed-plans { padding: clamp(70px, 9vw, 110px) 0; background: var(--ed-paper-2); border-top: 1px solid var(--ed-line); }
.ed-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}
.ed-card {
  position: relative;
  background:
    repeating-linear-gradient(var(--ed-card) 0 27px, #EBE2CF 27px 28px);
  border: 1.5px solid var(--ed-ink);
  border-radius: 3px;
  padding: 0 0 24px;
  box-shadow: 3px 4px 0 rgba(28,42,66,.16);
  transform: rotate(var(--r, 0deg));
  transition: transform .22s ease, box-shadow .22s ease;
}
.ed-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 5px 8px 0 rgba(28,42,66,.18); }
.ed-card--hot { border-width: 2.5px; }
.ed-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--ed-ink);
  color: var(--ed-paper);
  padding: 13px 20px;
  border-radius: 1px 1px 0 0;
}
.ed-card--hot .ed-card__head { background: var(--ed-red); }
.ed-card__head h3 { font-family: "Noto Serif TC", serif; font-weight: 900; font-size: 21px; margin: 0; }
.ed-card__head span { font-family: var(--ed-mono); font-size: 11px; letter-spacing: .2em; opacity: .75; }
.ed-card__price {
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 44px);
  color: var(--ed-ink);
  margin: 18px 20px 6px;
  line-height: 1.1;
}
.ed-card__price small { font-family: var(--ed-mono); font-size: 13px; font-weight: 600; color: var(--ed-ink-soft); margin-left: 6px; }
.ed-card__list { list-style: none; margin: 6px 20px 12px; padding: 0; }
.ed-card__list li { font-size: 14.5px; color: var(--ed-ink); padding: 4px 0 4px 22px; position: relative; }
.ed-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ed-teal-deep); font-weight: 700; }
.ed-card__fit { margin: 4px 20px 0; font-size: 13px; color: var(--ed-ink-soft); border-top: 1px dashed var(--ed-line); padding-top: 12px; }
.ed-card__stamp {
  position: absolute;
  top: -16px;
  right: 14px;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--ed-red);
  border: 2.5px solid var(--ed-red);
  border-radius: 999px;
  background: var(--ed-card);
  padding: 6px 14px;
  transform: rotate(7deg);
  z-index: 2;
}
.ed-plans__cta { text-align: center; margin-top: 40px; }

/* ============================================================
   07B · 自動報價 QUOTE TOOL — paper worksheet card
   ============================================================ */
.ed-quotec { padding: clamp(70px, 9vw, 110px) 0; background: var(--ed-paper); border-top: 1px solid var(--ed-line); }
.bm-quote {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  background: var(--ed-card);
  border: 1.5px solid var(--ed-ink);
  border-radius: 3px;
  box-shadow: 4px 5px 0 rgba(28,42,66,.14);
  max-width: 1040px;
  margin: 0 auto;
}
.bm-quote__controls { padding: clamp(22px, 3vw, 34px); border-right: 1px solid var(--ed-line); }
.bm-quote__result { padding: clamp(22px, 3vw, 34px); background: var(--ed-paper); border-radius: 0 3px 3px 0; }

.bm-quote__field { margin-bottom: 20px; }
.bm-quote__label {
  display: block;
  font-family: var(--ed-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  margin-bottom: 8px;
}
.bm-quote__select, .bm-quote__input {
  width: 100%;
  font-family: var(--ed-sans);
  font-size: 16px;
  color: var(--ed-ink);
  background: #fff;
  border: 1px solid var(--ed-ink);
  border-radius: 3px;
  padding: 11px 12px;
}
.bm-quote__select:focus-visible, .bm-quote__input:focus-visible,
.bm-quote__check input:focus-visible { outline: 3px solid var(--ed-teal); outline-offset: 1px; }
.bm-quote__hint { font-family: var(--ed-mono); font-size: 12px; color: var(--ed-ink-soft); margin: 6px 0 0; }

.bm-quote__extras { border: 0; border-top: 1px dashed var(--ed-line); padding: 16px 0 0; margin: 0; }
.bm-quote__extras legend { padding: 0 0 8px; }

/* —— 印刷 module: toggle + revealed book-print options —— */
.bm-quote__printbox { border-top: 1px dashed var(--ed-line); padding-top: 16px; }
.bm-quote__printpanel {
  border-left: 2px solid var(--ed-teal);
  padding: 4px 0 2px 14px;
  margin-top: 8px;
}
.bm-quote__printpanel .bm-quote__field { margin-bottom: 14px; }
.bm-quote__printpanel .bm-quote__hint { margin: 0 0 12px; }
.bm-quote__printrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.bm-quote__fin { border: 0; padding: 0; margin: 0 0 14px; }
.bm-quote__fin legend { padding: 0 0 4px; }
.bm-quote__fingrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.bm-quote__proofrow { margin-bottom: 6px; }
.bm-quote__proofrow .bm-quote__hint { margin: 2px 0 0 28px; }
.bm-quote__breakdown {
  font-family: var(--ed-mono);
  font-size: 13px;
  color: var(--ed-ink);
  margin: 0 0 8px;
}
.bm-quote__wa { margin-top: 12px; }
@media (max-width: 560px) {
  .bm-quote__printrow, .bm-quote__fingrid { grid-template-columns: 1fr; }
}
.bm-quote__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ed-ink);
  padding: 6px 0;
  cursor: pointer;
}
.bm-quote__check input { width: 18px; height: 18px; accent-color: var(--ed-red); flex: none; cursor: pointer; }
.bm-quote__check small { font-family: var(--ed-mono); font-size: 11.5px; color: var(--ed-red); }

.bm-quote__resultlabel {
  display: inline-block;
  font-family: var(--ed-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ed-red);
  border-bottom: 1px solid var(--ed-line);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.bm-quote__price {
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
  color: var(--ed-ink);
  margin: 0 0 6px;
}
.bm-quote__price small { font-family: var(--ed-mono); font-size: 14px; font-weight: 600; color: var(--ed-ink-soft); margin-left: 6px; }
.bm-quote__summary { font-size: 14px; color: var(--ed-ink-soft); margin: 0 0 6px; }
.bm-quote__note { font-family: var(--ed-mono); font-size: 12px; color: var(--ed-ink-soft); margin: 0 0 18px; }

.bm-lead { border-top: 3px double var(--ed-ink); padding-top: 16px; }
.bm-lead__head { font-family: var(--ed-serif); font-weight: 900; font-size: 18px; color: var(--ed-ink); margin: 0 0 12px; }
.bm-lead__field { margin-bottom: 12px; }
.bm-lead__label {
  display: block;
  font-family: var(--ed-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ed-ink-soft);
  margin-bottom: 5px;
}
.bm-lead__input {
  width: 100%;
  font-family: var(--ed-sans);
  font-size: 15px;
  color: var(--ed-ink);
  background: #fff;
  border: 1px solid var(--ed-ink);
  border-radius: 3px;
  padding: 9px 11px;
}
.bm-lead__input:focus-visible { outline: 3px solid var(--ed-teal); outline-offset: 1px; }
.bm-lead__input--area { resize: vertical; min-height: 56px; }
.bm-quote button.ed-btn { cursor: pointer; font-size: 15px; min-height: 46px; padding: 10px 22px; width: 100%; }
.bm-lead__status { font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.bm-lead__status--ok { color: var(--ed-teal-deep); font-weight: 700; }
.bm-lead__status--error { color: var(--ed-red); font-weight: 700; }
.bm-quote__dl { margin-top: 12px; }

@media (max-width: 880px) {
  .bm-quote { grid-template-columns: 1fr; }
  .bm-quote__controls { border-right: 0; border-bottom: 1px solid var(--ed-line); }
  .bm-quote__result { border-radius: 0 0 3px 3px; }
}

/* ============================================================
   08 · STATS — figures between double rules
   ============================================================ */
.ed-stats { padding: clamp(50px, 7vw, 76px) 0; background: var(--ed-paper); }
.ed-stats__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px double var(--ed-ink);
  border-bottom: 3px double var(--ed-ink);
}
.ed-stat { text-align: center; padding: 30px 10px; border-left: 1px solid var(--ed-line); }
.ed-stat:first-child { border-left: 0; }
.ed-stat b {
  display: block;
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px);
  color: var(--ed-ink);
  line-height: 1.05;
}
.ed-stat b small { font-size: .5em; font-weight: 700; color: var(--ed-red); }
.ed-stat > span { font-family: var(--ed-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--ed-ink-soft); }

/* ============================================================
   09 · VOICES — asymmetric pull quotes
   ============================================================ */
.ed-voices { padding: clamp(70px, 9vw, 110px) 0 90px; background: var(--ed-paper); }
.ed-voices__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}
.ed-quote { position: relative; margin: 0; padding: 30px 26px 24px 30px; background: var(--ed-card); border: 1px solid var(--ed-line); box-shadow: 4px 5px 0 rgba(28,42,66,.1); }
.ed-quote::before {
  content: "「";
  position: absolute;
  top: -28px;
  left: 8px;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 64px;
  color: var(--ed-red);
  line-height: 1;
}
.ed-quote--a { grid-column: 1 / span 7; transform: rotate(-.5deg); }
.ed-quote--b { grid-column: 8 / span 5; transform: rotate(.7deg) translateY(26px); }
.ed-quote--c { grid-column: 3 / span 6; transform: rotate(-.3deg) translateY(8px); }
.ed-quote p { font-family: var(--ed-serif); font-weight: 600; font-size: clamp(16.5px, 1.8vw, 20px); line-height: 1.75; color: var(--ed-ink); margin: 0 0 16px; }
.ed-quote footer { display: flex; gap: 10px; align-items: baseline; border-top: 1px solid var(--ed-line); padding-top: 12px; }
.ed-quote footer b { font-family: var(--ed-mono); font-size: 13px; letter-spacing: .04em; color: var(--ed-ink); }
.ed-quote footer span { font-family: var(--ed-mono); font-size: 12px; color: var(--ed-ink-soft); }

/* ============================================================
   10 · FINAL CTA — the single ink block
   ============================================================ */
.ed-cta { background: var(--ed-ink); color: var(--ed-paper); padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.ed-cta::before {
  content: "終";
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: clamp(200px, 30vw, 420px);
  color: rgba(247,242,233,.05);
  line-height: 1;
  pointer-events: none;
}
.ed-cta__inner { text-align: left; max-width: 760px; }
.ed-cta__eyebrow {
  display: inline-block;
  font-family: var(--ed-mono);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ed-teal);
  border-bottom: 1px solid rgba(247,242,233,.25);
  padding-bottom: 8px;
  margin-bottom: 22px;
}
.ed-cta h2 {
  font-family: var(--ed-serif);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.18;
  margin: 0 0 30px;
  color: var(--ed-paper);
}
.ed-cta__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.ed-cta__meta { font-family: var(--ed-mono); font-size: 13px; color: rgba(247,242,233,.6); margin: 0; }

/* footer re-inked: continues the closing dark block */
body.ed .footer { background: #14203A; color: rgba(247,242,233,.82); border-top: 1px solid rgba(247,242,233,.12); }
body.ed .footer a { color: rgba(247,242,233,.82); }
body.ed .footer a:hover { color: var(--ed-teal); }
body.ed .footer h4 { color: var(--ed-paper); font-family: var(--ed-serif); }
body.ed .footer .logo__word b { color: var(--ed-paper); }
body.ed .footer .logo__word span { color: var(--ed-teal); }
body.ed .footer__bar { background: #101B30; color: rgba(247,242,233,.5); border-top: 1px solid rgba(247,242,233,.08); }

/* ============================================================
   REVEALS + MOTION
   ============================================================ */
[data-er] { opacity: 0; transform: translateY(26px); }
html.motion [data-er] { transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
[data-er].is-in { opacity: 1; transform: none; }
/* no-JS / reduced motion: show everything */
html:not(.motion) [data-er] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ed-clients__track { animation: none; }
  .ed-fan__c, .ed-book, .ed-card, .ed-btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .ed-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .ed-hero__vert { display: none; }
}
@media (max-width: 880px) {
  .ed-hero__grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .ed-hero__fan { max-width: 460px; margin: 8px auto 0; width: 100%; }
  .ed-folio { font-size: 10.5px; gap: 10px; }
  .ed-folio span:nth-child(3) { display: none; }
  .ed-proc__grid { grid-template-columns: 1fr; }
  .ed-proc__stage { position: static; margin-bottom: 10px; }
  .ed-plans__grid { grid-template-columns: 1fr; max-width: 440px; }
  .ed-card, .ed-quote--a, .ed-quote--b, .ed-quote--c { transform: none; }
  .ed-voices__grid { grid-template-columns: 1fr; }
  .ed-quote--a, .ed-quote--b, .ed-quote--c { grid-column: 1 / -1; }
  .ed-quote--b, .ed-quote--c { transform: none; }
  .ed-stats__row { grid-template-columns: repeat(2, 1fr); }
  .ed-stat:nth-child(3) { border-left: 0; }
  .ed-stat { border-top: 1px solid var(--ed-line); }
  .ed-stat:nth-child(-n+2) { border-top: 0; }
  .ed-shelf { grid-template-columns: repeat(2, 1fr); }
  .ed-shelf::after { display: none; }
  .ed-toc__row > a { grid-template-columns: auto 1fr auto auto; }
  .ed-toc__leader { display: none; }
  .ed-toc__row > a::after { display: none; }
}
/* ============================================================
   FORMAL QUOTE DOC — print to PDF (bm-fq, mirrors the official
   HobbyLand QUOTE template: heading + meta + brand block, line
   items, totals + chop, payment + signature, T&Cs, founder letter)
   ============================================================ */
.bm-print-doc { display: none; }
@media print {
  body.bm-printing::before { display: none !important; }
  body.bm-printing > *:not(#bm-print-doc) { display: none !important; }
  body.bm-printing #bm-print-doc {
    display: block !important;
    padding: 34px 32px;
    color: #1b1b1b;
    font-family: var(--ed-sans);
    font-size: 12.5px; line-height: 1.55;
  }
  #bm-print-doc .bm-fq__top { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
  #bm-print-doc .bm-fq__id { flex: 1.2; }
  #bm-print-doc .bm-fq__id h1 { font-family: var(--ed-serif); font-size: 34px; font-weight: 900; letter-spacing: .01em; margin: 0 0 14px; }
  #bm-print-doc .bm-fq__client { font-size: 13px; margin: 0; color: #333; }
  #bm-print-doc .bm-fq__meta { flex: 1; }
  #bm-print-doc .bm-fq__meta p { margin: 0 0 12px; }
  #bm-print-doc .bm-fq__meta b { display: block; font-size: 12px; }
  #bm-print-doc .bm-fq__meta span { font-size: 12.5px; color: #222; }
  #bm-print-doc .bm-fq__brand { flex: 1; text-align: right; }
  #bm-print-doc .bm-fq__brand svg { width: 48px; height: 48px; margin-bottom: 6px; }
  #bm-print-doc .bm-fq__brand b {
    display: block; font-family: var(--ed-serif);
    font-weight: 900; font-size: 15px; color: #1C2A42; margin-bottom: 6px;
  }
  #bm-print-doc .bm-fq__brand address { font-style: normal; font-size: 11.5px; color: #333; line-height: 1.5; }
  #bm-print-doc .bm-fq__items { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
  #bm-print-doc .bm-fq__items th {
    text-align: left; font-size: 12px; font-weight: 700;
    border-top: 1.5px solid #1b1b1b; border-bottom: 1.5px solid #1b1b1b; padding: 7px 6px;
  }
  #bm-print-doc .bm-fq__items th.num, #bm-print-doc .bm-fq__items td.num { text-align: right; white-space: nowrap; }
  #bm-print-doc .bm-fq__items td { vertical-align: top; padding: 12px 6px 14px; border-bottom: 1px solid #cfcfcf; font-size: 12.5px; }
  #bm-print-doc .bm-fq__items td p { margin: 0 0 2px; }
  #bm-print-doc .bm-fq__totrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 4px; }
  #bm-print-doc .bm-fq__chop { width: 122px; height: auto; flex: none; margin: 0 0 4px 14px; }
  #bm-print-doc .bm-fq__totals { width: 46%; flex: none; margin-left: auto; }
  #bm-print-doc .bm-fq__totals p {
    display: flex; justify-content: space-between; margin: 0;
    padding: 7px 6px; border-bottom: 1px solid #cfcfcf; font-size: 12.5px;
  }
  #bm-print-doc .bm-fq__totals p.total { font-weight: 700; border-bottom: 2px solid #1b1b1b; }
  #bm-print-doc .bm-fq__grid { display: flex; gap: 30px; margin: 44px 0 0; }
  #bm-print-doc .bm-fq__pay { flex: 1.3; }
  #bm-print-doc .bm-fq__pay h3 { font-size: 13px; margin: 0 0 8px; }
  #bm-print-doc .bm-fq__pay p { margin: 0 0 3px; font-size: 12px; }
  #bm-print-doc .bm-fq__sign { flex: 1; }
  #bm-print-doc .bm-fq__sign p { margin: 0 0 6px; font-size: 12.5px; }
  #bm-print-doc .bm-fq__sign i { display: block; font-style: normal; border-bottom: 1px solid #555; height: 26px; margin: 0 0 18px; width: 85%; }
  #bm-print-doc .bm-fq__terms { margin-top: 40px; break-before: auto; }
  #bm-print-doc .bm-fq__terms h3 { font-size: 13.5px; margin: 0 0 14px; }
  #bm-print-doc .bm-fq__terms h4 { font-size: 12.5px; margin: 14px 0 4px; }
  #bm-print-doc .bm-fq__terms p { margin: 0; font-size: 11.5px; color: #222; line-height: 1.65; }
  #bm-print-doc .bm-fq__contact {
    font-size: 11px; color: #C2382F; margin: 30px 0 0; border-top: 1px solid #cfcfcf; padding-top: 12px;
  }
  /* founder letter — its own page at the end of the quote pack */
  #bm-print-doc .bm-fq__letter {
    break-before: page; page-break-before: always;
    padding-top: 60px; max-width: 620px; margin: 0 auto;
    font-size: 13px; line-height: 1.9; color: #1b1b1b; text-align: left;
  }
  #bm-print-doc .bm-fq__letterlogo { display: block; width: 64px; height: 64px; margin: 0 auto 28px; }
  #bm-print-doc .bm-fq__letterlogo svg { display: block; width: 100%; height: 100%; }
  #bm-print-doc .bm-fq__letter p { margin: 0 0 14px; }
  #bm-print-doc .bm-fq__sig { margin-top: 30px; }
  #bm-print-doc .bm-fq__sig b { font-size: 15px; }
}

/* ---- emailed-PDF capture (html2canvas) ----
   The formal quote doc above is styled inside @media print only, but the
   emailed PDF is rasterised from SCREEN styles. quote.js adds .bm-pdf-capture
   to #bm-print-doc while capturing, so the same rules are mirrored here in an
   offscreen fixed-width (≈A4 @ 96dpi) container, then the class is removed. */
@media screen {
  #bm-print-doc.bm-pdf-capture {
    display: block;
    position: fixed; left: -10000px; top: 0;
    width: 794px;
    background: #fff;
    padding: 34px 32px;
    color: #1b1b1b;
    font-family: var(--ed-sans);
    font-size: 12.5px; line-height: 1.55;
  }
  #bm-print-doc.bm-pdf-capture .bm-fq__top { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__id { flex: 1.2; }
  #bm-print-doc.bm-pdf-capture .bm-fq__id h1 { font-family: var(--ed-serif); font-size: 34px; font-weight: 900; letter-spacing: .01em; margin: 0 0 14px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__client { font-size: 13px; margin: 0; color: #333; }
  #bm-print-doc.bm-pdf-capture .bm-fq__meta { flex: 1; }
  #bm-print-doc.bm-pdf-capture .bm-fq__meta p { margin: 0 0 12px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__meta b { display: block; font-size: 12px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__meta span { font-size: 12.5px; color: #222; }
  #bm-print-doc.bm-pdf-capture .bm-fq__brand { flex: 1; text-align: right; }
  #bm-print-doc.bm-pdf-capture .bm-fq__brand svg { width: 48px; height: 48px; margin-bottom: 6px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__brand b {
    display: block; font-family: var(--ed-serif);
    font-weight: 900; font-size: 15px; color: #1C2A42; margin-bottom: 6px;
  }
  #bm-print-doc.bm-pdf-capture .bm-fq__brand address { font-style: normal; font-size: 11.5px; color: #333; line-height: 1.5; }
  #bm-print-doc.bm-pdf-capture .bm-fq__items { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
  #bm-print-doc.bm-pdf-capture .bm-fq__items th {
    text-align: left; font-size: 12px; font-weight: 700;
    border-top: 1.5px solid #1b1b1b; border-bottom: 1.5px solid #1b1b1b; padding: 7px 6px;
  }
  #bm-print-doc.bm-pdf-capture .bm-fq__items th.num, #bm-print-doc.bm-pdf-capture .bm-fq__items td.num { text-align: right; white-space: nowrap; }
  #bm-print-doc.bm-pdf-capture .bm-fq__items td { vertical-align: top; padding: 12px 6px 14px; border-bottom: 1px solid #cfcfcf; font-size: 12.5px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__items td p { margin: 0 0 2px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__totrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 4px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__chop { width: 122px; height: auto; flex: none; margin: 0 0 4px 14px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__totals { width: 46%; flex: none; margin-left: auto; }
  #bm-print-doc.bm-pdf-capture .bm-fq__totals p {
    display: flex; justify-content: space-between; margin: 0;
    padding: 7px 6px; border-bottom: 1px solid #cfcfcf; font-size: 12.5px;
  }
  #bm-print-doc.bm-pdf-capture .bm-fq__totals p.total { font-weight: 700; border-bottom: 2px solid #1b1b1b; }
  #bm-print-doc.bm-pdf-capture .bm-fq__grid { display: flex; gap: 30px; margin: 44px 0 0; }
  #bm-print-doc.bm-pdf-capture .bm-fq__pay { flex: 1.3; }
  #bm-print-doc.bm-pdf-capture .bm-fq__pay h3 { font-size: 13px; margin: 0 0 8px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__pay p { margin: 0 0 3px; font-size: 12px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__sign { flex: 1; }
  #bm-print-doc.bm-pdf-capture .bm-fq__sign p { margin: 0 0 6px; font-size: 12.5px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__sign i { display: block; font-style: normal; border-bottom: 1px solid #555; height: 26px; margin: 0 0 18px; width: 85%; }
  #bm-print-doc.bm-pdf-capture .bm-fq__terms { margin-top: 40px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__terms h3 { font-size: 13.5px; margin: 0 0 14px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__terms h4 { font-size: 12.5px; margin: 14px 0 4px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__terms p { margin: 0; font-size: 11.5px; color: #222; line-height: 1.65; }
  #bm-print-doc.bm-pdf-capture .bm-fq__contact {
    font-size: 11px; color: #C2382F; margin: 30px 0 0; border-top: 1px solid #cfcfcf; padding-top: 12px;
  }
  #bm-print-doc.bm-pdf-capture .bm-fq__letter {
    padding-top: 60px; max-width: 620px; margin: 0 auto;
    font-size: 13px; line-height: 1.9; color: #1b1b1b; text-align: left;
  }
  #bm-print-doc.bm-pdf-capture .bm-fq__letterlogo { display: block; width: 64px; height: 64px; margin: 0 auto 28px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__letterlogo svg { display: block; width: 100%; height: 100%; }
  #bm-print-doc.bm-pdf-capture .bm-fq__letter p { margin: 0 0 14px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__sig { margin-top: 30px; }
  #bm-print-doc.bm-pdf-capture .bm-fq__sig b { font-size: 15px; }
}

@media (max-width: 520px) {
  body.ed { font-size: 16px; }
  .ed-h1 { font-size: clamp(40px, 12vw, 52px); }
  .ed-lead { font-size: 16px; }
  .ed-btn { width: 100%; }
  .ed-hero__cta { flex-direction: column; }
  .ed-stamps { gap: 9px; }
  .ed-stamp { font-size: 11.5px; padding: 5px 11px; }
  .ed-clients__track img { height: 36px; }
  .ed-toc__t p { display: none; }
  .ed-toc__price { font-size: 12px; }
  .ed-shelf { gap: 12px; }
  .ed-cta__acts .ed-btn { width: 100%; }
}
