/* ===================================================================
   EXCEL MAGAZINE ZAMBIA — Design System v2
   Brand: Navy wordmark + Coral accent (#FC624D)
   Fonts: Fraunces (display) + Manrope (UI)
   =================================================================== */

:root {
    --ex-navy: #081526;
    --ex-navy-mid: #0f2844;
    --ex-navy-soft: #16365c;
    --ex-coral: #fc624d;
    --ex-coral-hover: #e04a36;
    --ex-coral-glow: rgba(252, 98, 77, 0.22);
    --ex-gold: #d4a017;
    --ex-ink: #0b1220;
    --ex-text: #1a2433;
    --ex-text-soft: #3d4a5c;
    --ex-muted: #5f6b7a;
    --ex-border: rgba(8, 21, 38, 0.1);
    --ex-surface: #ffffff;
    --ex-surface-2: #f4f6fa;
    --ex-surface-3: #e8edf4;
    --ex-shadow-sm: 0 4px 14px rgba(8, 21, 38, 0.06);
    --ex-shadow-md: 0 12px 32px rgba(8, 21, 38, 0.1);
    --ex-shadow-lg: 0 24px 60px rgba(8, 21, 38, 0.14);
    --ex-radius-sm: 10px;
    --ex-radius-md: 16px;
    --ex-radius-lg: 22px;
    --ex-font-display: "Fraunces", Georgia, serif;
    --ex-font-body: "Manrope", system-ui, sans-serif;
    --ex-header-h: 148px;
}

html.dark {
    --ex-ink: #f0f4fa;
    --ex-text: #dce4ef;
    --ex-text-soft: #b8c4d4;
    --ex-muted: #8a97a8;
    --ex-border: rgba(255, 255, 255, 0.1);
    --ex-surface: #121a24;
    --ex-surface-2: #1a2430;
    --ex-surface-3: #243040;
    --ex-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --ex-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --ex-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---- Base ---- */
body.skin-orange.excel-site {
    font-family: var(--ex-font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ex-text);
    background: var(--ex-surface-2);
    -webkit-font-smoothing: antialiased;
}

html:not(.dark) body.skin-orange.excel-site {
    background:
        radial-gradient(ellipse 80% 50% at 0% -10%, rgba(252, 98, 77, 0.09), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 40, 68, 0.07), transparent),
        var(--ex-surface-2);
}

html.dark body.skin-orange.excel-site {
    background: #0c1018;
    color: var(--ex-text);
}

.excel-site h1,
.excel-site h2,
.excel-site h3,
.excel-site h4,
.excel-site .page-title,
.excel-site .block-title {
    font-family: var(--ex-font-display);
    color: var(--ex-ink);
    letter-spacing: -0.02em;
}

html.dark .excel-site h1,
html.dark .excel-site h2,
html.dark .excel-site h3,
html.dark .excel-site h4,
html.dark .excel-site .page-title,
html.dark .excel-site .block-title {
    color: #f0f4fa;
}

.excel-site a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---- Masthead (unique editorial header) ---- */
.excel-masthead-wrap {
    position: sticky;
    top: 0;
    z-index: 1200;
    transition: box-shadow 0.35s ease;
}

.excel-masthead-wrap.is-compact {
    box-shadow: 0 16px 40px rgba(8, 21, 38, 0.14);
}

.excel-masthead-wrap.is-compact .excel-masthead__ribbon,
.excel-masthead-wrap.is-compact .excel-masthead__glow {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.excel-masthead-wrap.is-compact .excel-masthead__core {
    padding-top: 10px;
    padding-bottom: 10px;
}

.excel-masthead-wrap.is-compact .excel-masthead__logo {
    max-height: 42px;
}

.excel-masthead-wrap.is-compact .excel-nav__dock {
    margin-top: -12px;
    padding: 8px 12px;
}

.excel-site .firstbar.excel-topbar,
.excel-site .excel-topbar {
    display: none !important;
}

/* Ribbon */
.excel-masthead__ribbon {
    background:
        repeating-linear-gradient(
            -55deg,
            var(--ex-navy) 0,
            var(--ex-navy) 8px,
            var(--ex-navy-mid) 8px,
            var(--ex-navy-mid) 16px
        );
    border-bottom: 2px solid var(--ex-coral);
    transition: opacity 0.35s ease, max-height 0.35s ease;
}

.excel-masthead__ribbon-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 7px 0;
}

.excel-masthead__ribbon-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.excel-masthead__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ex-coral);
    box-shadow: 0 0 0 0 rgba(252, 98, 77, 0.55);
    animation: ex-pulse 2s infinite;
}

@keyframes ex-pulse {
    0% { box-shadow: 0 0 0 0 rgba(252, 98, 77, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(252, 98, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 98, 77, 0); }
}

.excel-masthead__edition {
    font-family: var(--ex-font-body);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.excel-masthead__ribbon-tagline {
    margin: 0;
    text-align: center;
    font-family: var(--ex-font-display);
    font-size: clamp(12px, 1.6vw, 14px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.02em;
}

.excel-masthead__ribbon-date {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ex-gold);
    padding: 4px 10px;
    border: 1px solid rgba(212, 160, 23, 0.45);
    border-radius: 999px;
}

/* Core hero band */
.excel-masthead__core {
    position: relative;
    background: var(--ex-surface);
    padding: 22px 0 28px;
    overflow: hidden;
    transition: padding 0.35s ease;
}

html.dark .excel-masthead__core {
    background: var(--ex-surface);
}

.excel-masthead__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(480px 180px at 0% 0%, rgba(252, 98, 77, 0.12), transparent 60%),
        radial-gradient(420px 160px at 100% 100%, rgba(15, 40, 68, 0.1), transparent 55%);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.excel-masthead__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

.excel-masthead__brand-panel {
    position: relative;
    padding: 18px 20px 18px 0;
}

.excel-masthead__brand-panel::before {
    content: "";
    position: absolute;
    inset: 0 -28px 0 -999px;
    background: linear-gradient(115deg, var(--ex-navy) 0%, var(--ex-navy-mid) 72%, transparent 72%);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    z-index: 0;
}

.excel-masthead__monogram {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--ex-font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.excel-masthead__logo-link {
    position: relative;
    z-index: 1;
    display: block;
}

.excel-masthead__logo {
    max-height: 56px;
    width: auto;
    transition: max-height 0.35s ease;
}

.excel-masthead__brand-panel .logo_dark {
    display: none !important;
}

.excel-masthead__brand-panel .logo_light {
    display: inline-block !important;
}

.excel-masthead-wrap header.primary.up nav.menu {
    height: auto !important;
}

.excel-masthead-wrap nav.menu {
    height: auto !important;
    margin: 0 !important;
}

.excel-masthead-wrap nav.menu .container,
.excel-masthead-wrap nav.menu .container-md {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

.excel-masthead__brand-rule {
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--ex-coral), var(--ex-gold));
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

/* Search */
.excel-masthead__search-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ex-muted);
    margin-bottom: 8px;
}

.excel-masthead__search-field {
    display: flex;
    align-items: stretch;
    background: var(--ex-surface-2);
    border: 1px solid var(--ex-border);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--ex-shadow-sm);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.excel-masthead__search-field:focus-within {
    border-color: var(--ex-coral);
    box-shadow: 0 0 0 3px var(--ex-coral-glow);
}

html.dark .excel-masthead__search-field {
    background: var(--ex-surface-3);
}

.excel-masthead__search-icon {
    display: flex;
    align-items: center;
    padding: 0 4px 0 18px;
    color: var(--ex-coral);
    font-size: 20px;
}

.excel-masthead__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ex-text);
    font-family: var(--ex-font-body);
    font-size: 15px;
    padding: 14px 12px;
    outline: none;
}

.excel-masthead__search-input::placeholder {
    color: var(--ex-muted);
}

.excel-masthead__search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: linear-gradient(135deg, var(--ex-navy), var(--ex-navy-soft));
    color: #fff;
    font-family: var(--ex-font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.excel-masthead__search-btn:hover {
    background: linear-gradient(135deg, var(--ex-coral), var(--ex-coral-hover));
    transform: translateX(2px);
}

/* CTA */
.excel-masthead__cta {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: linear-gradient(145deg, #fff 0%, var(--ex-surface-2) 100%);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-radius-md);
    padding: 12px 16px;
    box-shadow: var(--ex-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-width: 210px;
}

html.dark .excel-masthead__cta {
    background: linear-gradient(145deg, var(--ex-surface-2), var(--ex-surface-3));
}

.excel-masthead__cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--ex-shadow-md);
    border-color: rgba(252, 98, 77, 0.35);
}

.excel-masthead__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ex-coral), var(--ex-coral-hover));
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--ex-coral-glow);
}

.excel-masthead__cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.excel-masthead__cta-text small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ex-muted);
}

.excel-masthead__cta-text strong {
    font-family: var(--ex-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ex-ink);
}

html.dark .excel-masthead__cta-text strong {
    color: #f0f4fa;
}

/* ---- Navigation dock ---- */
nav.menu.excel-nav.excel-masthead__nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 18px !important;
    position: relative;
}

nav.menu.excel-nav.excel-masthead__nav::before {
    display: none;
}

.excel-nav__shell {
    max-width: 1200px;
}

.excel-nav__dock {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -22px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(8, 21, 38, 0.08);
    border-radius: var(--ex-radius-lg);
    box-shadow: 0 20px 50px rgba(8, 21, 38, 0.12);
    transition: margin 0.35s ease, padding 0.35s ease;
}

html.dark .excel-nav__dock {
    background: rgba(18, 26, 36, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.excel-nav__brand--mobile {
    display: none;
}

.excel-nav__brand--mobile img {
    max-height: 36px;
}

.excel-nav__toggles {
    display: none;
    align-items: center;
    gap: 8px;
}

.excel-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--ex-border);
    border-radius: 12px;
    background: var(--ex-surface-2);
    cursor: pointer;
}

.excel-nav__toggle-bar {
    display: block;
    height: 2px;
    background: var(--ex-navy);
    border-radius: 999px;
    transition: transform 0.25s ease;
}

html.dark .excel-nav__toggle-bar {
    background: #f0f4fa;
}

.excel-nav__sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-2);
    color: var(--ex-text);
    text-decoration: none;
}

.excel-nav__panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.excel-nav ul.nav-list.excel-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.excel-nav ul.nav-list > li {
    position: relative;
}

.excel-nav ul.nav-list > li:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(252, 98, 77, 0.45);
    font-weight: 700;
    pointer-events: none;
}

.excel-nav ul.nav-list > li > a {
    color: var(--ex-navy) !important;
    font-family: var(--ex-font-body) !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 14px !important;
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

html.dark .excel-nav ul.nav-list > li > a {
    color: #e8edf4 !important;
}

.excel-nav ul.nav-list > li > a:hover,
.excel-nav ul.nav-list > li.active > a {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ex-coral), var(--ex-coral-hover)) !important;
    box-shadow: 0 8px 18px var(--ex-coral-glow) !important;
    transform: translateY(-1px);
}

.excel-nav__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.excel-nav__tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid var(--ex-border);
    background: var(--ex-surface-2);
    color: var(--ex-text) !important;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

html.dark .excel-nav__tool-btn {
    background: var(--ex-surface-3);
}

.excel-nav__tool-btn:hover {
    border-color: var(--ex-coral);
    color: var(--ex-coral) !important;
}

.excel-nav__theme {
    display: flex;
    gap: 4px;
}

.excel-nav .dropdown-menu {
    background: var(--ex-surface) !important;
    border: 1px solid var(--ex-border) !important;
    border-radius: var(--ex-radius-sm) !important;
    box-shadow: var(--ex-shadow-lg) !important;
    padding: 6px !important;
}

.excel-nav .dropdown-menu a {
    color: var(--ex-text) !important;
    border-radius: 8px;
    font-weight: 600;
}

html.dark .excel-nav .dropdown-menu {
    background: var(--ex-surface-2) !important;
}

html.dark .excel-nav .dropdown-menu a {
    color: var(--ex-text) !important;
}

.excel-nav .dropdown-menu a:hover {
    background: var(--ex-coral-glow) !important;
    color: var(--ex-coral) !important;
}

/* Legacy search/topbar aliases */
.excel-search .form-control {
    background: var(--ex-surface-2) !important;
    border: 1px solid var(--ex-border) !important;
    color: var(--ex-text) !important;
    min-height: 48px;
    font-family: var(--ex-font-body);
}

.excel-topbar__cta {
    background: linear-gradient(135deg, var(--ex-coral), var(--ex-coral-hover)) !important;
}

/* ---- Page layout ---- */
.excel-home {
    padding: 32px 0 56px;
}

.excel-home__container {
    max-width: 1200px;
}

.excel-site .sidebar {
    position: sticky;
    top: calc(var(--ex-header-h) + 16px);
}

.excel-site .sidebar .aside,
.excel-site .sidebar .block {
    background: var(--ex-surface);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--ex-shadow-sm);
}

html.dark .excel-site .sidebar .aside,
html.dark .excel-site .sidebar .block {
    background: var(--ex-surface);
    border-color: var(--ex-border);
}

/* ---- Section titles (.line) ---- */
.excel-site .line {
    height: auto !important;
    background: none !important;
    margin: 36px 0 22px !important;
    display: flex !important;
    align-items: center;
    gap: 14px;
}

.excel-site .line::before {
    content: "";
    width: 4px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--ex-coral), var(--ex-gold));
    flex-shrink: 0;
}

.excel-site .line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ex-border);
}

.excel-site .line div {
    position: static !important;
    transform: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: var(--ex-font-display) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--ex-ink) !important;
    text-transform: none !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

html.dark .excel-site .line div {
    color: #f0f4fa !important;
}

/* ---- Headline ticker ---- */
.excel-site .headline {
    background: var(--ex-surface);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-radius-md);
    padding: 12px 16px;
    margin-bottom: 24px;
    box-shadow: var(--ex-shadow-sm);
}

.excel-site .headline .item a {
    color: var(--ex-text) !important;
    font-family: var(--ex-font-body);
    font-weight: 600;
    font-size: 14px;
}

html.dark .excel-site .headline .item a {
    color: var(--ex-text) !important;
}

.excel-site .headline .item a .badge {
    background: var(--ex-coral) !important;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
}

.excel-site .headline .carousel-control {
    color: var(--ex-coral) !important;
    background: var(--ex-surface-2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

/* ---- Featured hero slider ---- */
.excel-site .featured,
.excel-site #featured .featured {
    border-radius: var(--ex-radius-lg);
    overflow: hidden;
    box-shadow: var(--ex-shadow-lg);
    height: min(520px, 62vw) !important;
    margin-bottom: 28px;
}

.excel-site .featured .overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 21, 38, 0.05) 0%,
        rgba(8, 21, 38, 0.35) 45%,
        rgba(8, 21, 38, 0.88) 100%
    ) !important;
    z-index: 1 !important;
}

.excel-site .featured figure {
    z-index: 0 !important;
}

.excel-site .featured .details {
    z-index: 2;
    padding: 28px 32px !important;
    bottom: 0 !important;
}

.excel-site .featured .details h1,
.excel-site .featured .details h1 a {
    color: #fff !important;
    font-family: var(--ex-font-display) !important;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.excel-site .featured .details .time {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
}

.excel-site .featured .details .category a {
    background: var(--ex-coral) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
}

/* ---- Article cards (grid columns) ---- */
.excel-site .article {
    background: var(--ex-surface);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-radius-md);
    overflow: hidden;
    box-shadow: var(--ex-shadow-sm);
    margin-bottom: 24px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.excel-site .article:hover {
    transform: translateY(-4px);
    box-shadow: var(--ex-shadow-md);
}

html.dark .excel-site .article {
    background: var(--ex-surface);
    border-color: var(--ex-border);
}

.excel-site .article figure {
    margin: 0;
    overflow: hidden;
}

.excel-site .article figure img {
    width: 100%;
    transition: transform 0.5s ease;
}

.excel-site .article:hover figure img {
    transform: scale(1.04);
}

.excel-site .article .padding {
    padding: 18px 20px 16px !important;
}

.excel-site .article h2,
.excel-site .article h2 a {
    color: var(--ex-ink) !important;
    font-family: var(--ex-font-display) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

html.dark .excel-site .article h2,
html.dark .excel-site .article h2 a {
    color: #f0f4fa !important;
}

.excel-site .article h2 a:hover {
    color: var(--ex-coral) !important;
}

.excel-site .article p {
    color: var(--ex-text-soft) !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

html.dark .excel-site .article p {
    color: var(--ex-text-soft) !important;
}

.excel-site .article .detail .time,
.excel-site .article .detail .view {
    color: var(--ex-muted) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.excel-site .article .detail .category a {
    color: var(--ex-coral) !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.excel-site .article footer .btn-primary.more {
    background: transparent !important;
    border: 2px solid var(--ex-coral) !important;
    color: var(--ex-coral) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
}

.excel-site .article footer .btn-primary.more:hover {
    background: var(--ex-coral) !important;
    color: #fff !important;
}

/* ---- Article list (horizontal) ---- */
.excel-site .article-list {
    background: var(--ex-surface);
    border: 1px solid var(--ex-border);
    border-radius: var(--ex-radius-md);
    padding: 16px;
    margin-bottom: 20px !important;
    box-shadow: var(--ex-shadow-sm);
    overflow: hidden;
}

html.dark .excel-site .article-list {
    background: var(--ex-surface);
}

.excel-site .article-list .details h1 a {
    color: var(--ex-ink) !important;
    font-family: var(--ex-font-display);
    font-weight: 700;
}

html.dark .excel-site .article-list .details h1 a {
    color: #f0f4fa !important;
}

.excel-site .article-list .details p {
    color: var(--ex-text-soft) !important;
}

.excel-site .article-list figure {
    border-radius: var(--ex-radius-sm);
    overflow: hidden;
}

/* ---- Best of week / mini posts ---- */
.excel-site .best-of-the-week .article h2 a {
    color: var(--ex-ink) !important;
    font-family: var(--ex-font-display);
}

html.dark .excel-site .best-of-the-week .article h2 a {
    color: #f0f4fa !important;
}

.excel-site .article-mini h1 a {
    color: var(--ex-ink) !important;
    font-weight: 700;
}

html.dark .excel-site .article-mini h1 a {
    color: #f0f4fa !important;
}

.excel-site .article-mini .detail .time,
.excel-site .article-mini .detail .category a {
    color: var(--ex-muted) !important;
}

.excel-site .article-mini .detail .category a {
    color: var(--ex-coral) !important;
}

/* ---- Sidebar titles ---- */
.excel-site .sidebar .aside-title,
.excel-site .sidebar .title-col,
.excel-site .title-col {
    font-family: var(--ex-font-display) !important;
    color: var(--ex-ink) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--ex-coral) !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
    display: inline-block;
}

html.dark .excel-site .sidebar .aside-title,
html.dark .excel-site .sidebar .title-col,
html.dark .excel-site .title-col {
    color: #f0f4fa !important;
}

/* ---- Newsletter ---- */
.excel-site .newsletter {
    background: linear-gradient(145deg, var(--ex-navy), var(--ex-navy-soft)) !important;
    border-radius: var(--ex-radius-md) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px !important;
    color: #fff !important;
}

.excel-site .newsletter .title,
.excel-site .newsletter h4,
.excel-site .newsletter label {
    color: #fff !important;
}

.excel-site .newsletter .form-control {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.excel-site .newsletter .btn {
    background: var(--ex-coral) !important;
    border-color: var(--ex-coral) !important;
}

/* ---- Magazines band ---- */
.home-magazines,
.excel-site .home-magazines {
    background:
        linear-gradient(135deg, var(--ex-navy) 0%, var(--ex-navy-mid) 40%, var(--ex-navy-soft) 100%);
    border: none;
    color: #fff;
    padding: 56px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.home-magazines::before,
.excel-site .home-magazines::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 90% 20%, rgba(252, 98, 77, 0.25), transparent),
        radial-gradient(400px 200px at 10% 80%, rgba(212, 160, 23, 0.12), transparent);
    pointer-events: none;
}

.home-magazines__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.home-magazines__eyebrow,
.excel-site .home-magazines__eyebrow {
    color: var(--ex-coral) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.home-magazines__title,
.excel-site .home-magazines__title {
    color: #fff !important;
    font-family: var(--ex-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.15;
}

.home-magazines__subtitle,
.excel-site .home-magazines__subtitle {
    color: rgba(255, 255, 255, 0.72) !important;
    margin: 0;
    max-width: 520px;
    font-size: 15px;
}

.home-magazines__all,
.excel-site .home-magazines__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    color: #fff !important;
    border: 2px solid var(--ex-coral);
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.home-magazines__all:hover,
.excel-site .home-magazines__all:hover {
    background: var(--ex-coral);
    border-color: var(--ex-coral);
    color: #fff !important;
    transform: translateY(-2px);
}

.home-magazines__grid {
    position: relative;
    z-index: 1;
}

.home-magazines__empty,
.excel-site .home-magazines__empty {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--ex-radius-md);
    padding: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* ---- Magazine cards (homepage + listing) ---- */
.magazine-card {
    background: #fff;
    border-radius: var(--ex-radius-md);
    overflow: hidden;
    box-shadow: var(--ex-shadow-md);
    height: 100%;
    border: 1px solid var(--ex-border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.magazine-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ex-shadow-lg);
}

.home-magazines .magazine-card,
.excel-site .home-magazines .magazine-card {
    border-color: rgba(255, 255, 255, 0.12);
}

.magazine-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.magazine-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ex-surface-3);
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.magazine-card:hover .magazine-cover img {
    transform: scale(1.05);
}

.magazine-cover .no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(145deg, var(--ex-navy-soft), var(--ex-navy-mid));
    color: rgba(255, 255, 255, 0.45);
}

.magazine-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 21, 38, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magazine-card:hover .magazine-overlay {
    opacity: 1;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--ex-coral);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.magazine-info {
    padding: 18px 20px 20px;
    background: #fff;
}

.magazine-title,
.excel-site .magazine-title {
    font-family: var(--ex-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ex-navy) !important;
    margin: 0 0 8px;
    line-height: 1.3;
}

.magazine-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ex-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.magazine-meta .issue-number {
    color: var(--ex-coral);
}

.magazine-actions {
    padding: 0 20px 18px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.magazine-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--ex-coral);
    color: #fff !important;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, transform 0.25s ease;
}

.magazine-read:hover {
    background: var(--ex-coral-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.magazine-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ex-navy) !important;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.magazine-download:hover {
    color: var(--ex-coral) !important;
}

html.dark .magazine-actions {
    background: #fff;
}

html.dark .magazine-card,
html.dark .magazine-info {
    background: #fff;
}

html.dark .magazine-title {
    color: var(--ex-navy) !important;
}

html.dark .magazine-meta {
    color: var(--ex-muted);
}

.excel-page-magazines {
    padding: 32px 0 56px;
}

.excel-page-magazines .home-magazines__subtitle {
    color: var(--ex-text-soft) !important;
}

html.dark .excel-page-magazines .home-magazines__subtitle {
    color: var(--ex-text-soft) !important;
}

/* ---- Footer ---- */
.excel-site footer.footer {
    background: var(--ex-navy) !important;
    color: rgba(255, 255, 255, 0.82) !important;
    padding-top: 48px !important;
    margin-top: 0;
}

.excel-site footer.footer a {
    color: rgba(255, 255, 255, 0.82) !important;
}

.excel-site footer.footer a:hover {
    color: var(--ex-coral) !important;
}

.excel-site footer.footer .block-title,
.excel-site footer.footer h1,
.excel-site footer.footer h4 {
    color: #fff !important;
}

.excel-site footer.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ---- Buttons & badges ---- */
.excel-site .btn-primary {
    background: var(--ex-coral) !important;
    border-color: var(--ex-coral) !important;
    font-family: var(--ex-font-body);
    font-weight: 700;
    border-radius: 999px;
}

.excel-site .btn-primary:hover {
    background: var(--ex-coral-hover) !important;
    border-color: var(--ex-coral-hover) !important;
}

.excel-site .badge,
.excel-site .badge-primary {
    background: var(--ex-coral) !important;
    color: #fff !important;
}

/* ---- Pagination ---- */
.excel-site .pagination .page-link {
    color: var(--ex-text);
    border-color: var(--ex-border);
}

.excel-site .pagination .page-item.active .page-link {
    background: var(--ex-coral) !important;
    border-color: var(--ex-coral) !important;
}

html.dark .excel-site .pagination .page-link {
    background: var(--ex-surface-2);
    color: var(--ex-text);
    border-color: var(--ex-border);
}

/* ---- Single article page ---- */
.excel-site section.single article.main-article .main .featured {
    border-radius: var(--ex-radius-lg);
    overflow: hidden;
}

.excel-site section.single .content,
.excel-site section.single article.main-article {
    color: var(--ex-text);
}

html.dark .excel-site section.single .content,
html.dark .excel-site section.single article.main-article {
    color: var(--ex-text);
}

html.dark .excel-site section.single article.main-article h1,
html.dark .excel-site section.single article.main-article h2 {
    color: #f0f4fa;
}

/* ---- Dark mode overrides for skin-orange conflicts ---- */
html.dark .excel-site .featured .details h1 a {
    color: #fff !important;
}

html.dark .excel-site .headline {
    background: var(--ex-surface);
    border-color: var(--ex-border);
}

html.dark .excel-site .firstbar,
html.dark .excel-site .excel-topbar,
html.dark .excel-masthead__core {
    background: var(--ex-surface) !important;
}

html.dark .excel-site .firstbar .search .form-control {
    background: var(--ex-surface-3) !important;
    color: var(--ex-text) !important;
}

/* ---- Motion safety ---- */
.excel-site .article,
.excel-site .featured,
.excel-site .block,
.excel-site .article-list,
.excel-site .headline,
.excel-site [data-animate] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .excel-site .sidebar {
        position: static;
    }

    .excel-site .article-list figure {
        width: 100% !important;
        float: none !important;
        height: auto !important;
        margin-bottom: 12px;
    }

    .excel-site .article-list .details {
        margin-left: 0 !important;
    }

    .excel-masthead__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .excel-masthead__brand-panel::before {
        inset: 0 -999px 0 -999px;
        clip-path: none;
        border-radius: var(--ex-radius-md);
    }

    .excel-masthead__monogram {
        left: 12px;
    }

    .excel-masthead__logo-link {
        padding-left: 8px;
    }

    .excel-masthead__cta-col {
        display: none;
    }

    .excel-nav__brand--mobile {
        display: block;
    }

    .excel-nav__toggles {
        display: flex;
    }

    .excel-nav__dock {
        flex-wrap: wrap;
        margin-top: -14px;
    }

    .excel-nav ul.nav-list.excel-nav__list {
        background: var(--ex-surface) !important;
        border-left: 4px solid var(--ex-coral);
        box-shadow: -20px 0 60px rgba(8, 21, 38, 0.2);
    }

    html.dark .excel-nav ul.nav-list.excel-nav__list {
        background: var(--ex-surface-2) !important;
    }

    .excel-nav ul.nav-list > li:not(:last-child)::after {
        display: none;
    }

    .excel-nav ul.nav-list > li > a {
        display: block;
        text-align: left;
        color: var(--ex-navy) !important;
    }

    html.dark .excel-nav ul.nav-list > li > a {
        color: #f0f4fa !important;
    }

    .excel-nav__tools {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 3001;
    }
}

@media (max-width: 767px) {
    .excel-site .featured {
        height: min(380px, 70vw) !important;
    }

    .excel-masthead__ribbon-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 6px;
    }

    .excel-masthead__ribbon-left,
    .excel-masthead__ribbon-date {
        justify-content: center;
    }

    .excel-masthead__ribbon-tagline {
        font-size: 12px;
    }

    .excel-masthead__search-btn span {
        display: none;
    }

    .excel-masthead__search-btn {
        padding: 0 16px;
    }

    .home-magazines__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-magazines__all {
        align-self: flex-start;
    }
}
