/* Ready-made calendars index (/photo-calendars/ready-made). Builds on photo-calendars.css (.pc-page). */
.prm {
    --ink: #1f2937;
    --ivory: #faf9f7;
    --paper: #f4f0e8;
    --line: #e9e3d8;
    --gold: #c5a059;
    --gold-text: #7a5e28;
    --red: #b4443a;
    --muted: #5b6472;
    --prm-top: 0px;
    --serif: 'Playfair Display', Georgia, 'Noto Sans Devanagari', serif;
    --sans: 'Inter', system-ui, 'Noto Sans Devanagari', sans-serif;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--ivory);
}
/* .pc-page sets overflow-x:hidden, which makes it a scroll container and breaks the sticky edition bar. */
.pc-page.prm { overflow-x: clip; }
.prm :lang(hi), .prm :lang(mr) { font-family: 'Noto Sans Devanagari', var(--sans); }
.prm :where(h1, h2, h3) { font-family: var(--serif); color: var(--ink); margin: 0; letter-spacing: 0; }
/* :where keeps these resets at class specificity so component rules below win. */
.prm :where(p, ul, ol, dl, dd, figure) { margin: 0; }
.prm :where(ul, ol) { padding: 0; list-style: none; }
.prm :where(img) { display: block; max-width: 100%; }
.prm a { color: inherit; }
.prm [hidden] { display: none !important; }
.prm a:focus-visible, .prm button:focus-visible, .prm summary:focus-visible {
    outline: 3px solid var(--ink) !important; /* a site-wide mobile rule strips button outlines */
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--ivory);
}
.prm-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; min-width: 0; }
@media (min-width: 640px) { .prm-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .prm-wrap { padding: 0 40px; } }

.prm .prm-eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.prm .prm-eyebrow-red { color: var(--red); }
.prm .prm-eyebrow-gold { color: var(--gold); }

/* Buttons and links styled as buttons (site sets button{width:100px;height:40px}). */
.prm .prm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px; border-radius: 3px;
    font: 600 15px/1.2 var(--sans); text-decoration: none; text-align: center;
    border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.prm .prm-btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.prm .prm-btn-solid { background: var(--ink); color: var(--ivory); }
.prm .prm-btn-solid:hover { background: #111827; color: #fff; }
.prm .prm-btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.prm .prm-btn-line:hover { background: var(--paper); }
.prm .prm-btn-gold { background: var(--gold); color: var(--ink); }
.prm .prm-btn-gold:hover { background: #d4b273; color: var(--ink); }
.prm .prm-btn-ghost { border-color: rgba(250, 249, 247, .7); color: var(--ivory); background: transparent; }
.prm .prm-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.prm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Breadcrumb */
.prm-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.prm-breadcrumb li + li::before { content: '/'; margin-right: 6px; color: #9aa0a8; }
.prm-breadcrumb a { text-decoration: none; }
.prm-breadcrumb a:hover { text-decoration: underline; color: var(--ink); }
.prm-breadcrumb [aria-current] { color: var(--ink); }

/* Hero */
.prm-hero { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 48px; }
.prm-hero h1 { margin-top: 12px; font-size: clamp(36px, 8.4vw, 64px); line-height: 1.05; font-weight: 600; }
.prm-hero h1 em { font-style: italic; font-weight: 400; color: #9c7a38; }
.prm-lede { margin-top: 20px; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.prm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prm-stats dt { font-size: 13px; color: var(--muted); font-weight: 400; }
.prm-stats dd { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.prm-stats dd strong { font-weight: 600; }
.prm-stats div:last-child dd { font-size: 20px; padding-top: 4px; }
.prm-trust { margin-top: 20px; font-size: 14px; color: var(--muted); }
.prm-hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 20px; min-width: 0; overflow: hidden; padding: 40px 24px; background: var(--paper); }
.prm-cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; padding: 22px 12px 12px; /* px: % padding would follow .prm-hero-art's width */ background: #fffdf8; box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(31, 41, 55, .35); min-width: 0; }
.prm-cover-main { width: 62%; margin-bottom: -8px; padding: 28px 16px 16px; }
.prm-cover-side { display: none; width: 30%; }
.prm-cover-ring { position: absolute; left: 50%; top: 3%; width: 22%; height: 3%; transform: translateX(-50%); border-radius: 99px; background: rgba(31, 41, 55, .8); }
.prm-cover-img { flex: 1.35; min-height: 0; overflow: hidden; background: var(--line); }
.prm-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.prm-cover-head { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; padding-top: 6%; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.prm-cover-main .prm-cover-head { font-size: 19px; }
.prm-cover-year { color: var(--gold-text); font-weight: 400; }
.prm-dots { flex: .55; margin-top: 4%; background-image: radial-gradient(rgba(31, 41, 55, .22) 1.2px, transparent 1.4px); background-size: 14.28% 25%; }
@media (min-width: 640px) {
    .prm-cover-side { display: flex; }
    .prm-cover-main { width: 38%; margin-bottom: -16px; }
}
@media (min-width: 1024px) {
    .prm-hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 48px; padding-bottom: 64px; }
    .prm-hero-art { padding: 56px 40px; }
}

/* Edition bar (sticky below the fixed desktop header; JS sets --prm-top) */
.prm-edition-bar { position: sticky; top: var(--prm-top); z-index: 30; background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prm-edition-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.prm-chips { display: flex; align-items: center; gap: 6px; }
.prm-edition-label { margin-right: 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.prm .prm-chip {
    display: inline-flex; align-items: center; width: auto; height: 44px; min-height: 44px; padding: 0 16px; border-radius: 3px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    font: 500 15px/1 var(--sans); cursor: pointer;
}
.prm .prm-chip:lang(hi), .prm .prm-chip:lang(mr) { font-family: 'Noto Sans Devanagari', var(--sans); }
.prm .prm-chip:hover { border-color: #9c7a38; }
.prm .prm-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.prm-edition-note { font-size: 14px; color: var(--muted); }
@media (max-width: 639px) { .prm-chips:not([hidden]) + .prm-edition-note { display: none; } }
@media (max-width: 399px) { .prm .prm-chip { padding: 0 11px; } .prm-edition-label { margin-right: 2px; letter-spacing: .06em; } }

/* Browse: heading, tabs, shelf */
.prm-browse { padding-top: 40px; padding-bottom: 64px; scroll-margin-top: calc(var(--prm-top) + 72px); }
.prm-browse-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.prm-browse-head h2 { font-size: clamp(28px, 5vw, 36px); font-weight: 600; line-height: 1.15; }
.prm-count { font-size: 15px; color: var(--muted); }
.prm-tabs { display: flex; gap: 4px; margin: 20px -16px 0; padding: 0 16px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.prm-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.prm-tab span { font-size: 13px; color: #6f757e; }
.prm-tab:hover { color: var(--ink); }
.prm-tab[aria-current="true"] { border-bottom-color: var(--red); color: var(--ink); font-weight: 600; }
.prm .prm-tab:focus-visible { outline-offset: -3px; box-shadow: none; }
@media (min-width: 640px) { .prm-tabs { margin-left: 0; margin-right: 0; padding: 0; flex-wrap: wrap; overflow: visible; } }

.prm-shelf { margin-top: 32px; }
.prm-shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.prm-shelf-head p { font-size: 13px; color: #2f5d34; }
.prm-moments { display: flex; gap: 10px; margin: 12px -16px 0; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.prm-moment { flex: 0 0 248px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); }
.prm-moment-when { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.prm-moment-events { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.3; }
.prm-moment-events span { display: inline-block; min-width: 52px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--gold-text); }
.prm-moment-links { font-size: 13px; line-height: 1.5; color: var(--muted); }
.prm-moment-links a { text-decoration: underline; text-decoration-color: #cfc6b5; text-underline-offset: 2px; }
.prm-moment-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.prm .prm-moment-btn {
    width: auto; height: auto; margin-top: auto; align-self: flex-start; min-height: 40px; padding: 0 12px; border-radius: 3px;
    border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer;
}
.prm .prm-moment-btn:hover { background: var(--paper); }
.prm .prm-moment-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (min-width: 640px) { .prm-moments { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
@media (min-width: 1280px) { .prm-moments { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } .prm-moment { flex: none; } }

/* Category sections and cards */
.prm-cat { padding-top: 44px; scroll-margin-top: calc(var(--prm-top) + 72px); }
.prm-cat-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: clamp(24px, 4vw, 30px); font-weight: 600; }
.prm-grid { display: grid; gap: 20px; margin-top: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .prm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .prm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .prm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prm-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); }
.prm-card-media { position: relative; background: var(--paper); }
.prm-card-media img { width: 100%; height: auto; aspect-ratio: 640 / 477; object-fit: cover; }
.prm-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; pointer-events: none; }
.prm-badge { padding: 4px 8px; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.prm-badge-new { background: var(--red); color: #fff; }
.prm-badge-panchang { background: var(--ink); color: #f2d79a; }
.prm-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; }
.prm-card-body h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
.prm-card-body h3 a { text-decoration: none; }
.prm-card-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prm-card-sub { margin-top: -6px !important; font-size: 14px; color: var(--muted); }
.prm-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prm-strip li { min-width: 0; padding-bottom: 8px; background: var(--ivory); }
.prm-strip img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.prm-strip .prm-mlabel { display: block; padding: 6px 8px 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.prm-strip-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 2px 8px 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.prm-card-blurb { font-size: 14px; line-height: 1.55; color: var(--muted); }
.prm-card-editions { font-size: 13px; color: var(--gold-text); font-weight: 500; }
.prm-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.prm-price { font-size: 14px; color: var(--muted); }
.prm-price strong { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }

/* Marathi spotlight */
.prm-spot { padding: 56px 0; background: var(--ink); color: var(--ivory); }
.prm-spot-in { display: grid; gap: 40px; }
.prm-spot h2 { margin-top: 8px; color: var(--ivory); font-family: 'Noto Sans Devanagari', var(--serif); font-size: clamp(32px, 6vw, 44px); font-weight: 600; line-height: 1.2; }
.prm-spot-sub { margin-top: 6px; font-size: 17px; color: rgba(244, 240, 232, .82); }
.prm-spot-list { margin-top: 24px; display: grid; gap: 10px; font-size: 15px; color: rgba(244, 240, 232, .92); }
.prm-spot-list li { padding-left: 18px; position: relative; }
.prm-spot-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--gold); }
.prm-spot-cal { padding: 16px; background: var(--ivory); color: var(--ink); }
.prm-spot-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.prm-spot-img img { width: 100%; height: 100%; object-fit: cover; }
.prm-spot-month { margin-top: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 600; }
.prm-spot-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin-top: 10px; background: var(--line); }
.prm-spot-grid > span { min-width: 0; background: var(--ivory); }
.prm-spot-dow { padding: 6px 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--gold-text); }
.prm-spot-day { position: relative; aspect-ratio: 4 / 3; padding: 4px 6px; font-size: 15px; }
.prm-spot-day.is-sun { color: var(--red); }
.prm-spot-day.is-marked::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.prm-spot-marks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: 14px; }
.prm-spot-marks span { font-weight: 600; color: var(--red); }
@media (min-width: 640px) { .prm-spot-cal { padding: 24px; } }
@media (min-width: 1024px) { .prm-spot { padding: 80px 0; } .prm-spot-in { grid-template-columns: 1fr 1.05fr; align-items: center; } }

/* Formats explainer */
.prm-formats { padding: 56px 0; background: #fff; border-bottom: 1px solid var(--line); }
.prm-formats h2 { margin-top: 8px; max-width: 760px; font-size: clamp(28px, 5vw, 40px); font-weight: 600; line-height: 1.15; }
.prm-formats-lede { margin-top: 12px; max-width: 640px; color: var(--muted); }
.prm-format-list { display: grid; gap: 0 32px; margin-top: 32px; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.prm-format { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prm-format h3 { font-size: 22px; font-weight: 600; }
.prm-format p { font-size: 15px; color: var(--muted); }
.prm-format .prm-format-sizes { color: var(--ink); font-size: 14px; }
@media (min-width: 768px) { .prm-format-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .prm-format-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .prm-formats { padding: 80px 0; } }

/* FAQ */
.prm-faq { padding: 56px 0; }
.prm-faq-in { display: grid; gap: 24px; }
.prm-faq h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 600; line-height: 1.15; }
.prm-faq-list { border-top: 1px solid var(--line); }
.prm-faq details { border-bottom: 1px solid var(--line); }
.prm .prm-faq summary { color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.prm-faq summary::-webkit-details-marker { display: none; }
.prm-faq summary::after { content: '+'; flex: 0 0 auto; font-size: 24px; font-weight: 400; color: #9c7a38; transition: transform .15s; }
.prm-faq details[open] summary::after { transform: rotate(45deg); }
.prm-faq details p { padding: 0 32px 20px 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.prm-faq details a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 1024px) { .prm-faq { padding: 80px 0; } .prm-faq-in { grid-template-columns: 320px 1fr; gap: 40px; } }

/* Mobile: keep the last section clear of master's fixed .pp-bottom-nav (60px). */
@media (max-width: 991px) { .prm .prm-faq { padding-bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .prm *, .prm *::before, .prm *::after { transition: none !important; } }
.prm .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.prm-moment, .prm .prm-chip, .prm-card-foot, .prm-format { position: relative; } /* anchor .visually-hidden inside scrollers */
.prm-stats dd strong, .prm-price strong { font-family: var(--sans); font-weight: 700; } /* Playfair has no ₹ glyph */

/* ===== Collection page (/photo-calendars/ready-made/{slug}) ===== */
.prm-show { --hol: #b4443a; --vrat: #7a5e28; --jay: #2f5d34; --off: #1f4e79; }
.prm-buy .prm-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.prm .prm-tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--gold); color: var(--gold-text); letter-spacing: .1em; }
.prm-detail { display: grid; gap: 28px; padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 1024px) { .prm-detail { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-top: 28px; } }

/* Gallery: a scroll-snap track (swipe) with a thumbnail rail */
.prm-gal { min-width: 0; }
.prm-gal-view { position: relative; }
.prm-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--paper); border: 1px solid var(--line); }
.prm-gal-track::-webkit-scrollbar { display: none; }
.prm .prm-gal-track:focus-visible, .prm .prm-pan-scroll:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.prm-gal-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.prm-gal-slide img { width: 100%; height: auto; aspect-ratio: 640 / 477; object-fit: cover; }
.prm-gal-cap { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: rgba(250, 249, 247, .94); font: 600 14px/1.2 var(--sans); }
.prm .prm-gal-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
    width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 0;
    background: rgba(250, 249, 247, .95); color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer;
}
.prm .prm-gal-arrow:hover { background: #fff; }
.prm-gal-prev { left: 12px; }
.prm-gal-next { right: 12px; }
.prm-gal-thumbs { display: none; }
@media (max-width: 639px) { .prm .prm-gal-arrow { display: none; } }
@media (min-width: 640px) {
    .prm-gal-thumbs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
    .prm-gal-thumbs a { position: relative; display: block; border: 1px solid var(--line); opacity: .78; }
    .prm-gal-thumbs a:hover, .prm-gal-thumbs a[aria-current="true"] { opacity: 1; }
    .prm-gal-thumbs a[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
    .prm-gal-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
}

/* Buy box */
.prm-buy { min-width: 0; }
.prm-buy h1 { margin-top: 10px; font-size: clamp(32px, 7vw, 46px); line-height: 1.08; font-weight: 600; }
.prm-buy-sub { margin-top: 8px; font-family: var(--serif); font-size: 19px; font-style: italic; color: #3b4452; }
.prm-buy-blurb { margin-top: 12px; color: var(--muted); }
.prm-buy-price { margin-top: 14px; font-size: 15px; }
.prm-buy-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.prm-buy-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.prm-buy-label span { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.prm #choose, .prm #months, .prm #prm-panchang { scroll-margin-top: calc(var(--prm-top) + 16px); }
.prm-fmts { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prm-fmt { height: 100%; display: flex; flex-direction: column; }
.prm-fmt-ed { margin: 0 0 6px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.prm-fmt-ed legend { width: 100%; padding: 0; margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.prm-fmt-ed label { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.prm .prm-fmt-btn {
    flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: auto; min-height: 96px;
    padding: 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink);
    font: 400 14px/1.35 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.prm .prm-fmt-btn:hover { border-color: var(--ink); background: var(--paper); }
.prm-fmt-name { font-size: 15px; font-weight: 600; }
.prm-fmt-sizes { font-size: 13px; color: var(--muted); }
.prm-fmt-price { margin-top: auto; font-size: 13px; color: var(--muted); }
.prm-fmt-price strong { font-size: 16px; font-weight: 700; color: var(--ink); }
.prm-fmt-note { font-size: 13px; color: var(--gold-text); }
.prm-js .prm-fmt-ed { display: none; } /* one shared edition picker instead; the radios stay in sync and submit */
.prm-trust { display: grid; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.prm-trust li { position: relative; padding-left: 18px; }
.prm-trust li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Month ribbon */
.prm-ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.prm-ribbon-list { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.prm-ribbon-list li { flex: 0 0 124px; scroll-snap-align: start; min-width: 0; }
.prm-ribbon-list a { display: block; padding: 6px; border: 1px solid transparent; text-decoration: none; }
.prm-ribbon-list a:hover { border-color: var(--line); }
.prm-ribbon-list img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.prm-ribbon-m { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }
.prm-ribbon-t { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
@media (min-width: 1200px) { .prm-ribbon-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); overflow: visible; } }

/* Month pages */
.prm-months { padding-top: 48px; padding-bottom: 56px; }
.prm-months-head h2 { font-size: clamp(28px, 5vw, 36px); font-weight: 600; line-height: 1.15; }
.prm-months-head p { margin-top: 8px; max-width: 720px; color: var(--muted); }
.prm-mp-list { display: grid; gap: 28px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .prm-mp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.prm-mp { min-width: 0; scroll-margin-top: calc(var(--prm-top) + 16px); }
.prm-mp article { height: 100%; background: #fdfbf6; border: 1px solid #ece5d6; box-shadow: 0 1px 2px rgba(31, 41, 55, .05), 0 14px 36px rgba(31, 41, 55, .07); }
.prm-mp-photo img { width: 100%; height: auto; aspect-ratio: 640 / 477; object-fit: cover; }
.prm-mp-body { padding: 14px 14px 18px; }
@media (min-width: 640px) { .prm-mp-body { padding: 18px 24px 24px; } }
.prm-mp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding-bottom: 8px; }
.prm-mp-head h3 { font-size: clamp(28px, 6vw, 38px); font-weight: 600; line-height: 1.15; color: #9c7a38; }
.prm-mp-head h3:lang(hi), .prm-mp-head h3:lang(mr) { font-family: "Noto Sans Devanagari", var(--serif); }
.prm-mp-year { color: var(--ink); font-weight: 400; }
.prm-mp-head p { font-family: var(--serif); font-style: italic; font-size: 15px; color: #3b4452; }
.prm-mp-head p small { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; line-height: 1.4; color: var(--muted); }
.prm-mp-grid, .prm-pan-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.prm-dow { min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.prm-dow.is-sun { color: var(--hol); }
.prm-day { position: relative; min-width: 0; min-height: 46px; padding: 5px 3px 4px; border-bottom: 1px solid #f1ebdf; }
.prm-dn { display: block; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.prm-day.is-sun .prm-dn { color: var(--hol); font-weight: 600; }
.prm-day.is-marked .prm-dn { color: var(--hol); font-weight: 700; }
.prm-day.is-marked::after { content: ""; display: block; width: 6px; height: 6px; margin: 2px auto 0; border-radius: 50%; background: var(--hol); }
.prm-dl { display: none; }
@media (min-width: 640px) {
    .prm-day { min-height: 64px; padding: 6px 4px; }
    .prm-dn { text-align: left; font-size: 17px; }
    .prm-day.is-marked::after { display: none; }
    .prm-dl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.2; color: var(--hol); }
    /* A name with a word wider than the cell: one line with an ellipsis, never cut mid-word (JS adds the class; the full name is in the list below). */
    .prm-dl.is-cut { display: block; white-space: nowrap; text-overflow: ellipsis; }
}
.prm-mp-events { display: grid; gap: 8px 24px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .prm-mp-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prm-ev { display: flex; gap: 10px; min-width: 0; font-size: 14px; }
.prm-ev-d { flex: 0 0 26px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hol); }
.prm-ev-name { min-width: 0; }
.prm-ev-name small { display: block; font-size: 13px; color: var(--muted); }
.prm-ev-vrat .prm-ev-d { color: var(--vrat); }
.prm-ev-jayanti .prm-ev-d { color: var(--jay); }
.prm-ev-holiday .prm-ev-d, .prm-ev-national .prm-ev-d { color: var(--off); }
.prm-mp-none { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.prm-months-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* Panchang (panchang collections only) */
.prm-pan { padding: 56px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: "Noto Sans Devanagari", var(--sans); }
.prm-pan :lang(en) { font-family: var(--sans); }
.prm-pan h2 { margin-top: 8px; font-family: "Noto Sans Devanagari", var(--serif); font-size: clamp(30px, 6vw, 40px); font-weight: 600; line-height: 1.25; }
.prm-pan-lede { margin-top: 8px; max-width: 760px; color: var(--muted); }
.prm-pan-lede span { display: block; margin-top: 4px; font-size: 15px; }
.prm-pan-nav ol { display: flex; gap: 6px; margin: 24px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: thin; }
.prm-pan-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--ivory); font-size: 15px; white-space: nowrap; text-decoration: none; }
.prm-pan-nav a:hover { border-color: #9c7a38; }
.prm-pan-nav a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.prm .prm-pan-nav a:focus-visible { outline-offset: -3px; box-shadow: none; }
@media (min-width: 640px) { .prm-pan-nav ol { flex-wrap: wrap; margin-left: 0; margin-right: 0; padding: 0; overflow: visible; } }
.prm-pan-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; }
.prm-pan-legend li { display: inline-flex; align-items: center; gap: 6px; }
.prm-pan-legend span { width: 12px; height: 12px; border-radius: 50%; background: var(--hol); }
.prm-pan-legend .prm-ev-vrat span { background: var(--vrat); }
.prm-pan-legend .prm-ev-jayanti span { background: var(--jay); }
.prm-pan-legend .prm-ev-holiday span { background: var(--off); }
.prm-pan-legend-sun span { border-radius: 0; background: rgba(180, 68, 58, .12); border: 1px solid var(--hol); }
.prm-pan-month { margin-top: 20px; scroll-margin-top: calc(var(--prm-top) + 16px); }
.prm-pan-month h3 { font-family: "Noto Sans Devanagari", var(--serif); font-size: 26px; font-weight: 600; }
.prm-pan-month h3 span { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--muted); }
.prm-pan-grid { margin-top: 10px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.prm-pan-grid > li { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prm-pday { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 4px; overflow: hidden; }
.prm-pday.is-sun { background: rgba(180, 68, 58, .06); }
.prm-pday-n { font-size: 17px; font-weight: 600; line-height: 1.2; }
.prm-pday.is-sun .prm-pday-n { color: var(--hol); }
.prm-pday-t { font-size: 13px; line-height: 1.25; color: var(--ink); }
.prm-pday-e { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--hol); }
.prm-pday-e.prm-ev-vrat { color: var(--vrat); }
.prm-pday-e.prm-ev-jayanti { color: var(--jay); }
.prm-pday-e.prm-ev-holiday { color: var(--off); }
/* Phones: the grid keeps a readable width and scrolls sideways inside its box. */
.prm-pan-scroll { overflow-x: auto; scrollbar-width: thin; }
@media (max-width: 639px) { .prm-pan-grid { min-width: 600px; } }
@media (min-width: 1024px) { .prm-pday { min-height: 96px; padding: 6px 8px; } .prm-pday-n { font-size: 20px; } }
.prm-pan-notes { display: grid; gap: 8px; margin-top: 24px; max-width: 860px; font-size: 14px; color: var(--muted); }
.prm-pan-muhurat { font-size: 15px; font-weight: 600; color: #7a2e2a; }
@media (min-width: 1024px) { .prm-pan { padding: 80px 0; } }

/* About and more collections */
.prm-about { padding: 48px 0; background: var(--paper); }
.prm-about h2 { font-size: clamp(26px, 4.6vw, 34px); font-weight: 600; line-height: 1.2; }
.prm-about p { margin-top: 12px; max-width: 760px; font-size: 16px; line-height: 1.7; }
.prm-sib { padding-top: 48px; padding-bottom: 64px; }
.prm-sib h2 { font-size: clamp(26px, 4.6vw, 34px); font-weight: 600; }
.prm-sib-more { margin-top: 24px; }

/* Phone buy bar, above master's fixed .pp-bottom-nav (60px, shown below 992px); JS sets --prm-bnav to 0 while the nav is slid away */
.prm-bar { position: fixed; left: 0; right: 0; bottom: var(--prm-bnav, 60px); transition: bottom .3s ease; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(31, 41, 55, .08); }
.prm-bar-name { min-width: 0; line-height: 1.25; }
.prm-bar-name > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.prm-bar-title { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.prm-bar-price { font-size: 13px; color: var(--muted); }
.prm-bar .prm-btn { flex: 0 0 auto; }
@media (min-width: 992px) { .prm-bar { display: none !important; } }
/* While the bar shows, lift the site's floating WhatsApp and chat buttons above it (as led-photo-frames.css does). */
@media (max-width: 991px) {
    html.prm-bar-on .watsapp_btn { bottom: calc(var(--prm-bnav, 60px) + 76px + env(safe-area-inset-bottom, 0px)) !important; z-index: 9985 !important; }
    html.prm-bar-on #ppChatbot.pp-chatbot { bottom: calc(var(--prm-bnav, 60px) + 140px + env(safe-area-inset-bottom, 0px)) !important; z-index: 9985 !important; }
}
@media (prefers-reduced-motion: reduce) { .prm-bar { transition: none; } }
@media (max-width: 991px) { .prm-show { padding-bottom: 140px; } } /* last section clears the bar and the bottom nav */
.prm-fmt-price strong, .prm-bar-name strong { font-family: var(--sans); font-weight: 700; color: var(--ink); } /* Playfair has no ₹ glyph */
