/* India Panchang Today — V4 locked mobile-first master.
   Approved blue background, single brand row, fixed typography baseline and local calculation logic are preserved. */

:root {
  /* Unified palette per V4 visual spec — only colors/weights/borders changed. */
  --ink: #172554;          /* main text — deep navy */
  --ink-soft: #334155;     /* normal body */
  --muted: #475569;        /* auxiliary text */
  --saffron: #F15A24;      /* orange accent */
  --marigold: #F4A261;
  --turmeric: #E9C46A;
  --cream: #FFFBF5;
  --ivory: #FFF8EC;
  --soft: #FBF3E2;
  --line: #CBD5E1;         /* soft blue-gray hairline */
  --line-soft: #F1F5F9;
  --night: #1f2235;
  --night-2: #2a2d4a;
  --bg-green: #0D4F3C;
  --card-white: #FFFFFF;
  --input-soft: #F8FAFC;   /* input light bg */
  --border-soft: #94A3B8;  /* normal border */
  --btn-orange: #F15A24;
  --action-end: #D84915;   /* gradient end (slightly deeper, not red) */
  --help-ink: #475569;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 17px;
  /* Copied from India Age Calculator: 168deg navy -> blue -> teal gradient */
  background: linear-gradient(168deg,
    #071D49 0%,
    #0A2A6B 26%,
    #0E4E9E 58%,
    #0E7E94 100%);
  background-attachment: fixed;
}

.shell {
  width: min(100% - 28px, 980px);
  margin: 0 auto;
}

/* ===== Header (copied from India Age Calculator) ===== */
.site-header {
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  border-bottom: none;
  box-shadow: none;
}
.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 16px;
}
/* Logo — three-segment rounded square, copied from India Age Calculator */
.logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 8px rgba(194, 95, 12, 0.45);
}
.logo-r {
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #FFC24B 0%, #F97316 100%);
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(140, 60, 5, 0.3);
}
.logo-w {
  height: 4px;
  background: #FFFFFF;
}
.logo-g {
  flex: 1 1 auto;
  background: linear-gradient(150deg, #2FB866 0%, #138808 100%);
}
.topbar-band {
  height: 15px;
  background: linear-gradient(to bottom,
    #FF9933 0%, #FF9933 33.33%,
    #FFFFFF 33.33%, #FFFFFF 66.67%,
    #138808 66.67%, #138808 100%);
}
.site-name {
  margin: 0;
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ===== White card containing the banner and seven timing entrances ===== */
.timing-nav-card {
  background: var(--card-white);
  border: 2px solid var(--action-end);
  border-radius: 18px;
  margin: 16px 0 20px;
  padding: 14px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.10);
}
.hint-line {
  margin: 0;
  min-height: 60px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--btn-orange) 0%, var(--action-end) 100%);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
}
.keyword-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 16px 0 0;
}
.keyword-line a {
  grid-column: span 2;
  min-width: 0;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 9px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  color: #79320F;
  background: #FFF3E7;
  border: 1.5px solid #D89060;
  border-radius: 12px;
  white-space: normal;
  text-decoration: none;
  cursor: pointer;
}
/* Same button size throughout; the seventh is centred, never left adrift. */
.keyword-line a:last-child { grid-column: 2 / span 2; }
.keyword-line a:first-child {
  background: linear-gradient(135deg, var(--btn-orange) 0%, var(--action-end) 100%);
  color: #FFFFFF;
  border-color: var(--action-end);
}
.keyword-line a:hover { border-color: #9F3615; box-shadow: 0 2px 7px rgba(125, 54, 21, .16); }

/* ===== Main tool (Rahu Kaal) — prominent ===== */
.main-tool {
  position: relative;
  background: var(--card-white);
  border: 1px solid #CBD5E1;
  border-radius: 18px;
  padding: 22px 18px;
  margin: 12px 0 18px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.main-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(244,162,97,0.05) 0%, transparent 30%);
}
.main-tool > * { position: relative; }
.main-tool h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.tool-intro {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
label span {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
select, input, button {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
}
select:focus, input:focus {
  outline: 3px solid rgba(231, 111, 81, 0.35);
  border-color: var(--saffron);
}
button#calculateBtn {
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(7, 60, 255, 0.20);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
button#calculateBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(7, 60, 255, 0.25);
}
button#calculateBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(7, 60, 255, 0.18);
}

/* ===== Result card — white card, prominent block ===== */
.result-card {
  margin-top: 20px;
  padding: 22px 18px;
  border-radius: 16px;
  text-align: center;
  background: var(--card-white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--line);
}
.result-kicker {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--saffron);
}
.result-time {
  font-size: clamp(30px, 10vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  margin: 8px 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.result-status {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 2px;
}
.result-meta {
  display: flex;
  justify-content: center;
  gap: 18px 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.result-meta strong {
  color: var(--saffron);
  font-weight: 700;
}

/* ===== Six tool bars — vertical, one per row ===== */
.tool-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.tool-bars .timing-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-white);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-bars .timing-card {
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.tool-bars .tool-heading {
  list-style: none;
  cursor: default;
  min-height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 16.5px;
  color: #14264A;
}
.tool-bars .tool-heading::-webkit-details-marker { display: none; }
.tool-bars .tool-heading::-moz-list-marker { display: none; }
.tool-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.tool-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
/* Per-card solid color blocks — order matches the 6 tool bars */
.tool-bars > .timing-card:nth-of-type(1) .tool-icon { background: #EE5A2A; } /* Yamagandam  — orange */
.tool-bars > .timing-card:nth-of-type(2) .tool-icon { background: #2E5DC4; } /* Gulika Kaal — blue   */
.tool-bars > .timing-card:nth-of-type(3) .tool-icon { background: #D98E0F; } /* Abhijit     — gold   */
.tool-bars > .timing-card:nth-of-type(4) .tool-icon { background: #D6418C; } /* Brahma      — pink   */
.tool-bars > .timing-card:nth-of-type(5) .tool-icon { background: #7A45D6; } /* Dur Muhurtam— purple */
.tool-bars > .timing-card:nth-of-type(6) .tool-icon { background: #1F9E4F; } /* Amrit Kaal  — green  */
.tool-name { flex: 1 1 auto; }
.tool-chev {
  flex: 0 0 auto;
  color: #6F8198;
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.tool-bars .timing-card .tool-chev { transform: rotate(90deg); }
.tool-bars .tool-heading:focus-visible {
  outline: 3px solid rgba(20, 38, 74, 0.30);
  outline-offset: -3px;
}
.tool-result {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 15.5px;
  background: var(--card-white);
}

/* ===== SEO content — fully visible, no folding ===== */
.content-area {
  background: var(--card-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  margin-top: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.content-area h2 {
  font-size: clamp(21px, 5.4vw, 26px);
  margin: 30px 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.content-area h2:first-child { margin-top: 6px; }
.content-area h3 {
  font-size: 18px;
  margin: 22px 0 6px;
  font-weight: 700;
  color: var(--ink);
}
.content-area p {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--ink-soft);
}
/* City table: a visible complete frame, orange-red title/header and white body. */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0 10px;
  border-radius: 14px;
  border: 1px solid #CBD5E1;
  background: var(--card-white);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--card-white);
}
.table-wrap caption {
  padding: 14px 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  color: #FFFFFF;
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  border-bottom: 1px solid #CBD5E1;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: middle;
  padding: 13px 9px;
  overflow-wrap: break-word;
  line-height: 1.55;
  font-size: 18px;
}
.table-wrap th {
  border-bottom: 1px solid #CBD5E1;
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
}
.table-wrap td {
  background: var(--card-white);
  border-bottom: 1px solid #CBD5E1;
  color: #172554;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.table-wrap th:first-child,
.table-wrap td:first-child { width: 38%; }
.table-wrap th:last-child,
.table-wrap td:last-child { width: 62%; }
.table-wrap td:first-child { font-weight: 600; }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.faq-visible {
  margin: 6px 0 32px;
}
.faq-visible h3 {
  color: #8a3a1c;
}
.faq-visible p { margin-bottom: 12px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding: 26px 0 38px;
  background: transparent;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.footer-links a:hover { color: var(--marigold); }

/* ===== Responsive: tablet & desktop ===== */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .timing-nav-card { padding: 22px; }
  .hint-line { font-size: 16px; padding: 14px 16px; }
  .keyword-line { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
  .keyword-line a { font-size: 18px; padding: 12px; }
  .keyword-line a:last-child { grid-column: 3 / span 2; }
  .main-tool { padding: 30px 28px; margin: 16px 0 22px; }
  .main-tool h1 { font-size: clamp(34px, 6vw, 46px); }
  .tool-intro { font-size: 16.5px; margin-bottom: 24px; }
  .controls {
    grid-template-columns: 1fr 1fr 200px;
    align-items: end;
    gap: 16px;
  }
  .result-card { padding: 28px 24px; }
  .tool-bars .tool-heading { min-height: 66px; font-size: 17.5px; }
  .tool-icon { width: 46px; height: 46px; }
  .tool-icon svg { width: 24px; height: 24px; }
  .content-area h2 { font-size: clamp(24px, 4vw, 28px); }
  .content-area p { font-size: 17px; }
}

@media (min-width: 980px) {
  .result-meta { font-size: 15.5px; }
}

/* ===== Nature tags (Auspicious / Inauspicious) ===== */
.nature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nature-auspicious {
  color: #FFFFFF;
  background: #F86C33;
}
.nature-inauspicious {
  color: #FFFFFF;
  background: #EB544C;
  border-color: transparent;
}

/* Inside the main result card — centered, on white background */
.result-nature {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

/* Secondary-card status badges are inside the lower content area. */
.tool-bars .nature-tag {
  flex: 0 0 auto;
  margin-left: auto;
}
.tool-bars .nature-auspicious {
  background: #F86C33;
  color: #FFFFFF;
  border-color: transparent;
}
.tool-bars .nature-inauspicious {
  background: #EB544C;
  color: #FFFFFF;
  border-color: transparent;
}
.tool-bars .tool-chev { margin-left: 8px; }

@media (max-width: 480px) {
  .tool-bars .tool-heading {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
    min-height: 0;
  }
  .tool-bars .tool-name { flex: 1 1 auto; }
  .tool-bars .nature-tag { margin-left: 0; font-size: 11px; padding: 3px 8px; }
}

@media (max-width: 360px) {
  .site-name { font-size: 27px; }
}



/* ===== Homepage usability repair — fixed palette and overall order ===== */
html { scroll-behavior: smooth; }
body { min-width: 0; }
.header-row {
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
}
.site-name {
  font-size: clamp(17px, 5.35vw, 32px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 800;
  min-width: 0;
}
.logo { width: 48px; height: 48px; }
.logo-r { height: 29px; }
.logo-w { height: 4px; }
.keyword-line a:focus-visible,
.footer-links a:focus-visible,
.method-source a:focus-visible {
  outline: 3px solid #FF9933;
  outline-offset: 3px;
}
.main-tool { padding: 18px; }
.main-tool::before { display: none; }
.controls {
  grid-template-columns: minmax(0,1fr);
  gap: 16px;
  margin: 0;
}
.field-group {
  min-width: 0;
  padding: 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  background: #F8FAFC;
}
.field-title {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #172554;
  text-align: left;
  margin: 0 0 10px;
}
/* Date heading is visually separated from the three input labels. */
.date-group > .field-title {
  padding-bottom: 10px;
  border-bottom: 1px solid #CBD5E1;
}
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 54px;
  padding: 8px 46px 8px 14px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.select-wrap option { font-size: 18px; }
.select-arrow {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid #475569;
  border-bottom: 2.5px solid #475569;
  transform: rotate(45deg);
  pointer-events: none;
}
.date-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.date-part { display: block; min-width: 0; }
.date-part span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #172554;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 7px;
}
.date-part input {
  min-width: 0;
  min-height: 54px;
  padding: 8px 4px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.date-part input::placeholder { color: #64748B; opacity: 1; }
.field-help {
  font-size: 17px;
  font-weight: 600;
  color: var(--help-ink);
  line-height: 1.6;
  margin: 10px 0 0;
}
/* Complete inset frame for the date format and supported year range. */
.date-group > #dateHelp {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  background: #F8FAFC;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}
.field-error {
  margin: 10px 0 0;
  font-size: 17px;
  color: #9B231B;
  font-weight: 600;
  line-height: 1.5;
}
[hidden] { display: none !important; }
.field-group.has-error { border-color: #A12D22; }
.field-group:focus-within { border-color: #285F9F; }
.controls input:focus, .controls select:focus {
  outline: 3px solid rgba(127, 89, 250, 0.35);
  outline-offset: 2px;
  border-color: #7F59FA;
}
button#calculateBtn {
  min-height: 62px;
  font-size: 24px;
  line-height: 1.4;
  padding: 12px;
}
button#calculateBtn:focus-visible { outline: 3px solid #163B71; outline-offset: 3px; }
button#calculateBtn:disabled { cursor: wait; opacity: .8; transform: none; }
.form-status {
  margin: 0;
  min-height: 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: var(--help-ink);
}
.form-status.is-pending { color: #8A3A1C; font-weight: 700; }
.result-card {
  margin-top: 16px;
  padding: 20px 16px;
  border: 1px solid #CBD5E1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.result-kicker,
.main-tool h1.result-kicker {
  margin: 0 0 16px;
  padding: 12px 10px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  text-align: center;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--btn-orange) 0%, var(--action-end) 100%);
  border-radius: 10px;
}
.result-context { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--help-ink); }
.result-time { margin: 8px 0 12px; font-size: clamp(30px,7.8vw,42px); }
.time-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.result-time .time-range { justify-content: center; }
.clock-part { display: inline-block; white-space: nowrap; }
.clock-period { font-size: .62em; font-weight: 700; }
.time-divider { font-weight: 600; }
.clock-date { display: block; font-size: 18px; font-weight: 700; color: var(--help-ink); margin-top: 5px; }
.result-status { font-size: 20px; font-weight: 700; line-height: 1.6; color: var(--help-ink); }
.result-duration { margin: 6px 0 0; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--help-ink); }
.result-nature .nature-tag { font-size: 14px; padding: 6px 10px; }
.result-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--help-ink);
  border-top-color: #CBD5E1;
}
.result-meta > span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.result-meta strong { color: #A93412; font-size: 20px; font-weight: 800; white-space: nowrap; }
.results-scope { color: #FFFFFF; font-size: 18px; font-weight: 700; line-height: 1.6; margin: 20px 0 12px; text-align: center; }
.tool-bars { gap: 14px; }
.tool-bars .timing-card { scroll-margin-top: 16px; }
#rahu-result { scroll-margin-top: 16px; }
.tool-bars .tool-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px 16px;
  min-height: 0;
  cursor: default;
  color: #FFFFFF;
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  border-bottom: none;
}
/* Title bars carry no icon: keeps each title on a single line on phones. */
.tool-bars .tool-icon { display: none; }
.tool-bars .tool-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  color: #172554;
  min-width: 0;
}
.tool-icon { width: 44px; height: 44px; }
.tool-icon svg { width: 24px; height: 24px; stroke-width: 2.5; }
/* Keep the badge beside the duration when there is room.  On a narrow phone,
   the same badge wraps below and stays right-aligned; no absolute positioning. */
.tool-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  padding: 16px 16px 20px;
  background: #FFFFFF;
}
.tool-result {
  flex: 1 1 280px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 19px;
}
.tool-state {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}
.tool-bars .tool-state .nature-tag {
  margin: 0;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  border: 2px solid currentColor;
  white-space: normal;
  overflow-wrap: break-word;
}
.tool-result .time-range { font-size: 28px; font-weight: 800; }
.timing-session + .timing-session { margin-top: 14px; padding-top: 14px; border-top: 1px solid #CBD5E1; }
.session-title { font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--help-ink); margin-bottom: 6px; }
.timing-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 19px; font-weight: 800; color: #172554; }
.timing-note { font-size: 19px; font-weight: 700; line-height: 1.65; color: var(--help-ink); margin: 10px 0 0; }
.timing-empty { font-size: 19px; font-weight: 700; line-height: 1.65; color: #475569; margin: 0; }
.nature-unavailable { color: #735019; background: #FFF3D5; border-color: #EACB83; }
.content-area { padding: 22px 18px; }
.content-area h2 { font-size: 25px; line-height: 1.4; }
.content-area h3 { font-size: 21px; line-height: 1.5; }
.content-area p { font-size: 18px; font-weight: 500; line-height: 1.8; }
.method-source a { color: #174B86; text-underline-offset: 3px; }
.footer-links { justify-content: center; }
.footer-links a { font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 540px) {
  .tool-bars .tool-heading { grid-template-columns: minmax(0,1fr); }
  .tool-bars .tool-name { grid-column: 1; grid-row: 1; }
}
@media (max-width: 360px) {
  .header-row { gap: 7px; }
  .site-name { font-size: clamp(16px,5.35vw,19px); }
  .main-tool { padding: 14px; }
  .field-group { padding: 12px; }
  .tool-bars .tool-name { font-size: 21px; }
  .date-parts { gap: 6px; }
  .date-part input { font-size: 24px; }
  .result-card { padding: 18px 12px; }
  .result-time { font-size: 29px; }
  .result-time .time-range { display: grid; grid-template-columns: minmax(0,1fr); gap: 1px; }
  .result-time .time-divider { font-size: .7em; line-height: 1.1; }
  .table-wrap th, .table-wrap td { padding: 12px 8px; font-size: 17px; }
  .table-wrap th:first-child, .table-wrap td:first-child { width: 46%; }
  .table-wrap th:last-child, .table-wrap td:last-child { width: 54%; }
}
@media (min-width: 720px) {
  .main-tool { padding: 28px; }
  .controls { grid-template-columns: minmax(0,1fr); }
  .field-group { padding: 16px; }
  .date-parts { gap: 12px; }
  .field-title { font-size: 18px; }
  .date-part span { font-size: 18px; }
  .result-meta > span { flex-direction: row; justify-content: center; gap: 7px; }
  .result-meta { font-size: 17px; }
  .result-meta strong { font-size: 18px; }
  .result-time { font-size: 42px; }
  .result-card { padding: 26px 24px; }
  .tool-bars .tool-heading { padding: 16px 20px; }
  .tool-bars .tool-name { font-size: 20px; }
  .tool-body { padding: 18px 20px 22px; }
  .tool-result .time-range { font-size: 28px; }
  .content-area { padding: 26px; }
  .table-wrap caption { font-size: 20px; padding: 17px 18px; }
  .table-wrap th, .table-wrap td { padding: 14px 18px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button#calculateBtn { transition: none; }
}


/* ==========================================================================\n   V4 LOCKED MOBILE-FIRST MASTER — 2026-09-16\n   User-approved baseline: only explicitly requested areas are changed.\n   - exact orange instruction bar text\n   - seven timing entrances: one compact white row each, no arrows\n   - 30-city selector\n   - fixed readable typography baseline (390 / 430 / 768 / 430–900)\n   ========================================================================== */

/* Header remains one row: R logo + site name.
   Title keeps its established size; when space is tight it wraps naturally —
   never truncated, no ellipsis, never shrunk to force one line. */
.site-name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
  white-space: normal;
  min-width: 0;
}

/* One frame holding the seven entrances as plain table rows.
   Negative side margins pull the frame 6px closer to the page edge
   (14px -> 8px) so long titles keep room on one line. */
.timing-nav-card {
  margin: 0 -6px 16px;
  padding: 6px 12px;
  background: #FFFFFF;
  border: 1px solid #D9E2EC;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
/* Hint text sits directly on the page background — no own frame.
   Same horizontal edges as the entrance frame below; 12px under the tricolour
   stripe, 10px above the frame. */
.hint-line {
  min-height: 0;
  margin: 12px 0 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  color: #FFFFFF;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.keyword-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 0;
  padding: 0;
}
.keyword-line a,
.keyword-line a:first-child,
.keyword-line a:last-child {
  grid-column: auto !important;
  min-height: 46px;
  min-width: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #172554;
  background: transparent;
  border: none;
  border-bottom: 1px solid #D6DEE8;
  border-radius: 0;
  box-shadow: none;
  font-size: 20px;
  letter-spacing: 0.2px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: normal;
}
.keyword-line a::after { content: none !important; display: none !important; }
/* Last row closes the list: no separator under it. */
.keyword-line a:last-child { border-bottom: none; }
.keyword-line a:hover,
.keyword-line a:focus-visible {
  color: #172554;
  background: transparent;
  border-color: #D6DEE8;
}

/* Calculator card: fixed typography baseline. */
.main-tool { padding: 18px 16px; }
.controls { gap: 14px; }
.field-group { padding: 14px; }
.field-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.date-group > .field-title {
  padding-bottom: 10px;
  border-bottom: 1px solid #CBD5E1;
}
.select-wrap select {
  min-height: 54px;
  padding: 8px 46px 8px 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.select-wrap option { font-size: 18px; }
.select-arrow { top: 18px; }
.city-help,
.field-help,
.form-status {
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
}
.city-help { margin: 8px 2px 0; font-weight: 600; }
.date-parts { gap: 8px; }
.date-part span {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.date-part input {
  min-height: 54px;
  padding: 8px 4px;
  font-size: 18px;
  font-weight: 700;
}
.date-group > #dateHelp {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 17px;
  line-height: 1.6;
}
button#calculateBtn {
  min-height: 56px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.form-status { min-height: 0; margin-top: -2px; font-weight: 600; }

/* Main Rahu result: white card, orange text heading, no red title slab. */
.result-card { padding: 20px 16px; }
.result-kicker,
.main-tool h1.result-kicker {
  margin: 0 0 10px;
  padding: 0;
  color: #172554;
  background: transparent;
  border-radius: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}
.result-context,
.result-status,
.result-duration {
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
}
.result-time { font-size: clamp(32px, 8.8vw, 42px); color: #172554; }
.result-nature .nature-tag { font-size: 17px; font-weight: 700; line-height: 1.4; }
.result-meta { font-size: 17px; line-height: 1.6; color: #475569; }
.result-meta strong { font-size: 18px; color: #172554; }

/* Secondary timing cards use the same approved readability baseline. */
.tool-bars .tool-name { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: 0.2px; color: #FFFFFF; }
.tool-result { font-size: 17px; line-height: 1.6; color: #334155; }
.tool-result .time-range { font-size: 28px; color: #172554; }
.timing-meta,
.timing-note,
.timing-empty { font-size: 17px; line-height: 1.6; }
.tool-bars .tool-state .nature-tag { font-size: 17px; font-weight: 700; line-height: 1.4; }

/* Content / FAQ typography baseline from the user-approved tool-site spec. */
.content-area h2 {
  margin: 24px 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #172554;
}
.content-area h2:first-child {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.3;
}
.content-area p {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #334155;
}
.content-area h2:last-of-type { font-size: 20px; }
.faq-visible h3 {
  margin: 18px 0 5px;
  color: #172554;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
}
.faq-visible p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
  color: #334155;
}
.method-source { font-size: 17px !important; font-weight: 600 !important; line-height: 1.6 !important; color: #FFFFFF !important; }
.method-source a { color: #FFFFFF; }

/* Keep the city table legible and visibly framed. */
.table-wrap caption { font-size: 20px; font-weight: 700; }
.table-wrap th,
.table-wrap td { font-size: 18px; }

/* 390px / 430px: preserve type size; allow wrapping instead of shrinking. */
@media (max-width: 430px) {
  .shell { width: min(100% - 20px, 980px); }
  .header-row { padding: 12px 10px; gap: 8px; }
  .logo { width: 42px; height: 42px; border-radius: 11px; }
  .logo-r { height: 25px; font-size: 22px; }
  .logo-w { height: 3px; }
  .hint-line { font-size: 16px; }
  .keyword-line a { font-size: 20px; min-height: 44px; }
  .main-tool { padding: 16px 12px; }
  .field-group { padding: 12px; }
  .field-title { font-size: 18px; }
  .select-wrap select,
  .date-part input { font-size: 18px; }
  .date-part span { font-size: 18px; }
  .city-help,
  .field-help,
  .form-status { font-size: 17px; }
  button#calculateBtn { font-size: 18px; }
  .content-area { padding: 20px 16px; }
  .content-area h2:first-child { font-size: 26px; }
  .content-area h2 { font-size: 20px; }
  .content-area p { font-size: 18px; line-height: 1.7; }
  .faq-visible h3 { font-size: 18px; }
  .faq-visible p { font-size: 17px; line-height: 1.65; }
}

/* 430–900px large phones/tablets: keep the same readable typography. */
@media (min-width: 431px) and (max-width: 900px) {
  .hint-line { font-size: 16px; }
  .field-title { font-size: 18px; }
  .select-wrap select,
  .date-part input { font-size: 18px; }
  .date-part span { font-size: 18px; }
  .city-help,
  .field-help,
  .form-status { font-size: 17px; }
  button#calculateBtn { font-size: 18px; }
  .content-area h2:first-child { font-size: 26px; }
  .content-area h2 { font-size: 20px; }
  .content-area p { font-size: 18px; line-height: 1.7; }
  .faq-visible h3 { font-size: 18px; }
  .faq-visible p { font-size: 17px; line-height: 1.65; }
}

/* ===== Article & FAQ cards: one white card per section with a gradient title bar.
   Placed last on purpose: it must out-rank the legacy :first-child rules above
   now that every section h2 is the first child of its own card.
   Visual layering only — copy, order and locked font sizes are unchanged. ===== */
.content-area {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.content-area .post-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin: 0 0 16px;
}
.content-area .post-card > h2 {
  margin: 0;
  padding: 13px 16px;
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  color: #FFFFFF;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
}
.content-area .post-card > p {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
}
.content-area .faq-visible {
  margin: 0 0 16px;
  padding: 0;
}
.content-area .faq-item {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  padding: 14px 16px;
  margin: 0 0 12px;
}
.content-area .faq-item:last-child { margin-bottom: 0; }
.content-area .faq-item h3 {
  margin: 0 0 8px;
  color: #172554;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}
.content-area .faq-item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #334155;
}
/* Keep the locked responsive title sizes: 20px section bars on phones/tablets,
   26px only for the first section, 25px on wide screens. */
@media (max-width: 900px) {
  .content-area .post-card > h2 { font-size: 20px; }
  .content-area > .post-card:first-child > h2 { font-size: 26px; }
}

/* Seven entrance titles: exactly one size for all seven — no per-item
   shrinking for first/last items or long labels. */
.keyword-line a:first-child,
.keyword-line a:last-child,
.keyword-line a {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #172554;
}

/* ===== Header brand lockup: logo + "India Panchang" on one centred line.
   Title is the focus, logo is the side mark. Flex row keeps both vertically
   centred; 10px fixed gap. Single line, never truncated, never shrunk on
   390/430. ===== */
.header-row { gap: 10px; }
.site-name {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.logo { width: 44px; height: 44px; border-radius: 12px; }
@media (min-width: 768px) {
  .site-name { font-size: 34px; }
  .logo { width: 48px; height: 48px; }
}
/* Tiny-screen safeguard (≤360px only): same one line, slightly smaller. */
@media (max-width: 360px) {
  .site-name { font-size: 28px; }
}

/* R logo internals: keep the three original colours, change only the band
   proportions (orange 50% / white 14% / green flex = 36%) and enlarge the R.
   Percentage heights resolve against the fixed-height .logo box, so the
   ratio holds at both 50px (phones) and 54px (≥768px). */
.logo-r { height: 50%; font-size: 30px; }
.logo-w { height: 14%; }
.logo-g { flex: 1 1 auto; }

/* ===== One combined card: gradient hint band on top, seven entrance rows
   below inside the same white frame. Card edges align with the City/Date
   card below; the band bleeds to the frame's rounded top corners. ===== */
.timing-nav-card {
  margin: 12px 0 16px;
  padding: 0 6px 6px;
}
.hint-line {
  margin: 0 -6px 6px;
  padding: 12px 12px;
  background: linear-gradient(90deg, #073CFF 0%, #7F59FA 100%);
  border-radius: 19px 19px 0 0;
}

/* V4.1 verified expansion: lower-page internal city links and legal pages only. */
.city-table-link { color: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; }
.city-table-link:hover, .city-table-link:focus-visible { color: #073CFF; }
.legal-page { padding-top: 18px; padding-bottom: 24px; }
.legal-page .content-area a { color: #174B86; text-underline-offset: 3px; }
