/* 예배·자료실·앨범·새가족 페이지와 해당 페이지의 반응형 스타일입니다. */
.worship-page {
  background:
    linear-gradient(180deg, var(--surface-cool) 0%, var(--white) 520px),
    var(--white);
}

.worship-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 168px clamp(20px, 7vw, 96px) 88px;
}

.worship-detail-copy {
  max-width: 820px;
}

.worship-detail-copy h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--blue-900);
}

.worship-detail-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

.worship-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.worship-hero-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(22, 60, 104, 0.12), rgba(22, 60, 104, 0.88)),
    url("https://eeumds.com/wp-content/uploads/2023/03/worship_w.jpg") center /
      cover;
  box-shadow: var(--shadow);
}

.worship-hero-card span,
.worship-hero-card strong,
.worship-hero-card p {
  display: block;
  color: var(--white);
}

.worship-hero-card span {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.worship-hero-card strong {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.worship-hero-card p {
  margin-bottom: 0;
}

.worship-channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.worship-channel-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-weight: 800;
}

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

.worship-channel-grid article,
.sermon-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
}

.worship-channel-grid article {
  padding: 30px;
}

.worship-channel-grid article > span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 900;
}

.worship-channel-grid h3 {
  margin-bottom: 12px;
}

.worship-channel-grid p {
  color: var(--muted);
}

.worship-channel-grid dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.worship-channel-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.worship-channel-grid dt {
  color: var(--blue-900);
  font-weight: 800;
}

.worship-channel-grid dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.sermon-archive {
  background: var(--surface-soft);
}

.sermon-list {
  display: grid;
  gap: 14px;
}

.sermon-item {
  display: grid;
  grid-template-columns: 142px minmax(0, 0.95fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
}

.sermon-item span {
  color: var(--green);
  font-weight: 900;
}

.sermon-item strong {
  color: var(--blue-900);
  font-size: clamp(1.18rem, 2vw, 1.52rem);
}

.sermon-item p {
  margin: 0;
  color: var(--muted);
}

.sermon-item:hover,
.worship-channel-tabs a:hover {
  transform: translateY(-2px);
}

@media (max-width: 1120px) {
  .worship-detail-hero,
  .worship-channel-grid {
    grid-template-columns: 1fr;
  }

  .worship-hero-card {
    min-height: 300px;
  }

  .sermon-item {
    grid-template-columns: 120px 1fr;
  }

  .sermon-item p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .worship-detail-hero {
    padding: 130px 20px 64px;
  }

  .worship-page-actions,
  .worship-page-actions .button {
    width: 100%;
  }

  .worship-channel-tabs {
    flex-direction: column;
  }

  .worship-channel-tabs a {
    width: 100%;
  }

  .worship-channel-grid article {
    padding: 24px;
  }

  .worship-channel-grid dl div,
  .sermon-item {
    grid-template-columns: 1fr;
  }

  .worship-channel-grid dl div {
    display: grid;
    gap: 4px;
  }

  .worship-channel-grid dd {
    text-align: left;
  }

  .sermon-item {
    padding: 22px;
  }

  .sermon-item p {
    grid-column: auto;
  }
}

.news-page {
  background:
    linear-gradient(180deg, var(--surface-cool) 0%, var(--white) 540px),
    var(--white);
}

.news-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 168px clamp(20px, 7vw, 96px) 88px;
}

.news-detail-copy {
  max-width: 820px;
}

.news-detail-copy h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--blue-900);
}

.news-detail-copy p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

.news-hero-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 22px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(22, 60, 104, 0.92), rgba(56, 159, 106, 0.74)),
    url("../img/banner2.jpg") center / cover;
  box-shadow: var(--shadow);
}

.news-hero-card span,
.news-hero-card strong,
.news-hero-card a {
  display: block;
  color: var(--white);
}

.news-hero-card span {
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-hero-card strong {
  max-width: 360px;
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.1;
}

.news-hero-card a {
  width: fit-content;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  font-weight: 900;
}

.news-hub {
  background: var(--white);
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.news-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--white);
  font-weight: 800;
}

.news-tabs a[aria-current="page"] {
  border-color: var(--blue-900);
  color: var(--white);
  background: var(--blue-900);
}

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

.news-feature-grid article {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(247, 251, 255, 0.94)
    ),
    var(--white);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.news-feature-grid article:is(:hover, :focus-within) {
  border-color: rgba(22, 60, 104, 0.28);
  background:
    linear-gradient(145deg, rgba(22, 60, 104, 0.97), rgba(47, 120, 168, 0.9)),
    var(--blue-900);
  color: var(--white);
  box-shadow: 0 20px 46px rgba(22, 60, 104, 0.16);
  transform: translateY(-4px);
}

.news-feature-grid article:is(:hover, :focus-within) span,
.news-feature-grid article:is(:hover, :focus-within) h2,
.news-feature-grid article:is(:hover, :focus-within) p,
.news-feature-grid article:is(:hover, :focus-within) a {
  color: var(--white);
}

.news-feature-grid article span {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-feature-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.news-feature-grid p {
  color: var(--muted);
}

.bulletin-archive {
  background: var(--surface-soft);
}

.bulletin-list {
  display: grid;
  gap: 14px;
}

.bulletin-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
}

.bulletin-item span {
  color: var(--green);
  font-weight: 900;
}

.bulletin-item strong {
  color: var(--blue-900);
  font-size: clamp(1.14rem, 2vw, 1.42rem);
}

.bulletin-item em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.welcome-page {
  background:
    linear-gradient(180deg, var(--surface-cool) 0%, var(--white) 560px),
    var(--white);
}

.welcome-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 168px clamp(20px, 7vw, 96px) 88px;
}

.welcome-hero-copy {
  max-width: 820px;
}

.welcome-hero-copy h1 {
  margin-bottom: 20px;
  color: var(--blue-900);
}

.welcome-hero-copy p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.welcome-hero-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 22px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(22, 60, 104, 0.84), rgba(56, 159, 106, 0.7)),
    url("../img/hospitality.jpg") center / cover;
  box-shadow: var(--shadow);
}

.welcome-hero-card span,
.welcome-hero-card strong,
.welcome-hero-card p {
  display: block;
  color: var(--white);
}

.welcome-hero-card span {
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-hero-card strong {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.1;
}

.welcome-hero-card p {
  margin: 0;
}

.welcome-register {
  background: var(--white);
}

.welcome-register {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 68px);
}

.welcome-register-copy {
  max-width: 520px;
}

.welcome-register-copy h2 {
  margin-bottom: 16px;
  color: var(--blue-900);
}

.welcome-register-copy p {
  color: var(--muted);
}

.welcome-contact-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.welcome-contact-card span {
  color: var(--green);
  font-weight: 900;
}

.welcome-contact-card strong {
  display: block;
  margin: 8px 0;
  color: var(--blue-900);
  font-size: 1.4rem;
}

.welcome-contact-card p {
  margin: 0;
}

.welcome-form {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 58px rgba(22, 60, 104, 0.1);
}

.welcome-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.welcome-form legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.welcome-form .registration-help {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.7;
}

.registration-honeypot {
  display: none;
}

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

.registration-status {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-cool);
  color: var(--blue-900);
  line-height: 1.7;
}

.registration-status[data-state="error"] {
  color: #9b2525;
  background: #fff1f1;
}

.registration-status[data-state="success"] {
  color: #215943;
  background: #edf8f2;
}

.welcome-form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--blue-900);
  outline-offset: 2px;
}

.welcome-form .button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.welcome-form[aria-busy="true"] .button {
  cursor: wait;
}

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

.welcome-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 900;
}

.welcome-form .form-full {
  grid-column: 1 / -1;
}

.welcome-form input,
.welcome-form select,
.welcome-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--blue-900);
  background: var(--surface-cool);
  font: inherit;
  font-weight: 500;
  outline: 0;
}

.welcome-form textarea {
  resize: vertical;
}

.privacy-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  margin: 20px 0 24px;
  color: var(--muted) !important;
}

.privacy-check input {
  width: 18px;
  height: 18px;
}

.news-tabs a:hover,
.news-hero-card a:hover,
.bulletin-item:hover {
  transform: translateY(-2px);
}

.inline-page-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: var(--blue-900);
  font-weight: 900;
}

.compact-news-nav {
  padding-top: 0;
  padding-bottom: 0;
}

.compact-news-nav .news-tabs {
  margin-bottom: 0;
}

.album-hero-card,
.notice-hero-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border-radius: 22px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.album-hero-card {
  background:
    linear-gradient(145deg, rgba(22, 60, 104, 0.82), rgba(56, 159, 106, 0.68)),
    url("../img/banner4.jpg") center / cover;
}

.notice-hero-card {
  background:
    linear-gradient(145deg, rgba(22, 60, 104, 0.88), rgba(36, 117, 173, 0.68)),
    url("../img/banner1.jpg") center / cover;
}

.album-hero-card span,
.album-hero-card strong,
.album-hero-card p,
.notice-hero-card span,
.notice-hero-card strong,
.notice-hero-card p {
  display: block;
  color: var(--white);
}

.album-hero-card span,
.notice-hero-card span {
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-hero-card strong,
.notice-hero-card strong {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.1;
}

.album-hero-card p,
.notice-hero-card p {
  margin: 0;
}

.album-board,
.notice-board-section {
  background: var(--white);
}

.album-detail-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 168px clamp(20px, 7vw, 96px) 72px;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 900;
}

.album-detail-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--blue-900);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

.album-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.album-detail-meta div {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.album-detail-meta dt {
  color: var(--blue-900);
  font-weight: 900;
}

.album-detail-meta dd {
  margin: 0;
  color: var(--muted);
}

.album-detail-content {
  background: var(--white);
}

.album-post {
  max-width: 980px;
  margin: 0 auto;
}

.album-post > p {
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--muted);
  text-align: center;
}

.album-post figure {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface-soft);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
}

.album-post img {
  display: block;
  width: 100%;
  height: auto;
}

.album-post-nav {
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 48px auto 0;
}

.album-post-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 86px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
}

.album-post-nav a:last-child {
  text-align: right;
}

.album-post-nav span {
  margin-bottom: 6px;
  color: var(--green);
  font-weight: 900;
}

.album-post-nav strong {
  color: var(--blue-900);
}

.album-post-nav .album-list-button {
  min-width: 108px;
  align-items: center;
  color: var(--white);
  background: var(--blue-900);
  font-weight: 900;
  text-align: center;
}

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

.album-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: inherit;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
}

.album-card > div:last-child {
  padding: 22px 24px 26px;
}

.album-card span {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
}

.album-card h3 {
  margin: 10px 0;
  color: var(--blue-900);
}

.album-card p {
  margin: 0;
  color: var(--muted);
}

.album-card:hover {
  transform: translateY(-3px);
}

.album-placeholder {
  position: relative;
  min-height: 230px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(22, 60, 104, 0.08), rgba(56, 159, 106, 0.12)),
    repeating-linear-gradient(
      45deg,
      rgba(22, 60, 104, 0.05) 0 10px,
      transparent 10px 20px
    );
}

.album-detail-placeholder {
  min-height: clamp(320px, 58vw, 640px);
}

.album-placeholder::before {
  content: "";
  width: 82px;
  height: 58px;
  border: 2px solid rgba(22, 60, 104, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 68% 32%,
      rgba(56, 159, 106, 0.3) 0 8px,
      transparent 9px
    ),
    linear-gradient(
      135deg,
      transparent 48%,
      rgba(22, 60, 104, 0.18) 49% 60%,
      transparent 61%
    );
}

.album-placeholder span {
  position: absolute;
  bottom: 20px;
  color: rgba(22, 60, 104, 0.52);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.notice-search {
  width: min(520px, 100%);
  min-width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.notice-search span {
  color: var(--green);
  font-weight: 900;
}

.notice-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--blue-900);
  background: transparent;
  font: inherit;
}

.notice-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(22, 60, 104, 0.08);
}

.notice-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 150px 130px 80px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.notice-head {
  border-top: 0;
  color: var(--blue-900);
  background: var(--surface-cool);
  font-weight: 900;
}

.notice-row strong {
  color: var(--blue-900);
}

.notice-row:hover:not(.notice-head) {
  background: rgba(247, 251, 255, 0.84);
}

@media (max-width: 1120px) {
  .news-detail-hero,
  .welcome-hero,
  .welcome-register,
  .news-feature-grid,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .news-hero-card,
  .welcome-hero-card,
  .album-hero-card,
  .notice-hero-card {
    min-height: 300px;
  }

  .notice-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-row {
    grid-template-columns: 74px minmax(0, 1fr) 120px 120px 64px;
  }

  .album-detail-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 680px) {
  .news-detail-hero,
  .welcome-hero {
    padding: 130px 20px 64px;
  }

  .welcome-actions,
  .welcome-actions .button {
    width: 100%;
  }

  .news-tabs {
    flex-direction: column;
  }

  .news-tabs a {
    width: 100%;
  }

  .news-feature-grid article {
    min-height: auto;
    padding: 24px;
  }

  .welcome-form {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .news-feature-grid article span {
    margin-bottom: 32px;
  }

  .bulletin-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .album-placeholder {
    min-height: 190px;
  }

  .album-detail-hero {
    padding-top: 130px;
    padding-bottom: 54px;
  }

  .album-detail-meta {
    flex-direction: column;
  }

  .album-detail-meta div,
  .album-post-nav a {
    width: 100%;
  }

  .album-post figure {
    border-radius: 16px;
  }

  .album-post-nav {
    grid-template-columns: 1fr;
  }

  .album-post-nav a:last-child {
    text-align: left;
  }

  .notice-board {
    border-radius: 18px;
  }

  .notice-head {
    display: none;
  }

  .notice-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .notice-row span:first-child {
    color: var(--green);
    font-weight: 900;
  }
}

.welcome-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.search-count {
  margin: 0;
}
.notice-empty {
  padding: 24px;
  text-align: center;
}

body.media-viewer-open {
  overflow: hidden;
}

.media-viewer[hidden] {
  display: none !important;
}

.media-viewer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.media-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 26, 0.84);
  backdrop-filter: blur(8px);
}

.media-viewer-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  height: min(800px, calc(100vh - 48px));
  height: min(800px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.media-viewer-header,
.media-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.media-viewer-header {
  border-bottom: 1px solid var(--line);
}

.media-viewer-header h2 {
  margin: 0;
  min-width: 0;
  max-height: 4.5em;
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.media-viewer-close,
.media-viewer-pagination button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.media-viewer-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.media-viewer-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: auto;
  background: #101a20;
}

.media-viewer-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
}

.media-viewer-stage iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

.media-viewer-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-viewer-pagination button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.media-viewer-source {
  color: var(--blue-900);
  font-weight: 700;
}

.media-viewer-actions {
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .media-viewer {
    padding: 12px;
  }

  .media-viewer-panel {
    width: 100%;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100vh - 24px);
    min-height: 0;
    border-radius: 14px;
  }

  .media-viewer-stage {
    min-height: 0;
  }

  .media-viewer-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
