/**
 * ExcelSchweiz Theme Custom Styles
 * Swiss identity: red #D52B1E + white + slate. Font: Geist.
 */

:root {
    --cs-red: #D52B1E;
    --cs-red-dark: #B0231A;
    --cs-red-darker: #8E1C14;
    --cs-slate: #1f2937;
    --cs-grey: #475569;
    --cs-grey-light: #f6f7f8;
    --cs-border: #E5E7EB;
}

/* Refined base typography (premium polish) */
body { color: #1f2937; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
h1 { line-height: 1.1; }
h2, h3 { line-height: 1.2; }
p { line-height: 1.65; }
.prose { color: var(--cs-grey); }
.prose :where(p, li) { line-height: 1.7; }
::selection { background: rgba(213,43,30,.16); }

/* WordPress Core Alignment */
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }

/* WordPress Navigation */
.nav-links { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a, .nav-links span { padding: 0.5rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; }
.nav-links .current { background: var(--cs-red); color: white; border-color: var(--cs-red); }
.nav-links a:hover { background: #f9fafb; }

/* Custom Logo */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 40px; width: auto; }

/* Navigation Menu Items */
.menu-item a { color: #374151; font-weight: 500; transition: color 0.15s; }
.menu-item a:hover { color: var(--cs-red); }
.current-menu-item a { color: var(--cs-red); }

/* Widget Styles */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: white; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 0.5rem; }
.widget ul li a { color: #9ca3af; transition: color 0.15s; }
.widget ul li a:hover { color: white; }

/* FAQ Toggle Animation */
.cs-faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Download Button Animation */
.cs-download { position: relative; overflow: hidden; }
.cs-download::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.cs-download:active::after { width: 200px; height: 200px; }

/* Mobile Menu */
#mobile-menu.active { display: block; }

/* Cookie Banner Animation */
#cs-consent.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--cs-red);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 40;
}
#scroll-to-top:hover { background: var(--cs-red-dark); transform: translateY(-2px); }
#scroll-to-top.show { display: flex; }

/* Print Styles */
@media print {
    header, footer, .cs-download, #cs-consent, #scroll-to-top { display: none !important; }
    body { font-size: 12pt; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--cs-red);
    outline-offset: 2px;
    border-radius: 2px;
}
a:focus-visible, button:focus-visible {
    box-shadow: 0 0 0 3px rgba(213,43,30,.22);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   EXCEL MOCKUP STYLES
   ===================================================== */

.excel-mockup-container {
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.excel-mockup-container:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.excel-window {
    background: #f3f3f3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 11px;
}

/* Title Bar */
.excel-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #217346 0%, #1a5c38 100%);
    padding: 6px 12px;
    color: white;
}

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

.excel-icon {
    width: 18px;
    height: 18px;
}

.excel-filename {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.95;
}

.excel-titlebar-buttons {
    display: flex;
    gap: 8px;
}

.excel-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.excel-btn.minimize { background: #f5c242; }
.excel-btn.maximize { background: #3dc04f; }
.excel-btn.close { background: #ed594a; }

/* Ribbon */
.excel-ribbon {
    background: #217346;
    padding: 4px 12px;
    border-bottom: 1px solid #1a5c38;
}

.excel-ribbon-tabs {
    display: flex;
    gap: 16px;
    color: white;
    font-size: 11px;
}

.excel-ribbon-tabs span {
    padding: 4px 0;
    opacity: 0.7;
    cursor: pointer;
}

.excel-ribbon-tabs span.active {
    opacity: 1;
    border-bottom: 2px solid white;
}

/* Formula Bar */
.excel-formula-bar {
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #d6d6d6;
    padding: 4px 8px;
    gap: 8px;
}

.excel-cell-ref {
    min-width: 50px;
    padding: 2px 6px;
    background: #f5f5f5;
    border: 1px solid #d6d6d6;
    font-size: 10px;
    text-align: center;
}

.excel-fx {
    color: #666;
    font-style: italic;
    font-size: 10px;
}

.excel-formula-input {
    flex: 1;
    padding: 2px 6px;
    background: white;
    border: 1px solid #d6d6d6;
    font-size: 10px;
    color: #333;
    min-height: 18px;
}

/* Spreadsheet Grid */
.excel-sheet-area {
    background: white;
    overflow: hidden;
}

.excel-grid {
    display: grid;
    grid-template-columns: 30px repeat(5, 1fr);
    border: 1px solid #d6d6d6;
}

.excel-corner {
    background: #f5f5f5;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}

.excel-col-header {
    background: #f5f5f5;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
    padding: 4px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.excel-row-header {
    background: #f5f5f5;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
    padding: 4px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.excel-cell {
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 6px;
    min-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

/* Cell Types */
.excel-cell.header-cell {
    background: #217346;
    color: white;
    font-weight: 600;
}

.excel-cell.number-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.excel-cell.currency-cell {
    text-align: right;
    color: #1a5c38;
    font-weight: 500;
}

.excel-cell.total-label {
    font-weight: 600;
    text-align: right;
}

.excel-cell.total-cell {
    font-weight: 700;
    text-align: right;
    background: #f0f7f4;
}

.excel-cell.total-cell.highlight {
    background: #d4edda;
    color: #155724;
}

.excel-cell.positive {
    color: #28a745;
}

.excel-cell.warning {
    color: #ffc107;
}

.excel-cell.critical {
    color: #dc3545;
    font-weight: 600;
}

/* Sheet Tabs */
.excel-sheet-tabs {
    display: flex;
    align-items: flex-end;
    background: #e0e0e0;
    padding: 4px 8px 0;
    gap: 2px;
}

.excel-sheet-tab {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px 4px 0 0;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    border: 1px solid #c0c0c0;
    border-bottom: none;
}

.excel-sheet-tab.active {
    background: white;
    color: #333;
    font-weight: 500;
}

.excel-sheet-tab-add {
    padding: 4px 8px;
    color: #888;
    cursor: pointer;
    font-size: 12px;
}

/* Status Bar */
.excel-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #217346;
    padding: 3px 12px;
    color: white;
    font-size: 10px;
}

.excel-status-left {
    opacity: 0.9;
}

.excel-zoom {
    opacity: 0.8;
}

/* Decorative Elements */
.excel-mockup-shadow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
}

.excel-mockup-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

/* Preview Notice */
.excel-preview-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.excel-preview-notice .notice-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.excel-preview-notice p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.excel-preview-notice strong {
    color: white;
}


/* =====================================================
   ExcelSchweiz — cs-* search (header + hero + mobile)
   ===================================================== */
.cs-find { position: relative; }
.cs-find--header { display: none; }
@media (min-width: 768px) {
  .cs-find--header { display: flex; align-items: center; max-width: 30rem; margin-left: 2.5rem; margin-right: 2.5rem; flex: 1; }
}
@media (max-width: 1100px) {
  .cs-find--header { margin-left: 1.25rem; margin-right: 1.25rem; }
}
.cs-find__input {
  width: 100%; padding: 0.6rem 0.9rem 0.6rem 2.5rem;
  font-size: 0.9rem; color: var(--cs-slate);
  background: #fff; border: 1.5px solid #e3e5e8; border-radius: 0.65rem;
  outline: none; transition: box-shadow .15s, border-color .15s; -webkit-appearance: none;
}
.cs-find__input:focus { border-color: var(--cs-red); box-shadow: 0 0 0 3px rgba(213,43,30,.16); background:#fff; }
.cs-find__icon { position:absolute; left:0.85rem; top:50%; transform:translateY(-50%); width:1.05rem; height:1.05rem; color:#9ca3af; pointer-events:none; }
.cs-find__submit { position:absolute; right:0.4rem; top:50%; transform:translateY(-50%); background:transparent; border:0; cursor:pointer; padding:0.3rem; color:#9ca3af; display:flex; align-items:center; }
.cs-find__submit:hover { color: var(--cs-red); }
/* hero variant */
.cs-find--hero { max-width: 40rem; margin: 0 auto 2rem; }
.cs-find--hero .cs-find__input { padding: 1.05rem 8rem 1.05rem 3rem; font-size: 1.02rem; border: 0; border-radius: 0.85rem; box-shadow: 0 22px 44px -14px rgba(0,0,0,.4); }
.cs-find--hero .cs-find__icon { left: 1.15rem; width: 1.3rem; height: 1.3rem; }
.cs-find__btn { position:absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); background: var(--cs-red); color:#fff; font-weight:600; border:0; border-radius:0.6rem; padding:0.65rem 1.5rem; cursor:pointer; transition: background .15s; }
.cs-find__btn:hover { background: var(--cs-red-dark); }
/* mobile variant */
.cs-find--mobile { padding: 0 0.5rem 0.6rem; display:block; }

/* cs-nav (desktop primary nav spacing — compiled tailwind lacks space-x-*) */
.cs-nav { gap: 1.75rem; }
.cs-nav > ul { display:flex; align-items:center; gap:1.75rem; margin:0; padding:0; list-style:none; }
.cs-nav > ul > a, .cs-nav > ul > li { white-space: nowrap; }

/* =====================================================
   cs-* structural components (purge-safe layout rules)
   ===================================================== */

/* Brand wordmark (header + footer) */
.cs-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.cs-brand__mark { display: inline-flex; flex-shrink: 0; }
.cs-brand__name { font-weight: 700; letter-spacing: -0.01em; }
.cs-brand__name .cs-brand__accent { color: var(--cs-red); }

/* Card (replaces donor "bg-white rounded-lg shadow-sm border border-gray-100 overflow-hidden") */
.cs-card {
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: 0.95rem;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 1px rgba(16,24,40,.02);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.cs-card:hover { box-shadow: 0 18px 40px -20px rgba(16,24,40,.22); border-color: #d9dde2; transform: translateY(-2px); }
.cs-card--flat { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.cs-card--flat:hover { box-shadow: 0 1px 2px rgba(16,24,40,.04); border-color: var(--cs-border); transform: none; }

/* Template grid — divergent responsive shape (2 / 2 / 4 instead of donor 1/2/3) */
.cs-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 1.75rem; }
@media (min-width: 640px) { .cs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .cs-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; } }

/* Template card category pill — refined chip */
.cs-card .inline-block.rounded-full { letter-spacing:.02em; padding-top:.3rem; padding-bottom:.3rem; box-shadow:0 1px 2px rgba(16,24,40,.12); }

/* Category grid — auto-fit tiles (divergent from donor 6-col) */
.cs-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 640px) { .cs-cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .cs-cat-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 1.25rem; } }
.cs-cat-grid .cs-card > div:first-child { transition: transform .18s ease; }
.cs-cat-grid .cs-card:hover > div:first-child { transform: translateY(-2px) scale(1.04); }

/* Feature row — divergent 2-up that becomes a 4 strip on xl */
.cs-feat-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 2rem; }
@media (min-width: 768px) { .cs-feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1280px) { .cs-feat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* Single landing two-column layout (content + sticky aside) */
.cs-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .cs-layout { grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; } }

/* Archive layout (aside + main) */
.cs-archive { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .cs-archive { grid-template-columns: 17rem minmax(0,1fr); } }

/* vertical rhythm helpers (purge-safe) */
.cs-stack > * + * { margin-top: 3rem; }
.cs-stack-sm > * + * { margin-top: 1rem; }

/* Section helpers */
.cs-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 1024px) { .cs-section { padding-top: 6rem; padding-bottom: 6rem; } }
.cs-wrap { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .cs-wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .cs-wrap { padding-left: 2rem; padding-right: 2rem; } }
.cs-wrap--narrow { max-width: 56rem; }

/* Hero (restructured) */
.cs-hero { position: relative; background: linear-gradient(135deg, #9e1f16 0%, #C9281C 52%, #E0392B 100%); color: #fff; overflow: hidden; }
.cs-hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 16% 18%, rgba(255,255,255,.12) 0, transparent 42%), radial-gradient(circle at 86% 90%, rgba(0,0,0,.10) 0, transparent 46%); pointer-events:none; }
.cs-hero__inner { position: relative; max-width: 52rem; margin: 0 auto; padding: 5rem 1rem; text-align: center; }
@media (min-width: 1024px) { .cs-hero__inner { padding: 7rem 2rem; } }
.cs-hero__inner h1 { font-size: clamp(2.25rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 1.35rem; }
.cs-hero__inner p { color: rgba(255,255,255,.9); }
.cs-hero__eyebrow { display:inline-flex; align-items:center; gap:.5rem; font-size:.78rem; font-weight:600; text-transform:uppercase; letter-spacing:.09em; color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); padding:.4rem .9rem; border-radius:999px; margin-bottom:1.6rem; backdrop-filter: blur(4px); }
.cs-hero__stats { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1.5rem; max-width:36rem; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.16); }
.cs-hero__stat-num { font-size:2rem; font-weight:800; line-height:1.1; letter-spacing:-0.02em; }
.cs-hero__stat-lbl { font-size:.83rem; color: rgba(255,255,255,.8); margin-top:.3rem; }

/* Internal page hero (slimmer, swiss-cross tinted) */
.cs-pagehero { position: relative; background: linear-gradient(135deg, #8E1C14 0%, #C9281C 100%); color:#fff; overflow:hidden; }
.cs-pagehero__inner h1 { letter-spacing:-0.025em; line-height:1.1; }
.cs-pagehero::after { content:""; position:absolute; top:-30%; right:-6%; width:340px; height:340px; opacity:.10;
  background:
    linear-gradient(#fff,#fff) 50% 50% / 26% 100% no-repeat,
    linear-gradient(#fff,#fff) 50% 50% / 100% 26% no-repeat; }
.cs-pagehero__inner { position: relative; max-width: 56rem; margin: 0 auto; padding: 3.5rem 1rem; }
@media (min-width: 1024px) { .cs-pagehero__inner { padding: 4.5rem 2rem; } }

/* FAQ accordion item */
.cs-faq-item { background:#fff; border:1px solid var(--cs-border); border-radius:0.85rem; overflow:hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.cs-faq-item:hover { border-color:#d9dde2; box-shadow:0 4px 14px -8px rgba(16,24,40,.12); }
.cs-faq-item + .cs-faq-item { margin-top: 0.85rem; }
.cs-faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.2rem 1.4rem; text-align:left; font-weight:600; color: var(--cs-slate); background:#fff; border:0; cursor:pointer; transition: background .15s; }
.cs-faq-q:hover { background: var(--cs-grey-light); }
.cs-faq-q svg { flex-shrink:0; color:#9ca3af; transition: transform .2s; }
.cs-faq-a { padding: 0 1.3rem 1.25rem; color: var(--cs-grey); }

/* Consent (cookie) banner */
.cs-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background:#fff; border-top: 3px solid var(--cs-red); box-shadow: 0 -8px 24px -12px rgba(16,24,40,.25); padding: 1rem; }
.cs-consent__inner { max-width: 80rem; margin: 0 auto; display:flex; flex-direction: column; gap: 1rem; align-items:center; }
@media (min-width: 640px) { .cs-consent__inner { flex-direction: row; justify-content: space-between; } }
.cs-consent__text { font-size:.875rem; color: var(--cs-grey); }
.cs-consent__text a { color: var(--cs-red); text-decoration: underline; }
.cs-consent__actions { display:flex; gap:.75rem; flex-shrink:0; }
.cs-btn { padding:.6rem 1.2rem; font-size:.875rem; font-weight:600; border-radius:.65rem; border:0; cursor:pointer; transition: background .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease; }
.cs-btn:active { transform: translateY(1px); }
.cs-btn--ghost { background: var(--cs-grey-light); color:#374151; border:1px solid var(--cs-border); }
.cs-btn--ghost:hover { background:#eceef0; }
.cs-btn--solid { background: var(--cs-red); color:#fff; box-shadow: 0 1px 2px rgba(213,43,30,.25); }
.cs-btn--solid:hover { background: var(--cs-red-dark); box-shadow: 0 4px 12px -2px rgba(213,43,30,.35); }

/* Author / E-E-A-T box */
.cs-author { display:flex; gap:1.1rem; align-items:flex-start; background:#fff; border:1px solid #E5E7EB; border-radius:1rem; padding:1.4rem; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.cs-author__av {
  width:5rem; height:5rem; border-radius:999px; overflow:hidden; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--cs-red); color:#fff; font-weight:700; font-size:1.15rem;
  box-shadow:0 0 0 3px #fff, 0 0 0 4px #F1D4D1; }
.cs-author__av img, .cs-author__img { width:100%; height:100%; object-fit:cover; border-radius:999px; display:block; }

/* =====================================================
   Swiss identity — override Tailwind blue palette -> red
   (donor hard-codes blue utilities; force them red)
   ===================================================== */
.text-blue-900, .text-blue-800, .text-blue-700, .text-blue-600 { color: var(--cs-red) !important; }
.text-blue-200, .text-blue-100 { color: #FCE3E0 !important; }
.bg-blue-900 { background-color: var(--cs-red-darker) !important; }
.bg-blue-800 { background-color: var(--cs-red-dark) !important; }
.bg-blue-700 { background-color: var(--cs-red-dark) !important; }
.bg-blue-600 { background-color: var(--cs-red) !important; }
.bg-blue-100 { background-color: #FCE3E0 !important; }
.bg-blue-50  { background-color: #FDF1F0 !important; }
.border-blue-600 { border-color: var(--cs-red) !important; }
.border-blue-200 { border-color: #F6CFCB !important; }
.from-blue-900 { --tw-gradient-from: var(--cs-red-darker) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(142,28,20,0)) !important; }
.via-blue-800 { --tw-gradient-stops: var(--tw-gradient-from), var(--cs-red-dark), var(--tw-gradient-to, rgba(176,36,26,0)) !important; }
.from-blue-600 { --tw-gradient-from: var(--cs-red) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(213,43,30,0)) !important; }
.to-blue-700 { --tw-gradient-to: var(--cs-red-dark) !important; }
.hover\:bg-blue-700:hover, .hover\:bg-blue-600:hover { background-color: var(--cs-red-dark) !important; }
.hover\:bg-blue-50:hover { background-color: #FDF1F0 !important; }
.hover\:text-blue-700:hover, .hover\:text-blue-600:hover { color: var(--cs-red) !important; }
.hover\:border-blue-200:hover { border-color: #F6CFCB !important; }
.group:hover .group-hover\:text-blue-600 { color: var(--cs-red) !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: var(--cs-red) !important; }
.focus\:border-blue-500:focus { border-color: var(--cs-red) !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.12) !important; }

/* =====================================================
   Swiss-red arbitrary utilities (source now uses [#hex];
   purged Tailwind build lacks these — define explicitly)
   ===================================================== */
.bg-\[\#D52B1E\] { background-color: #D52B1E; }
.bg-\[\#B0231A\] { background-color: #B0231A; }
.bg-\[\#FDECEA\] { background-color: #FDECEA; }
.text-\[\#D52B1E\] { color: #D52B1E; }
.text-\[\#B0231A\] { color: #B0231A; }
.text-\[\#FBD9D5\] { color: #FBD9D5; }
.border-\[\#FBD9D5\] { border-color: #FBD9D5; }
.hover\:bg-\[\#B0231A\]:hover { background-color: #B0231A; }
.hover\:bg-\[\#FDECEA\]:hover { background-color: #FDECEA; }
.hover\:text-\[\#D52B1E\]:hover { color: #D52B1E; }
.hover\:text-\[\#B0231A\]:hover { color: #B0231A; }
.group:hover .group-hover\:text-\[\#D52B1E\] { color: #D52B1E; }
.from-\[\#D52B1E\] { --tw-gradient-from: #D52B1E; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(213,43,30,0)); }
.to-\[\#B0231A\] { --tw-gradient-to: #B0231A; }
.prose-a\:text-\[\#D52B1E\] :where(a):not(:where([class~="not-prose"] *)) { color: #D52B1E; }

/* Font + prose link colour (Geist + Swiss red) */
.font-sans, body { font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.prose a { color: var(--cs-red); }

/* Footer layout (divergent from donor 4-col) */
.cs-footer-top { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .cs-footer-top { grid-template-columns: 1.4fr 2fr; align-items: start; } }
.cs-footer-links { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .cs-footer-links { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Feature item (left-aligned, divergent from donor centered cards) */
.cs-feat { padding-left: 1.4rem; border-left: 2px solid #F1D4D1; transition: border-color .18s ease; }
.cs-feat:hover { border-left-color: var(--cs-red); }
.cs-feat__icon { width: 3rem; height: 3rem; border-radius: 0.8rem; background: #FDECEA; display:flex; align-items:center; justify-content:center; margin-bottom: 1.1rem; box-shadow: inset 0 0 0 1px rgba(213,43,30,.08); }
.cs-feat h3 { letter-spacing:-0.01em; }

/* Content panel (single landing benefit block) */
.cs-panel { background: #fff; border: 1px solid var(--cs-border); border-left: 3px solid var(--cs-red); border-radius: 0.95rem; padding: 1.9rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); }

/* E-E-A-T two-author box (single-muster) */
.cs-authorbox{margin-top:2.5rem;padding-top:2rem;border-top:1px solid #E5E7EB}

/* Hero byline avatars */
.cs-herobyline__av{width:36px;height:36px;border-radius:9999px;object-fit:cover;border:2px solid rgba(255,255,255,.7)}
