/* SqftMeter – shared styles. System fonts only, no external requests. */

/* ---------- Theme tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --panel: #f5f5f7;
  --tile: #ffffff;
  --input: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #e0e0e0;
  --field: #c7c7cc;
  --accent: #0066cc;        /* links, borders, selected states */
  --accent-hover: #0058b3;
  --accent-tint: #eef5fd;
  --btn: #0066cc;           /* filled button background (white text) */
  --btn-hover: #0058b3;
  --header-bg: rgba(255, 255, 255, 0.86);
  --ad: #fafafa;
  --d-fill: #e6f0fb;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --err: #b3261e;
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1120px;
}
/* Dark tokens – used when the visitor picks dark, or when their device is dark and they haven't chosen */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111113;
  --card: #1a1a1c;
  --panel: #1f1f22;
  --tile: #2a2a2d;
  --input: #232326;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #a1a1a6;
  --line: #333337;
  --field: #4a4a4f;
  --accent: #2997ff;
  --accent-hover: #5aafff;
  --accent-tint: rgba(41, 151, 255, 0.14);
  --btn: #0071e3;
  --btn-hover: #0a7cf0;
  --header-bg: rgba(17, 17, 19, 0.82);
  --ad: #18181a;
  --d-fill: rgba(41, 151, 255, 0.16);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  --err: #ff6b61;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #111113; --card: #1a1a1c; --panel: #1f1f22; --tile: #2a2a2d; --input: #232326;
    --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --line: #333337; --field: #4a4a4f;
    --accent: #2997ff; --accent-hover: #5aafff; --accent-tint: rgba(41, 151, 255, 0.14);
    --btn: #0071e3; --btn-hover: #0a7cf0; --header-bg: rgba(17, 17, 19, 0.82); --ad: #18181a;
    --d-fill: rgba(41, 151, 255, 0.16); --shadow: 0 18px 48px rgba(0, 0, 0, 0.55); --err: #ff6b61;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
strong, b { font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Diagrams (inline SVG) ---------- */
.d-shape { fill: var(--d-fill); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.d-dim { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.d-dash { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.d-txt { fill: var(--ink); }
.d-muted { fill: var(--muted); }
.d-off { fill: var(--panel); stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 4; }
.d-grid { stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 1; }
.d-solid { fill: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.hdr { display: flex; align-items: center; gap: 20px; height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; flex: none; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--accent); font-weight: 700; }
.logo svg { width: 28px; height: 28px; flex: none; }

.nav-desktop { display: none; flex: 1; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link, .menu > summary { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; user-select: none; }
.nav-link:hover, .menu > summary:hover, .menu[open] > summary { background: var(--panel); color: var(--ink); }
.nav-link[aria-current] { color: var(--accent); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; transition: transform 0.15s; }
.menu[open] .chev { transform: rotate(180deg); }
.menu-panel { position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; min-width: 300px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.menu-wide { width: 640px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-wide ul { grid-template-columns: 1fr 1fr; }
.mi { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mi:hover { background: var(--panel); color: var(--ink); }
.mi[aria-current] .mi-name { color: var(--accent); }
.mi-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); }
.mi-icon svg { width: 20px; height: 20px; }
.mi-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.mi-desc { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.menu-foot { margin: 6px 4px 2px; padding: 10px 8px 4px; border-top: 1px solid var(--line); font-size: 14px; }

.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--panel); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}
.hdr-actions .hdr-cta { display: none; }

.mobile-menu { position: static; }
.mobile-menu > summary.icon-btn { padding: 0; min-height: 0; }
.mobile-menu[open] > summary { background: var(--panel); }
.mobile-menu .i-close { display: none; }
.mobile-menu[open] .i-close { display: block; }
.mobile-menu[open] .i-burger { display: none; }
.mobile-panel { position: absolute; left: 0; right: 0; top: 58px; max-height: calc(100vh - 58px); overflow-y: auto; padding: 8px 16px 20px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-panel .menu-h { margin: 14px 12px 4px; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 620px) { .mobile-panel ul { grid-template-columns: 1fr 1fr; } }
.menu-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .mobile-menu { display: none; }
  .hdr-actions .hdr-cta { display: inline-flex; }
}

/* ---------- Breadcrumbs & page heading ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(25px, 5.4vw, 38px); margin: 8px 0 6px; font-weight: 700; }
.lede { margin: 0 0 16px; color: var(--ink-2); max-width: 760px; }

/* ---------- Calculator ---------- */
.calc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--card); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .lbl, .field > label, .dim > label { display: block; padding: 0; margin: 0 0 5px; font-weight: 600; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--card); }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { margin-top: 14px; }
.hint { margin: 6px 0 0; font-size: 13px; font-weight: 400; color: var(--muted); }
input[type="number"], input[type="text"], input[type="search"], select {
  width: 100%; height: 44px; padding: 0 13px; font: inherit; font-size: 16px; color: var(--ink);
  background-color: var(--input); border: 1px solid var(--field); border-radius: var(--r); -webkit-appearance: none; appearance: none;
}
input::placeholder { color: var(--muted); opacity: 0.8; }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus { border-color: var(--accent); outline: 3px solid var(--accent-tint); outline-offset: 0; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.shape-fields { margin-top: 14px; }
.shape-fields[hidden] { display: none; }
.diagram { margin: 0 0 12px; padding: 8px; background: var(--panel); border-radius: var(--r); display: flex; justify-content: center; }
.diagram svg { width: 100%; max-width: 250px; height: auto; }
.dims { display: grid; gap: 12px; }
@media (min-width: 560px) { .dims { grid-template-columns: 1fr 1fr; } }
.pair { display: flex; gap: 8px; }
.unitwrap { position: relative; flex: 1 1 0; min-width: 0; }
.unitwrap .u { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.unitwrap input { padding-right: 48px; }
.calc:not(.is-ftin) .in-only { display: none; }
.row2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.cur { flex: 0 0 108px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presets button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.presets button:hover { border-color: var(--accent); color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 1px solid var(--btn); border-radius: 999px; background: var(--btn); color: #fff; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-hover); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions .btn:first-child { flex: 1 1 180px; }
.linkbtn { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 15px; color: var(--accent); text-decoration: underline; cursor: pointer; }

.calc-results { margin-top: 18px; padding: 16px; background: var(--panel); border-radius: var(--r-lg); }
.res-label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.res-big { margin: 2px 0 12px; font-size: clamp(32px, 8.5vw, 46px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.res-big small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.res-grid div { padding: 10px 12px; background: var(--tile); border-radius: var(--r); min-width: 0; }
.res-grid dt { font-size: 12.5px; color: var(--muted); }
.res-grid dd { margin: 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res-note { margin: 8px 0 0; padding: 10px 12px; background: var(--tile); border-radius: var(--r); font-size: 14px; }
.res-note[hidden] { display: none; }
.res-note strong { font-variant-numeric: tabular-nums; }
.res-note span { color: var(--muted); }
.formula { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.formula p { margin: 4px 0; overflow-wrap: anywhere; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toast { min-height: 22px; margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.err { color: var(--err); }

.list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.add-row label[for="item-name"] { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.list table { margin-top: 10px; background: var(--tile); border-radius: var(--r); }
.rm { min-width: 40px; min-height: 40px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.rm:hover { background: var(--panel); color: var(--ink); }
.total-line { margin: 10px 0 0; font-size: 15px; }

/* Small two-input tools (price per sq ft, converter) */
.mini-grid { display: grid; gap: 16px; }
.mini { padding: 16px; background: var(--panel); border-radius: var(--r-lg); }
.mini h2 { margin: 0 0 4px; font-size: 18px; }
.mini .hint { margin-top: 0; }
.mini .res-label { margin-top: 18px; }
.mini .res-big { margin: 10px 0 0; font-size: clamp(28px, 7vw, 38px); }
.mini .res-note { margin-top: 10px; }
.swap { display: grid; gap: 12px; align-items: end; }
@media (min-width: 640px) { .swap { grid-template-columns: 1fr auto 1fr; } .mini-grid.two { grid-template-columns: 1fr 1fr; } }
.swap-icon { display: grid; place-items: center; height: 44px; color: var(--muted); font-size: 20px; }

@media (min-width: 880px) {
  .calc { padding: 24px; }
  .calc-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .calc-results { margin-top: 0; position: sticky; top: 74px; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Ad slots (fixed space = no layout shift) ---------- */
.ad-slot { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ad); border-radius: var(--r); color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ad-result { min-height: 280px; margin: 24px 0 8px; }
.ad-mid { min-height: 280px; margin: 32px 0; }
.ad-side { min-height: 600px; }
.sidebar { display: none; }

/* ---------- Article layout ---------- */
.layout { padding-bottom: 32px; }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .sidebar { display: block; padding-top: 40px; }
  .sidebar .ad-slot { position: sticky; top: 80px; }
}
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(21px, 4vw, 26px); margin: 38px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.callout { margin: 20px 0; padding: 16px 18px; background: var(--panel); border-radius: var(--r-lg); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.fig { margin: 20px 0; padding: 16px; background: var(--panel); border-radius: var(--r-lg); text-align: center; }
.fig svg { width: 100%; max-width: 420px; height: auto; }
.fig figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 14px 34px 14px 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; margin: 0; font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 9px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
.faq summary::after { transition: transform 0.2s; }
.faq details[open] > p { animation: faq-in 0.22s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* FAQ hub: search, topic filters, expand all */
@media (min-width: 880px) { .faq-tools { position: sticky; top: 66px; z-index: 5; } }
.faq-tools { margin: 20px 0 8px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq-search input { padding-left: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; }
.faq-cats { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.faq-cats::-webkit-scrollbar { display: none; }
.pill { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.faq-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.faq-meta .hint { margin: 0; }
.faq-group { scroll-margin-top: 220px; }
.faq-group h2 { margin-top: 36px; }
.faq-group details { scroll-margin-top: 220px; }
.faq-group details:target summary, .faq-group details.hit summary { color: var(--accent); }
.faq-cta { margin-top: 32px; }
.updated { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .related ul { grid-template-columns: 1fr 1fr; } }
.related a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; background: var(--card); }
.related a:hover { border-color: var(--accent); color: var(--accent); }
.related a span { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }

.page { padding-bottom: 48px; }
.center { text-align: center; }
.page-404 { max-width: 740px; margin: 0 auto; padding: 48px 0; }
.page-404 .res-big { margin: 0; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; padding: 40px 0 24px; background: var(--panel); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 880px) { .foot-grid { grid-template-columns: 1.3fr 1.4fr 1.3fr 0.8fr; } .foot-grid > :first-child { grid-column: auto; } }
.foot-about { margin: 12px 0 0; max-width: 320px; }
.foot-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.legal { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .ad-slot, .sidebar, .actions, .res-actions, .add-row, .rm, .crumbs { display: none !important; }
  .calc { border: 0; padding: 0; }
}
