:root {
  --ink: #16211d;
  --ink-soft: #495a52;
  --ink-muted: #7c8a83;
  --line: #e3e8e5;
  --paper: #ffffff;
  --tint: #f4f8f6;
  --teal: #0f6e56;
  --teal-dark: #085041;
  --teal-tint: #e1f5ee;
  --coral: #d85a30;
  --coral-tint: #faece7;
  --blue-tint: #eaf1fb;
  --blue-dark: #0c447c;
  --amber-tint: #faeeda;
  --amber-dark: #854f0b;
  --brand-mark: #8a7355;
  --brand-mark-hover: #6f5b42;
  --radius: 12px;
  --paper-blur: rgba(255,255,255,0.94);
  --coral-dark: #8a3a1e;
  --sky-tint: #e6f1fb;
  --ok-tint: #eaf3de;
  --ok-dark: #27500a;
  --bad-tint: #fcebeb;
  --bad-dark: #791f1f;
  --bad-strong: #a32d2d;
  --yellow-tint: #fdf4d6;
  --yellow-dark: #7a5c05;
  --grey-tint: #f1efe8;
  --grey-dark: #444441;
  --violet-tint: #f3e9fb;
  --violet-dark: #4b2170;
  --slate-tint: #eef4f7;
  --slate-dark: #2f5568;
  --indigo-tint: #eaebfb;
  --indigo-dark: #33348a;
  --rose-tint: #fbe9f0;
  --rose-dark: #9c2f5e;
  --plum-tint: #f6e6f0;
  --plum-dark: #7a2f63;
  --cyan-tint: #e3f6f7;
  --cyan-dark: #0e6b74;
  --brick-tint: #f7e6df;
  --brick-dark: #8a3a1f;
  --bronze-tint: #f2e8dc;
  --bronze-dark: #6b4a23;
  --stone-tint: #eef0f2;
  --stone-dark: #4b5563;
  --teal-ink: #0b3d31;
  --teal-body: #1d4038;
  --teal-soft: #2f5a4e;
  --teal-border: #bfe0d3;
  --teal-deep: #06382c;
  --disabled: #c9ccc9;
  --disabled-bg: #c9d6d1;
  --star-empty: #d3d9d6;
  --star-fill: #f5b301;
  --map-zone: #dbe7e3;
  --notice-line: #f0d9ad;
  --press-ink: #4a4a4a;
  --shadow: 0 1px 2px rgba(22,33,29,0.06), 0 6px 16px rgba(22,33,29,0.06);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.2; }

/* ---- Breadcrumbs ---- */
nav.crumbs { margin: 0 0 14px; font-size: 0.82rem; color: var(--ink-muted); }
nav.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
nav.crumbs li { display: flex; align-items: center; gap: 6px; }
nav.crumbs li + li::before { content: "/"; color: var(--line); }
nav.crumbs a { color: var(--ink-soft); font-weight: 600; }
nav.crumbs a:hover { color: var(--teal-dark); }
nav.crumbs [aria-current="page"] { color: var(--ink-muted); font-weight: 600; }

/* ---- Related content block ---- */
.related { border-top: 1px solid var(--line); margin: 44px 0 0; padding: 26px 0 0; }
.related h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; }
.related li { font-size: 0.9rem; }
.related a { font-weight: 600; }
.related .rel-note { color: var(--ink-muted); font-weight: 400; }

/* Keyboard users can jump past the nav. Hidden until focused. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 0 0 8px 8px; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; outline: 2px solid var(--paper); outline-offset: -5px; }

header.site {
  position: sticky;
  top: 0;
  background: var(--paper-blur);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.logo-mark {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  display: block;
  color: var(--brand-mark);
  overflow: visible;
}
.logo-mark path { vector-effect: non-scaling-stroke; stroke-width: 1.15px; }
@media (min-width: 700px) {
  .logo-mark { width: 33px; height: 33px; }
  .logo-mark path { stroke-width: 1.2px; }
}
.logo:hover .logo-mark { color: var(--brand-mark-hover); }
/* ---- Main navigation: grouped dropdowns (desktop), hamburger + accordion (phones) ---- */
header.site .logo { margin-right: auto; }
nav.primary { display: flex; gap: 4px; align-items: center; }
nav.primary .nav-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
nav.primary .nav-btn:hover, nav.primary .nav-group.open > .nav-btn { color: var(--teal-dark); background: var(--tint); }
nav.primary .nav-btn:focus-visible, nav.primary .submenu a:focus-visible, nav.primary .nav-cta:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
nav.primary .nav-btn.active { color: var(--teal-dark); }
nav.primary .nav-btn.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); }
nav.primary .caret { font-size: 0.62rem; line-height: 1; transition: transform 0.15s ease; }
nav.primary .nav-group.open > .nav-btn .caret { transform: rotate(180deg); }
nav.primary .nav-group { position: relative; }
nav.primary .submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 310px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 26px rgba(22,33,29,0.13); padding: 8px;
  display: flex; flex-direction: column; gap: 2px; z-index: 20;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.2s;
}
nav.primary .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
nav.primary .nav-group:nth-of-type(n+3) .submenu { left: auto; right: 0; }
nav.primary .nav-group.open > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 901px) {
  nav.primary .nav-group:hover > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  nav.primary .nav-group:hover > .nav-btn { color: var(--teal-dark); background: var(--tint); }
  nav.primary .nav-group:hover > .nav-btn .caret { transform: rotate(180deg); }
}
nav.primary .submenu a { display: block; padding: 9px 12px; border: 0; border-radius: 8px; color: var(--ink); }
nav.primary .submenu .sm-t { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
nav.primary .submenu .sm-d { display: block; margin-top: 1px; font-size: 0.8rem; font-weight: 400; color: var(--ink-muted); line-height: 1.35; }
nav.primary .submenu a:hover { background: var(--tint); }
nav.primary .submenu a:hover .sm-t { color: var(--teal-dark); }
nav.primary .submenu a.active { background: var(--teal-tint); }
nav.primary .submenu a.active .sm-t { color: var(--teal-dark); }
nav.primary .nav-cta {
  margin-left: 8px; padding: 8px 16px; border-radius: 999px; border: 0;
  background: var(--teal); color: #fff; font-size: 0.9rem; font-weight: 700; white-space: nowrap;
}
nav.primary .nav-cta:hover { background: var(--teal-dark); color: #fff; }
nav.primary .nav-cta.active { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--teal); }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 40px; height: 36px;
  background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; padding: 0;
}
.nav-toggle:hover { background: var(--tint); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .nt-close { display: none; }
header.site.nav-open .nav-toggle .nt-open { display: none; }
header.site.nav-open .nav-toggle .nt-close { display: block; }
@media (min-width: 901px) { header.site .bar nav.primary { margin-left: auto; } }
@media (max-width: 900px) {
  header.site .bar { gap: 10px; padding: 12px 24px; }
  header.site .bar .logo { order: 1; }
  header.site .bar .theme-toggle { order: 2; }
  .nav-toggle { display: inline-flex; order: 3; }
  header.site .bar nav.primary {
    order: 4; flex: 1 0 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 4px 0 14px; border-top: 1px solid var(--line);
  }
  header.site.nav-open nav.primary { display: flex; }
  nav.primary .nav-btn { width: 100%; justify-content: space-between; padding: 14px 2px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  nav.primary .nav-btn:hover, nav.primary .nav-group.open > .nav-btn { background: none; }
  nav.primary .nav-btn.active::after { left: 2px; right: auto; width: 28px; bottom: 0; }
  nav.primary .submenu {
    position: static; display: none; min-width: 0; padding: 4px 0 8px 10px; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  nav.primary .submenu::before { display: none; }
  nav.primary .nav-group.open > .submenu { display: flex; }
  nav.primary .nav-cta { margin: 14px 0 0; text-align: center; padding: 12px 16px; }
}

.page-hero {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 36px;
}
.page-hero h1 { font-size: 2.1rem; margin: 0 0 10px; }
.page-hero p { color: var(--ink-soft); font-size: 1.05rem; max-width: 680px; margin: 0; }
.crumb { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 10px; }

.hero {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; line-height: 1.15; margin: 0 0 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero p.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 28px; }
.stat-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.stat-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.pillar-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pillar-chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 0.88rem; font-weight: 600; }
.pillar-chip:hover { border-color: var(--teal); color: var(--teal-dark); }

section.pillar { padding: 56px 0; }
section.pillar.alt { background: var(--tint); }
section.pillar.tight { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 1.5rem; margin: 0; }
.section-head .see-all { font-size: 0.9rem; font-weight: 600; color: var(--teal-dark); }
.section-sub { color: var(--ink-muted); font-size: 0.95rem; margin: -18px 0 24px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.badge { display: inline-flex; align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.protocol { background: var(--teal-tint); color: var(--teal-dark); }
.badge.guide { background: var(--coral-tint); color: var(--coral-dark); }
.badge.automation { background: var(--blue-tint); color: var(--blue-dark); }
.badge.mesh { background: var(--blue-tint); color: var(--blue-dark); }
.badge.app-layer { background: var(--teal-tint); color: var(--teal-dark); }
.badge.rf { background: var(--amber-tint); color: var(--amber-dark); }
.badge.wired { background: var(--grey-tint); color: var(--grey-dark); }
.card h3 { font-size: 1.1rem; margin: 0; }
.card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.card .specs { list-style: none; padding: 0; margin: 4px 0 0; font-size: 0.82rem; color: var(--ink-muted); display: flex; flex-direction: column; gap: 4px; }
.card .specs li strong { color: var(--ink-soft); font-weight: 600; }
.card .meta { font-size: 0.8rem; color: var(--ink-muted); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.card .cta { font-size: 0.85rem; font-weight: 700; color: var(--teal-dark); }

.hub-card .origin { font-size: 0.8rem; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.hub-card .flag { font-size: 1rem; }

.guide-card .score-row { display: flex; align-items: center; justify-content: space-between; }
.score { font-weight: 700; color: var(--teal-dark); background: var(--teal-tint); border-radius: 8px; padding: 3px 9px; font-size: 0.85rem; }

.map-shell {
  position: relative;
  background: var(--slate-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 340px;
  overflow: hidden;
}
.map-zone {
  position: absolute;
  background: var(--map-zone);
  border-radius: 16px;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.map-pin .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.map-pin.accent .dot { background: var(--coral); }
.map-pin .label {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.map-note { font-size: 0.8rem; color: var(--ink-muted); margin-top: 12px; }

table.social {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.social th, table.social td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.social th { color: var(--ink-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
table.social td.brand { font-weight: 700; }
table.social a { color: var(--teal-dark); font-weight: 600; }
table.social .muted { color: var(--ink-muted); }

.interop-table-wrap { overflow-x: auto; }
table.interop { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 720px; }
table.interop th, table.interop td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
table.interop th { background: var(--tint); font-weight: 600; }
table.interop td:first-child, table.interop th:first-child { text-align: left; font-weight: 600; }
table.interop .yes { color: var(--teal-dark); font-weight: 700; }
table.interop .partial { color: var(--amber-dark); font-weight: 700; }
table.interop .no { color: var(--ink-muted); }

.faq { max-width: 760px; margin: 0 auto; }
details.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--ink-muted); margin-left: 12px; }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.notice {
  background: var(--amber-tint);
  border: 1px solid var(--notice-line);
  color: var(--amber-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.88rem;
  margin-bottom: 28px;
}

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--ink-muted); font-size: 0.85rem; background: var(--tint); }
footer.site a { font-weight: 600; color: var(--ink-soft); }
footer.site a:hover { color: var(--teal-dark); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-soft); margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col p { margin: 0 0 12px; line-height: 1.6; }
.footer-bottom { padding-top: 20px; text-align: center; }
.footer-bottom p { margin: 4px 0; }

/* Newsletter signup (demo) */
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.newsletter-form input[type="email"] {
  flex: 1 1 190px; min-width: 0;
  padding: 10px 13px; font-size: 0.88rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink);
}
.newsletter-form input[type="email"]:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.newsletter-form button {
  padding: 10px 18px; font-size: 0.88rem; font-weight: 700; font-family: inherit;
  background: var(--teal); color: #fff; border: 1px solid var(--teal);
  border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.newsletter-note { font-size: 0.76rem; color: var(--ink-muted); margin: 9px 0 0; }
.newsletter-ok {
  display: none; margin: 10px 0 0; font-size: 0.85rem; font-weight: 600;
  color: var(--teal-dark); background: var(--teal-tint);
  border-radius: 8px; padding: 9px 13px;
}

/* Walled-garden flag */
.walled {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--bad-tint); color: var(--bad-dark); display: inline-block;
}
.open-sys {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--ok-tint); color: var(--ok-dark); display: inline-block;
}
table.matrix td.walled-y { background: var(--bad-tint); color: var(--bad-dark); font-weight: 700; }
table.matrix td.walled-n { color: var(--teal-dark); font-weight: 700; }

/* News page */
.news-day { margin-top: 30px; scroll-margin-top: 80px; }
.news-day > h2 {
  font-size: 1.05rem; margin: 0 0 14px; color: var(--teal-dark);
  border-bottom: 2px solid var(--teal-tint); padding-bottom: 7px;
}
.news-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.news-item h3 { font-size: 1.02rem; margin: 0 0 7px; line-height: 1.35; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--teal-dark); }
.news-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 9px; }
.news-cat {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.news-cat.hubs { background: var(--teal-tint); color: var(--teal-dark); }
.news-cat.protocols { background: var(--blue-tint); color: var(--blue-dark); }
.news-cat.devices { background: var(--coral-tint); color: var(--coral-dark); }
.news-cat.events { background: var(--amber-tint); color: var(--amber-dark); }
.news-source { font-size: 0.76rem; color: var(--ink-muted); font-weight: 600; }
.news-item p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.6; }
.news-link { font-size: 0.82rem; font-weight: 700; color: var(--teal-dark); }
.event-date {
  font-size: 0.8rem; font-weight: 700; color: var(--amber-dark);
  background: var(--amber-tint); border-radius: 6px; padding: 3px 9px; display: inline-block;
}

/* Star ratings (supports half / partial stars) */
.stars {
  position: relative; display: inline-block;
  font-size: 1.02rem; line-height: 1; letter-spacing: 2px;
  white-space: nowrap; vertical-align: -1px;
}
.stars .base { color: var(--star-empty); }
.stars .fill {
  position: absolute; top: 0; left: 0;
  overflow: hidden; white-space: nowrap;
  color: var(--star-fill);
}
.score-num { font-weight: 800; color: var(--ink); white-space: nowrap; }
.score-num .of { font-weight: 600; color: var(--ink-muted); font-size: 0.85em; }

table.trust { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 680px; }
table.trust th, table.trust td {
  border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; vertical-align: middle;
}
table.trust thead th {
  background: var(--tint); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}
table.trust td.brand { font-weight: 700; white-space: nowrap; }
table.trust td.stars-cell { white-space: nowrap; }
table.trust tr.top-row td { background: var(--teal-tint); }
table.trust tr.top-row td.brand { color: var(--teal-dark); }
table.trust tr.na td { color: var(--ink-muted); }
.trust-verdict {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.tv-great { background: var(--ok-tint); color: var(--ok-dark); }
.tv-avg   { background: var(--amber-tint); color: var(--amber-dark); }
.tv-bad   { background: var(--bad-tint); color: var(--bad-dark); }
.tv-na    { background: var(--tint); color: var(--ink-muted); }

/* Press / source logo strip (news page header) */
.press-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 22px;
}
.press-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-muted);
  text-align: center; margin: 0 0 15px;
}
.press-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 26px;
}
.press-logo {
  color: var(--press-ink);
  filter: grayscale(100%);
  opacity: 0.72;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  transition: opacity .15s;
  user-select: none;
}
.press-logo:hover { opacity: 1; }
.press-logo .lt { font-weight: 300; }
.press-logo .bd { font-weight: 800; }
.press-logo .up { text-transform: uppercase; }
/* per-outlet wordmark treatments, all monochrome */
.pl-serif  { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.02em; }
.pl-wide   { font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; }
.pl-heavy  { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1rem; }
.pl-lower  { font-weight: 800; text-transform: lowercase; letter-spacing: -0.04em; font-size: 1rem; }
.pl-tight  { font-weight: 800; letter-spacing: -0.045em; }
.pl-caps   { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.82rem; }
.press-note { font-size: 0.72rem; color: var(--ink-muted); text-align: center; margin: 16px 0 0; }

/* Homepage chat-style search */
.chat-shell { max-width: 760px; margin: 0 auto; text-align: left; }
.chat-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(22,33,29,0.06), 0 12px 34px rgba(22,33,29,0.09);
  overflow: hidden;
}
.chat-input-row { display: flex; align-items: flex-start; gap: 11px; padding: 24px 22px 0; }
.chat-spark { font-size: 1.15rem; color: var(--teal); flex-shrink: 0; line-height: 1; padding-top: 4px; }
.chat-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 1.12rem; color: var(--ink);
  padding: 0; min-width: 0; line-height: 1.5;
}
.chat-actions { display: flex; justify-content: flex-end; padding: 18px 14px 14px; }
.chat-input::placeholder { color: var(--ink-muted); }
.chat-send {
  flex-shrink: 0; border: none; cursor: pointer; font-family: inherit;
  background: var(--teal); color: #fff; font-size: 0.92rem; font-weight: 700;
  padding: 12px 22px; border-radius: 11px;
}
.chat-send:hover { background: var(--teal-dark); }
.chat-send:disabled { background: var(--disabled-bg); cursor: default; }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 18px 0 0; }
.chat-suggest button {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; font-family: inherit;
}
.chat-suggest button:hover { border-color: var(--teal); color: var(--teal-dark); }

.chat-log { margin-top: 20px; display: none; }
.chat-msg { display: flex; gap: 11px; margin-bottom: 16px; align-items: flex-start; }
.chat-msg .who {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.chat-msg.user .who { background: var(--line); color: var(--ink-soft); }
.chat-msg.bot .who { background: var(--teal); color: #fff; }
.chat-msg .bubble {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px; padding: 13px 17px; font-size: 0.93rem;
  color: var(--ink); box-shadow: var(--shadow); flex: 1; min-width: 0;
}
.chat-msg.user .bubble { background: var(--tint); border-radius: 12px 4px 12px 12px; font-weight: 600; }
.chat-msg .bubble > p { margin: 0 0 10px; color: var(--ink-soft); }
.chat-msg .bubble > p:last-child { margin-bottom: 0; }
.chat-msg .bubble strong { color: var(--ink); }

.chat-hits { list-style: none; padding: 0; margin: 4px 0 0; }
.chat-hits li { padding: 9px 0; border-top: 1px solid var(--line); }
.chat-hits li:first-child { border-top: none; padding-top: 2px; }
.chat-hits a { font-weight: 700; color: var(--teal-dark); font-size: 0.93rem; }
.chat-hits a:hover { text-decoration: underline; }
.chat-hits .where {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--tint); color: var(--ink-muted); border-radius: 999px;
  padding: 2px 8px; margin-left: 7px;
}
.chat-hits .snip { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 3px; }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 3px 0; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted);
  animation: blink 1.3s infinite both;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,80%,100% { opacity:.25 } 40% { opacity:1 } }

.chat-foot { font-size: 0.76rem; color: var(--ink-muted); text-align: center; margin: 30px 0 0; }

/* Hub Advisor */
.advisor-q {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.advisor-q .qnum {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 5px;
}
.advisor-q h3 { font-size: 1.03rem; margin: 0 0 4px; }
.advisor-q .qhint { font-size: 0.84rem; color: var(--ink-muted); margin: 0 0 13px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 0.87rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; background: var(--paper);
  transition: background .12s, border-color .12s, color .12s;
}
.opts label:hover { border-color: var(--teal); color: var(--teal-dark); }
.opts input { accent-color: var(--teal); margin: 0; }
.opts input:checked + span { color: var(--teal-dark); }
.opts label:has(input:checked) {
  background: var(--teal-tint); border-color: var(--teal); color: var(--teal-dark);
}
.advisor-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 0; }
.btn-primary {
  padding: 12px 26px; font-size: 0.94rem; font-weight: 700; font-family: inherit;
  background: var(--teal); color: #fff; border: 1px solid var(--teal);
  border-radius: 8px; cursor: pointer;
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-reset {
  padding: 12px 20px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.btn-reset:hover { border-color: var(--teal); color: var(--teal-dark); }
.advisor-warn { font-size: 0.85rem; color: var(--bad-strong); font-weight: 600; margin: 0; }

.rec-box {
  background: var(--teal-tint); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 18px;
}
.rec-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 5px;
}
.rec-name { font-size: 1.5rem; font-weight: 700; color: var(--teal-ink); margin: 0 0 4px; }
.rec-name a { color: var(--teal-ink); }
.rec-why { font-size: 0.95rem; color: var(--teal-body); margin: 10px 0 0; }
.rec-reasons { list-style: none; padding: 0; margin: 14px 0 0; }
.rec-reasons li {
  font-size: 0.9rem; color: var(--teal-body); padding: 5px 0 5px 22px; position: relative;
}
.rec-reasons li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}
.runner-up {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
}
.runner-up h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-muted); margin: 0 0 6px; }
.runner-up p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.runner-up strong { color: var(--ink); }
.score-bars { margin-top: 20px; }
.score-row-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.84rem; }
.score-row-bar .nm { flex: 0 0 170px; color: var(--ink-soft); font-weight: 600; }
.score-row-bar .track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.score-row-bar .fill { height: 100%; background: var(--teal); border-radius: 999px; }
.score-row-bar .pts { flex: 0 0 34px; text-align: right; color: var(--ink-muted); }

/* Top pick callout (homepage hero + reviews) */
.top-pick {
  background: var(--paper);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.95rem;
  color: var(--teal-body);
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: left;
}
.top-pick strong { color: var(--teal-dark); }
.top-pick a { color: var(--teal-dark); font-weight: 700; }

.top-pick-box {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.tp-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 4px;
}
.tp-name { font-size: 1.4rem; font-weight: 700; margin: 0 0 10px; }
.tp-name a { color: var(--teal-ink); }
.tp-body { color: var(--teal-body); margin: 0 0 12px; font-size: 0.95rem; }
.tp-caveat {
  font-size: 0.87rem; color: var(--teal-soft); margin: 0;
  padding-top: 12px; border-top: 1px solid var(--teal-border);
}

/* Comparison pages */
.verdict-box {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.verdict-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 5px;
}
.verdict-pick { font-size: 1.15rem; font-weight: 700; color: var(--teal-ink); margin: 0 0 6px; }
.verdict-for { font-size: 0.92rem; color: var(--teal-soft); margin: 0; }

table.compare { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
table.compare th { background: var(--tint); font-weight: 600; }
table.compare td.crit { font-weight: 600; color: var(--ink-soft); width: 30%; }
table.compare td.win { background: var(--ok-tint); font-weight: 600; }
.tally { font-size: 0.85rem; color: var(--ink-muted); margin-top: 12px; }

.compare-list { list-style: none; padding: 0; }
.compare-list li { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.compare-list li:last-child { border-bottom: none; }
.compare-list a.title { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.compare-list a.title:hover { color: var(--teal-dark); }
.compare-list p { margin: 5px 0 8px; color: var(--ink-soft); font-size: 0.92rem; }
.verdict-tag {
  font-size: 0.78rem; font-weight: 600;
  background: var(--teal-tint); color: var(--teal-dark);
  border-radius: 6px; padding: 4px 10px; display: inline-block;
}

/* Verdict badges for privacy bench */
.verdict {
  font-weight: 700; font-size: 0.75rem; border-radius: 4px;
  padding: 3px 8px; white-space: nowrap; display: inline-block;
}
.verdict-green { background: var(--ok-tint); color: var(--ok-dark); }
.verdict-yellow { background: var(--amber-tint); color: var(--amber-dark); }
.verdict-red { background: var(--bad-tint); color: var(--bad-dark); }

/* Scores tables (left-aligned variant of .interop) */
table.scores { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 680px; }
table.scores th, table.scores td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
table.scores th { background: var(--tint); font-weight: 600; }
table.scores td.num { font-weight: 700; color: var(--teal-dark); white-space: nowrap; }

.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.article-body h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.article-body p { color: var(--ink-soft); margin: 0 0 14px; }
.article-body ul { color: var(--ink-soft); padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--teal-dark); font-weight: 600; }
.sources-line { font-size: 0.82rem; color: var(--ink-muted); margin-top: 20px; }
.cross-ref {
  font-size: 0.9rem; color: var(--ink-soft); background: var(--tint);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 18px;
}

/* Filter bar (devices page) */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 18px 0 4px;
}
.filter-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-chip[aria-pressed="true"] {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.filter-count { font-size: 0.85rem; color: var(--ink-muted); margin: 14px 0 0; }

/* Device cards */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 22px; }
.device-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.device-card h3 { font-size: 1.03rem; margin: 0; }
.device-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.device-card .protocols { font-size: 0.8rem; color: var(--ink-muted); }
.device-card .protocols strong { color: var(--ink-soft); font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--tint); color: var(--ink-soft);
}
.tag.energy { background: var(--amber-tint); color: var(--amber-dark); }
.tag.safety { background: var(--bad-tint); color: var(--bad-dark); }
.tag.security { background: var(--blue-tint); color: var(--blue-dark); }
.tag.health { background: var(--ok-tint); color: var(--ok-dark); }
.tag.outdoor { background: var(--teal-tint); color: var(--teal-dark); }
.tag.comfort { background: var(--coral-tint); color: var(--coral-dark); }
.tag.lighting { background: var(--yellow-tint); color: var(--yellow-dark); }
.tag.water { background: var(--sky-tint); color: var(--blue-dark); }
.tag.appliances { background: var(--grey-tint); color: var(--grey-dark); }
.tag.access { background: var(--violet-tint); color: var(--violet-dark); }
.tag.control { background: var(--slate-tint); color: var(--slate-dark); }
.tag.office { background: var(--indigo-tint); color: var(--indigo-dark); }
.tag.elderly-care { background: var(--rose-tint); color: var(--rose-dark); }
.tag.assisted-living { background: var(--plum-tint); color: var(--plum-dark); }
.tag.schools { background: var(--cyan-tint); color: var(--cyan-dark); }
.tag.hospitals { background: var(--brick-tint); color: var(--brick-dark); }
.tag.hotels-airbnb { background: var(--bronze-tint); color: var(--bronze-dark); }
.tag.property-management { background: var(--stone-tint); color: var(--stone-dark); }
.no-results { color: var(--ink-muted); font-size: 0.95rem; padding: 24px 0; }

/* Review category chips */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cat-chip {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 20px;
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.cat-chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.cat-chip.active {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  box-shadow: 0 1px 3px rgba(6,56,44,0.28);
}
.cat-chip.active:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

/* Interoperability matrix */
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.8rem; min-width: 860px; }
table.matrix th, table.matrix td { border: 1px solid var(--line); padding: 7px 8px; text-align: center; }
table.matrix thead th { background: var(--tint); font-weight: 600; font-size: 0.75rem; }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
table.matrix tr.highlight td { background: var(--teal-tint); }
table.matrix tr.highlight td:first-child { color: var(--teal-dark); }
.y { color: var(--teal-dark); font-weight: 700; }
.n { color: var(--disabled); }
.p { color: var(--amber-dark); font-weight: 700; }
.matrix-key { font-size: 0.8rem; color: var(--ink-muted); margin-top: 10px; }
.matrix-key span { margin-right: 14px; }

/* Compatibility checker */
.checker-step { margin-bottom: 24px; }
.checker-step h3 { font-size: 1rem; margin: 0 0 10px; }
.checker-result {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.result-head { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.result-sub { font-size: 0.88rem; color: var(--ink-muted); margin: 0 0 16px; }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.result-list li:last-child { border-bottom: none; }
.result-list .mark { font-weight: 700; flex-shrink: 0; width: 18px; }
.result-list .mark.ok { color: var(--teal-dark); }
.result-list .mark.no { color: var(--bad-strong); }
.result-list .mark.via { color: var(--amber-dark); }
.result-list .why { color: var(--ink-muted); font-size: 0.85rem; }

/* Glossary */
.alpha-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 0 0;
}
.alpha-nav a, .alpha-nav span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-soft);
  background: var(--paper);
}
.alpha-nav a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.alpha-nav span { color: var(--disabled); background: var(--tint); }

.glossary-letter { margin-top: 34px; scroll-margin-top: 80px; }
.glossary-letter h2 {
  font-size: 1.6rem; margin: 0 0 2px; color: var(--teal-dark);
  border-bottom: 2px solid var(--teal-tint); padding-bottom: 6px;
}
.back-top { font-size: 0.78rem; color: var(--ink-muted); float: right; font-weight: 600; }
dl.terms { margin: 14px 0 0; }
dl.terms dt {
  font-weight: 700; font-size: 0.97rem; margin-top: 16px;
  scroll-margin-top: 80px;
}
dl.terms dd {
  margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6;
}
dl.terms dd a { color: var(--teal-dark); font-weight: 600; }
dl.terms .also { font-size: 0.84rem; color: var(--ink-muted); }

/* Troubleshooting */
.symptom {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.symptom h3 { font-size: 1.03rem; margin: 0 0 4px; }
.symptom .affects {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--ink-muted); margin: 0 0 10px;
}
.symptom p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 8px; }
.symptom ol { font-size: 0.92rem; color: var(--ink-soft); padding-left: 20px; margin: 0; }
.symptom ol li { margin-bottom: 6px; }
.symptom .cause {
  background: var(--tint); border-radius: 8px; padding: 10px 14px;
  font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 12px;
}
.symptom .cause strong { color: var(--ink); }

/* Migration cards */
.migrate-card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 7px;
}
.migrate-card h3 { font-size: 1.02rem; margin: 0; }
.migrate-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.migrate-card .effort { font-size: 0.78rem; color: var(--ink-muted); font-weight: 600; }

/* Automation recipe cards (reuse device-card shell) */
.device-card .needs { font-size: 0.8rem; color: var(--ink-muted); flex-grow: 0; }
.device-card .needs strong { color: var(--ink-soft); font-weight: 600; }
.device-card > .badge { align-self: flex-start; }

/* ============================================================
   DARK MODE
   Every colour above resolves through a variable, so the whole
   site re-themes from this one block.
   ============================================================ */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] {
  --brand-mark: #b79a72;
  --brand-mark-hover: #d3b992;
  --ink: #e7efeb;
  --ink-soft: #b0c1bb;
  --ink-muted: #869893;
  --line: #2a3733;
  --paper: #121917;
  --tint: #19221f;
  --teal: #2fae8c;
  --teal-dark: #5fd0af;
  --teal-tint: #16332b;
  --coral: #e57a52;
  --coral-tint: #33211b;
  --coral-dark: #f0a184;
  --blue-tint: #17263a;
  --blue-dark: #93c0f2;
  --sky-tint: #16263a;
  --amber-tint: #33280f;
  --amber-dark: #e6bd75;
  --paper-blur: rgba(18,25,23,0.94);
  --ok-tint: #1c2a15;
  --ok-dark: #aad683;
  --bad-tint: #2e1717;
  --bad-dark: #f0a5a5;
  --bad-strong: #f28a8a;
  --yellow-tint: #2e2810;
  --yellow-dark: #e4cf7e;
  --grey-tint: #262520;
  --grey-dark: #cac8be;
  --violet-tint: #241a30;
  --violet-dark: #cdaeea;
  --slate-tint: #1a252b;
  --slate-dark: #a7c5d3;
  --indigo-tint: #211f3a;
  --indigo-dark: #a5a8f0;
  --rose-tint: #331a24;
  --rose-dark: #f0a8c4;
  --plum-tint: #301f2c;
  --plum-dark: #e0a8cf;
  --cyan-tint: #123338;
  --cyan-dark: #7fe0e8;
  --brick-tint: #33201a;
  --brick-dark: #f0a480;
  --bronze-tint: #2e2416;
  --bronze-dark: #e0bd85;
  --stone-tint: #232830;
  --stone-dark: #b7c0cc;
  --teal-ink: #7ee2c1;
  --teal-body: #a9d8c9;
  --teal-soft: #8ec5b4;
  --teal-border: #2c5347;
  --teal-deep: #35c39c;
  --disabled: #4d5b56;
  --disabled-bg: #33413c;
  --star-empty: #3b4742;
  --star-fill: #f5b301;
  --map-zone: #1f2c28;
  --notice-line: #4a3a1c;
  --press-ink: #9aa8a3;
  --shadow: 0 1px 2px rgba(0,0,0,0.45), 0 6px 16px rgba(0,0,0,0.35);
}
html[data-theme="dark"] nav.primary .submenu { box-shadow: 0 6px 22px rgba(0,0,0,0.5); }
html[data-theme="dark"] .chat-box { box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 12px 34px rgba(0,0,0,0.45); }
html[data-theme="dark"] .map-pin .dot { box-shadow: 0 1px 4px rgba(0,0,0,0.6); }
html[data-theme="dark"] .cat-chip.active,
html[data-theme="dark"] .cat-chip.active:hover { color: #08211b; }
html[data-theme="dark"] .filter-chip[aria-pressed="true"],
html[data-theme="dark"] .alpha-nav a:hover,
html[data-theme="dark"] .chat-send,
html[data-theme="dark"] .chat-msg.bot .who { color: #08211b; }
html[data-theme="dark"] img,
html[data-theme="dark"] .press-logo { opacity: 0.92; }

/* ---- Light / dark toggle ---- */
.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 32px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { border-color: var(--teal); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.theme-toggle .tt-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--ink);
  transition: opacity .18s ease;
  pointer-events: none;
}
.theme-toggle .tt-sun  { left: 7px; opacity: 1; }
.theme-toggle .tt-moon { right: 7px; opacity: 0; }
.theme-toggle .tt-knob {
  position: absolute;
  top: 3px;
  left: 33px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--ink);
  transition: left .22s cubic-bezier(.4,.1,.3,1), background .2s ease;
  pointer-events: none;
}
html[data-theme="dark"] .theme-toggle { background: var(--tint); border-color: var(--line); }
html[data-theme="dark"] .theme-toggle .tt-sun  { opacity: 0; }
html[data-theme="dark"] .theme-toggle .tt-moon { opacity: 1; }
html[data-theme="dark"] .theme-toggle .tt-knob { left: 3px; }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle .tt-knob, .theme-toggle .tt-icon { transition: none; }
}

/* ============================================================
   BEST BUYS
   ============================================================ */
/* category tiles with monochrome line icons */
.bb-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px; margin-top: 26px;
}
.bb-tile {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 18px; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.bb-tile:hover {
  border-color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(22,33,29,0.08), 0 10px 24px rgba(22,33,29,0.10);
}
.bb-tile svg { width: 34px; height: 34px; color: var(--ink); flex-shrink: 0; }
.bb-tile h3 { font-size: 0.98rem; margin: 0; line-height: 1.25; }
.bb-tile p { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }
.bb-tile .bb-count {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: auto; padding-top: 4px;
}

/* banner placeholder — identical ratio on every guide page */
.bb-banner,
.page-banner {
  position: relative; width: 100%; aspect-ratio: 1856 / 752;
  background: var(--tint); border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; margin: 0 0 30px; overflow: hidden;
}
.bb-banner .ph-label,
.page-banner .ph-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
}
.bb-banner .ph-dim,
.page-banner .ph-dim { font-size: 0.74rem; color: var(--ink-muted); }
.bb-banner svg,
.page-banner svg { width: 30px; height: 30px; color: var(--ink-muted); opacity: 0.7; }

/* brand table on the index */
table.brands { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 22px; }
table.brands th, table.brands td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.brands thead th {
  background: var(--tint); font-size: 0.76rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
table.brands td.cat { font-weight: 700; white-space: nowrap; }
table.brands td.cat a { color: var(--teal-dark); }
table.brands td.protos { color: var(--ink-muted); font-size: 0.83rem; white-space: nowrap; }
table.brands .blist a { color: var(--teal-dark); font-weight: 600; }
table.brands .blist a:hover { text-decoration: underline; }
table.brands tbody tr:hover { background: var(--tint); }

/* per-brand blocks on a guide page */
.pick {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pick-head h3 { font-size: 1.1rem; margin: 0; }
.pick-head .proto-pill {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--teal-tint); color: var(--teal-dark); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.pick > p { font-size: 0.93rem; color: var(--ink-soft); margin: 12px 0 0; }
.pros-cons { display: flex; gap: 26px; flex-wrap: wrap; margin: 14px 0 0; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.pros-cons li { padding-left: 18px; position: relative; margin-bottom: 3px; color: var(--ink-soft); }
.pros-cons .pros li::before { content: "+"; position: absolute; left: 0; color: var(--ok-dark); font-weight: 800; }
.pros-cons .cons li::before { content: "\2212"; position: absolute; left: 0; color: var(--bad-strong); font-weight: 800; }

/* further reading */
.read-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 20px; }
.read-next a {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.read-next a:hover { border-color: var(--teal); }
.read-next .rn-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 6px;
}
.read-next .rn-title { font-size: 0.98rem; font-weight: 700; display: block; margin-bottom: 6px; }
.read-next .rn-why { font-size: 0.84rem; color: var(--ink-muted); }

/* FAQ + terms */
.faq details {
  border-bottom: 1px solid var(--line); padding: 15px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 0.98rem; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-dark); font-weight: 800; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: 0.92rem; color: var(--ink-soft); margin: 11px 0 0; }
dl.jargon { margin: 20px 0 0; }
dl.jargon dt { font-weight: 700; font-size: 0.95rem; margin-top: 16px; }
dl.jargon dt:first-child { margin-top: 0; }
dl.jargon dd { margin: 5px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Best Buys prev / next pager ---- */
.bb-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 0 0 24px;
}
.bb-pager a {
  font-size: 1rem; font-weight: 800; color: var(--ink);
  white-space: nowrap;
}
.bb-pager a:hover { color: var(--teal-dark); }
.bb-pager a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

/* ---- Inspiration slider (Blog page) ---- */
.inspo { padding-top: 34px; padding-bottom: 6px; }
.inspo-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px;
}
.inspo-head h2 { margin: 0; font-size: 1.5rem; }
.inspo-head .inspo-count {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); margin-left: auto;
}
.inspo-viewport { position: relative; }
.inspo-slide { display: none; }
.inspo-slide.is-active { display: block; }

/* 1920 x 540 frame (32:9). Swap the inner .ph block for <img> when the real photo arrives. Taller on phones. */
.inspo-shot {
  position: relative; width: 100%; aspect-ratio: 32 / 9; overflow: hidden;
  background: var(--tint); border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.inspo-shot.has-img { border-style: solid; }
.inspo-shot img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center;
  border-radius: calc(var(--radius) - 1px);
}
.inspo-shot .ph-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
}
.inspo-shot .ph-dim { font-size: 0.74rem; color: var(--ink-muted); }

/* caption — hard limit of two lines */
.inspo-cap {
  margin: 14px 0 0; font-size: 0.95rem; color: var(--ink-soft);
  max-width: 760px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.5em * 2);        /* fallback where line-clamp is unsupported */
  line-height: 1.5;
}

/* navigation — same bold black treatment as the Best Buys pager */
.inspo-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 0 0 18px;
}
.inspo-pager button {
  font: inherit; font-size: 1rem; font-weight: 800; color: var(--ink);
  background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
}
.inspo-pager button:hover { color: var(--teal-dark); }
.inspo-pager button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.inspo-dots { display: flex; gap: 7px; }
.inspo-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--line); transition: background 0.15s ease;
}
.inspo-dots button[aria-current="true"] { background: var(--ink); }
.inspo-dots button:hover { background: var(--ink-muted); }
@media (max-width: 760px) {
  .inspo-shot { aspect-ratio: 2 / 1; }
}
@media (max-width: 560px) {
  .inspo-dots { display: none; }
  .inspo-head h2 { font-size: 1.3rem; }
}

/* ---- Best Buys banner with a real image ---- */
.bb-banner.has-img,
.page-banner.has-img {
  background: var(--tint); border: 1px solid var(--line); padding: 0;
}
.bb-banner.has-img img,
.page-banner.has-img img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;              /* crop to the box rather than distort */
  object-position: center;
  border-radius: calc(var(--radius) - 1px);
}

/* ---- Hubs sub-tabs: identical hero height so the chip strip never moves ---- */
.page-hero.hero-fixed .wrap {
  min-height: 196px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.page-hero.hero-fixed .cat-chips {
  margin-top: auto;      /* pin the chips to the bottom, so they align across all four tabs */
  padding-top: 18px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px; margin-top: 24px;
}
.blog-tile {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.blog-tile:hover {
  border-color: var(--teal); transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(22,33,29,0.08), 0 12px 26px rgba(22,33,29,0.10);
}
/* image placeholder — one ratio, so every tile is the same height */
.blog-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--tint); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
/* Category icons. Line drawings in the same 24x24 house style as the Best Buys tiles. */
.blog-thumb svg { width: 108px; height: 108px; color: var(--ink); }
.blog-tile:hover .blog-thumb svg { color: var(--teal-dark); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-tile .bt-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.blog-tile .bt-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-muted);
}
.blog-tile h3 { font-size: 1.05rem; margin: 0; }
.blog-tile p { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }
.blog-tile .bt-more {
  margin-top: auto; padding-top: 10px; font-size: 0.83rem; font-weight: 700; color: var(--teal-dark);
}
.blog-group-head {
  display: flex; align-items: baseline; gap: 12px; margin: 40px 0 0;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.blog-group-head:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.blog-group-head h2 { font-size: 1.3rem; margin: 0; }
.blog-group-head span { font-size: 0.8rem; color: var(--ink-muted); }
.post-list { list-style: none; padding: 0; margin: 22px 0 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.post-list li:first-child { border-top: 1px solid var(--line); }
.post-list a { font-size: 1.02rem; font-weight: 700; }
.post-list a:hover { color: var(--teal-dark); }
.post-list .pl-sum { font-size: 0.89rem; color: var(--ink-soft); margin: 5px 0 0; }
.post-list .pl-meta { font-size: 0.76rem; color: var(--ink-muted); margin: 6px 0 0; }

/* ---- blog article ---- */
.post-meta { font-size: 0.82rem; color: var(--ink-muted); margin: 14px 0 0 !important; }
.article { max-width: 780px; }
.article h2 {
  font-size: 1.42rem; margin: 40px 0 12px; letter-spacing: -0.01em;
  padding-top: 8px;
}
.article h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.article p { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.68; }
.article p strong { color: var(--ink); }
.article ul, .article ol { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.65; padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 7px; }
.article .notice { margin: 26px 0; }
.summary-box {
  background: var(--teal-tint); border: 1px solid var(--teal-border);
  border-radius: var(--radius); padding: 20px 24px; margin: 0 0 34px;
}
.summary-box h2 {
  font-size: 0.78rem !important; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-dark); margin: 0 0 10px !important; padding: 0 !important;
}
.summary-box ul { margin: 0; padding-left: 20px; font-size: 0.95rem; color: var(--teal-body); }
.summary-box li { margin-bottom: 6px; }
.std-h2 { font-size: 1.5rem; margin: 0 0 20px; }

/* ---- Blog tiles: article banner on top of the card (hidden automatically if the file is missing) ---- */
.device-card .card-img {
  display: block; margin: -20px -20px 6px; aspect-ratio: 1856 / 752; overflow: hidden;
  background: var(--tint); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.device-card .card-img img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
  transition: transform 0.25s ease;
}
.device-card:hover .card-img img { transform: scale(1.03); }

/* Visually hidden, still read by screen readers and search engines */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Device tiles: category icon (Material Design Icons, Apache-2.0) ---- */
.dev-head { display: flex; align-items: center; gap: 12px; }
.dev-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal);
}
.dev-icon svg { width: 24px; height: 24px; fill: currentColor; display: block; }

/* ---- Protocols page: tile logos, links and explainer sections ---- */
.proto-head { display: flex; align-items: center; gap: 12px; }
.proto-logo {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal);
}
.proto-logo svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.proto-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box;
  object-fit: contain; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.card .wiki-link { margin-top: auto; padding-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--teal-dark); }
.card .wiki-link:hover { text-decoration: underline; }
.card .specs { flex-grow: 1; }

.pillar-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.prose-lead { max-width: 760px; margin: 0 0 28px; }
.prose-lead p { font-size: 1.02rem; color: var(--ink-soft); margin: 0; line-height: 1.65; }
.sub-h { font-size: 1.15rem; margin: 36px 0 14px; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.plain li strong { color: var(--ink); font-weight: 600; }
.card-grid.trio { margin-top: 28px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.aside {
  margin: 28px 0 0; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--teal); border-radius: var(--radius); font-size: 0.93rem; color: var(--ink-soft);
}

/* flow diagram */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; counter-reset: none; }
.flow-step {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--ink-soft);
}
.flow-step strong { color: var(--ink); font-size: 0.98rem; }
.flow-n {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -20px; width: 14px; height: 14px; margin-top: -7px;
  border-top: 3px solid var(--teal); border-right: 3px solid var(--teal); transform: rotate(45deg); opacity: 0.8;
}
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 50%; margin: 0 0 0 -7px; transform: rotate(135deg); }
}

.compare-mini { margin-top: 28px; }
.compare-mini h3 { font-size: 1.05rem; margin: 0 0 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mini-grid > div, .pick-grid > div {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; color: var(--ink-soft);
}
.mini-grid strong, .pick-grid strong { color: var(--ink); font-size: 0.95rem; }

/* thread roles */
.roles { margin-top: 28px; }
.roles h3 { font-size: 1.05rem; margin: 0 0 12px; }
.roles dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; }
.roles dl > div { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.roles dt { font-weight: 700; color: var(--teal-dark); font-size: 0.92rem; margin: 0 0 4px; }
.roles dd { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

/* comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.cmp-wrap:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 980px; }
table.cmp th, table.cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-soft); }
table.cmp thead th { background: var(--tint); color: var(--ink); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
table.cmp tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover td, table.cmp tbody tr:hover th { background: var(--tint); }
table.cmp small { color: var(--ink-muted); font-size: 0.74rem; }
table.cmp.stack-table { min-width: 720px; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.pill.yes, .pill.low { background: var(--ok-tint); color: var(--ok-dark); }
.pill.no { background: var(--grey-tint); color: var(--grey-dark); }
.pill.neutral { background: var(--blue-tint); color: var(--blue-dark); }
.pill.mid { background: var(--yellow-tint); color: var(--yellow-dark); }
.pill.high { background: var(--bad-tint); color: var(--bad-dark); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* stack diagram */
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.layer {
  display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.layer > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; font-size: 0.86rem; color: var(--ink-soft); }
.layer > div:nth-child(2) strong { color: var(--ink); font-size: 1rem; }
.layer-n {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; background: var(--tint); color: var(--ink);
}
.layer.l1 { border-left-color: var(--teal); }
.layer.l2 { border-left-color: #3d7ab8; }
.layer.l3 { border-left-color: #b8892b; }
.layer.l4 { border-left-color: var(--coral); }
.layer.l5 { border-left-color: #7a6fa8; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 720px) {
  .layer { grid-template-columns: 36px minmax(0, 1fr); }
  .chips { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Matter over Wi-Fi section */
.flow.flow-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .flow.flow-4 { grid-template-columns: 1fr; } }
table.cmp.mini-table { min-width: 640px; }
table.cmp.mini-table td { color: var(--ink-soft); }

/* ---- Explanatory diagrams (inline SVG, follow the theme) ---- */
.diagram { margin: 0 0 28px; }
.diagram-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.diagram figcaption { font-size: 0.85rem; color: var(--ink-muted); margin: 10px 4px 0; max-width: 760px; }
svg.dg { display: block; width: 100%; min-width: 520px; height: auto; font-family: inherit; }
.dg-t { font-size: 15px; font-weight: 600; fill: var(--ink); }
.dg-s { font-size: 13px; fill: var(--ink-muted); }
.dg-zt { font-size: 14px; font-weight: 700; fill: var(--ink-soft); letter-spacing: 0.02em; }
.dg-bt { font-size: 13px; font-weight: 700; fill: var(--ink); }
.dg-zone { fill: var(--tint); stroke: var(--line); stroke-width: 1.5; }
.dg-zone-thread { stroke: var(--teal); stroke-dasharray: 6 5; fill: var(--teal-tint); fill-opacity: 0.5; }
.dg-zone-home { fill: var(--tint); }
.dg-node { fill: var(--paper); stroke: var(--ink-muted); stroke-width: 2; }
.dg-icon { fill: var(--ink-soft); }
.dg-br { fill: var(--teal); stroke: var(--teal-dark); }
.dg-br + .dg-icon { fill: #fff; }
.dg-router { fill: var(--paper); stroke: var(--teal); stroke-width: 3; }
.dg-leader { fill: var(--blue-tint); stroke: var(--blue-dark); stroke-width: 3; }
.dg-end { fill: var(--paper); stroke: var(--ink-muted); stroke-dasharray: 4 3; }
.dg-mesh { stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.dg-ip { stroke: var(--ink-muted); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.dg-pill { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.dg-bar { stroke-width: 1.5; }
.dg-bar-matter { fill: var(--teal-tint); stroke: var(--teal); }
.dg-bar-net { fill: var(--blue-tint); stroke: var(--blue-dark); }
.dg-bar-radio { fill: var(--amber-tint); stroke: var(--amber-dark); }
.dg-bar-own { fill: var(--grey-tint); stroke: var(--grey-dark); }

/* ---- Hubs: where these companies are from (real map) ---- */
.geo-maps { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .geo-maps { grid-template-columns: minmax(0, 1fr); } }
.geo-fig { margin: 0; min-width: 0; }
.geo-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.geo-svg { display: block; width: 100%; height: auto; }
.geo-svg-world { min-width: 560px; }
.geo-svg-eu { min-width: 300px; }
.geo-hint { display: none; font-size: 0.78rem; color: var(--ink-muted); margin: 6px 4px 0; }
@media (max-width: 860px) { .geo-hint { display: block; } }
.geo-svg .land { fill: var(--tint); stroke: var(--line); stroke-width: 0.6; transition: fill 0.15s; }
.geo-svg .land.has { fill: var(--teal-tint); stroke: var(--teal); stroke-width: 0.9; }
.geo-svg .land.has.geo-on { fill: var(--teal); fill-opacity: 0.45; }
.geo-eubox { fill: none; stroke: var(--ink-muted); stroke-width: 1.2; stroke-dasharray: 4 3; }
.geo-zt { font-size: 12px; font-weight: 600; fill: var(--ink-muted); }
.geo-pin { cursor: pointer; outline: none; }
.geo-halo { fill: var(--teal); opacity: 0; transition: opacity 0.15s; }
.geo-dot { fill: var(--teal); stroke: var(--paper); stroke-width: 2.5; }
.geo-n { font-size: 13px; font-weight: 700; fill: #fff; pointer-events: none; }
.geo-code { font-size: 12px; font-weight: 700; fill: var(--ink-soft); pointer-events: none; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.geo-pin.geo-on .geo-halo, .geo-pin:focus-visible .geo-halo { opacity: 0.25; }
.geo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.geo-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.geo-card.geo-on, .geo-card:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint), var(--shadow); }
.geo-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.geo-card-h strong { font-size: 0.98rem; }
.geo-count { margin-left: auto; font-size: 0.74rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-tint); border-radius: 999px; padding: 2px 9px; }
.geo-brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.geo-brands li { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* ---- Brands directory ---- */
.alpha-nav span.off { opacity: 0.35; }
.alpha-nav a.dim { opacity: 0.35; }
.brand-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.brand-tools input, .brand-tools select { height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 0 12px; font: inherit; font-size: 0.92rem; }
.brand-tools input { flex: 1 1 260px; max-width: 420px; }
.brand-tools select { flex: 0 1 220px; }
.brand-count { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; }
.brand-letter { margin-top: 38px; scroll-margin-top: 92px; }
#brand-nav { scroll-margin-top: 92px; }
@media (max-width: 960px) { .brand-letter, #brand-nav, .brand-card { scroll-margin-top: 92px; } }
.brand-letter:first-child { margin-top: 0; }
.brand-letter > h2 { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 18px; }
.brand-letter .brand-n { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.brand-letter .back-top { float: none; margin-left: auto; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.brand-card { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.brand-card[hidden], .brand-letter[hidden] { display: none; }
.brand-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint), var(--shadow); }
.brand-logo { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-logo svg { width: 30px; height: 30px; }
.brand-mono { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--ink); }
.brand-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: var(--paper); filter: grayscale(1) brightness(0); }
html[data-theme="dark"] .brand-logo img { filter: grayscale(1) brightness(0) invert(1); }
.brand-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.brand-body h3 { margin: 0; font-size: 1.05rem; }
.brand-origin { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.brand-desc { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.brand-feat { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 0.75rem; }
.brand-feat > span { color: var(--ink-muted); font-weight: 600; margin-right: 2px; }
.brand-feat a { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--ink-soft); background: var(--tint); text-decoration: none; }
.brand-feat a:hover { border-color: var(--teal); color: var(--teal); }
.brand-link { align-self: flex-start; font-size: 0.85rem; font-weight: 700; margin-top: auto; padding-top: 4px; }
.brand-empty { padding: 30px 0; color: var(--ink-muted); }
@media (max-width: 520px) { .brand-tools select, .brand-tools input { flex: 1 1 100%; max-width: none; } }

/* ---- Brands: where-from map (same map style as Hubs) ---- */
.brand-letter:first-of-type { margin-top: 0; }
#brand-nav { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
#brand-nav a, #brand-nav span { flex: 0 0 auto; min-width: 32px; padding: 0 6px; }

/* ---- links from reviews to the Brands directory ---- */
.brand-ref { color: inherit; text-decoration: underline dotted var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.brand-ref:hover, .brand-ref:focus-visible { color: var(--teal-dark); text-decoration-style: solid; }

/* ---- FAQ ---- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.faq-tools input { flex: 1 1 280px; max-width: 460px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 0 14px; font: inherit; font-size: 0.95rem; }
.faq-btn { height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink-soft); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.faq-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.faq-count { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; }
.faq-wrap { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-rail { position: sticky; top: 92px; }
.faq-rail-h { margin: 0 0 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.faq-rail ol { list-style: none; margin: 0; padding: 0; }
.faq-rail a { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.faq-rail a .n { font-size: 0.74rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.faq-rail a .c { margin-left: auto; font-size: 0.75rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.faq-rail a:hover { color: var(--teal-dark); }
.faq-rail a.active { color: var(--teal-dark); border-bottom-color: var(--teal); font-weight: 800; }
.faq-short { margin: 0 0 56px; max-width: 66ch; padding-left: 20px; border-left: 3px solid var(--teal); font-size: 1.14rem; line-height: 1.7; color: var(--ink); }
.faq-topic { margin-bottom: 68px; scroll-margin-top: 92px; }
.faq-topic[hidden], .faq-q[hidden] { display: none; }
.faq-topic > header { display: flex; align-items: flex-start; gap: 22px; }
.faq-tn { font-size: 3.4rem; line-height: 0.95; font-weight: 800; color: var(--teal-tint); -webkit-text-stroke: 1.5px var(--teal); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.faq-topic h2 { margin: 0; font-size: 1.7rem; }
.faq-topic > header p { margin: 6px 0 0; color: var(--ink-soft); max-width: 58ch; }
.faq-list { margin-top: 26px; border-bottom: 1px solid var(--line); }
.faq-q { border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.faq-q summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 0 10px; align-items: baseline; padding: 18px 0; cursor: pointer; list-style: none; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.faq-qn { font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.faq-q h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; font-weight: 650; }
.faq-q summary:hover h3, .faq-q[open] h3 { color: var(--teal-dark); }
.faq-plus { position: relative; width: 16px; height: 16px; align-self: center; justify-self: end; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--teal); transition: transform 0.18s; }
.faq-plus::after { transform: rotate(90deg); }
.faq-q[open] .faq-plus::after { transform: rotate(0deg); }
.faq-q[open] { box-shadow: inset 3px 0 0 var(--teal); }
.faq-q[open] > summary { padding-left: 16px; }
.faq-a { padding: 0 40px 26px 70px; color: var(--ink-soft); line-height: 1.7; max-width: 76ch; }
.faq-a p { margin: 0; }
.faq-rel { margin-top: 14px !important; font-size: 0.86rem; color: var(--ink-muted); }
.faq-rel > span:first-child { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.7rem; margin-right: 6px; }
.faq-rel a { font-weight: 600; color: var(--teal-dark); }
.faq-rel .dot { margin: 0 4px; }
.faq-empty { padding: 28px 0; color: var(--ink-muted); }
.faq-note { margin-top: 12px; font-size: 0.82rem; color: var(--ink-muted); max-width: 66ch; }
@media (max-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq-rail { position: static; }
  .faq-rail ol { display: flex; gap: 6px 18px; flex-wrap: wrap; }
  .faq-rail a { border-bottom: 0; padding: 4px 0; }
  .faq-rail a .n, .faq-rail a .c { display: none; }
  .faq-topic, .faq-q { scroll-margin-top: 92px; }
  .faq-a { padding: 0 8px 22px 54px; }
  .faq-tn { font-size: 2.6rem; }
  .faq-topic h2 { font-size: 1.45rem; }
}
@media (max-width: 520px) { .faq-tools input { flex: 1 1 100%; max-width: none; } .faq-q summary { grid-template-columns: 34px minmax(0,1fr) 24px; } .faq-a { padding-left: 44px; } }

/* ---- Header search button + quick-search overlay ---- */
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.search-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.search-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.search-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.search-btn .sb-label { display: none; }
.search-btn kbd { display: none; }
@media (min-width: 1120px) {
  .search-btn { padding: 0 8px 0 12px; }
  .search-btn .sb-label { display: inline; font-weight: 500; color: var(--ink-muted); padding-right: 14px; }
  .search-btn kbd { display: inline-block; }
}
.search-btn kbd, .search-foot kbd {
  font: inherit; font-size: 0.72rem; font-weight: 700; line-height: 1; color: var(--ink-muted);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--tint);
}
@media (max-width: 900px) { header.site .bar .search-btn { order: 2; margin-left: auto; width: 40px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; } header.site .bar .logo { margin-right: 0; } }

html.search-open { overflow: hidden; }
.search-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 25, 22, 0.5);
  backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%; max-width: 640px; max-height: min(78vh, 640px); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); overflow: hidden;
}
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.search-field input {
  flex: 1; min-width: 0; height: 58px; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: 1.05rem; outline: none;
}
.search-field input::placeholder { color: var(--ink-muted); }
.search-close { font: inherit; font-size: 0.72rem; font-weight: 700; color: var(--ink-muted); background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.search-body { overflow-y: auto; padding: 8px 8px 12px; overscroll-behavior: contain; }
.sr-h { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding: 12px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sr-item.sel { background: var(--teal-tint); }
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sr-t { font-weight: 700; font-size: 0.95rem; }
.sr-item.sel .sr-t { color: var(--teal-dark); }
.sr-d { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-go { color: var(--ink-muted); opacity: 0; font-weight: 700; }
.sr-item.sel .sr-go { opacity: 1; color: var(--teal-dark); }
.sr-item mark { background: var(--teal-tint); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-item.sel mark { background: rgba(15,118,89,0.18); }
.sr-empty, .sr-hint { margin: 0; padding: 14px 12px; color: var(--ink-soft); font-size: 0.9rem; }
.sr-hint { color: var(--ink-muted); font-size: 0.84rem; padding-top: 6px; }
.search-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--tint); font-size: 0.76rem; color: var(--ink-muted); }
.search-foot kbd { margin-right: 3px; }
@media (max-width: 700px) {
  .search-overlay { padding: 0; align-items: stretch; }
  .search-panel { max-width: none; max-height: none; border-radius: 0; border: 0; }
  .search-foot { display: none; }
  .search-field input { font-size: 1rem; }
}
html[data-theme="dark"] .search-overlay { background: rgba(0, 0, 0, 0.62); }

/* Phones: keep logo, search, theme toggle and menu button on one row */
@media (max-width: 480px) {
  header.site .bar { padding: 12px 16px; gap: 6px; }
  header.site .bar .logo { gap: 8px; font-size: 0.95rem; }
  header.site .bar .search-btn, header.site .bar .nav-toggle { width: 36px; }
}
@media (max-width: 370px) { header.site .bar .logo { font-size: 0.86rem; gap: 6px; } header.site .bar .logo-mark { width: 26px; height: 26px; } }

/* ---- Brand profile pages ---- */
.bp-head { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.bp-head .brand-logo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 16px; }
.bp-head h1 { margin: 0; }
.page-hero .bp-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.page-hero .bp-lede { margin: 20px 0 0; font-size: 1.1rem; color: var(--ink); max-width: 62ch; line-height: 1.55; }

.page-hero .bp-actions { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.bp-btn:hover { background: var(--teal-dark); color: #fff; }
.bp-btn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.bp-btn.ghost:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--paper); }
.bp-wrap { max-width: 1080px; }
.bp-body h2 { margin: 46px 0 14px; font-size: 1.45rem; scroll-margin-top: 92px; }
.bp-body h2:first-child { margin-top: 0; }
.bp-body p { max-width: 70ch; }
.bp-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.bp-glance > div { padding: 14px 18px; border-left: 1px solid var(--line); }
.bp-glance > div:first-child { border-left: 0; }
.bp-glance dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); }
.bp-glance dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); line-height: 1.35; }
@media (max-width: 700px) { .bp-glance > div { border-left: 0; border-top: 1px solid var(--line); } .bp-glance > div:first-child { border-top: 0; } }
.bp-connects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bp-connects li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
.bp-connects strong { color: var(--teal-dark); }
@media (max-width: 560px) { .bp-connects li { grid-template-columns: 1fr; gap: 2px; } }
.bp-src, .bp-note { font-size: 0.84rem; color: var(--ink-muted); margin: 10px 0 0; }
.bp-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bp-app { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.bp-app h3 { margin: 0 0 6px; font-size: 1.05rem; }
.bp-app p { margin: 0 0 10px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.bp-store { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.bp-store a { border: 1px solid var(--teal); border-radius: 999px; padding: 3px 12px; font-size: 0.82rem; font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.bp-store a:hover { background: var(--teal-tint); }
.bp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; color: var(--ink-soft); }
.bp-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.bp-st { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; border: 1px solid transparent; white-space: nowrap; }
.bp-st.s-yes, .bp-st.s-official { background: var(--teal-tint); color: var(--teal-dark); border-color: var(--teal); }
.bp-st.s-community { background: var(--paper); color: var(--teal-dark); border-color: var(--teal); border-style: dashed; }
.bp-st.s-none { background: var(--tint); color: var(--ink-muted); border-color: var(--line); }
.bp-st.s-unclear { background: var(--amber-tint, #fff3d6); color: var(--amber-dark, #7a5200); border-color: var(--amber-dark, #b58100); }
.bp-body .table-scroll { overflow-x: auto; margin-top: 12px; }
table.compat { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.compat thead th { text-align: left; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 12px; border-bottom: 2px solid var(--line); }
table.compat tbody tr.grp th { text-align: left; background: var(--tint); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal-dark); padding: 9px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table.compat td, table.compat tbody th[scope="row"] { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.5; }
table.compat tbody th[scope="row"] { font-weight: 700; color: var(--ink); width: 17%; }
table.compat td:nth-child(2) { width: 112px; }
table.compat td:nth-child(3) { color: var(--ink-soft); }
table.compat td.src { width: 20%; font-size: 0.84rem; }
table.compat td.src a { display: block; margin-bottom: 3px; color: var(--teal-dark); font-weight: 600; }
table.compat .muted { color: var(--ink-muted); }
@media (max-width: 760px) {
  table.compat thead { position: absolute; left: -9999px; }
  table.compat, table.compat tbody, table.compat tr { display: block; width: 100%; }
  table.compat tbody tr.grp th { display: block; margin-top: 18px; }
  table.compat tr:not(.grp) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.compat td, table.compat tbody th[scope="row"] { display: block; border: 0; padding: 3px 0; width: auto !important; }
  table.compat td[data-label]::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }
  table.compat td[data-label="Status"]::before { display: none; }
  table.compat tbody th[scope="row"] { font-size: 1.02rem; }
}
.bp-dyk { margin: 46px 0 0; padding: 22px 24px 20px; background: var(--teal-tint); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.bp-dyk h2 { margin: 0 0 10px; font-size: 1.2rem; color: var(--teal-dark); }
.bp-dyk ul { margin: 0; padding-left: 20px; }
.bp-dyk li { margin: 0 0 9px; line-height: 1.55; max-width: 72ch; }
.bp-dyk li a { font-size: 0.8rem; font-weight: 700; margin-left: 4px; white-space: nowrap; color: var(--teal-dark); }
.bp-related h2 { font-size: 1.1rem; margin: 0 0 8px; }
.brand-profile { align-self: flex-start; margin-top: auto; padding: 5px 13px; border: 1px solid var(--teal); border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--teal-dark); text-decoration: none; }
.brand-profile:hover { background: var(--teal-tint); }
.brand-profile + .brand-link { margin-top: 0; }

.geo-more { margin-top: 10px; background: none; border: 0; padding: 0; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--teal-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.geo-more:hover, .geo-more:focus-visible { color: var(--teal); }
.geo-brands li a { color: inherit; text-decoration: none; }
.geo-brands li a:hover, .geo-brands li a:focus-visible { color: var(--teal-dark); text-decoration: underline; }
.geo .map-note { margin-top: 18px; }

/* ===== Smart home expos page (expos.html) ===== */
.ex-hl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ex-hl:empty { display: none; }
.ex-hl-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
.ex-hl-item:hover, .ex-hl-item:focus-visible { border-color: var(--teal); }
.ex-hl-lab { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-dark); }
.ex-hl-item strong { font-size: 1rem; line-height: 1.3; }
.ex-hl-item span:last-child { font-size: 0.85rem; color: var(--ink-muted); }

.ex-bar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.ex-chip span { font-size: 0.75rem; font-weight: 700; color: var(--ink-muted); }
.ex-chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.ex-chip[aria-pressed="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.ex-chip[aria-pressed="true"] span { color: rgba(255,255,255,0.8); }
[data-theme="dark"] .ex-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #08140f; }
[data-theme="dark"] .ex-chip[aria-pressed="true"] span { color: rgba(8,20,15,0.75); }
.ex-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ex-bar-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.ex-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.ex-toggle input { width: 16px; height: 16px; accent-color: var(--teal); margin: 0; }
.ex-count { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }

.ex-month { margin-bottom: 30px; }
.ex-month-h { display: flex; align-items: baseline; gap: 12px; font-size: 1.15rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.ex-month-n { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.ex-month .ex-card + .ex-card { margin-top: 14px; }

.ex-card { display: grid; grid-template-columns: 76px 168px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; scroll-margin-top: 90px; transition: border-color 0.15s, opacity 0.15s; }
.ex-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint), var(--shadow); }
.ex-date { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--teal-tint); color: var(--teal-dark); border-radius: 10px; padding: 8px 4px 9px; line-height: 1.1; }
.ex-dm { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ex-dd { font-size: 1.25rem; font-weight: 800; margin: 3px 0 2px; white-space: nowrap; }
.ex-dy { font-size: 0.72rem; font-weight: 600; opacity: 0.8; }
.ex-logo { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 1; background: #fff; }
.ex-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ex-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-focus { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ex-f-smart { background: var(--teal-tint); color: var(--teal-dark); }
.ex-f-energy { background: var(--amber-tint); color: var(--amber-dark); }
.ex-f-iot { background: var(--indigo-tint); color: var(--indigo-dark); }
.ex-dot.ex-f-smart { background: var(--teal); }
.ex-dot.ex-f-energy { background: #d99a2b; }
.ex-dot.ex-f-iot { background: #5b5fd6; }
.ex-status:empty { display: none; }
.ex-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ex-st-live { background: var(--coral-tint); color: var(--coral-dark); }
.ex-st-soon { background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line); }
.ex-st-over { background: var(--grey-tint); color: var(--grey-dark); }
.ex-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(216,90,48,0.5); animation: ex-pulse 1.8s infinite; }
@keyframes ex-pulse { 70% { box-shadow: 0 0 0 7px rgba(216,90,48,0); } 100% { box-shadow: 0 0 0 0 rgba(216,90,48,0); } }
@media (prefers-reduced-motion: reduce) { .ex-pulse { animation: none; } }
.ex-card h3 { font-size: 1.12rem; margin: 2px 0 0; line-height: 1.3; }
.ex-meta { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.ex-sep { color: var(--ink-muted); margin: 0 3px; }
.ex-where .flag { margin-right: 2px; }
.ex-desc { margin: 2px 0 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 70ch; }
.ex-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 6px; }
.ex-link { font-size: 0.86rem; font-weight: 700; color: var(--teal-dark); }
.ex-ics { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ex-ics:hover, .ex-ics:focus-visible { color: var(--teal-dark); text-decoration-color: currentColor; }
.ex-card.is-live { border-color: var(--coral); }

/* shows that are over: greyed out */
.ex-card.is-over { background: var(--tint); box-shadow: none; }
.ex-card.is-over .ex-date { background: var(--grey-tint); color: var(--ink-muted); }
.ex-card.is-over .ex-logo { filter: grayscale(1); opacity: 0.55; }
.ex-card.is-over h3, .ex-card.is-over .ex-meta, .ex-card.is-over .ex-desc { color: var(--ink-muted); }
.ex-card.is-over .ex-focus { background: var(--grey-tint); color: var(--ink-muted); }
.ex-card.is-over .ex-ics { display: none; }
.ex-card.is-over .ex-link { color: var(--ink-muted); }
.ex-card[hidden], .ex-month[hidden] { display: none; }
.ex-empty { text-align: center; color: var(--ink-muted); padding: 30px 0; }
.ex-note { margin-top: 6px; }

@media (max-width: 760px) {
  .ex-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; padding: 14px; }
  .ex-logo { grid-column: 2; grid-row: 1; max-width: 180px; }
  .ex-body { grid-column: 1 / -1; }
  .ex-dd { font-size: 1.05rem; }
}
/* expos: who should attend */
.ex-method { margin-top: 14px !important; font-size: 0.9rem !important; color: var(--ink-muted) !important; max-width: 760px !important; }
.ex-method strong { color: var(--ink-soft); }
.ex-chips-lab { align-self: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-muted); margin-right: 2px; }
.ex-who { margin-top: 8px; padding: 12px 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
.ex-who-h { margin: 0 0 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.ex-aud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-aud li { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid transparent; }
.ex-aud li.on { background: var(--teal-tint); color: var(--teal-dark); border-color: var(--teal-border); }
.ex-aud li.off { color: var(--ink-muted); border-color: var(--line); background: var(--paper); opacity: 0.85; }
[data-theme="dark"] .ex-aud li.on { border-color: transparent; }
.ex-who-txt { margin: 8px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.ex-ev { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-muted); line-height: 1.7; }
.ex-ev-lab { font-weight: 700; margin-right: 2px; }
.ex-ev a { color: var(--teal-dark); font-weight: 600; }
.ex-card.is-over .ex-who { background: transparent; }
.ex-card.is-over .ex-aud li.on { background: var(--grey-tint); color: var(--ink-muted); border-color: var(--line); }
.ex-card.is-over .ex-ev a { color: var(--ink-muted); }
/* hub advisor v2: shortlist */
.adv-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.adv-head p { margin: 0 0 18px; color: var(--ink-muted); font-size: 0.95rem; }
.adv-close { background: var(--amber-tint); color: var(--amber-dark); border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin: 0 0 16px; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.adv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.adv-card.is-top { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint), var(--shadow); }
.adv-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.adv-rank { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.adv-card.is-top .adv-rank { color: var(--teal-dark); }
.adv-fit { font-size: 0.78rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-tint); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.adv-card h3 { font-size: 1.2rem; margin: 2px 0 4px; line-height: 1.3; }
.adv-card h3 a { color: var(--ink); }
.adv-card h3 a:hover { color: var(--teal-dark); }
.adv-sub { margin: 8px 0 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.adv-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.adv-list li { position: relative; padding-left: 20px; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.adv-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.adv-pros li::before { content: '\2022'; color: var(--ink-muted); left: 5px; }
.adv-good li::before { content: '\2713'; color: var(--teal); }
.adv-weak li::before { content: '!'; color: var(--amber-dark); left: 6px; }
.adv-note { margin: 6px 0 0; font-size: 0.84rem; color: var(--ink-muted); font-style: italic; }
.adv-more { margin-top: 10px; font-size: 0.86rem; font-weight: 700; color: var(--teal-dark); }
.adv-all { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.adv-all summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.adv-all .score-bars { margin-top: 14px; }
.adv-all .score-row-bar .nm a { color: var(--ink-soft); }
.adv-excl { margin: 12px 0 0; font-size: 0.84rem; color: var(--ink-muted); }
@media (max-width: 560px) { .score-row-bar .nm { flex-basis: 130px; } }
.adv-all .score-row-bar .fill { display: block; }

/* about page */
.about-wrap > * { max-width: 760px; }
.about-wrap h2 { font-size: 1.35rem; margin: 30px 0 10px; }
.about-wrap h2:first-child { margin-top: 0; }
.about-wrap p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; margin: 0 0 12px; }
.about-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.about-list li { color: var(--ink-soft); line-height: 1.65; }
.about-list a, .about-wrap p a { color: var(--teal-dark); font-weight: 600; }
/* compare two hubs */
.cmp-steps { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cmp-step { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.cmp-clear { font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--teal-dark); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.cmp-clear:hover { border-color: var(--teal); }
.cmp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cmp-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; font: inherit; text-align: center; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.cmp-tile:hover { border-color: var(--teal); transform: translateY(-1px); }
.cmp-tile:focus-visible { outline: 3px solid var(--teal-tint); outline-offset: 2px; }
.cmp-tile[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint), var(--shadow); }
.cmp-logo.brand-logo { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; position: absolute; top: 8px; left: 8px; }
.cmp-logo.brand-logo svg { width: 18px; height: 18px; }
.cmp-logo .brand-mono { font-size: 0.85rem; }
.cmp-logo.brand-logo img { padding: 5px; }
.cmp-art { width: 64px; height: 64px; color: var(--ink-soft); margin: 10px 0 2px; }
.cmp-tile[aria-pressed="true"] .cmp-art { color: var(--teal-dark); }
.cmp-tn { font-size: 0.88rem; font-weight: 700; line-height: 1.25; }
.cmp-tb { font-size: 0.74rem; color: var(--ink-muted); }
.cmp-pick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; }
.cmp-tile[aria-pressed="true"] .cmp-pick { background: var(--teal-dark); border-color: var(--teal-dark); }
[data-theme="dark"] .cmp-tile[aria-pressed="true"] .cmp-pick { background: var(--teal); border-color: var(--teal); color: #08140f; }
#cmpOut { scroll-margin-top: 90px; }
.cmp-tablewrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { position: sticky; top: 0; background: var(--paper); font-size: 1rem; z-index: 1; }
.cmp-table thead th a { color: var(--ink); }
.cmp-table tbody th { width: 26%; color: var(--ink-soft); font-weight: 600; }
.cmp-table td { width: 37%; color: var(--ink); }
.cmp-table td a { color: var(--teal-dark); font-weight: 600; }
.cmp-grp th { background: var(--tint); font-size: 0.72rem !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted) !important; padding: 7px 14px !important; }
.cmp-table tr.is-diff td { background: color-mix(in srgb, var(--teal-tint) 45%, transparent); }
.cmp-table.only-diff tbody tr:not(.is-diff):not(.cmp-grp) { display: none; }
.cmp-col { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-dark); color: #fff; font-size: 0.75rem; align-items: center; justify-content: center; margin-right: 4px; vertical-align: 2px; }
.cmp-yes { color: var(--teal-dark); font-weight: 700; }
.cmp-no { color: var(--ink-muted); }
.cmp-ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cmp-diffonly { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); cursor: pointer; }
.cmp-diffonly input { accent-color: var(--teal); }
.cmp-next { margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.cmp-next a { color: var(--teal-dark); font-weight: 700; }
@media (max-width: 560px) { .cmp-tiles { grid-template-columns: repeat(2, 1fr); } .cmp-table { font-size: 0.84rem; } }
/* smart home data page */
.sd-asof { margin-top: 12px !important; font-size: 0.9rem !important; color: var(--ink-muted) !important; }
.sd-asof a { color: var(--teal-dark); font-weight: 700; }
.sd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sd-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 90px; }
.sd-card:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint), var(--shadow); }
.sd-big { margin: 0; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--teal-dark); letter-spacing: -0.02em; }
.sd-what { margin: 6px 0 0; font-size: 0.95rem; color: var(--ink); }
.sd-detail { margin: 2px 0 0; font-size: 0.8rem; color: var(--ink-muted); }
.sd-note { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.sd-cite { align-self: flex-start; margin-top: 10px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-tint); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.sd-cite:hover { filter: brightness(0.96); }
.sd-headline { margin: 22px 0 0; font-size: 1.05rem; color: var(--ink-soft); max-width: 760px; }
.sd-filter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.sd-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.sd-sel { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sd-sel select { font: inherit; font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 210px; max-width: 100%; }
.sd-flab { margin: 16px 0 8px; font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sd-chks { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; background: var(--paper); }
.sd-chk:has(input:checked) { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }
.sd-chk input { accent-color: var(--teal); margin: 0; }
.sd-community { border: 0; padding: 6px 0; background: none !important; }
.sd-result { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.sd-rbig { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sd-rbig #sdN { font-size: 2.2rem; font-weight: 800; color: var(--teal-dark); line-height: 1; }
.sd-rof { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.sd-rpct { font-size: 1rem; font-weight: 800; color: var(--teal-dark); background: var(--teal-tint); border-radius: 999px; padding: 2px 10px; }
.sd-rpct:empty { display: none; }
.sd-rtxt { margin: 8px 0 0; color: var(--ink-soft); }
.sd-list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }
.sd-list li a { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.sd-list li a:hover { color: var(--teal-dark); border-color: var(--teal); }
.sd-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.sd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
.sd-table th, .sd-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.sd-table thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); background: var(--tint); }
.sd-table tbody th { font-weight: 600; color: var(--ink); }
.sd-table tbody th a { color: var(--teal-dark); }
.sd-table td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sd-table tbody tr:last-child th, .sd-table tbody tr:last-child td { border-bottom: 0; }
/* brand profiles: works-with strip, FAQ, similar brands */
.bp-works { margin-top: 18px; }
.bp-works-h { margin: 0 0 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.bp-works-h a { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--teal-dark); }
.bp-works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bp-works li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 11px; }
.bp-works .ww-n { font-weight: 700; color: var(--ink); }
.bp-works .ww-v { font-weight: 600; }
.bp-works .ww-ok .ww-v { color: var(--ok-dark); }
.bp-works .ww-ok { background: var(--ok-tint); border-color: transparent; }
.bp-works .ww-cm .ww-v { color: var(--blue-dark); }
.bp-works .ww-no .ww-v, .bp-works .ww-un .ww-v { color: var(--ink-muted); }
.bp-faq { display: flex; flex-direction: column; gap: 8px; }
.bp-q { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.bp-q summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.bp-q p { margin: 8px 0 0; color: var(--ink-soft); }
.bp-similar { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-similar a { display: inline-block; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.bp-similar a:hover { color: var(--teal-dark); border-color: var(--teal); }
.compat th[scope="row"] a { color: var(--teal-dark); }
.bp-hero .bp-works .bp-works-h { margin: 0 0 8px; font-size: 0.74rem; line-height: 1.4; color: var(--ink-muted); }
.bp-note a { color: var(--teal-dark); font-weight: 600; }
/* language switcher + browser-language bar */
.lang-sw { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--teal); color: var(--teal-dark); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu a, .lang-menu .lang-na { display: block; padding: 7px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.lang-menu a:hover { background: var(--tint); color: var(--teal-dark); }
.lang-menu a[aria-current] { color: var(--teal-dark); background: var(--teal-tint); }
.lang-menu .lang-na { color: var(--ink-muted); opacity: 0.55; cursor: default; }
.lang-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: calc(100% - 32px); padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(22,33,29,0.18); }
.lang-bar p { margin: 0; font-size: 0.9rem; color: var(--ink); }
.lang-go { font-size: 0.86rem; font-weight: 700; color: #fff; background: var(--teal-dark); border-radius: 999px; padding: 6px 14px; }
[data-theme="dark"] .lang-go { color: #08140f; background: var(--teal); }
.lang-x { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink-muted); background: none; border: 0; cursor: pointer; padding: 6px 4px; }
@media (max-width: 560px) { .lang-btn span { display: none; } .lang-btn { width: 34px; padding: 0; justify-content: center; } }
/* footer on small screens (fixes sideways scroll on phones) */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { table.social { display: block; overflow-x: auto; max-width: 100%; } }
.cmp-advice { margin-top: 30px; }
.cmp-advice h3 { font-size: 1.35rem; margin: 0 0 4px; }
.cmp-adv-sub { margin: 0 0 16px; color: var(--ink-muted); font-size: 0.95rem; }
.cmp-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.cmp-adv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.cmp-adv-card h4 { margin: 0 0 4px; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.cmp-adv-card .adv-more { margin-top: auto; padding-top: 10px; }

/* ==========================================================================
   STUDIO THEME (Coral) — added 2026-11. Everything below overrides the
   original look; delete from this line down to go back to the old design.
   ========================================================================== */
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:400;src:url(fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:500;src:url(fonts/inter-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:600;src:url(fonts/inter-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:700 900;src:url(fonts/inter-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:400;src:url(fonts/inter-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:500;src:url(fonts/inter-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:600;src:url(fonts/inter-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-display:swap;font-weight:700 900;src:url(fonts/inter-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:400 700;src:url(fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:800 900;src:url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:400 700;src:url(fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-display:swap;font-weight:800 900;src:url(fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  --ink:#141414; --ink-soft:#4f4f4f; --ink-muted:#7d7d7d; --line:#e7e7e7;
  --paper:#ffffff; --tint:#f6f6f6; --bg:#ffffff; --paper-blur:rgba(255,255,255,0.9);
  --teal:#e8431f; --teal-dark:#b8361a; --teal-tint:#ffe6dc; --teal-ink:#5c1d0c; --teal-body:#6b2a17;
  --teal-soft:#8a3d25; --teal-border:#f5c3b1; --teal-deep:#c93a1a;
  --coral:#e8431f; --coral-tint:#ffe6dc; --coral-dark:#b8361a;
  --acc:#ff5a36;
  --brand-mark:#ff5a36; --brand-mark-hover:#e8431f;
  --radius:20px; --map-zone:#ececec; --grey-tint:#f2f2f2;
  --shadow:0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  --disp:"Bricolage Grotesque", Inter, system-ui, sans-serif;
}
html[data-theme="dark"] {
  --ink:#f3efe8; --ink-soft:#c2bbb0; --ink-muted:#948d83; --line:#2f2c28;
  --paper:#1d1b19; --tint:#171614; --bg:#131211; --paper-blur:rgba(19,18,17,0.86);
  --teal:#e8562f; --teal-dark:#ff9a7e; --teal-tint:#3a2219; --teal-ink:#ffc2ae; --teal-body:#f0b8a6;
  --teal-soft:#e0a08a; --teal-border:#5a3022; --teal-deep:#ff8a6a;
  --coral:#ff7a59; --coral-tint:#3a2219; --coral-dark:#ff9a7e;
  --acc:#ff7a59;
  --brand-mark:#ff7a59; --brand-mark-hover:#ff9a7e;
  --map-zone:#24211e; --grey-tint:#262420;
  --shadow:0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.3);
}
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, .section-head h2, .page-hero h1, .hero h1 { font-family: var(--disp); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.015em; }
h1 { line-height: 1.02; } h2 { line-height: 1.05; }
.wrap { max-width: 1180px; }

/* header */
header.site { background: var(--paper-blur); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--disp); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.logo-mark { color: var(--brand-mark); }

/* buttons and accents */
.pillar-chip { background: var(--paper); border-color: var(--line); font-weight: 500; }
.pillar-chip:hover { background: var(--acc); border-color: var(--acc); color: #fff; }
.section-head { align-items: end; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-head .see-all { color: var(--teal-dark); font-weight: 600; }
.section-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 680px; margin-bottom: 28px; }
.card { background: var(--paper); border-color: var(--line); box-shadow: none; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,0.08); }
.card h3 { font-size: 1.3rem; line-height: 1.15; }
.badge { text-transform: none; letter-spacing: 0; font-size: 0.78rem; font-weight: 600; }
.badge.protocol, .badge.app-layer { background: transparent; color: var(--teal-dark); padding-left: 0; padding-right: 0; }
.pillar.alt { background: transparent; border: 0; }
.page-hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
footer.site { background: var(--bg); }
footer.site a:hover { color: var(--teal-dark); }

/* pen-and-ink drawings become chalk lines in dark mode (photos untouched) */
html[data-theme="dark"] img[src*="banners/"][src$=".webp"] { filter: invert(1) hue-rotate(180deg) sepia(.25) brightness(.92) contrast(1.05); opacity: 1; }

/* phone fixes: wide tables scroll inside their box; long words in big headings wrap */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.proto-pill { white-space: normal; max-width: 100%; }
.pick-head .proto-pill { white-space: normal; }


.gl-rel { margin: 6px 0 0; font-size: 0.84rem; color: var(--ink-muted); }
.gl-rel > span:first-child { font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.68rem; margin-right: 6px; }
.gl-rel .dot { margin: 0 4px; }
dl.terms dt { scroll-margin-top: 92px; }
dl.terms dt:target { color: var(--teal-dark); }
dl.terms dt:target + dd { background: var(--teal-tint); border-radius: 12px; padding: 10px 12px; margin-left: -12px; margin-right: -12px; }
a.gl { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a.gl:hover { color: var(--teal-dark); }
.kb-more { margin: 18px 0 0; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.6; }
.kb-more a { color: var(--teal-dark); font-weight: 600; }
.kb-more .kb-q { margin-left: 4px; font-weight: 600; color: var(--ink-soft); }
.kb-more .dot { margin: 0 5px; }
.read-next .rn-faq .rn-kicker { color: var(--teal-dark); }

/* logo: the three house frames open like an accordion on hover (class lm-go is set by nav.js) */
.logo-mark .lm-f, .logo-mark .lm-c { transform-box: view-box; }
.logo-mark .lm-cl { transform-origin: 17.1px 73.8px; }
.logo-mark .lm-cr { transform-origin: 81.3px 85.35px; }
.logo.lm-go .lm-f1 { animation: lm-f1 1.05s cubic-bezier(.45,0,.25,1); }
.logo.lm-go .lm-f3 { animation: lm-f3 1.05s cubic-bezier(.45,0,.25,1); }
.logo.lm-go .lm-c { animation: lm-c 1.05s cubic-bezier(.45,0,.25,1); }
@keyframes lm-f1 { 0%, 100% { transform: none; } 42% { transform: translate(-17px, 14.3px); } 72% { transform: translate(2.2px, -1.9px); } }
@keyframes lm-f3 { 0%, 100% { transform: none; } 42% { transform: translate(17px, -14.3px); } 72% { transform: translate(-2.2px, 1.9px); } }
@keyframes lm-c { 0%, 100% { transform: none; } 42% { transform: scale(2.06); } 72% { transform: scale(0.86); } }
@media (prefers-reduced-motion: reduce) { .logo.lm-go .lm-f, .logo.lm-go .lm-c { animation: none; } }

/* ---- Studio homepage ---- */
.st-home h1 em { font-style: normal; color: var(--acc); }
.st-hero { text-align: center; padding: 84px 0 0; }
.st-eyebrow { display: inline-flex; gap: 8px; background: var(--teal-tint); color: var(--teal-dark); font-weight: 600; font-size: 0.9rem; border-radius: 999px; padding: 6px 14px; margin: 0 0 22px; }
.st-hero h1 { font-size: clamp(2.6rem, 7vw, 5.75rem); line-height: 0.98; letter-spacing: -0.045em; max-width: 14ch; margin: 0 auto; }
.st-lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); max-width: 740px; margin: 24px auto 0; }
.st-hero .chat-shell { max-width: 640px; margin: 38px auto 0; }
.st-hero .chat-box { display: flex; align-items: center; border-radius: 999px; padding: 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,0.07); }
.st-hero .chat-input-row { flex: 1; min-width: 0; padding: 0 0 0 16px; align-items: center; }
.st-hero .chat-spark { color: var(--acc); padding-top: 0; }
.st-hero .chat-input { font-size: 1.1rem; padding: 12px 6px; }
.st-hero .chat-actions { padding: 0; }
.st-hero .chat-send { border-radius: 999px; background: var(--acc); padding: 12px 26px; font-size: 1.02rem; }
.st-hero .chat-send:hover { background: var(--teal); }
.st-links { display: flex; justify-content: center; gap: 26px; margin: 24px 0 0; font-size: 1.05rem; font-weight: 600; }
.st-links a, .st-all { color: var(--teal-dark); }
.st-links a:hover, .st-all:hover { text-decoration: underline; }
.st-tile { display: block; position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--line); background: var(--paper); }
.st-art { display: block; overflow: hidden; }
.st-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-tile > .st-art { height: 100%; }
.st-big { margin-top: 46px; aspect-ratio: 1856 / 752; text-align: left; }
.st-cap { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--paper); border-radius: 22px; padding: 24px 26px; max-width: 440px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.st-cap strong { font-family: var(--disp); font-weight: 800; font-size: 1.85rem; line-height: 1.05; letter-spacing: -0.03em; }
.st-cap span { color: var(--ink-soft); line-height: 1.45; }
.st-cap .st-btn { margin-top: 6px; }
.st-btn { display: inline-block; background: var(--acc); color: #fff !important; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.st-btn:hover { background: var(--teal); }
.st-ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.st-ghost:hover { background: transparent; opacity: .8; }
.st-stats { display: grid; grid-template-columns: repeat(6, 1fr); margin: 72px 0 0; }
.st-stats div { padding: 0 8px; border-left: 1px solid var(--line); }
.st-stats div:first-child { border-left: 0; }
.st-stats b { display: block; font-family: var(--disp); font-weight: 800; font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; }
.st-stats div:nth-child(3n+1) b { color: var(--acc); }
.st-stats span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 0.9rem; }
.st-pills { margin: 56px auto 0; max-width: 900px; }
.st-sec { padding: 110px 0 0; }
.st-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; align-items: end; margin-bottom: 34px; }
.st-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; margin: 0; }
.st-head p { grid-column: 1; font-size: 1.18rem; line-height: 1.45; color: var(--ink-soft); margin: 10px 0 0; max-width: 680px; }
.st-all { grid-column: 2; grid-row: 1 / 3; font-weight: 600; white-space: nowrap; }
.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-grid.st-two { grid-template-columns: 1fr 1fr; }
.st-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.st-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.st-card .st-art { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.st-bd { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.st-tag { font-size: 0.82rem; font-weight: 600; color: var(--teal-dark); }
.st-card h3, .st-feat h3 { margin: 8px 0 10px; }
.st-card h3 { font-size: 1.45rem; line-height: 1.12; }
.st-card p { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.5; font-size: 0.97rem; }
.st-more { margin-top: auto; font-weight: 600; font-size: 0.95rem; }
.st-more::after { content: " \2192"; color: var(--acc); }
.st-ic { width: 72px; height: 72px; border-radius: 20px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 8px; }
.st-ic svg { width: 40px; height: 40px; }
.st-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 20px; }
.st-split > .st-tile { min-height: 320px; }
.st-feat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 30px; padding: 44px; }
.st-feat h3 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.st-feat p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.5; margin: 0 0 24px; }
.st-band { margin-top: 110px; background: var(--ink); color: var(--bg); padding: 90px 0; }
.st-band .st-split { align-items: center; margin: 0 auto; }
.st-band .st-tile { border-color: transparent; aspect-ratio: 16 / 10; min-height: 0; }
.st-band h2 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 16px; color: inherit; }
.st-band p { font-size: 1.18rem; line-height: 1.5; opacity: .8; margin: 0 0 26px; max-width: 520px; }
.st-band .st-row { display: flex; gap: 10px; flex-wrap: wrap; opacity: 1; }
.st-after-band { padding-top: 20px; }
.st-promise { padding: 110px 0 90px; }
.st-promise .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-promise .wrap > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.st-promise b { font-family: var(--disp); font-weight: 700; font-size: 1.25rem; display: block; margin-bottom: 6px; }
.st-promise p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.st-promise a { color: var(--teal-dark); font-weight: 600; }
html[data-theme="dark"] .st-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
@media (max-width: 900px) {
  .st-grid, .st-grid.st-two, .st-split, .st-promise .wrap { grid-template-columns: 1fr; }
  .st-stats { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .st-stats div:nth-child(4) { border-left: 0; }
  .st-head { grid-template-columns: 1fr; }
  .st-all { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .st-hero { padding-top: 52px; }
  .st-lede { font-size: 1.05rem; }
  .st-hero .chat-input { font-size: 1rem; }
  .st-hero .chat-send { padding: 11px 18px; }
  .st-links { gap: 16px; font-size: 1rem; flex-wrap: wrap; }
  .st-big { aspect-ratio: auto; border-radius: 22px; }
  .st-big > .st-art { height: auto; aspect-ratio: 1856 / 820; }
  .st-cap { position: static; box-shadow: none; border-radius: 0; max-width: none; padding: 22px; }
  .st-cap strong { font-size: 1.5rem; }
  .st-feat { padding: 28px; border-radius: 22px; }
  .st-split > .st-tile { min-height: 200px; border-radius: 22px; }
  .st-sec { padding-top: 80px; }
  .st-band { margin-top: 80px; padding: 64px 0; }
  .st-promise { padding: 80px 0 64px; }
}

/* What's new strip + "Updated" note */
.st-new { padding: 96px 0 0; }
.st-new-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.st-new-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; letter-spacing: -0.03em; }
.st-new-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.st-new-list a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.st-new-list a + a { padding-left: 20px; border-left: 1px solid var(--line); }
.st-new-list a:hover strong { color: var(--teal-dark); }
.st-when { font-size: 0.78rem; font-weight: 600; color: var(--teal-dark); }
.st-new-list strong { font-family: var(--disp); font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.015em; }
.st-new-list span:last-child { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.page-hero .upd { margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); }
@media (max-width: 900px) { .st-new-list { grid-template-columns: 1fr 1fr; } .st-new-list a:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .st-new { padding-top: 72px; } .st-new-list { grid-template-columns: 1fr; } .st-new-list a, .st-new-list a + a { padding: 16px 0; border-left: 0; } }
main h2 + p { margin-top: 0.5em; }

/* animated diagrams (dg-play.js) */
.dg-stage { position: relative; }
.dg-playbtn { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--paper) 45%, transparent); font: inherit; color: var(--ink); }
.dg-playbtn .dg-yt { width: 76px; height: 54px; display: block; transition: transform .2s; filter: drop-shadow(0 6px 16px rgba(0,0,0,.18)); }
.dg-playbtn .dg-yt svg { width: 100%; height: 100%; display: block; }
.dg-yt-bg { fill: var(--acc); transition: fill .2s; }
.dg-playbtn:hover .dg-yt, .dg-playbtn:focus-visible .dg-yt { transform: scale(1.08); }
.dg-playbtn:hover .dg-yt-bg { fill: var(--teal); }
.dg-playtxt { font-weight: 700; font-size: 0.92rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.dg-replay { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 13px; font: 600 0.85rem/1 inherit; font-family: inherit; cursor: pointer; }
.dg-replay svg { width: 16px; height: 16px; fill: var(--acc); }
.dg-replay:hover { border-color: var(--acc); }
.dg-say { margin: 12px 4px 0; padding: 10px 14px; border-left: 3px solid var(--acc); background: var(--teal-tint); border-radius: 0 10px 10px 0; font-size: 0.95rem; color: var(--ink); min-height: 2.6em; }
.dg-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-dot { fill: var(--acc); stroke: var(--paper); stroke-width: 3; filter: drop-shadow(0 0 6px var(--acc)); }
.dg-trail { stroke: var(--acc); stroke-width: 4; stroke-linecap: round; }
.dg-ring { fill: none; stroke: var(--acc); stroke-width: 3; }
.dg-lit { fill: #ffd75e; opacity: .45; }
.dg-hl { fill: none; stroke: var(--acc); stroke-width: 3; }
.dg-tag rect { fill: var(--ink); }
.dg-tag text { fill: var(--paper); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.dg-tag-done { opacity: .9 !important; }
.dg-dim { opacity: .2; transition: opacity .4s; }
.dg-trigger { cursor: pointer; }
.dg-trigger:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
html[data-theme="dark"] .dg-lit { opacity: .35; }
.dg-playbtn[hidden], .dg-replay[hidden], .dg-say[hidden] { display: none !important; }

/* journalist / YouTube review lists */
.rv-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.rv-q { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; background: var(--paper); color: var(--ink); }
.rv-c { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; background: var(--paper); color: var(--ink); }
.rv-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-count { font-size: 0.88rem; color: var(--ink-muted); font-weight: 600; margin-left: auto; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.rv-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); padding: 0 12px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.rv-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rv-table tbody tr:hover td { background: var(--tint); }
.rv-art { min-width: 260px; max-width: 420px; }
.rv-art > a { font-weight: 700; color: var(--ink); line-height: 1.35; }
.rv-art > a:hover { color: var(--teal-dark); text-decoration: underline; }
.rv-sub { display: block; margin-top: 5px; font-size: 0.83rem; color: var(--ink-muted); line-height: 1.45; }
.rv-kind { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 2px 8px; margin: 0 8px 4px 0; vertical-align: 1px; }
.rv-comparison { background: var(--teal-tint); color: var(--teal-dark); }
.rv-review { background: var(--grey-tint); color: var(--grey-dark); }
.rv-res { min-width: 200px; max-width: 320px; }
.rv-res strong { display: block; line-height: 1.35; }
.rv-more { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }
.rv-score { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 0.82rem; color: #fff; background: var(--acc); border-radius: 6px; padding: 1px 7px; }
.rv-out { font-weight: 600; white-space: nowrap; }
.rv-out .rv-sub { font-weight: 400; }
.rv-cty, .rv-yr { white-space: nowrap; color: var(--ink-soft); }
.rv-flag { color: var(--acc); font-weight: 800; cursor: help; }
.rv-spons { display: inline-block; margin: 6px 0 0; font-size: 0.72rem; font-weight: 700; color: var(--amber-dark); background: var(--amber-tint); border-radius: 999px; padding: 2px 9px; }
.rv-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--acc); color: var(--teal-dark); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.rv-btn::after { content: "\2197"; }
.rv-btn-v::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.rv-btn-v::after { content: none; }
.rv-btn:hover { background: var(--acc); color: #fff; }
.rv-empty { padding: 20px 0; color: var(--ink-muted); }
@media (max-width: 760px) {
  .rv-table thead { display: none; }
  .rv-table, .rv-table tbody, .rv-table tr, .rv-table td { display: block; width: 100%; max-width: none; min-width: 0; }
  .rv-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .rv-table tr[hidden] { display: none; }
  .rv-table td { border: 0; padding: 3px 0; }
  .rv-out, .rv-cty, .rv-yr { display: inline-block !important; width: auto !important; margin-right: 12px; font-size: 0.85rem; }
  .rv-go { margin-top: 8px; }
  .rv-count { margin-left: 0; }
}

nav.primary a.nav-link { white-space: nowrap; }
nav.primary .nl-s { display: none; }
@media (min-width: 901px) { header.site .bar { max-width: 1320px; gap: 10px; } header.site .search-btn .sb-label, header.site .search-btn kbd { display: none; } nav.primary .nav-btn { padding: 8px 9px; } }
@media (min-width: 901px) and (max-width: 1300px) { nav.primary .nl-l { display: none; } nav.primary .nl-s { display: inline; } nav.primary .nav-btn { font-size: 0.88rem; padding: 8px 7px; } nav.primary .nav-cta { margin-left: 4px; padding: 8px 12px; } }
@media (min-width: 901px) and (max-width: 1080px) { nav.primary .nav-cta { display: none; } header.site .logo { font-size: 0.98rem; } }
@media (min-width: 901px) and (max-width: 1000px) { nav.primary .nav-btn { font-size: 0.84rem; padding: 8px 5px; } header.site .bar { gap: 6px; } header.site .logo-mark { width: 28px; height: 28px; } }
@media (min-width: 901px) and (max-width: 1000px) { nav.primary .nav-btn { font-size: 0.84rem; padding: 8px 5px; } header.site .bar { gap: 6px; } header.site .logo-mark { width: 28px; height: 28px; } }
.rv-logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; margin-right: 9px; vertical-align: middle; overflow: hidden; }
.rv-logo img { width: 20px; height: 20px; display: block; }
.rv-logo.rv-nologo::before { content: attr(data-m); font-weight: 800; font-size: 0.8rem; color: var(--teal-dark); }
.rv-vid { display: flex; gap: 16px; align-items: flex-start; max-width: 560px !important; }
.rv-thumb { position: relative; flex: 0 0 176px; border-radius: 10px; overflow: hidden; background: var(--tint); aspect-ratio: 16 / 9; display: block; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-tplay { position: absolute; left: 50%; top: 50%; width: 42px; height: 30px; margin: -15px 0 0 -21px; border-radius: 9px; background: var(--acc); opacity: .92; }
.rv-tplay::after { content: ""; position: absolute; left: 17px; top: 9px; border-left: 11px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.rv-thumb:hover .rv-tplay { opacity: 1; transform: scale(1.06); }
.rv-vtxt { min-width: 0; }
.rv-vtxt > a { font-weight: 700; color: var(--ink); line-height: 1.35; }
.rv-vtxt > a:hover { color: var(--teal-dark); text-decoration: underline; }
@media (max-width: 760px) { .rv-vid { flex-direction: column; } .rv-thumb { flex-basis: auto; width: 100%; } }
/* ranking tiles */
.rk { margin: 0 0 48px; }
.rk-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 6px; letter-spacing: -0.03em; }
.rk-head p { margin: 0 0 20px; color: var(--ink-soft); max-width: 760px; }
.rk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rk-tile { position: relative; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rk-tile:hover, .rk-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.08); border-color: var(--acc); }
.rk-n { position: absolute; top: 14px; right: 16px; font-family: var(--disp); font-weight: 800; font-size: 1.6rem; color: var(--line); }
.rk-tile:nth-child(-n+3) .rk-n { color: var(--acc); }
.rk-b { font-family: var(--disp); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; padding-right: 36px; }
.rk-m { font-size: 0.82rem; color: var(--ink-muted); }
.rk-stars { margin: 8px 0 2px; min-height: 26px; color: var(--acc); font-size: 1.35rem; letter-spacing: 2px; line-height: 1; }
.rk-star { color: var(--acc); }
.rk-head .rk-star { font-size: 1.05em; }
.rk-none { font-size: 0.8rem; color: var(--ink-muted); letter-spacing: 0; }
.rk-c { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.rk-w { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.4; margin-top: 4px; }
.rk-more { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-muted); }
@media (max-width: 1000px) { .rk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rk-grid { grid-template-columns: 1fr; } }

/* footer: newsletter + three link columns */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-col li { margin-bottom: 7px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .footer-grid .footer-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid .footer-col:last-child { grid-column: auto; } }

/* ---- hub pages ---- */
.hp-verdict { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; margin-bottom: 28px; }
.hp-v { padding: 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hp-v:last-child { border-right: 0; }
.hp-k { font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.hp-v strong { font-size: 0.98rem; line-height: 1.35; }
.hp-n { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.4; }
.hp-stars { color: var(--acc); letter-spacing: 1px; }
.hp-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 22px; }
.hp-pc h3 { font-size: 1.15rem; margin: 0 0 8px; }
.hp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-cmp { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 0.88rem; background: var(--paper); }
.hp-cmp:hover { border-color: var(--acc); color: var(--teal-dark); }
.hp-sw { background: var(--teal-tint); border-color: transparent; color: var(--teal-dark); }
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hp-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.hp-list a { font-weight: 700; color: var(--ink); }
.hp-list a:hover { color: var(--teal-dark); text-decoration: underline; }
.hp-src { font-size: 0.78rem; font-weight: 600; color: var(--teal-dark); }
.hp-res { font-size: 0.88rem; color: var(--ink-soft); }
.hp-vids { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp-vids li { display: flex; flex-direction: column; gap: 8px; }
.hp-yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--tint); }
.hp-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-ytt { display: flex; flex-direction: column; gap: 3px; }
.hp-ytt > a { font-weight: 700; color: var(--ink); line-height: 1.35; }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hp-grid a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--paper); }
.hp-grid a:hover { border-color: var(--acc); }
.hp-grid span { font-size: 0.8rem; color: var(--ink-muted); }
@media (max-width: 900px) { .hp-verdict { grid-template-columns: 1fr 1fr; } .hp-v { border-bottom: 1px solid var(--line); } .hp-vids { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hp-verdict, .hp-pc, .hp-vids { grid-template-columns: 1fr; } .hp-v { border-right: 0; } }

/* ---- switch tool ---- */
.sw-tiles .cmp-tile.sw-from { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.sw-tiles .cmp-tile.sw-to { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.sw-tiles .cmp-tile.sw-from::after, .sw-tiles .cmp-tile.sw-to::after { position: absolute; top: 8px; left: 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.sw-tiles .cmp-tile.sw-from::after { content: "Now"; background: var(--ink); color: var(--paper); }
.sw-tiles .cmp-tile.sw-to::after { content: "New"; background: var(--acc); color: #fff; }
.sw-out { margin-top: 28px; scroll-margin-top: 90px; }
.sw-effort { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 22px; border-radius: 18px; background: var(--tint); margin-bottom: 20px; }
.sw-effort span { font-size: 0.75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.sw-effort strong { font-family: var(--disp); font-size: 1.8rem; letter-spacing: -0.03em; }
.sw-effort em { font-style: normal; color: var(--ink-soft); }
.sw-e-low strong { color: var(--ok-dark); } .sw-e-medium strong { color: var(--amber-dark); } .sw-e-high strong { color: var(--bad-strong); }
.sw-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sw-cols h3, .sw-tips h3 { font-size: 1.1rem; margin: 0 0 10px; }
.sw-cols ul, .sw-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sw-cols li { border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; padding: 12px 14px; background: var(--paper); display: flex; flex-direction: column; gap: 3px; font-size: 0.92rem; }
.sw-cols li span { color: var(--ink-soft); }
.sw-keep { border-left-color: var(--ok-dark) !important; } .sw-redo { border-left-color: var(--amber-dark) !important; } .sw-lose { border-left-color: var(--bad-strong) !important; }
.sw-tips { margin-top: 24px; } .sw-tips li { padding-left: 22px; position: relative; } .sw-tips li::before { content: "\2192"; position: absolute; left: 0; color: var(--acc); font-weight: 800; }
.sw-more { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; } .sw-more a { color: var(--teal-dark); }

/* ---- offline page ---- */
.ol-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 44px; }
.ol-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--paper); }
.ol-card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.ol-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-soft); }
.ol-ok { border-top: 4px solid var(--ok-dark); } .ol-no { border-top: 4px solid var(--bad-strong); }
.ol-pill { display: inline-block; font-weight: 700; font-size: 0.8rem; border-radius: 999px; padding: 3px 10px; }
.ol-yes { background: var(--ok-tint); color: var(--ok-dark); } .ol-mostly { background: var(--ok-tint); color: var(--ok-dark); }
.ol-partly { background: var(--amber-tint); color: var(--amber-dark); } .ol-no { background: var(--bad-tint); color: var(--bad-dark); }
.ol-card.ol-no { background: var(--paper); color: inherit; }
.ol-tips { padding-left: 18px; display: grid; gap: 8px; color: var(--ink-soft); }
@media (max-width: 700px) { .ol-cards { grid-template-columns: 1fr; } }

/* ---- smart meters ---- */
.sm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sm-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 0.88rem; background: var(--paper); }
.sm-nav a:hover { border-color: var(--acc); }
.sm-sum { margin-bottom: 36px; }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sm-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--paper); scroll-margin-top: 90px; }
.sm-card h3 { margin: 0 0 12px; font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sm-port { font-family: Inter, sans-serif; font-size: 0.78rem; font-weight: 700; background: var(--teal-tint); color: var(--teal-dark); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.sm-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 0.92rem; }
.sm-card dt { font-weight: 700; color: var(--ink-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.sm-card dd { margin: 0; color: var(--ink-soft); }
.sm-h { font-weight: 700; font-size: 0.85rem; margin: 6px 0 6px; }
.sm-readers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.sm-readers li { background: var(--tint); border-radius: 999px; padding: 4px 11px; font-size: 0.84rem; font-weight: 600; }
.sm-src { font-size: 0.78rem; color: var(--ink-muted); margin: 0; }
.sm-src a { color: var(--teal-dark); }
@media (max-width: 800px) { .sm-grid { grid-template-columns: 1fr; } .sm-card dl { grid-template-columns: 1fr; } }

/* ---- matter tracker ---- */
.mt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.mt-stats div { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--paper); }
.mt-stats b { display: block; font-family: var(--disp); font-size: 1.7rem; letter-spacing: -0.03em; }
.mt-stats span { font-size: 0.84rem; color: var(--ink-muted); }
@media (max-width: 700px) { .mt-stats { grid-template-columns: 1fr 1fr; } }

/* ---- DIY section ---- */
.dy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dy-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.dy-card h3 { margin: 0; font-size: 1.15rem; }
.dy-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5; }
.dy-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-soft); }
.dy-card a { color: var(--teal-dark); font-weight: 600; }
.dy-ex { font-size: 0.88rem !important; padding: 10px 12px; border-radius: 12px; background: var(--tint); }
.dy-ex span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.dy-ex em { font-style: normal; color: var(--ink-muted); }
.dy-q { margin-top: auto; font-size: 0.88rem; }
.dy-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cb-box { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.cb-i { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cb-i:last-child { border-right: 0; }
.cb-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; font-size: 1rem; margin-bottom: 4px; }
.cb-i strong { font-size: 0.95rem; }
.cb-i span:last-child { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.4; }
.dy-next { display: flex; flex-direction: column; gap: 4px; margin-top: 44px; padding: 22px 24px; border-radius: 18px; background: var(--tint); color: var(--ink); }
.dy-next span { font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.dy-next strong { font-family: var(--disp); font-size: 1.5rem; letter-spacing: -0.02em; }
.dy-next em { font-style: normal; color: var(--teal-dark); font-weight: 600; }
.dy-next:hover strong { color: var(--teal-dark); }
.dy-searches { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dy-searches span { font-weight: 700; font-size: 0.88rem; }
.dy-searches a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; font-weight: 600; background: var(--paper); }
.dy-searches a:hover { border-color: var(--acc); }
.dy-tips { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-soft); max-width: 820px; }
.dy-tips strong { color: var(--ink); }
.dy-warn { margin-top: 24px; padding: 18px 22px; border-radius: 18px; border-left: 5px solid var(--amber-dark); background: var(--amber-tint); }
.dy-warn p { margin: 6px 0 0; color: var(--ink-soft); }
.dy-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.dy-check li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.dy-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border: 2px solid var(--acc); border-radius: 5px; }
@media (max-width: 1000px) { .cb-box { grid-template-columns: repeat(3, 1fr); } .cb-i { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .cb-box { grid-template-columns: 1fr 1fr; } .dy-two { grid-template-columns: 1fr; } }

/* ---- DIY projects ---- */
.dy-proj { color: var(--ink); transition: border-color .15s, transform .15s; }
.dy-proj:hover { border-color: var(--acc); transform: translateY(-2px); }
.dy-ph { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dy-lvl { font-size: 0.74rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.dy-l1 { background: var(--ok-tint); color: var(--ok-dark); } .dy-l2 { background: var(--amber-tint); color: var(--amber-dark); } .dy-l3 { background: var(--bad-tint); color: var(--bad-dark); }
.dy-tag { font-size: 0.74rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--tint); color: var(--ink-soft); }
.dy-by { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: var(--teal-dark); }
.dy-hl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cb-proj .cb-k { font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.cb-proj .cb-i strong { font-size: 0.9rem; line-height: 1.4; font-weight: 600; }
.dy-dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: 0.93rem; }
.dy-dl dt { font-weight: 700; color: var(--ink-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.dy-dl dd { margin: 0; color: var(--ink-soft); }
.dy-notes li::before { border-radius: 50%; width: 8px; height: 8px; top: 8px; left: 6px; background: var(--acc); border: 0; }
.dy-go { background: var(--acc); color: #fff; }
.dy-go span, .dy-go em { color: rgba(255,255,255,.88); }
.dy-go:hover strong { color: #fff; }
.dy-next + .dy-next { margin-top: 14px; }
@media (max-width: 600px) { .dy-dl { grid-template-columns: 1fr; } }

/* ---- DIY toolbox ---- */
.tb-art { aspect-ratio: 16 / 10; border-radius: 14px; background: var(--tint); display: grid; place-items: center; color: var(--ink); margin-bottom: 6px; }
.tb-art svg { width: 78%; height: 78%; }
.tb-art .tb-acc { stroke: var(--acc); }
.tb-ess { background: var(--teal-tint); color: var(--teal-dark); }
.tb-opt { background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line); }
.tb-card .dy-tag { font-weight: 700; }

/* ---- FAQ term links on DIY pages ---- */
a.faq-term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--acc); text-underline-offset: 3px; }
a.faq-term:hover { color: var(--teal-dark); text-decoration-style: solid; }

/* ---- DIY resources list ---- */
.dy-res { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px; }
.dy-res li { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dy-res li > a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.dy-res li > a strong { color: var(--teal-dark); }
.dy-res li > a:hover strong { text-decoration: underline; }
.dy-res-u { font-size: 0.78rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.dy-res p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 640px) { .dy-res li { grid-template-columns: 1fr; } }

/* ---- DIY project illustrations ---- */
.dy-proj .tb-art { margin-bottom: 8px; }
.dy-fig { margin: 0 0 36px; }
.dy-fig .tb-art { aspect-ratio: 16 / 6; max-height: 300px; }
.dy-fig .tb-art svg { width: 56%; height: 86%; }
.dy-fig figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--ink-muted); }
@media (max-width: 600px) { .dy-fig .tb-art { aspect-ratio: 16 / 9; } .dy-fig .tb-art svg { width: 86%; } }

/* ---- footer: wider newsletter, tighter link columns ---- */
@media (min-width: 901px) {
  .footer-grid { grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 0.85fr)); column-gap: 20px; }
  .footer-grid .footer-col:first-child { padding-right: 56px; }
}

/* ---- privacy page ---- */
.pv-wrap > * { max-width: 780px; }
.pv-sec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pv-sec:first-child { padding-top: 0; }
.pv-sec h2 { font-size: 1.35rem; margin: 0 0 10px; }
.pv-sec p, .pv-sec li { color: var(--ink-soft); line-height: 1.65; }
.pv-sec ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.pv-sec a { color: var(--teal-dark); }

/* newsletter: inline error message */
.newsletter-ok.is-error { color: #a02c12; background: #fdecea; }
:root[data-theme="dark"] .newsletter-ok.is-error { color: #ffb4a3; background: #3a1d17; }
