/* === OkosOtthonCenter.hu – Knowledge Base CSS === */

:root {
  --bg: #0b1020;
  --card: rgba(255,255,255,.06);
  --txt: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.12);
  --brand: #7c3aed;
  --brand2: #06b6d4;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 980px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--txt);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(6,182,212,.25), transparent 60%),
    radial-gradient(900px 600px at 40% 70%, rgba(124,58,237,.15), transparent 60%),
    radial-gradient(900px 600px at 60% 95%, rgba(34,197,94,.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* === Topbar / Navigation === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,16,32,.72);
  border-bottom: 1px solid var(--line);
}

/* Layout: .topbar-inner is the flex row holding logo, nav, hamburger */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

/* Brand/logo link */
a.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
  white-space: nowrap;
  color: var(--txt);
  text-decoration: none;
}
a.logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px rgba(124,58,237,.25);
  flex: 0 0 auto;
}

/* Also support Pattern B (span.logo inside a.brand) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}
span.logo {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 30px rgba(124,58,237,.25);
  position: relative;
  flex: 0 0 auto;
}
span.logo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.38);
  transform: rotate(8deg);
}

/* Nav links container */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a, .navlinks a {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14.5px;
  transition: all .15s ease;
}
.nav a:hover, .nav a.active,
.navlinks a:hover, .navlinks a.active {
  background: rgba(255,255,255,.06);
  color: var(--txt);
}
.navlinks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Hamburger (supports both .hamb and .hamburger) */
.hamb, .hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  font-size: 20px;
  flex: 0 0 auto;
  position: relative;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--txt);
  margin: 3px auto;
  border-radius: 2px;
  transition: all .2s;
}

/* Mobile menu */
.mobilemenu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 16px;
}
.mobilemenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
}
.mobilemenu a:hover { background: rgba(255,255,255,.06); color: var(--txt); }
.mobilemenu.show { display: block; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  transition: all .15s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 34px rgba(124,58,237,.22);
  color: #fff;
}
.btn.primary:hover, .btn-primary:hover { filter: brightness(1.05); }
/* Aliases for variant class naming */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 14px 34px rgba(124,58,237,.22);
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover { transform: translateY(-1px); background: rgba(255,255,255,.08); }
.btn-group, .cta-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* === Hero === */
header.hero { padding: 40px 0 20px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.2));
  border: 1px solid rgba(255,255,255,.2);
}
h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.8px;
}
h1 .gradient {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 72ch;
}
.meta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
}
.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .12s;
}
.breadcrumb a:hover { color: var(--txt); }
.breadcrumb .sep { opacity: .4; }

/* === Layout (article + sidebar) === */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
  padding: 16px 0 40px;
}

/* === Cards === */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.card + .card { margin-top: 14px; }

/* === Article / Content === */
article {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow);
}
article h2 {
  margin: 22px 0 10px;
  font-size: 22px;
  letter-spacing: -.2px;
}
article h2:first-child { margin-top: 0; }
article h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  letter-spacing: -.15px;
  color: rgba(255,255,255,.92);
}
article p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15.5px;
}
article ul, article ol {
  margin: 0 0 14px 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15.5px;
}
article li { margin: 6px 0; }
article a:not(.btn) {
  color: var(--brand2);
  text-decoration: underline;
  text-decoration-color: rgba(6,182,212,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .12s;
}
article a:not(.btn):hover {
  text-decoration-color: var(--brand2);
}
article strong { color: var(--txt); }
article code {
  font-family: var(--mono);
  font-size: 13.5px;
  background: rgba(255,255,255,.08);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
}

/* Callout */
.callout {
  border-left: 3px solid rgba(124,58,237,.60);
  background: rgba(124,58,237,.10);
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  margin: 14px 0 16px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.65;
}
.callout.blue {
  border-left-color: rgba(6,182,212,.55);
  background: rgba(6,182,212,.10);
}
.callout.green {
  border-left-color: rgba(34,197,94,.55);
  background: rgba(34,197,94,.10);
}
.callout.yellow {
  border-left-color: rgba(245,158,11,.55);
  background: rgba(245,158,11,.10);
}
.callout strong { color: var(--txt); }

/* Related box (article header/footer) */
.related-box {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 14px;
  margin: 0 0 18px;
}
.related-box h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.5);
}
.related-box a {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  transition: all .12s;
}
.related-box a:hover {
  background: rgba(255,255,255,.08);
  color: var(--txt);
}

/* Next step box */
.next-step {
  border: 1px solid rgba(124,58,237,.25);
  background: rgba(124,58,237,.06);
  border-radius: 16px;
  padding: 16px;
  margin: 24px 0 0;
}
.next-step h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
}
.next-step a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--txt);
  margin-bottom: 8px;
  transition: all .12s;
  font-size: 14.5px;
}
.next-step a:last-child { margin-bottom: 0; }
.next-step a:hover { background: rgba(255,255,255,.06); }
.next-step .arrow { color: rgba(255,255,255,.4); }

/* === Pattern cards === */
.patternGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin: 12px 0 16px;
}
.ptn {
  grid-column: span 6;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius: 16px;
  padding: 14px;
  transition: all .15s;
}
.ptn:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
}
.ptn h4 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -.1px;
}
.ptn p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 13.8px;
  line-height: 1.6;
}

/* Tags */
.tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.62);
  font-size: 12.5px;
}
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.tag.ok   { border-color: rgba(34,197,94,.35);  background: rgba(34,197,94,.10); }
.tag.warn { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.10); }
.tag.note { border-color: rgba(148,163,184,.25); background: rgba(148,163,184,.10); }
.tag.brand { border-color: rgba(124,58,237,.35); background: rgba(124,58,237,.10); }

/* === Checklist === */
.checklist {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}
.box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  flex: 0 0 auto;
  margin-top: 2px;
}
.check b { color: rgba(255,255,255,.9); }
.check span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.62);
}

/* === TOC (Table of Contents) === */
.toc h3 { margin: 0 0 8px; font-size: 16px; }
.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid transparent;
  transition: all .12s ease;
}
.toc a:hover {
  background: rgba(255,255,255,.06);
  color: var(--txt);
  border-color: rgba(255,255,255,.10);
}
.toc a.sub {
  padding-left: 22px;
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
}

/* Sidebar helpers */
.side-title { margin: 0 0 10px; font-size: 16px; letter-spacing: -.1px; }
.small { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.55; margin: 0; }
.linklist a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  margin-top: 10px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
  transition: all .12s;
}
.linklist a:hover { background: rgba(255,255,255,.06); }
.linklist span { color: rgba(255,255,255,.55); font-size: 12.5px; }

/* === Start Here / Landing Cards === */
.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.start-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  padding: 24px;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}
.start-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.start-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.start-card .icon.purple { background: rgba(124,58,237,.18); }
.start-card .icon.cyan   { background: rgba(6,182,212,.18); }
.start-card .icon.green  { background: rgba(34,197,94,.18); }
.start-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.start-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}

/* Category cards grid (landing) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.cat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .2s ease;
}
.cat-card:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
  background: rgba(255,255,255,.09);
}
.cat-card .emoji {
  font-size: 26px;
  margin-bottom: 10px;
  display: block;
}
.cat-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--txt);
}
.cat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.55;
}

/* Pillar highlight cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.pillar-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding: 22px;
  transition: all .2s ease;
}
.pillar-card:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 12px 30px rgba(124,58,237,.1);
}
.pillar-card h3 { margin: 0 0 8px; font-size: 17px; }
.pillar-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Sections */
.section { padding: 30px 0; }
.section-alt { padding: 30px 0; }
.section-title {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.3px;
}
.section-sub {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 16px;
  max-width: 72ch;
  line-height: 1.65;
}

/* Start card icon */
.start-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.start-icon.purple { background: rgba(124,58,237,.18); }
.start-icon.cyan   { background: rgba(6,182,212,.18); }
.start-icon.green  { background: rgba(34,197,94,.18); }

/* Pillar link */
.pillar-link {
  display: inline-block;
  color: var(--brand2);
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 8px;
  transition: color .12s;
}
.pillar-link:hover { color: var(--txt); }

/* === FAQ (GYIK) accordion === */
.faq-list { margin: 16px 0; }
.faq-item {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.14);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--txt);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-q:hover { background: rgba(255,255,255,.03); }
.faq-q .chevron {
  flex: 0 0 auto;
  transition: transform .2s;
  color: var(--muted);
}
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* === Glossary === */
.glossary-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.glossary-item {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,.14);
}
.glossary-item dt {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 4px;
  color: var(--txt);
}
.glossary-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.glossary-item .ref {
  margin-top: 6px;
  font-size: 13px;
}
.glossary-item .ref a {
  color: var(--brand2);
  text-decoration: underline;
  text-decoration-color: rgba(6,182,212,.3);
}

/* Glossary tooltip */
.glossary-link {
  border-bottom: 1px dashed rgba(6,182,212,.4);
  cursor: help;
  position: relative;
}
.glossary-link:hover { border-bottom-color: var(--brand2); }

/* === Search === */
.search-wrap {
  position: relative;
  max-width: 420px;
  margin: 18px 0;
}
.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--txt);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
.search-wrap input::placeholder { color: rgba(255,255,255,.4); }
.search-wrap input:focus { border-color: rgba(124,58,237,.5); }
.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.4);
  pointer-events: none;
}

/* === Updated date === */
.updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  margin-top: 8px;
}

/* === Learning path === */
.path-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  counter-reset: step;
}
.path-step {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  transition: all .12s;
}
.path-step:hover { border-color: rgba(255,255,255,.18); }
.path-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}
.path-step-content h4 { margin: 0 0 4px; font-size: 15px; }
.path-step-content p {
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 13.8px;
  line-height: 1.55;
}

/* === Comparison table === */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  font-size: 14.5px;
}
.compare-table th,
.compare-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.compare-table th {
  color: rgba(255,255,255,.55);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.compare-table td { color: var(--muted); }
.compare-table tr:hover td { background: rgba(255,255,255,.03); }
.compare-table .highlight { color: var(--ok); font-weight: 600; }

/* === Cluster article styles === */

/* Top bar (cluster nav) */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,16,32,.72);
  border-bottom: 1px solid var(--line);
}
.top-bar a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: color .12s;
}
.top-bar a:hover { color: var(--txt); }
.cluster-badge {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,.3);
  background: rgba(124,58,237,.12);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 600;
}

/* Cluster hero subtitle */
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 72ch;
}

/* Meta bar (reading time, date, category) */
.meta-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: rgba(255,255,255,.5);
  font-size: 13.5px;
}

/* Question cards (mivel-kezdjem style) */
.question-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0;
}
.question-card h3 {
  margin: 6px 0 10px;
  font-size: 19px;
}
.q-number {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--brand2);
}

/* Tip box */
.tip-box {
  border-left: 3px solid rgba(6,182,212,.55);
  background: rgba(6,182,212,.08);
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  margin: 14px 0;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.65;
}
.tip-label {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--brand2);
}

/* Warning box */
.warn-box {
  border-left: 3px solid rgba(245,158,11,.55);
  background: rgba(245,158,11,.08);
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  margin: 14px 0;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.65;
}
.warn-label {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--warn);
}

/* Danger box */
.danger-box {
  border-left: 3px solid rgba(239,68,68,.55);
  background: rgba(239,68,68,.08);
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  margin: 14px 0;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.65;
}
.danger-label {
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--bad);
}

/* Role grid (Zigbee roles, etc.) */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.role-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius: 16px;
  padding: 18px;
}
.role-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.role-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* VS comparison grid (local vs cloud) */
.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.vs-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 18px;
}
.vs-card.cloud {
  background: rgba(245,158,11,.06);
  border-color: rgba(245,158,11,.2);
}
.vs-card.local {
  background: rgba(34,197,94,.06);
  border-color: rgba(34,197,94,.2);
}
.vs-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
}
.vs-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.vs-card li { margin: 4px 0; }

/* Cluster article TOC (inside article) */
article .toc {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 20px;
}
article .toc h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.5);
}
article .toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}
article .toc a {
  display: inline;
  padding: 0;
  border: none;
  color: var(--muted);
}
article .toc a:hover { color: var(--txt); }

/* Cluster pre/code blocks */
article pre {
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  margin: 14px 0;
}
article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Footer navigation (prev/next article) */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: var(--max);
  margin: 30px auto;
  padding: 0 20px;
}
.footer-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: all .15s;
}
.footer-nav a:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}
.fn-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.fn-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

/* Cluster article max-width */
.top-bar + header.hero,
.top-bar ~ article {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* === Footer === */
footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 20px;
  background: rgba(255,255,255,.02);
}
.footgrid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.footlinks { display: flex; gap: 10px; flex-wrap: wrap; }
.footlinks a {
  padding: 6px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,.55);
  transition: all .12s;
}
.footlinks a:hover { background: rgba(255,255,255,.06); color: var(--txt); }

/* === Responsive === */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .ptn { grid-column: span 12; }
  .start-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navlinks, .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0d1228;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    z-index: 49;
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
  }
  .nav.open a {
    display: block;
    padding: 12px 14px;
    font-size: 15.5px;
    text-align: center;
  }
  .hamb, .hamburger { display: inline-flex; }
  .cat-grid { grid-template-columns: 1fr; }
  header.hero, section.hero { padding: 28px 0 14px; }
  article { padding: 16px; }
  .start-card { padding: 18px; }
  .compare-table { font-size: 13px; overflow-x: auto; display: block; }
  .compare-table th, .compare-table td { padding: 8px 10px; }
}
