:root {
  color-scheme: dark;
  --ink: #090909;
  --ink-soft: #121110;
  --panel: #191715;
  --panel-2: #211e1b;
  --paper: #fff8ec;
  --muted: #bbb3a8;
  --line: rgba(255, 248, 236, 0.12);
  --red: #b62126;
  --red-dark: #7f1217;
  --red-bright: #e2483d;
  --gold: #d4aa61;
  --green: #5bbf8a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 10%, rgba(182, 33, 38, 0.18), transparent 28rem),
    radial-gradient(circle at 10% 75%, rgba(127, 18, 23, 0.12), transparent 30rem),
    var(--ink);
  color: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  z-index: 10;
  mix-blend-mode: soft-light;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding:
    calc(0.8rem + env(safe-area-inset-top, 0px))
    max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-right, 0px))
    0.7rem
    max(clamp(1rem, 4vw, 4rem), env(safe-area-inset-left, 0px));
  background: rgba(9, 9, 9, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand { display: flex; align-items: center; gap: 0.75rem; justify-self: start; }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(182, 33, 38, 0.24)); }
.brand span { display: grid; gap: 0.1rem; }
.brand strong { font-size: 0.92rem; letter-spacing: 0.02em; }
.brand small { color: var(--muted); font-size: 0.69rem; }

.desktop-nav { display: flex; align-items: center; gap: 0.25rem; justify-self: center; }
.desktop-nav a {
  padding: 0.6rem 0.65rem;
  border-radius: 999px;
  color: #d7d0c7;
  font-size: 0.76rem;
  transition: 180ms ease;
}
.desktop-nav a:hover, .desktop-nav a.active { background: rgba(255, 248, 236, 0.08); color: white; }
.desktop-nav .nav-admin { border: 1px solid rgba(226, 72, 61, 0.3); }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 0.55rem; }
.language-switcher { display: flex; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.language-switcher button { min-width: 34px; min-height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.68rem; font-weight: 900; cursor: pointer; }
.language-switcher button.active { background: var(--paper); color: var(--ink); }

.install-button {
  justify-self: end;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.install-button span { margin-right: 0.25rem; }

main { min-height: calc(100vh - 76px); }
.page { animation: reveal 380ms ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: clamp(3.4rem, 8vw, 7rem) 0; }
.section.compact { padding: 2.5rem 0 5rem; }
.section.tint { background: linear-gradient(180deg, rgba(255, 248, 236, 0.035), transparent); border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--red-bright);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-title { max-width: 700px; margin: 0 0 2.2rem; }
.section-title h2 { margin: 0.75rem 0 0.75rem; font: 700 clamp(2rem, 5vw, 4rem)/1.02 Georgia, serif; letter-spacing: -0.04em; }
.section-title p { margin: 0; color: var(--muted); line-height: 1.75; }

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media > .hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(0.94) contrast(1.02); }
.hero-logo-cover {
  position: absolute;
  top: 2.8%;
  left: 3.2%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 12.9%;
  max-width: 198px;
  aspect-ratio: 1;
  background: #000;
}
.hero-logo-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #090909 0%, rgba(9, 9, 9, 0.48) 17%, transparent 43%);
}
.hero-content { padding: clamp(26rem, 58vh, 34rem) 0 clamp(3rem, 6vh, 5rem); }
.hero-copy { max-width: 540px; }
.hero h1 { margin: 0.75rem 0 1rem; font: 700 clamp(2.2rem, 4vw, 3.8rem)/0.94 Georgia, serif; letter-spacing: -0.05em; text-wrap: balance; }
.hero h1 em { display: block; color: transparent; -webkit-text-stroke: 1px rgba(255, 248, 236, 0.72); font-style: italic; }
.hero p { max-width: 580px; margin: 0; color: #d7d0c7; font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--red-bright), var(--red)); color: white; box-shadow: 0 14px 35px rgba(182, 33, 38, 0.28); }
.button.secondary { background: var(--paper); color: var(--ink); }
.button.ghost { border-color: var(--line); background: rgba(255, 248, 236, 0.04); color: var(--paper); }
.button.small { min-height: 40px; padding: 0.55rem 0.9rem; font-size: 0.82rem; }

.hero-note { display: flex; align-items: center; gap: 0.65rem; margin-top: 1.75rem; color: #a8a198; font-size: 0.78rem; }
.hero-note span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2rem; position: relative; z-index: 2; }
.quick-card {
  min-height: 180px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 23, 21, 0.94);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}
.quick-card:hover { transform: translateY(-5px); border-color: rgba(226, 72, 61, 0.45); }
.quick-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: rgba(182, 33, 38, 0.14); color: #ff7267; font-size: 1.15rem; }
.quick-card h3 { margin: 1.5rem 0 0.3rem; font-size: 1rem; }
.quick-card p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.agenda { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.agenda-feature { border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.agenda-date { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; padding: 1.5rem; background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.date-number { font: 700 3.8rem/0.9 Georgia, serif; }
.agenda-date span:last-child { display: grid; gap: 0.2rem; color: #f7d5d2; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; }
.agenda-date strong { color: white; font-size: 1.15rem; letter-spacing: 0; }
.agenda-details { padding: 1.6rem; }
.agenda-details h3 { margin: 0 0 0.65rem; font: 700 1.8rem/1.1 Georgia, serif; }
.agenda-details p { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.6; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; color: #d8d0c5; font-size: 0.8rem; }
.week-list { display: grid; gap: 0.4rem; }
.week-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.week-item time { color: var(--red-bright); font-weight: 900; }
.week-item h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.week-item p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.week-item > span:last-child { color: #817a72; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.news-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: transform 180ms ease, border-color 180ms ease; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(226,72,61,.48); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: saturate(0.9); }
.news-content { padding: 1.25rem; }
.news-content time { color: var(--red-bright); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.news-content h3 { margin: 0.65rem 0 1rem; font: 700 1.25rem/1.25 Georgia, serif; }
.text-link { display: inline-flex; gap: 0.4rem; align-items: center; color: #eee5da; font-size: 0.8rem; font-weight: 800; }
.text-link:hover { color: var(--red-bright); }
.news-home-footer { display: flex; justify-content: center; margin-top: 1.5rem; }

.newsroom-page { min-height: calc(100vh - 76px); padding-bottom: 6rem; background: #f5f2ec; color: #171717; font-family: Arial, Helvetica, sans-serif; }
.newsroom-shell { width: min(1240px, 100%); margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px rgba(19,19,19,.06); }
.paper-header { padding: 1.1rem clamp(1rem, 4vw, 3.5rem) 0; background: #fff; }
.paper-edition-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-bottom: .7rem; border-bottom: 1px solid #bdb8af; color: #4f4b46; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.paper-edition-line time { text-align: center; }
.paper-edition-line span:last-child { text-align: right; }
.paper-masthead { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.8rem) 0 1.5rem; text-align: center; }
.paper-masthead img { width: clamp(58px, 8vw, 88px); height: clamp(58px, 8vw, 88px); object-fit: contain; }
.paper-masthead > div { display: grid; justify-items: center; }
.paper-masthead span { color: #8f171b; font-size: .62rem; font-weight: 900; letter-spacing: .2em; }
.paper-masthead h1 { margin: .25rem 0 .15rem; color: #111; font: 900 clamp(2.5rem, 8vw, 6.5rem)/.82 Georgia, "Times New Roman", serif; letter-spacing: -.06em; }
.paper-masthead p { margin: .45rem 0 0; color: #4f4b46; font-size: .66rem; font-weight: 850; letter-spacing: .2em; }
.paper-tools { display: grid; grid-template-columns: minmax(220px, .6fr) 1fr; gap: 1.4rem; align-items: center; padding: .8rem 0; border-top: 3px double #1b1b1b; color: #625d56; font-size: .72rem; }
.paper-search { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 1px solid #c8c2b8; background: #faf8f4; }
.paper-search span { color: #8f171b; font-size: 1.2rem; }
.paper-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #171717; }
.paper-search input::placeholder { color: #77716a; }
.paper-sections { display: flex; overflow-x: auto; border-top: 1px solid #1c1c1c; border-bottom: 3px solid #1c1c1c; scrollbar-width: none; }
.paper-sections::-webkit-scrollbar { display: none; }
.paper-sections button { flex: 1 0 auto; padding: .8rem 1rem; border: 0; border-right: 1px solid #d7d2ca; background: #fff; color: #25221f; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.paper-sections button:hover, .paper-sections button.active { background: #8f171b; color: #fff; }
.paper-breaking { display: flex; align-items: center; gap: .8rem; overflow: hidden; padding: .75rem clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid #d7d2ca; background: #f0ece5; color: #393530; font-size: .72rem; white-space: nowrap; }
.paper-breaking strong { color: #8f171b; font-size: .65rem; letter-spacing: .08em; }
.paper-breaking span { overflow: hidden; text-overflow: ellipsis; }
.paper-front { padding: clamp(1.2rem, 4vw, 3.5rem); }
.paper-feature-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: clamp(1.3rem, 3vw, 2.3rem); padding-bottom: clamp(2rem, 5vw, 4rem); border-bottom: 4px double #222; }
.paper-lead-story { display: grid; grid-template-rows: auto 1fr; }
.paper-lead-image { overflow: hidden; background: #ded8cf; }
.paper-lead-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.88) contrast(1.03); transition: transform 300ms ease; }
.paper-lead-image:hover img, .paper-story-image:hover img { transform: scale(1.02); }
.paper-lead-copy { padding-top: 1.2rem; }
.paper-lead-copy h2 { margin: .7rem 0 .75rem; font: 800 clamp(2.1rem, 5vw, 4.8rem)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.paper-lead-copy h2 a:hover, .paper-side-story h3 a:hover, .paper-story-copy h3 a:hover { color: #8f171b; }
.paper-lead-copy > p { max-width: 850px; margin: 0 0 1rem; color: #514c46; font: 1rem/1.65 Georgia, "Times New Roman", serif; }
.paper-story-meta { display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: center; color: #6c665f; font-size: .61rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.paper-story-meta span:first-child { color: #8f171b; }
.paper-story-meta > * + *::before { content: "·"; margin-right: .75rem; color: #aaa39a; }
.paper-read-link { display: inline-flex; align-items: center; gap: .4rem; color: #8f171b; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.paper-side-stories { display: grid; align-content: start; gap: 1.5rem; }
.paper-side-story { padding-bottom: 1.5rem; border-bottom: 1px solid #bdb8af; }
.paper-side-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .9rem; }
.paper-side-story h3 { margin: .55rem 0 .45rem; font: 800 1.45rem/1.08 Georgia, "Times New Roman", serif; }
.paper-side-story > p { margin: 0; color: #5e5851; font: .86rem/1.55 Georgia, "Times New Roman", serif; }
.paper-latest { padding-top: clamp(2.2rem, 5vw, 4rem); }
.paper-section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.3rem; padding-bottom: .9rem; border-bottom: 3px solid #1c1c1c; }
.paper-section-heading span { color: #8f171b; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.paper-section-heading h2 { margin: .25rem 0 0; font: 800 clamp(1.8rem, 4vw, 3rem)/1 Georgia, "Times New Roman", serif; }
.paper-section-heading p { max-width: 450px; margin: 0; color: #6b655e; font-size: .75rem; line-height: 1.5; text-align: right; }
.paper-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.4rem; }
.paper-story-card { display: grid; grid-template-rows: auto 1fr; padding: 0 0 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #cfc9c0; }
.paper-story-card[hidden] { display: none; }
.paper-story-image { overflow: hidden; background: #ded8cf; }
.paper-story-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms ease; }
.paper-story-copy { display: flex; flex-direction: column; padding-top: .9rem; }
.paper-story-copy h3 { margin: .55rem 0; font: 800 1.4rem/1.12 Georgia, "Times New Roman", serif; }
.paper-story-copy > p { margin: 0 0 .9rem; color: #5f5952; font: .83rem/1.55 Georgia, "Times New Roman", serif; }
.paper-story-copy .paper-read-link { margin-top: auto; }
.paper-map-card { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; margin: clamp(2rem, 5vw, 4rem) 0 0; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #c9c2b7; border-top: 5px solid #5f2868; background: #f7f3ed; }
.paper-map-preview { display: block; overflow: hidden; border: 1px solid #d6d0c7; background: #fff; box-shadow: 0 18px 42px rgba(31, 25, 20, .12); }
.paper-map-preview img { display: block; width: 100%; aspect-ratio: 1.414 / 1; object-fit: cover; transition: transform 280ms ease; }
.paper-map-preview:hover img { transform: scale(1.015); }
.paper-map-copy > span { color: #8f171b; font-size: .64rem; font-weight: 900; letter-spacing: .12em; }
.paper-map-copy h2 { margin: .6rem 0 .8rem; font: 800 clamp(1.8rem, 4vw, 3.2rem)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.paper-map-copy p { margin: 0 0 1.2rem; color: #5f5952; font: .95rem/1.65 Georgia, "Times New Roman", serif; }
.paper-map-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.paper-map-actions .button { min-width: 150px; }
.paper-map-source { display: inline-flex; gap: .4rem; align-items: center; margin-top: 1rem; color: #5f2868; font-size: .74rem; font-weight: 850; line-height: 1.4; }
.paper-no-results { padding: 3rem 1rem; border: 1px solid #d7d2ca; background: #faf8f4; color: #5f5952; text-align: center; }
.paper-subscribe { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; margin-top: 2rem; padding: clamp(1.4rem, 4vw, 2.5rem); background: #171717; color: #fff; }
.paper-subscribe span { color: #e9b866; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.paper-subscribe h2 { max-width: 760px; margin: .45rem 0 0; font: 700 clamp(1.5rem, 4vw, 2.6rem)/1.05 Georgia, "Times New Roman", serif; }
.paper-back-link { display: inline-flex; margin-bottom: 2rem; color: #8f171b; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.paper-article { width: min(920px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; }
.paper-article-header { max-width: 860px; margin: 0 auto 2rem; text-align: center; }
.paper-article-header .paper-story-meta { justify-content: center; }
.paper-article-header h1 { margin: 1rem 0; font: 800 clamp(2.5rem, 7vw, 5.8rem)/.96 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.paper-article-header > p { max-width: 780px; margin: 0 auto 1.5rem; color: #5f5952; font: 1.1rem/1.65 Georgia, "Times New Roman", serif; }
.paper-byline { display: flex; justify-content: center; gap: .5rem 1rem; flex-wrap: wrap; color: #6b655e; font-size: .7rem; }
.paper-byline strong { color: #222; }
.paper-article-image { margin: 0 0 2.5rem; }
.paper-article-image img { width: 100%; max-height: 610px; object-fit: cover; }
.paper-article-body { width: min(700px, 100%); margin: 0 auto; }
.paper-article-body p { margin: 0 0 1.4rem; color: #2e2b28; font: 1.15rem/1.85 Georgia, "Times New Roman", serif; }
.paper-article-body p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: #8f171b; font: 800 4.2rem/.8 Georgia, "Times New Roman", serif; }
.paper-fact-box { margin: 2.2rem 0; padding: clamp(1.2rem, 4vw, 2rem); border-left: 5px solid #8f171b; background: #f3eee6; }
.paper-fact-box h2 { margin: 0 0 1rem; font: 800 clamp(1.35rem, 3vw, 2rem)/1.15 Georgia, "Times New Roman", serif; }
.paper-fact-box ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.6rem; margin: 0; padding-left: 1.2rem; }
.paper-fact-box li { color: #35312d; font: .92rem/1.55 Arial, Helvetica, sans-serif; }
.paper-source-box { margin-top: 2rem; padding: 1.2rem; border-top: 3px double #24211e; border-bottom: 1px solid #cfc8be; }
.paper-source-box strong { display: block; margin-bottom: .75rem; color: #4f4943; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.paper-source-box > div { display: grid; gap: .55rem; }
.paper-source-box a { color: #8f171b; font-size: .86rem; font-weight: 850; line-height: 1.4; }
.paper-related { padding: 0 clamp(1rem, 4vw, 3.5rem) clamp(3rem, 7vw, 5rem); }

.donation-section { padding-top: clamp(2.2rem, 5vw, 4.5rem); padding-bottom: clamp(2.2rem, 5vw, 4.5rem); }
.donation-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; overflow: hidden; padding: clamp(1.5rem, 5vw, 4rem); border: 1px solid rgba(212,170,97,.34); border-radius: 36px; background: radial-gradient(circle at 12% 15%, rgba(182,33,38,.3), transparent 34%), linear-gradient(135deg, #17100f, #090909 72%); box-shadow: var(--shadow); }
.donation-card::after { content: "❤"; position: absolute; right: -2rem; bottom: -4.5rem; color: rgba(212,170,97,.045); font-size: clamp(12rem, 30vw, 24rem); line-height: 1; pointer-events: none; }
.donation-card > * { position: relative; z-index: 1; }
.donation-heading { margin: 0; color: var(--red-bright); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 900; letter-spacing: .06em; line-height: 1.15; text-transform: uppercase; }
.donation-copy blockquote { max-width: 700px; margin: .9rem 0 .65rem; color: #fff8ec; font: italic 700 clamp(2.25rem, 5vw, 4.6rem)/1.02 Georgia, serif; letter-spacing: -.045em; }
.donation-copy cite { display: block; color: var(--gold); font-size: .78rem; font-style: normal; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.donation-copy p { max-width: 640px; margin: 1.2rem 0 0; color: var(--muted); line-height: 1.7; }
.donation-account { display: grid; gap: .65rem; min-width: 0; padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid rgba(255,248,236,.13); border-radius: 24px; background: rgba(8,8,8,.78); backdrop-filter: blur(16px); }
.donation-account > span { color: var(--red-bright); font-size: .69rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.donation-account > strong { color: var(--muted); font-size: .72rem; }
.donation-account code { display: block; overflow-wrap: anywhere; color: #fff8ec; font: 800 clamp(1rem, 2vw, 1.3rem)/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .025em; }
.donation-account small { color: #d9bd86; font-size: .76rem; }
.donation-account .button { width: 100%; margin-top: .35rem; }

.contact-section { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-card { display: grid; align-content: start; min-width: 0; min-height: 210px; padding: clamp(1.2rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(255,248,236,.055), rgba(255,248,236,.018)); box-shadow: 0 18px 45px rgba(0,0,0,.18); transition: 180ms ease; }
.contact-card:hover { transform: translateY(-3px); border-color: rgba(226,72,61,.52); background: linear-gradient(145deg, rgba(182,33,38,.14), rgba(255,248,236,.025)); }
.contact-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.3rem; border-radius: 16px; background: rgba(182,33,38,.16); color: #ff766d; font-size: 1.25rem; }
.contact-card > span:not(.contact-icon) { color: var(--red-bright); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { margin-top: .55rem; overflow-wrap: anywhere; color: #fff8ec; font-size: clamp(.95rem, 2vw, 1.1rem); line-height: 1.45; }
.contact-card small { margin-top: .35rem; color: var(--muted); line-height: 1.5; }
.contact-card b { margin-top: auto; padding-top: 1.2rem; color: #d9bd86; font-size: .78rem; }
.contact-card b i { margin-left: .25rem; font-style: normal; }

.faith-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid rgba(226, 72, 61, 0.28);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(127, 18, 23, 0.92), rgba(25, 11, 10, 0.92));
}
.faith-banner::after { content: "✦"; position: absolute; right: 5%; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.06); font-size: clamp(10rem, 30vw, 24rem); line-height: 1; }
.faith-banner > * { position: relative; z-index: 1; }
.faith-banner blockquote { max-width: 760px; margin: 0 0 1.5rem; font: italic 700 clamp(2rem, 5vw, 4.2rem)/1.06 Georgia, serif; letter-spacing: -0.04em; }
.faith-banner p { margin: 0 0 2rem; color: #f1c7c4; }

.book-promo-section { padding-top: 2rem; }
.book-promo { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; overflow: hidden; padding: clamp(1rem, 3vw, 2.2rem); border: 1px solid rgba(214,166,72,.28); border-radius: 34px; background: radial-gradient(circle at 20% 10%, rgba(182,33,38,.22), transparent 38%), linear-gradient(135deg, #0b1724, #15100f 72%); box-shadow: 0 28px 75px rgba(0,0,0,.28); }
.book-promo::after { content: ""; position: absolute; right: -80px; bottom: -90px; width: 270px; height: 270px; border: 1px solid rgba(214,166,72,.18); border-radius: 50%; pointer-events: none; }
.book-mockup-link { position: relative; z-index: 1; display: block; overflow: hidden; border-radius: 25px; color: white; text-decoration: none; box-shadow: 0 22px 55px rgba(0,0,0,.38); }
.book-mockup-link img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 450ms ease; }
.book-mockup-link > span { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(8,12,18,.76); font-size: .75rem; font-weight: 850; backdrop-filter: blur(14px); }
.book-mockup-link:hover img { transform: scale(1.025); }
.book-mockup-link:focus-visible { outline: 3px solid #d6a648; outline-offset: 4px; }
.book-promo-copy { position: relative; z-index: 1; }
.book-promo-copy h2 { margin: .8rem 0 1rem; font: 700 clamp(2.5rem, 6vw, 5rem)/.96 Georgia, serif; letter-spacing: -.045em; }
.book-promo-copy > p { margin: 0 0 1.2rem; color: #c7beb3; line-height: 1.75; }
.book-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.35rem; }
.book-facts span { padding: .45rem .65rem; border: 1px solid rgba(214,166,72,.24); border-radius: 999px; color: #ead09a; font-size: .68rem; font-weight: 750; }
.book-promo-copy > small { display: block; margin-top: .9rem; color: #8f877e; font-size: .68rem; }

.library-section { padding-top: 2rem; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.library-heading h2 { margin: .6rem 0 .45rem; font: 700 clamp(2rem, 4.5vw, 3.6rem)/.98 Georgia, serif; letter-spacing: -.04em; }
.library-heading p { margin: 0; color: var(--muted); }
.library-count { flex: 0 0 auto; padding: .55rem .8rem; border: 1px solid rgba(214,166,72,.28); border-radius: 999px; color: #ead09a; font-size: .72rem; font-weight: 800; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.library-card { display: flex; flex-direction: column; overflow: hidden; min-height: 510px; border: 1px solid rgba(214,166,72,.24); border-radius: 26px; background: linear-gradient(145deg, #101b27, #151210 75%); box-shadow: 0 22px 55px rgba(0,0,0,.22); }
.library-card-media { position: relative; display: grid; place-items: center; overflow: hidden; height: 280px; min-height: 280px; padding: .7rem; color: white; text-decoration: none; background: radial-gradient(circle at 50% 24%, rgba(214,166,72,.17), transparent 48%), #080d13; }
.library-card-media img { display: block; width: 100%; height: 100%; max-height: 265px; object-fit: contain; transition: transform 350ms ease; }
.library-card-media-portrait img { width: auto; max-width: 100%; }
.library-card-media > span { position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(8,12,18,.82); font-size: .66rem; font-weight: 850; backdrop-filter: blur(12px); }
.library-card-media:hover img { transform: scale(1.025); }
.library-card-media:focus-visible { outline: 3px solid #d6a648; outline-offset: -4px; }
.library-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.25rem; }
.library-card-body h3 { margin: .55rem 0 .65rem; font: 700 clamp(1.55rem, 3vw, 2.35rem)/1 Georgia, serif; letter-spacing: -.035em; }
.library-card-body > p { display: -webkit-box; overflow: hidden; margin: 0 0 1rem; color: #bdb5ab; font-size: .78rem; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.library-card-body .book-facts { margin-top: auto; margin-bottom: 1rem; }
.library-card-body .button { width: 100%; justify-content: center; }

.book-reader-page { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 7rem; }
.reader-heading { max-width: 850px; margin-bottom: 1.5rem; }
.reader-heading .course-back-link { display: flex; width: max-content; }
.reader-heading h1 { margin: .8rem 0 .75rem; font: 700 clamp(2.7rem, 7vw, 5.8rem)/.94 Georgia, serif; letter-spacing: -.05em; }
.reader-heading p { max-width: 660px; color: var(--muted); line-height: 1.7; }
.book-reader { overflow: hidden; border: 1px solid rgba(214,166,72,.28); border-radius: 28px; background: #0c0c0c; box-shadow: 0 28px 78px rgba(0,0,0,.35); }
body.book-reader-fullscreen-open { overflow: hidden; overscroll-behavior: none; }
body.book-reader-fullscreen-open .book-reader-page { animation: none; transform: none; }
body.book-reader-fullscreen-open .site-header,
body.book-reader-fullscreen-open .mobile-nav { visibility: hidden; pointer-events: none; }
.book-reader.is-reader-fullscreen,
.book-reader:fullscreen { position: fixed; inset: 0; z-index: 10000; width: 100vw; max-width: none; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 0; border-radius: 0; background: #070707; box-shadow: none; }
.book-reader.is-reader-fullscreen .book-reader-stage-wrap,
.book-reader:fullscreen .book-reader-stage-wrap { height: 100%; min-height: 0; }
.book-reader.is-reader-fullscreen .book-reader-stage,
.book-reader:fullscreen .book-reader-stage { min-height: 0; height: 100%; place-items: start center; padding: clamp(.35rem, 2vw, 1rem); overflow-y: auto; overscroll-behavior: contain; }
.book-reader.is-reader-fullscreen .book-reader-stage img,
.book-reader:fullscreen .book-reader-stage img { width: min(100%, 920px); max-width: none; max-height: none; height: auto; object-fit: initial; }
.book-reader.is-reader-fullscreen .book-reader-toolbar,
.book-reader.is-reader-fullscreen .book-reader-footer { flex: 0 0 auto; }
.book-reader.is-reader-fullscreen .book-reader-toolbar { position: relative; z-index: 2; padding: max(.7rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) .7rem max(.75rem, env(safe-area-inset-left)); }
.book-reader.is-reader-fullscreen .book-reader-toolbar button { min-width: 52px; min-height: 46px; border-color: rgba(214,166,72,.7); background: #8f181d; color: white; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.book-reader.is-reader-fullscreen .book-reader-toolbar button:disabled { opacity: .48; }
.book-reader-toolbar, .book-reader-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: #151413; }
.book-reader-toolbar button, .book-reader-footer button, .book-reader-footer input { border: 1px solid var(--line); border-radius: 999px; background: #0e0d0d; color: var(--paper); }
.book-reader-toolbar button { min-width: 118px; padding: .65rem .85rem; cursor: pointer; }
.book-reader-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.book-reader-toolbar .reader-arrow { display: inline-grid; place-items: center; min-width: 1.35rem; font-size: 1.35rem; font-weight: 900; line-height: 1; }
.book-reader-toolbar button:hover:not(:disabled), .book-reader-footer button:hover { border-color: rgba(226,72,61,.6); background: rgba(182,33,38,.1); }
.book-reader-toolbar button:disabled { cursor: not-allowed; opacity: .38; }
.book-reader-toolbar strong { color: #ead09a; font-size: .76rem; text-align: center; }
.book-reader-stage-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 42px; height: clamp(520px, 74vh, 820px); min-height: 0; background: #080808; }
.book-reader-stage { min-height: 0; height: 100%; display: grid; place-items: start center; padding: clamp(.75rem, 3vw, 2rem); overflow: auto; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; background: radial-gradient(circle at 50% 10%, rgba(255,255,255,.055), transparent 42%), #080808; touch-action: pan-y pinch-zoom; }
.book-reader-stage:focus-visible { outline: 3px solid #d6a648; outline-offset: -4px; }
.book-reader-stage img { display: block; width: min(100%, 850px); height: auto; border-radius: 4px; background: white; box-shadow: 0 22px 60px rgba(0,0,0,.5); user-select: none; -webkit-user-drag: none; }
.reader-scrollbar { display: grid; grid-template-rows: 40px minmax(0, 1fr) 40px; place-items: center; gap: .35rem; padding: .45rem .3rem; border-left: 1px solid rgba(214,166,72,.2); background: #121110; }
.reader-scrollbar button { width: 32px; height: 32px; padding: 0; border: 1px solid rgba(214,166,72,.45); border-radius: 50%; background: #211d18; color: #f4dfb0; font-size: 1.05rem; cursor: pointer; }
.reader-scrollbar button:hover { border-color: #d6a648; background: #8f181d; color: white; }
.reader-scrollbar input { width: 22px; height: 100%; margin: 0; writing-mode: vertical-lr; direction: rtl; -webkit-appearance: slider-vertical; appearance: slider-vertical; accent-color: #d6a648; cursor: ns-resize; }
.reader-scrollbar input:disabled { opacity: .38; cursor: default; }
.book-reader-stage::-webkit-scrollbar { width: 10px; }
.book-reader-stage::-webkit-scrollbar-track { background: #111; }
.book-reader-stage::-webkit-scrollbar-thumb { border: 2px solid #111; border-radius: 999px; background: #b88b42; }
.book-reader-footer { border-top: 1px solid var(--line); border-bottom: 0; }
.book-reader-footer form { display: flex; align-items: center; gap: .5rem; }
.book-reader-footer label { color: var(--muted); font-size: .7rem; }
.book-reader-footer input { width: 74px; padding: .58rem .65rem; text-align: center; }
.book-reader-footer button { padding: .6rem .8rem; cursor: pointer; }
.reader-protection { margin: 1rem 0 0; color: #817a72; font-size: .68rem; text-align: center; }

.course-hero { padding: 5rem 0 2.5rem; }
.course-hero h1, .dashboard-heading h1, .member-welcome h1 { margin: 0.75rem 0 0.8rem; font: 700 clamp(2.5rem, 7vw, 5.5rem)/0.98 Georgia, serif; letter-spacing: -0.05em; }
.course-hero p { max-width: 680px; color: var(--muted); line-height: 1.7; }

.public-page { padding-bottom: 7rem; }
.content-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.content-hero h1 { max-width: 880px; margin: 0.8rem 0 1rem; font: 700 clamp(2.7rem, 8vw, 6.4rem)/0.92 Georgia, serif; letter-spacing: -0.055em; }
.content-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.content-section { padding: clamp(2.8rem, 7vw, 5rem) 0 0; }
.content-grid, .video-grid, .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.content-card, .video-card, .photo-card, .public-empty, .live-stage { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.content-card > img, .placeholder-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.placeholder-media { display: grid; place-items: center; color: var(--red-bright); font-size: 2rem; background: radial-gradient(circle at 50% 35%, rgba(182,33,38,.32), transparent 45%), #110f0e; }
.content-card-body { padding: 1.2rem; }
.content-card h2, .video-card h2 { margin: 0.55rem 0 0.6rem; font: 700 1.35rem/1.15 Georgia, serif; }
.content-card p, .video-card p { min-height: 3.2em; margin: 0 0 1rem; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.content-country { color: var(--red-bright); font-size: 0.68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.study-section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.3rem; }
.study-section-heading > strong { color: var(--muted); font-size: .75rem; font-weight: 750; }
.study-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.study-document-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.study-document-cover { min-height: 190px; display: grid; align-content: space-between; padding: 1.3rem; border-bottom: 1px solid rgba(212,170,97,.22); background: radial-gradient(circle at 85% 15%, rgba(212,170,97,.28), transparent 34%), linear-gradient(145deg, #80141a, #22100f 72%); }
.study-document-cover > span { color: #f2d39b; font-size: .66rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.study-document-cover > strong { color: #fff8ec; font: 700 clamp(2.4rem, 6vw, 4.2rem)/.95 Georgia, serif; letter-spacing: -.04em; }
.study-document-cover > small { color: #dcc9a7; font-size: .68rem; font-weight: 750; }
.study-document-body { display: flex; flex-direction: column; padding: 1.25rem; }
.study-document-body h2 { margin: 0 0 .65rem; font: 700 1.3rem/1.18 Georgia, serif; }
.study-document-body p { margin: 0 0 1.2rem; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.study-document-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: auto; }
.study-document-actions .button { justify-content: center; padding-inline: .75rem; }
.study-published-section { margin-top: clamp(3rem, 7vw, 5rem); }
.public-empty { grid-column: 1 / -1; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.public-empty > span { display: block; color: var(--red-bright); font-size: 1.7rem; }
.public-empty h2 { margin: 0.8rem 0 0.5rem; font: 700 1.8rem/1.1 Georgia, serif; }
.public-empty p { max-width: 580px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.live-stage { min-height: 420px; margin-top: 2rem; padding: clamp(2rem, 7vw, 5rem); display: grid; justify-items: center; align-content: center; text-align: center; background: radial-gradient(circle at 50% 15%, rgba(182,33,38,.28), transparent 38%), var(--panel); }
.live-symbol { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 50%; background: var(--red); color: white; font-size: 1.8rem; box-shadow: 0 0 0 12px rgba(182,33,38,.14); }
.live-stage h2 { margin: 1rem 0 .65rem; font: 700 clamp(2rem, 6vw, 4rem)/1 Georgia, serif; }
.live-stage p { max-width: 620px; margin: 0 0 1.5rem; color: var(--muted); line-height: 1.7; }
.button.disabled { cursor: not-allowed; opacity: .55; }
.video-card { display: grid; grid-template-rows: auto 1fr; }
.video-card > div:last-child { padding: 1.2rem; }
.video-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; background-position: center; background-size: cover; background-color: #120f0f; }
.video-cover span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(182,33,38,.92); font-size: 1.35rem; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.photo-card { position: relative; min-height: 290px; margin: 0; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { position: absolute; inset: auto 0 0; display: grid; gap: .25rem; padding: 2.8rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.photo-card figcaption span { color: #ddd4ca; font-size: .75rem; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.course-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.course-card-link { color: inherit; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.course-card-link:hover { transform: translateY(-4px); border-color: rgba(226,72,61,.58); box-shadow: 0 18px 48px rgba(0,0,0,.25); }
.course-card-link:focus-visible { outline: 3px solid rgba(226,72,61,.8); outline-offset: 3px; }
.course-cover-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #151210; }
.course-cover { min-height: 160px; padding: 1.3rem; display: flex; align-items: flex-end; background: linear-gradient(135deg, #7f1217, #21110f); }
.course-cover.alt { background: linear-gradient(135deg, #2f281d, #a66f25); }
.course-cover.blue { background: linear-gradient(135deg, #142237, #354e6c); }
.course-cover span { font: 700 2.1rem/1 Georgia, serif; max-width: 10ch; }
.course-body { padding: 1.3rem; }
.course-body h2 { min-height: 2.35em; margin: .75rem 0 .55rem; font: 700 1.42rem/1.16 Georgia, serif; }
.course-body p { min-height: 3.8em; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.course-meta { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); color: #d4cdc5; font-size: 0.77rem; }
.course-detail-page { padding-top: clamp(2.2rem, 6vw, 4.5rem); padding-bottom: 7rem; }
.course-back-link { display: inline-flex; margin-bottom: 1.2rem; color: #d7cfc5; font-size: .78rem; font-weight: 800; text-decoration: none; }
.course-back-link:hover { color: var(--paper); }
.course-detail-hero { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, rgba(182,33,38,.14), rgba(255,255,255,.025)); }
.course-detail-hero > img { width: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; }
.course-detail-hero h1 { margin: .8rem 0 1rem; font: 700 clamp(2.4rem, 6vw, 5.2rem)/.98 Georgia, serif; letter-spacing: -.045em; }
.course-detail-hero p { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.72; }
.course-detail-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.course-detail-meta span { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: #ddd4ca; font-size: .7rem; }
.course-lessons-section { padding-top: clamp(3rem, 7vw, 5rem); }
.lesson-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.lesson-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.lesson-card[open] { border-color: rgba(226,72,61,.36); }
.lesson-card summary { display: grid; grid-template-columns: 46px minmax(0,1fr) 32px; gap: 1rem; align-items: center; padding: 1rem 1.15rem; cursor: pointer; list-style: none; }
.lesson-card summary::-webkit-details-marker { display: none; }
.lesson-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(182,33,38,.14); color: #ff8a81; font-size: .76rem; font-weight: 900; }
.lesson-title { display: grid; gap: .25rem; }
.lesson-title strong { color: var(--paper); font: 700 1.15rem/1.2 Georgia, serif; }
.lesson-title small { color: var(--muted); font-size: .68rem; }
.lesson-toggle { color: #ff8a81; font-size: 1.35rem; transition: transform 180ms ease; }
.lesson-card[open] .lesson-toggle { transform: rotate(45deg); }
.lesson-content { padding: 0 1.15rem 1.15rem; }
.lesson-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #050505; }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.login-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 3rem 1rem 6rem; }
.login-card { width: min(920px, 100%); display: grid; grid-template-columns: 0.95fr 1.05fr; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--panel); box-shadow: var(--shadow); }
.login-visual { min-height: 540px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.88)), url("./assets/pastores-v2.png") center/cover; }
.login-visual img { width: 62px; height: 62px; border-radius: 18px; }
.login-visual h2 { max-width: 10ch; margin: 0; font: 700 3rem/0.96 Georgia, serif; }
.login-form { padding: clamp(2rem, 6vw, 4.2rem); display: flex; flex-direction: column; justify-content: center; }
.login-form h1 { margin: 0.8rem 0; font: 700 2.6rem/1 Georgia, serif; }
.login-form > p { color: var(--muted); line-height: 1.65; }
.demo-options { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.demo-option { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 0.85rem; align-items: center; padding: 0.9rem; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.03); color: var(--paper); text-align: left; text-decoration: none; cursor: pointer; }
.demo-option:hover { border-color: rgba(226,72,61,.5); background: rgba(182,33,38,.08); }
.demo-option .role-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(182,33,38,.16); color: var(--red-bright); }
.demo-option strong, .demo-option small { display: block; }
.demo-option small { margin-top: 0.2rem; color: var(--muted); }
.privacy-note { display: flex; gap: 0.55rem; align-items: flex-start; margin-top: 1.5rem; padding: 0.8rem; border-radius: 14px; background: rgba(91,191,138,.08); color: #adddc4 !important; font-size: 0.74rem; }

.member-page, .dashboard-page { padding: 2.5rem 0 6rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.65rem; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); font-weight: 900; }
.member-welcome { padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(130deg, rgba(182,33,38,.16), rgba(255,255,255,.035)); }
.member-welcome p { max-width: 620px; color: var(--muted); line-height: 1.7; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1rem 0 2rem; }
.tither-summary { grid-template-columns: repeat(2, minmax(0, 260px)); }
.summary-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.summary-card .label { color: var(--muted); font-size: 0.75rem; }
.summary-card strong { display: block; margin-top: 0.6rem; font: 700 2rem/1 Georgia, serif; }
.summary-card .trend { display: block; margin-top: 0.5rem; color: #8bd8ad; font-size: 0.7rem; }
.member-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1rem; }
.panel { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2, .panel-heading h3 { margin: 0; font: 700 1.35rem/1.2 Georgia, serif; }
.panel-heading p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.8rem; }
.progress-row { margin: 1.2rem 0; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 0.55rem; font-size: 0.82rem; }
.progress-track { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--red-bright)); }
.info-list { display: grid; gap: 0.8rem; }
.info-item { display: grid; grid-template-columns: 40px 1fr; gap: 0.75rem; align-items: center; padding: 0.75rem; border: 1px solid var(--line); border-radius: 16px; }
.info-item > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.05); }
.info-item strong, .info-item small { display: block; }
.info-item small { color: var(--muted); margin-top: 0.15rem; }

.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 1rem 0 1.5rem; }
.dashboard-heading h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.dashboard-heading p { margin: 0; color: var(--muted); }
.admin-tabs { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; scrollbar-width: none; }
.admin-tabs button { flex: 0 0 auto; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.admin-tabs button.active { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 800; }
.admin-content { animation: reveal 260ms ease both; }
.admin-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.activity-list, .birthday-list { display: grid; gap: 0.2rem; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(182,33,38,.13); color: var(--red-bright); }
.activity-item strong, .activity-item small { display: block; }
.activity-item small, .activity-item time { color: var(--muted); font-size: 0.72rem; }
.table-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.search-input { min-width: min(100%, 280px); padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #100f0e; color: var(--paper); outline: none; }
.search-input:focus { border-color: var(--red-bright); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th, .data-table td { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--muted); font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.55rem; border-radius: 999px; background: rgba(91,191,138,.1); color: #9fe0bd; font-size: 0.68rem; font-weight: 800; }
.badge.warning { background: rgba(212,170,97,.11); color: #e8c688; }
.badge.red { background: rgba(226,72,61,.1); color: #ff8a81; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 0.35rem; color: var(--paper); }
.privacy-card { padding: 1rem; border: 1px solid rgba(91,191,138,.2); border-radius: 18px; background: rgba(91,191,138,.07); color: #b9e3cd; }
.privacy-card h3 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.privacy-card p { margin: 0; font-size: 0.76rem; line-height: 1.55; }
.finance-lock { display: grid; place-items: center; min-height: 360px; text-align: center; }
.finance-lock .lock { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 22px; background: rgba(182,33,38,.14); color: var(--red-bright); font-size: 1.8rem; }
.finance-lock h2 { margin: 0; font: 700 2rem/1.1 Georgia, serif; }
.finance-lock p { max-width: 480px; color: var(--muted); line-height: 1.6; }
.finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; width: 100%; margin-top: 1.5rem; text-align: left; }
.finance-card { padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.finance-card small { color: var(--muted); }
.finance-card strong { display: block; margin-top: 0.4rem; font-size: 1.35rem; }

.dialog { width: min(620px, calc(100% - 1.2rem)); padding: 0; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); color: var(--paper); box-shadow: var(--shadow); }
.dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(7px); }
.dialog form { padding: clamp(1.2rem, 4vw, 2rem); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.dialog-heading h2 { margin: 0.55rem 0 0; font: 700 2rem/1 Georgia, serif; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.5rem; cursor: pointer; }
.dialog label { display: grid; gap: 0.45rem; margin-bottom: 1rem; color: #ded7ce; font-size: 0.8rem; font-weight: 700; }
.dialog input, .dialog select, .dialog textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 0.75rem 0.85rem; background: #100f0e; color: var(--paper); outline: none; resize: vertical; }
.dialog input:focus, .dialog select:focus, .dialog textarea:focus { border-color: var(--red-bright); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.dialog .consent-check { grid-template-columns: auto 1fr; align-items: flex-start; font-weight: 500; line-height: 1.5; }
.consent-check input { width: 18px; height: 18px; accent-color: var(--red); }
.form-note { color: var(--muted); font-size: 0.72rem; }
.generated-number { display: grid; gap: 0.25rem; margin: 0.25rem 0 1rem; padding: 1rem; border: 1px solid rgba(226,72,61,.25); border-radius: 16px; background: rgba(182,33,38,.08); }
.generated-number span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.generated-number strong { color: #ff8a81; font: 700 1.7rem/1 Georgia, serif; letter-spacing: 0.04em; }
.generated-number small { color: var(--muted); font-size: 0.7rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.4rem; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 60; max-width: calc(100% - 2rem); padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.82rem; font-weight: 750; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: 220ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .brand img { width: 44px; height: 44px; }
  .brand span { display: none; }
  .desktop-nav { display: none; }
  .header-actions { grid-column: 2; }
  .hero { min-height: 680px; }
  .hero-media::after { background: linear-gradient(0deg, #090909 0%, rgba(3,3,3,.55) 55%, rgba(3,3,3,.24)); }
  .hero-content { padding-bottom: 5rem; }
  .quick-grid, .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .agenda, .member-grid, .admin-grid, .donation-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .book-promo { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-detail-hero { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); }
  .news-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .paper-feature-grid { grid-template-columns: 1fr; }
  .paper-side-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-map-card { grid-template-columns: 1fr; }
  .login-card { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .mobile-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    overflow-x: auto;
    padding: 0.45rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    background: rgba(18,17,16,.92);
    box-shadow: 0 16px 45px rgba(0,0,0,.45);
    backdrop-filter: blur(20px);
    scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 72px; display: grid; justify-items: center; gap: 0.15rem; padding: 0.35rem; border-radius: 15px; color: #89827a; }
  .mobile-nav a span { font-size: 1.2rem; }
  .mobile-nav a small { font-size: 0.61rem; }
  .mobile-nav a.active { background: rgba(182,33,38,.16); color: #ff7369; }
  main { padding-bottom: 5.5rem; }
  .toast { bottom: 6rem; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 1.25rem, 1180px); }
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; width: 100%; height: auto; aspect-ratio: 3 / 2; background: #050505; }
  .hero-media > .hero-photo { display: block; object-fit: contain; object-position: center; }
  .hero-media::after { background: linear-gradient(0deg, #090909 0%, transparent 26%); }
  .hero-content { padding: 1.2rem 0 3.5rem; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .hero p { font-size: 0.93rem; }
  .hero-actions .button { flex: 1 1 10rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0; }
  .book-promo-section { padding-top: 1rem; }
  .book-promo { padding: .7rem; border-radius: 24px; }
  .book-promo-copy { padding: .8rem .55rem 1rem; }
  .book-promo-copy h2 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .library-section { padding-top: 1.25rem; }
  .library-heading { align-items: start; margin-bottom: .85rem; }
  .library-heading h2 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .library-heading p, .library-count { display: none; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .library-card { display: block; min-height: 0; border-radius: 19px; }
  .library-card-media { min-height: 180px; height: 180px; padding: .45rem; }
  .library-card-media img { max-height: 170px; }
  .library-card-media > span { right: .45rem; bottom: .45rem; padding: .42rem .55rem; font-size: .58rem; }
  .library-card-body { padding: .8rem; }
  .library-card-body .eyebrow { font-size: .52rem; }
  .library-card-body h3 { min-height: 2.25em; margin: .4rem 0 .7rem; font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .library-card-body > p { display: none; }
  .library-card-body .book-facts { gap: .3rem; margin: 0 0 .7rem; }
  .library-card-body .book-facts span { padding: .32rem .42rem; font-size: .55rem; }
  .library-card-body .book-facts span:nth-child(3) { display: none; }
  .library-card-body .button { padding: .62rem .4rem; font-size: .62rem; }
  .book-reader-page { padding-top: 2rem; }
  .book-reader { border-radius: 20px; }
  .book-reader-toolbar { gap: .35rem; padding: .65rem; }
  .book-reader-toolbar button { min-width: 0; padding: .58rem .7rem; }
  .book-reader-toolbar .reader-label { display: none; }
  .book-reader-toolbar .reader-arrow { display: inline-grid; font-size: 1.45rem; }
  .book-reader-toolbar strong { max-width: 52%; }
  .book-reader-stage-wrap { grid-template-columns: minmax(0, 1fr) 38px; height: 64vh; min-height: 360px; }
  .book-reader-stage { min-height: 0; padding: .5rem; }
  .reader-scrollbar { grid-template-rows: 38px minmax(0, 1fr) 38px; padding: .35rem .2rem; }
  .reader-scrollbar button { width: 30px; height: 30px; }
  .book-reader-footer { align-items: stretch; flex-direction: column; }
  .book-reader-footer form { justify-content: center; }
  .reader-fullscreen-button { width: 100%; }
  .book-reader.is-reader-fullscreen { border-radius: 0; }
  .book-reader.is-reader-fullscreen .book-reader-stage { min-height: 0; }
  .book-reader.is-reader-fullscreen .book-reader-footer { padding: .55rem .65rem max(.55rem, env(safe-area-inset-bottom)); }
  .quick-card { min-height: 155px; padding: 1rem; }
  .quick-card p { display: none; }
  .week-item { grid-template-columns: 58px 1fr; }
  .week-item > span:last-child { display: none; }
  .news-grid, .course-grid, .summary-grid, .finance-grid { grid-template-columns: 1fr; }
  .newsroom-page { margin-inline: -.001px; }
  .paper-header { padding-inline: .75rem; }
  .paper-edition-line { grid-template-columns: 1fr; gap: .25rem; text-align: center; }
  .paper-edition-line span, .paper-edition-line span:last-child { display: none; }
  .paper-edition-line time { text-align: center; }
  .paper-masthead { gap: .65rem; padding-block: 1.25rem; }
  .paper-masthead img { width: 52px; height: 52px; }
  .paper-masthead h1 { font-size: clamp(2.35rem, 13vw, 4rem); }
  .paper-masthead p { font-size: .52rem; letter-spacing: .12em; }
  .paper-tools { grid-template-columns: 1fr; }
  .paper-tools > span { display: none; }
  .paper-sections button { padding: .72rem .8rem; font-size: .61rem; }
  .paper-breaking { padding-inline: .8rem; }
  .paper-front { padding: 1rem .8rem 2rem; }
  .paper-feature-grid { gap: 1.4rem; }
  .paper-lead-copy h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .paper-side-stories, .paper-latest-grid { grid-template-columns: 1fr; }
  .paper-side-story { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: .75rem; }
  .paper-side-story > a { grid-row: 1 / 5; }
  .paper-side-story img { height: 100%; min-height: 130px; margin: 0; }
  .paper-side-story .paper-story-meta { align-self: end; }
  .paper-side-story h3 { margin: 0; font-size: 1.15rem; }
  .paper-side-story > p { display: none; }
  .paper-section-heading { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .paper-section-heading p { text-align: left; }
  .paper-story-card { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; gap: .8rem; }
  .paper-story-image img { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .paper-story-copy { padding-top: 0; }
  .paper-story-copy .paper-story-meta time, .paper-story-copy .paper-story-meta span:last-child { display: none; }
  .paper-story-copy h3 { font-size: 1.1rem; }
  .paper-story-copy > p { display: none; }
  .paper-story-copy .paper-read-link { margin-top: .65rem; font-size: .62rem; }
  .paper-map-card { gap: 1rem; padding: .75rem; }
  .paper-map-copy { padding: .45rem .35rem .65rem; }
  .paper-map-copy h2 { font-size: clamp(1.65rem, 8vw, 2.25rem); }
  .paper-map-actions { display: grid; grid-template-columns: 1fr; }
  .paper-map-actions .button { width: 100%; }
  .paper-subscribe { grid-template-columns: 1fr; }
  .paper-subscribe .button { width: 100%; }
  .paper-article { width: min(100% - 1.5rem, 920px); }
  .paper-article-header h1 { font-size: clamp(2.2rem, 12vw, 3.8rem); }
  .paper-article-header > p { font-size: 1rem; }
  .paper-article-body p { font-size: 1.04rem; line-height: 1.75; }
  .paper-fact-box ul { grid-template-columns: 1fr; }
  .paper-related { padding-inline: .8rem; }
  .course-body h2, .course-body p { min-height: 0; }
  .course-detail-hero { grid-template-columns: 1fr; border-radius: 24px; }
  .course-detail-hero h1 { font-size: clamp(2.1rem, 12vw, 3.5rem); }
  .lesson-card summary { grid-template-columns: 42px minmax(0,1fr) 24px; gap: .75rem; padding: .85rem; }
  .lesson-number { width: 42px; height: 42px; }
  .lesson-content { padding: 0 .85rem .85rem; }
  .content-grid, .video-grid, .photo-grid, .study-document-grid { grid-template-columns: 1fr; }
  .study-section-heading { align-items: flex-start; flex-direction: column; }
  .study-document-cover { min-height: 165px; }
  .content-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .content-card p, .video-card p { min-height: 0; }
  .photo-card { min-height: 260px; }
  .news-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .news-card { min-width: 84%; scroll-snap-align: start; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .button { width: 100%; }
  .topbar { align-items: flex-start; }
  .topbar .button span { display: inline; }
  .panel { padding: 1rem; overflow: hidden; }
  .table-wrap { overflow-x: auto; }
  .data-table { min-width: 620px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (orientation: landscape) and (max-height: 620px) {
  .book-reader.is-reader-fullscreen .book-reader-toolbar,
  .book-reader:fullscreen .book-reader-toolbar { padding: max(.3rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right)) .3rem max(.5rem, env(safe-area-inset-left)); }
  .book-reader.is-reader-fullscreen .book-reader-toolbar button,
  .book-reader:fullscreen .book-reader-toolbar button { min-height: 36px; padding: .35rem .7rem; }
  .book-reader.is-reader-fullscreen .book-reader-stage-wrap,
  .book-reader:fullscreen .book-reader-stage-wrap { height: 100%; min-height: 0; }
  .book-reader.is-reader-fullscreen .book-reader-footer,
  .book-reader:fullscreen .book-reader-footer { flex-direction: row; align-items: center; padding: .35rem max(.55rem, env(safe-area-inset-right)) max(.35rem, env(safe-area-inset-bottom)) max(.55rem, env(safe-area-inset-left)); }
  .book-reader.is-reader-fullscreen .book-reader-footer form,
  .book-reader:fullscreen .book-reader-footer form { justify-content: flex-start; }
  .book-reader.is-reader-fullscreen .book-reader-footer label,
  .book-reader:fullscreen .book-reader-footer label { display: none; }
  .book-reader.is-reader-fullscreen .reader-fullscreen-button,
  .book-reader:fullscreen .reader-fullscreen-button { width: auto; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
