.rankings {
  --rankings-ink: #171310;
  --rankings-gold: #e5a83b;
  --rankings-paper: #faf7f0;
  --rankings-line: #ded5c8;
  --rankings-muted: #5d5145;
  width: min(100% - 32px, 1080px);
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--rankings-ink);
  overflow-wrap: anywhere;
}
.rankings-intro { margin-bottom: 30px; }
.rankings h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.rankings-crumb,
.rankings-updated,
.ranking-location,
.ranking-price,
.rankings-price-note,
.ranking-photo figcaption,
.ranking-official {
  font: 700 .875rem/1.5 Arial, Helvetica, sans-serif;
}
.rankings-crumb { margin: 0 0 18px; }
.rankings a:not(.rankings-tile) { text-decoration: underline; text-underline-offset: .18em; }
.rankings-lead { max-width: 680px; margin: 0 0 13px; font-size: clamp(1.14rem, 2.2vw, 1.4rem); line-height: 1.45; }
.rankings-updated { margin: 0 0 22px; color: var(--rankings-muted); }
.rankings-method {
  max-width: 720px;
  padding: 16px 18px;
  background: var(--rankings-paper);
  border-inline-start: 4px solid var(--rankings-gold);
}
.rankings-method h2 { margin: 0 0 5px; font-size: 1.08rem; }
.rankings-method p { margin: 0; font-size: 1rem; line-height: 1.5; }
.rankings-method .rankings-price-note { margin-top: 7px; font-size: .875rem; color: var(--rankings-muted); }
.rankings-grid, .ranking-list, .rankings-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rankings-grid { display: grid; gap: 16px; }
.rankings-tile { display: block; height: 100%; border: 1px solid var(--rankings-line); background: var(--rankings-paper); }
.rankings-tile img, .ranking-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #ede5d8;
}
.rankings-tile img { aspect-ratio: 16 / 9; }
.rankings-tile > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px; }
.rankings-tile h2 { margin: 0; font-size: 1.28rem; line-height: 1.2; }
.rankings-tile span { color: #774b0a; font-size: 1.3rem; }
.ranking-list { display: grid; gap: 24px; }
.ranking-card { border: 1px solid var(--rankings-line); border-top: 4px solid var(--rankings-gold); scroll-margin-top: 130px; }
.ranking-photo { min-width: 0; margin: 0; }
.ranking-photo figcaption { padding: 7px 14px 0; font-weight: 400; color: var(--rankings-muted); }
.ranking-details { min-width: 0; padding: 14px 16px 16px; }
.ranking-details h2 { margin: 0 0 6px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.14; }
.ranking-number { color: #805409; }
.ranking-location, .ranking-price { margin: 0 0 4px; color: var(--rankings-muted); }
.ranking-details dl { margin: 15px 0 8px; }
.ranking-details dt { font: 700 .9rem/1.4 Arial, Helvetica, sans-serif; }
.ranking-details dd { margin: 2px 0 12px; font-size: 1.04rem; line-height: 1.5; }
.ranking-official { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
.rankings-sources, .rankings-related { margin-top: 28px; padding-top: 15px; border-top: 1px solid var(--rankings-line); }
.rankings-sources h2, .rankings-related h2 { margin: 0; font-size: 1.25rem; }
.rankings-sources ul { padding-inline-start: 1.2em; line-height: 1.55; }
.rankings-related ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
.rankings-related a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 640px) {
  .rankings { width: min(100% - 60px, 1080px); padding-top: 48px; }
  .rankings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranking-card { display: grid; grid-template-columns: 2fr 3fr; }
  .ranking-details { padding: 20px 24px; }
}
@media (min-width: 950px) {
  .rankings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Raleigh keeps its site masthead and uses the shared rankings typography. */
.rankings-page { background: #fff; }
.rankings h1, .rankings h2 { font-family: Arial, Helvetica, sans-serif; text-wrap: wrap; }
.rankings h2 { letter-spacing: -.025em; }
.rankings-lead, .rankings-method p:not(.rankings-price-note), .ranking-details dd,
.rankings-sources ul, .rankings-related ul { font-family: Georgia, "Times New Roman", serif; }
.rankings a { color: inherit; }
.rankings a:hover { color: #805409; }
.rankings-tile { text-decoration: none; }
.rankings-tile:hover h2 { text-decoration: underline; }

.rankings-grid > li { display: flex; flex-direction: column; }
.rankings-tile-credit,
.rankings .ranking-photo figcaption,
.rankings .ranking-photo figcaption a { color: #606060; }
.rankings-tile-credit {
  margin: 0;
  padding: 5px 2px 0;
  font: .8125rem/1.45 Arial, Helvetica, sans-serif;
}

.menubar .rankings-menu-panel {
  position: absolute;
  z-index: 4;
  top: 100%;
  right: 0;
  width: 14.5rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
  padding: .65rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 6px 22px #142b2620;
}
.menubar .rankings-menu-panel ul {
  position: static;
  display: grid;
  gap: 0 12px;
  min-width: 0;
  margin: .3rem 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.menubar .rankings-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.3;
}
.menubar .rankings-menu-panel a[aria-current="page"] { text-decoration: underline; }
.menubar .rankings-menu-panel .primary-menu-heading { margin: 0 .6rem; }
@media (min-width: 761px) {
  .menubar .rankings-menu-panel { width: 25rem; }
  .menubar .rankings-menu-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rankings-group + .rankings-group { margin-top: 32px; }
.rankings-group > h2 { margin: 0 0 12px; font-size: 1.55rem; }
.rankings-tile h3 { margin: 0; font: 700 1.28rem/1.2 Arial, Helvetica, sans-serif; letter-spacing: -.025em; }
.rankings-tile:hover h3 { text-decoration: underline; }

.menubar .rankings-menu-groups { display: grid; gap: .75rem; padding: .4rem .6rem; }
.menubar .rankings-menu-label {
  color: #5d5145;
  font: 700 .85rem/1.3 Arial, Helvetica, sans-serif;
  margin: 0;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--rule);
}
.menubar .rankings-menu-group ul { grid-template-columns: 1fr; margin-top: 0; }
.menubar .rankings-menu-group li { min-width: 0; }
.menubar .rankings-menu-group a { padding: .35rem 0; overflow-wrap: anywhere; }

@media (min-width: 761px) {
  .menubar .rankings-menu-panel { width: min(36rem, calc(100vw - 2rem)); }
  .menubar .rankings-menu-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menubar .rankings-menu-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .menubar .rankings-menu-panel { position: fixed; top: auto; right: 1rem; }
}
