/* Design system: Basavalalith brand. Navy/blue from the logo carry structure; the orange-amber bolt marks action. */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eaf1fa;
  --ink: #0a1a33;            /* deep navy ink instead of black */
  --ink-2: #4a5b74;
  --line: #dbe4ef;
  --accent: #0b4fb3;         /* logo royal blue: links, focus, highlights */
  --accent-2: #1a8cff;       /* logo highlight blue */
  --accent-ink: #ffffff;
  --accent-soft: #e7f0ff;
  --navy: #061d4a;           /* logo deep navy: hero, top bar, footer */
  --navy-2: #0a3484;
  --orange: #e8590c;         /* logo bolt: primary actions */
  --orange-2: #c2410c;
  --amber: #ffad1f;
  --phase-r: #d9431f;
  --phase-y: #f59e0b;
  --phase-b: #0b4fb3;
  --ok: #138a52;
  --wire: #7b8898;
  --grad-brand: linear-gradient(135deg, #041640 0%, #082c72 55%, #0b4fb3 100%);
  --grad-energy: linear-gradient(135deg, #f0650f 0%, #c2410c 100%);
  --grad-text: linear-gradient(90deg, #ffc23a 0%, #ff7a1a 100%);
  --shadow-sm: 0 1px 2px rgba(6, 29, 74, .06), 0 2px 8px -2px rgba(6, 29, 74, .06);
  --shadow-md: 0 2px 4px rgba(6, 29, 74, .04), 0 18px 40px -18px rgba(6, 29, 74, .28);

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Noto Sans Kannada", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.85rem, 3.4vw, 2.5rem);
  --step-4: clamp(2.3rem, 4.8vw, 3.75rem);

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060f1e; --surface: #0c192d; --surface-2: #12223a; --ink: #e8eef8; --ink-2: #9db0ca;
    --line: #1d2f4b; --accent: #5aa0ff; --accent-2: #7cb6ff; --accent-ink: #061226; --accent-soft: #0f2a52;
    --phase-r: #ff6a4a; --phase-y: #ffbf3a; --phase-b: #5aa0ff; --ok: #3ccf8a; --wire: #6b7a8d;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 18px 40px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060f1e; --surface: #0c192d; --surface-2: #12223a; --ink: #e8eef8; --ink-2: #9db0ca;
  --line: #1d2f4b; --accent: #5aa0ff; --accent-2: #7cb6ff; --accent-ink: #061226; --accent-soft: #0f2a52;
  --phase-r: #ff6a4a; --phase-y: #ffbf3a; --phase-b: #5aa0ff; --ok: #3ccf8a; --wire: #6b7a8d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 18px 40px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--phase-y); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2);
}
.ryb { display: inline-flex; gap: 3px; }
.ryb i { display: block; width: 14px; height: 4px; border-radius: 1px; }
.ryb i:nth-child(1) { background: var(--phase-r); }
.ryb i:nth-child(2) { background: var(--phase-y); }
.ryb i:nth-child(3) { background: var(--phase-b); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--f-body); padding: 14px 20px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo img { display: block; height: 52px; width: auto; }
.site-footer .brand-logo img { height: 58px; }
.brand-logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.on-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.on-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo.on-light { display: none; }
:root[data-theme="dark"] .brand-logo.on-dark { display: block; }
@media (max-width: 420px) { .site-header .brand-logo img { height: 38px; } }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.header-cta { padding: 10px 16px; font-size: .92rem; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .header-cta { display: none; } }

/* Hero */
.hero { padding-block: 56px 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 700; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: var(--step-1); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.spec-strip { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.spec-strip div { display: grid; gap: 2px; }
.spec-strip b { font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; }
.spec-strip span { font-size: var(--step--1); color: var(--ink-2); }

.sld-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 10px; min-width: 0; }
.sld-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.sld { display: block; width: 100%; height: auto; }
.sld .w { stroke: var(--ink); stroke-width: 2; fill: none; }
.sld .bus { stroke: var(--ink); stroke-width: 5; }
.sld .dev { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.sld .t { fill: var(--ink-2); font-family: var(--f-mono); font-size: 10.5px; }
.sld .tb { fill: var(--ink); font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.sld .flow { stroke: var(--phase-y); stroke-width: 2.5; fill: none; stroke-dasharray: 6 14; animation: flow 1.4s linear infinite; }
.sld .tag rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.sld .tag text { fill: var(--accent); font-family: var(--f-mono); font-size: 10px; font-weight: 500; }
.sld .tag.ok rect { fill: color-mix(in srgb, var(--ok) 14%, var(--surface)); stroke: var(--ok); }
.sld .tag.ok text { fill: var(--ok); }
.sld .tag line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 2; }
.sld .tag.ok line { stroke: var(--ok); }
@keyframes flow { to { stroke-dashoffset: -40; } }
@media (prefers-reduced-motion: reduce) { .sld .flow { animation: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 36px 48px; }
}
@media (max-width: 480px) { .spec-strip { grid-template-columns: 1fr 1fr; } }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding-block: 80px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-3); font-weight: 700; text-transform: uppercase; }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 600px) { .section { padding-block: 56px; } }

/* Requirement finder */
.finder { display: grid; grid-template-columns: 280px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.finder-steps { background: var(--surface-2); padding: 28px; display: grid; align-content: start; gap: 6px; border-right: 1px solid var(--line); }
.finder-steps h3 { font-size: var(--step-2); text-transform: uppercase; margin-bottom: 14px; }
.fstep { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink-2); font-weight: 500; }
.fstep b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); font-family: var(--f-mono); font-size: .8rem; font-weight: 500; background: var(--surface); }
.fstep[aria-current="step"] { color: var(--ink); }
.fstep[aria-current="step"] b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fstep.done b { border-color: var(--ok); color: var(--ok); }
.finder-note { margin-top: 18px; font-size: var(--step--1); color: var(--ink-2); }
.finder-body { padding: 28px; min-width: 0; display: grid; gap: 22px; }
.finder-body fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.finder-body legend { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile label { display: grid; gap: 4px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; height: 100%; background: var(--bg); transition: border-color .15s, background .15s; }
.tile label strong { font-weight: 600; }
.tile label span { font-size: var(--step--1); color: var(--ink-2); line-height: 1.4; }
.tile input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.tile input:focus-visible + label { outline: 3px solid var(--phase-y); outline-offset: 2px; }
.tile label:hover { border-color: var(--ink-2); }

.result { border-top: 1px dashed var(--line); padding-top: 22px; display: grid; gap: 18px; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.result-head h4 { margin: 0; font-family: var(--f-display); font-size: var(--step-2); text-transform: uppercase; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.result-grid h5 { margin: 0 0 8px; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.result-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.result-grid li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; font-size: .96rem; line-height: 1.45; }
.result-grid li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--c, var(--accent)); }
.col-auth { --c: var(--phase-r); }
.col-docs { --c: var(--phase-y); }
.col-work { --c: var(--phase-b); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result-actions small { color: var(--ink-2); }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .finder-steps { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 18px; padding: 20px; }
  .finder-steps h3, .finder-note { grid-column: 1 / -1; }
  .finder-steps h3 { margin-bottom: 4px; }
  .result-grid { grid-template-columns: 1fr; }
  .finder-body { padding: 20px; }
}
@media (max-width: 480px) { .fstep span { display: none; } }

/* Services */
.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-group { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 18px; align-content: start; }
.svc-group-head { display: flex; align-items: center; gap: 14px; }
.svc-icon { width: 44px; height: 44px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.svc-icon svg { width: 24px; height: 24px; }
.svc-group h3 { font-size: var(--step-2); text-transform: uppercase; }
.svc-group > p { color: var(--ink-2); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.svc-list li { padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.svc-list li:first-child { border-top: 0; padding-top: 0; }
.svc-list .mono { color: var(--ink-2); white-space: nowrap; }
@media (max-width: 800px) { .svc-groups { grid-template-columns: 1fr; } .svc-group { padding: 22px; } }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.sector { padding: 24px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.sector:first-child { border-left: 0; }
.sector h3 { font-size: var(--step-1); text-transform: uppercase; }
.sector p { color: var(--ink-2); font-size: .96rem; }
.sector .mono { color: var(--accent); }
@media (max-width: 900px) {
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector:nth-child(3) { border-left: 0; }
  .sector:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .sectors { grid-template-columns: 1fr; }
  .sector { border-left: 0; }
  .sector:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* Process: a real sequence, so it is numbered */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.process li { position: relative; padding: 0 20px 0 0; display: grid; gap: 10px; align-content: start; counter-increment: s; }
.process li::before {
  content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2);
  display: block; padding-bottom: 14px; border-bottom: 3px solid var(--line); margin-bottom: 6px;
}
.process li:nth-child(1)::before { border-color: var(--phase-r); }
.process li:nth-child(2)::before { border-color: var(--phase-y); }
.process li:nth-child(3)::before { border-color: var(--phase-b); }
.process li:nth-child(4)::before { border-color: var(--ink-2); }
.process li:nth-child(5)::before { border-color: var(--ok); }
.process h3 { font-size: var(--step-1); text-transform: uppercase; }
.process p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process li { padding: 0 0 0 64px; }
  .process li::before { position: absolute; left: 0; top: 0; width: 44px; border-bottom: 0; border-left: 3px solid; padding: 2px 0 2px 10px; margin: 0; }
}

/* Authorities */
.auth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.auth { border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 12px; align-content: start; background: var(--bg); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.auth-code { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); letter-spacing: .03em; }
.auth-kind { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.auth > p { color: var(--ink-2); font-size: .96rem; }
.auth ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.auth li { padding-left: 16px; position: relative; }
.auth li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 2px; background: var(--accent); }
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } }

/* Comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; font-size: .98rem; }
.compare thead th { border-top: 0; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.compare thead th:last-child { color: var(--accent); }
.compare tbody th { font-weight: 600; width: 24%; }
.compare td:nth-child(2) { color: var(--ink-2); }
.compare td:last-child { font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--f-mono); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info h2 { font-size: var(--step-3); text-transform: uppercase; }
.contact-info > p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.contact-lines { display: grid; gap: 14px; }
.contact-line { display: grid; gap: 2px; }
.contact-line span { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.contact-line b { font-weight: 600; font-size: var(--step-1); user-select: all; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form-status { font-size: .95rem; color: var(--ok); }
.form-status[data-state="error"] { color: var(--phase-r); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } .form { padding: 20px; } }

/* Footer */
.site-footer { padding-block: 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--f-mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Shared additions: local SEO sections and guide pages ---------- */
.kn { font-family: "Noto Sans Kannada", var(--f-body); }
.topbar { background: var(--ink); color: var(--bg); font-size: .85rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 7px; }
.topbar b { font-weight: 600; }
.nav a[aria-current="page"] { color: var(--ink); }

/* Kannada summary block */
.kn-block { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.kn-block h2 { font-family: "Noto Sans Kannada", var(--f-display); font-size: var(--step-2); line-height: 1.3; text-transform: none; }
.kn-block p { color: var(--ink-2); line-height: 1.8; max-width: 75ch; }
.kn-badge { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.kn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kn-tags span { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .9rem; background: var(--bg); }
@media (max-width: 600px) { .kn-block { grid-template-columns: 1fr; padding: 22px; } }

/* District coverage */
.districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.district { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.district h3 { font-size: var(--step-1); text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.district h3 small { font-family: "Noto Sans Kannada", var(--f-body); font-weight: 500; font-size: .95rem; color: var(--ink-2); text-transform: none; }
.district p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.district .mono { color: var(--accent); }
.escoms { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.escoms div { padding: 16px 18px; border-left: 1px solid var(--line); background: var(--bg); display: grid; gap: 2px; }
.escoms div:first-child { border-left: 0; }
.escoms b { font-family: var(--f-display); font-size: var(--step-1); letter-spacing: .03em; }
.escoms span { font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.escoms .here { background: var(--accent-soft); }
.escoms .here b { color: var(--accent); }
@media (max-width: 900px) { .escoms { grid-template-columns: 1fr 1fr; } .escoms div { border-left: 0; border-top: 1px solid var(--line); } .escoms div:nth-child(-n+2) { border-top: 0; } .escoms div:nth-child(even) { border-left: 1px solid var(--line); } }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card .mono { color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.guide-card h3 { font-size: var(--step-1); text-transform: uppercase; line-height: 1.15; }
.guide-card p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.guide-card .more { color: var(--accent); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .guide-grid { grid-template-columns: 1fr 1fr; } }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.glossary div { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.glossary dt { font-family: var(--f-mono); font-weight: 500; font-size: .92rem; }
.glossary dd { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
@media (max-width: 800px) { .glossary { grid-template-columns: 1fr; } .glossary div { grid-template-columns: 1fr; gap: 4px; } }

/* Article (guide) pages */
.crumbs { font-size: .88rem; color: var(--ink-2); padding-block: 20px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.article-head { padding-block: 28px 36px; display: grid; gap: 16px; max-width: 860px; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); text-transform: uppercase; }
.article-head .lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 8px 80px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 8px; font-size: .92rem; }
.toc b { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.toc a { color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent); }
.prose { max-width: 70ch; display: grid; gap: 18px; min-width: 0; }
.prose h2 { font-size: var(--step-2); text-transform: uppercase; margin-top: 22px; scroll-margin-top: 84px; }
.prose h3 { font-size: var(--step-1); text-transform: uppercase; margin-top: 8px; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); border-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.table-wrap table { min-width: 560px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--phase-y); background: var(--surface); padding: 16px 18px; border-radius: 6px; display: grid; gap: 6px; }
.callout b { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.callout.info { border-left-color: var(--accent); }
.callout.warn { border-left-color: var(--phase-r); }
.cta-box { margin-top: 20px; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 26px; display: grid; gap: 12px; }
.cta-box h2 { margin: 0; color: var(--bg); }
.cta-box p { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.cta-box .btn-primary { justify-self: start; background: var(--phase-y); color: #121a24; }
.related { display: grid; gap: 10px; margin-top: 12px; }
.related a { font-weight: 600; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); } }

/* Floating call bar on phones */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .callbar .btn { flex: 1; padding: 12px; }
  body { padding-bottom: 72px; }
}
.auth-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth > a { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .auth-grid.two { grid-template-columns: 1fr; } }

/* ======================= v3: UI system ======================= */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ic { color: var(--phase-y); }
@media (max-width: 600px) { .topbar span:first-child { display: none; } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .nav-toggle { display: grid; } }
.mnav { border-top: 1px solid var(--line); background: var(--surface); }
.mnav nav { display: grid; padding-block: 8px 18px; }
.mnav a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mnav a:not(.btn) .ic { color: var(--ink-2); }
.mnav .btn { margin-top: 14px; }
.progress { height: 3px; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--phase-r), var(--phase-y), var(--phase-b)); }

.site-footer .wrap { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-contact { display: grid; gap: 8px; }
.foot-contact li { display: flex; gap: 8px; align-items: flex-start; }
.foot-contact .ic { margin-top: 3px; color: var(--accent); }
.helpline { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--phase-r); border-radius: 6px; background: var(--surface); color: var(--ink); }
.helpline .ic { color: var(--phase-r); margin-top: 3px; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.callbar .ic { width: 18px; height: 18px; }

/* Flowchart */
.flow { margin: 8px 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.flow figcaption { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 18px; }
.flow figcaption .ic { color: var(--accent); }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow-node { display: grid; grid-template-columns: 44px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.flow-node:last-child { padding-bottom: 0; }
.flow-node:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.flow-node:not(:last-child)::after { content: ""; position: absolute; left: 16px; bottom: 2px; border: 6px solid transparent; border-top-color: var(--line); border-bottom: 0; }
.flow-dot { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1.5px solid var(--accent); }
.flow-dot .ic { width: 22px; height: 22px; }
.flow-node.decision .flow-dot { transform: rotate(45deg) scale(.86); border-radius: 8px; background: color-mix(in srgb, var(--phase-y) 18%, var(--surface)); color: var(--ink); border-color: var(--phase-y); }
.flow-node.decision .flow-dot .ic { transform: rotate(-45deg); }
.flow-node.end .flow-dot { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.flow-body { display: grid; gap: 4px; padding-top: 2px; min-width: 0; }
.flow-body b { font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.flow-body p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.flow-num { font-family: var(--f-mono); font-size: .7rem; color: var(--ink-2); letter-spacing: .08em; }
.flow-branches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.br { font-size: .88rem; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); line-height: 1.35; }
.br b { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.br.yes b { color: var(--ok); }
.br.no b { color: var(--phase-r); }
.flow-note { margin-top: 16px; font-size: .9rem; color: var(--ink-2); }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.facts div { padding: 16px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.facts div:first-child { border-left: 0; }
.facts b { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--accent); }
.facts span { font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Checklist */
.checklist { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.checklist-head b { font-family: var(--f-mono); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.ck-count { font-family: var(--f-mono); font-size: .8rem; color: var(--ok); }
.checklist ul { list-style: none; margin: 0; padding: 6px 0; display: grid; gap: 0; }
.checklist li { padding: 0; }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 18px; cursor: pointer; line-height: 1.5; }
.checklist label:hover { background: var(--bg); }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ok); }
.checklist input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--line); }

/* Technical diagrams (inline SVG, themed) */
.diagram { margin: 8px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.d-fill { fill: var(--surface-2); stroke: var(--ink); stroke-width: 2; }
.d-screen { fill: color-mix(in srgb, var(--ok) 22%, var(--surface)); stroke: var(--ink); stroke-width: 1.5; }
.d-lcd { fill: var(--ink); font-family: var(--f-mono); font-size: 26px; font-weight: 500; }
.d-led { fill: var(--phase-r); }
.d-line { fill: none; stroke: var(--line); stroke-width: 1.5; }
.d-line2 { stroke: var(--ink-2); stroke-width: 2; }
.d-seal { fill: var(--accent-soft); stroke: var(--accent); }
.d-ptr { stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 3 3; fill: none; }
.d-label { fill: var(--ink); font-family: var(--f-body); font-weight: 600; font-size: 14px; }
.d-small { fill: var(--ink-2); font-family: var(--f-mono); font-size: 11px; }
.d-wire { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.d-earth { stroke: var(--ok); stroke-width: 2.5; fill: none; }
.d-pole { stroke: var(--ink); stroke-width: 5; fill: none; stroke-linecap: round; }
.d-hot { stroke: var(--phase-r); stroke-width: 3; fill: none; }
.d-zone { fill: color-mix(in srgb, var(--phase-r) 12%, transparent); stroke: var(--phase-r); stroke-dasharray: 6 5; }
.d-dim { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-chip { fill: var(--surface-2); stroke-width: 2; }
.d-chip.r { stroke: var(--phase-r); } .d-chip.y { stroke: var(--phase-y); } .d-chip.b { stroke: var(--phase-b); } .d-chip.g { stroke: var(--ok); }

/* Interactive tool (Gruha Jyothi) */
.tool { border: 1.5px solid var(--accent); border-radius: 14px; background: var(--surface); padding: 22px; display: grid; gap: 18px; }
.tool-head { display: flex; gap: 14px; align-items: center; }
.tool-ic { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--phase-y) 22%, var(--surface)); color: var(--ink); }
.tool-head b { display: block; font-family: var(--f-display); font-size: var(--step-1); text-transform: uppercase; }
.tool-head span { color: var(--ink-2); font-size: .92rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-grid .field label { font-size: .86rem; line-height: 1.35; min-height: 2.7em; }
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } .tool-grid .field label { min-height: 0; } }
.tool-out { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.tool-out .big { font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.tool-out .big.zero { color: var(--ok); } .tool-out .big.part { color: var(--phase-y); } .tool-out .big.full { color: var(--phase-r); }
.tool-out p { color: var(--ink-2); line-height: 1.5; }
.tool-out p b { color: var(--ink); }
.tool-bar { grid-column: 1 / -1; height: 12px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.tool-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ok); border-radius: 99px; }
.tool-bar s { position: absolute; top: 0; bottom: 0; background: var(--phase-r); text-decoration: none; }
.tool-bar u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.tool-note { font-size: .86rem; color: var(--ink-2); }
.tool-out .big.bill { color: var(--ink); }
.tool-rates summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.tool-break { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .92rem; }
.tool-break td { padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.tool-break td:last-child { text-align: right; color: var(--ink); font-family: var(--f-mono, monospace); }
@media (max-width: 520px) { .tool-out { grid-template-columns: 1fr; } }

/* Blog cards and listing */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .18s, border-color .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--accent) 60%, transparent); }
.post-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #061d4a; }
.post-card-body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { font-size: var(--step-1); text-transform: uppercase; line-height: 1.15; }
.post-card p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.post-card .kn { color: var(--ink-2); font-size: .9rem; }
.post-card.feature { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
.post-card.feature img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.post-card.feature .post-card-body { padding: 28px; align-content: center; }
.post-card.feature h3 { font-size: var(--step-3); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-card.feature { grid-template-columns: 1fr; } .post-card.feature img { min-height: 0; aspect-ratio: 1200 / 630; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: 600 .92rem/1 var(--f-body); padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Post page */
.post-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 18px 40px; }
.post-hero .article-head { padding: 0; }
.post-cover { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #061d4a; }
.post-cover img { display: block; width: 100%; aspect-ratio: 1200 / 630; }
@media (max-width: 900px) { .post-hero { grid-template-columns: 1fr; gap: 24px; } .post-cover { order: -1; } }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share > span { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .88rem/1 var(--f-body); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); }
.toc a.active { color: var(--accent); font-weight: 600; }
.toc a { border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px; }
.toc a.active { border-left-color: var(--accent); }
.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.author-box .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--phase-y); }
.author-box .av .ic { width: 26px; height: 26px; }
.author-box b { display: block; }
.author-box span { color: var(--ink-2); font-size: .92rem; }
.helpful { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 12px; }
.helpful button { font: 600 .9rem/1 var(--f-body); padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.helpful output { color: var(--ok); font-size: .92rem; }

/* Home: icon rows and popular reads */
.svc-icon .ic { width: 24px; height: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.why-item { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.why-item .ic { width: 30px; height: 30px; color: var(--accent); }
.why-item b { font-family: var(--f-display); font-size: var(--step-1); text-transform: uppercase; line-height: 1.1; }
.why-item p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.section-foot { margin-top: 26px; }
.flow-wide { max-width: 860px; }
@media (prefers-reduced-motion: reduce) { .post-card, .guide-card, .btn { transition: none; } .post-card:hover, .guide-card:hover { transform: none; } }
/* icon strokes: <use> content does not inherit the sprite's presentation attributes */
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post-card img, .post-cover img { height: auto; }
.post-card.feature img { height: 100%; }
@media (max-width: 900px) { .post-card.feature img { height: auto; } }
@media (max-width: 900px) { .post-card.feature h3 { font-size: var(--step-2); } .post-card.feature .post-card-body { padding: 20px; } }

/* Town pages */
.town-hero { display: grid; gap: 28px; padding-block: 18px 48px; }
.town-hero .article-head { padding: 0; max-width: 820px; }
.town-hero h1 em { font-style: normal; color: var(--accent); }
.town-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.town-cols .table-wrap table { min-width: 0; }
.town-cols .table-wrap th { width: 38%; font-weight: 600; }
@media (max-width: 900px) { .town-cols { grid-template-columns: 1fr; gap: 28px; } }
.town-ctx { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 900px) { .town-ctx { grid-template-columns: 1fr; } }
.town-others { margin-top: 36px; display: grid; gap: 12px; }
.town-others b { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.town-others div { display: flex; flex-wrap: wrap; gap: 8px; }
.town-others .chip { text-decoration: none; padding: 7px 12px; }
.town-card { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.town-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.town-card .more { color: var(--accent); font-weight: 600; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.town-links { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--ink-2); margin-bottom: 20px; }
.town-links .ic { color: var(--accent); }

/* Sources list at the end of blog posts */
.prose ul.sources { font-size: .9rem; color: var(--ink-2); }
.prose ul.sources a { overflow-wrap: anywhere; }

/* ======================= v4: Basavalalith brand layer ======================= */
::selection { background: color-mix(in srgb, var(--orange) 28%, transparent); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
body { font-feature-settings: "cv11", "ss01"; }

/* Type: geometric display face to echo the wide logo wordmark; sentence case reads friendlier than all-caps */
h1, h2, h3, h4, legend, .why-item b, .tool-head b, .auth-code, .escoms b, .kn-badge, .facts b, .tool-out .big {
  font-family: var(--f-display); letter-spacing: -.025em;
}
.hero h1, .section-head h2, .finder-steps h3, .finder-body legend, .result-head h4, .svc-group h3, .sector h3,
.process h3, .contact-info h2, .district h3, .guide-card h3, .article-head h1, .prose h2, .prose h3,
.post-card h3, .why-item b, .tool-head b { text-transform: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { font-size: 1.12rem; }
.svc-group h3, .finder-steps h3, .result-head h4 { font-size: 1.35rem; }
.sector h3, .process h3, .district h3, .guide-card h3, .post-card h3, .why-item b { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.015em; }
.prose h2 { font-size: 1.55rem; }
.prose h3 { font-size: 1.15rem; }
.article-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.post-card.feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* Brand stripe (replaces R-Y-B): blue, orange, amber from the logo */
.ryb { gap: 4px; }
.ryb i { width: 16px; height: 4px; border-radius: 99px; }
.ryb i:nth-child(1) { background: var(--accent); }
.ryb i:nth-child(2) { background: var(--orange); }
.ryb i:nth-child(3) { background: var(--amber); }
.eyebrow { color: var(--accent); font-weight: 500; }

/* Buttons: orange = do something; ghost = secondary */
.btn { border-radius: var(--radius); font-weight: 600; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s; }
.btn-primary { background: var(--grad-energy); color: #fff; box-shadow: 0 8px 22px -10px rgba(232, 89, 12, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(232, 89, 12, .8); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Top bar: brand navy with the bolt gradient as a hairline */
.topbar { background: var(--navy); color: #cfdcf2; font-size: .83rem; position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent-2), var(--orange) 55%, var(--amber)); }
.topbar .wrap { padding-block: 8px 10px; }
.topbar .ic { color: var(--amber); }
.topbar a:hover { color: #fff; }

/* Header */
.site-header { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--shadow-sm); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { height: 72px; }
.nav { gap: 6px; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--orange); }
.header-cta { padding: 11px 18px; }
.progress i { background: linear-gradient(90deg, var(--accent-2), var(--orange), var(--amber)); }

/* Hero: full-bleed brand gradient with a circuit grid and energy glow */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-brand); color: #fff; padding-block: 72px 120px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto -10% -45% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .30), transparent 62%); pointer-events: none; }
.hero .eyebrow { color: #ffd08a; }
.hero h1 { color: #fff; font-size: var(--step-4); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { color: #c8d6ef; font-size: 1.15rem; max-width: 46ch; line-height: 1.65; }
.hero .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.spec-strip { border-top-color: rgba(255,255,255,.16); gap: 8px 40px; padding-top: 18px; }
.spec-strip b { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; }
.spec-strip span { color: #9fb6dc; }
.hero .sld-card { border: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.08); padding: 20px 20px 12px; }
.sld .flow { stroke: var(--orange); }
@media (max-width: 900px) { .hero { padding-block: 44px 96px; } }

/* Trust bar: overlaps the hero edge */
.trust { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 56px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.trust-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 20px 22px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.trust-item:nth-child(2n) .ic { background: color-mix(in srgb, var(--orange) 14%, var(--surface)); color: var(--orange); }
.trust-item b { display: block; font-size: .98rem; line-height: 1.3; }
.trust-item span { overflow-wrap: anywhere; }
.trust-item .mono { font-size: .8rem; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } .trust-item { border-left: 0; } .trust-item:nth-child(n+2) { border-top: 1px solid var(--line); } }

/* Sections and cards: softer radius, quiet depth, lift on hover */
.section { padding-block: 88px; }
@media (max-width: 600px) { .section { padding-block: 60px; } }
.section-alt { background: var(--surface); border-block-color: var(--line); }
.svc-group, .auth, .guide-card, .why-item, .district, .post-card, .finder, .form, .kn-block, .facts, .flow, .checklist,
.tool, .sectors, .compare-wrap, .escoms, .diagram, .table-wrap, .author-box, .callout { border-radius: var(--radius-lg); }
.svc-group, .why-item, .district, .finder, .form, .kn-block, .sectors, .compare-wrap, .post-card, .guide-card, .auth { box-shadow: var(--shadow-sm); }
.section-alt .auth, .section-alt .guide-card { background: var(--bg); box-shadow: none; }
.guide-card:hover, .post-card:hover, .town-card:hover, .why-item:hover, .svc-group:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.why-item, .svc-group { transition: box-shadow .2s, border-color .2s; }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-brand); color: #fff; box-shadow: 0 10px 20px -10px rgba(11, 79, 179, .7); }
.svc-icon .ic { width: 26px; height: 26px; }
.why-item .ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.why-item:nth-child(even) .ic { background: color-mix(in srgb, var(--orange) 14%, var(--surface)); color: var(--orange); }
.auth li::before { background: var(--orange); height: 3px; border-radius: 2px; }
.process li:nth-child(1)::before { border-color: var(--navy-2); }
.process li:nth-child(2)::before { border-color: var(--accent); }
.process li:nth-child(3)::before { border-color: var(--accent-2); }
.process li:nth-child(4)::before { border-color: var(--orange); }
.process li:nth-child(5)::before { border-color: var(--amber); }
.process li::before { color: var(--accent); font-weight: 500; }
.fstep[aria-current="step"] b { background: var(--grad-energy); border-color: transparent; color: #fff; }
.tile label { border-radius: 12px; }
.tile input:checked + label { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.col-auth { --c: var(--navy-2); } .col-docs { --c: var(--orange); } .col-work { --c: var(--accent-2); }
.kn-badge { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 3rem; }
.chip { background: var(--accent-soft); color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.field input, .field select, .field textarea { border-radius: var(--radius); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.form { padding: 32px; box-shadow: var(--shadow-md); border-top: 4px solid var(--orange); }
.form .btn-primary { width: 100%; padding-block: 16px; font-size: 1.02rem; }
.contact-line b a { color: var(--accent); text-decoration: none; }
.contact-line b a:hover { text-decoration: underline; }
.faq summary::after { color: var(--orange); }
.compare thead th:last-child { color: var(--orange); }
.author-box .av { background: var(--grad-brand); color: var(--amber); }
.tool { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }

/* Article call-to-action box */
.cta-box { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,26,.35), transparent 65%); }
.cta-box h2 { color: #fff; }
.cta-box p { color: #c8d6ef; }
.cta-box a:not(.btn) { color: #ffd08a; }
.cta-box .btn-primary { background: var(--grad-energy); color: #fff; position: relative; z-index: 1; }

/* Footer: deep navy, light logo regardless of theme */
.site-footer { background: #041533; color: #a9bbd8; border-top: 0; padding-block: 64px 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent-2), var(--orange) 55%, var(--amber)); }
.site-footer h4 { color: #fff; }
.site-footer a { color: #a9bbd8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-logo.on-light { display: none !important; }
.site-footer .brand-logo.on-dark { display: block !important; }
.foot-contact .ic { color: var(--amber); }
.site-footer .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.site-footer .btn-ghost:hover { border-color: #fff; color: #fff; }
.helpline { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); border-left-color: var(--orange); color: #dbe5f5; }
.helpline .ic { color: var(--orange); }
.footer-bottom { border-top-color: rgba(255,255,255,.12); color: #8196b8; }
.callbar { box-shadow: 0 -8px 24px -12px rgba(6, 29, 74, .25); }

/* Inner-page heads get a light brand wash so they don't start on flat grey */
.crumbs { padding-top: 24px; }
.crumbs a { color: var(--accent); text-decoration: none; }
main { background: linear-gradient(180deg, var(--surface-2) 0, var(--bg) 420px) no-repeat; }
.article-head h1, .town-hero h1 { letter-spacing: -.03em; }
/* v4 refinements */
.hero h1 { font-weight: 700; letter-spacing: -.022em; line-height: 1.08; }
.trust-item div > span { display: block; font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.trust-item span { display: inline; }
.site-header .brand-logo img { height: 56px; }
.site-header .wrap { height: 78px; }
@media (max-width: 600px) { .topbar { display: none; } .site-header .wrap { height: 68px; } .site-header .brand-logo img { height: 44px; } }

/* Logo on dark surfaces: full-colour logo on a white plate (the navy emblem has no contrast on navy) */
.site-footer .brand { justify-self: start; background: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.site-footer .brand-logo.on-light { display: block !important; }
.site-footer .brand-logo.on-dark { display: none !important; }
.site-footer .brand-logo img { height: 52px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .brand { background: #fff; padding: 6px 12px; border-radius: 12px; }
  :root:not([data-theme="light"]) .site-header .brand-logo.on-light { display: block; }
  :root:not([data-theme="light"]) .site-header .brand-logo.on-dark { display: none; }
  :root:not([data-theme="light"]) .site-header .brand-logo img { height: 46px; }
}
:root[data-theme="dark"] .site-header .brand { background: #fff; padding: 6px 12px; border-radius: 12px; }
:root[data-theme="dark"] .site-header .brand-logo.on-light { display: block; }
:root[data-theme="dark"] .site-header .brand-logo.on-dark { display: none; }
:root[data-theme="dark"] .site-header .brand-logo img { height: 46px; }
