/* Wireframe stage (2026-10-23): Bootstrap 5.3 does the layout and base styles; these are the app's own pieces.
   Look and feel comes later. */
:root { --bg: var(--bs-body-bg); --text: var(--bs-body-color); --muted: var(--bs-secondary-color); --accent: #2f7d4f; }
.page-message { padding: 48px 0; }
/* one width for the navbar, content and footer, so the logo and Account line up with the content edges (as PremarkPlay) */
.site-wrap { max-width: 1200px; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .site-wrap { padding-left: 24px; padding-right: 24px; } }

/* M4 public site */
:root { --line: #dfe3dd; --card: #ffffff; --soft: #eef3ee; --warn: #9a5b00;
  --g-a: #1f6b3e; --g-b: #2f7d4f; --g-c: #5a7d2f; --g-d: #7d6a2f; }
h2 { margin-top: 1.75rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.stats { font-weight: 600; }
.button, button:not([class*="btn"]):not(.navbar-toggler) { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 9px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button[disabled] { opacity: .55; cursor: not-allowed; }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.jl-card { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; color: var(--text); text-decoration: none; }
.jl-card:hover { border-color: var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-topic { font-weight: 600; }
.card-line, .card-meta, .card-id { font-size: .88rem; color: var(--muted); }
.card-types { font-size: .88rem; }
.shelf-name { overflow-wrap: anywhere; }
.status-reserved { opacity: .8; }
.grade { display: inline-block; min-width: 1.6em; text-align: center; border-radius: 4px; padding: 1px 6px;
  font-weight: 700; color: #fff; background: var(--g-d); }
.grade-A { background: var(--g-a); } .grade-B { background: var(--g-b); } .grade-C { background: var(--g-c); }
.price { font-weight: 700; font-size: 1.1rem; }
select, input[type=email] { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); color: var(--text); max-width: 100%; }
.pager { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.count, .empty { color: var(--muted); }
.hub-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 16px; }
.hub-grid span { color: var(--muted); font-size: .88rem; }
.links { padding-left: 18px; }
.listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.listing > * { min-width: 0; }
@media (min-width: 760px) { .listing { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .listing .buy { order: 2; } }
.buy { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; align-self: start; }
.buy .price { font-size: 1.6rem; margin: 0 0 4px; }
.fee { font-weight: 600; margin: 4px 0 12px; }
.fine { font-size: .85rem; color: var(--muted); }
.ended { font-weight: 700; font-size: 1.2rem; color: var(--warn); }
.status-note { color: var(--warn); font-weight: 600; }
.inv code { font-size: 1rem; }
.copy { padding: 2px 8px; font-size: .8rem; }
.facts table, .pricing, .deals, .links-table { width: 100%; border-collapse: collapse; }
.facts th, .facts td, .pricing th, .pricing td, .deals th, .deals td, .links-table th, .links-table td {
  text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.facts th { width: 38%; color: var(--muted); font-weight: 500; }
.links-table td { overflow-wrap: anywhere; }
.mix { margin: 14px 0; }
.mix svg { width: 100%; height: 14px; border-radius: 4px; overflow: hidden; display: block; }
.mix figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; }
.mix-editorial { fill: var(--g-a); background: var(--g-a); } .mix-ugc { fill: #c9a227; background: #c9a227; }
.mix-footer_nav { fill: #8aa1b1; background: #8aa1b1; } .mix-spam_page { fill: #b5523b; background: #b5523b; }
.mix-farm { fill: #7a3b2e; background: #7a3b2e; } .mix-other { fill: #9aa69f; background: #9aa69f; }
.signup { background: var(--soft); border-radius: 8px; padding: 16px; margin: 32px 0 8px; }
.signup h2 { margin-top: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; }
.steps-long { padding-left: 20px; }
.guide-list { list-style: none; padding: 0; }
.guide-list p { margin: 2px 0 14px; color: var(--muted); }
@media (max-width: 520px) { h1 { font-size: 1.5rem; } .facts th { width: 42%; } }
h1, .facts td, .jl-card { overflow-wrap: anywhere; }

/* M5 accounts */
.auth { max-width: 440px; }
.auth-new { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dee2e6; }
.auth-new h2 { font-size: 1.25rem; margin: 0 0 10px; }
.account { max-width: 640px; }
.form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form .fine { margin: -4px 0 0; }
.form button { align-self: flex-start; }
input[type=text], input[type=password], input[type=email], .form select { font: inherit; font-weight: 400; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); width: 100%; }
.field-error, .form-error { color: #b5523b; margin: -2px 0 0; font-weight: 600; }
.notice { background: var(--soft); border-left: 4px solid var(--accent); padding: 10px 12px; border-radius: 4px; }
.callout { background: var(--soft); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.callout p { margin: 0 0 10px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 4px 0 16px; }
.account-nav a { text-decoration: none; }
form.inline { display: inline; margin: 0; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; text-decoration: underline; }
button.danger { background: #b5523b; }
.facts-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); }

/* M6 sales flow */
.checkout, .order { max-width: 760px; }
.split { border-collapse: collapse; margin: 10px 0 16px; }
.split th, .split td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.split th { color: var(--muted); font-weight: 500; }
.consent { background: var(--soft); padding: 10px 12px; border-radius: 6px; }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0; }
.inline-form label { flex: 1 1 220px; }
.callout.securing { border-left: 4px solid var(--accent); }
.report h3 { font-size: 1.05rem; margin: 22px 0 8px; }
details summary { cursor: pointer; color: var(--muted); margin-top: 10px; }

/* R2–R4 wireframes */
.dash-table { font-size: .925rem; }
.dash-table .col-id { width: 1%; }
.dash-table td .badge { font-size: .7em; }
.dash-table th[data-bs-toggle] { cursor: help; }
.col-help { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; margin-left: .3em;
  border-radius: 50%; border: 1px solid currentColor; font-size: .7em; font-weight: 600; line-height: 1; opacity: .45; vertical-align: .1em; }
th:hover > .col-help { opacity: .8; }
.dash-table th a { color: inherit; text-decoration: none; white-space: nowrap; }
.dash-table th a.sorted { text-decoration: underline; }
.dash-table thead tr.filters th { font-weight: 400; padding-top: .25rem; padding-bottom: .5rem; }
.dash-table thead tr.filters .form-control, .dash-table thead tr.filters .form-select { min-width: 4.5rem; }
.dash-table td.num, .dash-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr 3rem; gap: .5rem; align-items: center; font-size: .9rem; }
.bar-row .progress { height: .6rem; }
.key-number .value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.explainer-step .num { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.wire { border: 2px dashed var(--bs-border-color); border-radius: .5rem; color: var(--bs-secondary-color); display: flex;
  align-items: center; justify-content: center; min-height: 10rem; text-align: center; padding: 1rem; }
@media (min-width: 992px) { .sticky-buy { position: sticky; top: 1rem; } }

/* ===== Layout option 2, "Research desk" (owner 2026-11-02): green brand, prominent sticky menu, answer-first pages ===== */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/fraunces-600-latin.woff2") format("woff2"); }
:root {
  --jl-900: #173d28;   /* menu bar */
  --jl-800: #1f4c33;   /* sub bar, hover */
  --jl-700: #1d5c38;   /* buttons, links */
  --jl-mint: #8fe0ad;  /* call to action on dark green, active underline */
  --jl-soft: #eef5ef;  /* answer box, popular row */
  --jl-line: #dbe7de;
  --accent: var(--jl-700); --soft: var(--jl-soft); --line: var(--jl-line);
  --g-a: #1f6f43; --g-b: #2d7fa8; --g-c: #8a6d1c; --g-d: #6b6f73;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --bs-link-color: var(--jl-700); --bs-link-color-rgb: 29, 92, 56; --bs-link-hover-color: var(--jl-900); --bs-link-hover-color-rgb: 23, 61, 40;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, .display-5 { font-family: var(--display); font-weight: 600; text-wrap: balance; letter-spacing: -.005em; }
h4, h5, h6, .h4, .h5, .h6 { text-wrap: balance; }
.btn-success, .btn-primary { --bs-btn-bg: var(--jl-700); --bs-btn-border-color: var(--jl-700); --bs-btn-hover-bg: var(--jl-900);
  --bs-btn-hover-border-color: var(--jl-900); --bs-btn-active-bg: var(--jl-900); --bs-btn-active-border-color: var(--jl-900);
  --bs-btn-disabled-bg: var(--jl-700); --bs-btn-disabled-border-color: var(--jl-700); }
.btn-cta { background: var(--jl-mint); color: var(--jl-900); font-weight: 700; border: 0; }
.btn-cta:hover, .btn-cta:focus-visible { background: #a8ebc0; color: var(--jl-900); }
:focus-visible { outline: 2px solid var(--jl-mint); outline-offset: 2px; }

/* the menu bar: always visible, large links */
.site-head { z-index: 1030; box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .45); }
.mainbar { background: var(--jl-900); padding-top: 0; padding-bottom: 0; min-height: 60px; }
.mainbar .brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.5rem; letter-spacing: -.01em;
  color: #fff; margin-right: 1.75rem; padding: 10px 0; }
.mainbar .brand .w1 { color: #fff; } .mainbar .brand .w2 { color: var(--jl-mint); }
.mainbar .brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark { flex: none; transition: transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .brand-mark { transition: none; } }
@media (max-width: 400px) { .mainbar .brand { font-size: 1.25rem; margin-right: .5rem; } .brand-mark { width: 30px; height: 30px; } }
.mainbar .menu .nav-link { color: #e4efe7; font-weight: 600; font-size: 1.02rem; padding: 18px 12px; }
.mainbar .menu .nav-link:hover, .mainbar .menu .nav-link:focus-visible { color: #fff; background: var(--jl-800); }
.mainbar .menu .nav-link.active { color: #fff; box-shadow: inset 0 -3px 0 var(--jl-mint); }
.nav-search { margin-left: auto; }
.nav-search .form-control { background: var(--jl-800); border: 1px solid #2f6346; color: #fff; width: 15rem; }
.nav-search .form-control::placeholder { color: #a9c7b4; }
.nav-search .form-control:focus { background: #fff; color: #17201b; border-color: var(--jl-mint); box-shadow: 0 0 0 .2rem rgba(143, 224, 173, .35); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.nav-end .login { color: #e4efe7; font-weight: 600; }
.nav-end .login:hover { color: #fff; }
.nav-icon { color: #fff; display: inline-flex; padding: 6px; border-radius: 6px; }
.nav-icon:hover { background: var(--jl-800); color: #fff; }
.mainbar .navbar-toggler { border-color: #3c7553; }
/* Topics mega menu: full width under the bar */
.mainbar .dropdown-menu { --bs-dropdown-bg: #fff; --bs-dropdown-link-color: #17201b; --bs-dropdown-link-hover-bg: var(--jl-soft);
  --bs-dropdown-link-active-bg: var(--jl-700); border: 0; border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); }
.mainbar .mega { left: 0; right: 0; width: 100%; margin-top: 0; padding: 18px 0; }
.mega-h { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6760; margin: 0 0 6px 16px; }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list.cols-3 { columns: 3 13rem; column-gap: 8px; }
.mega-list .dropdown-item { border-radius: 6px; padding: 5px 16px; white-space: normal; }
/* phones and tablets: the opened menu is a full list */
@media (max-width: 991.98px) {
  .mainbar .navbar-collapse { padding: 6px 0 14px; }
  .mainbar .menu .nav-link { padding: 10px 4px; }
  .mainbar .mega { padding: 8px 0; box-shadow: none; border-radius: 8px; }
  .mega-list.cols-3 { columns: 2 10rem; }
  .nav-end { margin: 8px 0 0; }
}
/* the second row: popular hubs on desktop, section tabs on phones */
.subbar { background: var(--jl-soft); border-bottom: 1px solid var(--jl-line); font-size: .9rem; }
.subbar ul { list-style: none; margin: 0; padding: 0; }
.subbar .popular { gap: 18px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.subbar .popular a { color: #2f5a40; text-decoration: none; font-weight: 500; }
.subbar .popular a:hover { text-decoration: underline; }
.subbar .popular .lbl { color: #5b6760; }
@media (max-width: 991.98px) {
  .subbar { background: var(--jl-800); border-bottom: 0; }
  .subbar .tabs { display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .subbar .tabs::-webkit-scrollbar { display: none; }
  .subbar .tabs a { display: block; padding: 10px 0 8px; color: #d6e8dc; font-weight: 600; text-decoration: none; }
  .subbar .tabs a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--jl-mint); }
}
html { scroll-padding-top: 120px; }

/* footer */
.site-foot { background: var(--jl-900); color: #c9dccf; }
.site-foot .text-body-secondary, .site-foot .small { color: #c9dccf !important; }
.site-foot .text-body { color: #fff !important; }
.site-foot a { color: #e4efe7; text-decoration: none; line-height: 1.9; }
.site-foot a:hover { color: #fff; text-decoration: underline; }

/* home: promise + live index */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px 0 32px; }
.home-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; margin-bottom: 14px; }
.home-hero .lead { color: #46524b; margin-bottom: 20px; }
.index-box { background: #fff; border: 1px solid var(--jl-line); border-top: 4px solid var(--jl-700); border-radius: 10px; padding: 18px 20px; }
.index-box h2 { font-family: var(--bs-body-font-family); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6760; margin: 0 0 12px; }
.index-box dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; align-items: baseline; }
.index-box dt { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--jl-900); font-variant-numeric: tabular-nums; }
.index-box dd { margin: 0; color: #46524b; }
.index-box .src { font-size: .8rem; color: #6a766f; margin: 12px 0 0; }
@media (max-width: 767.98px) { .home-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; } }
.guide-side .item { border-top: 1px solid var(--jl-line); padding: 10px 0; }
.guide-side .item a { font-family: var(--display); font-size: 1.05rem; text-decoration: none; color: #17201b; }
.guide-side .item a:hover { color: var(--jl-700); text-decoration: underline; }
.guide-side .item p { margin: 2px 0 0; font-size: .88rem; color: #5b6760; }
.explainer-step .num { background: var(--jl-soft); color: var(--jl-900); }

/* domain page: answer first */
.asof { color: #5b6760; font-size: .92rem; margin: -4px 0 14px; }
.answer { background: var(--jl-soft); border-left: 4px solid var(--jl-700); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 1.08rem; line-height: 1.55; margin-bottom: 18px; }
.answer p { margin: 0; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--jl-line); border-radius: 8px; overflow: hidden; margin: 0 0 24px; }
.keyfacts div { padding: 10px 14px; border-right: 1px solid var(--jl-line); border-bottom: 1px solid var(--jl-line); margin-bottom: -1px; }
.keyfacts dt { font-size: .78rem; font-weight: 600; color: #5b6760; text-transform: uppercase; letter-spacing: .03em; }
.keyfacts dd { margin: 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.listing-main section { margin-top: 28px; }
.faq-list details { border-top: 1px solid var(--jl-line); padding: 10px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--jl-line); }
.faq-list summary { color: #17201b; font-weight: 600; margin: 0; }
.faq-list details p { margin: 8px 0 0; }
.bar-row .progress-bar.bg-success { background-color: var(--jl-700) !important; }
.mobile-buy { display: none; }
@media (max-width: 991.98px) {
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #fff; border-top: 1px solid var(--jl-line);
    box-shadow: 0 -6px 18px -12px rgba(0, 0, 0, .4); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-buy .price { margin: 0; font-size: 1.15rem; }
  body:has(.mobile-buy) { padding-bottom: 72px; }
}

/* catalogue on phones: each row becomes a card; filters in a drawer */
.mfilters { display: none; }
@media (max-width: 640px) {
  .mfilters { display: block; margin: 0 0 10px; }
  .mfilters summary { display: inline-block; color: #fff; background: var(--jl-700); border-radius: 6px; padding: 6px 14px; font-weight: 600; margin: 0; }
  body:has(.mfilters:not([open])) .dash-table tr.filters { display: none; }
  .dash-table, .dash-table tbody, .dash-table thead { display: block; }
  .dash-table thead tr:first-child { display: none; }
  .dash-table tr.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .dash-table tr.filters th { display: block; padding: 0; border: 0; }
  .dash-table tr.filters th:empty { display: none; }
  .dash-table tr.filters th::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: #5b6760; }
  .table-responsive.border { border: 0 !important; }
  .dash-table tbody tr.dom-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; border: 1px solid var(--jl-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .dash-table tbody td { display: block; border: 0; padding: 0; text-align: left !important; }
  .dash-table tbody td::before { content: attr(data-label); display: block; font-size: .72rem; color: #6a766f; }
  .dash-table tbody td:first-child { grid-column: 1 / -1; }
  .dash-table tbody td:first-child::before, .dash-table tbody td.empty::before { content: none; }
  .dash-table tbody td.empty { grid-column: 1 / -1; }
}

/* Glossary (/glossary): A–Z bar, terms as anchor targets (highlighted when jumped to) */
.glossary .az { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 8px; position: sticky; top: 64px; background: #fff; padding: 6px 0; z-index: 2; }
.glossary .az a, .glossary .az span { display: inline-block; min-width: 30px; text-align: center; padding: 3px 6px; border-radius: 6px; font-weight: 600; }
.glossary .az a { background: #eaf6ef; color: var(--jl-700); text-decoration: none; }
.glossary .az a:hover { background: var(--jl-700); color: #fff; }
.glossary .az span { color: #b8c2bc; }
.glossary .term, .glossary .gloss-letter, #top { scroll-margin-top: 130px; }
.glossary .term { padding: 2px 12px; margin: 0 -12px; border-radius: 8px; border: 1px solid transparent; }
.glossary .term:target { border-color: var(--jl-700); background: #f3faf6; }
.glossary .term h3 { margin-top: 1em; font-size: 1.15rem; }
.glossary .see { color: var(--bs-secondary-color); margin-top: -.3em; }
.glossary .gloss-letter h2 { border-bottom: 1px solid var(--jl-line); padding-bottom: 4px; margin-top: 1.6em; }

/* Methodology funnel (templates/partials/method-funnel.php). No class = the final frame (no JS, reduced motion, crawlers);
   app.js adds .armed (start state) and then .play once the figure is in view. */
.method-funnel { max-width: 460px; margin: 8px auto 28px; padding: 14px 14px 10px; border: 1px solid var(--jl-line); border-radius: 10px; background: #fff; }
.method-funnel svg { display: block; width: 100%; height: auto; }
.method-funnel .wall { fill: #f6faf7; stroke: var(--jl-line); }
.method-funnel .cap { font-size: 12px; fill: #5b6760; }
.method-funnel .dot { fill: var(--jl-700); }
.method-funnel .dot:not(.keep) { opacity: .25; }
.method-funnel .gate rect { fill: var(--jl-700); }
.method-funnel .gate text { fill: #fff; font-size: 14px; font-weight: 700; }
.method-funnel .chip text { fill: #fff; font-size: 15px; font-weight: 700; }
.method-funnel .chip rect { fill: var(--g-d); }
.method-funnel .chip-A rect { fill: var(--g-a); } .method-funnel .chip-B rect { fill: var(--g-b); } .method-funnel .chip-C rect { fill: var(--g-c); }
.method-funnel .chip { transform-box: fill-box; transform-origin: center; }
.method-funnel figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: .85rem; color: #5b6760; }
@media (prefers-reduced-motion: no-preference) {
  .method-funnel.armed .dot { opacity: 0; }
  .method-funnel.armed .gate rect { fill: var(--jl-soft); }
  .method-funnel.armed .gate text { fill: #46524b; }
  .method-funnel.armed .chip { opacity: .25; }
  .method-funnel.play .dot { animation: 6s ease-in-out var(--d, 0s) both; }
  .method-funnel.play .g1 { animation-name: mf-g1; } .method-funnel.play .g2 { animation-name: mf-g2; }
  .method-funnel.play .g3 { animation-name: mf-g3; } .method-funnel.play .g4 { animation-name: mf-g4; }
  .method-funnel.play .keep { animation-name: mf-keep; }
  .method-funnel.play .gate rect { animation: mf-gate .5s ease-out var(--t) both; }
  .method-funnel.play .gate text { animation: mf-gate-text .5s ease-out var(--t) both; }
  .method-funnel.play .chip { animation: mf-chip .5s ease-out 5.3s both; }
}
@keyframes mf-g1 { 0% { opacity: 0; } 6%, 14% { opacity: 1; } 22%, 100% { opacity: .25; } }
@keyframes mf-g2 {
  0% { opacity: 0; transform: translate(var(--ax), var(--ay)); } 6% { opacity: 1; }
  14% { transform: translate(var(--ax), var(--ay)); } 26% { transform: translate(0, 0); }
  34% { opacity: 1; } 42%, 100% { opacity: .25; transform: translate(0, 0); } }
@keyframes mf-g3 {
  0% { opacity: 0; transform: translate(var(--ax), var(--ay)); } 6% { opacity: 1; }
  14% { transform: translate(var(--ax), var(--ay)); } 26%, 34% { transform: translate(var(--bx), var(--by)); }
  46% { transform: translate(0, 0); } 54% { opacity: 1; } 62%, 100% { opacity: .25; transform: translate(0, 0); } }
@keyframes mf-g4 {
  0% { opacity: 0; transform: translate(var(--ax), var(--ay)); } 6% { opacity: 1; }
  14% { transform: translate(var(--ax), var(--ay)); } 26%, 34% { transform: translate(var(--bx), var(--by)); }
  46%, 54% { transform: translate(var(--cx), var(--cy)); } 66% { transform: translate(0, 0); }
  74% { opacity: 1; } 82%, 100% { opacity: .25; transform: translate(0, 0); } }
@keyframes mf-keep {
  0% { opacity: 0; transform: translate(var(--ax), var(--ay)); } 6% { opacity: 1; }
  14% { transform: translate(var(--ax), var(--ay)); } 26%, 34% { transform: translate(var(--bx), var(--by)); }
  46%, 54% { transform: translate(var(--cx), var(--cy)); } 66%, 74% { transform: translate(var(--dx), var(--dy)); }
  86%, 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes mf-gate { from { fill: var(--jl-soft); } to { fill: var(--jl-700); } }
@keyframes mf-gate-text { from { fill: #46524b; } to { fill: #fff; } }
@keyframes mf-chip { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* Home cartoon (templates/partials/home-story.php). No class = a comic strip of final frames (no JS, reduced motion, crawlers);
   app.js adds .armed (one scene at a time), .started, .on per panel, .paused and .done. */
.home-story { margin: 0; }
.story-panels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991.98px) { .story-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .story-panels { grid-template-columns: 1fr; } }
.story-panel svg { display: block; width: 100%; height: auto; border: 3px solid var(--jl-900); border-radius: 14px; background: var(--jl-soft); }
.story-panel svg text { font-weight: 700; fill: var(--jl-900); }
.story-panel p { margin: 8px 0 0; font-size: .95rem; line-height: 1.4; }
.story-panel .n { display: inline-flex; width: 1.5em; height: 1.5em; align-items: center; justify-content: center; border-radius: 50%; background: var(--jl-700); color: #fff; font-weight: 700; font-size: .85em; margin-right: 4px; }
.story-end { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; margin-top: 18px; }
.story-end strong { font-family: var(--display); font-size: 1.25rem; color: var(--jl-900); }
.story-ctl { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; }
.story-ctl button.sdot { display: block; box-sizing: border-box; width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--jl-700); background: #fff; }
.story-ctl button.sdot[aria-current="true"] { background: var(--jl-700); }
.home-story .o { stroke: #173d28; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.home-story .glow path { stroke: #8fe0ad; stroke-width: 10; fill: none; stroke-linecap: round; }
.home-story .root path { stroke: #7a4f2c; stroke-width: 4; fill: none; stroke-linecap: round; }
.home-story .weak path { stroke: #8d968f; stroke-width: 3; stroke-dasharray: 2 7; fill: none; stroke-linecap: round; }
.home-story .weak { opacity: .4; }
.home-story .gone { opacity: 0; }
.home-story .pop, .home-story .grow, .home-story .shr { transform-box: fill-box; transform-origin: center; }
.home-story .grow, .home-story .shr { transform-origin: 50% 100%; }
.home-story.armed .story-panels { display: block; max-width: 720px; margin: 0 auto; }
.home-story.armed .story-panel { display: none; }
.home-story.armed .story-panel.on, .home-story.armed:not(.started) .story-panel:first-child { display: block; }
.home-story.armed .story-panel p { font-size: 1.15rem; text-align: center; min-height: 3.3em; margin-top: 12px; }
.home-story.armed .story-end { margin-top: 4px; visibility: hidden; opacity: 0; transition: opacity .5s; }
.home-story.armed.done .story-end { visibility: visible; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .home-story.armed .on .pop { animation: hs-pop .45s cubic-bezier(.3, 1.6, .6, 1) var(--t, 0s) both; }
  .home-story.armed .on .fade, .home-story.armed .on [data-a="fade"] { animation: hs-fade .9s ease-out var(--t, 0s) both; }
  .home-story.armed .on [data-a="pulse"] { animation: hs-pulse 1s ease-out var(--t, 0s) both; }
  .home-story.armed .on .drop { animation: hs-drop .8s cubic-bezier(.3, 1.3, .6, 1) var(--t, 0s) both; }
  .home-story.armed .on .grow { animation: hs-grow 1.8s cubic-bezier(.3, 1.2, .6, 1) var(--t, 0s) both; }
  .home-story.armed .on .fly { animation: hs-fly .9s ease-out var(--t, 0s) both; }
  .home-story.armed .on .fall { animation: hs-fall 1.2s ease-in .5s both; }
  .home-story.armed .on .shr { animation: hs-shr .9s ease-in 1.5s both; }
  .home-story.armed .on .weak { animation: hs-dim .5s ease-out 3s both; }
  .home-story.armed .on .seed { animation: hs-seed 1s ease-in .5s both; }
  .home-story.armed .on .look { animation: hs-look 3.8s ease-in-out both; }
  .home-story.armed .on .bob { animation: hs-bob .9s ease-in-out 4 both; }
  .home-story.paused .on * { animation-play-state: paused !important; }
}
@keyframes hs-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hs-pulse { from { opacity: .15; } to { opacity: 1; } }
@keyframes hs-drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hs-grow { from { transform: scale(.2); } to { transform: scale(1); } }
@keyframes hs-fly { from { opacity: 0; transform: translate(var(--fx), var(--fy)); } to { opacity: 1; transform: translate(0, 0); } }
@keyframes hs-fall { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(52px); } }
@keyframes hs-shr { from { opacity: 1; transform: scaleY(1); } to { opacity: 0; transform: scaleY(.1); } }
@keyframes hs-dim { from { opacity: 1; } to { opacity: .4; } }
@keyframes hs-seed { 0% { opacity: 0; transform: translateY(-44px); } 15% { opacity: 1; } 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes hs-look { 0%, 8% { transform: translate(0, 0); } 24%, 30% { transform: translate(-136px, 60px); } 48%, 54% { transform: translate(-38px, 68px); }
  72%, 78% { transform: translate(60px, 60px); } 100% { transform: translate(0, 0); } }
@keyframes hs-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.story-panel svg text.w { fill: #fff; }

/* The report (templates/sales/_report.php): buyer's order page and /sample-report */
.rp { --rp-line: var(--jl-line); margin: 18px 0 8px; }
.rp-hero { background: linear-gradient(135deg, var(--jl-900) 0%, var(--jl-700) 100%); color: #fff; border-radius: 14px; padding: 22px 24px 20px; position: relative; overflow: hidden; }
.rp-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(143,224,173,.28), rgba(143,224,173,0) 70%); }
.rp-hero-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.rp-kicker { color: var(--jl-mint); font-weight: 600; }
.rp-id { font-family: var(--bs-font-monospace); background: rgba(255,255,255,.14); border-radius: 999px; padding: 2px 10px; letter-spacing: .04em; }
.rp-domain { font-family: var(--display); font-size: clamp(1.6rem, 4.5vw, 2.5rem); line-height: 1.15; margin: 12px 0 10px; overflow-wrap: anywhere; }
.rp-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); }
.rp-grade { background: var(--jl-mint); color: var(--jl-900); font-weight: 700; border-radius: 6px; padding: 2px 10px; }
.rp-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 6px; }
@media (min-width: 576px) { .rp-tiles { grid-template-columns: repeat(3, 1fr); } }
.rp-tiles div { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(23,61,40,.05); }
.rp-tiles dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #5b6760; }
.rp-tiles dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: var(--jl-900); font-variant-numeric: tabular-nums; }
.rp-tiles small { color: #5b6760; font-size: .78rem; }
.rp-note, .rp-small { font-size: .85rem; color: #5b6760; margin: 4px 0 12px; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.rp-card { background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 14px 16px; }
.rp .rp-card h3, .rp .rp-risks h3 { font-family: inherit; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--jl-700); margin: 0 0 10px; }
.rp-card .mix { margin: 0; } .rp-card .mix svg { height: 16px; border-radius: 8px; }
.rp-key { display: inline-block; margin-right: 12px; white-space: nowrap; }
.rp-key .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.rp-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.rp-type { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .8rem; background: #eef1ee; color: #33423a; white-space: nowrap; }
.rp-type.t-news { background: #e4eefb; color: #1d4a86; } .rp-type.t-university { background: #efe7fa; color: #55318f; }
.rp-type.t-government { background: #fdecd8; color: #86500f; } .rp-type.t-nonprofit { background: #dff3e6; color: #1d5c38; }
.rp-type.t-science { background: #dff1f4; color: #145a66; } .rp-type.t-business { background: #f6e9e4; color: #7a3b2e; }
.rp .rp-h { font-family: var(--display); font-size: 1.3rem; margin: 26px 0 2px; display: flex; align-items: center; gap: 10px; }
.rp-count { font-family: var(--bs-font-sans-serif); font-size: .8rem; font-weight: 700; background: var(--jl-soft); color: var(--jl-700); border-radius: 999px; padding: 1px 10px; }
.rp-pages { list-style: none; counter-reset: rp; padding: 0; margin: 0; display: grid; gap: 8px; }
.rp-page { counter-increment: rp; position: relative; background: #fff; border: 1px solid var(--rp-line); border-radius: 12px; padding: 12px 14px 12px 52px; }
.rp-page::before { content: counter(rp); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--jl-soft); color: var(--jl-700);
  font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.rp-page.is-key { border-left: 4px solid var(--jl-700); } .rp-page.is-key::before { background: var(--jl-700); color: #fff; }
.rp-page-site { font-weight: 700; color: var(--jl-900); }
.rp-page-title a, .rp-page-title .rp-link { font-size: 1.02rem; }
.rp-page-url { font-family: var(--bs-font-monospace); font-size: .78rem; color: #5b6760; overflow-wrap: anywhere; margin: 1px 0 8px; }
.rp-page-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp-anchor { background: #fff7df; border: 1px solid #f0dfa6; color: #5c4a0b; border-radius: 6px; padding: 1px 8px; font-size: .85rem; }
.rp-chip { background: #f1f4f1; color: #47554d; border-radius: 999px; padding: 1px 9px; font-size: .78rem; white-space: nowrap; }
.rp-chip.good { background: #dff3e6; color: #1d5c38; }
.rp-link { color: var(--jl-700); text-decoration: underline; text-decoration-style: dotted; }
.rp-scroll { overflow-x: auto; border: 1px solid var(--rp-line); border-radius: 12px; background: #fff; }
.rp-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.rp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #5b6760; background: var(--jl-soft); padding: 8px 12px; white-space: nowrap; }
.rp-table td { padding: 8px 12px; border-top: 1px solid var(--rp-line); vertical-align: middle; }
.rp-table .num { text-align: right; font-variant-numeric: tabular-nums; } .rp-table .idx { color: #8a968f; } .rp-table .site { font-weight: 600; overflow-wrap: anywhere; }
.rp-rank { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: #e6ece7; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.rp-rank i { display: block; height: 100%; background: var(--jl-700); border-radius: 3px; }
.rp-timeline { list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 2px solid var(--rp-line); }
.rp-timeline li { position: relative; padding: 0 0 10px 12px; font-size: .92rem; }
.rp-timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--jl-700); border: 2px solid #fff; }
.rp-timeline b { display: inline-block; min-width: 3.2em; font-variant-numeric: tabular-nums; color: var(--jl-900); }
.rp-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-btn { display: inline-block; border: 1px solid var(--jl-700); color: var(--jl-700); border-radius: 8px; padding: 4px 12px; font-size: .88rem; font-weight: 600; text-decoration: none; }
a.rp-btn:hover { background: var(--jl-700); color: #fff; }
.rp-risks { background: #fff8e8; border: 1px solid #f0dfa6; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.rp .rp-risks h3 { color: #7a5a00; } .rp-risks ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; } .rp-risks li + li { margin-top: 4px; }
@media (max-width: 575px) { .rp-hero { padding: 18px 16px; } .rp-page { padding-left: 14px; padding-top: 44px; } }

/* Sample report (/sample-report): the real report inside a marked frame */
.sample-frame { position: relative; border: 2px dashed #b9cdbf; border-radius: 18px; padding: 22px 14px 6px; margin: 28px 0 20px; background: #f7faf7; }
.sample-frame .rp { margin-top: 0; }
.sample-tag { position: absolute; top: -13px; left: 20px; margin: 0; padding: 2px 12px; border-radius: 999px; background: #c9a227; color: #2b2200;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
