/* Путь к храму — design system per the approved mockup
   (maximpechenik.chatium.ru/les-egais/portal, v3 "cool mineral" palette). */
:root {
  --paper: #f4f8f8;
  --surface: #fff;
  --ink: #15242b;
  --muted: #63747b;
  --accent: #176477;
  --navy: #102f43;
  --sage: #6f918e;
  --stone: #d8e3e4;
  --line: #dedbd4;
  --gold: #c3984f;
  --gold-2: #f0cf87;
  --pill: #f0ebe3;
  --shadow: 0 12px 32px #102f4312;
  --r: 18px;
  --max: 1200px;
  --serif: Literata, Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: auto; padding: 0 24px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.more { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.primary { display: inline-block; background: var(--accent); color: #fff; border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .2s; }
.primary:hover { background: var(--navy); }
.pill { display: inline-block; padding: 5px 9px; border-radius: 99px; background: var(--pill); color: var(--muted); font-size: 11px; margin-top: 10px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.note { margin-top: 18px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.note a { color: var(--accent); }
.empty { color: var(--muted); padding: 20px 4px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: #f4f8f8f2; backdrop-filter: blur(12px); border-bottom: 1px solid var(--stone); }
.nav { height: 76px; display: flex; align-items: center; gap: 24px; position: relative; }
.logo { display: flex; align-items: center; gap: 11px; min-width: 205px; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--navy)); color: var(--gold-2); font-size: 20px; font-weight: 800; flex: none; }
.logo strong { display: block; font: 18px/1.2 var(--serif); }
.logo small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.links { display: flex; gap: 17px; align-items: center; flex: 1; font-size: 13px; }
.links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.links a:hover { color: var(--accent); }
.links a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; }
.auth-links { display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.auth-links a { font-size: 12px; font-weight: 800; }
.auth-links a:last-child { background: var(--accent); color: #fff; border-radius: 9px; padding: 9px 12px; }
.icon { width: 38px; height: 38px; border: 1px solid var(--stone); border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--ink); }
.icon:hover { border-color: var(--accent); color: var(--accent); }
.menu { display: none; }
.drawer { display: none; }
.drawer-open .drawer { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--stone); box-shadow: var(--shadow); padding: 8px 16px 18px; }
.drawer a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--stone); font-size: 15px; }
.drawer a:last-child { border-bottom: 0; }

main { padding: 42px 0 72px; }

/* home: hero */
.hero { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; margin-bottom: 46px; }
.hero-main { min-height: 430px; border-radius: 24px; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; position: relative; background: linear-gradient(120deg, #102f43cc, #176477d9), url(hero.jpg) center/cover; }
.hero-main::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid #ffffff2b; border-radius: 50%; right: -160px; top: -150px; box-shadow: 0 0 0 42px #ffffff09, 0 0 0 84px #ffffff06; }
.hero-main > * { position: relative; max-width: 650px; }
.hero-main .eyebrow { color: var(--gold-2); }
.hero h1 { font: 600 clamp(34px, 4.3vw, 60px)/1.06 var(--serif); margin: 13px 0 18px; letter-spacing: -.035em; }
.hero p { font-size: 17px; max-width: 570px; color: #f7f4eecc; margin: 0 0 22px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: #ffffffb5; font-size: 12px; }
.meta .primary { background: var(--gold-2); color: var(--navy); }
.meta .primary:hover { background: #fff; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.today, .quick { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 25px; box-shadow: 0 10px 30px #2423210b; }
.today { flex: 1; }
.date { font: 32px var(--serif); color: var(--navy); margin: 9px 0; }
.today h3, .quick h3 { margin: 0; font-size: 18px; }
.today p { color: var(--muted); margin: 8px 0 16px; }
.today .line { display: block; border-top: 1px solid var(--stone); padding-top: 12px; margin-top: 12px; font-size: 13px; }
.today .line b { display: block; color: var(--ink); }
.today a.line:hover span { color: var(--accent); text-decoration: underline; }
.quick { background: var(--accent); color: #fff; }
.quick h3 { margin-bottom: 12px; }
.quick a { display: block; padding: 9px 0; border-bottom: 1px solid #ffffff2b; font-size: 13px; }
.quick a:last-child { border-bottom: 0; }
.quick a:hover { color: var(--gold-2); }

/* home: sections */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section h2, .h2 { font: 600 30px/1.2 var(--serif); letter-spacing: -.025em; margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-image { height: 180px; position: relative; overflow: hidden; background: linear-gradient(145deg, #102f43, #176477) center/cover; }
.news-image::after { content: ""; position: absolute; inset: 18px; border: 1px solid #ffffff66; border-radius: 50%; }
.news-body { padding: 17px 18px 19px; }
.news-body h3 { font: 600 20px/1.2 var(--serif); margin: 8px 0 10px; }
.news-body p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.card-meta { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 8px; }
.source { color: var(--accent); white-space: nowrap; }
.headline-list { border-top: 1px solid #d9d6ce; margin-top: 18px; }
.headline { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid #d9d6ce; }
.headline time { font-size: 12px; color: var(--muted); }
.headline h3 { font: 600 18px/1.25 var(--serif); margin: 0; }
.headline:hover h3 { color: var(--accent); }
.headline .tag { font-size: 10px; text-align: right; }
.events-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 23px; display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; }
.event-date { font: 600 30px/1 var(--serif); color: #fff; border-radius: 12px; padding: 10px 4px; text-align: center; background: linear-gradient(145deg, var(--accent), var(--navy)); }
.event-date small { display: block; color: #fff; font: 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.event-card h3 { font: 600 19px/1.2 var(--serif); margin: 4px 0 7px; }
.event-card p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.event-card a { font-size: 12px; color: var(--accent); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.calendar { background: var(--navy); color: #fff; border-radius: var(--r); padding: 28px; }
.calendar .section-head { margin-bottom: 24px; }
.calendar h2 { color: #fff; }
.calendar .more { color: var(--gold-2); }
.calendar-date { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid #ffffff2b; padding-bottom: 20px; }
.calendar-day { font: 52px var(--serif); color: var(--gold-2); line-height: 1; }
.calendar h3 { font: 22px/1.25 var(--serif); margin: 0; }
.calendar p { color: #ffffffb8; margin: 5px 0 0; font-size: 13px; }
.calendar-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.calendar-item { background: #ffffff12; border-radius: 12px; padding: 13px; font-size: 13px; }
.calendar-item span { display: block; color: #ffffff8c; font-size: 11px; margin-bottom: 3px; }
.calendar-item a:hover { color: var(--gold-2); text-decoration: underline; }
.reading { background: var(--surface); border: 1px solid var(--stone); border-radius: var(--r); padding: 28px; }
.reading .section-head { margin-bottom: 22px; }
.pr { display: block; padding: 18px 0; border-top: 1px solid var(--stone); }
.pr:first-of-type { border-top: 0; padding-top: 0; }
.pr h3 { font: 21px/1.25 var(--serif); margin: 0 0 6px; }
.pr:hover h3 { color: var(--accent); }
.pr p { color: var(--muted); margin: 0; font-size: 13px; }

/* home: map */
.map-section { display: grid; grid-template-columns: .55fr 1.45fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); min-height: 520px; }
.places { padding: 28px; }
.place { display: flex; gap: 13px; padding: 16px 0; border-top: 1px solid var(--stone); width: 100%; text-align: left; background: none; color: var(--ink); }
.place:first-of-type { border-top: 0; }
.place .pin { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #f2e7dc; color: var(--accent); display: grid; place-items: center; }
.place.on .pin { background: var(--accent); color: #fff; }
.place h3 { font-size: 15px; margin: 0 0 3px; }
.place p { font-size: 12px; color: var(--muted); margin: 0; }
.places .primary { margin-top: 13px; }
.pmap { position: relative; min-height: 520px; background: #dbe1dc; overflow: hidden; }
.pmap iframe { display: block; border: 0; position: relative; z-index: 1; }
.pmap__load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 14px; }
.spin { width: 20px; height: 20px; border: 2px solid var(--stone); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* home: library */
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.book-cover { height: 170px; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; font: 21px/1.2 var(--serif); position: relative; overflow: hidden; }
.book-cover::after { content: ""; position: absolute; inset: 14px; border: 1px solid #ffffff40; border-radius: 12px; }
.book-1 { background: linear-gradient(145deg, #102f43, #176477); }
.book-2 { background: linear-gradient(145deg, #6f918e, #3f615e); }
.book-3 { background: linear-gradient(145deg, #243746, #102f43); }
.book-4 { background: linear-gradient(145deg, #c3984f, #8c6a31); }
.item-body { padding: 15px; }
.item-body h3 { font: 18px/1.2 var(--serif); margin: 0 0 7px; }
.item-body p { font-size: 12px; color: var(--muted); margin: 0; }

/* footer */
.footer { border-top: 1px solid var(--stone); padding: 34px 0 60px; color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer strong { color: var(--ink); font: 18px var(--serif); }
.footer h4 { color: var(--ink); margin: 0 0 9px; font-size: 13px; }
.footer a { display: block; margin: 5px 0; }
.footer a:hover { color: var(--accent); }
.footer p a { display: inline; color: var(--accent); }
.bottom-nav { display: none; }

/* inner pages */
.phead { padding: 0 0 28px; }
.phead h1 { font: 600 clamp(34px, 4.6vw, 56px)/1.08 var(--serif); letter-spacing: -.03em; margin: 12px 0 0; }
.phead__sub { max-width: 720px; color: var(--muted); font-size: 16px; margin: 12px 0 0; }
.phead .primary { margin-top: 22px; }
.crumbs { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs i { font-style: normal; opacity: .5; }
.psearch { margin-top: 22px; max-width: 640px; }
.psearch input { width: 100%; border: 1px solid var(--stone); border-radius: 14px; padding: 15px 20px 15px 48px; font: inherit; font-size: 16px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23176477' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%23176477' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 17px center no-repeat; outline: 0; box-shadow: 0 6px 20px #102f430a; }
.psearch input:focus { border-color: var(--accent); }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pchips a, .chip { border: 1px solid var(--stone); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 12px; color: var(--ink); }
.pchips a:hover, .chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--on { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.soon { text-align: center; padding: 64px 28px; }
.soon h2 { font: 600 28px var(--serif); margin: 0 0 10px; }
.soon p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }

/* prayer book */
.ptoc { columns: 2 360px; column-gap: 22px; }
.psec { break-inside: avoid; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.psec h2 { font: 600 23px/1.25 var(--serif); margin: 0 0 8px; }
.psec h2 a:hover { color: var(--accent); }
.psec h2 small { font: 600 12px var(--sans); color: var(--muted); margin-left: 6px; }
.plist { margin: 0; padding: 0; list-style: none; }
.plist li { border-top: 1px solid var(--stone); }
.plist a { display: block; padding: 9px 0; font-size: 14px; }
.plist a:hover { color: var(--accent); }
.presults { max-width: 820px; }
.presults__n { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.hit { display: block; padding: 16px 20px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.hit:hover { border-color: var(--accent); }
.hit small { display: block; font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hit b { display: block; font: 600 20px/1.25 var(--serif); margin: 3px 0 4px; }
.hit span { display: block; font-size: 13px; color: var(--muted); }
mark { background: #f0cf8766; color: inherit; border-radius: 2px; padding: 0 1px; }

/* library */
.lcat { margin-bottom: 40px; }
.lcat h2 { font: 600 26px var(--serif); margin: 0 0 16px; }
.lcat h2 small { font: 600 12px var(--sans); color: var(--muted); margin-left: 6px; }
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bcard .book-cover { height: 118px; font-size: 18px; }
.bcard .item-body { flex: 1; display: flex; flex-direction: column; }
.bcard small { margin-top: auto; padding-top: 10px; font-size: 11px; color: var(--accent); font-weight: 700; }
.book { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.toc { margin: 0; padding: 0 0 0 1.8em; }
.toc li { padding: 8px 0; border-top: 1px solid var(--stone); color: var(--muted); font-size: 14px; }
.toc li:first-child { border-top: 0; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--accent); }
.bmeta { margin: 0; position: sticky; top: 96px; }
.bmeta div { padding: 12px 0; border-top: 1px solid var(--stone); }
.bmeta div:first-child { border-top: 0; padding-top: 0; }
.bmeta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 800; }
.bmeta dd { margin: 3px 0 0; font-size: 14px; word-break: break-word; }
.bmeta a { color: var(--accent); }

/* bible */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 36px; }
.bbook { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.bbook:hover { border-color: var(--accent); }
.bbook b { display: block; font: 600 17px/1.25 var(--serif); }
.bbook small { color: var(--muted); font-size: 11px; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.chgrid a { display: flex; align-items: center; justify-content: center; height: 52px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.chgrid a:hover { border-color: var(--accent); color: var(--accent); }

/* news & calendar pages */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cal-list { display: grid; gap: 12px; }
.cal-day { display: grid; grid-template-columns: 86px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.cal-day--today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal-day__num { text-align: center; }
.cal-day__num b { display: block; font: 600 40px/1 var(--serif); color: var(--accent); }
.cal-day__num span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cal-day h3 { font: 600 20px/1.25 var(--serif); margin: 0 0 4px; }
.cal-day .cal-sub { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.cal-day ul { margin: 0; padding-left: 18px; font-size: 13px; }
.cal-day .cal-read { margin-top: 8px; font-size: 12px; color: var(--muted); }
.cal-day .cal-read a { color: var(--accent); }
.cal-month { font: 600 24px var(--serif); margin: 28px 0 4px; }

/* reader */
:root { --rd-size: 19px; --rd-bg: var(--paper); --rd-card: #fff; --rd-fg: #1c2a30; --rd-mute: #63747b; --rd-line: #d8e3e4; --rd-acc: #176477; --rd-red: #a3352a; }
:root[data-rd="sepia"] { --rd-bg: #efe6d2; --rd-card: #f7f0e0; --rd-fg: #3b2f1e; --rd-mute: #7d6a4f; --rd-line: #e1d4b5; --rd-acc: #8a5a1a; }
:root[data-rd="dark"] { --rd-bg: #0c1a24; --rd-card: #102f43; --rd-fg: #dfe7ea; --rd-mute: #93a6ad; --rd-line: #20445a; --rd-acc: #f0cf87; --rd-red: #eb8b77; }
body.reader { background: var(--rd-bg); transition: background .25s; }
.reader main { padding-top: 28px; }
.rd { max-width: 820px; margin: 0 auto; background: var(--rd-card); color: var(--rd-fg); border: 1px solid var(--rd-line); border-radius: 24px; padding: 34px 56px 44px; transition: background .25s, color .25s; }
.rd__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rd .crumbs { color: var(--rd-mute); }
.rd h1 { font: 600 clamp(30px, 4.4vw, 44px)/1.15 var(--serif); letter-spacing: -.02em; margin: 26px 0; }
.rd__ch { display: block; font: 800 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rd-acc); margin-top: 10px; }
.rd__author { margin: 26px 0 -14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-acc); font-weight: 800; }
.rtools { display: flex; align-items: center; gap: 6px; }
.rtools button { height: 34px; min-width: 38px; border: 1px solid var(--rd-line); background: transparent; color: var(--rd-fg); border-radius: 10px; font: 700 13px var(--sans); }
.rtools button:hover { border-color: var(--rd-acc); }
.rtools__sep { width: 1px; height: 22px; background: var(--rd-line); margin: 0 4px; }
.rtools .sw { min-width: 28px; width: 28px; height: 28px; border-radius: 50%; }
.sw--light { background: #fff !important; }
.sw--sepia { background: #efe2c4 !important; }
.sw--dark { background: #102f43 !important; }
.rtools .sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--rd-card), 0 0 0 4px var(--rd-acc); }
.ptext, .verses, .btext { font: var(--rd-size)/1.75 var(--serif); }
.ptext p, .btext p { margin: 0 0 1em; }
.ptext > p:first-child::first-letter { font: 600 2.5em/.9 var(--serif); color: var(--rd-red); float: left; margin: .08em .1em 0 0; }
.rubric { color: var(--rd-red); font-style: italic; font-size: .88em; line-height: 1.5; }
.psub { font: 600 1.1em/1.3 var(--serif); color: var(--rd-red); margin: 1.4em 0 .5em; text-align: center; }
.pnote { color: var(--rd-red); font-style: italic; margin: -12px 0 18px; font-size: 14px; }
.paka { color: var(--rd-mute); margin: -14px 0 20px; font-size: 14px; }
.psrc { font-size: 12px; color: var(--rd-mute); margin-top: 32px; }
.psrc a { text-decoration: underline; }
.prayer { padding: 8px 0 18px; border-bottom: 1px solid var(--rd-line); margin-bottom: 26px; }
.prayer h2 { font: 600 24px/1.25 var(--serif); margin: 0 0 12px; }
.verses p { margin: 0 0 .45em; }
.verses sup { font: 800 .58em var(--sans); color: var(--rd-acc); margin-right: .4em; vertical-align: .5em; }
.verses p:target { background: #f0cf8744; border-radius: 4px; }
.vtitle { font-style: italic; color: var(--rd-mute); margin: 0 0 .8em !important; }
.verses .notes, .btext .notes { font-size: .8em; color: var(--rd-mute); border-top: 1px solid var(--rd-line); margin-top: 2em; padding: 1em 0 0 1.2em; }
.btext h2, .btext h3, .btext h4 { font-family: var(--serif); font-weight: 600; margin: 1.4em 0 .6em; line-height: 1.3; }
.btext blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--rd-line); color: var(--rd-mute); }
.btext a { color: var(--rd-acc); }
.csl { font-family: Monomakh, var(--serif); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rd-line); font-family: var(--sans); }
.pager__prev, .pager__next { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--rd-line); border-radius: 12px; min-width: 0; }
.pager__next { text-align: right; }
a.pager__prev:hover, a.pager__next:hover { border-color: var(--rd-acc); }
.pager small { font-size: 11px; color: var(--rd-acc); font-weight: 800; }
.pager span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager--off { border: 0 !important; }
.pager__up { align-self: center; font-size: 13px; color: var(--rd-mute); text-decoration: underline; padding: 0 8px; }

/* responsive — mirrors the mockup breakpoints */
@media (max-width: 1050px) {
  .links { gap: 12px; }
  .links a:nth-child(n+5) { display: none; }
  .logo { min-width: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .map-section { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .book { grid-template-columns: 1fr; }
  .bmeta { position: static; }
}
@media (max-width: 860px) {
  .auth-links, .links { display: none; }
  .menu { display: grid; }
  .nav { justify-content: space-between; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .nav { height: 62px; gap: 12px; }
  .logo { flex: 1; }
  .logo strong { font-size: 15px; }
  .logo small { font-size: 8px; }
  main { padding-top: 26px; padding-bottom: 96px; }
  .hero-main { min-height: 430px; padding: 25px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .hero-side { display: flex; }
  .today, .quick { padding: 21px; }
  .section { margin-top: 38px; }
  .section h2, .h2 { font-size: 26px; }
  .section-head { align-items: center; }
  .news-grid, .split, .events-grid, .news-list { grid-template-columns: 1fr; }
  .news-grid .card:not(:first-child) { display: none; }
  .headline { grid-template-columns: 55px 1fr; }
  .headline .tag { display: none; }
  .places { padding: 22px; }
  .pmap { min-height: 440px; }
  .library-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .book-cover { height: 135px; font-size: 18px; }
  .item-body { padding: 12px; }
  .item-body h3 { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer { padding-bottom: 100px; }
  .bottom-nav { position: fixed; display: flex; bottom: 0; left: 0; right: 0; background: #fff; z-index: 60; border-top: 1px solid var(--stone); justify-content: space-around; padding: 9px 4px 8px; box-shadow: 0 -4px 16px #24232112; }
  .bottom-nav a { font-size: 10px; text-align: center; color: var(--muted); min-width: 56px; }
  .bottom-nav a.on { color: var(--accent); }
  .bottom-nav span { display: block; font-size: 18px; line-height: 20px; margin-bottom: 2px; }
  .rd { padding: 22px 18px 30px; border-radius: 18px; }
  .reader main { padding-top: 12px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__up { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .ptoc { columns: 1; }
  .bgrid { grid-template-columns: 1fr 1fr; }
  .cal-day { grid-template-columns: 60px 1fr; gap: 14px; padding: 16px; }
  .cal-day__num b { font-size: 32px; }
  .event-card { grid-template-columns: 60px 1fr; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.drawer-open .drawer { display: block; }
@media (min-width: 861px) { .drawer-open .drawer { display: none; } }
.phead--center { text-align: center; padding: 64px 0; }
.phead--center .phead__sub, .phead--center .psearch { margin-left: auto; margin-right: auto; }
.quick404 { margin-top: 24px; color: var(--muted); }
.quick404 a { color: var(--accent); }
.h2 { margin-bottom: 14px; }
.panel p { color: var(--muted); }
.hero h1.h1--long { font-size: clamp(30px, 3.4vw, 46px); }
.cal-read a { font-weight: 700; } .cal-read a:hover { text-decoration: underline; }
