/*
 * NicheCraze frontend – clean, modern magazine.
 * Base: Bootstrap 5.3 (public/vendor/bootstrap). This file: brand tokens, typography, components.
 *
 *  - Brand from the logo: deep teal -> sky blue, hexagon mark.
 *  - UI + headlines: Plus Jakarta Sans. Article text: Source Serif 4. Both self-hosted (GDPR).
 *  - Every category has its own colour (admin) – used for its pill, section accents and article details.
 */

/* ---------------------------------------------------------------------------
   Fonts
--------------------------------------------------------------------------- */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
}

/* ---------------------------------------------------------------------------
   Tokens
--------------------------------------------------------------------------- */
:root {
    --nc-teal: #0f6b80;
    --nc-teal-rgb: 15, 107, 128;
    --nc-sky: #4ea8ff;
    --nc-ink: #121a23;
    --nc-ink-soft: #586575;
    --nc-paper: #ffffff;
    --nc-canvas: #f5f7fa;          /* page background behind cards */
    --nc-fog: #eef2f6;
    --nc-line: #e3e8ee;
    --nc-gradient: linear-gradient(115deg, #0f6b80 0%, #2c8fc4 55%, #4ea8ff 100%);

    --nc-font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --nc-font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

    --nc-radius: 16px;
    --nc-radius-sm: 10px;
    --nc-measure: 68ch;
    --nc-header-h: 72px;
    --nc-shadow-sm: 0 1px 2px rgba(18, 26, 35, .05);
    --nc-shadow: 0 10px 30px -12px rgba(18, 26, 35, .18);
    --nc-shadow-lg: 0 24px 60px -20px rgba(18, 26, 35, .35);

    --bs-body-font-family: var(--nc-font-display);
    --bs-body-color: var(--nc-ink);
    --bs-body-bg: var(--nc-paper);
    --bs-emphasis-color: var(--nc-ink);
    --bs-secondary-color: var(--nc-ink-soft);
    --bs-border-color: var(--nc-line);
    --bs-link-color: var(--nc-teal);
    --bs-link-color-rgb: var(--nc-teal-rgb);
    --bs-link-hover-color: #0a4e5e;
    --bs-primary: var(--nc-teal);
    --bs-primary-rgb: var(--nc-teal-rgb);
    --bs-border-radius: var(--nc-radius-sm);
    --bs-focus-ring-color: rgba(78, 168, 255, .45);
}

[data-bs-theme="dark"] {
    --nc-ink: #e9eef4;
    --nc-ink-soft: #9eacbb;
    --nc-paper: #0d141b;
    --nc-canvas: #111a23;
    --nc-fog: #16212c;
    --nc-line: #223040;
    --nc-teal: #5cc2d8;
    --nc-teal-rgb: 92, 194, 216;
    --nc-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --bs-body-color: var(--nc-ink);
    --bs-body-bg: var(--nc-paper);
    --bs-emphasis-color: var(--nc-ink);
    --bs-secondary-color: var(--nc-ink-soft);
    --bs-border-color: var(--nc-line);
    --bs-link-color: var(--nc-teal);
    --bs-link-hover-color: #9be0ef;
    color-scheme: dark;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--nc-header-h) + 1rem); }
body {
    font-size: 1rem;
    line-height: 1.6;
    background: var(--nc-paper);
    color: var(--nc-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
    font-family: var(--nc-font-display);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--nc-ink);
}
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(78, 168, 255, .3); }

:focus-visible { outline: 3px solid var(--nc-sky); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .22rem rgba(78, 168, 255, .3); border-color: var(--nc-sky); }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 2000;
    background: var(--nc-ink);
    color: var(--nc-paper);
    padding: .6rem 1rem;
    border-radius: var(--nc-radius-sm);
}
.skip-link:focus { top: 1rem; }

.container-nc { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 992px) { .container-nc { padding: 0 2rem; } }

/* Buttons */
.btn { font-weight: 700; border-radius: 999px; padding: .6rem 1.2rem; font-size: .92rem; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--nc-teal);
    --bs-btn-border-color: var(--nc-teal);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5869;
    --bs-btn-hover-border-color: #0b5869;
    --bs-btn-active-bg: #08414e;
    --bs-btn-active-border-color: #08414e;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--nc-teal);
    --bs-btn-disabled-border-color: var(--nc-teal);
    box-shadow: 0 6px 16px -6px rgba(var(--nc-teal-rgb), .6);
}
[data-bs-theme="dark"] .btn-brand { --bs-btn-color: #062a33; --bs-btn-hover-color: #062a33; --bs-btn-hover-bg: #8fd6e6; --bs-btn-hover-border-color: #8fd6e6; --bs-btn-active-color: #062a33; }
.btn-quiet {
    --bs-btn-color: var(--nc-ink);
    --bs-btn-bg: var(--nc-paper);
    --bs-btn-border-color: var(--nc-line);
    --bs-btn-hover-bg: var(--nc-fog);
    --bs-btn-hover-border-color: var(--nc-line);
    --bs-btn-hover-color: var(--nc-ink);
    --bs-btn-active-bg: var(--nc-fog);
    --bs-btn-active-color: var(--nc-ink);
}
.btn-white { --bs-btn-color: var(--nc-teal); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #eaf6fb; --bs-btn-hover-border-color: #eaf6fb; --bs-btn-hover-color: #0b5869; }

.form-control, .form-select {
    border-color: var(--nc-line);
    background-color: var(--nc-paper);
    padding: .75rem 1rem;
    border-radius: 12px;
}
.form-label { font-weight: 700; font-size: .88rem; }
.form-floating > .form-control, .form-floating > .form-select { height: calc(3.6rem + 2px); padding-top: 1.7rem; padding-bottom: .55rem; }
.form-floating > textarea.form-control { height: auto; min-height: 9rem; }
.form-floating > label { padding: 1.05rem 1rem; color: var(--nc-ink-soft); }
.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--nc-ink-soft); }

/* ---------------------------------------------------------------------------
   Category pill – tinted background in the category colour + hexagon mark
--------------------------------------------------------------------------- */
.cat-tag {
    --c: var(--nc-teal);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    align-self: flex-start;
    padding: .28rem .7rem .28rem .55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 12%, transparent);
    color: color-mix(in srgb, var(--c) 78%, var(--nc-ink));
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.cat-tag::before {
    content: "";
    width: .62em;
    height: .7em;
    background: var(--c);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    flex-shrink: 0;
}
a.cat-tag:hover { background: color-mix(in srgb, var(--c) 20%, transparent); color: color-mix(in srgb, var(--c) 85%, var(--nc-ink)); }
[data-bs-theme="dark"] .cat-tag { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
[data-bs-theme="dark"] .cat-tag::before { filter: brightness(1.6); }
.cat-tag.on-dark { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.cat-tag.on-dark::before { background: #fff; filter: none; }

/* Meta row */
.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
    row-gap: .25rem;
    font-size: .8rem;
    color: var(--nc-ink-soft);
}
.meta i { margin-right: .3rem; opacity: .75; }
.meta a { color: inherit; text-decoration: none; font-weight: 600; }
.meta a:hover { color: var(--nc-teal); }

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.topbar {
    background: var(--nc-ink);
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
}
[data-bs-theme="dark"] .topbar { background: #070b10; }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .social { display: flex; gap: .9rem; font-size: .9rem; }
.topbar .langs { display: flex; gap: .15rem; }
.topbar .langs a { padding: .15rem .5rem; border-radius: 999px; font-weight: 700; text-transform: uppercase; font-size: .72rem; }
.topbar .langs a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--nc-paper) 90%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--nc-line);
    transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(18, 26, 35, .35); }
.site-header .bar { height: var(--nc-header-h); display: flex; align-items: center; gap: 1.25rem; }
.brand { flex-shrink: 0; }
.brand img { height: 30px; width: auto; display: block; }
.brand .logo-dark { display: none; }
[data-bs-theme="dark"] .brand .logo-light { display: none; }
[data-bs-theme="dark"] .brand .logo-dark { display: block; }

.main-nav { display: flex; gap: .15rem; align-items: center; margin: 0 auto; padding: 0; list-style: none; }
.main-nav > li > a, .main-nav > li > button {
    position: relative;
    display: block;
    padding: .55rem .9rem;
    font-weight: 600;
    font-size: .93rem;
    color: var(--nc-ink);
    text-decoration: none;
    border: 0;
    background: none;
    border-radius: 999px;
    transition: background .15s, color .15s;
}
.main-nav > li > a:hover, .main-nav > li > button:hover, .main-nav > li > button[aria-expanded="true"] { background: var(--nc-fog); }
.main-nav > li > a[aria-current="page"] { color: var(--nc-teal); background: color-mix(in srgb, var(--nc-teal) 9%, transparent); }
.main-nav .dropdown-menu { border: 1px solid var(--nc-line); border-radius: 14px; padding: .45rem; min-width: 230px; box-shadow: var(--nc-shadow); }
.main-nav .dropdown-item { border-radius: 9px; padding: .55rem .8rem; font-weight: 600; font-size: .9rem; }

.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 992px) { .header-tools { margin-left: 0; } }
.search-trigger {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    height: 42px;
    padding: 0 .55rem 0 .95rem;
    min-width: 220px;
    border-radius: 999px;
    border: 1px solid var(--nc-line);
    background: var(--nc-canvas);
    color: var(--nc-ink-soft);
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .15s, background .15s;
}
.search-trigger:hover { border-color: color-mix(in srgb, var(--nc-teal) 40%, var(--nc-line)); background: var(--nc-paper); }
.search-trigger kbd { margin-left: auto; background: var(--nc-paper); color: var(--nc-ink-soft); border: 1px solid var(--nc-line); border-radius: 999px; font-family: inherit; font-size: .7rem; padding: .18rem .5rem; }
.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--nc-ink);
    font-size: 1.1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.icon-btn:hover { background: var(--nc-fog); color: var(--nc-ink); }
.icon-btn.bordered { border-color: var(--nc-line); }

/* Category strip */
.cat-strip { border-top: 1px solid var(--nc-line); }
.cat-strip ul {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: .6rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-strip ul::-webkit-scrollbar { display: none; }
.cat-strip .label { font-size: .78rem; font-weight: 700; color: var(--nc-ink-soft); margin-right: .25rem; white-space: nowrap; }
.cat-strip .cat-tag { padding: .35rem .8rem .35rem .65rem; font-size: .8rem; }
.cat-strip .cat-tag[aria-current="page"] { background: var(--c); color: #fff; }
.cat-strip .cat-tag[aria-current="page"]::before { background: #fff; }

/* Mobile navigation */
.offcanvas.nav-drawer { --bs-offcanvas-width: min(88vw, 380px); background: var(--nc-paper); }
.nav-drawer .drawer-links { list-style: none; padding: 0; margin: 0; }
.nav-drawer .drawer-links a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; font-size: 1.15rem; font-weight: 700; color: var(--nc-ink); text-decoration: none; border-bottom: 1px solid var(--nc-line); }
.nav-drawer .drawer-links ul { list-style: none; padding-left: 1rem; }
.nav-drawer .drawer-links ul a { font-size: 1rem; font-weight: 600; }

/* Search popup */
.search-modal .modal-dialog { max-width: 720px; margin-top: 8vh; }
.search-modal .modal-content { border: 0; border-radius: 22px; box-shadow: var(--nc-shadow-lg); overflow: hidden; background: var(--nc-paper); }
.search-modal .search-field { position: relative; border-bottom: 1px solid var(--nc-line); }
.search-modal .search-field i.bi-search { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--nc-teal); }
.search-modal .search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 1.5rem 7.5rem 1.5rem 3.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--nc-ink);
}
.search-modal .search-field input::placeholder { color: var(--nc-ink-soft); font-weight: 500; }
.search-modal .search-field .btn { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
.search-modal .modal-body { padding: 1.5rem; }
.search-modal h2 { font-size: .8rem; font-weight: 700; color: var(--nc-ink-soft); margin: 0 0 .75rem; letter-spacing: 0; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--nc-line);
    background: var(--nc-paper);
    color: var(--nc-ink);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--nc-teal); color: var(--nc-teal); }
.chip i { opacity: .6; }
.search-modal .hint { font-size: .78rem; color: var(--nc-ink-soft); border-top: 1px solid var(--nc-line); padding: .8rem 1.5rem; background: var(--nc-canvas); display: flex; gap: 1.25rem; }
.search-modal .hint kbd { background: var(--nc-paper); color: var(--nc-ink); border: 1px solid var(--nc-line); font-family: inherit; font-size: .7rem; border-radius: 6px; }
@media (max-width: 575.98px) {
    .search-modal .modal-dialog { margin: 0; }
    .search-modal .modal-content { border-radius: 0; min-height: 100vh; }
    .search-modal .search-field input { font-size: 1.1rem; padding-right: 1rem; }
    .search-modal .search-field .btn { display: none; }
}

/* Reading progress (article pages) */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 1040;
    background: var(--nc-gradient);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* ---------------------------------------------------------------------------
   Story teasers
--------------------------------------------------------------------------- */
.story { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.story .story-media {
    display: block;
    overflow: hidden;
    border-radius: var(--nc-radius);
    background: var(--nc-fog);
    aspect-ratio: 16 / 10;
}
.story .story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.story:hover .story-media img { transform: scale(1.04); }
.story .story-body { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.story .story-title { font-size: 1.15rem; font-weight: 750; margin: 0; letter-spacing: -.015em; line-height: 1.3; }
.story .story-title a { color: var(--nc-ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s; }
.story .story-title a::after { content: ""; position: absolute; inset: 0; } /* whole teaser clickable */
.story:hover .story-title a { background-size: 100% 2px; }
.story .cat-tag, .story .meta a { position: relative; z-index: 1; }
.story .story-excerpt { font-family: var(--nc-font-text); color: var(--nc-ink-soft); margin: 0; font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.story-row { flex-direction: row; gap: 1rem; align-items: center; }
.story-row .story-media { flex: 0 0 120px; aspect-ratio: 1 / 1; border-radius: 12px; }
.story-row .story-title { font-size: 1rem; }

.story-lg .story-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* Card variant: soft surface around the teaser */
.story-card { background: var(--nc-paper); border: 1px solid var(--nc-line); border-radius: calc(var(--nc-radius) + 4px); padding: .6rem .6rem 1.1rem; height: 100%; transition: box-shadow .25s, transform .25s, border-color .25s; }
.story-card .story-body { padding: 0 .5rem; }
.story-card:hover { box-shadow: var(--nc-shadow); border-color: transparent; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .story-card:hover { transform: none; } }

@media (min-width: 768px) {
    .story-wide { flex-direction: row; gap: 1.75rem; align-items: center; }
    .story-wide .story-media { flex: 0 0 44%; }
    .story-wide .story-title { font-size: 1.45rem; }
}

/* ---------------------------------------------------------------------------
   Home: hero (bento)
--------------------------------------------------------------------------- */
.hero { padding: 2rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.feature {
    --c: var(--nc-teal);
    position: relative;
    display: block;
    min-height: 460px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--nc-ink);
    color: #fff;
    isolation: isolate;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feature:hover img { transform: scale(1.03); }
.feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 14, 20, 0) 25%, rgba(8, 14, 20, .55) 55%, rgba(8, 14, 20, .92) 100%);
}
.feature .feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; display: flex; flex-direction: column; gap: .85rem; }
@media (min-width: 768px) { .feature .feature-body { padding: 2.5rem; } }
.feature h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; margin: 0; max-width: 22ch; }
.feature h2 a { color: inherit; text-decoration: none; }
.feature h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.feature .cat-tag, .feature .meta a { position: relative; z-index: 1; }
.feature p { font-family: var(--nc-font-text); color: rgba(255, 255, 255, .85); margin: 0; max-width: 60ch; font-size: 1.05rem; }
.feature .meta { color: rgba(255, 255, 255, .78); }
.feature .meta a:hover { color: #fff; }
.feature .author { display: inline-flex; align-items: center; gap: .5rem; }
.feature .author img { position: static; width: 28px; height: 28px; border-radius: 50%; z-index: 0; }

.hero-side { display: flex; flex-direction: column; gap: 1rem; }
.hero-side .side-head { display: flex; align-items: center; justify-content: space-between; }
.hero-side .side-head h2 { font-size: 1.05rem; margin: 0; }
.hero-side .story-row { padding: .75rem; border-radius: 16px; background: var(--nc-canvas); }
.hero-side .story-row:hover { background: var(--nc-fog); }
.hero-side .story-row .story-media { flex-basis: 96px; }

/* Hero slider (when the admin adds slides) */
.hero-slider { border-radius: 24px; overflow: hidden; }
.hero-slider .carousel-item { aspect-ratio: 21 / 8; min-height: 340px; background: var(--nc-ink); }
.hero-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-slider .carousel-caption { text-align: left; left: 6%; right: 30%; bottom: 12%; }
.hero-slider .carousel-caption h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 3rem); }
.hero-slider .carousel-caption p { font-family: var(--nc-font-text); font-size: 1.1rem; }

/* Home hero carousel (admin "Home slider", or the featured articles) */
.hero-grid.single { grid-template-columns: 1fr !important; }
.hero-carousel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #0b1520;
    box-shadow: var(--nc-shadow-lg);
    isolation: isolate;
}
.hero-carousel, .hero-carousel .carousel-inner { height: 100%; }
.hero-carousel .carousel-item { position: relative; height: 100%; min-height: 520px; background: #0b1520; }
.hero-grid.single .hero-carousel .carousel-item { aspect-ratio: 21 / 8; min-height: 440px; }
@media (max-width: 767.98px) { .hero-carousel .carousel-item, .hero-grid.single .hero-carousel .carousel-item { aspect-ratio: auto; min-height: 520px; } }
.hero-carousel .carousel-item > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}
.hero-carousel .carousel-item.active > img { transform: scale(1); }
.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 14, 22, .82) 0%, rgba(8, 14, 22, .45) 45%, rgba(8, 14, 22, 0) 75%),
        linear-gradient(0deg, rgba(8, 14, 22, .75) 0%, rgba(8, 14, 22, 0) 55%);
}
.hc-body {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: min(100%, 720px);
    padding: 2rem 2rem 5.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    color: #fff;
}
@media (min-width: 768px) { .hc-body { padding: 3rem 3rem 5.5rem; } }
.hc-title { color: #fff; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -.035em; margin: 0; font-weight: 800; text-wrap: balance; }
.hc-title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s; }
.hc-title a:hover { background-size: 100% 2px; }
.hc-body p { font-family: var(--nc-font-text); color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: 0; max-width: 56ch; }
.hc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .35rem; }
.hc-meta { color: rgba(255, 255, 255, .7); font-size: .85rem; font-weight: 600; }
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.35rem;
    border-radius: 999px;
    background: #fff;
    color: #0b1520;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
    transition: transform .2s, gap .2s, background .2s, color .2s;
}
.btn-hero:hover { color: #fff; background: var(--nc-gradient); gap: .8rem; transform: translateY(-1px); }

/* Caption entrance for the active slide */
.hero-carousel .carousel-item .hc-body > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-carousel .carousel-item.active .hc-body > * { opacity: 1; transform: none; }
.hero-carousel .carousel-item.active .hc-body > :nth-child(2) { transition-delay: .08s; }
.hero-carousel .carousel-item.active .hc-body > :nth-child(3) { transition-delay: .16s; }
.hero-carousel .carousel-item.active .hc-body > :nth-child(4) { transition-delay: .24s; }

.hc-controls {
    position: absolute;
    z-index: 3;
    left: 2rem;
    right: 2rem;
    bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
@media (min-width: 768px) { .hc-controls { left: 3rem; right: 2rem; } }
.hc-dots.carousel-indicators { position: static; margin: 0 auto 0 0; gap: .4rem; justify-content: flex-start; }
.hc-dots.carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .3);
    opacity: 1;
    position: relative;
    overflow: hidden;
    text-indent: 0;
}
.hc-dots.carousel-indicators [data-bs-target] span { position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.hc-dots.carousel-indicators .active span { animation: hc-progress 6.5s linear forwards; }
.hero-carousel:hover .hc-dots .active span { animation-play-state: paused; }
@keyframes hc-progress { to { width: 100%; } }
.hc-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
}
.hc-arrow:hover { background: #fff; color: #0b1520; border-color: #fff; }

/* ---------------------------------------------------------------------------
   Category cover (1140×550) and category cards (350×219)
--------------------------------------------------------------------------- */
.cat-cover-wrap { padding-top: 1.75rem; margin-bottom: 2.75rem; }
.cat-cover {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 1140 / 550;
    min-height: 380px;
    background: var(--c, var(--nc-ink));
    box-shadow: var(--nc-shadow-lg);
    isolation: isolate;
}
.cat-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: nc-kenburns 14s ease-out both; }
.cat-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(8, 14, 22, .88) 0%, rgba(8, 14, 22, .35) 50%, rgba(8, 14, 22, .1) 100%),
                linear-gradient(90deg, color-mix(in srgb, var(--c, #0f6b80) 45%, transparent) 0%, transparent 60%);
}
.cat-cover-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; color: #fff; }
@media (min-width: 768px) { .cat-cover-body { padding: 3rem; } }
.cat-cover-body h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.04em; margin: .35rem 0 .5rem; }
.cat-cover-body .lead { color: rgba(255, 255, 255, .85); font-family: var(--nc-font-text); font-size: 1.12rem; max-width: 60ch; }
.cat-cover-body .lead p { margin: 0; }
.cat-cover-body .crumbs, .cat-cover-body .crumbs a, .cat-cover-body .breadcrumb, .cat-cover-body .breadcrumb a, .cat-cover-body .breadcrumb-item.active { color: rgba(255, 255, 255, .8); }
.cat-cover-body .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.count-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: .82rem; font-weight: 700; }
@keyframes nc-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

.cat-card {
    --c: var(--nc-teal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 22px;
    background: var(--nc-paper);
    border: 1px solid var(--nc-line);
    overflow: hidden;
    text-decoration: none;
    color: var(--nc-ink);
    box-shadow: var(--nc-shadow-sm);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--nc-shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--nc-line)); color: var(--nc-ink); }
.cat-card-media { position: relative; display: block; aspect-ratio: 350 / 219; background: var(--c); overflow: hidden; }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.cat-card:hover .cat-card-media img { transform: scale(1.05); }
.cat-card-media .hex { position: absolute; right: -24px; top: -24px; width: 50%; aspect-ratio: .88; background: rgba(255, 255, 255, .18); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.cat-card-media .count { position: absolute; left: .9rem; top: .9rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0b1520; font-size: .74rem; font-weight: 700; box-shadow: var(--nc-shadow-sm); }
.cat-card-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem 1.3rem; flex: 1; }
.cat-card h2 { font-size: 1.25rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.cat-card h2::before { content: ""; width: .5em; height: .56em; background: var(--c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex-shrink: 0; }
.cat-card .desc { display: block; color: var(--nc-ink-soft); font-size: .88rem; margin-top: .3rem; }
.cat-card .go { width: 42px; height: 42px; border-radius: 50%; background: var(--nc-fog); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .25s, color .25s, transform .25s; }
.cat-card:hover .go { background: var(--c); color: #fff; transform: rotate(45deg); }
[data-bs-theme="dark"] .cat-card { background: var(--nc-canvas); }
[data-bs-theme="dark"] .cat-card-media .count { background: rgba(10, 16, 24, .85); color: #fff; }

/* ---------------------------------------------------------------------------
   Scroll animations (respect reduced motion)
--------------------------------------------------------------------------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.js-reveal [data-reveal="fade"] { transform: none; }
.js-reveal [data-reveal="zoom"] { transform: scale(.96); }
.site-header .brand img { transition: transform .3s; }
.site-header .brand:hover img { transform: translateY(-1px); }
.story-media, .story-card { will-change: auto; }
@keyframes nc-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-hero .container-nc > *, .contact-hero .container-nc > * { animation: nc-fade-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero .container-nc > :nth-child(2), .contact-hero .container-nc > :nth-child(2) { animation-delay: .07s; }
.page-hero .container-nc > :nth-child(3), .contact-hero .container-nc > :nth-child(3) { animation-delay: .14s; }
.page-hero .container-nc > :nth-child(n+4), .contact-hero .container-nc > :nth-child(n+4) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero-carousel .carousel-item > img, .cat-cover > img, .page-hero .container-nc > *, .contact-hero .container-nc > * { animation: none !important; transition: none !important; transform: none !important; }
    .hero-carousel .carousel-item .hc-body > * { opacity: 1; transform: none; transition: none; }
    .hc-dots.carousel-indicators .active span { animation: none; width: 100%; }
}

/* Legal links (top bar + footer) and developer credit */
.topbar .legal { display: flex; gap: 1rem; }
.topbar .legal a { font-weight: 600; }
.site-footer .bottom { align-items: center; }
.site-footer .bottom .credit .dot { margin: 0 .35rem; opacity: .5; }
.site-footer .bottom .credit a { color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(90deg, #4ea8ff, #7fd3e4) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.site-footer .bottom .credit a:hover { color: #7fd3e4; }
.site-footer .bottom .legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer .bottom .legal a { color: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 600; }
.site-footer .bottom .legal a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   Sections
--------------------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-canvas { background: var(--nc-canvas); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: 1.6rem; margin: 0; display: flex; align-items: center; gap: .6rem; }
.section-head h2 .hex { width: .6em; height: .68em; background: var(--c, var(--nc-teal)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex-shrink: 0; }
.section-head h2 a { color: var(--nc-ink); text-decoration: none; }
.section-head .more { font-weight: 700; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; color: var(--nc-ink); padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--nc-line); }
.section-head .more:hover { border-color: var(--nc-teal); color: var(--nc-teal); }

/* Page header (listing pages) */
.page-hero {
    background: var(--nc-canvas);
    border-bottom: 1px solid var(--nc-line);
    padding: 2.75rem 0 2.5rem;
    margin-bottom: 2.75rem;
    position: relative;
    overflow: hidden;
}
.page-hero.has-banner { color: #fff; border: 0; padding: 4.5rem 0 3.5rem; background: var(--nc-ink); }
.page-hero.has-banner .banner { position: absolute; inset: 0; }
.page-hero.has-banner .banner img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero.has-banner .container-nc { position: relative; }
.page-hero.has-banner h1, .page-hero.has-banner .lead, .page-hero.has-banner .crumbs, .page-hero.has-banner .crumbs a, .page-hero.has-banner .meta { color: #fff; }
.page-hero.cat-hero { background: color-mix(in srgb, var(--c) 9%, var(--nc-paper)); border-bottom: 0; }
.page-hero.cat-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -50px;
    width: 280px;
    height: 320px;
    background: color-mix(in srgb, var(--c) 16%, transparent);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .6rem; letter-spacing: -.035em; }
.page-hero .lead { font-family: var(--nc-font-text); color: var(--nc-ink-soft); max-width: 62ch; font-size: 1.15rem; margin: 0; }
.page-hero .lead p { margin: 0; }

.crumbs { font-size: .8rem; color: var(--nc-ink-soft); margin-bottom: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .6rem; margin-right: .45rem; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--nc-teal); }

/* Search bar on the blog page */
.inline-search { position: relative; max-width: 620px; margin-top: 1.5rem; }
.inline-search i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--nc-ink-soft); }
.inline-search input { width: 100%; height: 56px; padding: 0 8.5rem 0 3rem; border-radius: 999px; border: 1px solid var(--nc-line); background: var(--nc-paper); font-size: 1rem; font-weight: 500; color: var(--nc-ink); box-shadow: var(--nc-shadow-sm); }
.inline-search input:focus { outline: 0; border-color: var(--nc-sky); box-shadow: 0 0 0 .22rem rgba(78, 168, 255, .25); }
.inline-search .btn { position: absolute; right: .4rem; top: .4rem; bottom: .4rem; }
.result-note { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; font-size: .9rem; color: var(--nc-ink-soft); }
.result-note strong { color: var(--nc-ink); }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chips .cat-tag { padding: .45rem .9rem .45rem .75rem; font-size: .84rem; }

/* ---------------------------------------------------------------------------
   Sidebar widgets
--------------------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 992px) { .sidebar { position: sticky; top: calc(var(--nc-header-h) + 1.5rem); } }
.widget { background: var(--nc-canvas); border-radius: 20px; padding: 1.5rem; }
.widget h2 { font-size: 1.05rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.widget h2 i { color: var(--nc-teal); }
.ranked { list-style: none; counter-reset: rank; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; align-items: start; }
.ranked li::before {
    content: counter(rank, decimal-leading-zero);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--nc-teal);
    opacity: .55;
    font-variant-numeric: tabular-nums;
}
.ranked a { color: var(--nc-ink); text-decoration: none; font-weight: 700; line-height: 1.35; font-size: .95rem; }
.ranked a:hover { color: var(--nc-teal); }
.ranked .meta { margin-top: .3rem; }
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; border-radius: 12px; text-decoration: none; color: var(--nc-ink); font-weight: 600; font-size: .92rem; background: var(--nc-paper); }
.cat-list a:hover { box-shadow: var(--nc-shadow-sm); color: var(--nc-teal); }
.cat-list a .name { display: inline-flex; align-items: center; gap: .55rem; }
.cat-list a .name::before { content: ""; width: .7em; height: .8em; background: var(--c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.cat-list .count { font-size: .75rem; color: var(--nc-ink-soft); background: var(--nc-fog); border-radius: 999px; padding: .1rem .55rem; font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag-cloud a {
    font-size: .82rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border: 1px solid var(--nc-line);
    background: var(--nc-paper);
    border-radius: 999px;
    color: var(--nc-ink);
    text-decoration: none;
}
.tag-cloud a:hover { border-color: var(--nc-teal); color: var(--nc-teal); }

/* Newsletter (sidebar widget) */
.newsletter-box {
    position: relative;
    overflow: hidden;
    background: var(--nc-gradient);
    color: #fff;
    border-radius: 20px;
    padding: 1.6rem;
}
.newsletter-box::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 160px; background: rgba(255, 255, 255, .12); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.newsletter-box > * { position: relative; z-index: 1; }
.newsletter-box h2 { color: #fff; font-size: 1.2rem; margin-bottom: .35rem; }
.newsletter-box p { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.newsletter-box .form-control { background: rgba(255, 255, 255, .95); border: 0; border-radius: 999px; color: #121a23; }
.newsletter-box .btn { width: 100%; margin-top: .5rem; }
.newsletter-box .form-text { color: rgba(255, 255, 255, .75); }
.newsletter-box .form-text a { color: #fff; }

/* Newsletter band (above footer) */
.newsletter-band { padding: 0 0 4rem; }
.newsletter-band .band {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--nc-gradient);
    color: #fff;
    padding: 2.5rem 1.75rem;
    display: grid;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 992px) { .newsletter-band .band { grid-template-columns: 1.1fr 1fr; padding: 3.25rem 3.5rem; } }
.newsletter-band .band::before, .newsletter-band .band::after { content: ""; position: absolute; background: rgba(255, 255, 255, .1); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.newsletter-band .band::before { width: 260px; height: 300px; right: -60px; top: -90px; }
.newsletter-band .band::after { width: 120px; height: 140px; right: 32%; bottom: -70px; }
.newsletter-band .band > * { position: relative; z-index: 1; }
.newsletter-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5rem; }
.newsletter-band p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.02rem; max-width: 46ch; }
.newsletter-band .field { display: flex; gap: .5rem; background: #fff; border-radius: 999px; padding: .4rem; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5); }
.newsletter-band .field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 1rem; font-size: 1rem; color: #121a23; }
.newsletter-band .form-text { color: rgba(255, 255, 255, .8); margin-top: .7rem; }
.newsletter-band .form-text a { color: #fff; }
.newsletter-band .done { font-weight: 700; font-size: 1.1rem; }

/* ---------------------------------------------------------------------------
   Article
--------------------------------------------------------------------------- */
.article-head { padding: 2.5rem 0 2rem; max-width: 920px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; line-height: 1.06; margin: 1rem 0; }
.article-head .standfirst { font-family: var(--nc-font-text); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--nc-ink-soft); max-width: 62ch; margin-bottom: 1.6rem; }
.article-head .byline { display: flex; align-items: center; gap: .8rem; }
.article-head .byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.article-head .byline .name { font-weight: 700; font-size: .95rem; color: var(--nc-ink); text-decoration: none; }

.article-hero { margin: 0 0 3rem; }
.article-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 24px; }

.article-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1200px) { .article-layout { grid-template-columns: 56px minmax(0, 1fr) 340px; gap: 3rem; } }

.share-rail { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 1200px) { .share-rail { flex-direction: column; position: sticky; top: calc(var(--nc-header-h) + 2rem); align-self: start; } }
.share-rail .icon-btn { border: 1px solid var(--nc-line); background: var(--nc-paper); }
.share-rail .icon-btn:hover { border-color: var(--nc-teal); color: var(--nc-teal); }
.like-btn[aria-pressed="true"] { color: #e0245e; border-color: #e0245e; background: rgba(224, 36, 94, .08); }
.like-btn[aria-pressed="true"] i::before { content: "\F415"; }
.like-count { font-size: .75rem; font-weight: 700; text-align: center; color: var(--nc-ink-soft); font-variant-numeric: tabular-nums; margin-top: .2rem; }

.prose {
    font-family: var(--nc-font-text);
    font-size: 1.16rem;
    line-height: 1.78;
    max-width: var(--nc-measure);
    color: var(--nc-ink);
}
.prose > * + * { margin-top: 1.3em; }
.prose p { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--nc-font-display); margin-top: 2em; margin-bottom: 0; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--nc-teal); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { border-radius: 16px; }
.prose figure figcaption { font-family: var(--nc-font-display); font-size: .82rem; color: var(--nc-ink-soft); margin-top: .5rem; }
.prose blockquote {
    border: 0;
    background: color-mix(in srgb, var(--c, var(--nc-teal)) 8%, var(--nc-paper));
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--nc-ink);
    position: relative;
}
.prose blockquote::before { content: "\201C"; position: absolute; left: 1rem; top: -.6rem; font-size: 4rem; line-height: 1; color: var(--c, var(--nc-teal)); font-family: var(--nc-font-display); font-style: normal; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose table { width: 100%; font-family: var(--nc-font-display); font-size: .95rem; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--nc-line); padding: .65rem .5rem; text-align: left; }
.prose pre { background: var(--nc-canvas); padding: 1rem; border-radius: 12px; font-size: .9rem; }
.prose iframe { max-width: 100%; border-radius: 16px; }

.article-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.5rem; }

.author-box {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 1.1rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
    border-radius: 20px;
    background: var(--nc-canvas);
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.author-box .label { font-size: .75rem; font-weight: 700; color: var(--nc-ink-soft); }
.author-box h2 { font-size: 1.15rem; margin: .1rem 0 .4rem; }
.author-box p { font-family: var(--nc-font-text); color: var(--nc-ink-soft); margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; height: 100%; padding: 1.1rem 1.25rem; border-radius: 16px; border: 1px solid var(--nc-line); text-decoration: none; color: var(--nc-ink); font-weight: 700; line-height: 1.35; transition: border-color .15s, box-shadow .15s; }
.post-nav a span { display: block; font-size: .78rem; font-weight: 600; color: var(--nc-ink-soft); margin-bottom: .35rem; }
.post-nav a:hover { border-color: var(--nc-teal); box-shadow: var(--nc-shadow-sm); }
.post-nav .next { text-align: right; }

/* Comments */
.comments { margin-top: 3rem; max-width: var(--nc-measure); }
.comments h2 { font-size: 1.5rem; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; padding: 1.25rem 0; border-bottom: 1px solid var(--nc-line); }
.comment img { width: 44px; height: 44px; border-radius: 50%; }
.comment .who { font-weight: 700; }
.comment .who .staff { font-size: .68rem; font-weight: 700; background: var(--nc-teal); color: var(--nc-paper); border-radius: 999px; padding: .12rem .5rem; margin-left: .4rem; vertical-align: 2px; }
.comment .when { font-size: .78rem; color: var(--nc-ink-soft); }
.comment .text { font-family: var(--nc-font-text); margin: .45rem 0 .55rem; white-space: pre-line; }
.comment .reply-link { font-size: .8rem; font-weight: 700; border: 0; background: none; padding: 0; color: var(--nc-teal); }
.comment .replies { grid-column: 2; }
.comment .replies .comment { border-bottom: 0; padding-bottom: 0; }
.comment-form { background: var(--nc-canvas); border-radius: 20px; padding: 1.75rem; margin-top: 2rem; }

/* ---------------------------------------------------------------------------
   Category overview
--------------------------------------------------------------------------- */
.cat-tile { --c: var(--nc-teal); position: relative; display: block; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 3; background: var(--c); isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--c) 40%, rgba(0, 0, 0, .75)) 100%); }
.cat-tile .hex { position: absolute; right: -30px; top: -30px; width: 55%; aspect-ratio: .88; background: rgba(255, 255, 255, .16); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); z-index: -1; }
.cat-tile .tile-body { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cat-tile h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.cat-tile .count { font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.cat-tile .go { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.cat-tile:hover .go { background: #fff; color: var(--c); }

/* ---------------------------------------------------------------------------
   Contact
--------------------------------------------------------------------------- */
.contact-hero {
    position: relative;
    overflow: hidden;
    background: var(--nc-gradient);
    color: #fff;
    padding: 3.5rem 0 7.5rem;
}
.contact-hero::before, .contact-hero::after { content: ""; position: absolute; background: rgba(255, 255, 255, .1); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.contact-hero::before { width: 360px; height: 410px; right: -80px; top: -120px; }
.contact-hero::after { width: 160px; height: 185px; left: 45%; bottom: -60px; }
.contact-hero .container-nc { position: relative; z-index: 1; }
.contact-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .75rem; letter-spacing: -.035em; }
.contact-hero .lead, .contact-hero .lead p { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 56ch; margin: 0; }
.contact-hero .crumbs, .contact-hero .crumbs a { color: rgba(255, 255, 255, .85); }

.contact-methods { margin-top: -5rem; position: relative; z-index: 2; }
.method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
    background: var(--nc-paper);
    border: 1px solid var(--nc-line);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--nc-shadow);
    text-decoration: none;
    color: var(--nc-ink);
    transition: transform .2s, border-color .2s;
}
a.method:hover { transform: translateY(-2px); border-color: var(--nc-teal); color: var(--nc-ink); }
.method .ico { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--nc-teal) 10%, transparent); color: var(--nc-teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.method .label { font-size: .78rem; font-weight: 700; color: var(--nc-ink-soft); }
.method .value { font-weight: 700; font-size: 1rem; word-break: break-word; }
.method address { margin: 0; font-style: normal; white-space: pre-line; font-weight: 600; }

.contact-card { background: var(--nc-paper); border: 1px solid var(--nc-line); border-radius: 24px; padding: 2rem; box-shadow: var(--nc-shadow-sm); }
@media (min-width: 768px) { .contact-card { padding: 2.5rem; } }
.contact-card h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.contact-card .sub { color: var(--nc-ink-soft); margin-bottom: 1.75rem; }
.file-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border: 1.5px dashed var(--nc-line);
    border-radius: 14px;
    background: var(--nc-canvas);
    cursor: pointer;
    transition: border-color .15s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--nc-teal); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop i { font-size: 1.4rem; color: var(--nc-teal); }
.file-drop .t { font-weight: 700; font-size: .9rem; }
.file-drop .s { font-size: .78rem; color: var(--nc-ink-soft); }

.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.aside-card { border-radius: 24px; padding: 1.75rem; background: var(--nc-canvas); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; font-size: .95rem; }
.check-list i { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--nc-teal) 12%, transparent); color: var(--nc-teal); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.social-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--nc-paper); border: 1px solid var(--nc-line); color: var(--nc-ink); text-decoration: none; font-size: 1.05rem; }
.social-row a:hover { border-color: var(--nc-teal); color: var(--nc-teal); }
.map-embed { border-radius: 24px; overflow: hidden; }
.map-embed iframe { width: 100%; min-height: 300px; border: 0; display: block; }
.aside-image { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.aside-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Pagination
--------------------------------------------------------------------------- */
.pagination { --bs-pagination-color: var(--nc-ink); --bs-pagination-border-color: var(--nc-line); --bs-pagination-hover-bg: var(--nc-fog); --bs-pagination-hover-color: var(--nc-ink); --bs-pagination-active-bg: var(--nc-ink); --bs-pagination-active-border-color: var(--nc-ink); --bs-pagination-active-color: var(--nc-paper); --bs-pagination-bg: transparent; --bs-pagination-disabled-bg: transparent; gap: .35rem; }
.pagination .page-link { border-radius: 999px !important; font-weight: 700; min-width: 2.7rem; height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer { background: var(--nc-ink); color: rgba(255, 255, 255, .7); padding: 4rem 0 1.75rem; }
[data-bs-theme="dark"] .site-footer { background: #070b10; }
.site-footer h2 { font-size: .95rem; color: #fff; margin-bottom: 1.1rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .93rem; }
.site-footer .about { max-width: 38ch; font-size: .95rem; }
.site-footer .footer-logo { height: 30px; width: auto; margin-bottom: 1.1rem; }
.site-footer .social { flex-direction: row; gap: .5rem; margin-top: 1.4rem; }
.site-footer .social a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); transition: background .15s; }
.site-footer .social a:hover { background: var(--nc-teal); color: #fff; }
.site-footer .bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* ---------------------------------------------------------------------------
   Cookie banner, popup, toasts, back-to-top
--------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: calc(100% - 2rem);
    max-width: 480px;
    display: flex;
    gap: 1rem;
    background: var(--nc-paper);
    color: var(--nc-ink);
    border: 1px solid var(--nc-line);
    border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(13, 23, 34, .35), 0 2px 6px rgba(13, 23, 34, .06);
    padding: 1.25rem;
    overflow: hidden;
    animation: nc-fade-up .5s cubic-bezier(.2, .7, .2, 1) both;
}
.cookie-banner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--nc-gradient); }
.cookie-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: var(--nc-gradient); box-shadow: 0 10px 20px -10px rgba(44, 143, 196, .9); }
.cookie-content { min-width: 0; }
.cookie-banner .title { font-weight: 800; font-size: 1rem; margin-bottom: .3rem; }
.cookie-banner p { font-size: .88rem; color: var(--nc-ink-soft); margin-bottom: 1rem; line-height: 1.55; }
.cookie-banner p a { color: var(--nc-teal); font-weight: 700; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { padding: .55rem 1rem; border-radius: 999px; font-weight: 700; }
[data-bs-theme="dark"] .cookie-banner { background: #111a24; }
.cookie-banner[hidden] { display: none; }

.site-toast { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1090; max-width: 380px; }
.site-toast .alert { border-radius: 14px; border: 0; box-shadow: var(--nc-shadow); }

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1020;
    opacity: 0;
    pointer-events: none;
    background: var(--nc-ink);
    color: var(--nc-paper);
    transition: opacity .2s;
    box-shadow: var(--nc-shadow);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--nc-teal); color: #fff; }

/* Website popup */
.popup-modal .modal-dialog { max-width: 760px; }
.popup-modal .modal-content { border: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(13, 23, 34, .45); position: relative; }
.popup-modal.fade .modal-dialog { transform: scale(.95) translateY(12px); transition: transform .3s cubic-bezier(.2, .9, .3, 1.15); }
.popup-modal.show .modal-dialog { transform: none; }
.popup-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .popup-grid { grid-template-columns: 280px 1fr; } }
.popup-art { position: relative; min-height: 150px; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, #4ea8ff 0%, transparent 55%), linear-gradient(150deg, #0b1520 0%, #0f3d4c 45%, #0f6b80 100%); display: flex; align-items: center; justify-content: center; }
.popup-art .hex { position: absolute; background: rgba(255, 255, 255, .09); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.popup-art .hex-1 { width: 180px; height: 205px; top: -50px; right: -40px; }
.popup-art .hex-2 { width: 110px; height: 125px; bottom: -30px; left: -20px; background: rgba(78, 168, 255, .25); }
.popup-art .hex-3 { width: 60px; height: 68px; bottom: 30%; right: 18%; background: rgba(255, 255, 255, .14); }
.popup-badge { position: relative; width: 88px; height: 88px; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; font-size: 2.3rem; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); transform: rotate(-6deg); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.popup-body { padding: 2.25rem 2rem 2rem; }
@media (min-width: 768px) { .popup-body { padding: 2.75rem 2.5rem 2.25rem; } }
.popup-prose :is(h2, h3) { font-size: 1.6rem; letter-spacing: -.03em; margin: 0 0 .5rem; }
.popup-prose p { font-family: var(--nc-font-text); color: var(--nc-ink-soft); font-size: 1rem; }
.popup-form { margin-top: 1.25rem; display: grid; gap: .65rem; }
.popup-field { position: relative; }
.popup-field i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--nc-ink-soft); }
.popup-field .form-control { height: 52px; padding-left: 2.6rem; border-radius: 14px; }
.popup-form .btn-brand { height: 52px; border-radius: 14px; font-weight: 700; }
.popup-note { display: flex; align-items: center; gap: .4rem; justify-content: center; font-size: .78rem; color: var(--nc-ink-soft); margin: .25rem 0 0; }
.popup-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--nc-line); background: var(--nc-paper); color: var(--nc-ink); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.popup-close:hover { background: var(--nc-ink); color: var(--nc-paper); transform: rotate(90deg); }
@media (max-width: 767.98px) { .popup-close { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; } }
[data-bs-theme="dark"] .popup-modal .modal-content { background: #111a24; }

/* Error pages */
.error-page { min-height: 60vh; display: flex; align-items: center; padding: 4rem 0; }
.error-page .code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: .85;
    background: var(--nc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.error-page p { font-family: var(--nc-font-text); color: var(--nc-ink-soft); font-size: 1.1rem; max-width: 46ch; }

/* Empty state */
.empty { padding: 3.5rem 1.5rem; text-align: center; color: var(--nc-ink-soft); background: var(--nc-canvas); border-radius: 24px; }
.empty i { font-size: 2.4rem; color: var(--nc-teal); display: block; margin-bottom: .75rem; }
.empty h2 { font-size: 1.4rem; }

/* RTL tweaks */
[dir="rtl"] .post-nav .next { text-align: left; }
[dir="rtl"] .crumbs li + li::before { content: "\F284"; margin-right: 0; margin-left: .45rem; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .story:hover .story-media img, .feature:hover img, .cat-tile:hover img { transform: none; }
}

/* Print */
@media print {
    .topbar, .site-header, .site-footer, .newsletter-band, .share-rail, .sidebar, .comments, .cookie-banner, .back-to-top, .reading-progress { display: none !important; }
    .prose { font-size: 12pt; max-width: none; }
}
@media (max-width: 575.98px) { .feature { min-height: 380px; border-radius: 20px; } .feature .feature-body { padding: 1.4rem; } }

/* Language dropdown in the header */
.lang-dropdown .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 42px;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1px solid var(--nc-line);
    background: var(--nc-paper);
    color: var(--nc-ink);
    font-weight: 700;
    font-size: .82rem;
    transition: border-color .2s, background .2s;
}
.lang-dropdown .lang-btn:hover, .lang-dropdown .lang-btn[aria-expanded="true"] { border-color: var(--nc-teal); }
.lang-dropdown .lang-btn img, .lang-dropdown .dropdown-item img { border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-dropdown .lang-btn .caret { font-size: .65rem; opacity: .6; transition: transform .2s; }
.lang-dropdown .lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang-dropdown .dropdown-menu { min-width: 190px; padding: .4rem; border-radius: 14px; border: 1px solid var(--nc-line); box-shadow: var(--nc-shadow-lg); margin-top: .5rem !important; }
.lang-dropdown .dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 10px; padding: .55rem .7rem; font-weight: 600; font-size: .88rem; }
.lang-dropdown .dropdown-item.active, .lang-dropdown .dropdown-item:active { background: color-mix(in srgb, var(--nc-teal) 10%, transparent); color: var(--nc-teal); }
[data-bs-theme="dark"] .lang-dropdown .lang-btn { background: transparent; }
@media (max-width: 575.98px) { .lang-dropdown .lang-btn span { display: none; } }

/* ---------------------------------------------------------------------------
   Legal pages: table of contents on the left (filled by the page script)
--------------------------------------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.legal-layout:has(.legal-toc:not([hidden])) { grid-template-columns: 260px minmax(0, 1fr); }
.legal-body { max-width: 760px; }
.legal-body :is(h2, h3) { scroll-margin-top: 110px; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc-inner { padding: 1.1rem; border-radius: 18px; background: var(--nc-paper); border: 1px solid var(--nc-line); box-shadow: var(--nc-shadow-sm); max-height: calc(100vh - 130px); overflow-y: auto; }
.legal-toc-title { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nc-ink-soft); margin: 0 0 .6rem .55rem; }
.legal-toc nav { display: flex; flex-direction: column; gap: 2px; }
.legal-toc nav a { position: relative; display: block; padding: .45rem .6rem .45rem .85rem; border-radius: 10px; color: var(--nc-ink-soft); font-size: .86rem; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .15s, color .15s; }
.legal-toc nav a::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; border-radius: 3px; background: transparent; transition: background .15s; }
.legal-toc nav a.sub { padding-left: 1.6rem; font-size: .8rem; font-weight: 500; }
.legal-toc nav a:hover { background: var(--nc-fog); color: var(--nc-ink); }
.legal-toc nav a.active { color: var(--nc-teal); background: color-mix(in srgb, var(--nc-teal) 8%, transparent); }
.legal-toc nav a.active::before { background: var(--nc-gradient, var(--nc-teal)); }
[data-bs-theme="dark"] .legal-toc-inner { background: var(--nc-canvas); }
@media (max-width: 991.98px) {
    .legal-layout:has(.legal-toc:not([hidden])) { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
    .legal-toc-inner { max-height: none; }
}

/* Footer social profiles (Admin › Social media) */
.footer-social { margin-top: 1.5rem; }
.footer-social-title { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: .75rem; }
.site-footer .footer-social .social { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.site-footer .footer-social .social a { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s, border-color .2s; }
.site-footer .footer-social .social a:hover { background: var(--nc-gradient); border-color: transparent; transform: translateY(-2px); }
.site-footer .footer-social .social { margin-top: 0; }

/* Floating WhatsApp button */
.wa-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    height: 56px;
    padding: 0 1.1rem 0 .95rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .7), 0 2px 6px rgba(0, 0, 0, .12);
    transition: transform .2s, box-shadow .2s;
    animation: wa-in .5s .8s both cubic-bezier(.2, .9, .3, 1.2);
}
.wa-float i { font-size: 1.6rem; line-height: 1; }
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(37, 211, 102, .8), 0 2px 6px rgba(0, 0, 0, .14); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: wa-pulse 2.8s 2s infinite; pointer-events: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 575.98px) { .wa-float { width: 56px; padding: 0; justify-content: center; } .wa-float-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::after { animation: none; } }

/* Post shown in its original language (not translated yet) */
.lang-note { display: inline-flex; align-items: center; gap: .3rem; margin-left: .35rem; padding: .15rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--nc-ink-soft); background: var(--nc-fog); vertical-align: middle; }
.lang-note i { font-size: .75rem; }

/* ---------------------------------------------------------------------------
   Page headers (blog, categories, tag/author lists, legal pages, category without cover):
   same gradient band with hexagons as the contact page
--------------------------------------------------------------------------- */
.page-hero:not(.has-banner) {
    background: var(--nc-gradient);
    color: #fff;
    border-bottom: 0;
    padding: 3.25rem 0 3rem;
}
.page-hero:not(.has-banner)::before,
.page-hero:not(.has-banner)::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    pointer-events: none;
}
.page-hero:not(.has-banner)::before { width: 340px; height: 390px; right: -80px; top: -120px; }
.page-hero:not(.has-banner)::after { width: 150px; height: 172px; left: 48%; bottom: -70px; }
.page-hero:not(.has-banner) .container-nc { position: relative; z-index: 1; }
.page-hero:not(.has-banner) h1 { color: #fff; }
.page-hero:not(.has-banner) .lead, .page-hero:not(.has-banner) .lead p { color: rgba(255, 255, 255, .9); }
.page-hero:not(.has-banner) .meta, .page-hero:not(.has-banner) .result-note { color: rgba(255, 255, 255, .85); }
.page-hero:not(.has-banner) .result-note strong { color: #fff; }
.page-hero:not(.has-banner) .crumbs, .page-hero:not(.has-banner) .crumbs a { color: rgba(255, 255, 255, .85); }
.page-hero:not(.has-banner) .crumbs a:hover { color: #fff; }
.page-hero:not(.has-banner) .chip { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.page-hero:not(.has-banner) .inline-search input { border-color: transparent; box-shadow: 0 18px 40px -18px rgba(8, 20, 32, .55); }
.page-hero:not(.has-banner) .cat-tag { background: rgba(255, 255, 255, .16); color: #fff; }
/* Category without cover: gradient in the category colour */
.page-hero.cat-hero { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 85%, #0b1520) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 55%, #4ea8ff) 100%); }
.page-hero.cat-hero::after { background: rgba(255, 255, 255, .1); right: auto; top: auto; }
[data-bs-theme="dark"] .page-hero:not(.has-banner) { background: linear-gradient(115deg, #0b3a47 0%, #14557a 55%, #1f5f99 100%); }
