/* /panchang and /panchang/{city} styles (moved out of panchang.html so the 11 KB is cached, not re-sent in every page's HTML). */
/* ── Hero ── */
.pc-hero {
    background: linear-gradient(150deg, #0c0720 0%, #1a0a3d 40%, #0d1f4a 75%, #0a2240 100%);
    padding: 24px 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.18) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,158,11,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.pc-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(167,243,208,0.12); border: 1px solid rgba(167,243,208,0.3);
    color: #6ee7b7; font-size: 12.5px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 10px;
}
.pc-hero h1 {
    font-size: clamp(22px, 4.5vw, 36px); font-weight: 900;
    color: white; line-height: 1.18; margin-bottom: 10px; letter-spacing: -0.02em;
}
.pc-hero h1 .accent { color: #f59e0b; }
.pc-hero-sub {
    font-size: 14px; color: rgba(255,255,255,0.65);
    margin-bottom: 22px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.pc-hero-curve {
    height: 40px; background: white;
    clip-path: ellipse(60% 100% at 50% 100%); margin-top: -1px;
}

/* ── Layout ── */
.pc-body {
    max-width: 860px; margin: 0 auto; padding: 0 20px 60px;
}

/* ── Form card ── */
.pc-form-card {
    background: white; border-radius: 20px; padding: 28px 24px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10); border: 1px solid #e8edf5;
    margin-top: -52px; position: relative; z-index: 2; margin-bottom: 28px;
}
@media (max-width: 600px) { .pc-form-card { margin-top: -28px; padding: 20px 16px; } }

.pc-form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 600px) { .pc-form-row { grid-template-columns: 1fr; } }

.pc-label { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.pc-input {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0;
    border-radius: 10px; font-size: 15px; color: #0f172a; background: #fafbfc;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none; box-sizing: border-box;
}
.pc-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.12); background: white; }
.pc-btn {
    padding: 11px 28px; background: linear-gradient(90deg, #7c3aed, #4f46e5);
    color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: opacity 0.15s; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.pc-btn:hover { opacity: 0.9; }

.pc-quick-cities {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.pc-city-chip {
    padding: 4px 12px; background: #f5f3ff; border: 1px solid #ddd6fe;
    border-radius: 20px; font-size: 12px; font-weight: 600; color: #6d28d9;
    cursor: pointer; transition: background 0.15s;
}
.pc-city-chip:hover { background: #ede9fe; }

/* ── Result grid ── */
.pc-result { margin-top: 4px; }
.pc-date-bar {
    text-align: center; margin-bottom: 24px;
    font-size: 15px; font-weight: 700; color: #6d28d9;
}
.pc-five-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px; margin-bottom: 24px;
}
@media (max-width: 700px) { .pc-five-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .pc-five-grid { gap: 8px; }
    .pc-five-grid .pc-pancha-card { padding: 10px 10px; }
    .pc-five-grid .pc-pancha-icon { font-size: 18px; margin-bottom: 2px; }
    .pc-five-grid .pc-pancha-card:last-child { grid-column: 1 / -1; }
}

.pc-pancha-card {
    background: white; border-radius: 16px; padding: 16px 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07); border: 1px solid #f1f5f9;
    text-align: center;
}
.pc-pancha-icon { font-size: 26px; margin-bottom: 6px; }
.pc-pancha-label {
    font-size: 12px; font-weight: 700; color: #64748b;
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.pc-pancha-value { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.3; }
.pc-pancha-sub { font-size: 12.5px; color: #64748b; margin-top: 2px; }

/* Sun/Moon strip */
.pc-sun-moon {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px;
}
.pc-sun-card, .pc-moon-card {
    border-radius: 16px; padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pc-sun-card  { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; }
.pc-moon-card { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border: 1px solid #ddd6fe; }
.pc-sm-title  { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.pc-sun-card  .pc-sm-title { color: #92400e; }
.pc-moon-card .pc-sm-title { color: #5b21b6; }
.pc-sm-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.pc-sm-row:last-child { border-bottom: none; }
.pc-sm-key { color: #64748b; }
.pc-sm-val { font-weight: 700; color: #0f172a; }

/* Muhurta strip */
.pc-muhurta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
@media (max-width: 500px) { .pc-muhurta-grid { grid-template-columns: 1fr; } }
.pc-muhurta-card {
    background: white; border-radius: 14px; padding: 16px 18px;
    border: 1px solid #e8edf5; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.pc-muhurta-name { font-size: 13.5px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.pc-muhurta-time { font-size: 20px; font-weight: 900; color: #7c3aed; }
.pc-muhurta-desc { font-size: 12px; color: #64748b; margin-top: 4px; line-height: 1.5; }

/* Auspiciousness banner */
.pc-auspicious   { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; color: #166534; font-size: 13.5px; font-weight: 600; }
.pc-inauspicious { background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; color: #991b1b; font-size: 13.5px; font-weight: 600; }
/* ── Layout v2: summary, grouped sections, compact rows ── */
.pc-form-toggle > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-form-toggle > summary::-webkit-details-marker { display: none; }
.pc-place { font-size: 15px; font-weight: 800; color: #0f172a; }
.pc-change { font-size: 13px; font-weight: 700; color: #6d28d9; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 20px; padding: 6px 14px; }
.pc-form-toggle[open] .pc-change { display: none; }
.pc-summary { background: linear-gradient(135deg, #fffbeb, #fef3c7 60%, #fde68a33); border: 1px solid #fde68a; border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; }
.pc-summary-title { font-size: 13px; font-weight: 800; color: #92400e; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.pc-summary-main { font-size: 17px; font-weight: 800; color: #0f172a; line-height: 1.45; }
.pc-summary-sun { font-size: 14px; color: #475569; margin: 6px 0 10px; font-weight: 600; }
.pc-yoga-good, .pc-yoga-bad { font-size: 13.5px; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.pc-yoga-good { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.pc-yoga-bad  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pc-now > div { font-size: 14px; font-weight: 700; border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; }
.pc-now-bad  { background: #fee2e2; color: #991b1b; }
.pc-now-good { background: #dcfce7; color: #166534; }
.pc-now-ok   { background: #f1f5f9; color: #334155; }
.pc-now-next { background: transparent !important; padding: 0 2px !important; color: #166534; font-size: 13px !important; }
.pc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pc-badge { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; text-decoration: none; border: 1px solid; }
.pc-badge.good { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.pc-badge.gold { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.pc-badge.bad  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.pc-badge.info { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.pc-jump { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.pc-jump a { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #374151; background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 13px; text-decoration: none; }
.pc-pair { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: start; }
@media (min-width: 820px) { .pc-pair { grid-template-columns: 1fr 1fr; } }
.pc-group { background: white; border: 1px solid #e8edf5; border-radius: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); scroll-margin-top: 80px; }
.pc-group > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.pc-group > summary::-webkit-details-marker { display: none; }
.pc-group > summary::after { content: '▾'; color: #94a3b8; font-size: 14px; transition: transform .15s; }
.pc-group[open] > summary::after { transform: rotate(180deg); }
.pc-group > summary h2 { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0; }
.pc-group.good > summary h2 { color: #166534; }
.pc-group.bad  > summary h2 { color: #991b1b; }
.pc-group-body { padding: 0 18px 14px; }
.pc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0 3px; border-top: 1px solid #f1f5f9; }
.pc-row-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.pc-row-time { font-size: 14.5px; font-weight: 800; color: #6d28d9; text-align: right; }
.pc-row-time.good { color: #15803d; } .pc-row-time.bad { color: #dc2626; } .pc-row-time.gold { color: #b45309; } .pc-row-time.muted { color: #64748b; font-weight: 600; }
.pc-row-time small { font-size: 12px; font-weight: 700; }
/* bare <small> (lagna table day tags) defaulted to 11.25px */
small { font-size: 12px; }
.pc-sub { font-size: 12.5px; color: #475569; line-height: 1.55; margin: 2px 0 4px; }
.pc-sub a, .pc-info a { color: #6d28d9; font-weight: 700; }
/* a11y: a link that is the whole line (not inline in a sentence) needs a >= 24 px tap area */
.pc-sub > a:only-child { display: inline-block; padding: 5px 0; }
.pc-info { margin: 0 0 4px; }
.pc-info > summary { font-size: 12px; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; min-height: 24px; padding: 0 6px 0 0; }
.pc-info > div { font-size: 12.5px; color: #475569; line-height: 1.55; padding: 4px 0 6px; }
.pc-h3 { font-size: 14px; font-weight: 800; color: #0f172a; margin: 14px 0 4px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0; }
.pc-table td, .pc-table th { padding: 5px 6px; border-top: 1px solid #f1f5f9; }
.pc-related { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.pc-related a { font-size: 13px; font-weight: 700; color: #374151; background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 7px 14px; text-decoration: none; }
.pc-group .pc-sun-moon { margin-bottom: 8px; }
@media (max-width: 500px) { .pc-group .pc-sun-moon { grid-template-columns: 1fr; } .pc-row { flex-wrap: wrap; } .pc-row-time { text-align: left; } }
/* a11y: a table cell that is only a link (upcoming vrat/festival rows) needs a >= 24 px tap area */
.pc-table td > a:only-child { display: inline-block; padding: 5px 0; }
