/* wallsgrow — design system from the mockup (Claude Design, 17.11.2026) */
:root {
    --bg: #F4F5F8;
    --paper: #FFFFFF;
    --ink: #17162B;
    --ink-2: #2B2A42;
    --muted: #4D4C63;
    --line: #C9CAD6;
    --line-soft: #D9DAE3;
    --accent: #3B33C4;
    --accent-soft: #E6E4F7;
    --dark: #17162B;
    --dark-line: #3A3953;
    --dark-text: #C4C3D6;
    --dark-muted: #A9A8BF;
    --lilac: #B9B3FF;
    --head: 'Wix Madefor Display', 'Wix Madefor Text', sans-serif;
    --text: 'Wix Madefor Text', sans-serif;
    --serif: 'Brygada 1918', Georgia, serif;
    --pad: 48px;
    --header-h: 77px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.da-site {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.55 var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip-link:focus { left: 16px; }
.shell { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.kicker { display: inline-flex; align-items: center; min-height: 24px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.kicker:hover { color: var(--ink); }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.standfirst { margin: 0; font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.42; color: var(--ink-2); max-width: 760px; text-wrap: pretty; }
.pic { display: block; background: #E7E6F1; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic-lead { aspect-ratio: 16 / 10; }
.pic-tall { aspect-ratio: 4 / 5; }
.pic-wide { aspect-ratio: 2 / 1; }
.pic-link { display: block; min-width: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.header-inner { position: relative; min-height: 76px; display: flex; align-items: center; gap: 36px; }
.logo { flex: none; font-family: var(--head); font-weight: 800; font-size: 27px; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; line-height: 1; padding: 10px 0; }
.logo:hover { color: var(--accent); }
.main-nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; }
.main-nav > a, .more summary, .header-tail a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
    font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.main-nav > a:hover, .more summary:hover, .header-tail a:hover { color: var(--accent); }
.main-nav > a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.more summary { list-style: none; cursor: pointer; gap: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { font-size: 11px; transition: transform .15s; }
.more[open] summary span { transform: rotate(180deg); }
.more-panel {
    position: absolute; top: 100%; left: var(--pad); right: var(--pad); z-index: 60;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 32px;
    padding: 22px 26px 26px; background: var(--paper); border: 1px solid var(--line-soft);
    box-shadow: 0 18px 40px -20px rgba(23, 22, 43, .35);
    max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
}
.more-col { display: flex; flex-direction: column; min-width: 0; }
.more-col a { display: flex; align-items: center; min-height: 40px; padding: 4px 0; font-size: 15px; color: var(--ink); text-decoration: none; line-height: 1.3; }
.more-col a:hover { color: var(--accent); }
.more-col .more-parent { font-family: var(--head); font-weight: 700; font-size: 16px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.header-tail { flex: none; display: flex; gap: 4px; }
.header-tail .fresh-link { font-weight: 600; color: var(--accent); }
.header-tail .fresh-link:hover { color: var(--ink); }
.menu-toggle {
    display: none; position: relative; z-index: 2; margin-left: auto; height: 44px; padding: 0 16px;
    font: 600 15px var(--text); color: var(--ink); background: transparent;
    border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: var(--accent-soft); }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); max-height: calc(100vh - 60px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { padding-top: 6px; padding-bottom: 22px; display: flex; flex-direction: column; }
.mobile-menu nav > a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; line-height: 1.3; border-bottom: 1px solid #E3E4EB; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mobile-menu .m-parent { font-family: var(--head); font-weight: 700; margin-top: 8px; }
.mobile-menu .m-child { padding-left: 16px; font-size: 16px; color: var(--ink-2); }
.m-actions { display: flex; gap: 10px; margin-top: 16px; }
.m-actions a { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; border-radius: 4px; border: 1.5px solid var(--ink); color: var(--ink); }
.m-actions .m-fresh { background: var(--ink); color: var(--bg); }

/* Home: lead + second list */
.home-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.lead-story { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.lead-story .kicker { font-size: 15px; }
.lead-title { margin-top: -8px; font-family: var(--head); font-weight: 700; font-size: clamp(40px, 4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: break-word; }
.lead-title a, .second-title a, .title-l a, .title-s a, .row-title a, .pair h3 a, .start h3 a, .num-list a, .pair-list a { color: var(--ink); text-decoration: none; }
.lead-title a:hover, .second-title a:hover, .title-l a:hover, .title-s a:hover, .row-title a:hover, .pair h3 a:hover, .start h3 a:hover, .num-list a:hover, .pair-list a:hover { color: var(--accent); }
.second-list { display: grid; align-content: start; border-top: 2px solid var(--ink); min-width: 0; }
.second { display: grid; gap: 10px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.second-title { font-family: var(--head); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.second p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.lead-more { margin-top: 18px; border-top: 2px solid var(--ink); display: grid; }
.lead-more-title { margin: 0; padding: 14px 0 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.lead-more a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.lead-more a:hover { color: var(--accent); }
.lead-more .meta { font-weight: 400; white-space: nowrap; }

/* Home: situations */
.situations { background: var(--dark); color: #F1F1F6; }
.situations-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.situations h2 { font-family: var(--head); font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.situations-inner > div > p { margin: 18px 0 0; font-size: 17px; line-height: 1.55; color: var(--dark-text); max-width: 360px; }
.situation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 40px; min-width: 0; }
.situation-grid a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; padding: 20px 0; border-top: 1px solid var(--dark-line); color: #fff; text-decoration: none; }
.situation-grid a:hover { color: var(--lilac); }
.s-label { font-family: var(--head); font-weight: 600; font-size: 25px; line-height: 1.2; letter-spacing: -0.015em; }
.s-arrow { font-size: 22px; color: var(--lilac); grid-row: span 2; }
.s-title { font-size: 14px; line-height: 1.45; color: var(--dark-muted); }

/* Home: blocks */
.block { padding-top: 88px; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: 32px; }
.block-head h2, .block-title, .outside-title { font-family: var(--head); font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; }
.block-head h2 a, .outside-title a { color: var(--ink); }
.block-head h2 a { text-decoration: none; }
.block-head h2 a:hover, .outside-title a:hover { color: var(--accent); }
.block-head p { margin: 0; flex: 1 1 380px; max-width: 560px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.finish { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; border-top: 2px solid var(--ink); padding-top: 28px; }
.finish-lead { display: grid; gap: 24px; align-content: start; min-width: 0; }
.finish-lead.has-pic { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.finish-copy, .outside-copy { display: grid; gap: 14px; align-content: start; min-width: 0; }
.title-l { font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.finish-lead:not(.has-pic) .title-l { font-size: 40px; line-height: 1.08; }
.body-m { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 720px; }
.num-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.num-list li { border-bottom: 1px solid var(--line); }
.num-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
.num { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--accent); }
.num-copy { display: grid; gap: 6px; }
.num-title { font-weight: 700; font-size: 18px; line-height: 1.35; }
.num-list .meta { font-size: 14px; }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 2px; padding-top: 96px; }
.pair-box { display: grid; gap: 22px; align-content: start; padding: 40px 40px 32px; background: var(--accent-soft); min-width: 0; }
.pair-box + .pair-box { background: var(--paper); }
.pair h2 a { font-family: var(--head); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.pair h2 a:hover { color: var(--accent); }
.pair-lead { display: grid; gap: 12px; }
.pair h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.2; text-wrap: balance; }
.pair-lead p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pair-list { display: grid; border-top: 1.5px solid var(--ink); }
.pair-list a { padding: 14px 0; border-bottom: 1px solid rgba(23, 22, 43, .18); font-weight: 600; font-size: 17px; line-height: 1.4; }

.outside { padding-top: 96px; }
.outside-title { margin-bottom: 32px; }
.outside-big { display: grid; gap: 40px; align-items: end; }
.outside-big.has-pic { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.outside-big:not(.has-pic) .title-l { font-size: clamp(32px, 3.2vw, 46px); max-width: 980px; }
.outside-rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 36px; border-top: 2px solid var(--ink); padding-top: 24px; }
.outside-rest article { display: grid; gap: 10px; align-content: start; min-width: 0; }
.title-s { font-family: var(--text); font-weight: 700; font-size: 20px; line-height: 1.3; text-wrap: pretty; }
.outside-rest p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

.all-sections { padding-top: 96px; padding-bottom: 96px; }
.all-sections .block-title { margin-bottom: 28px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.index-grid a { display: grid; gap: 8px; align-content: start; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.index-grid a:hover { color: var(--accent); }
.index-name { font-family: var(--head); font-weight: 700; font-size: 22px; }
.index-grid a span + span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Category */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 14px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .crumb-current { color: var(--accent); font-weight: 600; }
.crumbs > span[aria-hidden] { display: none; }
.crumbs a:not(:first-child)::before { content: '→'; margin-right: 12px; color: var(--muted); font-weight: 400; display: inline-block; text-decoration: none; }
.cat-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-top: 40px; padding-bottom: 64px; }
.cat-title, .page-h1 { margin-top: 12px; font-family: var(--head); font-weight: 700; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.cat-side { display: grid; gap: 32px; align-content: start; padding-top: 52px; min-width: 0; }
.cat-side .standfirst { font-style: normal; font-weight: 400; font-size: 22px; }
.topics { border-top: 2px solid var(--ink); padding-top: 18px; }
.topics-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.topics-grid a { display: flex; align-items: center; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.3; }
.topics-grid a:hover { color: var(--accent); }
.start { background: var(--accent-soft); padding: 56px 0 60px; }
.start h2 { font-family: var(--head); font-weight: 700; font-size: 32px; letter-spacing: -0.025em; margin-bottom: 28px; }
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 64px; }
.start-grid article { display: grid; gap: 12px; align-content: start; min-width: 0; }
.start-num { font-family: var(--head); font-weight: 800; font-size: 52px; line-height: 1; color: var(--accent); }
.start h3 { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.start-grid p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rows-block { padding-top: 64px; padding-bottom: 32px; }
.rows-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.rows-head h2 { font-family: var(--head); font-weight: 700; font-size: 32px; letter-spacing: -0.025em; }
.list-head + .rows-block { padding-top: 24px; border-top: 0; }
.list-head + .rows-block .row:first-child { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row.has-pic { grid-template-columns: 150px minmax(0, 1fr) 200px; }
.row-meta { margin: 0; display: grid; gap: 2px; align-content: start; font-size: 14px; color: var(--muted); padding-top: 6px; }
.row-copy { min-width: 0; max-width: 780px; }
.row-title { font-family: var(--head); font-weight: 700; font-size: 25px; line-height: 1.18; letter-spacing: -0.015em; text-wrap: pretty; }
.row-copy p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.row-image { display: block; }
.row-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #E7E6F1; }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.empty { margin: 24px 0; font-size: 17px; color: var(--muted); }
.pagination { margin: 36px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); }
.pagination a.page-numbers:hover { color: var(--accent); }
.pagination .prev, .pagination .next { border: 1px solid var(--ink); }
.pagination .next { margin-left: auto; }
.pagination .prev { margin-right: auto; }
.nearby { padding-top: 64px; padding-bottom: 96px; }
.nearby h2 { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 20px; }
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; }
.nearby-grid a { display: grid; gap: 12px; align-content: start; padding: 26px 22px; background: var(--paper); color: var(--ink); text-decoration: none; min-width: 0; }
.nearby-grid a:hover { color: var(--accent); }
.nearby-name { font-family: var(--head); font-weight: 700; font-size: 21px; }
.nearby-grid a span + span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* List pages, search, 404 */
.list-head { padding-top: 40px; padding-bottom: 32px; display: grid; gap: 18px; }
.list-head .standfirst { font-style: normal; font-size: 22px; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; font: 400 16px var(--text); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; }
.search-form button { min-height: 48px; padding: 0 20px; font: 600 15px var(--text); color: var(--bg); background: var(--ink); border: 0; border-radius: 4px; cursor: pointer; }
.search-form button:hover { background: var(--accent); }
.list-head + .all-sections { padding-top: 32px; }

/* Article */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.article-head { padding-top: 40px; display: grid; gap: 22px; }
.article-title { margin-top: 10px; max-width: 1000px; font-family: var(--head); font-weight: 700; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.article-standfirst { max-width: 820px; font-size: 25px; }
.article-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14px; color: var(--muted); }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-cover { margin: 40px 0 0; aspect-ratio: 21 / 9; max-height: 62vh; overflow: hidden; background: #E7E6F1; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; padding-top: 48px; padding-bottom: 96px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 860px); }
.toc-side { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border-top: 2px solid var(--ink); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc-title { display: flex; justify-content: space-between; margin: 0; padding: 16px 0 10px; font-weight: 700; font-size: 15px; }
.toc-title span + span { font-weight: 400; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; min-height: 44px; padding: 6px 0; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc-n { color: var(--muted); font-size: 14px; }
.toc-more { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.article-body { min-width: 0; font-size: 18px; line-height: 1.68; color: var(--ink); }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 16px 0 0; }
.article-body h2 { margin: 56px 0 0; font-family: var(--head); font-weight: 700; font-size: 38px; line-height: 1.12; letter-spacing: -0.025em; scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
.article-body h3 { margin: 36px 0 0; font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body ul, .article-body ol { margin: 16px 0 0; padding-left: 24px; }
.article-body li { margin-top: 8px; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote { margin: 40px 0; padding: 0; border: 0; font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.3; color: var(--ink); }
.article-body table { width: 100%; margin: 28px 0 0; border-collapse: collapse; font-size: 16px; line-height: 1.5; display: block; overflow-x: auto; }
.article-body th { text-align: left; font-weight: 700; padding: 12px 16px 12px 0; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
.article-body td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body img { margin: 32px 0 0; }
.article-body a { overflow-wrap: anywhere; }
.summary { padding: 28px 30px; background: var(--accent-soft); margin-bottom: 48px; }
.summary-title { margin: 0 !important; font-size: 15px; font-weight: 700; color: var(--accent); }
.article-stamp { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 48px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.next { background: var(--accent-soft); padding: 56px 0 56px; }
.next h2 { font-family: var(--head); font-weight: 700; font-size: 38px; letter-spacing: -0.03em; }
.next-lead { margin: 10px 0 30px; font-size: 15px; color: var(--ink-2); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; }
.next-grid a { display: grid; gap: 10px; align-content: start; padding: 28px 26px; background: var(--bg); color: var(--ink); text-decoration: none; min-width: 0; }
.next-grid a:hover { color: var(--accent); }
.next-title { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.22; text-wrap: balance; }

/* Pages */
.page { padding-top: 40px; padding-bottom: 96px; }
.page .page-h1 { max-width: 1000px; }
.page-body { max-width: 820px; margin-top: 32px; font-size: 18px; line-height: 1.68; }
.page-body > p:first-child { font-family: var(--serif); font-size: 25px; line-height: 1.45; color: var(--ink-2); }
.page-body h2 { margin: 48px 0 0; font-family: var(--head); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.page-body p { margin: 16px 0 0; }
.page-body ul { margin: 16px 0 0; padding-left: 24px; }

/* Footer */
.site-footer { background: var(--dark); color: #E9E9F1; }
.site-footer .shell { padding-top: 64px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid var(--dark-line); }
.footer-logo { font-family: var(--head); font-weight: 800; font-size: 40px; letter-spacing: -0.035em; color: #fff; text-decoration: none; line-height: 1.1; }
.footer-logo:hover { color: var(--lilac); }
.footer-top p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--dark-text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; padding-top: 20px; font-size: 14px; color: var(--dark-muted); }
.footer-bottom a { display: flex; align-items: center; min-height: 44px; color: #E9E9F1; }
.footer-bottom a:hover { color: var(--lilac); }
.footer-bottom span { flex: 1 1 300px; }

/* Clearfy cookie notice in the site palette, 44 px button */
#clearfy-cookie.clearfy-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0; padding: 0;
    background: var(--dark); color: #E9E9F1; border: 0; border-radius: 4px; box-shadow: 0 18px 40px -20px rgba(23, 22, 43, .6);
    font: 400 14px/1.5 var(--text);
}
#clearfy-cookie.clearfy-cookie-hide { display: none; }
#clearfy-cookie .clearfy-cookie-container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; max-width: none; margin: 0; text-align: left; }
#clearfy-cookie .clearfy-cookie-accept { min-height: 44px; min-width: 88px; padding: 0 18px; margin: 0; background: var(--bg); color: var(--ink); border: 0; border-radius: 4px; font: 600 15px var(--text); cursor: pointer; }
#clearfy-cookie .clearfy-cookie-accept:hover { background: var(--lilac); }
@media (min-width: 1200px) {
    #clearfy-cookie.clearfy-cookie { left: auto; right: 16px; max-width: 380px; }
}

/* Tablet and below: the mobile header */
@media (max-width: 1023px) {
    :root { --pad: 32px; --header-h: 61px; }
    .header-inner { min-height: 60px; gap: 16px; }
    .logo { font-size: 23px; }
    .main-nav, .header-tail { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; }
    .home-top, .situations-inner, .finish, .cat-head, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .situations-inner { gap: 28px; }
    .cat-side { padding-top: 0; }
    .article-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; max-height: none; }
    .outside-big.has-pic { grid-template-columns: minmax(0, 1fr); }
    .row.has-pic { grid-template-columns: 150px minmax(0, 1fr) 160px; }
}

/* Phones */
@media (max-width: 767px) {
    :root { --pad: 18px; }
    body.da-site { font-size: 16px; }
    .home-top { padding-top: 24px; padding-bottom: 48px; gap: 28px; }
    .lead-story { gap: 14px; }
    .lead-title { font-size: clamp(24px, 8.2vw, 34px); line-height: 1.08; margin-top: 0; }
    .lead-more { display: none; }
    .standfirst { font-size: 20px; }
    .second-title { font-size: 21px; }
    .situations-inner { padding-top: 48px; padding-bottom: 48px; }
    .situations h2 { font-size: 32px; }
    .situation-grid { grid-template-columns: minmax(0, 1fr); }
    .s-label { font-size: 21px; }
    .block, .outside { padding-top: 64px; }
    .block-head h2, .block-title, .outside-title { font-size: 32px; }
    .title-l, .finish-lead:not(.has-pic) .title-l, .outside-big:not(.has-pic) .title-l { font-size: 26px; }
    .pair { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
    .pair-box { padding: 28px 20px 22px; }
    .pair h2 a { font-size: 24px; }
    .pair h3 { font-size: 24px; }
    .outside-rest { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .all-sections { padding-top: 64px; padding-bottom: 64px; }
    .index-grid { grid-template-columns: minmax(0, 1fr); }
    .cat-head { padding-top: 16px; padding-bottom: 40px; gap: 24px; }
    .cat-title, .page-h1 { font-size: 36px; }
    .cat-side .standfirst, .list-head .standfirst { font-size: 19px; }
    .topics-grid { grid-template-columns: minmax(0, 1fr); }
    .start { padding: 40px 0; }
    .start h2 { font-size: 26px; }
    .start-num { font-size: 40px; }
    .start h3 { font-size: 21px; }
    .rows-block { padding-top: 40px; }
    .rows-head h2 { font-size: 26px; }
    .row, .row.has-pic { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
    .row-meta { display: flex; gap: 12px; padding-top: 0; }
    .row-image { order: -1; }
    .row-title { font-size: 21px; }
    .pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 10px; }
    .pagination .prev, .pagination .next { margin: 0; }
    .nearby { padding-bottom: 64px; }
    .search-form { flex-direction: column; }
    .article-head { padding-top: 16px; gap: 16px; }
    .article-title { font-size: 32px; line-height: 1.1; }
    .article-standfirst { font-size: 20px; }
    .article-meta { gap: 4px 16px; }
    .article-cover { margin-top: 24px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
    .article-layout { padding-top: 32px; padding-bottom: 64px; gap: 32px; }
    .article-body { font-size: 17px; line-height: 1.62; }
    .article-body h2 { font-size: 27px; margin-top: 44px; }
    .article-body h3 { font-size: 20px; }
    .article-body blockquote { font-size: 24px; }
    .article-body table { font-size: 15px; }
    .summary { padding: 22px 20px; }
    .next h2 { font-size: 30px; }
    .next-grid a { padding: 22px 20px; }
    .page-body > p:first-child { font-size: 21px; }
    .page-body h2 { font-size: 26px; }
    .footer-logo { font-size: 32px; }
}
