.cg33k-treasury {
  --gold: #f4b400;
  --gold-soft: #d99f00;
  --ink: #fffaf0;
  --muted: #b9c8dd;
  --panel: #09131f;
  --panel-deep: #050c14;
  --line: #334253;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #03070d;
  color: var(--ink);
  font-family: Arial, sans-serif;
}
.cg33k-treasury * { box-sizing: border-box; }
.cg33k-treasury [hidden] { display: none !important; }
.cg33k-treasury__intro {
  min-height: clamp(340px, 46vh, 510px);
  display: grid;
  place-content: center;
  max-width: none;
  margin: 0;
  padding: clamp(3.5rem, 8vw, 6.5rem) max(1.25rem, calc((100vw - 1180px) / 2));
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(244, 180, 0, .09), transparent 32%),
    linear-gradient(180deg, #050b13 0%, #03070d 100%);
  border-bottom: 1px solid rgba(244, 180, 0, .32);
}
.cg33k-treasury__cross {
  display: block;
  position: relative;
  width: 24px;
  height: 34px;
}
.cg33k-treasury__cross { margin: 0 auto .85rem; }
.cg33k-treasury__cross::before,
.cg33k-treasury__cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}
.cg33k-treasury__cross::before { width: 3px; height: 34px; }
.cg33k-treasury__cross::after { width: 24px; height: 3px; top: 36%; }
.cg33k-treasury__eyebrow,
.cg33k-treasury__section-heading > p:not(.cg33k-treasury__count),
.cg33k-treasury-card__type {
  color: var(--gold);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cg33k-treasury__intro h1,
.cg33k-treasury__section-heading h2,
.cg33k-treasury-card h3,
.cg33k-treasury-paths strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
}
.cg33k-treasury__intro h1 {
  max-width: 900px;
  margin: .45rem auto 1rem;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: .98;
  text-wrap: balance;
}
.cg33k-treasury__introduction {
  max-width: 760px;
  margin: 0 auto 1.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}
.cg33k-treasury__featured,
.cg33k-treasury__catalog {
  padding: clamp(3.25rem, 7vw, 6rem) max(1.25rem, calc((100vw - 1180px) / 2));
}
.cg33k-treasury__featured { border-bottom: 1px solid rgba(244, 180, 0, .22); }
.cg33k-treasury__section-heading { margin: 0 0 1.65rem; }
.cg33k-treasury__section-heading > p:not(.cg33k-treasury__count) { margin: 0 0 .5rem; }
.cg33k-treasury__section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.cg33k-treasury-paths em { color: var(--gold); font-size: .7rem; font-style: normal; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cg33k-treasury-paths { display: grid; border-top: 1px solid rgba(244, 180, 0, .42); border-bottom: 1px solid rgba(244, 180, 0, .42); }
.cg33k-treasury-paths > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 94px;
  padding: 1.15rem clamp(.25rem, 1vw, .8rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.cg33k-treasury-paths > a:last-child { border-bottom: 0; }
.cg33k-treasury-paths > a:hover { background-color: rgba(255, 255, 255, .025); }
.cg33k-treasury-paths__copy { min-width: 0; }
.cg33k-treasury-paths strong { display: block; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }
.cg33k-treasury-paths__copy > span { display: block; margin-top: .38rem; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.cg33k-treasury-paths em { text-align: right; white-space: nowrap; }
.cg33k-treasury__hero-search { width: min(100%, 760px); margin: 0 auto; text-align: left; }
.cg33k-treasury__tools {
  margin: 0 0 1.35rem;
  padding: .85rem 1rem;
  background: rgba(9, 19, 31, .78);
  border: 1px solid var(--line);
}
.cg33k-treasury__hero-search > label,
.cg33k-treasury__tools > label,
.cg33k-treasury__tools noscript label {
  display: block;
  margin-bottom: .55rem;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cg33k-treasury__search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.cg33k-treasury__hero-search input,
.cg33k-treasury__tools input,
.cg33k-treasury__tools select {
  width: 100%;
  min-height: 52px;
  padding: .82rem 1rem;
  color: var(--ink);
  background: #03070d;
  border: 1px solid #51637a;
  border-radius: 0;
  font: inherit;
}
.cg33k-treasury__search-row > button,
.cg33k-treasury__load {
  min-height: 52px;
  padding: .8rem 1.3rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #050505;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.cg33k-treasury__search-row > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 124px;
  margin: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  font-family: Arial, sans-serif;
  line-height: 1;
}
.cg33k-treasury__search-row > button:hover { background: #ffd052; border-color: #ffd052; color: #050505; }
.cg33k-treasury__filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; }
.cg33k-treasury__filters button {
  min-height: 42px;
  padding: .62rem .85rem;
  border: 1px solid rgba(244, 180, 0, .42);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.cg33k-treasury__filters button span { margin-left: .35rem; color: var(--muted); font-weight: 400; }
.cg33k-treasury__filters button.is-active { background: var(--gold); color: #050505; border-color: var(--gold); }
.cg33k-treasury__filters button.is-active span { color: #342500; }
.cg33k-treasury__filters .cg33k-treasury__clear { margin-left: auto; border-color: var(--line); color: var(--muted); }
.cg33k-treasury__count { margin: 1rem 0 0; color: var(--muted); }
.cg33k-treasury__section-heading--catalog { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.cg33k-treasury__section-heading--catalog .cg33k-treasury__count { margin: 0 0 .25rem; white-space: nowrap; }
.cg33k-treasury__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.cg33k-treasury-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: .55rem 1rem;
  padding: clamp(1.2rem, 2.5vw, 1.65rem);
  background: linear-gradient(145deg, #0b1724, #07101a);
  border: 1px solid var(--line);
}
.cg33k-treasury-card__type,
.cg33k-treasury-card h3,
.cg33k-treasury-card__summary,
.cg33k-treasury-card__edition,
.cg33k-treasury-card__schedule { grid-column: 1; }
.cg33k-treasury-card__type { margin: 0; }
.cg33k-treasury-card h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.18; }
.cg33k-treasury-card__summary { margin: .1rem 0 0; color: var(--muted); line-height: 1.55; }
.cg33k-treasury-card__edition { margin: .25rem 0 0; color: #dbe5f3; font-size: .82rem; line-height: 1.45; }
.cg33k-treasury-card__edition strong { color: var(--gold); }
.cg33k-treasury-card__schedule { margin: 0; color: #93a8c3; font-size: .78rem; line-height: 1.4; }
.cg33k-treasury-card a {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  padding: .72rem .9rem;
  border: 1px solid rgba(244, 180, 0, .65);
  color: var(--gold);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cg33k-treasury-card a:hover { background: var(--gold); color: #050505; }
.cg33k-treasury__load-wrap { display: flex; justify-content: center; margin-top: 1.6rem; }
.cg33k-treasury__load { min-width: min(100%, 280px); text-align: center; }
.cg33k-treasury__load:disabled { cursor: wait; opacity: .72; }
.cg33k-treasury__empty,
.cg33k-treasury__error { padding: 2rem; text-align: center; color: var(--muted); border: 1px solid var(--line); }
.cg33k-treasury__error { color: #ffd7d7; border-color: #8c3333; }
.cg33k-treasury-error { padding: 1rem; border-left: 4px solid #c52b32; background: #fff1f1; color: #431216; }
.cg33k-treasury input:focus,
.cg33k-treasury select:focus,
.cg33k-treasury button:focus,
.cg33k-treasury a:focus { outline: 3px solid #fff; outline-offset: 3px; }
.cg33k-treasury.is-loading .cg33k-treasury__grid { opacity: .72; }

.cg33k-prayer-reader {
  --reader-gold: #f4b400;
  --reader-ink: #fffaf0;
  --reader-muted: #b9c8dd;
  --reader-line: #334253;
  position: relative;
  min-height: 70vh;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  overflow: hidden;
  background: #03070d;
  color: var(--reader-ink);
  font-family: Arial, sans-serif;
}
.cg33k-prayer-reader * { box-sizing: border-box; }
.cg33k-reader__ambient { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 5%, rgba(244, 180, 0, .08), transparent 32%); }
.cg33k-reader__shell { position: relative; width: min(100%, 1120px); margin: 0 auto; }
.cg33k-reader__topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--reader-line); }
.cg33k-reader__topbar > a,
.cg33k-reader__topbar > button,
.cg33k-reader__text-controls button,
.cg33k-reader__versions button {
  min-height: 42px;
  padding: .65rem .85rem;
  border: 1px solid var(--reader-line);
  border-radius: 0;
  background: #08121e;
  color: var(--reader-ink);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.cg33k-reader__text-controls { display: flex; margin-left: auto; }
.cg33k-reader__text-controls button + button { border-left: 0; }
.cg33k-reader__text-controls button[aria-pressed="true"] { background: var(--reader-gold); color: #050505; border-color: var(--reader-gold); }
.cg33k-reader__header { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.cg33k-reader__eyebrow { margin: 0 0 .8rem; color: var(--reader-gold); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.cg33k-reader__header h1 { max-width: 900px; margin: 0 auto; color: var(--reader-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; line-height: 1.02; text-wrap: balance; }
.cg33k-reader__versions { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: end; gap: .65rem; width: min(100%, 760px); margin: 1.5rem auto 0; text-align: left; }
.cg33k-reader__versions label { grid-column: 1 / -1; color: var(--reader-gold); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.cg33k-reader__versions select { min-height: 44px; padding: .65rem .8rem; border: 1px solid var(--reader-line); border-radius: 0; background: #050b13; color: var(--reader-ink); font: inherit; }
.cg33k-reader__text-shell { width: min(100%, 900px); margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid rgba(244, 180, 0, .45); background: rgba(5, 12, 20, .9); }
.cg33k-reader__text { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.22rem, 2.2vw, 1.65rem); line-height: 1.72; }
.cg33k-prayer-reader[data-reader-scale="small"] .cg33k-reader__text { font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.cg33k-prayer-reader[data-reader-scale="large"] .cg33k-reader__text { font-size: clamp(1.4rem, 2.7vw, 1.95rem); }
.cg33k-reader__text p { margin: 0 0 1.25em; }
.cg33k-reader__text p:last-child { margin-bottom: 0; }
.cg33k-reader__stanza { white-space: normal; }
.cg33k-reader__litany { display: grid; gap: .65rem; }
.cg33k-reader__litany-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr); gap: .8rem; padding: .75rem 0; border-bottom: 1px solid rgba(185, 200, 221, .17); }
.cg33k-reader__litany-line > span { display: block; }
.cg33k-reader__litany-line small { display: block; margin-bottom: .25rem; color: var(--reader-gold); font-family: Arial, sans-serif; font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cg33k-reader__litany-line--all { grid-template-columns: 1fr; }
.cg33k-reader__source { width: min(100%, 900px); margin: 1.1rem auto 0; color: var(--reader-muted); font-size: .82rem; line-height: 1.55; }
.cg33k-reader__source p { margin: .3rem 0; }
.cg33k-reader__source a { color: var(--reader-gold); }
.cg33k-reader__notice { padding: .8rem 1rem; border-left: 3px solid var(--reader-gold); background: rgba(244, 180, 0, .08); }
.cg33k-prayer-reader a:focus,
.cg33k-prayer-reader button:focus,
.cg33k-prayer-reader select:focus { outline: 3px solid #fff; outline-offset: 3px; }
.cg33k-prayer-reader--focus { min-height: 100dvh; }
.cg33k-prayer-reader--stream { position: fixed; z-index: 999999; inset: 0; width: 100%; height: 100dvh; min-height: 100dvh; padding: clamp(.8rem, 2vw, 1.6rem); overflow: hidden; }
.cg33k-prayer-reader--stream .cg33k-reader__shell { height: 100%; display: flex; flex-direction: column; }
.cg33k-prayer-reader--stream .cg33k-reader__topbar { flex: 0 0 auto; padding-bottom: .55rem; opacity: .22; transition: opacity .18s ease; }
.cg33k-prayer-reader--stream .cg33k-reader__topbar:hover,
.cg33k-prayer-reader--stream .cg33k-reader__topbar:focus-within { opacity: 1; }
.cg33k-prayer-reader--stream .cg33k-reader__header { flex: 0 0 auto; padding: clamp(.7rem, 2vh, 1.4rem) 0; }
.cg33k-prayer-reader--stream .cg33k-reader__header h1 { font-size: clamp(2rem, 4vw, 4rem); }
.cg33k-prayer-reader--stream .cg33k-reader__text-shell { flex: 1 1 auto; min-height: 0; display: grid; align-items: center; width: min(100%, 1280px); overflow: hidden; padding: clamp(1rem, 3vw, 2.5rem); }
.cg33k-prayer-reader--stream .cg33k-reader__text { width: min(100%, 1050px); max-height: 100%; margin: 0 auto; line-height: 1.45; }
.cg33k-prayer-reader--stream .cg33k-reader__source { display: none; }
.cg33k-prayer-reader--stream.is-fitting .cg33k-reader__text { visibility: hidden; }
.cg33k-prayer-reader--stream.has-overflow .cg33k-reader__text-shell { align-items: start; overflow-y: auto; }

@media (max-width: 900px) {
  .cg33k-treasury__grid { grid-template-columns: 1fr; }
  .cg33k-reader__litany-line { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cg33k-treasury__intro { min-height: 390px; }
  .cg33k-treasury-paths > a { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: .7rem; padding: 1.2rem .4rem; }
  .cg33k-treasury-paths em { grid-column: 1; text-align: left; white-space: normal; }
  .cg33k-treasury__search-row { grid-template-columns: 1fr; gap: .55rem; }
  .cg33k-treasury__search-row > button { width: 100%; border-left: 1px solid var(--gold); }
  .cg33k-treasury__filters { display: grid; grid-template-columns: 1fr 1fr; }
  .cg33k-treasury__filters .cg33k-treasury__clear { margin-left: 0; grid-column: 1 / -1; }
  .cg33k-treasury__section-heading--catalog { display: block; }
  .cg33k-treasury__section-heading--catalog .cg33k-treasury__count { margin-top: .75rem; }
  .cg33k-treasury-card { grid-template-columns: 1fr; }
  .cg33k-treasury-card a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .45rem; }
  .cg33k-prayer-reader { padding: .85rem; }
  .cg33k-reader__topbar { align-items: stretch; }
  .cg33k-reader__text-controls { width: 100%; order: 5; margin-left: 0; }
  .cg33k-reader__text-controls button { flex: 1; }
  .cg33k-reader__versions { grid-template-columns: 1fr; }
  .cg33k-reader__versions label { grid-column: 1; }
  .cg33k-reader__header h1 { font-size: clamp(2.1rem, 12vw, 3.5rem); }
  .cg33k-reader__text-shell { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cg33k-treasury *, .cg33k-treasury *::before, .cg33k-treasury *::after { scroll-behavior: auto !important; transition: none !important; }
  .cg33k-prayer-reader *, .cg33k-prayer-reader *::before, .cg33k-prayer-reader *::after { scroll-behavior: auto !important; transition: none !important; }
}
