/* ClaimLab live train discovery */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.journey-prefill {
  width: min(700px, 100%);
  margin-top: 28px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d6dfda;
  border-radius: 9px;
  background: #f4f8f6;
}

.journey-prefill > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.journey-prefill span {
  color: #7f8a84;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.journey-prefill strong {
  color: #173129;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.journey-prefill small {
  color: #69766f;
  font-size: 9.5px;
}

.journey-prefill button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #52645d;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Homepage live module */
.today-claims {
  width: min(900px, calc(100% - 48px));
  margin: 62px auto 28px;
  padding: 34px 0 0;
  border-top: 1px solid #dbe1dd;
}

.today-claims-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  margin-bottom: 24px;
}

.today-claims-head h2 {
  max-width: 610px;
  margin: 0;
  color: #15231e;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.038em;
}

.today-claims-head p {
  max-width: 600px;
  margin: 12px 0 0;
  color: #68746e;
  font-size: 11px;
  line-height: 1.65;
}

.today-all-link {
  padding-bottom: 2px;
  color: #214c3f;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.today-all-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.today-claims-list {
  border-top: 1px solid #e0e5e2;
}

.today-claim-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 150px 126px;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e5e9e6;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease;
}

.today-claim-row:hover,
.today-claim-row:focus-visible {
  background: #f0f5f1;
}

.today-claim-row:focus-visible,
.today-train-row:focus-visible {
  outline: 2px solid #28674f;
  outline-offset: 3px;
}

.today-claim-time {
  color: #1f2d28;
  font-size: 12px;
  font-weight: 600;
}

.today-claim-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.today-claim-main strong {
  overflow: hidden;
  color: #273630;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-claim-main span {
  overflow: hidden;
  color: #78827d;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-claim-signal {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.today-claim-signal > b {
  color: #35463f;
  font-size: 11px;
  font-weight: 600;
}

.today-claim-row-action {
  justify-self: end;
  color: #1c5545;
  font-size: 9.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.claim-signal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.claim-signal-strong {
  background: #e5f1ec;
  color: #15513f;
}

.claim-signal-possible,
.claim-signal-review {
  background: #f3efe2;
  color: #76601f;
}

/* Full today page */
.today-page {
  background: #f8f9f7;
}

.today-nav-active {
  color: #173d32 !important;
}

.today-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0 84px;
}

.today-hero {
  max-width: 820px;
  padding-bottom: 50px;
}

.today-hero h1 {
  margin: 0;
  color: #14231e;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(54px, 6.8vw, 82px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
}

.today-hero > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #5d6963;
  font-size: 14px;
  line-height: 1.7;
}

.today-freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #78837e;
  font-size: 9.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #257158;
  box-shadow: 0 0 0 4px rgba(37,113,88,.08);
}

.today-board {
  border-top: 1px solid #d9dfdb;
}

.today-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e1e5e2;
}

.today-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.today-filter {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #68746e;
  cursor: pointer;
  font: inherit;
  font-size: 9.5px;
  font-weight: 600;
}

.today-filter span {
  margin-left: 5px;
  color: #9aa39f;
  font-weight: 500;
}

.today-filter:hover {
  background: #f1f4f2;
}

.today-filter.active {
  border-color: #ced8d3;
  background: #fff;
  color: #193b31;
}

.today-search input {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #d1d8d4;
  border-radius: 6px;
  background: #fff;
  color: #18251f;
  font: inherit;
  font-size: 10.5px;
  outline: none;
}

.today-search input:focus {
  border-color: #62877b;
  box-shadow: 0 0 0 2px rgba(18,75,62,.07);
}

.today-board-meta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #89928e;
  font-size: 8.5px;
  border-bottom: 1px solid #e5e8e6;
}

.today-board-meta span:first-child {
  color: #5e6b65;
  font-weight: 600;
}

.today-train-list {
  min-height: 160px;
}

.today-train-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 170px 132px;
  gap: 22px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e1e5e2;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease;
}

.today-train-row:hover,
.today-train-row:focus-visible {
  background: #f0f5f1;
}

.today-train-time {
  display: grid;
  gap: 2px;
}

.today-train-time strong {
  color: #17261f;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.today-train-time span {
  color: #929a96;
  font-size: 8.5px;
}

.today-train-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.today-train-name {
  overflow: hidden;
  color: #293731;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-train-route {
  overflow: hidden;
  color: #78837d;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-train-status {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.today-train-status > strong {
  color: #5e6964;
  font-size: 11px;
  font-weight: 600;
}

.today-train-status > strong.late {
  color: #815d13;
}

.today-train-status > strong.cancelled {
  color: #944c43;
}

.today-train-action {
  justify-self: end;
  color: #1a5645;
  font: inherit;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.today-train-row:hover .today-train-action,
.today-train-row:focus-visible .today-train-action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.today-loading,
.today-error,
.today-empty {
  padding: 40px 0;
  color: #7b8580;
  font-size: 10.5px;
}

.today-empty {
  display: grid;
  gap: 5px;
}

.today-empty strong {
  color: #45524c;
  font-size: 12px;
}

.today-load-more {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid #d2d9d5;
  border-radius: 6px;
  background: #fff;
  color: #30423a;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
}

.today-load-more:hover {
  border-color: #b9c3be;
  background: #fbfcfb;
}

/* Journey handoff sheet */
body.sheet-open {
  overflow: hidden;
}

.journey-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,28,23,.28);
  backdrop-filter: blur(2px);
}

.journey-sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(520px, 100%);
  height: 100dvh;
  overflow-y: auto;
  padding: 46px 42px 36px;
  border-left: 1px solid #d7deda;
  background: #fcfdfb;
  box-shadow: -24px 0 70px rgba(15,37,29,.12);
}

.journey-sheet-close {
  position: absolute;
  top: 18px;
  right: 21px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dce2df;
  border-radius: 50%;
  background: #fff;
  color: #65726b;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.journey-sheet h2 {
  max-width: 390px;
  margin: 0;
  color: #14231e;
  font-family: "Newsreader", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.journey-sheet-train {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 24px;
  padding: 15px 0;
  border-top: 1px solid #dfe4e1;
  border-bottom: 1px solid #dfe4e1;
}

.journey-sheet-train strong {
  width: 100%;
  color: #27352f;
  font-size: 12px;
  font-weight: 600;
}

.journey-sheet-train > span:not(.claim-signal) {
  color: #76817b;
  font-size: 9.5px;
}

.journey-sheet-copy {
  margin: 19px 0 0;
  color: #65716b;
  font-size: 11px;
  line-height: 1.65;
}

.journey-stop-fields {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.journey-stop-fields label {
  display: grid;
  gap: 7px;
}

.journey-stop-fields label > span {
  color: #59655f;
  font-size: 9.5px;
  font-weight: 600;
}

.journey-stop-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd7d3;
  border-radius: 6px;
  background: #fff;
  color: #1f2e28;
  font: inherit;
  font-size: 11.5px;
  outline: none;
}

.journey-stop-fields select:focus {
  border-color: #52786c;
  box-shadow: 0 0 0 2px rgba(18,75,62,.07);
}

.journey-specific-signal {
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid #dfe4e1;
  border-bottom: 1px solid #dfe4e1;
}

.journey-specific-signal > span {
  display: block;
  color: #909995;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.journey-specific-signal > strong {
  display: block;
  margin-top: 5px;
  color: #18382e;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.journey-specific-signal > p {
  margin: 8px 0 0;
  color: #68746e;
  font-size: 10.5px;
  line-height: 1.6;
}

.journey-continue {
  width: 100%;
  min-height: 50px;
  margin-top: 23px;
  border-radius: 7px;
}

.journey-sheet-note {
  margin: 10px 0 0;
  color: #909995;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .today-claims {
    width: calc(100% - 28px);
  }

  .today-claims-head {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .today-all-link {
    justify-self: start;
  }

  .today-claim-row {
    grid-template-columns: 50px minmax(0,1fr) auto;
    gap: 12px;
  }

  .today-claim-signal {
    justify-self: end;
  }

  .today-claim-row-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .today-shell {
    width: calc(100% - 28px);
    padding-top: 58px;
  }

  .today-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .today-search {
    width: 100%;
  }

  .today-board-meta {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
  }

  .today-train-row {
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 12px;
    padding: 14px 0;
  }

  .today-train-status {
    justify-self: end;
  }

  .today-train-action {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .journey-prefill {
    align-items: flex-start;
    flex-direction: column;
  }

  .today-claims {
    margin-top: 42px;
  }

  .today-claims-head h2 {
    font-size: 34px;
  }

  .today-claim-row {
    grid-template-columns: 48px minmax(0,1fr);
  }

  .today-claim-signal {
    grid-column: 2;
    justify-self: start;
  }

  .today-shell {
    width: calc(100% - 24px);
  }

  .today-hero h1 {
    font-size: clamp(46px, 13vw, 60px);
  }

  .today-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .today-filter {
    text-align: left;
  }

  .today-train-row {
    grid-template-columns: 52px minmax(0,1fr);
  }

  .today-train-status {
    grid-column: 2;
    justify-self: start;
  }

  .journey-sheet {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(88dvh, 760px);
    padding: 38px 20px 28px;
    border-top: 1px solid #d7deda;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .journey-sheet h2 {
    font-size: 40px;
  }
}


/* Major-delay emphasis */
.today-major-callout {
  width: min(620px, 100%);
  margin-top: 28px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  border: 1px solid #cbd9d2;
  border-radius: 10px;
  background: #f1f7f4;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.today-major-callout:hover {
  border-color: #aac0b6;
  background: #edf5f1;
}

.today-major-number {
  min-width: 62px;
  color: #124b3e;
  font-family: "Newsreader", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.05em;
}

.today-major-copy {
  display: grid;
  gap: 4px;
}

.today-major-copy strong {
  color: #234037;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.today-major-copy small {
  color: #62736b;
  font-size: 9.5px;
}

.today-filter-major {
  color: #184b3d;
}

.today-filter-major span {
  color: #3f7263;
}

.today-filter-major.active {
  border-color: #9fbaae;
  background: #eaf3ef;
  color: #103e33;
}

.today-train-row.is-major {
  border-bottom-color: #dfe4e1;
  background: transparent;
}

.today-train-row.is-major::before,
.today-train-row.is-severe::before {
  display: none;
}

.today-train-status > strong.major {
  color: #17261f;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
}

.today-train-row.is-severe .today-train-status > strong.major {
  font-size: 20px;
}

.today-train-status small,
.today-claim-signal small {
  color: #7f8b85;
  font-size: 8px;
  line-height: 1.35;
}

.today-eligibility {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.today-eligibility-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #285b4d;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.3;
}

.today-eligibility-label::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #386f5f;
}

.today-eligibility-detail {
  color: #87918c;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.35;
}

.major-delay-badge {
  display: none;
}

.today-claim-row.is-major {
  background: transparent;
}

.today-claim-row.is-major::before {
  display: none;
}

.today-claim-signal > b.major {
  color: #17261f;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.03em;
}

@media (max-width: 560px) {
  .today-major-callout {
    padding: 16px;
  }

  .today-major-number {
    min-width: 52px;
    font-size: 38px;
  }

  .today-train-row.is-major {
    margin-inline: 0;
    padding-inline: 0;
  }

  .today-claim-row.is-major {
    margin-inline: 0;
    padding-inline: 14px 0;
  }

  .today-train-status > strong.major {
    font-size: 17px;
  }
}


/* Exact stop-level delay breakdown */
.journey-delay-breakdown {
  margin-top: 24px;
  padding: 18px 0 2px;
  border-top: 1px solid #dfe4e1;
  border-bottom: 1px solid #dfe4e1;
}

.journey-delay-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.journey-delay-head h3 {
  margin: 0;
  color: #24332d;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.journey-delay-head > strong {
  color: #124b3e;
  font-family: "Newsreader", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}

#journey-delay-summary {
  margin: 9px 0 14px;
  color: #6d7973;
  font-size: 9.5px;
  line-height: 1.55;
}

.journey-delay-stops {
  max-height: 286px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #e5e9e6;
}

.journey-delay-stop {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid #edf0ee;
}

.journey-delay-stop-main,
.journey-delay-stop-value {
  display: grid;
  gap: 2px;
}

.journey-delay-stop-main strong {
  color: #3b4943;
  font-size: 10px;
  font-weight: 600;
}

.journey-delay-stop-main span {
  color: #969e9a;
  font-size: 8px;
}

.journey-delay-stop-value {
  justify-items: end;
}

.journey-delay-stop-value strong {
  color: #737e78;
  font-size: 10px;
  font-weight: 600;
}

.journey-delay-stop-value span {
  color: #1a5a48;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.journey-delay-stop.is-major {
  margin-inline: -8px;
  padding-inline: 10px 8px;
  border-bottom-color: #dbe7e1;
  background: #eef6f2;
}

.journey-delay-stop.is-major .journey-delay-stop-main strong {
  color: #183c31;
}

.journey-delay-stop.is-major .journey-delay-stop-value strong {
  color: #124b3e;
  font-size: 13px;
}

.journey-delay-stop.is-severe {
  background: #e5f1eb;
}

/* 60+ is a signal inside possible compensation, never a separate product tab. */
.today-train-row.is-major .major-delay-badge,
.today-claim-row.is-major .major-delay-badge {
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .journey-delay-head {
    align-items: flex-start;
  }

  .journey-delay-head > strong {
    font-size: 24px;
  }

  .journey-delay-stops {
    max-height: 240px;
  }
}


/* Peak delay is the primary delay metric for a journey. */
.today-train-status > strong.late {
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.025em;
}

.today-claim-signal > b.peak-delay {
  color: #71520f;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -.025em;
}

.today-train-status > small,
.today-claim-signal > small {
  max-width: 170px;
  color: #7d8882;
  font-size: 8px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .today-train-status > strong.late,
  .today-claim-signal > b.peak-delay {
    font-size: 14px;
  }
}


/* Compensation application gate */
.journey-apply-intro {
  margin-top: 22px;
}

.journey-apply-intro > p:first-child {
  margin: 0;
  color: #5f6c66;
  font-size: 11px;
  line-height: 1.7;
}

.journey-apply-points {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid #dfe4e1;
  border-bottom: 1px solid #dfe4e1;
}

.journey-apply-points > div {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 3px 10px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0ee;
}

.journey-apply-points > div:last-child {
  border-bottom: 0;
}

.journey-apply-points span {
  grid-row: 1 / span 2;
  color: #97a09b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.journey-apply-points strong {
  color: #263730;
  font-size: 10.5px;
  font-weight: 600;
}

.journey-apply-points small {
  color: #7b8680;
  font-size: 9px;
  line-height: 1.45;
}

.journey-apply-start {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border-radius: 7px;
}

.journey-apply-details {
  margin-top: 2px;
}

.today-train-action.is-apply {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #cfd7d3;
  border-radius: 5px;
  background: #fff;
  color: #243c34;
  text-decoration: none;
}

.today-train-action.is-apply:hover {
  border-color: #aebbb5;
  background: #f8faf9;
  color: #173d32;
  text-decoration: none;
}

@media (max-width: 560px) {
  .today-train-action.is-apply {
    min-height: 34px;
    padding-inline: 11px;
  }
}


/* Historical journey entry */
.history-entry {
  width: min(900px, calc(100% - 48px));
  margin: 28px auto 8px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 32px;
  align-items: end;
  border-top: 1px solid #e0e5e2;
  border-bottom: 1px solid #e0e5e2;
}

.history-entry h2 {
  max-width: 620px;
  margin: 0;
  color: #17261f;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(30px, 3.7vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}

.history-entry p {
  max-width: 610px;
  margin: 10px 0 0;
  color: #6d7872;
  font-size: 10.5px;
  line-height: 1.65;
}

.history-entry > a {
  padding-bottom: 2px;
  color: #1d5142;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.history-entry > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .history-entry {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .history-entry > a {
    justify-self: start;
  }
}

/* One consistent, thumb-friendly period switch on both public delay pages. */
.delay-period-nav {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 38px;
  padding: 4px;
  border: 1px solid #dce4de;
  border-radius: 9px;
  background: #f0f3ef;
}
.delay-period-nav a {
  padding: 10px 27px;
  border-radius: 6px;
  color: #5d6963;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.delay-period-nav a:hover { color: #173d32; }
.delay-period-nav a.is-current {
  background: #fff;
  color: #153f32;
  box-shadow: 0 1px 3px rgba(16, 31, 21, .08);
}
.delay-period-nav a:focus-visible {
  outline: 2px solid #0c4a3d;
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .delay-period-nav { width: 100%; margin-bottom: 31px; }
  .delay-period-nav a { flex: 1; text-align: center; }
}
