/* Direct Mail Services (independent buyer's guide). Look: a product test lab report. Bright white, deep navy and
   acid lime; spec tags, rating dots, scorecards, comparison grids and a decoded receipt. Prefix bg-. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg-paper: #ffffff;
  --bg-soft: #f3f5f8;
  --bg-ink: #14213d;
  --bg-ink-2: #56607a;
  --bg-lime: #c6f432;
  --bg-lime-ink: #3d5200;
  --bg-rule: #dde2ea;
  --bg-warn: #d2452f;
  --bg-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --bg-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-paper: #0d1322;
    --bg-soft: #151d30;
    --bg-ink: #e9eef8;
    --bg-ink-2: #a3aec6;
    --bg-lime: #c6f432;
    --bg-lime-ink: #c6f432;
    --bg-rule: #26304a;
    --bg-warn: #ff7a64;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-paper); color: var(--bg-ink); font: 17px/1.65 var(--bg-body); overflow-x: clip; }
a { color: var(--bg-ink); text-decoration-color: var(--bg-lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--bg-ink); } }
a:hover { background: color-mix(in srgb, var(--bg-lime) 35%, transparent); }
:focus-visible { outline: 3px solid var(--bg-lime); outline-offset: 2px; }
.bg-skip { position: absolute; left: -999px; }
.bg-skip:focus { left: 10px; top: 10px; z-index: 40; background: var(--bg-paper); padding: 8px 12px; }
.bg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 26px; }
h1, h2, h3, .bg-brand, .bg-foot__name { font-family: var(--bg-display); font-weight: 700; letter-spacing: -.02em; }

/* header */
.bg-header { background: #14213d; color: #fff; }
.bg-header__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.bg-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.25rem; }
.bg-brand:hover { background: none; }
.bg-brand small { font: 700 .66rem var(--bg-body); letter-spacing: .14em; text-transform: uppercase; background: var(--bg-lime); color: #14213d; padding: 2px 7px; border-radius: 3px; }
.bg-brand__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-lime); color: #14213d; display: grid; place-items: center; font-size: .95rem; }
.bg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.bg-nav a { color: #e9eef8; text-decoration: none; font-size: .88rem; font-weight: 700; padding: 6px 10px; border-radius: 4px; display: block; }
.bg-nav a:hover { background: rgba(255,255,255,.1); }
.bg-nav a[aria-current] { background: var(--bg-lime); color: #14213d; }
.bg-menu { display: none; font: 700 .85rem var(--bg-body); background: var(--bg-lime); color: #14213d; border: 0; border-radius: 4px; padding: 7px 14px; cursor: pointer; }

/* hero */
.bg-hero { background: var(--bg-soft); border-bottom: 1px solid var(--bg-rule); }
.bg-hero__in { display: grid; grid-template-columns: 1fr 250px; gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 44px; }
.bg-hero h1 { font-size: clamp(2rem, 4.8vw, 3.3rem); line-height: 1.05; margin: 0 0 14px; }
.bg-lede { font-size: 1.18rem; margin: 0; max-width: 38em; color: var(--bg-ink); }
.bg-spec { margin: 0; border: 2px solid var(--bg-ink); border-radius: 10px; background: var(--bg-paper); overflow: hidden; }
.bg-spec div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--bg-rule); font-size: .88rem; }
.bg-spec div:last-child { border-bottom: 0; }
.bg-spec dt { color: var(--bg-ink-2); font-weight: 700; }
.bg-spec dd { margin: 0; font-weight: 700; }
.bg-spec div:first-child { background: var(--bg-lime); color: #14213d; }
.bg-spec div:first-child dt { color: #14213d; }

/* article */
.bg-article { max-width: 780px; padding: 20px 0 80px; }
.bg-article h2 { font-size: 1.7rem; line-height: 1.15; margin: 2em 0 .5em; display: flex; align-items: center; gap: 12px; }
.bg-article h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg-lime) 30%, transparent); }
.bg-article h3 { font-size: 1.2rem; margin: 1.5em 0 .3em; }
.bg-article li { margin: .35em 0; }
.bg-article ul li::marker { color: var(--bg-lime-ink); }
.bg-article ol li::marker { font-weight: 700; color: var(--bg-ink-2); }
.bg-tag { display: inline-block; font: 700 .7rem var(--bg-body); letter-spacing: .12em; text-transform: uppercase; background: var(--bg-ink); color: var(--bg-paper); padding: 3px 8px; border-radius: 3px; margin: 0 0 8px; }
.bg-fine { font-size: .82rem; color: var(--bg-ink-2); margin: 0; }

/* tables */
.bg-table { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--bg-rule); border-radius: 10px; }
.bg-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.bg-table th, .bg-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--bg-rule); vertical-align: top; }
.bg-table thead th { background: var(--bg-soft); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.bg-table tbody tr:last-child th, .bg-table tbody tr:last-child td { border-bottom: 0; }
.bg-table tbody th { font-weight: 700; }
.bg-matrix td { text-align: center; }
.bg-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg-ink); vertical-align: middle; }
.bg-dot--2 { background: var(--bg-lime); border-color: #14213d; }
@media (prefers-color-scheme: dark) { .bg-dot--2 { border-color: var(--bg-lime); } }
.bg-dot--1 { background: linear-gradient(90deg, var(--bg-ink) 50%, transparent 50%); }
.bg-dot--0 { opacity: .35; }
.bg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--bg-ink-2); margin: 6px 0 1.2em; align-items: center; }
.bg-legend span { display: inline-flex; gap: 6px; align-items: center; }
.bg-yes { color: var(--bg-lime-ink); font-weight: 700; }
@media (prefers-color-scheme: light) { .bg-yes { background: var(--bg-lime); color: #14213d; padding: 0 6px; border-radius: 3px; } }
.bg-noj { color: var(--bg-ink-2); }

/* lab cards */
.bg-lab { border: 2px solid var(--bg-ink); border-radius: 14px; padding: 16px; margin: 0 0 1em; }
.bg-lab__head { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .85rem; color: var(--bg-ink-2); margin-bottom: 12px; }
.bg-lab__jobs { font-weight: 700; color: var(--bg-ink); }
.bg-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.bg-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border: 1px solid var(--bg-rule); border-radius: 10px; text-decoration: none; background: var(--bg-soft); }
.bg-card:hover { border-color: var(--bg-ink); background: var(--bg-soft); }
.bg-card b { font-family: var(--bg-display); font-size: 1.05rem; line-height: 1.2; }
.bg-card__d { font-size: .85rem; color: var(--bg-ink-2); flex: 1; }
.bg-card__dots { display: flex; gap: 4px; }
.bg-card .bg-dot { width: 13px; height: 13px; }

/* flow */
.bg-flow { list-style: none; padding: 0; margin: 1.2em 0 1.4em; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: f; }
.bg-flow li { margin: 0; padding: 12px 10px; border: 1px solid var(--bg-rule); border-top: 4px solid var(--bg-lime); border-radius: 8px; font-weight: 700; font-size: .92rem; line-height: 1.3; background: var(--bg-soft); }
.bg-flow li::marker { content: none; }
.bg-flow .bg-tag { display: block; width: max-content; margin-bottom: 6px; }

/* scorecard + worksheet */
.bg-score input { width: 100%; min-width: 0; border: 1px solid var(--bg-rule); border-radius: 6px; padding: 7px 8px; font: 700 1rem var(--bg-body); color: var(--bg-ink); background: var(--bg-paper); }
.bg-score td input[type=number] { text-align: center; max-width: 80px; }
.bg-ws td input { font-weight: 400; font-size: .9rem; min-width: 140px; }
.bg-vname { font-family: var(--bg-display) !important; background: transparent !important; border-color: transparent !important; padding: 2px 0 !important; text-transform: none; letter-spacing: 0; }
.bg-vname:focus { border-color: var(--bg-ink) !important; }
.bg-total { font: 700 1.3rem var(--bg-display); text-align: center !important; }
.bg-total.is-best { background: var(--bg-lime); color: #14213d; }
.bg-score tfoot th, .bg-score tfoot td { border-top: 2px solid var(--bg-ink); border-bottom: 0; }
.bg-actions { margin: 10px 0 1.4em; }
.bg-btn { font: 700 .88rem var(--bg-body); background: var(--bg-ink); color: var(--bg-paper); border: 2px solid var(--bg-ink); border-radius: 6px; padding: 7px 14px; cursor: pointer; }
.bg-btn--ghost { background: transparent; color: var(--bg-ink); }

/* receipt */
.bg-receipt { max-width: 440px; margin: 1.4em 0 1.8em; background: var(--bg-paper); border: 1px solid var(--bg-rule); padding: 20px 22px 16px; font-size: .92rem;
  box-shadow: 0 16px 30px -22px rgba(20,33,61,.6); -webkit-mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) 0 0 / 16px 100% repeat-x; padding-bottom: 26px; }
.bg-receipt__h { font: 700 1.2rem var(--bg-display); margin: 0 0 8px; border-bottom: 2px dashed var(--bg-rule); padding-bottom: 8px; }
.bg-receipt ul { list-style: none; padding: 0; margin: 0; }
.bg-receipt li { display: flex; gap: 8px; align-items: baseline; margin: 6px 0; }
.bg-receipt li i { flex: 1; border-bottom: 2px dotted var(--bg-rule); }
.bg-receipt li em { font-style: normal; font-weight: 700; font-size: .8rem; background: var(--bg-soft); padding: 1px 7px; border-radius: 3px; }
.bg-receipt li:nth-child(8) em { background: var(--bg-lime); color: #14213d; }
.bg-receipt__f { font-size: .8rem; color: var(--bg-ink-2); margin: 12px 0 0; border-top: 2px dashed var(--bg-rule); padding-top: 8px; }

/* faq + sources */
.bg-faq { margin-top: 2.4em; border-top: 2px solid var(--bg-ink); padding-top: 14px; }
.bg-faq details { border-bottom: 1px solid var(--bg-rule); }
.bg-faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bg-faq summary::-webkit-details-marker { display: none; }
.bg-faq summary::after { content: "+"; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--bg-lime); color: #14213d; display: grid; place-items: center; }
.bg-faq details[open] summary::after { content: "–"; }
.bg-faq details p { margin: 0 0 12px; }
.bg-sources { margin-top: 2.4em; background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; font-size: .9rem; }
.bg-sources ul { margin: 0 0 6px; padding-left: 1.1em; }

/* footer */
.bg-foot { background: #14213d; color: #c8d0e0; padding: 40px 0 26px; font-size: .92rem; }
.bg-foot a { color: #fff; }
.bg-foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bg-foot__name { font-size: 1.3rem; color: #fff; margin: 0 0 6px; }
.bg-foot__list { list-style: none; padding: 0; margin: 0; columns: 2; }
.bg-foot__list li { margin: 0 0 6px; }
.bg-foot__legal { font-size: .8rem; color: #98a3bb; border-top: 1px solid rgba(255,255,255,.15); margin: 22px 0 0; padding-top: 14px; }

@media (max-width: 920px) {
  .bg-menu { display: inline-block; }
  .bg-nav { display: none; width: 100%; }
  .bg-nav.is-open { display: block; }
  .bg-nav ul { flex-direction: column; }
  .bg-hero__in { grid-template-columns: 1fr; gap: 20px; }
  .bg-spec { max-width: 320px; }
  .bg-cards { grid-template-columns: repeat(2, 1fr); }
  .bg-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .bg-wrap { padding-left: 16px; padding-right: 16px; }
  .bg-flow { grid-template-columns: repeat(2, 1fr); }
  .bg-foot__grid { grid-template-columns: 1fr; }
}
@media print {
  .bg-header, .bg-foot, .bg-hero, .bg-actions, .bg-sources, .bg-faq, .bg-article > :not(.bg-score) { display: none !important; }
  body { background: #fff; color: #000; }
  .bg-score input { border: 0; border-bottom: 1px solid #999; border-radius: 0; }
}
