
    :root {
      --bg: #f5f7fb;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
      --line: #dbe2ea;
      --accent: #c62828;
      --accent-dark: #8e1d1d;
      --green: #0f9d58;
      --amber: #b26a00;
      --blue: #1e5eff;
      --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
      --radius: 18px;
      --fs-body: 0.9375rem;
      --fs-small: 0.8125rem;
      --fs-xs: 0.75rem;
      --fs-h1: 1.75rem;
      --fs-h2: 1.25rem;
      --fs-h3: 1.0625rem;
      --fs-metric: 1.125rem;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
      font-size: var(--fs-body);
      line-height: 1.5;
      background: var(--bg);
      color: var(--text);
    }

    .wrap {
      max-width: 1500px;
      margin: 0 auto;
      padding: 24px;
    }

    .hero {
      background: linear-gradient(135deg, #ffffff, #f8fafc);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow);
      padding: 28px 32px;
      margin-bottom: 24px;
    }

    .brand-header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 20px 32px;
      padding-bottom: 22px;
      margin-bottom: 20px;
      border-bottom: 1px solid var(--line);
    }

    .brand-logos {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px 18px;
      min-width: 0;
    }

    .logo-gms {
      height: 52px;
      width: auto;
      max-width: min(220px, 100%);
      display: block;
      object-fit: contain;
    }

    .brand-divider {
      width: 1px;
      height: 44px;
      background: var(--line);
      flex-shrink: 0;
    }

    .logo-ramac {
      height: 42px;
      width: auto;
      max-width: min(240px, 100%);
      display: block;
      object-fit: contain;
    }

    .brand-text {
      flex: 1;
      min-width: min(100%, 220px);
    }

    .brand-company {
      margin: 0;
      font-size: var(--fs-xs);
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .brand-product {
      margin: 6px 0 0;
      font-size: var(--fs-h2);
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
    }

    .brand-product-sub {
      font-weight: 500;
      color: var(--muted);
      font-size: var(--fs-body);
    }

    .brand-audience {
      margin: 8px 0 0;
      font-size: var(--fs-body);
      color: var(--text);
    }

    .hero h1 {
      margin: 0 0 10px;
      font-size: var(--fs-h1);
      font-weight: 800;
      line-height: 1.2;
      color: var(--text);
    }

    .hero p {
      margin: 8px 0;
      color: var(--muted);
      max-width: 1100px;
      font-size: var(--fs-body);
    }

    .pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 14px;
    }

    .pill {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 14px;
      font-size: var(--fs-small);
      color: var(--muted);
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
      margin-bottom: 22px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: visible;
      min-width: 0;
    }

    .card-head {
      padding: 20px 24px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(180deg, #fff, #fafbfd);
    }

    .card-head h2 {
      margin: 0 0 6px;
      font-size: var(--fs-h2);
      line-height: 1.3;
    }

    .sub {
      margin: 0;
      color: var(--muted);
      font-size: var(--fs-body);
      line-height: 1.55;
    }

    .card-body {
      padding: 24px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(180px, 1fr));
      gap: 16px;
    }

    .card .form-grid {
      grid-template-columns: 1fr;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .field label {
      font-size: var(--fs-small);
      color: var(--text);
      font-weight: 600;
    }

    .field input, .field select {
      width: 100%;
      min-width: 0;
      border: 1px solid #cfd8e3;
      border-radius: 12px;
      padding: 10px 12px;
      font-size: var(--fs-body);
      background: #fff;
      color: var(--text);
    }

    .field small {
      color: var(--muted);
      font-size: var(--fs-xs);
      line-height: 1.4;
    }

    .note {
      margin-top: 14px;
      padding: 14px 16px;
      border-radius: 12px;
      background: #fff8e8;
      border: 1px solid #f2dfaa;
      color: #7a5600;
      font-size: var(--fs-small);
      line-height: 1.45;
    }

    .note.good {
      background: #eefaf3;
      border-color: #cfe9d8;
      color: #11643a;
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin: 20px 0;
    }

    .compare-card .metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    @media (min-width: 960px) {
      .compare-card .metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    .metric {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 14px 14px;
      min-width: 0;
    }

    .metric .label {
      font-size: var(--fs-xs);
      color: var(--muted);
      margin-bottom: 8px;
      text-transform: none;
      letter-spacing: 0.02em;
      font-weight: 600;
      line-height: 1.35;
      white-space: normal;
    }

    .metric .value {
      font-size: var(--fs-metric);
      font-weight: 700;
      line-height: 1.25;
      word-break: break-word;
    }

    .metric .detail {
      margin-top: 6px;
      color: var(--muted);
      font-size: var(--fs-xs);
      line-height: 1.35;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 14px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
    }

    thead th {
      background: #f8fafc;
      color: #334155;
      text-align: left;
      font-size: var(--fs-xs);
      font-weight: 600;
      text-transform: none;
      letter-spacing: 0.01em;
      padding: 12px 12px;
      border-bottom: 1px solid var(--line);
      white-space: normal;
      vertical-align: bottom;
    }

    tbody td {
      padding: 12px 12px;
      border-bottom: 1px solid #edf2f7;
      font-size: var(--fs-body);
      vertical-align: top;
      word-break: normal;
    }

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

    .right { text-align: right; }
    .center { text-align: center; }

    .tag {
      display: inline-block;
      border-radius: 999px;
      padding: 5px 9px;
      font-size: var(--fs-xs);
      font-weight: 700;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      margin-right: 6px;
      margin-bottom: 4px;
    }

    .tag.red {
      background: #fff2f2;
      border-color: #ffd2d2;
      color: var(--accent-dark);
    }

    .tag.green {
      background: #effaf3;
      border-color: #ccebd6;
      color: var(--green);
    }

    .tag.blue {
      background: #eef4ff;
      border-color: #d8e4ff;
      color: var(--blue);
    }

    .section-title {
      margin: 24px 0 12px;
      font-size: var(--fs-h3);
      font-weight: 700;
      line-height: 1.35;
    }

    .compare-card {
      margin-top: 24px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: var(--shadow);
      padding: 24px 28px;
    }

    .footer-note {
      margin-top: 18px;
      font-size: var(--fs-small);
      color: var(--muted);
      line-height: 1.6;
    }

    .chart {
      margin-top: 14px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      padding: 16px;
    }

    .bar-row {
      display: grid;
      grid-template-columns: 110px 1fr 120px;
      gap: 12px;
      align-items: center;
      margin-bottom: 10px;
    }

    .bar-track {
      height: 14px;
      border-radius: 999px;
      background: #edf2f7;
      overflow: hidden;
    }

    .bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #ef5350, #c62828);
    }

    .small-muted {
      color: var(--muted);
      font-size: 12px;
    }

    .btn-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
    }

    button {
      border: 0;
      border-radius: 12px;
      padding: 11px 14px;
      font-weight: 700;
      cursor: pointer;
      background: var(--accent);
      color: white;
    }

    button.secondary {
      background: #fff;
      border: 1px solid var(--line);
      color: var(--text);
    }

    @media (max-width: 1180px) {
      .grid-2 { grid-template-columns: 1fr; }
    }

    @media (max-width: 720px) {
      .form-grid { grid-template-columns: 1fr; }
      .metrics { grid-template-columns: 1fr; }
      .compare-card .metrics { grid-template-columns: 1fr; }
      .bar-row { grid-template-columns: 1fr; }
      .hero h1 { font-size: 1.5rem; }
      .wrap { padding: 16px; }
      .hero { padding: 20px; }
      .brand-header { flex-direction: column; align-items: flex-start; }
      .exec-grid { grid-template-columns: 1fr; }
      .exec-summary { padding: 20px; }
    }

    .exec-summary {
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow);
      padding: 28px 32px;
      margin-bottom: 24px;
    }

    .exec-summary .exec-kicker {
      font-size: var(--fs-xs);
      font-weight: 700;
      color: var(--accent);
      letter-spacing: .04em;
      text-transform: uppercase;
      margin: 0 0 8px;
    }

    .exec-summary h2.exec-title {
      margin: 0 0 10px;
      font-size: var(--fs-h1);
      line-height: 1.25;
    }

    .exec-meta {
      color: var(--muted);
      font-size: var(--fs-body);
      margin: 0 0 22px;
    }

    .exec-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 22px;
    }

    .exec-panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 16px 18px;
      background: linear-gradient(180deg, #fafbfd, #fff);
    }

    .exec-panel h3 {
      margin: 0 0 10px;
      font-size: var(--fs-h3);
      color: var(--text);
      line-height: 1.35;
    }

    .exec-panel ul {
      margin: 0;
      padding-left: 20px;
      color: var(--muted);
      font-size: var(--fs-body);
      line-height: 1.55;
    }

    .exec-panel li { margin-bottom: 6px; }

    .exec-compare {
      margin-top: 8px;
    }

    .exec-compare table { margin-top: 8px; }

    .comp-breakdown {
      margin: 16px 0 0;
    }

    .comp-breakdown table { margin-top: 0; }

    .insight-line {
      margin-top: 12px;
      padding: 14px 16px;
      border-radius: 12px;
      background: #f0f4ff;
      border: 1px solid #d8e4ff;
      color: #1e3a5f;
      font-size: var(--fs-small);
      line-height: 1.5;
    }

    @media print {
      body { background: #fff; }
      .btn-row, button { display: none !important; }
      .wrap { max-width: none; padding: 12px; }
      .card, .hero, .compare-card, .exec-summary {
        box-shadow: none !important;
        break-inside: avoid;
      }
    }

    /* Single-project calculator pages: full width for wide tables */
    body.tco-single .wrap {
      max-width: 1120px;
    }

    body.tco-single .card .form-grid {
      grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    @media (max-width: 640px) {
      body.tco-single .card .form-grid {
        grid-template-columns: 1fr;
      }
    }

    .site-nav {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 16px;
      margin-bottom: 18px;
      font-size: var(--fs-small);
    }

    .site-nav a {
      color: var(--accent);
      font-weight: 700;
      text-decoration: none;
    }

    .site-nav a:hover {
      text-decoration: underline;
    }

    .site-nav .sep {
      color: var(--line);
      user-select: none;
    }

    /* Scroll wide numeric tables; keep amounts on one line */
    .table-wrap {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-top: 14px;
    }

    .table-wrap table {
      margin-top: 0;
      min-width: 920px;
    }

    table.data-table {
      font-variant-numeric: tabular-nums;
    }

    tbody td.right,
    thead th.right {
      white-space: nowrap;
    }

    tbody td:first-child {
      white-space: nowrap;
    }

    thead th {
      white-space: nowrap;
    }

    tbody td.center,
    thead th.center {
      white-space: nowrap;
    }

    .hub-pick {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-top: 20px;
    }

    @media (max-width: 720px) {
      .hub-pick {
        grid-template-columns: 1fr;
      }
    }

    .hub-card {
      display: block;
      padding: 24px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: var(--shadow);
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .hub-card:hover {
      border-color: #b8c5d8;
      box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
    }

    .hub-card h3 {
      margin: 0 0 8px;
      font-size: var(--fs-h2);
      color: var(--accent-dark);
    }

    .hub-card p {
      margin: 0;
      color: var(--muted);
      font-size: var(--fs-body);
      line-height: 1.5;
    }

    .hub-card .go {
      margin-top: 14px;
      font-weight: 700;
      color: var(--accent);
    }

