.guide-index {
  --guide-paper: var(--paper);
  --guide-ink: #16283b;
  --guide-muted: #4b5e73;
  --guide-navy: #163653;
  --guide-copper: #a25b36;
  --guide-line: #d4dce6;
  background: var(--guide-paper);
  color: var(--guide-ink);
}

.guide-index .mobile-menu [aria-current="page"] {
  color: var(--guide-navy);
  text-decoration: underline;
  text-decoration-color: var(--guide-copper);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

.guide-index .guide-masthead {
  background: var(--guide-navy);
  color: #faf7ef;
}

.guide-index .guide-masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.3rem, 5.8vw, 5.8rem);
}

.guide-index .guide-masthead-copy {
  padding-block: clamp(.25rem, 1.2vw, 1.3rem);
}

.guide-index .guide-masthead h1 {
  max-width: 11ch;
  font: 500 clamp(3.2rem, 7.5vw, 7.05rem)/.89 var(--serif);
  letter-spacing: -.073em;
  overflow-wrap: break-word;
}

.guide-index .guide-masthead p {
  margin-top: 1.55rem;
  max-width: 31ch;
  color: #f1dec8;
  font-size: clamp(1.03rem, 1.65vw, 1.2rem);
}

.guide-index .guide-masthead-image {
  position: relative;
  padding-left: .85rem;
  border-left: 1px solid #c6946e;
}

.guide-index .guide-masthead-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.35;
  object-fit: cover;
  object-position: center 55%;
}

.guide-index .guide-collection {
  padding-block: clamp(2.7rem, 6.3vw, 6.4rem);
}

.guide-index .guide-controls {
  display: grid;
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.35fr);
  gap: 1.4rem clamp(1.5rem, 5vw, 4.5rem);
  padding-bottom: 1.65rem;
  border-bottom: 1px solid var(--guide-line);
}

.guide-index .guide-search label,
.guide-index .guide-topics legend {
  display: block;
  margin-bottom: .45rem;
  padding: 0;
  color: var(--guide-ink);
  font-weight: 720;
}

.guide-index .guide-search input {
  width: 100%;
  min-height: 3rem;
  padding: .57rem .8rem;
  border: 1px solid #a4b4c5;
  border-radius: .35rem;
  background: #fffdf8;
  color: var(--guide-ink);
  font: inherit;
}

.guide-index .guide-search input::placeholder {
  color: var(--guide-muted);
  opacity: 1;
}

.guide-index .guide-topics { margin: 0; padding: 0; border: 0; min-width: 0; }
.guide-index .guide-topic-list { display: flex; flex-wrap: wrap; gap: .55rem; }

.guide-index .guide-topic-list button {
  min-height: 2.9rem;
  padding: .54rem .88rem;
  border: 1px solid #a4b4c5;
  border-radius: .35rem;
  background: #fffdf8;
  color: var(--guide-ink);
  font: 670 .94rem/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
}

.guide-index .guide-topic-list button:hover { background: #e7eff7; }
.guide-index .guide-topic-list button[aria-pressed="true"] { border-color: var(--guide-navy); background: var(--guide-navy); color: #faf7ef; }
.guide-index button:focus-visible,
.guide-index input:focus-visible { outline: 2px solid #356d97; outline-offset: 3px; }

.guide-index .guide-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  min-height: 3.65rem;
  margin-block: .55rem;
}

.guide-index .guide-result-count { color: var(--guide-muted); font-weight: 700; }
.guide-index .guide-reset {
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: var(--guide-navy);
  font: 700 .95rem/1.35 var(--sans);
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

.guide-index .guide-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-index .guide-card a {
  display: flex;
  flex-direction: column;
  gap: .63rem;
  height: 100%;
  padding: clamp(1.25rem, 2.65vw, 2.25rem);
  border: 1px solid var(--guide-line);
  border-top: 2px solid var(--guide-copper);
  background: #fffdf8;
  text-decoration: none;
}

.guide-index .guide-card-featured a { border-top-color: var(--guide-navy); background: #f4f8fc; }
.guide-index .guide-card a:hover { background: #ecf2f9; }
.guide-index .guide-card a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.guide-index .guide-card h3 { max-width: none; color: var(--guide-ink); font: 600 clamp(1.35rem, 2vw, 1.75rem)/1.15 var(--serif); letter-spacing: -.03em; }
.guide-index .guide-card p { color: var(--guide-muted); }
.guide-index .guide-card .guide-card-topic { color: #895030; font-size: .92rem; font-weight: 720; }

.guide-index .guide-empty {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--guide-line);
  background: #fffdf8;
}

.guide-index .guide-empty h3 { max-width: 24ch; }
.guide-index .guide-empty p { margin-block: .55rem .75rem; color: var(--guide-muted); }

@media (max-width: 880px) {
  .guide-index .guide-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-index .guide-controls { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .guide-index .guide-masthead-inner { grid-template-columns: 1fr; }
  .guide-index .guide-masthead h1 { font-size: clamp(2.85rem, 11vw, 4.7rem); }
  .guide-index .guide-masthead p { margin-top: 1rem; }
  .guide-index .guide-masthead-image img { aspect-ratio: 1.9; }
  .guide-index .guide-results { grid-template-columns: 1fr; }
}

.guide-index .guide-documents-link {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: .53rem .85rem;
  border: 1px solid #cfaa88;
  border-radius: .38rem;
  color: #f9dfc8;
  font-weight: 690;
}

.guide-index .guide-documents-link:hover { background: #325478; }
.guide-index .guide-documents-link:focus-visible { outline-color: #f6d6ba; }

.guide-index .guide-official {
  padding-block: 0 clamp(3rem, 6vw, 5.5rem);
}

.guide-index .guide-official h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); text-wrap: initial; }

.guide-index .guide-official ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-index .guide-official li {
  padding: 1rem 1.12rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fcfbf5;
}

.guide-index .guide-official a { display: inline-flex; min-height: 2.75rem; align-items: center; color: #2a5b81; font-weight: 720; }
.guide-index .guide-official p { color: var(--muted); font-size: .95rem; }

@media (max-width: 660px) {
  .guide-index .guide-official ul { grid-template-columns: 1fr; }
}

.guide-index .guide-official h3 { margin-top: 1.85rem; max-width: none; }
.guide-index .guide-official .guide-notices { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 660px) {
  .guide-index .guide-official .guide-notices { grid-template-columns: 1fr; }
}
