/* jodibridge.in's static pages (home, landing pages, blog, help): the app's Kumkum and gold colours,
   ivory by day and deep maroon at night (following the device), at least 4.5:1 for text. */
:root {
  --bg: #fff8f1;
  --fg: #2b1517;
  --muted: #6e4e47;
  --card: #ffffff;
  --soft: #f8e9df;
  --border: #ecd7cb;
  --line: #8e7068;
  --brand: #b3122e;
  --on-brand: #ffffff;
  --grad: linear-gradient(135deg, #c8102e, #7e0e2b);
  --hero: linear-gradient(160deg, #fce3d8, #f9ebdd);
  --gold: #8a5600;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #170c0d;
    --fg: #faefe8;
    --muted: #cdb3aa;
    --card: #221315;
    --soft: #301b1e;
    --border: #46292c;
    --line: #98766f;
    --brand: #ff6b5e;
    --on-brand: #1a0b0c;
    --grad: linear-gradient(135deg, #ff7a5c, #f0507a);
    --hero: linear-gradient(160deg, #3a1a1f, #241315);
    --gold: #edb95a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--fg); background: var(--bg); font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; overflow-wrap: anywhere; }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--card); color: var(--fg); padding: 0.6rem 1rem; z-index: 2; }
.skip:focus { top: 1rem; }
.skip { min-height: 48px; display: inline-flex; align-items: center; }
.bar { max-width: 64rem; margin: auto; padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.top { border-bottom: 1px solid var(--border); background: var(--card); }
.top .bar { justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.2rem; color: var(--fg); text-decoration: none; min-height: 48px; }
.top ul, .foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.top nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; color: var(--fg); }
main { display: block; max-width: 48rem; margin: auto; padding: 1.5rem 1rem 3rem; }
main.home { max-width: 64rem; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0.5rem 0 1rem; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.small { color: var(--muted); font-size: 0.95rem; }
.hero { background: var(--hero); border: 1px solid var(--border); border-radius: 1.25rem; padding: clamp(1.25rem, 5vw, 3rem); margin-top: 1rem; }
.hero h1 { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.6rem 1.4rem; border-radius: 999px; background: var(--grad); color: var(--on-brand); font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-small { padding: 0.4rem 1rem; }
.btn:hover { filter: brightness(1.08); }
.chips { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips a { display: inline-flex; align-items: center; min-height: 48px; padding: 0.4rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); text-decoration: none; font-weight: 600; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.cards, .steps { padding: 0; margin: 1rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cards { list-style: none; }
.cards li, .steps li { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.25rem; box-shadow: 0 1px 2px rgb(0 0 0 / 6%); }
.steps { list-style-position: inside; }
.steps li::marker { color: var(--gold); font-weight: 800; font-size: 1.2rem; }
.cards h3, .steps h3 { margin-top: 0.25rem; display: inline; }
.cards p, .steps p { margin: 0.4rem 0 0; color: var(--muted); }
.articles { list-style: none; margin: 0; padding: 0; }
.articles li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.articles h2, .articles h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.articles p { margin: 0; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.95rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 0.4rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 48px; }
blockquote { margin: 1.5rem 0; padding: 0.75rem 1.25rem; border-left: 4px solid var(--gold); background: var(--soft); border-radius: 0 0.75rem 0.75rem 0; }
blockquote p { margin: 0; }
.callout { background: var(--soft); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.25rem; margin: 2rem 0; }
.callout h2 { margin-top: 0.25rem; }
details { border: 1px solid var(--border); border-radius: 0.75rem; background: var(--card); margin: 0.75rem 0; }
summary { cursor: pointer; padding: 0.75rem 1rem; min-height: 48px; font-weight: 700; }
summary:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; border-radius: 0.75rem; }
details > :not(summary) { padding: 0 1rem; }
.names { columns: 14rem; padding-left: 1.25rem; }
.foot { border-top: 1px solid var(--border); background: var(--card); margin-top: 2rem; }
.foot .bar { display: block; padding-block: 1.5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; }
.foot p { margin: 0.5rem 0; color: var(--muted); }
#faq-search { display: block; width: 100%; min-height: 48px; margin: 0.35rem 0 0; padding: 0.7rem; font: inherit; color: inherit; border: 1px solid var(--line); background: var(--card); border-radius: 0.5rem; }
#faq-search:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .btn, .chips a { transition: filter 0.15s, border-color 0.15s, color 0.15s; } }
/* The biodata maker's form (2026-11-26). */
fieldset { border: 1px solid var(--border); border-radius: 1rem; padding: 0.5rem 1rem 1rem; margin: 1.5rem 0; background: var(--card); }
legend { font-weight: 800; font-size: 1.15rem; padding: 0 0.4rem; }
.fields { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.field { margin-top: 0.9rem; }
.field label { display: block; font-weight: 600; }
.hint { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; margin-top: 0.35rem; padding: 0.6rem 0.7rem; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 0.5rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, button:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--brand); border-width: 2px; }
.errors { color: var(--brand); font-weight: 700; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
#bd-photo-preview { display: block; max-width: 160px; margin-top: 0.75rem; border-radius: 0.5rem; }
#bd-photo-preview[hidden] { display: none; }
/* JodiDesk's home page (2026-11-26): the hero beside an example chat, and feature cards with icons. */
.hero-split { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); align-items: center; }
.phone { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 1rem; box-shadow: 0 12px 32px rgb(0 0 0 / 16%); }
.phone figcaption { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.phone ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.phone li { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: 1rem; border: 1px solid var(--border); line-height: 1.45; }
.phone .from-you { align-self: flex-end; background: var(--soft); border-bottom-right-radius: 0.25rem; }
.phone .from-desk { align-self: flex-start; background: var(--bg); border-left: 4px solid var(--gold); border-bottom-left-radius: 0.25rem; }
.who { display: block; font-size: 0.85rem; font-weight: 800; color: var(--gold); }
.features .icon { display: block; color: var(--brand); margin-bottom: 0.4rem; }
section[id] { scroll-margin-top: 1rem; }
/* Links that stand on their own are 48 px tall (2026-11-26). */
.articles h2 a, .articles h3 a, main.home > section > p > a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; }
.articles h2, .articles h3 { margin: 0; }
.articles h2 { font-size: 1.15rem; }
@media (prefers-reduced-motion: no-preference) {
  .phone li { animation: phone-in 0.45s ease-out both; }
  .phone li:nth-child(2) { animation-delay: 0.25s; }
  .phone li:nth-child(3) { animation-delay: 0.5s; }
  .phone li:nth-child(4) { animation-delay: 0.75s; }
}
@keyframes phone-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-split h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); }
@media (min-width: 56rem) { .hero-split { grid-template-columns: 1.2fr 0.8fr; } }
.hero > h2:first-child { margin-top: 0; }
/* JodiBridge's tagline above the home page's heading, and communities by region (2026-11-27). */
.tagline { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.regions { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.regions strong { display: block; }
/* The free horoscope tools' answers (2026-11-27). */
.result { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 0 1.25rem 1.25rem; margin: 1.5rem 0; }
.result[hidden], .field[hidden] { display: none; }
.result:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.score { font-size: 1.3rem; font-weight: 800; }
.result table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.result caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
.result th, .result td { border-bottom: 1px solid var(--border); padding: 0.6rem 0.35rem; text-align: left; vertical-align: top; }
.result td { text-align: right; width: 4.5rem; }
.result thead th:not(:first-child) { text-align: right; }
.result tbody th { font-weight: 600; }
button.btn:disabled { opacity: 0.6; cursor: default; }
/* The horoscope tools: charts, wider tables and the hidden status line (2026-11-27). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.result table:not(.points) td { text-align: left; width: auto; }
.result table:not(.points) thead th:not(:first-child) { text-align: left; }
.result th, .result td { overflow-wrap: break-word; }
.result table:not(.points) { font-size: 0.92rem; }
.result table:not(.points) th, .result table:not(.points) td { padding-inline: 0.2rem; }
table.plain { width: 100%; border-collapse: collapse; margin: 1rem 0; }
table.plain caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
table.plain th, table.plain td { border-bottom: 1px solid var(--border); padding: 0.6rem 0.35rem; text-align: left; vertical-align: top; }
.charts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); max-width: 40rem; }
.kundli-south { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); aspect-ratio: 1; border: 1px solid var(--line); }
.kundli-south .box { border: 1px solid var(--line); padding: 0.15rem 0.2rem; overflow: hidden; line-height: 1.25; font-size: 0.9rem; }
.kundli-south small { display: block; color: var(--muted); font-size: 0.65rem; }
.kundli-south .middle { grid-area: 2 / 2 / 4 / 4; display: grid; place-items: center; font-weight: 800; }
.kundli-north { display: block; width: 100%; height: auto; }
.kundli-north path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.kundli-north text { fill: var(--fg); text-anchor: middle; font-size: 13px; }
.kundli-north .sign { fill: var(--muted); font-size: 11px; }
.kundli-north .planet { font-weight: 700; }
.chart-name { margin: 0 0 0.35rem; font-weight: 800; text-align: center; }
/* The best match finder: dates and months that open when pressed (2026-11-27). */
.pick { font: inherit; font-weight: 600; min-height: 48px; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--bg); color: var(--fg); text-align: left; cursor: pointer; }
.pick:hover { border-color: var(--brand); }
.picks { list-style: none; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.picks .pick { width: 100%; }
.result table.finder .pick { white-space: nowrap; }
table.plain th, table.plain td { overflow-wrap: break-word; }
@media (max-width: 30rem) { table.plain { font-size: 0.92rem; } }
/* On a phone, long times wrap so four columns fit. */
@media (max-width: 30rem) { .result table.finder .pick { white-space: normal; } }
.result table.finder th, .result table.finder td { vertical-align: middle; }

/* Share this page, under guides, community pages and tools. */
.share { margin-top: 2rem; }
.share h2 { margin-bottom: 0; }

/* Listen to a page, the invitation picture and the help finder's schemes (2026-11-28). */
.listen { margin: 0.75rem 0; }
button.btn.btn-outline { color: var(--fg); }
.invite { display: block; width: 100%; max-width: 26rem; height: auto; border-radius: 0.75rem; }
.scheme { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.scheme a { display: inline-flex; align-items: center; min-height: 48px; }
.scheme p { margin: 0.5rem 0; }
fieldset.ticks { padding-bottom: 0.5rem; }
.tick { display: flex; align-items: center; gap: 0.75rem; min-height: 48px; cursor: pointer; }
.tick input { flex: none; width: 1.5rem; height: 1.5rem; accent-color: var(--brand); }
.tick input:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.star { color: var(--brand); font-weight: 800; }
h2[id^="schemes-"] { scroll-margin-top: 1rem; }
.result .field textarea { width: 100%; }
.result .field + .btn { margin-top: 0.75rem; }

/* JodiDesk's screens: pictures with their description, side by side where there is room (2026-11-29). */
.shots { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; max-width: 18rem; height: auto; margin: 0 auto; border: 1px solid var(--border); border-radius: 1.25rem; }
.shots figcaption { margin-top: 0.5rem; color: var(--muted); }

/* The biodata maker's date and time lists and its "downloading" box (2026-11-28). */
fieldset.parts { grid-column: 1 / -1; margin: 0.9rem 0 0; background: transparent; }
fieldset.parts .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
.saying { font-weight: 700; }
.done { border: 2px solid var(--gold); background: var(--soft); border-radius: 1rem; padding: 0.25rem 1.25rem; font-weight: 700; }
.done[hidden] { display: none; }
.done:focus-visible, .done:focus { outline: 3px solid var(--fg); outline-offset: 2px; }
/* The few questions at the top of a matrimony page (2026-12-04). */
.starter { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.25rem; margin: 1.25rem 0 2rem; }
.starter h2 { margin-top: 0.25rem; }
.starter .actions { margin-bottom: 0.25rem; }
