/* Custom Courseware Review Guide — editorial design system
   Research-publication aesthetic: restrained, typographic, high information density. */

:root {
  --ink: #16202c;
  --ink-2: #35435a;
  --ink-3: #5c6b81;
  --ink-4: #8593a8;
  --paper: #fdfdfc;
  --paper-2: #f5f4f0;
  --paper-3: #eceae4;
  --line: #ddd9d0;
  --line-2: #c9c4b8;
  --accent: #1c4f8b;
  --accent-2: #0f3763;
  --accent-soft: #e8f0f9;
  --sponsor: #8a5a12;
  --sponsor-soft: #fdf4e4;
  --ok: #1d6b4f;
  --warn: #9a4a12;
  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(22, 32, 44, .05), 0 8px 24px rgba(22, 32, 44, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 18px; z-index: 200; }
.skip:focus { left: 0; }

a { color: var(--accent); text-decoration-color: rgba(28, 79, 139, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.22; color: var(--ink); margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.05em; }
img { max-width: 100%; height: auto; }
em { font-style: italic; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 100; }
.head-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 3px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; font-weight: 700; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.brand-text span { font-size: .76rem; color: var(--ink-3); letter-spacing: .07em; text-transform: uppercase; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.primary-nav a { font-size: .89rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { color: var(--accent); }
.cta-nav {
  background: var(--accent); color: #fff !important; padding: 8px 15px; border-radius: var(--radius);
  font-weight: 500; font-size: .85rem !important;
}
.cta-nav:hover { background: var(--accent-2); }

/* ---------- level-2 dropdowns ----------
   Exactly one dropdown level. The panel is positioned relative to its own
   .nav-item so it can never overlay unrelated header content, and it is
   capped in height so a long list scrolls rather than filling the screen. */
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; }
.nav-top::after {
  content: ''; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor; opacity: .5; transition: transform .15s ease;
}
.nav-item.open > .nav-top::after { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: 100%; left: -14px; z-index: 60;
  min-width: 330px; max-width: 380px; max-height: min(70vh, 520px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line-2); border-top: 2px solid var(--accent);
  border-radius: var(--radius); box-shadow: 0 14px 34px rgba(20, 26, 38, .13);
  padding: 6px; margin-top: 2px;
  /* hidden by default; .open (JS) and :focus-within (keyboard) both reveal it */
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.nav-item.open > .nav-drop, .nav-item:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
/* Set when Escape closes a panel while its label still holds focus. Without
   this, :focus-within would immediately re-show the panel the user just
   dismissed, making Escape look like it did nothing.
   Scoped to :not(.open) so it only blocks the focus-driven reveal — an explicit
   open from hover or a click still works normally. */
.nav-item.focus-off:not(.open):focus-within > .nav-drop { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.nav-drop a {
  display: block; padding: 8px 11px; border-radius: 3px; white-space: normal;
  border-bottom: 1px solid var(--paper-3);
}
.nav-drop a:last-child { border-bottom: 0; }
.nav-drop a:hover, .nav-drop a:focus-visible { background: var(--paper-2); color: var(--ink); }
.nav-drop a strong { display: block; font-size: .87rem; font-weight: 600; color: var(--ink); }
.nav-drop a span { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.nav-drop a:last-child strong { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

.sponsor-bar { background: var(--sponsor-soft); border-bottom: 1px solid #ecdcbe; font-size: .8rem; color: #6b4a13; }
.sponsor-bar .wrap { padding-top: 9px; padding-bottom: 9px; line-height: 1.5; }
.sponsor-bar strong { color: #563a0d; }
.sponsor-bar a { color: #6b4a13; font-weight: 500; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #f7f8fa 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); padding: 58px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }
.eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.hero h1 { margin-bottom: 18px; }
.lede { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }

.btn { display: inline-block; padding: 11px 21px; border-radius: var(--radius); font-size: .92rem; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--paper-2); }
.btn-sm { padding: 8px 15px; font-size: .85rem; }

.search { display: flex; max-width: 560px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.search input { flex: 1; border: 0; padding: 12px 15px; font-size: .95rem; font-family: inherit; outline: none; }
.search button { border: 0; background: var(--ink); color: #fff; padding: 0 20px; cursor: pointer; font-family: inherit; font-size: .9rem; }
.search button:hover { background: var(--accent); }
.search-hint { font-size: .82rem; color: var(--ink-3); margin-top: 12px; }
.search-hint a { color: var(--ink-3); }

.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow); }
.hero-panel h2 { font-size: 1.12rem; margin-bottom: 14px; }
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: .91rem; color: var(--ink-2); line-height: 1.55; }
.tick-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.panel-note { font-size: .78rem; color: var(--ink-4); border-top: 1px solid var(--line); padding-top: 13px; margin: 16px 0 0; }

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-top { padding-top: 38px; }
.sec-title { margin-bottom: 10px; }
.sec-sub { color: var(--ink-3); max-width: 74ch; margin-bottom: 30px; font-size: .98rem; }

/* ---------- cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 17px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.cat-card strong { font-size: .96rem; font-family: var(--serif); line-height: 1.3; }
.cat-card span { font-size: .84rem; color: var(--ink-3); line-height: 1.45; flex: 1; }
.cat-card em { font-style: normal; font-size: .74rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 12px; }
.ind-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 15px 17px; text-decoration: none; color: inherit; }
.ind-card:hover { border-color: var(--accent-2); }
.ind-card strong { font-family: var(--serif); font-size: 1rem; }
.ind-card span { font-size: .82rem; color: var(--ink-3); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.g-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 21px; text-decoration: none; color: inherit; }
.g-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.g-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.g-card p { font-size: .87rem; color: var(--ink-3); flex: 1; line-height: 1.5; }
.g-link { font-size: .84rem; color: var(--accent); font-weight: 500; margin-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-h { font-size: 1.05rem; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.plain-list li a { font-size: .95rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.plain-list li a:hover { color: var(--accent); }
.li-meta { display: block; font-size: .78rem; color: var(--ink-4); margin-top: 3px; line-height: 1.45; }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.comp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 22px; display: flex; flex-direction: column; }
.comp-card h2 { font-size: 1.12rem; }
.comp-card h2 a { text-decoration: none; color: inherit; }
.comp-card h2 a:hover { color: var(--accent); }
.comp-card p { font-size: .89rem; color: var(--ink-3); }
.comp-card .review-q { color: var(--ink-2); font-style: italic; }
.comp-card .g-link { margin-top: auto; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tool-grid-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px; text-decoration: none; color: inherit; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-card strong { font-family: var(--serif); font-size: 1.02rem; }
.tool-card span { font-size: .86rem; color: var(--ink-3); line-height: 1.5; flex: 1; }
.tool-card em { font-style: normal; font-size: .8rem; color: var(--accent); font-weight: 600; }

.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.comm-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 19px; }
.comm-card h3 { font-size: 1rem; }
.comm-card p { font-size: .86rem; color: var(--ink-3); margin: 0; }

.more-link { margin: 26px 0 0; }

/* ---------- method band ---------- */
.method-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.method-steps { list-style: none; counter-reset: ms; padding: 0; margin: 0; }
.method-steps li { counter-increment: ms; position: relative; padding-left: 40px; margin-bottom: 16px; }
.method-steps li::before { content: counter(ms); position: absolute; left: 0; top: 1px; width: 25px; height: 25px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 600; font-family: var(--sans); }
.method-steps strong { display: block; font-size: .95rem; }
.method-steps span { font-size: .86rem; color: var(--ink-3); line-height: 1.5; }

/* ---------- cta band ---------- */
.cta-band { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: 10px; }
.cta-side { border-left: 1px solid var(--line); padding-left: 34px; }
.cta-side h3 { font-size: 1rem; }
.cta-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.transparency { max-width: 900px; }
.transparency p { color: var(--ink-2); }

/* ---------- page head ---------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { max-width: 74ch; margin: 0; }

.crumbs { border-bottom: 1px solid var(--line); background: var(--paper); font-size: .8rem; }
.crumbs .wrap { padding-top: 11px; padding-bottom: 11px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .sep { color: var(--line-2); margin: 0 6px; }

/* ---------- filters ---------- */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.fld { display: flex; flex-direction: column; gap: 5px; flex: 1 1 175px; min-width: 0; }
.fld > span { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.fld input, .fld select {
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 9px 11px; font-size: .9rem;
  font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.fld input:focus, .fld select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.fld-check { flex-direction: row; align-items: center; gap: 8px; flex: 0 0 auto; padding-bottom: 9px; }
.fld-check input { width: auto; }
.fld-check span { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 400; color: var(--ink-2); }
.filter-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.result-count { font-size: .86rem; color: var(--ink-3); margin-bottom: 16px; }
.no-results { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Shown when the URL asks for a filter this site does not have. Silently
   falling back to the full directory would misrepresent what was searched. */
.filter-warn { background: #fdf6e3; border: 1px solid #e0c88a; border-left: 4px solid #b8891f; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; }
.filter-warn strong { color: #6b4c05; }
.filter-warn a { color: var(--brand); }

/* ---------- vendor cards ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dir-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.v-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 20px; display: flex; flex-direction: column; }
.v-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.v-card h3 { font-size: 1.05rem; margin: 0; }
.v-card h3 a { text-decoration: none; color: var(--ink); }
.v-card h3 a:hover { color: var(--accent); }
.bm-chip { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 3px 8px; border-radius: 2px; background: var(--paper-3); color: var(--ink-3); max-width: 100%; overflow-wrap: break-word; line-height: 1.35; }
.bm-project-agency, .bm-consultancy, .bm-production-studio { background: #e5efe6; color: #1d5b41; }
.bm-platform-saas { background: #e6edf6; color: #24497c; }
.bm-content-library { background: #f3e9f4; color: #663a6c; }
.bm-localization-services { background: #fdf0e2; color: #8a5418; }
.bm-hybrid { background: #eceaf6; color: #4b3d84; }
.bm-managed-services { background: #e9eef0; color: #3a5a63; }
.v-loc { font-size: .8rem; color: var(--ink-4); margin: 0 0 9px; }
.v-desc { font-size: .88rem; color: var(--ink-2); flex: 1; line-height: 1.5; }
.tag-row { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row li a { display: inline-block; font-size: .74rem; padding: 3px 9px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink-2); }
.tag-row li a:hover { border-color: var(--accent); color: var(--accent); }
.tag-row .more { font-size: .74rem; color: var(--ink-4); padding: 3px 0; }
.tag-row-lg li a { font-size: .82rem; padding: 5px 12px; }
.v-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .74rem; color: var(--ink-4); border-top: 1px solid var(--line); margin: 15px 0 0; padding-top: 11px; }
.meta-yes { color: var(--ok); font-weight: 600; }
.meta-no { color: var(--ink-4); }

/* ---------- vendor profile ---------- */
.vpage-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.vpage-head h1 { margin-bottom: 10px; }
.vpage-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 76ch; }
.vpage-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 12px; }
.vpage-meta { font-size: .82rem; color: var(--ink-4); margin: 0; }
.vpage-body { display: grid; grid-template-columns: 1fr 300px; gap: 44px; padding-top: 38px; padding-bottom: 52px; }
.vsec { margin-bottom: 38px; }
.vsec h2 { font-size: 1.32rem; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.vsec p { color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.deflist { margin: 0; }
.deflist dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 600; margin-top: 15px; }
.deflist dd { margin: 3px 0 0; color: var(--ink-2); font-size: .93rem; }
.deflist-tight dt { margin-top: 11px; }
.bullet-list { margin: 0 0 1em; padding-left: 20px; }
.bullet-list li { margin-bottom: 8px; color: var(--ink-2); font-size: .95rem; }
.numbered-list { margin: 0 0 1em; padding-left: 22px; }
.numbered-list li { margin-bottom: 9px; color: var(--ink-2); font-size: .95rem; }
.pricing-box { border: 1px solid var(--line); border-left: 3px solid var(--ok); background: #fff; border-radius: var(--radius); padding: 16px 18px; }
.pricing-none { border-left-color: var(--line-2); }
.pricing-flag { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ok); margin: 0 0 6px; }
.pricing-none .pricing-flag { color: var(--ink-4); }
.pricing-box p:last-child { margin: 0; font-size: .93rem; color: var(--ink-2); }
.evidence-list { list-style: none; padding: 0; margin: 0; }
.evidence-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .89rem; }
.evidence-list a { word-break: break-all; }
.ev-supports { display: block; color: var(--ink-3); font-size: .83rem; margin-top: 3px; }
.ev-date { display: block; color: var(--ink-4); font-size: .76rem; }
.relationship { font-size: .86rem; color: var(--ink-3); font-style: italic; }

.vpage-side { position: sticky; top: 92px; align-self: start; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 19px; margin-bottom: 15px; background: #fff; }
.side-box h2 { font-size: 1rem; border: 0; padding: 0; margin-bottom: 10px; }
.side-box p { font-size: .88rem; color: var(--ink-3); margin-bottom: 8px; }
.side-box p:last-child { margin-bottom: 0; }
.side-box-cta { background: var(--accent-soft); border-color: #c9dcef; }

.callout { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; }
.callout h3 { font-size: 1.05rem; margin-bottom: 9px; }
.callout p { font-size: .93rem; color: var(--ink-2); margin-bottom: .8em; }
.callout p:last-child { margin-bottom: 0; }
.callout-sponsor { background: var(--sponsor-soft); border-color: #ecdcbe; border-left-color: var(--sponsor); }
.callout-sponsor h3 { color: #6b4a13; }
.callout-warn { background: #fdf1e7; border-color: #f0d5b8; border-left-color: var(--warn); }
.callout-warn h3 { color: #7d3a0d; }
/* Used where the honest answer is "this does not exist yet" — visibility of
   unpublished status should not be mistaken for a design choice. */
.callout-flag { background: var(--accent-soft); border-color: #cddff0; border-left-color: var(--accent); }
.callout-flag h3 { color: var(--accent-2); }

/* Section intro line under an h2, one sentence, narrower measure than body text. */
.sec-lede { font-size: 1.02rem; color: var(--ink-2); max-width: 68ch; margin-bottom: 26px; }

/* Numbered workflow list. The number is a real list marker position rather than
   a decorative circle, so the sequence survives without CSS. */
.step-list { list-style: none; counter-reset: st; margin: 0; padding: 0; max-width: 860px; }
.step-list > li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--paper-3); }
.step-list > li:last-child { border-bottom: 0; }
.step-n {
  counter-increment: st; content: counter(st);
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: .82rem; font-weight: 600; margin-top: 2px;
}
.step-list strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.step-list p { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* Availability labels in the AI Content Studio output table. Colour is paired
   with wording so the status does not depend on colour perception. */
.status-pill {
  display: inline-block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  font-weight: 600; padding: 3px 8px; border-radius: 3px; white-space: nowrap;
  border: 1px solid;
}
.st-planned { background: var(--accent-soft); color: var(--accent-2); border-color: #cddff0; }
.st-not-available { background: #fdf1e7; color: #7d3a0d; border-color: #f0d5b8; }

/* Secondary vendor-facing route in the hero. Deliberately quieter than the two
   buyer CTAs above it — it must be findable, not competing. */
/* Business-problem cards. Deliberately a separate class from .tool-card —
   a buying situation is not a tool, and conflating them made both harder to
   style and harder to count in tests. */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenario-card {
  display: flex; flex-direction: column; gap: 7px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; transition: border-color .14s ease, transform .14s ease;
}
.scenario-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.scenario-card strong { font-size: 1rem; color: var(--ink); line-height: 1.35; }
.scenario-card span { font-size: .88rem; color: var(--ink-2); line-height: 1.55; flex: 1; }
.scenario-card em { font-style: normal; font-size: .84rem; color: var(--accent); font-weight: 500; }
/* Sub-heading inside a section, used where a second group of cards follows. */
.sub-h { font-size: 1.05rem; margin: 34px 0 14px; }

@media (max-width: 1020px) {
  .scenario-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .scenario-grid { grid-template-columns: 1fr; }
}

.provider-nudge { font-size: .88rem; color: var(--ink-3); margin-top: 14px; }
.provider-nudge a { color: var(--accent); font-weight: 500; }

/* Sponsor block on the homepage. Warm-tinted and explicitly flagged, so the
   sponsor's presence is never mistaken for an editorial pick among the four
   featured providers above it. */
.sponsor-feature {
  background: var(--sponsor-soft); border: 1px solid #ecdcbe; border-radius: var(--radius);
  padding: 22px 24px; margin-top: 22px;
}
.sponsor-flag {
  display: inline-block; background: var(--sponsor); color: #fff;
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
  padding: 3px 9px; border-radius: 3px; margin: 0 0 10px;
}
.sponsor-feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.sponsor-feature h3 a { color: var(--ink); text-decoration: none; }
.sponsor-feature h3 a:hover { color: var(--accent); }
.sponsor-feature p { font-size: .92rem; color: var(--ink-2); margin-bottom: .6em; }
.sponsor-feature .v-loc { font-size: .85rem; color: var(--ink-3); }
.sponsor-feature .muted { font-size: .85rem; margin-top: 12px; margin-bottom: 0; }

/* ---------- article pages ---------- */
.review-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 42px 0 36px; }
.review-head h1 { margin-bottom: 12px; max-width: 20ch; }
.review-head .lede { font-size: 1.08rem; max-width: 70ch; }
.review-byline { font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; }
.review-q { font-style: italic; color: var(--ink-2); font-size: 1rem; }
.article-body { max-width: 780px; padding-top: 34px; padding-bottom: 54px; }
.article-body section { margin-bottom: 34px; }
.article-body h2 { font-size: 1.34rem; }
.article-body p { color: var(--ink-2); }
.article-body p:first-of-type { font-size: 1.02rem; }
.policy-body { max-width: 860px; }
.badge { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; padding: 4px 9px; border-radius: 2px; }
.badge-review { background: #e5efe6; color: #1d5b41; }
.badge-transparency { background: var(--sponsor-soft); color: var(--sponsor); border: 1px solid #ecdcbe; }
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.review-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.review-item h2 { font-size: 1.2rem; margin: 0; }
.review-item h2 a { text-decoration: none; color: var(--ink); }
.review-item h2 a:hover { color: var(--accent); }
.review-item p { font-size: .92rem; margin-bottom: 8px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.guide-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.guide-item h2 { font-size: 1.1rem; }
.guide-item h2 a { text-decoration: none; color: var(--ink); }
.guide-item h2 a:hover { color: var(--accent); }
.guide-item p { font-size: .88rem; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.cmp-table thead th { background: var(--paper-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.cmp-table tbody th { background: #faf9f7; font-weight: 600; font-size: .87rem; width: 22%; }
.cmp-table td { color: var(--ink-2); }

.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-top: 38px; }
.article-cta h2 { font-size: 1.1rem; margin-bottom: 6px; }
.article-cta p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ---------- tools ---------- */
.tool-body { max-width: 860px; }
.tool-note { background: var(--accent-soft); border: 1px solid #c9dcef; border-radius: var(--radius); padding: 13px 16px; font-size: .89rem; color: var(--ink-2); }
.tool-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.tool-progress { font-size: .86rem; color: var(--ink-3); }
.checklist fieldset, .readiness fieldset, .planner fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0 0 18px; background: #fff; }
.checklist legend, .readiness legend, .planner legend { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; padding: 0 8px; color: var(--ink); }
.ck-item { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; cursor: pointer; border-bottom: 1px solid #f0eee9; }
.ck-item:last-child { border-bottom: 0; }
.ck-item input { margin-top: 5px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.ck-item span { font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
.ck-item input:checked + span { color: var(--ink-4); text-decoration: line-through; }
.tool-out { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: #fff; border-radius: var(--radius); padding: 22px 24px; margin-top: 26px; }
.tool-out h2 { font-size: 1.15rem; }
.tool-out p { font-size: .92rem; color: var(--ink-2); }
.rfp section { margin-bottom: 26px; }
.rfp h2 { font-size: 1.12rem; margin-bottom: 6px; }
.rfp-hint { font-size: .87rem; color: var(--ink-3); margin-bottom: 10px; }
.rfp-field { border: 1px solid var(--line-2); border-radius: var(--radius); min-height: 74px; padding: 12px 14px; background: #fff; font-size: .93rem; color: var(--ink-2); }
.rfp-field:empty::before { content: attr(data-ph); color: var(--ink-4); font-style: italic; }
.rfp-field:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ws-wrap { overflow-x: auto; }
.ws-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; }
.ws-table th, .ws-table td { border: 1px solid var(--line); padding: 8px; }
.ws-table thead th { background: var(--paper-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.ws-crit { width: 34%; text-align: left; }
.ws-imp { width: 12%; }
.ws-table td input { width: 100%; border: 1px solid var(--line-2); border-radius: 2px; padding: 6px 8px; font-size: .88rem; font-family: inherit; }
.ws-table td input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.planner .pl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid #f0eee9; flex-wrap: wrap; }
.planner .pl-row span { font-size: .92rem; color: var(--ink-2); flex: 1 1 300px; }
.planner .pl-row input, .planner .pl-row select { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 10px; font-size: .9rem; font-family: inherit; width: 150px; }
.planner .pl-row select { width: 320px; max-width: 100%; }
.planner .pl-row input:focus, .planner .pl-row select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pl-hint { font-size: .85rem; color: var(--ink-3); margin: 0 0 12px; }
.bp-line { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid #f0eee9; font-size: .93rem; }
.bp-line span:last-child { font-weight: 600; font-family: var(--mono); font-size: .9rem; white-space: nowrap; }
.bp-total { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0 4px; font-size: 1.08rem; font-weight: 600; border-top: 2px solid var(--ink); margin-top: 8px; }
.bp-total span:last-child { font-family: var(--mono); }
.bp-note { font-size: .85rem; color: var(--ink-3); margin: 4px 0 0; }
.bp-block { margin-bottom: 22px; }
.bp-block h3 { font-size: 1rem; margin-bottom: 8px; }
.score-bar { height: 9px; background: var(--paper-3); border-radius: 5px; overflow: hidden; margin: 6px 0 14px; }
.score-bar i { display: block; height: 100%; background: var(--accent); }
.verdict { font-size: 1.05rem; font-family: var(--serif); margin-bottom: 10px; }
.gap-list { list-style: none; padding: 0; margin: 10px 0 0; }
.gap-list li { padding: 8px 0 8px 24px; position: relative; font-size: .91rem; color: var(--ink-2); border-bottom: 1px solid #f0eee9; }
.gap-list li::before { content: "→"; position: absolute; left: 4px; color: var(--warn); font-weight: 700; }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.longform fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 24px; margin: 0 0 18px; background: #fff; }
.longform legend { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; padding: 0 8px; }
.fl { display: block; margin-bottom: 16px; }
.fl > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.fl > span em { color: var(--sponsor); font-style: normal; font-weight: 700; font-size: .74rem; }
.fl input[type="text"], .fl input[type="email"], .fl input[type="url"], .fl input[type="date"], .fl select, .fl textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px; font-size: .93rem;
  font-family: inherit; background: #fff; color: var(--ink);
}
.fl textarea { resize: vertical; line-height: 1.55; }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.fl.invalid input, .fl.invalid select, .fl.invalid textarea { border-color: #b4402a; background: #fdf6f4; }
.fl .err { display: none; font-size: .8rem; color: #a5341f; margin-top: 5px; }
.fl.invalid .err { display: block; }
.fl.chk, .chk { display: flex; gap: 10px; align-items: flex-start; }
.fl.chk input, .chk input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.fl.chk span, .chk span { font-size: .91rem; color: var(--ink-2); font-weight: 400; margin: 0; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.form-note { background: var(--accent-soft); border: 1px solid #c9dcef; border-radius: var(--radius); padding: 13px 16px; font-size: .89rem; color: var(--ink-2); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.form-msg { font-size: .9rem; margin: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #a5341f; }
.form-small { font-size: .82rem; color: var(--ink-4); }
.form-side { position: sticky; top: 92px; align-self: start; }
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.contact-block h2 { font-size: 1.08rem; }
.contact-detail { font-size: .95rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #b9c3d2; padding: 46px 0 0; font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 34px; }
.site-foot h2 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.site-foot h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); margin-bottom: 12px; }
.site-foot p { color: #9fadc0; line-height: 1.55; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: #c8d2e0; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-disc { border-top: 1px solid #2c3a4d; padding-top: 14px; margin-top: 16px; font-size: .82rem; }
.foot-disc strong { color: #fff; }
.foot-legal { border-top: 1px solid #2c3a4d; padding-top: 18px; padding-bottom: 26px; }
.foot-legal p { color: #8494a8; font-size: .8rem; margin: 0; }

/* Shareable link box. The address bar copy of a preview build loses the
   access key, so offer an explicit copy control that includes it. */
.share-box { background: #16202e; border-top: 1px solid #2c3a4d; padding: 26px 0 30px; }
.share-box-in { max-width: 720px; }
.share-box h2 { color: #fff; font-size: 1.02rem; margin: 0 0 8px; }
.share-box p { color: #a9b6c6; font-size: .88rem; margin: 0 0 14px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row input {
  flex: 1 1 320px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; padding: 11px 13px; border: 1px solid #3a4a5f; border-radius: 4px;
  background: #0f1723; color: #dbe4ee;
}
.share-row input:focus { outline: 2px solid #6ea8e8; outline-offset: 1px; }
.share-msg { color: #8fd6a8 !important; font-size: .84rem !important; margin: 10px 0 0 !important; }
.share-msg:empty { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .method-band { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { grid-template-columns: 1fr; gap: 24px; }
  .cta-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .vpage-body { grid-template-columns: 1fr; gap: 30px; }
  .vpage-side { position: static; }
  .form-wrap { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Navigation collapses to the expandable menu well before the layout does.
   Six top-level labels plus the "List Your Company" button measure about 1270px
   with the drop panels accounted for. At 1180, 1024 and 768 they did not fit,
   and because .primary-nav is a flex row it pushed the page wider than the
   viewport instead of wrapping. Only the nav switches here — every surrounding
   layout breakpoint is unchanged. */
@media (max-width: 1320px) {
  .nav-toggle { display: block; margin-left: auto; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--paper-3); font-size: .95rem; }
  .primary-nav .cta-nav { margin-top: 12px; text-align: center; border-bottom: 0; }

  /* Collapses the dropdowns into inline expanders. The same .nav-item markup
     serves both layouts, so the panel loses its absolute positioning and its
     chevron rotates when open — still only two visible levels. */
  .nav-item { width: 100%; }
  .primary-nav .nav-top {
    width: 100%; padding: 10px 0; border-bottom: 1px solid var(--paper-3);
    font-size: .95rem; color: var(--ink-2); justify-content: space-between;
  }
  .nav-item.open > .nav-top, .nav-item:focus-within > .nav-top { color: var(--accent); }
  .nav-drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line-2);
    border-radius: 0; margin: 0 0 0 10px; padding: 4px 0 4px 6px;
    min-width: 0; max-width: none; max-height: none; overflow: visible;
    display: none;
  }
  .nav-item.open > .nav-drop { display: block; }
  .nav-drop a { padding: 8px 10px; border-bottom: 0; }
  .nav-drop a strong { font-size: .9rem; }
  .nav-drop a span { font-size: .8rem; }
  /* The header is no longer a fixed strip once the nav is an overlay panel. */
  .site-head { position: static; }
}

/* Touch targets belong to phones, not to tablets: enlarging every footer link
   at 1024px would stretch the layout for no benefit, since the input device
   there is a mouse or a keyboard. */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }

  /* Touch targets. Most of the small links here are inline text links in the
     footer and inside cards — they read fine at 19px but are awkward to hit with
     a thumb. Vertical padding enlarges the hit area without changing the visual
     layout, because the extra space collapses out of the line box. */
  .foot-col a,
  .transparency a,
  .sponsor-feature a,
  .v-card-head a,
  .tool-card a,
  .scenario-card a,
  .guide-card a,
  .article-card a,
  .crumbs a,
  main p a,
  main li a { display: inline-block; padding-top: 6px; padding-bottom: 6px; }
  .foot-col li { margin-bottom: 2px; }
  /* The crumb bar is a single short line; padding would visibly stretch it, so
     give the links a taller line box instead. */
  .crumbs .wrap { padding-top: 6px; padding-bottom: 6px; }
  .crumbs a { display: inline-block; padding-top: 3px; padding-bottom: 3px; }
  /* Inline link lists inside definition rows on vendor profiles. */
  .deflist a, .meta-list a, .pill-row a { display: inline-block; padding-top: 5px; padding-bottom: 5px; }

  .sponsor-bar { font-size: .76rem; }
  .sec { padding: 40px 0; }
  .hero { padding: 38px 0 36px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; text-align: center; }
  .filter-row { gap: 12px; }
  .fld { flex: 1 1 100%; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { flex: 1; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .planner .pl-row select { width: 100%; }
  .planner .pl-row input { width: 110px; }
  .review-item-head { flex-direction: column; gap: 8px; }
  .breadcrumbs .wrap, .crumbs .wrap { overflow-x: auto; white-space: nowrap; }
}

@media print {
  .site-head, .site-foot, .sponsor-bar, .tool-bar, .page-head, .crumbs, .article-cta, .callout { display: none !important; }
  body { font-size: 11pt; }
  .checklist fieldset, .readiness fieldset { break-inside: avoid; border-color: #999; }
  .ck-item input:checked + span { color: #000; text-decoration: none; }
  a { color: #000; text-decoration: none; }
}
