/*
 * RouterMap (routermap.co.uk): the stylesheet for the house type pages, guides, report and glossary.
 * One file, shared by every page outside the checker itself, so those pages carry no inline styles.
 * Copyright (c) 2026 Upleashed Limited, trading as BroadbandSwitch.  All rights reserved.
 */
@font-face {
  font-family: "Epilogue";
  src: url("../fonts/epilogue-variable.woff2") format("woff2-variations"), url("../fonts/epilogue-variable.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
:root {
  --ink: #101519; --body: #2b364a; --soft: #55627a; --paper: #ffffff; --ground: #f2f5fa; --hair: #dce3ee; --tint: #e9f0f9;
  --navy: #0c2050; --navy-2: #142c69; --brand: #087c73; --teal-ink: #06645d; --brand-soft: #dff4f1;
  --pink: #e50571; --pink-dark: #b30459;
  --low: #c0392b; --mid: #d9822b; --good: #2e9e63; --top: #0a6b4a;
  --gut: clamp(1rem, 3.2vw, 2.25rem); --max: 1120px; --read: 46rem;
  --lift: 0 1px 2px rgba(16, 21, 25, .06), 0 10px 28px -14px rgba(16, 21, 25, .32);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; color: var(--ink); background: var(--ground);
  font-family: Epilogue, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #0aa89b; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--navy); text-wrap: balance; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- header ---------- */
.chrome {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
  padding: .55rem var(--gut); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.chrome-brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.wordmark { display: inline-flex; align-items: center; min-height: 40px; }
.wordmark img { height: 34px; width: auto; }
.by-line { color: var(--soft); font-size: .875rem; white-space: nowrap; padding-left: .75rem; border-left: 1px solid var(--hair); }
.by-line a { color: var(--body); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.by-line a:hover { color: var(--pink-dark); text-decoration: underline; }
.nav { display: flex; align-items: center; gap: .15rem .4rem; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 .7rem; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current] { background: var(--tint); }
.nav .btn { margin-left: .25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.15rem; border-radius: 999px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--navy-2); color: #fff; }
.nav a.btn { color: #fff; padding: 0 1.05rem; }
.nav a.btn:hover { background: var(--navy-2); }
.btn.deal, .nav a.btn.deal { background: var(--pink); border-color: var(--pink); }
.btn.deal:hover, .nav a.btn.deal:hover { background: var(--pink-dark); border-color: var(--pink-dark); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--tint); color: var(--navy); }
.btn.big { min-height: 54px; padding: 0 1.6rem; font-size: 1.05rem; }

/* ---------- masthead ---------- */
.mast {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px;
  padding: clamp(1.2rem, 2.6vw, 2rem) var(--gut) clamp(1.8rem, 3.6vw, 3rem); color: #fff;
}
.mast-in { max-width: var(--max); margin: 0 auto; }
.crumbs { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 .5rem; font-size: .9rem; color: #c8d1e6; }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; }
.crumbs li + li::before { content: "/"; color: #8fa0c4; }
.crumbs a { color: #ffffff; display: inline-flex; align-items: center; min-height: 40px; }
.mast h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.06; letter-spacing: -.034em; font-weight: 800; max-width: 24ch; }
.mast .stand { margin: .9rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.5; color: #dbe3f3; max-width: 44rem; }
.mast .meta { margin: 1rem 0 0; font-size: .9rem; color: #c8d1e6; }
.mast .meta a { color: #fff; }

/* ---------- body ---------- */
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(1.6rem, 3.4vw, 2.6rem) var(--gut) 3rem; }
.wrap > * { max-width: var(--read); }
.wrap > .wide { max-width: none; }
.wrap h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; letter-spacing: -.03em; margin: 2.8rem 0 .8rem; }
.wrap h2:first-child { margin-top: 0; }
.wrap h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin: 1.8rem 0 .4rem; }
.wrap p, .wrap li { font-size: 1.05rem; line-height: 1.68; color: var(--body); }
.wrap p { margin: 0 0 1rem; }
.wrap ul:not([class]), .wrap ol:not([class]) { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.wrap li { margin-bottom: .45rem; }
.wrap li::marker { color: var(--brand); font-weight: 700; }
.small { font-size: .9rem; color: var(--soft); }

.answer { background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: var(--lift); margin: 0 0 1.8rem; }
.answer h2 { font-size: 1.05rem; letter-spacing: 0; margin: 0 0 .5rem; color: var(--teal-ink); }
.answer p { font-size: 1.14rem; line-height: 1.6; color: var(--ink); margin: 0 0 .7rem; }
.answer p:last-child { margin-bottom: 0; }

.lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-bottom: 2rem; }
.lead > * { margin: 0; min-width: 0; }
.lead .answer, .lead .scores { margin: 0; }
.lead .small { margin: .9rem 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; margin-top: 2.8rem; }
.split > * { min-width: 0; margin: 0; }
.wrap .split h2 { margin-top: 0; }
.toc { background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; padding: 1.1rem 1.4rem; }
.wrap .toc h2 { font-size: 1.05rem; letter-spacing: 0; margin: 0 0 .3rem; color: var(--teal-ink); }
.wrap .toc ol, .wrap .toc ul { list-style: none; margin: 0; padding: 0; }
.lead.solo { grid-template-columns: minmax(0, var(--read)); }
.toc .chips { display: flex; flex-wrap: wrap; gap: .45rem; padding-top: .4rem; }
.wrap .toc .chips li { border: 0; }
.toc .chips a { min-height: 40px; padding: 0 .8rem; border: 1px solid var(--hair); border-radius: 999px; background: var(--ground); font-size: .95rem; }
.toc .chips a:hover { border-color: var(--navy); text-decoration: none; }
.wrap .toc li { margin: 0; font-size: 1rem; line-height: 1.35; border-top: 1px solid var(--hair); }
.wrap .toc li:first-child { border-top: 0; }
.toc a { display: flex; align-items: center; min-height: 42px; padding: .3rem 0; color: var(--navy); font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* three scores, drawn as bars */
.scores { list-style: none; margin: 0 0 1.8rem; padding: 1.1rem 1.4rem; background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; }
.wrap .scores li { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) 3.6rem; align-items: center; gap: .3rem 1rem; margin: 0; padding: .6rem 0; font-size: 1rem; line-height: 1.35; border-top: 1px solid var(--hair); }
.wrap .scores li:first-child { border-top: 0; }
.scores .lab { font-weight: 700; color: var(--navy); }
.scores .lab small { display: block; font-weight: 400; font-size: .9rem; color: var(--soft); }
.scores .track { height: 18px; border-radius: 9px; background: var(--tint); overflow: hidden; }
.scores .fill { display: block; height: 100%; border-radius: 9px; background: var(--good); }
.scores .val { font-size: 1.35rem; font-weight: 800; color: var(--navy); text-align: right; letter-spacing: -.02em; }
.t-low { background: var(--low) !important; } .t-mid { background: var(--mid) !important; } .t-good { background: var(--good) !important; } .t-top { background: var(--top) !important; }
.w0{width:0}.w1{width:1%}.w2{width:2%}.w3{width:3%}.w4{width:4%}.w5{width:5%}.w6{width:6%}.w7{width:7%}.w8{width:8%}.w9{width:9%}.w10{width:10%}.w11{width:11%}.w12{width:12%}.w13{width:13%}.w14{width:14%}.w15{width:15%}.w16{width:16%}.w17{width:17%}.w18{width:18%}.w19{width:19%}.w20{width:20%}.w21{width:21%}.w22{width:22%}.w23{width:23%}.w24{width:24%}.w25{width:25%}.w26{width:26%}.w27{width:27%}.w28{width:28%}.w29{width:29%}.w30{width:30%}.w31{width:31%}.w32{width:32%}.w33{width:33%}.w34{width:34%}.w35{width:35%}.w36{width:36%}.w37{width:37%}.w38{width:38%}.w39{width:39%}.w40{width:40%}.w41{width:41%}.w42{width:42%}.w43{width:43%}.w44{width:44%}.w45{width:45%}.w46{width:46%}.w47{width:47%}.w48{width:48%}.w49{width:49%}.w50{width:50%}.w51{width:51%}.w52{width:52%}.w53{width:53%}.w54{width:54%}.w55{width:55%}.w56{width:56%}.w57{width:57%}.w58{width:58%}.w59{width:59%}.w60{width:60%}.w61{width:61%}.w62{width:62%}.w63{width:63%}.w64{width:64%}.w65{width:65%}.w66{width:66%}.w67{width:67%}.w68{width:68%}.w69{width:69%}.w70{width:70%}.w71{width:71%}.w72{width:72%}.w73{width:73%}.w74{width:74%}.w75{width:75%}.w76{width:76%}.w77{width:77%}.w78{width:78%}.w79{width:79%}.w80{width:80%}.w81{width:81%}.w82{width:82%}.w83{width:83%}.w84{width:84%}.w85{width:85%}.w86{width:86%}.w87{width:87%}.w88{width:88%}.w89{width:89%}.w90{width:90%}.w91{width:91%}.w92{width:92%}.w93{width:93%}.w94{width:94%}.w95{width:95%}.w96{width:96%}.w97{width:97%}.w98{width:98%}.w99{width:99%}.w100{width:100%}

/* figures: heat maps, charts and diagrams */
figure { margin: 0; }
figcaption { margin-top: .6rem; font-size: .92rem; line-height: 1.5; color: var(--soft); }
figcaption b { color: var(--navy); }
.fig { margin: 1.6rem 0 1.8rem; }
.fig img { width: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin: 1rem 0 2rem; }
.plans.n1 { grid-template-columns: minmax(0, 34rem); }
.plans.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans img { width: 100%; border: 1px solid var(--hair); border-radius: 16px; background: #fff; box-shadow: var(--lift); }
.state-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 2.2rem 0 0; }
.wrap .state-h h3 { margin: 0; font-size: 1.3rem; }
.wrap .state-h p { margin: 0; font-size: 1rem; color: var(--soft); }
.pill { display: inline-block; padding: .12rem .7rem; border-radius: 999px; font-size: .95rem; font-weight: 800; color: #fff; background: var(--good); }
.pill.t-mid { background: #a4560f !important; } .pill.t-good { background: #1f7a4a !important; }

/* tables */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.6rem; background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
caption { text-align: left; padding: .9rem 1rem .2rem; font-weight: 800; color: var(--navy); font-size: 1.02rem; }
th, td { text-align: left; padding: .65rem 1rem; border-top: 1px solid var(--hair); vertical-align: top; line-height: 1.4; color: var(--body); }
thead th { border-top: 0; font-size: .92rem; color: var(--navy); background: var(--tint); white-space: nowrap; }
tbody th { font-weight: 700; color: var(--navy); }
td.n, th.n { text-align: right; white-space: nowrap; }
td small, th small { display: block; font-size: .9rem; font-weight: 400; color: var(--soft); }
td b { color: var(--navy); }
tr.grp th { background: #f7f9fc; font-size: .9rem; color: var(--soft); }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: baseline; }
td a, tbody th a { display: inline-flex; align-items: center; min-height: 40px; }

/* notices and calls to action */
.note { background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.wrap .note p { font-size: .98rem; margin: 0 0 .5rem; }
.wrap .note p:last-child { margin: 0; }
.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); margin: 2.4rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.wrap .cta h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.35rem, 2.3vw, 1.7rem); }
.wrap .cta p { color: #dbe3f3; margin: 0; font-size: 1.02rem; }
.cta .acts { display: flex; flex-wrap: wrap; gap: .7rem; }
.deal-box { background: var(--paper); border: 1px solid var(--hair); border-radius: 20px; padding: clamp(1.2rem, 3vw, 1.7rem); margin: 2.2rem 0; }
.wrap .deal-box h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.wrap .deal-box p { font-size: 1rem; }
.wrap .deal-box .small { margin: .8rem 0 0; font-size: .9rem; }

/* card grids on the hub pages */
.cards { list-style: none; margin: 1.2rem 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.2rem; }
.wrap .cards li { margin: 0; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--body); box-shadow: var(--lift); }
.card:hover { border-color: var(--navy); color: var(--body); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; border-bottom: 1px solid var(--hair); }
.card .in { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card b { font-size: 1.12rem; line-height: 1.25; color: var(--navy); letter-spacing: -.015em; }
.card span { font-size: .95rem; line-height: 1.45; }
.card .go { margin-top: auto; padding-top: .5rem; font-size: 1rem; font-weight: 700; color: var(--navy); }
.card .go i { font-style: normal; color: var(--top); }
.links { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.wrap .links li { margin: 0; }
.links a { display: block; height: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: 14px; padding: .9rem 1.1rem; text-decoration: none; color: var(--body); }
.links a:hover { border-color: var(--navy); }
.links b { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.3; margin-bottom: .2rem; }
.links span { font-size: .95rem; line-height: 1.45; display: block; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.wrap .steps li { counter-increment: s; position: relative; padding: 0 0 0 3rem; margin-bottom: 1.1rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 1rem; }
.steps b { color: var(--navy); }

dl.gloss { margin: 0; }
dl.gloss dt { font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-top: 1.5rem; scroll-margin-top: 5rem; }
dl.gloss dd { margin: .25rem 0 0; font-size: 1.05rem; line-height: 1.65; color: var(--body); }
.refs { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.wrap .refs li { padding-left: 2rem; text-indent: -2rem; font-size: .98rem; line-height: 1.55; overflow-wrap: anywhere; }
.byline { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--hair); }
.wrap .byline p { font-size: .95rem; color: var(--soft); }

/* ---------- footer ---------- */
.foot { background: #07112a; color: #c8d1e6; padding: 2.2rem var(--gut) 2.6rem; font-size: .925rem; }
.foot-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.6rem; }
.foot h2 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.foot p { margin: 0 0 .5rem; }
.foot a { color: #fff; display: inline-flex; align-items: center; min-height: 40px; }
.foot p a { display: inline; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1rem; font-size: .875rem; line-height: 1.5; color: #b4c1dc; }
.foot-legal dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .25rem 1.2rem; margin: .5rem 0 .6rem; }
.foot-legal dt { color: #dbe3f3; font-weight: 600; display: inline; }
.foot-legal dd { margin: 0; display: inline; }

@media (max-width: 900px) {
  .by-line { display: none; }
  .plans.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead, .split { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chrome { padding: .45rem var(--gut); position: static; }
  html { scroll-padding-top: 1rem; }
  .wordmark img { height: 30px; }
  .nav { width: 100%; gap: .1rem .2rem; }
  .nav a { padding: 0 .55rem; font-size: .9rem; min-height: 40px; }
  .nav a.btn { min-height: 40px; padding: 0 .9rem; }
  .nav .btn { margin-left: 0; }
  .plans, .plans.n3 { grid-template-columns: minmax(0, 1fr); }
  .wrap .scores li { grid-template-columns: minmax(0, 1fr) 3.4rem; }
  .scores .lab { grid-column: 1 / -1; }
  .scores { padding: .8rem 1rem; }
  .answer { padding: 1.1rem 1.1rem; }
  .answer p { font-size: 1.06rem; }
  th, td { padding: .6rem .75rem; }
  .cta .acts .btn { flex: 1 1 100%; }
}
@media print {
  .chrome, .cta, .deal-box, .foot ul { display: none; }
  body { background: #fff; }
}
