/* ==========================================================================
   azbests.lv — galvenais stils
   Krāsas: ink #14202B, akcents #B9480F, pelēks fons #F3F5F7
   ========================================================================== */

:root {
  --ink: #14202B;
  --ink-2: #26323D;
  --text-2: #3A4652;
  --muted: #4A5763;
  --muted-2: #56626E;
  --line: #DDE2E7;
  --line-2: #E6EAEE;
  --grey: #F3F5F7;
  --accent: #B9480F;
  --accent-dark: #8A3409;
  --accent-light: #F4B48C;
  --warn-bg: #FDF4EE;
  --warn-line: #F0C4A6;
  --radius: 10px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Fona raksti ---------- */
.pat-l { background-image: url(../img/raksts-gaiss.svg); background-size: 320px 320px; }
.pat-d { background-image: url(../img/raksts-tumss.svg); background-size: 320px 320px; background-color: var(--ink); }

/* ---------- Animētās šķiedras ---------- */
.fx { position: relative; overflow: hidden; }
.fx-in { position: relative; z-index: 1; }
.fibers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fiber { position: absolute; overflow: visible; opacity: 0; will-change: transform, opacity; }
@keyframes az1 { 0% { transform: translate(0,0) rotate(0); opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { transform: translate(140px,-170px) rotate(35deg); opacity: 0 } }
@keyframes az2 { 0% { transform: translate(0,0) rotate(0); opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { transform: translate(-150px,-120px) rotate(-30deg); opacity: 0 } }
@keyframes az3 { 0% { transform: translate(0,0) rotate(0); opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { transform: translate(90px,150px) rotate(25deg); opacity: 0 } }
@keyframes az4 { 0% { transform: translate(0,0) rotate(0); opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { transform: translate(-70px,190px) rotate(-45deg); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .fiber { animation: none !important; opacity: .7; } }

/* ---------- Pogas ---------- */
.btn { display: inline-block; padding: 14px 22px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 13px 21px; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--grey); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Mazie virsraksti ---------- */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.kicker-light { color: var(--accent-light); font-size: 13px; }
.kicker-accent { color: var(--accent); font-size: 13px; }
.num { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.photo-note { font-size: 13px; color: #AEB8C2; }

/* ---------- Galva ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-in { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--accent); }

/* ---------- Galvenais bloks ---------- */
.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12,20,28,.92) 0%, rgba(12,20,28,.78) 45%, rgba(12,20,28,.35) 100%),
    url(../img/jumts-tuvplans.jpg) center / cover no-repeat;
}
.hero-in { padding-top: 120px; padding-bottom: 110px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 20px; color: #E3E8ED; max-width: 600px; }
.stat-card { flex: 1 1 320px; min-width: 0; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.stat { font-size: clamp(38px, 3.8vw, 50px); font-weight: 700; line-height: 1; color: var(--accent); white-space: nowrap; }
.stat-card p { margin: 0; font-size: 16px; color: var(--text-2); }
.stat-src { font-size: 13px; color: var(--muted-2); border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 6px; }

/* ---------- Sadaļas ---------- */
.section { padding: 80px 0; }
.section-grey { background-color: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-size: 34px; }
.section-head p { margin: 0; color: var(--muted); }
.link-strong { font-weight: 600; }

/* Tēmu kartītes */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.topic-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s, transform .2s; }
.topic-card:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(20,32,43,.12); transform: translateY(-2px); }
.topic-card img { width: 100%; height: 200px; object-fit: cover; }
.topic-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; flex-grow: 1; }
.topic-title { font-size: 21px; font-weight: 600; }
.topic-text { font-size: 15px; color: var(--muted); }
.more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Citāts */
.quote {
  color: #fff;
  background:
    linear-gradient(rgba(14,22,30,.84), rgba(14,22,30,.84)),
    url(../img/broceni-vesture.jpg) center / cover no-repeat;
}
.quote-in { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.4; font-weight: 500; }
.quote-src { margin: 0; font-size: 15px; color: #B9C3CD; }
.quote .photo-note { margin: 24px 0 0; color: #8E9AA6; }

/* Man tas neskar */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-side p { margin: 0; font-size: 17px; color: var(--text-2); }
.h-big { margin: 0; font-size: 40px; line-height: 1.1; }
.side-img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); margin-top: 8px; }
.myth-list { flex: 999 1 560px; min-width: 0; margin: 0; padding: 8px 32px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-self: flex-start; }
.myth-list li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-2); font-size: 18px; font-weight: 500; }
.myth-list li:last-child { border-bottom: 0; }
.myth-list .num { font-size: 15px; min-width: 28px; padding-top: 3px; }

/* Materiāli */
.grid-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.doc-card:hover { color: var(--ink); border-color: #B8C1CA; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: #fff; }
.doc-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.doc-meta { margin-top: auto; font-size: 14px; color: var(--muted-2); }

/* Tests / ziņošana */
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.cta { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cta img { width: 100%; height: 220px; object-fit: cover; }
.cta-body { padding: 32px 36px 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta h2 { margin: 0; font-size: 28px; }
.cta p { margin: 0; font-size: 17px; }
.cta .btn { margin-top: 8px; }
.cta-dark { color: #fff; justify-content: flex-end; }
.cta-dark p { color: #D5DCE2; }
.big-num { font-family: var(--mono); font-size: 64px; font-weight: 500; line-height: 1; color: var(--accent-light); }
.cta-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.cta-warn p { color: var(--text-2); }

/* ---------- Raksta lapa ---------- */
.crumbs-bar { background-color: var(--grey); border-bottom: 1px solid var(--line); }
.crumbs { padding: 28px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }
.article-layout { padding-top: 40px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 56px; }
.article { flex: 999 1 600px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 22px; line-height: 1.6; }
.article h1 { margin: 0; font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -0.02em; }
.article h2 { margin: 18px 0 0; font-size: 28px; }
.article p { margin: 0; font-size: 18px; color: var(--ink-2); }
.article .lead-dark { font-size: 20px; color: var(--text-2); }
.article-meta { font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 16px; }
.article figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article figcaption { font-size: 14px; color: var(--muted-2); }
.fig-main { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.fig-second { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; }
.notice svg { flex: none; margin-top: 2px; }
.notice div { display: flex; flex-direction: column; gap: 4px; }
.notice strong { font-size: 17px; }
.notice span { font-size: 16px; color: var(--text-2); }

.aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.toc ol { margin: 12px 0 0; padding-left: 20px; font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--ink); }
.related { display: flex; flex-direction: column; }
.related .kicker { margin-bottom: 4px; }
.related a { padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.related a:hover .rel-title { color: var(--accent); }
.rel-title { font-size: 16px; font-weight: 600; }
.rel-cat { font-size: 14px; color: var(--muted-2); }
.dl-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; color: #fff; border-radius: var(--radius); text-decoration: none; }
.dl-card:hover { color: #fff; }
.dl-title { font-size: 17px; font-weight: 600; }
.dl-meta { font-size: 14px; color: #B9C3CD; }

/* ---------- Kājene ---------- */
.site-footer { color: #D5DCE2; }
.footer-in { padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-about { flex: 1 1 360px; min-width: 0; }
.footer-about p { margin: 10px 0 0; font-size: 15px; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; align-items: flex-start; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-bottom { margin-top: 28px; border-top: 1px solid #2E3B48; padding-top: 20px; font-size: 14px; color: #AEB8C2; }

/* ---------- Telefons ---------- */
@media (max-width: 700px) {
  .hero-in { padding-top: 64px; padding-bottom: 64px; }
  .section { padding: 56px 0; }
  .h-big { font-size: 32px; }
  .myth-list { padding: 4px 20px; }
  .myth-list li { font-size: 16px; }
  .cta-body { padding: 26px; }
  .fig-main { height: 240px; }
  .fig-second { height: 220px; }
  .main-nav { gap: 6px 16px; }
}

/* ==========================================================================
   Satura lapas (v2)
   ========================================================================== */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }
.crumbs span[aria-current] { color: var(--ink); }

.page-wide { padding-top: 40px; padding-bottom: 80px; }
.page-wide h1 { margin: 0 0 16px; font-size: clamp(32px, 4.5vw, 46px); letter-spacing: -0.02em; }
.page-wide h2 { margin: 48px 0 20px; font-size: 28px; }
.narrow { max-width: 760px; }
.small-note { font-size: 14px !important; color: var(--muted-2) !important; }
.article ul, .article ol { font-size: 17px; color: var(--ink-2); }
.article h3 { margin: 0 0 8px; font-size: 19px; }

/* Faktu josla */
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); background: #fff; }
.fact-num { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1.1; }

/* Saraksti */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.dont-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dont-list li { position: relative; padding-left: 30px; }
.dont-list li::before, .dont-list li::after { content: ""; position: absolute; left: 4px; top: 12px; width: 16px; height: 2.5px; background: #B42318; }
.dont-list li::before { transform: rotate(45deg); }
.dont-list li::after { transform: rotate(-45deg); }
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: st; position: relative; padding-left: 48px; min-height: 32px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 14px; display: grid; place-items: center; }

/* Kartītes */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.card p { font-size: 16px !important; }
.card ul { margin: 0; padding-left: 20px; font-size: 16px; }
.card-ok { border-color: #A6D3B4; background: #F1F8F3; }
.card-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.card-accent { border-top: 4px solid var(--accent); }
.big-phone { font-size: 28px !important; font-weight: 700; margin: 4px 0 8px !important; }
.big-phone a { text-decoration: none; }
.callout { border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.callout p { font-size: 17px !important; }
.callout ul { margin: 0; padding-left: 20px; }
.callout-info { background: #EEF4FB; border: 1px solid #BFD4EC; }

/* BUJ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; }

/* Avoti */
.sources { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 20px !important; margin: 0 0 12px !important; }
.sources ol { margin: 0; padding-left: 22px; font-size: 15px !important; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.sources .checked { font-size: 13px !important; color: var(--muted-2) !important; margin-top: 12px !important; }

/* Tabula */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.table th { background: var(--grey); font-size: 14px; font-weight: 600; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }

/* Laika līnija */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 24px; display: flex; flex-direction: column; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl-year { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--accent); }

/* Mājas ilustrācija */
.house-figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.house-svg { display: block; width: 100%; height: auto; }
.house-list { counter-reset: hl; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 24px; }
.house-list li { counter-increment: hl; position: relative; padding-left: 40px; font-size: 16px; }
.house-list li::before { content: counter(hl); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* Slimības */
.disease-list { display: flex; flex-direction: column; gap: 12px; }
.disease { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.disease-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.disease-head h3 { margin: 0; }
.disease p { font-size: 16px !important; }
.badge { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 4px; background: var(--ink); color: #fff; }
.badge-muted { background: var(--line); color: var(--ink); }

/* Latentais periods */
.latency { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.lat-row { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; font-size: 15px; }
.lat-bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, transparent calc(var(--from) * 2%), var(--accent) calc(var(--from) * 2%), var(--accent) calc(var(--to) * 2%), transparent calc(var(--to) * 2%)), var(--grey); }
.lat-val { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lat-axis { display: flex; justify-content: space-between; margin-left: 162px; margin-right: 102px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* Grafiks */
.chart-figure { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.chart { display: block; width: 100%; height: auto; font-family: var(--mono); }

/* Normatīvi */
.law-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.law-list li { padding: 14px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.law-list li a { font-weight: 600; }
.law-list li span { font-size: 15px; color: var(--muted); }

/* Gadījumi */
.case { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.case img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; }
.case p, .case li { font-size: 16px !important; margin-top: 6px !important; }
.timeline-facts { padding-left: 18px; }
.case .case-fig { margin: 14px 0 6px; }
.case .case-fig img { height: auto; max-height: 360px; }
.case .case-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Sākumlapa: atbalsts */
.support { background-color: var(--warn-bg); border-top: 1px solid var(--warn-line); border-bottom: 1px solid var(--warn-line); }
.support-in { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.support-in > div { flex: 1 1 520px; max-width: 760px; }
.support h2 { margin: 6px 0 10px; font-size: 30px; }
.support p { margin: 0; font-size: 17px; color: var(--text-2); }

/* Mīti un fakti */
.myth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.myth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.myth-card p { margin: 0; }
.myth { font-size: 17px; font-weight: 600; color: var(--ink); }
.fact-text { font-size: 16px; color: var(--text-2); }
.mf-label { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-right: 8px; vertical-align: 2px; }
.mf-myth { background: #FBE4E2; color: #9A2216; }
.mf-fact { background: #E2F2E7; color: #1D6B3A; }

/* Video */
.grid-video { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.video-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.video-card:hover { color: var(--ink); }
.video-card:hover .video-title { color: var(--accent); }
.video-thumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(185,72,15,.92); display: grid; place-items: center; }
.video-title { font-weight: 600; font-size: 16px; line-height: 1.35; margin-top: 4px; }
.video-src { font-size: 14px; color: var(--muted-2); }

/* Tests */
.quiz-wrap { max-width: 760px; }
.quiz { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0; }
.q legend { font-weight: 600; font-size: 18px; padding: 0 6px; }
.q .num { margin-right: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.opt:hover { background: var(--grey); }
.opt input { margin-top: 4px; accent-color: var(--accent); }
.opt.ok { background: #E2F2E7; }
.opt.bad { background: #FBE4E2; }
.why { margin: 10px 0 0; padding: 12px 14px; background: #EEF4FB; border-radius: 6px; font-size: 15px; }
.quiz-result { font-size: 18px; }
.quiz .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }

@media (max-width: 700px) {
  .case { grid-template-columns: 1fr; }
  .lat-row { grid-template-columns: 1fr; gap: 4px; }
  .lat-axis { display: none; }
  .steps li { padding-left: 42px; }
}

/* Kājenes kolonnas */
.footer-nav { gap: 24px 48px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav strong { color: #fff; font-size: 13px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer-bottom p { margin: 0 0 6px; }

@media (max-width: 700px) {
  .table { font-size: 14px; }
  .table th, .table td { padding: 10px; }
}

/* ---------- Atsauces [1] ---------- */
.refs { font-size: .68em; line-height: 0; margin-left: 2px; white-space: nowrap; vertical-align: super; }
.ref { font-family: var(--mono); text-decoration: none; color: var(--accent); padding: 0 1px; }
.ref:hover { text-decoration: underline; }
.quote .ref, .hero .ref { color: #F4B48C; }
.sources li { scroll-margin-top: 90px; }
.sources li:target { background: #FFF4D6; border-radius: 4px; outline: 4px solid #FFF4D6; }
.section-sources { padding: 8px 0 56px; }
.section-sources .sources { margin-top: 0; }

/* ---------- Papildu bloki ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grid-3 .card h3 { font-size: 17px; }
.disease .sym { margin-top: 8px !important; font-size: 15px !important; color: var(--muted) !important; }
.doc-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-checklist li { position: relative; padding: 10px 14px 10px 44px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.doc-checklist li::before { content: ""; position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; }
.law-title { font-weight: 600; color: var(--ink) !important; font-size: 16px !important; }

/* TEC-2 stāsts: galerija un dokumentu saraksts */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.doc-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.doc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.doc-list li a { font-weight: 600; }
.doc-list li span { font-size: 14px; color: var(--muted); }
.article .table + .table { margin-top: 18px; }

/* Bilžu skatītājs (assets/js/lightbox.js) */
.gallery a, a.zoom { cursor: zoom-in; display: block; }
.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 16, 22, .92); display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #E6EBEF; font-size: 15px; text-align: center; max-width: 900px; }
.lb button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 32px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.25); outline: none; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 24px; color: #A9B4BE; font-family: var(--mono); font-size: 13px; }
@media (max-width: 640px) {
  .lb { padding: 56px 8px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
.article .case-fig { margin: 18px 0 8px; }
.article .case-fig img { width: 100%; border-radius: 6px; }
.article .case-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Valodu pārslēdzējs blakus logo: pārējās valodas vertikāli */
.lang-switch { display: flex; flex-direction: column; gap: 2px; margin-left: 4px; font-family: var(--mono); font-size: 12px; line-height: 1; }
.lang-switch { gap: 3px; }
.lang-switch a { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; text-align: center; }
.lang-switch a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.header-in .main-nav { margin-left: auto; }
.header-in { justify-content: flex-start; }
html[lang="ru"] .main-nav { gap: 6px 14px; }
