html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > footer {
  width: 100%;
  flex-shrink: 0;
}

.official-link {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--brand-yellow);
  border-radius: 10px;
  background: var(--band);
  color: var(--ink);
}

.official-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.datesheet-wrap {
  margin: 18px 0 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface-card);
}

.datesheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.datesheet caption {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.datesheet thead th {
  padding: 12px 16px;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.datesheet tbody th,
.datesheet tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.datesheet tbody th {
  color: var(--ink);
  font-weight: 700;
}

.datesheet tbody td {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.datesheet tbody tr:nth-child(even) {
  background: var(--bg);
}

.datesheet tbody tr:last-child th,
.datesheet tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 560px) {

  .datesheet-wrap {
    border-radius: 12px;
  }

  .datesheet caption {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }

  .datesheet thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .datesheet,
  .datesheet tbody,
  .datesheet tr,
  .datesheet th,
  .datesheet td {
    display: block;
    width: 100%;
  }

  .datesheet tbody tr {
    padding: 4px 0;
    border-bottom: 1px solid var(--rule);
  }

  .datesheet tbody tr:last-child {
    border-bottom: 0;
  }

  .datesheet tbody th,
  .datesheet tbody td {
    padding: 6px 14px;
    border-bottom: 0;
  }

  .datesheet tbody th {
    padding-top: 10px;
    font-size: 1rem;
  }

  .datesheet tbody td {
    padding-bottom: 10px;
    white-space: normal;
  }

  .datesheet tbody th::before,
  .datesheet tbody td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 58px;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}
