:root {
      --accent: #9a3412;
      --accent-dark: #7c2d12;
      --accent-soft: #fff7ed;
      --on-accent: #ffffff;
      --bg: #fffbeb;
      --text: #0f172a;
      --muted: #44403c;
      --card: #ffffff;
      --border: #d6d3d1;
      --header-bg: #fffef8;
      --footer-bg: #0f172a;
      --footer-text: #f5f5f4;
      --control-border: #78716c;
      --radius: 14px;
      --max: 46rem;
      --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      --focus: #9a3412;
    }

    *,
    *::before,
    *::after { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }
    }

    body {
      margin: 0;
      font-family: var(--font);
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
      font-size: 1.0625rem;
    }

    a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 0.15em;
    }

    a:hover { color: var(--accent-dark); }

    :focus { outline: none; }

    :focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 2px;
    }

    .skip {
      position: absolute;
      left: 0.75rem;
      top: 0.75rem;
      transform: translateY(-200%);
      background: var(--card);
      color: var(--text);
      padding: 0.6rem 1rem;
      border-radius: 8px;
      z-index: 200;
      font-weight: 700;
    }

    .skip:focus,
    .skip:focus-visible { transform: none; }

    .container {
      width: min(100% - 2rem, var(--max));
      margin-inline: auto;
    }

    .site-header {
      background: var(--header-bg);
      border-bottom: 1px solid var(--border);
    }

    .header-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem 1rem;
      min-height: 64px;
      padding: 0.5rem 0;
    }

    .brand {
      font-weight: 800;
      font-size: 1.05rem;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .header-note {
      margin: 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      min-width: 48px;
      padding: 0.7rem 1.15rem;
      border-radius: 999px;
      border: 2px solid var(--accent);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      text-align: center;
      background: var(--accent);
      color: var(--on-accent);
    }

    .btn:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
    }

    main { padding: 1.25rem 0 2rem; }

    h1 {
      margin: 0 0 0.75rem;
      font-size: 1.85rem;
      line-height: 1.2;
      letter-spacing: -0.03em;
    }

    h2 {
      margin: 1.25rem 0 0.4rem;
      font-size: 1.15rem;
      line-height: 1.3;
    }

    p { margin: 0 0 0.6rem; }

    .lede { margin-bottom: 0.85rem; }

    ul {
      margin: 0 0 0.6rem;
      padding-left: 1.2rem;
    }

    li { margin: 0.2rem 0; }

    .meta {
      display: grid;
      gap: 0.55rem;
      margin: 0 0 1rem;
    }

    @media (min-width: 640px) {
      .meta { grid-template-columns: 1.2fr 1fr 1.1fr; }
      .meta.two { grid-template-columns: 1fr 1fr; }
    }

    .fill {
      display: flex;
      flex-wrap: nowrap;
      align-items: baseline;
      gap: 0.35rem 0.5rem;
    }

    .fill .label {
      font-weight: 700;
      flex: 0 0 auto;
    }

    .fill .line {
      flex: 1 1 8rem;
      border-bottom: 1px solid var(--text);
      min-height: 1.4rem;
    }

    .sheet-wrap { overflow-x: auto; margin: 0 0 0.75rem; }

    table.sheet {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      background: var(--card);
    }

    .sheet caption {
      text-align: left;
      font-weight: 700;
      margin: 0 0 0.35rem;
      caption-side: top;
    }

    .sheet th,
    .sheet td {
      border: 1px solid var(--control-border);
      padding: 0.45rem 0.5rem;
      text-align: left;
      vertical-align: top;
      overflow-wrap: break-word;
    }

    .sheet th {
      background: var(--accent-soft);
      font-size: 0.95rem;
      font-weight: 700;
    }

    .sheet td { height: 2.4rem; }

    .rules { margin-top: 0.15rem; }

    .site-footer {
      background: var(--footer-bg);
      color: var(--footer-text);
      padding: 1rem 0;
    }

    .site-footer p { margin: 0; }

    .site-footer a {
      color: #fed7aa;
      text-decoration: underline;
    }

    .site-footer a:hover { color: #fff7ed; }

    @page { size: letter; margin: 0.35in; }

    @media print {
      .skip,
      .no-print,
      .header-note { display: none !important; }

      body {
        background: #fff;
        color: #0f172a;
        font-size: 9pt;
        line-height: 1.25;
      }

      .container { width: auto; margin: 0; }

      .site-header {
        background: transparent;
        border-bottom: 1px solid #78716c;
      }

      .header-inner {
        min-height: 0;
        padding: 0 0 0.1rem;
      }

      .brand { font-size: 9pt; }

      main { padding: 0.2rem 0 0.1rem; }

      h1 {
        font-size: 15pt;
        margin: 0 0 0.25rem;
      }

      h2 {
        font-size: 10.5pt;
        margin: 0.38rem 0 0.1rem;
      }

      p, ul { margin: 0 0 0.18rem; }

      li { margin: 0.08rem 0; }

      .lede { margin-bottom: 0.18rem; }

      .meta {
        grid-template-columns: 1.2fr 1fr 1.1fr;
        gap: 0.2rem 0.7rem;
        margin: 0 0 0.25rem;
      }

      .meta.two { grid-template-columns: 1fr 1fr; }

      .fill .line { min-height: 1.05rem; }

      .sheet-wrap { overflow: visible; margin: 0 0 0.18rem; }

      .sheet caption { margin: 0 0 0.12rem; font-size: 8.5pt; }

      .sheet th,
      .sheet td { padding: 0.12rem 0.3rem; }

      .sheet th { font-size: 8pt; background: #fff7ed; }

      .sheet td { height: 1.35rem; }

      .sheet.sign td { height: 1.55rem; }

      .site-footer {
        background: transparent;
        color: #0f172a;
        padding: 0.2rem 0 0;
        border-top: 1px solid #78716c;
        break-inside: avoid;
        font-size: 8pt;
      }

      .site-footer a {
        color: inherit;
        text-decoration: none;
      }

      .print-url { display: inline; }

      a { color: inherit; }

      h2, table, .rules { break-inside: avoid; }

      .sign-block { break-inside: avoid; break-before: avoid; }
    }

    .print-url { display: none; }


/* WCAG 2.2 2.5.8: footer links at least 24px tall (QA E2E 2026-11-29). */
.site-footer a { display: inline-block; min-height: 24px; line-height: 24px; }
