/* mahaan.link. Family of the VKG sites (CCS portal tokens), with link colours per rule 49
   and phone sizes per rule 45 (20px text, 56px targets). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;600&family=Noto+Sans+Telugu:wght@400;600&family=Noto+Sans+Kannada:wght@400;600&display=swap');

:root {
  --ink: #0B1220; --ink-2: #3A4456; --muted: #5A6273;
  --paper: #FFFFFF; --mist: #F4F6F9; --line: #DCE1E8;
  --navy: #0A2450; --gold: #B07A0C; --green: #0F7B3A; --red: #A3261E;
  --btn: #0A2450; --btn-ink: #FFFFFF;
  --link: #1d5a9e; --link-visited: #6a3d8f;
  --shadow: 0 10px 30px rgba(10, 36, 80, .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E9EDF3; --ink-2: #C4CBD6; --muted: #B4BCC8;
    --paper: #0E131B; --mist: #151C27; --line: #2A3342;
    --navy: #0A1A38; --gold: #E7B24A; --green: #5CC48A; --red: #F08B83;
    --btn: #9ccbff; --btn-ink: #0B1220; --link: #9ccbff; --link-visited: #c9b3f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --ink: #E9EDF3; --ink-2: #C4CBD6; --muted: #B4BCC8;
  --paper: #0E131B; --mist: #151C27; --line: #2A3342;
  --navy: #0A1A38; --gold: #E7B24A; --green: #5CC48A; --red: #F08B83;
  --btn: #9ccbff; --btn-ink: #0B1220; --link: #9ccbff; --link-visited: #c9b3f0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Inter", "Noto Sans Devanagari", "Noto Sans Telugu", "Noto Sans Kannada", system-ui, sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
a:visited { color: var(--link-visited); }
h1, h2 { font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 1.4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; color: var(--gold); margin: 0 0 12px; }
.meta, small { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[lang="sa"] { font-family: "Noto Sans Devanagari", sans-serif; }
.tr { color: var(--muted); font-size: .92em; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink) !important; display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 1.35rem; font-weight: 600; }
.brand b span { color: var(--gold); }
.brand small { font-size: .78rem; }
nav { display: flex; align-items: center; gap: 18px; }
nav > a { text-decoration: none; color: var(--ink) !important; white-space: nowrap; }
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; }
.acct summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; object-fit: cover; }
.acct-menu { position: absolute; right: 0; top: 46px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; min-width: 250px; box-shadow: var(--shadow); }
.acct-menu p { margin: 0 0 10px; }
.acct-menu .role { color: var(--gold); font-size: .85rem; }
.acct-menu button { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; font: inherit; }

/* buttons, forms */
.btn { display: inline-block; background: var(--btn); color: var(--btn-ink) !important; border: 0; border-radius: 999px; padding: 11px 24px; font-family: inherit; font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.big { font-size: 1.1rem; padding: 14px 30px; }
.btn.small { padding: 8px 16px; font-size: .92rem; min-height: 38px; }
.btn.ghost { background: transparent; color: var(--link) !important; border: 1px solid var(--line); }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 4px; }
label { display: block; margin-bottom: 14px; font-weight: 500; }
label small { font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 6px; margin: 0 0 20px; }
legend { font-weight: 600; padding: 0 6px; }
.panel { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.form { max-width: 760px; }
.status { padding: 12px 16px; border-radius: 10px; background: var(--mist); border-left: 4px solid var(--line); }
.status.ok { border-color: var(--green); } .status.bad { border-color: var(--red); } .status.warn { border-color: var(--gold); }
.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0 8px 8px 0; }
.inline input { width: 220px; margin: 0; }
.actions { margin: 10px 0 20px; }

/* home */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 48px 0 30px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60em; }
.search { display: grid; gap: 12px; max-width: 860px; margin-top: 18px; }
.search .big input { font-size: 1.15rem; padding: 14px 18px; border-radius: 999px; }
.search details summary { cursor: pointer; color: var(--link); }
.facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; margin-top: 12px; }
.search .btn { justify-self: start; }
.chipset { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chips > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .9rem; text-decoration: none; color: var(--ink) !important; background: var(--paper); margin: 2px 4px 2px 0; }
.chip.on { background: var(--navy); color: #fff !important; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.feat.empty p:last-child { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--paper); }
.card:hover { box-shadow: var(--shadow); }
.card .who { display: flex; flex-direction: column; min-width: 0; }
.card .who span { color: var(--ink-2); font-size: .92rem; }
.face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.face.big { width: 132px; height: 132px; font-size: 3rem; margin: 0 auto 14px; }
.pager { display: flex; gap: 18px; justify-content: center; margin: 22px 0; }
.results, .cta, .featured { margin-bottom: 30px; }

/* profile: one link page */
.profile { padding: 34px 24px; }
.pcard { max-width: 640px; margin: 0 auto; text-align: center; }
.pcard h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.headline { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 4px; }
.links { display: grid; gap: 12px; margin: 22px 0; }
.link { display: block; padding: 15px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink) !important; background: var(--mist); min-height: 56px; }
.link.facebook { border-left: 6px solid #1877F2; } .link.instagram { border-left: 6px solid #C13584; }
.link.youtube { border-left: 6px solid #FF0000; } .link.spotify { border-left: 6px solid #1DB954; }
.link.google { border-left: 6px solid #4285F4; } .link.website { border-left: 6px solid var(--gold); }
.bio { text-align: left; margin: 18px 0; white-space: normal; }
.tagline { text-align: left; } .tagline > span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 8px; }
.recog { margin-top: 24px; font-size: .95rem; }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page-head { padding: 36px 0 10px; }

footer.site { margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line); background: var(--mist); font-size: .92rem; }
footer.site p { margin: 0 0 8px; }
.credit { font-weight: 600; }

/* phones: rule 45 */
@media (max-width: 600px) {
  body { font-size: 20px; }
  .wrap { padding: 0 16px; }
  .profile { padding: 24px 16px; }
  nav { gap: 10px; }
  header nav { flex-wrap: wrap; row-gap: 6px; }
  .btn, .link, input, select, textarea { min-height: 56px; }
  .brand small { display: none; }
  .grid, .feat-grid { grid-template-columns: 1fr; }
  .inline { display: flex; flex-wrap: wrap; } .inline input { width: 100%; }
}

/* user guide (/help): numbered points, rule 9 */
.guide { max-width: 860px; }
.guide .toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 18px; background: var(--mist); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.guide .toc > a { white-space: normal; color: var(--link) !important; }
.guide h2 { scroll-margin-top: 80px; }
.guide .pt { display: grid; grid-template-columns: 3.4em 1fr; gap: 0 6px; margin: 0 0 10px; }
.guide .pt .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.guide .pt.d2 { margin-left: 3.4em; }
.guide .pt.d3 { margin-left: 6.8em; }
@media (max-width: 600px) { .guide .toc { flex-direction: column; } .guide .pt.d2 { margin-left: 1.2em; } .guide .pt.d3 { margin-left: 2.4em; } .guide .pt { grid-template-columns: 3.2em 1fr; } }

/* photos */
.pslots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pslot { border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.pslot h3 { font-size: 1rem; font-weight: 600; margin: 0 0 10px; }
.pslot .face.big { margin: 0 auto 8px; }
.gal { max-width: 100%; max-height: 220px; border-radius: 10px; }
.pick { cursor: pointer; }
.cropper { max-width: 640px; margin: 0 auto 20px; }
.cropper canvas { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; border-radius: 10px; touch-action: none; cursor: grab; background: var(--mist); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; }

/* refer a friend or colleague */
.refer { text-align: left; margin-top: 28px; }
.refer h2 { margin-top: 0; font-size: 1.3rem; }
.refer-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.refer .meta { word-break: break-all; }

/* header icon */
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-icon { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

/* inspiration for public service: a slow scroll beneath the header */
/* Inspiration island (VKG 2026-11-19): elevated card, verse beside three pictures. */
.inspire { background: linear-gradient(180deg, var(--navy) 0 72px, var(--mist) 72px); padding: 24px 0 8px; }
.island { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center;
  background: #FFFBF2; color: #2A1A0E; border: 1px solid #EAD9B6; border-radius: 22px; padding: 28px;
  box-shadow: 0 18px 44px rgba(10, 36, 80, .18), 0 2px 6px rgba(10, 36, 80, .08); }
.island .eyebrow { color: #8A5A0A; margin: 0 0 6px; }
.island .q-sa { font-family: "Noto Sans Devanagari", serif; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; color: #630102; margin: 0; line-height: 1.35; }
.island .q-tr { font-style: italic; color: #6B4A2B; margin: 4px 0 12px; }
.island .q-en { margin: 0; line-height: 1.6; color: #2A1A0E; }
.island-art { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.island-art figure { margin: 0; background: #FFFFFF; border-radius: 14px; overflow: hidden; border: 1px solid #EAD9B6; box-shadow: 0 6px 16px rgba(42, 26, 14, .10); }
.island-art svg { display: block; width: 100%; height: auto; }
.island-art figcaption { padding: 8px 10px; font-size: .9rem; color: #4A3020; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .island { box-shadow: 0 18px 44px rgba(0, 0, 0, .55); } }
@media (max-width: 760px) {
  .island { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .island-art { grid-template-columns: 1fr; }
  .island-art figure { display: grid; grid-template-columns: 120px 1fr; align-items: center; }
  .island-art figcaption { text-align: left; font-size: 18px; }
}
@media (max-width: 600px) { .brand-icon { width: 38px; height: 38px; } .island .q-en { font-size: 20px; } }

/* /strategy: the vision document (VKG 2026-11-20) */
.vision h3 { margin-top: 1.8em; } .vision h4 { margin-top: 1.2em; color: var(--ink-2); }
.vision blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--mist); border-radius: 0 10px 10px 0; font-size: 1.1em; }
.vision code { font-size: .9em; background: var(--mist); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.vision li { margin: .3em 0; } .vision hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.brand small.motto-line { color: var(--gold); font-weight: 500; }

/* Places and offices (Release 1, VKG 2026-11-20) */
.crumbs { display: block; margin: 12px 0 0; color: var(--muted); line-height: 1.6; } .crumbs > a { white-space: normal; display: inline; }
.pi-note { font-size: .95rem; }
.offices { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.office { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.office-title { margin: 0 0 6px; font-weight: 600; }
.office-holder { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.office-holder .holder { font-size: 1.15rem; font-weight: 600; }
.office-holder .src { font-size: .88rem; color: var(--muted); }
.former { margin-top: 8px; font-size: .92rem; } .former ul { margin: 6px 0 0; padding-left: 18px; }
.muted { color: var(--muted); }
.place-tree, .place-tree ul { list-style: none; padding-left: 18px; } .place-tree { padding-left: 0; } .place-tree li { margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

/* Location strip and profile labels (Release 1, VKG 2026-11-20) */
.where { padding: 8px 0 20px; }
.where h2 { font-size: 1.25rem; margin: 0 0 12px; }
.where-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.where-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.where-pick label { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.where-msg { margin-top: 10px; }
.labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lbl { font-size: .78rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--mist); white-space: nowrap; }
.lbl.reviewed { border-color: var(--green); color: var(--green); }
.lbl.verified { border-color: var(--link); color: var(--link); }
.lbl-why { margin: 8px 0; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 600px) { .lbl { font-size: 15px; } }

/* Emergency numbers and office phones (VKG 2026-11-22) */
.sos { margin-top: 14px; }
.sos h2 { font-size: 1.15rem; margin: 0 0 8px; color: var(--red); }
.sos ul { list-style: none; margin: 0; padding: 12px 16px; border: 2px solid var(--red); border-radius: 14px; display: grid; gap: 8px; }
.sos li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.sos-num .tel { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.office-phone { margin: 0 0 6px; } .office-phone .tel { font-weight: 600; }
