.guide-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: .65rem;
  margin: 0 0 1.15rem;
}
.guide-category-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 3.65rem;
  padding: .65rem .8rem;
  border: 1px solid #dedbd1;
  border-radius: .7rem;
  background: #fff;
  color: var(--ink, #242424);
  font-weight: 650;
  line-height: 1.25;
}
.guide-category-card svg { flex: none; color: #9a7100; }
.guide-category-card span { min-width: 0; overflow-wrap: anywhere; }
.guide-category-card:hover,
.guide-category-card[aria-current],
body:has(#guide-retirement:target) .guide-category-card[href="#guide-retirement"] {
  border-color: #be943e;
  background: #fcf7e9;
}
.guide-category-card:focus-visible {
  outline: 2px solid #9a7100;
  outline-offset: 3px;
}
.guide-category-heading p, .guide-category-subtitle { margin: .35rem 0 .8rem; color: #5f5644; }
.guide-category-heading h2 { margin: 0; }
.guide-category-heading { margin-bottom: .6rem; }
.guide-retirement { display: none; margin-bottom: 1rem; scroll-margin-top: 5rem; }
.guide-retirement:target { display: block; }
.guide-retirement[data-guide-filter-active] ul { display: none; }
@media (min-width: 1000px) {
  .guide-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .guide-category-card { align-items: flex-start; padding: .55rem; gap: .4rem; font-size: .85rem; }
  .guide-category-card svg { width: 18px; height: 18px; }
}

/* Keep the language switch and menu together on the guide pages' narrow headers. */
@media (max-width: 460px) {
  header:not([data-localized]) .nav { gap: 8px; flex-wrap: wrap; }
  header:not([data-localized]) .brand { font-size: 18px; gap: 5px; }
  header:not([data-localized]) .brand-emblem { width: 28px; height: 28px; }
  header:not([data-localized]) .brand small { font-size: 10px; letter-spacing: 2px; }
  header:not([data-localized]) .header-search summary,
  header:not([data-localized]) .header-calculator { width: 34px; height: 36px; }
  header:not([data-localized]) .menu { width: 34px; min-width: 34px; padding: 6px; }
}
