/* Best of Pinas — site styles. Plain CSS, no build step.
   Colour tokens sampled from the supplied mockups; sizes tuned against 1440 px renders of the PDFs. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #091f44;
  --blue: #0038a7;
  --blue-dark: #002a7d;
  --red: #ce1127;
  --red-dark: #a80d1f;
  --yellow: #fdd116;
  --yellow-dark: #e9bd00;
  --cream: #fffbf0;
  --white: #ffffff;
  --teal: #00a3a2;
  --purple: #7b3f9f;
  --orange: #ff8b1a;

  --ink: var(--navy);
  --text: #3d4659;
  --muted: #586174;
  --line: #cfd5df;
  --on-dark: #dfe4ee;
  --focus: var(--blue);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1270px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 9px;
  --card-pad: 27px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-header, .hero, .site-footer, .region-card--live, .feature__body, .preview-notice { --focus: var(--yellow); }
.side-card--yellow, .tile--yellow { --focus: var(--navy); }

.sr-only {
  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-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--navy); font-weight: 700; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons, links, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 22px; border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: #eef3fc; }
.btn--lg { min-height: 50px; padding-inline: 26px; }

.link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.link:hover { color: var(--navy); }

.tag, .badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 700; line-height: 1.35; letter-spacing: 0;
  vertical-align: middle; white-space: nowrap;
}
.tag--red { background: var(--red); color: var(--white); }
.tag--blue { background: var(--blue); color: var(--white); }
.tag--purple, .badge--purple { background: var(--purple); color: var(--white); }
.tag--teal, .badge--teal { background: var(--teal); color: var(--navy); }
.tag--yellow, .badge--yellow { background: var(--yellow); color: var(--navy); }
.tag--orange { background: var(--orange); color: var(--navy); }
.tag--navy { background: var(--navy); color: var(--white); }
.badge--outline { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.6); }

.rating {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--navy);
  font-size: 0.9375rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}

.pills { margin-bottom: 26px; }
.pills__list { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; min-height: 42px; padding: 8px 19px; border-radius: 999px;
  background: var(--white); color: var(--navy); font-size: 1rem; font-weight: 700; text-decoration: none;
}
.pill:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.pill.is-active { background: var(--blue); color: var(--white); }

/* ---------- Preview notice ---------- */
.preview-notice { background: #1b2f57; color: var(--on-dark); font-size: 0.8125rem; line-height: 1.4; }
.preview-notice p { padding: 7px 0; }
.preview-notice a { color: var(--yellow); font-weight: 700; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); flex: none; }
.brand__name { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__list { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: inline-block; padding: 6px 0; color: var(--white); font-size: 1.0625rem; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav__link:hover { border-bottom-color: rgba(253, 209, 22, 0.55); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--yellow); }
.site-nav__cta { min-height: 47px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-dark); }
.hero--page { padding: 40px 0 62px; }
.hero__eyebrow { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero__crumb { color: var(--on-dark); font-size: 0.9375rem; }
.hero__title { color: var(--white); font-size: clamp(2.25rem, 1.3rem + 3vw, 3.3125rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero__intro { margin-top: 16px; max-width: 46rem; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.5; }
.hero--home { padding: 70px 0 94px; }
.hero__title--home { font-size: clamp(2.5rem, 1.1rem + 4vw, 4.125rem); line-height: 1.04; }
.hero__accent { color: var(--yellow); }
.hero__intro--home { margin-top: 28px; font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem); line-height: 1.52; }

.tricolor {
  height: 8px;
  background: linear-gradient(to right, var(--blue) 0 33.333%, var(--red) 33.333% 66.666%, var(--yellow) 66.666% 100%);
}

/* Hero finder (homepage) */
.finder {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 12px;
  width: min(100%, 940px); margin-top: 40px; padding: 14px 16px 14px 22px;
  background: var(--white); border-radius: var(--radius); color: var(--navy);
}
.finder__field { display: flex; flex-direction: column; min-width: 0; }
.finder__label { padding-left: 2px; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.finder__select {
  width: 100%; min-height: 44px; padding: 6px 34px 6px 8px; border: 0; border-radius: 8px; background-color: var(--white);
  color: var(--navy); font-size: 1.125rem; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23091F44' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.finder__select:hover { background-color: #f6f7fa; }
.finder__button { min-height: 67px; padding-inline: 34px; font-size: 1.1875rem; border-radius: 10px; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.page-inner .hero + .tricolor + .section { padding-top: 52px; }
.section--tight { padding-top: 0; }
.section__title { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.625rem); }
.section__title--sub { margin: 40px 0 22px; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); }
.section__intro { margin: 10px 0 30px; color: var(--muted); font-size: 1.125rem; }
.section__intro--small { font-size: 1rem; }
.section__title + .tiles, .section__title + .grid, .section__title + .rank-list { margin-top: 26px; }
.subsection-title { margin: 34px 0 16px; font-size: 1.625rem; }
.cream-run .section--cream + .section--cream { padding-top: 0; }
.cream-run .section--tight { padding-top: 22px; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 23px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid > li { display: flex; }
.grid > li > * { flex: 1; }

.card { background: var(--white); border-radius: var(--radius); padding: var(--card-pad); }
.card__title { margin-top: 12px; font-size: 1.6875rem; font-weight: 800; line-height: 1.16; }
.card__text { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; line-height: 1.5; }
.card__footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 22px; }
.card__meta { color: var(--muted); font-size: 0.9375rem; }

.list-card { display: flex; flex-direction: column; align-items: flex-start; }
.list-card .card__footer { align-self: stretch; }
.list-card--home { padding: 28px 30px 26px; }
.list-card--home .card__title { font-size: 1.75rem; }
.list-card--home .link { margin-top: 14px; }
.list-card--home .card__footer { padding-top: 14px; }
.list-card--home .card__footer .link { margin-top: 0; }

.biz-card { display: flex; flex-direction: column; align-items: flex-start; padding: 23px; }
.biz-card__name { margin: 12px 0 10px; font-size: 1.5rem; line-height: 1.2; }
.biz-card__status { margin: -4px 0 10px; color: var(--muted); font-size: 0.875rem; }
.rating-date { display: block; margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.biz-card__phone { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.biz-card__phone a { color: var(--muted); text-decoration: none; }
.biz-card__phone a:hover { color: var(--blue); text-decoration: underline; }
.biz-card__phone--pending { font-style: italic; }
.biz-card__link { margin-top: 10px; }

.story-card { display: flex; flex-direction: column; align-items: flex-start; padding: 23px; }
.story-card .card__title { font-size: 1.5rem; line-height: 1.2; }
.story-card .link { margin-top: 14px; }

.empty-state, .state-card { max-width: 760px; }
.empty-state__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.state-card .card__title { margin-top: 14px; }
.filter-summary { margin: -10px 0 22px; color: var(--muted); }
.results-meta { margin: 0 0 18px; color: var(--muted); font-size: 0.9375rem; }
.preview-more { margin-top: 22px; }
.plain-list { margin: 12px 0 0; padding-left: 1.2em; }
.plain-list li { margin: 6px 0; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 163px; padding: 22px 23px;
  border-radius: 14px; text-decoration: none; color: var(--white);
}
.tile__title { font-family: var(--font-serif); font-size: 1.4375rem; font-weight: 800; line-height: 1.15; }
.tile__meta { margin-top: 4px; font-size: 0.9375rem; }
.tile:hover .tile__title { text-decoration: underline; text-underline-offset: 4px; }
.tile--teal { background: var(--teal); color: var(--navy); }
.tile--blue { background: var(--blue); }
.tile--red { background: var(--red); }
.tile--orange { background: var(--orange); color: var(--navy); }
.tile--purple { background: var(--purple); }
.tile--yellow { background: var(--yellow); color: var(--navy); }
.tile--navy { background: var(--navy); }
.tile--teal .tile__title, .tile--orange .tile__title, .tile--yellow .tile__title { color: var(--navy); }

/* ---------- Regions and cities ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.region-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 180px; padding: 28px 30px; border-radius: var(--radius); background: var(--white); }
.region-card--home { min-height: 270px; background: var(--cream); }
.region-card__title { margin-top: 14px; font-size: 2.125rem; }
.region-card__text { margin-top: 12px; color: var(--muted); }
.region-card--live { background: var(--blue); color: var(--white); }
.region-card--live .region-card__title { color: var(--white); }
.region-card--live .region-card__text { color: var(--white); }
.region-card__link { margin-top: auto; padding-top: 22px; color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.region-card__link:hover { color: var(--white); }
.city-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 24px; }
.city-card__title { margin: 12px 0 0; font-size: 2.125rem; }
.city-card .btn { margin-top: 22px; }
#mindanao { scroll-margin-top: 20px; }
#mindanao:focus { outline: none; }

/* ---------- Ranked lists ---------- */
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; }
.list-layout__main { min-width: 0; }
.list-layout__aside { display: flex; flex-direction: column; gap: 18px; }
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-row {
  display: grid; grid-template-columns: 82px minmax(0, 1fr) auto auto; align-items: center; column-gap: 20px;
  min-height: 130px; padding: 22px 25px 22px 25px; background: var(--white); border-radius: 14px;
}
.rank-row__num { color: var(--red); font-family: var(--font-serif); font-size: 2.75rem; font-weight: 800; line-height: 1; text-align: left; padding-left: 0; }
.rank-row__name { font-size: 1.625rem; line-height: 1.2; }
.rank-row__name .badge { margin-left: 2px; position: relative; top: -3px; font-family: var(--font-serif); font-weight: 800; }
.rank-row__area { margin-top: 4px; color: var(--muted); font-size: 1.0625rem; }
.rank-row__phone { margin-top: 6px; color: var(--navy); font-size: 1rem; }
.rank-row__phone a { color: var(--navy); text-decoration: none; }
.rank-row__phone a:hover { color: var(--blue); text-decoration: underline; }
.rank-row__phone--pending { color: var(--muted); font-style: italic; }
.rank-row__actions { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: start; }
.rank-row--compact .rank-row__actions { align-self: center; }
.rank-row__actions .btn { min-width: 115px; }
.rank-row__details { font-size: 0.9375rem; }
.rank-row--compact { grid-template-columns: 64px minmax(0, 1fr) auto auto; min-height: 95px; padding: 16px 28px 16px 25px; border-radius: 12px; }
.rank-row--compact .rank-row__num { font-size: 2.25rem; }
.rank-row--compact .rank-row__name { font-size: 1.4375rem; }
.rank-row--compact .rank-row__area { font-size: 0.9375rem; margin-top: 0; }
.rank-row--compact .rank-row__actions { align-items: flex-end; }
.rank-list--compact { gap: 15px; }

.side-card { padding: 26px 28px 28px; }
.side-card__title { font-size: 1.5rem; }
.side-card__text { margin-top: 14px; color: var(--muted); }
.side-card__legend { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.side-card__legend .badge { margin-right: 4px; }
.side-card__more { margin-top: 14px; font-size: 0.9375rem; }
.side-card--yellow { background: var(--yellow); }
.side-card--yellow .side-card__text { color: #4a4f5c; }
.side-card--yellow .btn { margin-top: 18px; }
.side-note { padding-left: 4px; }

/* ---------- Business detail ---------- */
.detail-card + .detail-card { margin-top: 18px; }
.detail-card .card__title { margin-top: 0; font-size: 1.5rem; }
.facts { margin: 16px 0 0; }
.facts__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid #eceff4; }
.facts__row:first-child { border-top: 0; padding-top: 4px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; color: var(--navy); }
.facts__note { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }

/* ---------- Stories ---------- */
.feature { display: grid; grid-template-columns: 47% 53%; min-height: 330px; border-radius: var(--radius); overflow: hidden; }
.feature__visual { background: var(--yellow); }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 42px; background: var(--blue); color: var(--white); }
.feature__title { margin-top: 18px; color: var(--white); font-size: clamp(1.875rem, 1.4rem + 1.2vw, 2.5rem); }
.feature__text { margin-top: 14px; font-size: 1.0625rem; }
.feature__body .btn { margin-top: 24px; }
.article { padding: 34px 38px 36px; }
.article--text { max-width: 860px; }
.article__heading { margin: 28px 0 0; font-size: 1.625rem; }
.article__heading:first-child, .callout + .article__heading { margin-top: 0; }
.article__text { margin-top: 14px; max-width: 46rem; }
.callout + .article__text { margin-top: 0; }
.article__back { margin-top: 28px; }
.callout { margin-bottom: 22px; padding: 14px 18px; border-left: 5px solid var(--yellow); background: #fff6d4; color: var(--navy); border-radius: 6px; }

/* ---------- Forms ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 27px; align-items: start; }
.split__side { display: flex; flex-direction: column; gap: 17px; }
.benefit-card { padding: 25px 23px 27px; }
.benefit-card__title { font-size: 1.5625rem; }
.benefit-card .card__text { margin-top: 10px; }
.form-card { padding: 25px 23px 25px; }
.form-card__title { margin-bottom: 8px; font-size: 1.6875rem; }
.field { margin-top: 14px; }
.field__label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.875rem; }
.field__hint { margin: -2px 0 6px; color: var(--muted); font-size: 0.8125rem; }
.field__input {
  display: block; width: 100%; min-height: 47px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); font-size: 1rem;
}
.field__input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field__input--select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23091F44' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field__input--textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field--error .field__input { border: 2px solid var(--red); }
.field__error { margin: 0 0 6px; color: var(--red); font-size: 0.9375rem; font-weight: 700; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 0.875rem; }
.form-card .btn { margin-top: 16px; }
.form-about { margin: 8px 0 0; color: var(--navy); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 10px 0 6px; padding: 12px 16px; border-radius: 8px; }
.notice--error { background: #fdecee; border: 2px solid var(--red); color: #7d0a17; font-weight: 700; }
.error-summary { margin: 10px 0 6px; padding: 14px 18px; border: 3px solid var(--red); border-radius: 10px; background: #fff; }
.error-summary:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.error-summary__title { font-size: 1.1875rem; color: #7d0a17; }
.error-summary__list { margin: 8px 0 0; padding-left: 1.2em; }
.error-summary__list a { color: var(--red); font-weight: 700; }
.success-card { border-top: 6px solid var(--teal); }
.success-card .card__text { margin: 12px 0 16px; }

/* ---------- Directory search ---------- */
.search-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px auto; align-items: center; gap: 14px;
  margin-bottom: 22px; padding: 12px 12px 12px 22px; background: var(--white); border-radius: var(--radius);
}
.search-bar__field { display: flex; flex-direction: column; min-width: 0; }
.search-bar__input { width: 100%; min-height: 44px; padding: 6px 2px; border: 0; background: transparent; color: var(--navy); font-size: 1.125rem; }
.search-bar__input::placeholder { color: #727b8c; }
.search-bar__input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.search-bar__button { min-height: 55px; padding-inline: 28px; font-size: 1.1875rem; border-radius: 10px; }

.pagination { margin-top: 30px; }
.pagination__list { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 700; text-decoration: none;
}
.pagination__link:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.pagination__link.is-active { background: var(--blue); color: var(--white); }
.pagination__gap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--muted); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { padding-top: 90px; padding-bottom: 60px; }
.cream-run .cta-band { padding-top: 90px; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 660px) auto; align-items: center; justify-content: start; column-gap: 170px; row-gap: 20px; }
.cta-band__text { margin-top: 14px; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding: 40px 0 44px; }
.site-footer__line { font-size: 1rem; }
.site-footer__brand { margin-bottom: 4px; color: var(--white); font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; }
.site-footer--home .site-footer__inner { align-items: flex-start; padding: 44px 0 36px; }
.site-footer--home .site-footer__line { font-size: 0.9375rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { color: var(--white); font-size: 0.9375rem; text-underline-offset: 3px; }
.site-footer__links a:hover { color: var(--yellow); }

.debug { margin-top: 20px; padding: 14px; overflow: auto; background: #f4f5f8; font-size: 0.8125rem; white-space: pre-wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cta-band__inner { column-gap: 60px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .list-layout { grid-template-columns: minmax(0, 1fr); }
  .list-layout__aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .search-bar { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
}

/* Mobile navigation: with JavaScript the links collapse behind a Menu button; without it they wrap. */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; min-height: 72px; padding: 12px 0; }
  .brand__name { font-size: 1.5rem; }
  .brand__dot { width: 26px; height: 26px; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 8px; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link { display: block; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .site-nav__link[aria-current="page"] { border-bottom: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 8px; background: transparent; color: var(--white);
    font-weight: 700; cursor: pointer;
  }
  .nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__icon::before { top: -6px; }
  .nav-toggle__icon::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: minmax(0, 1fr); }
  .region-card--home { min-height: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --card-pad: 22px; }
  .section { padding: 48px 0; }
  .hero--page { padding: 28px 0 40px; }
  .hero--home { padding: 40px 0 52px; }
  .finder, .search-bar { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .finder__field + .finder__field, .search-bar__field + .search-bar__field { padding-top: 8px; border-top: 1px solid #e6e9ef; }
  .finder__button, .search-bar__button { width: 100%; min-height: 52px; }
  .feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .feature__visual { min-height: 120px; }
  .feature__body { padding: 28px 24px; }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding-top: 56px; }
  .cream-run .cta-band { padding-top: 56px; }
  .list-layout__aside { grid-template-columns: minmax(0, 1fr); }
  .rank-row, .rank-row--compact {
    grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "num body" ". rating" ". actions";
    row-gap: 12px; min-height: 0; padding: 18px 18px 20px 16px;
  }
  .rank-row__num { grid-area: num; align-self: start; font-size: 2.25rem; }
  .rank-row__body { grid-area: body; }
  .rank-row__rating { grid-area: rating; }
  .rank-row__actions, .rank-row--compact .rank-row__actions { grid-area: actions; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .rank-row__name { font-size: 1.375rem; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .article { padding: 24px 20px; }
  .card__title { font-size: 1.5rem; }
}

@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .tiles { gap: 12px; }
  .tile { min-height: 128px; padding: 16px; }
  .tile__title { font-size: 1.1875rem; }
  .tile__meta { font-size: 0.8125rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .rating { white-space: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .pill, .site-nav__link { transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
}

@media print {
  .site-header, .preview-notice, .site-footer, .tricolor, .finder { display: none; }
  .hero { background: none; color: #000; }
  .hero__title { color: #000; }
}

/* Admin-only launch preview banner (never on the public site) */
.launch-sim { background: var(--yellow); color: var(--navy); font-size: 0.9375rem; padding: 10px 16px; text-align: center; }
.launch-sim a { color: var(--navy); font-weight: 700; }
