/* The data pages (lists/, neighborhoods/, cuisines/, written by playbook/tools/static_pages.mjs): the guide pages' header,
   footer and type, with the web version's list rows (explore/app.css). Light only, like the rest of the site. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700 900; font-display: swap; src: local("Big Shoulders Display"), local("BigShouldersDisplay-Black"), local("BigShouldersDisplay-ExtraBold"); }
:root {
  --blue: #0E3386; --red: #CC3433; --red-ink: #B42B2A; --ink: #0B1D45; --ink2: #2B3C63; --muted: #52638A;
  --sky: #F1F5FC; --sky2: #E3EAF7; --rule: #DAE2F0; --white: #fff;
  --gA: #12733A; --gB: #4B7A1B; --gC: #F2B01E; --gD: #E8804F; --gF: #C1302F;
  --display: "Big Shoulders Display", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip:focus { left: 0; color: #fff; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2 { font-family: var(--display); font-stretch: condensed; font-weight: 800; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(38px, 6.4vw, 56px); line-height: .98; margin: 6px 0 18px; }
h2 { font-size: clamp(28px, 4.2vw, 36px); line-height: 1.04; margin: 40px 0 10px; }
p { margin: 0 0 16px; }

/* header (the guide pages') */
header.site { border-bottom: 4px solid var(--red); background: var(--white); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 21px; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; min-height: 44px; }
.logo:hover { color: var(--blue); }
.logo img { width: 32px; height: 32px; flex: 0 0 32px; }
.logo b { color: var(--blue); font-weight: 800; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
header.site nav a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
header.site nav a:hover { color: var(--red-ink); text-decoration: underline; }

/* footer (the guide pages') */
footer.site { margin-top: 0; background: var(--ink); color: #DCE5F7; font-size: 14px; padding: 44px 0 56px; }
footer.site a { color: #fff; }
footer.site a:hover { color: #DCE5F7; }
footer.site :focus-visible { outline-color: #fff; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 18px; }
footer.site nav a { display: inline-flex; align-items: center; min-height: 36px; }
footer.site .hub { display: inline-block; padding: 12px 0; }
@media (pointer: coarse) { footer.site nav a { min-height: 44px; } }
footer.site .fine { color: #C9D4EC; max-width: 820px; margin: 0 0 10px; line-height: 1.55; }
@media (max-width: 640px) {
  .bar { padding-top: 8px; padding-bottom: 4px; }
  header.site nav { width: 100%; gap: 0 14px; }
  header.site nav a { font-size: 14.5px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 28px; height: 28px; flex-basis: 28px; }
}

/* the page */
main { padding: 8px 0 64px; }
.page { max-width: 880px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 26px 0 0; }
.crumbs a { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); margin: 18px 0 0; }
.lede { font-size: 19px; color: var(--ink2); }
.page p, .page li { color: var(--ink2); }
.box { background: var(--sky); border-left: 5px solid var(--blue); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 20px 0; font-size: 15.5px; }
.box p:last-child { margin-bottom: 0; }
.explainer { background: var(--sky); border-radius: 12px; padding: 14px 18px; margin: 20px 0; font-size: 15.5px; }
.explainer h2 { font-family: var(--body); font-stretch: normal; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.explainer p { margin: 0; }
.cap { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.more { margin: 16px 0 0; font-weight: 600; }
.jump { font-size: 15px; }
.jump a { display: inline-block; padding: 6px 0; }
.links { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15.5px; }
.links a { display: inline-block; padding: 6px 0; }

/* grade chips (the site's palette) */
.g { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; font-family: var(--display); font-stretch: condensed; font-weight: 900; font-size: 17px; line-height: 1; color: #fff; }
.gA { background: var(--gA); } .gB { background: var(--gB); } .gC { background: var(--gC); color: #2B1D00; } .gD { background: var(--gD); color: #2B1000; } .gF { background: var(--gF); }
.g.gt { width: 34px; height: 34px; flex: 0 0 34px; font-size: 21px; border-radius: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.badge { font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--sky); color: var(--ink2); white-space: nowrap; }
.badge.red { background: var(--red); color: #fff; } .badge.blue { background: var(--blue); color: #fff; } .badge.icon { background: var(--sky2); color: var(--blue); }

/* list rows (the web version's) */
.rlist { list-style: none; margin: 8px 0 0; padding: 0; }
.rlist > li + li { border-top: 1px solid var(--rule); }
.rrow { display: flex; align-items: center; gap: 12px; padding: 12px 6px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.rrow:hover { background: var(--sky); color: var(--ink); }
.rrow:hover .rname { text-decoration: underline; text-decoration-color: var(--rule); }
.rank { flex: 0 0 46px; text-align: center; font-family: var(--display); font-stretch: condensed; font-weight: 900; font-size: 30px; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.rank.long { font-size: 22px; }
.rank.podium { color: var(--red-ink); }
.rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rname { font-weight: 700; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.rsub { font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.page .rres { font-size: 13px; line-height: 1.4; font-weight: 650; color: var(--ink2); }
.rmetric { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; max-width: 42%; }
.rmetric .mtop { display: flex; align-items: center; gap: 6px; }
.rmetric b { font-family: var(--display); font-stretch: condensed; font-weight: 900; font-size: 26px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rmetric small { font-size: 12px; color: var(--muted); line-height: 1.25; }
.tile { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--sky); color: var(--muted); }
.tile .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .rank { flex-basis: 34px; font-size: 24px; } .rank.long { font-size: 18px; } .rrow { gap: 10px; padding: 12px 2px; } }

/* index tables and cards */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 16px; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 6px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); color: var(--ink2); }
thead th { color: var(--ink); background: var(--sky); font-weight: 700; font-size: 14.5px; }
tbody th { font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { table { font-size: 15px; } th, td { padding: 9px 6px; } thead th { font-size: 13px; } }
@media (max-width: 360px) { th, td { padding: 9px 4px; } }
.cards { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink2); background: var(--white); }
.cards a:hover { background: var(--sky); color: var(--ink2); }
.cards b { font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 26px; line-height: 1.05; color: var(--blue); }
.cards span { font-size: 15px; line-height: 1.45; }
.cards .cnt { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-top: auto; padding-top: 4px; }

@media (forced-colors: active) {
  .g, .badge, .tile { border: 1px solid CanvasText; }
  .cards a { border-color: CanvasText; }
}
