/* Fieldnotes: a reversible layer over the saved base design. */
:root {
  --paper: #f7f5ef;
  --white: #fffefa;
  --line: #d8ded5;
  --theme-sage: #e4ece5;
  --theme-slate: #e7edef;
  --theme-deep: #24483f;
}

/* Quiet navigation color; the map's law palette stays independent. */
.home-region-shortcuts a,
.page-browse .region-jump a {
  background: var(--theme-sage);
  color: #28483d;
  border: 1px solid #c6d3c8;
  border-radius: 0;
  font-weight: 600;
}
.home-region-shortcuts a:hover,
.page-browse .region-jump a:hover {
  background: #d4e2d7;
  border-color: #7e9987;
}
.home-region-shortcuts {
  padding-top: 10px;
}
.home-page > .ad-space--hero {
  border: 0;
  background: #efefe7;
  padding-block: 12px 16px;
}

/* Equal centers, equal row spacing, and one clear directory action. */
#popular-guides .section-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
#popular-guides .section-heading h2 {
  margin: 0;
  line-height: 1.2;
}
#popular-guides .section-heading > .text-link {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #bacbc0;
  background: var(--theme-sage);
  color: #28483d;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
#popular-guides .section-heading > .text-link:hover {
  background: #d4e2d7;
}
#popular-guides .guide-list {
  column-gap: 28px;
}
#popular-guides .guide-row {
  padding: 13px 12px;
  background: var(--white);
  border-color: #e0e4db;
  min-height: 76px;
}
#popular-guides .guide-row:hover {
  background: #edf1e9;
}
#popular-guides .row-number {
  color: #436452;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  min-width: 31px;
}
#popular-guides .guide-row-text strong {
  font-weight: 600;
}
#popular-guides .guide-row-text > span {
  font-size: 12px;
}
#popular-guides {
  margin-block: 22px 28px;
}
.site-footer {
  --muted: #5c685e;
  padding-top: 32px;
  background: #ecefe7;
  border: 0;
}
.footer-top {
  padding-bottom: 24px;
}
.footer-bottom {
  border-color: #d4ddcf;
}

/* The same reading menu on a phone and in the desktop sidebar. */
.page-guide .guide-header {
  padding-block: 18px 16px;
}
.page-guide .article-grid {
  margin-top: 16px;
  gap: 56px;
}
.page-guide .contents,
.page-guide .mobile-contents {
  background: var(--theme-deep);
  color: #fffefa;
  border: 0;
  padding: 14px 16px;
}
.page-guide .contents .eyebrow {
  color: #e0e9dc;
  margin: 0 0 8px;
}
.page-guide .contents ol,
.page-guide .contents a {
  border: 0;
}
.page-guide .contents a {
  min-height: 44px;
  align-items: center;
  padding-block: 9px;
  color: #fffefa;
}
.page-guide .contents a > span {
  color: #c2d5bf;
  font-variant-numeric: tabular-nums;
}
.page-guide .contents a:focus-visible,
.page-guide .mobile-contents a:focus-visible,
.page-guide .mobile-contents summary:focus-visible {
  outline-color: #ebce8f;
  outline-offset: 2px;
}
.page-guide .article-body > .ad-space {
  margin-block: 24px;
}
.page-guide .historical-law > h2,
.page-destination .destination-history > h2 {
  background: var(--theme-sage);
  border-left: 3px solid #6b8875;
  padding: 9px 12px;
  margin-block: 0 12px;
  color: #24483f;
  font-size: clamp(23px, 2.4vw, 27px);
  line-height: 1.3;
}
.page-guide .legacy-content > h2 {
  background: var(--theme-slate);
  border-left: 3px solid #718b93;
  padding: 9px 12px;
  margin-block: 28px 16px;
  color: #304e58;
  font-size: clamp(23px, 2.4vw, 27px);
  line-height: 1.3;
}
.page-guide .legacy-content > h2:first-child {
  margin-top: 0;
}
.page-guide .legacy-content > hr:has(+ h2),
.page-guide .legacy-content > h2 + hr {
  display: none;
}
.page-guide .historical-law .recorded-date {
  margin-block: 0 14px;
}
.page-guide .article-body .prose > :is(p, ul, ol, blockquote) {
  max-width: 72ch;
}
.page-guide .next-destination {
  background: var(--theme-sage);
  border: 0;
  padding: 16px;
  margin-top: 28px;
}
.page-guide .next-destination > a {
  font-size: 20px;
}
.page-guide .sidebar-explore h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* Directory headings separate groups without adding another horizontal rule. */
.page-destination .section-heading,
.page-destination .state-directory .section-heading,
.page-browse .browse-region-heading {
  background: var(--theme-slate);
  color: #304e58;
  padding: 10px 12px;
  border: 0;
  align-items: center;
  gap: 12px;
}
.page-destination .section-heading .count-label,
.page-browse .browse-region-heading > span {
  color: #50635e;
  font-size: 11px;
}
.page-destination .section-heading h2,
.page-browse .browse-region-heading h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(20px, 2.4vw, 26px);
}
.page-browse .browse-region {
  border: 0;
}
.page-destination .directory-children a:hover,
.page-browse .country-grid a:hover {
  background: var(--theme-sage);
}

@media (max-width: 800px) {
  .page-guide .guide-header {
    padding-block: 14px 16px;
  }
  .page-guide .article-grid {
    margin-top: 0;
  }
  .page-guide .mobile-contents {
    padding: 12px;
    margin: 0 0 24px;
  }
  .page-guide .mobile-contents summary {
    font-size: 13px;
    min-height: 32px;
  }
  .page-guide .mobile-contents a {
    color: #fffefa;
    font-size: 13px;
    text-decoration-color: #9fb5a4;
    text-decoration-thickness: 1px;
  }
  .page-guide .article-body > .mobile-contents + .ad-space {
    margin-top: 24px;
  }
}
@media (max-width: 600px) {
  #popular-guides .section-heading h2 {
    font-size: 22px;
  }
  #popular-guides .section-heading > .text-link {
    padding-inline: 10px;
    font-size: 11px;
  }
  #popular-guides .guide-row {
    min-height: 72px;
  }
  .home-intro {
    padding-block: 22px;
  }
  .page-guide .historical-law > h2,
  .page-guide .legacy-content > h2 {
    padding: 8px 10px;
  }
  .site-footer {
    padding-top: 26px;
  }
}
