/* Shared by every directory. Colors per site come from --accent* set in the page head. */
:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --bg: #ffffff;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.6 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 1.6em; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; fill: #fff; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } .brand { font-size: 17px; } }
@media (max-width: 480px) { .nav .long { display: none; } .brand-mark { width: 30px; height: 30px; } .site-header .wrap { gap: 10px; } }
html, body { overflow-x: clip; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 16px/1 var(--font); border: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-ink); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn[aria-disabled="true"] { background: #cbd5e1; color: #475569; cursor: default; }

/* hero */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero .lead { font-size: 19px; max-width: 760px; }
.search { display: flex; gap: 10px; margin: 24px 0 8px; max-width: 640px; }
.search input { flex: 1; min-width: 0; height: 52px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 22px; font: 16px var(--font); color: var(--ink); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 32px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 700 30px/1.1 var(--display); color: var(--ink); }
.stat span { color: var(--muted); font-size: 15px; }

/* layout bits */
section { padding: 8px 0 24px; }
.crumbs { font-size: 15px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); }
.page-head { padding-top: 22px; padding-bottom: 8px; }
.page-head .sub { color: var(--muted); font-size: 18px; margin-top: -4px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); background: #fff; }
a.tile:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06); }
.tile b { display: block; font-weight: 600; }
.tile small { color: var(--muted); font-size: 15px; }
.tile.off { background: var(--soft); color: var(--muted); }
.cols { columns: 3 240px; column-gap: 28px; padding: 0; margin: 0; list-style: none; }
.cols li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.cols li span { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* cards */
.cards { display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; }
.card h3 { font: 600 18px/1.3 var(--font); margin: 0; }
.card .meta { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 14px; padding: 2px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--body); }
.tag.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

/* ficha */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .ficha { grid-template-columns: minmax(0, 1fr); } }
.ficha > * { min-width: 0; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.masked { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* call to action */
.cta { border-radius: var(--radius); background: var(--accent-soft); padding: 22px; display: grid; gap: 10px; }
.cta h2, .cta h3 { margin: 0; }
.cta p { margin: 0; }
.cta .price { font: 700 34px/1 var(--display); color: var(--accent-ink); }
.sticky { position: sticky; top: 88px; }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; margin: 28px 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 10px 0 0; }

/* forms */
form.stack { display: grid; gap: 12px; max-width: 560px; }
.stack label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); }
.stack input, .stack select, .stack textarea { font: 16px var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.stack textarea { min-height: 110px; }
.hp { position: absolute; left: -5000px; }

.pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; }
.pager span[aria-current] { background: var(--accent); color: #fff; border-color: var(--accent); }
.note { font-size: 15px; color: var(--muted); }
.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 12px 16px; }
.warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 12px 16px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--body); }
