/* Avicopress — design layer from the Claude Design mockup (Avicopress.dc.html). */
:root {
    --paper: #F3F0E8;
    --sand: #EAE5D9;
    --ink: #191A17;
    --text-2: #3D3A33;
    --body: #2A2925;
    --muted: #5F5B52;
    --line: #D6D0C2;
    --accent: #B4512D;
    --accent-dark: #E58A66;
    --dark: #1B201D;
    --dark-line: #333B36;
    --dark-text: #EDE9DF;
    --dark-soft: #CFCBC1;
    --dark-muted: #A8A69D;
    --head: 'Prata', Georgia, 'Times New Roman', serif;
    --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
    --gutter: clamp(20px, 4vw, 56px);
    --header-h: 105px;
    --anchor: calc(var(--header-h) + 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.da-site {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; color: inherit; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
.shell {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.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: var(--paper); padding: 12px 16px;
}
.skip-link:focus { left: 12px; color: var(--paper); }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.mono-label, .mono-note, .kicker, .mono-line {
    font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
}
.mono-label { color: var(--muted); }
.mono-label.accent { color: var(--accent); font-size: 12px; }
.mono-note { color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: .02em; }
.kicker { color: var(--accent); }
a.kicker { display: inline-flex; align-items: center; min-height: 44px; }
.mono-line { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pill, .pill-dark, .pill-light {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 18px;
    border: 1px solid var(--ink); border-radius: 999px; background: transparent;
    color: var(--ink); font: 500 14px var(--text); white-space: nowrap;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill.is-done { background: var(--ink); color: var(--paper); }
.pill-dark { background: var(--ink); color: var(--paper); padding: 0 22px; min-height: 50px; font-size: 15px; }
.pill-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.pill-light { background: var(--dark-text); color: var(--dark); border-color: var(--dark-text); padding: 0 22px; min-height: 50px; font-size: 15px; }
.pill-light:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--dark); }

/* Section heads: 2 px rule, Prata title, mono note or «Вся рубрика →» */
.block { padding-top: clamp(56px, 7vw, 104px); }
.block-head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: 8px 16px; border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 28px;
}
.block-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.head-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; }
.head-link.on-dark { color: var(--dark-text); margin-top: 28px; }
.head-link.on-dark:hover { color: var(--accent-dark); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
}
.admin-bar .site-header { top: 32px; }
.header-strip { border-bottom: 1px solid var(--line); }
.strip-inner {
    display: flex; justify-content: space-between; gap: 16px;
    padding-top: 7px; padding-bottom: 7px;
    font-family: var(--mono); font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.header-inner {
    height: 72px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); white-space: nowrap; min-height: 44px; }
.logo span { font-family: var(--head); font-size: 25px; letter-spacing: -.01em; line-height: 1; }
.logo:hover { color: var(--ink); }
.mark { flex: none; }
.mark-sun { fill: var(--accent); }
.main-nav {
    display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
    white-space: nowrap; font-size: 15px; font-weight: 500;
}
.nav-link {
    display: flex; align-items: center; min-height: 44px;
    border-bottom: 1.5px solid transparent;
}
.nav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-fresh { color: var(--accent); }
.more summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: 9px;
    min-height: 44px; padding: 0 16px;
    border: 1px solid var(--ink); border-radius: 999px;
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { background: var(--ink); color: var(--paper); }
.more-caret {
    width: 7px; height: 7px; margin-top: -4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.more[open] .more-caret { transform: rotate(-135deg); margin-top: 4px; }
/* The panel hangs from the sticky header box: full width, never outside the viewport. */
.more-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    background: var(--dark); color: var(--dark-text);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
    white-space: normal;
}
.more-grid {
    display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3.6fr); gap: 36px;
    padding-top: 40px; padding-bottom: 44px;
}
.more-lead { display: flex; flex-direction: column; gap: 16px; padding-right: 28px; border-right: 1px solid var(--dark-line); }
.more-lead .mono-label { color: var(--dark-muted); }
.more-fresh { font-family: var(--head); font-size: 34px; line-height: 1.05; color: var(--dark-text); }
.more-lead p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--dark-muted); }
.more-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 28px; }
.more-group { display: flex; flex-direction: column; min-width: 0; }
.more-group a { color: var(--dark-soft); font-size: 15px; line-height: 1.35; padding: 7px 0; min-height: 36px; }
.more-group a.more-head {
    font-family: var(--head); font-size: 21px; line-height: 1.2; color: var(--dark-text);
    padding: 0 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--dark-line);
}
.more-panel a:hover { color: var(--accent-dark); }
.menu-toggle {
    display: none; flex: none;
    width: 46px; height: 46px; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: none; border: 1px solid var(--ink); border-radius: 999px;
    position: relative; z-index: 2;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] { background: var(--ink); }
.menu-toggle[aria-expanded="true"] span { background: var(--paper); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow: auto;
    background: var(--dark); color: var(--dark-text);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 48px; }
.sheet-link {
    display: block; padding: 12px 0; border-bottom: 1px solid var(--dark-line);
    font-family: var(--head); font-size: clamp(26px, 7vw, 36px); line-height: 1.1; color: var(--dark-text);
}
.sheet-link.sheet-fresh { color: var(--accent-dark); }
.sheet-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px 20px; padding-top: 32px; }
.sheet-group { display: flex; flex-direction: column; min-width: 0; }
.sheet-group .mono-label { color: var(--dark-muted); padding-bottom: 6px; }
.sheet-group a { color: var(--dark-text); font-size: 16px; line-height: 1.35; padding: 10px 0; min-height: 44px; }
.mobile-menu a:hover { color: var(--accent-dark); }

@media (max-width: 1319px) {
    .nav-last { display: none; }
}
@media (max-width: 1099px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
}
@media (max-width: 859px) {
    .header-strip { display: none; }
}

/* Breadcrumbs */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
    font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { color: var(--accent); }
.crumbs > span:last-child:not([aria-hidden]) { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }

/* Home: hero */
.cover-title { margin: 0; font-size: clamp(42px, 6.4vw, 100px); line-height: .98; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cover-title a { color: inherit; }
.hero-kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-kicker .kicker { font-size: 12px; }
.hero-lead { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-split {
    padding-top: clamp(28px, 5vw, 72px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: clamp(28px, 4vw, 64px); align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; padding-bottom: 8px; min-width: 0; }
.hero-split .cover-title { font-size: clamp(42px, 6.2vw, 96px); }
.hero-shot { position: relative; display: block; }
.hero-shot img { width: 100%; aspect-ratio: 4 / 5; max-height: min(720px, 76vh); object-fit: cover; }
.hero-badge {
    position: absolute; top: 14px; right: 14px; width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent); color: var(--paper); display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-size: 17px;
}
.hero-full { background: var(--dark); color: var(--paper); }
.hero-full-inner {
    min-height: min(72vh, 720px);
    display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
    padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px);
}
.hero-full .cover-title { font-size: clamp(42px, 7.4vw, 124px); line-height: .96; max-width: 1120px; }
.hero-full .cover-title a:hover { color: var(--accent-dark); }
.hero-full .hero-kicker { color: var(--dark-soft); }
.hero-full .kicker { color: var(--accent-dark); }
.hero-full .kicker:hover { color: var(--dark-text); }
.hero-full .hero-lead { color: #DCD8CE; max-width: 640px; }
.hero-full .meta { color: var(--dark-muted); }

/* Home: route strip (sections of the lead story) */
.route { padding-top: clamp(28px, 4vw, 48px); }
.route-line { border-top: 1px solid var(--ink); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.route-line .mono-label { margin-right: 22px; }
.route-stop { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; line-height: 1.3; }
.route-stop:not(:last-child)::after { content: ''; width: clamp(16px, 3vw, 48px); height: 1px; background: var(--ink); margin: 0 10px; }
.route-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--paper); }
.route-stop.is-first .route-dot { background: var(--accent); }

/* Home: newest in every rubric */
.newest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 28px; }
.newest-item { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.newest-num { font-family: var(--head); font-size: 52px; line-height: 1; color: var(--accent); }
.newest-title { margin: 0; font-family: var(--text); font-size: 17px; font-weight: 500; line-height: 1.35; }
.newest .kicker { color: var(--muted); }

/* Home: big story + list */
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(28px, 3.5vw, 56px); }
.split.is-rev .split-big { order: 2; }
.split-big { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-big.no-img { border-top: 1px solid var(--line); padding-top: 22px; }
.split-title { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; }
.split-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.split-list { display: flex; flex-direction: column; min-width: 0; }
.split-row { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.split-row.no-img { grid-template-columns: minmax(0, 1fr); }
.split-row:first-child { padding-top: 0; }
.split-big.no-img + .split-list .split-row:first-child { border-top: 1px solid var(--line); padding-top: 22px; }
.row-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split-row-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row-kicker { margin: 0; }
.row-title { margin: 0; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; overflow-wrap: anywhere; }
.split-row .meta { font-size: 13px; }

/* Home: statement */
.statement { padding-top: clamp(72px, 9vw, 140px); }
.statement p { margin: 0; font-family: var(--head); font-size: clamp(28px, 4vw, 58px); line-height: 1.15; letter-spacing: -.01em; max-width: 1180px; text-wrap: balance; }
.statement span { color: var(--accent); }

/* Dark block (home rubric, About) */
.dark-block { background: var(--dark); color: var(--dark-text); margin-top: clamp(56px, 7vw, 104px); }
.statement + .dark-block { margin-top: clamp(72px, 9vw, 140px); }
.dark-block > .shell { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.dark-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.dark-title { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dark-title .mono-label.accent { color: var(--accent-dark); }
.dark-head h2 { margin: 0; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; }
.dark-head h2 a { color: var(--dark-text); }
.dark-head h2 a:hover { color: var(--accent-dark); }
.dark-head p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.55; color: var(--dark-muted); }
.dark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.dark-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dark-card.no-img { border-top: 1px solid var(--dark-line); padding-top: 16px; }
.dark-shot { position: relative; display: block; border: 1px solid var(--dark-line); }
.dark-shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.dark-shot span { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 11px; color: var(--dark-text); background: rgba(27, 32, 29, .7); padding: 3px 7px; }
.dark-num { font-family: var(--mono); font-size: 11px; color: var(--dark-muted); }
.dark-card h3 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.dark-card h3 a { color: var(--dark-text); }
.dark-card h3 a:hover { color: var(--accent-dark); }
.dark-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dark-soft); }
.dark-card .mono-line { color: var(--dark-muted); }
.dark-card .kicker { color: var(--accent-dark); }

/* Home: topic index */
.topics-cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(18px, 2.4vw, 36px); }
.topics-cloud a { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.topic-letter { font-family: var(--mono); font-size: 12px; color: var(--accent); align-self: flex-start; padding-top: 6px; }
.topic-name { font-family: var(--head); font-size: clamp(21px, 2.2vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
.topics-cloud sup { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Home: practice list (also About topics) */
.block-head + .practice-grid { margin-top: -16px; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.practice-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.practice-num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.practice-item h3 { margin: 0; font-family: var(--text); font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; }
.practice-item p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Cards (home, related, archives) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 40px); }
#main > .block:last-child { padding-bottom: clamp(72px, 9vw, 128px); }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.no-img { border-top: 1px solid var(--ink); padding-top: 14px; }
.card-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cards-3 .card-shot img { aspect-ratio: 3 / 2; }
.card-meta { margin: 0; display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-title { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; overflow-wrap: anywhere; }
.card-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Category / archive head */
.cat-head { padding-top: clamp(12px, 2vw, 32px); }
.cat-head .crumbs { margin-bottom: clamp(16px, 3vw, 40px); }
.cat-head-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 24px clamp(28px, 4vw, 64px); align-items: end;
    padding-bottom: 32px; border-bottom: 2px solid var(--ink);
}
.cat-title { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cat-title h1 { margin: 0; font-size: clamp(48px, 8.4vw, 132px); line-height: .95; letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.cat-title h1.is-long { font-size: clamp(38px, 5.4vw, 84px); line-height: 1; }
.cat-side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; min-width: 0; }
.cat-desc { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; }
.pills a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500;
}
.pills a:hover { background: var(--sand); color: var(--ink); }
.pills a.is-current { background: var(--ink); color: var(--paper); }

.list { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(72px, 9vw, 128px); }
.feat {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: clamp(24px, 3.5vw, 56px); align-items: center;
    padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line);
}
.feat.no-img { grid-template-columns: minmax(0, 1fr); }
.feat-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feat-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feat.no-img .feat-copy { max-width: 980px; }
.feat-kicker { margin: 0; }
.feat-title { margin: 0; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; overflow-wrap: anywhere; }
.feat-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 760px; }
.empty { font-family: var(--head); font-size: clamp(22px, 2.4vw, 28px); color: var(--muted); padding: 24px 0; margin: 0; }

.pagination { margin-top: clamp(56px, 6vw, 88px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    min-width: 46px; height: 46px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 14px;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.pagination .page-numbers.dots { border-color: transparent; color: var(--muted); }
.pagination .prev, .pagination .next { font-family: var(--text); font-weight: 500; padding: 0 18px; gap: 8px; }

.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form input {
    flex: 1; min-width: 0; height: 50px; padding: 0 18px;
    font: 400 16px var(--text); color: var(--ink);
    background: transparent; border: 1px solid var(--ink); border-radius: 999px;
}
.search-form button {
    height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--ink); color: var(--paper); font: 500 15px var(--text);
}
.search-form button:hover { background: var(--accent); }
.list .pills { padding-top: 0; }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 3px; width: 0; background: var(--accent); }
.article-head { padding-top: clamp(12px, 2vw, 32px); }
.article-head .crumbs { margin-bottom: clamp(20px, 4vw, 48px); }
.article-intro { max-width: 1080px; display: flex; flex-direction: column; gap: 26px; }
.article-title { margin: 0; font-size: clamp(38px, 5.6vw, 88px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.article-lead { margin: 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: var(--text-2); max-width: 820px; }
.article-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 36px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.article-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.article-meta .ink { color: var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.article-cover { margin-top: clamp(28px, 4vw, 48px); margin-bottom: 0; }
.article-cover img { width: 100%; aspect-ratio: 21 / 10; min-height: 240px; max-height: 72vh; object-fit: cover; }
.article-cover figcaption { padding-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.article-layout {
    display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(40px, 6vw, 96px); align-items: start;
    padding-top: clamp(40px, 6vw, 88px);
}
.article-layout.no-toc { grid-template-columns: minmax(0, 720px); }
.toc-side { position: sticky; top: var(--anchor); max-height: calc(100vh - var(--anchor) - 24px); overflow: auto; min-width: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.admin-bar .toc-side { top: calc(var(--anchor) + 32px); }
.toc summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 10px; pointer-events: none;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.toc summary::-webkit-details-marker { display: none; }
.toc-sign { display: none; font-family: var(--text); font-size: 24px; line-height: 1; color: var(--ink); transition: transform .2s; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a {
    display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 8px 0; min-height: 44px;
    border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35;
}
.toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 3px; }
.toc li a.is-current { color: var(--accent); }
.toc-more { margin: 10px 0 0 28px; font-size: 13px; color: var(--muted); }

.article-body { min-width: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--body); }
.article-body p, .page-body p { margin: 0 0 22px; }
.article-body > p:first-of-type::first-letter {
    float: left; font-family: var(--head); font-size: 88px; line-height: .8; padding: 8px 12px 0 0; color: var(--accent);
}
.article-body h2, .page-body h2 {
    margin: 48px 0 18px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; color: var(--ink);
    scroll-margin-top: var(--anchor);
}
.article-body > h2:first-child, .summary + h2 { margin-top: 0; }
.article-body h3, .page-body h3 { margin: 32px 0 12px; font-family: var(--text); font-weight: 600; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; color: var(--ink); scroll-margin-top: var(--anchor); }
.article-body h4 { margin: 24px 0 8px; font-family: var(--text); font-size: 1em; font-weight: 600; color: var(--ink); }
.article-body ul, .article-body ol, .page-body ul, .page-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li, .page-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--accent); }
.article-body a, .page-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body a:hover, .page-body a:hover { color: var(--accent); }
.article-body img { height: auto; }
.article-body figure, .article-body .wp-block-image { margin: 32px 0; }
.article-body figcaption, .article-body .wp-caption-text { padding-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.article-body .wp-caption { max-width: 100%; }
.article-body blockquote {
    margin: 48px 0; padding: 28px 0; border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
    font-family: var(--head); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; color: var(--ink);
}
.article-body blockquote p { margin: 0 0 12px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body code { font-family: var(--mono); font-size: .85em; background: var(--sand); padding: 1px 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 28px; max-width: 100%; border-top: 2px solid var(--ink); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.45; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th, .table-wrap tr:first-child th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.table-wrap tbody th { font-weight: 600; }
.summary {
    background: var(--sand); padding: clamp(22px, 3vw, 32px); margin-bottom: 44px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px;
}
.summary-item { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.article-body details { border-bottom: 1px solid var(--line); }
.article-body details summary { min-height: 56px; display: flex; align-items: center; cursor: pointer; font-weight: 600; padding: 12px 0; }
.share-end { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.related { padding-bottom: clamp(72px, 9vw, 128px); }

/* Pages */
.page-head { padding-top: clamp(12px, 2vw, 32px); display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.page-head .crumbs { margin-bottom: clamp(4px, 2vw, 24px); }
.page-title { margin: 0; font-size: clamp(38px, 5.6vw, 88px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; max-width: 18ch; }
.page-body { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(72px, 9vw, 128px); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; color: var(--body); border-top: 2px solid var(--ink); }
.page-body > * { max-width: 760px; }
.page-body > h2:first-child { margin-top: 0; }
.page-body .about-row {
    max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px clamp(28px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line);
}
.page-body .about-row:first-child { border-top: 0; padding-top: 0; }
.page-body .about-row h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); max-width: 16ch; }
.page-body .about-text { min-width: 0; max-width: 680px; }
.page-body .about-text p:last-child { margin-bottom: 0; }
.about-hero { padding-top: clamp(12px, 2vw, 32px); padding-bottom: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 18px; }
.about-hero .crumbs { margin-bottom: clamp(4px, 2vw, 24px); }
.about-hero h1 { margin: 0; max-width: 18ch; font-size: clamp(40px, 6.2vw, 96px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.about-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px clamp(28px, 4vw, 64px); margin-top: clamp(12px, 2vw, 24px); }
.about-intro p { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--text-2); }
.about-intro .about-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink); }
.about-topics { padding-bottom: clamp(56px, 7vw, 104px); }
.about-not { margin-top: 0; }
.about-not-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px clamp(28px, 4vw, 64px); }
.about-not h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.about-not ul { list-style: none; margin: 0; padding: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; }
.about-not li { padding: 14px 0; border-bottom: 1px solid var(--dark-line); color: var(--dark-soft); }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-text); overflow: hidden; }
.site-footer > .shell { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 36px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col .mono-label { color: var(--dark-muted); padding-bottom: 6px; }
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a { color: var(--dark-text); font-size: 15px; display: block; padding: 10px 0; min-height: 44px; }
.footer-nav a:hover, .footer-word:hover { color: var(--accent-dark); }
.footer-about { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dark-muted); max-width: 520px; justify-self: end; }
.footer-word {
    display: block; font-family: var(--head); line-height: .82; letter-spacing: -.03em; color: var(--dark-text); white-space: nowrap;
    font-size: min(250px, calc((100vw - 2 * var(--gutter)) / 5.9));
    padding: .06em 0;
}
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--dark-muted);
}

/* Clearfy cookie notice, restyled to the palette and a 44 px target */
#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: var(--dark-text); border: 0; border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    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 20px; margin: 0;
    background: var(--paper); color: var(--ink); border: 0; border-radius: 999px;
    font: 500 15px var(--text); cursor: pointer;
}
#clearfy-cookie .clearfy-cookie-accept:hover { background: var(--accent-dark); }
@media (min-width: 1100px) {
    #clearfy-cookie.clearfy-cookie { left: auto; right: 16px; max-width: 340px; }
}

/* Narrow screens */
@media (max-width: 1099px) {
    :root { --header-h: 73px; }
    .article-layout, .article-layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .article-body { max-width: 720px; }
    .toc-side { position: static; max-height: none; overflow: visible; margin-bottom: 36px; max-width: 720px; }
    .toc { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
    .toc summary { min-height: 52px; padding: 0; pointer-events: auto; cursor: pointer; font-size: 12px; color: var(--ink); }
    .toc-sign { display: inline; }
    .toc[open] .toc-sign { transform: rotate(45deg); }
    .toc ol { padding-bottom: 12px; }
    .toc li a { font-size: 16px; }
    .footer-about { justify-self: start; }
}
@media (max-width: 759px) {
    body.da-site { font-size: 16px; }
    .header-inner { gap: 16px; }
    .logo span { font-size: 23px; }
    .hero-split { padding-top: 24px; }
    .cover-title { hyphens: auto; -webkit-hyphens: auto; }
    .route-line { flex-direction: column; align-items: flex-start; }
    .route-stop:not(:last-child)::after { display: none; }
    .newest-grid { gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
    .newest-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 14px; padding: 16px 0; }
    .newest-num { font-size: 36px; grid-row: span 2; }
    .split-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
    .article-bar .share { width: 100%; }
    .article-body > p:first-of-type::first-letter { font-size: 68px; }
    .pagination .nav-links { gap: 6px; }
    .pagination .page-numbers { min-width: 44px; height: 44px; }
    .pagination .prev, .pagination .next { flex-basis: 100%; order: 2; }
    .pagination .prev { order: 0; }
    .search-form button { padding: 0 16px; }
}
@media (max-width: 380px) {
    .logo { gap: 8px; }
    .logo span { font-size: 21px; }
    .mark { width: 30px; height: 30px; }
    .pill { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
