/* ── xnd-media.de global stylesheet ── */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap");

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

/* ── THEME VARIABLES ── */
:root {
    --bg: #f5f3ef;
    --bg2: #fff;
    --fg: #141210;
    --fg2: #4a4845;
    --fg3: #141210;
    --muted: #7a7671;
    --border: #dedad3;
    --border2: #ccc;
    --red: #c0281e;
    --white: #fff;
    --shadow: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg: #141210;
    --bg2: #1c1a18;
    --fg: #e8e4de;
    --fg2: #a09c96;
    --fg3: #141210;
    --muted: #6a6660;
    --border: #2a2825;
    --border2: #3a3835;
    --red: #d4332a;
    --white: #1c1a18;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    line-height: 1.6;
    transition:
        background 0.2s,
        color 0.2s;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── NAV ── */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.04em;
    color: var(--fg);
    flex-shrink: 0;
}
.logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    gap: 2px;
    list-style: none;
    flex: 1;
}
.nav-links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 6px;
    transition:
        color 0.15s,
        background 0.15s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--fg);
    background: var(--bg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dark mode toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    transition: all 0.15s;
    line-height: 1;
}
.theme-toggle:hover {
    border-color: var(--border2);
    color: var(--fg);
}

/* Lang toggle */
.lang-toggle {
    display: flex;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.lang-btn {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.12s;
}
.lang-btn.on {
    background: var(--white);
    color: var(--fg);
    box-shadow: 0 1px 3px var(--shadow);
}

.btn-support {
    font-size: 12px;
    font-weight: 600;
    background: var(--red);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}
.btn-support:hover {
    opacity: 0.88;
}

.btn-reader {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-reader:hover {
    color: var(--fg);
    border-color: var(--border2);
}

/* ── HAMBURGER (mobile) ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: all 0.2s;
}
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 49;
    padding: 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    display: block;
}
.mobile-menu a:hover {
    color: var(--red);
}
.mobile-menu-bottom {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── BREAKING ── */
.breaking {
    background: var(--red);
    padding: 10px 0;
}
.breaking-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.breaking-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}
.breaking-text {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

/* ── LAYOUT ── */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HERO ── */
.hero {
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--fg);
    margin-bottom: 18px;
}
.hero-title em {
    font-style: italic;
    color: var(--red);
}
.hero-deck {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--fg2);
    margin-bottom: 20px;
    max-width: 520px;
}
.hero-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-cover {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    background: var(--border);
}
.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.read-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    transition: gap 0.15s;
}
.read-link:hover {
    gap: 8px;
}
.read-link::after {
    content: "→";
}

.hero-sidebar {
    border-left: 1px solid var(--border);
    padding-left: 36px;
    display: flex;
    flex-direction: column;
}
.sidebar-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.sidebar-item:first-child {
    padding-top: 0;
}
.sidebar-item:last-child {
    border-bottom: none;
}
.sidebar-item:hover .sidebar-item-title {
    color: var(--red);
}
.sidebar-rubrik {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 5px;
}
.sidebar-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fg);
    transition: color 0.12s;
}
.sidebar-item-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── SECTION HEADING ── */
.sec-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 36px 0 22px;
}
.sec-heading h2 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.sec-heading-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.sec-heading a {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.12s;
}
.sec-heading a:hover {
    color: var(--red);
}

/* ── TAGS ── */
.article-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}
.tag-red {
    background: #fdecea;
    color: #b8291f;
}
.tag-green {
    background: #eaf4ec;
    color: #2a7a3a;
}
.tag-amber {
    background: #fef6e4;
    color: #9a6a10;
}
.tag-blue {
    background: #eaf0fb;
    color: #2a4a9a;
}
.tag-gray {
    background: #f0eeea;
    color: #5a5652;
}
.tag-purple {
    background: #f3edfb;
    color: #6a3aaa;
}

[data-theme="dark"] .tag-red {
    background: rgba(192, 40, 30, 0.2);
    color: #e86055;
}
[data-theme="dark"] .tag-green {
    background: rgba(42, 122, 58, 0.2);
    color: #5cb870;
}
[data-theme="dark"] .tag-amber {
    background: rgba(154, 106, 16, 0.2);
    color: #d4a040;
}
[data-theme="dark"] .tag-blue {
    background: rgba(42, 74, 154, 0.2);
    color: #6080d0;
}
[data-theme="dark"] .tag-gray {
    background: rgba(90, 86, 82, 0.2);
    color: #908c88;
}
[data-theme="dark"] .tag-purple {
    background: rgba(106, 58, 170, 0.2);
    color: #a070d8;
}

/* ── ARTICLE GRID ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}
.article-card:hover .article-card-title {
    color: var(--red);
}
.article-card-img {
    aspect-ratio: 3/2;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fg);
    transition: color 0.12s;
}
.article-card-deck {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--fg2);
    flex: 1;
}
.article-card-meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.article-card.big {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.article-card.big .article-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-card.big .article-card-title {
    font-size: 22px;
}
.article-card.big .article-card-img {
    aspect-ratio: 4/3;
}

/* ── CALENDAR ── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.cal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cal-card:hover {
    border-color: var(--border2);
    box-shadow: 0 2px 12px var(--shadow);
}
.cal-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.cal-day {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--red);
    line-height: 1;
}
.cal-month {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cal-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}
.cal-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fg);
}
.cal-loc {
    font-size: 11px;
    color: var(--muted);
}

/* ── NEWSLETTER ── */
.nl-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 48px;
}
.nl-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: 8px;
}
.nl-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 18px;
}
.nl-form {
    display: flex;
    gap: 8px;
}
.nl-input {
    flex: 1;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    outline: none;
    transition: border-color 0.12s;
}
.nl-input:focus {
    border-color: var(--red);
}
.nl-input::placeholder {
    color: var(--muted);
}
.nl-btn {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: opacity 0.12s;
    white-space: nowrap;
}
.nl-btn:hover {
    opacity: 0.88;
}
.nl-values-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.nl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nl-tag {
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 12px;
    color: var(--fg);
}

/* ── FOOTER ── */
footer {
    background: #0a0908;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 28px;
}
.ft-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}
.ft-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 10px;
}
.ft-logo span {
    color: var(--red);
}
.ft-about {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}
.ft-socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ft-social {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    transition:
        color 0.1s,
        border-color 0.1s;
}
.ft-social:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.ft-col-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    display: block;
}
.ft-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ft-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.1s;
}
.ft-links a:hover {
    color: #fff;
}
.ft-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ft-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}
.ft-vals {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

/* ── ARTICLE PAGE ── */
.article-page {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 24px 80px;
}
.article-page .kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.article-page h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.article-page .deck {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--fg2);
    border-left: 3px solid var(--red);
    padding-left: 16px;
    margin-bottom: 22px;
}
.article-page .meta {
    font-size: 12px;
    color: var(--muted);
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.article-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    max-height: 460px;
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--fg2);
}
.article-body p {
    margin-bottom: 1.2em;
}
.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 0.6em;
    color: var(--fg);
}
.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
    color: var(--fg);
}
.article-body blockquote {
    border-left: 3px solid var(--red);
    padding: 12px 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--fg2);
    background: var(--bg);
    border-radius: 0 8px 8px 0;
}
.article-body ul,
ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}
.article-body li {
    margin-bottom: 0.4em;
}
.article-body img {
    border-radius: 8px;
    margin: 1.5em 0;
}
.article-body a {
    color: var(--red);
    text-decoration: underline;
}

/* share bar */
.share-bar {
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.share-btn {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    background: var(--white);
    cursor: pointer;
    transition: all 0.12s;
}
.share-btn:hover {
    border-color: var(--border2);
    background: var(--bg);
}

/* lang switcher on article */
.article-lang {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.article-lang-btn {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.12s;
}
.article-lang-btn.on {
    background: var(--fg);
    color: var(--white);
    border-color: var(--fg);
}

/* ── COMMENTS ── */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.comments-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 22px;
}
.comment-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-item:last-of-type {
    border-bottom: none;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
}
.comment-date {
    font-size: 11px;
    color: var(--muted);
}
.comment-body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--fg2);
    padding-left: 40px;
}
.comment-form {
    margin-top: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-form-title {
    font-size: 15px;
    font-weight: 700;
}
.comment-form textarea {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    outline: none;
    resize: vertical;
    transition: border-color 0.12s;
    line-height: 1.6;
    width: 100%;
}
.comment-form textarea:focus {
    border-color: var(--red);
}
.comment-btn {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    align-self: flex-start;
}
.comment-login-prompt {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-login-prompt p {
    font-size: 14px;
    color: var(--muted);
}
.comment-login-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.cta-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    transition: all 0.12s;
}
.cta-primary {
    background: var(--red);
    color: #fff;
}
.cta-secondary {
    background: var(--white);
    color: var(--fg);
    border: 1px solid var(--border);
}
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.alert-success {
    background: #eaf4ec;
    color: #2a7a3a;
    border: 1px solid #b0d8b8;
}
.alert-info {
    background: #eaf0fb;
    color: #2a4a9a;
    border: 1px solid #b0c8f0;
}
[data-theme="dark"] .alert-success {
    background: rgba(42, 122, 58, 0.2);
    color: #5cb870;
    border-color: rgba(42, 122, 58, 0.3);
}
[data-theme="dark"] .alert-info {
    background: rgba(42, 74, 154, 0.2);
    color: #6080d0;
    border-color: rgba(42, 74, 154, 0.3);
}

/* ── RELATED ── */
.related {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.related h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.related-card {
    cursor: pointer;
}
.related-card:hover .related-title {
    color: var(--red);
}
.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fg);
    transition: color 0.12s;
    margin-bottom: 3px;
}
.related-meta {
    font-size: 11px;
    color: var(--muted);
}

/* ── AUTHOR PAGE ── */
.author-page {
    max-width: 800px;
    margin: 48px auto;
    padding: 0 24px 80px;
}
.author-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.author-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}
.author-name {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 3px;
}
.author-bio {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 7px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-right .btn-reader {
        display: none;
    }
    .nav-right .lang-toggle {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 28px 0;
    }
    .hero-sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 24px;
        margin-top: 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-deck {
        font-size: 15px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .article-card.big {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .cal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nl-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .nl-form {
        flex-direction: column;
    }

    .ft-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .article-page {
        margin: 24px auto;
    }
    .article-page h1 {
        font-size: 26px;
    }
    .article-page .deck {
        font-size: 15px;
    }
    .article-body {
        font-size: 15px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .sec-heading {
        padding: 24px 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-sidebar {
        grid-template-columns: 1fr;
    }
    .cal-grid {
        grid-template-columns: 1fr;
    }
    .ft-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 24px;
    }
}


/* ── MOBILE OVERFLOW FIX ── */
@media (max-width: 768px) {
  * { max-width: 100%; }
  img, video, iframe, table { max-width: 100% !important; }
  .nav-inner { width: 100%; padding: 0 12px; gap: 8px; }
  .ft-grid { grid-template-columns: 1fr !important; }
  pre, code { overflow-x: auto; }
}


/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg) !important;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.nav-dropdown-toggle:hover { background: var(--bg) !important; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  z-index: 100;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .1s;
}
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--red); }

/* ── SEARCH ICON ── */
.nav-search-icon {
  font-size: 17px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: color .15s;
  line-height: 1;
}
.nav-search-icon:hover { color: var(--fg); }
