/* SwitchKit: the yieldbard theme (theme/yb2) with EU-blue accents. */
:root {
    --sk-on-eu: #FFFFFF;
    --sk-band: #212121;
    --sk-eu: #003399;
    --sk-eu-strong: #002266;
    --sk-eu-soft: #EAF0FB;
    --sk-yellow: #FFCC00;
    --yb-accent: var(--sk-eu);
    --yb-accent-strong: var(--sk-eu-strong);
    --yb-accent-soft: var(--sk-eu-soft);
    --yb-link: var(--sk-eu);
    --yb-link-hover: var(--sk-eu-strong);
}
[data-theme=dark] {
    --sk-on-eu: #1A1A1A;
    --sk-band: #16213A;
    --sk-eu: #8FB0F0;
    --sk-eu-strong: #B8CDF6;
    --sk-eu-soft: #1B2740;
    --yb-link: #8FB0F0;
    --yb-link-hover: #B8CDF6;
}

body { background: var(--if-bg-page); min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .sk-footer { flex-shrink: 0; }
.container { max-width: 1200px; }

/* Nav */
.sk-nav { background: var(--if-glass-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--if-border-color); }
.sk-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-headline); font-weight: 900; font-size: 1.4rem; color: var(--if-text-primary); }
.sk-brand:hover { color: var(--if-text-primary); }
.sk-brand-text { font-family: var(--font-headline); font-weight: 900; color: var(--if-text-primary); }
.sk-nav .nav-link { color: var(--if-text-primary); }
.sk-nav .nav-link:hover { color: var(--sk-eu); }
.sk-lang { display: inline-flex; gap: 2px; }
.sk-lang button { background: none; border: 0; padding: 4px 6px; font-family: var(--font-mono); font-size: .75rem; color: var(--if-text-secondary); border-radius: 6px; }
.sk-lang button.active { color: var(--if-text-primary); font-weight: 700; }
.sk-lang button:hover { background: var(--if-bg-surface-alt); }
.sk-draft-banner { background: var(--if-anthrazit); color: var(--if-white); font-family: var(--font-mono); font-size: 12px; text-align: center; padding: 6px 16px; }
[data-theme=dark] .sk-draft-banner { background: #000; color: #e8e8e8; }

/* Type helpers */
.sk-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-eu); }
.sk-lead { font-size: 1.125rem; color: var(--fg-2); max-width: 34em; }
.sk-muted { color: var(--fg-2); }
.sk-small { font-size: .85rem; color: var(--if-text-secondary); }
.sk-mono { font-family: var(--font-mono); }
.sk-section { padding: 64px 0; }
.sk-section-white { background: var(--if-bg-surface); border-top: 1px solid var(--if-border-color); border-bottom: 1px solid var(--if-border-color); }
.sk-dark { background: var(--sk-band); color: #fff; }
.sk-dark h2, .sk-dark h3 { color: #fff; }
.sk-dark p { color: #C2C2C2; }
.sk-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--if-positive); }

/* Hero */
.sk-hero { padding: 72px 0 56px; }
.sk-hero h1 { text-wrap: balance; }
.sk-search { position: relative; max-width: 560px; }
.sk-search .form-control { height: 52px; border-radius: 40px; padding-left: 46px; font-size: 1rem; }
.sk-search .bi-search { position: absolute; left: 18px; top: 15px; color: var(--if-text-secondary); }
.sk-search-results { position: absolute; z-index: 20; top: 58px; left: 0; right: 0; }
.sk-search-results:empty { display: none; }
.sk-pill-btn { height: 52px; padding: 0 26px; border-radius: 40px; }
.sk-chip { display: inline-block; border: 1px solid var(--if-border-color); background: var(--if-bg-surface); border-radius: 40px; padding: 4px 12px; color: var(--if-text-primary); font-size: .9rem; }
.sk-chip:hover { border-color: var(--if-anthrazit); color: var(--if-text-primary); }
.sk-chip.active { background: var(--if-anthrazit); border-color: var(--if-anthrazit); color: var(--if-white); font-weight: 700; }

/* Cards */
.sk-card { background: var(--if-bg-surface); border: 1px solid var(--if-border-color); border-radius: 15px; padding: 22px; height: 100%; display: flex; flex-direction: column; gap: 14px; position: relative; }
.sk-card-accent { box-shadow: var(--shadow-ambient); }
.sk-card h3 { margin: 0; }
.sk-cc { font-family: var(--font-mono); font-size: 12px; color: var(--sk-eu); background: var(--sk-eu-soft); border-radius: 40px; padding: 2px 9px; white-space: nowrap; }
.sk-cc-noneu { color: var(--if-text-primary); background: var(--if-bg-surface-alt); }
.sk-deal-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--sk-yellow); color: #212121; border-radius: 40px; padding: 3px 10px; }
.sk-price { font-family: var(--font-headline); font-weight: 900; font-size: 1.6rem; }
.sk-was { color: var(--if-text-secondary); text-decoration: line-through; font-size: .9rem; }
.sk-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: .9rem; border-top: 1px solid var(--if-border-color); padding-top: 14px; margin: 0; }
.sk-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--if-text-secondary); padding-top: 3px; }
.sk-facts dd { margin: 0; }
.sk-unchecked { color: var(--if-text-secondary); font-style: italic; }
.sk-draft-tag { position: absolute; top: -10px; right: 16px; background: var(--if-anthrazit); color: var(--if-white); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; padding: 2px 8px; border-radius: 40px; }
.sk-code { font-family: var(--font-mono); background: var(--if-bg-surface-alt); border: 1px dashed var(--if-border-color); border-radius: 8px; padding: 2px 8px; }

/* "Instead of" kits: name, checks and offer side by side on wide screens; the
   offer is an inset panel so the price and the button read as one block. */
.sk-kit h2 a:hover { text-decoration: underline; }
.sk-kit-offer { background: var(--if-bg-page); border-radius: 12px; padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
/* "Checked <date>" sits on the card's bottom edge when the offer beside it is taller. */
.sk-kit-facts > .sk-small:last-child { margin-top: auto; }
.sk-kit-deal { display: flex; flex-direction: column; gap: 8px; }
.sk-kit-deal + .sk-kit-deal { border-top: 1px solid var(--if-border-color); padding-top: 12px; }
.sk-kit-guide { border-top: 1px solid var(--if-border-color); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.sk-kit-guide .sk-steps { max-width: 44em; }
@media (min-width: 992px) {
    .sk-kit-facts .sk-facts { border-top: 0; padding-top: 0; }
}

/* Tool tiles */
.sk-tool { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--if-bg-surface); border: 1px solid var(--if-border-color); border-radius: 15px; padding: 16px 18px; color: var(--if-text-primary); height: 100%; }
.sk-tool:hover { border-color: var(--sk-eu); color: var(--if-text-primary); }
.sk-tool .bi { color: var(--sk-eu); }

/* Steps */
.sk-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sk-steps li { display: flex; gap: 12px; align-items: baseline; }
.sk-steps .n { font-family: var(--font-mono); font-size: 13px; color: var(--sk-eu); }
.sk-steps .t { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--if-text-secondary); white-space: nowrap; }

.sk-subscribe { background: var(--if-bg-surface); border: 1px solid var(--if-border-color); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.sk-subscribe .form-control { height: 52px; border-radius: 40px; padding: 0 20px; }
/* Buttons: the theme's hover goes to black with --if-white text, which is
   unreadable in dark mode. Hover and press use EU blue in both themes, and a
   clicked button returns to normal instead of staying in its hover colours. */
.btn-dark, .btn-primary {
    --bs-btn-active-bg: var(--sk-eu-strong); --bs-btn-active-border-color: var(--sk-eu-strong); --bs-btn-active-color: var(--sk-on-eu);
}
.btn-dark:focus, .btn-primary:focus { background-color: var(--if-anthrazit); border-color: var(--if-anthrazit); color: var(--if-white); }
.btn-dark:hover, .btn-primary:hover { background-color: var(--sk-eu); border-color: var(--sk-eu); color: var(--sk-on-eu); }
.btn-outline-dark { --bs-btn-active-bg: var(--if-anthrazit); --bs-btn-active-border-color: var(--if-anthrazit); --bs-btn-active-color: var(--if-white); }
.btn-outline-dark:hover { background-color: var(--if-anthrazit); border-color: var(--if-anthrazit); color: var(--if-white); }
.btn-eu {
    background: var(--sk-eu); border-color: var(--sk-eu); color: var(--sk-on-eu);
    --bs-btn-active-bg: var(--sk-eu-strong); --bs-btn-active-border-color: var(--sk-eu-strong); --bs-btn-active-color: var(--sk-on-eu);
}
.btn-eu:focus { background: var(--sk-eu); border-color: var(--sk-eu); color: var(--sk-on-eu); }
.btn-eu:hover { background: var(--sk-eu-strong); border-color: var(--sk-eu-strong); color: var(--sk-on-eu); }

/* Search results and other Bootstrap list groups follow the theme. */
.list-group {
    --bs-list-group-bg: var(--if-bg-surface); --bs-list-group-color: var(--if-text-primary);
    --bs-list-group-border-color: var(--if-border-color);
    --bs-list-group-action-color: var(--if-text-primary); --bs-list-group-action-hover-color: var(--if-text-primary);
    --bs-list-group-action-hover-bg: var(--if-bg-surface-alt);
    --bs-list-group-action-active-color: var(--if-text-primary); --bs-list-group-action-active-bg: var(--if-bg-surface-alt);
}
a.list-group-item:hover { color: var(--if-text-primary) !important; }

/* Theme toggle */
.sk-theme-toggle { background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; color: var(--if-text-primary); display: inline-flex; align-items: center; justify-content: center; }
.sk-theme-toggle:hover { background: var(--if-bg-surface-alt); }
[data-theme=dark] .sk-theme-toggle .bi-moon-stars { display: none; }
:root:not([data-theme=dark]) .sk-theme-toggle .bi-sun { display: none; }

.sk-footer { border-top: 1px solid var(--if-border-color); padding: 28px 0 40px; margin-top: 64px; }
/* The disclosure takes the room beside the right-hand block, so it stays on one
   line where it fits and the two blocks stack only on narrow screens. */
.sk-footer .container > :first-child { flex: 1 1 20em; min-width: 0; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sk-yellow); outline-offset: 2px; }

@media (max-width: 575.98px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .sk-hero { padding: 40px 0 32px; }
    .sk-pill-btn { width: 100%; }
}

/* The theme's a:hover rule is very specific; keep chip text readable. */
a.sk-chip.active, a.sk-chip.active:hover { color: var(--if-white) !important; }
a.sk-chip:hover:not(.active) { color: var(--if-text-primary) !important; }
a.sk-brand:hover { color: var(--if-text-primary) !important; }

/* Layout helpers (no inline styles in templates) */
.sk-w-sm { max-width: 640px; }
.sk-w-md { max-width: 760px; }
.sk-w-lg { max-width: 880px; }
.sk-measure { max-width: 40em; }
.sk-hero-search { flex-basis: 260px; }
.sk-subscribe-input { flex-basis: 220px; }
.sk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sk-accent { color: var(--sk-eu); }
.sk-inset { background: var(--if-bg-page); }
.sk-eyebrow-on-dark { color: #8FB0F0; }
.sk-band-card { border: 1px solid #444; }
.sk-band-icon { color: var(--sk-yellow); }
