/* assets/css/style.css */

/* ============================================
   Colour theme
   ============================================ */
:root {
    --bg: #f7f7f2;
    --surface: #ffffff;
    --surface-2: #faf8f3;
    --ink: #1d2b25;
    --muted: #68766e;
    --line: #e0e7e1;
    --brand: #174c3c;
    --brand-hover: #103a2e;
    --on-brand: #ffffff;
    --brand-soft: #e9f1eb;
    --accent: #c99b50;
    --danger: #b3342b;
    --danger-soft: #fbeae8;
    --ok: #1c7a4a;
    --ok-soft: #e4f3ea;
    --warn: #9a5b00;
    --warn-soft: #fdf0d9;
    --topbar-bg: #174c3c;

    /* Layout constants (keep header height stable) */
    --logo-size: 44px;
    --header-min-h: 68px;
    --header-h: max(var(--header-min-h), calc(var(--logo-size) + 24px));
    --hero-h: 62vh;

    /* Fonts + sizes. These are the defaults - Admin > Site Settings can override
       every one of them (the override is written into the page <head>). */
    --font-body: 'Noto Sans Sinhala', sans-serif;
    --font-heading: 'Noto Sans Sinhala', sans-serif;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-nav: 14.4px;
    --fs-section-nav: 13.6px;
    --fs-ticker: 14.4px;
    --fs-box-title: 15px;
    --fs-section-head: 24px;
    --fs-card-title: 17.6px;
    --fs-card-text: 14.4px;
    --fs-page-title: 35px;
    --fs-footer: 13.6px;
    --fs-article: 16px;
    --fs-article-h2: 22px;
    --fs-article-h3: 18px;
    --fs-article-h4: 15px;

    /* Legacy names used across the site, mapped to the theme above */
    --bg-dark: var(--brand-hover);
    --bg-light: var(--bg);
    --text-dark: var(--ink);
    --text-light: var(--on-brand);
    --border-color: var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); font-size: var(--fs-body); background: var(--bg); color: var(--ink); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { text-decoration: none; color: inherit; }

/* ============================================
   Global Header
   ============================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--topbar-bg);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 12px rgba(16,58,46,0.35); }

/* Fixed height: the header never grows/shrinks while loading or scrolling */
.header-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: var(--header-h);
}
.site-logo {
    color: var(--on-brand); font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; flex-shrink: 0;
    height: var(--logo-size); width: auto;
}
.site-logo img {
    display: block; flex: none;
    height: var(--logo-size); width: auto; max-width: 240px;
    object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 22px;  background: var(--topbar-bg); padding : 20px }
.nav-link { color: var(--on-brand); font-size: var(--fs-nav); text-transform: uppercase; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent); }

.mobile-menu-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -8px;
    background: none; border: none; border-radius: 8px;
    color: var(--on-brand); font-size: 1.5rem; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================
   Hero Section
   ============================================ */
.hero-section { position: relative; height: var(--hero-h); width: 100%; overflow: hidden; background: var(--brand-hover); }
.hero-slider { width: 100%; height: 100%; position: relative; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: object-fit; background-position: center; background-attachment: fixed;background-repeat: no-repeat;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
@media (max-width: 768px) {
    /* background-attachment: fixed is unreliable on mobile Safari/Chrome
       and can cause janky scrolling, so it's disabled below the desktop
       breakpoint - the hero still displays correctly, just scrolls normally. */
    .hero-slide { background-attachment: scroll; }
}

/* Hero logo: fixed height so it never jumps while the image loads */
.hero-branding img {
    display: inline-block; height: 120px; width: auto;
    max-width: 80%; object-fit: contain;
}

/* Overlays (Featured & Events) */
.hero-overlays {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3px;
}
.overlay-box {
    background: rgba(23, 76, 60, 0.72);
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: var(--on-brand);
    width: 50%; max-width: 400px; padding: 24px 30px;
    height: 220px; display: flex; flex-direction: column; overflow: hidden;
    position: relative;
}
.box-header { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.28); padding-bottom: 10px; color: var(--accent); }
.box-content-slider { position: relative; flex: 1; min-height: 0; }
.box-slide {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; transform: translateX(-24px); pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.box-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.topic-title { font-size: var(--fs-box-title); line-height: 1.35; margin-bottom: 4px; }
/* Featured headline: text is cut to 40 characters in index.php; smaller type here */
#featuredSlider .topic-title { font-size: calc(var(--fs-box-title) - 1px); }
#eventsSlider .topic-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta-section, .meta-writer { display: block; font-size: calc(var(--fs-small) - 1px); line-height: 1.45; color: rgba(255,255,255,0.75); }
.btn-read-more { display: inline-block; margin-top: 15px; font-size: var(--fs-small); border: 1px solid var(--on-brand); padding: 5px 15px; transition: 0.3s; }
.btn-read-more:hover { background: var(--on-brand); color: var(--brand); }
/* Read More is deliberately OUTSIDE .box-content-slider (see index.php) so
   it never participates in the slide fade/transform - it stays put while
   the title/section/author rotate above it, and its href is kept in sync
   with the active slide via main.js. */
.fixed-read-more {
    align-self: flex-end; margin-top: 8px; flex-shrink: 0;
    /* The sliding text blocks are positioned elements and used to paint on top of
       this button (so only its lower edge was clickable). Positioning it with a
       higher z-index keeps the whole button clickable. */
    position: relative; z-index: 5; padding: 7px 18px; cursor: pointer;
}
.event-layout { display: flex; gap: 20px; align-items: center; }
.event-date { text-align: center; border: 1px solid rgba(255,255,255,0.35); padding: 6px 10px; border-radius: 4px; line-height: 1.2; flex-shrink: 0; }
.event-date .day { display: block; font-size: 1.35rem; font-weight: bold; }
.event-date .mon { display: block; font-size: 0.8rem; text-transform: uppercase; }

/* ============================================
   Topic Ticker
   Constant speed (px per second) no matter how long the headlines are:
   main.js measures the text and sets --ticker-duration.
   ============================================ */
.topic-ticker-container {
    background: var(--brand-hover); color: var(--on-brand);
    padding: 10px 0; overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ticker-wrapper { width: 100%; overflow: hidden; white-space: nowrap; }
.ticker-content {
    display: flex; width: max-content;
    will-change: transform;
    animation: ticker-scroll var(--ticker-duration, 40s) linear infinite;
}
.ticker-group { display: flex; flex: none; }
.ticker-content:hover { animation-play-state: paused; }
.ticker-item { flex: none; white-space: nowrap; padding: 0 30px; font-size: var(--fs-ticker); transition: color 0.3s; }
.ticker-item:hover { color: var(--accent); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-content { animation: none; }
    .ticker-wrapper { overflow-x: auto; }
}

/* ============================================
   Section Nav (smaller font, separators between items)
   ============================================ */
.horizontal-section-nav {
    background: var(--surface-2); padding: 10px 0; border-bottom: 1px solid var(--line);
    position: sticky; z-index: 900;
    /* top offset is set by main.js to match the real rendered header height */
}
.nav-container {
    display: flex; justify-content: center; justify-content: safe center; align-items: center;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.nav-container::-webkit-scrollbar { display: none; }
.sec-link {
    flex: none; position: relative; white-space: nowrap;
    font-size: var(--fs-section-nav); color: var(--ink); padding: 5px 16px;
    transition: color 0.2s;
}
.sec-link:hover { color: var(--brand); }
/* separator between neighbouring links */
.sec-link + .sec-link::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 14px; background: var(--muted); opacity: 0.4;
}
/* hover underline */
.sec-link::after {
    content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.sec-link:hover::after { transform: scaleX(1); }

/* ============================================
   Latest Articles Grid
   ============================================ */
.latest-articles-section { max-width: 1200px; margin: 50px auto; padding: 0 20px; width: 75vw; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 2px solid var(--brand); padding-bottom: 10px; }
.section-header h2 { font-size: var(--fs-section-head); }
.view-all { font-size: var(--fs-small); font-weight: bold; text-transform: uppercase; color: var(--brand); }
.view-all:hover { color: var(--accent); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.article-card { background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(23,76,60,0.10); }
.card-image { position: relative; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-image > div { background: var(--brand-soft) !important; } /* placeholder (inline style in index.php) */
.article-card:hover .card-image img { transform: scale(1.05); }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--brand); color: var(--on-brand); padding: 3px 10px; font-size: 0.75rem; text-transform: uppercase; }
.card-content { padding: 20px; flex: 1; }
.card-title { font-size: var(--fs-card-title); margin-bottom: 10px; line-height: 1.4; color: var(--ink); }
.article-card:hover .card-title { color: var(--brand); }
.card-excerpt { font-size: var(--fs-card-text); color: var(--muted); margin-bottom: 15px; }

/* Landing search bar (index.php sets inline colours, so !important here) */
.landing-search-bar { background: var(--surface-2) !important; border-color: var(--line) !important; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-link {
    display: inline-block; min-width: 38px; text-align: center; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 4px; font-size: 0.9rem; color: var(--ink);
    background: var(--surface); transition: 0.2s;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-current { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.card-writer { font-size: 0.85rem; font-weight: bold; color: var(--ink); }
.card-stats { display: flex; justify-content: flex-end; gap: 15px; padding: 15px 20px; border-top: 1px solid var(--line); font-size: calc(var(--fs-small) - 1px); color: var(--muted); }

/* ============================================
   Footer
   ============================================ */
.site-footer { background: var(--brand-hover); color: rgba(255,255,255,0.7); padding: 40px 20px; text-align: center; margin-top: 50px; }
.footer-socials { margin-bottom: 20px; }
.footer-socials a { color: var(--on-brand); margin: 0 10px; font-size: 1.2rem; transition: color 0.3s; }
.footer-socials a:hover { color: var(--accent); }
.footer-copy p { font-size: var(--fs-footer); margin: 5px 0; }

/* ============================================
   Shared inner-page components
   (buttons, forms, page headers, cards)
   ============================================ */

.content-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Page hero band - used on About/Contact/Events/Article pages */
.page-hero { background: var(--brand); color: var(--on-brand); padding: 60px 0; text-align: center; }
.page-hero .eyebrow { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; }
.page-hero h1 { font-size: var(--fs-page-title); margin: 0; color: var(--on-brand); }
.page-hero .hero-meta { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-top: 12px; }
.page-hero-image {
    background-size: cover; background-position: center; position: relative;
}
.page-hero-image::before { content: ''; position: absolute; inset: 0; background: rgba(16,58,46,0.7); background: color-mix(in srgb, var(--brand-hover) 70%, transparent); }
.page-hero-image .content-wrap { position: relative; z-index: 1; }

.page-body { padding: 50px 20px 70px; } /* side padding: text never touches the screen edge */
@media (max-width: 1024px) { .page-body { padding: 40px 24px 60px; } }
@media (max-width: 600px)  { .page-body { padding: 28px 16px 48px; } }

/* Buttons */
.btn {
    display: inline-block; background: var(--brand); color: var(--on-brand); border: none;
    padding: 12px 26px; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.3px;
    cursor: pointer; transition: 0.25s; text-align: center; text-transform: uppercase;
}
.btn:hover { background: var(--brand-hover); }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: var(--on-brand); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f2820; }

/* Forms */
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink); }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    font: inherit; font-size: 0.95rem; background: var(--surface); color: var(--ink); transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--brand); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-hint { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 12px 16px; margin-bottom: 18px; font-size: 0.9rem; border-left: 3px solid var(--danger); }
.form-success { background: var(--ok-soft); color: var(--ok); padding: 12px 16px; margin-bottom: 18px; font-size: 0.9rem; border-left: 3px solid var(--ok); }

/* Generic bordered panel (forms, info blocks) */
.panel-card { background: var(--surface); border: 1px solid var(--line); padding: 34px; box-shadow: 0 5px 20px rgba(23,76,60,0.06); }
.auth-card { max-width: 420px; margin: 0 auto; text-align: center; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 24px; }

.section-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; border-bottom: 2px solid var(--brand); padding-bottom: 10px; }
.section-title-row h1, .section-title-row h2 { font-size: 1.6rem; margin: 0; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }

.badge {
    display: inline-block; background: var(--brand); color: var(--on-brand);
    padding: 4px 12px; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 14px;
}
.badge a { color: var(--on-brand); }

/* Filter pills (articles listing) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-chip { padding: 8px 18px; border: 1px solid var(--line); background: var(--surface); font-size: 0.85rem; color: var(--ink); transition: 0.2s; }
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Two-column layout (contact page) */
.two-col-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.contact-info-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-info-line:last-child { border-bottom: none; }
.contact-icon { flex-shrink: 0; opacity: 0.7; }

/* Article detail page */
.article-prose { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; }
.article-prose img { max-width: 100%; height: auto; margin: 20px 0; }
.article-prose h2, .article-prose h3 { margin: 1.4em 0 0.6em; }
.article-cover-wrap { position: relative; max-width: 760px; margin: 0 auto 30px; overflow: hidden; background: var(--brand-hover); }
.article-cover-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(30px) brightness(0.7); opacity: 0.5; transform: scale(1.15); }
.article-cover-img { position: relative; z-index: 1; display: block; width: 100%; max-height: 480px; object-fit: contain; margin: 0 auto; }

.engagement-bar { max-width: 760px; margin: 30px auto; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.like-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9rem;
    font-weight: 600; cursor: pointer; transition: 0.2s;
}
.like-btn:hover { border-color: var(--brand); }
.like-btn.liked { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.like-icon::before { content: "\2661"; }
.like-btn.liked .like-icon::before { content: "\2665"; }

.related-section { max-width: 900px; margin: 50px auto 0; }
.related-section h2 { font-size: 1.3rem; margin-bottom: 20px; }

.comments-section { max-width: 760px; margin: 40px auto 0; }
.comments-section h2 { font-size: 1.3rem; margin-bottom: 20px; }
.comment-list { margin-bottom: 30px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { font-weight: 700; font-size: 0.9rem; }
.comment-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.comment-body { margin: 0; font-size: 0.95rem; }
.comment-form-card h3 { font-size: 1rem; margin-bottom: 16px; }

/* Events listing page */
.event-list-item {
    display: flex; gap: 24px; align-items: center; padding: 24px; background: var(--surface);
    border: 1px solid var(--line); margin-bottom: 16px; transition: 0.25s;
}
.event-list-item:hover { box-shadow: 0 8px 20px rgba(23,76,60,0.10); transform: translateY(-2px); }
.event-list-item .event-date { flex-shrink: 0; width: 70px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--brand-soft); color: var(--brand); }
.event-list-item .event-date .day { font-size: 1.4rem; }
.event-list-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.event-list-item .event-meta { font-size: 0.85rem; color: var(--muted); }
.event-list-item.past { opacity: 0.6; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .latest-articles-section { width: 90vw; }
}
@media (max-width: 768px) {
    /* Hamburger menu: the nav becomes a dropdown panel under the header.
       main.js toggles the .open class on #mainNav. */
    .mobile-menu-toggle { display: inline-flex; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--brand-hover);
        border-top: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 14px 24px rgba(0,0,0,0.25);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-link { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav .nav-link:last-child { border-bottom: none; }

    /* Phones: slideshow on top, Featured/Events boxes stacked underneath.
       (They used to sit below a fixed-height, overflow:hidden hero and were clipped away.) */
    .hero-section { height: auto; }
    .hero-slider { height: 40vh; }
    .hero-branding { display: none; }
    .hero-overlays { flex-direction: column; bottom: auto; position: static; background: var(--brand-hover); }
    .overlay-box { width: 100%; max-width: 100%; height: auto; }
    /* slides are absolutely positioned, so give the slider its own height here */
    .box-content-slider { flex: none; height: 92px; }
    .article-grid { grid-template-columns: 1fr; }
    .latest-articles-section { width: 95vw; }
    .two-col-layout { grid-template-columns: 1fr; }
    .event-list-item { flex-direction: column; text-align: center; }
    .sec-link { padding: 5px 14px; }
    .sec-link::after { left: 14px; right: 14px; }
}

/* ============================================
   Switches controlled from Admin > Site Settings (classes are set on <body>)
   ============================================ */
.no-ticker .topic-ticker-container { display: none; }
.no-section-nav .horizontal-section-nav { display: none; }
.no-search .landing-search-bar,
.no-search .content-wrap:has(> .landing-search-bar) { display: none; }
.nav-normalcase .nav-link { text-transform: none; }

/* Menu-bar background picture (Admin > Site Settings > Colours > Menu bar background picture).
   Three layers sit under the menu: the picture (with its own opacity, position, size and
   repeat), then a colour layer that keeps the text readable. All values come from the admin. */
.has-header-bg .site-header::before,
.has-header-bg .site-header::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.has-header-bg .site-header::before {
    background-image: var(--header-bg-image);
    background-position: var(--header-bg-pos, 50% 50%);
    background-size: var(--header-bg-size, cover);
    background-repeat: var(--header-bg-repeat, no-repeat);
    opacity: var(--header-bg-opacity, 1);
}
.has-header-bg .site-header::after { background: var(--topbar-bg); opacity: var(--header-bg-layer, 0.55); }
.has-header-bg .header-container { position: relative; z-index: 1; }
.has-header-bg .nav-link, .has-header-bg .mobile-menu-toggle { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
@media (max-width: 768px) { .has-header-bg .main-nav .nav-link { text-shadow: none; } } /* dropdown has a solid background */

/* Article card pictures: "Show whole image" option in Admin > Site Settings > Home page */
.cards-contain .card-image img { object-fit: contain; background: var(--brand-soft); }
.cards-contain .article-card:hover .card-image img { transform: none; }