/* =================================================================
   Bilanca — financijska pismenost (Hrvatska)
   Design ORIGINAL: ozbiljni dnevni news-portal (stil kvalitetnih novina).
   Bijela podloga, vodeća PLAVA + hrvatski crveni naglasak. Serifni naslovi.
   Font: Source Serif 4 (naslovi) / Work Sans (tekst). Marka/sadržaj originalni.
   ================================================================= */

:root {
  --paper:    #FFFFFF;
  --paper-2:  #F3F5FA;
  --paper-3:  #E8ECF4;
  --ink:      #14171E;
  --ink-soft: #353B47;
  --muted:    #69707F;
  --faint:    #97A0B0;

  --blue:     #1A4FB0;
  --blue-deep:#123A86;
  --blue-wash:#E9F0FB;
  --blue-line:rgba(26,79,176,0.28);
  --navy:     #0F2350;
  --red:      #D7152A;
  --red-wash: #FBE7EA;

  --line:     rgba(20,23,30,0.13);
  --line-2:   rgba(20,23,30,0.26);
  --dark:     #0F2350;
  --dark-2:   #0A1A3D;

  --shadow-sm: 0 1px 2px rgba(20,23,30,0.07);
  --shadow-md: 0 16px 40px -22px rgba(15,35,80,0.32);
  --shadow-lg: 0 34px 64px -26px rgba(15,35,80,0.42);

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --maxw: 1220px;
  --pad: clamp(1rem, 3.5vw, 2.6rem);

  --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); font-weight: 700; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); letter-spacing: -0.01em; }
p { color: var(--ink-soft); }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

.kicker, .eyebrow {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.kicker::before, .eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--red); display: inline-block; }
.kicker--blue { color: var(--blue); }
.kicker--blue::before { background: var(--blue); }
.sec-num { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.standfirst { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--ink-soft); font-weight: 400; line-height: 1.5; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(2.8rem, 5.5vw, 5rem); }
.section--tight { padding-block: clamp(1.8rem, 3.5vw, 3rem); }
.section--alt { background: var(--paper-2); }
.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 720px; }
.maxw-mid { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.82rem 1.5rem; background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn--primary { --bg: var(--blue); --fg: #fff; }
.btn--primary:hover { --bg: var(--blue-deep); border-color: var(--blue-deep); }
.btn--red { --bg: var(--red); --fg: #fff; border-color: var(--red); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--navy); border-color: #fff; }
.btn--light:hover { --bg: var(--paper-2); border-color: var(--paper-2); }
.btn--lg { padding: 0.98rem 1.85rem; font-size: 0.98rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue); transition: gap 0.2s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 0.65rem; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #B9C4DC; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 1rem; font-size: 0.77rem; font-weight: 500; letter-spacing: 0.02em; }
.topbar a { color: #DCE4F2; }
.topbar a:hover { color: #fff; }
@media (max-width: 680px) { .topbar__right { display: none; } }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: clamp(0.9rem, 2vw, 1.5rem); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 0.95; letter-spacing: -0.02em; }
.brand__name b { color: var(--blue); font-weight: 700; }
.brand__name small { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.masthead__meta { text-align: right; font-size: 0.78rem; color: var(--muted); font-weight: 500; line-height: 1.5; }
.masthead__meta b { color: var(--ink); display: block; font-weight: 700; }
@media (max-width: 620px) { .masthead__meta { display: none; } }

/* ---------- Section nav (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 2px solid var(--blue); transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.nav__brand-mini { display: none; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.nav__brand-mini b { color: var(--blue); }
.site-header.is-scrolled .nav__brand-mini { display: inline-flex; }
.nav__links { display: flex; align-items: center; gap: 0; }
.nav__links a {
  font-family: var(--font-body); padding: 0.5rem 0.85rem; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); position: relative; transition: color 0.2s;
}
.nav__links a::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.22s var(--ease); }
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--blue); }
.nav__cta { margin-left: 0.6rem; }
.nav .nav__cta a.btn { color: var(--fg); }
.nav .nav__cta a.btn::after { display: none; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
body.menu-open .nav__toggle .icon-open { display: none; }
body.menu-open .nav__toggle .icon-close { display: block; }

@media (max-width: 1000px) {
  .nav__toggle { display: inline-flex; }
  .nav__brand-mini { display: inline-flex !important; }
  .nav__links {
    position: fixed; inset: 54px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 0.4rem var(--pad) 1.4rem; border-bottom: 2px solid var(--blue);
    box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  body.menu-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.9rem 0.3rem; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 0.9rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- LEAD (horizontalni glavni članak) ---------- */
.lead-wrap { padding-block: clamp(1.6rem, 3vw, 2.6rem); }
.lead-story { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; }
.lead-story__media { overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); }
.lead-story__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.lead-story h1 { margin: 0.7rem 0 0.9rem; }
.lead-story h1 a:hover { color: var(--blue); }
.lead-story__sf { max-width: 50ch; }
.lead-story__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 1.1rem; font-size: 0.77rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.lead-story .btn { margin-top: 1.3rem; }
@media (max-width: 880px) { .lead-story { grid-template-columns: 1fr; } }

/* ---------- U fokusu (3 kartice) ---------- */
.fokus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: clamp(1.6rem,3vw,2.4rem); }
.fokus a { display: grid; gap: 0.5rem; padding: 1.3rem 1.4rem 1.3rem 0; border-right: 1px solid var(--line); }
.fokus a:last-child { border-right: 0; }
.fokus__lbl { font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.fokus h3 { font-size: 1.3rem; line-height: 1.12; }
.fokus a:hover h3 { color: var(--blue); }
@media (max-width: 760px) { .fokus { grid-template-columns: 1fr; } .fokus a { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } .fokus a:last-child { border-bottom: 0; } }

/* ---------- Section head ---------- */
.sec-head { display: flex; align-items: center; gap: 0.8rem; border-bottom: 2px solid var(--blue); padding-bottom: 0.5rem; margin-bottom: clamp(1.3rem, 2.5vw, 1.9rem); }
.sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.sec-head__tab { background: var(--blue); color: #fff; font-family: var(--font-body); font-weight: 800; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.05em; padding: 0.4rem 0.8rem; border-radius: var(--r-xs); }
.sec-head .link-arrow { margin-left: auto; }

/* ---------- Editorial body: feed + sidebar ---------- */
.editorial { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }
@media (max-width: 940px) { .editorial { grid-template-columns: 1fr; } }

.feed { display: grid; }
.feed__row { display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); align-items: start; }
.feed__row:first-child { border-top: 0; padding-top: 0; }
.feed__media { overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); }
.feed__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.5s var(--ease); }
.feed__row:hover .feed__media img { transform: scale(1.05); }
.feed__lbl { font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.feed__body h3 { margin: 0.35rem 0 0.4rem; font-size: 1.45rem; line-height: 1.1; }
.feed__row:hover h3 { color: var(--blue); }
.feed__body p { font-size: 0.95rem; color: var(--muted); }
.feed__m { margin-top: 0.5rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--faint); }
@media (max-width: 520px) { .feed__row { grid-template-columns: 1fr; } }

.aside { display: grid; gap: 1.6rem; position: sticky; top: 70px; }
@media (max-width: 940px) { .aside { position: static; } }
.najcit-box { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r-sm); padding: 1.2rem 1.3rem; }
.najcit-box h3 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.05em; color: var(--ink); margin-bottom: 0.3rem; }
.najcit-box ol { list-style: none; counter-reset: n; display: grid; }
.najcit-box li { counter-increment: n; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; padding: 0.75rem 0; border-top: 1px solid var(--line); align-items: start; }
.najcit-box li:first-child { border-top: 0; }
.najcit-box li::before { content: counter(n); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--blue); line-height: 0.9; }
.najcit-box a { font-weight: 600; font-size: 0.97rem; line-height: 1.2; }
.najcit-box a:hover { color: var(--blue); }
.aside-komentar { background: var(--navy); color: #E4EAF6; border-radius: var(--r-sm); padding: 1.3rem 1.4rem; }
.aside-komentar .kicker { color: #ff8a96; }
.aside-komentar .kicker::before { background: var(--red); }
.aside-komentar p { font-family: var(--font-display); font-style: italic; font-size: 1.18rem; line-height: 1.35; color: #fff; margin-top: 0.6rem; }
.aside-komentar .by { font-family: var(--font-body); font-style: normal; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9fb4dd; margin-top: 0.8rem; }

/* ---------- Komentar band (mišljenje) ---------- */
.komentar { background: var(--navy); color: #E4EAF6; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.6rem); position: relative; overflow: hidden; }
.komentar::before { content: "\201C"; position: absolute; top: -0.08em; left: 0.14em; font-family: var(--font-display); font-size: 13rem; color: rgba(255,255,255,0.07); line-height: 1; }
.komentar__q { position: relative; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; color: #fff; max-width: 26ch; }
.komentar__by { position: relative; margin-top: 1.3rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8fa6d6; }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: clamp(1.4rem, 2.5vw, 2rem); height: 100%; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--blue-wash); color: var(--blue); }
.card__icon svg { width: 24px; height: 24px; }
.card--red { border-top-color: var(--red); }
.card--red .card__icon { background: var(--red-wash); color: var(--red); }
.card h3 { font-size: 1.45rem; margin-bottom: 0.45rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card__foot { margin-top: 1.1rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4/3; border-radius: var(--r-sm); }
.split__media { position: relative; }
.split__tag { position: absolute; left: 0; top: 0; background: var(--blue); color: #fff; font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 0.9rem; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.checklist { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }

/* ---------- Dark band ---------- */
.band-dark { background: var(--navy); color: #DCE3F2; position: relative; overflow: hidden; border-radius: var(--r-md); }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark p { color: #AEBAD6; }
.band-dark .kicker { color: #ff8a96; }
.band-dark .kicker::before { background: var(--red); }
.band-dark .kicker--blue { color: #8fb4ff; }
.band-dark::after { content: ""; position: absolute; top: -35%; right: -8%; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(26,79,176,0.4), transparent 65%); pointer-events: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid rgba(255,255,255,0.16); align-items: start; }
.step:first-child { border-top: 0; }
.step__n { counter-increment: s; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: #8fb4ff; line-height: 0.9; }
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h4 { margin-bottom: 0.3rem; color: #fff; }
.step p { font-size: 0.97rem; }

/* ---------- Stat band (hr boje) ---------- */
.statband { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.statband__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.statband__grid > div { padding: clamp(1.6rem, 3vw, 2.3rem); border-right: 1px solid var(--line); position: relative; }
.statband__grid > div::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.statband__grid > div:nth-child(1)::before { background: var(--red); }
.statband__grid > div:nth-child(2)::before { background: var(--ink); }
.statband__grid > div:nth-child(3)::before { background: var(--blue); }
.statband__grid > div:last-child { border-right: 0; }
.statband__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); color: var(--ink); line-height: 1; }
.statband__lbl { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
@media (max-width: 640px) { .statband__grid { grid-template-columns: 1fr; } .statband__grid > div { border-right: 0; border-bottom: 1px solid var(--line); } .statband__grid > div:last-child { border-bottom: 0; } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3,1fr); border-top: 3px solid var(--blue); border-bottom: 1px solid var(--line); }
.facts > div { padding: 1.7rem 1.5rem 1.7rem 0; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; padding-right: 0; }
.facts .fact__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; color: var(--blue); margin-bottom: 0.4rem; }
.facts .fact__lbl { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } .facts > div:last-child { border-bottom: 0; } }

/* ---------- Prose ---------- */
.prose { max-width: 740px; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.prose h3 { margin-top: 2rem; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.prose p, .prose li { color: var(--ink-soft); }
.prose > p:first-of-type::first-letter, .prose .dropcap::first-letter { font-family: var(--font-display); font-size: 3.4em; font-weight: 700; float: left; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--blue); }
.prose ul { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 3px; background: var(--blue); }
.prose ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.prose ol li::marker { color: var(--blue); font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--red); padding: 0.3rem 0 0.3rem 1.3rem; font-family: var(--font-display); font-style: italic; font-size: 1.55rem; line-height: 1.3; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 0.6rem; }
.prose table th, .prose table td { text-align: left; padding: 0.72rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
.prose table th { background: var(--paper-2); color: var(--ink); font-family: var(--font-body); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.4rem, 3vw, 2.2rem); border-bottom: 2px solid var(--blue); position: relative; }
.page-hero h1 { margin: 0.7rem 0 1rem; max-width: 20ch; }
.page-hero .lead, .page-hero .standfirst { max-width: 60ch; }
.breadcrumb { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Blog / post cards ---------- */
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.tag { font-family: var(--font-body); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.post-card h3 { margin: 0.5rem 0 0.5rem; font-size: 1.4rem; line-height: 1.12; }
.post-card:hover h3 { color: var(--blue); }
.post-card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.post-card .link-arrow { margin-top: 0.9rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.82rem 0.95rem; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-family: var(--font-body); font-size: 0.99rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 144px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2369707F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.field__error { font-family: var(--font-body); font-size: 0.76rem; font-weight: 700; color: var(--red); display: none; }
.field.invalid .field__error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.check label { font-size: 0.92rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.check.invalid label { color: var(--red); }
.check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-size: 0.78rem; color: var(--faint); }
.form-success { display: none; align-items: flex-start; gap: 0.8rem; background: var(--blue-wash); border: 1px solid var(--blue-line); border-left-width: 4px; border-radius: var(--r-sm); padding: 1.1rem 1.2rem; }
.form-success.show { display: flex; }
.form-success svg { width: 24px; height: 24px; flex: none; color: var(--blue); margin-top: 2px; }
.form-success b { color: var(--ink); display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.form-success span { color: var(--ink-soft); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r-sm); padding: clamp(1.4rem, 3vw, 2.3rem); box-shadow: var(--shadow-sm); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1.15rem 1.3rem; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 2px; }
.callout p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.callout b { color: var(--ink); }
.callout--info { border-left-color: var(--blue); }
.callout--info svg { color: var(--blue); }
.callout--risk { background: var(--red-wash); border-left-color: var(--red); }
.callout--risk svg { color: var(--red); }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.7rem; }
.contact-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact-list__ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; }
.contact-list__ic svg { width: 20px; height: 20px; }
.contact-list__txt { padding-top: 1px; }
.contact-list b { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list__txt a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.contact-list__txt > span { font-size: 0.99rem; color: var(--ink-soft); }

/* ---------- TOC / pill ---------- */
.toc { background: var(--paper-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r-sm); padding: 1.3rem 1.5rem; }
.toc h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.toc ul { display: grid; gap: 0.5rem; }
.toc a { font-size: 0.98rem; color: var(--ink-soft); }
.toc a:hover { color: var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 0.35rem 0.75rem; border-radius: var(--r-xs); }

/* ---------- CTA panel ---------- */
.cta-panel { padding: clamp(2.4rem, 5vw, 4rem); text-align: center; }
.cta-panel .btn { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #A9B5D0; padding-block: clamp(3rem, 6vw, 4.2rem) 2rem; border-top: 4px solid var(--blue); }
.site-footer a { color: #C7D1E6; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer__brand .ft-name { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #fff; letter-spacing: -0.02em; }
.footer__brand .ft-name b { color: #6f9bff; }
.footer__brand p { color: #7E8CB0; font-size: 0.93rem; margin-top: 1.1rem; max-width: 38ch; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { font-size: 0.93rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: 0.78rem; color: #6E7CA0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__disclaimer { font-size: 0.86rem; color: #7E8CB0; line-height: 1.6; margin-top: 1.6rem; max-width: 92ch; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 50%; bottom: clamp(0.8rem, 2vw, 1.4rem); transform: translateX(-50%) translateY(160%); z-index: 80; width: min(680px, calc(100% - 1.6rem)); background: var(--paper); border: 1px solid var(--ink); border-top: 4px solid var(--blue); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem; transition: transform 0.45s var(--ease); }
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie__head { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.55rem; }
.cookie__head svg { width: 22px; height: 22px; color: var(--blue); }
.cookie__head h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.cookie p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.cookie p a { color: var(--blue); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie__actions .btn { padding: 0.7rem 1.1rem; font-size: 0.8rem; }
.cookie__actions .btn--ghost { flex: 1; min-width: 150px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.show { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15,35,80,0.5); backdrop-filter: blur(3px); }
.modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, calc(100% - 1.6rem)); max-height: 90vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); border-top: 4px solid var(--blue); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 1.7rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.modal__head h3 { font-weight: 700; }
.modal__close { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper-2); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.modal__sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: center; }
.pref h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.pref p { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); margin: 0; }
.pref__locked { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #C4CCDB; border-radius: 100px; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.modal__actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 140px; }

/* ---------- Toast ---------- */
.kw-toast { position: fixed; left: 50%; bottom: clamp(0.8rem,2vw,1.4rem); transform: translateX(-50%) translateY(170%); z-index: 95; display: flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; border-radius: var(--r-sm); padding: 0.8rem 1.2rem; box-shadow: var(--shadow-lg); font-size: 0.86rem; font-weight: 600; max-width: calc(100% - 1.6rem); transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); opacity: 0; }
.kw-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.kw-toast svg { width: 20px; height: 20px; color: #8fb4ff; flex: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:0.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3rem}
.mb-2{margin-bottom:1.2rem}
.text-muted{color:var(--muted)}
.divider{height:1px;background:var(--line);border:0;margin-block:clamp(2rem,5vw,3.5rem)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--blue);color:#fff;padding:0.6rem 1rem;border-radius:0 0 4px 0;z-index:200;font-weight:800}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:2px}
