/* Chiaro SOC 2 Guide — shared styles for the /soc-2/* content hub.
   Tokens, nav, and footer mirror landing.html so hub pages feel 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: 'Instrument Serif', 'Playfair Display', Georgia, serif;
}
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; box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 2px rgba(0,0,0,0.04); 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); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 18px rgba(22, 101, 52, 0.24) }
.btn--large { padding: 14px 28px; font-size: 15px }
.btn--ghost { background: #FFFFFF; color: var(--ink); border-color: rgba(11,18,33,0.12); box-shadow: 0 1px 2px rgba(11,18,33,0.04) }
.btn--ghost:hover { background: #FFFFFF; border-color: rgba(11,18,33,0.24); color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11,18,33,0.08) }
.btn--brand { background: var(--claude); border-color: var(--claude); color: #fff }
.btn--brand:hover { background: #14532D; border-color: #14532D; color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 18px rgba(22, 101, 52, 0.28) }

/* Nav (matches 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: 52px 0 80px }
.article-wrap { max-width: 752px; margin: 0 auto }
.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 26px }
.breadcrumb a { color: var(--ink-3); transition: color 0.15s }
.breadcrumb a:hover { color: var(--ink-2) }
.breadcrumb i { font-style: normal; margin: 0 8px; color: var(--line) }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--claude); margin-bottom: 16px }
.article h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px }
.byline { font-size: 13.5px; color: var(--ink-3); margin-bottom: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px }
.byline b { font-weight: 600; color: var(--ink-2) }
.byline i { font-style: normal; color: var(--line) }
.capsule { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--claude); border-radius: 12px; padding: 22px 26px; font-size: 19px; line-height: 1.55; color: var(--ink); margin-bottom: 44px }

.prose { font-size: 17px; line-height: 1.72; color: #2b2b2b }
.prose > :first-child { margin-top: 0 }
.prose h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); margin: 46px 0 16px }
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 32px 0 12px }
.prose p { margin: 0 0 18px }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px }
.prose li { margin-bottom: 9px }
.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: 26px 0; font-size: 14.5px }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5 }
.prose th { font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink-3) }
.prose tbody tr:last-child td { border-bottom: none }
.prose blockquote { border-left: 3px solid var(--claude); padding-left: 20px; margin: 24px 0; color: var(--ink-2); font-style: italic }

.cpa-quote { font-family: var(--serif); font-size: 26px; line-height: 1.38; color: var(--ink); border-left: 3px solid var(--claude); padding: 6px 0 6px 24px; margin: 44px 0 8px }

.article-section { margin-top: 56px }
.article-section > h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 24px }

/* FAQ (matches landing rp-faq) */
.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 4px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-family: var(--sans); font-size: 15px; 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 4px 22px; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 64ch }

/* Related cluster links */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.related-card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: all 0.15s }
.related-card:hover { border-color: #d4d4d0; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11,18,33,0.05) }
.related-card .rc-q { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; line-height: 1.35 }
.related-card .rc-d { font-size: 13px; color: var(--ink-3); line-height: 1.45 }

/* CTA */
.cta-block { margin-top: 60px; padding: 44px 40px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center }
.cta-block h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 12px; color: #fff }
.cta-block p { color: rgba(255,255,255,0.7); margin-bottom: 26px; font-size: 15px; max-width: 46ch; margin-left: auto; margin-right: auto; line-height: 1.6 }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }
.cta-block .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25) }
.cta-block .btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.45); color: #fff }

/* Sources */
.sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line) }
.sources h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 14px }
.sources ol { padding-left: 18px; font-size: 13px; color: var(--ink-3) }
.sources li { margin-bottom: 8px; word-break: break-word }
.sources a { color: var(--ink-2); text-decoration: underline }

/* Footer (matches 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; align-items: center; gap: 18px }
.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-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: 52px; 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: 760px) {
  .wrap { padding: 0 22px }
  .related-grid { grid-template-columns: 1fr }
  .article { padding: 40px 0 64px }
  .capsule { font-size: 17px; padding: 20px 22px }
  .prose { font-size: 16.5px }
  .prose h2 { font-size: 26px }
  .cpa-quote { font-size: 23px }
  .cta-block { padding: 36px 24px }
}
@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 }
}
