
:root {
    --bi-ink: #10224d;
    --bi-ink-2: #23345f;
    --bi-muted: #66728f;
    --bi-soft: #f5f8fc;
    --bi-soft-2: #eef4fb;
    --bi-line: #dfe7f3;
    --bi-blue: #2563eb;
    --bi-teal: #0aa88f;
    --bi-green: #18a874;
    --bi-orange: #f59e0b;
    --bi-purple: #8b5cf6;
    --bi-red: #ef4444;
    --bi-card: #ffffff;
    --bi-radius: 22px;
    --bi-shadow: 0 22px 70px rgba(16, 34, 77, .08);
    --bi-shadow-soft: 0 12px 38px rgba(16, 34, 77, .06);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(10, 168, 143, .07), transparent 26rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, .06), transparent 24rem),
        #fff;
    color: var(--bi-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--bi-muted);
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .91);
    border-bottom: 1px solid rgba(223, 231, 243, .78);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 206px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: .92;
}

.logo svg {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
}

.logo-text {
    display: grid;
    font-size: 25px;
}

.logo-text span:first-child {
    color: var(--bi-ink);
}

.logo-text span:last-child {
    color: var(--bi-teal);
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 34px);
    flex: 1;
    font-size: 14px;
    font-weight: 800;
    color: var(--bi-ink);
}

.menu a {
    padding: 28px 0;
    white-space: nowrap;
}

.menu a:hover,
.footer a:hover,
.link:hover {
    color: var(--bi-teal);
}

.search-trigger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--bi-ink);
}

.search-trigger:hover {
    background: var(--bi-soft);
    border-color: var(--bi-line);
}

.page-shell {
    padding: 34px 0 0;
}

.hero {
    padding: 26px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1fr) minmax(360px, 1.2fr) 190px;
    gap: 18px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1,
.page-title {
    margin: 0 0 18px;
    color: var(--bi-ink);
    font-size: clamp(42px, 5.3vw, 70px);
    line-height: .96;
    letter-spacing: -.055em;
}

.hero p {
    max-width: 510px;
    margin: 0;
    font-size: 18px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.trust-pill,
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--bi-soft);
    color: var(--bi-ink-2);
    font-size: 13px;
    font-weight: 800;
}

.trust-pill svg,
.filter-pill svg,
.section-title svg {
    width: 18px;
    height: 18px;
}

.featured-card {
    position: relative;
    min-height: 292px;
    overflow: hidden;
    border-radius: var(--bi-radius);
    background:
        linear-gradient(180deg, rgba(16, 34, 77, .06), rgba(16, 34, 77, .84)),
        linear-gradient(135deg, #88c9ff, #f5b66f 38%, #14304e);
    box-shadow: var(--bi-shadow-soft);
}

.featured-card.city-visual {
    background:
        linear-gradient(180deg, rgba(16, 34, 77, 0), rgba(16, 34, 77, .38)),
        linear-gradient(135deg, #d8f3ff 0%, #9ed0ef 35%, #497aa6 64%, #19345b 100%);
}

.featured-art {
    position: absolute;
    inset: 0;
    opacity: .9;
    background:
        radial-gradient(circle at 22% 38%, rgba(255, 255, 255, .65) 0 5%, transparent 5.5%),
        radial-gradient(circle at 53% 31%, rgba(255, 255, 255, .48) 0 3.5%, transparent 4%),
        linear-gradient(150deg, transparent 0 36%, rgba(255, 255, 255, .22) 36% 37%, transparent 37%),
        repeating-linear-gradient(90deg, transparent 0 36px, rgba(255,255,255,.13) 37px 39px),
        linear-gradient(to top, rgba(0,0,0,.32), transparent 42%);
}

.skyline {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 55%;
    background:
        linear-gradient(90deg, transparent 0 2%, rgba(255,255,255,.28) 2% 6%, transparent 6% 11%, rgba(255,255,255,.24) 11% 18%, transparent 18% 22%, rgba(255,255,255,.36) 22% 30%, transparent 30% 33%, rgba(255,255,255,.26) 33% 43%, transparent 43% 47%, rgba(255,255,255,.38) 47% 55%, transparent 55% 60%, rgba(255,255,255,.22) 60% 72%, transparent 72% 100%),
        linear-gradient(to top, rgba(16,34,77,.48), rgba(16,34,77,.02));
    clip-path: polygon(0 100%, 0 55%, 6% 55%, 6% 38%, 13% 38%, 13% 64%, 20% 64%, 20% 24%, 28% 24%, 28% 52%, 36% 52%, 36% 34%, 42% 34%, 42% 60%, 51% 60%, 51% 16%, 57% 16%, 57% 48%, 65% 48%, 65% 27%, 72% 27%, 72% 64%, 80% 64%, 80% 41%, 88% 41%, 88% 60%, 100% 60%, 100% 100%);
}

.featured-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    color: #fff;
}

.tag,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(10, 168, 143, .12);
    color: var(--bi-teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.featured-card .tag {
    position: relative;
    margin-bottom: 88px;
    background: var(--bi-teal);
    color: #fff;
}

.featured-content h2 {
    max-width: 530px;
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.featured-content p,
.featured-content .meta {
    color: rgba(255, 255, 255, .86);
}

.meta,
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--bi-muted);
    font-size: 13px;
    font-weight: 700;
}

.ad-box,
.ad-strip {
    display: grid;
    place-items: center;
    min-height: 180px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(245, 248, 252, .92), rgba(255,255,255,.58)),
        var(--bi-soft);
    border: 1px solid rgba(223, 231, 243, .65);
    color: #8a94aa;
    font-size: 14px;
}

.ad-strip {
    min-height: 46px;
    margin: 18px 0 34px;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 18px;
}

.category-card,
.card,
.metric-card,
.info-card,
.sidebar-card,
.tool-card,
.newsletter,
.footer-badge {
    border: 1px solid var(--bi-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--bi-shadow-soft);
}

.category-card {
    position: relative;
    min-height: 138px;
    padding: 18px;
    overflow: hidden;
}

.category-card:hover,
.card:hover,
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bi-shadow);
}

.category-card,
.card,
.tool-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.icon-bubble {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: rgba(37, 99, 235, .11);
    color: var(--bi-blue);
}

.icon-bubble svg {
    width: 28px;
    height: 28px;
}

.category-card h3,
.card h3,
.metric-card h3,
.info-card h3,
.tool-card h3 {
    margin: 0 0 5px;
    color: var(--bi-ink);
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.category-card p,
.card p,
.metric-card p,
.info-card p,
.tool-card p {
    margin: 0;
    font-size: 13px;
}

.mini-chart {
    position: absolute;
    right: 16px;
    bottom: 13px;
    display: flex;
    align-items: end;
    gap: 3px;
    height: 34px;
    opacity: .55;
}

.mini-chart span {
    width: 5px;
    border-radius: 99px 99px 0 0;
    background: currentColor;
}

.section {
    padding: 12px 0 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0 14px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--bi-ink);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.link {
    color: var(--bi-blue);
    font-size: 13px;
    font-weight: 900;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.card {
    display: flex;
    min-height: 290px;
    overflow: hidden;
    flex-direction: column;
}

.card-image {
    position: relative;
    min-height: 116px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(10,168,143,.26), rgba(37,99,235,.18)),
        linear-gradient(150deg, #e8f7ff, #dbeafe);
}

.card-image::after {
    position: absolute;
    content: '';
    inset: 0;
    opacity: .54;
    background:
        radial-gradient(circle at 20% 24%, rgba(255,255,255,.75) 0 8%, transparent 8.2%),
        radial-gradient(circle at 72% 30%, rgba(255,255,255,.42) 0 9%, transparent 9.3%),
        linear-gradient(to top, rgba(16,34,77,.42), transparent 68%),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(16,34,77,.11) 29px 31px);
}

.card .tag {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, .94);
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
}

.card h3 {
    font-size: 17px;
}

.card .meta {
    margin-top: auto;
}

.rankings-layout {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 18px;
}

.ranking-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ranking-card {
    min-height: 152px;
    padding: 18px;
}

.ranking-card ol {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ranking-card li {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 8px;
    color: var(--bi-ink-2);
    font-size: 13px;
    font-weight: 800;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 18px;
}

.newsletter {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 22px;
    align-items: center;
    margin: 22px 0 8px;
    padding: 16px 18px;
    background:
        linear-gradient(90deg, rgba(10, 168, 143, .13), rgba(10, 168, 143, .04)),
        #fff;
}

.newsletter-copy {
    display: flex;
    gap: 14px;
    align-items: center;
}

.newsletter form {
    display: flex;
    gap: 8px;
}

.newsletter input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--bi-line);
    border-radius: 12px;
    font: inherit;
}

.button,
.newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--bi-teal);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
}

.button.secondary {
    background: #fff;
    color: var(--bi-ink);
    border: 1px solid var(--bi-line);
}

.footer {
    margin-top: 28px;
    padding: 32px 0 22px;
    border-top: 1px solid var(--bi-line);
    background: rgba(255, 255, 255, .72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr .9fr 1.25fr 1.35fr;
    gap: 30px;
}

.footer h4 {
    margin: 0 0 10px;
    color: var(--bi-ink);
}

.footer ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--bi-muted);
    font-size: 13px;
}

.footer p {
    margin: 8px 0 0;
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.socials span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--bi-soft);
    color: var(--bi-ink);
    font-size: 12px;
    font-weight: 900;
}

.footer-badge {
    padding: 14px;
    margin-bottom: 10px;
}

.source-badges,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-badge,
.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bi-soft);
    color: var(--bi-ink-2);
    font-size: 12px;
    font-weight: 900;
}

.copyright {
    margin-top: 24px;
    text-align: center;
    color: var(--bi-muted);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--bi-muted);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb a {
    color: var(--bi-blue);
}

.city-hero,
.article-layout,
.ranking-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
}

.city-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    margin: 22px 0;
    border: 1px solid var(--bi-line);
    border-radius: 18px;
    background: #fff;
}

.stat-chip {
    padding: 14px;
    border-right: 1px solid var(--bi-line);
}

.stat-chip:last-child {
    border-right: 0;
}

.stat-chip span {
    display: block;
    color: var(--bi-muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-chip strong {
    display: block;
    margin-top: 4px;
    color: var(--bi-ink);
    font-size: 20px;
    line-height: 1;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 14px 0 26px;
}

.metric-card,
.info-card,
.sidebar-card,
.ranking-card {
    padding: 18px;
}

.metric-card strong {
    display: block;
    margin: 8px 0 8px;
    color: var(--bi-ink);
    font-size: 30px;
    letter-spacing: -.04em;
}

.line-chart,
.bar-chart {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 50px;
    margin-top: 12px;
}

.line-chart span,
.bar-chart span {
    width: 9px;
    border-radius: 999px;
    background: var(--bi-teal);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.comparison-table,
.article-body table,
.ranking-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--bi-line);
    border-radius: 16px;
    background: #fff;
}

.comparison-table th,
.comparison-table td,
.article-body th,
.article-body td,
.ranking-table th,
.ranking-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bi-line);
    color: var(--bi-ink-2);
    font-size: 13px;
    text-align: left;
}

.comparison-table th,
.article-body th,
.ranking-table th {
    background: var(--bi-soft);
    color: var(--bi-ink);
    font-weight: 900;
}

.comparison-table tr:last-child td,
.article-body tr:last-child td,
.ranking-table tr:last-child td {
    border-bottom: 0;
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.sidebar-card h3 {
    margin: 0 0 12px;
    color: var(--bi-ink);
}

.sidebar-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-list a,
.sidebar-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--bi-line);
    color: var(--bi-ink-2);
    font-size: 14px;
    font-weight: 800;
}

.sidebar-list li:last-child,
.sidebar-list a:last-child {
    border-bottom: 0;
}

.article-header {
    margin-bottom: 26px;
}

.article-header h1 {
    max-width: 820px;
    margin: 13px 0 14px;
    color: var(--bi-ink);
    font-size: clamp(38px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -.055em;
}

.article-header p {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: 19px;
}

.article-visual {
    min-height: 300px;
    margin: 0 0 26px;
    border-radius: var(--bi-radius);
    background:
        radial-gradient(circle at 80% 22%, rgba(10, 168, 143, .22), transparent 18%),
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .18), transparent 22%),
        linear-gradient(135deg, #eff6ff, #fff 44%, #e0fbf5);
    border: 1px solid var(--bi-line);
    box-shadow: var(--bi-shadow-soft);
}

.article-body {
    color: var(--bi-ink-2);
    font-size: 18px;
}

.article-body h2 {
    margin: 36px 0 12px;
    color: var(--bi-ink);
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.article-body h3 {
    margin: 26px 0 10px;
    color: var(--bi-ink);
    font-size: 22px;
    letter-spacing: -.02em;
}

.article-body p,
.article-body li {
    color: #384667;
}

.article-body a {
    color: var(--bi-blue);
    font-weight: 800;
}

.summary-box,
.callout {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid rgba(10, 168, 143, .22);
    border-radius: 18px;
    background: rgba(10, 168, 143, .07);
}

.summary-box h2,
.callout h2,
.summary-box h3,
.callout h3 {
    margin-top: 0;
}

.sticky {
    position: sticky;
    top: 96px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 16px;
}

.filter-pill.active {
    color: var(--bi-teal);
    border: 1px solid rgba(10,168,143,.45);
    background: rgba(10,168,143,.09);
}

.ranking-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
}

.ranking-table-card,
.data-panel {
    padding: 18px;
    border: 1px solid var(--bi-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--bi-shadow-soft);
}

.rank-medal {
    width: 28px;
    height: 28px;
    padding: 0;
}

.rank-medal.gold { background: rgba(245, 158, 11, .18); color: #b66a00; }
.rank-medal.silver { background: rgba(148, 163, 184, .22); color: #526071; }
.rank-medal.bronze { background: rgba(249, 115, 22, .16); color: #c55213; }

.trend-up { color: var(--bi-green); font-weight: 900; }
.trend-down { color: var(--bi-red); font-weight: 900; }

.pillar-bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    align-items: end;
    height: 160px;
    margin-top: 18px;
}

.pillar {
    display: grid;
    align-content: end;
    gap: 6px;
    height: 100%;
    text-align: center;
    color: var(--bi-muted);
    font-size: 11px;
    font-weight: 800;
}

.pillar strong {
    color: var(--bi-ink);
}

.pillar span {
    display: block;
    width: 100%;
    min-height: 42px;
    border-radius: 12px 12px 4px 4px;
    background: var(--bi-blue);
}

.top-cities {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
}

.faq-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--bi-line);
    border-radius: 12px;
    background: #fff;
    color: var(--bi-ink-2);
    font-size: 14px;
    font-weight: 900;
}

.empty {
    padding: 36px;
    border: 1px dashed var(--bi-line);
    border-radius: 18px;
    background: var(--bi-soft);
    text-align: center;
}

@media (max-width: 1080px) {
    .hero-grid,
    .city-head,
    .city-hero,
    .article-layout,
    .ranking-page-grid,
    .rankings-layout {
        grid-template-columns: 1fr;
    }

    .ad-box {
        min-height: 92px;
    }

    .category-row,
    .metric-grid,
    .info-grid,
    .ranking-cards,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid,
    .top-cities {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 14px 0;
    }

    .menu {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        gap: 18px;
        padding-bottom: 4px;
    }

    .menu a {
        padding: 4px 0 10px;
    }

    .search-trigger {
        display: none;
    }

    .hero h1,
    .page-title,
    .article-header h1 {
        font-size: 40px;
    }

    .category-row,
    .article-grid,
    .ranking-cards,
    .tools-grid,
    .metric-grid,
    .info-grid,
    .stat-grid,
    .footer-grid,
    .top-cities,
    .faq-grid,
    .newsletter {
        grid-template-columns: 1fr;
    }

    .stat-chip {
        border-right: 0;
        border-bottom: 1px solid var(--bi-line);
    }

    .stat-chip:last-child {
        border-bottom: 0;
    }

    .newsletter form {
        flex-direction: column;
    }

    .article-body {
        font-size: 16px;
    }
}

/* v1.4 usability and illustration updates */
.search-trigger,
.socials,
.ad-box,
.ad-strip,
.newsletter {
    display: none !important;
}

.hero-grid.hero-grid-two {
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.18fr);
}

.featured-card {
    display: block;
}

.featured-media,
.card-image img,
.article-visual img,
.city-visual-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-media {
    position: absolute;
    inset: 0;
}

.card-image {
    min-height: 148px;
}

.card-image .tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    background: rgba(255,255,255,.94);
}

.article-grid.article-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.compact-header h1 {
    font-size: clamp(30px, 4.2vw, 52px);
}

.lede {
    font-size: 18px;
    max-width: 720px;
}

.city-visual-image {
    min-height: 320px;
    padding: 0;
    background: #fff;
}

.article-visual {
    min-height: auto;
    overflow: hidden;
    padding: 0;
}

.article-visual img {
    aspect-ratio: 16 / 9;
}

.footer-grid.footer-grid-clean {
    grid-template-columns: 1.2fr .9fr .9fr 1.2fr;
}

.search-panel,
.helper-card,
.city-row,
.page-pill,
.results-chip {
    border: 1px solid var(--bi-line);
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--bi-shadow-soft);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) minmax(180px, .8fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 18px;
}

.search-panel label {
    display: block;
    margin-bottom: 6px;
    color: var(--bi-ink);
    font-size: 13px;
    font-weight: 800;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--bi-line);
    border-radius: 12px;
    background: #fff;
    color: var(--bi-ink);
    font: inherit;
}

.field-grow {
    min-width: 0;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.helper-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.helper-card {
    padding: 18px;
}

.helper-card h3,
.results-head strong {
    margin: 0 0 8px;
    color: var(--bi-ink);
}

.quick-links .source-badge {
    transition: transform .15s ease, box-shadow .15s ease;
}

.quick-links .source-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--bi-shadow-soft);
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 12px;
    color: var(--bi-muted);
    font-size: 14px;
}

.results-chip {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.cities-list {
    display: grid;
    gap: 12px;
}

.city-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
}

.city-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--bi-shadow);
}

.city-row-main strong {
    display: block;
    color: var(--bi-ink);
    font-size: 18px;
    margin-bottom: 2px;
}

.city-row-main span,
.muted {
    color: var(--bi-muted);
    font-size: 14px;
}

.city-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.city-row-link {
    color: var(--bi-blue);
    font-size: 13px;
    font-weight: 900;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.page-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    font-weight: 800;
}

.page-pill.active {
    background: var(--bi-teal);
    border-color: var(--bi-teal);
    color: #fff;
}

@media (max-width: 1080px) {
    .hero-grid.hero-grid-two,
    .helper-grid,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .article-grid.article-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .article-grid.article-grid-4 {
        grid-template-columns: 1fr;
    }

    .search-actions,
    .city-row,
    .city-row-meta,
    .results-head {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .city-row-meta {
        justify-content: flex-start;
    }

    .footer-grid.footer-grid-clean {
        grid-template-columns: 1fr;
    }
}

/* v1.4.1 emergency-safe CSS illustrations without PHP image generator */
.card-image.economia-na-pratica,
.article-visual.economia-na-pratica {
    background:
        radial-gradient(circle at 76% 22%, rgba(255,255,255,.36) 0 12%, transparent 12.5%),
        linear-gradient(135deg, #123d7a, #0aa88f);
}
.card-image.economia-na-pratica::before,
.article-visual.economia-na-pratica::before {
    content: '';
    position: absolute;
    inset: 24px;
    border-radius: 20px;
    background:
        linear-gradient(to top, rgba(255,255,255,.82) 0 10px, transparent 10px) 0 100%/100% 70px no-repeat,
        repeating-linear-gradient(90deg, transparent 0 44px, rgba(255,255,255,.45) 45px 54px, transparent 55px 74px);
    opacity: .82;
}
.card-image.governo-explicado,
.article-visual.governo-explicado {
    background:
        radial-gradient(circle at 20% 25%, rgba(255,255,255,.32) 0 11%, transparent 11.5%),
        linear-gradient(135deg, #4338ca, #8b5cf6);
}
.card-image.governo-explicado::before,
.article-visual.governo-explicado::before {
    content: '';
    position: absolute;
    inset: 28px 34px;
    background:
        linear-gradient(#fff,#fff) 0 62%/100% 10px no-repeat,
        repeating-linear-gradient(90deg, rgba(255,255,255,.82) 0 24px, transparent 25px 48px),
        linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.75) 44% 56%, transparent 56% 100%);
    clip-path: polygon(50% 0,100% 28%,92% 28%,92% 88%,100% 88%,100% 100%,0 100%,0 88%,8% 88%,8% 28%,0 28%);
    opacity: .86;
}
.card-image.cidades,
.article-visual.cidades {
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,.35) 0 10%, transparent 10.5%),
        linear-gradient(135deg, #0f2a55, #1f6fe5);
}
.card-image.cidades::before,
.article-visual.cidades::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(255,255,255,.34), transparent 58%),
        repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.33) 39px 52px, transparent 53px 76px);
    clip-path: polygon(0 100%,0 58%,9% 58%,9% 40%,18% 40%,18% 66%,28% 66%,28% 24%,39% 24%,39% 55%,51% 55%,51% 16%,60% 16%,60% 64%,72% 64%,72% 34%,83% 34%,83% 58%,100% 58%,100% 100%);
}
.article-visual {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}
.city-map-art {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 42% 43%, #18a874 0 14px, #fff 15px 23px, transparent 24px),
        linear-gradient(142deg, transparent 0 38%, rgba(10,168,143,.34) 38% 40%, transparent 40% 100%),
        linear-gradient(28deg, transparent 0 52%, rgba(37,99,235,.22) 52% 54%, transparent 54% 100%),
        radial-gradient(circle at 18% 20%, rgba(255,255,255,.68) 0 9%, transparent 9.5%),
        linear-gradient(135deg, #d8efff, #d9f8ef);
}
.map-label {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.86);
    color: var(--bi-ink);
    font-weight: 900;
}
