/* The puja, aarti, stotra and chalisa pages (texts/build.mjs writes them). They load the
   calendar section's stylesheets for the breadcrumb, sections, facts and questions, and add
   their own look here. Each section has its own paper:
     aarti    a sheet lit by a lamp, the text centred as aarti books print it
     chalisa  a booklet page with a double frame, each chaupai on one line
     stotra   a manuscript page with a red margin and red verse numbers
     puja     a banana-leaf green guide with numbered steps
   There is no audio anywhere in these sections. */

[data-cal="aarti"] { --accent: #B4381B; --accent-on: #FFF2DD; --sheet: #FFF8EC; --sheet-edge: #F0C987; --sheet-ink: #4B1C0C; --rubric: #B4381B; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 8C60 24 61 36 50 46C39 36 40 24 50 8Z'/%3E%3Cpath d='M12 56H88C86 74 70 84 50 84C30 84 14 74 12 56Z'/%3E%3Crect x='30' y='86' width='40' height='6' rx='3'/%3E%3C/svg%3E"); } /* a diya */
[data-cal="chalisa"] { --accent: #C0571A; --accent-on: #FFF4E4; --sheet: #FFF6E6; --sheet-edge: #D98A3D; --sheet-ink: #3E1A0A; --rubric: #B0201B; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 24C38 16 22 14 8 16V80C22 78 38 80 50 88C62 80 78 78 92 80V16C78 14 62 16 50 24Z'/%3E%3Cpath d='M50 28V84' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E"); } /* an open booklet */
[data-cal="stotra"] { --accent: #27466E; --accent-on: #EEF2FA; --sheet: #FBF7EE; --sheet-edge: #CBB993; --sheet-ink: #1F2433; --rubric: #A8231A; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='6' y='22' width='88' height='14' rx='7'/%3E%3Crect x='6' y='43' width='88' height='14' rx='7'/%3E%3Crect x='6' y='64' width='88' height='14' rx='7'/%3E%3Cpath d='M30 12V88M70 12V88' stroke='%23000' stroke-width='4'/%3E%3C/svg%3E"); } /* palm-leaf manuscript bound with cords */
[data-cal="puja"] { --accent: #2F6B3A; --accent-on: #F2F9EC; --sheet: #FBF8EE; --sheet-edge: #C9B37A; --sheet-ink: #2A2414; --rubric: #9A2B1C; --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='22' r='11'/%3E%3Cpath d='M38 30C26 22 16 24 10 30C22 32 30 36 38 36ZM62 30C74 22 84 24 90 30C78 32 70 36 62 36Z'/%3E%3Cpath d='M34 38H66V44C80 50 84 62 80 72C76 84 64 90 50 90C36 90 24 84 20 72C16 62 20 50 34 44Z'/%3E%3C/svg%3E"); } /* a kalash */
@media (prefers-color-scheme: dark) {
  [data-cal="aarti"] { --sheet: #2A1D14; --sheet-edge: #6E4A22; --sheet-ink: #F7E3C4; --rubric: #F09A6E; }
  [data-cal="chalisa"] { --sheet: #2B1E14; --sheet-edge: #7A4A20; --sheet-ink: #F6E2C6; --rubric: #F28B7A; }
  [data-cal="stotra"] { --accent: #4F78B0; --sheet: #1F1D1B; --sheet-edge: #4B4232; --sheet-ink: #ECE4D2; --rubric: #F08A7A; }
  [data-cal="puja"] { --accent: #5FA76C; --accent-on: #10200F; --sheet: #1F1E16; --sheet-edge: #4B4229; --sheet-ink: #EEE6CF; --rubric: #F0937E; }
}
/* The calendar's page hides what overflows it, which would stop the reading tools from sticking. */
.cal-page.pt-main { overflow: visible; overflow-x: clip; }
.pt-main { --pt-size: 1; --ico-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='42' cy='42' r='26' fill='none' stroke='%23000' stroke-width='9'/%3E%3Cpath d='M62 62L86 86' stroke='%23000' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- the head of a page ---------- */
.pt-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 20px; max-width: 920px; margin: 12px 0 18px; }
.pt-head h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 44px); line-height: 1.3; color: var(--cal-heading); }
.pt-lede { margin-top: 4px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.pt-kicker { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.pt-kicker a { color: inherit; }
.pt-label { display: inline-block; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: 13px; }
.pt-head .cal-emblem { position: relative; display: block; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--accent) 40%, transparent); }
.pt-head .cal-emblem::after { content: ""; position: absolute; inset: 18px; background: var(--accent-on); -webkit-mask: var(--motif) center / contain no-repeat; mask: var(--motif) center / contain no-repeat; }
.pt-deity { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--accent) 50%, transparent); }
.pt-deity.is-glyph { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font-family: var(--font-display); line-height: 1; }
.pt-about { margin-bottom: 8px; }
@media (max-width: 560px) {
  .pt-head { grid-template-columns: 1fr; }
  .pt-head > .pt-deity, .pt-head > .cal-emblem { width: 56px !important; height: 56px !important; }
}

/* ---------- reading tools ---------- */
.pt-tools { position: sticky; top: 68px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 calc(var(--gutter) * -1) 12px; padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.pt-seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); }
.pt-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pt-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-on); }
.pt-seg.is-size button { min-width: 44px; padding: 0 10px; font-family: var(--font-display); font-size: 17px; }
.pt-tool { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface-raised); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.pt-tool::-webkit-details-marker { display: none; }
.pt-tool:hover { border-color: var(--gold); }
.pt-tool[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.pt-copy { position: relative; }
.pt-copy > div { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; display: grid; min-width: 210px; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 30px -18px rgba(60, 25, 5, .45); }
.pt-copy > div button { padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.pt-copy > div button:hover { background: var(--wash, var(--primary-subtle)); }
/* The toast is moved out of the toolbar by paath.js: the toolbar's blur would otherwise hold it in place. */
.pt-toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: 15px; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(40, 15, 5, .5); }
.pt-toast:empty { display: none; }
@media (max-width: 640px) {
  .pt-tools { gap: 6px; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pt-tools::-webkit-scrollbar { display: none; }
  .pt-tools > * { flex: none; }
  .pt-tool { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .pt-seg button { min-height: 32px; padding: 0 11px; font-size: 14px; }
  .pt-copy > div { position: fixed; top: auto; bottom: 16px; left: 16px; right: 16px; }
}

/* ---------- table of contents ---------- */
.pt-toc { max-width: 840px; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pt-toc summary { padding: 12px 16px; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; }
.pt-toc ol { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 0 16px 14px; list-style: none; }
.pt-toc a { display: inline-block; padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-size: 14.5px; text-decoration: none; }
.pt-toc a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- the text ---------- */
.pt-text { scroll-margin-top: 140px; }
.pt-sheet { position: relative; max-width: 860px; padding: 30px 34px 34px; border: 1px solid var(--sheet-edge); border-radius: 18px; background: var(--sheet); color: var(--sheet-ink); font-family: var(--font-display); }
.pt-sheet-title { display: none; }
.pt-block { scroll-margin-top: 140px; }
.pt-block + .pt-block { margin-top: calc(18px * var(--pt-size)); }
.pt-lines { display: grid; gap: 2px; font-size: calc(21px * var(--pt-size)); line-height: 1.75; overflow-wrap: anywhere; }
.pt-num { color: var(--rubric); white-space: nowrap; font-size: .9em; }
.pt-heading { margin: 22px 0 10px; color: var(--rubric); font-size: calc(17px * var(--pt-size)); text-align: center; letter-spacing: .04em; }
.pt-heading:first-of-type { margin-top: 0; }
.pt-repeat { margin-top: 4px; color: var(--rubric); font-size: calc(17px * var(--pt-size)); font-style: italic; opacity: .9; }
.pt-roman { display: none; margin-top: 6px; overflow-wrap: anywhere; color: color-mix(in srgb, var(--sheet-ink) 72%, transparent); font-family: Georgia, "Times New Roman", serif; font-size: calc(15.5px * var(--pt-size)); font-style: italic; line-height: 1.6; }
.pt-page.is-roman .pt-roman { display: block; }
.pt-gloss { display: none; margin-top: 10px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--text); font-family: var(--font-sans, inherit); }
.pt-page[data-mode="meaning"] .pt-gloss { display: block; }
.pt-meaning { font-size: calc(16.5px * var(--pt-size)); line-height: 1.7; }
.pt-meaning b { color: var(--accent); }
.pt-words { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: calc(14.5px * var(--pt-size)); }
.pt-words div { display: inline-flex; gap: 6px; }
.pt-words dt { font-family: var(--font-display); font-weight: 700; color: var(--sheet-ink); }
.pt-words dt::after { content: ":"; }
.pt-words dd { color: var(--muted); }
.pt-hint { max-width: 860px; margin-top: 10px; color: var(--muted); font-size: 15px; }
.pt-page[data-mode="meaning"] .pt-hint, .pt-page[data-mode="meaning"] .pt-arth { display: none; }

/* aarti: centred, lit from above */
.pt-sheet.is-aarti { text-align: center; background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, #FFC56B 30%, var(--sheet)), var(--sheet) 60%); border-top: 4px solid var(--accent); }
.pt-sheet.is-aarti::before { content: ""; display: block; width: 46px; height: 46px; margin: -8px auto 14px; background: var(--accent); -webkit-mask: var(--motif) center / contain no-repeat; mask: var(--motif) center / contain no-repeat; }
.pt-sheet.is-aarti .pt-block.is-mukhda .pt-lines { font-size: calc(23px * var(--pt-size)); font-weight: 700; color: var(--rubric); }
.pt-sheet.is-aarti .pt-gloss { text-align: left; }
.pt-sheet.is-aarti .pt-block.is-phala .pt-lines { color: color-mix(in srgb, var(--sheet-ink) 80%, var(--accent)); }

/* chalisa: a booklet page, each chaupai on one line where there is room */
.pt-sheet.is-chalisa { border: 0; outline: 2px solid var(--sheet-edge); outline-offset: -10px; box-shadow: inset 0 0 0 14px var(--sheet), inset 0 0 0 15px color-mix(in srgb, var(--sheet-edge) 60%, transparent); padding: 38px 40px 40px; }
.pt-sheet.is-chalisa .pt-block.is-doha, .pt-sheet.is-chalisa .pt-block.is-sortha { text-align: center; }
.pt-sheet.is-chalisa .pt-block.is-doha .pt-lines, .pt-sheet.is-chalisa .pt-block.is-sortha .pt-lines { color: var(--rubric); }
.pt-sheet.is-chalisa .pt-block.is-doha .pt-gloss, .pt-sheet.is-chalisa .pt-block.is-sortha .pt-gloss { text-align: left; }
.pt-sheet.is-chalisa .pt-block.is-chaupai + .pt-block.is-chaupai { margin-top: calc(8px * var(--pt-size)); }
@media (min-width: 760px) {
  .pt-sheet.is-chalisa .pt-block.is-chaupai .pt-lines { grid-template-columns: 1fr 1fr; column-gap: 26px; align-items: baseline; }
}
@media (max-width: 640px) {
  .pt-sheet.is-chalisa .pt-block.is-doha .pt-lines, .pt-sheet.is-chalisa .pt-block.is-sortha .pt-lines { font-size: calc(18px * var(--pt-size)); }
}

/* stotra: a manuscript with a red margin rule and red verse numbers */
.pt-sheet.is-stotra { padding-left: 56px; background-image: linear-gradient(90deg, transparent 38px, color-mix(in srgb, var(--rubric) 55%, transparent) 38px, color-mix(in srgb, var(--rubric) 55%, transparent) 40px, transparent 40px); }
.pt-sheet.is-stotra .pt-lines { font-size: calc(22px * var(--pt-size)); }
.pt-sheet.is-stotra .pt-block.is-viniyoga .pt-lines, .pt-sheet.is-stotra .pt-block.is-prose .pt-lines { font-size: calc(18px * var(--pt-size)); color: color-mix(in srgb, var(--sheet-ink) 78%, transparent); }
.pt-sheet.is-stotra .pt-block.is-dhyana .pt-lines { color: var(--accent); }
.pt-sheet.is-stotra .pt-block.is-phala { padding-left: 12px; border-left: 2px dotted var(--rubric); }

@media (max-width: 640px) {
  .pt-sheet { padding: 22px 18px 24px; border-radius: 14px; }
  .pt-sheet.is-chalisa { padding: 30px 24px 30px; }
  .pt-sheet.is-stotra { padding-left: 34px; background-image: linear-gradient(90deg, transparent 20px, color-mix(in srgb, var(--rubric) 55%, transparent) 20px, color-mix(in srgb, var(--rubric) 55%, transparent) 22px, transparent 22px); }
  .pt-lines { font-size: calc(19.5px * var(--pt-size)); }
  .pt-sheet.is-stotra .pt-lines { font-size: calc(20px * var(--pt-size)); }
}

/* reading mode: nothing but the text, large, on the whole screen */
body.pt-focus .site-header, body.pt-focus .site-footer, body.pt-focus .cal-crumbs, body.pt-focus .pt-head, body.pt-focus .pt-toc, body.pt-focus .pt-sec, body.pt-focus .pt-hint, body.pt-focus .skip { display: none !important; }
body.pt-focus .pt-tools { top: 0; }
body.pt-focus .pt-tools [data-act="focus"] { order: -1; border-color: var(--accent); background: var(--accent); color: var(--accent-on); }
body.pt-focus .pt-sheet { max-width: 900px; margin: 0 auto; }
body.pt-focus .pt-sheet-title { display: block; margin-bottom: 18px; color: var(--rubric); font-size: calc(26px * var(--pt-size)); text-align: center; }

/* ---------- sections below the text ---------- */
.pt-sec { scroll-margin-top: 140px; }
.pt-list { display: grid; gap: 8px; max-width: 840px; padding-left: 22px; }
.pt-list li { font-size: 16.5px; line-height: 1.7; }
.pt-list li::marker { color: var(--accent); }
.pt-meanings { display: grid; gap: 12px; max-width: 860px; list-style: none; }
.pt-meanings li { padding: 14px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pt-mq { display: block; color: var(--cal-heading); font-family: var(--font-display); font-size: 18px; line-height: 1.6; text-decoration: none; }
.pt-mq:hover { text-decoration: underline; }
.pt-ml { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-family: var(--font-sans, inherit); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.pt-meanings p { margin-top: 6px; font-size: 16px; line-height: 1.7; }
.pt-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; max-width: 980px; }
.pt-glossary div { padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pt-glossary dt { font-family: var(--font-display); font-size: 18px; color: var(--cal-heading); }
.pt-glossary dd { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pt-phala { display: grid; gap: 12px; max-width: 860px; margin-top: 14px; }
.pt-phala blockquote { padding: 14px 18px; border-left: 3px solid var(--rubric); border-radius: 0 14px 14px 0; background: var(--surface); }
.pt-phala p[lang] { font-family: var(--font-display); font-size: 19px; line-height: 1.7; color: var(--sheet-ink); }
.pt-mean { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.pt-review { max-width: 840px; margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.pt-next { display: grid; gap: 2px; max-width: 620px; margin-top: 16px; padding: 14px 18px; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; }
.pt-next span { color: var(--accent); font-size: 13px; font-weight: 700; }
.pt-next b { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--cal-heading); }
.pt-next small { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.pt-next:hover { border-color: var(--accent); }
.pt-next.is-aarti { border-color: color-mix(in srgb, #B4381B 50%, var(--border)); }
.pt-next.is-aarti span { color: #B4381B; }
.pt-fix { margin-top: 6px; }

/* tables that fold into cards on a phone */
.pt-table-wrap { max-width: 980px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.pt-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.pt-table th, .pt-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.55; }
.pt-table thead th { border-bottom: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--muted); font-size: 13.5px; font-weight: 700; }
.pt-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .pt-table-wrap { border: 0; background: none; overflow: visible; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: 100%; }
  .pt-table thead { display: none; }
  .pt-table tr { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .pt-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 6px 0; border: 0; }
  .pt-table td::before { content: attr(data-th); color: var(--muted); font-size: 13px; font-weight: 700; }
  .pt-table td > .pu-status { justify-self: start; }
}

/* ---------- cards, tiles and the finder ---------- */
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.pt-card { display: grid; grid-template-rows: auto 1fr; gap: 10px; padding: 16px 18px; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 16px; background: var(--surface); }
.pt-card[hidden] { display: none; }
.pt-card.is-aarti { --accent: #B4381B; } .pt-card.is-chalisa { --accent: #C0571A; } .pt-card.is-stotra { --accent: #27466E; } .pt-card.is-puja { --accent: #2F6B3A; }
@media (prefers-color-scheme: dark) { .pt-card.is-stotra { --accent: #4F78B0; } .pt-card.is-puja { --accent: #5FA76C; } }
.pt-card header { display: flex; align-items: center; gap: 12px; }
.pt-card h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.pt-card h3 a { color: var(--text); text-decoration: none; }
.pt-card h3 a::after { content: ""; position: absolute; inset: 0; }
.pt-card { position: relative; }
.pt-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pt-card header p { color: var(--muted); font-size: 13.5px; }
.pt-type { color: var(--accent); font-weight: 700; }
.pt-card-text { color: var(--muted); font-size: 16px; line-height: 1.6; }
.pt-card-text[lang] { color: var(--text); font-family: var(--font-display); font-size: 18px; }
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, calc(50% - 5px)), 1fr)); gap: 10px; }
@media (max-width: 480px) { .pt-tile { gap: 9px; padding: 8px 10px; } .pt-tile .pt-deity { width: 40px; height: 40px; } .pt-tile b { font-size: 15.5px; } .pt-tile small { font-size: 12.5px; } }
.pt-tile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; }
.pt-tile:hover { border-color: var(--accent); }
.pt-tile b { display: block; font-size: 16.5px; }
.pt-tile small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--muted); font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.pt-group + .pt-group { margin-top: 26px; }
.pt-group[hidden] { display: none; }
.pt-group-h { margin: 18px 0 12px; color: var(--cal-heading); font-family: var(--font-display); font-size: 22px; }
.pt-finder { margin: 0 0 8px; }
.pt-search { position: relative; display: block; max-width: 620px; }
.pt-search input { width: 100%; min-height: 54px; padding: 0 18px 0 52px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 17px; }
.pt-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.pt-search-icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--muted); -webkit-mask: var(--ico-search) center / contain no-repeat; mask: var(--ico-search) center / contain no-repeat; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pt-chips button { min-height: 40px; padding: 0 15px; border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface-raised); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pt-chips button:hover { border-color: var(--gold); }
.pt-chips button.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-on); }
.pt-found { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.pt-found:empty { display: none; }

/* ---------- puja ---------- */
.pu-scope { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; max-width: 860px; margin-bottom: 8px; padding: 14px 18px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.pu-scope-tag { padding: 2px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-on); font-size: 14px; font-weight: 700; }
.pu-scope p { flex: 1 1 260px; font-size: 15.5px; line-height: 1.6; }
.pu-key { display: flex; flex-wrap: wrap; gap: 6px 20px; max-width: 980px; margin-bottom: 12px; color: var(--muted); font-size: 14px; list-style: none; }
.pu-key li { display: flex; align-items: center; gap: 8px; }
.pt-list + .cal-pills, .pt-list + .cal-prose, .cal-prose + .pt-list { margin-top: 14px; }
.pu-status { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pu-status.is-need { background: color-mix(in srgb, #9A2B1C 14%, transparent); color: #9A2B1C; }
.pu-status.is-opt { background: color-mix(in srgb, #2F6B3A 14%, transparent); color: #2F6B3A; }
.pu-status.is-trad { background: color-mix(in srgb, #8A6A12 16%, transparent); color: #7A5C0E; }
@media (prefers-color-scheme: dark) { .pu-status.is-need { color: #F0937E; } .pu-status.is-opt { color: #8BD097; } .pu-status.is-trad { color: #E2BC6A; } }
.pu-materials td:first-child b { font-weight: 700; }
.pu-sankalp { max-width: 820px; margin: 12px 0; padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--surface); }
.pu-sankalp p { font-family: var(--font-display); font-size: 19px; line-height: 1.7; color: var(--cal-heading); }
.pu-sub { margin: 20px 0 10px; font-size: 18px; color: var(--cal-heading); }
.pu-path { max-width: 820px; margin: 4px 0; padding: 14px 18px; border: 1px solid var(--sheet-edge); border-radius: 14px; background: var(--sheet); }
.pu-path-text { color: var(--sheet-ink); font-family: var(--font-display); font-size: 19px; line-height: 1.7; }
.pu-path-mean { margin-top: 6px; font-size: 15.5px; line-height: 1.65; }
.pu-path-mean b { color: var(--accent); }
.pu-path-from { margin-top: 6px; color: var(--muted); font-size: 14px; }
.pu-steps { position: relative; display: grid; gap: 16px; max-width: 900px; list-style: none; }
.pu-steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.pu-step { position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); scroll-margin-top: 140px; }
.pu-step h3 { font-size: 19px; line-height: 1.4; color: var(--cal-heading); }
.pu-n { position: absolute; left: 4px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-on); font-size: 17px; font-weight: 700; box-shadow: 0 0 0 4px var(--bg); }
.pu-rows { display: grid; gap: 8px; margin-top: 10px; }
.pu-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.pu-row dt { color: var(--accent); font-size: 14px; font-weight: 700; padding-top: 2px; }
.pu-row dd { font-size: 16px; line-height: 1.7; }
.pu-row.is-bhav dd { font-style: italic; color: var(--muted); }
.pu-row.is-alt dd { color: var(--muted); }
@media (max-width: 560px) {
  .pu-steps::before { left: 17px; }
  .pu-step { padding: 14px 14px 14px 48px; }
  .pu-n { left: 0; width: 34px; height: 34px; font-size: 15px; }
  .pu-row { grid-template-columns: 1fr; gap: 2px; }
}
.pu-short { display: grid; gap: 8px; max-width: 760px; padding: 18px 22px 18px 44px; border: 1.5px solid color-mix(in srgb, var(--accent) 40%, var(--border)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.pu-short li { font-size: 16.5px; line-height: 1.6; }
.pu-short li::marker { color: var(--accent); font-weight: 700; }

/* ---------- print: the text, and its meaning when it is shown ---------- */
@media print {
  .site-header, .site-footer, .cal-crumbs, .pt-tools, .pt-toc, .pt-hint, .skip, .pt-head > .pt-deity,
  .pt-page:not(.is-puja) .pt-sec, .wrap > .pt-sec, #sambandhit, #aur, .pt-fix { display: none !important; }
  .pu-step, .pu-path { break-inside: avoid; }
  .pt-head { display: block; margin: 0 0 12px; }
  .pt-lede { display: none; }
  .pt-sheet { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; }
  .pt-sheet.is-aarti::before { display: none; }
  .pt-block { break-inside: avoid; }
  .pt-gloss { background: none; }
  .pt-main::after { content: "dailybhakti.app"; display: block; margin-top: 20px; color: #777; font-size: 11px; }
}
