.toc-topbar p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.toc-list .toc-locked {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  color: #5d6770;
  background: #f3f5f6;
  border-radius: 14px;
}

.toc-lock {
  color: #704214;
  font-weight: 800;
  white-space: nowrap;
}

.toc-list li:has(.toc-locked) {
  opacity: .82;
}

.toc-shell {
  width: min(1080px, calc(100% - 28px));
  margin: 30px auto 70px;
}

.toc-intro {
  padding: 38px 42px 30px;
}

.toc-intro h1 {
  margin: .15em 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.toc-intro > p:not(.eyebrow):not(.toc-status) {
  margin-top: 8px;
  color: var(--muted);
}

.toc-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 24px;
}

.toc-search {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.toc-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.toc-search input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(32, 99, 155, .15);
}

.toc-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.toc-range {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.toc-range.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.toc-status {
  min-height: 26px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 800;
}

.toc-content {
  margin-top: 22px;
  padding: 24px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  background: #fafbfc;
  color: var(--ink);
  text-decoration: none;
}

.toc-list a:hover {
  border-color: var(--blue);
  background: #eef5f8;
  transform: translateY(-1px);
}

.toc-list a:focus-visible {
  outline: 3px solid #f2bd46;
  outline-offset: 2px;
}

.toc-day {
  color: var(--red);
  font-size: .82rem;
  font-weight: 900;
}

.toc-title {
  min-width: 0;
}

.toc-title strong,
.toc-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc-title strong {
  color: var(--navy);
}

.toc-title span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: .93rem;
}

.toc-arrow {
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 900;
}

.toc-empty {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 760px) {
  .toc-topbar p {
    display: none;
  }

  .toc-shell {
    width: min(100% - 18px, 680px);
    margin-top: 12px;
  }

  .toc-intro {
    padding: 30px 22px 24px;
  }

  .toc-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .toc-content {
    padding: 12px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }
}
