/* Page layout foundation. Shared design contracts: redesign.css; composition: direction.css. */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --ink: #15191b; --ink-2: #15191b; --paper: #ffffff; --soft: #f5f6f6; --soft-2: #f5f6f6;
    --line: #f5f6f6; --line-2: #e2e4e4; --muted: #5d6366; --muted-2: #929798;
    --accent: #06bcd4; --accent-d: #15191b; --accent-wash: #f5f6f6;
    --low: #00e676; --mod: #fe5252; --high: #fe5252; --crit: #15191b; --dark: #15191b;
    --r: 8px; --r-lg: 14px; --r-xl: 20px;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: var(--soft); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  h1,h2,h3,h4,h5 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; color: var(--ink); }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
  .btn { display: inline-flex; align-items: center; gap: 9px; font-family: 'Plus Jakarta Sans'; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: var(--r); cursor: pointer; border: 1px solid var(--accent-d); background: var(--accent-d); color: #ffffff; transition: transform .15s, filter .18s; }
  .btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

  .sr-bar { text-align: center; padding: 26px 0 6px; }
  .sr-tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--accent-d); background: var(--accent-wash); border: 1px solid #b4ebf2; padding: 6px 14px; border-radius: 100px; }
  .sr-bar .sub { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

  .doc { max-width: 860px; margin: 18px auto 0; background: #ffffff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px rgba(6,188,212,0.08); overflow: hidden; }
  .doc-head { background: #15191b; color: #ffffff; padding: 34px 40px; }
  .doc-head .brand { display: flex; align-items: center; gap: 9px; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 15px; opacity: .9; }
  .doc-head .brand span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
  .doc-head h1 { color: #ffffff; font-size: clamp(24px,3.4vw,34px); font-weight: 800; margin: 16px 0 6px; }
  .doc-head .meta { color: rgba(255,255,255,.6); font-size: 13.5px; }
  .doc-body { padding: 34px 40px; }
  @media (max-width: 620px){ .doc-head, .doc-body { padding: 26px 22px; } }
  .sec-h { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--accent-d); margin: 0 0 12px; }
  .doc-sec { padding: 26px 0; border-top: 1px solid var(--line); }
  .doc-sec:first-child { border-top: none; padding-top: 6px; }
  .doc-sec p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }

  .score-row { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
  .score-badge { text-align: center; }
  .score-badge .v { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 54px; line-height: 1; color: var(--high); }
  .score-badge .o { font-size: 12px; color: var(--muted); }
  .score-badge .pill { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--high); background: #f5f6f6; padding: 4px 12px; border-radius: 100px; }
  .meter { height: 10px; border-radius: 5px; background: var(--soft-2); overflow: hidden; margin-bottom: 12px; }
  .meter i { display: block; height: 100%; border-radius: 5px; background: var(--high); }
  .score-row .desc { font-size: 13.5px; color: var(--muted); }

  .mapfig { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #15191b; }
  .mapfig svg { width: 100%; display: block; }
  .mapcap { font-size: 12px; color: var(--muted-2); margin-top: 8px; }

  .issues { display: grid; gap: 10px; }
  .issue { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
  .issue .bar { width: 8px; height: 34px; border-radius: 4px; }
  .issue .t { font-size: 14.5px; font-weight: 600; }
  .issue .t small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
  .issue .sev { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 100px; }
  .sev.crit { color: var(--crit); background: #f5f6f6; } .sev.high { color: var(--high); background: #f5f6f6; } .sev.mod { color: #15191b; background: #f5f6f6; }

  ul.recs { list-style: none; display: grid; gap: 9px; }
  ul.recs li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
  ul.recs li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-d); font-weight: 800; }

  table.plan { width: 100%; border-collapse: collapse; font-size: 14px; }
  table.plan th, table.plan td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
  table.plan th { font-family: 'Plus Jakarta Sans'; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted-2); }
  table.plan td .p { font-weight: 700; }

  .doc-foot { background: var(--soft); padding: 22px 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); line-height: 1.5; }

  .sr-cta { max-width: 860px; margin: 26px auto 0; text-align: center; padding: 8px 0 12px; }
  .sr-cta p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
