:root {
  color-scheme: light;
  --black: #111111;
  --heading: #000000;
  --white: #ffffff;
  --ink: #202020;
  --muted: #595959;
  --line: #dedede;
  --canvas: #ffffff;
  --reading-size: 18px;
  font-family: "Segoe UI", "Nirmala UI", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, .button { min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #777777; outline-offset: 4px; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: -70px; left: 20px; background: white; padding: 12px 20px; }
.skip-link:focus { top: 10px; }
.boot { padding: 48px; }
.app-layout { display: grid; grid-template-columns: 266px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--black); color: #f5f5f5; position: sticky; top: 0; height: 100dvh; padding: 35px 20px 24px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-size: 29px; font-weight: 650; letter-spacing: -.025em; padding: 0 8px; }
.brand-symbol { color: var(--white); display: flex; }
.brand-symbol svg { width: 32px; height: 38px; }
.brand-subtitle { display: block; font-size: 11px; color: #d5d5d5; font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.nav-label { color: #d5d5d5; margin: 46px 12px 16px; font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.topic-nav { display: flex; flex-direction: column; gap: 5px; }
.topic-nav a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 13px 14px; border-radius: 4px; color: #e6e6e6; font-size: 14px; min-height: 47px; line-height: 1.5; }
.topic-nav a:hover { background: #454545; color: white; }
.topic-nav a[aria-current="page"] { background: #f2f2f2; color: var(--heading); font-weight: 650; }
.nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; }
.topic-nav a[aria-current] .nav-dot { opacity: 1; }
.topic-nav .library-nav { margin-top: 21px; padding-top: 17px; border-top: 1px solid #6a6a6a; border-radius: 0; }
.library-nav svg { width: 16px; }
.sidebar-bottom { margin-top: auto; padding: 40px 12px 0; }
.sidebar-bottom p:first-child { color: var(--white); font-size: 14px; line-height: 1.8; }
.sidebar-bottom p:nth-child(2) { font-size: 12px; color: #d5d5d5; margin-top: 8px; line-height: 1.7; }
.sidebar-bottom a { font-size: 11px; display: inline-flex; align-items: center; gap: 5px; color: #e3e3e3; margin-top: 19px; }
.sidebar-bottom svg { width: 12px; height: 12px; }
.workspace { min-width: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; border-bottom: 1px solid var(--line); padding: 16px 4.5%; background: #ffffff; }
.search-form { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; max-width: 560px; color: var(--muted); }
.search-form input { border: 0; outline-offset: 2px; min-width: 0; width: 100%; background: transparent; font-size: 14px; padding: 12px 2px; color: var(--ink); }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-submit { border: 0; background: none; font-size: 12px; color: var(--black); padding: 0 8px; }
.search-submit:hover { text-decoration: underline; }
.toolbar-actions { display: flex; align-items: center; gap: 17px; }
.language-switch { display: flex; align-items: center; background: var(--canvas); padding: 3px; border-radius: 5px; }
.language-switch button { font-size: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 3px; }
.language-switch button[aria-pressed="true"] { color: var(--black); border-color: var(--line); background: white; font-weight: 600; }
.share-button { border: 0; background: transparent; display: flex; gap: 7px; align-items: center; color: var(--black); font-size: 13px; }
.share-button svg { width: 17px; }
main { padding: 28px 5.5% 0; max-width: 1380px; margin: 0 auto; outline: none; }
.reading-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.reading-tools button { font-size: 13px; padding: 0 11px; color: var(--black); border: 1px solid var(--line); background: transparent; }
.reading-tools button:first-child { border-radius: 4px 0 0 4px; }
.reading-tools button + button { border-left: 0; border-radius: 0 4px 4px 0; }
.topic-intro { margin-bottom: 32px; padding: 10px 0 0; }
.topic-intro h1 { font-size: clamp(34px, 3.5vw, 53px); font-weight: 600; line-height: 1.13; letter-spacing: -.035em; max-width: 720px; color: var(--heading); }
.intro-copy { font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 61ch; margin-top: 22px; }
.with-photo { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 45px; align-items: center; margin-bottom: 28px; padding-top: 0; }
.with-photo h1 { max-width: 470px; }
.with-photo .intro-copy { max-width: 44ch; }
.devotional-photo { margin: 0; }
.devotional-photo img { display: block; width: 100%; height: 290px; object-fit: cover; object-position: center 35%; border-radius: 100px 100px 3px 3px; }
.devotional-photo figcaption { font-size: 10px; text-align: center; color: var(--muted); margin-top: 9px; line-height: 1.5; }
.sharanam { color: #565656; font-size: 17px; margin-top: 25px; line-height: 1.9; }
.edition-label { color: var(--muted); font-size: 11px; margin-top: 24px; }
.editorial-banner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; display: flex; gap: 13px; margin-bottom: 12px; font-size: 13px; line-height: 1.8; }
.editorial-banner svg { margin-top: 3px; color: var(--black); width: 18px; }
.editorial-banner p { font-weight: 600; }
.editorial-banner span { display: block; color: var(--muted); font-weight: 400; }
.reading-layout { display: grid; grid-template-columns: minmax(0,1fr) 166px; gap: 44px; align-items: start; }
.reading-column { min-width: 0; }
.reading-section { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.reading-section h2 { font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; margin-bottom: 15px; color: var(--heading); }
.reading-section p, .reading-list, .checklist { font-size: var(--reading-size); line-height: 1.85; max-width: 70ch; }
.reading-section p { overflow-wrap: anywhere; }
.reading-list { padding-left: 22px; margin: 18px 0 0; }
.reading-list li { padding-left: 5px; margin-top: 10px; }
.reading-list li::marker { color: #626262; }
.section-status { font-size: 11px !important; color: #595959; font-weight: 600; margin-bottom: 10px; background: #ececec; display: inline-block; padding: 4px 10px; border-radius: 3px; }
.reading-section .editorial-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 15px; }
.citations { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.citations a { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; width: fit-content; font-size: 11px; color: #5d5d5d; line-height: 1.8; text-decoration-thickness: 1px; }
.citations svg { width: 12px; height: 12px; }
.citations span { color: var(--muted); }
.on-this-page { position: sticky; top: 28px; padding-top: 37px; }
.on-this-page h2 { font-size: 11px; font-weight: 650; margin-bottom: 18px; }
.on-this-page nav { display: grid; gap: 17px; }
.on-this-page a { font-size: 12px; color: var(--muted); text-decoration: none; line-height: 1.65; }
.on-this-page a:hover { color: var(--black); text-decoration: underline; }
.on-this-page p { font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.checklist { margin: 23px 0 0; padding: 0; border: none; }
.checklist legend { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.checklist label { display: flex; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.checklist input { width: 19px; height: 19px; accent-color: var(--black); flex-shrink: 0; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.prayer { margin: 25px 0 0; padding: 25px 0 0; border-top: 1px solid #b7b7b7; }
.prayer blockquote { margin: 0; font-size: calc(var(--reading-size) + 3px); line-height: 2; color: var(--black); }
.prayer figcaption { margin-top: 12px; font-size: 11px; color: var(--muted); }
.related { margin-top: 37px; display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 45px; }
.related h2 { flex-basis: 100%; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.related a { text-decoration: none; border: 1px solid #d0d0d0; padding: 13px 16px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 3px; min-height: 48px; background: white; }
.related a:hover { background: #eeeeee; }
.related svg { width: 16px; }
.footer { border-top: 1px solid var(--line); padding: 25px 0 30px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.library-summary { background: #ececec; border-radius: 4px; padding: 24px; margin-bottom: 30px; line-height: 1.85; font-size: 15px; max-width: 80ch; }
.library-summary a { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--black); font-weight: 600; }
.library-summary svg { width: 15px; }
.inventory-count { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.library-help { font-size: 13px; line-height: 1.8; max-width: 80ch; color: var(--muted); margin-bottom: 22px; }
.source-group { border-top: 1px solid var(--line); }
.source-group:last-child { margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.source-group summary { cursor: pointer; padding: 21px 5px; font-size: 16px; color: var(--black); font-weight: 600; overflow-wrap: anywhere; }
.source-group summary span { float: right; font-size: 12px; font-weight: 400; color: var(--muted); }
.source-group ul { list-style: none; padding: 0 0 10px 24px; margin: 0; }
.source-group li { padding: 15px 0; border-top: 1px solid var(--line); }
.source-group li a { font-size: 14px; line-height: 1.8; display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; word-break: break-word; }
.source-group li svg { width: 13px; height: 13px; }
.source-status { font-size: 11px; line-height: 1.8; color: #5e5e5e; margin-top: 6px; }
.source-status.readable { color: #595959; }
.quick-access { margin: 28px 0 32px; padding: 25px; background: #ececec; border-radius: 4px; }
.quick-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.quick-heading h2 { font-size: 22px; line-height: 1.5; color: var(--heading); }
.quick-access > p { font-size: 13px; line-height: 1.8; margin: 12px 0 19px; color: #5a5a5a; max-width: 75ch; }
.phase-switch { display: flex; gap: 4px; flex-shrink: 0; }
.phase-switch button { background: transparent; border: 1px solid #bfbfbf; padding: 5px 12px; font-size: 11px; border-radius: 3px; color: var(--black); }
.phase-switch [aria-pressed="true"] { background: var(--black); color: white; border-color: var(--black); }
.quick-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.quick-links a { display: flex; gap: 12px; align-items: center; justify-content: space-between; text-decoration: none; padding: 16px 0; border-top: 1px solid #c8c8c8; font-size: 14px; line-height: 1.7; color: var(--heading); }
.quick-links a:hover { text-decoration: underline; }
.quick-links svg, .daily-shortcuts svg { width: 16px; height: 16px; }
.daily-shortcuts { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 17px; }
.daily-shortcuts a { display: inline-flex; align-items: center; gap: 15px; font-size: 12px; font-weight: 650; min-height: 44px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 24px; }
.category-tabs a { padding: 10px 14px; min-height: 44px; border: 1px solid #cdcdcd; border-radius: 3px; text-decoration: none; font-size: 12px; line-height: 1.9; }
.category-tabs [aria-current] { background: var(--black); color: white; border-color: var(--black); }
.chant-library { border-bottom: 1px solid var(--line); }
.chant-entry { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 27px 0; border-top: 1px solid var(--line); text-decoration: none; }
.chant-entry:hover h2 { text-decoration: underline; }
.chant-entry h2 { font-size: 22px; line-height: 1.5; font-weight: 600; }
.chant-entry p { font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 75ch; margin: 10px 0 14px; }
.availability { font-size: 11px; color: #5b5b5b; display: inline-block; line-height: 1.7; }
.reader-back { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; margin-bottom: 25px; }
.reader-back a { min-height: 44px; display: flex; align-items: center; }
.reader-back button, .reader-stepper button, .routine-progress button { border: 1px solid #c4c4c4; color: var(--black); background: white; padding: 9px 15px; border-radius: 3px; font-size: 12px; }
.reader-notice { background: #e9e9e9; color: #4d4d4d; padding: 16px; font-size: 13px; line-height: 1.9; margin: 15px 0 24px; }
.reader-controls { display: flex; flex-wrap: wrap; gap: 22px; background: white; border: 1px solid var(--line); padding: 15px; border-radius: 3px; }
.reader-controls label, .song-filter { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
select { background: white; border: 1px solid #b8b8b8; border-radius: 3px; padding: 10px; min-height: 44px; font: inherit; color: var(--black); max-width: 100%; }
select:focus-visible { outline: 3px solid #777777; outline-offset: 3px; }
.reader-language-note { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 18px 0 20px; max-width: 90ch; }
.chant-text { border-top: 1px solid var(--line); }
.chant-line { width: 100%; display: flex; gap: 22px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 22px 18px; color: var(--ink); align-items: baseline; }
.chant-line:hover { background: #eeeeee; }
.chant-line.current-verse { background: #e7e7e7; }
.verse-number { font-size: 12px; min-width: 24px; color: #626262; }
.verse-copy { display: grid; gap: 10px; font-size: calc(var(--reading-size) + 5px); line-height: 2; overflow-wrap: anywhere; min-width: 0; }
.single-verse { min-height: 240px; display: flex; align-items: center; border: 0; padding: 25px 0; }
.single-verse .chant-line { border: 1px solid #cdcdcd; border-radius: 4px; padding: 30px; }
.single-verse .verse-copy { font-size: calc(var(--reading-size) + 12px); }
.reader-stepper { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #ffffff; border-top: 1px solid #bababa; padding: 15px 0; margin: 0 0 24px; }
.reader-stepper p { font-size: 15px; text-align: center; }
.reader-stepper span { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.audio-note { margin: 20px 0 38px; color: var(--muted); font-size: 12px; line-height: 1.85; max-width: 85ch; }
.source-page { margin: 24px 0; border-block: 1px solid var(--line); padding: 16px 0; }
.source-page summary { cursor: pointer; min-height: 44px; line-height: 1.8; }
.source-page img { display: block; width: 100%; max-width: 780px; height: auto; margin-top: 16px; }
.source-page p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.reference-notice { background: #ececec; padding: 23px; margin: 20px 0 25px; }
.reference-notice h2 { font-size: 19px; line-height: 1.6; }
.reference-notice p { font-size: 14px; line-height: 1.9; margin-top: 12px; }
.song-catalogue { margin-top: 42px; }
.song-catalogue h2 { font-size: 24px; line-height: 1.6; }
.song-catalogue > p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 12px 0 20px; max-width: 75ch; }
.song-filter { margin: 22px 0; flex-wrap: wrap; }
.song-list { list-style: none; padding: 0; margin: 0; }
.song-list li { display: grid; gap: 9px; border-top: 1px solid var(--line); padding: 20px 0; }
.song-list li[hidden] { display: none; }
.song-list strong { font-size: 16px; font-weight: 600; line-height: 1.8; }
.song-list span { font-size: 11px; color: var(--muted); }
.song-list a { font-size: 11px; width: fit-content; display: inline-flex; align-items: center; gap: 7px; }
.song-list svg { width: 12px; height: 12px; }
.routine-progress { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.routine-progress strong { font-size: 16px; color: var(--black); }
.routine-progress span { font-size: 11px; color: var(--muted); }
.routine-progress button { margin-left: auto; }
.routine-checklist { padding: 0; margin: 12px 0 25px; border: none; }
.routine-checklist label { display: flex; align-items: baseline; gap: 17px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: var(--reading-size); line-height: 1.85; cursor: pointer; }
.routine-checklist input { width: 22px; height: 22px; accent-color: var(--black); flex-shrink: 0; }
.routine-checklist input:checked ~ span:last-child { text-decoration: line-through; color: var(--muted); }
.routine-index { font-size: 12px; color: var(--muted); }
.routine-chants { margin: 35px 0; }
.external-links { margin-top: 25px; display: flex; gap: 20px; flex-wrap: wrap; }
.external-links a { font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.external-links svg { width: 14px; height: 14px; }
.focus-reading .app-layout { display: block; }
.focus-reading .sidebar, .focus-reading .toolbar, .focus-reading .reading-tools, .focus-reading .footer { display: none; }
.focus-reading main { max-width: 950px; padding-top: 25px; padding-bottom: 30px; }
.focus-reading .topic-intro .intro-copy, .focus-reading .reader-language-note { display: none; }
.search-results { padding-bottom: 45px; }
.search-results > a { display: flex; align-items: center; justify-content: space-between; gap: 25px; text-decoration: none; padding: 26px 0; border-top: 1px solid var(--line); }
.search-results > a:hover h2 { text-decoration: underline; }
.search-results h2 { font-size: 22px; margin-bottom: 10px; }
.search-results p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 70ch; }
.empty-state, .error-box { padding: 30px 0 70px; }
.empty-state h2, .error-box h2 { font-size: 25px; margin-bottom: 15px; }
.empty-state p, .error-box p { max-width: 60ch; line-height: 1.8; margin: 16px 0 20px; }
.empty-state button, .error-box button, .button { border: 0; border-radius: 3px; color: white; background: var(--black); padding: 12px 18px; text-decoration: none; display: inline-block; }
.loading { padding: 30px 0 70px; color: var(--muted); }
dialog { width: min(520px, calc(100% - 36px)); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: 0 20px 80px #28282830; }
dialog::backdrop { background: #1e1e1e80; }
dialog h2 { font-size: 26px; margin: 10px 35px 20px 0; }
dialog p { font-size: 15px; line-height: 1.85; margin-top: 15px; }
.close-dialog { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--black); font-size: 27px; width: 44px; }
.share-url { display: block; font-size: 12px; margin: 20px 0 18px; }
.share-url input { display: block; padding: 12px; width: 100%; border: 1px solid var(--line); border-radius: 3px; margin-top: 7px; }
:lang(te) .topic-intro h1 { font-size: clamp(32px, 3vw, 45px); line-height: 1.5; letter-spacing: -.01em; }
:lang(te) .reading-section h2 { line-height: 1.7; }
:lang(te) .reading-section p, :lang(te) .reading-list { line-height: 2; }
@media (min-width: 1500px) {
  .app-layout { grid-template-columns: 290px minmax(0,1fr); }
  .sidebar { padding-left: 28px; padding-right: 28px; }
  .reading-layout { grid-template-columns: minmax(0,75ch) 190px; gap: 60px; }
}
@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 225px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 26px; gap: 10px; }
  .brand-subtitle { font-size: 10px; }
  main { padding-left: 6%; padding-right: 6%; }
  .reading-layout { grid-template-columns: minmax(0,1fr); gap: 0; }
  .on-this-page { position: static; grid-row: 1; padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
  .on-this-page h2 { margin-bottom: 10px; }
  .on-this-page nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .on-this-page a { text-decoration: underline; font-size: 12px; }
  .on-this-page p { display: none; }
  .with-photo { grid-template-columns: minmax(0,1fr) 165px; gap: 24px; }
  .devotional-photo img { height: 250px; }
  .toolbar { gap: 12px; }
  .toolbar-actions { gap: 8px; }
  .share-button span { display: none; }
  .topic-intro h1 { font-size: 38px; }
}
@media (max-width: 760px) {
  .app-layout { display: block; }
  .sidebar { position: static; height: auto; padding: 20px 0 0; overflow: visible; }
  .brand { font-size: 26px; padding: 0 22px; }
  .brand-subtitle { font-size: 11px; }
  .brand-symbol svg { width: 29px; height: 35px; }
  .nav-label, .sidebar-bottom { display: none; }
  .topic-nav { flex-direction: row; gap: 5px; overflow-x: auto; padding: 19px 18px 14px; scrollbar-width: thin; scrollbar-color: #8d8d8d var(--black); }
  .topic-nav a { flex-shrink: 0; padding: 10px 14px; min-height: 44px; font-size: 12px; white-space: nowrap; }
  .nav-dot { display: none; }
  .topic-nav .library-nav { margin: 0; padding: 10px 14px; border: none; border-radius: 4px; }
  .toolbar { padding: 12px 20px; flex-wrap: wrap; gap: 8px; min-height: 0; }
  .search-form { order: 2; flex-basis: 100%; max-width: none; border-top: 1px solid var(--line); }
  .search-form input { font-size: 14px; min-height: 44px; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .language-switch button { padding: 6px 15px; }
  .share-button span { display: inline; }
  main { padding: 20px 22px 0; }
  .reading-tools { font-size: 11px; margin-bottom: 20px; }
  .reading-tools button { min-height: 40px; padding: 0 13px; }
  .topic-intro { padding: 0; margin-bottom: 24px; }
  .topic-intro h1 { font-size: 35px; }
  .intro-copy { font-size: 16px; margin-top: 17px; line-height: 1.8; }
  .with-photo { grid-template-columns: minmax(0,1fr) 120px; gap: 18px; align-items: start; }
  .with-photo h1 { font-size: 33px; line-height: 1.15; }
  .with-photo .intro-copy { font-size: 14px; line-height: 1.85; margin-top: 15px; }
  .devotional-photo img { height: 200px; border-radius: 70px 70px 3px 3px; }
  .devotional-photo figcaption { font-size: 9px; }
  .sharanam { font-size: 12px; margin-top: 18px; }
  .edition-label { font-size: 10px; margin-top: 14px; line-height: 1.7; }
  .editorial-banner { margin-top: 6px; font-size: 12px; }
  .reading-section { padding: 29px 0; }
  .reading-section h2 { font-size: 23px; line-height: 1.45; }
  .reading-section p, .reading-list, .checklist { font-size: var(--reading-size); }
  .related { gap: 10px; margin-top: 28px; }
  .related a { font-size: 12px; gap: 14px; padding: 12px; }
  .library-summary { padding: 19px; font-size: 14px; }
  .source-group summary { font-size: 14px; }
  .source-group summary span { font-size: 11px; }
  .source-group ul { padding-left: 10px; }
  .source-group li a { font-size: 13px; }
  .source-status { font-size: 10px; }
  :lang(te) .with-photo { grid-template-columns: minmax(0,1fr) 100px; }
  :lang(te) .topic-intro h1 { font-size: 30px; }
  .quick-access { padding: 19px; margin-top: 24px; }
  .quick-heading { flex-wrap: wrap; gap: 13px; }
  .quick-heading h2 { font-size: 21px; }
  .quick-links { grid-template-columns: minmax(0,1fr); }
  .quick-links a { padding: 15px 0; }
  .daily-shortcuts { gap: 8px 20px; }
  .chant-entry h2 { font-size: 21px; }
  .chant-entry { gap: 15px; }
  .reader-controls { padding: 13px; gap: 15px; }
  .reader-controls label { flex-wrap: wrap; gap: 7px; }
  .chant-line { gap: 12px; padding: 20px 10px; }
  .verse-copy { font-size: calc(var(--reading-size) + 3px); }
  .single-verse .chant-line { padding: 24px 16px; }
  .single-verse .verse-copy { font-size: calc(var(--reading-size) + 8px); }
  .reader-stepper { gap: 10px; }
  .reader-stepper button { padding: 10px 12px; }
  .reader-stepper span { max-width: 125px; font-size: 9px; }
  .routine-checklist label { gap: 12px; }
}
@media (max-width: 380px) {
  .with-photo { grid-template-columns: minmax(0,1fr) 100px; gap: 14px; }
  .with-photo h1 { font-size: 29px; }
  .devotional-photo img { height: 175px; }
  main { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .devotional-photo img { animation: reveal-photo .6s cubic-bezier(.16,1,.3,1); }
  @keyframes reveal-photo { from { clip-path: inset(12% 0 0 0 round 100px 100px 3px 3px); } to { clip-path: inset(0 round 100px 100px 3px 3px); } }
}
@media print {
  .app-layout { display: block; }
  .sidebar, .toolbar, .reading-tools, .on-this-page, .related, .devotional-photo, .editorial-banner, dialog { display: none; }
  main { max-width: none; padding: 0; }
  .reading-layout { display: block; }
  body { background: white; }
  .reading-section { break-inside: avoid; padding: 20px 0; }
  a { color: black; }
}
