/* ═══════════════════════════════════════════════════════
   Fædrelandsvennen – Main Stylesheet
   Color values come from CSS custom properties set in
   customizer.php (fvn_customizer_inline_css).
   Dark mode: body.dark-mode class (toggled by JS) and
   @media (prefers-color-scheme: dark) auto-fallback.
   ═══════════════════════════════════════════════════════ */

/* ── Fallback variable values (customizer overrides these) ── */
:root {
    --color-bg:         #f8f9fa;
    --color-surface:    #a83333;
    --color-border:     #e0e0e0;
    --color-text:       #111111;
    --color-text-muted: #666666;
    --color-accent:     #034180;
    --color-accent-eco: #00875a;
    --color-brand:    #a83333;

    --dark-bg:          #0f0f10;
    --dark-surface:     #1a1a1d;
    --dark-border:      #2c2c30;
    --dark-text:        #e8e8ea;
    --dark-text-muted:  #8a8a90;
    --dark-accent:      #034180;
    --bg-button:        #034180;
    --dark-accent-eco:  #34c78a;
    --dark-brand:          #0f0f10;

    --featured-txt-color:#f1f1f1;
    --inverted-txt-color:#f8f9fa;      
    --bg-footer-color:   #034180;
    --text-muted-footer-color: #f1f1f1;
    
}

/* ── Active palette (light by default) ── */
:root {
    --bg:          var(--color-bg);
    --surface:     var(--color-surface);
    --border:      var(--color-border);
    --text:        var(--color-text);
    --text-muted:  var(--color-text-muted);
    --accent:      var(--color-accent);
    --accent-eco:  var(--color-accent-eco);
    --shadow:      rgba(0,0,0,0.10);
    --featured-bg-color:  #0f0f10;
    --featured-txt-color: #f1f1f1;
    --color-links: #034180;

    --bg-footer-color:   #034180;
    --text-muted-footer: var(--text-muted-footer-color);
    --brand-color: var(--color-brand);
}

/* ── Switch active palette to dark ── */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:         var(--dark-bg);
        --surface:    var(--dark-surface);
        --border:     var(--dark-border);
        --text:       var(--dark-text);
        --text-muted: var(--dark-text-muted);
        --accent:     var(--dark-accent);
        --accent-eco: var(--dark-accent-eco);
        --shadow:     rgba(0,0,0,0.40);
        --featured-txt-color: #f1f1f1;
        --inverted-txt-color:#f8f9fa;
        --bg-footer:  var(--bg-footer-color);
        --text-muted-footer: var(--text-muted-footer-color);
        --brand-color: var(--dark-brand);
        --color-links: #fff;
        --color-links-hover:#ebebeb;
    }
}


body.dark-mode {
    --bg:         var(--dark-bg);
    --surface:    var(--dark-surface);
    --border:     var(--dark-border);
    --text:       var(--dark-text);
    --text-muted: var(--dark-text-muted);
    --accent:     var(--dark-accent);
    --accent-eco: var(--dark-accent-eco);
    --shadow:     rgba(0,0,0,0.40);
    --featured-txt-color: #f1f1f1;
    --inverted-txt-color:#181a1d;
    --bg-footer:  var(--bg-footer-color);
    --text-muted-footer: var(--text-muted-footer-color);
    --brand-color: var(--dark-brand);
    --color-links: #fff;
    --color-links-hover:#ebebeb;
}
/* Explicit light override (when user clicked the toggle back) */
body.light-mode {
    --bg:         var(--color-bg);
    --surface:    var(--color-surface);
    --border:     var(--color-border);
    --text:       var(--color-text);
    --text-muted: var(--color-text-muted);
    --accent:     var(--color-accent);
    --accent-eco: var(--color-accent-eco);
    --shadow:     rgba(0,0,0,0.10);
    --bg-footer:  var(--bg-footer-color);
    --text-muted-footer: var(--text-muted-footer-color);
    --brand-color: var(--color-brand);
    --color-links: #034180;
    --color-links-hover:#2630b9;
}


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

/* ─────────────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────────────── */


@font-face {
  font-family: logoFont;
  src: url(../fonts/Chentenario.otf);
}

body {
    background-color: var(--bg);
    color: var(--text);
    padding-top: 55px;
    font-family: Georgia, serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color .25s, color .25s;
}

*{ border:0px solid red}

html,
body{
    overflow-x: hidden;
}
.nav{max-width:65%}

body.menu-open { overflow: hidden; }

a{ color:var(--color-links); text-decoration: none;}
a:hover{ color:var(--color-links-hover); text-decoration: none;}

.site-wrap{max-width:1000px; margin:0 auto;width:100%}
.site-wrap.single{padding-top: -20px !important; padding:0 8px 0 2px}

/* ─────────────────────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────────────────────── */
.skip-link, .screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 6px;
    top: 74px;
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    overflow: visible;
}


img{border-radius:0px}
/* ─────────────────────────────────────────────────────────
   SITE HEADER
───────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 1100;
    transition: background .25s, border-color .25s;
    box-shadow: 0 8px 12px 1px rgba(42,42,42,.04),0 3px 16px 2px rgba(42,42,42,.08),0 5px 10px -3px rgba(42,42,42,.08);
}

.header-container {
    max-width: 1000px;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
   
}
.header-container a{color: var(--brand-color); font-family:Georgia, 'Times New Roman', Times, serif}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -.5px;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;*/
    font-family:logoFont !important;
    text-transform: uppercase;
}
.header-links2{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:12px;
    list-style:none;
    padding-bottom:10px;
    margin-bottom:10px;
    border-bottom: 1px solid var(--border);
}
.header-links2 li{
    flex:0 0 auto;
}

.header-links2 a{
    display:inline-block;
    font-size: 12px !important;
    padding:5px 8px;
    background:#007bff;
    color:#fff !important;
    text-decoration:none;
    border-radius:4px;
    font-weight:500;
    transition:0.2s ease;
}

.header-links2 a:hover{
    background:#0056b3;
    transform:translateY(-1px);
    color:#fff !important;
}


.header-links {
    display: none;
    list-style: none;
    gap: 20px;
    margin-left: 32px;
    
}
.header-links2 a,
.header-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: normal;
    font-size: 16px;
    transition: color .2s;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.right-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Shared button base */
.right-actions button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background .2s;
}


/* Dark mode toggle */
#darkModeToggle {
    background: var(--border);
    border: 1.5px solid var(--border);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
    cursor: pointer;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}

#darkModeToggle:hover {
    background: var(--text-muted);
    border-color: var(--text-muted);
    color: var(--surface);
}

/* Sun/moon icon inside the button */
#darkModeToggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Active dark mode state */
body.dark-mode #darkModeToggle {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode #darkModeToggle:hover {
    background: #475569;
}

/* Focus mode toggle (editors only) */
#focusModeToggle {
    background: transparent;
    border: 1px solid var(--border);
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
}

#focusModeToggle:hover    { background: var(--border); }
body.focus-mode #focusModeToggle { background: var(--accent); color: #fff; border-color: var(--accent); }


/* Menu button */

.menu-btn:hover { filter: brightness(.95); }

/* ─────────────────────────────────────────────────────────
   MEGA MENU
───────────────────────────────────────────────────────── */
.mega-menu-panel {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 40px);
    background:var(--surface);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.menu-btn[aria-expanded="true"] ~ .megaMenu,
.megaMenu.is-open { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-panel[hidden]  { display: none; }

.menu-container { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }

.search-wrapper { display: flex; width: 100%; margin-bottom: 30px; }

.search-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--border);
    color: var(--text);
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
}

.search-submit {
    background: var(--bg-button);
    color: #fff;
    border: none;
    padding: 0 28px;
    font-weight: 700;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-family: inherit;
    transition: filter .2s;
}

.search-submit:hover { filter: brightness(1.1); }

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
}

.category-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.category-banner img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.section-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    margin: 0;
}

.section-title a { color: var(--text); text-decoration: none; }
.section-title a:hover { color: var(--accent); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; }

.tag-list a {
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    transition: color .15s;
}

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


/* ─────────────────────────────────────────────────────────
   1. Container Button (Scaled Down Size)
───────────────────────────────────────────────────────── */
.menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    width: 45px;
    height: 20px;
    padding: 0;
    position: relative;
    padding:0 10px;
}

/* 2. Hide the "Menu" text visually, keep for accessibility */
#toggleText {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 3. Base styles for the 3 bars */
.menu-btn::before,
#toggleIcon,
.menu-btn::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: left center;
}

#toggleIcon {
    font-size: 0;
    color: transparent;
}

.menu-btn[aria-expanded="true"]::before {
    transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] #toggleIcon {
    opacity: 0;
    transform: scale(0);
}

.menu-btn[aria-expanded="true"]::after {
    transform: rotate(-45deg);
}


/* ─────────────────────────────────────────────────────────
   CARD GRIDS
───────────────────────────────────────────────────────── */

#main-content{ margin-bottom: 20px;}
.card-grid-container {
    margin: 10px auto 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 580px;
    gap: 10px;
    padding-bottom: 20px;
    position: relative;
}

.card-grid-container.big-left { grid-template-columns: 2fr 1fr; }

.left-column { display: grid; grid-template-rows: 1fr 1fr; gap: 15px; }

.responsive-card {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background: var(--surface);
    transition: background .25s;
}

/* ── Shared image wrapper ── */
.card-image-wrapper,
.three-col-card__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

/* All card images use focal point via CSS custom property */
.card-image-wrapper img,
.three-col-card__image img,
.horizontal-card .card-image-wrapper img,
.video-card > img,
.related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus-x, 50%) var(--focus-y, 50%);
    display: block;
    transition: transform .3s ease, object-position .3s ease;
}

.card-text-wrapper {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.card-text-wrapper.big h2,
.card-text-wrapper.small h2 {
    line-height: .9;
    margin: 0;
    font-weight: bold;
    color: var(--text);
    text-align: left;
    padding: 15px 0;
}

.card-text-wrapper.big h2  { font-size: 3.4rem; }
.card-text-wrapper.small h2 { font-size: 1.7rem; }

.card-text-wrapper.big h2 a,
.card-text-wrapper.small h2 a { color: inherit; text-decoration: none; }
.card-text-wrapper.big h2 a:hover,
.card-text-wrapper.small h2 a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   HORIZONTAL CARD
───────────────────────────────────────────────────────── */
.horizontal-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
    background: var(--surface);
    margin: 20px auto 0;
    max-width: 1000px;
    height: 180px;
    transition: background .25s;
}

.horizontal-card .card-image-wrapper { overflow: hidden; min-width: 0; min-height: 0; }

.horizontal-card .card-text-wrapper-hor {
    padding: 0 .8rem;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.horizontal-card .card-text-wrapper-hor h2 {
    margin: 0;
    color: var(--text);
    width: 100%;
    height: 140px;
    font-weight: bold;
}

.horizontal-card .card-text-wrapper-hor h2 a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────────────────────────
   THREE-COLUMN GRID
───────────────────────────────────────────────────────── */
.three-col-row {
    padding-top: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.three-col-row__grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    grid-auto-rows: 300px;
    gap: 20px 10px;
}

.three-col-row__grid.two {
    padding-top: 0;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.three-col-card {
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.three-col-card__title {
    margin: 0;
    padding: 8px 0 25px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    position: relative;
}

.three-col-card__title a { text-decoration: none; }
.scroll-box-iframe{
    width: 100%;
    max-width: 100%;
    height: 60vh;        /* responsive height */
    overflow-y: auto;    /* vertical scroll */
    overflow-x: hidden;
    padding:0;
    box-sizing: border-box;
}


.video-row { width: 100%; max-width: 1000px; margin: 20px auto; }

/* ─────────────────────────────────────────────────────────
   VIDEO ROW
───────────────────────────────────────────────────────── *
.video-row { width: 100%; max-width: 1000px; margin: 20px auto; }

.video-row__title {
    font-family: sans-serif;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 12px;
    color: var(--text);
}

.video-row__inner { position: relative; }

.video-row__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px var(--shadow);
    z-index: 10;
    color: var(--text);
    pointer-events: auto;
}

.video-row__arrow--left  { left: 8px; }
.video-row__arrow--right { right: 8px; }
.video-row__arrow:hover  { background: var(--bg); }

.video-row__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    z-index: 0;
}

.video-row__track::-webkit-scrollbar { display: none; }

.video-card {
    position: relative;
    flex: 0 0 240px;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
}

.video-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus-x, 50%) var(--focus-y, 50%);
    display: block;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .8rem;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-card__sub   { margin: 0; font-family: sans-serif; font-size: .75rem; color: rgba(255,255,255,.85); }
.video-card__title { margin: 0; font-family: sans-serif; font-size: .95rem; font-weight: 700; color: #fff; }
*/




/* ─────────────────────────────────────────────────────────
   HERO BANNER
───────────────────────────────────────────────────────── */
.hero-banner {
  max-width: 1000px;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 5vw, 2.5rem);
  margin: 0 auto;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* Decorative circle — top right */
.hero-banner::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 44px solid rgba(255,255,255,0.09);
  pointer-events: none;
}

.hero-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
}

.hero-banner__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.hero-banner__desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .93rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  margin: 0;
}

.hero-banner__btn {
  display: inline-block;
  background: rgba(255,255,255,.95);
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 6px;
  transition: opacity .2s;
}

.hero-banner__btn:hover { opacity: .85; }

@media (max-width: 480px) {
  .hero-banner__btn { align-self: stretch; text-align: center; }
}









/* ─────────────────────────────────────────────────────────
   ROW LABEL & DIVIDER
───────────────────────────────────────────────────────── */
.row-divider { max-width: 1000px; margin: 5px auto 0 auto; border: none; border-top: 1px solid var(--border); }

.row-label { max-width: 1000px; margin: 0 auto; padding: 20px 0 0 0 }


.row-label__title {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.0rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 0;
}

.row-label__title a { color: inherit; text-decoration: none; }
.row-label__title a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   RELATED POSTS
───────────────────────────────────────────────────────── */
.related-posts {
    max-width: 1000px;
    margin: 10px auto 20px auto;
    padding: 0;
    border-top: 1px solid var(--border);
}

.related-posts__header { padding: 18px 0 14px; }

.related-posts__title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin: 0;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card { display: flex; flex-direction: column; overflow: hidden; }

.related-card__img-link { display: block; overflow: hidden; aspect-ratio: 3 / 2; }

.related-card__img { width: 100%; height: 100%; overflow: hidden; }

.related-card__img img { transition: transform .3s; }

.related-card:hover .related-card__img img { transform: scale(1.04); }

.related-card__img-placeholder { width: 100%; height: 100%; background: var(--border); }

.related-card__body { padding: 10px 0 0; }

.related-card__cat {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 5px;
}

.related-card__cat:hover { text-decoration: underline; }

.related-card__headline {
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--text);
}

.related-card__headline a { color: inherit; text-decoration: none; }
.related-card__headline a:hover { color: var(--accent); }

.related-card__date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    margin-top: auto;
    transition: background .25s;
}

/* ── Newsletter bar ── */
.footer-newsletter {
    background: var(--color-accent);
    padding: 22px 0;
}

.footer-newsletter__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-newsletter__inner p {
    color: rgba(255,255,255,.92);
    font-size: 14px;
    margin: 0;
    flex: 1;
    min-width: 180px;
}

.footer-newsletter__inner strong {
    color: #fff;
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.footer-nl-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    width:100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.footer-nl-input {
    padding: 10px 18px;
    border: none;
    background: rgba(255,255,255,.95);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #111;
    width: 100%;
    outline: none;
    -webkit-appearance: none;
}

.footer-nl-btn {
    padding: 10px 20px;
    color: #fff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    background: var(--bg-button);
}

.footer-nl-btn:hover { background: #f0f0f0; }

/* ── Footer main grid ── */
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 8px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap:5px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width:100%;
}

/* Brand column */
.footer-logo {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted-footer);
    line-height: 1.5;
    margin: 0 0 18px;
    max-width: 220px;
}

/* Social icons */
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    transition: background .2s, color .2s, border-color .2s;
}

.footer-social__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Navigation columns */
.footer-col__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #fff;
    margin: 0 0 14px;
}

.footer-col__list,
.footer-col__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col__list li a,
.footer-col__list a {
    color: var(--text-muted-footer);
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
}

.footer-col__list li a:hover,
.footer-col__list a:hover { color: var(--accent); }

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    color: var(--text-muted-footer);
}

.footer-bottom__copy { color: var(--text-muted-footer); }

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom__links a { color: var(--text-muted-footer); text-decoration: none; transition: color .2s; }
.footer-bottom__links a:hover { color: var(--accent); }
.footer-bottom__links span[aria-hidden] { color: var(--border); }

/* ─────────────────────────────────────────────────────────
   LEGACY COLOR MARKERS (from original HTML)
───────────────────────────────────────────────────────── */
.featured      { background-color: var(--featured-bg-color);}
.featured-text { padding-left: 15px; padding-right: 15px; background-color: var(--featured-bg-color);  color: var(--featured-txt-color) !important}

.featured-text-img,.featured{
    background-color: var(--featured-bg-color);
}
.featured-text-img-padding{padding:0 8px;color:#f1f1f1}

.featured-text a,
.featured a{color: var(--featured-txt-color) !important}

.featured .comment-bubble,
.featured-text  .comment-bubble{
  color:var(--inverted-txt-color) !important;}

/* ─────────────────────────────────────────────────────────
   FOCAL POINT OVERLAY (editor mode)
───────────────────────────────────────────────────────── */
.focus-click-zone {
    display: none;
    position: absolute;
    inset: 0;
    cursor: crosshair;
    z-index: 10;
    background: rgba(36,99,209,.07);
    border: 2px dashed rgba(36,99,209,.4);
}

.focus-crosshair {
    display: none;
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(36,99,209,.9);
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    transform: translate(-50%,-50%);
    cursor: grab;
    z-index: 20;
    pointer-events: auto;
}

.focus-crosshair::before,
.focus-crosshair::after { content: ''; position: absolute; background: #fff; border-radius: 2px; }
.focus-crosshair::before { width: 2px; height: 12px; top: 5px; left: 10px; }
.focus-crosshair::after  { width: 12px; height: 2px; top: 10px; left: 5px; }

.focus-label {
    display: none;
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(36,99,209,.9);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 25;
    text-transform: uppercase;
}

body.focus-mode .focus-click-zone,
body.focus-mode .focus-crosshair,
body.focus-mode .focus-label { display: block; }

/* Floating focus toolbar */
#focusToolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    white-space: nowrap;
}

body.focus-mode #focusToolbar { opacity: 1; pointer-events: auto; }

#focusToolbar button {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 5px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    transition: background .2s;
}

#focusToolbar button:hover { background: rgba(255,255,255,.28); }


/* ═══════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════ */

.single-main {
    max-width: 740px;
    margin: 1px auto 0 !important;
    padding: 0px 8px 0 8px;
}

/* ── Breadcrumb ── */
.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb__sep { color: var(--border); }

/* ── Category badge ── */
.single-cat-badge {
    margin: 0 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: none;
}

.single-cat-badge a {
    color: var(--accent);
    text-decoration: none;
}

.single-cat-badge a:hover { text-decoration: underline; }

/* ── Headline ── */
.single-headline {
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 18px;
}

/* ── Byline ── */
.single-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.single-byline strong { color: var(--text); }
.single-byline time   { color: var(--text-muted); }

/* ── Featured image ── */
.single-hero-figure { margin: 0 0 28px; }

.single-hero-img {
    width: 100%;
    height: 460px;
    overflow: hidden;
}

.single-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus-x, 50%) var(--focus-y, 50%);
    display: block;
    transition: object-position .3s;
}

.single-hero-caption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* ── Article body ── */
.entry-content {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.entry-content p      { margin: 0 0 1.4em; }
.entry-content h2     { font-size: 1.6rem; margin: 1.8em 0 .6em; color: var(--text); }
.entry-content h3     { font-size: 1.3rem; margin: 1.6em 0 .5em; color: var(--text); }
.entry-content h4     { font-size: 1.1rem; margin: 1.4em 0 .4em; color: var(--text); }
.entry-content ul,
.entry-content ol     { margin: 0 0 1.4em 1.6em; }
.entry-content li     { margin-bottom: .4em; }
.entry-content a      { color: var(--accent); }
.entry-content a:hover { text-decoration: none; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 14px 20px;
    border-left: 4px solid var(--accent);
    background: var(--border);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}
.entry-content blockquote p { margin: 0; }
.entry-content img    { max-width: 100%; height: auto; border-radius: 4px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}
.entry-content pre {
    background: var(--border);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: .9rem;
}
.entry-content code {
    background: var(--border);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .9em;
}
.entry-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* ── Tags ── */
.single-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.single-tags strong { color: var(--text-muted); margin-right: 4px; }

.single-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--border);
    color: var(--text);
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    transition: background .2s, color .2s;
}

.single-tag:hover {
    background: var(--accent);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════
   LIVE BADGE
   ═══════════════════════════════════════════════════════ */

@keyframes fvn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229,62,62,.6); }
    70%  { box-shadow: 0 0 0 8px rgba(229,62,62,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,62,62,0); }
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53e3e;
    flex-shrink: 0;
    animation: fvn-pulse 1.5s ease-in-out infinite;
}

/* On card image (top-left corner) */
.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #e53e3e;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 8px 3px 6px;
    border-radius: 3px;
    line-height: 1;
    pointer-events: none;
}

.live-badge .live-dot { width: 6px; height: 6px; background: #fff; }

/* Small variant for ticker */
.live-badge--small {
    position: static;
    display: inline-flex;
    font-size: 9px;
    padding: 2px 6px 2px 4px;
    margin-right: 4px;
    vertical-align: middle;
    border-radius: 2px;
}

/* Headline variant on single post */
.live-badge--headline {
    position: static;
    display: inline-flex;
    font-size: 11px;
    padding: 4px 10px 4px 8px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 4px;
}

/* ════════ COMMENT BUBBLE ════════ */
.comment-bubble {
  position: absolute; bottom: 6px; right: 0;
  background-color: var(--accent); color: var(--inverted-txt-color);
  font-size: 10px; font-weight: normal;
  min-width: 16px; height: 16px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
  font-family: var(--font-body);
  text-decoration: none; font-family: Arial, Helvetica, sans-serif;
}
.comment-bubble::after {
  content: ''; position: absolute; bottom: -5px; right: 0px;
  border-left: 5px solid transparent; border-right: 0px solid transparent;
  border-top: 5px solid var(--accent);
}


/* ═══════════════════════════════════════════════════════
   AD SLOTS
   ═══════════════════════════════════════════════════════ */

.ad-slot {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    text-align: center;
}

.ad-slot__label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.ad-slot__content { display: inline-block; max-width: 100%; }

.ad-slot__image-link { display: block; }

.ad-slot__content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0px;
}

/* ═══════════════════════════════════════════════════════
   PAGE TEMPLATE
   ═══════════════════════════════════════════════════════ */

.page-links {
    margin-top: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-links a {
    display: inline-block;
    padding: 4px 10px;
    background: var(--border);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: background .2s;
}

.page-links a:hover { background: var(--accent); color: #fff; }


/* ═══════════════════════════════════════════════════════
   COMMENTS — Twitter/X feed style
   ═══════════════════════════════════════════════════════ */

.comments-area{ width:100%; padding: 0 !important;}
.fvn-comments {
    max-width: 100%;
    margin: 10px auto 10px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fvn-comments__locked,
.fvn-comments__closed {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    padding: 16px 0;
}

.fvn-comments__header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.fvn-comments__count {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.fvn-comments__count strong { font-weight: 800; }

.fvn-comments__compose {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.fvn-comments__compose-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.fvn-comments__avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.fvn-comments__avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.fvn-comments__compose-form {
    flex: 1;
    min-width: 0;
}

.fvn-comments__compose #respond {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.fvn-comments__compose #reply-title,
.fvn-comments__compose .comment-reply-title {
    display: none;
}

.fvn-comments__textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color .2s;
    min-height: 56px;
    border-radius: 8px;
}

.fvn-comments__textarea:focus {
    border-bottom-color: var(--accent);
}

.fvn-comments__textarea::placeholder {
    color: var(--text-muted);
}

.fvn-comments__fields-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.fvn-comments__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.fvn-comments__required {
    color: var(--accent);
    margin-left: 2px;
}

.fvn-comments__input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.fvn-comments__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent);
}

.fvn-comments__submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    gap: 10px;
}

.fvn-comments__submit {
    padding: 8px 20px;
    background: var(--bg-button);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s;
    line-height: 1;
}

.fvn-comments__submit:hover { filter: brightness(1.1); }

#cancel-comment-reply-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

#cancel-comment-reply-link:hover { color: var(--text); }

.fvn-comments__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fvn-comments__item {
    margin: 0;
    padding: 0;
}

.fvn-comments__tweet {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

.fvn-comments__tweet:hover {
    background: color-mix(in srgb, var(--accent) 3%, transparent);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.fvn-comments__tweet-avatar {
    flex-shrink: 0;
    width: 40px;
}

.fvn-comments__tweet-body {
    flex: 1;
    min-width: 0;
}

.fvn-comments__tweet-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 4px;
}

.fvn-comments__tweet-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
}

.fvn-comments__tweet-name a {
    color: inherit;
    text-decoration: none;
}

.fvn-comments__tweet-name a:hover { text-decoration: underline; }

.fvn-comments__tweet-time {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.fvn-comments__tweet-time:hover { text-decoration: underline; }

.fvn-comments__edit a {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    margin-left: 4px;
}

.fvn-comments__pending {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 6px;
}

.fvn-comments__tweet-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.55;
}

.fvn-comments__tweet-text p {
    margin: 0 0 .6em;
}

.fvn-comments__tweet-text p:last-child { margin-bottom: 0; }

.fvn-comments__tweet-text a {
    color: var(--accent);
    text-decoration: none;
}

.fvn-comments__tweet-text a:hover { text-decoration: underline; }

.fvn-comments__tweet-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.fvn-comments__tweet-actions .comment-reply-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}

.fvn-comments__tweet-actions .comment-reply-link:hover {
    color: var(--accent);
}

.fvn-comments__nav .nav-links {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    font-size: 13px;
}

.fvn-comments__nav .nav-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.fvn-comments__nav .nav-links a:hover { text-decoration: underline; }

body.dark-mode .fvn-comments__tweet:hover {
    background: color-mix(in srgb, var(--dark-accent) 8%, transparent);
}

body.dark-mode .fvn-comments__input {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .fvn-comments__textarea {
    color: var(--dark-text);
    border-bottom-color: var(--dark-border);
}

body.dark-mode .fvn-comments__textarea:focus {
    border-bottom-color: var(--dark-accent);
}

body.dark-mode .fvn-comments__textarea::placeholder {
    color: var(--dark-text-muted);
}


.archive-main{max-width:1000px; padding:0; padding-top:0p; margin:0 auto}
.dscr-home{width:1px;height: 1px; display: none;}

h1.archive-title{padding-bottom:20px}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* ── min-width: 900px ── */
@media (min-width: 900px) {
    .single-main { max-width: 780px; }
    .single-hero-img { height: 520px; }
}

/* ── min-width: 700px ── */
@media (min-width: 700px) {
    .header-links { display: flex; }

    .menu-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .menu-section { border-bottom: none; padding-bottom: 0; }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }

    .footer-branding   { grid-row: auto; grid-column: 1; }
    .footer-col-center { grid-row: auto; grid-column: 2; }
    .footer-col-right  { grid-row: auto; grid-column: 3; }
    .footer-copyright  { grid-row: auto; grid-column: 1 / -1; }
}

/* ── max-width: 768px ── */
@media (max-width: 768px) {
    .header-container {
        padding-left:10px;
        padding-right:0;
    }
    .site-wrap.single{margin-top: -10px !important; padding:0 10px;}
    
    .archive-main{max-width:1000px; padding:0 8px; padding-top:0px; margin:0 auto}
    .footer-bottom{padding:10px 0}
    .footer-newsletter{padding: 10px 8px 20px 8px}
    .card-grid-container,
    .horizontal-card,
    .three-col-row {
        padding:0 8px; 
    }
    .three-col-card__title {
        padding: 8px 0 10px;
        font-size: 1.2rem;
        font-weight: 600;
        line-height: 1.3;
    }
    h1.archive-title{padding-bottom:20px}
}

/* ── max-width: 700px ── */
@media (max-width: 700px) {
    .card-grid-container,
    .card-grid-container.big-left {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    .left-column { grid-template-columns: 1fr 1fr; grid-template-rows: 220px; gap: 10px; }
    .right-card  { height: 350px; }
    .card-text-wrapper.big h2  { font-size: 1.5rem; line-height:1.2;}
    .card-text-wrapper.small h2 { font-size: 1.2rem; }

    .three-col-row__grid,
    .three-col-row__grid.two { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }

    .related-posts__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .single-hero-img { height: 260px; }
    .single-headline { font-size: 1.7rem; }
    .entry-content   { font-size: 1rem; }

    .single-main {
        margin-bottom: 0px;
        padding: 0 8px 0 8px;
    }

    .row-label{
      padding: 10px 0 0px 0 !important;
    }
    .three-col-row{margin-top: 10px !important;}
    .row-label__title {
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--text-muted);
        padding: 20px 8px 10px 8px;
        padding-bottom:0;
    }
}

/* ── max-width: 480px ── */
@media (max-width: 480px) {
   /* .three-col-row__grid { grid-template-columns: 1fr; 
        grid-auto-rows: 280px; }
    .related-posts__grid { grid-template-columns: 1fr; }*/
}

/* ── min-width: 480px (comments fields) ── */
@media (min-width: 480px) {
    .fvn-comments__fields-row {
        flex-direction: row;
        gap: 12px;
    }
    .fvn-comments__field { flex: 1; }
}

/* Galaxy S26 Ultra and similar devices */
@media (max-width: 412px) {
    body {
        font-size: 16px;
    }
    .card-text-wrapper.big h2 {
    font-size: 1.68rem;
    line-height: 1.2;
    padding-bottom:25px
  }

  .card-text-wrapper.big h2, .card-text-wrapper.small h2 {
  line-height: 1.1;
  font-weight: bold;
  color: var(--text);
  text-align: left;
  padding-bottom:25px;
  }
  
}