/* Shared navigation and readable reference content; no build dependency. */
:root { color-scheme: light; }
body { background: #fcfaff; color: #1b1b24; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: white; color: #3525cd; border: 2px solid #3525cd; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e1ddec; background: rgba(252,250,255,.98); }
.site-header-inner { max-width: 1280px; min-height: 80px; margin: auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { color: #3525cd; font-size: 25px; line-height: 1.2; font-weight: 800; letter-spacing: -.6px; }
.site-logo span { display: block; margin-top: 5px; font-size: 11px; font-weight: 500; letter-spacing: .15px; color: #625c76; }
.site-desktop-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 14px; font-weight: 600; }
.site-desktop-nav a:hover, .site-footer a:hover { color: #3525cd; text-decoration: underline; text-underline-offset: 4px; }
.site-mobile-menu { display: none; }
.home-main > section:first-child { min-height: 430px; padding-top: 64px; padding-bottom: 64px; }
.site-footer { margin-top: 48px; background: white; border-top: 1px solid #e1ddec; }
.site-footer-grid { max-width: 1280px; margin: auto; padding: 48px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer p { max-width: 420px; margin-top: 16px; color: #625c76; font-size: 14px; line-height: 1.7; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #625c76; }
.site-footer h2 { font-weight: 700; color: #1b1b24; margin-bottom: 6px; }
.site-footer-bottom { max-width: 1216px; padding: 22px 0; margin: auto; border-top: 1px solid #eeebf3; color: #625c76; font-size: 12px; }
.content-intro { max-width: 1000px; margin: 0 auto; padding: 64px 24px 24px; }
.content-intro h1 { max-width: 850px; font-size: clamp(30px,4.5vw,48px); line-height: 1.15; font-weight: 750; letter-spacing: -1px; margin: 16px 0 20px; }
.content-lead { max-width: 760px; font-size: 18px; line-height: 1.7; color: #625c76; }
.content-section { width: calc(100% - 48px); max-width: 952px; margin: 40px auto; line-height: 1.8; }
.content-section h2 { font-size: clamp(23px,3vw,29px); font-weight: 700; line-height: 1.35; letter-spacing: -.4px; margin: 28px 0 18px; }
.content-section h3 { font-size: 20px; font-weight: 650; line-height: 1.45; }
.content-section p { margin: 16px 0; color: #514c62; }
.content-section a:not(.guide-card) { color: #3525cd; text-decoration: underline; text-underline-offset: 3px; }
.content-section a:hover { color: #24168e; }
.content-section ul, .content-section ol { padding-left: 25px; margin: 16px 0; }
.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }
.content-section li { margin: 10px 0; color: #514c62; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 44px; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 22px; border: 1px solid #e1ddec; border-radius: 12px; background: #f3f0fa; font-size: 13px; line-height: 1.7; }
.prose p code { font-size: .9em; background: #eeebf7; border-radius: 4px; padding: 2px 4px; }
.eyebrow { color: #6257af; font-size: 11px; font-weight: 750; letter-spacing: 1.4px; }
.site-small, .content-section .site-small { font-size: 13px; color: #625c76; }
.breadcrumbs { font-size: 13px; margin-bottom: 28px; color: #625c76; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; border: 1px solid #dcd6eb; border-radius: 16px; background: white; transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: #8679db; box-shadow: 0 8px 24px #3525cd0a; }
.guide-card p { font-size: 15px; margin: 0; line-height: 1.7; }
.guide-card .card-link { margin-top: auto; font-size: 14px; font-weight: 650; color: #3525cd; }
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid #dcd6eb; border-radius: 12px; background: white; }
.table-scroll table { min-width: 520px; width: 100%; font-size: 14px; text-align: left; }
.table-scroll caption { padding: 16px; text-align: left; color: #625c76; font-size: 13px; }
.table-scroll td, .table-scroll th { padding: 14px 18px; border-top: 1px solid #eeebf3; vertical-align: top; }
.table-scroll th { background: #f3f0fa; }
.primary-link { display: inline-block; border-radius: 8px; padding: 12px 20px; background: #3525cd; color: white !important; text-decoration: none !important; font-weight: 600; }
.faq-search { display: block; width: 100%; margin-top: 10px; padding: 14px 18px; background: white; border: 1px solid #c7c4d8; border-radius: 10px; }
.faq-item { margin: 14px 0; border: 1px solid #dcd6eb; border-radius: 12px; background: white; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-size: 17px; font-weight: 650; }
.faq-item[open] summary { border-bottom: 1px solid #eeebf3; }
.faq-item > div { padding: 18px 22px; color: #514c62; }
.source-note { padding-top: 20px; border-top: 1px solid #e1ddec; font-size: 13px; }
.content-ad { max-width: 952px; margin: 48px auto; padding: 24px; border-top: 1px solid #e1ddec; }
.content-ad > p { font-size: 11px; text-align: center; color: #625c76; margin-bottom: 16px; }
.tool-main > .content-section:first-of-type { border-top: 1px solid #e1ddec; padding-top: 12px; }
.tool-main [id^="fv-"] img { max-width: 80px; max-height: 80px; object-fit: contain; }
.tool-main #rz-preview { max-height: 450px; }
.tool-main #rz-results img { max-height: 450px; object-fit: contain; }
.tool-main #cv-results img { max-height: 450px !important; object-fit: contain; }
.tool-main #cv-results > div > div:first-child > div > div { min-width: 0 !important; flex-basis: 260px !important; }
.tool-main [data-tool-error] { max-width: 896px; margin: 16px auto; padding: 14px 20px; border: 1px solid #ba1a1a; border-radius: 10px; color: #93000a; background: #ffdad6; }
[id] { scroll-margin-top: 100px; }
@media(max-width: 1000px) {
  .site-desktop-nav { display: none; }
  .site-mobile-menu { display: block; }
  .site-mobile-menu summary { cursor: pointer; padding: 10px 16px; border: 1px solid #dcd6eb; border-radius: 8px; font-size: 14px; font-weight: 650; }
  .site-mobile-menu > div { position: absolute; right: 20px; top: 74px; min-width: 220px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 16px; display: grid; gap: 4px; background: white; border: 1px solid #dcd6eb; border-radius: 12px; box-shadow: 0 12px 30px #21164a15; }
  .site-mobile-menu a { padding: 8px 12px; font-size: 15px; }
  .site-mobile-menu a:hover { background: #f3f0fa; border-radius: 6px; }
}
@media(max-width: 640px) {
  .site-header-inner { padding: 12px 20px; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; padding: 36px 24px; gap: 32px; }
  .site-footer-grid > div { grid-column: 1 / -1; }
  .site-footer-bottom { margin: 0 24px; }
  .content-intro { padding-top: 40px; }
  .content-section { margin-top: 30px; margin-bottom: 30px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { padding: 24px; }
  .tool-main .p-16 { padding: 32px 24px; }
  .tool-main #rz-editor, .tool-main #rz-results { padding-left: 16px; padding-right: 16px; }
  .tool-main #fv-loaded { margin-left: 0; margin-right: 0; padding: 0 16px; }
  .tool-main #fv-results > div:last-child { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; } }
