/*
Theme Name: HairMeCut Dark Editorial
Theme URI: https://www.hairmecut.com/
Author: HairMeCut Editorial Team
Author URI: https://www.hairmecut.com/
Description: Original sleek dark hairstyle inspiration gallery and editorial magazine for HairMeCut with full search engine and schema optimization.
Version: 4.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hairmecut-dark
*/

:root {
    --bg: #101316;
    --panel: #181d22;
    --panel-2: #20262d;
    --panel-3: #283038;
    --ink: #f5f7fb;
    --muted: #9ca8b6;
    --line: #303842;
    --accent: #8cff2f;
    --cyan: #55d7ff;
    --warm: #ffb86b;
    --white: #fff;
    --shadow: 0 18px 50px rgba(0,0,0,.38);
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --serif: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
}

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

#cookie-notice, .cookie-notice-container { display: none !important; }

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 19, 22, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.topline {
    display: grid;
    grid-template-columns: 260px minmax(260px, 620px);
    gap: 28px;
    align-items: center;
    width: min(1280px, calc(100% - 42px));
    margin: auto;
    padding: 16px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #081014;
    font-weight: 900;
    letter-spacing: -.08em;
    box-shadow: 0 0 30px rgba(140, 255, 47, .22);
}
.brand-mark.small {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.brand strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--white);
}
.brand small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.header-search {
    display: flex;
    height: 46px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    padding: 0 18px;
}
.header-search input::placeholder { color: #6f7b88; }
.header-search button {
    border: 0;
    background: var(--white);
    color: #101316;
    font-weight: 800;
    padding: 0 22px;
    cursor: pointer;
    transition: background .2s ease;
}
.header-search button:hover {
    background: var(--accent);
}
.topic-nav {
    display: flex;
    gap: 10px;
    width: min(1280px, calc(100% - 42px));
    margin: 0 auto;
    padding: 0 0 14px;
    overflow: auto;
    scrollbar-width: none;
}
.topic-nav::-webkit-scrollbar { display: none; }
.topic-nav a, .mode-strip a, .tag-cloud a, .footer-tags a {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    color: #d8dee6;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 750;
    transition: all .2s ease;
}
.topic-nav a:hover, .mode-strip a:hover, .tag-cloud a:hover, .footer-tags a:hover {
    border-color: rgba(140, 255, 47, .65);
    color: var(--accent);
    background: rgba(140, 255, 47, .06);
}

.site-main { min-height: 72vh; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.eyebrow:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

/* Homepage Topic Lab Hero */
.topic-lab {
    width: min(1280px, calc(100% - 42px));
    margin: 0 auto;
    padding: 34px 0 22px;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(300px, .95fr) 310px;
    gap: 18px;
    align-items: stretch;
}
.topic-copy, .topic-feature, .topic-signal {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(32, 38, 45, .85), rgba(17, 21, 25, .92));
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.topic-copy {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
}
.topic-copy h1 {
    font-size: clamp(34px, 4.8vw, 68px);
    line-height: .95;
    letter-spacing: -.065em;
    margin: 14px 0 16px;
    max-width: 760px;
    color: var(--white);
}
.topic-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}
.topic-pills {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.topic-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: #11161b;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 850;
    color: var(--ink);
}
.topic-pills span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #071014;
    font-size: 11px;
}
.topic-feature {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 360px;
    border-radius: 26px;
}
.topic-feature:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(5, 8, 10, .95));
}
.topic-feature-img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform .5s ease;
}
.topic-feature:hover .topic-feature-img {
    transform: scale(1.035);
}
.topic-feature strong {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--white);
}
.topic-signal {
    padding: 22px;
    overflow: hidden;
}
.topic-signal a {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    color: #dbe5ee;
    font-weight: 750;
    font-size: 14px;
    line-height: 1.35;
    transition: color .2s ease;
}
.topic-signal a:hover {
    color: var(--accent);
}

.mode-strip {
    width: min(1280px, calc(100% - 42px));
    margin: 0 auto 24px;
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.mode-strip::-webkit-scrollbar { display: none; }

/* Story Cards & Pin Grid */
.image-board, .related-zone {
    width: min(1280px, calc(100% - 42px));
    margin: 0 auto;
}
.pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    align-items: start;
}
.pin-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.story-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 430px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(85, 215, 255, .5);
    box-shadow: var(--shadow);
}
.story-image {
    position: relative;
    display: block;
    background: #090b0d;
    overflow: hidden;
}
.story-image img {
    width: 100%;
    height: 270px;
    min-height: 270px;
    max-height: 270px;
    object-fit: cover;
    transition: transform .45s ease, filter .45s ease;
}
.story-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.08);
}
.story-copy {
    padding: 14px 14px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.story-copy h3 {
    font-size: 15px;
    line-height: 1.28;
    letter-spacing: -.02em;
    margin: 8px 0 12px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    margin-top: auto;
}
.card-meta span {
    border: 1px solid var(--line);
    background: #14181d;
    border-radius: 999px;
    padding: 4px 8px;
}

/* Single Viewer Section (Original Dark Viewer) */
.viewer {
    display: grid;
    grid-template-columns: minmax(620px, 1fr) 330px 268px;
    min-height: calc(100vh - 104px);
}
.viewer-stage {
    padding: 18px 0 18px 18px;
    min-width: 0;
}
.viewer-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 16px;
}
.viewer-toolbar a {
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--panel);
    transition: border-color .2s;
}
.viewer-toolbar a:hover {
    border-color: var(--accent);
}
.image-orbit {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}
.image-thumb-strip {
    display: grid;
    gap: 10px;
    align-content: start;
    max-height: calc(100vh - 168px);
    overflow: auto;
    scrollbar-width: none;
    padding: 4px 0;
}
.image-thumb-strip::-webkit-scrollbar { display: none; }
.thumb-peek {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #090d11;
    opacity: .72;
    transition: .2s;
    cursor: zoom-in;
}
.thumb-peek:hover {
    opacity: 1;
    border-color: var(--accent);
    transform: translateX(3px);
}
.image-thumb-strip img {
    width: 100%;
    height: 118px;
    object-fit: cover;
}
.image-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 168px);
    margin: 0;
    background: radial-gradient(circle at top left, rgba(85,215,255,.14), transparent 34%), linear-gradient(135deg, rgba(140,255,47,.05), transparent 24%), #090b0d;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.viewer-image {
    max-height: calc(100vh - 168px);
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.viewer-panel {
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, #1c2229, #12161a);
    min-width: 0;
}
.panel-scroll {
    position: sticky;
    top: 105px;
    max-height: calc(100vh - 105px);
    overflow: auto;
    padding: 28px;
}
.viewer-panel h1 {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.045em;
    margin: 14px 0 14px;
    color: var(--white);
}
.source-line {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.source-line a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 22px 0;
}
.action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #11161b;
    color: #fff;
    font-weight: 850;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}
.action.primary {
    grid-column: 1 / 3;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #081014;
    border: 0;
}
.action.primary:hover {
    box-shadow: 0 0 24px rgba(140,255,47,.35);
}
.action.upscale, .action.upscale-ready {
    grid-column: 1 / 3;
    border-color: rgba(255, 184, 107, .55);
    background: linear-gradient(135deg, rgba(255, 184, 107, .18), rgba(85, 215, 255, .08));
    color: #ffd6a8;
}
.action:hover {
    border-color: var(--cyan);
}
.meta-list {
    margin: 0;
    border-top: 1px solid var(--line);
}
.meta-list div {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}
.meta-list dt {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.meta-list dd {
    margin: 0;
    color: #eef3f8;
    overflow-wrap: anywhere;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.related-rail {
    border-left: 1px solid var(--line);
    background: #0c1014;
    padding: 22px 14px;
    min-width: 0;
}
.related-rail-head {
    position: sticky;
    top: 105px;
    z-index: 2;
    background: linear-gradient(#0c1014 75%, rgba(12, 16, 20, 0));
    padding-bottom: 14px;
}
.related-rail-head h2 {
    margin: 8px 0 0;
    font-size: 22px;
    letter-spacing: -.04em;
    color: var(--white);
}
.related-rail-grid {
    position: sticky;
    top: 180px;
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 195px);
    overflow: auto;
    padding-right: 4px;
}
.related-rail .story-card {
    margin: 0;
    border-radius: 14px;
    height: 224px;
    min-height: 224px;
}
.related-rail .story-image img {
    height: 132px;
    min-height: 132px;
    max-height: 132px;
}
.related-rail .story-copy { padding: 10px; }
.related-rail .story-copy h3 {
    font-size: 12px;
    line-height: 1.25;
    margin: 6px 0;
    -webkit-line-clamp: 2;
}

/* =========================================================================
   EDITORIAL ARTICLE BODY, LOOKBOOK & AUTHOR BOX (IN DARK THEME)
   ========================================================================= */
.viewer-article-wrap {
    width: min(1200px, calc(100% - 42px));
    margin: 48px auto;
}
.article-editorial-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    margin-bottom: 40px;
}
.article-editorial-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    color: var(--white);
    letter-spacing: -.03em;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.article-editorial-content h3 {
    font-size: clamp(19px, 2.2vw, 24px);
    color: var(--cyan);
    margin: 28px 0 12px;
}
.article-editorial-content p {
    color: #e4e9f0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 22px;
}
.article-editorial-content ul, .article-editorial-content ol {
    color: #dbe2ea;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    padding-left: 28px;
}
.article-editorial-content li { margin-bottom: 8px; }
.article-editorial-content blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    background: rgba(140, 255, 47, .06);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
    font-style: italic;
    color: #e6f7e2;
}

/* Key Points Box */
.key-points-dark {
    background: linear-gradient(135deg, rgba(85,215,255,.08), rgba(24,29,34,.95));
    border: 1px solid rgba(85,215,255,.3);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 34px;
}
.key-points-dark h2 {
    color: var(--cyan);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
    border: 0;
    padding: 0;
}
.key-points-dark ul {
    margin: 0;
    padding-left: 20px;
    color: #dbe4ee;
}
.key-points-dark li { margin-bottom: 8px; font-size: 15px; }

/* In-Content Contextual Internal Linking Silo */
.interiorlens-contextual-silo, .hairmecut-contextual-silo {
    margin: 40px 0 !important;
    padding: 22px 26px !important;
    background: #14191f !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: 0 16px 16px 0 !important;
    border-top: 1px solid var(--line) !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}
.hairmecut-contextual-silo p, .interiorlens-contextual-silo p {
    color: var(--accent) !important;
    font-weight: 800 !important;
}
.hairmecut-contextual-silo a, .interiorlens-contextual-silo a {
    color: var(--white) !important;
    transition: color .2s ease;
}
.hairmecut-contextual-silo a:hover, .interiorlens-contextual-silo a:hover {
    color: var(--cyan) !important;
}

/* Curated Lookbook Style Gallery (Dark Edition) */
.post-gallery-section {
    margin: 48px 0;
    padding: 34px 28px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 24px;
}
.gallery-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}
.gallery-section-header h2 {
    font-size: 26px;
    letter-spacing: -.03em;
    margin: 6px 0 8px;
    color: var(--white);
    border: 0;
    padding: 0;
}
.gallery-section-desc {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}
.gallery-counter-badge {
    background: #101418;
    border: 1px solid var(--line);
    color: #e5edf5;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}
.gallery-counter-badge span {
    color: var(--accent);
}
.magazine-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.magazine-gallery-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: all .22s ease;
}
.magazine-gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.magazine-gallery-item .thumb-media {
    position: relative;
    background: #080a0c;
    overflow: hidden;
}
.magazine-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s ease;
}
.magazine-gallery-item:hover img {
    transform: scale(1.04);
}
.gallery-frame-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(8,12,15,.78);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}
.gallery-zoom-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent);
    color: #081014;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 0 14px rgba(140,255,47,.4);
}
.gallery-caption-strip {
    display: block;
    padding: 14px 16px;
}
.gallery-caption-title {
    display: block;
    font-size: 14px;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 4px;
}
.gallery-caption-meta {
    font-size: 11px;
    color: var(--muted);
}

/* Author Box Otoritas E-E-A-T (Dark Edition) */
.author-box-dark {
    display: flex;
    gap: 26px;
    align-items: center;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    margin: 44px 0;
    box-shadow: 0 14px 44px rgba(0,0,0,.35);
}
.author-box-dark__avatar {
    flex-shrink: 0;
}
.author-box-dark__avatar img {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--line);
    box-shadow: 0 0 25px rgba(140, 255, 47, .2);
}
.author-box-dark__content {
    flex: 1;
    min-width: 0;
}
.author-box-dark__eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin: 0 0 4px;
}
.author-box-dark__name {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.03em;
    margin: 0 0 8px;
}
.author-badge-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #081014;
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: 0 0 16px rgba(140, 255, 47, .25);
}
.author-box-dark__bio {
    font-size: 14.5px;
    line-height: 1.7;
    color: #d6dfe8;
    margin: 0;
}

/* Footer Section */
.site-footer {
    border-top: 1px solid var(--line);
    background: radial-gradient(circle at 18% 0, rgba(140, 255, 47, .06), transparent 34%), #0b0e11;
    margin-top: 60px;
}
.footer-inner {
    width: min(1280px, calc(100% - 42px));
    margin: auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 34px;
    padding: 48px 0 36px;
}
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.footer-brand .brand-mark.small { margin: 0; }
.footer-inner h3 {
    margin: 0 0 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--white);
}
.footer-inner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 13.5px;
}
.footer-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-inner li {
    margin-bottom: 9px;
}
.footer-inner a {
    color: #cdd6e0;
    font-size: 13.5px;
    transition: color .2s;
}
.footer-inner a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 980px) {
    .viewer { grid-template-columns: 1fr; }
    .viewer-panel, .related-rail { border-left: 0; border-top: 1px solid var(--line); }
    .panel-scroll, .related-rail-grid { position: static; max-height: none; }
    .topic-lab { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .topline { grid-template-columns: 1fr; }
    .author-box-dark { flex-direction: column; text-align: center; }
}
