/**
 * Excel Canada Theme Custom Styles
 */

/* 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: #D80621; color: white; border-color: #D80621; }
.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: #D80621; }
.current-menu-item a { color: #D80621; }

/* 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 */
.ec-faq-q[aria-expanded="true"] .ec-faq-chevron { transform: rotate(180deg); }

/* Download Button Animation */
.download-btn { position: relative; overflow: hidden; }
.download-btn::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;
}
.download-btn:active::after { width: 200px; height: 200px; }

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

/* Cookie Banner Animation */
#cookie-banner.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: #2563eb;
    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: #1d4ed8; transform: translateY(-2px); }
#scroll-to-top.show { display: flex; }

/* Print Styles */
@media print {
    header, footer, .download-btn, #cookie-banner, #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 #2563eb;
    outline-offset: 2px;
}

/* 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;
}

/* ═══════════════════════════════════════════════════
   Excel Canada — masthead (header) — ec-*
   ═══════════════════════════════════════════════════ */
.ec-masthead { box-shadow: 0 1px 0 rgba(17,24,39,.06), 0 2px 8px -4px rgba(17,24,39,.12); border-bottom: 3px solid #D80621; }
.ec-masthead-bar { display: flex; align-items: center; gap: 1.25rem; height: 4.25rem; }
.ec-brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; text-decoration: none; }
.ec-brand-mark { color: #D80621; display: inline-flex; }
.ec-brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: #1f2937; }
.ec-nav { flex: 1; }
.ec-nav-list { display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.ec-nav-list li { white-space: nowrap; }
.ec-masthead-actions { gap: 0.75rem; }
.ec-cta { white-space: nowrap; }

/* Find (search) — ec-find */
.ec-find { position: relative; display: flex; }
.ec-find-field {
  width: 100%; padding: 0.55rem 2.6rem 0.55rem 0.9rem;
  font-size: 0.875rem; color: #111827;
  background: #f4f5f7; border: 1px solid #e5e7eb; border-radius: 0.6rem;
  outline: none; transition: box-shadow .15s, border-color .15s; -webkit-appearance: none;
}
.ec-find-field:focus { border-color: #D80621; box-shadow: 0 0 0 3px rgba(216,6,33,.16); background: #fff; }
.ec-find-go {
  position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer; padding: 0.35rem;
  color: #9ca3af; display: flex; align-items: center;
}
.ec-find-go svg { width: 1.1rem; height: 1.1rem; }
.ec-find-go:hover { color: #D80621; }
.ec-find--bar { width: 18rem; }
@media (max-width: 1100px) { .ec-find--bar { width: 12rem; } }

/* Hero search variant */
.ec-find--hero { flex: 1; }
.ec-find--hero .ec-find-field {
  padding: 1rem 7rem 1rem 1.4rem; font-size: 1rem; background: #fff; border: 0;
  border-radius: 0.85rem; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
}
.ec-find--hero .ec-find-go {
  right: 0.45rem; width: auto; padding: 0.6rem 1.4rem;
  background: #D80621; color: #fff; font-weight: 700; border-radius: 0.6rem;
  transition: background .15s;
}
.ec-find--hero .ec-find-go:hover { background: #A4051A; color: #fff; }

/* mobile drawer */
.ec-drawer { padding: 0.75rem 1rem 1rem; border-top: 1px solid #f0f1f3; }
.ec-find--stack { margin-bottom: 0.75rem; }
.ec-drawer-list { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.ec-drawer-list li a, .ec-drawer-list a { display: block; padding: 0.55rem 0.75rem; color: #374151; border-radius: 0.5rem; }
.ec-drawer-list li a:hover, .ec-drawer-list a:hover { background: #f3f4f6; }

/* ═══════════════════════════════════════════════════
   Hero — ec-hero
   ═══════════════════════════════════════════════════ */
.ec-hero { background: linear-gradient(135deg, #7A0414 0%, #A4051A 45%, #D80621 100%); }
.ec-hero-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #FDA4AF; margin-bottom: 0.9rem; }
.ec-hero-title { margin: 0 0 1.1rem; }
.ec-hero-sub { margin: 0; max-width: 44rem; }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: stretch; margin: 2.25rem 0 2.5rem; }
.ec-hero-actions .ec-find--hero { min-width: 16rem; }
.ec-hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.ec-hero-stats li { display: flex; flex-direction: column; }
.ec-hero-stats strong { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.ec-hero-stats span { font-size: 0.85rem; color: #FDA4AF; }

/* shared section heading (left aligned, anti-footprint vs donor centered) */
.ec-section-head { text-align: left; }
.ec-section-head h2 { margin: 0; }

/* ═══════════════════════════════════════════════════
   Categories — ec-cats (auto-fit grid, different from donor 6-col)
   ═══════════════════════════════════════════════════ */
.ec-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ec-cat-tile {
  display: flex; align-items: center; gap: 0.9rem;
  background: #fff; border: 1px solid #eef0f2; border-left: 4px solid #D80621;
  border-radius: 0.75rem; padding: 1rem 1.1rem; text-decoration: none;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.ec-cat-tile:hover { box-shadow: 0 12px 24px -12px rgba(17,24,39,.22); transform: translateY(-2px); }
.ec-cat-icon { flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; }
.ec-cat-body { display: flex; flex-direction: column; }
.ec-cat-name { line-height: 1.2; }

/* ═══════════════════════════════════════════════════
   Features — ec-features (icon-left rows, not centered)
   ═══════════════════════════════════════════════════ */
.ec-features-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .ec-features-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; } }
.ec-feature { display: flex; gap: 1rem; align-items: flex-start; }
.ec-feature-icon { flex-shrink: 0; width: 3.25rem; height: 3.25rem; border-radius: 0.85rem; display: flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════════════════
   Reusable card — ec-card (replaces donor card class string)
   ═══════════════════════════════════════════════════ */
.ec-card { background: #fff; border: 1px solid #eef0f2; border-radius: 0.85rem; box-shadow: 0 1px 2px rgba(17,24,39,.05); overflow: hidden; }

/* Template grid: 4-up auto on wide (differs from donor 3-col) */
.ec-tpl-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .ec-tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ec-tpl-grid { grid-template-columns: repeat(3, 1fr); } }

/* Template card */
.ec-tpl-card { display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.ec-tpl-card:hover { box-shadow: 0 16px 32px -16px rgba(17,24,39,.25); transform: translateY(-2px); }
.ec-tpl-card-top { padding: 0.8rem 1.25rem 0; border-left: 3px solid #D80621; }
.ec-tpl-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ec-tpl-card-body { padding: 0.6rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ec-tpl-title { margin: 0 0 0.4rem; }
.ec-tpl-desc { margin: 0 0 1rem; flex: 1; }
.ec-tpl-meta { display: flex; align-items: center; justify-content: space-between; }
.ec-tpl-downloads { display: inline-flex; align-items: center; gap: 0.25rem; }
.ec-tpl-mini { padding: 1rem; transition: box-shadow .2s; }
.ec-tpl-mini:hover { box-shadow: 0 8px 16px -8px rgba(17,24,39,.2); }

.ec-related-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .ec-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ec-related-grid { grid-template-columns: repeat(4, 1fr); } }

/* ═══════════════════════════════════════════════════
   FAQ accordion — ec-faq (separated cards, chevron)
   ═══════════════════════════════════════════════════ */
.ec-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ec-faq-item { background: #fff; border: 1px solid #eef0f2; border-radius: 0.75rem; overflow: hidden; }
.ec-faq-h { margin: 0; }
.ec-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem; text-align: left; font: inherit; font-weight: 600; color: #111827; background: none; border: 0; cursor: pointer; }
.ec-faq-q:hover { background: #f9fafb; }
.ec-faq-chevron { width: 1.25rem; height: 1.25rem; color: #9ca3af; flex-shrink: 0; transition: transform .2s; }
.ec-faq-a { padding: 0 1.25rem 1.25rem; color: #4b5563; }

/* ═══════════════════════════════════════════════════
   Cookie consent — ec-consent (keeps #cookie-banner / button IDs)
   ═══════════════════════════════════════════════════ */
.ec-consent { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 50; background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid #D80621; border-radius: 0.85rem; box-shadow: 0 18px 40px -14px rgba(17,24,39,.35); padding: 1rem 1.25rem; max-width: 56rem; margin: 0 auto; }
.ec-consent-inner { display: flex; flex-direction: column; gap: 0.85rem; }
@media (min-width: 768px) { .ec-consent-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.ec-consent-text { margin: 0; }
.ec-consent-buttons { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* footer brand top band */
.ec-footer-top { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid #1f2937; }
.ec-footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.ec-footer-mark { color: #D80621; display: inline-flex; }
.ec-footer-name { font-size: 1.3rem; font-weight: 800; color: #fff; }
.ec-footer-tagline { margin: 0; font-size: 0.9rem; color: #9ca3af; max-width: 36rem; }

/* ═══════════════════════════════════════════════════
   Canadian identity — red #D80621 + white
   Overrides every Tailwind blue used in markup
   ═══════════════════════════════════════════════════ */
:root { --avg-primary: #A4051A; --avg-secondary: #D80621; }
.from-blue-900 { --tw-gradient-from: #A4051A !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(164,5,26,0)) !important; }
.via-blue-800 { --tw-gradient-stops: var(--tw-gradient-from), #BE0820, var(--tw-gradient-to, rgba(190,8,32,0)) !important; }
.to-blue-700 { --tw-gradient-to: #D80621 !important; }
.from-blue-600 { --tw-gradient-from: #D80621 !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(216,6,33,0)) !important; }
.bg-blue-600 { background-color: #D80621 !important; }
.hover\:bg-blue-700:hover { background-color: #A4051A !important; }
.bg-blue-700 { background-color: #A4051A !important; }
.bg-blue-800 { background-color: #A4051A !important; }
.bg-blue-900 { background-color: #7A0414 !important; }
.text-blue-600 { color: #D80621 !important; }
.text-blue-700 { color: #A4051A !important; }
.hover\:text-blue-600:hover { color: #D80621 !important; }
.hover\:text-blue-700:hover { color: #A4051A !important; }
.text-blue-100 { color: #FECDD3 !important; }
.text-blue-200 { color: #FDA4AF !important; }
.bg-blue-100 { background-color: #FCE4E6 !important; }
.bg-blue-50 { background-color: #FFF1F2 !important; }
.border-blue-200 { border-color: #F7C9CF !important; }
.border-blue-600 { border-color: #D80621 !important; }
.hover\:bg-blue-50:hover { background-color: #FFF1F2 !important; }
.hover\:bg-blue-600:hover { background-color: #D80621 !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: #D80621 !important; }
.bg-white\/10 { background-color: rgba(255,255,255,0.12) !important; }

/* scroll-to-top + focus ring in brand red */
#scroll-to-top { background: #D80621; }
#scroll-to-top:hover { background: #A4051A; }
:focus-visible { outline-color: #D80621; }

/* Accent icon-tile colours used on About / Contact (absent from purged tailwind) */
.bg-green-100 { background-color: #dcfce7; }
.bg-purple-100 { background-color: #f3e8ff; }
.text-purple-600 { color: #9333ea; }
.bg-orange-100 { background-color: #ffedd5; }
.text-orange-600 { color: #ea580c; }

/* ═══════════════════════════════════════════════════
   Inner-template design system — ec-* (matches homepage)
   Canadian red #D80621 / #A4051A + white, slate greys.
   Built so internal templates need NO blue-* classes.
   ═══════════════════════════════════════════════════ */

/* Page / single hero band (red gradient, same language as ec-hero) */
.ec-page-hero { background: linear-gradient(135deg, #7A0414 0%, #A4051A 45%, #D80621 100%); color: #fff; }
.ec-page-hero-inner { max-width: 56rem; margin: 0 auto; padding: 4rem 1rem; }
@media (min-width: 640px) { .ec-page-hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .ec-page-hero-inner { padding-left: 2rem; padding-right: 2rem; } }
.ec-page-hero-title { margin: 0 0 1rem; font-size: 2.25rem; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 1024px) { .ec-page-hero-title { font-size: 3rem; } }
.ec-page-hero-sub { margin: 0 auto; max-width: 42rem; font-size: 1.2rem; line-height: 1.6; color: #FECDD3; }
.ec-page-hero-meta { margin-top: 1rem; font-size: 0.85rem; color: #FDA4AF; }

/* Content card panels on legal / page templates */
.ec-panel { background: #fff; border: 1px solid #eef0f2; border-radius: 0.85rem; box-shadow: 0 1px 2px rgba(17,24,39,.05); padding: 2rem; }
@media (min-width: 1024px) { .ec-panel { padding: 3rem; } }
.ec-panel + .ec-panel { margin-top: 2rem; }
.ec-panel-accent { background: #FFF1F2; border: 1px solid #F7C9CF; border-radius: 0.85rem; padding: 2rem; }
@media (min-width: 1024px) { .ec-panel-accent { padding: 3rem; } }

/* Icon tile (about/contact rows) in brand red */
.ec-itile { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 0.7rem; display: flex; align-items: center; justify-content: center; background: #FCE4E6; color: #D80621; }
.ec-itile svg { width: 1.5rem; height: 1.5rem; }
.ec-itile-lg { width: 4rem; height: 4rem; border-radius: 9999px; font-size: 1.25rem; font-weight: 700; }

/* Primary red button + outline button (replace donor blue/white pairs) */
.ec-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: 0.6rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s; }
.ec-btn-red { background: #D80621; color: #fff; box-shadow: 0 10px 20px -10px rgba(216,6,33,.6); }
.ec-btn-red:hover { background: #A4051A; color: #fff; }
.ec-btn-outline { background: #fff; color: #D80621; border: 1px solid #F7C9CF; }
.ec-btn-outline:hover { background: #FFF1F2; color: #A4051A; }
.ec-btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* Download CTA — green stays as the action accent, robust hover */
.ec-dl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; border-radius: 0.6rem; font-size: 1.125rem; font-weight: 700; color: #fff; background: #16a34a; box-shadow: 0 12px 24px -10px rgba(22,163,74,.6); text-decoration: none; transition: background .15s; }
.ec-dl-btn:hover { background: #15803d; color: #fff; }
.ec-dl-btn--block { width: 100%; padding: 0.85rem 1.5rem; font-size: 1rem; }

/* Single template hero meta pills */
.ec-tpl-hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.ec-tpl-hero-meta > span { display: inline-flex; align-items: center; gap: 0.4rem; color: #FECDD3; }
.ec-tpl-hero-cat { display: inline-flex; align-items: center; padding: 0.25rem 0.85rem; border-radius: 9999px; font-size: 0.875rem; background: rgba(255,255,255,.14); color: #fff; margin-bottom: 1rem; transition: background .15s; }
.ec-tpl-hero-cat:hover { background: rgba(255,255,255,.24); color: #fff; }
.ec-tpl-hero-art { border-radius: 0.85rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); }

/* CTA band (red) reused on inner templates */
.ec-cta-red { background: linear-gradient(90deg, #D80621 0%, #A4051A 100%); }

/* Section heading helpers reused inside templates */
.ec-h-section { font-size: 1.5rem; font-weight: 700; color: #111827; }

/* Archive sidebar active filter (red pill) */
.ec-filter-active { background: #FFF1F2; color: #A4051A; font-weight: 600; }

/* Prose links to brand red (tailwind build hardcodes .prose a blue #2563eb) */
.prose a { color: #D80621; }
.prose a:hover { color: #A4051A; }

/* Brand-red utilities used directly in inner markup (absent from purged build) */
.text-red-600 { color: #D80621; }
.text-red-700 { color: #A4051A; }
.hover\:text-red-600:hover { color: #D80621; }
.hover\:text-red-700:hover { color: #A4051A; }
.group:hover .group-hover\:text-red-600 { color: #D80621; }
.bg-red-50 { background-color: #FFF1F2; }

/* === Override COMPLETO azul->rojo (variantes y tonos que faltaban) — identidad CA === */
.text-blue-100,.text-blue-200,.text-blue-300{color:#fbd5d9!important}
.text-blue-400,.text-blue-500,.text-blue-600,.text-blue-700,.text-blue-800,.text-blue-900{color:#D80621!important}
.bg-blue-50{background-color:#fdf2f3!important}
.bg-blue-100{background-color:#fbd5d9!important}
.bg-blue-200,.bg-blue-300,.bg-blue-400,.bg-blue-500,.bg-blue-600,.bg-blue-700,.bg-blue-800,.bg-blue-900{background-color:#D80621!important}
.border-blue-100,.border-blue-200,.border-blue-600,.border-blue-700{border-color:#D80621!important}
.hover\:text-blue-600:hover,.hover\:text-blue-700:hover{color:#D80621!important}
.hover\:bg-blue-700:hover,.hover\:bg-blue-800:hover{background-color:#A4051A!important}
.group:hover .group-hover\:text-blue-600{color:#D80621!important}
.from-blue-600,.from-blue-700,.from-blue-800,.from-blue-900{--tw-gradient-from:#D80621!important}
.via-blue-700,.via-blue-800{--tw-gradient-via:#A4051A!important}
.to-blue-600,.to-blue-700,.to-blue-800,.to-blue-900{--tw-gradient-to:#A4051A!important}
.ring-blue-500,.ring-blue-600,.focus\:ring-blue-500:focus{--tw-ring-color:#D80621!important}
