/* styles.css — pastila.net.ua — Dark Editorial: Slate & Amber */

:root {
    color-scheme: dark;

    /* Palette */
    --bg: #111318;
    --bg-pattern: rgba(255, 255, 255, 0.022);
    --surface: #171a21;
    --surface-2: #1d212a;
    --surface-3: #242935;
    --code-bg: #0c0e12;

    --text: #dcdfe4;
    --text-strong: #eef0f3;
    --muted: #a3a9b4;
    --faint: #8a909c;

    --accent: #d9a55b;
    --accent-hover: #e6b877;
    --accent-visited: #c4a07a;
    --accent-soft: rgba(217, 165, 91, 0.12);
    --accent-line: rgba(217, 165, 91, 0.45);

    --accent2: #8fb3a0;
    --accent2-soft: rgba(143, 179, 160, 0.12);

    --border: #2a2f3a;
    --border-strong: #363c49;

    --selection-bg: rgba(217, 165, 91, 0.32);
    --focus: #f0c27f;

    /* Typography */
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --fs-base: 16.5px;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;
    --lh-body: 1.72;
    --lh-heading: 1.3;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    /* Radii & lines */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --line: 1px solid var(--border);

    /* Layout */
    --container: 1180px;
    --measure: 70ch;
    --gutter: 16px;
    --header-h: 60px;

    --t-fast: 0.18s ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: var(--fs-base);
    scroll-behavior: smooth;
    scrollbar-color: var(--border-strong) var(--bg);
    scrollbar-width: thin;
    background-color: var(--bg);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(var(--bg-pattern) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

body::before,
body::after {
    content: none;
}

::selection {
    background: var(--selection-bg);
    color: var(--text-strong);
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
    background: #4a5162;
}

/* Media */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img,
video {
    border-radius: var(--radius);
    filter: brightness(0.92);
}

iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--radius);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
    font-weight: 650;
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
}

h1 { font-size: 1.35rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.07rem; }
h4 { font-size: 1rem; }

p {
    text-wrap: pretty;
}

strong, b {
    color: var(--text-strong);
    font-weight: 650;
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--fs-small);
    color: var(--muted);
}

mark {
    background: var(--accent-soft);
    color: var(--accent-hover);
    padding: 0 var(--s-1);
    border-radius: var(--radius-sm);
}

abbr[title] {
    text-decoration: underline dotted var(--faint);
    cursor: help;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast), text-decoration-color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

a:hover {
    color: var(--accent-hover);
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: var(--s-7) 0;
}

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

kbd {
    display: inline-block;
    padding: 1px var(--s-2);
    background: var(--surface-3);
    border: var(--line);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
    color: var(--text-strong);
    font-size: 0.8em;
    line-height: 1.5;
}

/* Forms */
input,
textarea,
select,
button {
    font: inherit;
    color: var(--text);
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: var(--s-2) var(--s-3);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), background-color var(--t-fast);
}

input::placeholder,
textarea::placeholder {
    color: var(--faint);
    opacity: 1;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #4a5162;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
    border-color: var(--accent);
    background: var(--surface-3);
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    width: auto;
    min-height: 44px;
    padding: var(--s-2) var(--s-5);
    background: var(--accent);
    color: #17130c;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--t-fast), border-color var(--t-fast);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 19, 24, 0.94);
    border-bottom: var(--line);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header {
        background: rgba(17, 19, 24, 0.86);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.header-inner {
    max-width: var(--container);
    min-height: var(--header-h);
    margin: 0 auto;
    padding: var(--s-2) var(--gutter);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-3);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    min-height: 44px;
    min-width: 0;
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo:hover {
    color: var(--text-strong);
}

.logo img,
.logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    filter: none;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--s-1);
    padding: 3px;
    background: var(--surface);
    border: var(--line);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 38px;
    padding: 0 var(--s-2);
    color: var(--muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.lang-switcher a:hover {
    color: var(--text-strong);
    background: var(--surface-2);
}

.lang-switcher a.active {
    color: #17130c;
    background: var(--accent);
    font-weight: 600;
}

/* Main layout */
main {
    display: block;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--gutter) var(--s-7);
}

.article-title {
    max-width: 38ch;
    margin: 0 0 var(--s-5);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-strong);
    background: none;
    -webkit-text-fill-color: currentColor;
    overflow-wrap: anywhere;
}

.article-title::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-bottom: var(--s-4);
    background: var(--accent);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
    margin-bottom: var(--s-7);
    padding-bottom: var(--s-6);
    border-bottom: var(--line);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-content .lead {
    max-width: var(--measure);
    margin-bottom: var(--s-5);
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.65;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2) var(--s-3);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.meta-info > * {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.meta-info svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--surface);
    border: var(--line);
    border-radius: var(--radius-lg);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    filter: brightness(0.88) saturate(0.95);
}

/* Article content */
.content-body {
    max-width: var(--measure);
    margin: 0 auto var(--s-7);
    font-size: 1rem;
}

.content-body > * + * {
    margin-top: var(--s-5);
}

.content-body p {
    margin: 0 0 var(--s-5);
    color: var(--text);
    font-size: 1rem;
    line-height: var(--lh-body);
}

.content-body a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.content-body a:visited {
    color: var(--accent-visited);
}

.content-body a:hover {
    color: var(--accent-hover);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    color: var(--text-strong);
    scroll-margin-top: calc(var(--header-h) + var(--s-4));
}

.content-body h2 {
    margin: var(--s-7) 0 var(--s-4);
    padding-top: var(--s-5);
    border-top: var(--line);
    font-size: 1.2rem;
    font-weight: 650;
}

.content-body h3 {
    margin: var(--s-6) 0 var(--s-3);
    font-size: 1.07rem;
    font-weight: 600;
}

.content-body h4 {
    margin: var(--s-5) 0 var(--s-2);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent2);
}

.content-body h2:first-child,
.content-body h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Lists */
.content-body ul,
.content-body ol {
    margin: 0 0 var(--s-5);
    padding-left: var(--s-5);
}

.content-body ul li,
.content-body ol li {
    margin-bottom: var(--s-2);
    padding-left: var(--s-1);
    color: var(--text);
}

.content-body ul li {
    list-style-type: disc;
}

.content-body ol li {
    list-style-type: decimal;
}

.content-body ul li::marker {
    color: var(--accent);
}

.content-body ol li::marker {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9em;
    font-weight: 600;
}

.content-body li ul,
.content-body li ol {
    margin: var(--s-2) 0 var(--s-2);
    padding-left: var(--s-5);
}

.content-body li ul li {
    list-style-type: circle;
}

.content-body li ul li::marker {
    color: var(--accent2);
}

.content-body ul li strong,
.content-body ol li strong {
    color: var(--text-strong);
}

/* Blockquote */
.content-body blockquote {
    margin: var(--s-6) 0;
    padding: var(--s-4) var(--s-5);
    background: var(--surface);
    border: var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-body blockquote p {
    color: var(--muted);
    font-size: inherit;
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

.content-body blockquote cite,
.content-body blockquote footer {
    display: block;
    margin-top: var(--s-3);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: none;
    border: 0;
}

/* Code */
:not(pre) > code {
    padding: 2px 6px;
    background: var(--surface-3);
    border: var(--line);
    border-radius: var(--radius-sm);
    color: var(--accent-hover);
    font-size: 0.86em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

pre {
    max-width: 100%;
    margin: var(--s-5) 0;
    padding: var(--s-4);
    overflow-x: auto;
    background: var(--code-bg);
    border: var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
    line-height: 1.65;
    tab-size: 4;
    -webkit-overflow-scrolling: touch;
}

pre code {
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-size: inherit;
    white-space: pre;
}

/* Tables */
.content-body table,
table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: var(--s-5) 0;
    overflow-x: auto;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--surface);
    border: var(--line);
    border-radius: var(--radius);
    font-size: 0.92rem;
    -webkit-overflow-scrolling: touch;
}

thead {
    background: var(--surface-2);
}

th,
td {
    padding: var(--s-3) var(--s-4);
    border-bottom: var(--line);
    text-align: left;
    vertical-align: top;
    min-width: 120px;
}

th {
    color: var(--text-strong);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

td {
    color: var(--text);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

tbody tr:hover {
    background: var(--surface-2);
}

tbody tr:last-child td {
    border-bottom: 0;
}

caption {
    padding: var(--s-2) var(--s-4);
    color: var(--muted);
    font-size: var(--fs-small);
    text-align: left;
    caption-side: bottom;
}

/* Figure */
figure {
    margin: var(--s-6) 0;
}

figure img {
    width: 100%;
    border: var(--line);
}

figcaption {
    margin-top: var(--s-2);
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.55;
}

figcaption::before {
    content: "— ";
    color: var(--accent);
}

/* Related materials */
.related-materials {
    margin-top: var(--s-8);
}

.section-header {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-5);
}

.section-header h2,
.section-header h3 {
    flex-shrink: 0;
    max-width: 70%;
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border);
}

.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--s-5);
    overflow: hidden;
    background: var(--surface);
    border: var(--line);
    border-radius: var(--radius-lg);
    color: var(--text);
    box-shadow: none;
    transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--s-5);
    width: 24px;
    height: 2px;
    background: var(--border-strong);
    transition: background-color var(--t-fast), width var(--t-fast);
}

.card:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: none;
    color: var(--text);
}

.card:hover::before {
    width: 48px;
    background: var(--accent);
}

.card:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
}

.card-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
    font-size: var(--fs-xs);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px var(--s-2);
    background: var(--accent-soft);
    border: 1px solid rgba(217, 165, 91, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: uppercase;
}

.badge.accent-badge {
    background: var(--accent2-soft);
    border-color: rgba(143, 179, 160, 0.25);
    color: var(--accent2);
}

.date {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.card h4 {
    margin-bottom: var(--s-2);
    color: var(--text-strong);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.card p {
    flex-grow: 1;
    margin-bottom: var(--s-4);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--s-2);
    padding-top: var(--s-3);
    border-top: var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 1;
    transition: color var(--t-fast);
}

.card:hover .card-footer {
    color: var(--accent);
}

/* Footer */
footer {
    margin-top: var(--s-7);
    background: var(--surface);
    border-top: var(--line);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--s-6) var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
    text-align: center;
}

.footer-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--s-2);
    color: var(--muted);
    font-size: var(--fs-small);
}

.footer-left img,
.footer-left svg {
    width: 22px;
    height: 22px;
    filter: none;
}

.footer-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-1) var(--s-4);
}

.footer-center a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--s-1);
    color: var(--muted);
    font-size: var(--fs-small);
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
}

.footer-center a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent-line);
}

.dmca-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    min-height: 32px;
    padding: var(--s-1) var(--s-3);
    background: var(--surface-2);
    border: var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    cursor: default;
}

.dmca-badge svg,
.dmca-badge img {
    width: 14px;
    height: 14px;
    color: var(--accent2);
    filter: none;
}

/* ≥480px */
@media (min-width: 480px) {
    :root {
        --gutter: 20px;
    }

    .article-title {
        font-size: 1.45rem;
    }

    .hero-visual {
        height: 260px;
    }

    .content-body blockquote {
        padding: var(--s-5) var(--s-6);
    }
}

/* ≥768px */
@media (min-width: 768px) {
    :root {
        --fs-base: 17px;
        --gutter: 32px;
        --header-h: 68px;
    }

    main {
        padding-top: var(--s-7);
    }

    .article-title {
        font-size: 1.6rem;
        margin-bottom: var(--s-6);
    }

    h2,
    .content-body h2 {
        font-size: 1.3rem;
    }

    h3,
    .content-body h3 {
        font-size: 1.12rem;
    }

    .hero-visual {
        height: 340px;
    }

    .hero-content .lead {
        font-size: 1.15rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s-5);
    }

    pre {
        padding: var(--s-5);
    }

    table {
        display: table;
    }

    .content-body table {
        display: block;
    }

    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: left;
    }

    .footer-left,
    .footer-center {
        justify-content: flex-start;
    }
}

/* ≥1024px */
@media (min-width: 1024px) {
    :root {
        --fs-base: 17.5px;
        --gutter: 40px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: var(--s-7);
        align-items: center;
    }

    .hero-visual {
        height: 100%;
        min-height: 380px;
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-center a {
        min-height: 36px;
    }
}

/* ≥1280px */
@media (min-width: 1280px) {
    :root {
        --fs-base: 18px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .hero-visual {
        min-height: 420px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .card:hover {
        transform: none;
    }
}

/* High contrast / forced colors */
@media (forced-colors: active) {
    .card,
    .lang-switcher,
    .dmca-badge {
        border: 1px solid CanvasText;
    }

    :focus-visible {
        outline: 2px solid Highlight;
    }
}

/* Print */
@media print {
    :root {
        color-scheme: light;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .lang-switcher,
    .related-materials,
    footer {
        display: none;
    }

    img {
        filter: none;
    }
}