/* Chiaro — The SOC 2 Field Manual. Editorial article + blog-landing styles.
   Tokens, nav, footer, and cards mirror landing.html so it feels native. */

* { box-sizing: border-box; margin: 0; padding: 0 }
:root {
  --bg: #F6F2E9;
  --surface: #FCFAF4;
  --surface-pure: #FFFFFF;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #999999;
  --line: #E5DDD0;
  --claude: #166534;
  --sans: 'Geist', -apple-system, 'Inter', 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
  --serif: 'Geist', -apple-system, 'Inter', 'Helvetica Neue', sans-serif; /* was Instrument Serif -> Geist */
  --news: 'Geist', -apple-system, 'Inter', 'Helvetica Neue', sans-serif;  /* was Newsreader -> Geist */
}
html { scroll-behavior: smooth }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
a { color: inherit; text-decoration: none }
::selection { background: var(--ink); color: #fff }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 100px; font-family: var(--sans); font-size: 14px; font-weight: 500; border: 1px solid var(--ink); background: var(--ink); color: #fff; transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.22s ease, border-color 0.22s ease; cursor: pointer }
.btn:hover { background: var(--claude); border-color: var(--claude); transform: translateY(-1px) }
.btn--large { padding: 14px 28px; font-size: 15px }
.btn--ghost { background: #FFFFFF; color: var(--ink); border-color: rgba(11,18,33,0.12) }
.btn--ghost:hover { background: #FFFFFF; border-color: rgba(11,18,33,0.24); color: var(--ink); transform: translateY(-1px) }
.btn--brand { background: var(--claude); border-color: var(--claude); color: #fff }
.btn--brand:hover { background: #14532D; border-color: #14532D; color: #fff; transform: translateY(-1px) }

/* Nav (identical to landing) */
nav a, .nav-drawer a { text-decoration: none; color: inherit }
nav { padding: 14px 0; border-bottom: 1px solid rgba(232,230,224,0.6); background: rgba(250,250,248,0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); position: sticky; top: 0; z-index: 20 }
.nav-inner { display: flex; align-items: center; justify-content: space-between }
.brand { font-family: var(--sans); font-weight: 600; font-size: 28px; letter-spacing: -0.04em; color: var(--ink); transition: font-size 0.22s cubic-bezier(0.22, 1, 0.36, 1) }
body.is-scrolled .brand { font-size: 19px }
.nav-links { display: flex; align-items: center; gap: 4px }
.nav-links a.nav-link { font-size: 14px; font-weight: 400; color: var(--ink-2); padding: 8px 14px; border-radius: 8px; transition: all 0.15s }
.nav-links a.nav-link:hover { color: var(--ink); background: rgba(17,17,17,0.04) }
.nav-links .btn { margin-left: 10px; padding: 10px 18px; font-size: 14px; border-radius: 100px }
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; padding: 0; border: none; background: transparent; cursor: pointer; border-radius: 10px; transition: background 0.15s }
.nav-toggle:hover { background: rgba(17,17,17,0.04) }
.nav-toggle span { position: absolute; left: 10px; width: 20px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: transform 0.24s ease, opacity 0.18s ease, top 0.24s ease }
.nav-toggle span:nth-child(1) { top: 14px }
.nav-toggle span:nth-child(2) { top: 19px }
.nav-toggle span:nth-child(3) { top: 24px }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg) }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg) }
.nav-drawer { display: none; overflow: hidden; max-height: 0; transition: max-height 0.28s cubic-bezier(0.22, 0.61, 0.36, 1); border-top: 1px solid rgba(232,230,224,0.6); background: rgba(250,250,248,0.98); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px) }
.nav-drawer.open { max-height: 480px }
.nav-drawer-inner { padding: 12px 20px 20px; display: flex; flex-direction: column }
.drawer-link { font-size: 16px; font-weight: 500; color: var(--ink); padding: 16px 8px; border-bottom: 1px solid var(--line); transition: color 0.15s }
.drawer-link:hover { color: var(--claude) }
.drawer-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 14px 24px; border-radius: 100px; background: var(--claude); color: #fff; font-size: 14.5px; font-weight: 500; transition: background 0.15s }
.nav-drawer .drawer-cta, .nav-drawer .drawer-cta:hover { color: #fff }
.drawer-cta:hover { background: #14532D }

/* ---- Article ---- */
.article { padding: 60px 0 80px }
.article-wrap { max-width: 684px; margin: 0 auto }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px }
.kicker a { color: var(--claude) }
.article h1 { font-family: var(--news); font-size: clamp(34px, 4.4vw, 50px); font-weight: 600; line-height: 1.1; letter-spacing: -0.028em; color: var(--ink); margin-bottom: 20px; text-wrap: balance }
.byline { font-size: 14px; color: var(--ink-3); margin-bottom: 40px }
.byline b { font-weight: 600; color: var(--ink-2) }
.byline i { font-style: normal; margin: 0 8px; color: var(--line) }
.byline a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px }
.byline a:hover { color: var(--claude) }

/* TL;DR box — concise bullets, the AI-quotable block */
.tldr { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; margin-bottom: 48px }
.tldr-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--claude); margin-bottom: 16px }
.tldr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px }
.tldr li { font-size: 16px; line-height: 1.5; color: var(--ink); padding-left: 28px; position: relative }
.tldr li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 10px; height: 5px; border-left: 1.5px solid var(--claude); border-bottom: 1.5px solid var(--claude); transform: rotate(-45deg) }
.lead { font-size: 20px; line-height: 1.58; color: #1a1a1a; margin-bottom: 44px }

.prose { font-size: 18px; line-height: 1.75; color: #262626 }
.prose > :first-child { margin-top: 0 }
.prose h2 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); margin: 48px 0 14px }
.prose h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 32px 0 8px }
.prose p { margin: 0 0 20px }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px }
.prose li { margin-bottom: 10px }
.prose a { color: var(--claude); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px }
.prose a:hover { color: #14532D }
.prose strong { color: var(--ink); font-weight: 600 }
.prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(17,17,17,0.05); padding: 2px 6px; border-radius: 5px }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55 }
.prose th { font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink-2) }
.prose tbody tr:last-child td { border-bottom: none }

/* Section headers (FAQ / Keep reading) */
.article-section { margin-top: 64px }
.article-section > h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 22px }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line) }
.rp-faq-item { border-bottom: 1px solid var(--line) }
.rp-faq-item summary { list-style: none; padding: 20px 2px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--ink); transition: color 0.15s }
.rp-faq-item summary::-webkit-details-marker { display: none }
.rp-faq-item summary::marker { content: '' }
.rp-faq-item summary:hover { color: var(--claude) }
.rp-faq-chevron { width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.25s ease, color 0.15s; flex-shrink: 0 }
.rp-faq-item[open] .rp-faq-chevron { transform: rotate(180deg); color: var(--ink-2) }
.rp-faq-answer { padding: 0 2px 22px; font-size: 16px; line-height: 1.68; color: var(--ink-2); max-width: 60ch }

/* ---- Field Manual cover cards (dark designed covers) ---- */
.fm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.fm-grid--2 { grid-template-columns: repeat(2, 1fr) }

.fm-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform 0.26s cubic-bezier(0.22,1,0.36,1), box-shadow 0.26s ease }
.fm-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11,18,33,0.16) }

/* Typographic cover: dual-tone gradient + soft light + film grain + vignette.
   The headline is the art. No clipart icons. */
.fm-cover { --cv: var(--cover, #14532D); --cv2: var(--cover2, #0d100e);
  position: relative; min-height: 150px; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; color: #fff;
  background:
    radial-gradient(130% 110% at 12% -10%, rgba(255,255,255,0.17), transparent 55%),
    linear-gradient(158deg, var(--cv) 0%, var(--cv2) 98%);
}
/* film grain */
.fm-cover::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.4; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* vignette */
.fm-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 -70px 90px -40px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04); }
.fm-cover-glow { display: none }
.fm-motif { display: none }

.fm-pill { align-self: flex-start; position: relative; z-index: 2; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(6px); padding: 6px 13px; border-radius: 100px }
.fm-cover-title { position: relative; z-index: 2; font-family: var(--news); font-size: clamp(21px, 1.6vw, 25px); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; color: #fff; max-width: 96%; text-shadow: 0 1px 30px rgba(0,0,0,0.35); text-wrap: balance }

.fm-card-foot { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 13px; flex: 1 }
.fm-card-foot p { font-size: 14px; line-height: 1.5; color: var(--ink-2); flex: 1; margin: 0 }
.fm-meta { display: flex; align-items: center; justify-content: space-between }
.fm-date { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ink-3) }
.fm-arrow { width: 16px; height: 16px; color: var(--ink-3); transition: transform 0.2s ease, color 0.2s ease }
.fm-card:hover .fm-arrow, .fm-feature:hover .fm-arrow { transform: translateX(4px); color: var(--claude) }

/* Featured card: full-width, cover left (pure visual) + copy right */
.fm-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin-bottom: 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform 0.26s cubic-bezier(0.22,1,0.36,1), box-shadow 0.26s ease }
.fm-feature:hover { transform: translateY(-4px); box-shadow: 0 28px 56px rgba(11,18,33,0.18) }
.fm-feature .fm-cover { aspect-ratio: auto; min-height: 360px; align-items: flex-start; justify-content: flex-start }
.fm-feature .fm-motif { right: 50%; bottom: 50%; transform: translate(46%, 46%); width: 250px; height: 250px; color: rgba(255,255,255,0.20) }
.fm-feature:hover .fm-motif { transform: translate(46%, 46%) scale(1.06) rotate(-5deg) }
.fm-feat-body { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px }
.fm-feat-ey { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--claude) }
.fm-feat-title { font-family: var(--news); font-size: clamp(28px, 2.7vw, 38px); font-weight: 600; line-height: 1.1; letter-spacing: -0.018em; color: var(--ink); margin: 0; text-wrap: balance }
.fm-feat-body p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin: 0 }
.fm-feat-body .fm-meta { margin-top: 6px }

/* Sources — collapsed, subtle */
.sources { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 8px }
.sources summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); padding: 14px 0; display: inline-flex; align-items: center; gap: 8px }
.sources summary::-webkit-details-marker { display: none }
.sources summary::after { content: '+'; color: var(--ink-3); font-size: 15px }
.sources[open] summary::after { content: '\2212' }
.sources ol { padding: 0 0 8px 18px; font-size: 13px; color: var(--ink-3) }
.sources li { margin-bottom: 7px; word-break: break-word }
.sources a { color: var(--ink-2); text-decoration: underline }

/* ---- Field Manual landing (full-width, left-aligned editorial) ---- */
.fm-hero { padding: 76px 0 0 }
.fm-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--claude); margin-bottom: 20px }
.fm-hero h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px }
.fm-hero p { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 52ch }
.fm-divider { height: 1px; background: var(--line); margin: 48px 0 0 }
.fm-listing { padding: 40px 0 100px }

/* ---- Field Manual smart search ---- */
.fm-search { position: relative; display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 40px 0 0; height: 56px; padding: 0 14px 0 16px; background: var(--surface-pure); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(11,18,33,0.05); transition: border-color 0.18s ease, box-shadow 0.2s ease }
.fm-search:focus-within { border-color: var(--claude); box-shadow: 0 0 0 4px rgba(22,101,52,0.10) }
.fm-search-ico { width: 19px; height: 19px; color: var(--ink-3); flex-shrink: 0; transition: color 0.18s ease }
.fm-search:focus-within .fm-search-ico { color: var(--claude) }
.fm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 16px; color: var(--ink) }
.fm-search input::placeholder { color: var(--ink-3) }
.fm-search input::-webkit-search-cancel-button { -webkit-appearance: none }
.fm-keys { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0 }
.fm-kbd { font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; min-width: 22px; text-align: center; padding: 5px 7px; flex-shrink: 0; letter-spacing: 0.02em }
.fm-smeta { min-height: 18px; margin: 14px 0 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-3) }
.fm-card.is-hidden { display: none }
.fm-noresults { display: none; padding: 56px 8px; text-align: center; color: var(--ink-2); font-size: 16px; line-height: 1.6 }
.fm-noresults.is-on { display: block }
@media (max-width: 640px) { .fm-keys { display: none } .fm-search { height: 52px } }

@media (max-width: 980px) { .fm-grid { grid-template-columns: repeat(2, 1fr) } .fm-feature { grid-template-columns: 1fr } .fm-feature .fm-cover { min-height: 260px } }
@media (max-width: 600px) { .fm-grid, .fm-grid--2 { grid-template-columns: 1fr } }

/* Footer (identical to landing) */
footer { background: var(--ink); color: rgba(255,255,255,0.85) }
.footer-main { padding: 80px 0 64px; display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 96px; align-items: start }
.footer-left .brand { color: #fff; font-size: 22px; display: inline-block; margin-bottom: 28px; letter-spacing: -0.04em }
.footer-entity-text p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.55); margin: 0; max-width: 60ch }
.footer-creds { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px }
.footer-creds-seal { width: 72px; height: 72px; flex-shrink: 0; display: block }
.footer-creds-seal img { width: 100%; height: 100%; display: block; object-fit: contain }
  .footer-reg { display: flex; flex-direction: column; gap: 2px }
  .footer-reg-num { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); font-weight: 400 }
  .footer-reg-label { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); font-weight: 400; text-decoration: none }
  .footer-reg-label:hover { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 2px }
.footer-socials { display: flex; gap: 10px }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); transition: all 0.15s }
.footer-socials a:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); transform: translateY(-1px) }
.footer-socials svg { width: 15px; height: 15px }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 40px }
.footer-right-cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: flex-end }
.footer-col h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); margin-bottom: 20px }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px }
.footer-col li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.15s }
.footer-col li a:hover { color: rgba(255,255,255,0.85) }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.25) }
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.15s }
.footer-bottom a:hover { color: rgba(255,255,255,0.6) }

@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr; gap: 48px }
  .footer-right { align-items: flex-start; gap: 32px }
  .footer-right-cols { flex-direction: column; gap: 32px; justify-content: flex-start }
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px }
  .article { padding: 44px 0 64px }
  .prose { font-size: 17px }
  .prose h2 { font-size: 22px }
  .fm-grid { grid-template-columns: 1fr }
  .fm-hero { padding: 52px 0 8px }
}
@media (max-width: 640px) {
  .nav-links { display: none }
  .nav-toggle { display: inline-flex }
  .nav-drawer { display: block }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center }
}
