/* Fable 5.2 Complete Redesign - dogcanhave.com - 2026-12-03 */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap");

/* dogcanhave.css - Warm Vet Botanical */
:root {
  color-scheme: light;
  --bg: #FBF8F2;
  --well: #F6F1E7;
  --pan: #FFFFFF;
  --pan-2: #F1EBDF;
  --line: #E6DFD3;
  --line-2: #CFC6B6;
  --ink: #1D211E;
  --dim: #4A524C;
  --mute: #5F675F;
  --acc: #1A5340;
  --acc-deep: #123D2F;
  --acc-ink: #FFFFFF;
  --acc-dim: #E3EFE9;
  --honey: #C96A22;
  --honey-ink: #9A4A10;
  --st-ok: #15803D;
  --st-ok-bg: #DCFCE7;
  --st-warn: #B45309;
  --st-warn-bg: #FEF3C7;
  --st-err: #B91C1C;
  --st-err-bg: #FEE2E2;
  --st-na: #4A524C;
  --st-na-bg: #EEE9DF;
  --c-tolltrail: #29b6ff;
  --c-kaputmap: #ff9500;
  --c-dagsjekk: #19e68c;
  --c-fuelpuls: #ffd21f;
  --c-clockpuls: #ff4a1c;
  --c-meteopuls: #d4e24a;
  --c-mathpuls: #f3d35b;
  --c-colorpuls: #4fd1c5;
  --f-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-cond: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --r: 16px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(60, 45, 20, 0.05), 0 6px 20px rgba(60, 45, 20, 0.05);
  --sh-up: 0 2px 4px rgba(26, 83, 64, 0.06), 0 16px 34px rgba(26, 83, 64, 0.14);
  --max-w: 1160px;
  --pad-x: 16px;
}
html[lang="ar"] {
  --f-sans: "Tahoma", "Segoe UI", "Geeza Pro", Arial, sans-serif;
  --f-cond: "Tahoma", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

.num, time, code, .code, .ltr { font-variant-numeric: tabular-nums; }
[dir="rtl"] .ltr,
[dir="rtl"] time,
[dir="rtl"] code,
[dir="rtl"] .code {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] th,
[dir="rtl"] .kicker, [dir="rtl"] .btn, [dir="rtl"] .nav a, [dir="rtl"] .st-badge {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

a {
  color: var(--acc);
  text-decoration: underline;
  text-decoration-color: rgba(26, 83, 64, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
a:hover { color: var(--honey-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--acc); color: #fff; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 100;
  background: #fff;
  color: var(--acc);
  font: 600 14px/1 var(--f-sans);
  text-decoration: none;
  border-radius: 999px;
}
.skip:focus {
  width: auto; height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip-path: none;
  inset-inline-start: 8px;
  top: 8px;
}

/* Layout */
.w {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
main.w { padding-bottom: 72px; }
.g2, .g3, .g4, .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.g2 > *, .g3 > *, .g4 > *, .split > * { min-width: 0; }

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.matrix > * { background: var(--pan); padding: 16px; min-width: 0; }
.matrix--well > * { background: var(--well); }

/* Header */
.top {
  background: var(--acc);
  color: #fff;
  border-bottom: 3px solid var(--honey);
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-block: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 700 23px/1 var(--f-cond);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  direction: ltr;
  unicode-bidi: isolate;
}
.logo b { color: #FFD9A8; font-weight: 700; }
.logo:hover { color: #fff; }
.logo img, .logo svg {
  flex: none;
  width: 38px; height: 38px;
  padding: 6px;
  background: var(--bg);
  border-radius: 12px;
}
.top-end {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cn { display: inline-flex; gap: 4px; }
.cn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 34px;
  padding-inline: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font: 600 12px/1 var(--f-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #E4EFEA;
}
.cn a:hover { color: #fff; border-color: #fff; }
.cn a[aria-current="page"], .cn a.on {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--acc);
}
.lang-dd { position: relative; }
.lang-dd summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 12px/1 var(--f-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary::after { content: "+"; color: #FFD9A8; font: 600 15px/1 var(--f-mono); }
.lang-dd[open] summary { background: var(--acc-deep); border-color: #fff; }
.lang-dd[open] summary::after { content: "-"; }
.lang-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 6px;
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-up);
}
.lang-panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
}
.lang-panel a b { font: 600 11px/1 var(--f-sans); color: var(--mute); text-transform: uppercase; }
.lang-panel a:hover, .lang-panel a[aria-current="page"] { background: var(--acc); color: #fff; }
.lang-panel a:hover b, .lang-panel a[aria-current="page"] b { color: #fff; }

.nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font: 500 14.5px/1.15 var(--f-sans);
  text-decoration: none;
  color: #E4EFEA;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav a[aria-current="page"] { color: var(--acc); background: var(--bg); font-weight: 600; }

/* In-page guide switcher (Dogs | Cats | All foods) */
main > nav:not(.nav):not(.bc) {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin-top: 22px;
  padding: 4px;
  background: var(--pan);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh);
  font-size: 0;
}
main > nav:not(.nav):not(.bc) a {
  padding: 9px 18px;
  border-radius: 999px;
  font: 600 14px/1.2 var(--f-sans);
  color: var(--ink);
  text-decoration: none;
}
main > nav:not(.nav):not(.bc) a:hover { background: var(--acc-dim); color: var(--acc); }
main > nav:not(.nav):not(.bc) a[aria-current="page"] { background: var(--acc); color: #fff; }

/* Ticker */
.tk {
  border-bottom: 1px solid var(--line);
  background: var(--well);
  font-size: 13px;
  line-height: 1.35;
  color: var(--dim);
}
.tk .w {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding-block: 8px;
}
.tk-item { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.tk-sep { color: var(--line-2); }
.pu {
  flex: none;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
  animation: puls-blink 2s ease-in-out infinite;
}
@keyframes puls-blink {
  50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .pu { animation: none; }
  * { transition: none !important; }
}

/* Breadcrumbs */
.bc {
  padding-top: 16px;
  font: 500 13px/1.4 var(--f-sans);
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.bc a { color: var(--acc); text-decoration: none; }
.bc a:hover { color: var(--honey-ink); text-decoration: underline; }
.bc span[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding-block: 28px 8px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font: 600 12px/1.2 var(--f-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey-ink);
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}
h1 {
  font: 700 clamp(31px, 6.4vw, 56px)/1.06 var(--f-cond);
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 20ch;
}
.hero h1::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--honey);
}
h2 {
  font: 600 clamp(22px, 3.4vw, 28px)/1.2 var(--f-cond);
  letter-spacing: -0.01em;
  color: var(--ink);
}
main > h2 { margin: 48px 0 18px; }
h3 { font: 600 18px/1.3 var(--f-sans); color: var(--ink); }
main > p { margin-top: 16px; max-width: 76ch; color: var(--dim); }
.lead {
  margin-top: 12px;
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--dim);
}
.hero + .lead { margin-top: 18px; }
.hero + .lead > a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 0 4px 8px 0;
  padding: 11px 22px;
  border: 1.5px solid var(--acc);
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font: 600 15px/1.1 var(--f-sans);
  text-decoration: none;
}
.hero + .lead > a + a { background: var(--pan); color: var(--acc); }
.hero + .lead > a:hover { background: var(--acc-deep); border-color: var(--acc-deep); color: #fff; }

/* Emergency note on index */
main > .tbl-wrap + p {
  margin-top: 32px;
  max-width: none;
  padding: 18px 20px;
  background: #FFF6F4;
  border: 1px solid #F3C9C4;
  border-inline-start: 5px solid var(--st-err);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 15px;
}
main > .tbl-wrap + p a { color: var(--st-err); font-weight: 600; text-decoration-color: currentColor; }
main > .tbl-wrap + p a:hover { color: #7F1D1D; }

/* Answer block */
.ans {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--acc);
  border-radius: var(--r);
  background: var(--pan);
  box-shadow: var(--sh);
  padding: 18px 20px;
}
.ans-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ans-lbl, .kpi-k {
  font: 600 12px/1.2 var(--f-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.ans-big { font: 700 clamp(30px, 8vw, 52px)/1 var(--f-cond); color: var(--ink); }
.ans-big small { font: 500 0.4em/1 var(--f-sans); color: var(--dim); margin-inline-start: 4px; }
.ans-accent { color: var(--acc); }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi-v { font: 700 clamp(22px, 5vw, 30px)/1.1 var(--f-cond); color: var(--ink); }
.kpi-v small { font: 500 0.52em/1 var(--f-sans); color: var(--dim); }
.kpi-s { font-size: 13px; line-height: 1.35; color: var(--dim); }

/* Sections and cards */
.sec { margin-top: 44px; }
.sec-h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
h2.ruled {
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.sec-meta { font: 500 13px/1.2 var(--f-sans); color: var(--mute); }

.card, .mod-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pan);
  box-shadow: var(--sh);
  padding: 20px;
  min-width: 0;
}
.card--well { background: var(--well); box-shadow: none; }
.card--acc { border-inline-start: 5px solid var(--acc); }
.card h3 { font: 600 20px/1.2 var(--f-cond); margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--dim); }
.card p + p { margin-top: 10px; }

.mod-card {
  position: relative;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-up);
  border-color: var(--acc);
}
.mod-card:focus-within { border-color: var(--acc); }
.mod-top { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mod-top img {
  flex: none;
  width: 68px; height: 68px;
  padding: 10px;
  background: var(--well);
  border-radius: 18px;
}
.mod-top h3 { flex: 1; min-width: 0; font: 600 17px/1.3 var(--f-sans); }
.mod-top h3 a { color: var(--ink); text-decoration: none; }
.mod-top h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.mod-card:hover h3 a { color: var(--acc); }
.mod-top::after {
  content: "\2192";
  flex: none;
  font: 600 18px/1 var(--f-sans);
  color: var(--acc);
  transition: transform 0.2s ease;
}
[dir="rtl"] .mod-top::after { content: "\2190"; }
.mod-card:hover .mod-top::after { transform: translateX(4px); }
.mod-card p { margin-top: 12px; font-size: 14.5px; color: var(--dim); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn, .go, .bt2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--acc);
  border-radius: 999px;
  background: var(--pan);
  color: var(--acc);
  font: 600 15px/1.1 var(--f-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover, .bt2:hover { background: var(--acc); color: #fff; }
.btn-acc, .go { background: var(--acc); color: #fff; }
.btn-acc:hover, .go:hover { background: var(--acc-deep); border-color: var(--acc-deep); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--dim); background: transparent; }
.btn-ghost:hover { background: var(--pan-2); border-color: var(--dim); color: var(--ink); }

/* Forms */
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font: 600 13px/1.2 var(--f-sans); color: var(--dim); }
input[type="text"], input[type="search"], input[type="number"], input[type="date"], select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding-inline: 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background-color: var(--pan);
  color: var(--ink);
  font: 400 16px/1.2 var(--f-sans);
  appearance: none;
  -webkit-appearance: none;
}
input::placeholder { color: var(--mute); opacity: 1; }
select {
  padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231A5340' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[dir="rtl"] select { background-position: left 14px center; }
input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(26, 83, 64, 0.3);
  outline-offset: 0;
  border-color: var(--acc);
  border-radius: 12px;
}

/* Verdict pills */
.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 600 13px/1.2 var(--f-sans);
  white-space: nowrap;
}
.st-ico { width: 11px; height: 11px; flex: none; display: inline-block; }
.st-ok { color: var(--st-ok); background: var(--st-ok-bg); }
.st-warn { color: var(--st-warn); background: var(--st-warn-bg); }
.st-err { color: var(--st-err); background: var(--st-err-bg); }
.st-na { color: var(--st-na); background: var(--st-na-bg); }

.status-board {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pan);
  box-shadow: var(--sh);
  overflow: hidden;
}
.st-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  border-inline-start: 4px solid var(--line-2);
}
.st-row:first-child { border-top: 0; }
.st-row--ok { border-inline-start-color: var(--st-ok); }
.st-row--warn { border-inline-start-color: var(--st-warn); }
.st-row--err { border-inline-start-color: var(--st-err); background: #FFF6F4; }
.st-row--na { border-inline-start-color: var(--line-2); }
.st-main { min-width: 0; }
.st-main a, .st-main strong { font: 600 16px/1.3 var(--f-sans); color: var(--ink); text-decoration: none; }
.st-main a:hover { color: var(--acc); text-decoration: underline; }
.st-sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--dim); }

/* Tables */
.tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pan);
  box-shadow: var(--sh);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.tbl:has(thead th:nth-child(4)) { min-width: 540px; }
.tbl th, .tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
}
.tbl thead th {
  background: var(--well);
  border-bottom: 1px solid var(--line-2);
  font: 600 12px/1.2 var(--f-sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody tr { transition: background-color 0.12s; }
.tbl tbody tr:hover { background: #FAF6EE; }
.tbl td { color: var(--dim); }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl td:nth-child(3) { color: var(--ink); font-weight: 600; }
.tbl td img {
  display: inline-block;
  vertical-align: middle;
  width: 32px; height: 32px;
  margin-inline-end: 10px;
}
.tbl td a { color: var(--ink); text-decoration: none; }
.tbl td a:hover { color: var(--acc); text-decoration: underline; }
.tbl .r, .tbl th.r, .tbl td.r { text-align: end; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.tbl tr.is-hi { background: var(--acc-dim); }
.tbl tr.is-hi td:first-child, .tbl tr.is-hi th:first-child { border-inline-start: 4px solid var(--acc); }
.pill-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pan-2);
  font: 600 12px/1.2 var(--f-sans);
  color: var(--dim);
}
.pill-tag--acc { background: var(--acc); color: #fff; }

.kv-dl, .prose dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pan);
  overflow: hidden;
}
.kv-dl dt, .prose dl dt {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.kv-dl dd, .prose dl dd {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: end;
  font: 600 16px/1.4 var(--f-sans);
  color: var(--acc);
  white-space: nowrap;
}
.kv-dl dt:last-of-type, .kv-dl dd:last-of-type,
.prose dl dt:last-of-type, .prose dl dd:last-of-type { border-bottom: 0; }

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 10px;
}
.dir-grid li { min-width: 0; }
.dir-grid a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--pan);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.dir-grid a:hover { border-color: var(--acc); background: var(--acc-dim); color: var(--acc); }
.dir-grid small { font: 600 12px/1 var(--f-sans); color: var(--mute); white-space: nowrap; }

/* Chart */
.chart-box, .map-box {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--pan);
  box-shadow: var(--sh);
}
.chart-box { padding: 18px; }
.chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 12px;
}
.chart-title { font: 600 15px/1.2 var(--f-sans); color: var(--ink); }
.chart-readout { font: 600 14px/1.2 var(--f-sans); color: var(--acc); min-height: 1.2em; }
.chart-stage { width: 100%; height: 196px; position: relative; }
.chart-stage svg { width: 100%; height: 100%; overflow: visible; }
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font: 500 12px/1 var(--f-sans);
  color: var(--mute);
  direction: ltr;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--dim);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--acc); flex: none; }

/* Map */
.map-box { overflow: hidden; }
.map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 16px;
  background: var(--well);
  border-bottom: 1px solid var(--line);
  font: 600 13px/1.2 var(--f-sans);
  color: var(--dim);
}
.map-canvas { width: 100%; height: 300px; background: var(--pan-2); position: relative; z-index: 1; }
.leaflet-container {
  background: var(--pan-2) !important;
  font: 400 13px/1.4 var(--f-sans) !important;
  color: var(--ink) !important;
}
.leaflet-tile-pane { filter: saturate(0.8) sepia(0.08); }
.leaflet-bar {
  border: 1px solid var(--line-2) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--sh) !important;
}
.leaflet-bar a {
  background: var(--pan) !important;
  color: var(--acc) !important;
  border-bottom: 1px solid var(--line) !important;
}
.leaflet-bar a:hover { background: var(--acc) !important; color: #fff !important; }
.leaflet-popup-content-wrapper {
  background: var(--pan) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--sh-up) !important;
}
.leaflet-popup-tip { background: var(--pan) !important; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--dim) !important;
  font-size: 11px !important;
}
.leaflet-control-attribution a { color: var(--acc) !important; }

/* Sources */
.src-card {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--honey);
  border-radius: var(--r);
  background: var(--pan);
  box-shadow: var(--sh);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.src-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.src-title { font: 600 17px/1.2 var(--f-cond); color: var(--ink); }
.src-stamp { font: 600 13px/1.2 var(--f-sans); color: var(--honey-ink); }
.src-list, .zr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--dim);
  min-width: 0;
}
.src-list li, .zr li { min-width: 0; max-width: 100%; }
.src-list a, .zr a { color: var(--acc); overflow-wrap: anywhere; word-break: break-word; }
.src-list a:hover, .zr a:hover { color: var(--honey-ink); }
.src-legal { font-size: 13px; color: var(--mute); }

/* Affiliate */
.aff {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--well);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.aff-meta { display: grid; gap: 4px; min-width: 0; }
.aff strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1.2 var(--f-sans);
  color: var(--dim);
}
.aff strong::before {
  content: "Sponsored";
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--st-warn-bg);
  color: var(--st-warn);
  font-size: 11px;
}
.aff p { font-size: 14.5px; color: var(--dim); }
.aff a[rel~="sponsored"] {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1.5px solid var(--acc);
  border-radius: 999px;
  background: var(--pan);
  color: var(--acc);
  font: 600 14px/1.1 var(--f-sans);
  text-decoration: none;
}
.aff a[rel~="sponsored"]:hover { background: var(--acc); color: #fff; }

/* Ads: empty placeholders stay hidden, filled slots get neutral framing */
.ad-slot, .ad-box {
  margin-block: 24px;
  contain: layout;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}
.ad-slot:empty, .ad-box:empty,
.ad-slot:not(:has(iframe, ins, img, a)),
.ad-box:not(:has(iframe, ins, img, a)),
.ad-placeholder { display: none !important; }
.ad-lbl { font: 500 11px/1 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 40px 16px 0;
  position: relative;
  font: 600 17px/1.35 var(--f-sans);
  color: var(--ink);
}
[dir="rtl"] .faq summary { padding: 16px 0 16px 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--acc); }
.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 14px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acc-dim);
  font: 600 17px/1 var(--f-mono);
  color: var(--acc);
}
.faq details[open] summary::after { content: "-"; background: var(--acc); color: #fff; }
.faq details p { padding-bottom: 16px; max-width: 72ch; font-size: 15px; color: var(--dim); }
.faq h3 { padding-top: 16px; font: 600 17px/1.35 var(--f-sans); color: var(--ink); }
.faq h3 + p {
  padding-top: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--dim);
}

.chk-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
[dir="rtl"] .chk-list li { padding: 10px 28px 10px 0; }
.chk-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  background: var(--acc-dim);
}

/* Footer */
.foot {
  background: var(--acc-deep);
  border-top: 3px solid var(--honey);
  padding-block: 36px 44px;
  font-size: 14px;
  color: #DDE9E3;
}
.foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.foot a:hover { color: #FFD9A8; text-decoration-color: currentColor; }
.net-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.net-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 17px/1 var(--f-cond);
  color: #fff;
}
.net-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.net-grid a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  min-width: 0;
}
.net-grid a:hover, .net-grid a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}
.net-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 15px/1.2 var(--f-sans);
  color: #fff;
  direction: ltr;
  unicode-bidi: isolate;
}
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #FFD9A8); flex: none; }
.net-desc { font-size: 12.5px; color: #C9DAD2; line-height: 1.3; }
.foot-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: #C9DAD2;
}
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 30px;
  padding-inline: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font: 600 12px/1 var(--f-sans);
  text-transform: uppercase;
  text-decoration: none;
  color: #DDE9E3;
}
.foot-langs a:hover, .foot-langs a[aria-current="page"] {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--acc);
}

/* Breakpoints */
@media (min-width: 640px) {
  :root { --pad-x: 24px; }
  .matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .net-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chart-stage { height: 230px; }
  .map-canvas { height: 360px; }
  .hero { padding-block: 40px 10px; }
  .tbl th, .tbl td { padding: 14px 22px; }
}

@media (min-width: 960px) {
  .top-in {
    flex-wrap: nowrap;
    min-height: 68px;
    padding-block: 0;
    gap: 24px;
  }
  .nav {
    order: 0;
    width: auto;
    border-top: 0;
    padding-top: 0;
    gap: 0 6px;
  }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .split {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    gap: 28px;
    align-items: start;
  }
  .hero { padding-block: 56px 12px; }
  main > h2 { margin-top: 64px; }
  .mod-card { padding: 26px; }
}

@media print {
  .top-end, .ad-slot, .ad-box, .btns { display: none !important; }
  body { background: #fff; color: #000; }
  .top, .foot { background: #fff; color: #000; border-color: #000; }
  .logo, .foot a { color: #000; }
}
