/* The Professions Cloud: editorial look. Serif headlines, paper background, restrained colour. */
@font-face { font-family: "Source Serif"; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/fonts/source-serif-4-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --paper: #F7F4EE; --paper-2: #EFEAE1; --card: #FFFFFF;
  --ink: #1C1B19; --muted: #6B665E; --line: #DDD6CA;
  --link: #1E3A5F; --accent: #B5462E; --accent-soft: #F6E4DE;
  --good: #2F6B3F; --good-soft: #E6EFE3; --bad: #A23B2A; --bad-soft: #F6E4DE; --warn: #7A5A12; --warn-soft: #F5EDD8;
  --max: 1100px; --read: 720px; --radius: 4px;
  --serif: "Source Serif", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161512; --paper-2: #1F1D19; --card: #1B1916;
    --ink: #ECE7DE; --muted: #A39D92; --line: #353129;
    --link: #A9C1E0; --accent: #E0896F; --accent-soft: #33201A;
    --good: #8CC79A; --good-soft: #1A2619; --bad: #EE9481; --bad-soft: #301B16; --warn: #E3C27A; --warn-soft: #2B2414;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 99; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: none; }

/* Top bar */
.topbar { background: var(--ink); color: var(--paper); font-size: 13px; }
.topbar .wrap { padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--paper); text-decoration-thickness: 2px; }

/* Header + mega menu */
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 30; }
@media (min-width: 861px) {
  .site-header { position: sticky; top: 0; }
  .site-header.is-stuck { box-shadow: 0 6px 18px rgba(28, 27, 25, .07); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 68px; }
.brand { color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.wordmark { font: 600 25px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.wordmark em { font-style: italic; color: var(--accent); }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0; }
.nav-item > a, .mega > summary { display: block; padding: 22px 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.mega[open] > summary::after { transform: translateY(0) rotate(-135deg); }
.nav-item > a:hover, .mega > summary:hover, .nav-item > a[aria-current], .mega > summary[aria-current] { color: var(--accent); }
.mega[open] > summary { box-shadow: inset 0 -3px 0 var(--accent); }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); box-shadow: 0 18px 30px rgba(28, 27, 25, .08); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 40px; padding-top: 36px; padding-bottom: 40px; }
.mega-prof { display: flex; align-items: center; gap: 10px; font: 600 18px/1.25 var(--serif); color: var(--ink); text-decoration: none; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.mega-prof .icon { width: 24px; height: 24px; color: var(--accent); }
.mega-prof:hover span { color: var(--accent); text-decoration: underline; }
.mega-col li { font-size: 14px; }
.mega-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 2px; }
.mega-title { font: 600 24px/1.2 var(--serif); margin: 0 0 14px; }
.mega-all { font-weight: 600; font-size: 15px; }
.mega-soon { font-size: 13px; color: var(--muted); margin-top: 18px; }
.mega-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-col ul, .mobilenav-panel ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { margin: 0 0 10px; line-height: 1.35; }
.mega-col a { color: var(--ink); text-decoration: none; font-size: 15px; }
.mega-col a:hover { color: var(--accent); text-decoration: underline; }
.mobilenav { display: none; }
@media (max-width: 860px) {
  .mainnav { display: none; }
  .mobilenav { display: block; }
  .mobilenav > summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--radius); }
  .mobilenav > summary::-webkit-details-marker { display: none; }
  .mobilenav[open] > summary { background: var(--ink); color: var(--paper); }
  .mobilenav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--ink); padding: 18px 16px 22px; box-shadow: 0 18px 30px rgba(28, 27, 25, .1); }
  .mobilenav-panel li { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
  .mobilenav-panel a { color: var(--ink); text-decoration: none; }
  .mobilenav-panel .mega-h { margin-top: 6px; }
  .mobilenav-panel .mega-h a { color: var(--muted); }
  .mobilenav-pages { margin-top: 14px !important; }
  .mobilenav-pages a { font-weight: 600; }
}

/* Layout + type */
main.wrap { padding: 56px 16px 112px; }
.breadcrumbs + .content h1, .breadcrumbs ~ .content > h1 { margin-top: 18px; }
.content { max-width: var(--read); margin: 0; min-width: 0; }
.type-home .content, .type-hub .content { max-width: none; }

/* One grid for every page: content aligns with the logo; sidebar on the right */
.page-grid { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(220px, 280px); justify-content: space-between; gap: 64px; align-items: stretch; }
.page-aside { padding-top: 96px; }
.aside-inner { position: sticky; top: 112px; border-top: 3px solid var(--ink); padding-top: 14px; }
.aside-h { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.aside-toc { list-style: none; padding: 0; margin: 0; counter-reset: t; font-size: 14px; line-height: 1.4; }
.aside-toc li { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.aside-toc a, .aside-nav a { color: var(--ink); text-decoration: none; }
.aside-toc a:hover, .aside-nav a:hover, .aside-nav a[aria-current] { color: var(--accent); }
.aside-toc a.is-active { color: var(--accent); font-weight: 600; }
.aside-nav { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.aside-nav li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.aside-nav a[aria-current] { font-weight: 600; }
.aside-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
@media (min-width: 1081px) { .page-grid .content > .toc { display: none; } }
@media (max-width: 1080px) { .page-grid { grid-template-columns: minmax(0, 1fr); } .page-aside { display: none; } .content { max-width: var(--read); } }
h1, h2, h3, .newsletter-title, .related-title { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -.015em; margin: 14px 0 22px; }
h2 { font-size: 29px; line-height: 1.2; margin: 72px 0 16px; }
h3 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; }
h4 { font-size: 15px; }
p, ul, ol { margin: 0 0 20px; }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
blockquote { margin: 22px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 19px; }
code { font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
pre { background: var(--card); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; position: relative; font-size: 15px; }
pre code { background: none; padding: 0; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Byline + disclosure */
.byline { display: flex; gap: 12px; align-items: center; font-size: 15px; margin-bottom: 20px; }
.byline span { display: block; }
.byline-photo { border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.disclosure { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 32px; }

/* TOC */
.toc { border-left: 3px solid var(--ink); padding: 4px 0 4px 20px; margin: 32px 0 48px; }
.toc summary { font-weight: 600; cursor: pointer; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 10px 0 0; padding-left: 20px; font-size: 15px; }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); padding: 10px 18px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 28px 0 36px; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: transparent; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Review components (raw HTML inside Markdown) */
.verdict { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0 8px; margin: 40px 0 48px; }
.verdict-title { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.verdict ul { list-style: none; padding: 0; margin: 0; }
.verdict li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.verdict li:first-child { border-top: 0; }
.verdict .pick-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); display: block; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 28px 0 32px; }
.pros h4, .cons h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 6px; border-bottom: 2px solid; }
.pros h4 { color: var(--good); } .cons h4 { color: var(--bad); }
.pros ul, .cons ul { margin: 0; padding-left: 18px; font-size: 15px; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; gap: 14px; } }
.callout { padding: 20px 24px; margin: 36px 0; background: var(--paper-2); border-left: 3px solid var(--ink); }
.callout-compliance { background: var(--warn-soft); border-left-color: var(--warn); }
.callout p:last-child { margin-bottom: 0; }
.test-notes { background: var(--card); border: 1px solid var(--line); padding: 14px 18px; margin: 20px 0; font-size: 15px; }
.score { display: inline-block; font-weight: 700; color: var(--accent); font-size: 15px; }
figure { margin: 36px 0; }
figure img { border: 1px solid var(--line); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .compare-pair { grid-template-columns: 1fr; } }
mark.todo, .todo { background: #FFE58A; color: #3B2F00; padding: 0 4px; }

/* Home */
.hero { padding: 40px 0 48px; max-width: 800px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 58px); }
.hero h1 em { color: var(--accent); }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 640px; }
.section-label { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 14px; margin: 88px 0 8px; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.prof-card { display: flex; flex-direction: column; gap: 10px; padding: 32px 24px 32px 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
a.prof-card:hover .prof-name { color: var(--accent); text-decoration: underline; }
.prof-card.is-soon { color: var(--muted); }
.prof-icon { width: 34px; height: 34px; color: var(--ink); }
.prof-card.is-soon .prof-icon { color: var(--muted); }
.prof-name { font: 600 20px/1.25 var(--serif); }
.badge { align-self: flex-start; font-size: 13px; color: var(--muted); margin-top: auto; }
.prof-blurb { font-size: 15px; color: var(--muted); line-height: 1.5; }
.badge-live { color: var(--good); font-weight: 600; }
.method { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; }
.method li { padding: 28px 0 32px; border-top: 1px solid var(--line); margin: 0; }
.method .icon { width: 30px; height: 30px; color: var(--accent); display: block; margin-bottom: 10px; }
.method strong { display: block; font: 600 19px/1.3 var(--serif); margin-bottom: 4px; }
.method p { margin: 0; color: var(--muted); font-size: 16px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
.card { margin: 0; }
.card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 0 30px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.card a:hover .card-title { color: var(--accent); text-decoration: underline; }
.card-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.card-title { font: 600 19px/1.3 var(--serif); }
.card-desc { font-size: 15px; color: var(--muted); }
.card-meta { font-size: 13px; color: var(--muted); margin-top: auto; }
.pillar-block h3 { margin-top: 28px; }

/* Four-up rows: 4 / 2 / 1 columns, no orphans, no doubled rules under section labels */
.prof-grid, .method { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.prof-grid > :nth-child(-n+4), .method > :nth-child(-n+4) { border-top: 0; }
.section-label + .cards, .section-label + .prof-grid, .section-label + .method { margin-top: 0; }
@media (max-width: 900px) {
  .prof-grid, .method { grid-template-columns: repeat(2, 1fr); }
  .prof-grid > :nth-child(-n+4), .method > :nth-child(-n+4) { border-top: 1px solid var(--line); }
  .prof-grid > :nth-child(-n+2), .method > :nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 520px) {
  .prof-grid, .method { grid-template-columns: 1fr; }
  .prof-grid > :nth-child(2), .method > :nth-child(2) { border-top: 1px solid var(--line); }
}

/* Newsletter */
.newsletter { padding: 36px 0 32px; margin: 96px 0 56px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.newsletter-title { margin: 0 0 6px; font-size: 24px; }
.newsletter p { color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; max-width: 560px; }
.newsletter-form input { flex: 1 1 240px; min-width: 0; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 16px var(--sans); }
.fine { font-size: 13px; margin: 0; }

/* Sources */
.sources { border-top: 1px solid var(--ink); margin-top: 88px; padding-top: 8px; }
.sources h2 { font-size: 22px; margin: 14px 0 4px; }
.sources > p { font-size: 14px; }
.sources ol { font-size: 14px; padding-left: 22px; }
.sources li { margin-bottom: 5px; word-break: break-word; }

/* What users say: paraphrased review evidence with attribution */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 28px 0 36px; }
.voice { border-top: 1px solid var(--line); padding: 18px 0; margin: 0; }
.voice p { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.voice cite { font-style: normal; font-size: 13px; color: var(--muted); }
.voice-neg p::before, .voice-pos p::before { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; display: block; margin-bottom: 4px; }
.voice-pos p::before { content: "PRAISE"; color: var(--good); }
.voice-neg p::before { content: "COMPLAINT"; color: var(--bad); }
@media (max-width: 640px) { .voices { grid-template-columns: 1fr; } }

/* Range chart (pure HTML/CSS: crisp, accessible, readable by search/AI) */
.rangechart { margin: 32px 0 10px; }
.rc-row { display: grid; grid-template-columns: 170px 1fr 120px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rc-track { position: relative; height: 12px; background: var(--paper-2); }
.rc-bar { position: absolute; top: 0; bottom: 0; background: var(--ink); min-width: 4px; }
.rc-bar.ai { background: var(--accent); }
.rc-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.rc-axis { display: grid; grid-template-columns: 170px 1fr 120px; gap: 12px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.rc-axis span { display: flex; justify-content: space-between; }
.rc-legend { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.rc-legend i { display: inline-block; width: 10px; height: 10px; margin: 0 5px 0 12px; vertical-align: -1px; }
@media (max-width: 640px) { .rc-row, .rc-axis { grid-template-columns: 110px 1fr 80px; font-size: 14px; } }

/* Author + related */
.author-box { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--ink); padding: 28px 0; margin: 64px 0 24px; }
.author-box img { border-radius: 50%; flex: none; object-fit: cover; }
.author-box p { margin: 0 0 6px; font-size: 15px; }
.author-name { font-weight: 600; }
.related-title { font-size: 22px; }
.support-line { font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; }
.changelog { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid p { margin-bottom: 8px; }
.footer-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.brand-footer .wordmark { font-size: 21px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: 13px; color: var(--muted); }

/* Consent + draft */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 50; background: var(--card); border: 1px solid var(--ink); padding: 16px 18px; font-size: 15px; }
.consent p { margin: 0 0 10px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.draft-banner { background: #A23B2A; color: #fff; text-align: center; font-weight: 600; padding: 8px 16px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  h2 { font-size: 25px; }
  .wordmark { font-size: 21px; }
  .breadcrumbs li[aria-current] { display: none; }
}
@media print { .site-header, .site-footer, .consent, .newsletter, .toc { display: none; } }
