/* ==========================================================================
   main.css — Site-wide styles for Darada Landing
   Consolidates CSS from base.html and all page-specific templates.
   ========================================================================== */

/* ── Fonts ── */

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-Regular.507aa853f905.otf") format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-Oblique.24a549309c94.otf") format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-Medium.cc48aaae2efe.otf") format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-MediumOblique.ba020cd94154.otf") format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-SemiBold.c957a043dda5.otf") format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-SemiBoldOblique.0b654d61fa7d.otf") format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-Bold.e21579d3db9e.otf") format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url("../fonts/involve/Involve-BoldOblique.9bcbf5d1cd66.otf") format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Variables ── */

:root {
    --brand-darkest: #010D25;
    --brand-dark: #003C5F;
    --brand-accent: #A7052F;
    --brand-blue: #0068A3;

    --sep-light: #e0e0e0;
    --sep-medium: #b3b3b3;
    --sep-dark: var(--brand-darkest);
    --sep-md: var(--sep-light);

    /* Theme-aware colors */
    --bg-body: #fff;
    --bg-surface: #fff;
    --bg-hover: #f5f5f5;
    --bg-subtle: #f3f3f3;
    --bg-placeholder: #f0f0f0;

    --text-heading: #222;
    --text-body: #333;
    --text-secondary: #555;
    --text-muted: #888;
    --text-faint: #aaa;
    --text-placeholder: #bbb;
    --text-blockquote: #666;

    --border-light: #e5e5e5;
    --border-medium: #d0d0d0;
    --border-dim: #ddd;
    --border-hover: #ccc;
    --border-faint: #eee;

    --gradient-fade: #fff;
    --code-bg: #f3f3f3;

    --toast-bg: #f0faf0;
    --toast-text: #1a472a;
    --toast-border: #b7e0b7;

    --unpublished-bg: #fffbeb;
    --unpublished-text: #92400e;

    --lock-lost-bg: #fef2f2;
    --lock-lost-text: #7f1d1d;

    --max-width-page: 1260px;   /* main listing / detail pages */
    --max-width-medium: 1560px; /* about, stores */
    --max-width-form: 960px;    /* editor forms */
    --max-width-narrow: 420px;  /* auth / profile forms */
    --padding-page: 2rem;       /* horizontal page padding (edge of screen) */
    --gap-header: 3rem;         /* space between header and page content */
}

/* Suppress transitions during theme switch */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition: none !important;
}

/* ── Dark theme ── */

[data-theme="dark"] {
    --bg-body: #121218;
    --bg-surface: #1a1a24;
    --bg-hover: #242430;
    --bg-subtle: #2a2a38;
    --bg-placeholder: #222230;

    --text-heading: #e8e8ec;
    --text-body: #d0d0d8;
    --text-secondary: #a0a0b0;
    --text-muted: #808090;
    --text-faint: #606070;
    --text-placeholder: #505060;
    --text-blockquote: #9090a0;

    --border-light: #2e2e3e;
    --border-medium: #3a3a4a;
    --border-dim: #333344;
    --border-hover: #4a4a5a;
    --border-faint: #252535;

    --gradient-fade: #121218;
    --code-bg: #2a2a38;

    --toast-bg: #1a2e1a;
    --toast-text: #a0d8a0;
    --toast-border: #2a4a2a;

    --unpublished-bg: #2a2518;
    --unpublished-text: #d4a020;

    --lock-lost-bg: #2a1818;
    --lock-lost-text: #e0a0a0;

    --sep-light: #2e2e3e;
    --sep-medium: #404050;

    --brand-blue: #5bb8e8;

    color-scheme: dark;
}

/* Dark mode — component overrides */

[data-theme="dark"] .site-nav a {
    color: #b0b8c8;
}

[data-theme="dark"] .site-nav a:hover {
    color: #e8e8ec;
}

[data-theme="dark"] .site-auth a,
[data-theme="dark"] .site-auth button {
    color: #b0b8c8;
}

[data-theme="dark"] .site-auth a:hover,
[data-theme="dark"] .site-auth button:hover {
    color: #e8e8ec;
}

[data-theme="dark"] .site-auth .admin-link {
    color: #e8e8ec;
}

[data-theme="dark"] .auth-compact-trigger {
    color: #b0b8c8;
}

[data-theme="dark"] .auth-compact-trigger:hover {
    color: #e8e8ec;
}

[data-theme="dark"] .nav-compact-trigger {
    color: #e8e8ec;
}

[data-theme="dark"] .nav-dropdown a,
[data-theme="dark"] .auth-dropdown a,
[data-theme="dark"] .auth-dropdown button {
    color: #b0b8c8;
}

[data-theme="dark"] .nav-dropdown a:hover,
[data-theme="dark"] .auth-dropdown a:hover,
[data-theme="dark"] .auth-dropdown button:hover {
    color: #e8e8ec;
}

[data-theme="dark"] .per-page-select {
    color: #e8e8ec;
}

[data-theme="dark"] .per-page-label {
    color: #b0b8c8;
}

[data-theme="dark"] .page-btn {
    color: #b0b8c8;
}

[data-theme="dark"] .store-contacts-list a {
    color: #e8e8ec;
}

[data-theme="dark"] .store-contacts-list .contact-icon {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .store-city {
    color: #5bb8e8;
}

[data-theme="dark"] .news-card-headline:hover {
    color: #5bb8e8;
}

[data-theme="dark"] .news-card-read-more {
    color: #5bb8e8;
}

[data-theme="dark"] .home-section-all {
    color: #5bb8e8;
}

[data-theme="dark"] .news-detail-back:hover,
[data-theme="dark"] .project-back:hover,
[data-theme="dark"] .news-card-read-more:hover,
[data-theme="dark"] .home-section-all:hover {
    color: #8dd0f0;
}

[data-theme="dark"] .md-content a:hover {
    color: #5bb8e8;
}

/* EasyMDE dark overrides */
[data-theme="dark"] .EasyMDEContainer .CodeMirror {
    background: var(--bg-surface);
    color: var(--text-body);
    border-color: var(--border-medium);
}

[data-theme="dark"] .EasyMDEContainer .CodeMirror-cursor {
    border-left-color: var(--text-heading);
}

[data-theme="dark"] .EasyMDEContainer .editor-preview,
[data-theme="dark"] .EasyMDEContainer .editor-preview-side {
    background: var(--bg-surface);
    color: var(--text-body);
}

[data-theme="dark"] .EasyMDEContainer .editor-toolbar {
    border-color: var(--border-medium);
    background: var(--bg-surface);
}

[data-theme="dark"] .EasyMDEContainer .editor-toolbar button {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .EasyMDEContainer .editor-toolbar button:hover,
[data-theme="dark"] .EasyMDEContainer .editor-toolbar button.active {
    background: var(--bg-hover) !important;
    border-color: var(--border-medium) !important;
}

[data-theme="dark"] .EasyMDEContainer .editor-statusbar {
    color: var(--text-muted);
}

/* Dark mode — form labels */
[data-theme="dark"] .field-group label,
[data-theme="dark"] .images-section-label {
    color: var(--text-secondary);
}

/* Dark mode — outlined form controls */
[data-theme="dark"] .date-today-btn,
[data-theme="dark"] .add-photos-btn,
[data-theme="dark"] .form-cancel {
    color: var(--text-secondary);
}

[data-theme="dark"] .date-today-btn:hover,
[data-theme="dark"] .add-photos-btn:hover,
[data-theme="dark"] .form-cancel:hover {
    color: var(--text-heading);
}

/* Dark mode — buttons with --brand-darkest bg need lighter bg */
[data-theme="dark"] .btn-editor {
    background: var(--brand-dark);
    border: 1.5px solid transparent;
    outline: none;
    box-shadow: none;
}

[data-theme="dark"] .btn-editor:hover {
    background: var(--brand-blue);
}

[data-theme="dark"] .btn-editor--outline {
    background: var(--brand-dark);
    color: #fff;
}

[data-theme="dark"] .btn-editor--outline:hover {
    background: var(--brand-blue);
    color: #fff;
}

[data-theme="dark"] .btn-editor--danger {
    background: #571a13;
}

[data-theme="dark"] .btn-editor--warning {
    background: #573913;
}

[data-theme="dark"] .btn-primary {
    background: var(--brand-dark);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--brand-blue);
}

[data-theme="dark"] .cookie-consent button {
    background: var(--brand-dark);
}

[data-theme="dark"] .field-input,
[data-theme="dark"] .field-input-text {
    background: var(--bg-surface);
    color: var(--text-heading);
    border-color: var(--border-medium);
}

@media (max-width: 768px) {
    :root { --padding-page: 1rem; --gap-header: 1.25rem; }
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, textarea, select { font-family: inherit; }
html { background: var(--bg-body); }
body { font-family: 'Involve', system-ui, sans-serif; color: var(--text-heading); background: var(--bg-body); overflow-wrap: break-word; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.page-content { flex: 1 0 auto; min-height: calc(100vh - 64px); }

/* ── Header ── */

.site-header.header-measuring { visibility: hidden; }

.site-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 3rem;
    height: 64px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-body);
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 0.5rem;
    padding: 8px 0;
}
.logo-icon { height: 32px; width: auto; }
.logo-text { height: 26px; width: auto; position: relative; top: 2px; }
.logo-icon-dark, .logo-text-dark { display: none; }
[data-theme="dark"] .logo-icon-light, [data-theme="dark"] .logo-text-light { display: none; }
[data-theme="dark"] .logo-icon-dark, [data-theme="dark"] .logo-text-dark { display: block; }
.site-header.compact-logo .logo-text { display: none; }
.site-header.compact-logo { padding: 0 0.5rem 0 2rem; gap: 1.5rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--brand-dark);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.site-nav a:hover {
    background: var(--bg-subtle);
    color: var(--brand-darkest);
}

.site-nav a.active {
    background: var(--brand-dark);
    color: #fff;
    font-weight: 500;
}

/* ── Theme picker ── */

.theme-picker {
    position: relative;
    flex-shrink: 0;
}

.site-auth .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.site-auth .theme-toggle:hover {
    background: var(--bg-subtle);
    color: var(--text-heading);
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

[data-theme="dark"] .theme-icon-dark { display: block; color: #fff; }
[data-theme="dark"] .theme-icon-light { display: none; }

.theme-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 155px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.theme-dropdown[hidden] { display: none; }

.theme-dropdown .theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text-body);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.theme-dropdown .theme-option:hover {
    background: var(--bg-hover);
    color: var(--text-heading);
}

.theme-dropdown .theme-option.active {
    background: var(--bg-subtle);
    font-weight: 600;
    color: var(--text-heading);
}

.theme-dropdown .theme-option svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.theme-dropdown .theme-option.active svg {
    opacity: 1;
}

/* ── Auth section ── */

.site-auth {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.site-auth a,
.site-auth button {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--brand-dark);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.site-auth a:hover,
.site-auth button:hover {
    background: var(--bg-subtle);
    color: var(--brand-darkest);
}

.site-auth .admin-link {
    color: var(--brand-darkest);
    font-weight: 500;
    margin-right: 0.5rem;
}

.greeting {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0rem;
    margin-left: 1.5rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .greeting { display: none; }
}

/* Auth wide/compact layout */
.auth-wide {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}
.auth-wide form { display: contents; }

.user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 3rem;
}
.user-name--active {
    background: var(--brand-dark);
    color: #fff;
    font-weight: 500;
}

.auth-compact {
    display: none;
    align-items: center;
    position: relative;
    min-width: 0;
}
.auth-compact-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--brand-dark);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}
.auth-compact-trigger:hover { background: var(--bg-subtle); color: var(--brand-darkest); }
.auth-caret, .nav-caret { opacity: 0.6; flex-shrink: 0; }
.auth-caret { width: 16px; height: 16px; }
.nav-compact-trigger .nav-caret { font-size: 0.85rem; opacity: 0.8; }

/* Nav compact layout */
.nav-compact {
    display: none;
    align-items: center;
    position: relative;
}
.nav-compact-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 175px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-darkest);
    background: var(--bg-subtle);
    border: 1px solid var(--border-dim);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.nav-compact-trigger:hover { background: var(--bg-hover); color: var(--brand-darkest); border-color: var(--border-hover); }
.nav-compact-trigger .nav-menu-icon { display: none; }
.nav-compact-trigger.icon-only { width: auto; padding: 0.45rem; background: none; border-color: transparent; }
.nav-compact-trigger.icon-only:hover { background: var(--bg-hover); border-color: var(--border-dim); }
.nav-compact-trigger.icon-only #nav-label,
.nav-compact-trigger.icon-only .nav-caret { display: none; }
.nav-compact-trigger.icon-only .nav-menu-icon { display: block; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 160px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nav-dropdown[hidden] { display: none; }
.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--brand-darkest);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--bg-hover); color: var(--brand-darkest); }
.nav-dropdown a.active { background: var(--brand-dark); color: #fff; font-weight: 600; }

.auth-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 190px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.auth-dropdown[hidden] { display: none; }
.auth-dropdown a,
.auth-dropdown button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--brand-dark);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    border-radius: 0;
}
.auth-dropdown a:hover,
.auth-dropdown button:hover { background: var(--bg-hover); color: var(--brand-darkest); }
.auth-dropdown .admin-link { color: var(--brand-darkest); font-weight: 500; }
.auth-dropdown a.active { background: var(--brand-dark); color: #fff; font-weight: 500; }
.auth-dropdown form { margin: 0; padding: 0; }

/* ── Shared news card (home + news list) ── */

.news-card {
    position: relative;
    display: flex;
    gap: 1.75rem;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

@media (hover: hover) {
    .news-card:hover { background: var(--bg-hover); }

    .news-card:hover .news-card-text-wrap::after {
        background-color: var(--bg-hover);
    }
}

.news-card-image {
    flex-shrink: 0;
    width: 220px;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bg-placeholder);
    display: block;
}

.news-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.4rem;
    min-width: 0;
    overflow: hidden;
}

/* Shared date line: "[X days ago]  [Full date]" */
.date-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
}
.date-line .date-full {
    white-space: nowrap;
    opacity: 0.65;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.news-card-headline {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
    flex-shrink: 0;
}

.news-card-headline::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}
.news-card-headline:hover { color: var(--brand-blue); }

.news-card-text-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.news-card-text-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2.5rem;
    background-color: var(--gradient-fade);
    -webkit-mask-image: linear-gradient(transparent, black);
    mask-image: linear-gradient(transparent, black);
    transition: background-color 0.15s;
    pointer-events: none;
}

.news-card-text {
    font-size: 0.97rem;
    color: var(--text-body);
    line-height: 1.7;
    white-space: pre-line;
}

.news-card-read-more {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    align-self: flex-end;
    margin-right: 2rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.15s;
}

.news-card-read-more:hover { color: var(--brand-dark); }

/* ── News card tablet adaptive layout ── */

@media (max-width: 768px) and (min-width: 641px) {
    /* Landscape cards: stacked layout */
    .news-card {
        flex-direction: column;
        height: auto;
        gap: 0;
    }

    .news-card-image {
        width: 100%;
        height: 220px;
        border-radius: 8px;
    }

    .news-card-body {
        padding: 0.85rem 0.85rem 0.9rem;
        gap: 0.3rem;
    }

    .news-card-text-wrap {
        max-height: 5.5em;
    }

    .news-card-read-more {
        margin-right: 0.4rem;
    }

    /* Portrait cards: image on the side */
    .news-card--portrait {
        flex-direction: row;
        height: 300px;
        align-items: stretch;
    }

    .news-card--portrait .news-card-image {
        width: 40%;
        height: 100%;
    }

    .news-card--portrait .news-card-body {
        padding: 1rem;
    }

    .news-card--portrait .news-card-text-wrap {
        max-height: none;
    }
}

/* ── News card mobile adaptive layout ── */

@media (max-width: 640px) {
    /* Default: stacked layout (good for landscape images) */
    .news-card {
        flex-direction: column;
        height: auto;
        gap: 0;
    }

    .news-card-image {
        width: 100%;
        height: 200px;
        border-radius: 8px;
    }

    .news-card-body {
        padding: 0.85rem 0.85rem 0.9rem;
        gap: 0.3rem;
    }

    .news-card-text-wrap {
        max-height: 5.5em;
    }

    .news-card-read-more {
        margin-right: 0.4rem;
    }

    /* Portrait/square variant: same stacked layout, taller image */
    .news-card--portrait .news-card-image {
        height: 350px;
    }
}

/* ── Unpublished card wrapper (news + project cards) ── */

.unpublished-card-wrap {
    border-left: 4px solid #f59e0b;
    padding-left: 0.75rem;
}

.unpublished-card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.unpublished-card-label span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Shared project card (home + projects list) ── */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 860px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.18s;
}

.project-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--bg-placeholder);
}

.project-card-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-placeholder);
    font-size: 0.85rem;
}

.project-card-body {
    padding: 1rem 1.1rem;
}

.project-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.project-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Editor action buttons ── */

.btn-editor {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: var(--brand-darkest);
    color: #fff;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-editor:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-editor--outline {
    background: var(--bg-surface);
    color: var(--text-body);
    border: 1.5px solid var(--text-body);
    font-weight: 400;
}

.btn-editor--outline:hover {
    background: var(--bg-hover);
    color: var(--text-body);
}

.btn-editor--danger {
    background: #c0392b;
    color: #fff;
    border: 1.5px solid #c0392b;
}

.btn-editor--danger:hover {
    background: #a93226;
    color: #fff;
    border-color: #a93226;
}

.btn-editor--warning {
    background: var(--bg-surface);
    color: #e67e22;
    border: 1.5px solid #e67e22;
}

.btn-editor--warning:hover {
    background: #e67e22;
    color: #fff;
}

/* Primary submit button — used on all forms */
.btn-primary {
    padding: 0.6rem 1.4rem;
    background: var(--brand-darkest);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

/* Form input focus style */
.field-input-text:focus {
    border-color: var(--brand-blue) !important;
}

/* Page title — single source of truth for h1 font on every page */
.page-title {
    font-size: 2rem;
    font-weight: 400;
    min-width: 0;
    overflow-wrap: break-word;
}

/* ── Markdown content ── */

.md-content hr {
    margin: 2.5rem 0;
    border: 0px;
    border-bottom: 1px solid var(--sep-md);
}

.md-content h1 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0.5rem 0 0.2rem;
}

.md-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
}

.md-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
}

.md-content p {
    margin-bottom: 1rem;
}

.md-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.md-content a:hover {
    color: var(--brand-blue);
}

.md-content ul,
.md-content ol {
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}

.md-content li {
    margin-bottom: 0.25rem;
}

.md-content strong {
    font-weight: 700;
}

.md-content em {
    font-style: italic;
}

.md-content blockquote {
    border-left: 3px solid var(--brand-blue);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-blockquote);
    font-style: italic;
}

.md-content code {
    background: var(--bg-subtle);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: ui-monospace, monospace;
}

.md-content pre {
    background: var(--bg-subtle);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.md-content pre code {
    background: none;
    padding: 0;
}

.md-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.95em;
}

.md-content th,
.md-content td {
    border: 1px solid var(--border-dim);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.md-content th {
    background: var(--bg-hover);
    font-weight: 700;
}

.md-content tr:hover {
    background: var(--bg-hover);
}

.md-headless-table thead {
    display: none;
}

.md-headless-table table {
    width: auto;
}

/* ── Toast notifications ── */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
}

.toast {
    min-width: 300px;
    padding: 1rem 1.4rem;
    background: var(--toast-bg);
    color: var(--toast-text);
    border: 1px solid var(--toast-border);
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(8px);
    animation: toast-in 0.25s ease forwards;
}

.toast.toast-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}

/* ── Cookie consent ── */

.form-contents { display: contents; }

.cookie-consent {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem;
    z-index: 10000;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-body);
}
.cookie-text { margin: 0 0 1rem; }
.cookie-link {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-accept {
    padding: 0.5rem 1.5rem;
    background: var(--brand-darkest);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

/* ── Unpublished banner (detail pages) ── */

.unpublished-banner {
    background: var(--unpublished-bg);
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unpublished-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

.unpublished-banner span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--unpublished-text);
}

/* ── Delete modal ── */

.delete-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.delete-modal.open {
    display: flex;
}

.delete-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.delete-modal-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.delete-modal-image {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.delete-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-heading);
}

.delete-modal-name {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.35;
}

.delete-modal-warning {
    font-size: 0.88rem;
    color: #c0392b;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.delete-modal-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.delete-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.delete-modal-actions form {
    display: contents;
}

/* ── Pagination (shared news + projects) ── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--brand-dark);
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: background 0.15s, border-color 0.15s;
}

.page-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-hover);
}

.page-btn.active {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
    font-weight: 600;
    pointer-events: none;
}

.page-btn.disabled {
    color: var(--text-faint);
    border-color: var(--border-faint);
    pointer-events: none;
}

.page-btn svg { width: 16px; height: 16px; }

.page-ellipsis {
    color: var(--text-faint);
    font-size: 0.9rem;
    padding: 0 0.2rem;
    user-select: none;
}

/* Per-page selector (shared news + projects) */

.per-page-label {
    font-size: 0.9rem;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.per-page-select {
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    background: var(--bg-surface);
    cursor: pointer;
    color: var(--brand-darkest);
}

/* ── Password change help text ── */

.field-help ul { margin: 0; padding-left: 1.25rem; }
.field-help li { margin-bottom: 0.1rem; }

/* ==========================================================================
   Page-specific styles
   ========================================================================== */

/* ── News list page ── */

.news-page {
    max-width: var(--max-width-page);
    margin: var(--gap-header) auto;
    padding: 0 var(--padding-page);
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.news-toolbar .page-title {
    white-space: nowrap;
    margin-right: 2rem;
}

.news-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-empty {
    color: var(--text-muted);
    font-size: 1rem;
}

.vDivider {
    width: 100%;
    height: 1px;
    margin: 10px auto;
    background: var(--bg-body);
    border-bottom: 1px solid var(--sep-light);
}

/* ── News detail page ── */

.news-detail {
    max-width: var(--max-width-page);
    margin: var(--gap-header) auto;
    padding: 0 var(--padding-page) 4rem;
}

/* Shared detail toolbar: back link + editor buttons */
.detail-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.detail-toolbar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.news-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

.news-detail-back:hover {
    color: var(--brand-dark);
}

.news-detail-date {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.news-detail h1 {
    line-height: 1.25;
    margin-bottom: 1.75rem;
}

.news-detail-body {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-heading);
    overflow: hidden; /* contain floated image */
}

/* Portrait / square — floats left, text wraps around */
.news-detail-image {
    float: left;
    width: 480px;
    max-width: 50%;
    margin: 0.25rem 2rem 1rem 0;
    border-radius: 7px;
    display: block;
}

/* Landscape — full width above text */
.news-detail-image.is-wide {
    float: none;
    width: 100%;
    max-width: 100%;
    max-height: 520px;
    object-fit: cover;
    margin: 0 0 1.75rem 0;
}

/* Extra images — masonry grid */
.news-detail-gallery {
    clear: both;
    margin-top: 2.5rem;
}

.news-detail-gallery-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 0.9rem;
}

.news-detail-masonry {
    column-count: 3;
    column-gap: 0.65rem;
}

@media (max-width: 520px) {
    .news-detail-masonry {
        column-count: 2;
    }
}

.news-detail-masonry img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 0.65rem;
    break-inside: avoid;
}

/* Clickable images */
.news-detail-image,
.news-detail-masonry img {
    cursor: zoom-in;
}

/* News detail lightbox */
.news-detail-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.news-detail-lightbox.open {
    display: flex;
}

.news-detail-lightbox .lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.news-detail-lightbox .lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    user-select: none;
    touch-action: manipulation;
}

.news-detail-lightbox .lightbox-btn svg { width: 28px; height: 28px; }

.news-detail-lightbox .lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.news-detail-lightbox .lightbox-prev { left: 1.25rem; }
.news-detail-lightbox .lightbox-next { right: 1.25rem; }

.news-detail-lightbox .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s;
    touch-action: manipulation;
}

.news-detail-lightbox .lightbox-close svg { width: 28px; height: 28px; }

.news-detail-lightbox .lightbox-close:hover { color: #fff; }

.news-detail-lightbox .lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    user-select: none;
}

/* ── Projects list page ── */

.projects-page {
    max-width: var(--max-width-page);
    margin: var(--gap-header) auto;
    padding: 0 var(--padding-page);
}

.projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.projects-toolbar .page-title {
    white-space: nowrap;
    margin-right: 2rem;
}

.projects-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.projects-empty {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ── Project detail page ── */

.project-layout {
    max-width: var(--max-width-page);
    margin: 1.75rem auto 3rem;
    padding: 0 var(--padding-page);
    overflow: hidden; /* contain floated gallery */
}

/* Gallery — left column (floated) */
.project-gallery {
    float: left;
    width: 55%;
    margin-right: 3rem;
    margin-bottom: 1rem;
}

/* Info — flows beside gallery, then full width below */
.project-info {
}

.project-info h1 {
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.project-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

.project-back:hover {
    color: var(--brand-dark);
}

/* Mobile: gallery full-width above text */
@media (max-width: 768px) {
    .project-gallery {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

/* ── Stores page ── */

.stores-page {
    max-width: var(--max-width-medium);
    margin: var(--gap-header) auto 3rem;
    padding: 0 var(--padding-page);
}

.stores-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.stores-header h1 {
    margin: 0;
}

.stores-header > .btn-editor {
    margin-left: auto;
}

.store-name > .btn-editor {
    margin-left: auto;
}

.store-entry {
    margin-bottom: 8rem;
    overflow: hidden;
}

.store-entry + .store-entry {
    padding-top: 8rem;
    border-top: 1px solid var(--sep-dark);
}

.store-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.store-layout {
    display: flex;
    gap: 3rem;
}

.store-hero-img {
    flex: 0 0 650px;
    max-width: 650px;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
}

.store-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-info {
    flex: 1;
    min-width: 0;
}

.store-city {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.4rem;
}

.store-address {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.store-description {
    margin-bottom: 1.75rem;
}

.store-hours {
    margin-bottom: 1.75rem;
}

.store-hours-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.store-contacts-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.75rem;
}

.store-contacts-list li {
    margin-bottom: 0.85rem;
}

.store-contacts-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-darkest);
    text-decoration: none;
    transition: color 0.15s;
}

.store-contacts-list a:hover {
    color: var(--brand-blue);
}

.store-contacts-list .contact-icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.store-gallery-full {
    margin-top: 3rem;
}

.stores-empty {
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 1060px) {
    .store-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    .store-hero-img {
        flex: none;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .store-entry {
        margin-bottom: 3rem;
    }
    .store-entry + .store-entry {
        padding-top: 3rem;
    }
    .store-name {
        font-size: 2rem;
    }
}

/* ── Home page ── */

.home-page {
    max-width: var(--max-width-page);
    margin: var(--gap-header) auto;
    padding: 0 var(--padding-page);
}

/* Section header */
.home-section {
    margin-bottom: 4rem;
}

.home-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--sep-medium);
    padding-bottom: 0.75rem;
}

.home-section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.home-section-all {
    font-size: 0.9rem;
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    margin-left: auto;
}

.home-section-all:hover {
    color: var(--brand-dark);
}

/* News list */
.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.home-empty {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Intro text */
.home-intro {
    margin-bottom: 6rem;
    position: relative;
}

.home-intro-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

@media (max-width: 600px) {
    .home-intro-header {
        position: static;
        text-align: right;
        margin-top: 1rem;
    }
}

/* ── About page ── */

.about-container {
    position: relative;
}

.about-edit-btn {
    position: absolute;
    top: 0;
    right: 2rem;
    z-index: 10;
}

/* ── Cookie policy page ── */

.cookie-container h1 {
    margin-bottom: 0.5rem;
}

.cookie-container .effective-date {
    color: var(--text-blockquote);
    margin-bottom: 2rem;
}

.cookie-container h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.cookie-container h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.cookie-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-top: 1rem;
}

.cookie-container li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 0.25rem;
}

.cookie-container ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.cookie-container hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2rem 0;
}

.cookie-container .privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cookie-container .privacy-table th,
.cookie-container .privacy-table td {
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
    text-align: left;
    vertical-align: top;
}

.cookie-container .privacy-table th {
    width: 30%;
    font-weight: 700;
    background: var(--bg-card);
}

/* ── Footer ── */

.site-footer {
    flex-shrink: 0;
    background: var(--brand-darkest);
    color: #9aa0b0;
    font-size: 0.85rem;
    padding: 2rem var(--padding-page);
    box-shadow: 0 50vh 0 50vh var(--brand-darkest);
}

.footer-inner {
    max-width: var(--max-width-medium);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}

.footer-contact a {
    color: #9aa0b0;
    transition: color 0.15s;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.footer-links a {
    color: #9aa0b0;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #fff;
}

[data-theme="dark"] .site-footer {
    background: var(--bg-body);
    box-shadow: 0 50vh 0 50vh var(--bg-body);
    border-top: 1px solid var(--border-light);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
