:root {
  --bg: #0b0d10;
  --fg: #e8ebee;
  --muted: #9aa4ad;
  --accent: #4ea1ff;
  --border: #1f242b;
  --card: #14181d;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--fg); }
.site-nav a { margin-left: 1rem; color: var(--muted); }
.site-main { max-width: 64rem; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
.finder-form { background: var(--card); border: 1px solid var(--border); padding: 1.25rem; border-radius: 12px; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.finder-form label { display: flex; flex-direction: column; font-size: .875rem; gap: .25rem; }
.finder-form label.ff-input { flex: 1 1 160px; min-width: 0; }
.finder-form label.ff-checkbox { flex: 0 0 auto; flex-direction: row; align-items: center; gap: .5rem; padding-bottom: .5rem; }
.finder-form label.ff-checkbox input { width: auto; flex: 0 0 auto; margin: 0; }
.finder-form input, .finder-form select { background: #0b0d10; color: var(--fg); border: 1px solid var(--border); padding: .5rem .75rem; border-radius: 6px; font: inherit; width: 100%; box-sizing: border-box; }
.finder-form button { background: var(--accent); color: #001a33; border: 0; font-weight: 600; padding: .6rem 1.25rem; border-radius: 6px; cursor: pointer; flex: 0 0 auto; }
.finder-form button:hover { filter: brightness(1.1); }
.plan-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1.5rem; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.plan-card .price { font-size: 1.5rem; font-weight: 700; }
.plan-card .meta { color: var(--muted); font-size: .875rem; }
.plan-card .cta { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: .5rem .75rem; border-radius: 6px; text-align: center; margin-top: auto; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.compare-table th { background: var(--card); }
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem; }
.footer-inner { max-width: 64rem; margin: 0 auto; color: var(--muted); }
.footer-inner nav a { margin-right: 1rem; color: var(--muted); }
.footer-tag { margin-top: .5rem; font-size: .875rem; }
.zip-map-widget { margin-top: 1rem; }
.zip-map-canvas { height: 240px; border-radius: 8px; margin: .5rem 0; }
.zip-map-legend { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }
.zip-map-legend span { display: inline-block; padding: 2px 8px; border-radius: 4px; color: white; }
.legend-strong { background: #00a000; }
.legend-fair   { background: #c4a000; }
.legend-poor   { background: #c45000; }
.legend-none   { background: #555; }
.zip-map-status { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.coverage-map-container { margin: 1rem 0; }
.coverage-map-canvas { height: 600px; border-radius: 8px; }
.tech-toggle { display: inline-flex; gap: .25rem; margin-bottom: .5rem; }
.tech-toggle button { padding: .35rem .75rem; border: 1px solid var(--border); background: var(--card); color: var(--muted); border-radius: 6px; cursor: pointer; }
.tech-toggle button.active { background: var(--accent); color: #001a33; border-color: var(--accent); }
.coverage-search { display: inline-flex; gap: .25rem; margin-bottom: .5rem; margin-left: 1rem; }
.coverage-search input { padding: .35rem .5rem; border: 1px solid var(--border); border-radius: 6px; background: #0b0d10; color: var(--fg); }
.coverage-search button { padding: .35rem .75rem; background: var(--accent); color: #001a33; border: 0; border-radius: 6px; cursor: pointer; }
.coverage-status { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* Cookie consent banner */
#cellt-consent-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 38rem;
    margin: 0 auto;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    font-size: 0.9rem;
}
#cellt-consent-banner .cellt-consent-text { margin: 0 0 0.75rem; line-height: 1.45; }
#cellt-consent-banner .cellt-consent-text code {
    background: rgba(255, 255, 255, 0.07);
    padding: 0 0.25rem;
    border-radius: 3px;
    font-size: 0.85em;
}
#cellt-consent-banner .cellt-consent-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
#cellt-consent-banner button {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    font-size: 0.875rem;
}
#cellt-consent-banner button.primary {
    background: var(--accent);
    color: #001a33;
    border-color: var(--accent);
    font-weight: 600;
}
#cellt-consent-banner button:hover { filter: brightness(1.1); }

/* Glossary index */
article dl { margin-top: 1rem; }
article dt { margin-top: 1.2rem; font-weight: 600; }
article dt a { color: var(--accent); }
article dd { margin-left: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Breadcrumbs */
.breadcrumbs {
    margin: 0 0 1.25rem 0;
    font-size: 0.875rem;
    color: var(--muted);
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0;
}
.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 0.4rem;
    color: var(--muted);
    opacity: 0.6;
}
.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.breadcrumbs span[aria-current="page"] {
    color: var(--fg);
}

/* Footer columns */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.footer-cols h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg);
    opacity: 0.85;
}
.footer-cols ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-cols li { margin: 0.25rem 0; }
.footer-cols a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}
.footer-cols a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Multi-column link grid (homepage cities, etc.) */
.link-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.4rem 1rem;
}

/* Homepage guide list */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guide-list li { margin: 0.5rem 0; }
.guide-list h2 { margin: 0; }

/* Guide detail: byline, TOC, related */
.guide-byline {
    color: var(--muted, #666);
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}
.guide-toc {
    background: #f7f7f9;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0 2rem;
}
.guide-toc-title {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #555);
}
.guide-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}
.guide-toc-list .guide-toc-l3 { margin-left: 1.25rem; list-style-type: circle; }
.guide-toc-list a { text-decoration: none; }
.guide-toc-list a:hover { text-decoration: underline; }

.guide-related {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e5ea;
}
.guide-related h2 { margin-top: 0; }
.guide-related-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}
.guide-related-list li { margin: 0.4rem 0; }
.guide-related-all { margin-top: 0.5rem; }

/* FAQ list */
.faq-list dt {
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--fg);
    font-size: 1.05rem;
}
.faq-list dd {
    margin-left: 0;
    margin-top: 0.4rem;
    color: var(--muted);
}
.faq-list dd p { margin: 0.5rem 0; }

/* Larger link grid (cities/states index pages) */
.link-grid-large {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1.25rem;
}
.link-grid-large li a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--fg);
    text-decoration: none;
}
.link-grid-large li a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Carriers index matrix */
.carriers-matrix {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.carriers-matrix th,
.carriers-matrix td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.carriers-matrix th {
    font-weight: 600;
    background: var(--card);
    color: var(--fg);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.carriers-matrix .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.carriers-matrix tbody tr:hover {
    background: rgba(78, 161, 255, 0.06);
}
.carriers-matrix .muted {
    color: var(--muted);
}
.carriers-matrix-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1rem;
}

/* 404 destination grid */
.not-found h1 { margin-top: 1rem; }
.not-found-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.not-found-card {
    display: block;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--fg);
    text-decoration: none;
}
.not-found-card:hover {
    border-color: var(--accent);
}
.not-found-card h2 {
    margin: 0 0 0.4rem 0;
    color: var(--accent);
    font-size: 1.05rem;
}
.not-found-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.4;
}
.not-found-search {
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* /plans matrix table */
.plans-matrix {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.plans-matrix th,
.plans-matrix td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.plans-matrix th {
    font-weight: 600;
    background: var(--card);
    color: var(--fg);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    user-select: none;
}
.plans-matrix th:hover {
    color: var(--accent);
}
.plans-matrix .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.plans-matrix tbody tr:hover {
    background: rgba(78, 161, 255, 0.06);
}
.plans-matrix .muted {
    color: var(--muted);
}
.plans-matrix-note {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1rem;
}

/* "Part of {parent}" link on city pages */
.page-up-link {
    margin: 0 0 1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.page-up-link a {
    color: var(--accent);
}

/* /best-cell-phone-plans page */
.best-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.best-list > li {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}
.best-list > li:last-child {
    border-bottom: 1px solid var(--border);
}
.best-list h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    line-height: 1.4;
}
.best-list h2 a {
    color: var(--accent);
    text-decoration: none;
}
.best-list h2 a:hover {
    text-decoration: underline;
}
.best-cat-num {
    color: var(--muted);
    font-weight: normal;
    margin-right: 0.25rem;
}
.best-list p {
    margin: 0.6rem 0;
}

/* /sitemap.html */
.sitemap-section { margin: 1.5rem 0; }
.sitemap-section h2 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}
.sitemap-count {
    font-weight: normal;
    color: var(--muted);
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

/* Header search */
.site-search {
    margin-left: auto;
}
.site-search input[type="search"] {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--fg);
    font-size: 0.9rem;
    width: 14rem;
    max-width: 100%;
}
.site-search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* /search page */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem 0;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--fg);
    font-size: 1rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #001a33;
    font-weight: 600;
    cursor: pointer;
}
.search-summary {
    color: var(--muted);
    margin-bottom: 1rem;
}
.search-group { margin: 1.5rem 0; }
.search-group h2 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
}
.search-count {
    color: var(--muted);
    font-weight: normal;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}
.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-results li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.search-results li:last-child { border-bottom: none; }
.search-results a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.search-results a:hover { text-decoration: underline; }
.search-sublabel {
    display: block;
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 0.2rem;
}

/* Plans-by-network filter row */
.plans-by-network {
    margin: 0.5rem 0 1.25rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}
.plans-by-network a {
    color: var(--accent);
}

/* /compare-plans tool */
.compare-plans-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin: 1.5rem 0;
}
.compare-plans-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
    flex: 1;
    min-width: 200px;
}
.compare-plans-form select {
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--fg);
    font-size: 0.95rem;
}
.compare-plans-form button {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #001a33;
    font-weight: 600;
    cursor: pointer;
    height: 2.4rem;
}
.compare-plans-form button:hover {
    filter: brightness(1.1);
}
.compare-plans-hints {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.compare-vs {
    color: var(--muted);
    font-weight: normal;
    margin: 0 0.4rem;
    font-size: 0.85rem;
}
.compare-table-wide {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
}
.compare-table-wide th,
.compare-table-wide td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.compare-table-wide thead th {
    background: var(--card);
    color: var(--fg);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.compare-table-wide tbody th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* /compare-plans savings callout */
.compare-plans-savings {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--accent);
    background: rgba(78, 161, 255, 0.06);
    color: var(--fg);
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.popular-compares {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}
.popular-compares li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.popular-compares li:last-child { border-bottom: none; }
.popular-compares a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.popular-compares a:hover { text-decoration: underline; }

/* Homepage carriers-by-network grouping */
.carrier-network-group {
    margin: 1.25rem 0 0.5rem 0;
    font-size: 1rem;
    color: var(--fg);
}
.carrier-network-group small {
    margin-left: 0.5rem;
    font-weight: normal;
    font-size: 0.8rem;
}
.carrier-network-group small a {
    color: var(--accent);
}

/* Homepage hero stat strip */
.hero-stats {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}
.hero-stats li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.875rem;
}
.hero-stats strong {
    color: var(--accent);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.hero-stats span {
    color: var(--muted);
}

/* /whats-new timeline */
.whats-new-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.whats-new-date {
    margin: 1.25rem 0 0.5rem 0;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
}
.whats-new-item {
    padding: 0.45rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.whats-new-kind {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.whats-new-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.whats-new-item a:hover { text-decoration: underline; }
.whats-new-sublabel {
    color: var(--muted);
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

/* /switch-checklist */
.switch-progress {
    margin: 1rem 0;
    padding: 0.6rem 0.9rem;
    background: rgba(78, 161, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-weight: 600;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
}
.switch-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.switch-checklist > li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.switch-checklist label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
}
.switch-step-check {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
    accent-color: var(--accent);
    cursor: pointer;
}
.switch-step-num {
    color: var(--muted);
    font-weight: normal;
    margin-right: 0.2rem;
}
.switch-step-title { flex: 1; }
.switch-step-body {
    margin-top: 0.5rem;
    margin-left: 1.7rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.switch-step-done .switch-step-title {
    text-decoration: line-through;
    color: var(--muted);
}
.switch-step-done .switch-step-body { opacity: 0.6; }
.switch-checklist-reset {
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.switch-checklist-reset button {
    padding: 0.4rem 0.85rem;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--fg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}
.switch-checklist-reset button:hover {
    border-color: var(--accent);
}

/* Network primer (/networks/{slug}) */
.network-primer .lead {
    font-size: 1.05rem;
    color: var(--muted, #555);
    margin: 0 0 1.5rem 0;
}
.rider-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    columns: 2;
    column-gap: 2rem;
}
@media (max-width: 600px) {
    .rider-list { columns: 1; }
}
.rider-list li {
    margin: 0.3rem 0;
    break-inside: avoid;
}
.rider-type {
    color: var(--muted, #777);
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

/* Glossary index: category nav + sections */
.glossary-cat-nav {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0 2rem;
}
.glossary-cat-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
}
.glossary-cat-nav li { margin: 0; }
.glossary-cat-nav a { color: var(--accent); text-decoration: none; }
.glossary-cat-nav a:hover { text-decoration: underline; }
.glossary-cat-count { color: var(--muted); font-size: 0.85rem; }
.glossary-cat-section { margin-top: 2rem; }
.glossary-cat-section h2 { scroll-margin-top: 1rem; }

/* Glossary detail: category badge, summary, related */
.glossary-cat-badge {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0 0 0.5rem 0;
}
.glossary-cat-badge a { color: var(--muted); }
.glossary-cat-badge a:hover { color: var(--accent); }
.glossary-term-summary {
    font-size: 1.05rem;
    color: var(--fg);
    padding: 0.75rem 1rem;
    background: var(--card);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    margin: 0.5rem 0 1.5rem;
}
.glossary-related {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.glossary-related h2 { margin-top: 0; }
.glossary-related-all { margin-top: 0.75rem; }
.glossary-back {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 2rem;
}

/* Data calculator */
.data-calc-tip {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 0.6rem 0.9rem;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0.5rem 0 1.25rem;
}
.data-calc-form { margin-top: 1.25rem; }
.data-calc-result {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.data-calc-result h2 { margin-top: 0; }
.data-calc-rec { font-size: 1.05rem; }
.data-calc-rec .cta {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--accent);
    color: #001a33;
    border-radius: 6px;
    font-weight: 600;
}

/* Carrier editorial review (pros/cons) */
.carrier-review {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.carrier-review h2 { margin-top: 0; }
.carrier-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}
@media (max-width: 600px) {
    .carrier-review-grid { grid-template-columns: 1fr; }
}
.carrier-review-grid h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.carrier-review-pros h3 { color: #5fc77f; }
.carrier-review-cons h3 { color: #e08a5f; }
.carrier-review-grid ul {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.55;
}
.carrier-review-grid li { margin: 0.4rem 0; }
.carrier-review-fit {
    margin: 0.4rem 0;
    color: var(--fg);
}
.carrier-review-fit strong { color: var(--accent); }

/* Homepage: guide cards + best-of list */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
}
.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--fg);
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.guide-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.guide-card h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--fg);
    line-height: 1.35;
}
.guide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.guide-card-cta {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
}

.best-of-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}
.best-of-list li {
    margin: 0.4rem 0;
    line-height: 1.5;
}
.best-of-list a {
    color: var(--fg);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
    display: block;
}
.best-of-list a:hover {
    border-left-color: var(--accent);
    text-decoration: none;
}
.best-of-list strong { color: var(--accent); }

/* Inline ZIP form on plan pages */
.zip-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}
.zip-inline-form .ff-input {
    flex: 0 1 14rem;
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    gap: 0.25rem;
}
.zip-inline-form input[type="text"] {
    background: #0b0d10;
    color: var(--fg);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font: inherit;
    width: 100%;
}
.zip-inline-form button {
    background: var(--accent);
    color: #001a33;
    border: 0;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
}
.zip-inline-form button:hover { filter: brightness(1.1); }

/* Plan page last-verified badge */
.plan-verified {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 1.25rem 0;
}
.plan-verified time { color: var(--fg); }
.plan-verified a { color: var(--muted); text-decoration: underline dotted; }
.plan-verified a:hover { color: var(--accent); }

/* Homepage cheapest-by-network cards */
.cheapest-by-network {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.cheapest-net-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cheapest-net-card p { margin: 0; }
.cheapest-net-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.cheapest-net-label a { color: var(--muted); text-decoration: none; }
.cheapest-net-label a:hover { color: var(--accent); }
.cheapest-net-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
}
.cheapest-net-name {
    font-size: 0.9rem;
    line-height: 1.35;
}

/* /tools index page — card grid */
.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 0;
}
.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.tool-card h2 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem 0;
}
.tool-card h2 a { color: var(--accent); text-decoration: none; }
.tool-card h2 a:hover { text-decoration: underline; }
.tool-card p { margin: 0.4rem 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.tool-card-cta a { font-weight: 600; color: var(--accent); text-decoration: none; }

/* Plan card feature badges */
.plan-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.25rem 0 0.4rem 0;
}
.plan-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(78, 161, 255, 0.08);
    color: var(--accent);
}
.plan-badge.b-5g     { background: rgba(95, 199, 127, 0.10); color: #5fc77f; border-color: rgba(95, 199, 127, 0.3); }
.plan-badge.b-esim   { background: rgba(78, 161, 255, 0.10); color: var(--accent); border-color: rgba(78, 161, 255, 0.3); }
.plan-badge.b-intl   { background: rgba(224, 138, 95, 0.10); color: #e08a5f; border-color: rgba(224, 138, 95, 0.3); }
.plan-badge.b-annual { background: rgba(180, 120, 220, 0.10); color: #b478dc; border-color: rgba(180, 120, 220, 0.3); }

/* Topic hub pages */
.topic-hub .lead {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.55;
}
.topic-section { margin-top: 1.5rem; }
.topic-section h2 { margin-bottom: 0.75rem; }
.topic-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.topic-link-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.topic-link-list li:last-child { border-bottom: 0; }
.topic-link-list strong { color: var(--accent); }

/* /carriers index "Best for" column */
.carriers-matrix-best-for {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 24rem;
}
@media (max-width: 800px) {
    /* Hide best-for column on narrow viewports — table gets too wide otherwise */
    .carriers-matrix th:nth-child(6),
    .carriers-matrix td:nth-child(6) { display: none; }
}

/* /stats dashboard */
.stats-section { margin-top: 1.5rem; }
.stats-grid {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.stats-grid li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.stats-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stats-label {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.35;
}

/* Glossary detail prev/next nav */
.glossary-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.glossary-prev, .glossary-next {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    max-width: 45%;
    transition: border-color 0.15s ease;
}
.glossary-prev:hover, .glossary-next:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.glossary-next { text-align: right; align-items: flex-end; }
.glossary-pn-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.glossary-pn-term { color: var(--accent); font-weight: 600; }
.glossary-pn-arrow {
    color: var(--muted);
    font-size: 0.875rem;
}
.glossary-prev-disabled { visibility: hidden; }

/* /ownership corporate-tree page */
.ownership-tree .lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.ownership-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.ownership-section-note {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0.75rem 0;
}
.ownership-brands {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ownership-brands li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}
.ownership-brands li:last-child { border-bottom: 0; }
.ownership-brands strong { color: var(--accent); }
