:root{--ink:#302b29;--muted:#827a70;--paper:#f8f6f1;--line:#e8e2d7;--wine:#622f37;--gold:#b88b46}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 system-ui,-apple-system,Segoe UI,sans-serif}button,input,textarea,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}aside{position:fixed;width:254px;inset:0 auto 0 0;background:#fffefa;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;font:23px/1.05 Georgia,serif}.brand img{width:61px;height:61px;border-radius:50%}.brand b{font-weight:400;color:var(--wine)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--gold)}.side-label{font-size:8px;letter-spacing:1.2px;margin:25px 0 20px}nav{display:grid;gap:6px}nav a{padding:11px 14px;display:flex;gap:13px;align-items:center;font-size:13px;border-radius:7px;color:#756d65}nav a.active{background:#f3e9e6;color:var(--wine);font-weight:650}nav a span{font-size:19px;min-width:23px}.sidebar-bottom{margin-top:auto;padding:25px 12px 0;border-top:1px solid var(--line)}.sidebar-bottom p{font:italic 18px/1.6 Georgia,serif;margin:8px 0}.sidebar-bottom small{font-size:10px;color:var(--muted)}.small-cross{color:var(--gold);font-size:24px}.main{margin-left:254px}header{height:88px;border-bottom:1px solid var(--line);padding:0 46px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fffefa}header>span{font-size:12px;color:var(--muted)}button{border:0;border-radius:6px;padding:10px 18px}.primary{background:var(--wine);color:white;font-size:12px;font-weight:600}.secondary{border:1px solid var(--line);background:#fffdfa;font-size:12px}main{max-width:1320px;margin:auto;padding:35px 46px 50px}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.2}h1{font-size:38px;margin:8px 0 10px}h2{font-size:25px;margin:0}h3{font-size:23px;margin:12px 0}p{margin:9px 0}.intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.intro p{color:var(--muted);font-size:13px}.date{font-size:11px;color:var(--muted);border-left:1px solid var(--line);padding-left:20px;text-transform:capitalize}.hero{min-height:300px;border-radius:12px;background:radial-gradient(ellipse at 90% 40%,#97584244,transparent 60%),#4e282e;color:#fff7e8;display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;margin-bottom:24px}.hero-copy{padding:36px 38px}.hero .eyebrow{color:#e5c58b}.hero h2{font-size:37px;margin:14px 0}.hero p{color:#dcc9c4;font-size:13px;max-width:400px}.hero button{background:#efe0bf;color:#512b30;margin-top:15px}.hero-art{position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#e5b96122,transparent 70%)}.hero-art:before{content:'';position:absolute;width:320px;height:320px;border:1px solid #d6b16c33;border-radius:50%}.hero-art img{width:235px;border-radius:50%;box-shadow:0 20px 45px #170c0c55;z-index:1}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:35px}.quick a{background:#fffefa;border:1px solid var(--line);border-radius:9px;padding:18px}.quick .symbol{color:var(--gold);font-size:24px}.quick b{display:block;font-size:12px;margin:8px 0 3px}.quick small{color:var(--muted);font-size:10px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:25px 0 16px;gap:16px}.text-link{font-size:12px;color:var(--wine)}.columns{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.card{border:1px solid var(--line);background:#fffefa;border-radius:10px;padding:25px}.verse{background:#ede9df;position:relative;overflow:hidden}.verse:after{content:'“';position:absolute;right:17px;top:-20px;font:150px Georgia;color:#bda56c22;pointer-events:none}.verse blockquote{font:25px/1.5 Georgia,serif;margin:20px 0}.verse small{color:#817052;font-size:11px}.card p{font-size:13px;color:var(--muted)}.label{font-size:10px;letter-spacing:1px;color:var(--gold);text-transform:uppercase}.empty-icon{font-size:27px;color:var(--gold)}.notice{margin-top:25px;padding:14px 18px;border:1px dashed #cdbfa6;border-radius:8px;font-size:11px;color:#827153}.toolbar{display:flex;gap:12px;margin:25px 0}.toolbar input{flex:1}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.entry img,.entry video{width:100%;max-height:340px;object-fit:contain;border-radius:6px;background:#f2eee5}.entry audio{width:100%}.entry .body{white-space:pre-wrap;overflow-wrap:anywhere;color:#504942;line-height:1.85}.entry .meta{font-size:11px;color:var(--muted);margin:10px 0}.entry .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.empty{padding:50px 25px;text-align:center;grid-column:1/-1}.empty p{max-width:500px;margin:12px auto 20px}.bookmark{color:var(--wine)}footer{border-top:1px solid var(--line);padding:25px 46px;font:15px Georgia;color:#80746b;display:flex;justify-content:space-between;gap:12px}footer span{font:10px system-ui;color:#a0978b}dialog{border:1px solid var(--line);border-radius:13px;padding:28px;width:min(620px,95vw);max-height:92vh;overflow:auto;background:#fffefa;color:var(--ink)}dialog::backdrop{background:#20161999;backdrop-filter:blur(3px)}.modal-top{display:flex;justify-content:space-between;margin-bottom:22px}.modal-top h2{margin-top:5px}.icon-btn{font-size:25px;padding:0 10px;background:transparent;color:var(--muted)}label{display:block;font-size:12px;margin:13px 0;color:#655a50}input,textarea,select{display:block;width:100%;border:1px solid #dcd4c7;border-radius:6px;background:white;color:var(--ink);padding:10px 12px;margin-top:5px;font-size:13px}textarea{resize:vertical}small{display:block}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-note{font-size:11px!important;color:var(--muted)}.actions{display:flex;justify-content:flex-end;gap:10px}.notes{min-height:280px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#35282b;color:white;border-radius:8px;padding:12px 20px;font-size:13px;display:none;z-index:10}#form-error{color:#a03737;font-size:12px}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.suggestions .card{padding:22px}.suggestions h3{font-size:21px}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}@media(min-width:1500px){main{padding-top:45px}.hero{min-height:340px}.hero-art img{width:270px}}@media(max-width:1100px){aside{width:220px;padding:25px 15px}.main{margin-left:220px}main{padding:28px 25px}header{padding:0 25px}.hero-copy{padding:30px}.hero-art img{width:185px}.hero h2{font-size:31px}.quick{gap:8px}.quick a{padding:14px}.columns{grid-template-columns:1fr}.suggestions{grid-template-columns:1fr 1fr}}@media(max-width:720px){aside{position:static;width:auto;padding:15px 18px;border-bottom:1px solid var(--line)}.brand{font-size:20px}.brand img{width:43px;height:43px}.side-label,.sidebar-bottom{display:none}nav{display:flex;overflow-x:auto;margin-top:16px;gap:5px}nav a{white-space:nowrap;font-size:11px;padding:8px}nav a span{font-size:15px;min-width:auto}.main{margin:0}header{height:65px;padding:0 20px}header>span{font-size:10px}header button{padding:9px 11px;font-size:10px}main{padding:25px 20px}h1{font-size:31px}.date{display:none}.hero{grid-template-columns:1fr;min-height:auto}.hero-copy{padding:28px}.hero-art{padding:0 0 26px}.hero-art img{width:155px}.hero-art:before{width:190px;height:190px}.hero h2{font-size:32px}.quick{grid-template-columns:repeat(2,1fr);gap:10px}.grid,.suggestions{grid-template-columns:1fr}.section-head h2{font-size:23px}.verse blockquote{font-size:23px}footer{padding:22px;display:block}footer span{display:block;margin-top:7px}.intro{margin-bottom:20px}.form-row{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.toolbar input{min-width:100%}}

.full-reading { grid-column: 1 / -1; }
.full-reading .body { max-width: 72ch; }
.reading-image-preview { display: block; width: min(100%, 640px); }
.entry .reading-image-preview img { display: block; height: auto; max-height: none; }

.entry .speaker-photo { display: block; width: min(100%, 640px); height: auto; max-height: none; }

.entry .meta:empty, .entry .actions:empty { display: none; }
.entry .guide-actions { justify-content: flex-start; }
.guide-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 7px; text-decoration: none; }
.guide-actions a:hover { text-decoration: underline; }

.daily-list { display: grid; gap: 14px; }
.daily-entry { border: 1px solid var(--line); border-radius: 12px; background: #fffefa; overflow: hidden; }
.daily-summary {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center;
  gap: 17px; padding: 16px 20px; cursor: pointer; list-style: none;
}
.daily-summary::-webkit-details-marker { display: none; }
.daily-summary:hover, .daily-entry[open] .daily-summary { background: #f6f0e9; }
.daily-summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; }
.daily-portrait { width: 68px; height: 68px; object-fit: cover; border-radius: 9px; }
.daily-placeholder { display: grid; place-items: center; background: #f3e9e6; color: var(--wine); font-size: 25px; }
.daily-copy { display: grid; gap: 3px; }
.daily-copy time { color: var(--wine); font-size: 12px; font-weight: 650; }
.daily-copy strong { font: 21px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.daily-author { color: var(--muted); font-size: 12px; }
.daily-chevron { color: var(--wine); font-size: 24px; line-height: 1; }
.daily-entry[open] .daily-chevron { transform: rotate(180deg); }
.daily-entry > .entry { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 720px) {
  .daily-summary { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 13px; }
  .daily-portrait { width: 52px; height: 52px; }
  .daily-copy strong { font-size: 18px; }
}

.verse-entry h3 { margin: 0 0 8px; }
.verse-entry img { display: block; width: 100%; height: auto; border-radius: 8px; }
.verse-entry small { margin-top: 12px; color: var(--muted); font-size: 11px; }

.speaker-pending {
  display: grid; place-content: center; gap: 10px; min-height: 240px;
  text-align: center; border-radius: 8px; background: #f3e9e6; color: var(--wine);
}
.speaker-pending span { font: 42px Georgia, serif; }
.speaker-pending small { font-size: 12px; color: var(--muted); }

.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.header-actions button { white-space: nowrap; }
.theme-toggle span { font-size: 15px; line-height: 1; vertical-align: -1px; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #091e38;
  --ink: #f5f6fa;
  --muted: #c0cddd;
  --line: #31475f;
  --wine: #f6be2f;
  --gold: #f6be2f;
  --surface: #102840;
  --raised: #1b334d;
  --selected: #233e59;
}

[data-theme="dark"] aside,
[data-theme="dark"] header,
[data-theme="dark"] .card,
[data-theme="dark"] .quick a,
[data-theme="dark"] .daily-entry,
[data-theme="dark"] dialog { background: var(--surface); }

[data-theme="dark"] .secondary,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: var(--raised); border-color: var(--line); color: var(--ink); }

[data-theme="dark"] .primary { background: #f6be2f; color: #091e38; }
[data-theme="dark"] .hero button { background: #efe0bf; color: #512b30; }
[data-theme="dark"] .theme-toggle { background: var(--selected); color: var(--gold); border-color: #9b775b; }
[data-theme="dark"] .verse,
[data-theme="dark"] .entry img,
[data-theme="dark"] .entry video { background: var(--raised); }

[data-theme="dark"] nav a,
[data-theme="dark"] label,
[data-theme="dark"] .verse small,
[data-theme="dark"] footer,
[data-theme="dark"] footer span,
[data-theme="dark"] .notice { color: var(--muted); }

[data-theme="dark"] nav a.active,
[data-theme="dark"] .daily-placeholder,
[data-theme="dark"] .speaker-pending { background: var(--selected); color: var(--wine); }

[data-theme="dark"] .daily-summary:hover,
[data-theme="dark"] .daily-entry[open] .daily-summary { background: var(--selected); }

[data-theme="dark"] .entry .body { color: var(--ink); }
[data-theme="dark"] .notice { border-color: #77666e; }
[data-theme="dark"] .card .label { color: var(--gold); }
[data-theme="dark"] #form-error { color: #ffb2b3; }

@media (max-width: 720px) {
  header { gap: 8px; }
  header > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { gap: 6px; }
}

.mobile-nav { display: none; }
#install-help p { margin: 12px 0; }
#install-help .modal-top { gap: 12px; align-items: center; }

@media (max-width: 720px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  aside { padding-top: max(15px, env(safe-area-inset-top, 0px)); }
  aside > nav { display: none; }
  header { height: auto; min-height: 65px; padding-block: 10px; flex-wrap: wrap; }
  .header-actions { flex-wrap: wrap; flex-shrink: 1; }
  .mobile-nav {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    position: fixed; z-index: 5; inset: auto 0 0; margin: 0; overflow: visible;
    background: var(--surface, #fffefa); border-top: 1px solid var(--line);
    padding: 5px env(safe-area-inset-right, 0px) calc(5px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px);
  }
  .mobile-nav > a,
  .mobile-nav summary {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2px; min-height: 52px; margin: 0 3px; padding: 4px;
    border-radius: 7px; color: var(--ink); font-size: 11px; list-style: none;
  }
  .mobile-nav summary { cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav > a span, .mobile-nav summary span { font-size: 21px; line-height: 1; }
  .mobile-nav [aria-current="page"], .mobile-nav details.active > summary {
    color: var(--wine); background: var(--selected, #f3e9e6); font-weight: 650;
  }
  .mobile-menu-links {
    position: absolute; right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(66px + env(safe-area-inset-bottom, 0px)); width: min(240px, 90vw);
    background: var(--surface, #fffefa); border: 1px solid var(--line);
    border-radius: 10px; padding: 6px; box-shadow: 0 8px 22px #0003;
  }
  .mobile-menu-links a { font-size: 14px; min-height: 44px; color: var(--ink); }
  .mobile-nav summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
  #toast { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

.speaker-extra-photo { margin: 20px 0 0; }
.speaker-extra-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }

.daily-portrait[src="guido-maldonado-retrato.jpg"] { object-position: center 15%; }

.home-latest { margin: 24px 0 28px; }
.home-feature { padding: 0; overflow: hidden; }
.home-feature-with-image {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 360px;
}
.home-feature-copy { align-self: center; padding: clamp(24px, 4vw, 52px); }
.home-feature h3 { margin: 7px 0 14px; font-size: clamp(30px, 4vw, 52px); }
.home-feature .home-feature-meta { color: var(--wine); font-size: 13px; font-weight: 650; }
.home-feature .label { margin: 0 0 14px; }
.home-feature .home-feature-excerpt { max-width: 55ch; color: var(--ink); font-size: 16px; }
.home-feature-action { display: inline-block; margin-top: 17px; border-radius: 6px; padding: 11px 17px; }
.home-feature-image { position: relative; display: block; min-height: 350px; background: var(--paper); }
.home-feature-image img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 43%;
}
.home-feature-image:focus-visible { outline-offset: -5px; }
.home-meditation .verse blockquote { max-width: 65ch; }

.study-cover {
  padding: clamp(24px, 4vw, 54px); border-radius: 12px;
  background: radial-gradient(ellipse at right top, #8c5147, transparent 60%), #4e282e;
  color: #fff7e8;
}
.study-cover-name {
  color: #efcf94; font: 500 clamp(27px, 4vw, 46px)/1.1 Georgia, serif;
}
.study-cover h2 { max-width: 24ch; margin: 12px 0 28px; font-size: clamp(27px, 4vw, 48px); }
.study-weeks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; padding-top: 19px; border-top: 1px solid #efcf9460;
}
.study-weeks h3 { margin: 0; font-size: clamp(17px, 2vw, 22px); }
.study-weeks p { margin-bottom: 0; color: #f1decf; font-size: 13px; }
.study-calendar-group { margin: 24px 0; }
.study-calendar-group h3 { margin-bottom: 10px; }
.study-calendar-group ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; list-style: none; margin: 0; padding: 0;
}
.study-calendar-link {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center;
  gap: 13px; min-height: 80px; height: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface, #fffefa);
}
.study-calendar-link:hover { border-color: var(--gold); }
.study-date {
  display: grid; place-content: center; text-align: center; min-height: 52px;
  border-radius: 7px; background: var(--selected, #f3e9e6); color: var(--wine);
  font-size: 12px; line-height: 1.15;
}
.study-date strong { font-size: 21px; }
.study-calendar-copy { display: grid; gap: 3px; }
.study-calendar-copy strong { font: 18px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.study-calendar-copy span { color: var(--muted); font-size: 12px; }
.study-calendar-link > span:last-child { color: var(--wine); }
.reading-detail { max-width: 960px; margin-inline: auto; }
.reading-back { display: inline-block; margin-bottom: 16px; }
.reading-detail .entry h3 { font-size: clamp(25px, 4vw, 42px); }
.reading-detail .entry .body { font-size: 16px; }

@media (max-width: 720px) {
  .home-feature-with-image, .study-weeks, .study-calendar-group ul { grid-template-columns: minmax(0, 1fr); }
  .home-feature-image { min-height: clamp(230px, 75vw, 435px); }
  .home-feature-copy { padding: 23px; }
}

.community-compose { max-width: 780px; }
.community-compose h2 { margin-bottom: 14px; }
.community-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.community-fields label { margin: 0; }
.community-compose textarea { resize: vertical; }
.community-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.community-actions p { margin: 0; }
.community-compose small { margin-top: 12px; color: var(--muted); }
.community-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 10px; }
.community-message { padding: 17px 22px; }
.community-message-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.community-message-heading span, .community-message time { color: var(--muted); font-size: 13px; }
.community-message h3 { margin-top: 0; }
.community-message p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); font-size: 15px; }
footer a { color: var(--wine); }
footer a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .community-fields { grid-template-columns: 1fr; }
  .community-compose { padding: 19px; }
  footer a { display: block; margin-top: 8px; }
}

.worship-player {
  --worship-edge: 20px;
  --worship-bottom: 20px;
  --worship-top: 20px;
  --worship-width: 390px;
  position: fixed; z-index: 7; right: var(--worship-edge); bottom: var(--worship-bottom);
  width: min(var(--worship-width), calc(100% - 2 * var(--worship-edge))); padding: 8px 12px;
  box-shadow: 0 7px 26px #24121840;
}
.worship-player.worship-compact { --worship-width: 260px; padding: 5px 7px; }
.worship-player.worship-at-top { top: var(--worship-top); bottom: auto; }
.worship-player-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.worship-player-heading strong { overflow-wrap: anywhere; }
.worship-compact .worship-player-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worship-player-controls { display: flex; flex: 0 0 auto; gap: 2px; }
.worship-player-controls .icon-btn { width: 36px; height: 38px; padding: 0; font-size: 20px; }
.worship-player-controls .icon-btn:focus-visible { outline: 2px solid var(--wine); outline-offset: -3px; }
.worship-player audio { width: 100%; height: 42px; }
.worship-player iframe { display: block; width: 100%; height: 200px; border: 0; border-radius: 6px; }
.worship-player [role="status"] { margin: 0; }
.worship-docked-bottom footer { margin-bottom: calc(var(--worship-player-height, 270px) + 20px); }
@media (max-width: 720px) {
  .worship-player {
    --worship-edge: max(8px, env(safe-area-inset-right, 0px), env(safe-area-inset-left, 0px));
    --worship-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    --worship-top: calc(8px + env(safe-area-inset-top, 0px));
  }
  body:not(.worship-page):has(#mobile-menu[open]) .worship-player { top: var(--worship-top); bottom: auto; }
  body:not(.worship-page):has(.worship-player:not([hidden])) #mobile-menu[open] .mobile-menu-links {
    max-height: max(44px, calc(100dvh - var(--worship-player-height, 270px) - 84px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto;
  }
}
@media (530px <= width <= 720px) and (max-height: 560px) {
  body:not(.worship-page):has(#mobile-menu[open]) .worship-player {
    --worship-width: 250px; left: var(--worship-edge); right: auto;
  }
  body:not(.worship-page):has(.worship-player:not([hidden])) #mobile-menu[open] .mobile-menu-links {
    max-height: calc(100dvh - 76px - env(safe-area-inset-bottom, 0px));
  }
}

#worship-page-intro[hidden] { display: none; }
.worship-page .worship-player, .worship-idle, .worship-catalog { max-width: 800px; }
.worship-page .worship-player {
  position: static; width: 100%; padding: 10px 12px; box-shadow: none; scroll-margin-top: 12px;
}
.worship-page .worship-player-heading strong { white-space: normal; }
.worship-page .worship-player iframe { height: auto; aspect-ratio: 16 / 9; min-height: 200px; }
.worship-page #worship-player-size, .worship-page #worship-player-position { display: none; }
.worship-idle:not([hidden]) {
  display: grid; place-items: center; min-height: clamp(155px, 26vw, 210px); text-align: center;
}
.worship-idle p { margin: 0; }
.worship-idle strong { display: inline-block; margin-bottom: 4px; }
.worship-catalog { margin-top: 28px; }
.worship-catalog > h2 { margin: 0 0 10px; }
.worship-catalog input { font-size: 16px; min-height: 44px; }
.worship-results-count { color: var(--muted); margin: 8px 0 20px; }
.worship-catalog-list { list-style: none; margin: 0 0 22px; padding: 0; }
.worship-catalog-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 14px;
}
.worship-catalog-row + .worship-catalog-row { border-top: 1px solid var(--line); }
.worship-catalog-row strong, .worship-catalog-row small { display: block; overflow-wrap: anywhere; }
.worship-catalog-row small { color: var(--muted); }
.worship-catalog-row .secondary { min-height: 44px; }
@media (max-width: 420px) {
  .worship-catalog-row .secondary { min-width: 44px; padding-inline: 8px; }
  .worship-catalog-row button span { display: none; }
}

.instagram-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--wine); font: 650 13px/1.3 system-ui, sans-serif;
}
.instagram-link:hover { text-decoration: underline; }
.instagram-link img { width: 25px; height: 25px; }
.sidebar-instagram { display: flex; width: fit-content; margin-bottom: 15px; }
.footer-instagram { display: none; }
.home-worship {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin: 0 0 20px;
}
.home-worship-play { display: flex; align-items: center; gap: 11px; text-align: left; color: var(--wine); }
.home-worship-play small { color: var(--muted); }
.home-worship-play strong { font-size: 14px; }
@media (max-width: 720px) {
  .footer-instagram { display: inline-flex; }
}

.thought-card {
  max-width: 920px; margin: 0; padding: 0; overflow: hidden;
}
.thought-card + .thought-card { margin-top: 24px; }
.thought-card img {
  display: block; width: 100%; height: auto; background: #191919;
}
.thought-card figcaption { padding: clamp(15px, 3vw, 25px); }
.thought-card figcaption p { margin: 0; font-size: 15px; color: var(--ink); }
.thought-card figcaption .thought-source { margin-top: 9px; font-size: 13px; color: var(--muted); }
.thought-source a { color: var(--wine); text-decoration: underline; }

.reading-guide {
  margin-top: 26px;
  padding: clamp(16px, 3vw, 25px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 9px;
}
.reading-guide h4 { margin: 0 0 12px; font: bold 21px/1.3 Georgia, serif; }
.reading-guide dl { display: grid; gap: 10px; margin: 0; }
.reading-guide dl > div { display: grid; grid-template-columns: minmax(88px, auto) 1fr; gap: 10px; }
.reading-guide dt { font-weight: 700; color: var(--wine); }
.reading-guide dd { margin: 0; overflow-wrap: anywhere; }
.reading-guide button { white-space: normal; text-align: left; }
.continue-reading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 24px;
}
.continue-reading h2, .continue-reading p { margin: 0; }
.continue-reading p { overflow-wrap: anywhere; }
.faith-questions { display: grid; max-width: 820px; gap: 12px; }
.faith-questions summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faith-questions summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.faith-questions p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .reading-guide dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 15px; }
.hero-actions button { margin-top: 0; }
.home-kids-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: #fff7e8; font-size: 13px; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px;
}
.home-kids-link:focus-visible { outline: 2px solid #efe0bf; outline-offset: 3px; }

.study-concept { max-width: 1000px; }
.study-concept > section, .study-concept-heading { margin-bottom: 24px; }
.study-concept p { font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.study-concept h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 12px 0; }
.study-concept h3 { font-size: 1.4rem; margin: 0 0 16px; }
.study-concept h4 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 12px; }
.study-concept-heading { border-top: 4px solid #447da9; }
.study-concept-elements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.study-concept-element { margin: 0; padding: 24px; }
.study-concept-references { border-left: 3px solid #447da9; padding-left: 12px; }
.study-concept-note { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.study-concept-sources a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.study-concept a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 720px) { .study-concept-elements { grid-template-columns: minmax(0, 1fr); } }

.upcoming-studies { margin-top: 48px; }
.upcoming-studies-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.upcoming-study { min-width: 0; margin: 0; text-align: center; }
.upcoming-study-emblem { width: min(100%, 340px); aspect-ratio: 443.5 / 430; margin: 0 auto 16px; background-image: url('proximos-estudios/distintivos.png'); background-size: 200% auto; background-position: var(--emblem-x) var(--emblem-y); background-repeat: no-repeat; }
.upcoming-study blockquote { max-width: 40ch; margin: 0 auto; font: 1.125rem/1.6 Georgia, serif; }
.upcoming-study figcaption p { margin: 10px 0 0; color: var(--wine); font-size: .875rem; font-weight: 600; }
@media (max-width: 560px) { .upcoming-studies-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Marca aprobada: Biblia, cruz y nombre completo sin recorte circular. */
.brand{display:block;width:100%;max-width:210px;border-radius:10px;overflow:hidden;background:#06172f}.brand img{display:block;width:100%;height:auto;border-radius:0;object-fit:contain}.hero-art img{width:min(90%,360px);height:auto;border-radius:12px;box-shadow:none}.hero-art:before{display:none}.hero-art{padding:24px}.hero{background:radial-gradient(ellipse at 90% 40%,#27538755,transparent 60%),#06172f}.hero p{color:#dce5f2}.hero button{color:#06172f}@media(max-width:720px){.brand{max-width:180px}.brand img{width:100%;height:auto}.hero-art img{width:min(90%,300px)}}

/* Mantener visible la marca en barras laterales con navegación larga. */
aside{overflow-y:auto}.brand{flex-shrink:0}

/* Logo PNG transparente en todos los espacios institucionales. */
.brand{background:transparent;border-radius:0}.brand img,.alerts-brand,.hero-art img{border-radius:0}

/* El logo se adapta al contraste del tema de la barra lateral. */
.brand img.brand-dark{display:none}[data-theme="dark"] .brand img.brand-light{display:none}[data-theme="dark"] .brand img.brand-dark{display:block}

.brand img.brand-light{filter:url(#brand-light-contrast)}

/* Azul institucional de la referencia aprobada. */
[data-theme="dark"] body{background:radial-gradient(ellipse at 55% 12%,#233448 0,transparent 65%),var(--paper);background-attachment:fixed}
[data-theme="dark"] aside,[data-theme="dark"] header{background:#0c2139}
[data-theme="dark"] .study-cover{background:radial-gradient(ellipse at right top,#29415a,transparent 65%),#091e38}
[data-theme="dark"] .notice{border-color:var(--line)}
[data-theme="dark"] .theme-toggle{border-color:var(--line)}
[data-theme="dark"] .alerts-welcome{background:radial-gradient(ellipse at center,#233448,#091e38)!important;border-color:var(--line)}
[data-theme="dark"] .alerts-fields input{background:#102840!important;border-color:#6d849d!important}
.study-summary-gallery{margin:36px 0}
.study-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px}
.study-summary-card{min-width:0;margin-bottom:24px}
.study-summary-grid .study-summary-card{margin-bottom:0;padding:18px}
.study-summary-card h3{font-size:clamp(20px,2vw,28px)}
.study-summary-image{display:block;margin:18px 0}
.study-summary-image img{display:block;width:100%;height:auto;border-radius:8px}
.study-summary-transcript{margin-top:20px}
.study-summary-transcript summary{cursor:pointer;color:var(--wine)}
.study-summary-transcript dt{font-weight:700;color:var(--gold);margin-top:14px}
.study-summary-transcript dd{margin:4px 0 0;font-size:1rem}
@media(max-width:800px){.study-summary-grid{grid-template-columns:minmax(0,1fr)}}

/* Mismo azul institucional en las superficies oscuras del modo claro. */
:root[data-theme="light"]{--wine:#091e38;--selected:#e8eff6}
[data-theme="light"] .primary,[data-theme="light"] .secondary{background:#091e38;color:#fff;border:1px solid #29415a}
[data-theme="light"] .secondary:hover,[data-theme="light"] .primary:hover{background:#1b334d}
[data-theme="light"] nav a.active{background:#091e38;color:#fff}
[data-theme="light"] .daily-summary:hover,[data-theme="light"] .daily-entry[open] .daily-summary{background:#e8eff6}
[data-theme="light"] .daily-placeholder,[data-theme="light"] .speaker-pending{background:#e8eff6;color:#091e38}
.hero,.study-cover{background:radial-gradient(ellipse at right top,#29415a,transparent 65%),#091e38}
[data-theme="light"] .hero button{background:#091e38;color:#fff;border:1px solid #e5bc7a}
[data-theme="light"] .alerts-welcome{background:radial-gradient(ellipse at center,#233448,#091e38)!important;border-color:#31475f}
[data-theme="light"] .alerts-fields input{background:#102840!important;border-color:#6d849d!important}
/* Franja de marca de extremo a extremo en la cabecera de la columna. */
aside .brand{width:calc(100% + 44px);max-width:none;margin:-32px -22px 0;padding:18px 22px;background:#091e38;border-radius:0}
aside .brand img{max-width:210px;margin:auto}
aside .brand img.brand-light{filter:none}
@media(max-width:1100px){aside .brand{width:calc(100% + 30px);margin:-25px -15px 0;padding:18px 15px}}
@media(max-width:720px){aside .brand{width:calc(100% + 36px);margin:-15px -18px 0;padding:12px 18px}aside .brand img{max-width:180px}}

/* Resaltar al recorrer el menú sin cambiar la página hasta seleccionarla. */
aside nav a,.mobile-nav a{transition:background-color .14s ease,color .14s ease,box-shadow .14s ease}
:root[data-theme] aside nav a:focus-visible,:root[data-theme] .mobile-nav a:focus-visible{background:#091e38;color:#fff;box-shadow:inset 3px 0 #f6be2f}
@media(hover:hover){:root[data-theme] aside nav a:hover,:root[data-theme] .mobile-nav a:hover{background:#091e38;color:#fff;box-shadow:inset 3px 0 #f6be2f}}
.navigation-sound{min-height:40px}
.navigation-sound>span:first-child{font-size:18px;line-height:1}
@media(max-width:720px){.navigation-sound{min-width:40px;padding:8px!important}.sound-label{display:none}}
@media(prefers-reduced-motion:reduce){aside nav a,.mobile-nav a{transition:none}}

.home-layout{display:contents}
.mobile-feature-audio{display:none}
.study-short-link{margin-top:20px}
.study-short-link label{display:block;margin-bottom:8px;font-size:.875rem;font-weight:650}
.study-short-link>div{display:flex;gap:10px;flex-wrap:wrap}
.study-short-link input{flex:1;min-width:0;width:100%;padding:12px;font-size:.9375rem}
.study-short-link button{min-height:44px}
@media(max-width:720px){
  body{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  body>aside{display:none}
  .main>header{position:sticky;top:0;z-index:6;flex-wrap:nowrap;min-height:68px;padding:8px 16px;gap:12px;padding-top:max(8px,env(safe-area-inset-top,0px))}
  .main>header>#breadcrumb{display:none}
  .main>header .mobile-header-brand{display:block;width:86px;max-width:86px;flex:0 0 86px;margin:0;padding:0;background:transparent}
  .mobile-header-brand img{width:86px;height:auto}
  .header-actions{margin-left:auto;flex-wrap:nowrap;gap:8px}
  .header-actions #install-app{display:none}
  .header-actions button{min-height:44px;font-size:.8125rem}
  main{padding:18px 16px 24px}
  .home-layout{display:flex;flex-direction:column;gap:0}
  .home-layout>.home-latest{order:0;margin:0 0 20px}
  .home-latest .section-head{margin:0 0 12px;align-items:center}
  .home-latest .section-head h2{font-size:1.375rem}
  .home-latest .section-head a{font-size:.875rem}
  .home-feature-with-image{display:flex;flex-direction:column-reverse}
  .home-feature-image{min-height:0;aspect-ratio:16/9}
  .home-feature-copy{padding:20px}
  .home-feature h3{font-size:1.65rem;line-height:1.22;margin:10px 0 12px}
  .home-feature .home-feature-meta{font-size:.8125rem;line-height:1.5;margin:0}
  .home-feature .label{font-size:.75rem;line-height:1.6;letter-spacing:.02em}
  .home-feature-excerpt{display:none}
  .home-feature-action{display:flex;justify-content:center;align-items:center;min-height:46px;margin-top:14px;font-size:.9375rem}
  .mobile-feature-audio{display:block;margin-top:16px}
  .mobile-feature-audio audio{display:block;width:100%;min-width:0}
  .home-layout>.continue-reading{order:1;margin:0 0 20px}
  .home-layout>.home-worship{order:2;margin:0 0 24px}
  .home-layout>.home-meditation{order:3}
  .home-layout>.alerts-welcome{order:4;margin:24px 0 0;padding:22px;border-radius:16px}
  .home-layout>.alerts-welcome .alerts-brand{display:none}
  .home-layout>.alerts-welcome h1{font-size:1.4rem}
  .home-layout>.hero,.home-layout>.intro,.home-layout>.quick{display:none}
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));z-index:10}
  .mobile-nav>a,.mobile-nav summary{min-height:56px;font-size:.75rem}
  .mobile-menu-links{max-height:min(65dvh,460px);overflow-y:auto;overscroll-behavior:contain;width:min(300px,calc(100vw - 24px));bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .mobile-menu-links a,.mobile-menu-links button{display:flex;align-items:center;width:100%;min-height:46px;font-size:.9375rem;padding:10px 14px}
}

/* Logo realista aprobado: conservar el arte completo y sus colores en ambos temas. */
.brand img,.brand img.brand-light,.brand img.brand-dark,.alerts-brand,.hero-art img{aspect-ratio:3 / 2;object-fit:cover;object-position:center;height:auto;filter:none}
