:root {
  color-scheme: light;
  --bg: #F6F8F7;
  --background: #F6F8F7;
  --surface: #FFFFFF;
  --surface-alt: #F0F3F1;
  --text: #17211C;
  --muted: #5E6963;
  --muted-text: #5E6963;
  --line: #D5DDD8;
  --border: #D5DDD8;
  --primary: #2F6B4F;
  --primary-dark: #244F3B;
  --secondary: #244F3B;
  --accent: #B8872F;
  --soft: #E7F0EA;
  --card: #FFFFFF;
  --button: #2F6B4F;
  --action-background: #2F6B4F;
  --action-text: #FFFFFF;
  --link-text: #2F6B4F;
  --tab: #E7F0EA;
  --header: #244F3B;
  --section-background: #F0F5F2;
  --section-heading: #17211C;
  --section-accent: #2F6B4F;
  --section-border: #D5DDD8;
  --shortcut-background: #FFFFFF;
  --shortcut-icon-background: #E7F0EA;
  --shortcut-icon: #2F6B4F;
  --calendar-accent: #2F6B4F;
  --media-accent: #2F6B4F;
  --bottom-nav: #FFFFFF;
  --bottom-nav-icon: #66736B;
  --bottom-nav-text: #465249;
  --bottom-nav-active: #2F6B4F;
  --modal: #FFFFFF;
  --chatbot: #E7F0EA;
  --footer-bg: #253A30;
  --footer-text: #FFFFFF;
  --footer-muted: #CBD3CF;
  --footer-line: rgb(255 255 255 / 20%);
  --footer-button-bg: #B8872F;
  --footer-button-text: #17211C;
  --banner-end: #B8872F;
  --banner-text: #FFFFFF;
  --button-text: #FFFFFF;
  --primary-text: #FFFFFF;
  --accent-text: #17211C;
  --danger: #C62828;
  --warning: #9A6700;
  --success: #2E7D32;
  --live: #D91E18;
  --disabled: #8A9490;
  --radius-card: 12px;
  --radius-button: 10px;
  --radius-pill: 999px;
  --radius-hero: 28px;
  --font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-family: var(--font-family);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  transition: transform 120ms ease, filter 120ms ease;
}

button:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.97);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 20;
  width: 0;
  height: 3px;
  background: var(--primary);
}

.app-shell {
  --app-shell-inline-padding: 14px;
  --app-shell-inline-bleed: 28px;
  --app-shell-inline-bleed-offset: -14px;
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  margin: 0 auto;
  padding: 0 14px calc(92px + env(safe-area-inset-bottom));
}

.app-home-section.is-bottom-nav-swiping {
  transform: translate3d(var(--bottom-nav-swipe-offset, 0px), 0, 0);
  will-change: transform;
}

body.app-home-loading .app-shell {
  visibility: hidden;
  opacity: 0;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(160deg, var(--primary, #2563eb), var(--primary-dark, #1d4ed8));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

body:not(.app-home-loading) .app-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-mark {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: app-splash-pulse 1.8s ease-in-out infinite;
}

.app-splash-mark svg {
  width: 44px;
  height: 44px;
}

.app-splash-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-splash-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.app-splash-tagline {
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
}

.app-splash-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.app-splash-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
  animation: app-splash-dot 1.2s ease-in-out infinite;
}

.app-splash-dots i:nth-child(2) { animation-delay: 0.15s; }
.app-splash-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes app-splash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes app-splash-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash-mark,
  .app-splash-dots i {
    animation: none;
  }
}

body.is-tenant-paused {
  background: var(--background);
}

body.is-tenant-paused .app-shell > :not(.paused-tenant-screen) {
  display: none !important;
}

.paused-tenant-screen {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
}

.paused-tenant-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted-text);
  font-size: 24px;
  font-weight: 800;
}

.paused-tenant-screen p {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.paused-tenant-screen h1 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.paused-tenant-screen span {
  display: block;
  max-width: 320px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

body.bottom-nav-page-mode .app-shell {
  gap: 10px;
}

@keyframes pageSectionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  height: 150px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: var(--surface-alt);
}

.hero.hero-scroll-reactive {
  opacity: var(--hero-scroll-opacity, 1);
  transform: translate3d(0, var(--hero-scroll-offset, 0), 0) scale(var(--hero-scroll-scale, 1));
  transform-origin: center top;
  will-change: opacity, transform;
}

.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero.hero-scroll-reactive img {
  transform: translate3d(0, var(--hero-image-offset, 0), 0) scale(var(--hero-image-scale, 1));
  transform-origin: center;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-scroll-reactive,
  .hero.hero-scroll-reactive img {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

.notice-strip,
.vision,
.banner,
.quick-links,
.schedule,
.rss-audio-section,
.online-radio-section,
.youtube-section,
.youtube-live-section,
.custom-section {
  margin: var(--section-gap, 14px) 0;
}

.vision {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 14px 0 18px;
  text-align: center;
}

.vision-title {
  max-width: 100%;
  margin: 0;
  color: var(--section-local-heading, var(--section-heading));
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.vision-title.is-long {
  font-size: 20px;
}

.vision-title.is-very-long {
  font-size: 18px;
}

.vision-rule {
  width: 28px;
  height: 1px;
  background: var(--section-accent);
}

.vision-body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding-inline: 4px;
  color: var(--muted);
  font-size: var(--vision-body-size, 14px);
  line-height: 1.75;
  white-space: pre-line;
}

body .app-home-section.has-after-divider {
  position: relative;
}

body .app-home-section.has-after-divider::after {
  content: "";
  position: absolute;
  bottom: calc(var(--section-gap, 14px) * -0.5);
  left: 0;
  right: 0;
  border-top: 1px solid color-mix(in srgb, var(--section-local-border, var(--section-border)) 72%, transparent);
}

.notice-strip,
.schedule,
.rss-audio-section,
.online-radio-section,
.youtube-section,
.youtube-live-section {
  padding: 16px;
}

.app-home-section.is-framed {
  border: 1px solid var(--section-local-border, var(--section-border));
  border-radius: 10px;
}

.app-home-section.has-section-background {
  background: var(--section-local-background, var(--section-background));
}

.app-home-section:not(.banner) .home-section-heading,
.app-home-section:not(.banner) .notice-head strong,
.app-home-section:not(.banner) .section-title h2 {
  color: var(--section-local-heading, var(--section-heading));
}

.rss-audio-section,
.online-radio-section,
.youtube-section,
.youtube-live-section {
  --primary: var(--media-accent);
}

.quick-links {
  padding: 12px;
}

.home-section-heading {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  font-size: 18px;
}

.home-section-heading[hidden] {
  display: none;
  margin: 0;
}

.app-home-section.has-title-underline .home-section-heading,
.app-home-section.has-title-underline .notice-head strong,
.app-home-section.has-title-underline .section-title h2,
.app-home-section.has-title-underline #bannerEyebrow {
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  border-bottom: 0;
  padding-bottom: 0;
}

.app-home-section.has-title-underline .home-section-heading::after,
.app-home-section.has-title-underline .notice-head strong::after,
.app-home-section.has-title-underline .section-title h2::after,
.app-home-section.has-title-underline #bannerEyebrow::after {
  display: block;
  width: 46px;
  height: 0;
  border-top: 2px solid color-mix(in srgb, var(--section-accent) 55%, var(--section-local-border, var(--section-border)));
  border-radius: 2px;
  content: "";
}

.banner.has-title-underline #bannerEyebrow::after,
.notice-strip.has-title-underline .notice-head strong::after {
  opacity: 0.7;
}

.custom-sections {
  display: contents;
}

.custom-section {
  padding: 16px;
  color: var(--custom-text, var(--text));
}

.custom-section p {
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.custom-section.align-center {
  text-align: center;
}

.custom-section.align-right {
  text-align: right;
}

.custom-section .home-section-heading {
  font-size: var(--custom-title-size, 18px);
}

.custom-section-subtitle {
  margin: 2px 0 0;
  color: inherit;
  font-size: 12px;
  opacity: 0.72;
}

.custom-section.kind-list .custom-section-subtitle {
  color: var(--muted-text);
  font-size: var(--custom-list-subtitle-size, 12px);
}

.custom-section.kind-list > p:not(.custom-section-subtitle) {
  color: var(--text);
  font-size: var(--custom-list-body-size, 13px);
}

.custom-item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.custom-item-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-item-grid.style-row {
  gap: 0;
  margin-top: 0;
}

.custom-item-grid.style-row .custom-item-card {
  gap: 14px;
  align-items: center;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.custom-item-grid.style-row .custom-item-card:last-child {
  border-bottom: 0;
}

.custom-item-grid.style-row .custom-item-card__image {
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 14px;
  background: transparent;
  object-fit: cover;
}

.custom-item-grid.style-row .custom-item-card__image.is-library-icon {
  box-sizing: border-box;
  padding: 14px;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  object-fit: contain;
}

.custom-item-grid.style-row .custom-item-card__image.is-placeholder {
  display: block;
}

.custom-item-grid.style-row .custom-item-card.has-item-border {
  margin: 6px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.custom-item-grid.style-row .custom-item-card__body {
  margin-top: 4px;
  white-space: pre-line;
}

.custom-item-grid.style-row .row-chevron {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.custom-item-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--custom-border, rgb(0 0 0 / 8%));
  border-radius: 12px;
  background: var(--custom-card-bg, rgb(255 255 255 / 55%));
  text-align: left;
}

.custom-item-grid.cols-2 .custom-item-card {
  flex-direction: column;
}

.custom-item-card__image {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.custom-item-grid.cols-2 .custom-item-card__image {
  width: 100%;
  height: 96px;
}

.custom-item-card__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.custom-item-card__title {
  font-size: 14px;
  font-weight: 600;
}

.custom-item-card__subtitle {
  font-size: 11.5px;
  opacity: 0.7;
}

.custom-item-card__body {
  font-size: 12.5px;
  line-height: 1.55;
}

.custom-item-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.custom-item-card__actions a {
  color: var(--link-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.custom-section-phone {
  margin-left: 10px;
}

.custom-section.layout-horizontal {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr);
  gap: 14px;
  align-items: center;
}

.custom-section.layout-horizontal.card-card2 {
  grid-template-columns: minmax(96px, 1fr) minmax(0, 2fr);
}

.custom-section.layout-horizontal .custom-section-image {
  margin-bottom: 0;
}

.custom-section.card-card1 .custom-section-right .custom-section-image {
  width: 60% !important;
}

.custom-section.card-card2 .custom-section-left .custom-section-image {
  width: 60% !important;
}

.custom-section-right {
  display: grid;
  gap: 7px;
  justify-content: center;
  justify-items: center;
}

.custom-section-left {
  display: grid;
  gap: 7px;
}

.custom-section-right.text-side {
  justify-items: start;
}

.custom-section.layout-horizontal > .custom-section-action {
  grid-column: 1 / -1;
}

.custom-section-image {
  display: block;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.custom-section-image.align-left {
  margin-right: auto;
}

.custom-section-image.align-center {
  margin-right: auto;
  margin-left: auto;
}

.custom-section-image.align-right {
  margin-left: auto;
}

.custom-section-action {
  display: flex;
  margin-top: 6px;
}

.custom-section-action.align-left {
  justify-content: flex-start;
}

.custom-section-action.align-center {
  justify-content: center;
}

.custom-section-action.align-right {
  justify-content: flex-end;
}

.custom-section-action a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--action-background);
  color: var(--action-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Custom single introductions keep their presentation independent from list introductions. */
.custom-section.kind-single.single-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 20px;
}

.custom-section.kind-single.single-text .home-section-heading {
  margin-bottom: 0;
}

.custom-section.kind-single.single-text > p {
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
}

.custom-section.kind-single.single-text .custom-section-action {
  margin-top: 2px;
}

.custom-section.is-framed.align-center {
  text-align: center;
}

.custom-section.is-framed.align-right {
  text-align: right;
}

.custom-section.kind-single.single-text.align-center > p {
  margin-inline: auto;
}

.custom-section.kind-single.single-text.align-right > p {
  margin-left: auto;
}

.custom-section.kind-single.single-text-image,
.custom-section.kind-single.single-image-text {
  display: grid;
  align-items: start;
  gap: 16px;
}

.custom-section.kind-single.single-text-image {
  grid-template-columns: minmax(0, 1.35fr) minmax(118px, 0.65fr);
}

.custom-section.kind-single.single-image-text {
  grid-template-columns: minmax(118px, 0.82fr) minmax(0, 1.18fr);
}

.custom-section.kind-single.single-text-image .custom-section-left,
.custom-section.kind-single.single-image-text .custom-section-right {
  gap: 8px;
}

.custom-section.kind-single.single-text-image .custom-section-right,
.custom-section.kind-single.single-image-text .custom-section-left {
  align-self: stretch;
  align-content: stretch;
  display: flex;
  flex-direction: column;
  padding-top: 56px;
  box-sizing: border-box;
  min-height: 100%;
}

.custom-section.kind-single.single-text-image .custom-section-image,
.custom-section.kind-single.single-image-text .custom-section-image {
  width: 100% !important;
  height: auto;
  min-height: 148px;
  margin: 0;
  border-radius: 12px;
  background: transparent;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.custom-section.kind-single.single-text-image .custom-section-right .custom-section-image,
.custom-section.kind-single.single-image-text .custom-section-left .custom-section-image {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  object-position: center top;
  flex: 1 1 auto;
}

.custom-section.kind-single.single-text-image .custom-section-right .custom-section-image.image-fit-contain,
.custom-section.kind-single.single-image-text .custom-section-left .custom-section-image.image-fit-contain {
  object-fit: contain;
  background: transparent;
}

.custom-section.kind-single.single-text-image .custom-section-action,
.custom-section.kind-single.single-image-text .custom-section-action {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.custom-section.kind-single.single-text-image .custom-section-action {
  justify-content: flex-start;
}

.custom-section.kind-single.single-image-text .custom-section-action {
  justify-content: flex-end;
}

.custom-section-action.action-button a {
  background: var(--action-background);
}

.custom-section-action.action-text a {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--link-text);
  text-decoration: underline;
}

.custom-section.kind-single.single-image-banner {
  padding: 12px;
  overflow: hidden;
}

.custom-section.kind-single.single-image-banner .custom-section-image-banner {
  position: relative;
  min-height: 0;
  border-radius: inherit;
  aspect-ratio: 2.65 / 1;
}

.custom-section.kind-single.single-image-banner .custom-section-image-banner__image {
  height: 100%;
}

.custom-section.kind-single.single-image-banner .custom-section-image-banner__cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-button);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.custom-section.kind-single.single-image-banner .custom-section-image-banner__cta.is-button {
  background: var(--action-background);
  color: var(--action-text);
}

.custom-section.kind-single.single-image-banner .custom-section-image-banner__cta.is-text {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--link-text);
  text-decoration: underline;
}

.custom-section.kind-single.single-image-banner > .home-section-heading,
.custom-section.kind-single.single-image-banner > p {
  margin-inline: 16px;
}

.custom-section.kind-single.single-image-banner > .home-section-heading {
  margin-top: 14px;
}

.custom-section.kind-single.single-image-banner > p {
  margin-bottom: 16px;
}

/* Custom accordion introductions keep their image and expandable rows separate from single/list layouts. */
.custom-section.kind-accordion {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.custom-section.kind-accordion .custom-section-accordion__image {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 3;
  border-radius: 10px;
  background: transparent;
  object-fit: cover;
}

.custom-section.kind-accordion .custom-section-accordion__image.image-fit-contain {
  object-fit: contain;
  object-position: center top;
}

.custom-section.kind-accordion .custom-section-accordion {
  border: 0;
  background: transparent;
}

.custom-section.kind-accordion .custom-section-accordion__item + .custom-section-accordion__item {
  border-top: 1px solid var(--border);
}

.custom-section.kind-accordion .custom-section-accordion__item {
  background: transparent;
}

.custom-section.kind-accordion .custom-section-accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.custom-section.kind-accordion .custom-section-accordion__trigger::after {
  content: "⌄";
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1;
  transition: transform 220ms ease;
}

.custom-section.kind-accordion .custom-section-accordion__item.is-open .custom-section-accordion__trigger::after {
  transform: rotate(180deg);
}

.custom-section.kind-accordion .custom-section-accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
}

.custom-section.kind-accordion .custom-section-accordion__item.is-open .custom-section-accordion__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.custom-section.kind-accordion .custom-section-accordion__body-content {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 8px;
  padding: 0 14px;
  color: var(--text);
  transform: translateY(-4px);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), padding 240ms ease;
}

.custom-section.kind-accordion .custom-section-accordion__body-layout {
  display: grid;
  grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-width: 0;
}

.custom-section.kind-accordion .custom-section-accordion__item-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  object-fit: cover;
  object-position: center top;
}

.custom-section.kind-accordion .custom-section-accordion__body-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: start;
}

.custom-section.kind-accordion .custom-section-accordion__item.is-open .custom-section-accordion__body-content {
  padding-bottom: 14px;
  transform: translateY(0);
}

.custom-section.kind-accordion .custom-section-accordion__body-content p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.custom-section.kind-accordion .custom-section-accordion__intro {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.custom-section.kind-accordion .custom-section-accordion__subtitle {
  color: var(--muted-text);
  font-size: 13px;
}

.custom-section.kind-accordion .custom-section-accordion__link {
  justify-self: end;
  max-width: 100%;
  color: var(--link-text);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
  text-decoration: underline;
}

.custom-section.kind-accordion .custom-section-accordion__empty {
  margin: 0;
  padding: 14px;
  color: var(--muted-text);
}

@media (prefers-reduced-motion: reduce) {
  .custom-section.kind-accordion .custom-section-accordion__trigger::after,
  .custom-section.kind-accordion .custom-section-accordion__body,
  .custom-section.kind-accordion .custom-section-accordion__body-content {
    transition: none;
  }
}

@media (max-width: 480px) {
  .custom-section.kind-accordion .custom-section-accordion__body-layout {
    grid-template-columns: minmax(76px, 29%) minmax(0, 1fr);
    gap: 10px;
  }
}

.modal-backdrop.link-modal-backdrop {
  align-items: end;
  justify-items: stretch;
  padding: 0;
}

.notice-modal.link-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 80vh;
  max-height: 80vh;
  margin: 0;
  padding: 0 0 16px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.notice-modal.link-modal.is-internal {
  height: 92vh;
  max-height: 92vh;
}

.modal-backdrop.link-modal-backdrop:not([hidden]) .notice-modal.link-modal {
  animation: youtubeSheetUp 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.link-modal .modal-head {
  flex: 0 0 auto;
  padding: 16px 16px 0;
}

.link-modal .modal-head h2 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.link-modal .modal-head p {
  color: var(--muted-text);
  font-size: 11px;
}

.link-modal-loading {
  flex: 0 0 auto;
  margin: 14px 16px 0;
  color: var(--muted-text);
  font-size: 13px;
  text-align: center;
}

.link-modal-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  margin-top: 14px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 14;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px max(6px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--bottom-nav-bg, var(--bottom-nav));
  box-shadow: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.bottom-nav:not(.is-ready) {
  visibility: hidden;
}

.bottom-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: var(--bottom-nav-icon, var(--muted-text));
  font-size: 11px;
  line-height: 1.1;
}

.bottom-nav .group-alert-dot {
  position: absolute;
  top: 1px;
  left: calc(50% + 10px);
  z-index: 1;
  display: grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--bottom-nav-bg, var(--bottom-nav));
  border-radius: 50%;
  background: var(--danger);
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  place-items: center;
  pointer-events: none;
}

.bottom-nav .group-alert-dot::after {
  content: none;
}

.bottom-nav .group-alert-dot.is-pulsing {
  animation: groupAlertPulse 720ms ease-out 2;
}

@keyframes groupAlertPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  45% { opacity: 0.72; transform: scale(1.18); }
}

.bottom-nav button::before {
  display: none;
}

.bottom-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease, stroke-width 180ms ease;
}

.bottom-nav button.active {
  color: var(--bottom-nav-active);
  font-weight: 800;
}

.bottom-nav button span {
  color: var(--bottom-nav-text, currentColor);
}

.bottom-nav button.active span {
  color: var(--bottom-nav-active);
}

.bottom-nav button.active svg {
  stroke-width: 2.2;
}

.bottom-nav button.active span::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 999px;
  background: var(--bottom-nav-active);
}

.bottom-nav button:disabled {
  opacity: 0.36;
  pointer-events: none;
}

body.is-tenant-paused .bottom-nav {
  display: none;
}

@keyframes youtubeSheetUp {
  from {
    opacity: 0.92;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-head span {
  display: none;
}

.notice-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  margin-right: 0;
  margin-left: 0;
}

.notice-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.notice-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 13px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
}

.notice-item.is-important {
  border-left-color: var(--warning);
}

.notice-item.is-urgent {
  border-left-color: var(--danger);
}

.notice-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.notice-item-main small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.notice-modal {
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px 18px 10px 10px;
  background: var(--modal);
}

.notice-modal-body {
  margin: 12px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.notice-modal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--action-background);
  color: var(--action-text);
  font-weight: 800;
  text-decoration: none;
}

.notice-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.notice-badge.is-important {
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
  color: var(--warning);
}

.notice-badge.is-urgent {
  background: var(--danger);
  color: #fff;
}

.quick-links {
  --shortcut-columns: 4;
  --shortcut-column-width: calc((100% - 24px) / 4);
  display: grid;
  grid-template-columns: repeat(var(--shortcut-columns), minmax(0, var(--shortcut-column-width)));
  justify-content: center;
  gap: 8px;
  padding: 4px;
}

.quick-links a {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: stretch;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--shortcut-background);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-links a:active {
  transform: scale(0.96);
  box-shadow: none;
}

.shortcut-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.shortcut-icon {
  justify-self: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-button);
  background: var(--shortcut-icon-background);
}

.shortcut-icon img,
.shortcut-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.shortcut-icon svg {
  color: var(--shortcut-icon);
}

.shortcut-icon.is-missing {
  display: none;
}

.quick-links span {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-links small {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links[data-shortcut-count="3"] > a:last-of-type {
    grid-column: 1 / -1;
    width: calc((100% - 8px) / 2);
    justify-self: center;
  }

  .quick-links a {
    min-height: 84px;
    padding: 10px 8px;
  }

  .shortcut-head {
    gap: 8px;
  }

  .shortcut-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .shortcut-icon img,
  .shortcut-icon svg {
    width: 23px;
    height: 23px;
  }

  .quick-links span {
    font-size: 13px;
  }

  .quick-links small {
    margin-top: 7px;
    font-size: 11.5px;
  }
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  padding-bottom: 10px;
}

.section-title-main {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.section-title-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.section-title-main {
  min-width: 0;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.quick-links.style-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.quick-links.style-card a {
  min-height: 88px;
  padding: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-align: left;
}

.quick-links.style-card .shortcut-icon {
  justify-self: start;
}

.quick-links.style-card small {
  margin-top: 4px;
}

.quick-links.style-grid-divided {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.quick-links.style-grid-divided a {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.quick-links.style-grid-divided a:nth-of-type(4n) {
  border-right: 0;
}

@media (max-width: 359px) {
  .quick-links.style-grid-divided a {
    border-right: 0;
  }

  .quick-links.style-grid-divided a:nth-of-type(odd) {
    border-right: 1px solid var(--line);
  }

  .quick-links.style-grid-divided[data-shortcut-count="3"] > a:last-of-type {
    width: 50%;
    border-right: 0;
  }
}

.quick-links.style-panel {
  padding: 4px 0;
  border-color: transparent;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--text) 5%, var(--surface));
}

.quick-links.style-panel a {
  border-bottom: 0;
}

.quick-links.style-panel .shortcut-icon {
  background: transparent;
}

.quick-links.style-outline {
  gap: 6px;
  padding: 12px;
}

.quick-links.style-outline a {
  min-height: 78px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.quick-links.style-outline .shortcut-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--primary);
}

.quick-links.style-outline .shortcut-icon img,
.quick-links.style-outline .shortcut-icon svg {
  width: 30px;
  height: 30px;
}

.quick-links.style-outline span {
  font-size: 12px;
}

.quick-links.style-outline small {
  display: none;
}

.home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 0 14px;
  align-items: start;
  width: calc(100% + var(--app-shell-inline-bleed));
  margin-top: 22px;
  margin-right: var(--app-shell-inline-bleed-offset);
  margin-bottom: calc(-92px - env(safe-area-inset-bottom));
  margin-left: var(--app-shell-inline-bleed-offset);
  padding: 18px max(22px, var(--app-shell-inline-padding)) calc(92px + env(safe-area-inset-bottom));
  background: var(--footer-bg);
  color: var(--footer-muted);
}

.home-footer:not(.is-framed) {
  --footer-text: var(--text);
  --footer-muted: var(--muted);
  --footer-line: var(--line);
  background: transparent;
  color: var(--muted);
}

.home-footer.is-framed {
  border: 0;
  border-radius: 0;
  background: var(--footer-bg);
}

body.bottom-nav-page-mode .home-footer {
  width: calc(100% + var(--app-shell-inline-bleed));
  margin-right: var(--app-shell-inline-bleed-offset);
  margin-left: var(--app-shell-inline-bleed-offset);
}

.footer-section {
  padding: 14px 0;
  border-top: 1px dashed var(--footer-line);
}

.footer-basic,
.footer-address,
.footer-motto,
.footer-copy {
  grid-column: 1 / -1;
}

.footer-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.footer-section h2,
.footer-section p,
.footer-copy,
.footer-motto strong {
  margin: 0;
}

.footer-section h2 {
  color: var(--footer-text);
  font-size: 15px;
  line-height: 1.35;
}

.footer-basic h2 {
  color: var(--footer-text);
  font-size: 18px;
  line-height: 1.25;
}

.footer-section p {
  margin-top: 8px;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.footer-section > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--footer-button-bg);
  color: var(--footer-button-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.footer-contact-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--footer-text);
  font-size: 13px;
  text-decoration: none;
}

.footer-contact-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--footer-muted);
}

.footer-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.footer-worship.has-two-columns {
  grid-column: 1 / -1;
}

.footer-worship.has-two-columns .footer-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.footer-two p {
  word-break: keep-all;
}

.footer-two p:first-child {
  margin-top: 8px;
}

.footer-two p + p {
  margin-top: 0;
}

.footer-two.align-right {
  text-align: right;
}

.footer-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  margin-top: 8px;
}

.footer-motto {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--footer-text) 10%, transparent);
  color: var(--footer-text);
  text-align: center;
}

.footer-motto-text {
  display: block;
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.footer-motto-text.is-bold {
  font-weight: 700;
}

.footer-motto-text.is-normal {
  font-weight: 400;
}

.footer-motto-text.is-large {
  font-size: 18px;
}

.footer-motto-text.is-medium {
  font-size: 16px;
}

.footer-motto-text.is-small {
  font-size: 14px;
}

.custom-section-image-banner {
  display: block;
  min-height: 142px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.custom-section-image-banner__image {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.footer-copy {
  padding: 18px 2px 0;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.footer-copy strong {
  color: var(--footer-text);
}

.notify-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 15;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--button) 28%, transparent);
}

body[data-notify-position="top"] .notify-fab {
  top: max(18px, env(safe-area-inset-top));
  bottom: auto;
}

body.has-rss-sticky .notify-fab {
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 124px);
}

body[data-notify-position="top"].has-rss-sticky .notify-fab {
  top: max(18px, env(safe-area-inset-top));
  bottom: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(15 23 42 / 42%);
}

#notifyModal {
  align-items: end;
  justify-items: stretch;
  padding: 14vh 0 0;
}

#notifyModal:not([hidden]) .notify-modal {
  animation: notifySheetUp 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.notify-modal {
  display: grid;
  gap: 0;
  width: min(100%, 520px);
  min-height: min(76vh, 640px);
  max-height: 86vh;
  overflow: auto;
  margin: 0 auto;
  padding: 16px 0 calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--modal);
  font-size: 13px;
  box-shadow: none;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted-text) 32%, var(--surface));
}

.notice-modal {
  min-height: 360px;
  border-radius: 14px;
  font-size: 14px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#notifyModal .modal-head {
  padding: 0 22px 22px;
}

.modal-head p,
.modal-head h2 {
  margin: 0;
}

#notifyModal .modal-head h2 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.notify-modal-subtitle {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal-head p {
  color: var(--muted-text);
  font-weight: 700;
  font-size: 12px;
}

.modal-head h2 {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.28;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
}

#notifyModal .icon-button {
  flex: none;
  width: 38px;
  height: 38px;
  border-color: color-mix(in srgb, var(--border) 88%, var(--surface) 12%);
}

.browser-guide-band {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 15px 22px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.browser-guide-band > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.browser-guide-band strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 720;
}

.browser-guide-icon,
.group-inbox-summary-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.browser-guide-icon::after,
.group-inbox-summary-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--primary);
  mask: url("/assets/icons/open-iconic/bell.svg") center / contain no-repeat;
}

.browser-guide {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.install-button,
.primary-button,
.secondary-button,
.danger-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 760;
}

.install-button {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--text);
}

.group-box {
  margin: 0;
  padding: 20px 22px 14px;
  border: 0;
  background: none;
}

.group-box legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.group-box legend small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
}

.group-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.group-list.is-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-list.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-list label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}

.group-list label {
  min-width: 0;
  align-items: center;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, var(--surface) 14%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 96%, var(--surface-alt) 4%);
}

.group-list label:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.group-list label input {
  flex: none;
}

.group-list label span {
  display: block;
  min-width: 0;
}

.group-list label strong,
.group-list label small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-list label strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 680;
}

.group-list label small {
  display: none;
}

.consent {
  margin: 0;
  padding: 3px 22px 15px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 12.5px;
}

.modal-actions {
  display: grid;
  gap: 8px;
  padding: 0 22px 16px;
}

.group-inbox-panel {
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

.group-inbox-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 15px 22px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.group-inbox-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.group-inbox-summary strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 720;
}

.group-inbox-summary div span {
  overflow-wrap: anywhere;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.4;
}

.group-inbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 19px 22px 7px;
  color: var(--text);
}

.group-inbox-head strong {
  font-size: 14px;
  font-weight: 720;
  color: var(--text);
}

.group-inbox-head span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.group-inbox-list {
  display: grid;
  gap: 0;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 22px;
  scrollbar-width: none;
}

.group-inbox-list::-webkit-scrollbar {
  display: none;
}

.group-inbox-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 14px 8px 14px 18px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, var(--surface) 22%);
  border-left: 3px solid transparent;
  border-radius: 0;
  text-align: left;
  background: transparent;
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.group-inbox-item:first-child {
  border-left-color: var(--primary);
}

.group-inbox-item:active {
  transform: translateY(1px);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}

.group-inbox-item-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.group-inbox-item-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.group-inbox-item small {
  font-size: 0.76rem;
  color: var(--muted);
}

.group-inbox-item-meta em {
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-inbox-item-meta time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.group-inbox-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.group-inbox-item-chevron,
.notify-share-chevron,
.notify-share-icon {
  display: block;
  background: currentColor;
}

.group-inbox-item-chevron,
.notify-share-chevron {
  width: 14px;
  height: 14px;
  color: var(--text);
  mask: url("/assets/icons/open-iconic/chevron-right.svg") center / contain no-repeat;
}

.group-inbox-item-chevron {
  justify-self: end;
}

.group-inbox-empty {
  display: grid;
  gap: 4px;
  padding: 28px 4px;
  background: transparent;
  color: var(--text);
  text-align: center;
}

.group-inbox-empty strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.group-inbox-empty span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.group-inbox-help {
  margin: 0;
  padding: 14px 22px 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--primary-text);
}

#subscribeButton::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  mask: url("/assets/icons/open-iconic/bell.svg") center / contain no-repeat;
}

.primary-button:disabled {
  background: color-mix(in srgb, var(--muted-text) 48%, var(--surface));
}

.secondary-button {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  background: var(--surface);
  color: var(--text);
}

.notify-share-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 9px 12px;
  text-align: left;
}

.notify-share-icon {
  width: 22px;
  height: 22px;
  justify-self: center;
  color: var(--text);
  mask: url("/assets/icons/open-iconic/share.svg") center / contain no-repeat;
}

.notify-share-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notify-share-copy strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.notify-share-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-button {
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
  color: var(--danger);
}

.status-text {
  min-height: 22px;
  margin: 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status-text:empty {
  display: none;
}

#notifyModal[data-notify-mode="group"] .browser-guide-band,
#notifyModal[data-notify-mode="group"] .group-box,
#notifyModal[data-notify-mode="group"] .consent,
#notifyModal[data-notify-mode="group"] .modal-actions {
  display: none;
}

#notifyModal[data-notify-mode="group"] .notify-modal {
  align-content: start;
  grid-auto-rows: max-content;
  min-height: min(70vh, 620px);
}

#notifyModal[data-notify-mode="group"] .group-inbox-panel {
  align-self: start;
  margin-top: 0;
}

#notifyModal[data-notify-mode="group"] .group-inbox-empty {
  text-align: left;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cardStagger {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice-strip.is-visible .notice-item,
.custom-section.is-visible .custom-item-card {
  animation: cardStagger 380ms ease both;
}

.notice-strip.is-visible .notice-item:nth-child(1),
.custom-section.is-visible .custom-item-card:nth-child(1) { animation-delay: 0ms; }
.notice-strip.is-visible .notice-item:nth-child(2),
.custom-section.is-visible .custom-item-card:nth-child(2) { animation-delay: 50ms; }
.notice-strip.is-visible .notice-item:nth-child(3),
.custom-section.is-visible .custom-item-card:nth-child(3) { animation-delay: 100ms; }
.notice-strip.is-visible .notice-item:nth-child(4),
.custom-section.is-visible .custom-item-card:nth-child(4) { animation-delay: 150ms; }
.notice-strip.is-visible .notice-item:nth-child(5),
.custom-section.is-visible .custom-item-card:nth-child(5) { animation-delay: 200ms; }
.notice-strip.is-visible .notice-item:nth-child(6),
.custom-section.is-visible .custom-item-card:nth-child(6) { animation-delay: 250ms; }
.notice-strip.is-visible .notice-item:nth-child(n+7),
.custom-section.is-visible .custom-item-card:nth-child(n+7) { animation-delay: 300ms; }

.vision-title,
.vision-rule,
.vision-body {
  opacity: 0;
  transform: translateY(10px);
}

.vision.is-visible .vision-title {
  animation: cardStagger 420ms ease 80ms both;
}

.vision.is-visible .vision-rule {
  width: 0;
  animation: visionRuleDraw 420ms ease 200ms both;
}

.vision.is-visible .vision-body {
  animation: cardStagger 420ms ease 320ms both;
}

@keyframes visionRuleDraw {
  from { width: 0; opacity: 0; }
  to { width: 28px; opacity: 1; }
}

.footer-contact-actions a {
  transition: transform 120ms ease, filter 120ms ease;
}

.footer-contact-actions a:active {
  transform: scale(0.95);
  filter: brightness(0.97);
}

.bottom-nav button {
  transition: color 200ms ease;
}

.bottom-nav button span::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 999px;
  background: var(--bottom-nav-active);
  opacity: 0;
  transform: scale(0);
  transition: opacity 200ms ease, transform 200ms ease;
}

.bottom-nav button.active span::after {
  opacity: 1;
  transform: scale(1);
}

.bottom-nav button.active svg {
  animation: navIconPop 320ms ease;
}

@keyframes navIconPop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-strip.is-visible .notice-item,
  .custom-section.is-visible .custom-item-card,
  .vision.is-visible .vision-title,
  .vision.is-visible .vision-rule,
  .vision.is-visible .vision-body,
  .bottom-nav button.active svg {
    animation: none;
    opacity: 1;
    transform: none;
    width: auto;
  }

  .bottom-nav .group-alert-dot.is-pulsing {
    animation: none;
  }

  .vision.is-visible .vision-rule {
    width: 28px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    --app-shell-inline-padding: 12px;
    --app-shell-inline-bleed: 24px;
    --app-shell-inline-bleed-offset: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .notice-strip,
  .schedule,
  .rss-audio-section,
  .online-radio-section,
  .youtube-section,
  .youtube-live-section,
  .custom-section {
    padding: 14px;
  }

  .home-section-heading,
  .section-title h2 {
    font-size: 16px;
    line-height: 1.3;
  }

  .section-title {
    align-items: flex-start;
    gap: 8px;
  }

  .section-title span {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }

  .group-inbox-item-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .custom-section.layout-horizontal {
    gap: 10px;
  }

  .custom-section p {
    font-size: 12.5px;
    line-height: 1.58;
  }

  .custom-section-action a {
    min-height: 30px;
    max-width: 100%;
    padding: 0 10px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notice-item {
    padding: 10px;
  }

  .notice-item strong {
    font-size: 13px;
  }

  .notice-item-main small {
    font-size: 10.5px;
  }

  .notice-modal,
  .notify-modal {
    font-size: 13px;
  }

  .bottom-nav {
    padding: 8px max(6px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  }

  .bottom-nav button {
    min-height: 45px;
    font-size: 10.5px;
  }

  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }

  .custom-section.kind-single.single-text {
    padding: 16px;
  }

  .custom-section.kind-single.single-text-image {
    grid-template-columns: minmax(0, 1.22fr) minmax(100px, 0.78fr);
    gap: 12px;
  }

  .custom-section.kind-single.single-image-text {
    grid-template-columns: minmax(100px, 0.78fr) minmax(0, 1.22fr);
    gap: 12px;
  }

  .custom-section.kind-single.single-text-image .custom-section-image,
  .custom-section.kind-single.single-image-text .custom-section-image {
    min-height: 124px;
  }
}

@media (max-width: 340px) {
  .app-shell {
    --app-shell-inline-padding: 10px;
    --app-shell-inline-bleed: 20px;
    --app-shell-inline-bleed-offset: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .quick-links {
    gap: 0;
  }

  .quick-links[data-shortcut-count="3"] > a:last-of-type {
    width: 50%;
  }

  .quick-links a {
    min-height: 84px;
    padding: 10px 8px;
  }

  .shortcut-head {
    gap: 7px;
  }

  .shortcut-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .shortcut-icon img,
  .shortcut-icon svg {
    width: 20px;
    height: 20px;
  }

  .quick-links span {
    font-size: 12px;
  }

  .quick-links small {
    margin-top: 6px;
    font-size: 10.5px;
  }

  .custom-section.layout-horizontal,
  .custom-section.layout-horizontal.card-card2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-section.card-card1 .custom-section-right .custom-section-image,
  .custom-section.card-card2 .custom-section-left .custom-section-image {
    width: min(120px, 54%) !important;
  }

  .custom-section.kind-single.single-text-image {
    grid-template-columns: minmax(0, 1.12fr) 88px;
    gap: 10px;
  }

  .custom-section.kind-single.single-image-text {
    grid-template-columns: 88px minmax(0, 1.12fr);
    gap: 10px;
  }

  .custom-section.kind-single.single-text-image .custom-section-image,
  .custom-section.kind-single.single-image-text .custom-section-image {
    min-height: 108px;
    border-radius: 10px;
  }
}
