/* Extension to IUHC visual identity: archival registry and local Commissioner tool. */
.ledger-hero {
  background: radial-gradient(ellipse at 83% 20%, #28405b, #111f32 55%, #091626);
  color: #f9f4ea;
  overflow: hidden;
}
/* The title band on every inner page: the office, the title, a line or two. The seal is in the header. */
.ledger-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 32px;
  padding: 36px 0 32px;
}
.ledger-hero h1 {
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
  font-family: var(--serif);
}
.ledger-hero h1 em {
  font-weight: 400;
  font-style: italic;
  color: #e8ddc9;
}
.ledger-hero p:not(.eyebrow) {
  font-size: 21px;
  max-width: 640px;
  margin: 0 0 8px;
}
.ledger-hero p.ledger-rule {
  color: #d6c8b4;
  font-style: italic;
  font-size: 18px;
}
.ledger-content {
  padding-top: 76px;
  padding-bottom: 110px;
}
.ledger-kicker {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 27px;
}
.ledger-kicker h2 {
  font-size: clamp(47px, 4vw, 70px);
  font-weight: 500;
  line-height: 1;
  margin: 5px 0;
  font-family: var(--serif);
}
.ledger-kicker > p {
  font: 600 11px/1.7 var(--sans);
  letter-spacing: 0.15em;
  text-align: right;
  color: var(--muted-ink);
}
.ledger-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #f8f5ee;
  margin: 31px 0 40px;
}
.ledger-stat-grid > div {
  border-right: 1px solid var(--line);
  padding: 23px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}
.ledger-stat-grid > div:last-child {
  border-right: 0;
}
.ledger-stat-num {
  font-size: 64px;
  line-height: 1;
  color: var(--navy);
  font-family: var(--serif);
}
.ledger-stat-grid > div > span:last-child {
  font: 600 11px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64605b;
}
.ledger-controls {
  display: flex;
  gap: 20px;
  align-items: end;
  margin-bottom: 17px;
}
.ledger-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 700 11px var(--sans);
  letter-spacing: 0.13em;
}
.ledger-controls label:first-child {
  flex: 2;
}
.ledger-controls label:nth-child(2) {
  flex: 1;
}
.ledger-controls input,
.ledger-controls select {
  appearance: none;
  border: 1px solid #d0c7b9;
  background: #fffefa;
  padding: 15px 16px;
  font: 15px var(--sans);
  color: var(--ink);
  min-width: 0;
  width: 100%;
  border-radius: 0;
}
.ledger-result-count {
  font: 600 11px var(--sans);
  color: var(--muted-ink);
  padding: 0 0 16px;
  white-space: nowrap;
}
.ledger-list {
  display: grid;
  gap: 14px;
}
.match-card {
  background: #fffdf7;
  border: 1px solid #dad3c6;
}
.match-top,
.match-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 22px;
  background: #f0ece4;
}
.match-id,
.match-date,
.match-status {
  font: 700 11px var(--sans);
  letter-spacing: 0.12em;
  color: #6b675f;
}
.match-bottom {
  background: #fffdf7;
  border-top: 1px solid #e0d8cc;
  padding-top: 13px;
  padding-bottom: 15px;
}
.match-bottom button {
  background: none;
  border: 0;
  color: #705122;
}
.match-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding: 29px 26px 23px;
}
.match-main > div:last-child {
  border-left: 1px solid #dfd7c8;
  padding-left: 35px;
}
.match-meta-label {
  font: 700 11px var(--sans);
  letter-spacing: 0.18em;
  color: var(--gold-ink);
}
.match-winner {
  font: 500 clamp(28px, 3vw, 42px)/1.1 var(--serif);
  margin: 8px 0 5px;
}
.match-opponent,
.match-finding {
  font-size: 17px;
  color: #514c46;
  line-height: 1.5;
  margin: 6px 0 0;
}
/* The Committee's notation on a result: where the archive keeps its remarks. */
.match-note,
.home-sample-body .home-sample-note {
  font-size: 16px !important;
  font-style: italic;
  line-height: 1.4;
  color: #4d5560;
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}
@media (min-width: 1051px) {
  .home-registry h2 .one-line {
    white-space: nowrap;
  }
}
.match-class {
  font: 700 11px/1.5 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: #e7e3dc;
  color: #4d5258;
  padding: 7px 10px;
  display: inline-block;
}
.match-class.championship {
  background: var(--navy);
  color: #e1be79;
}
.ledger-empty {
  padding: 55px 30px;
  text-align: center;
  border: 1px dashed #c9bea9;
  background: #f5efe5;
}
.ledger-empty h3 {
  font-size: 38px;
  font-weight: 500;
  margin: 0;
  font-family: var(--serif);
}
.ledger-empty p {
  font-size: 17px;
  margin: 10px 0 0;
}
.ledger-policy {
  background: var(--navy);
  color: #f9f4e9;
  padding: 80px 0 92px;
}
.ledger-policy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 9%;
}
.ledger-policy h2 {
  font-size: clamp(44px, 4vw, 69px);
  line-height: 1.05;
  font-weight: 500;
  margin: 17px 0;
  font-family: var(--serif);
}
.ledger-policy h2 em {
  color: var(--gold);
  font-weight: 400;
}
.ledger-policy p {
  font-size: 19px;
  line-height: 1.4;
  max-width: 570px;
}
.ledger-policy .button {
  margin-top: 14px;
  display: inline-block;
}
.registry-dialog {
  max-width: 780px;
}
.registry-report-head {
  display: flex;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.registry-report-head img {
  width: 85px;
}
.registry-report-head p {
  letter-spacing: 0.09em;
  font-size: 18px;
  line-height: 1.2;
}
.registry-report-head p small {
  font: 600 11px var(--sans);
  color: #827c70;
}
.registry-dialog h2 {
  font-size: 50px;
  line-height: 1.05;
  margin: 13px 0 25px;
  font-family: var(--serif);
}
.report-table {
  border-block: 1px solid var(--line);
  margin: 22px 0;
}
.report-row {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 8px;
  border-bottom: 1px solid #e5dfd5;
  padding: 11px 2px;
}
.report-row:last-child {
  border: 0;
}
.report-row dt {
  font: 700 11px var(--sans);
  color: #605e59;
}
.report-row dd {
  margin: 0;
  font-size: 17px;
}
.report-body > p {
  font-size: 18px;
  line-height: 1.5;
}
.registry-legal {
  font: italic 14px/1.6 var(--text);
  color: #635b53;
}
.registry-signature {
  font-size: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--serif);
}
.registry-signature small {
  font-size: 14px;
}
/* Homepage teaser */
.home-registry {
  background: #f3eee4;
  padding: 64px 0 70px;
  border-top: 1px solid #e1d8c9;
}
.home-registry-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 6%;
  align-items: center;
}
.home-registry h2 {
  font-size: clamp(40px, 3.9vw, 62px);
  line-height: 1.05;
  font-weight: 500;
  margin: 16px 0;
  font-family: var(--serif);
}
.home-registry p:not(.eyebrow) {
  font-size: 19px;
  line-height: 1.42;
}
.home-registry .button {
  margin-top: 15px;
  display: inline-block;
}
.home-sample-card {
  background: #fcfaf5;
  border: 1px solid #ded4c4;
  box-shadow: 0 12px 38px #131d2520;
}
.home-sample-top {
  background: var(--navy);
  color: #f9f4e8;
  font: 600 11px var(--sans);
  letter-spacing: 0.12em;
  padding: 18px 23px;
  display: flex;
  justify-content: space-between;
}
.home-sample-body {
  padding: 24px 25px;
}
.home-sample-body h3 {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 9px;
  font-family: var(--serif);
}
.home-sample-body p {
  font-size: 17px !important;
  margin: 7px 0;
}
.home-sample-body .status {
  color: #755829;
  font: 700 11px/1.7 var(--sans);
  letter-spacing: 0.09em;
}
.home-sample-foot {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  font: 600 11px var(--sans);
  letter-spacing: 0.14em;
  color: var(--muted-ink);
}
@media (max-width: 980px) {
  .home-registry-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .ledger-kicker > p {
    display: none;
  }
}
@media (max-width: 660px) {
  .ledger-hero h1 {
    position: relative;
  }
  .ledger-content {
    padding-top: 42px;
    padding-bottom: 60px;
  }
  .ledger-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ledger-stat-grid > div:nth-child(2) {
    border-right: 0;
  }
  .ledger-stat-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .ledger-stat-grid > div {
    padding: 15px 8px;
  }
  .ledger-stat-num {
    font-size: 48px;
    font-family: var(--serif);
  }
  .ledger-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ledger-result-count {
    padding: 0;
  }
  .match-main {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 19px;
  }
  .match-main > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }
  .match-top,
  .match-bottom {
    padding: 12px 17px;
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .match-bottom button {
    font-size: 11px;
  }
  .ledger-policy {
    padding: 55px 0;
  }
  .ledger-policy-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ledger-policy p {
    font-size: 18px;
  }
  .report-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .registry-dialog {
    padding: 22px;
  }
  .registry-report-head img {
    width: 58px;
  }
  .registry-report-head p {
    font-size: 14px;
  }
  .registry-dialog h2 {
    font-size: 40px;
    font-family: var(--serif);
  }
  .home-registry {
    padding: 47px 0;
  }
  .home-sample-top {
    font-size: 11px;
  }
  .home-sample-body {
    padding: 18px;
  }
}
/* Shorter title banners on phones, so the page's purpose is on the first screen. */
@media (max-width: 700px) {
  .ledger-hero-inner {
    min-height: 0;
    padding: 34px 0 30px;
  }
  .ledger-hero h1 {
    font-size: clamp(38px, 11vw, 48px);
    margin: 12px 0 16px;
    font-family: var(--serif);
  }
  .ledger-hero p:not(.eyebrow) {
    font-size: 18px;
  }
  .ledger-hero p.ledger-rule {
    font-size: 17px;
  }
}

.match-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

/* No record of this page (404.astro) */
.not-found {
  padding: 56px 0 84px;
}
.not-found-body {
  max-width: 720px;
}
.not-found-body p:not(.not-found-links) {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 28px 0 0;
}
