.gg-ref-table {
  --paper: #f7f1e2;
  --ink: #21312a;
  --ink-soft: #536458;
  --forest: #244436;
  --brass: #7f5a2d;
  --line: #d7c9ad;
  --card: rgba(255, 252, 244, 0.92);
}

.gg-ref-table,
.gg-ref-table * {
  box-sizing: border-box;
}

.gg-ref-table :focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.gg-ref-table {
  color: var(--ink);
  font: 16px/1.55 "Newsreader", Georgia, "Times New Roman", serif;
}

/* Table */

.gg-ref-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.gg-ref-table caption {
  caption-side: top;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #18251f;
  padding: 0 0 14px;
  text-align: left;
}

.gg-ref-table th,
.gg-ref-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.gg-ref-table th {
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(246,239,225,0.7));
  font: 700 0.78rem/1.2 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: left;
  white-space: nowrap;
}

.gg-ref-table td {
  font: 500 0.9rem/1.45 "Outfit", system-ui, sans-serif;
  color: var(--ink);
}

.gg-ref-table tbody tr {
  transition: background 100ms ease;
}

.gg-ref-table tbody tr:hover {
  background: rgba(255, 252, 244, 0.6);
}

/* Row type tints — subtle archival tones */

.gg-ref-table tr.official {
  background: rgba(36, 68, 54, 0.04);
}
.gg-ref-table tr.official:hover {
  background: rgba(36, 68, 54, 0.08);
}

.gg-ref-table tr.unofficial {
  background: rgba(127, 90, 45, 0.04);
}
.gg-ref-table tr.unofficial:hover {
  background: rgba(127, 90, 45, 0.08);
}

.gg-ref-table tr.summary {
  background: rgba(36, 68, 54, 0.06);
}
.gg-ref-table tr.summary:hover {
  background: rgba(36, 68, 54, 0.10);
}

/* Links */

.gg-ref-table a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 100ms ease;
}

.gg-ref-table a:hover {
  color: var(--brass);
}

/* Lists inside cells */

.gg-ref-table ul {
  margin: 0;
  padding-left: 1.2em;
}

.gg-ref-table li {
  margin-bottom: 2px;
  font-size: 0.85rem;
}

/* Disclaimer / footer note */

.gg-ref-disclaimer {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 500 0.85rem/1.5 "Outfit", system-ui, sans-serif;
  color: var(--ink-soft);
}

/* Section label — reuses the eyebrow pattern */

.gg-ref-eyebrow {
  margin: 0 0 8px;
  color: var(--brass);
  font: 700 0.78rem/1.2 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gg-ref-table h2 {
  margin: 0 0 18px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #18251f;
}

/* Entry animation */

@media (prefers-reduced-motion: no-preference) {
  @keyframes gg-ref-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .gg-ref-table table {
    animation: gg-ref-fade-up 0.5s ease both;
  }

  .gg-ref-disclaimer {
    animation: gg-ref-fade-up 0.4s ease 0.1s both;
  }
}

/* Responsive */

@media (max-width: 768px) {
  .gg-ref-table table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gg-ref-table th,
  .gg-ref-table td {
    padding: 8px 10px;
  }
}
