.ref-archive,
.ref-field,
.ref-guide {
  color: #f4f3ef;
  font-family: Barlow, system-ui, sans-serif;
}

.ref-heading { margin: 0 0 22px; }
.ref-heading h2,
.ref-field-note h3,
.ref-guide h3 {
  margin: 0;
  color: #f4f3ef;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.05;
}
.ref-heading h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.ref-heading p,
.ref-field-note p,
.ref-guide p,
.ref-guide dd {
  margin: 8px 0 0;
  color: #b9bbc0;
  font-size: .95rem;
  line-height: 1.55;
}
.ref-heading p { max-width: 65ch; }
.ref-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr));
  gap: 12px;
}
.ref-year-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 18px 14px;
  color: #f4f3ef;
  background: #1b1e22;
  border: 1px solid #363a3d;
  border-radius: 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ref-year-card.is-selected { border-color: #a6883c; }
.ref-year-top { display: flex; align-items: center; justify-content: space-between; }
.ref-year-number,
.ref-open-year,
.ref-mark,
.ref-seed,
.ref-validation strong { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; }
.ref-year-number { font-size: 3rem; line-height: .95; }
.ref-open-year {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #45494c;
  border-radius: 50%;
  color: #c6c8c8;
}
.ref-open-year svg { width: 15px; height: 15px; }
.ref-card-status,
.ref-label,
.ref-table thead th {
  color: #acafb1;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1.35;
  text-transform: uppercase;
}
.ref-card-status {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
}
.ref-card-status svg { width: 13px; height: 13px; }
.ref-year-card.is-selected .ref-card-status,
.ref-year-card.is-selected .ref-open-year { color: #f4c64e; }
.ref-card-line,
.ref-team { display: flex; align-items: center; gap: 11px; }
.ref-card-line { margin: 23px 0 15px; }
.ref-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 6px;
  color: var(--badge-ink);
  background: var(--badge-bg);
  font-size: 1.05rem;
  line-height: 1;
}
.ref-card-line .ref-label,
.ref-card-line strong { display: block; }
.ref-card-line strong { margin-top: 1px; font-size: .98rem; }
.ref-archive-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #393c40;
  color: #c0c2c2;
  font-size: .8rem;
  line-height: 1.35;
}
.ref-archive-foot svg { flex: 0 0 auto; width: 14px; height: 14px; color: #c1a76b; }
.ref-field { border: 1px solid #34383c; border-radius: 12px; background: #1b1e22; }
.ref-field .ref-heading { margin: 0; padding: 23px 25px; }
.ref-field .ref-heading h2 { font-size: 1.8rem; }
.ref-field .ref-heading p { font-size: .86rem; }
.ref-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ref-table th,
.ref-table td { padding: 10px 14px; text-align: left; vertical-align: middle; }
.ref-table thead th { background: #17191c; }
.ref-table thead th:first-child,
.ref-table td:first-child { padding-left: 25px; }
.ref-table tbody tr { border-top: 1px solid #323538; }
.ref-table td { color: #ccd0d0; font-size: .88rem; }
.ref-table .ref-seed { width: 1%; color: #f4f3ef; font-size: 1.24rem; }
.ref-team-text { min-width: 0; }
.ref-team-text strong { display: block; font-size: .98rem; line-height: 1.2; }
.ref-team-text small { display: block; padding-top: 3px; color: #adb1b3; font-size: .76rem; font-weight: 400; }
.ref-team-text .ref-mobile-path { display: none; }
.ref-table .ref-number { white-space: nowrap; }
.ref-table abbr { text-decoration: none; }
.ref-table .ref-bye { color: #f2cd68; }
.ref-field-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 25px;
  border-top: 1px solid #383c40;
}
.ref-field-note > svg { flex: 0 0 auto; width: 18px; height: 18px; color: #f4c64e; }
.ref-field-note h3 { font-size: 1.25rem; }
.ref-field-note p { margin-top: 5px; max-width: 78ch; font-size: .88rem; }
.ref-sources { display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 8px 0 0; }
.ref-sources a {
  display: inline-block;
  padding: 5px 0;
  color: #f4cf69;
  font-size: .83rem;
  line-height: 1.4;
  text-underline-offset: .2em;
  text-decoration-line: underline;
}
.ref-guide section { padding: 19px 0; border-bottom: 1px solid #373a3d; }
.ref-guide section:first-child { padding-top: 0; }
.ref-guide section:last-child { padding-bottom: 0; border-bottom: 0; }
.ref-guide h3 { font-size: 1.5rem; }
.ref-guide dl { margin: 15px 0; }
.ref-factors > div { padding: 0 0 0 12px; border-left: 2px solid #695b35; }
.ref-factors > div + div { margin-top: 13px; }
.ref-factors dt { font-size: .92rem; font-weight: 700; }
.ref-guide dd { margin: 2px 0 0; font-size: .88rem; }
.ref-validation { display: flex; gap: 32px; margin-top: 16px; }
.ref-validation strong,
.ref-validation span { display: block; }
.ref-validation strong { color: #f4c64e; font-size: 2.15rem; line-height: 1; }
.ref-validation small { font-size: 1.15rem; }
.ref-validation span { color: #babdc0; margin-top: 3px; font-size: .8rem; }
.ref-year-card:focus-visible,
.ref-sources a:focus-visible { outline: 2px solid #f4c64e; outline-offset: 3px; }
.ref-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (hover: hover) {
  .ref-year-card:hover { border-color: #a68b50; background: #222427; }
  .ref-year-card:hover .ref-open-year { color: #181a1d; border-color: #f4c64e; background: #f4c64e; }
  .ref-sources a:hover { color: #ffe6a4; }
}
@media (max-width: 720px) {
  .ref-field .ref-heading,
  .ref-field-note { padding: 17px; }
  .ref-table .ref-wide-col { display: none; }
  .ref-team-text .ref-mobile-path { display: block; color: #d1bf8c; }
  .ref-table th,
  .ref-table td { padding: 10px 7px; }
  .ref-table th:first-child,
  .ref-table td:first-child,
  .ref-table thead th:first-child { padding-left: 15px; }
  .ref-table th:last-of-type:not(.ref-wide-col),
  .ref-table td:nth-child(4) { padding-right: 13px; }
  .ref-team { gap: 8px; }
  .ref-table .ref-mark { width: 30px; height: 30px; font-size: .9rem; }
  .ref-archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 460px) {
  .ref-archive-grid { gap: 8px; }
  .ref-year-card { padding: 13px; }
  .ref-year-number { font-size: 2.3rem; }
  .ref-open-year { width: 25px; height: 25px; }
  .ref-card-line { gap: 6px; margin: 16px 0 13px; }
  .ref-card-line .ref-mark { width: 25px; height: 25px; font-size: .8rem; }
  .ref-card-line strong { font-size: .88rem; }
  .ref-archive-foot { font-size: .72rem; align-items: flex-start; }
  .ref-table thead th { font-size: .58rem; letter-spacing: .035em; }
  .ref-table .ref-mark { display: none; }
  .ref-team-text strong { font-size: .9rem; }
  .ref-team-text small { font-size: .7rem; }
}
