/* Daamlo brand (Brand Guidelines v1.0): Deep Teal, Warm Amber, Off-White, Dark Slate; Plus Jakarta Sans.
   Light only: the guidelines forbid the teal logo on dark backgrounds and call for clean #F8FAFC surfaces. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
:root {
  --teal: #0F766E; --teal-dark: #0B5E58; --teal-tint: #CCFBF1; --amber: #F5A524; --amber-tint: #FFFBEB;
  --bg: #F8FAFC; --surface: #FFFFFF; --surface-2: #F1F5F9; --text: #0F172A; --body: #334155; --muted: #64748B; --line: #E2E8F0;
  --success: #10B981; --error: #EF4444;
  --brand: var(--teal); --brand-strong: var(--teal-dark); --brand-soft: var(--teal-tint); --on-brand: #FFFFFF;
  --radius: 16px; --radius-sm: 12px; --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 10px 28px -14px rgb(15 23 42 / .18);
  --max: 1120px; --prose: 720px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  font: 17px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { color: var(--body); }
h1, h2, h3, strong, label, summary, th { color: var(--text); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, #FFFFFF 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 120px; height: auto; mix-blend-mode: multiply; }
@media (max-width: 560px) { .brand img { width: 104px; } }
header nav { display: flex; gap: 4px; margin-left: auto; }
header nav a { padding: 7px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 550; }
header nav a:hover { background: var(--surface-2); color: var(--text); }
header nav a { white-space: nowrap; }
@media (max-width: 560px) { header nav a:last-child { display: none; } header nav a { padding: 7px 8px; } .bar { gap: 10px; } }
@media (max-width: 600px) {
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .filters .chip { flex: none; }
  .filters { gap: 10px; }
}

/* Page */
.page { max-width: var(--max); margin: 0 auto; padding: 20px 16px 8px; }
.narrow { max-width: var(--prose); }
.lead { color: var(--muted); font-size: 18px; margin: 6px 0 0; max-width: 62ch; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Category colours */
/* One icon treatment for every topic: teal mark on teal tint (no multicoloured icons). */
.cat-heating, .cat-cooling, .cat-appliances { color: var(--teal); background: var(--teal-tint); }

/* Tool header */
.tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.tool-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; }
.tool-icon svg { width: 30px; height: 30px; }
.tool-head h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 2px 0 0; }
.switch-note { font-size: 15px; margin: 8px 0 0; color: var(--muted); }
@media (max-width: 560px) { .tool-icon { width: 44px; height: 44px; border-radius: 12px; } .tool-icon svg { width: 24px; height: 24px; } }

/* Calculator card: inputs left, results right on wide screens */
form.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: grid; gap: 16px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  form.tool { grid-template-columns: minmax(0, 1fr) 360px; padding: 24px; }
  form.tool > .grid, form.tool > .note { grid-column: 1; }
  form.tool > .results { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 84px; align-self: start; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; align-content: start; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.grid > div:has(select) { grid-column: 1 / -1; }
.grid > div { display: flex; flex-direction: column; justify-content: flex-end; }
.grid > div[hidden] { display: none; }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
label small { font-weight: 450; color: var(--muted); }
input, select { width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.note { font-size: 14px; color: var(--muted); margin: 0; }

/* Results panel */
.results { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 18px; }
.results-title { margin: 0 0 8px; color: #FFFFFF; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.results-list > div span { display: block; font-size: 14px; opacity: .85; }
.results-list strong { color: #FFFFFF; display: block; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.25; }
.results-list .primary { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--on-brand) 25%, transparent); }
.results-list .primary strong { font-size: clamp(36px, 7vw, 46px); }
.results.invalid strong { opacity: .5; }
.results-actions { display: flex; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  padding: 10px 14px; min-height: 44px; border-radius: 12px; border: 0; background: var(--amber); color: var(--text); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--on-brand); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7); }
.btn:hover { filter: brightness(1.05); }

/* Article + table of contents */
.content-grid { display: grid; gap: 24px; margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .content-grid { grid-template-columns: 220px minmax(0, var(--prose)); gap: 48px; } }
.toc { font-size: 15px; }
.toc p { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
@media (min-width: 900px) { .toc { position: sticky; top: 92px; align-self: start; } }
@media (max-width: 899px) { .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; } }
.prose h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 8px 0 12px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.formula { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; margin: 12px 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-size: 14px; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; }
summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 650; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 22px; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.updated { font-size: 14px; color: var(--muted); margin-top: 32px; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.card-body { flex: 1; min-width: 0; }
.card-body strong { display: block; font-size: 17px; line-height: 1.3; margin: 4px 0 4px; }
.card-text { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.card-tags { display: flex; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.card-arrow { color: var(--muted); align-self: center; transition: transform .15s, color .15s; }
.card:hover .card-arrow { color: var(--brand); transform: translateX(3px); }
.related { margin-top: 56px; }
.related h2 { font-size: 24px; }

/* Home */
.hero { padding: 36px 0 24px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); margin: 0; letter-spacing: -.02em; }
.search { position: relative; display: block; margin: 24px 0 0; max-width: 560px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { padding: 15px 16px 15px 50px; font-size: 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--teal); color: #FFFFFF; border-color: var(--teal); }
.empty { color: var(--muted); padding: 24px 0; }
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.why h2 { font-size: 19px; margin: 0 0 6px; }
.why p { margin: 0; color: var(--muted); }

/* Footer */
footer.site { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 36px 16px 8px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid p { color: var(--muted); font-size: 15px; }
.footer-grid h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid a:not(.brand) { color: var(--text); text-decoration: none; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: var(--brand); text-decoration: underline; }
.copy { max-width: var(--max); margin: 0 auto; padding: 8px 16px 28px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Region default note (home) and counterpart suggestion (tool pages) */
.region-note { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.region-note a { font-weight: 600; }
.switch-note { display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--amber-tint); color: var(--text); font-size: 15px; }
.switch-note[hidden] { display: none; }

/* AdSense units (rendered only when slot IDs are configured). Reserved height avoids layout shift. */
.ad { margin: 28px 0; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad ins.adsbygoogle { display: block; min-height: 250px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.table-wrap table { margin: 0; }
