:root {
      --bg-main: #ffffff;
      --bg-card: #f7f7f7;
      --text-main: #1c1c1c;
      --text-dim: #333333;
      --text-muted: #666666;
      --rule: #e0e0e0;
      --red: #cc2200;
      --green: #3a8a50;
      --yellow: #fbbf24;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      color-scheme: light;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: var(--bg-main);
      color: var(--text-main);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body::before {
      display: none;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    a:hover {
      color: color-mix(in srgb, var(--text-main) 80%, var(--red));
    }

    code {
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      font-size: 0.88em;
      background: rgba(255, 255, 255, 0.04);
      padding: 0.18rem 0.38rem;
    }

    .page-shell {
      position: relative;
      z-index: 1;
      width: min(1440px, calc(100% - 32px));
      margin: 0 auto;
      padding: 24px 0 48px;
      display: grid;
      grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
      gap: 24px;
    }

    .sidebar,
    .content-column {
      min-width: 0;
    }

    .sidebar-stack {
      position: sticky;
      top: 24px;
      display: grid;
      gap: 18px;
    }

    .brand-panel,
    .side-card,
    .hero,
    .section-card {
      background: var(--bg-card);
      border: 1px solid var(--rule);
    }

    .brand-panel,
    .side-card {
      padding: 18px;
    }

    .brand-mark {
      width: 42px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--rule);
      background: var(--text-main);
      color: var(--bg-main);
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .overline,
    .mini-label,
    .meta-line,
    .toc a,
    th,
    .foot-note {
      font-family: inherit;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .overline {
      margin: 16px 0 12px;
      font-size: 10px;
      color: var(--red);
    }

    h1,
    h2,
    h3 {
      margin: 0;
      font-family: inherit;
      font-weight: 700;
      letter-spacing: -0.01em;
      line-height: 1.1;
      color: var(--text-main);
    }

    .brand-panel h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      max-width: 12ch;
    }

    .brand-copy,
    .side-card p,
    .hero-copy,
    .section-card p,
    li,
    td {
      font-size: 1.08rem;
      line-height: 1.65;
      color: var(--text-dim);
    }

    .mini-label {
      font-size: 10px;
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .quick-list,
    .toc-list,
    .inline-list,
    .section-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .quick-list li,
    .section-card li {
      position: relative;
      padding-left: 18px;
      margin-bottom: 10px;
    }

    .quick-list li::before,
    .section-card li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0.75rem;
      width: 6px;
      height: 6px;
      background: var(--red);
    }

    .toc-list {
      display: grid;
      gap: 8px;
    }

    .toc a {
      display: block;
      padding: 10px 12px;
      font-size: 11px;
      color: var(--text-muted);
      border: 1px solid transparent;
    }

    .toc a:hover {
      color: var(--text-main);
      background: rgba(0, 0, 0, 0.04);
    }

    .content-column {
      display: grid;
      gap: 20px;
    }

    .hero {
      padding: 28px 28px 24px;
      background: none;
    }

    .hero h1 {
      font-size: clamp(3rem, 8vw, 5rem);
      max-width: 10ch;
      margin-bottom: 18px;
    }

    .hero-copy {
      max-width: 66ch;
      font-size: 1.2rem;
      color: var(--text-dim);
    }

    .meta-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid var(--rule);
    }

    .meta-line {
      font-size: 10px;
      color: var(--text-muted);
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 22px;
    }

    .summary-card {
      padding: 14px;
      border: 1px solid var(--rule);
      background: none;
    }

    .summary-card strong {
      display: block;
      font-family: inherit;
      font-size: 10px;
      font-weight: 600;
      color: var(--red);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 8px;
    }

    .summary-card span {
      display: block;
      color: var(--text-dim);
      font-size: 1.02rem;
      line-height: 1.5;
    }

    .section-card {
      padding: 24px 24px 22px;
      scroll-margin-top: 28px;
    }

    .section-card h2 {
      font-size: clamp(1.8rem, 4vw, 2.2rem);
      margin-bottom: 14px;
    }

    .section-card h3 {
      font-size: 1.2rem;
      margin: 22px 0 10px;
    }

    .section-card > p + p {
      margin-top: 12px;
    }

    .callout {
      margin: 18px 0;
      padding: 16px 16px 16px 18px;
      border: 1px solid var(--rule);
      border-left: 4px solid var(--red);
      background: none;
    }

    .callout strong {
      color: var(--text-main);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 18px;
      border: 1px solid var(--rule);
    }

    th,
    td {
      text-align: left;
      vertical-align: top;
      padding: 14px 16px;
      border-bottom: 1px solid var(--rule);
    }

    th {
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 600;
    }

    td strong {
      color: var(--text-main);
      font-weight: 600;
    }

    tbody tr:last-child td {
      border-bottom: 0;
    }

    .note-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .note-tile {
      padding: 16px;
      border: 1px solid var(--rule);
      background: none;
    }

    .note-tile strong {
      display: block;
      margin-bottom: 8px;
      color: var(--text-main);
      font-family: inherit;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 10px;
    }

    .foot-note {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
      font-size: 10px;
      color: var(--text-muted);
    }

    .dot {
      width: 8px;
      height: 8px;
      background: var(--green);
      display: inline-block;
    }

    .dot.warning {
      background: var(--yellow);
    }

    .footer-card {
      padding-bottom: 30px;
    }

    @media (max-width: 1120px) {
      .page-shell {
        grid-template-columns: 1fr;
      }

      .sidebar-stack {
        position: static;
      }
    }

    @media (max-width: 820px) {
      .hero,
      .section-card,
      .brand-panel,
      .side-card {
        padding-left: 18px;
        padding-right: 18px;
      }

      .summary-grid,
      .note-grid {
        grid-template-columns: 1fr;
      }

      th,
      td {
        padding: 12px;
      }

      table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
      }

      th,
      td {
        min-width: 180px;
        white-space: normal;
      }
    }