/* Aquatell UK & Ireland water hardness site
   Mobile-first. Breakpoints: 768px (tablet), 1100px (desktop). */

:root {
  --orange: #e65621;
  --orange-dark: #cf4d1e;
  --orange-deep: #b3421a;
  --peach: #FDEEE8;
  --blue: #EAF6FD;
  --grey: #F8F8F8;
  --line: #e3e3e3;
  --text: #333333;
  --text-2: #444444;
  --muted: #666666;
  --footer: #1b1f23;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(27, 31, 35, 0.10);
  --gutter: clamp(16px, 6.67vw, 96px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montserrat', sans-serif; background: #ffffff; color: var(--text); line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-dark); }
a:hover { color: var(--orange-deep); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul.plain, ol.plain { padding: 0; list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }

/* Header */
.site-header { border-bottom: 1px solid #cccccc; }
.site-header .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.logo img { display: block; height: 64px; width: auto; }
.main-nav { display: flex; gap: 10px; width: 100%; }
.main-nav a { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 48px; padding: 0 8px; border: 2px solid var(--orange); background: #ffffff; color: var(--orange-dark); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; text-align: center; }
.main-nav a + a { flex-grow: 2; background: var(--orange); color: #ffffff; }
.main-nav a + a:hover { background: var(--orange-dark); color: #ffffff; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { display: inline; padding: 0; list-style: none; }
.crumbs li { display: inline; }
.crumbs li + li::before { content: " / "; }

/* Hero (blue band with wave) */
.hero { position: relative; background: var(--blue); padding: 32px 0 72px; }
.hero .wrap { display: grid; gap: 18px; }
.hero-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; display: block; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(26px, 1.2rem + 2.2vw, 48px); line-height: 1.15; font-weight: 500; text-transform: uppercase; }
.hero p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.flag { display: block; height: 40px; width: auto; border: 1px solid #dddddd; }
.map-card { display: flex; align-items: center; justify-content: center; padding: 20px; background: #ffffff; border-radius: 16px; box-shadow: var(--shadow); }
.map-card img { display: block; height: 260px; width: auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-dark); }

/* Home hero */
.home-hero h1 { font-size: clamp(30px, 1.1rem + 3vw, 58px); line-height: 1.12; letter-spacing: 0.01em; }
.home-hero .lead { font-size: clamp(18px, 1rem + 0.5vw, 22px); line-height: 1.55; max-width: 680px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 32px; background: var(--orange); color: #ffffff; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.button:hover { color: #ffffff; background: var(--orange-dark); }
.button svg, .arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.chart-list { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #ffffff; border-radius: 16px; box-shadow: var(--shadow); }
.chart-list h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 2px 6px; }
.chart-list ul { display: flex; flex-direction: column; gap: 8px; }
.chart-list a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 14px; border-radius: 10px; background: var(--grey); color: var(--text); text-decoration: none; }
.chart-list a:hover { background: var(--peach); }
.chart-list img { display: block; height: 26px; width: 42px; object-fit: cover; border: 1px solid #dddddd; border-radius: 3px; }
.chart-list span { flex-grow: 1; font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.chart-list .arrow { color: var(--orange-dark); }

/* Home content blocks */
.blocks { padding: 12px 0 24px; }
.blocks .wrap { display: flex; flex-direction: column; gap: 16px; }
.block { display: grid; gap: 14px; padding: 28px 22px; background: var(--grey); border-radius: var(--radius); }
.block-head { display: flex; flex-direction: column; gap: 14px; }
.block h2 { font-size: clamp(22px, 1rem + 1vw, 32px); line-height: 1.2; font-weight: 500; text-transform: uppercase; }
.block-body { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.icon-badge { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--peach); display: flex; align-items: center; justify-content: center; }
.icon-badge svg { width: 26px; height: 26px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checklist { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 10px; }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Unit cards (home block and units band) */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.units > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; }
.units > div:last-child:nth-child(odd) { grid-column: span 2; }
.units dt { font-size: 19px; font-weight: 600; color: var(--orange-dark); }
.units dd { font-size: 13px; line-height: 1.35; color: var(--muted); }
.units dd + dd { margin-top: 6px; line-height: 1.45; color: var(--text-2); }

/* Card grids (nations, regions) */
.cards { padding: 32px 0; }
.card-grid { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 16px; height: 100%; padding: 22px 12px; background: var(--grey); border-radius: var(--radius); color: var(--text); text-align: center; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27, 31, 35, 0.10); }
.card-top { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.card h2 { font-size: 16px; line-height: 1.25; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.card .flag { height: 44px; }
.card-map { display: flex; justify-content: center; width: 100%; padding: 12px; background: #ffffff; border-radius: 10px; }
.card-map img { display: block; height: 90px; width: auto; }
.cta { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--orange-dark); }

/* Notes */
.note { display: flex; align-items: flex-start; gap: 12px; padding: 20px 18px; background: var(--grey); border-radius: var(--radius); }
.note p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.note svg { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: var(--orange-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-peach { background: var(--peach); }
.note-text { display: flex; flex-direction: column; gap: 10px; }
.note-peach svg { width: 24px; height: 24px; }
.note-peach > svg { stroke: var(--orange-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flagged { color: var(--orange-deep); font-weight: 700; }
.sources { margin-bottom: 32px; }

/* Units band */
.units-band { position: relative; background: var(--blue); padding: 88px 0 48px; }
.units-band .wrap { display: flex; flex-direction: column; gap: 18px; }
.units-band .top-wave { position: absolute; left: 0; top: 0; width: 100%; height: 40px; display: block; transform: scaleY(-1); }
.band-title { display: flex; align-items: center; gap: 14px; }
.band-title h2 { font-size: clamp(24px, 1rem + 1.4vw, 36px); line-height: 1.2; font-weight: 500; text-transform: uppercase; }
.units-band p { max-width: 900px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.units-band .units { margin-top: 8px; }

/* Chart pages */
.chart-head { padding: 28px 0 20px; }
.chart-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.chart-head h1 { font-size: clamp(26px, 1rem + 2vw, 40px); line-height: 1.2; font-weight: 500; text-transform: uppercase; }
.chart-head p { max-width: 980px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.finder { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--grey); border-radius: var(--radius); }
.finder-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; }
.finder-search svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.finder-search input { flex-grow: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); }
.jump-select { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.jump-select select { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff; font: inherit; font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--text); }
.jump-pills { display: none; }
.chart-block { display: flex; flex-direction: column; gap: 16px; margin: 16px 0 20px; }
.table-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { position: relative; max-height: 75vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.chart-count { padding: 14px 16px; background: var(--grey); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.no-match { padding: 24px 16px; font-size: 15px; color: var(--muted); }

.chart { width: 100%; border-collapse: collapse; color: var(--text); }
.chart thead th { position: sticky; top: 0; z-index: 2; padding: 16px 14px; background: var(--grey); border-bottom: 2px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; vertical-align: bottom; }
.chart thead th.num { text-align: right; }
.chart thead th.mgl { color: var(--orange-dark); }
.chart thead small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.chart tbody td, .chart tbody th { padding: 14px; font-size: 15px; border-bottom: 1px solid #eeeeee; vertical-align: top; text-align: left; font-weight: 400; }
.chart .group th { position: sticky; top: var(--thead-h, 49px); z-index: 1; background: var(--blue); border-bottom: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.chart .group-label { font-weight: 400; color: var(--muted); }
.chart tbody tr:nth-child(odd):not(.group) { background: #FBFBFB; }
.chart .town { display: block; font-weight: 600; }
.chart .zone { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.chart .area { color: #555555; }
.chart .num { text-align: right; font-variant-numeric: tabular-nums; }
.chart td.mgl { font-size: 17px; font-weight: 700; color: var(--orange-dark); }
.chart .rng { color: #555555; }
.chart .rng span { white-space: nowrap; }
.chart .tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--peach); color: var(--orange-deep); font-size: 12px; font-weight: 600; white-space: nowrap; }
.src { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; white-space: nowrap; }
.src svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart [hidden] { display: none !important; }
.tip { position: relative; display: inline-flex; align-items: center; margin-left: 4px; vertical-align: -3px; }
.tip-btn { display: inline-flex; padding: 0; border: 0; background: none; color: inherit; cursor: help; }
.tip-btn svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tip-box { display: none; position: absolute; top: calc(100% + 8px); right: -12px; z-index: 5; width: 260px; padding: 12px 14px; border-radius: 10px; background: var(--peach); border: 1px solid var(--orange); color: var(--text); font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none; text-align: left; white-space: normal; box-shadow: 0 10px 30px rgba(230, 86, 33, 0.18); }
.tip:hover .tip-box, .tip:focus-within .tip-box { display: block; }
.rec-key { padding: 12px 14px; background: var(--grey); border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.rec-key strong { color: var(--orange-dark); }
@media (min-width: 1200px) { .rec-key { display: none; } }

/* Chart as cards on phones */
@media (max-width: 1199.98px) {
  .table-box { border: 0; border-radius: 0; overflow: visible; }
  .table-scroll { max-height: 80vh; }
  .chart, .chart tbody { display: block; }
  .chart thead { display: none; }
  .chart tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 10px; }
  .chart .group { display: block; grid-column: 1 / -1; position: sticky; top: 0; z-index: 1; }
  .chart .group th { display: block; position: static; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
  .chart tr:not(.group) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 16px; background: var(--grey) !important; border-radius: var(--radius); }
  .chart tr:not(.group) > * { padding: 0; border: 0; font-size: 13px; }
  .chart tr:not(.group) > th { grid-column: 1 / 4; grid-row: 1; font-size: 16px; }
  .chart .town { font-size: 16px; }
  .chart td.mgl { grid-column: 4; grid-row: 1 / 4; text-align: right; font-size: 26px; line-height: 1; }
  .chart td.mgl::after { content: "mg/l"; display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
  .chart td.area { grid-column: 1 / 4; grid-row: 2; color: #555555; }
  .chart td.pc { grid-column: 1 / 4; grid-row: 3; color: #555555; }
  .chart td.rng { grid-column: 1 / -1; text-align: left; color: var(--muted); }
  .chart.has-rec td.mgl::after { content: "mg/l\A *Recommended Setting"; white-space: pre; font-weight: 600; color: var(--orange-dark); font-size: 11px; line-height: 1.4; }
  .chart td.avg { grid-column: 1 / -1; text-align: left; color: var(--muted); }
  .chart td.avg::before { content: "Average (mg/l): "; }
  .chart.has-rec tr:not(.group) > th, .chart.has-rec td.area, .chart.has-rec td.pc { grid-column: 1 / 3; }
  .chart.has-rec td.mgl { grid-column: 3 / 5; }
  .chart td.rng::before { content: "Range (mg/l): "; }
  .chart td.unit { display: flex; flex-direction: column-reverse; gap: 2px; margin-top: 6px; padding: 8px 6px; background: #ffffff; border-radius: 8px; text-align: center; font-size: 15px; font-weight: 600; }
  .chart td.unit::after { content: attr(data-label); font-size: 11px; font-weight: 400; color: var(--muted); }
  .chart td.src-cell { grid-column: 1 / -1; margin-top: 6px; font-size: 14px; }
  .chart .tag { margin-top: 4px; font-size: 11px; }
}
@media (min-width: 640px) and (max-width: 1199.98px) {
  .chart tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
  .chart tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Footer */
.site-footer { background: var(--footer); color: #c4c8cc; padding: 40px 0 28px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; flex-direction: column; gap: 28px; }
.footer-about { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.footer-about h2 { font-size: 18px; font-weight: 500; color: #ffffff; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-about p { font-size: 15px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa1a8; }
.footer-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid #4a5057; color: #ffffff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; }
.footer-links a:hover { border-color: #ffffff; color: #ffffff; }
.footer-links a span { display: inline-flex; align-items: center; gap: 10px; }
.footer-links img { display: block; height: 16px; width: auto; }
.footer-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copyright { padding-top: 18px; border-top: 1px solid #33383d; font-size: 13px; color: #9aa1a8; }

/* Tablet */
@media (min-width: 768px) {
  .site-header .wrap { flex-direction: row; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
  .logo img { height: clamp(72px, 7.8vw, 112px); }
  .main-nav { width: auto; gap: clamp(12px, 1.4vw, 20px); }
  .main-nav a { flex: none; min-height: clamp(52px, 5vw, 72px); padding: 0 clamp(18px, 2.5vw, 36px); font-size: clamp(15px, 1.67vw, 24px); letter-spacing: 0.06em; }
  .crumbs { font-size: 14px; }
  .hero { padding: 56px 0 120px; }
  .hero-wave { height: 80px; }
  .hero p { font-size: 18px; line-height: 1.65; }
  .title-row { flex-direction: row; align-items: center; gap: 24px; }
  .flag { height: 56px; }
  .map-card { padding: 32px; }
  .map-card img { height: 300px; }
  .eyebrow { font-size: 14px; }
  .chart-list { padding: 28px; gap: 10px; }
  .chart-list h2 { font-size: 13px; padding: 0 4px 8px; }
  .chart-list a { gap: 18px; padding: 14px 16px; }
  .chart-list img { height: 30px; width: 48px; }
  .chart-list span { font-size: 17px; }
  .blocks { padding: 32px 0 72px; }
  .blocks .wrap { gap: 24px; }
  .block { padding: 48px; gap: 24px; }
  .block-head { gap: 16px; }
  .block-body { font-size: 18px; line-height: 1.65; gap: 20px; }
  .icon-badge { width: 64px; height: 64px; }
  .icon-badge svg { width: 30px; height: 30px; }
  .checklist { gap: 14px; }
  .checklist li { gap: 12px; }
  .checklist svg { width: 22px; height: 22px; margin-top: 4px; }
  .cards { padding: 64px 0 56px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card { padding: 32px 28px; gap: 24px; }
  .card h2 { font-size: 20px; }
  .card .flag { height: 60px; }
  .card-map { padding: 20px; border-radius: 12px; }
  .card-map img { height: 130px; }
  .cta { font-size: 16px; gap: 10px; }
  .note { align-items: center; gap: 16px; padding: 32px 28px; }
  .note p { font-size: 18px; }
  .note-peach { align-items: flex-start; padding: 18px 22px; }
  .note-peach p { font-size: 15px; line-height: 1.6; }
  .note-peach .flagged { font-weight: 400; }
  .hero p { font-size: 19px; }
  .sources { margin-bottom: 64px; }
  .units-band { padding: 128px 0 72px; }
  .units-band .wrap { gap: 20px; }
  .units-band .top-wave { height: 80px; }
  .band-title { gap: 20px; }
  .units { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .units > div { padding: 20px 16px; gap: 6px; }
  .units > div:last-child:nth-child(odd) { grid-column: auto; }
  .units dt { font-size: 22px; }
  .units dd { font-size: 14px; line-height: 1.4; }
  .units dd + dd { margin-top: 8px; font-size: 15px; line-height: 1.55; }
  .units-band .units { margin-top: 20px; }
  .chart-head { padding: 72px 0 25px; }
  .chart-head .wrap { gap: 24px; }
  .chart-head h1 { font-weight: 700; font-style: italic; }
  .chart-head p { font-weight: 300; }
  .finder { padding: 24px; gap: 18px; }
  .finder-search { min-height: 56px; padding: 0 18px; gap: 12px; }
  .jump-pills { display: none; align-items: center; flex-wrap: wrap; gap: 10px; }
  .jump-pills span { margin-right: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .jump-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #ffffff; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
  .jump-pills a:hover { border-color: var(--orange); color: var(--orange-dark); }
  .chart-block { gap: 24px; margin: 24px 0 40px; }
  .chart-count { padding: 16px 20px; font-size: 14px; }
  .site-footer { padding: 72px 0 48px; }
  .site-footer .wrap { gap: 48px; }
  .footer-top { flex-direction: row; justify-content: space-between; gap: 48px; }
  .footer-about { gap: 18px; }
  .footer-about h2 { font-size: 22px; }
  .footer-about p { font-size: 17px; line-height: 1.65; }
  .footer-links { gap: 14px; min-width: 300px; }
  .footer-links h2 { font-size: 13px; }
  .footer-links a { height: 56px; padding: 0 22px; font-size: 15px; }
  .footer-links img { height: 18px; }
  .footer-links svg { width: 18px; height: 18px; }
  .copyright { padding-top: 24px; font-size: 14px; }
}

/* Two-column hero */
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .hero-text { grid-column: span 7; }
  .hero .map-card, .home-hero .chart-list { grid-column: 8 / span 5; justify-self: center; }
  .map-card img { height: 280px; }
}

/* Desktop */
@media (min-width: 1200px) {
  .table-scroll { overflow-x: auto; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .chart tbody td, .chart tbody th, .chart thead th { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 1100px) {
  .jump-select { display: none; }
  .jump-pills { display: flex; }
  .hero { padding: 72px 0 150px; }
  .hero .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .hero-text { grid-column: span 8; gap: 28px; }
  .hero .map-card { grid-column: 9 / span 4; justify-self: center; }
  .map-card img { height: 330px; }
  .home-hero { padding: 104px 0 160px; }
  .home-hero .hero-text { grid-column: span 7; }
  .home-hero .chart-list { grid-column: 9 / span 4; }
  .block { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; padding: 64px; }
  .block-head { grid-column: span 4; }
  .block-body { grid-column: 6 / span 7; font-size: 19px; }
  .card-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .card-grid.five .card { min-height: 240px; gap: 32px; }
  .card h2 { font-size: 22px; }
  .card-map img { height: 150px; }
  .units { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-top { gap: 80px; }
  .footer-links { min-width: 320px; }
}

/* Top 10 pages */
.top10-scroll { max-height: none; overflow: visible; }
.chart .rank-n { display: none; }
.chart td.rank, .chart th.rank { width: 64px; }
.chart td.rank { font-size: 17px; font-weight: 700; color: var(--orange-dark); }
@media (max-width: 1199.98px) {
  .top10-scroll { max-height: none; }
  .chart td.rank { display: none; }
  .chart .rank-n { display: inline; }
  .chart.top10 td.mgl { grid-row: 1 / 3; }
}

/* Home: top 10 links */
.top10-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.top10-links li:last-child:nth-child(odd) { grid-column: span 2; }
.top10-links a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; height: 100%; box-sizing: border-box; padding: 16px 10px; background: #ffffff; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.top10-links a:hover { border-color: var(--orange-dark); }
.top10-links img { display: block; height: 44px; width: 44px; object-fit: cover; border: 1px solid #dddddd; border-radius: 50%; flex-shrink: 0; }
.top10-links .t10-name { flex-grow: 1; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3; }
.top10-links .t10-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--orange-dark); white-space: nowrap; }
.top10-links .arrow { width: 14px; height: 14px; }
@media (min-width: 640px) { .top10-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } .top10-links li:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1100px) {
  .top10-links { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .top10-links a { gap: 14px; padding: 20px 12px; }
  .top10-links img { height: 48px; width: 48px; }
  .top10-links .t10-name { font-size: 15px; }
}
.units-band[aria-labelledby="top-10-hardest"] p { max-width: 980px; }
.card-soon .cta { color: var(--muted); }
