/* ScholarshipsFree 18 | main stylesheet (no frameworks, system fonts) */

/* ---------- Tokens (palette keys are overridden per site profile in inc/profile.php) ---------- */
:root {
  --brand: #1b3a8c; --brand-dark: #132c6e; --brand-ink: #0b1d47; --brand-soft: #eef2fb; --brand-tint: #d9e2f6;
  --accent: #f5a00b; --accent-dark: #d98706; --accent-soft: #fff6e3; --accent-ink: #0b1d47;
  --head-bg: #0b1d47; --foot-bg: #081536;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e3e8f0; --line-2: #cfd7e3;
  --bg: #f4f6fa; --surface: #fff;
  --ok: #157347; --ok-soft: #e7f6ed; --bad: #b42318; --bad-soft: #fdeceb; --warn: #9a5800; --warn-soft: #fff4df;
  --violet: #5b3fd1; --violet-soft: #f0edff; --slate: #475569; --slate-soft: #eef1f5;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-2: 0 10px 28px -14px rgba(15, 23, 42, .28);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--sh-2); }
.sf-container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .sf-container { padding: 0 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.sf-mt-4 { margin-top: 4px; } .sf-mb-24 { margin-bottom: 24px; } .sf-mb-48 { margin-bottom: 40px; }
/* Single-column grids never grow wider than the screen (wider layouts are set further down) */
.sf-hero__grid, .sf-timeline, .sf-browse, .sf-guides, .sf-steps, .sf-trustrow, .sf-catgrid, .sf-layout, .sf-explorer, .sf-footer__grid, .sf-finder__fields, .sf-side, .sf-faq, .sf-actions__btns, .sf-sidebtns, .sf-help, .sf-mini { grid-template-columns: minmax(0, 1fr); }

/* ---------- Header ---------- */
.sf-top { position: relative; z-index: 50; }
.sf-top__bar { background: var(--head-bg); color: #fff; }
.sf-top__inner { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.sf-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.14rem; letter-spacing: -.01em; margin-right: auto; white-space: nowrap; }
.sf-brand:hover { text-decoration: none; }
.sf-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: .9rem; letter-spacing: 0; overflow: hidden; }
.sf-brand__mark img { width: 36px; height: 36px; object-fit: cover; }
.sf-brand__text b { color: var(--accent); font-weight: 800; }
.sf-brand--dark { color: var(--ink); }
.sf-brand--dark .sf-brand__text b { color: var(--accent-dark); }
.sf-mainnav { display: none; }
.sf-mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sf-mainnav a { display: block; padding: 8px 12px; border-radius: 8px; color: #d6e0fb; font-weight: 600; font-size: .95rem; }
.sf-mainnav a:hover, .sf-mainnav a[aria-current] { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.sf-navdd { position: relative; }
.sf-navdd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; color: #d6e0fb; font-weight: 600; font-size: .95rem; }
.sf-navdd summary::-webkit-details-marker { display: none; }
.sf-navdd summary:hover, .sf-navdd details[open] summary { background: rgba(255, 255, 255, .1); color: #fff; }
.sf-navdd summary svg { width: 16px; height: 16px; transition: transform .15s; }
.sf-navdd details[open] summary svg { transform: rotate(180deg); }
.sf-navdd__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 470px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 22px 44px -14px rgba(8, 21, 54, .4); }
.sf-mainnav .sf-navdd__panel a { color: var(--ink); padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.sf-mainnav .sf-navdd__panel a:hover, .sf-mainnav .sf-navdd__panel a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.sf-top__actions { display: flex; align-items: center; gap: 6px; }
.sf-top__cta { display: none; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(245, 160, 11, .55); color: #ffd58a; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sf-top__cta:hover { background: rgba(245, 160, 11, .12); text-decoration: none; }
.sf-top__cta svg { width: 18px; height: 18px; }
.sf-iconbtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.sf-iconbtn:hover { background: rgba(255, 255, 255, .16); }
.sf-iconbtn svg { width: 22px; height: 22px; }
.sf-top .sf-search--top { display: none; }
.sf-searchpanel { background: var(--brand-ink); border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 0 14px; }
.sf-searchpanel[hidden] { display: none; }
@media (min-width: 1024px) {
  .sf-mainnav { display: block; }
  .sf-top .sf-search--top { display: flex; width: 320px; }
  .sf-chipbar { display: none; }
  .sf-top__cta { display: inline-flex; }
  .sf-searchtoggle, .sf-ham { display: none; }
  .sf-searchpanel { display: none !important; }
}

/* Search box */
.sf-search { display: flex; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.sf-search:focus-within { box-shadow: 0 0 0 3px var(--accent); border-color: transparent; }
.sf-search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font-size: 1rem; background: transparent; color: var(--ink); -webkit-appearance: none; appearance: none; }
.sf-search input:focus { outline: none; }
.sf-search button { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 0 16px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.sf-search button:hover { background: var(--accent-dark); }
.sf-search button svg { width: 20px; height: 20px; }
.sf-search--top { border: 0; background: rgba(255, 255, 255, .1); }
.sf-search--top input { color: #fff; padding: 9px 12px; font-size: .95rem; }
.sf-search--top input::placeholder { color: #aebbe0; }
.sf-search--top button { background: transparent; color: #fff; padding: 0 12px; }
.sf-search--top button:hover { background: rgba(255, 255, 255, .1); }

/* Explore chip bar */
.sf-chipbar { background: #fff; border-bottom: 1px solid var(--line); }
.sf-chipbar__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: 0; list-style: none; -webkit-overflow-scrolling: touch; }
.sf-chipbar__list::-webkit-scrollbar { display: none; }
.sf-chipbar a { display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 13px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .88rem; border: 1px solid var(--brand-tint); }
.sf-chipbar a:hover { background: var(--brand-tint); text-decoration: none; }
.sf-chipbar a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Drawer */
.sf-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.sf-drawer.is-open { visibility: visible; }
.sf-drawer__bg { position: absolute; inset: 0; background: rgba(8, 21, 54, .55); opacity: 0; transition: opacity .2s; }
.sf-drawer.is-open .sf-drawer__bg { opacity: 1; }
.sf-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.sf-drawer.is-open .sf-drawer__panel { transform: none; }
.sf-drawer__panel > * { flex-shrink: 0; }
.sf-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sf-drawer__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.sf-drawer__label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.sf-drawer__links { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sf-drawer__links li + li { border-top: 1px solid var(--line); }
.sf-drawer__links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: var(--ink); font-weight: 650; }
.sf-drawer__links a:hover { background: var(--brand-soft); text-decoration: none; }
.sf-drawer__links svg { width: 16px; height: 16px; color: var(--muted); }
body.sf-drawer-open { overflow: hidden; }

/* Reading progress */
.sf-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; }

/* Breadcrumbs */
.sf-bc { font-size: .84rem; color: var(--muted); padding: 12px 0 2px; }
.sf-bc ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; list-style: none; margin: 0; padding: 0; }
.sf-bc li { display: inline-flex; align-items: center; min-width: 0; }
.sf-bc li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--line-2); border-top: 1.5px solid var(--line-2); transform: rotate(45deg); margin: 0 9px 0 5px; flex: 0 0 auto; }
.sf-bc a { color: var(--ink-2); }
.sf-bc span { color: var(--muted); }

/* ---------- Buttons, pills, chips ---------- */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 750; font-size: .95rem; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.sf-btn:hover { text-decoration: none; }
.sf-btn svg { width: 18px; height: 18px; }
.sf-btn--primary { background: var(--accent); color: var(--accent-ink); }
.sf-btn--primary:hover { background: var(--accent-dark); }
.sf-btn--brand { background: var(--brand); color: #fff; }
.sf-btn--brand:hover { background: var(--brand-dark); }
.sf-btn--secondary { background: #fff; color: var(--brand); border-color: var(--brand-tint); }
.sf-btn--secondary:hover { border-color: var(--brand); }
.sf-btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.sf-btn--ghost:hover { background: var(--brand-soft); }
.sf-btn--green { background: #1c9f50; color: #fff; }
.sf-btn--green:hover { background: #17863f; }
.sf-btn--lg { padding: 14px 22px; font-size: 1.03rem; }
.sf-btn--block, .sf-btn--wide { width: 100%; }

.sf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 750; line-height: 1.3; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.sf-pill--red, .sf-pill--green, .sf-pill--violet, .sf-pill--slate, .sf-pill--amber { padding-left: 8px; }
.sf-pill--red::before, .sf-pill--green::before, .sf-pill--violet::before, .sf-pill--slate::before, .sf-pill--amber::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sf-pill--red { background: var(--bad-soft); color: var(--bad); }
.sf-pill--green { background: var(--ok-soft); color: var(--ok); }
.sf-pill--violet { background: var(--violet-soft); color: var(--violet); }
.sf-pill--slate { background: var(--slate-soft); color: var(--slate); }
.sf-pill--amber { background: var(--warn-soft); color: var(--warn); }
.sf-pill--plain::before { display: none; }

.sf-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: .8rem; font-weight: 800; line-height: 1.25; white-space: nowrap; background: var(--brand-soft); color: var(--brand); }
.sf-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sf-status.is-open { background: var(--ok-soft); color: var(--ok); }
.sf-status.is-closing { background: var(--bad-soft); color: var(--bad); }
.sf-status.is-closing::before { animation: sfPulse 1.6s infinite; }
.sf-status.is-expired { background: var(--slate-soft); color: var(--slate); }
@keyframes sfPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.sf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; font-size: .8rem; font-weight: 750; background: var(--accent-soft); color: #7a4500; }

.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .9rem; font-weight: 650; }
.sf-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sf-chip small { color: var(--muted); font-weight: 700; font-size: .76rem; }

/* ---------- Sections (home and hubs) ---------- */
.sf-section { padding: 36px 0; }
.sf-section--tight { padding: 20px 0; }
.sf-section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sf-head h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); margin: 0; display: flex; align-items: center; gap: 10px; }
.sf-head p { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }
.sf-head--center { justify-content: center; text-align: center; }
.sf-head--center h2 { justify-content: center; }
.sf-head__link { white-space: nowrap; font-weight: 750; display: inline-flex; align-items: center; gap: 4px; font-size: .93rem; }
.sf-head__link svg { width: 16px; height: 16px; }
.sf-h-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); flex: 0 0 38px; }
.sf-h-ico svg { width: 20px; height: 20px; }
.sf-h-ico--red { background: var(--bad-soft); color: var(--bad); }
.sf-h-ico--green { background: var(--ok-soft); color: var(--ok); }
.sf-h-ico--violet { background: var(--violet-soft); color: var(--violet); }
.sf-h-ico--amber { background: var(--accent-soft); color: var(--accent-dark); }
@media (max-width: 600px) { .sf-head { align-items: flex-start; flex-direction: column; gap: 6px; } .sf-head--center { align-items: center; } }

/* Hero */
.sf-hero { position: relative; color: #fff; padding: 30px 0 84px; overflow: hidden; background: radial-gradient(900px 380px at 88% -8%, rgba(245, 160, 11, .2), transparent 62%), radial-gradient(800px 480px at -12% 112%, rgba(86, 124, 255, .28), transparent 62%), var(--head-bg); }
.sf-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 85%); mask-image: linear-gradient(to bottom, #000 20%, transparent 85%); }
.sf-hero__grid { position: relative; z-index: 1; display: grid; gap: 26px; }
.sf-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #ffdc9c; font-weight: 700; font-size: .84rem; border: 1px solid rgba(255, 255, 255, .14); }
.sf-hero__badge svg { width: 16px; height: 16px; }
.sf-hero h1 { color: #fff; font-size: clamp(1.95rem, 1.25rem + 3vw, 3.15rem); line-height: 1.1; margin: 14px 0 12px; letter-spacing: -.025em; }
.sf-hero h1 span { color: var(--accent); }
.sf-hero__lead { color: #c8d4f3; font-size: 1.04rem; max-width: 640px; margin-bottom: 20px; }
.sf-search--hero { border: 0; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6); }
.sf-search--hero input { padding: 15px 16px; font-size: 1.02rem; }
.sf-search--hero button { padding: 0 20px; }
.sf-hero__hint { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #a9b8e0; font-size: .88rem; }
.sf-hero__hint a { color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.sf-hero__hint a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
@media (min-width: 1024px) {
  .sf-hero { padding: 54px 0 100px; }
  .sf-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 44px; }
}

/* Quick finder */
.sf-finder { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.sf-finder h2 { font-size: 1.15rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.sf-finder h2 svg { color: var(--accent-dark); width: 22px; height: 22px; }
.sf-finder > p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.sf-finder__fields { display: grid; gap: 10px; margin-bottom: 14px; }
.sf-finder label { display: block; font-size: .74rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
@media (min-width: 1024px) { .sf-finder { padding: 22px; } }
.sf-select { width: 100%; max-width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 38px 11px 12px; font-size: .97rem; color: var(--ink); cursor: pointer; }
.sf-select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.sf-select--sm { padding: 8px 34px 8px 10px; font-size: .9rem; width: auto; }

/* Stat strip */
.sf-statstrip { position: relative; z-index: 2; margin-top: -54px; }
.sf-statstrip__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sf-stat { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.sf-stat b { display: block; font-size: 1.55rem; font-weight: 900; color: var(--brand-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sf-stat span { font-size: .84rem; color: var(--muted); }
@media (min-width: 768px) { .sf-statstrip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .sf-stat { padding: 16px 20px; } }

/* Last-date timeline */
.sf-timeline { display: grid; gap: 10px; }
@media (min-width: 768px) { .sf-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sf-tl { position: relative; display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--sh-1); transition: box-shadow .15s, border-color .15s; }
.sf-tl:hover { border-color: var(--brand-tint); box-shadow: var(--sh-2); }
.sf-dateblock { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); line-height: 1; }
.sf-dateblock b { font-size: 1.45rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sf-dateblock span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.sf-tl.is-closing .sf-dateblock { background: var(--bad-soft); color: var(--bad); }
.sf-tl__body { min-width: 0; flex: 1; }
.sf-tl__title { font-size: .98rem; font-weight: 750; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-tl__title a { color: var(--ink); }
.sf-tl__title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.sf-tl__title a:hover { text-decoration: none; color: var(--brand); }
.sf-tl__meta { font-size: .82rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-tl__left { flex: 0 0 auto; font-size: .76rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.sf-tl.is-closing .sf-tl__left { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 420px) { .sf-tl__left { display: none; } }

/* Browse panels */
.sf-browse { display: grid; gap: 14px; }
@media (min-width: 900px) { .sf-browse { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; }
.sf-section--white .sf-panel { background: var(--bg); }
.sf-panel h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sf-panel .sf-chips { margin-bottom: 14px; }
.sf-panel__more { margin-top: auto; font-weight: 750; font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; }
.sf-panel__more svg { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.sf-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sf-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-cards.is-list { grid-template-columns: minmax(0, 1fr); }
.sf-cards__ad { grid-column: 1 / -1; }
.sf-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--sh-1); transition: box-shadow .15s, border-color .15s; min-width: 0; }
.sf-card:hover { border-color: var(--brand-tint); box-shadow: var(--sh-2); }
.sf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.sf-card__cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-card__title { font-size: 1.04rem; line-height: 1.38; margin: 0; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card__title a { color: var(--ink); }
.sf-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; z-index: 1; }
.sf-card__title a:hover { text-decoration: none; }
.sf-card:hover .sf-card__title a { color: var(--brand); }
.sf-card__provider { margin: -4px 0 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-card__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.sf-card__facts > div { padding: 9px 12px; min-width: 0; }
.sf-card__facts > div + div { border-left: 1px solid var(--line); }
.sf-card__facts dt { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sf-card__facts dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card__facts dd.is-amount { color: var(--ok); }
.sf-card__facts dd.is-closing { color: var(--bad); }
.sf-card__facts dd.is-expired { color: var(--slate); }
.sf-card__facts dd.is-na { color: var(--muted); font-weight: 700; }
.sf-card__elig { font-size: .86rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card__elig b { color: var(--ink); font-weight: 700; }
.sf-card__excerpt { font-size: .92rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sf-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; font-size: .85rem; }
.sf-card__more { font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sf-card__more svg { width: 16px; height: 16px; transition: transform .15s; }
.sf-card:hover .sf-card__more svg { transform: translateX(3px); }
.sf-card__date { color: var(--muted); font-size: .8rem; }
.sf-card--article .sf-card__cat { color: var(--violet); }
@media (min-width: 900px) {
  .sf-cards.is-list .sf-card--listing { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "head head" "title facts" "prov facts" "elig foot"; column-gap: 20px; row-gap: 6px; align-items: start; }
  .sf-cards.is-list .sf-card__head { grid-area: head; }
  .sf-cards.is-list .sf-card__title { grid-area: title; }
  .sf-cards.is-list .sf-card__provider { grid-area: prov; margin: 0; }
  .sf-cards.is-list .sf-card__facts { grid-area: facts; }
  .sf-cards.is-list .sf-card__elig { grid-area: elig; }
  .sf-cards.is-list .sf-card__foot { grid-area: foot; justify-content: flex-end; }
}

/* Guides list */
.sf-guides { display: grid; gap: 10px; }
@media (min-width: 768px) { .sf-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-guide { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-weight: 650; line-height: 1.35; }
.sf-section--white .sf-guide { background: var(--bg); }
.sf-guide:hover { border-color: var(--brand-tint); color: var(--brand); text-decoration: none; }
.sf-guide__ico { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); }
.sf-guide__ico svg { width: 18px; height: 18px; }
.sf-guide > span:nth-child(2) { flex: 1; min-width: 0; }
.sf-guide > svg { width: 18px; height: 18px; color: var(--muted); }
.sf-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid #f6dca6; }
.sf-banner__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.sf-banner__body { flex: 1; min-width: 220px; }
.sf-banner h3 { margin: 0 0 2px; font-size: 1.05rem; }
.sf-banner p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* Steps, trust, CTA */
.sf-steps { display: grid; gap: 14px; }
@media (min-width: 768px) { .sf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.sf-step__num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 900; margin-bottom: 12px; }
.sf-step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.sf-step p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.sf-trustrow { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 768px) { .sf-trustrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-trustitem { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--brand-soft); }
.sf-trustitem svg { color: var(--brand); margin-top: 2px; }
.sf-trustitem strong { display: block; color: var(--ink); font-size: .95rem; }
.sf-trustitem span { font-size: .86rem; color: var(--ink-2); }
.sf-cta { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: 20px; padding: 26px; display: grid; gap: 16px; align-items: center; }
.sf-cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.sf-cta p { color: #c8d4f3; margin: 0; }
@media (min-width: 768px) { .sf-cta { grid-template-columns: minmax(0, 1fr) auto; padding: 34px 40px; } }

/* ---------- Archive / explorer ---------- */
.sf-pagehead { background: #fff; border-bottom: 1px solid var(--line); padding: 0 0 22px; margin-bottom: 22px; }
.sf-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.sf-pagehead h1 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem); margin: 6px 0 8px; }
.sf-pagehead p { color: var(--ink-2); max-width: 860px; margin: 0; }
.sf-pagenum { font-size: .55em; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.sf-pagehead p a { font-weight: 700; }
.sf-hubstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 720px; }
.sf-hubstat { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.sf-hubstat b { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sf-hubstat strong { font-size: 1.25rem; font-weight: 900; color: var(--brand-ink); line-height: 1.25; }
.sf-hubstat span { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.sf-hubstat--green strong { color: var(--ok); }
@media (max-width: 520px) { .sf-hubstat span { display: none; } }
.sf-alsolink { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #f3d595; color: #6b4300; font-weight: 700; font-size: .92rem; line-height: 1.35; }
.sf-alsolink:hover { text-decoration: none; border-color: var(--accent); }
.sf-alsolink svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sf-explorer { display: grid; gap: 18px; }
@media (min-width: 1024px) { .sf-explorer { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; } }
.sf-results { min-width: 0; }

.sf-filters { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.sf-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-filters__head h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.sf-filters__head h2 svg { width: 18px; height: 18px; color: var(--brand); }
.sf-filters__toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--brand); }
.sf-filters__body { display: none; margin-top: 10px; }
.sf-filters.is-open .sf-filters__body { display: block; }
.sf-fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.sf-fgroup h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; font-weight: 800; }
.sf-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sf-flist a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; color: var(--ink-2); font-weight: 650; background: #fff; }
.sf-flist a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sf-flist a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.sf-flist small { opacity: .7; font-size: .75rem; }
.sf-filters .sf-select { font-size: .92rem; }
@media (min-width: 1024px) {
  .sf-filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 16px; }
  .sf-filters__toggle { display: none; }
  .sf-filters__body { display: block; }
}

.sf-resbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sf-resbar__count { color: var(--ink-2); font-size: .95rem; }
.sf-resbar__tools { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.sf-viewtoggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.sf-viewtoggle button { border: 0; background: transparent; padding: 8px 10px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.sf-viewtoggle button svg { width: 18px; height: 18px; }
.sf-viewtoggle button.is-active { background: var(--brand-soft); color: var(--brand); }

.sf-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.sf-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 750; }
.sf-pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sf-pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.sf-pagination .dots { border: 0; background: transparent; min-width: 20px; }
.sf-empty { background: #fff; border: 1px dashed var(--line-2); border-radius: 16px; padding: 28px; text-align: center; }
.sf-empty h3 { margin-bottom: 6px; }
.sf-empty p { margin: 0; color: var(--ink-2); }
.sf-termtext { margin-top: 28px; }

/* ---------- Single listing ---------- */
.sf-layout { display: grid; gap: 22px; }
@media (min-width: 1024px) { .sf-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; } }
.sf-main { min-width: 0; }
.sf-posthead { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 12px 0 16px; }
@media (min-width: 768px) { .sf-posthead { padding: 26px 28px; } }
.sf-posthead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sf-posthead h1 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.02em; }
.sf-posthead__sub { color: var(--ink-2); margin: 0 0 12px; font-weight: 600; }
.sf-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .86rem; }
.sf-byline > span { display: inline-flex; align-items: center; gap: 6px; }
.sf-byline svg { width: 16px; height: 16px; }
.sf-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; flex: 0 0 auto; overflow: hidden; }
.sf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sf-facts { margin: 18px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .sf-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-fact { border-radius: 14px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.sf-fact dt { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sf-fact dt svg { width: 15px; height: 15px; }
.sf-fact dd { margin: 5px 0 0; font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.sf-fact dd small { display: block; font-weight: 750; font-size: .8rem; margin-top: 2px; }
.sf-fact--amount { background: var(--ok-soft); border-color: #cbe9d6; }
.sf-fact--amount dd { color: var(--ok); font-size: 1.08rem; }
.sf-fact.is-open dd small { color: var(--ok); }
.sf-fact.is-closing { background: var(--bad-soft); border-color: #f5cdc8; }
.sf-fact.is-closing dd, .sf-fact.is-closing dd small { color: var(--bad); }
.sf-fact.is-expired dd { color: var(--slate); }
@media (max-width: 767px) { .sf-fact--amount { grid-column: 1 / -1; } }
.sf-details { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; }
.sf-details th { width: 36%; text-align: left; color: var(--muted); font-weight: 700; padding: 9px 12px 9px 0; vertical-align: top; border-top: 1px solid var(--line); }
.sf-details td { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sf-thumb { margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: var(--brand-soft); }
.sf-thumb img { display: block; width: 100%; height: auto; }

.sf-toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 16px; }
.sf-toc summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sf-toc summary::-webkit-details-marker { display: none; }
.sf-toc summary svg { width: 18px; height: 18px; color: var(--brand); }
.sf-toc__n { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 800; background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.sf-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 6px; transition: transform .15s; }
.sf-toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sf-toc ol { margin: 0; padding: 12px 16px 14px 40px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.sf-toc li { color: var(--muted); font-size: .93rem; line-height: 1.4; }
.sf-toc li::marker { font-weight: 700; }
.sf-toc a { color: var(--ink-2); font-weight: 600; }
.sf-toc a:hover { color: var(--brand); }

.sf-callout { position: relative; display: flex; align-items: center; gap: 12px; background: var(--violet-soft); border: 1px solid #ddd5ff; border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.sf-callout > svg { color: var(--violet); }
.sf-callout__k { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.sf-callout a { font-weight: 750; color: var(--ink); }
.sf-callout a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.sf-callout div { flex: 1; min-width: 0; }

/* Article body */
.sf-entry { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; font-size: 1.0625rem; line-height: 1.78; color: #1e293b; overflow-wrap: break-word; }
@media (min-width: 768px) { .sf-entry { padding: 28px 34px; } }
@media (max-width: 767px) { .sf-entry { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 20px 16px; } }
.sf-entry > *:first-child { margin-top: 0; }
.sf-entry [style*="justify"] { text-align: left !important; } /* justified text leaves gaps on phones */
.sf-entry > *:last-child { margin-bottom: 0; }
.sf-entry h2 { font-size: clamp(1.28rem, 1.1rem + .8vw, 1.6rem); margin: 1.9em 0 .65em; scroll-margin-top: 16px; }
.sf-entry h2::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 12px; }
.sf-entry h3 { font-size: 1.18rem; margin: 1.6em 0 .5em; scroll-margin-top: 16px; }
.sf-entry h4 { font-size: 1.04rem; margin: 1.4em 0 .4em; }
.sf-entry p { margin: 0 0 1.05em; }
.sf-entry ul, .sf-entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.sf-entry li { margin: .38em 0; }
.sf-entry li::marker { color: var(--brand); font-weight: 700; }
.sf-entry a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--brand-tint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sf-entry a:hover { text-decoration-color: var(--brand); }
.sf-entry strong, .sf-entry b { color: var(--ink); }
.sf-entry blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.sf-entry blockquote p:last-child { margin: 0; }
.sf-entry img { border-radius: 12px; }
.sf-entry figure { margin: 1.4em 0; }
.sf-entry figcaption, .wp-caption-text { font-size: .86rem; color: var(--muted); font-style: italic; text-align: center; margin-top: 6px; }
.sf-entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.sf-entry code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.sf-entry pre { background: var(--bg); padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .9em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.2em; }
.wp-caption { max-width: 100%; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em auto; display: block; } }

/* Tables */
.sf-tablewrap { overflow-x: auto; margin: 1.2em 0 1.5em; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.sf-entry table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; margin: 0; }
.sf-entry th, .sf-entry td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sf-entry thead th, .sf-entry thead td { background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; }
.sf-entry tbody th { background: #f8fafc; color: var(--ink); font-weight: 700; }
.sf-entry tr:last-child > * { border-bottom: 0; }
.sf-entry tbody tr:nth-child(even) td { background: #fafbfd; }
.sf-entry table.sf-vt th { width: 38%; background: #f6f8fc; color: var(--ink-2); }
.sf-entry table p { margin: 0; }
.sf-entry table ul, .sf-entry table ol { margin: 0; }
@media (max-width: 600px) { .sf-entry th, .sf-entry td { padding: 9px 10px; } .sf-entry table { font-size: .9rem; } }

/* FAQ and details */
.sf-faq { display: grid; gap: 10px; margin: 1em 0 1.5em; }
.sf-entry details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0 0 10px; }
.sf-faq details { margin: 0; }
.sf-entry details > summary { cursor: pointer; list-style: none; padding: 13px 46px 13px 16px; font-weight: 700; position: relative; line-height: 1.45; color: var(--ink); }
.sf-entry details > summary::-webkit-details-marker { display: none; }
.sf-entry details > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.35rem; font-weight: 700; color: var(--brand); line-height: 1; }
.sf-entry details[open] > summary::after { content: "\2212"; }
.sf-entry details[open] { border-color: var(--brand-tint); box-shadow: var(--sh-1); }
.sf-entry details > *:not(summary) { padding-left: 16px; padding-right: 16px; }
.sf-faq__a { padding: 0 16px 6px; }
.sf-faq__a > *:not(:first-child) { padding: 0; }

/* After the article */
.sf-highlights { background: var(--ok-soft); border: 1px solid #c8e8d4; border-radius: 16px; padding: 18px; margin: 18px 0; }
.sf-highlights h2 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sf-highlights ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sf-highlights li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.sf-highlights li svg { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.sf-actions { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: 18px; padding: 22px; margin: 20px 0; }
.sf-actions h2 { color: #fff; font-size: 1.2rem; margin: 0 0 6px; }
.sf-actions > p { color: #c8d4f3; margin: 0 0 16px; font-size: .93rem; }
.sf-actions__btns { display: grid; gap: 10px; }
@media (min-width: 600px) { .sf-actions__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sf-actions__btns > :only-child { grid-column: 1 / -1; } }
.sf-actions .sf-btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.sf-actions .sf-btn--secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.sf-verified { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem; color: #c8d4f3; }
.sf-verified span { display: inline-flex; align-items: center; gap: 6px; }
.sf-verified svg { width: 16px; height: 16px; color: #67e39b; }
.sf-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; }
.sf-share__label { font-weight: 750; color: var(--ink-2); margin-right: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.sf-share__label svg { width: 18px; height: 18px; }
.sf-share a, .sf-share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 750; font-size: .86rem; cursor: pointer; }
.sf-share a:hover, .sf-share button:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sf-share .wa { background: #1c9f50; border-color: #1c9f50; color: #fff; }
.sf-share .wa:hover { background: #17863f; color: #fff; border-color: #17863f; }
.sf-share svg { width: 18px; height: 18px; }
.sf-share .is-done { background: var(--ok-soft); border-color: #b9e3c9; color: var(--ok); }
.sf-authorbox { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 18px 0; }
.sf-authorbox .sf-avatar { width: 54px; height: 54px; font-size: 1.15rem; }
.sf-authorbox__k { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
.sf-authorbox__name { display: block; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.sf-authorbox p { margin: 4px 0 6px; font-size: .9rem; color: var(--ink-2); }
.sf-authorbox__more { font-size: .86rem; font-weight: 750; }
.sf-block { margin: 28px 0; }
.sf-block > h2 { font-size: 1.28rem; margin-bottom: 14px; }
.sf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sf-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 650; font-size: .9rem; }
.sf-links a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sf-links svg { width: 14px; height: 14px; }
.sf-disclaimer { background: var(--warn-soft); border: 1px solid #f2d8a6; border-radius: 14px; padding: 14px 16px; font-size: .87rem; color: #5f4210; margin: 24px 0; }
.sf-disclaimer__k { font-weight: 800; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: #6b4300; }
.sf-disclaimer__k svg { width: 16px; height: 16px; }
.sf-disclaimer p { margin: 0; }

/* Sidebar */
.sf-side { display: grid; gap: 16px; min-width: 0; }
.sf-widget { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.sf-widget h3, .sf-widget .widget-title { font-size: .95rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sf-widget h3 svg { width: 18px; height: 18px; color: var(--brand); }
.sf-widget ul { padding-left: 1.1em; }
.sf-deadline { border-radius: 14px; padding: 16px; background: var(--ok-soft); color: var(--ok); text-align: center; }
.sf-deadline.is-closing { background: var(--bad-soft); color: var(--bad); }
.sf-deadline.is-expired { background: var(--slate-soft); color: var(--slate); }
.sf-deadline.is-unknown { background: var(--brand-soft); color: var(--brand); }
.sf-deadline__k { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sf-deadline__v { font-size: 1.35rem; font-weight: 900; margin: 4px 0; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.sf-deadline__s { font-size: .85rem; font-weight: 750; }
.sf-help { display: grid; gap: 12px; }
.sf-help--after { margin-top: 14px; }
.sf-help__row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; min-width: 0; }
.sf-help__row svg { color: var(--brand); width: 18px; height: 18px; margin-top: 2px; }
.sf-help__row div { min-width: 0; }
.sf-help__row b { display: block; font-size: .7rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.sf-help__row span { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.sf-sidebtns { display: grid; gap: 8px; }
.sf-mini { list-style: none; margin: 0; padding: 0 !important; display: grid; }
.sf-mini li { padding: 10px 0; border-top: 1px solid var(--line); }
.sf-mini li:first-child { border-top: 0; padding-top: 0; }
.sf-mini a { font-weight: 650; color: var(--ink); line-height: 1.38; display: block; font-size: .92rem; }
.sf-mini a:hover { color: var(--brand); }
.sf-mini small { display: block; color: var(--muted); font-size: .79rem; margin-top: 3px; }
.sf-mini small.dl { color: var(--bad); font-weight: 750; }

/* ---------- Hubs ---------- */
.sf-central { position: relative; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; border-radius: 16px; padding: 18px; margin-bottom: 28px; }
.sf-central:hover { text-decoration: none; box-shadow: var(--sh-2); }
.sf-central__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--accent); flex: 0 0 46px; }
.sf-central__body { min-width: 0; }
.sf-central strong { display: block; font-size: 1.08rem; }
.sf-central__body span { color: #c8d4f3; font-size: .9rem; }
.sf-central__n { margin-left: auto; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.sf-subhead { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 14px; }
.sf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .sf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 650; line-height: 1.3; min-width: 0; }
.sf-tile:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sf-tile small { flex: 0 0 auto; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 8px; font-size: .76rem; }
.sf-catgrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .sf-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sf-catcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--ink); }
.sf-catcard:hover { border-color: var(--brand-tint); box-shadow: var(--sh-2); text-decoration: none; }
.sf-catcard__ico { font-size: 1.5rem; line-height: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); }
.sf-catcard h2, .sf-catcard h3 { margin: 6px 0 0; font-size: 1.06rem; }
.sf-catcard p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.sf-catcard small { margin-top: auto; padding-top: 4px; font-weight: 800; color: var(--brand); font-size: .86rem; }

/* ---------- Pages, 404, comments, sitemap ---------- */
.sf-page { padding-bottom: 8px; }
.sf-page__inner { max-width: 880px; }
.sf-page__inner > h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 14px 0 16px; }
.sf-404 { text-align: center; padding: 48px 0 16px; }
.sf-404__code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; color: var(--brand-tint); line-height: 1; margin: 0; }
.sf-404 h1 { margin: 8px 0; }
.sf-404 p { color: var(--ink-2); max-width: 560px; margin: 0 auto 20px; }
.sf-404 .sf-search { max-width: 560px; margin: 0 auto 18px; }
.sf-comments { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 24px 0; }
.sf-comments__title, .comment-reply-title { font-size: 1.15rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 18px; }
.comment-list .children { list-style: none; padding-left: 16px; border-left: 2px solid var(--line); margin-left: 8px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--muted); }
.comment-content p { margin: .5em 0; }
.reply a { font-size: .85rem; font-weight: 750; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: #fff; }
.comment-form textarea { min-height: 120px; }
.comment-form .submit { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 800; cursor: pointer; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.comment-form-cookies-consent label { font-weight: 500; }
.sf-html-sitemap h2 { font-size: 1.2rem; margin-top: 1.4em; }
.sf-html-sitemap ul { columns: 2 260px; column-gap: 28px; padding-left: 1.1em; }
.sf-html-sitemap li { break-inside: avoid; margin: .3em 0; }
.sf-hs-date { color: var(--muted); font-size: .82em; }

/* ---------- Ads (AdSense slots set in the Customizer; Auto ads need no markup) ---------- */
.sf-ad { margin: 20px 0; text-align: center; }
.sf-ad-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.sf-footer { background: var(--foot-bg); color: #b4c1e2; margin-top: 44px; padding: 44px 0 0; font-size: .93rem; }
.sf-footer a { color: #dce5ff; }
.sf-footer__grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .sf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sf-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sf-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 12px; }
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-footer .is-accent { color: #ffd58a; }
.sf-footer .is-green { color: #8ce6b0; }
.sf-footer__brand p { margin: 14px 0 0; max-width: 380px; }
.sf-footer__social { display: flex; gap: 8px; margin-top: 16px; }
.sf-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.sf-footer__social svg { width: 18px; height: 18px; }
.sf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding: 18px 0 22px; font-size: .84rem; color: #8fa0c9; }
.sf-footer__bottomin { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; }
.sf-footer__bottom a { color: #c5d2f5; font-weight: 600; }

@media print {
  .sf-top, .sf-footer, .sf-side, .sf-share, .sf-ad, .sf-progress, .sf-drawer, .sf-toc { display: none !important; }
  body { background: #fff; }
  .sf-entry, .sf-posthead { border: 0; padding: 0; }
}
