/* ---------- tokens ---------- */
:root {
  --bg: #fbf6ee; --surface: #ffffff; --surface-2: #f6efe4; --ink: #24182f; --muted: #6a5f74; --line: #e8dccb;
  --brand: #2b1840; --accent: #c45c14; --accent-ink: #ffffff;
  --good: #1f7a4d; --good-bg: #e3f3ea; --bad: #b3261e; --bad-bg: #fbe6e3;
  --neutral: #84661a; --neutral-bg: #fbf1d6; --best: #0e6b62; --best-bg: #d9f2ee;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(36, 24, 47, .05), 0 6px 18px rgba(36, 24, 47, .05);
  /* --script is set per page to the font of the page's language (Gujarati, Tamil, Thai ...). */
  --script: 'Noto Sans Devanagari';
  --serif: 'Fraunces', var(--script), Georgia, serif; --sans: 'Inter', var(--script), system-ui, -apple-system, sans-serif;
  /* type scale */
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.3rem; --fs-xl: 1.7rem;
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --page: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15101b; --surface: #1f1828; --surface-2: #261d31; --ink: #f2ebf7; --muted: #ab9fb6; --line: #352a42;
    --brand: #f0b27a; --accent: #f08a3e; --accent-ink: #1a1120;
    --good: #6fd3a0; --good-bg: #173327; --bad: #ff8a80; --bad-bg: #3a1c1c;
    --neutral: #e8c46a; --neutral-bg: #3a3018; --best: #6fe0d4; --best-bg: #143331;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.55 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 0; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s3); }
a { color: var(--accent); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: var(--fs-sm); margin: var(--s2) 0 var(--s3); }
.lede { color: var(--muted); font-size: var(--fs-base); margin: var(--s2) 0 0; max-width: 62ch; }
select, input, button { font: inherit; color: inherit; }
select, input:not([type=checkbox]):not([type=file]) {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; min-height: 44px; font-size: var(--fs-base);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header + top navigation ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { max-width: var(--page); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4) var(--s2); }
.brand { font-family: var(--serif); font-size: var(--fs-lg); font-weight: 700; color: var(--brand); display: flex; gap: var(--s2); align-items: center; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .95rem; }
.top-actions { display: flex; gap: var(--s2); align-items: center; min-width: 0; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: var(--fs-sm); font-weight: 500; cursor: pointer; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.chip-btn.premium { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

.tabs { max-width: var(--page); margin: 0 auto; display: flex; gap: var(--s1); padding: 0 var(--s3); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
/* On narrow screens, fade the right edge so it is clear more tabs scroll into view. */
@media (max-width: 640px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; } }
#addMemberBtn { width: 100%; margin: var(--s3) 0; }
.tabs button { flex: 0 0 auto; border: 0; background: none; padding: 10px 14px 12px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs .on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

.profile-bar { max-width: var(--page); margin: 0 auto; padding: var(--s2) var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.profile-bar select { margin-left: var(--s2); min-height: 36px; padding: 6px 10px; }
.banner { background: var(--neutral-bg); color: var(--neutral); padding: var(--s2) var(--s4); font-size: var(--fs-sm); text-align: center; }

/* ---------- page layout ---------- */
main { max-width: var(--page); margin: 0 auto; padding: var(--s4) var(--s4) var(--s6); }
.tab { display: none; }
.tab.active { display: block; }
.page-head { margin: var(--s2) 0 var(--s4); }
.block { margin: var(--s5) 0; }
.block > h2, .block > .row-head { margin-bottom: var(--s3); }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.row-head select, .row-head input { width: auto; }
.cols { display: grid; gap: 0 var(--s5); }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); margin: var(--s3) 0; box-shadow: var(--shadow); }
@media (min-width: 640px) { .card { padding: var(--s5); } }
.card > h2 { margin-bottom: var(--s3); }

/* ---------- buttons + forms ---------- */
.primary { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius-sm); padding: 11px 18px; min-height: 44px; font-weight: 600; cursor: pointer; }
.ghost { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.ghost.small { padding: 6px 12px; min-height: 34px; font-size: var(--fs-sm); }
.ghost.danger { color: var(--bad); border-color: var(--bad-bg); }
.linkish { background: none; border: 0; padding: var(--s1) 0; color: var(--accent); font-weight: 600; cursor: pointer; text-align: left; }
.form { display: grid; gap: var(--s3); }
.form label { display: grid; gap: var(--s1); font-size: var(--fs-sm); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 420px) { .form .two, #matchManual { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; gap: var(--s2); padding: var(--s3); margin: 0; }
legend { font-weight: 600; font-size: var(--fs-sm); padding: 0 var(--s1); }
.check { display: flex !important; gap: var(--s2); align-items: center; margin: var(--s3) 0; font-size: var(--fs-sm); }
.tag { font: 500 var(--fs-xs) var(--sans); background: var(--neutral-bg); color: var(--neutral); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.upload { width: 100%; margin-top: var(--s3); }
.upload.disabled { opacity: .45; pointer-events: none; }

/* ---------- today ---------- */
.now { display: grid; gap: var(--s2); }
.now .big { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.2; }
.now .sub { color: var(--muted); font-size: var(--fs-sm); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 var(--fs-xs) var(--sans); vertical-align: middle; text-transform: capitalize; }
.q-best { background: var(--best-bg); color: var(--best); }
.q-good { background: var(--good-bg); color: var(--good); }
.q-neutral, .q-mixed { background: var(--neutral-bg); color: var(--neutral); }
.q-bad { background: var(--bad-bg); color: var(--bad); }

.windows { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .windows { grid-template-columns: 1fr 1fr; } }
.window { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: var(--best-bg); color: var(--best); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); }
.window strong { font-size: var(--fs-md); font-variant-numeric: tabular-nums; white-space: nowrap; }
.window span { font-size: var(--fs-sm); text-align: right; }

.list { display: grid; gap: var(--s2); }
.item { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s3); align-items: baseline; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.item time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-sm); }
.item strong { display: block; font-weight: 600; }
.item small { color: var(--muted); display: block; font-size: var(--fs-sm); line-height: 1.45; }
.item.bad { border-left: 4px solid var(--bad); }
.item.good { border-left: 4px solid var(--good); }
.item.active { outline: 2px solid var(--accent); }
.compact .item { padding: var(--s2) var(--s3); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 16px; cursor: pointer; font-size: var(--fs-sm); }
.seg .on { background: var(--brand); color: var(--bg); }
.timeline { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .timeline { grid-template-columns: 1fr 1fr; } }
.slot { display: grid; grid-template-columns: 7.5rem 1fr auto; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--radius-sm); }
.slot time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-sm); }
.slot strong { display: block; }
.slot small { display: block; font-size: var(--fs-xs); opacity: .85; }
.slot.active { outline: 2px solid var(--accent); }

/* explanations */
.explain { margin-top: var(--s3); }
.explain summary, .fold summary { cursor: pointer; list-style: none; }
.explain summary { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); display: inline-flex; gap: var(--s1); align-items: center; }
.explain summary::before { content: 'ⓘ'; }
.explain summary::-webkit-details-marker, .fold summary::-webkit-details-marker { display: none; }
.explain-text, .explain > div { color: var(--ink); font-size: var(--fs-sm); line-height: 1.6; margin: var(--s2) 0 0; background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); }
.fold summary h2 { display: inline; }
.fold summary::after { content: '+'; float: right; font-size: var(--fs-lg); color: var(--muted); }
.fold[open] summary::after { content: '−'; }
.legend { display: grid; gap: var(--s1); margin-top: var(--s2); }
.legend div { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s2); align-items: center; }

/* ---------- panchang + kundli cells ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s3); }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); display: grid; gap: var(--s1); align-content: start; }
.cell > b { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.cell > .val { font-family: var(--serif); font-size: var(--fs-md); font-weight: 600; }
.cell > .sub { color: var(--muted); font-size: var(--fs-sm); }
.cell > .means { font-size: var(--fs-sm); line-height: 1.5; margin-top: var(--s1); }
.cell details { margin-top: var(--s1); }
.cell details summary { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.cell details p { font-size: var(--fs-sm); color: var(--muted); margin: var(--s1) 0 0; line-height: 1.55; }

.cal-legend { display: flex; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.cal-legend .day { padding: 2px 10px; cursor: default; font-size: var(--fs-xs); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s1); }
.day { border-radius: 8px; padding: var(--s2) 2px; text-align: center; font-size: var(--fs-xs); border: 1px solid var(--line); cursor: pointer; background: var(--surface); color: var(--ink); }
.day b { display: block; font-size: var(--fs-base); }
.day.excellent { background: var(--best-bg); color: var(--best); border-color: transparent; }
.day.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.day.avoid { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.dow { text-align: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding-bottom: var(--s1); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s2)); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: var(--s2); border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
tr.q-best td { background: var(--best-bg); }
/* Tables that become one card per row on phones. */
@media (max-width: 560px) {
  table.stack thead { display: none; }
  table.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  table.stack td { border: 0; padding: 0; }
  table.stack td.lead { grid-column: 1 / -1; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
}

/* ---------- palm + face ---------- */
.scan-card .guide { font-size: var(--fs-sm); }
.guide-top { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: center; }
@media (min-width: 480px) { .guide-top { grid-template-columns: 170px 1fr; } }
.diagram { width: 100%; max-width: 200px; height: auto; justify-self: center; }
.guide-list { display: grid; gap: var(--s2); margin: var(--s3) 0; padding: 0; list-style: none; }
.guide-list li { padding: var(--s2) var(--s3); background: var(--surface-2); border-radius: var(--radius-sm); line-height: 1.5; }
.guide-list li strong { display: block; font-size: var(--fs-sm); }
.tips { margin: var(--s2) 0 0; padding-left: 1.2em; color: var(--muted); }
.never { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s2); }
.preview { width: 100%; border-radius: var(--radius-sm); margin-top: var(--s3); }
.result-group { margin-top: var(--s4); }
.result-group h3 { font-size: var(--fs-base); margin-bottom: var(--s2); }
.result { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.result:first-of-type { border-top: 0; }
.result .what { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.result .fact { font-weight: 600; }
.result .meaning { font-size: var(--fs-sm); color: var(--ink); line-height: 1.5; }

/* ---------- reading, chat, match ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chip { font-size: var(--fs-sm); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.chip.ok { background: var(--good-bg); color: var(--good); border-color: transparent; }
.prose { white-space: pre-wrap; line-height: 1.7; font-size: var(--fs-base); max-width: 70ch; }
.chat { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.msg { padding: var(--s3) var(--s4); border-radius: var(--radius); max-width: 88%; white-space: pre-wrap; line-height: 1.55; }
.msg.me { background: var(--brand); color: var(--bg); justify-self: end; }
.msg.ai { background: var(--surface-2); }
.score { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1.1; }

/* ---------- plans, account, profiles ---------- */
.upsell { background: var(--neutral-bg); border-color: transparent; }
.plans { display: grid; gap: var(--s3); }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); background: var(--bg); }
.plan.popular { border: 2px solid var(--accent); }
.plan.current { opacity: .75; }
.plan .tag { position: absolute; top: var(--s3); right: var(--s3); }
.plan ul { margin: var(--s2) 0 var(--s3); padding-left: 1.1em; font-size: var(--fs-sm); }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.price small { font: 400 var(--fs-sm) var(--sans); color: var(--muted); }
.meter { display: flex; justify-content: space-between; padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.profile { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.profile:last-of-type { border-bottom: 0; }
.profile.sel .pname strong { color: var(--accent); }
.profile.locked { opacity: .55; }
.pname { background: none; border: 0; text-align: left; cursor: pointer; display: grid; padding: 0; }
.pname small { color: var(--muted); font-size: var(--fs-sm); }
.daily { border-left: 4px solid var(--accent); }
dialog { border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); width: min(92vw, 440px); padding: var(--s5); }
dialog::backdrop { background: rgba(20, 10, 30, .45); }
#gsiBtn { min-height: 44px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--brand); color: var(--bg); padding: 10px 18px; border-radius: 999px; z-index: 20; }
.foot { max-width: var(--page); margin: 0 auto; text-align: center; color: var(--muted); font-size: var(--fs-xs); padding: var(--s4) var(--s4) var(--s6); }
.foot a { color: var(--muted); }
.prose-page { max-width: 760px; }
.prose-page h1 { margin-bottom: var(--s3); }
.prose-page h2 { margin: var(--s5) 0 var(--s2); }
.prose-page li { margin: var(--s1) 0; }

/* ---------- small phones ---------- */
@media (max-width: 480px) {
  .bar { padding: var(--s2) var(--s3) var(--s1); }
  .brand { font-size: var(--fs-md); }
  .mark { width: 28px; height: 28px; }
  .chip-btn { padding: 6px 10px; font-size: var(--fs-xs); max-width: 96px; }
  #placeBtn { max-width: 84px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: var(--fs-md); }
  main { padding: var(--s3) var(--s3) var(--s5); }
  .item, .slot { grid-template-columns: 6.3rem 1fr; }
  .slot .pill { grid-column: 2; justify-self: start; }
}

/* sign-in */
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; }
.seg.wide button { padding: 9px 12px; }
.phone { display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); }
.or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s2); color: var(--muted); font-size: var(--fs-sm); }
.or::before, .or::after { content: ''; border-top: 1px solid var(--line); }
.form-error { padding: var(--s2) var(--s3); border-radius: var(--radius-sm); font-size: var(--fs-sm); }

/* horoscope */
.horo .prose { margin: var(--s2) 0 var(--s3); }
.scores { display: grid; gap: var(--s2); margin: var(--s3) 0; }
@media (min-width: 640px) { .scores { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
.score-row { display: grid; grid-template-columns: 4.5rem 1fr 2.5rem; align-items: center; gap: var(--s2); font-size: var(--fs-sm); }
.meter-bar { display: block; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.score-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- public SEO pages ---------- */
.tabs a { flex: 0 0 auto; padding: 10px 14px 12px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
a.chip-btn { text-decoration: none; display: inline-block; }
.crumbs { font-size: var(--fs-xs); color: var(--muted); margin: var(--s2) 0 0; }
.crumbs a { color: var(--muted); }
.article { max-width: 880px; }
.prose-body { max-width: 70ch; font-size: 1.04rem; line-height: 1.75; }
.prose-body h2 { margin: var(--s6) 0 var(--s3); }
.prose-body h3 { margin: var(--s5) 0 var(--s2); }
.prose-body p, .prose-body ul, .prose-body ol { margin: 0 0 var(--s4); }
.prose-body li { margin: var(--s1) 0; }
.prose-body .table-wrap { margin: var(--s3) 0 var(--s5); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); background: var(--best-bg); border-color: transparent; margin: var(--s5) 0; }
.cta .hint { margin: var(--s1) 0 0; }
.cta .primary { text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .cta { flex-direction: column; align-items: stretch; } }
.link-card { text-decoration: none; color: var(--ink); transition: border-color .15s; }
.link-card:hover { border-color: var(--accent); }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2) var(--s4); font-size: var(--fs-sm); }
.faq .fold summary h3 { display: inline; font-size: var(--fs-base); }
.faq .fold p { margin: var(--s3) 0 0; }
.faq .card { padding: var(--s4); }
.also { font-size: var(--fs-sm); color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); margin-top: var(--s6); background: var(--surface-2); }
.foot-cols { max-width: var(--page); margin: 0 auto; padding: var(--s5) var(--s4) 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-cols h3 { font-size: var(--fs-base); margin-bottom: var(--s2); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); font-size: var(--fs-sm); }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); }
th[scope=row] { text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); color: var(--muted); width: 40%; }

/* install */
.install { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); border-left: 4px solid var(--accent); }
.install .hint { margin: var(--s1) 0 0; }
.install-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s1); }
@media (max-width: 480px) { .install { flex-direction: column; align-items: stretch; } .install-actions { flex-direction: row; justify-content: space-between; } }
.steps { padding-left: 1.3em; display: grid; gap: var(--s2); }

/* ---------- languages ---------- */
/* Indic and Thai scripts need more room above and below the line. */
html[data-script] body { line-height: 1.75; }
html[data-script] h1, html[data-script] h2, html[data-script] h3 { letter-spacing: 0; line-height: 1.45; }
html[data-script] .tabs a, html[data-script] .tabs button { line-height: 1.5; }
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { border-color: var(--accent); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: var(--s2); list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px; min-width: 260px; }
.lang-menu li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.lang-menu li a:hover, .lang-menu li a:focus-visible { background: var(--surface-2); }
.lang-menu li a[aria-current="true"] { background: var(--surface-2); font-weight: 600; }
.lang-menu .globe { font-size: 1rem; line-height: 1; }
.lang-note { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: var(--s2) var(--s4); font-size: var(--fs-sm); text-align: center; }
.lang-note a { font-weight: 600; }
@media (max-width: 520px) { .lang-menu .lang-name { display: none; } .lang-menu > summary { padding: 6px 9px; }
  .lang-menu ul { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; } }

/* ---------- world city search ---------- */
.place-search { position: relative; margin-bottom: var(--s2); }
.place-search input { width: 100%; }
.place-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.place-results li { padding: 0; }
.place-results li.muted { padding: 10px; font-size: var(--fs-sm); }
.place-results button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.place-results button:hover, .place-results button:focus-visible { background: var(--surface-2); }
.place-results small { display: block; color: var(--muted); font-size: var(--fs-xs); }
