/* rebuild.css v1 — levinko-avic new template (blueprint engineering). Fresh file. */
*,*::before,*::after{box-sizing:border-box}
html{scrollbar-gutter:stable}
body{margin:0;font-family:"IBM Plex Sans",Arial,sans-serif;color:#1F2937;
  background:#F4F7FA;line-height:1.65;font-size:17px}
a{color:#16456E}
a:hover{color:#0B2A44}
img,svg,video{max-width:100%;height:auto}
table{border-collapse:collapse}
.skip{position:absolute;left:-9999px;top:0;background:#16324F;color:#fff;padding:8px 12px;z-index:100}
.skip:focus{left:8px;top:8px}
/* ---- masthead ---- */
.masthead{background:#16324F;color:#fff;border-bottom:4px solid #F59E0B;
  position:sticky;top:0;z-index:50}
.masthead-inner{max-width:1180px;margin:0 auto;padding:14px 20px;
  display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.brandmark{color:#fff;text-decoration:none;font-weight:700;font-size:26px;
  letter-spacing:.02em;line-height:1.1}
.brandmark small{display:block;font-size:11px;letter-spacing:.22em;
  color:#BFD3E2;font-weight:500}
.nav-toggle{display:none;background:transparent;border:1px solid #7FA3BC;
  color:#fff;font-size:22px;line-height:1;padding:6px 12px;border-radius:4px;cursor:pointer}
.primary-nav{margin-left:auto;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.primary-nav a{color:#E6EEF4;text-decoration:none;font-weight:500}
.primary-nav a:hover{color:#fff;text-decoration:underline}
.nav-drop{position:relative}
.nav-drop-btn{background:transparent;border:0;color:#E6EEF4;
  font:inherit;font-weight:500;cursor:pointer;padding:0}
.nav-drop-btn:hover{color:#fff;text-decoration:underline}
.drop-panel{display:none;position:absolute;left:0;top:calc(100% + 10px);z-index:60;
  min-width:280px;background:#fff;border:1px solid #D6DEE6;border-radius:6px;
  box-shadow:0 14px 34px rgba(10,30,50,.22);padding:8px;flex-direction:column}
.nav-drop:hover .drop-panel,.nav-drop:focus-within .drop-panel,
.nav-drop.open .drop-panel{display:flex}
.drop-panel a{color:#1F2937;padding:9px 12px;border-radius:4px;white-space:normal}
.drop-panel a:hover{background:#EDF2F7;color:#16324F;text-decoration:none}
.lang-switch{position:relative}
.lang-switch summary{list-style:none;cursor:pointer;font-size:14px;font-weight:600;
  padding:6px 10px;border:1px solid #7FA3BC;border-radius:6px;color:#fff}
.lang-switch summary::-webkit-details-marker{display:none}
.lang-switch summary::marker{content:""}
.lang-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:60;
  min-width:150px;background:#fff;border:1px solid #D6DEE6;border-radius:6px;
  box-shadow:0 14px 34px rgba(10,30,50,.22);padding:6px;flex-direction:column}
.lang-switch[open] .lang-menu{display:flex}
.lang-menu a,.lang-menu .lang-current{display:block;padding:8px 12px;font-size:14px;
  color:#1F2937;text-decoration:none;border-radius:4px;white-space:nowrap}
.lang-menu a:hover{background:#EDF2F7}
.lang-menu .lang-current{font-weight:700;background:#EAF1F7}
.btn{display:inline-block;text-decoration:none;font-weight:600;border-radius:6px;
  padding:11px 18px}
.btn-primary{background:#F59E0B;color:#1B2A3A;border:2px solid #F59E0B}
.btn-primary:hover{background:#D97706;border-color:#D97706;color:#fff}
.masthead-cta{white-space:nowrap}
/* ---- main / blueprint signature ---- */
main{display:block}
.hero{position:relative;background-color:#EAF0F6;
  background-image:linear-gradient(rgba(22,50,79,.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(22,50,79,.07) 1px,transparent 1px);
  background-size:28px 28px;border-bottom:1px solid #CBD8E4;padding:44px 20px 36px}
.hero::before{content:"";display:block;height:10px;margin:0 auto 18px;max-width:1080px;
  background-image:repeating-linear-gradient(90deg,#16324F 0 2px,transparent 2px 28px);
  opacity:.55}
.hero .container{max-width:1080px;margin:0 auto}
.hero h1{font-size:40px;line-height:1.15;color:#16324F;margin:0 0 12px;max-width:820px}
.hero p{max-width:820px}
.page-home .hero{border:3px solid #16324F;border-left-width:10px;padding:52px 20px 44px}
.page-home .hero h1{font-size:46px}
.page-category .hero{border-left:10px solid #F59E0B}
.page-article .hero{padding:30px 20px 24px}
.page-article .hero h1{font-size:34px}
.evidence{max-width:1080px;margin:0 auto;padding:22px 20px}
.evidence table,.evidence dl{width:100%}
.article-wrap{max-width:1080px;margin:0 auto;padding:28px 20px 40px}
.article-wrap h2{color:#16324F;font-size:26px;margin:34px 0 10px;
  padding-top:18px;border-top:2px solid #CBD8E4}
.article-wrap h2:first-child{margin-top:0;padding-top:0;border-top:0}
.article-wrap h3{color:#16456E;font-size:20px;margin:24px 0 8px}
.article-wrap ul,.article-wrap ol{padding-left:22px}
.article-wrap li{margin:6px 0}
.article-wrap table{display:block;overflow-x:auto;max-width:100%;
  border:1px solid #CBD8E4;background:#fff;margin:18px 0}
.article-wrap th,.article-wrap td{padding:10px 14px;border-bottom:1px solid #E2E8F0;
  text-align:left;vertical-align:top}
.article-wrap th{background:#16324F;color:#fff;font-family:"IBM Plex Mono",monospace;
  font-size:14px}
.figure-blueprint{background:#fff;border:2px solid #16324F;padding:16px;margin:24px 0}
.figure-blueprint svg{display:block;margin:0 auto;width:100%;max-width:840px}
.figure-blueprint figcaption{font-family:"IBM Plex Mono",monospace;font-size:13px;
  color:#41546A;margin-top:10px}
/* R2: blueprint SVG element styles (carried from the original design tokens;
  the v1/v2 rebuild.css had no .bp-* rules at all, so shapes and labels fell
  back to browser defaults). Text sizes are in SVG viewBox units. */
.bp-label{font-family:"IBM Plex Mono",monospace;font-size:15px;fill:#41546A}
.bp-title{font-family:"IBM Plex Mono",monospace;font-size:17px;font-weight:600;
  fill:#16324F}
.bp-note{font-family:"IBM Plex Mono",monospace;font-size:14px;font-style:italic;
  fill:#41546A}
.bp-struct{fill:#FFFFFF;stroke:#16324F;stroke-width:2}
.bp-sub{fill:#FFFFFF;stroke:#16324F;stroke-width:1.5}
.bp-detail{fill:none;stroke:#16324F;stroke-width:1.5}
.bp-anno{fill:none;stroke:#3B82A6;stroke-width:1.5;stroke-dasharray:6 4}
.bp-dim{stroke:#3B82A6;stroke-width:1}
.bp-accent{fill:#F59E0B;stroke:#16324F;stroke-width:1.5}
/* V3-R1: evidence facts block — label above value, ruled, spaced */
.evidence-inner{display:grid;grid-template-columns:repeat(5,1fr);gap:22px}
.evidence-item{border-top:3px solid #16324F;padding-top:10px}
.evidence-item .k{display:block;font-family:"IBM Plex Mono",monospace;font-size:12px;
  letter-spacing:.08em;text-transform:uppercase;color:#41546A}
.evidence-item .v{display:block;font-weight:700;color:#16324F;margin-top:5px}
/* V3-R1: prose section rhythm + category hierarchy (text unchanged) */
.prose h2{font-size:30px;background:#EAF0F6;border-left:6px solid #F59E0B;
  padding:13px 16px;margin:44px 0 14px}
.prose h3{font-size:21px;color:#16324F;margin:28px 0 8px}
.prose li a{font-weight:600}
.prose p{max-width:780px}
/* R2 item 6: break the single banded-heading rhythm — prose H2s cycle through
  three distinct treatments (band / open rule / dark band), text unchanged. */
.prose h2:nth-of-type(3n+2){background:transparent;border-left:0;
  border-top:4px solid #F59E0B;padding:16px 2px 0;margin-top:56px}
.prose h2:nth-of-type(3n){background:#16324F;color:#FFFFFF;
  border-left:6px solid #F59E0B;padding:13px 16px}
.cta-band{background:#16324F;color:#fff;padding:36px 20px}
.cta-band .container{max-width:1080px;margin:0 auto}
.cta-band h2{color:#fff;margin:0 0 8px}
.cta-band a{color:#FCD34D}
.cta-band .btn-primary{color:#1B2A3A}
/* ---- forms: every field the same full width ---- */
.inquiry-form{max-width:720px;background:#fff;border:1px solid #D6DEE6;
  border-radius:8px;padding:26px;margin:8px 0 24px}
.inquiry-form .field{margin:0 0 18px;width:100%}
.inquiry-form label{display:block;font-weight:600;margin-bottom:6px}
.inquiry-form input[type="text"],.inquiry-form input[type="email"],
.inquiry-form select,.inquiry-form textarea{width:100%;max-width:100%;
  padding:12px 13px;font:inherit;font-size:16px;border:1px solid #B9C6D2;
  border-radius:6px;background:#fff;color:#1F2937}
.inquiry-form textarea{min-height:150px;resize:vertical}
.inquiry-form button[type="submit"]{font:inherit;font-weight:700;cursor:pointer}
.form-note{margin-top:16px}
/* ---- colophon ---- */
.colophon{background:#12283E;color:#C7D6E2;margin-top:0}
.colophon-inner{max-width:1180px;margin:0 auto;padding:38px 20px 22px;
  display:flex;gap:36px;flex-wrap:wrap;justify-content:space-between}
.colophon-inner>div{min-width:200px}
.colophon a{color:#E6EEF4;text-decoration:none}
.colophon a:hover{color:#fff;text-decoration:underline}
.colophon h2{color:#fff;font-size:16px;letter-spacing:.08em;text-transform:uppercase}
.colophon-bottom{max-width:1180px;margin:0 auto;padding:16px 20px 28px;
  border-top:1px solid #2A435C;display:flex;gap:20px;flex-wrap:wrap;
  font-size:14px;color:#9FB4C6}
/* R2 item 6: the four footer groups live inside .footer-grid, which had no
  rule, so they stacked inside one shrink-to-fit flex item on the left.
  Give the grid the full row and distribute the four groups evenly. */
.colophon-inner>.footer-grid{flex:1 1 100%;width:100%}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:36px}
.footer-grid>div{min-width:0}
.footer-grid ul{list-style:none;margin:0;padding:0}
.footer-grid li{margin:0 0 8px}
.footer-grid h2{margin:0 0 12px}
.footer-brand{font-size:20px;font-weight:700;color:#fff;margin:0 0 10px}
.footer-contact{margin:0;line-height:1.7}
.colophon-inner>.colophon-bottom{flex:1 1 100%;width:100%;
  justify-content:space-between}
/* ---- mobile: true 390px layout, no horizontal overflow ---- */
@media (max-width:860px){
  body{font-size:16px}
  .masthead-inner{gap:12px}
  .nav-toggle{display:block;margin-left:auto}
  .primary-nav{display:none;width:100%;flex-direction:column;align-items:flex-start;
    gap:12px;margin-left:0;padding-top:6px}
  .primary-nav.open{display:flex}
  .masthead-cta{width:100%;text-align:center}
  .drop-panel{position:static;box-shadow:none;border:0;border-left:3px solid #F59E0B;
    border-radius:0;min-width:0;width:100%;padding:4px 0 4px 10px}
  .nav-drop:hover .drop-panel,.nav-drop:focus-within .drop-panel{display:none}
  .nav-drop.open .drop-panel{display:flex}
  .lang-menu{position:static;box-shadow:none;width:100%}
  .hero{padding:30px 16px 26px}
  .hero h1,.page-home .hero h1{font-size:30px}
  .article-wrap,.evidence,.cta-band{padding-left:16px;padding-right:16px}
  .evidence-inner{grid-template-columns:repeat(2,1fr);gap:16px}
  .colophon-inner{flex-direction:column;gap:22px}
  .footer-grid{grid-template-columns:1fr;gap:22px}
  /* R2 item 5: mobile diagram legibility. The 900-unit-wide home SVG renders
     at ~0.40 scale in a 390px viewport, so labels switch to a proportional
     sans at larger viewBox sizes; the figure also claims the full column
     width (tighter padding, slight negative margin) to gain scale.
     Desktop rules above are untouched. */
  .figure-blueprint{padding:12px 6px;margin-left:0;margin-right:0}
  .figure-blueprint svg text.bp-label{font-family:"IBM Plex Sans",Arial,sans-serif;
    font-size:23px}
  .figure-blueprint svg text.bp-title{font-family:"IBM Plex Sans",Arial,sans-serif;
    font-size:25px}
  .figure-blueprint svg text.bp-note{font-family:"IBM Plex Sans",Arial,sans-serif;
    font-size:22px}
  .figure-blueprint svg text.bp-caption{font-family:"IBM Plex Sans",Arial,sans-serif;
    font-size:21px}
  .figure-blueprint svg text.bp-caption-s{font-family:"IBM Plex Sans",Arial,sans-serif;
    font-size:17px}
}
