/* =====================================================
   Immobilien Vorlagen — bespoke iv-* design system
   Palette: anthracite/navy #1E293B + copper #B45309 + slate + white
   Font: Albert Sans (fallback Mulish)
   ===================================================== */

:root {
    --iv-primary: #1E293B;      /* deep anthracite/navy */
    --iv-primary-700: #0F172A;  /* darker */
    --iv-primary-600: #334155;  /* slate-700 */
    --iv-accent: #B45309;       /* warm copper/amber */
    --iv-accent-600: #92400E;   /* darker copper */
    --iv-accent-50: #FEF3E2;    /* copper tint */
    --iv-ink: #0F172A;
    --iv-body: #334155;
    --iv-muted: #64748B;        /* slate-500 */
    --iv-line: #E2E8F0;         /* slate-200 */
    --iv-surface: #FFFFFF;
    --iv-tint: #F8FAFC;         /* slate-50 */
    --iv-tint-2: #F1F5F9;       /* slate-100 */
    --iv-radius: 16px;
    --iv-radius-sm: 10px;
    --iv-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.18);
    --iv-shadow-lg: 0 24px 60px -24px rgba(15,23,42,.35);
}

.iv-body {
    background: var(--iv-surface);
    color: var(--iv-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.iv-body a { color: var(--iv-accent); text-decoration: none; }
.iv-body a:hover { color: var(--iv-accent-600); }

img { max-width: 100%; height: auto; }

/* ---- Layout shell ---- */
.iv-shell { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.iv-shell--narrow { max-width: 880px; }

.iv-section { padding: 56px 0; }
.iv-section--tint { background: var(--iv-tint); }

.iv-section__head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.iv-section__head--left { margin-left: 0; text-align: left; }
.iv-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; text-align: left; margin-bottom: 32px; }
.iv-section__title { font-size: 1.9rem; line-height: 1.2; font-weight: 800; color: var(--iv-ink); letter-spacing: -.02em; }
.iv-section__title--sm { font-size: 1.5rem; margin-bottom: 24px; }
.iv-section__lead { margin-top: 12px; font-size: 1.05rem; color: var(--iv-muted); }

.iv-skip-link { position: absolute; left: -9999px; }
.iv-skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--iv-primary); color: #fff; padding: 10px 16px; border-radius: 8px; }

/* =====================================================
   HEADER (two-tier: brand+nav bar, then search strip)
   ===================================================== */
.iv-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--iv-line); }
.iv-header__bar { background: var(--iv-primary); }
.iv-header__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.iv-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.iv-brand__logo { height: 38px; width: auto; max-width: none; }
.iv-brand__mark { display: inline-flex; flex-shrink: 0; }
.iv-brand__mark img, .iv-brand__mark svg { max-width: none; }
.iv-brand__name { color: #fff; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; white-space: nowrap; }

.iv-nav { display: none; align-items: center; gap: 22px; }
.iv-nav__list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.iv-nav__link { color: #CBD5E1; font-weight: 600; font-size: .95rem; white-space: nowrap; transition: color .15s; }
.iv-nav__link:hover { color: #fff; }
.iv-nav__cta { background: var(--iv-accent); color: #fff !important; font-weight: 700; padding: 9px 18px; border-radius: 9px; white-space: nowrap; transition: background .15s; }
.iv-nav__cta:hover { background: var(--iv-accent-600); }

.iv-nav__burger { display: inline-flex; padding: 8px; border-radius: 8px; color: #fff; background: transparent; border: 0; cursor: pointer; }
.iv-nav__burger:hover { background: rgba(255,255,255,.12); }

.iv-header__search { display: none; background: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.iv-header__search .iv-shell { padding-top: 12px; padding-bottom: 12px; }

@media (min-width: 768px) {
    .iv-nav { display: flex; }
    .iv-nav__burger { display: none; }
    .iv-header__search { display: block; }
}

/* ---- Mobile panel ---- */
.iv-mobile { background: #fff; border-top: 1px solid var(--iv-line); padding: 14px 20px 18px; }
.iv-mobile.hidden { display: none; }
.iv-mobile__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.iv-mobile__link { display: block; padding: 11px 12px; border-radius: 9px; color: var(--iv-ink); font-weight: 600; }
.iv-mobile__link:hover { background: var(--iv-tint-2); color: var(--iv-ink); }
.iv-mobile__cta { display: block; margin-top: 10px; text-align: center; background: var(--iv-accent); color: #fff !important; font-weight: 700; padding: 11px 16px; border-radius: 9px; }

/* =====================================================
   SEARCH (iv-find)
   ===================================================== */
.iv-find { position: relative; display: flex; align-items: center; }
.iv-find__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--iv-muted); pointer-events: none; }
.iv-find__input {
    width: 100%; min-width: 0; padding: 11px 16px 11px 42px;
    font-size: .95rem; color: var(--iv-ink);
    background: #fff; border: 1px solid var(--iv-line); border-radius: 11px;
    outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
}
.iv-find__input::placeholder { color: var(--iv-muted); }
.iv-find__input:focus { border-color: var(--iv-accent); box-shadow: 0 0 0 3px rgba(180,83,9,.16); }
.iv-find__submit {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: var(--iv-primary); color: #fff; font-weight: 700; border: 0;
    border-radius: 8px; padding: 8px 18px; cursor: pointer; transition: background .15s; white-space: nowrap;
}
.iv-find__submit:hover { background: var(--iv-primary-700); }
.iv-find--bar .iv-find__submit { background: var(--iv-accent); }
.iv-find--bar .iv-find__submit:hover { background: var(--iv-accent-600); }

.iv-find--hero { max-width: 560px; margin: 26px 0 0; }
.iv-find--hero .iv-find__input { padding: 16px 116px 16px 48px; font-size: 1rem; border-radius: 13px; box-shadow: var(--iv-shadow); }
.iv-find--hero .iv-find__icon { left: 16px; width: 20px; height: 20px; }
.iv-find--hero .iv-find__submit { background: var(--iv-accent); padding: 10px 22px; }
.iv-find--hero .iv-find__submit:hover { background: var(--iv-accent-600); }
.iv-find--mobile { margin-bottom: 6px; }
.iv-find--side .iv-find__input--plain { padding-left: 16px; }
.iv-find--side .iv-find__icon { display: none; }

/* =====================================================
   HERO (homepage)
   ===================================================== */
.iv-hero { background: linear-gradient(160deg, var(--iv-primary-700) 0%, var(--iv-primary) 60%, var(--iv-primary-600) 100%); color: #fff; }
.iv-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 20px 64px; }
.iv-hero__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--iv-accent); margin-bottom: 16px; }
.iv-hero__title { font-size: 2.2rem; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.iv-hero__text { margin-top: 18px; font-size: 1.08rem; line-height: 1.7; color: #CBD5E1; max-width: 620px; }
.iv-hero__ghost { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 22px; border: 1px solid rgba(255,255,255,.28); border-radius: 11px; color: #fff !important; font-weight: 700; transition: background .15s; }
.iv-hero__ghost:hover { background: rgba(255,255,255,.12); }

.iv-hero__rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.iv-stat { min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 18px; }
.iv-stat__num { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; }
.iv-stat__label { display: block; margin-top: 4px; font-size: .85rem; color: #94A3B8; }
.iv-stat--note { grid-column: 1 / -1; background: transparent; border-style: dashed; }
.iv-stat--note .iv-stat__label { color: #CBD5E1; }

@media (min-width: 768px) {
    .iv-hero__title { font-size: 2.8rem; }
}
@media (min-width: 1024px) {
    .iv-hero__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 80px 20px; }
    .iv-hero__title { font-size: 3.1rem; }
    .iv-hero__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================
   FEATURES
   ===================================================== */
.iv-feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.iv-feat { display: flex; gap: 16px; align-items: flex-start; min-width: 0; background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 22px; box-shadow: var(--iv-shadow); }
.iv-feat__icon { flex-shrink: 0; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--iv-accent-50); color: var(--iv-accent); }
.iv-feat__body { min-width: 0; }
.iv-feat__title { font-size: 1.08rem; font-weight: 700; color: var(--iv-ink); margin-bottom: 6px; }
.iv-feat__text { color: var(--iv-muted); font-size: .96rem; }

@media (min-width: 640px) { .iv-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .iv-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================
   CATEGORY GRID (row cards — distinct shape)
   ===================================================== */
.iv-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.iv-cat { min-width: 0; }
.iv-cat__link { display: flex; align-items: center; gap: 14px; min-width: 0; background: #fff; border: 1px solid var(--iv-line); border-radius: 14px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.iv-cat__link:hover { border-color: var(--iv-accent); box-shadow: var(--iv-shadow); transform: translateY(-1px); }
.iv-cat__icon { flex-shrink: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.iv-cat__body { min-width: 0; flex: 1; }
.iv-cat__name { display: block; font-weight: 700; color: var(--iv-ink); overflow-wrap: anywhere; }
.iv-cat__count { display: block; font-size: .85rem; color: var(--iv-muted); }
.iv-cat__arrow { flex-shrink: 0; width: 18px; height: 18px; color: var(--iv-muted); }

@media (min-width: 640px) { .iv-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .iv-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =====================================================
   CARDS (templates)
   ===================================================== */
.iv-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 640px) { .iv-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .iv-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.iv-card-grid--three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .iv-card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .iv-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.iv-card-grid--four { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .iv-card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .iv-card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.iv-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); overflow: hidden; box-shadow: var(--iv-shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.iv-card:hover { border-color: var(--iv-accent); transform: translateY(-2px); box-shadow: var(--iv-shadow-lg); }
.iv-card__link { display: block; padding: 20px 20px 14px; min-width: 0; }
.iv-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.iv-card__tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; }
.iv-card__format { font-size: .72rem; font-weight: 700; color: var(--iv-muted); letter-spacing: .04em; }
.iv-card__title { font-size: 1.06rem; font-weight: 700; color: var(--iv-ink); line-height: 1.35; overflow-wrap: anywhere; }
.iv-card:hover .iv-card__title { color: var(--iv-accent); }
.iv-card__title--mini { font-size: .98rem; }
.iv-card__excerpt { margin-top: 8px; font-size: .9rem; color: var(--iv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iv-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 18px; margin-top: auto; }
.iv-card__foot--mini { padding: 14px 20px 16px; margin-top: 0; }
.iv-card__dl { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--iv-muted); }
.iv-card__more { font-size: .85rem; font-weight: 700; color: var(--iv-accent); }
.iv-card__free { font-size: .85rem; font-weight: 700; color: #15803D; }
.iv-card--mini .iv-card__link { padding: 18px; }

.iv-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--iv-accent); white-space: nowrap; }

/* =====================================================
   FAQ (iv-faq) — JS toggles .iv-faq-toggle
   ===================================================== */
.iv-faq { display: flex; flex-direction: column; gap: 12px; }
.iv-faq__item { background: #fff; border: 1px solid var(--iv-line); border-radius: 14px; overflow: hidden; }
.iv-faq-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; font-weight: 700; color: var(--iv-ink); background: transparent; border: 0; cursor: pointer; font-size: 1rem; }
.iv-faq-toggle:hover { background: var(--iv-tint); }
.iv-faq__chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--iv-muted); transition: transform .2s; }
.iv-faq-toggle[aria-expanded="true"] .iv-faq__chevron { transform: rotate(180deg); }
.iv-faq__panel { padding: 0 20px 20px; color: var(--iv-body); }
.iv-faq__panel.hidden { display: none; }

/* =====================================================
   CTA band
   ===================================================== */
.iv-cta { background: linear-gradient(120deg, var(--iv-primary) 0%, var(--iv-primary-700) 100%); }
.iv-cta__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 48px 20px; }
.iv-cta__title { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.iv-cta__lead { margin-top: 12px; color: #CBD5E1; font-size: 1.02rem; }
.iv-cta__note { margin-top: 12px; font-size: .85rem; color: #94A3B8; }
.iv-cta__btn { display: inline-flex; align-items: center; gap: 10px; justify-self: start; background: var(--iv-accent); color: #fff !important; font-weight: 700; padding: 14px 26px; border-radius: 12px; white-space: nowrap; transition: background .15s; }
.iv-cta__btn:hover { background: var(--iv-accent-600); }
@media (min-width: 900px) { .iv-cta__inner { grid-template-columns: minmax(0, 1fr) auto; padding: 56px 20px; } .iv-cta__btn { justify-self: end; } }

/* =====================================================
   SINGLE — hero, byline, content, sidebar, authors
   ===================================================== */
.iv-single-hero { background: linear-gradient(160deg, var(--iv-primary-700) 0%, var(--iv-primary) 65%); color: #fff; }
.iv-single-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px 20px 52px; align-items: center; }
.iv-single-hero__cat { display: inline-block; margin: 14px 0 0; padding: 5px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.12); color: #fff !important; }
.iv-single-hero__title { font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-top: 16px; overflow-wrap: anywhere; }
.iv-single-hero__sub { margin-top: 16px; color: #CBD5E1; font-size: 1.05rem; line-height: 1.7; }

/* E-E-A-T byline (avatars in a flex row — mobile-safe) */
.iv-byline { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 22px; }
.iv-byline__person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.iv-byline__avatar { flex-shrink: 0; display: inline-flex; }
.iv-byline__avatar img { max-width: none; width: 36px; height: 36px; border-radius: 999px; display: block; }
.iv-byline__text { color: #E2E8F0; font-size: .9rem; }
.iv-byline__text strong { color: #fff; font-weight: 700; }

.iv-single-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.iv-meta-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: #CBD5E1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); padding: 7px 13px; border-radius: 999px; }
.iv-meta-pill svg { width: 18px; height: 18px; color: var(--iv-accent); }

.iv-single-hero__frame { border-radius: 16px; overflow: hidden; box-shadow: var(--iv-shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.iv-single-hero__frame img { display: block; width: 100%; }
.iv-single-hero__media { min-width: 0; }

@media (min-width: 1024px) {
    .iv-single-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 64px 20px; }
    .iv-single-hero__title { font-size: 2.6rem; }
}

/* Download buttons (JS targets .iv-download-btn) */
.iv-download-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; border-radius: 12px; transition: background .15s, transform .1s; }
.iv-download-btn svg { width: 22px; height: 22px; }
.iv-download-btn--hero { margin-top: 24px; padding: 15px 28px; font-size: 1.05rem; background: var(--iv-accent); color: #fff !important; box-shadow: var(--iv-shadow-lg); }
.iv-download-btn--hero:hover { background: var(--iv-accent-600); }
.iv-download-btn--side { width: 100%; padding: 13px 20px; background: var(--iv-accent); color: #fff !important; }
.iv-download-btn--side:hover { background: var(--iv-accent-600); }
.iv-download-btn--side svg { width: 18px; height: 18px; }
.iv-download-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,.22); border-radius: 50%; transform: translate(-50%,-50%); transition: width .6s, height .6s; }
.iv-download-btn:active::after { width: 240px; height: 240px; }

/* Single content grid */
.iv-single-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.iv-single-main { min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.iv-block { min-width: 0; }
.iv-block__title { font-size: 1.45rem; font-weight: 800; color: var(--iv-ink); letter-spacing: -.01em; margin-bottom: 18px; }
@media (min-width: 1024px) { .iv-single-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.iv-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.iv-checklist__item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.iv-checklist__icon { flex-shrink: 0; width: 24px; height: 24px; color: #15803D; margin-top: 1px; }

.iv-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .iv-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iv-feature-chip { display: flex; align-items: center; gap: 12px; min-width: 0; background: var(--iv-tint); border: 1px solid var(--iv-line); border-radius: 12px; padding: 14px 16px; }
.iv-feature-chip__icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--iv-accent); }
.iv-feature-chip span { min-width: 0; overflow-wrap: anywhere; }

.iv-figure { margin: 8px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--iv-line); background: #fff; box-shadow: var(--iv-shadow); }
.iv-figure__media img { display: block; width: 100%; }
.iv-figure__cap { padding: 12px 16px; background: var(--iv-tint); font-size: .85rem; color: var(--iv-muted); text-align: center; font-weight: 600; }

/* Author box */
.iv-authors { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; border-top: 1px solid var(--iv-line); }
.iv-author { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.iv-author__avatar { flex-shrink: 0; display: inline-flex; }
.iv-author__avatar img, .iv-author__img { max-width: none; width: 64px; height: 64px; border-radius: 999px; display: block; object-fit: cover; }
.iv-author__body { min-width: 0; }
.iv-author__name { display: block; font-weight: 800; color: var(--iv-ink); }
.iv-author__role { display: block; font-size: .85rem; font-weight: 700; color: var(--iv-accent); margin: 2px 0 8px; }
.iv-author__bio { color: var(--iv-muted); font-size: .95rem; }

/* Sidebar */
.iv-single-side { min-width: 0; }
.iv-side-card { background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 22px; box-shadow: var(--iv-shadow); margin-bottom: 20px; }
.iv-side-card__title { font-size: 1.05rem; font-weight: 800; color: var(--iv-ink); margin-bottom: 14px; }
.iv-side-specs { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.iv-side-specs__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.iv-side-specs__row dt { color: var(--iv-muted); }
.iv-side-specs__row dd { margin: 0; font-weight: 700; color: var(--iv-ink); text-align: right; }
.iv-side-specs__free { color: #15803D !important; }
.iv-side-cat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.iv-side-cat__icon { flex-shrink: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--iv-accent-50); color: var(--iv-accent); }
.iv-side-cat__name { display: block; font-weight: 700; color: var(--iv-ink); }
.iv-side-cat__count { display: block; font-size: .82rem; color: var(--iv-muted); }
@media (min-width: 1024px) { .iv-single-side .iv-side-card:first-child { position: sticky; top: 96px; } }

/* =====================================================
   ARCHIVE
   ===================================================== */
.iv-arch-hero { background: linear-gradient(160deg, var(--iv-primary-700), var(--iv-primary)); color: #fff; padding: 44px 0; }
.iv-arch-hero--tall { padding: 56px 0; }
.iv-arch-hero__center { text-align: center; }
.iv-arch-hero__title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.iv-arch-hero__sub { margin-top: 14px; color: #CBD5E1; font-size: 1.05rem; max-width: 640px; }
.iv-arch-hero__center .iv-arch-hero__sub { margin-left: auto; margin-right: auto; }
.iv-arch-hero__date { margin-top: 10px; font-size: .85rem; color: #94A3B8; }
@media (min-width: 768px) { .iv-arch-hero__title { font-size: 2.4rem; } }

.iv-arch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.iv-arch__side { min-width: 0; }
.iv-arch__main { min-width: 0; }
.iv-arch__filterblock { margin-bottom: 24px; }
.iv-arch__filterhead { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--iv-ink); margin-bottom: 12px; }
.iv-arch__cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.iv-arch__cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--iv-body); transition: background .15s; }
.iv-arch__cat:hover { background: var(--iv-tint-2); }
.iv-arch__cat.is-active { background: var(--iv-accent-50); color: var(--iv-accent-600); font-weight: 700; }
.iv-arch__catcount { font-size: .8rem; color: var(--iv-muted); }
.iv-arch__count { color: var(--iv-muted); margin-bottom: 18px; }
@media (min-width: 1024px) {
    .iv-arch { grid-template-columns: 260px minmax(0, 1fr); }
    .iv-arch__side-inner { position: sticky; top: 96px; }
}

.iv-empty { text-align: center; padding: 48px 0; }
.iv-empty__icon { width: 48px; height: 48px; margin: 0 auto; color: var(--iv-muted); }
.iv-empty__title { margin-top: 14px; font-weight: 700; color: var(--iv-ink); font-size: 1.1rem; }
.iv-empty__text { margin-top: 6px; color: var(--iv-muted); }

/* =====================================================
   PAGES / PANELS (legal, about, contact)
   ===================================================== */
.iv-page { background: var(--iv-tint); }
.iv-page__crumbbar { background: #fff; border-bottom: 1px solid var(--iv-line); }
.iv-page__crumbbar .iv-shell { padding-top: 14px; padding-bottom: 14px; }
.iv-prose-stack { display: flex; flex-direction: column; gap: 24px; }
.iv-panel { background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 28px; box-shadow: var(--iv-shadow); }
@media (min-width: 768px) { .iv-panel { padding: 40px; } }
.iv-panel--accent { background: var(--iv-accent-50); border-color: #F5D7A8; }
.iv-panel--center { text-align: center; }
.iv-panel__head { margin-bottom: 24px; }
.iv-panel__title { font-size: 1.9rem; font-weight: 800; color: var(--iv-ink); letter-spacing: -.02em; overflow-wrap: anywhere; }
.iv-panel__date { margin-top: 8px; font-size: .85rem; color: var(--iv-muted); }
.iv-panel__h2 { font-size: 1.4rem; font-weight: 800; color: var(--iv-ink); margin-bottom: 16px; }
.iv-panel__intro { color: var(--iv-muted); margin-bottom: 20px; }
.iv-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.iv-panel--center .iv-panel__actions { justify-content: center; }

.iv-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 12px 22px; border-radius: 11px; transition: background .15s, border-color .15s; white-space: nowrap; }
.iv-btn--solid { background: var(--iv-accent); color: #fff !important; }
.iv-btn--solid:hover { background: var(--iv-accent-600); }
.iv-btn--ghost { background: #fff; color: var(--iv-primary) !important; border: 1px solid var(--iv-line); }
.iv-btn--ghost:hover { border-color: var(--iv-accent); }
.iv-btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.iv-link { color: var(--iv-accent); font-weight: 600; }

/* About / team */
.iv-team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 700px) { .iv-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iv-team__member { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.iv-team__body { min-width: 0; }
.iv-author__avatar img { /* 96px on about/single author box context */ }
.iv-team .iv-author__avatar img, .iv-authors .iv-author__avatar img { width: 96px; height: 96px; }

.iv-howwework { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 700px) { .iv-howwework { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iv-howwework__item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.iv-howwework__icon { flex-shrink: 0; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--iv-accent-50); color: var(--iv-accent); }
.iv-howwework__title { font-weight: 700; color: var(--iv-ink); margin-bottom: 6px; }
.iv-howwework__text { color: var(--iv-muted); font-size: .95rem; }

/* Contact */
.iv-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .iv-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.iv-contact-list { display: flex; flex-direction: column; gap: 22px; }
.iv-contact-row { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.iv-contact-row__icon { flex-shrink: 0; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--iv-accent-50); color: var(--iv-accent); }
.iv-contact-row__title { font-weight: 700; color: var(--iv-ink); margin-bottom: 4px; }
.iv-contact-row__note, .iv-contact-row__text { color: var(--iv-muted); font-size: .92rem; }
.iv-contact-topics { display: flex; flex-direction: column; gap: 14px; }
.iv-contact-topic { background: var(--iv-tint); border: 1px solid var(--iv-line); border-radius: 12px; padding: 16px; }
.iv-contact-topic h3 { font-weight: 700; color: var(--iv-ink); margin-bottom: 6px; }
.iv-contact-topic p { color: var(--iv-muted); font-size: .92rem; }
.iv-contact-grid + .iv-panel { margin-top: 24px; }

/* crumbs */
.iv-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.iv-single-hero .iv-crumbs__list { color: #94A3B8; }
.iv-single-hero .iv-crumbs__list a { color: #CBD5E1; }
.iv-crumbs__list a { color: var(--iv-muted); }
.iv-crumbs__sep { color: var(--iv-muted); }
.iv-crumbs__current { color: var(--iv-ink); font-weight: 600; }
.iv-single-hero .iv-crumbs__current { color: #fff; }

/* post list (blog fallback) */
.iv-postlist { display: flex; flex-direction: column; gap: 20px; }
.iv-postlist__item { background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 24px; box-shadow: var(--iv-shadow); }
.iv-postlist__title { font-size: 1.2rem; font-weight: 700; color: var(--iv-ink); }
.iv-postlist__excerpt { margin-top: 8px; color: var(--iv-muted); }

/* =====================================================
   FOOTER
   ===================================================== */
.iv-footer { background: var(--iv-primary-700); color: #CBD5E1; }
.iv-footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; padding-bottom: 32px; }
.iv-footer__brand { min-width: 0; }
.iv-footer__logo { display: inline-flex; align-items: center; gap: 10px; }
.iv-footer__name { color: #fff; font-weight: 800; font-size: 1.15rem; }
.iv-footer__desc { margin-top: 14px; font-size: .92rem; color: #94A3B8; max-width: 360px; }
.iv-footer__disclaimer { margin-top: 14px; font-size: .82rem; color: #64748B; max-width: 360px; line-height: 1.6; }
.iv-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.iv-footer__heading { color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.iv-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.iv-footer__list a { color: #CBD5E1; font-size: .92rem; }
.iv-footer__list a:hover { color: #fff; }
.iv-footer__bottom { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #94A3B8; }
.iv-footer__tag { color: #64748B; }
@media (min-width: 768px) {
    .iv-footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); }
    .iv-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .iv-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Footer widget compatibility */
.iv-footer .widget { margin-bottom: 1.5rem; }
.iv-footer .widget-title { color: #fff; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.iv-footer .widget ul { list-style: none; padding: 0; margin: 0; }
.iv-footer .widget ul li { margin-bottom: 9px; }
.iv-footer .widget a { color: #CBD5E1; }
.iv-footer .widget a:hover { color: #fff; }

/* =====================================================
   COOKIE CONSENT (IDs cookie-banner/accept/decline kept)
   ===================================================== */
.iv-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--iv-line); box-shadow: 0 -10px 30px -12px rgba(15,23,42,.2); padding: 16px 0; }
.iv-consent.hidden { display: none; }
.iv-consent.show { display: block; animation: ivSlideUp .3s ease; }
@keyframes ivSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.iv-consent__inner { display: flex; flex-direction: column; gap: 14px; }
.iv-consent__text { font-size: .9rem; color: var(--iv-body); }
.iv-consent__link { color: var(--iv-accent); font-weight: 600; }
.iv-consent__actions { display: flex; gap: 10px; }
.iv-consent__btn { padding: 10px 18px; font-size: .9rem; font-weight: 700; border-radius: 10px; border: 0; cursor: pointer; }
.iv-consent__btn--ghost { background: var(--iv-tint-2); color: var(--iv-ink); }
.iv-consent__btn--ghost:hover { background: var(--iv-line); }
.iv-consent__btn--solid { background: var(--iv-accent); color: #fff; }
.iv-consent__btn--solid:hover { background: var(--iv-accent-600); }
@media (min-width: 640px) { .iv-consent__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* =====================================================
   PROSE (typography for the_content + meta sections)
   ===================================================== */
.prose { color: var(--iv-body); max-width: 100%; }
.prose p { margin: 0 0 1.05em; line-height: 1.75; }
.prose h2 { font-size: 1.4rem; font-weight: 800; color: var(--iv-ink); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.15rem; font-weight: 700; color: var(--iv-ink); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--iv-accent); text-decoration: underline; }
.prose strong { color: var(--iv-ink); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--iv-line); padding: 9px 12px; text-align: left; font-size: .92rem; }
.prose th { background: var(--iv-tint); font-weight: 700; color: var(--iv-ink); }
.prose code { background: var(--iv-tint-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; word-break: break-word; }
.prose-sm p { margin-bottom: .7em; }

/* =====================================================
   WordPress core + pagination + scroll-top
   ===================================================== */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.custom-logo { max-height: 38px; width: auto; }

.iv-pagination .nav-links, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.nav-links a, .nav-links span { padding: 9px 15px; border: 1px solid var(--iv-line); border-radius: 10px; color: var(--iv-body); font-weight: 600; }
.nav-links .current { background: var(--iv-primary); color: #fff; border-color: var(--iv-primary); }
.nav-links a:hover { border-color: var(--iv-accent); color: var(--iv-accent); }
.iv-pagination-wrap { margin-top: 40px; }

#scroll-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 3rem; height: 3rem; background: var(--iv-primary); color: #fff; border: 0; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--iv-shadow-lg); transition: background .2s, transform .2s; z-index: 40; }
#scroll-to-top:hover { background: var(--iv-accent); transform: translateY(-2px); }
#scroll-to-top.show { display: flex; }

:focus-visible { outline: 2px solid var(--iv-accent); outline-offset: 2px; }

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

@media print {
    .iv-header, .iv-footer, .iv-download-btn, .iv-consent, #scroll-to-top { display: none !important; }
    body { font-size: 12pt; }
}

/* =====================================================
   MOBILE SAFETY — avatars must NOT squash; no overflow
   (base rule img{max-width:100%} would shrink flex avatars)
   ===================================================== */
.avatar { max-width: none; }
.iv-byline__avatar img, .iv-author__avatar img, .iv-team__member .iv-author__avatar img { max-width: none; }
.iv-byline__avatar, .iv-author__avatar, .iv-brand__mark { flex-shrink: 0; }

/* =====================================================
   BLUE OVERRIDE SAFETY BLOCK
   The compiled tailwind.css still ships blue utilities; if any
   markup falls through to them, force the brand palette. No visible Tailwind blue.
   ===================================================== */
.from-blue-900, .from-blue-800, .from-blue-700, .from-blue-600 { --tw-gradient-from: var(--iv-primary) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30,41,59,0)) !important; }
.via-blue-800 { --tw-gradient-stops: var(--tw-gradient-from), var(--iv-primary-600), var(--tw-gradient-to, rgba(51,65,85,0)) !important; }
.to-blue-700 { --tw-gradient-to: var(--iv-primary-600) !important; }
.bg-blue-50 { background-color: var(--iv-accent-50) !important; }
.bg-blue-100 { background-color: var(--iv-accent-50) !important; }
.bg-blue-600, .bg-blue-700, .bg-blue-800, .bg-blue-900 { background-color: var(--iv-primary) !important; }
.text-blue-600, .text-blue-700 { color: var(--iv-accent) !important; }
.text-blue-900 { color: var(--iv-primary) !important; }
.text-blue-100 { color: #CBD5E1 !important; }
.text-blue-200 { color: #94A3B8 !important; }
.border-blue-200 { border-color: var(--iv-line) !important; }
.hover\:bg-blue-50:hover { background-color: var(--iv-accent-50) !important; }
.hover\:bg-blue-700:hover, .hover\:bg-blue-600:hover { background-color: var(--iv-accent-600) !important; }
.hover\:text-blue-600:hover, .hover\:text-blue-700:hover { color: var(--iv-accent-600) !important; }
.focus\:ring-blue-500:focus { --tw-ring-color: var(--iv-accent) !important; }

/* =====================================================
   EXCEL MOCKUP (preserved from engine — still used as fallback)
   ===================================================== */
.excel-mockup-container { position: relative; transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform .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,.4); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 11px; }
.excel-titlebar { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(180deg, #217346 0%, #1a5c38 100%); padding: 6px 12px; color: #fff; }
.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: .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; }
.excel-ribbon { background: #217346; padding: 4px 12px; border-bottom: 1px solid #1a5c38; }
.excel-ribbon-tabs { display: flex; gap: 16px; color: #fff; font-size: 11px; }
.excel-ribbon-tabs span { padding: 4px 0; opacity: .7; cursor: pointer; }
.excel-ribbon-tabs span.active { opacity: 1; border-bottom: 2px solid #fff; }
.excel-formula-bar { display: flex; align-items: center; background: #fff; 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: #fff; border: 1px solid #d6d6d6; font-size: 10px; color: #333; min-height: 18px; }
.excel-sheet-area { background: #fff; overflow: hidden; }
.excel-grid { display: grid; grid-template-columns: 30px repeat(5, minmax(0, 1fr)); border: 1px solid #d6d6d6; }
.excel-corner { background: #f5f5f5; border-right: 1px solid #c0c0c0; border-bottom: 1px solid #c0c0c0; }
.excel-col-header, .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; }
.excel-cell.header-cell { background: #217346; color: #fff; 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; }
.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: #fff; color: #333; font-weight: 500; }
.excel-sheet-tab-add { padding: 4px 8px; color: #888; cursor: pointer; font-size: 12px; }
.excel-status-bar { display: flex; justify-content: space-between; align-items: center; background: #217346; padding: 3px 12px; color: #fff; font-size: 10px; }
.excel-status-left { opacity: .9; }
.excel-zoom { opacity: .8; }
.excel-mockup-shadow { position: absolute; bottom: -15px; left: 10%; right: 10%; height: 20px; background: radial-gradient(ellipse at center, rgba(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,.1) 0%, transparent 100%); pointer-events: none; border-radius: 8px 8px 0 0; }
.excel-preview-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 16px; background: rgba(255,255,255,.1); border-radius: 8px; }
.excel-preview-notice .notice-icon { width: 20px; height: 20px; flex-shrink: 0; color: rgba(255,255,255,.8); margin-top: 2px; }
.excel-preview-notice p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.5; }
.excel-preview-notice strong { color: #fff; }

/* MOBILE-AVATAR-FIX: img.avatar max-width:100% + flex aplastaba los avatares */
img.avatar{max-width:none;flex-shrink:0;align-self:center}
[class*="__avatar"]{flex-shrink:0}
