:root {
  color-scheme: light;
  --ink: #111715;
  --muted: #69716d;
  --paper: #f1f2f3;
  --surface: #ffffff;
  --surface-soft: #f7f8f5;
  --line: #dde2df;
  --brand: #143f35;
  --brand-2: #1f6f55;
  --navy: #192943;
  --accent: #d26d32;
  --radius-card: 28px;
  --radius-panel: 22px;
  --shadow: 0 18px 44px rgba(15, 24, 32, 0.12);
  font-family:
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: keep-all;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(64px, 7vw, 120px);
  min-height: 124px;
  padding: 22px clamp(22px, 3vw, 40px) 20px;
  background: #fff;
}

.brand {
  grid-column: 1;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-width: max-content;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.primary-nav {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  z-index: 1;
  display: grid;
  width: auto;
  grid-template-columns: repeat(4, minmax(150px, max-content));
  align-items: end;
  justify-content: end;
  justify-self: end;
  align-self: end;
  gap: clamp(34px, 4vw, 72px);
  margin: 0;
}

.primary-nav::before {
  content: "";
  position: absolute;
  left: -72px;
  right: -72px;
  top: calc(100% + 18px);
  z-index: 0;
  height: 0;
  border-radius: 0 0 28px 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 44px rgba(15, 24, 32, 0.13);
  opacity: 0;
  transition:
    height 180ms ease,
    opacity 140ms ease;
}

.primary-nav:hover::before,
.primary-nav:focus-within::before {
  height: 260px;
  opacity: 1;
}

.nav-group {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.nav-group > a {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #181a1b;
  font-size: clamp(20px, 1.55vw, 27px);
  font-weight: 900;
  line-height: 1;
  text-align: left;
  transition:
    color 140ms ease;
}

.nav-group:hover > a,
.nav-group:focus-within > a,
.nav-group > a:focus-visible {
  color: var(--brand);
  outline: none;
}

.sub-nav {
  position: absolute;
  top: calc(100% + 48px);
  left: 0;
  display: grid;
  width: max-content;
  min-width: 190px;
  gap: 16px;
  padding: 0;
  transform: translateY(6px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s linear 140ms;
}

.primary-nav:hover .sub-nav,
.primary-nav:focus-within .sub-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.sub-nav a {
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  color: #222628;
  font-size: clamp(17px, 1.35vw, 24px);
  font-weight: 900;
  line-height: 1.25;
}

.sub-nav a:hover,
.sub-nav a:focus-visible {
  background: transparent;
  color: var(--brand);
  outline: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(currentColor, currentColor) center / 26px 3px no-repeat;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-indent: -9999px;
  overflow: hidden;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition:
    top 160ms ease,
    transform 160ms ease,
    opacity 120ms ease;
}

.nav-toggle::before {
  top: 15px;
}

.nav-toggle::after {
  top: 31px;
}

.nav-toggle[aria-expanded="true"] {
  background-size: 0 0;
}

.nav-toggle[aria-expanded="true"]::before {
  top: 23px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  top: 23px;
  transform: rotate(-45deg);
}

.auth-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: end;
  align-self: start;
  gap: 10px;
  color: #161819;
}

.auth-nav a,
.auth-nav button,
.auth-user {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.auth-nav a,
.auth-nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.auth-nav a:first-child {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.auth-user {
  padding: 0;
  background: transparent;
  color: var(--brand);
}

.auth-nav > * + *::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-right: 10px;
  background: #d1d4d6;
  vertical-align: middle;
}

body:not(.is-admin) a[href^="board-write.html"],
body:not(.is-admin) a[href^="book-write.html"],
body:not(.is-admin) a[href^="sermon-write.html"],
body:not(.is-admin) .admin-only {
  display: none !important;
}

body[data-requires-admin="true"]:not(.is-admin) .write-form {
  display: none;
}

.quick-sites {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 18;
  display: grid;
  width: 138px;
  max-width: calc(100vw - 32px);
  gap: 12px;
  padding: 16px;
  transform: translateY(-50%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13, 78, 150, 0.94), rgba(12, 83, 151, 0.98)),
    url("assets/worship-bg.png") center / cover;
  color: #fff;
  box-shadow: 0 16px 32px rgba(12, 42, 78, 0.22);
}

.quick-sites-toggle {
  display: none;
}

.quick-sites-panel {
  display: grid;
  gap: 12px;
}

.quick-sites-head {
  display: block;
}

.quick-sites-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.quick-sites-close {
  display: none;
}

.quick-sites-links {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  border-left: 1px solid rgba(255, 255, 255, 0.62);
}

.quick-sites-links a {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.quick-sites-links a:first-child {
  grid-column: auto;
}

.top-showcase {
  padding: 24px clamp(20px, 3vw, 40px) 58px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, 0.98fr);
  grid-auto-rows: minmax(174px, auto);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.main-visual,
.side-card,
.utility-cards a,
.intro-grid article,
.schedule-table,
.news-preview,
.resource-grid > a,
.main-quick-sites {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}

.main-visual {
  position: relative;
  grid-row: 1 / span 3;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgba(9, 22, 28, 0.08) 0%, rgba(9, 22, 28, 0.18) 44%, rgba(9, 22, 28, 0.78) 100%),
    url("assets/hero-church.png") center / cover;
  color: #fff;
}

.main-visual-copy {
  width: min(760px, 100%);
  padding-bottom: 130px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
}

.main-visual .eyebrow {
  color: #ffc586;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.1;
  letter-spacing: 0;
}

.main-visual p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(19px, 2vw, 26px);
}

.worship-floating {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  bottom: 32px;
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(20, 63, 53, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.worship-floating span {
  color: #ffc586;
  font-size: 18px;
  font-weight: 900;
}

.worship-floating strong {
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
}

.side-card {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.side-card:hover,
.side-card:focus-visible,
.utility-cards a:hover,
.utility-cards a:focus-visible,
.resource-grid > a:hover,
.resource-grid > a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 24, 32, 0.16);
  outline: none;
}

.side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(18, 44, 58, 0.1), rgba(18, 29, 52, 0.88));
}

.sermon-highlight {
  background:
    linear-gradient(180deg, rgba(13, 72, 91, 0.2), rgba(11, 30, 55, 0.9)),
    url("assets/hero-church.png") center / cover;
}

.column-highlight {
  background:
    linear-gradient(135deg, rgba(31, 111, 85, 0.94), rgba(25, 41, 67, 0.96)),
    url("assets/hero-church.png") 58% center / cover;
}

.side-card span,
.side-card strong,
.side-card small {
  position: relative;
  z-index: 1;
}

.side-card span {
  color: #ffc586;
  font-size: 17px;
  font-weight: 900;
}

.side-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.18;
  word-break: keep-all;
}

.side-card small {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.utility-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.utility-cards a {
  position: relative;
  display: grid;
  min-height: 174px;
  align-content: start;
  gap: 24px;
  padding: 28px;
  color: var(--ink);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.utility-cards a::after {
  content: ">";
  justify-self: end;
  align-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.utility-cards span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.utility-cards strong {
  font-size: 26px;
  line-height: 1.2;
  word-break: keep-all;
}

.section {
  padding: clamp(60px, 8vw, 104px) clamp(20px, 3vw, 40px);
}

.section-heading,
.intro-grid,
.split,
.content-hub {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.24;
  letter-spacing: 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.intro-grid article {
  min-height: 210px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.faith-slider {
  display: grid;
  min-height: 360px;
  align-content: start;
}

.faith-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faith-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.faith-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.faith-controls button:hover,
.faith-controls button:focus-visible,
.faith-dots button:focus-visible {
  background: var(--line);
  outline: none;
}

.faith-slides {
  position: relative;
  min-height: var(--faith-slide-height, 230px);
  margin-top: 28px;
  transition: min-height 260ms ease;
}

.faith-slide {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.faith-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.faith-slide span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.faith-slide h4 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.15;
  word-break: keep-all;
}

.intro-grid p,
.split p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.location-info {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
}

.location-info div {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.location-info dt {
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
}

.location-info dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.42;
  word-break: keep-all;
}

.location-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.faith-slide p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.48;
}

.faith-dots {
  display: flex;
  gap: 8px;
  align-self: end;
  margin-top: 22px;
}

.faith-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

.faith-dots button.is-active {
  background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .faith-slide {
    transition: none;
  }
}

.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
  max-width: none;
  padding: clamp(60px, 8vw, 104px) clamp(20px, 3vw, 40px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 209, 148, 0.2), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(93, 157, 137, 0.34), transparent 32%),
    radial-gradient(circle at 72% 92%, rgba(20, 63, 53, 0.6), transparent 34%),
    linear-gradient(135deg, #102f2b 0%, #16483e 46%, #182a43 100%);
  color: #fff;
}

.split > * {
  position: relative;
  z-index: 1;
}

.split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 74px),
    radial-gradient(circle at 30% 105%, rgba(255, 255, 255, 0.16), transparent 18%);
  pointer-events: none;
}

.split > div:first-child,
.schedule-list {
  max-width: 1440px;
}

.split > div:first-child {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.split .eyebrow {
  color: #ffd19a;
}

.split p {
  color: rgba(255, 255, 255, 0.82);
}

.schedule-list {
  display: grid;
  gap: 26px;
}

.schedule-table {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  padding: 32px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.schedule-table h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 34px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(230px, 1.2fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 0;
}

.schedule-row:first-of-type {
  border-top: 5px solid rgba(255, 209, 154, 0.78);
}

.schedule-row > span,
.schedule-row > strong {
  display: grid;
  min-height: 76px;
  place-items: center;
  padding: 16px;
  text-align: center;
}

.schedule-row > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.schedule-head {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.schedule-row strong {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
}

.schedule-row span:last-child {
  color: #fff;
  font-size: 22px;
}

.board-section {
  padding-top: 40px;
}

.content-hub {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, 0.98fr);
  gap: 24px;
}

.news-preview {
  min-height: 480px;
  display: grid;
  align-content: space-between;
  padding: clamp(30px, 4vw, 54px);
  box-shadow: var(--shadow);
}

.news-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.news-preview-head h3 {
  max-width: 860px;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.12;
}

.news-preview-head a {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.news-preview-head a:hover,
.news-preview-head a:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.news-list {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.news-list a {
  display: block;
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding-left: 22px;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--ink);
}

.news-list time {
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.news-more {
  display: inline-flex;
  justify-self: center;
  min-width: min(420px, 100%);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.resource-grid > a {
  display: grid;
  min-height: 238px;
  align-content: space-between;
  padding: 34px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.resource-grid > a > span {
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 900;
  line-height: 1.18;
}

.resource-grid > a > svg {
  justify-self: end;
  width: 72px;
  height: 72px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-grid > a:nth-child(3) {
  grid-column: 1 / -1;
  background: var(--navy);
  color: #fff;
}

.resource-grid > a:nth-child(3) svg {
  stroke: #fff;
}

.main-quick-sites {
  display: grid;
  grid-column: 1 / -1;
  min-height: 218px;
  align-content: start;
  gap: 18px;
  padding: 30px 34px 32px;
  background:
    linear-gradient(135deg, rgba(12, 55, 46, 0.96), rgba(17, 31, 52, 0.96)),
    url("assets/worship-bg.png") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.main-quick-sites h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.18;
}

.main-quick-sites div {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.main-quick-sites a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 900;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    color 140ms ease,
    padding-left 140ms ease;
}

.main-quick-sites a:hover,
.main-quick-sites a:focus-visible {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: #d8fff0;
  padding-left: 4px;
  outline: none;
}

.main-quick-sites a::before {
  content: none;
}

.main-quick-sites a::after {
  content: "↗";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 54px clamp(20px, 3vw, 40px);
  background: var(--navy);
  color: #fff;
}

.site-footer p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-info {
  max-width: 720px;
  flex: 1 1 520px;
}

.footer-info strong {
  display: block;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.site-footer a {
  font-weight: 900;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 0;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.footer-links a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.34);
  vertical-align: middle;
}

.site-footer .quick-sites--footer {
  position: static;
  right: auto;
  top: auto;
  z-index: auto;
  flex: 0 0 min(100%, 340px);
  width: min(100%, 340px);
  margin: 0;
  margin-left: auto;
  padding: 0;
  transform: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.site-footer .quick-sites--footer .quick-sites-toggle {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.site-footer .quick-sites--footer .quick-sites-toggle span {
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.site-footer .quick-sites--footer::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(0, 0, 0, 0.54);
}

.site-footer .quick-sites--footer.is-open::before {
  display: block;
}

.site-footer .quick-sites--footer .quick-sites-panel {
  position: fixed;
  left: 50%;
  top: auto;
  right: auto;
  bottom: 32px;
  z-index: 91;
  display: none;
  width: min(760px, calc(100vw - 40px));
  max-height: min(72vh, 560px);
  overflow-y: auto;
  gap: 22px;
  padding: 34px;
  transform: translateX(-50%);
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.site-footer .quick-sites--footer.is-open .quick-sites-panel {
  display: grid;
}

.site-footer .quick-sites--footer .quick-sites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer .quick-sites--footer .quick-sites-head strong {
  color: #101315;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.site-footer .quick-sites--footer .quick-sites-close {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-footer .quick-sites--footer .quick-sites-close::before,
.site-footer .quick-sites--footer .quick-sites-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 3px;
  background: #101315;
}

.site-footer .quick-sites--footer .quick-sites-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-footer .quick-sites--footer .quick-sites-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-footer .quick-sites--footer .quick-sites-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  border: 0;
}

.site-footer .quick-sites-links a {
  display: block;
  min-height: auto;
  margin-top: 0;
  padding: 0;
  border: 0;
  color: #6b6f72;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-footer .quick-sites-links a::before {
  content: "·";
  margin-right: 8px;
  color: #6b6f72;
}

.sub-visual {
  position: relative;
  display: grid;
  min-height: 320px;
  align-items: end;
  padding: 76px clamp(20px, 3vw, 40px) 0;
  background:
    linear-gradient(180deg, rgba(14, 32, 43, 0.12), rgba(14, 32, 43, 0.76)),
    url("assets/hero-church.png") center / cover;
  color: #fff;
}

.sub-visual-board {
  background:
    linear-gradient(180deg, rgba(25, 41, 67, 0.16), rgba(25, 41, 67, 0.8)),
    url("assets/worship-bg.png") center / cover;
}

.sub-visual-resource {
  background:
    linear-gradient(180deg, rgba(20, 63, 53, 0.12), rgba(20, 63, 53, 0.82)),
    url("assets/worship-bg.png") center / cover;
}

.sub-visual-sermon {
  background:
    linear-gradient(180deg, rgba(6, 18, 24, 0.1), rgba(6, 18, 24, 0.82)),
    url("assets/hero-church.png") center / cover;
}

.sub-visual-inner {
  width: min(1180px, 100%);
  margin: 0 auto 58px;
  text-align: center;
}

.sub-visual-inner p {
  margin: 0 0 12px;
  color: #ffc586;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.16;
}

.sub-visual-inner strong {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.42;
}

.sub-menu {
  display: flex;
  width: min(1180px, 100%);
  min-height: 72px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 30px rgba(15, 24, 32, 0.14);
}

.sub-menu a {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.sub-menu a:last-child {
  border-right: 0;
}

.sub-menu a.is-active,
.sub-menu a:hover,
.sub-menu a:focus-visible {
  background: var(--brand);
  color: #fff;
  outline: none;
}

.mobile-sub-tabs {
  display: none;
}

.sub-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) clamp(20px, 3vw, 40px) clamp(76px, 9vw, 120px);
}

.sub-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.sub-titlebar h1 {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 52px);
}

.legal-titlebar h1 {
  font-size: clamp(30px, 3vw, 40px);
}

.sub-titlebar p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  text-align: right;
  word-break: keep-all;
}

.sub-titlebar a {
  color: var(--brand);
}

.sub-titlebar-with-action {
  margin-bottom: 16px;
}

.titlebar-write-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.titlebar-write-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.intro-page,
.board-shell,
.post-view {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-page {
  overflow: hidden;
}

.legal-document {
  display: grid;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-date {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.legal-document section {
  display: grid;
  gap: 10px;
}

.legal-document h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.35;
}

.legal-document p,
.legal-document li {
  color: #39413e;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
  word-break: keep-all;
}

.legal-document p,
.legal-document ul {
  margin: 0;
}

.legal-document ul {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.not-found-content {
  padding: 72px 0 96px;
  text-align: center;
}

.not-found-content p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.not-found-home {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
}

.intro-statement {
  padding: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.intro-statement strong {
  display: block;
  color: var(--brand);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.intro-statement p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 800;
}

.intro-body {
  display: grid;
  gap: 0;
  padding: 10px clamp(26px, 4vw, 46px) 20px;
}

.intro-body section {
  padding: clamp(26px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.intro-body section:last-child {
  border-bottom: 0;
}

.intro-body h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.22;
}

.intro-body p {
  margin: 0;
  color: #39413e;
  font-size: 19px;
  line-height: 1.9;
}

.intro-signature {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 clamp(26px, 4vw, 46px) clamp(30px, 4vw, 46px);
  color: var(--muted);
  font-size: 19px;
  font-weight: 800;
}

.intro-signature strong {
  color: var(--ink);
}

.schedule-page,
.location-page {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 4vw, 46px);
}

.schedule-page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-page article,
.location-page {
  border-radius: 18px;
  background: var(--surface-soft);
}

.schedule-page article {
  padding: clamp(24px, 4vw, 36px);
}

.schedule-page h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
}

.schedule-page dl,
.location-page dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.schedule-page dl div,
.location-page dl div {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.schedule-page dt,
.location-page dt {
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.schedule-page dd,
.location-page dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.42;
}

.location-map {
  display: grid;
  min-height: 280px;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(20, 63, 53, 0.78), rgba(25, 41, 67, 0.88)),
    url("assets/worship-bg.png") center / cover;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 0;
}

.board-shell {
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.board-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.board-table th {
  height: 54px;
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.board-table th:nth-child(1),
.board-table td:nth-child(1) {
  width: 92px;
}

.board-table th:nth-child(3),
.board-table td:nth-child(3) {
  width: 124px;
}

.board-table th:nth-child(4),
.board-table td:nth-child(4) {
  width: 146px;
}

.board-table th:nth-child(5),
.board-table td:nth-child(5) {
  width: 92px;
}

.board-table td {
  height: 58px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.board-table td:nth-child(2) {
  min-width: 0;
  text-align: left;
}

.board-table td:nth-child(2) a {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-table tbody tr:hover {
  background: #fbfcf9;
}

.notice-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.notice-row td:nth-child(2) a {
  color: var(--brand);
}

.board-bottom {
  display: grid;
  gap: 28px;
  justify-items: center;
  padding-top: 28px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.board-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.board-toolbar a,
.form-actions button,
.form-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.board-toolbar a,
.form-actions button {
  border: 0;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.board-category-tabs,
.sermon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.board-category-tabs button,
.sermon-tabs button {
  min-height: 44px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
}

.board-category-tabs button.is-active,
.sermon-tabs button.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.pagination a,
.pagination strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
}

.pagination a {
  background: var(--surface-soft);
  color: var(--muted);
}

.pagination strong {
  background: var(--brand);
  color: #fff;
}

.board-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.board-search label {
  display: flex;
}

.board-search label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.board-search select,
.board-search input,
.board-search button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.board-search select {
  padding: 0 36px 0 16px;
}

.board-search input {
  width: min(320px, 62vw);
  padding: 0 18px;
}

.board-search button {
  padding: 0 24px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.post-view {
  overflow: hidden;
}

.post-meta {
  margin: 0;
  border-top: 3px solid var(--brand);
}

.post-meta div,
.attachment-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.post-meta dt,
.attachment-row strong {
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.post-meta dd,
.attachment-row a {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 15px 20px;
  color: #39413e;
  font-size: 17px;
  font-weight: 800;
}

.post-meta div:first-child dd {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

@media (min-width: 681px) {
  .community-view-page .post-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-view-page .post-meta div:first-child {
    grid-column: 1 / -1;
  }

  .community-view-page .post-meta div:nth-child(n + 2) {
    grid-template-columns: 92px minmax(0, 1fr);
    min-width: 0;
    border-right: 1px solid var(--line);
  }

  .community-view-page .post-meta div:last-child {
    border-right: 0;
  }

  .community-view-page .post-meta dt,
  .community-view-page .post-meta dd {
    min-width: 0;
  }
}

.post-body {
  min-height: 360px;
  padding: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.post-body p {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.post-image {
  width: min(620px, 100%);
  margin: 0;
}

.post-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.post-body figure {
  max-width: 100%;
}

.post-body img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

.post-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.attachment-row a {
  color: var(--brand);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding: 22px clamp(24px, 4vw, 40px);
}

.post-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.post-actions a + a {
  background: var(--surface-soft);
  color: var(--ink);
}

.post-admin-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.post-actions .post-admin-actions a,
.post-actions .post-admin-actions button {
  display: inline-flex;
  min-width: 82px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
}

.write-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.write-form label {
  display: grid;
  gap: 9px;
}

.write-form label > span {
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.write-form input,
.write-form select,
.write-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}

.write-form input,
.write-form select {
  min-height: 50px;
  padding: 0 16px;
}

.write-form select:disabled {
  opacity: 1;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: not-allowed;
}

.write-form textarea {
  resize: vertical;
  padding: 16px;
  line-height: 1.7;
}

.write-form input[type="file"] {
  padding: 12px 16px;
}

.write-form .write-check-option {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: pointer;
}

.write-form .write-check-option[hidden] {
  display: none;
}

.write-form .write-check-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions a {
  background: var(--surface-soft);
  color: var(--ink);
}

.auth-page,
.auth-required {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-page {
  display: grid;
  gap: 22px;
}

.auth-page-join {
  width: min(860px, 100%);
}

.auth-page-reset {
  width: min(640px, 100%);
}

.auth-page h2,
.auth-required h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.auth-page p,
.auth-required p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
}

.auth-page .auth-required-note {
  margin-top: -10px;
  color: #52605c;
  font-size: 14px;
  text-align: right;
}

.auth-required-note span,
.auth-required-mark {
  color: #c23a31;
  font-weight: 900;
}

.auth-optional,
.auth-section legend small {
  margin-left: 4px;
  color: #737c78;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.auth-page form {
  display: grid;
  gap: 18px;
}

.auth-page form[hidden] {
  display: none;
}

.auth-reset-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.auth-page .auth-reset-modes button {
  min-width: 0;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}

.auth-page .auth-reset-modes button[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 5px rgba(18, 35, 30, 0.12);
}

.auth-page .auth-reset-note {
  padding: 13px 15px;
  border-left: 3px solid var(--brand);
  background: var(--surface-soft);
  color: #39413e;
  font-size: 15px;
}

.auth-section {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.auth-section legend {
  padding: 0 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-page label {
  display: grid;
  gap: 8px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.auth-field-label-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.auth-id-message {
  color: #b3261e;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  word-break: keep-all;
}

.auth-id-message.is-success {
  color: var(--brand-2);
}

.auth-page input,
.auth-page select {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.auth-page select {
  appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%) right 21px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--brand) 50%, transparent 50%) right 15px center / 7px 7px no-repeat,
    var(--surface);
}

.auth-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-address-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.auth-address-field label,
.auth-address-field input {
  min-width: 0;
}

.auth-address-field input {
  width: 100%;
}

.auth-postcode-field .auth-inline-field {
  grid-template-columns: minmax(170px, 1fr) auto;
}

.auth-detail-address-field {
  grid-column: 2;
}

.auth-page input[readonly][data-address-search-trigger] {
  background: var(--surface-soft);
  cursor: pointer;
}

.auth-check-button {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-check-button:hover,
.auth-check-button:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.auth-page .auth-check-button {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: var(--surface);
  color: var(--brand);
  font-size: 15px;
  white-space: nowrap;
}

.auth-page .auth-check-button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.auth-page .form-message.is-success {
  color: var(--brand);
}

.auth-consent {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: #39413e;
  font-size: 15px;
}

.auth-consent a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  min-height: auto;
  padding: 0;
  accent-color: var(--brand);
}

.auth-page button,
.auth-required a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
}

.auth-page .form-message {
  min-height: 24px;
  color: #b3261e;
  font-size: 15px;
  font-weight: 900;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.auth-links a,
.auth-page .form-message a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-required {
  display: grid;
  gap: 16px;
  text-align: center;
}

.admin-dashboard {
  --admin-blue: #1768b1;
  --admin-cyan: #4fc5d9;
  --admin-green: #2fd35f;
  --admin-yellow: #f0d314;
  --admin-orange: #f4a51c;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 1px solid var(--line);
  background: #f6f7f8;
}

.admin-sidebar section {
  display: grid;
  gap: 0;
}

.admin-sidebar h2 {
  margin: 0;
  padding: 13px 16px;
  background: #e4e7e8;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-sidebar a {
  padding: 10px 16px;
  border-top: 1px solid #e3e6e8;
  color: #202624;
  font-size: 15px;
  font-weight: 850;
}

.admin-sidebar a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 1px;
  background: #aeb5b9;
  vertical-align: 2px;
}

.admin-sidebar a.is-active {
  color: var(--admin-blue);
  background: #fff;
}

.admin-sidebar a.is-active::before {
  background: var(--admin-blue);
}

.admin-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.15;
}

.admin-heading h2::before,
.admin-panel h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--admin-blue);
  vertical-align: 4px;
}

.admin-heading p,
.admin-inline-note {
  margin: 0;
  color: #52605c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.admin-panel {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.admin-panel-attention {
  border-top: 3px solid var(--admin-blue);
}

.admin-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}

.admin-panel h3 small {
  color: #68726f;
  font-size: 0.82em;
  font-weight: 800;
}

.admin-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.admin-panel-head input {
  width: min(320px, 100%);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.admin-summary-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}

.admin-summary-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-summary-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-summary-grid div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #fbfcfc;
}

.admin-summary-grid div:last-child {
  border-right: 0;
}

.admin-summary-grid span {
  color: #52605c;
  font-size: 14px;
  font-weight: 900;
}

.admin-summary-grid strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table-compact {
  min-width: 520px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: #39413e;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #f3f5f5;
  color: var(--brand);
  font-weight: 900;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-status {
  display: inline-flex;
  min-width: 64px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f0;
  color: #39413e;
  font-size: 13px;
  font-weight: 900;
}

.admin-status-active {
  background: #e4f7ea;
  color: #14743b;
}

.admin-status-pending {
  background: #fff5db;
  color: #8a5a00;
}

.admin-status-suspended,
.admin-status-withdrawn,
.admin-status-rejected {
  background: #f3e7e7;
  color: #9a2f2f;
}

.admin-status-approved {
  background: #e4f7ea;
  color: #14743b;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.admin-row-actions button:hover,
.admin-row-actions button:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.admin-row-actions .admin-action-reject {
  color: #9a2f2f;
}

.admin-chart-grid-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 300px;
  padding: 18px 10px 4px;
  border-left: 2px solid #c5cbcd;
  border-bottom: 2px solid #c5cbcd;
  background:
    repeating-linear-gradient(to top, transparent 0 58px, #d9dee0 59px 60px),
    #fff;
}

.admin-bar-item {
  display: grid;
  gap: 8px;
  align-items: end;
  justify-items: center;
  height: 100%;
}

.admin-bar-track {
  display: grid;
  width: 100%;
  height: 220px;
  align-items: end;
}

.admin-bar-track span {
  display: block;
  width: min(48px, 80%);
  margin: 0 auto;
  background: var(--admin-cyan);
}

.admin-bar-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.admin-bar-item em,
.admin-chart-labels span {
  color: #52605c;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.admin-line-chart {
  width: 100%;
  min-height: 300px;
  background: #fff;
}

.admin-chart-grid line {
  stroke: #d9dee0;
  stroke-width: 0.5;
}

.admin-line-primary,
.admin-line-secondary {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-line-primary {
  stroke: var(--admin-green);
}

.admin-line-secondary {
  stroke: var(--admin-orange);
}

.admin-chart-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.admin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  color: #39413e;
  font-size: 14px;
  font-weight: 900;
}

.admin-legend span::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 4px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.admin-legend .is-primary::before {
  background: var(--admin-green);
}

.admin-legend .is-secondary::before {
  background: var(--admin-orange);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.sitemap-grid section {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sitemap-grid h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.sitemap-grid a {
  color: #39413e;
  font-size: 17px;
  font-weight: 800;
}

.album-grid,
.video-grid,
.study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.study-gallery-shell {
  display: grid;
  gap: 30px;
}

.study-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.study-card:hover,
.study-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 24, 32, 0.16);
  outline: none;
}

.study-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ece9;
}

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

.study-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 7px;
  background: linear-gradient(145deg, #173f36, #30465a);
  color: #fff;
  text-align: center;
}

.study-cover-placeholder strong {
  font-size: 25px;
  line-height: 1.2;
}

.study-cover-placeholder small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.study-card-content {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px 22px 22px;
}

.study-card-content strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.38;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.study-card-content small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.study-detail-image {
  width: min(880px, 100%);
  margin: 0 0 30px;
}

.study-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.album-card,
.video-card,
.album-view,
.sermon-view {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.album-card,
.video-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  align-content: start;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.album-card:hover,
.album-card:focus-visible,
.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(15, 24, 32, 0.16);
  outline: none;
}

.book-cover {
  display: grid;
  min-height: 260px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #d26d32, #143f35);
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1;
}

.book-cover-green {
  background: linear-gradient(135deg, #1f6f55, #9ebc9c);
}

.book-cover-navy {
  background: linear-gradient(135deg, #192943, #4475cb);
}

.album-card strong,
.video-card strong {
  color: var(--ink);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.22;
  word-break: keep-all;
}

.album-card small,
.video-card small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.video-card em {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.video-card::after {
  content: "영상 보기";
  justify-self: start;
  margin-top: 6px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
}

.album-card p {
  margin: 0;
  color: #39413e;
  font-size: 16px;
  line-height: 1.62;
}

.album-view,
.sermon-view {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 42px);
  padding: clamp(24px, 4vw, 42px);
}

.album-view-cover .book-cover {
  min-height: 420px;
}

.album-view-content h2,
.sermon-info h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

.album-view-content dl,
.sermon-info dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.album-view-content dl div,
.sermon-info dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.album-view-content dt,
.sermon-info dt {
  color: var(--brand);
  font-weight: 900;
}

.album-view-content dd,
.sermon-info dd {
  margin: 0;
  color: #39413e;
  font-weight: 800;
}

.album-view-content > p:last-of-type,
.sermon-info > p:last-of-type {
  margin: 0;
  color: #39413e;
  font-size: 18px;
  line-height: 1.8;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--navy);
}

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

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 22, 28, 0.04), rgba(9, 22, 28, 0.42));
}

.video-thumb .video-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(9, 22, 28, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.sermon-view {
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.sermon-player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: var(--navy);
}

.sermon-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sermon-info {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}

.sermon-info h2 {
  max-width: 940px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.sermon-info dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 2px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.sermon-info dl div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 0;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.sermon-info dl div:last-child {
  border-right: 0;
}

.sermon-info dl div[hidden] {
  display: none !important;
}

.sermon-info dt {
  font-size: 14px;
  line-height: 1.35;
}

.sermon-info dd {
  min-width: 0;
  font-size: 17px;
  line-height: 1.45;
  word-break: keep-all;
}

.sermon-info > p:last-of-type {
  max-width: 860px;
}

.sermon-info .post-actions,
.album-view-content .post-actions {
  padding: 28px 0 0;
}

.sermon-info .post-actions {
  flex-wrap: wrap;
  padding-top: 6px;
}

.sermon-view-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.sermon-view-nav a {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sermon-view-nav span {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.sermon-view-nav strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .quick-sites {
    right: 10px;
    width: 116px;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .quick-sites-head strong {
    font-size: 14px;
  }

  .quick-sites-links a {
    min-height: 38px;
    padding: 7px 6px;
    font-size: 10px;
  }
}

@media (max-width: 1100px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 14px;
    column-gap: 18px;
    min-height: auto;
    align-items: start;
  }

  .brand {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
  }

  .nav-toggle {
    grid-column: 3;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    align-self: center;
  }

  .primary-nav {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: var(--mobile-nav-top, 124px);
    width: auto;
    max-height: calc(100vh - var(--mobile-nav-top, 124px) - 12px);
    max-height: calc(100dvh - var(--mobile-nav-top, 124px) - 12px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
    box-shadow: var(--shadow);
    scrollbar-gutter: stable;
    justify-self: stretch;
    align-self: auto;
    gap: 12px;
    margin: 0;
  }

  .primary-nav::before {
    display: none;
  }

  .auth-nav {
    grid-column: 1 / 4;
    grid-row: 1;
    width: auto;
    margin-top: 0;
    justify-self: end;
    justify-content: flex-end;
    gap: 6px;
  }

  .primary-nav.is-open {
    display: grid;
    align-items: start;
  }

  .nav-group {
    display: grid;
    width: 100%;
    min-width: 0;
    align-self: start;
    align-content: start;
    gap: 6px;
    margin: 0;
  }

  .nav-group > a {
    height: 48px;
    min-height: 48px;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--surface-soft);
    box-shadow: none;
    line-height: 1;
  }

  .nav-group:hover > a,
  .nav-group:focus-within > a,
  .nav-group > a:focus-visible {
    background: var(--surface-soft);
    color: var(--brand);
    box-shadow: none;
  }

  .sub-nav {
    position: static;
    display: grid;
    align-content: start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 4px;
    padding: 10px;
    margin: 0;
    transform: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: none;
    overflow: hidden;
  }

  .sub-nav a {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .nav-group:hover .sub-nav,
  .nav-group:focus-within .sub-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .main-visual {
    min-height: 620px;
    grid-row: auto;
  }

  .side-card {
    min-height: 260px;
  }

  .intro-grid,
  .split,
  .content-hub {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .resource-grid > a:nth-child(3) {
    grid-column: auto;
  }

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

  .sub-titlebar {
    display: block;
  }

  .sub-titlebar p {
    margin-top: 10px;
    text-align: left;
  }

}

@media (max-width: 900px) {
  .admin-shell,
  .admin-chart-grid-wrap {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .admin-sidebar section {
    border-right: 1px solid var(--line);
  }

  .admin-sidebar section:last-child {
    border-right: 0;
  }

  .admin-summary-grid-3,
  .admin-summary-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-summary-grid div:nth-child(2n) {
    border-right: 0;
  }

  .admin-summary-grid div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .quick-sites {
    position: static;
    flex: 0 0 100%;
    width: 100%;
    margin: 28px 0 0;
    padding: 0;
    transform: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .quick-sites-toggle {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
  }

  .quick-sites-toggle span {
    width: 14px;
    height: 14px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
  }

  .quick-sites::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(0, 0, 0, 0.54);
  }

  .quick-sites.is-open::before {
    display: block;
  }

  .quick-sites-panel {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 28px;
    z-index: 91;
    display: none;
    gap: 22px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  }

  .quick-sites.is-open .quick-sites-panel {
    display: grid;
  }

  .quick-sites-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .quick-sites-head strong {
    color: #101315;
    font-size: 32px;
  }

  .quick-sites-close {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .quick-sites-close::before,
  .quick-sites-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 3px;
    background: #101315;
  }

  .quick-sites-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .quick-sites-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .quick-sites-links {
    grid-template-columns: 1fr;
    gap: 12px;
    border: 0;
  }

  .quick-sites .quick-sites-links a {
    display: block;
    min-height: auto;
    margin-top: 0;
    padding: 0;
    border: 0;
    color: #6b6f72;
    font-size: 21px;
    line-height: 1.45;
    text-align: left;
  }

  .quick-sites .quick-sites-links a::before {
    content: "·";
    margin-right: 8px;
    color: #6b6f72;
  }

  .sermon-info dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sermon-info dl div:nth-child(2n) {
    border-right: 0;
  }

  .sermon-info dl div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .auth-address-field {
    grid-template-columns: 1fr;
  }

  .auth-detail-address-field {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
    overflow-x: hidden;
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-sidebar section {
    border-right: 0;
  }

  .admin-panel-head {
    display: grid;
  }

  .admin-summary-grid-3,
  .admin-summary-grid-4 {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid div,
  .admin-summary-grid div:nth-child(2n) {
    border-right: 0;
  }

  .admin-summary-grid div:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .admin-bars {
    gap: 7px;
    min-height: 240px;
    padding-inline: 6px;
  }

  .admin-bar-track {
    height: 170px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 18px;
  }

  .brand {
    grid-column: 1;
    min-width: 0;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .auth-nav {
    grid-column: 1 / 3;
    max-width: 100%;
  }

  .auth-reset-modes {
    grid-template-columns: 1fr;
  }

  .auth-field-label-row {
    display: grid;
    gap: 3px;
  }

  .auth-id-message {
    text-align: left;
  }

  .auth-page-join {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px;
  }

  .auth-page-join form,
  .auth-page-join .auth-section,
  .auth-page-join .auth-form-grid,
  .auth-page-join .auth-address-field,
  .auth-page-join label,
  .auth-page-join .auth-inline-field {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .auth-page-join .auth-section {
    padding: 16px 12px;
  }

  .auth-page-join input,
  .auth-page-join select,
  .auth-page-join button,
  .auth-page-join .auth-check-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .auth-page-join select {
    text-overflow: ellipsis;
  }

  .auth-page-join .auth-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 12px;
  }

  .auth-page-join .auth-consent input {
    width: 18px;
    min-width: 18px;
  }

  .auth-page-join .auth-consent span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .auth-page-join .auth-postcode-field .auth-inline-field {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand img {
    width: 136px;
  }

  .auth-nav a,
  .auth-nav button,
  .auth-user {
    font-size: 14px;
  }

  .top-showcase {
    padding: 10px 16px 44px;
  }

  .showcase-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .showcase-grid > *,
  .main-visual-copy,
  .worship-floating {
    min-width: 0;
    max-width: 100%;
  }

  .main-visual {
    min-height: 620px;
    padding: 26px;
  }

  .main-visual-copy {
    padding-bottom: 190px;
  }

  .main-visual h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.16;
  }

  .worship-floating {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }

  .worship-floating span {
    font-size: 16px;
  }

  .worship-floating strong {
    font-size: 20px;
  }

  .side-card,
  .utility-cards a,
  .intro-grid article,
  .schedule-table,
  .news-preview,
  .resource-grid > a {
    padding: 24px;
  }

  .utility-cards,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .primary-nav.is-open {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .resource-grid > a:nth-child(3) {
    grid-column: auto;
  }

  .main-quick-sites {
    min-height: auto;
    gap: 16px;
    padding: 26px 24px 28px;
  }

  .main-quick-sites a {
    gap: 14px;
  }

  .main-quick-sites a::after {
    width: 26px;
    height: 26px;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .schedule-row,
  .news-list li,
  .site-footer {
    display: block;
  }

  .news-list li {
    width: 100%;
    min-width: 0;
    padding: 16px 0;
  }

  .news-list a {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .news-list time {
    display: block;
    margin-top: 8px;
    padding-left: 22px;
  }

  .schedule-row > * + * {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .schedule-row > span,
  .schedule-row > strong {
    min-height: 68px;
  }

  .schedule-head {
    display: none;
  }

  .schedule-head + .schedule-row {
    border-top: 5px solid rgba(255, 209, 154, 0.78);
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }

  .site-footer .quick-sites--footer {
    width: 100%;
    margin: 28px 0 0;
  }

  .sub-visual {
    min-height: 250px;
    padding: 52px 16px 0;
  }

  .sub-visual-inner {
    margin-bottom: 36px;
  }

  .sub-menu {
    display: none;
  }

  .mobile-sub-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .mobile-sub-tabs a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-sub-tabs a.is-active {
    background: var(--brand);
    color: #fff;
  }

  .sub-content {
    padding: 38px 16px 70px;
  }

  .intro-page,
  .board-shell,
  .post-view {
    border-radius: 18px;
  }

  .intro-signature {
    display: block;
    text-align: right;
  }

  .board-shell {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .board-table,
  .board-table thead,
  .board-table tbody,
  .board-table th {
    display: block;
    width: 100%;
  }

  .board-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .board-table tr {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .board-table td {
    display: flex;
    width: auto;
    height: auto;
    min-height: 42px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 0;
    text-align: left;
  }

  .board-table td:nth-child(1) {
    grid-column: 1 / 3;
    justify-content: center;
    padding: 14px 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
  }

  .board-table td:nth-child(2) {
    grid-column: 3 / -1;
    min-width: 0;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
  }

  .board-table td:nth-child(2) a {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .board-table td:nth-child(3),
  .board-table td:nth-child(4),
  .board-table td:nth-child(5) {
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .board-table td:nth-child(3) {
    grid-column: 1 / 4;
  }

  .board-table td:nth-child(4) {
    grid-column: 4 / 10;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .board-table td:nth-child(5) {
    grid-column: 10 / -1;
  }

  .board-table td:nth-child(3)::before {
    content: "작성자";
    color: var(--brand);
    font-weight: 900;
  }

  .board-table td:nth-child(4)::before {
    content: "작성일자";
    color: var(--brand);
    font-weight: 900;
  }

  .board-table td:nth-child(5)::before {
    content: "조회수";
    color: var(--brand);
    font-weight: 900;
  }

  .board-table td.board-empty {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 34px 16px;
  }

  .board-table .notice-badge {
    min-height: 24px;
    padding: 0 7px;
    font-size: 12px;
  }

  .community-list-page .board-shell {
    overflow: visible;
    background: transparent;
  }

  .community-list-page .board-table thead {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .community-list-page .board-table tr {
    grid-template-columns: 64px minmax(0, 1fr);
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .community-list-page .board-table thead tr {
    border-top: 3px solid var(--brand);
    background: var(--surface-soft);
  }

  .community-list-page .board-table th {
    display: flex;
    width: auto;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    font-size: 14px;
  }

  .community-list-page .board-table th:nth-child(1) {
    grid-column: 1;
  }

  .community-list-page .board-table th:nth-child(2) {
    grid-column: 2;
  }

  .community-list-page .board-table th:nth-child(n + 3) {
    display: none;
  }

  .community-list-page .board-table td:nth-child(1) {
    grid-column: 1;
    min-height: 58px;
    padding: 12px 5px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
  }

  .community-list-page .board-table td:nth-child(2) {
    grid-column: 2;
    min-height: 58px;
    padding: 12px 8px 12px 12px;
    border: 0;
    background: transparent;
  }

  .community-list-page .board-table td:nth-child(2) a {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    -webkit-line-clamp: unset;
  }

  .community-list-page .board-table td:nth-child(3),
  .community-list-page .board-table td:nth-child(4),
  .community-list-page .board-table td:nth-child(5) {
    display: none;
  }

  .community-list-page .board-table td.board-empty {
    display: flex;
    grid-column: 1 / -1;
    min-height: 100px;
  }

  .community-list-page .board-table .notice-badge {
    min-height: 28px;
    padding: 0 8px;
    font-size: 13px;
  }

  .board-search {
    display: grid;
    width: 100%;
  }

  .board-search label,
  .board-search select,
  .board-search input,
  .board-search button {
    width: 100%;
  }

  .board-toolbar,
  .form-actions {
    display: grid;
    justify-items: stretch;
  }

  .board-toolbar a,
  .form-actions a,
  .form-actions button {
    width: 100%;
  }

  .form-grid,
  .auth-form-grid,
  .auth-address-field,
    .album-grid,
    .video-grid,
    .study-grid,
  .schedule-page,
  .sitemap-grid,
  .album-view,
  .sermon-view,
  .sermon-view-nav {
    grid-template-columns: 1fr;
  }

  .auth-inline-field {
    grid-template-columns: 1fr;
  }

  .sermon-info dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    overflow: visible;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .sermon-info dl div,
  .sermon-info dl div:nth-child(2n) {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-height: 0;
    align-items: center;
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .sermon-info dl div:nth-child(n + 2) {
    border-top: 0;
  }

  .sermon-info dl div:nth-child(1) {
    order: 1;
  }

  .sermon-info dl div:nth-child(3) {
    order: 2;
  }

  .sermon-info dl div:nth-child(2) {
    order: 3;
  }

  .sermon-info dl div:nth-child(4) {
    display: none;
  }

  .sermon-info dl div:nth-child(2)::before,
  .sermon-info dl div:nth-child(3)::before {
    content: "·";
    margin: 0 8px;
    color: var(--muted);
    font-weight: 900;
  }

  .sermon-info dl dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .sermon-info dl dd {
    max-width: 100%;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .video-card small {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .book-cover {
    min-height: 220px;
  }

  .album-view-cover .book-cover {
    min-height: 300px;
  }

  .post-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-meta div {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    min-height: 84px;
    border-right: 1px solid var(--line);
  }

  .post-meta div:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 58px;
    border-right: 0;
  }

  .post-meta div:nth-child(4) {
    border-right: 0;
  }

  .post-meta dt {
    min-height: 40px;
    place-items: center;
    padding: 8px 4px;
    font-size: 14px;
    text-align: center;
  }

  .post-meta dd {
    justify-content: center;
    padding: 10px 5px;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .post-meta div:first-child dt {
    min-height: 58px;
    padding: 10px;
  }

  .post-meta div:first-child dd {
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 17px;
    text-align: left;
  }

  .attachment-row {
    display: block;
  }

  .attachment-row strong {
    min-height: 44px;
    place-items: center start;
    padding-left: 18px;
  }

  .attachment-row a {
    padding: 14px 18px;
  }

  .post-body {
    min-height: 260px;
  }

  .post-body figure {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .post-body img {
    width: auto !important;
    max-height: 68vh;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
  }

  .post-image img {
    width: 100% !important;
  }
}
body[data-requires-member="true"] .sub-content,
body[data-requires-admin="true"] .sub-content {
  visibility: hidden;
}

body.auth-ready[data-requires-member="true"] .sub-content,
body.auth-ready[data-requires-admin="true"] .sub-content {
  visibility: visible;
}

body:not(.auth-ready) .sermon-highlight,
body:not(.auth-ready) .column-highlight,
body:not(.auth-ready) .news-list {
  visibility: hidden;
}

.board-empty,
.board-error,
.admin-loading {
  padding: 40px 20px;
  color: #59636f;
  text-align: center;
}

.media-empty {
  grid-column: 1 / -1;
}

.media-pagination {
  margin-top: 32px;
}

.album-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
}

.album-view-cover > img {
  display: block;
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 18px 38px rgba(15, 24, 32, 0.16);
}
