/* SGMMC shared styles. September 2026 typography and navigation refinements follow below. */

:root {
  --sg-paper: #ffffff;
  --sg-paper-2: #f2f4f6;
  --sg-white: #ffffff;
  --sg-ink: #191f28;
  --sg-body: #4e5968;
  --sg-muted: #596572;
  --sg-line: #e5e8eb;
  --sg-night: #102a43;
  --sg-night-2: #173f5f;
  --sg-blue: #1b64da;
  --sg-blue-dark: #1554b8;
  --sg-blue-weak: #e8f3ff;
  --sg-signal: #1b64da;
  --sg-shell: 1200px;
  --sg-reading: 820px;
  --sg-header: 76px;
  --sg-radius-sm: 8px;
  --sg-radius-md: 12px;
  --sg-radius-lg: 16px;
  --sg-font: Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.clone-site,
.clone-site body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--sg-paper);
  color: var(--sg-ink);
  font-family: var(--sg-font);
  -webkit-font-smoothing: antialiased;
}

html.clone-site {
  min-height: 100%;
  height: auto !important;
  overflow-y: auto !important;
}

html.clone-site body {
  min-height: 100%;
  height: auto !important;
  overflow-y: visible !important;
}

.clone-site * {
  box-sizing: border-box;
}

.clone-site .dsgn-body {
  width: 100%;
  min-height: 100%;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: var(--sg-paper) !important;
}

.clone-site img,
.clone-site video,
.clone-site canvas,
.clone-site svg {
  max-width: 100%;
}

.clone-site img {
  height: auto;
}

.clone-site a {
  color: inherit;
  text-decoration: none;
}

.clone-site button,
.clone-site input,
.clone-site select,
.clone-site textarea {
  max-width: 100%;
  font: inherit;
}

.clone-site :focus-visible {
  outline: 3px solid var(--sg-signal) !important;
  outline-offset: 3px;
}

.clone-site [data-aos] {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.clone-shell,
.clone-site .container {
  width: min(calc(100% - 64px), var(--sg-shell)) !important;
  max-width: var(--sg-shell) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Header: one continuous navy identity and navigation bar */

.clone-site .header.el-menu {
  position: sticky !important;
  z-index: 1100;
  top: 0;
  width: 100%;
  height: var(--sg-header) !important;
  min-height: var(--sg-header) !important;
  border: 0 !important;
  background: var(--sg-night) !important;
}

.clone-site .header.el-menu .menu-sgmtv,
.clone-site .header.el-menu header,
.clone-site .header.el-menu .navbar {
  position: relative !important;
  top: auto !important;
  width: 100%;
  height: var(--sg-header) !important;
  min-height: var(--sg-header) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--sg-night) !important;
  box-shadow: none !important;
}

.clone-site .header.el-menu header > .container {
  display: grid;
  grid-template-areas: "logo nav";
  grid-template-columns: minmax(280px, 27vw) minmax(0, 1fr);
  align-items: stretch;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.clone-site .navbar-header.menu-logo-top {
  position: relative;
  display: flex !important;
  grid-area: logo;
  align-items: center;
  float: none !important;
  width: auto !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 28px 0 max(32px, calc((100vw - var(--sg-shell)) / 2)) !important;
  background: var(--sg-night) !important;
}

.clone-site .navbar-header.menu-logo-top::after {
  display: none;
  content: none;
}

.clone-site .navbar-header .navbar-brand,
.clone-site #site-home {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.clone-site #tpl-logo-img {
  display: block;
  width: auto !important;
  max-width: 205px !important;
  height: 50px !important;
  max-height: 50px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.clone-home-page #tpl-logo-img {
  transform: translateY(3px);
}

.clone-site #mini-home {
  display: none !important;
}

@media (min-width: 769px) {
  .clone-site .navbar-collapse.navbar-menu-sgmtv {
    display: flex !important;
    grid-area: nav;
    align-items: stretch;
    justify-content: flex-end;
    width: auto !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 max(32px, calc((100vw - var(--sg-shell)) / 2)) 0 28px !important;
    border: 0 !important;
    background: var(--sg-night) !important;
  }

  .clone-site #tpl-menu {
    display: flex !important;
    float: none !important;
    align-items: stretch;
    order: 1;
    height: 100%;
    margin: 0 10px 0 auto !important;
    padding: 0 !important;
  }

  .clone-site #tpl-menu > li {
    position: relative;
    display: flex;
    float: none !important;
    align-items: stretch;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .clone-site #tpl-menu > li:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

.clone-site #tpl-menu > li > a {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    height: 100% !important;
    padding: 0 18px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-family: var(--sg-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em;
    background: transparent !important;
  }

  .clone-site #tpl-menu > li > a::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    background: var(--sg-signal);
  }

  .clone-site #tpl-menu > li:hover > a,
  .clone-site #tpl-menu > li:focus-within > a,
  .clone-site #tpl-menu > li.clone-section-active > a {
    color: #fff !important;
    background: var(--sg-blue) !important;
  }

  .clone-site #tpl-menu > li:hover > a::before,
  .clone-site #tpl-menu > li:focus-within > a::before,
  .clone-site #tpl-menu > li.clone-section-active > a::before {
    transform: scaleX(1);
  }

  .clone-site #tpl-menu .dropdown-menu {
    min-width: 205px;
    margin: 0 !important;
    padding: 10px !important;
    border: 2px solid var(--sg-ink) !important;
    border-radius: 0 !important;
    background: var(--sg-paper) !important;
    box-shadow: 12px 12px 0 rgba(7, 26, 42, 0.18) !important;
  }

  .clone-site #tpl-menu .dropdown-menu > li > a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--sg-line);
    border-radius: 0 !important;
    color: var(--sg-ink) !important;
    font-family: var(--sg-font) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
    background: transparent !important;
  }

  .clone-site #tpl-menu .dropdown-menu > li:last-child > a {
    border-bottom: 0;
  }

  .clone-site #tpl-menu .dropdown-menu > li > a:hover,
  .clone-site #tpl-menu .dropdown-menu > li > a:focus,
  .clone-site #tpl-menu .dropdown-menu > li > a.clone-current {
    padding-left: 20px !important;
    color: #fff !important;
    background: var(--sg-blue) !important;
  }

  .clone-site #fixed-menu {
    display: flex !important;
    float: none !important;
    align-items: center;
    order: 2;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .clone-site #fixed-menu a {
    display: inline-flex !important;
    align-items: center;
    min-height: 38px;
    padding: 0 7px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-family: var(--sg-font) !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    background: transparent !important;
  }

  .clone-site #fixed-menu.clone-account-menu {
    gap: 2px;
    white-space: nowrap;
  }

  .clone-site #fixed-menu.clone-account-menu > li {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .clone-site #fixed-menu.clone-account-menu button,
  .clone-site #fixed-menu.clone-account-menu .clone-member-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 7px !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.52) !important;
    font-family: var(--sg-font) !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1 !important;
  }

  .clone-site #fixed-menu.clone-account-menu .clone-member-chip span {
    color: var(--sg-signal) !important;
  }

  .clone-site #fixed-menu.clone-account-menu form {
    margin: 0;
  }
}

.clone-site #tpl-menu > li > a,
.clone-site #tpl-menu .dropdown-menu a,
.clone-site button,
.clone-site select {
  white-space: nowrap;
}

/* Writable member layer: snapshot content stays immutable; member data lives in SQLite. */

.clone-site .clone-member-write {
  border-color: var(--sg-blue) !important;
  background: var(--sg-blue) !important;
  color: #fff !important;
}

.clone-member-comments {
  margin-top: 72px !important;
  margin-bottom: 90px !important;
  padding: 48px !important;
  border: 2px solid var(--sg-ink);
  background: rgba(255, 255, 255, 0.36);
}

.clone-member-comments > header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--sg-ink);
}

.clone-member-comments > header p {
  margin: 0 0 8px;
  color: var(--sg-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.clone-member-comments > header h2 {
  margin: 0;
  font-family: var(--sg-font) !important;
  font-size: clamp(30px, 4vw, 48px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.055em !important;
}

.clone-member-comment-empty,
.clone-member-login-message {
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.clone-member-login-message a {
  color: var(--sg-blue) !important;
  font-weight: 800;
  text-decoration: underline;
}

.clone-member-comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--sg-line);
}

.clone-member-comment > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clone-member-comment time {
  color: var(--sg-muted);
  font-size: 11px;
}

.clone-member-comment > p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.clone-member-comment-form {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--sg-ink);
}

.clone-member-comment-form label {
  display: grid;
  gap: 9px;
}

.clone-member-comment-form label > span {
  font-size: 12px;
  font-weight: 800;
}

.clone-member-comment-form textarea {
  width: 100%;
  min-height: 116px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--sg-line);
  border-radius: 0;
  background: #fff;
  color: var(--sg-ink);
  line-height: 1.7;
}

.clone-member-comment-form > button {
  justify-self: start;
  min-width: 120px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: var(--sg-blue);
  color: #fff;
  font-weight: 850;
}

.clone-member-comment .member-delete,
.clone-member-admin-delete {
  margin-top: 14px;
}

.clone-member-comment .member-delete button,
.clone-member-admin-delete button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #9b2430;
  background: transparent;
  color: #9b2430;
  font-size: 11px;
  font-weight: 800;
}

.clone-member-admin-delete {
  padding-top: 20px;
  border-top: 1px solid var(--sg-line);
}

/* Oversized inner-page masthead */

.clone-page-header {
  position: relative;
  z-index: 1;
  height: 334px;
  overflow: hidden;
  border-bottom: 0;
  background: var(--sg-night);
}

.clone-page-header::after {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: max(330px, calc((100vw - var(--sg-shell)) / 2 + 330px));
  height: 100%;
  content: "";
  background: var(--sg-blue);
}

.clone-page-header .clone-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  width: min(calc(100% - 64px), var(--sg-shell)) !important;
  height: 100%;
}

.clone-page-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 38px 60px 34px 0;
}

.clone-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 42px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.clone-breadcrumb a:hover,
.clone-breadcrumb a:focus {
  color: var(--sg-signal);
}

.clone-page-eyebrow {
  margin: 0 0 10px;
  color: var(--sg-signal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.clone-page-header h1 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 5.4vw, 78px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.07em;
  overflow-wrap: normal;
  white-space: nowrap;
}

.clone-page-mark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 100%;
  padding: 34px 0 30px 38px;
  color: #fff;
  background: var(--sg-blue);
}

.clone-page-mark::before {
  position: absolute;
  top: 34px;
  left: 0;
  width: 18px;
  height: 4px;
  content: "";
  background: var(--sg-signal);
}

.clone-page-mark span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.clone-page-mark strong {
  margin-left: -5px;
  font-size: 148px;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.1em;
}

.clone-page-mark small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.15em;
}

/* Shared editorial content language */

.clone-inner-page .clone-content-block {
  position: relative;
  min-width: 0;
  border-bottom: 1px solid var(--sg-line);
  background: var(--sg-paper) !important;
}

.clone-inner-page .clone-content-block::before {
  position: absolute;
  z-index: 1;
  top: 42px;
  left: max(18px, calc((100vw - var(--sg-shell)) / 2 - 52px));
  content: attr(data-clone-index);
  color: var(--sg-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
}

.clone-inner-page .clone-content-block > .container,
.clone-inner-page .clone-content-block .section > .container {
  padding-top: 92px;
  padding-bottom: 100px;
}

.clone-inner-page .clone-text-block p,
.clone-inner-page .clone-text-block li,
.clone-inner-page .clone-text-block td,
.clone-inner-page .clone-text-block th,
.clone-inner-page .clone-content-block .fr-view {
  color: #2d3339;
  font-family: var(--sg-font) !important;
  font-size: 17px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.clone-inner-page .clone-content-block :where(h1, h2, h3, h4, h5, h6, p, li, a, span, button, input, select, textarea, td, th) {
  font-family: var(--sg-font) !important;
}

.clone-inner-page .clone-text-block h1,
.clone-inner-page .clone-text-block h2,
.clone-inner-page .clone-text-block h3,
.clone-inner-page .clone-content-block .title,
.clone-inner-page .clone-content-block .section-title {
  color: var(--sg-ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.clone-inner-page .clone-text-block h2,
.clone-inner-page .clone-content-block .section-title {
  margin-bottom: 30px;
  font-size: clamp(36px, 4vw, 58px);
}

.clone-inner-page .clone-content-block table {
  width: 100%;
  max-width: 100%;
  border-color: var(--sg-line) !important;
}

.clone-inner-page .clone-content-block img {
  max-width: 100% !important;
}

.clone-inner-page .clone-content-block iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
}

.clone-intro-content {
  background: var(--sg-paper-2) !important;
}

.clone-intro-content > .container {
  max-width: var(--sg-shell) !important;
}

.clone-intro-content .row {
  position: relative;
}

.clone-intro-content .row::before {
  position: absolute;
  z-index: 0;
  top: -30px;
  bottom: -30px;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(16, 20, 25, 0.22);
}

.clone-intro-content img {
  position: relative;
  z-index: 1;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 18px 18px 0 var(--sg-blue) !important;
}

.clone-intro-content .fr-view,
.clone-intro-content .text-content,
.clone-intro-content .contents-wrap {
  max-width: var(--sg-reading);
}

.clone-intro-content p:first-of-type::first-line {
  color: var(--sg-blue);
  font-weight: 800;
}

.clone-intro-contact {
  border-top: 0;
  background: var(--sg-night) !important;
}

.clone-intro-contact,
.clone-intro-contact * {
  color: rgba(255, 255, 255, 0.75) !important;
}

.clone-gallery-block {
  background: var(--sg-white) !important;
}

.clone-gallery-block .gallery-wrap,
.clone-gallery-block .gallery-list,
.clone-gallery-block .gallery-table {
  max-width: 100% !important;
}

.clone-gallery-block img {
  display: block;
  filter: saturate(0.88) contrast(1.04);
}

/* Home split hero */

.clone-home-page .dsgn-body {
  background: var(--sg-paper) !important;
}

.clone-home-hero {
  position: relative !important;
  min-height: 700px !important;
  height: 700px !important;
  overflow: hidden !important;
  background: var(--sg-night) !important;
}

.clone-home-hero::before {
  display: none;
}

.clone-home-hero::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 46%;
  width: 1px;
  content: "";
  pointer-events: none;
  background: rgba(255, 255, 255, 0.3);
}

.clone-home-hero > .carousel-inner {
  position: absolute !important;
  z-index: 1;
  top: 0;
  right: 0;
  left: 46% !important;
  width: 54% !important;
  height: 100% !important;
  overflow: hidden;
}

.clone-home-hero .carousel-inner > .item,
.clone-home-hero .carousel-inner > .item > div,
.clone-home-hero .gallery-view,
.clone-home-hero .gallery-view > div {
  min-height: 700px !important;
  height: 100% !important;
  background-color: var(--sg-night) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.clone-home-hero .carousel-inner::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background: rgba(5, 17, 27, 0.12);
}

.clone-home-hero .bigHeader {
  display: none !important;
}

.clone-home-hero-message {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: max(32px, calc((100vw - var(--sg-shell)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(550px, calc(46vw - 64px));
  padding: 48px 34px 54px 0;
  color: #fff;
}

.clone-home-kicker {
  display: block;
  margin: 0 0 30px;
  color: var(--sg-signal);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.07em;
}

.clone-home-hero-message h1 {
  margin: 0;
  color: #fff;
  font-family: var(--sg-font) !important;
  font-size: clamp(52px, 4.7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.038em;
  word-break: keep-all;
}

.clone-home-hero-message h1 span,
.clone-home-hero-message h1 strong {
  display: block;
  font-weight: inherit;
}

.clone-home-hero-message h1 strong {
  color: #91aaff;
  font-weight: 680;
  text-shadow: none;
  -webkit-text-stroke: 0 transparent;
}

.clone-home-hero-message > p {
  max-width: 460px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.8;
  word-break: keep-all;
}

.clone-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
}

.clone-home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 178px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.clone-home-actions a + a {
  border-left: 0;
}

.clone-home-actions a:first-child,
.clone-home-actions a:hover,
.clone-home-actions a:focus {
  border-color: var(--sg-blue);
  background: var(--sg-blue);
}

.clone-home-meta {
  position: absolute;
  right: 34px;
  bottom: 28px;
  left: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.clone-home-meta span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}

.clone-home-meta span:last-child {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.clone-home-meta strong {
  justify-self: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.clone-home-hero .carousel-control {
  z-index: 6;
  width: 50px;
  background: none !important;
  opacity: 0.45;
}

.clone-home-hero .carousel-control.left {
  left: 46%;
}

.clone-home-divider {
  display: none !important;
}

/* Home navigation portal */

.clone-home-portal {
  position: relative;
  padding: 104px 0 116px;
  border-bottom: 1px solid var(--sg-line);
  background: var(--sg-paper);
}

.clone-section-lead {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin: 0 0 52px;
}

.clone-section-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 2px solid currentColor;
  color: var(--sg-blue);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.clone-section-lead p {
  margin: 0 0 8px;
  color: var(--sg-blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.clone-section-lead h2 {
  margin: 0;
  color: var(--sg-ink);
  font-family: var(--sg-font) !important;
  font-size: clamp(38px, 4.2vw, 62px) !important;
  font-style: normal !important;
  font-weight: 900 !important;
  font-stretch: normal !important;
  line-height: 1 !important;
  letter-spacing: -0.065em !important;
  white-space: nowrap;
}

.clone-section-lead > a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 0 2px;
  border-bottom: 2px solid var(--sg-ink);
  color: var(--sg-ink);
  font-size: 12px;
  font-weight: 750;
}

.clone-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--sg-ink);
  border-left: 2px solid var(--sg-ink);
}

.clone-portal-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 248px;
  padding: 24px 25px 28px;
  border-right: 2px solid var(--sg-ink);
  border-bottom: 2px solid var(--sg-ink);
  color: var(--sg-ink);
  background: var(--sg-paper);
}

.clone-portal-grid a:first-child {
  color: #fff;
  background: var(--sg-blue);
}

.clone-portal-grid a:hover,
.clone-portal-grid a:focus {
  color: #fff;
  background: var(--sg-night);
}

.clone-portal-grid a > span {
  margin-bottom: auto;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.7;
}

.clone-portal-grid a strong {
  margin-top: 58px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.clone-portal-grid a small {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.62;
}

.clone-portal-grid a b {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 20px;
  font-weight: 400;
}

/* Home album: asymmetric editorial mosaic */

.clone-home-latest {
  position: relative;
  padding: 112px 0 124px !important;
}

.clone-home-album {
  background: var(--sg-night) !important;
}

.clone-home-album .clone-section-lead {
  color: #fff;
}

.clone-home-album .clone-section-index {
  color: var(--sg-signal);
}

.clone-home-album .clone-section-lead p {
  color: var(--sg-signal);
}

.clone-home-album .clone-section-lead h2,
.clone-home-album .clone-section-lead > a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.clone-home-album .latest-table-header {
  display: none !important;
}

.clone-home-album .latest-table,
.clone-home-album .latest-table-loop {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.clone-home-album .latest-table-loop {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 235px;
  gap: 12px;
}

.clone-home-album .latest-table-loop::before,
.clone-home-album .latest-table-loop::after {
  display: none !important;
}

.clone-home-album .latest-post {
  position: relative;
  float: none !important;
  grid-column: span 3;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: var(--sg-night-2) !important;
}

.clone-home-album .latest-post:first-child {
  grid-column: span 6;
  grid-row: span 2;
}

.clone-home-album .thumb-wrap,
.clone-home-album .latest-post-list-thumb,
.clone-home-album .latest-post-list-thumb a {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}

.clone-home-album .thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06);
  transition: transform 220ms ease, filter 220ms ease;
}

.clone-home-album .latest-post:hover .thumb-wrap img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

.clone-home-album .content-wrap {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 17px 18px 19px !important;
  color: #fff;
  background: rgba(7, 26, 42, 0.92);
}

.clone-home-album .latest-post:first-child .content-wrap {
  width: min(76%, 470px);
  padding: 24px 26px 27px !important;
  background: var(--sg-blue);
}

.clone-home-album .latest-post-list-title,
.clone-home-album .latest-post-list-title a {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--sg-font) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clone-home-album .latest-post:first-child .latest-post-list-title,
.clone-home-album .latest-post:first-child .latest-post-list-title a {
  font-size: 23px !important;
  line-height: 1.35 !important;
}

/* Home next-generation index */

.clone-home-latest-compact {
  border: 0;
  background: var(--sg-paper) !important;
}

.clone-home-latest-compact .container > .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 !important;
  border-top: 2px solid var(--sg-ink);
  border-left: 2px solid var(--sg-ink);
}

.clone-home-latest-compact .container > .row::before,
.clone-home-latest-compact .container > .row::after {
  display: none !important;
}

.clone-home-latest-compact .container > .row > [class*="col-"] {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 28px 26px 32px !important;
  border-right: 2px solid var(--sg-ink);
  border-bottom: 2px solid var(--sg-ink);
  background: var(--sg-paper);
}

.clone-home-latest-compact .container > .row > [class*="col-"]:nth-child(2) {
  background: var(--sg-white);
}

.clone-home-latest-compact .latest-title,
.clone-home-latest-compact .lt-header,
.clone-home-latest-compact h3,
.clone-home-latest-compact h5 {
  margin: 0 0 26px !important;
  padding: 0 0 17px;
  border-bottom: 5px solid var(--sg-blue);
  color: var(--sg-ink) !important;
  font-family: var(--sg-font) !important;
  font-size: 26px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.045em;
  text-align: left !important;
}

.clone-home-latest-compact .item,
.clone-home-latest-compact li,
.clone-home-latest-compact .latest-post {
  margin: 0 !important;
  padding: 15px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sg-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.clone-home-latest-compact .item-title,
.clone-home-latest-compact .latest-post-list-title,
.clone-home-latest-compact .title,
.clone-home-latest-compact a {
  color: #252b31 !important;
  font-family: var(--sg-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
}

/* Board lists: numbered editorial rows */

.clone-forum-list {
  min-height: 460px;
  padding: 86px 0 120px !important;
  border: 0 !important;
  background: var(--sg-paper) !important;
}

.clone-forum-list::before {
  display: none;
}

.clone-forum-list > .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.clone-forum-list .search-box,
.clone-forum-list .forum-search,
.clone-forum-list .board-search {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.clone-forum-list .search-box .input-group {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
}

.clone-forum-list input[type="text"],
.clone-forum-list input[type="search"],
.clone-forum-list select {
  min-height: 46px;
  padding: 9px 12px !important;
  border: 1px solid var(--sg-ink) !important;
  border-radius: 0 !important;
  color: var(--sg-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.clone-forum-list button,
.clone-forum-list .btn,
.clone-article .btn,
.clone-comments .btn {
  min-height: 44px;
  padding: 9px 16px !important;
  border: 1px solid var(--sg-ink) !important;
  border-radius: 0 !important;
  color: var(--sg-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.clone-forum-list button:hover,
.clone-forum-list .btn:hover,
.clone-article .btn:hover,
.clone-comments .btn:hover {
  border-color: var(--sg-blue) !important;
  color: #fff !important;
  background: var(--sg-blue) !important;
}

.clone-forum-list .table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 3px solid var(--sg-ink) !important;
  counter-reset: sg-board;
  background: transparent !important;
}

.clone-forum-list:not(.clone-forum-album) .table .item {
  position: relative;
  display: grid !important;
  float: none !important;
  grid-template-columns: 72px minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: center;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 38px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sg-ink) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  counter-increment: sg-board;
}

.clone-forum-list:not(.clone-forum-album) .table .item::before {
  align-self: start;
  padding-top: 4px;
  content: "0" counter(sg-board);
  color: var(--sg-blue);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
}

.clone-forum-list:not(.clone-forum-album) .thumb-wrap {
  float: none !important;
  width: 100% !important;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sg-night);
}

.clone-forum-list:not(.clone-forum-album) .thumb-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.08);
  transition: filter 180ms ease, transform 180ms ease;
}

.clone-page-media .clone-forum-list:not(.clone-forum-album) .thumb-wrap {
  aspect-ratio: 16 / 9;
}

.clone-page-media .clone-forum-list:not(.clone-forum-album) .tpl-forum-list-thumb,
.clone-page-media .clone-forum-list:not(.clone-forum-album) .tpl-forum-list-thumb > a {
  display: block;
  width: 100%;
  height: 100%;
}

.clone-forum-list:not(.clone-forum-album) .item:hover .thumb-wrap img {
  transform: scale(1.018);
  filter: saturate(1) contrast(1.02);
}

.clone-forum-list:not(.clone-forum-album) .cont-wrap {
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  text-align: left !important;
}

.clone-forum-list .item-title,
.clone-forum-list .title,
.clone-forum-list .tpl-forum-title,
.clone-forum-list .tpl-forum-list-title {
  color: var(--sg-ink) !important;
  font-family: var(--sg-font) !important;
  font-size: clamp(22px, 2.2vw, 31px) !important;
  font-weight: 800 !important;
  line-height: 1.34 !important;
  letter-spacing: -0.045em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.clone-forum-list .item-desc,
.clone-forum-list .desc,
.clone-forum-list .content,
.clone-forum-list .tpl-forum-list-cont {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 15px;
  color: #5f6871 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clone-forum-list .date,
.clone-forum-list .category,
.clone-forum-list .meta,
.clone-forum-list .item-info,
.clone-forum-list .tpl-forum-list-etc {
  color: #747d86 !important;
  font-family: var(--sg-font) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
}

.clone-forum-list .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 48px 0 0 !important;
}

.clone-forum-list .pagination > li > a,
.clone-forum-list .pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0 -1px 0 0 !important;
  padding: 7px !important;
  border: 1px solid var(--sg-ink) !important;
  border-radius: 0 !important;
  color: var(--sg-ink) !important;
  background: transparent !important;
}

.clone-forum-list .pagination > .active > a,
.clone-forum-list .pagination > .active > span {
  z-index: 2;
  border-color: var(--sg-blue) !important;
  color: #fff !important;
  background: var(--sg-blue) !important;
}

/* Album index: dramatic, unequal image wall */

.clone-forum-album .table {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 245px;
  gap: 12px;
  padding-top: 12px;
}

.clone-forum-album .table::before,
.clone-forum-album .table::after {
  display: none !important;
}

.clone-forum-album .table .item {
  position: relative;
  display: block !important;
  float: none !important;
  grid-column: span 4;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sg-night) !important;
  box-shadow: none !important;
}

.clone-forum-album .table .item:first-child {
  grid-column: span 7;
  grid-row: span 2;
}

.clone-forum-album .table .item:nth-child(2),
.clone-forum-album .table .item:nth-child(3) {
  grid-column: span 5;
}

.clone-forum-album .border-wrap,
.clone-forum-album .thumb-wrap,
.clone-forum-album .tpl-forum-list-thumb,
.clone-forum-album .tpl-forum-list-thumb a {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.clone-forum-album .thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.06);
  transition: transform 200ms ease, filter 200ms ease;
}

.clone-forum-album .item:hover .thumb-wrap img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

.clone-forum-album .cont-wrap {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 18px 20px 20px !important;
  color: #fff;
  text-align: left !important;
  background: rgba(7, 26, 42, 0.92);
}

.clone-forum-album .item:first-child .cont-wrap {
  width: min(72%, 510px) !important;
  padding: 28px 30px 31px !important;
  background: var(--sg-blue);
}

.clone-forum-album .tpl-forum-list-title,
.clone-forum-album .tpl-forum-list-title a {
  display: -webkit-box;
  overflow: hidden;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clone-forum-album .item:first-child .tpl-forum-list-title,
.clone-forum-album .item:first-child .tpl-forum-list-title a {
  font-size: 28px !important;
}

.clone-forum-album .tpl-forum-list-etc {
  color: rgba(255, 255, 255, 0.62) !important;
}

.clone-forum-album .tpl-forum-list-num {
  position: absolute !important;
  z-index: 4;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800;
  background: var(--sg-blue) !important;
}

/* Article and comments */

.clone-kind-detail .forum-view,
.clone-kind-detail .clone-article {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 92px 0 0 !important;
  background: var(--sg-paper) !important;
}

.clone-article::before {
  display: none;
}

.clone-article > .container,
.clone-comments > .container {
  width: min(calc(100% - 64px), 980px) !important;
  max-width: 980px !important;
}

.clone-article .forum-write,
.clone-article .row,
.clone-article .fm-body,
.clone-article .fm-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-bottom: 0 !important;
}

.clone-article .forum-write.w740 > .row {
  margin: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.clone-article .forum-user-info {
  display: flex !important;
  align-items: center;
  gap: 13px;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.clone-article .forum-user-info .user-image img {
  width: 46px !important;
  height: 46px !important;
  border: 3px solid var(--sg-blue);
  border-radius: 50%;
  object-fit: cover;
}

.clone-article .tpl-forum-category {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 10px;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800;
  background: var(--sg-blue);
}

.clone-article .tpl-forum-title {
  margin: 0 0 28px !important;
  padding-left: 24px;
  border-left: 8px solid var(--sg-blue);
  color: var(--sg-ink) !important;
  font-family: var(--sg-font) !important;
  font-size: clamp(38px, 5vw, 58px) !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.clone-article .tpl-forum-date,
.clone-article .forum-user-info,
.clone-article .forum-user-info * {
  color: #78818a !important;
  font-size: 11px !important;
}

.clone-article .tpl-forum-content,
.clone-article .fm-content {
  min-height: 0;
  margin-top: 42px !important;
  padding: 54px 0 64px !important;
  border-top: 3px solid var(--sg-ink);
  border-bottom: 1px solid var(--sg-ink);
  color: #2d3339;
}

.clone-article .fr-wrapper,
.clone-article .fr-element,
.clone-article .fr-view {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  color: #2d3339 !important;
  font-family: var(--sg-font) !important;
  font-size: 17px !important;
  line-height: 1.9 !important;
  overflow-wrap: anywhere;
}

.clone-article .fr-view img {
  max-width: 100% !important;
  height: auto !important;
}

.clone-article .fr-view img:not(.fr-dii) {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.clone-media-stage {
  display: block !important;
  width: 100% !important;
  margin: 10px 0 48px !important;
  padding: 22px !important;
  background: var(--sg-night) !important;
}

.clone-media-stage iframe {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.clone-article .tpl-forum-list-footer,
.clone-article .tpl-forum-control-wrap,
.clone-article .page-toolbars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-height: 0 !important;
  margin: 28px 0 0 !important;
  padding: 0 !important;
}

.clone-article .tpl-forum-control-wrap .btn:not(.hide),
.clone-article .page-toolbars .btn:not(.hide) {
  margin: 0 0 0 -1px !important;
}

.clone-comments {
  width: 100% !important;
  margin: 86px 0 0 !important;
  padding: 66px 0 96px !important;
  border-top: 0;
  background: var(--sg-night) !important;
}

.clone-comments.clone-snapshot-comments-empty,
.clone-comments .tpl-comment-form[hidden],
.clone-account-legacy-hidden {
  display: none !important;
}

.clone-comments .comment-cnt {
  margin: 0 0 25px !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 800;
}

.clone-comments .tpl-comment-form,
.clone-comments .comm-body,
.clone-comments .comm-footer {
  width: 100% !important;
  max-width: 100% !important;
}

.clone-comments textarea {
  display: block;
  width: 100% !important;
  min-height: 142px !important;
  padding: 18px !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: vertical;
}

.clone-comments textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.clone-comments .comm-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px !important;
  color: rgba(255, 255, 255, 0.62);
}

.clone-comments .btn {
  border-color: rgba(255, 255, 255, 0.48) !important;
  color: #fff !important;
}

.clone-comments .comment-list {
  margin: 38px 0 0 !important;
  padding: 0 !important;
}

.clone-comments .comment-list > li {
  padding: 28px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff;
}

.clone-readonly-action {
  opacity: 0.72;
}

/* Footer: oversized identity panel */

.clone-site .el-footer,
.clone-site footer.footer {
  position: relative;
  min-height: 360px !important;
  height: auto !important;
  padding: 0 0 42px !important;
  overflow: hidden;
  border: 0 !important;
  background: var(--sg-night) !important;
  color: rgba(255, 255, 255, 0.58) !important;
}

.clone-footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr) auto;
  align-items: end;
  gap: 48px;
  padding-top: 70px;
  padding-bottom: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.clone-footer-brand > div span {
  display: block;
  margin-bottom: 12px;
  color: var(--sg-signal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.clone-footer-brand > div strong {
  display: block;
  color: #fff;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.clone-footer-brand > div img {
  display: block;
  width: min(100%, 340px) !important;
  height: auto !important;
  margin-left: -10px;
  filter: brightness(0) invert(1);
}

.clone-footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.clone-footer-brand > a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--sg-signal);
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.clone-site .el-footer > .container,
.clone-site footer.footer > .container {
  padding-top: 32px !important;
}

.clone-site .el-footer *,
.clone-site footer.footer * {
  color: inherit;
}

.clone-site .el-footer a:hover,
.clone-site footer.footer a:hover {
  color: var(--sg-signal) !important;
}

.clone-site .fnav.fnav-mobile-fnav {
  border-top: 1px solid var(--sg-ink) !important;
  background: var(--sg-signal) !important;
  box-shadow: none !important;
}

/* Page-specific editorial systems */

.clone-content-lead {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(280px, 0.58fr);
  align-items: end;
  gap: 36px;
  margin: 0 0 54px;
  padding: 0 0 38px;
  border-bottom: 2px solid currentColor;
  color: var(--sg-ink);
}

.clone-content-lead > * {
  min-width: 0;
}

.clone-content-lead > span {
  align-self: start;
  color: var(--sg-blue);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.clone-content-lead h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: normal;
}

.clone-content-lead p {
  max-width: 430px;
  margin: 0;
  color: #59636c !important;
  font-size: 14px !important;
  font-weight: 550;
  line-height: 1.75 !important;
  word-break: keep-all;
}

/* Vision: three statements as oversized manifesto cards */

.clone-page-vision .clone-vision-grid {
  background: var(--sg-paper) !important;
}

.clone-page-vision .clone-page-header h1,
.clone-page-vision .clone-content-lead h2 {
  white-space: nowrap;
}

.clone-page-vision .clone-vision-grid > .container {
  display: flex;
  flex-direction: column;
  padding-top: 84px !important;
  padding-bottom: 106px !important;
}

.clone-page-vision .clone-vision-grid .clone-content-lead {
  order: 0;
}

.clone-page-vision .clone-vision-grid .gallery-category-wrap {
  display: none !important;
}

.clone-page-vision .clone-vision-grid .row[data-loop="true"] {
  display: grid !important;
  order: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 !important;
}

.clone-page-vision .clone-vision-grid .row[data-loop="true"]::before,
.clone-page-vision .clone-vision-grid .row[data-loop="true"]::after,
.clone-page-people .clone-people-grid .row[data-loop="true"]::before,
.clone-page-people .clone-people-grid .row[data-loop="true"]::after,
.clone-page-worship .clone-worship-schedule .row[data-matrix-loop="true"]::before,
.clone-page-worship .clone-worship-schedule .row[data-matrix-loop="true"]::after,
.clone-page-location .clone-location-panel > .container > .row::before,
.clone-page-location .clone-location-panel > .container > .row::after,
.clone-page-live .clone-live-panel .row::before,
.clone-page-live .clone-live-panel .row::after,
.clone-page-ministry .clone-story-archive .table::before,
.clone-page-ministry .clone-story-archive .table::after {
  display: none !important;
  content: none !important;
}

.clone-page-vision .clone-vision-grid .gallery-item {
  position: relative;
  display: flex !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  background: transparent;
}

.clone-page-vision .clone-vision-grid .gallery-item:nth-child(2) {
  background: transparent;
}

.clone-page-vision .clone-vision-grid .gallery-item:nth-child(3) {
  background: transparent;
}

.clone-page-vision .clone-vision-grid .gallery-item::before {
  display: none;
  content: none;
}

.clone-page-vision .clone-vision-grid .gallery-item:nth-child(n + 2)::before {
  color: var(--sg-blue);
}

.clone-page-vision .clone-vision-grid figure,
.clone-page-vision .clone-vision-grid .img-wrapper {
  width: 100%;
  margin: 0 !important;
}

.clone-page-vision .clone-vision-grid .gallery-item > a {
  display: block !important;
  width: 100% !important;
  min-width: 0;
}

.clone-page-vision .clone-vision-grid .img-wrapper {
  overflow: hidden;
  border-radius: 0 !important;
  background: transparent;
}

.clone-page-vision .clone-vision-grid img {
  width: 100% !important;
  border-radius: 0 !important;
  filter: none;
}

.clone-page-vision .clone-vision-grid figcaption {
  display: none !important;
}

/* People: portrait-led, high-contrast profiles */

.clone-page-people .clone-people-grid > .container {
  display: flex;
  flex-direction: column;
  padding-top: 84px !important;
  padding-bottom: 106px !important;
}

.clone-page-people .clone-people-grid .clone-content-lead {
  order: 0;
}

.clone-page-people .clone-people-grid .gallery-category-wrap {
  display: none !important;
}

.clone-page-people .clone-people-grid .gallery-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.clone-page-people .clone-people-grid .gallery-category-nav li {
  margin: 0 !important;
}

.clone-page-people .clone-people-grid .gallery-category-nav a {
  display: inline-flex !important;
  align-items: center;
  min-height: 42px;
  padding: 0 18px !important;
  border: 1px solid var(--sg-ink);
  color: var(--sg-ink) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  background: transparent !important;
}

.clone-page-people .clone-people-grid .gallery-category-nav .active a,
.clone-page-people .clone-people-grid .gallery-category-nav a:hover {
  color: #fff !important;
  background: var(--sg-blue) !important;
}

.clone-page-people .clone-people-grid .row[data-loop="true"] {
  display: grid !important;
  order: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
}

.clone-page-people .clone-people-grid .gallery-item {
  position: relative;
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  background: var(--sg-night);
}

.clone-page-people .clone-people-grid .gallery-item:nth-child(even) {
  background: var(--sg-blue);
}

.clone-page-people .clone-people-grid .gallery-item::before {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  content: attr(data-clone-item);
  color: var(--sg-signal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.clone-page-people .clone-people-grid figure {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
  align-items: stretch;
  min-height: 480px;
  margin: 0 !important;
}

.clone-page-people .clone-people-grid .img-wrapper {
  min-height: 480px;
  overflow: hidden;
  border-radius: 0 !important;
}

.clone-page-people .clone-people-grid img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.07);
}

.clone-page-people .clone-people-grid figcaption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 48px 30px 38px !important;
  text-align: left !important;
}

.clone-page-people .clone-people-grid h5.figure {
  overflow: visible !important;
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: 29px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

.clone-page-people .clone-people-grid p.figure {
  margin: 0 !important;
  color: var(--sg-signal) !important;
  font-size: 17px !important;
  font-weight: 650 !important;
}

.clone-page-people .clone-people-grid .gallery-item:nth-child(even) p.figure {
  color: #fff !important;
}

/* Worship: schedule cards on the existing sanctuary image */

.clone-page-worship .clone-worship-schedule {
  position: relative;
  isolation: isolate;
  background-color: var(--sg-night) !important;
  background-position: center !important;
  background-size: cover !important;
}

.clone-page-worship .clone-worship-schedule::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: rgba(3, 18, 31, 0.82);
}

.clone-page-worship .clone-worship-schedule > .container {
  position: relative;
  z-index: 1;
  padding-top: 82px !important;
  padding-bottom: 96px !important;
}

.clone-page-worship .clone-content-lead {
  color: #fff;
}

.clone-page-worship .clone-content-lead h2 {
  color: #fff !important;
}

.clone-page-worship .clone-content-lead > span,
.clone-page-worship .clone-content-lead p {
  color: var(--sg-signal) !important;
}

.clone-page-worship .clone-worship-schedule > .container > .row:first-of-type {
  display: none !important;
}

.clone-page-worship .clone-worship-schedule .row[data-matrix-loop="true"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.32);
}

.clone-page-worship .clone-worship-schedule .menu_unit {
  position: relative;
  display: grid !important;
  float: none !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  width: auto !important;
  min-width: 0;
  min-height: 158px;
  margin: 0 !important;
  padding: 52px 28px 27px !important;
  border: 0 !important;
  background: rgba(7, 26, 42, 0.88);
}

.clone-page-worship .clone-worship-schedule .menu_unit:nth-child(4n + 2),
.clone-page-worship .clone-worship-schedule .menu_unit:nth-child(4n + 3) {
  background: rgba(11, 36, 56, 0.9);
}

.clone-page-worship .clone-worship-schedule .menu_unit::before {
  position: absolute;
  top: 20px;
  left: 28px;
  content: attr(data-clone-item);
  color: var(--sg-signal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.clone-page-worship .clone-worship-schedule .name,
.clone-page-worship .clone-worship-schedule .price {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.clone-page-worship .clone-worship-schedule .name .cl_caption > div:nth-child(2),
.clone-page-worship .clone-worship-schedule .name .cl_caption > div:nth-child(n + 4) {
  display: none !important;
}

.clone-page-worship .clone-worship-schedule .name strong,
.clone-page-worship .clone-worship-schedule .name span {
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
}

.clone-page-worship .clone-worship-schedule .name .cl_caption > div:nth-child(3) span {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 12px !important;
}

.clone-page-worship .clone-worship-schedule .price h3,
.clone-page-worship .clone-worship-schedule .price div {
  margin: 0 !important;
  line-height: 1 !important;
}

.clone-page-worship .clone-worship-schedule .price span {
  color: var(--sg-signal) !important;
  font-size: 18px !important;
  font-weight: 750 !important;
  white-space: nowrap;
}

/* Location: information rail + full-height map */

.clone-page-location .clone-location-panel {
  background: var(--sg-paper) !important;
}

.clone-page-location .clone-location-panel > .container {
  padding-top: 80px !important;
  padding-bottom: 96px !important;
}

.clone-page-location .clone-location-panel > .container > .row {
  display: grid !important;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.35fr);
  align-items: stretch;
  margin: 0 !important;
  border: 1px solid var(--sg-ink);
}

.clone-page-location .clone-location-panel [data-matrix-loop="true"] {
  display: grid;
  float: none !important;
  grid-template-rows: auto auto auto;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  color: #fff;
  background: var(--sg-night);
}

.clone-page-location .clone-location-panel [data-matrix-loop="true"] > .item {
  position: relative;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 52px 42px 42px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.clone-page-location .clone-location-panel [data-matrix-loop="true"] > .item:last-child {
  border-bottom: 0;
}

.clone-page-location .clone-location-panel [data-matrix-loop="true"] > .item::before {
  position: absolute;
  top: 23px;
  left: 42px;
  content: attr(data-clone-item);
  color: var(--sg-signal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.clone-page-location .clone-location-panel .cl_caption,
.clone-page-location .clone-location-panel .cl_caption * {
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: var(--sg-font) !important;
  line-height: 1.72 !important;
}

.clone-page-location .clone-location-panel .cl_caption > div:first-child span,
.clone-page-location .clone-location-panel .cl_caption > div:first-child strong {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
}

.clone-page-location .clone-location-panel .cl_caption em span,
.clone-page-location .clone-location-panel .cl_caption a {
  color: var(--sg-signal) !important;
}

.clone-page-location .clone-location-panel .map-wrap {
  position: relative;
  float: none !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  background: var(--sg-blue);
}

.clone-page-location .clone-location-panel .google-map {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 780px;
  aspect-ratio: auto !important;
  border: 0;
}

.clone-page-location .clone-location-map-link {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none !important;
  background: var(--sg-night);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(19, 38, 56, 0.22);
}

.clone-page-location .clone-location-map-link:hover,
.clone-page-location .clone-location-map-link:focus {
  color: var(--sg-night) !important;
  background: #fff;
}

/* Live: broadcast-style split panel */

.clone-page-live .clone-live-panel {
  background: var(--sg-night) !important;
}

.clone-page-live .clone-live-panel > .container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

.clone-page-live .clone-live-panel .row {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch !important;
  min-height: 660px;
}

.clone-page-live .clone-live-panel .img-column,
.clone-page-live .clone-live-panel .txt-column {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.clone-page-live .clone-live-panel .img-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px !important;
  overflow: hidden;
  background: var(--sg-blue);
}

.clone-page-live .clone-live-panel .img-column::before {
  position: absolute;
  top: 34px;
  left: 38px;
  content: "LIVE NOW";
  color: var(--sg-signal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.clone-page-live .clone-live-panel .img-column::after {
  position: absolute;
  top: 36px;
  right: 38px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: var(--sg-signal);
  box-shadow: 0 0 0 6px rgba(240, 216, 74, 0.18);
}

.clone-page-live .clone-live-panel .img-column img {
  width: min(76%, 520px) !important;
  margin: auto;
  filter: brightness(0) invert(1);
}

.clone-page-live .clone-live-panel .txt-column {
  display: flex;
  align-items: center;
  padding: 72px max(60px, calc((100vw - var(--sg-shell)) / 2)) !important;
  color: #fff;
  background: var(--sg-night);
}

.clone-page-live .clone-live-panel .cl_caption,
.clone-page-live .clone-live-panel .cl_caption * {
  color: rgba(255, 255, 255, 0.68) !important;
  font-family: var(--sg-font) !important;
  line-height: 1.74 !important;
}

.clone-page-live .clone-live-panel .cl_caption > div:first-child span {
  color: #fff !important;
  font-size: clamp(36px, 3.4vw, 54px) !important;
  font-weight: 780 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.clone-page-live .clone-live-panel .cl_caption > div:first-child {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
}

.clone-page-live .clone-live-panel .cl_caption > div:first-child > span:last-child,
.clone-page-live .clone-live-panel .cl_caption > div:first-child > span:last-child span {
  color: var(--sg-signal) !important;
}

.clone-page-live .clone-live-panel .clone-live-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  min-width: 210px;
  min-height: 56px;
  margin-top: 8px !important;
  padding: 0 22px !important;
  cursor: pointer;
  color: var(--sg-night) !important;
  background: var(--sg-signal) !important;
}

.clone-page-live .clone-live-panel .clone-live-button::after {
  content: "↗";
  font-size: 18px;
}

.clone-page-live .clone-live-panel .clone-live-button span {
  color: var(--sg-night) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Ministry and school boards: image-first story archive */

.clone-page-ministry .clone-story-archive .clone-archive-lead {
  margin-bottom: 42px;
}

.clone-page-ministry .clone-story-archive .table {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 1px;
  border: 1px solid var(--sg-ink) !important;
  background: var(--sg-ink) !important;
}

.clone-page-ministry .clone-story-archive .table .item {
  position: relative;
  display: block !important;
  float: none !important;
  grid-column: span 4;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--sg-paper) !important;
  justify-self: stretch;
}

.clone-page-ministry .clone-story-archive .table .item:first-child {
  grid-column: span 8;
}

.clone-page-ministry .clone-story-archive .table .item::before {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  content: attr(data-clone-item);
  color: var(--sg-night);
  font-size: 11px;
  font-weight: 850;
  background: var(--sg-signal);
}

.clone-page-ministry .clone-story-archive .border-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  border: 0 !important;
  background: var(--sg-paper) !important;
}

.clone-page-ministry .clone-story-archive .thumb-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  overflow: hidden;
  background: var(--sg-night);
}

.clone-page-ministry .clone-story-archive .tpl-forum-list-thumb,
.clone-page-ministry .clone-story-archive .tpl-forum-list-thumb > a {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
}

.clone-page-ministry .clone-story-archive .item:first-child .thumb-wrap {
  aspect-ratio: 16 / 8;
}

.clone-page-ministry .clone-story-archive .thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}

.clone-page-ministry .clone-story-archive .item:hover .thumb-wrap img {
  transform: scale(1.018);
  filter: saturate(1) contrast(1.02);
}

.clone-page-ministry .clone-story-archive .tpl-forum-list-num {
  display: none !important;
}

.clone-page-ministry .clone-story-archive .cont-wrap {
  width: auto !important;
  padding: 28px 26px 32px !important;
  text-align: left !important;
}

.clone-page-ministry .clone-story-archive .tpl-forum-list-title,
.clone-page-ministry .clone-story-archive .tpl-forum-list-title a {
  color: var(--sg-ink) !important;
  font-size: 24px !important;
  font-weight: 820 !important;
  line-height: 1.32 !important;
}

.clone-page-ministry .clone-story-archive .item:first-child .tpl-forum-list-title,
.clone-page-ministry .clone-story-archive .item:first-child .tpl-forum-list-title a {
  font-size: clamp(29px, 3vw, 42px) !important;
}

.clone-page-ministry .clone-story-archive .cont-wrap ul {
  display: flex !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

@media (min-width: 769px) and (max-width: 1160px) {
  .clone-content-lead {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .clone-content-lead p {
    grid-column: 2;
  }

  .clone-page-people .clone-people-grid figure {
    grid-template-columns: 1fr;
  }

  .clone-page-people .clone-people-grid .img-wrapper {
    min-height: 360px;
  }

  .clone-page-people .clone-people-grid figcaption {
    min-height: 160px;
  }

  .clone-page-location .clone-location-panel > .container > .row {
    grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  }

  .clone-page-live .clone-live-panel .txt-column {
    padding-right: 42px !important;
    padding-left: 42px !important;
  }
}

/* Tablet tightening */

@media (min-width: 769px) and (max-width: 1160px) {
  .clone-site .header.el-menu header > .container {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .clone-site .navbar-header.menu-logo-top {
    padding-left: 24px !important;
  }

  .clone-site #tpl-logo-img {
    max-width: 165px !important;
    height: 44px !important;
  }

  .clone-site .navbar-collapse.navbar-menu-sgmtv {
    padding-right: 20px !important;
    padding-left: 18px !important;
  }

  .clone-site #tpl-menu > li > a {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 12px !important;
  }

  .clone-site #fixed-menu {
    display: none !important;
  }

  .clone-home-hero-message {
    width: calc(46vw - 40px);
  }

  .clone-home-hero-message h1 {
    font-size: 52px;
  }

  .clone-home-actions a {
    min-width: 150px;
    gap: 16px;
  }

  .clone-forum-list:not(.clone-forum-album) .table .item {
    grid-template-columns: 52px minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  :root {
    --sg-header: 72px;
  }

  .clone-site .dsgn-body {
    padding: 0 0 58px !important;
  }

  .clone-shell,
  .clone-site .container {
    width: min(calc(100% - 36px), var(--sg-shell)) !important;
  }

  .clone-site .header.el-menu header > .container {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .clone-site .navbar-header.menu-logo-top {
    justify-content: flex-start !important;
    height: var(--sg-header) !important;
    padding: 0 0 0 18px !important;
  }

  .clone-site .navbar-header.menu-logo-top::after {
    right: 0;
    width: 8px;
    height: 8px;
  }

  .clone-site #tpl-logo-img {
    max-width: 165px !important;
    height: 42px !important;
    max-height: 42px !important;
  }

  .clone-site .navbar-toggle {
    position: absolute;
    top: 14px;
    right: -58px;
    display: inline-flex !important;
    float: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .clone-site .navbar-toggle .icon-bar {
    width: 19px !important;
    height: 2px !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .clone-site .navbar-collapse.navbar-menu-sgmtv {
    display: none !important;
  }

  .clone-site #mobile-nav {
    width: min(92vw, 390px) !important;
    max-width: 390px !important;
    padding: 0 0 34px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--sg-paper) !important;
    box-shadow: none !important;
  }

  .clone-site #mobile-nav .mobilenav_top {
    min-height: 88px;
    padding: 20px !important;
    border: 0;
    background: var(--sg-blue) !important;
  }

  .clone-site #mobile-nav {
    width: 90vw !important;
  }

  .clone-site #mobile-nav #tpl-menu,
  .clone-site #mobile-nav ul {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .clone-site #mobile-nav li {
    float: none !important;
    width: 100% !important;
    border-bottom: 1px solid var(--sg-ink);
  }

  .clone-site #mobile-nav a {
    display: flex !important;
    align-items: center;
    min-height: 54px;
    padding: 14px 20px !important;
    color: var(--sg-ink) !important;
    font-family: var(--sg-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    background: var(--sg-paper) !important;
  }

  .clone-site #mobile-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--sg-white) !important;
    box-shadow: none !important;
  }

  .clone-site #mobile-nav .dropdown-menu a {
    min-height: 48px;
    padding-left: 34px !important;
    font-size: 13px !important;
    background: var(--sg-white) !important;
  }

  .clone-site #mobile-nav a.clone-current,
  .clone-site #mobile-nav .clone-section-active > a {
    color: #fff !important;
    background: var(--sg-blue) !important;
  }

  .clone-page-header {
    height: 242px;
  }

  .clone-page-header::after {
    width: 84px;
  }

  .clone-page-header .clone-shell {
    grid-template-columns: minmax(0, 1fr) 66px;
    width: calc(100% - 36px) !important;
  }

  .clone-page-heading {
    padding: 28px 18px 26px 0;
  }

  .clone-breadcrumb {
    gap: 7px;
    margin-bottom: 30px;
    font-size: 10px;
  }

  .clone-page-eyebrow {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .clone-page-header h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
  }

  .clone-page-mark {
    justify-content: flex-end;
    padding: 18px 0 22px 12px;
  }

  .clone-page-mark::before,
  .clone-page-mark span,
  .clone-page-mark small {
    display: none;
  }

  .clone-page-mark strong {
    writing-mode: horizontal-tb;
    margin: 0;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.1em;
    white-space: nowrap;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .clone-inner-page .clone-content-block::before {
    top: 24px;
    left: 18px;
    font-size: 9px;
  }

  .clone-inner-page .clone-content-block > .container,
  .clone-inner-page .clone-content-block .section > .container {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .clone-inner-page .clone-text-block p,
  .clone-inner-page .clone-text-block li,
  .clone-inner-page .clone-text-block td,
  .clone-inner-page .clone-text-block th,
  .clone-inner-page .clone-content-block .fr-view {
    font-size: 15px;
    line-height: 1.82;
    word-break: normal;
  }

  .clone-intro-content .row::before {
    display: none;
  }

  .clone-intro-content img {
    box-shadow: 10px 10px 0 var(--sg-blue) !important;
  }

  .clone-home-hero {
    min-height: 720px !important;
    height: 720px !important;
  }

  .clone-home-hero::before {
    top: 294px;
    left: 18px;
    width: 76px;
    height: 10px;
  }

  .clone-home-hero::after {
    display: none;
  }

  .clone-home-hero > .carousel-inner {
    top: 0;
    right: 0;
    left: 0 !important;
    width: 100% !important;
    height: 304px !important;
  }

  .clone-home-hero .carousel-inner > .item,
  .clone-home-hero .carousel-inner > .item > div,
  .clone-home-hero .gallery-view,
  .clone-home-hero .gallery-view > div {
    min-height: 304px !important;
    height: 304px !important;
    background-position: center 42% !important;
  }

  .clone-home-hero-message {
    top: 304px;
    bottom: 0;
    left: 18px;
    justify-content: flex-start;
    width: calc(100% - 36px);
    padding: 44px 0 22px;
  }

  .clone-home-kicker {
    margin-bottom: 20px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .clone-home-hero-message h1 {
    max-width: 350px;
    font-size: 41px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .clone-home-hero-message > p {
    max-width: 340px;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.65;
  }

  .clone-home-actions {
    margin-top: 24px;
  }

  .clone-home-actions a {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 48px;
    padding: 0 13px;
    font-size: 12px;
  }

  .clone-home-meta {
    right: 0;
    bottom: 18px;
  }

  .clone-home-meta span:last-child {
    font-size: 7px;
    letter-spacing: 0.055em;
    white-space: nowrap;
  }

  .clone-home-meta strong {
    font-size: 19px;
  }

  .clone-home-hero .carousel-control {
    display: none !important;
  }

  .clone-home-portal {
    padding: 70px 0 76px;
  }

  .clone-section-lead {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 17px;
    margin-bottom: 32px;
  }

  .clone-section-index {
    width: 56px;
    height: 56px;
    font-size: 14px;
  }

  .clone-section-lead p {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .clone-section-lead h2 {
    font-size: 34px !important;
  }

  .clone-section-lead > a {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 2px;
  }

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

  .clone-portal-grid a {
    min-height: 190px;
    padding: 18px 16px 20px;
  }

  .clone-portal-grid a strong {
    margin-top: 40px;
    font-size: 19px;
  }

  .clone-home-latest {
    padding: 76px 0 84px !important;
  }

  .clone-home-album .latest-table-loop {
    grid-template-columns: 1fr;
    grid-auto-rows: 270px;
    gap: 10px;
  }

  .clone-home-album .latest-post,
  .clone-home-album .latest-post:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .clone-home-album .latest-post:first-child {
    min-height: 390px;
  }

  .clone-home-album .latest-post:first-child .content-wrap {
    width: calc(100% - 34px);
  }

  .clone-home-latest-compact .container > .row {
    grid-template-columns: 1fr;
  }

  .clone-home-latest-compact .container > .row > [class*="col-"] {
    padding: 24px 20px 28px !important;
  }

  .clone-forum-list {
    padding: 58px 0 82px !important;
  }

  .clone-forum-list .search-box,
  .clone-forum-list .forum-search,
  .clone-forum-list .board-search {
    margin-bottom: 25px !important;
  }

  .clone-forum-list:not(.clone-forum-album) .table .item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0 12px;
    padding: 28px 0 30px !important;
  }

  .clone-forum-list:not(.clone-forum-album) .table .item::before {
    grid-row: 1 / span 2;
  }

  .clone-forum-list:not(.clone-forum-album) .thumb-wrap {
    grid-column: 2;
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
  }

  .clone-forum-list:not(.clone-forum-album) .cont-wrap {
    grid-column: 2;
  }

  .clone-forum-list .item-title,
  .clone-forum-list .title,
  .clone-forum-list .tpl-forum-title,
  .clone-forum-list .tpl-forum-list-title {
    font-size: 21px !important;
    line-height: 1.4 !important;
  }

  .clone-forum-album .table {
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
    gap: 10px;
  }

  .clone-forum-album .table .item,
  .clone-forum-album .table .item:first-child,
  .clone-forum-album .table .item:nth-child(2),
  .clone-forum-album .table .item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .clone-forum-album .table .item:first-child {
    min-height: 430px;
  }

  .clone-forum-album .item:first-child .cont-wrap {
    width: calc(100% - 30px) !important;
    padding: 22px 20px 24px !important;
  }

  .clone-kind-detail .forum-view,
  .clone-kind-detail .clone-article {
    padding-top: 62px !important;
  }

  .clone-article > .container,
  .clone-comments > .container {
    width: calc(100% - 36px) !important;
  }

  .clone-article .tpl-forum-title {
    padding-left: 15px;
    border-left-width: 5px;
    font-size: 31px !important;
    line-height: 1.23 !important;
  }

  .clone-article .tpl-forum-content,
  .clone-article .fm-content {
    margin-top: 30px !important;
    padding: 38px 0 46px !important;
  }

  .clone-article .fr-wrapper,
  .clone-article .fr-element,
  .clone-article .fr-view {
    font-size: 15px !important;
    line-height: 1.82 !important;
  }

  .clone-media-stage {
    margin-bottom: 34px !important;
    padding: 10px !important;
  }

  .clone-comments {
    margin-top: 58px !important;
    padding: 48px 0 70px !important;
  }

  .clone-site .el-footer,
  .clone-site footer.footer {
    min-height: 390px !important;
    padding-bottom: 34px !important;
  }

  .clone-footer-brand {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
    padding-bottom: 44px;
  }

  .clone-footer-brand > div strong {
    font-size: 50px;
  }

  .clone-footer-brand > div img {
    width: min(100%, 270px) !important;
  }

  .clone-footer-brand > a {
    justify-content: space-between;
  }

  .clone-site .fnav.fnav-mobile-fnav {
    position: fixed !important;
    z-index: 1200;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: flex !important;
    align-items: stretch;
    min-height: 58px !important;
    height: 58px !important;
  }

  .clone-site .fnav.fnav-mobile-fnav .fnav-item {
    display: flex !important;
    flex: 1 1 50%;
    min-width: 0;
  }

  .clone-site .fnav.fnav-mobile-fnav a {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px !important;
    padding: 8px 12px !important;
    color: var(--sg-night) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .clone-site .fnav.fnav-mobile-fnav .fnav-item + .fnav-item {
    border-left: 1px solid var(--sg-ink);
  }

  .clone-site .fnav.fnav-mobile-fnav i {
    color: var(--sg-night) !important;
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .clone-content-lead {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
    padding-bottom: 26px;
  }

  .clone-content-lead > span {
    margin-bottom: 2px;
  }

  .clone-content-lead h2 {
    font-size: clamp(20px, 6.2vw, 34px);
    letter-spacing: -0.055em;
  }

  .clone-content-lead p {
    max-width: none;
    font-size: 13px !important;
  }

  .clone-page-vision .clone-vision-grid > .container,
  .clone-page-people .clone-people-grid > .container {
    padding-top: 58px !important;
    padding-bottom: 70px !important;
  }

  .clone-page-vision .clone-vision-grid .row[data-loop="true"] {
    grid-template-columns: 1fr;
  }

  .clone-page-vision .clone-content-lead h2 {
    font-size: clamp(20px, 6.1vw, 25px);
    letter-spacing: -0.055em;
  }

  .clone-page-vision .clone-vision-grid .gallery-item {
    min-height: 0;
    padding: 0 !important;
  }

  .clone-page-vision .clone-vision-grid .gallery-item::before {
    top: 20px;
    left: 20px;
  }

  .clone-page-people .clone-people-grid .gallery-category-wrap {
    margin-bottom: 24px;
  }

  .clone-page-people .clone-people-grid .gallery-category-nav a {
    min-height: 38px;
    padding: 0 13px !important;
    font-size: 10px !important;
  }

  .clone-page-people .clone-people-grid .row[data-loop="true"] {
    grid-template-columns: 1fr;
  }

  .clone-page-people .clone-people-grid figure {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .clone-page-people .clone-people-grid .img-wrapper {
    min-height: 330px;
    aspect-ratio: 1 / 1;
  }

  .clone-page-people .clone-people-grid figcaption {
    min-height: 150px;
    padding: 32px 22px 28px !important;
  }

  .clone-page-people .clone-people-grid h5.figure {
    font-size: 25px !important;
  }

  .clone-page-worship .clone-worship-schedule > .container {
    padding-top: 56px !important;
    padding-bottom: 70px !important;
  }

  .clone-page-worship .clone-worship-schedule .row[data-matrix-loop="true"] {
    grid-template-columns: 1fr;
  }

  .clone-page-worship .clone-worship-schedule .menu_unit {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 132px;
    padding: 46px 18px 23px !important;
  }

  .clone-page-worship .clone-worship-schedule .menu_unit::before {
    top: 17px;
    left: 18px;
  }

  .clone-page-worship .clone-worship-schedule .name strong,
  .clone-page-worship .clone-worship-schedule .name span {
    font-size: 17px !important;
  }

  .clone-page-worship .clone-worship-schedule .price span {
    font-size: 14px !important;
  }

  .clone-page-location .clone-location-panel > .container {
    width: 100% !important;
    padding: 0 !important;
  }

  .clone-page-location .clone-location-panel > .container > .row {
    grid-template-columns: 1fr;
    border: 0;
  }

  .clone-page-location .clone-location-panel [data-matrix-loop="true"] > .item {
    padding: 48px 22px 34px !important;
  }

  .clone-page-location .clone-location-panel [data-matrix-loop="true"] > .item::before {
    top: 20px;
    left: 22px;
  }

  .clone-page-location .clone-location-panel .cl_caption > div:first-child span,
  .clone-page-location .clone-location-panel .cl_caption > div:first-child strong {
    font-size: 25px !important;
  }

  .clone-page-location .clone-location-panel .google-map {
    min-height: 420px;
  }

  .clone-page-live .clone-live-panel .row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .clone-page-live .clone-live-panel .img-column {
    min-height: 330px;
    padding: 64px 28px 42px !important;
  }

  .clone-page-live .clone-live-panel .img-column::before {
    top: 24px;
    left: 20px;
  }

  .clone-page-live .clone-live-panel .img-column::after {
    top: 26px;
    right: 20px;
  }

  .clone-page-live .clone-live-panel .img-column img {
    width: min(80%, 330px) !important;
  }

  .clone-page-live .clone-live-panel .txt-column {
    padding: 46px 18px 58px !important;
  }

  .clone-page-live .clone-live-panel .cl_caption > div:first-child span {
    font-size: clamp(24px, 7vw, 28px) !important;
    letter-spacing: -0.055em;
  }

  .clone-page-live .clone-live-panel .clone-live-button {
    width: 100%;
    min-width: 0;
  }

  .clone-page-ministry .clone-story-archive {
    padding-top: 56px !important;
  }

  .clone-page-ministry .clone-story-archive .table {
    grid-template-columns: 1fr;
  }

  .clone-page-ministry .clone-story-archive .table .item,
  .clone-page-ministry .clone-story-archive .table .item:first-child {
    grid-column: 1;
  }

  .clone-page-ministry .clone-story-archive .thumb-wrap,
  .clone-page-ministry .clone-story-archive .item:first-child .thumb-wrap {
    aspect-ratio: 4 / 3;
  }

  .clone-page-ministry .clone-story-archive .cont-wrap {
    padding: 24px 20px 28px !important;
  }

  .clone-page-ministry .clone-story-archive .tpl-forum-list-title,
  .clone-page-ministry .clone-story-archive .tpl-forum-list-title a,
  .clone-page-ministry .clone-story-archive .item:first-child .tpl-forum-list-title,
  .clone-page-ministry .clone-story-archive .item:first-child .tpl-forum-list-title a {
    font-size: 23px !important;
  }
}

@media (max-width: 768px) {
  .clone-site #fixed-menu.clone-account-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 100% !important;
    padding: 12px 20px !important;
  }

  .clone-site #fixed-menu.clone-account-menu > li {
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
  }

  .clone-site #fixed-menu.clone-account-menu a,
  .clone-site #fixed-menu.clone-account-menu button,
  .clone-site #fixed-menu.clone-account-menu .clone-member-chip span {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--sg-ink) !important;
    font-family: var(--sg-font) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
  }

  .clone-site #fixed-menu.clone-account-menu form {
    width: 100%;
    margin: 0;
  }

  .clone-member-comments {
    width: calc(100% - 32px) !important;
    margin-top: 44px !important;
    margin-bottom: 70px !important;
    padding: 28px 18px !important;
  }

  .clone-member-comment > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .clone-member-comment-form > button {
    width: 100%;
  }
}

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

/* SGMMC premium redesign v3
   The visual language follows the supplied Toss/TDS reference: restrained layers,
   plain language, functional blue actions, and touch-safe controls. */

.clone-site,
.clone-site body,
.clone-site .dsgn-body {
  background: var(--sg-white) !important;
  color: var(--sg-ink);
}

.clone-site body {
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
}

.clone-site :focus-visible {
  outline: 3px solid var(--sg-blue) !important;
  outline-offset: 3px !important;
}

.clone-site a,
.clone-site button {
  -webkit-tap-highlight-color: rgba(49, 130, 246, 0.12);
}

.clone-skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 16px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--sg-radius-sm);
  background: var(--sg-ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.clone-skip-link:focus {
  transform: translateY(0);
}

/* Shared header */

.clone-site .header.el-menu,
.clone-site .header.el-menu .menu-sgmtv,
.clone-site .header.el-menu header,
.clone-site .header.el-menu .navbar {
  height: var(--sg-header) !important;
  min-height: var(--sg-header) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sg-line) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}

.clone-site .header.el-menu {
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.clone-site .header.el-menu header > .container {
  grid-template-columns: minmax(205px, 0.8fr) minmax(0, 3fr);
  width: min(calc(100% - 48px), var(--sg-shell)) !important;
  max-width: var(--sg-shell) !important;
  margin: 0 auto !important;
}

.clone-site .navbar-header.menu-logo-top {
  padding: 0 !important;
  background: transparent !important;
}

.clone-site #tpl-logo-img {
  width: auto !important;
  max-width: 184px !important;
  height: 46px !important;
  max-height: 46px !important;
  filter: none !important;
  transform: none !important;
}

@media (min-width: 769px) {
  .clone-site .navbar-collapse.navbar-menu-sgmtv {
    gap: 12px;
    padding: 0 !important;
    background: transparent !important;
  }

  .clone-site #tpl-menu {
    gap: 2px;
    margin-right: 8px !important;
  }

  .clone-site #tpl-menu > li {
    border: 0 !important;
  }

  .clone-site #tpl-menu > li > a {
    height: 100% !important;
    padding: 0 15px !important;
    border-radius: var(--sg-radius-sm);
    color: var(--sg-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
  }

  .clone-site #tpl-menu > li > a::before {
    display: none !important;
  }

  .clone-site #tpl-menu > li:hover > a,
  .clone-site #tpl-menu > li:focus-within > a,
  .clone-site #tpl-menu > li.clone-section-active > a {
    color: var(--sg-blue-dark) !important;
    background: var(--sg-blue-weak) !important;
  }

  .clone-site #tpl-menu .dropdown-menu {
    min-width: 216px;
    margin-top: -4px !important;
    padding: 8px !important;
    border: 1px solid var(--sg-line) !important;
    border-radius: var(--sg-radius-md) !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .clone-site #tpl-menu .dropdown-menu > li > a {
    min-height: 44px;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: var(--sg-radius-sm) !important;
    color: var(--sg-body) !important;
    font-size: 14px !important;
    font-weight: 550 !important;
  }

  .clone-site #tpl-menu .dropdown-menu > li > a:hover,
  .clone-site #tpl-menu .dropdown-menu > li > a:focus,
  .clone-site #tpl-menu .dropdown-menu > li > a.clone-current {
    padding-left: 12px !important;
    color: var(--sg-blue-dark) !important;
    background: var(--sg-blue-weak) !important;
  }

  .clone-site #fixed-menu.clone-account-menu {
    gap: 4px;
  }

  .clone-site #fixed-menu a,
  .clone-site #fixed-menu.clone-account-menu button,
  .clone-site #fixed-menu.clone-account-menu .clone-member-chip span {
    min-height: 40px;
    padding: 0 10px !important;
    border-radius: var(--sg-radius-sm);
    color: var(--sg-muted) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .clone-site #fixed-menu.clone-account-menu > li:last-child > a,
  .clone-site #fixed-menu.clone-account-menu > li:last-child > button {
    background: var(--sg-blue) !important;
    color: #fff !important;
  }
}

/* Home hero */

.clone-home-page .dsgn-body {
  background: #fff !important;
}

.clone-home-hero {
  min-height: 640px !important;
  height: 640px !important;
  border-bottom: 1px solid var(--sg-line);
  background: #fff !important;
}

.clone-home-hero::before,
.clone-home-hero::after {
  display: none !important;
}

.clone-home-hero > .carousel-inner {
  top: 52px !important;
  right: max(24px, calc((100vw - var(--sg-shell)) / 2)) !important;
  bottom: 52px !important;
  left: calc(50% + 28px) !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 20px;
  background: var(--sg-paper-2);
}

.clone-home-hero .carousel-inner > .item,
.clone-home-hero .carousel-inner > .item > div,
.clone-home-hero .gallery-view,
.clone-home-hero .gallery-view > div {
  min-height: 0 !important;
  height: 100% !important;
  border-radius: inherit;
  background-color: var(--sg-paper-2) !important;
  background-position: center center !important;
  background-size: cover !important;
}

.clone-home-hero .carousel-inner::after {
  background: linear-gradient(180deg, transparent 66%, rgba(16, 42, 67, 0.14)) !important;
}

.clone-home-hero-message {
  top: 0;
  bottom: 0;
  left: max(24px, calc((100vw - var(--sg-shell)) / 2));
  justify-content: center;
  width: min(520px, calc(50vw - 52px));
  padding: 48px 42px 48px 0;
  color: var(--sg-ink);
}

.clone-home-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sg-blue-weak);
  color: var(--sg-blue-dark);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
}

.clone-home-hero-message h1 {
  color: var(--sg-ink);
  font-size: clamp(48px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.clone-home-hero-message h1 strong {
  color: var(--sg-blue);
  font-weight: 700;
}

.clone-home-hero-message > p {
  max-width: 460px;
  margin-top: 22px;
  color: var(--sg-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

.clone-home-actions {
  gap: 10px;
  margin-top: 30px;
}

.clone-home-actions a {
  justify-content: center;
  gap: 16px;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}

.clone-home-actions .clone-home-action-primary,
.clone-home-actions .clone-home-action-primary:hover,
.clone-home-actions .clone-home-action-primary:focus {
  background: var(--sg-blue) !important;
  color: #fff !important;
}

.clone-home-actions .clone-home-action-primary:hover {
  background: var(--sg-blue-dark) !important;
}

.clone-home-actions .clone-home-action-secondary,
.clone-home-actions .clone-home-action-secondary:hover,
.clone-home-actions .clone-home-action-secondary:focus {
  border-color: var(--sg-blue-weak) !important;
  background: var(--sg-blue-weak) !important;
  color: var(--sg-blue-dark) !important;
}

.clone-home-actions .clone-home-action-secondary:hover {
  background: #dbeeff !important;
}

.clone-home-meta {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 500px;
  margin: 34px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--sg-line);
}

.clone-home-meta > div {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid var(--sg-line);
}

.clone-home-meta > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.clone-home-meta dt {
  margin: 0 0 5px;
  color: var(--sg-muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
}

.clone-home-meta dd {
  margin: 0;
  color: var(--sg-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}

.clone-home-hero.clone-single-slide .carousel-control,
.clone-home-hero.clone-single-slide .carousel-indicators {
  display: none !important;
}

/* Reusable section heading */

.clone-section-lead {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}

.clone-section-index {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--sg-blue-weak);
  color: var(--sg-blue-dark);
  font-size: 14px;
  font-weight: 700;
}

.clone-section-lead p {
  margin-bottom: 4px;
  color: var(--sg-blue-dark);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.clone-section-lead h2 {
  color: var(--sg-ink);
  font-size: clamp(30px, 3vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.045em !important;
  overflow-wrap: normal;
  word-break: keep-all !important;
  white-space: normal;
}

.clone-section-lead div > span {
  display: block;
  margin-top: 6px;
  color: var(--sg-muted);
  font-size: 14px;
  line-height: 1.55;
}

.clone-section-lead > a {
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--sg-radius-sm);
  background: var(--sg-paper-2);
  color: var(--sg-body);
  font-size: 13px;
  font-weight: 600;
}

.clone-section-lead > a:hover,
.clone-section-lead > a:focus {
  background: var(--sg-blue-weak);
  color: var(--sg-blue-dark);
}

/* First-visit pathways */

.clone-home-portal {
  padding: 92px 0 100px;
  border: 0;
  background: #f7f9fb;
}

.clone-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.clone-portal-grid a {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  background: #fff;
  color: var(--sg-ink);
}

.clone-portal-grid a:first-child {
  border-color: transparent;
  background: var(--sg-blue-weak);
  color: var(--sg-ink);
}

.clone-portal-grid a:hover,
.clone-portal-grid a:focus {
  border-color: #b7d8ff;
  background: var(--sg-blue-weak);
  color: var(--sg-ink);
}

.clone-portal-grid a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: auto;
  border-radius: 10px;
  background: var(--sg-paper-2);
  color: var(--sg-blue-dark);
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
}

.clone-portal-grid a:first-child > span,
.clone-portal-grid a:hover > span {
  background: #fff;
}

.clone-portal-grid a strong {
  margin-top: 40px;
  color: var(--sg-ink);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.clone-portal-grid a small {
  margin-top: 7px;
  color: var(--sg-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
  opacity: 1;
}

.clone-portal-grid a b {
  top: 24px;
  right: 24px;
  color: var(--sg-blue);
  font-size: 18px;
  font-weight: 500;
}

/* Community gallery */

.clone-home-latest {
  padding: 96px 0 104px !important;
}

.clone-home-album {
  background: #fff !important;
}

.clone-home-album .clone-section-lead,
.clone-home-album .clone-section-lead h2,
.clone-home-album .clone-section-lead > a {
  color: var(--sg-ink);
}

.clone-home-album .clone-section-index {
  background: var(--sg-blue-weak);
  color: var(--sg-blue-dark);
}

.clone-home-album .clone-section-lead p {
  color: var(--sg-blue-dark);
}

.clone-home-album .latest-table-loop {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 18px;
  overflow: visible;
}

.clone-home-album .latest-post,
.clone-home-album .latest-post:first-child {
  display: flex;
  float: none !important;
  flex-direction: column;
  grid-column: auto;
  grid-row: auto;
  width: auto !important;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius-lg);
  background: #fff !important;
}

.clone-home-album .latest-post:nth-child(n + 4) {
  grid-column: auto;
}

.clone-home-album .thumb-wrap,
.clone-home-album .latest-post-list-thumb,
.clone-home-album .latest-post-list-thumb a {
  height: auto !important;
  aspect-ratio: 4 / 3;
}

.clone-home-album .thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  filter: none;
  transition: transform 180ms ease;
}

.clone-home-album .latest-post:hover .thumb-wrap img {
  transform: scale(1.015);
  filter: none;
}

.clone-home-album .content-wrap,
.clone-home-album .latest-post:first-child .content-wrap {
  position: static;
  display: flex;
  align-items: center;
  width: auto;
  min-height: 70px;
  padding: 18px 20px !important;
  background: #fff;
  color: var(--sg-ink);
}

.clone-home-album .latest-post-list-title,
.clone-home-album .latest-post-list-title a,
.clone-home-album .latest-post:first-child .latest-post-list-title,
.clone-home-album .latest-post:first-child .latest-post-list-title a {
  color: var(--sg-ink) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* Next generation */

.clone-home-latest-compact {
  border: 0;
  background: var(--sg-paper-2) !important;
}

.clone-home-latest-compact .container > .row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  background: transparent;
}

.clone-home-latest-compact .container > .row > [class*="col-"],
.clone-home-latest-compact .container > .row > [class*="col-"]:nth-child(2) {
  padding: 28px 26px 30px !important;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-lg);
  background: #fff;
}

.clone-home-latest-compact .latest-title,
.clone-home-latest-compact .lt-header,
.clone-home-latest-compact h3,
.clone-home-latest-compact h5 {
  margin-bottom: 14px !important;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--sg-line);
  color: var(--sg-ink) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.035em;
}

.clone-home-latest-compact .item,
.clone-home-latest-compact li,
.clone-home-latest-compact .latest-post {
  padding: 13px 0 !important;
  border-bottom: 1px solid var(--sg-line) !important;
}

.clone-home-latest-compact .latest-post {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.clone-home-latest-compact .latest-post .content-wrap {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.clone-home-latest-compact .latest-post-list-title {
  float: none !important;
  max-width: 100% !important;
}

.clone-home-latest-compact .latest-post-list-date {
  float: none !important;
  width: auto !important;
  color: var(--sg-muted) !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.clone-home-latest-compact .item:last-child,
.clone-home-latest-compact li:last-child,
.clone-home-latest-compact .latest-post:last-child {
  border-bottom: 0 !important;
}

.clone-home-latest-compact .item-title,
.clone-home-latest-compact .latest-post-list-title,
.clone-home-latest-compact .title,
.clone-home-latest-compact a {
  color: var(--sg-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

.clone-home-latest-compact a:hover,
.clone-home-latest-compact a:focus {
  color: var(--sg-blue-dark) !important;
}

/* Shared page and form surfaces */

.clone-page-header {
  height: 300px;
  border-bottom: 1px solid var(--sg-line);
  background: #f4f8ff;
  color: var(--sg-ink);
}

.clone-page-header::after {
  display: none;
}

.clone-page-header h1 {
  color: var(--sg-ink);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.clone-page-eyebrow,
.clone-page-mark span,
.clone-page-mark strong {
  color: var(--sg-blue-dark);
}

.clone-breadcrumb,
.clone-breadcrumb a,
.clone-page-mark small {
  color: var(--sg-muted);
}

.clone-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  min-height: 28px;
  padding: 2px 4px;
  border-radius: 4px;
}

.clone-site input:not([type="checkbox"]):not([type="radio"]),
.clone-site select,
.clone-site textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d1d6db !important;
  border-radius: var(--sg-radius-sm) !important;
  background: #fff !important;
  color: var(--sg-ink) !important;
  box-shadow: none !important;
}

.clone-site textarea {
  min-height: 132px;
  line-height: 1.65;
}

.clone-site input:not([type="checkbox"]):not([type="radio"]):hover,
.clone-site select:hover,
.clone-site textarea:hover {
  border-color: var(--sg-muted) !important;
}

.clone-site input:not([type="checkbox"]):not([type="radio"]):focus,
.clone-site select:focus,
.clone-site textarea:focus {
  border-color: var(--sg-blue) !important;
  outline: 3px solid rgba(49, 130, 246, 0.18) !important;
  outline-offset: 0 !important;
}

.clone-site .clone-member-write,
.clone-site .tpl-forum-write,
.clone-site .clone-member-comment-form > button {
  min-height: 48px;
  padding: 0 20px !important;
  border: 1px solid var(--sg-blue) !important;
  border-radius: 10px !important;
  background: var(--sg-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

/* Footer */

.clone-site .el-footer,
.clone-site footer.footer {
  min-height: 0 !important;
  padding: 0 0 34px !important;
  background: var(--sg-night) !important;
  color: rgba(255, 255, 255, 0.68) !important;
}

.clone-footer-brand {
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.7fr) minmax(220px, 0.75fr);
  align-items: start;
  gap: 52px;
  padding-top: 58px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.clone-footer-brand .clone-footer-identity img {
  width: min(100%, 230px) !important;
  height: auto !important;
  margin: 0;
  filter: brightness(0) invert(1);
}

.clone-footer-brand .clone-footer-identity p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -0.015em;
}

.clone-footer-links {
  display: grid;
  gap: 2px;
}

.clone-footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff !important;
  font-size: 13px;
  font-weight: 550;
}

.clone-footer-contact {
  display: grid;
  gap: 8px;
  padding-top: 9px;
}

.clone-footer-contact p,
.clone-footer-contact a {
  margin: 0;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.clone-footer-contact a {
  width: max-content;
  color: #fff !important;
  font-size: 17px;
  font-weight: 650;
}

.clone-site .el-footer > .container:not(.clone-footer-brand),
.clone-site footer.footer > .container:not(.clone-footer-brand) {
  padding-top: 24px !important;
}

.clone-site .el-footer .text,
.clone-site .el-footer .text span,
.clone-site .el-footer .text a,
.clone-site footer.footer .text,
.clone-site footer.footer .text span,
.clone-site footer.footer .text a {
  color: rgba(255, 255, 255, 0.62) !important;
}

.clone-site .el-footer .line,
.clone-site footer.footer .line {
  border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.clone-site .fnav.fnav-mobile-fnav {
  border-top: 1px solid var(--sg-line) !important;
  background: #fff !important;
  color: var(--sg-ink) !important;
}

@media (min-width: 769px) and (max-width: 1160px) {
  .clone-site .header.el-menu header > .container {
    grid-template-columns: 185px minmax(0, 1fr);
    width: min(calc(100% - 40px), var(--sg-shell)) !important;
  }

  .clone-site #tpl-logo-img {
    max-width: 166px !important;
  }

  .clone-site #tpl-menu > li > a {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 13px !important;
  }

  .clone-site #fixed-menu.clone-account-menu {
    display: flex !important;
  }

  .clone-home-hero-message {
    width: calc(50vw - 44px);
  }

  .clone-home-hero-message h1 {
    font-size: clamp(42px, 5vw, 52px);
  }

  .clone-home-hero-message > p {
    font-size: 15px;
  }

  .clone-home-meta dd {
    font-size: 12px;
  }

  .clone-portal-grid a {
    min-height: 196px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --sg-header: 68px;
  }

  .clone-shell,
  .clone-site .container {
    width: min(calc(100% - 36px), var(--sg-shell)) !important;
  }

  .clone-site .dsgn-body {
    padding-bottom: 58px !important;
  }

  .clone-site .header.el-menu header > .container {
    grid-template-columns: minmax(0, 1fr) 54px;
    width: 100% !important;
  }

  .clone-site .navbar-header.menu-logo-top {
    height: var(--sg-header) !important;
    padding-left: 18px !important;
  }

  .clone-site #tpl-logo-img {
    max-width: 158px !important;
    height: 42px !important;
  }

  .clone-site .navbar-toggle {
    top: 12px;
    right: -48px;
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: var(--sg-radius-sm) !important;
    background: var(--sg-paper-2) !important;
  }

  .clone-site .navbar-toggle .icon-bar {
    width: 20px !important;
    background: var(--sg-ink) !important;
  }

  .clone-site #mobile-nav {
    width: min(90vw, 390px) !important;
    padding-bottom: 26px !important;
    border-left: 1px solid var(--sg-line);
    background: #fff !important;
  }

  .clone-site #mobile-nav .mobilenav_top {
    min-height: 78px;
    padding: 18px !important;
    background: var(--sg-blue-weak) !important;
  }

  .clone-site #mobile-nav li {
    border-bottom: 1px solid var(--sg-line);
  }

  .clone-site #mobile-nav a {
    min-height: 52px;
    padding: 14px 20px !important;
    background: #fff !important;
    color: var(--sg-body) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }

  .clone-site #mobile-nav .dropdown-menu,
  .clone-site #mobile-nav .dropdown-menu a {
    background: #f8f9fa !important;
  }

  .clone-site #mobile-nav a.clone-current,
  .clone-site #mobile-nav .clone-section-active > a {
    background: var(--sg-blue-weak) !important;
    color: var(--sg-blue-dark) !important;
  }

  .clone-home-hero {
    min-height: 670px !important;
    height: 670px !important;
  }

  .clone-home-hero > .carousel-inner {
    top: auto !important;
    right: 18px !important;
    bottom: 26px !important;
    left: 18px !important;
    width: auto !important;
    height: 250px !important;
    border-radius: var(--sg-radius-lg);
  }

  .clone-home-hero .carousel-inner > .item,
  .clone-home-hero .carousel-inner > .item > div,
  .clone-home-hero .gallery-view,
  .clone-home-hero .gallery-view > div {
    min-height: 250px !important;
    height: 250px !important;
    background-position: center 42% !important;
    background-size: cover !important;
  }

  .clone-home-hero-message {
    top: 0;
    bottom: auto;
    left: 18px;
    justify-content: flex-start;
    width: calc(100% - 36px);
    height: 390px;
    padding: 38px 0 24px;
  }

  .clone-home-kicker {
    min-height: 28px;
    margin-bottom: 18px;
    padding: 0 10px;
    font-size: 12px;
  }

  .clone-home-hero-message h1 {
    max-width: 360px;
    font-size: clamp(37px, 10.5vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.055em;
  }

  .clone-home-hero-message > p {
    max-width: 350px;
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.65;
  }

  .clone-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }

  .clone-home-actions a {
    min-height: 52px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .clone-home-meta {
    gap: 0;
    margin-top: 22px;
    padding-top: 14px;
  }

  .clone-home-meta > div {
    padding: 0 9px;
  }

  .clone-home-meta dt {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .clone-home-meta dd {
    font-size: 12px;
    white-space: normal;
  }

  .clone-home-portal,
  .clone-home-latest {
    padding: 68px 0 74px !important;
  }

  .clone-home-portal {
    padding-top: 112px !important;
  }

  .clone-section-lead {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .clone-section-index {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 12px;
  }

  .clone-section-lead p {
    margin-bottom: 3px;
    font-size: 12px;
  }

  .clone-section-lead h2 {
    font-size: clamp(27px, 8vw, 32px) !important;
    line-height: 1.32 !important;
  }

  .clone-section-lead div > span {
    margin-top: 6px;
    font-size: 13px;
  }

  .clone-section-lead > a {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
  }

  .clone-portal-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: min(78vw, 278px);
    grid-auto-flow: column;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 18px 10px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #cbd3da transparent;
    scrollbar-width: thin;
  }

  .clone-portal-grid a {
    min-height: 188px;
    padding: 22px;
    scroll-snap-align: start;
  }

  .clone-portal-grid a strong {
    margin-top: 34px;
    font-size: 21px;
  }

  .clone-home-album .latest-table-loop {
    grid-template-columns: none;
    grid-auto-columns: min(80vw, 300px);
    grid-auto-flow: column;
    gap: 14px;
    width: calc(100% + 18px) !important;
    padding: 0 18px 10px 0 !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #cbd3da transparent;
    scrollbar-width: thin;
  }

  .clone-home-album .latest-post,
  .clone-home-album .latest-post:first-child,
  .clone-home-album .latest-post:nth-child(n + 4) {
    grid-column: auto;
    min-height: 0;
    scroll-snap-align: start;
  }

  .clone-home-album .thumb-wrap,
  .clone-home-album .latest-post-list-thumb,
  .clone-home-album .latest-post-list-thumb a,
  .clone-home-album .latest-post:nth-child(n + 4) .thumb-wrap,
  .clone-home-album .latest-post:nth-child(n + 4) .latest-post-list-thumb,
  .clone-home-album .latest-post:nth-child(n + 4) .latest-post-list-thumb a {
    aspect-ratio: 4 / 3;
  }

  .clone-home-album .content-wrap,
  .clone-home-album .latest-post:first-child .content-wrap {
    min-height: 68px;
    padding: 16px 18px !important;
  }

  .clone-home-latest-compact .container > .row {
    display: grid !important;
    grid-template-columns: none;
    grid-auto-columns: min(82vw, 310px);
    grid-auto-flow: column;
    gap: 12px;
    width: calc(100% + 18px);
    padding: 0 18px 10px 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #cbd3da transparent;
    scrollbar-width: thin;
  }

  .clone-home-latest-compact .container > .row > [class*="col-"],
  .clone-home-latest-compact .container > .row > [class*="col-"]:nth-child(2) {
    min-height: 320px;
    padding: 24px 22px 26px !important;
    scroll-snap-align: start;
  }

  .clone-page-header {
    height: 220px;
  }

  .clone-page-header .clone-shell {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .clone-page-heading {
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .clone-page-header h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .clone-footer-brand {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .clone-footer-brand .clone-footer-identity img {
    width: min(64vw, 210px) !important;
  }

  .clone-footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .clone-footer-links a {
    justify-content: center;
    min-height: 48px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--sg-radius-sm);
    text-align: center;
  }

  .clone-footer-links a span {
    display: none;
  }

  .clone-footer-contact {
    padding-top: 0;
  }

  .clone-site #fixed-menu.clone-account-menu {
    gap: 8px;
    padding: 12px 18px !important;
    background: #fff;
  }

  .clone-site #fixed-menu.clone-account-menu > li {
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius-sm);
    background: #fff;
  }

  .clone-site #fixed-menu.clone-account-menu a,
  .clone-site #fixed-menu.clone-account-menu button,
  .clone-site #fixed-menu.clone-account-menu .clone-member-chip span {
    min-height: 46px;
    justify-content: center;
    color: var(--sg-body) !important;
  }
}

@media (max-width: 360px) {
  .clone-home-actions {
    grid-template-columns: 1fr;
  }

  .clone-home-hero {
    min-height: 790px !important;
    height: 790px !important;
  }

  .clone-home-hero-message {
    height: 505px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clone-skip-link,
  .clone-home-album .thumb-wrap img {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  html.clone-site body.clone-home-page .clone-home-latest-compact .container > .row[data-loop="true"] {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow: hidden !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    contain: inline-size;
  }

  html.clone-site body.clone-home-page .clone-home-hero {
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
  }

  html.clone-site body.clone-home-page .clone-home-hero-message {
    position: relative;
    inset: auto;
    order: 1;
    width: auto;
    min-height: 390px;
    height: auto;
    margin: 0 18px;
    padding: 38px 0 24px;
  }

  html.clone-site body.clone-home-page .clone-home-hero > .carousel-inner {
    position: relative !important;
    inset: auto !important;
    order: 2;
    width: calc(100% - 36px) !important;
    height: 250px !important;
    margin: 0 18px 26px;
  }

  .clone-site .dsgn-body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
  }

  .clone-site .fnav.fnav-mobile-fnav {
    height: calc(58px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  html.clone-site.clone-mobile-menu-open,
  html.clone-site.clone-mobile-menu-open body,
  html.clone-site.clone-mobile-menu-open body .dsgn-body.mobile-nav-active {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.clone-site #mobile-nav {
    overscroll-behavior: contain;
  }

  html.clone-site #mobile-body-overly #mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 12px;
    margin-right: 12px;
    border-radius: var(--sg-radius-sm);
  }
}

/* Typography v24: rich-text blocks also use div/span lines in upstream pages. */
.clone-site .clone-page-facilities .gallery-item[hidden] {
  display: none !important;
}

.clone-site .clone-text-block .cl_caption,
.clone-site .clone-text-block .cl_caption :is(div, span, p, li),
.clone-site .clone-location-panel .cl_caption,
.clone-site .clone-article :is(.fr-view, .fr-view p, .fr-view div),
.clone-site .clone-gallery-block :is(h5.figure, p.figure),
.clone-site .clone-home-latest :is(.latest-post-list-title, .latest-post-list-title a) {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.clone-site .clone-intro-copy {
  font-family: var(--sg-font) !important;
  font-size: 17px;
  line-height: 1.85;
}

.clone-site .clone-intro-copy h2 {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.4;
  font-style: normal;
}

.clone-site .clone-intro-copy p {
  margin: 0 0 20px;
  font-size: inherit;
  line-height: inherit;
}

.clone-site .clone-intro-copy p:last-child {
  margin-bottom: 0;
}

/* Bootstrap clearfix pseudo-elements otherwise occupy grid cells. */
.clone-site .clone-home-latest-compact .latest-post::before,
.clone-site .clone-home-latest-compact .latest-post::after {
  display: none !important;
  content: none !important;
}

.clone-site .clone-home-latest-compact .latest-post {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.clone-site .clone-home-latest-compact .latest-post .content-wrap {
  grid-area: 1 / 1;
}

.clone-site .clone-home-latest-compact .latest-post-list-date {
  grid-area: 2 / 1;
  text-align: left;
  line-height: 1.5;
}

.clone-site .clone-home-latest-compact .latest-post-list-title {
  display: block !important;
  width: 100%;
  white-space: normal !important;
  overflow: visible !important;
}

.clone-site .clone-home-latest-compact .latest-post-list-title a {
  display: inline;
  white-space: normal !important;
}

.clone-site .clone-content-lead h2,
.clone-site .clone-section-heading h2 {
  text-wrap: balance;
}

.clone-site .clone-page-live .clone-live-panel .cl_caption > div:first-child {
  flex-wrap: wrap;
  gap: 4px 12px;
  white-space: normal;
}

.clone-site .clone-page-live .clone-live-panel .cl_caption > div:first-child span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.clone-site .el-footer > .container .text,
.clone-site .el-footer > .container .text :is(span, a, em) {
  font-family: var(--sg-font) !important;
  font-size: 12px !important;
  font-style: normal;
  letter-spacing: normal !important;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.clone-site .clone-article .page-toolbars {
  width: 100%;
}

.clone-site .clone-article .page-toolbars .toolbar-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clone-site .clone-article .page-toolbars .toolbar-btn {
  margin: 0 !important;
}

.clone-site .clone-article .page-toolbars .toolbar-btn.hide {
  display: none !important;
}

.clone-site .clone-article .page-toolbars .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.clone-site .tpl-forum-list-prev-next .tpl-forum-pn-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: start;
}

.clone-site .tpl-forum-list-prev-next .tpl-forum-pn-title {
  min-width: 0;
  margin: 0;
  overflow: visible;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .clone-site .tpl-forum-list-prev-next .tpl-forum-pn-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .clone-site .tpl-forum-list-prev-next .tpl-forum-pn-date {
    grid-column: 2;
    text-align: left;
  }

  /* The floated photo used to escape its column and squeeze the heading. */
  .clone-site .clone-page-intro .clone-text-block .img-column .image-wrap {
    float: none;
  }

  .clone-site .clone-page-intro .clone-text-block .txt-column {
    margin: 32px 0 48px !important;
    padding-top: 0 !important;
  }

  .clone-site .clone-intro-copy {
    font-size: 16px;
  }
}

/* Final contrast pass for every numbered inner-page masthead.
   The block is shared by ABOUT (01), MEDIA (02), MISSION (03),
   NEXT GENERATION (04), and COMMUNITY (05). */
.clone-page-mark {
  color: #fff !important;
  background: var(--sg-blue-dark) !important;
}

.clone-page-mark span,
.clone-page-mark strong,
.clone-page-mark small {
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.clone-page-mark span {
  opacity: 0.96;
}

.clone-page-mark small {
  font-size: 10px;
  opacity: 0.96;
  letter-spacing: 0.12em;
}

/* The source logo contains a tall canvas. Anchor it from the top of the
   header so the visible mark sits lower and the bottom whitespace closes up. */
.clone-site .navbar-header.menu-logo-top {
  align-items: flex-start !important;
  padding-top: 16px !important;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .clone-site .navbar-header.menu-logo-top {
    padding-top: 20px !important;
  }
}

@media (max-width: 768px) {
  .clone-site .navbar-header.menu-logo-top {
    padding-top: 16px !important;
  }
}

/* Keep the 76px header strip, but make each desktop menu surface a compact
   centered control instead of a full-height hover block. */
@media (min-width: 769px) {
  .clone-site #tpl-menu > li > a {
    align-self: center;
    height: 52px !important;
    min-height: 52px !important;
  }

  .clone-site #fixed-menu.clone-account-menu > li > a,
  .clone-site #fixed-menu.clone-account-menu > li > button,
  .clone-site #fixed-menu.clone-account-menu button,
  .clone-site #fixed-menu.clone-account-menu .clone-member-chip span {
    align-self: center;
    height: 42px !important;
    min-height: 42px !important;
  }
}

/* Dark mode ------------------------------------------------------------- */
html.clone-site.clone-dark {
  --sg-paper: #0b1724;
  --sg-paper-2: #102333;
  --sg-white: #142a3c;
  --sg-ink: #f3f7fb;
  --sg-body: #d6e1eb;
  --sg-muted: #a8b8c7;
  --sg-line: #2b4052;
  --sg-night: #061522;
  --sg-night-2: #0d2b45;
  --sg-blue: #3d83ed;
  --sg-blue-dark: #8bc0ff;
  --sg-blue-weak: #173b60;
  --sg-signal: #73b7ff;
  color-scheme: dark;
}

html.clone-site.clone-dark,
html.clone-site.clone-dark body,
html.clone-site.clone-dark .dsgn-body {
  background: var(--sg-paper) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .header.el-menu,
html.clone-site.clone-dark .header.el-menu .menu-sgmtv,
html.clone-site.clone-dark .header.el-menu header,
html.clone-site.clone-dark .header.el-menu .navbar,
html.clone-site.clone-dark .navbar-header.menu-logo-top {
  background: rgba(6, 21, 34, 0.97) !important;
  border-bottom-color: var(--sg-line) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark #tpl-logo-img {
  filter: brightness(0) invert(1) !important;
}

html.clone-site.clone-dark #tpl-menu > li > a {
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark #tpl-menu > li:hover > a,
html.clone-site.clone-dark #tpl-menu > li:focus-within > a,
html.clone-site.clone-dark #tpl-menu > li.clone-section-active > a {
  background: var(--sg-blue-weak) !important;
  color: #fff !important;
}

html.clone-site.clone-dark #tpl-menu .dropdown-menu {
  border-color: var(--sg-line) !important;
  background: var(--sg-white) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32) !important;
}

html.clone-site.clone-dark #tpl-menu .dropdown-menu > li > a {
  border-color: var(--sg-line) !important;
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark #tpl-menu .dropdown-menu > li > a:hover,
html.clone-site.clone-dark #tpl-menu .dropdown-menu > li > a:focus,
html.clone-site.clone-dark #tpl-menu .dropdown-menu > li > a.clone-current {
  background: var(--sg-blue-weak) !important;
  color: #fff !important;
}

html.clone-site.clone-dark #fixed-menu a,
html.clone-site.clone-dark #fixed-menu.clone-account-menu button,
html.clone-site.clone-dark #fixed-menu.clone-account-menu .clone-member-chip span {
  color: var(--sg-muted) !important;
}

html.clone-site.clone-dark #fixed-menu.clone-account-menu > li:last-child > a,
html.clone-site.clone-dark #fixed-menu.clone-account-menu > li:last-child > button {
  background: var(--sg-blue) !important;
  color: #fff !important;
}

html.clone-site.clone-dark .clone-home-page .dsgn-body,
html.clone-site.clone-dark .clone-home-hero,
html.clone-site.clone-dark .clone-home-hero > .carousel-inner,
html.clone-site.clone-dark .clone-home-hero .carousel-inner > .item,
html.clone-site.clone-dark .clone-home-hero .gallery-view,
html.clone-site.clone-dark .clone-home-hero .gallery-view > div {
  background-color: var(--sg-paper) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-home-hero {
  border-bottom-color: var(--sg-line) !important;
}

html.clone-site.clone-dark .clone-home-portal,
html.clone-site.clone-dark .clone-home-latest-compact {
  background: var(--sg-paper-2) !important;
  border-color: var(--sg-line) !important;
}

html.clone-site.clone-dark .clone-portal-grid a {
  border-color: var(--sg-line) !important;
  background: var(--sg-white) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-portal-grid a:first-child,
html.clone-site.clone-dark .clone-portal-grid a:hover,
html.clone-site.clone-dark .clone-portal-grid a:focus {
  border-color: #2a6094 !important;
  background: var(--sg-blue-weak) !important;
  color: #f5f9ff !important;
}

html.clone-site.clone-dark .clone-portal-grid a > span,
html.clone-site.clone-dark .clone-portal-grid a:first-child > span,
html.clone-site.clone-dark .clone-portal-grid a:hover > span {
  background: var(--sg-paper-2) !important;
  color: var(--sg-blue-dark) !important;
}

html.clone-site.clone-dark .clone-portal-grid a strong,
html.clone-site.clone-dark .clone-section-lead h2,
html.clone-site.clone-dark .clone-home-latest-compact h3,
html.clone-site.clone-dark .clone-home-latest-compact h5 {
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-section-lead p,
html.clone-site.clone-dark .clone-section-lead div > span,
html.clone-site.clone-dark .clone-portal-grid a small,
html.clone-site.clone-dark .clone-home-latest-compact .latest-post-list-date {
  color: var(--sg-muted) !important;
}

html.clone-site.clone-dark .clone-home-album {
  background: var(--sg-paper) !important;
}

html.clone-site.clone-dark .clone-home-album .latest-post,
html.clone-site.clone-dark .clone-home-album .latest-post:first-child,
html.clone-site.clone-dark .clone-home-album .content-wrap,
html.clone-site.clone-dark .clone-home-album .latest-post:first-child .content-wrap {
  border-color: var(--sg-line) !important;
  background: var(--sg-white) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-home-latest-compact .container > .row > [class*="col-"] {
  border-color: var(--sg-line) !important;
  background: var(--sg-white) !important;
}

html.clone-site.clone-dark .clone-home-latest-compact .item,
html.clone-site.clone-dark .clone-home-latest-compact li,
html.clone-site.clone-dark .clone-home-latest-compact .latest-post {
  border-bottom-color: var(--sg-line) !important;
}

html.clone-site.clone-dark .clone-home-latest-compact .item-title,
html.clone-site.clone-dark .clone-home-latest-compact .latest-post-list-title,
html.clone-site.clone-dark .clone-home-latest-compact .title,
html.clone-site.clone-dark .clone-home-latest-compact a {
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-page-header {
  border-bottom-color: var(--sg-line) !important;
  background: #102333 !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-page-header h1 {
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-page-eyebrow,
html.clone-site.clone-dark .clone-inner-page .clone-content-block::before {
  color: var(--sg-signal) !important;
}

html.clone-site.clone-dark .clone-breadcrumb,
html.clone-site.clone-dark .clone-breadcrumb a,
html.clone-site.clone-dark .clone-page-mark small {
  color: var(--sg-muted) !important;
}

html.clone-site.clone-dark .clone-page-mark {
  background: #1e61b8 !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-content-block,
html.clone-site.clone-dark .clone-gallery-block {
  border-color: var(--sg-line) !important;
  background: var(--sg-paper) !important;
}

html.clone-site.clone-dark .clone-intro-content {
  background: var(--sg-paper-2) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block p,
html.clone-site.clone-dark .clone-inner-page .clone-text-block li,
html.clone-site.clone-dark .clone-inner-page .clone-text-block td,
html.clone-site.clone-dark .clone-inner-page .clone-text-block th,
html.clone-site.clone-dark .clone-inner-page .clone-content-block .fr-view {
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block h1,
html.clone-site.clone-dark .clone-inner-page .clone-text-block h2,
html.clone-site.clone-dark .clone-inner-page .clone-text-block h3,
html.clone-site.clone-dark .clone-inner-page .clone-content-block .title,
html.clone-site.clone-dark .clone-inner-page .clone-content-block .section-title {
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-content-block table,
html.clone-site.clone-dark .clone-inner-page .clone-content-block td,
html.clone-site.clone-dark .clone-inner-page .clone-content-block th {
  border-color: var(--sg-line) !important;
}

html.clone-site.clone-dark input:not([type="checkbox"]):not([type="radio"]),
html.clone-site.clone-dark select,
html.clone-site.clone-dark textarea {
  border-color: var(--sg-line) !important;
  background: var(--sg-white) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark input::placeholder,
html.clone-site.clone-dark textarea::placeholder {
  color: var(--sg-muted) !important;
}

html.clone-site.clone-dark .clone-site .fnav.fnav-mobile-fnav,
html.clone-site.clone-dark .fnav.fnav-mobile-fnav {
  border-top-color: var(--sg-line) !important;
  background: var(--sg-night) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark #mobile-nav {
  border-color: var(--sg-line) !important;
  background: var(--sg-paper) !important;
}

html.clone-site.clone-dark #mobile-nav .mobilenav_top {
  background: var(--sg-night-2) !important;
}

html.clone-site.clone-dark #mobile-nav li {
  border-bottom-color: var(--sg-line) !important;
}

html.clone-site.clone-dark #mobile-nav a,
html.clone-site.clone-dark #mobile-nav .dropdown-menu,
html.clone-site.clone-dark #mobile-nav .dropdown-menu a {
  background: var(--sg-paper) !important;
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark #mobile-nav .dropdown-menu a {
  background: var(--sg-paper-2) !important;
}

html.clone-site.clone-dark #mobile-nav a.clone-current,
html.clone-site.clone-dark #mobile-nav .clone-section-active > a {
  background: var(--sg-blue-weak) !important;
  color: #fff !important;
}

/* Keep the mobile theme control reachable below the account actions. */
@media (max-width: 768px) {
  /* The source mobile header leaves its toggle visibility-hidden; expose a real tap target. */
  .clone-site .header.el-menu .navbar-header .navbar-toggle,
  .clone-site .navbar-toggle {
    top: 12px !important;
    right: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2100 !important;
  }

  .clone-site #mobile-nav .mobilenav_top {
    position: relative !important;
    min-height: 164px !important;
    height: 164px !important;
    padding: 18px 20px 16px !important;
  }

  .clone-site #mobile-nav .mobilenav_top .clone-theme-toggle-mobile {
    display: inline-flex !important;
    margin: 0 !important;
    position: absolute !important;
    top: 122px !important;
    left: 20px !important;
    z-index: 2 !important;
  }

  .clone-site .clone-inner-page .clone-text-block .txt-column {
    padding-top: 24px !important;
  }

  .clone-site .clone-inner-page .clone-text-block .cl_caption > div:first-child,
  .clone-site .clone-inner-page .clone-text-block .cl_caption > div:first-child > div {
    height: 296px !important;
    min-height: 296px !important;
  }

  .clone-site .clone-inner-page .clone-text-block .cl_caption > div:first-child {
    transform: translateY(32px) !important;
  }
}

/* The source latest-list skin hard-codes near-black text; restore readable dark-theme contrast. */
html.clone-site.clone-dark [data-latest-color="black"] .latest-table,
html.clone-site.clone-dark [data-latest-color="black"] .latest-table * {
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark [data-latest-color="black"] .latest-table h5,
html.clone-site.clone-dark [data-latest-color="black"] .latest-table .lt-header {
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark [data-latest-color="black"] .latest-table hr {
  border-top-color: var(--sg-line) !important;
}

/* Inner pages also contain source content blocks that are not direct .element children. */
html.clone-site.clone-dark .clone-inner-page .clone-text-block,
html.clone-site.clone-dark .clone-inner-page .clone-text-block .container,
html.clone-site.clone-dark .clone-inner-page .clone-text-block .row {
  background: var(--sg-paper) !important;
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block .txt-column {
  background: transparent !important;
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block .cl_caption {
  background: transparent !important;
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block .cl_caption * {
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block .cl_caption .fsize22,
html.clone-site.clone-dark .clone-inner-page .clone-text-block .cl_caption .fsize22 * {
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-text-block .cl_caption .fsize13,
html.clone-site.clone-dark .clone-inner-page .clone-text-block .cl_caption .fsize17 {
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-page-element {
  border-color: var(--sg-line) !important;
  background: var(--sg-paper) !important;
  color: var(--sg-body) !important;
}

html.clone-site.clone-dark .clone-inner-page .clone-page-element .desc,
html.clone-site.clone-dark .clone-inner-page .clone-page-element .text-box,
html.clone-site.clone-dark .clone-inner-page .clone-page-element .fsize11,
html.clone-site.clone-dark .clone-inner-page .clone-page-element .fsize13,
html.clone-site.clone-dark .clone-inner-page .clone-page-element .fsize15,
html.clone-site.clone-dark .clone-inner-page .clone-page-element .fsize17,
html.clone-site.clone-dark .clone-inner-page .clone-page-element .fsize22 {
  color: var(--sg-body) !important;
}

/* Theme controls */
.clone-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* Reserve the dark-mode label ("라이트") in both states so the
     account/navigation row never reflows when the theme changes. */
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  flex: 0 0 84px;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius-sm) !important;
  background: var(--sg-paper-2) !important;
  color: var(--sg-body) !important;
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.clone-theme-toggle:hover,
.clone-theme-toggle:focus-visible {
  border-color: var(--sg-blue) !important;
  background: var(--sg-blue-weak) !important;
  color: var(--sg-blue-dark) !important;
}

.clone-theme-toggle-symbol {
  font-size: 16px;
  line-height: 1;
}

.clone-theme-toggle-text {
  display: inline-block;
  width: 3em;
  min-width: 3em;
  text-align: center;
  letter-spacing: -0.04em;
}

.clone-site #fixed-menu .clone-theme-toggle {
  height: 42px !important;
  min-height: 42px !important;
}

.clone-theme-toggle-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

html.clone-site.clone-dark .clone-theme-toggle {
  border-color: #38546a !important;
  background: #173751 !important;
  color: #e1effc !important;
}

@media (max-width: 768px) {
  .clone-theme-toggle-mobile {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    flex-basis: 100px;
    margin-top: 14px;
    border-color: rgba(255, 255, 255, 0.32) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
  }

  html.clone-site.clone-dark .clone-theme-toggle-mobile {
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }
}

/* Vision lead: keep the explanatory copy in its own grid track. The source
   title is intentionally large, so nowrap made its final words paint over
   the description on desktop widths. */
@media (min-width: 769px) {
  .clone-site .clone-page-vision .clone-content-lead h2 {
    font-size: clamp(34px, 3.2vw, 46px);
    white-space: normal !important;
    overflow-wrap: normal;
  }

  .clone-site .clone-page-vision .clone-content-lead p {
    align-self: center;
  }
}

/* Switch the header to its compact navigation before the desktop links run
   out of horizontal space. Keeping the desktop menu through 769px allowed
   its flex row to wrap outside the fixed-height header around 800–900px. */
@media (max-width: 1024px) {
  :root {
    --sg-header: 68px;
  }

  .clone-site .header.el-menu header > .container {
    display: block !important;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    height: var(--sg-header) !important;
    padding: 0 clamp(18px, 2.35vw, 24px) !important;
  }

  .clone-site .navbar-header.menu-logo-top {
    display: flex !important;
    position: relative !important;
    align-items: center;
    width: 100% !important;
    height: var(--sg-header) !important;
    padding: 0 !important;
  }

  .clone-site .navbar-header .navbar-brand,
  .clone-site #site-home {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
  }

  .clone-site #tpl-logo-img {
    max-width: 170px !important;
    height: 42px !important;
    max-height: 42px !important;
  }

  .clone-site .navbar-collapse.navbar-menu-sgmtv {
    display: none !important;
  }

  .clone-site .header.el-menu .navbar-header .navbar-toggle,
  .clone-site .navbar-toggle {
    display: inline-flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    float: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2100 !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    border-radius: var(--sg-radius-sm) !important;
    background: var(--sg-paper-2) !important;
  }

  .clone-site .navbar-toggle .icon-bar {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 0 !important;
    background: var(--sg-ink) !important;
  }

  .clone-site #mobile-nav {
    width: min(90vw, 390px) !important;
    max-width: 390px !important;
    padding: 0 0 26px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-left: 1px solid var(--sg-line);
    background: #fff !important;
    box-shadow: none !important;
  }

  .clone-site .dsgn-body.mobile-nav-active #mobile-nav {
    display: block !important;
  }

  .clone-site #mobile-nav .mobilenav_top {
    position: relative !important;
    min-height: 164px !important;
    height: 164px !important;
    padding: 18px 20px 16px !important;
    border: 0;
    background: var(--sg-blue-weak) !important;
  }

  .clone-site #mobile-nav .mobilenav_top .clone-theme-toggle-mobile {
    display: inline-flex !important;
    position: absolute !important;
    top: 122px !important;
    left: 20px !important;
    z-index: 2 !important;
    margin: 0 !important;
  }

  .clone-site #mobile-nav #tpl-menu,
  .clone-site #mobile-nav ul {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .clone-site #mobile-nav li,
  .clone-site #mobile-nav #tpl-menu > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    border-bottom: 1px solid var(--sg-line);
  }

  .clone-site #mobile-nav a,
  .clone-site #mobile-nav #tpl-menu > li > a {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    height: auto !important;
    min-height: 52px;
    padding: 14px 20px !important;
    color: var(--sg-ink) !important;
    font-family: var(--sg-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    background: #fff !important;
  }

  .clone-site #mobile-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #f8f9fa !important;
    box-shadow: none !important;
  }

  .clone-site #mobile-nav .dropdown-menu a {
    min-height: 48px;
    padding-left: 34px !important;
    font-size: 13px !important;
    background: #f8f9fa !important;
  }

  .clone-site #mobile-nav a.clone-current,
  .clone-site #mobile-nav .clone-section-active > a {
    color: var(--sg-blue-dark) !important;
    background: var(--sg-blue-weak) !important;
  }

  html.clone-site.clone-mobile-menu-open .header.el-menu .navbar-header .navbar-toggle,
  html.clone-site.clone-mobile-menu-open .navbar-toggle,
  .clone-site .dsgn-body.mobile-nav-active .navbar-toggle {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  html.clone-site.clone-mobile-menu-open,
  html.clone-site.clone-mobile-menu-open body,
  html.clone-site.clone-mobile-menu-open body .dsgn-body.mobile-nav-active {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.clone-site #mobile-body-overly #mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 12px;
    margin-right: 12px;
    border-radius: var(--sg-radius-sm);
  }
}
.clone-site .clone-page-invitation .userEL22227123 .fill {
  background-size: contain !important;
}

@media (min-width: 769px) {
  .clone-site .clone-page-invitation .userEL22227123.carousel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto !important;
    min-height: 600px !important;
    max-height: none !important;
  }

  .clone-site .clone-page-invitation .userEL22227123 .carousel-inner {
    width: 100%;
    min-height: 600px !important;
    max-height: none !important;
  }

  .clone-site .clone-page-invitation .userEL22227123 .fixed-box {
    display: flex;
    align-items: center;
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .clone-site .clone-page-invitation .userEL22227123 .inner-box {
    position: static;
    transform: none;
  }
}

.clone-site .clone-page-invitation .userEL22227123 .cl_caption,
.clone-site .clone-page-invitation .userEL22227123 .cl_caption * {
  word-break: keep-all !important;
  overflow-wrap: anywhere;
}

.clone-site .clone-page-invitation .clone-invitation-slide:focus-visible {
  outline: 2px solid #0f5099;
  outline-offset: 4px;
}

.clone-site .clone-page-invitation .carousel-indicators li {
  width: 28px;
  height: 28px;
  margin: 0 2px;
  border: 9px solid transparent;
  background: #91a2b8;
  background-clip: padding-box;
}

.clone-site .clone-page-invitation .carousel-indicators li.active {
  background-color: #0f5099;
}

html.clone-site.clone-dark #mobile-nav #tpl-menu > li > a {
  background: var(--sg-paper) !important;
  color: var(--sg-ink) !important;
}

html.clone-site.clone-dark #mobile-nav #tpl-menu > li.clone-section-active > a {
  background: var(--sg-blue-weak) !important;
}

html.clone-site.clone-mobile-menu-open .fnav {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .clone-site .clone-page-invitation .userEL22227123.carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .clone-site .clone-page-invitation .userEL22227123 .carousel-inner {
    grid-area: 1 / 1;
  }

  .clone-site .clone-page-invitation .userEL22227123 .fill {
    height: auto !important;
    max-height: 520px;
    aspect-ratio: 1;
  }

  .clone-site .clone-page-invitation .userEL22227123 .carousel-indicators {
    position: relative;
    grid-area: 1 / 1;
    align-self: end;
    top: auto;
    bottom: auto;
    margin-bottom: 12px;
  }

  .clone-site .clone-page-invitation .userEL22227123 .fixed-box {
    grid-area: 2 / 1;
  }
}

/* Public visitors have no account signup or posting controls. */
.tpl-forum-write[hidden] { display: none !important; }
.clone-footer-contact .clone-site-management { margin-top: 18px; }
.clone-footer-contact .clone-site-management a {
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 11px;
  font-weight: 400;
}

/* Preserve the editor's authored photo rows and original 690px canvas. */
.clone-article .tpl-forum-content:has(img.fr-fic) {
  width: min(100%, 690px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.clone-article .tpl-forum-content:has(img.fr-fic) :is(.fr-wrapper, .fr-element, .fr-view) {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

/* September 12, 2026: a quieter reading experience and visible mobile navigation. */
@font-face {
  font-family: "SG Maru Buri";
  src: url("/assets/fonts/maru-buri/MaruBuri-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --sg-heading-font: "SG Maru Buri", "Apple SD Gothic Neo", serif;
}

html.clone-site:not(.clone-dark) {
  --sg-paper: #fffefa;
  --sg-paper-2: #f4f3ed;
  --sg-ink: #233830;
  --sg-body: #46554e;
  --sg-muted: #59665e;
  --sg-line: #dce0d8;
  --sg-night: #203b35;
  --sg-blue: #315f57;
  --sg-blue-dark: #254f47;
  --sg-blue-weak: #eaf0e9;
  --sg-signal: #315f57;
}

.clone-home-page .dsgn-body,
.clone-home-hero,
.clone-home-album {
  background: var(--sg-paper) !important;
}

.clone-home-portal,
.clone-page-header {
  background: var(--sg-paper-2);
}

.clone-page-header .clone-shell { grid-template-columns: minmax(0, 1fr); }
.clone-page-mark { display: none; }
.clone-content-lead > span { font-size: 13px; }
.clone-site .clone-content-lead p { font-size: 17px !important; line-height: 1.8 !important; }

/* Accent text on the site's existing dark sections needs a light counterpart. */
.clone-worship-schedule,
.clone-page-people .clone-people-grid .gallery-item,
.clone-live-panel,
.clone-site .el-footer { --sg-signal: #c4dfd0; }

.clone-home-hero .clone-home-hero-message h1,
.clone-home-hero .clone-home-hero-message h1 strong,
.clone-section-lead h2,
.clone-page-header h1,
.clone-content-lead h2 {
  font-family: var(--sg-heading-font) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: -0.025em !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.clone-home-hero .clone-home-hero-message h1 {
  font-size: clamp(42px, 4.3vw, 61px);
  line-height: 1.4;
}

.clone-home-hero .clone-home-hero-message h1 strong { color: var(--sg-blue-dark); }
.clone-home-hero-message { padding-right: 18px; }
.clone-home-hero > .carousel-inner { border-radius: 12px 64px 12px 12px; }
.clone-home-kicker {
  padding: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.clone-home-hero .clone-home-hero-message > p {
  font-size: 18px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.clone-home-actions a { min-height: 52px; font-size: 16px; }
.clone-home-actions .clone-home-action-secondary:hover { background: var(--sg-paper-2) !important; }
.clone-home-meta dt { font-size: 14px; line-height: 1.5; }
.clone-home-meta dd { font-size: 16px; white-space: normal; word-break: keep-all; }

.clone-section-lead {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}
.clone-section-index { display: none; }
.clone-site .clone-section-lead p { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.clone-section-lead h2 { font-size: clamp(30px, 3vw, 38px) !important; line-height: 1.45 !important; }
.clone-section-lead div > span { margin-top: 12px; font-size: 16px; line-height: 1.75; word-break: keep-all; }
.clone-section-lead > a { min-height: 48px; font-size: 16px; }

.clone-portal-grid a { min-height: 164px; border-radius: 12px; padding: 26px; }
.clone-portal-grid a > span { display: none; }
.clone-portal-grid a strong { margin-top: 28px; font-weight: 600; letter-spacing: -0.02em; }
.clone-portal-grid a small { font-size: 16px; line-height: 1.65; word-break: keep-all; }
.clone-portal-grid a b { color: var(--sg-blue-dark); }
.clone-portal-grid a:hover,
.clone-portal-grid a:focus { border-color: var(--sg-blue); }

.clone-home-album .content-wrap,
.clone-home-album .latest-post:first-child .content-wrap { padding: 18px 16px !important; }
.clone-home-album .latest-post-list-title,
.clone-home-album .latest-post-list-title a,
.clone-home-album .latest-post:first-child .latest-post-list-title,
.clone-home-album .latest-post:first-child .latest-post-list-title a { font-size: 17px !important; line-height: 1.65 !important; }
.clone-home-latest-compact .latest-post { padding: 16px 0 !important; }
.clone-home-latest-compact .item-title,
.clone-home-latest-compact .latest-post-list-title,
.clone-home-latest-compact .title,
.clone-home-latest-compact a { font-size: 17px !important; line-height: 1.7 !important; }
.clone-home-latest-compact .latest-post-list-date { font-size: 13px !important; }
.clone-home-latest-compact :is(.latest-title, .lt-header, h3, h5) { font-size: 23px !important; letter-spacing: -0.02em; }

.clone-footer-identity p,
.clone-footer-contact p,
.clone-footer-links a { font-size: 16px !important; line-height: 1.7; }
.clone-footer-contact a[href^="tel:"] { font-size: 21px; }

/* Controls are progressively enhanced; desktop keeps the complete content grid. */
.clone-album-navigation[hidden],
.clone-generation-navigation[hidden] { display: none !important; }
.clone-site .clone-home-main .clone-carousel-hint {
  margin: 0 0 12px;
  color: var(--sg-muted);
  font-family: var(--sg-font);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}
.clone-carousel-controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.clone-site .clone-carousel-button,
.clone-site .clone-generation-tab {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--sg-line);
  border-radius: 8px;
  color: var(--sg-ink);
  background: var(--sg-white);
  font-family: var(--sg-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  touch-action: manipulation;
}
.clone-site .clone-carousel-button:not(:disabled):hover,
.clone-site .clone-generation-tab:hover { border-color: var(--sg-blue); background: var(--sg-blue-weak); }
.clone-site .clone-carousel-button:disabled { color: var(--sg-muted); background: var(--sg-paper-2); cursor: default; opacity: 0.6; }
.clone-carousel-count { min-width: 58px; text-align: center; color: var(--sg-body); font-size: 16px; font-variant-numeric: tabular-nums; }
.clone-site .clone-generation-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.clone-site .clone-generation-tab { padding: 10px 8px; }
.clone-site .clone-generation-tab[aria-selected="true"] { border-color: var(--sg-blue); background: var(--sg-blue); color: #fff; }
.clone-site .clone-carousel-button:focus-visible,
.clone-site .clone-generation-tab:focus-visible,
.clone-portal-grid a:focus-visible {
  outline: 3px solid var(--sg-blue-dark) !important;
  outline-offset: 4px;
}

@media (min-width: 1025px) {
  .clone-site #tpl-menu > li > a { font-size: 16px !important; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .clone-home-meta { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; padding-top: 12px; }
  .clone-home-meta > div { display: flex; gap: 14px; align-items: baseline; padding: 0; border: 0; }
  .clone-home-meta dt { min-width: 100px; margin: 0; }
  .clone-home-hero .clone-home-hero-message h1 { font-size: clamp(32px, 4.1vw, 45px); }
  .clone-home-hero .clone-home-hero-message > p { font-size: 17px; margin-top: 16px; }
  .clone-home-actions { flex-wrap: wrap; margin-top: 18px; }
  .clone-home-actions a { padding-inline: 14px; gap: 10px; }
  .clone-home-kicker { margin-bottom: 14px; }
  .clone-home-latest-compact .container > .row > [class*="col-"] { padding: 24px 18px !important; }
}

@media (max-width: 768px) {
  .clone-home-hero .clone-home-hero-message h1 { font-size: clamp(32px, 8.5vw, 46px); line-height: 1.45; }
  .clone-home-hero-message { padding-right: 0; }
  .clone-home-kicker { margin-bottom: 18px; font-size: 14px; }
  .clone-home-hero .clone-home-hero-message > p { font-size: 17px; line-height: 1.8; margin-top: 18px; }
  .clone-home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .clone-home-actions a { min-height: 54px; padding: 10px 8px; font-size: 16px; gap: 8px; }
  .clone-home-actions a span { font-size: 18px; }
  .clone-home-meta { margin-top: 24px; padding-top: 16px; }
  .clone-home-meta > div { padding-inline: 10px; }
  .clone-home-meta dt { font-size: 12px; }
  .clone-home-meta dd { font-size: 15px; }
  .clone-home-hero > .carousel-inner { border-radius: 10px 40px 10px 10px; }
  .clone-home-portal { padding: 56px 0; }
  .clone-home-latest { padding: 56px 0 !important; }
  .clone-section-lead { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 28px; }
  .clone-site .clone-section-lead p { font-size: 14px; margin-bottom: 8px; }
  .clone-section-lead h2 { font-size: clamp(27px, 7.3vw, 34px) !important; line-height: 1.5 !important; }
  .clone-section-lead div > span { margin-top: 10px; font-size: 16px; }
  .clone-section-lead > a { margin: 0; padding: 12px 16px; }

  .clone-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 12px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .clone-portal-grid a { min-height: 148px; padding: 18px 15px; }
  .clone-portal-grid a b { top: 15px; right: 15px; font-size: 19px; }
  .clone-portal-grid a strong { margin-top: 24px; font-size: 19px; line-height: 1.5; }
  .clone-portal-grid a small { margin-top: 8px; font-size: 15px; line-height: 1.6; }

  .clone-album-navigation,
  .clone-generation-navigation { display: block; width: 100%; margin: 0 0 20px; }
  .clone-home-album .latest-table-loop {
    width: 100% !important;
    grid-auto-columns: 100%;
    padding: 0 0 10px !important;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }
  .clone-home-album .latest-post { scroll-snap-stop: always; }
  .clone-home-album .latest-post-list-title,
  .clone-home-album .latest-post-list-title a,
  .clone-home-album .latest-post:first-child .latest-post-list-title,
  .clone-home-album .latest-post:first-child .latest-post-list-title a { font-size: 18px !important; }
  .clone-home-latest-compact .container > .row {
    width: 100%;
    grid-auto-columns: 100%;
    gap: 12px;
    padding: 0 0 10px;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }
  .clone-home-latest-compact .container > .row > [class*="col-"],
  .clone-home-latest-compact .container > .row > [class*="col-"]:nth-child(2) {
    min-width: 0;
    min-height: 350px;
    padding: 24px 20px !important;
    scroll-snap-stop: always;
  }
  .clone-home-latest-compact .latest-post { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .clone-home-latest-compact .latest-post-list-title,
  .clone-home-latest-compact .latest-post-list-title a {
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-overflow: clip !important;
  }
  .clone-site #mobile-nav a,
  .clone-site #mobile-nav #tpl-menu > li > a { font-size: 17px !important; }
  .clone-site #mobile-nav .dropdown-menu a { font-size: 16px !important; }
}

@media (max-width: 350px) {
  .clone-home-actions { grid-template-columns: 1fr; }
  .clone-carousel-controls { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .clone-site .clone-carousel-button { min-width: 0; padding-inline: 8px; gap: 6px; }
  .clone-home-meta { grid-template-columns: 1fr; gap: 8px; }
  .clone-home-meta > div { display: flex; gap: 14px; border: 0; padding: 0; }
  .clone-home-meta dt { min-width: 96px; }
  .clone-portal-grid { gap: 10px; }
  .clone-portal-grid a { padding: 16px 12px; }
  .clone-portal-grid a strong { font-size: 17px; }
  .clone-portal-grid a small { font-size: 14px; }
  .clone-site .clone-generation-tab { font-size: 16px; padding-inline: 6px; }
}

.clone-site .clone-content-lead p { word-break: keep-all !important; overflow-wrap: break-word; }
html.clone-site.clone-dark .clone-generation-tab[aria-selected="true"] { background: #245c9e; border-color: #8bc0ff; }
@media (max-width: 768px) { .clone-site .fnav.fnav-mobile-fnav a { font-size: 15px !important; } }

/* The opening message uses a clear Gothic face for a steady first impression. */
.clone-home-hero .clone-home-hero-message h1,
.clone-home-hero .clone-home-hero-message h1 strong {
  font-family: var(--sg-font) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.035em !important;
}

/* Keep the lettering on the right side of the church photograph in view. */
.clone-home-hero .carousel-inner > .item,
.clone-home-hero .carousel-inner > .item > div,
.clone-home-hero .gallery-view,
.clone-home-hero .gallery-view > div {
  background-position: right center !important;
}

/* September 12 reference redesign: photography, clear Gothic type and direct navigation. */
:root { --sg-heading-font: var(--sg-font); --sg-header: 88px; }
html.clone-site:not(.clone-dark) {
  --sg-paper: #fff;
  --sg-paper-2: #f5f7fa;
  --sg-ink: #1c2736;
  --sg-body: #485566;
  --sg-muted: #647184;
  --sg-line: #e0e6ed;
  --sg-night: #132d4c;
  --sg-night-2: #1b3b61;
  --sg-blue: #225b9a;
  --sg-blue-dark: #16477d;
  --sg-blue-weak: #edf3fa;
  --sg-signal: #225b9a;
}
.clone-site .clone-home-main,
.clone-site .clone-home-main :is(p, a, span, strong, small, dt, dd, h1, h2, h3, h5, button),
.clone-site .clone-footer-brand { font-family: var(--sg-font) !important; }
.clone-site .header.el-menu { height: var(--sg-header) !important; min-height: var(--sg-header) !important; }
.clone-site .header.el-menu .container { height: var(--sg-header) !important; }
.clone-site .header.el-menu .navbar-brand img { max-height: 53px !important; }
.clone-site #tpl-menu > li > a { font-size: 17px !important; font-weight: 600 !important; }
.clone-site .clone-theme-toggle { border-radius: 4px; }

/* A wide photograph carries the opening message, with a stable right focal point. */
.clone-home-hero {
  position: relative;
  height: 620px !important;
  min-height: 620px !important;
  border: 0;
  isolation: isolate;
  background: #142d47 !important;
}
.clone-home-hero > .carousel-inner {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  background: #142d47;
}
.clone-home-hero .carousel-inner > .item,
.clone-home-hero .carousel-inner > .item > div,
.clone-home-hero .gallery-view,
.clone-home-hero .gallery-view > div {
  min-height: 0 !important;
  height: 100% !important;
  border-radius: 0;
  background-position: right center !important;
}
.clone-home-hero .carousel-inner::after {
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(10, 27, 47, .87) 0%, rgba(10, 27, 47, .67) 33%, rgba(10, 27, 47, .12) 69%, rgba(10, 27, 47, .06) 100%) !important;
}
.clone-home-hero .clone-home-hero-message {
  z-index: 4;
  inset: 0 auto 0 max(32px, calc((100vw - var(--sg-shell)) / 2));
  justify-content: center;
  width: min(590px, 51vw);
  padding: 48px 0;
  color: #fff;
}
.clone-home-kicker { display: none !important; }
.clone-home-hero .clone-home-hero-message h1,
.clone-home-hero .clone-home-hero-message h1 strong {
  color: #fff !important;
  font-family: var(--sg-font) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -.035em !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}
.clone-home-hero .clone-home-hero-message h1 { font-size: clamp(46px, 4.2vw, 62px); }
.clone-home-hero .clone-home-hero-message > p {
  max-width: 450px;
  margin-top: 26px;
  color: rgba(255, 255, 255, .94) !important;
  font-size: 19px !important;
  font-weight: 400;
  line-height: 1.75 !important;
  letter-spacing: -.015em;
}
.clone-home-hero .clone-home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.clone-home-hero .clone-home-actions a {
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 3px;
  color: #fff !important;
  background: rgba(11, 34, 58, .14) !important;
  font-size: 16px;
  font-weight: 600;
}
.clone-home-hero .clone-home-actions .clone-home-action-primary { color: #173e68 !important; background: #fff !important; border-color: #fff; }
.clone-home-hero .clone-home-actions a:hover,
.clone-home-hero .clone-home-actions a:focus-visible { color: #173e68 !important; background: #eef4fa !important; }
.clone-home-meta { display: none !important; }

/* The four practical destinations remain visible without a horizontal gesture. */
.clone-home-portal { padding: 0 !important; border-bottom: 1px solid var(--sg-line); background: var(--sg-paper); }
.clone-home-portal .clone-section-lead { display: none; }
.clone-portal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 0; }
.clone-portal-grid a,
.clone-portal-grid a:first-child {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 17px;
  row-gap: 5px;
  min-height: 132px;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--sg-line);
  border-radius: 0;
  background: var(--sg-paper);
  color: var(--sg-ink);
}
.clone-portal-grid a:first-child { border-left: 1px solid var(--sg-line); }
.clone-portal-grid a::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  background: var(--sg-blue-dark);
  mask: var(--quick-icon) center / contain no-repeat;
  -webkit-mask: var(--quick-icon) center / contain no-repeat;
}
.clone-portal-grid a:nth-child(1) { --quick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 42V23l16-11 16 11v19H8ZM20 42V30h8v12M24 3v10M19 7h10M8 28H3v14h5m32-14h5v14h-5'/%3E%3C/svg%3E"); }
.clone-portal-grid a:nth-child(2) { --quick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 13c-5-5-12-6-19-4v29c7-2 14-1 19 4 5-5 12-6 19-4V9c-7-2-14-1-19 4ZM24 13v29M10 16c3-1 6 0 9 2m-9 6c3-1 6 0 9 2m10-8c3-2 6-3 9-2m-9 10c3-2 6-3 9-2'/%3E%3C/svg%3E"); }
.clone-portal-grid a:nth-child(3) { --quick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='40' height='29' rx='3'/%3E%3Cpath d='m20 15 12 7-12 7V15ZM24 36v6m-8 0h16'/%3E%3C/svg%3E"); }
.clone-portal-grid a:nth-child(4) { --quick-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M39 19c0 12-15 25-15 25S9 31 9 19a15 15 0 1 1 30 0Z'/%3E%3Ccircle cx='24' cy='19' r='5'/%3E%3C/svg%3E"); }
.clone-portal-grid a > span,
.clone-portal-grid a b { display: none; }
.clone-portal-grid a strong { grid-column: 2; margin: 0; font-size: 20px; font-weight: 650; line-height: 1.45; letter-spacing: -.025em; }
.clone-portal-grid a small { grid-column: 2; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; opacity: 1; }
.clone-portal-grid a:hover,
.clone-portal-grid a:focus-visible { background: var(--sg-blue-weak); }

@media (min-width: 1051px) {
  .clone-portal-grid a,
  .clone-portal-grid a:first-child {
    grid-template-columns: 40px max-content;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 1025px) and (max-width: 1050px) {
  .clone-portal-grid a:first-child { grid-template-columns: 1fr; }
}

/* Consistent section hierarchy and photographs without ornamental frames. */
.clone-home-latest { padding: 86px 0 92px !important; }
.clone-home-album { background: var(--sg-paper) !important; }
.clone-section-lead { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-bottom: 32px; }
.clone-site .clone-section-lead p { margin-bottom: 9px; color: var(--sg-blue-dark); font-size: 15px; line-height: 1.5; letter-spacing: 0; }
.clone-section-lead.clone-album-lead > div > p,
.clone-section-lead.clone-generation-lead > div > p { margin-bottom: 4px; line-height: 1.3; }
.clone-section-lead h2,
.clone-page-header h1,
.clone-content-lead h2 {
  font-family: var(--sg-font) !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
}
.clone-section-lead h2 { color: var(--sg-ink) !important; font-size: clamp(28px, 2.8vw, 36px) !important; line-height: 1.25 !important; }
.clone-section-lead div > span { margin-top: 13px; color: var(--sg-muted); font-size: 16px; line-height: 1.7; }
.clone-section-lead.clone-album-lead div > span,
.clone-section-lead.clone-generation-lead div > span { margin-top: 4px; line-height: 1.2; }
.clone-section-lead > a { min-height: 46px; padding: 10px 0 10px 18px; border-radius: 0; background: transparent; color: var(--sg-ink); font-size: 15px; }
.clone-home-album .latest-table-loop { gap: 24px; grid-auto-rows: 225px; }
.clone-home-album .latest-post,
.clone-home-album .latest-post:first-child { border-radius: 4px; border: 0 !important; background: var(--sg-paper) !important; }
.clone-home-album .thumb-wrap,
.clone-home-album .latest-post-list-thumb,
.clone-home-album .latest-post-list-thumb a { border-radius: 4px; }
.clone-home-album .thumb-wrap img { filter: none; }
.clone-home-album .latest-post:hover .thumb-wrap img { filter: none; transform: scale(1.02); }
.clone-home-album .content-wrap,
.clone-home-album .latest-post:first-child .content-wrap { padding: 16px 0 0 !important; border: 0; background: var(--sg-paper) !important; }
.clone-home-album .latest-post-list-title,
.clone-home-album .latest-post-list-title a { color: var(--sg-ink) !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.55 !important; }
.clone-home-album .latest-post:first-child .latest-post-list-title,
.clone-home-album .latest-post:first-child .latest-post-list-title a { font-size: 21px !important; }
.clone-home-latest-compact { border-top: 1px solid var(--sg-line); background: var(--sg-paper-2) !important; }
.clone-home-latest-compact .container > .row { gap: 28px; }
.clone-home-latest-compact .container > .row > [class*="col-"],
.clone-home-latest-compact .container > .row > [class*="col-"]:nth-child(2) { padding: 28px !important; border: 1px solid var(--sg-line) !important; border-radius: 4px; background: var(--sg-paper) !important; }
.clone-home-latest-compact .lt-header,
.clone-home-latest-compact .latest-title,
.clone-home-latest-compact h3,
.clone-home-latest-compact h5 { color: var(--sg-ink) !important; border-bottom: 2px solid var(--sg-blue); font-size: 23px !important; }
.clone-home-latest-compact .latest-post { padding: 16px 0 !important; }
.clone-home-latest-compact .latest-post-list-title a { color: var(--sg-ink) !important; font-weight: 500 !important; }
.clone-home-latest-compact .latest-post-list-date { color: var(--sg-muted); }
.clone-site .clone-carousel-button,
.clone-site .clone-generation-tab { border-radius: 4px; }
.clone-site .clone-generation-tab[aria-selected="true"] { background: var(--sg-blue-dark); border-color: var(--sg-blue-dark); color: #fff; }
.clone-page-header { border-bottom: 1px solid var(--sg-line); background: var(--sg-paper-2); }
.clone-page-header h1 { line-height: 1.2 !important; }

html.clone-site:not(.clone-dark) .el-footer { --sg-signal: #225b9a; border-top: 1px solid var(--sg-line); background: #f8f9fb !important; color: #536174 !important; }
html.clone-site:not(.clone-dark) .clone-footer-identity img { filter: none; }
html.clone-site:not(.clone-dark) .clone-footer-identity p,
html.clone-site:not(.clone-dark) .clone-footer-contact p { color: #596a7d !important; }
html.clone-site:not(.clone-dark) .clone-footer-contact > a { color: #183d68 !important; }
html.clone-site:not(.clone-dark) .clone-footer-links a { color: #304861 !important; border-color: #d6e0ea; border-radius: 3px; }
html.clone-site:not(.clone-dark) .el-footer :is(.copyright, .copyright p, .cl_caption, .cl_caption p) { color: #6b7888 !important; }
html.clone-site:not(.clone-dark) .el-footer .clone-footer-identity p,
html.clone-site:not(.clone-dark) .el-footer .text,
html.clone-site:not(.clone-dark) .el-footer .text :is(span, a, em) { color: #5c6c7f !important; }
html.clone-site:not(.clone-dark) .el-footer .clone-site-management a { color: #647184 !important; font-size: 13px; }
html.clone-site:not(.clone-dark) .el-footer .line,
html.clone-site:not(.clone-dark) .clone-footer-brand { border-color: #dfe5ed !important; }
.clone-site .clone-footer-brand { padding-top: 54px; padding-bottom: 40px; }

html.clone-site:not(.clone-dark) #mobile-nav .mobilenav_top,
html.clone-site:not(.clone-dark) #mobile-nav .mobilenav_top :is(a, span, p, button) { color: #183d68 !important; }
html.clone-site:not(.clone-dark) #mobile-nav .mobilenav_top .clone-theme-toggle-mobile { border-color: #a8bfd7 !important; background: #fff !important; }
html.clone-site.clone-dark .fnav.fnav-mobile-fnav :is(a, i, span) { color: #e5eff8 !important; }
html.clone-site.clone-dark .fnav.fnav-mobile-fnav .fnav-item + .fnav-item { border-left-color: #40576b; }
.clone-home-latest-compact .latest-table-header > .lt-header + hr { display: none; }

@media (max-width: 1024px) {
  :root { --sg-header: 72px; }
  .clone-site #mobile-nav .mobilenav_top #fixed-menu:empty { display: none !important; }
  .clone-site #mobile-nav .mobilenav_top:has(#fixed-menu:empty) {
    display: flex;
    align-items: center;
    min-height: 60px !important;
    height: auto !important;
    padding: 8px 20px !important;
  }
  .clone-site #mobile-nav .mobilenav_top:has(#fixed-menu:empty) .clone-theme-toggle-mobile { position: static !important; min-height: 44px; margin: 0 !important; }
}

@media (min-width: 769px) {
  .clone-home-album .latest-table-loop { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: auto; gap: 24px; }
  .clone-home-album .latest-post:first-child { grid-column: 1; grid-row: 1 / 3; }
  .clone-home-album .latest-post:not(:first-child) .thumb-wrap,
  .clone-home-album .latest-post:not(:first-child) .latest-post-list-thumb,
  .clone-home-album .latest-post:not(:first-child) .latest-post-list-thumb a { aspect-ratio: 16 / 9; }
  .clone-home-album .content-wrap { align-items: start; min-height: 62px; }
}

@media (min-width: 769px) and (max-width: 1050px) {
  .clone-home-hero { height: 560px !important; min-height: 560px !important; }
  .clone-home-hero .clone-home-hero-message { width: 56vw; }
  .clone-home-hero .clone-home-hero-message h1 { font-size: 46px; }
  .clone-portal-grid a,
  .clone-portal-grid a:first-child { grid-template-columns: 1fr; justify-items: center; padding: 18px 12px; text-align: center; }
  .clone-portal-grid a::before { grid-column: 1; grid-row: 1; margin-bottom: 10px; }
  .clone-portal-grid a strong,
  .clone-portal-grid a small { grid-column: 1; }
  .clone-portal-grid a strong { font-size: 19px; }
}
@media (max-width: 768px) {
  .clone-site .header.el-menu,
  .clone-site .header.el-menu .container { height: 72px !important; min-height: 72px !important; }
  .clone-site .header.el-menu .navbar-brand img { max-height: 42px !important; }
  .clone-site .clone-shell,
  .clone-site .container { width: calc(100% - 40px) !important; }
  html.clone-site body.clone-home-page .clone-home-hero { display: block !important; height: 520px !important; min-height: 520px !important; }
  html.clone-site body.clone-home-page .clone-home-hero > .carousel-inner { position: absolute !important; inset: 0 !important; height: 100% !important; width: 100% !important; margin: 0; border-radius: 0; }
  .clone-home-hero .carousel-inner::after { background: linear-gradient(180deg, rgba(11, 29, 48, .85), rgba(11, 29, 48, .73) 45%, rgba(11, 29, 48, .22) 100%) !important; }
  html.clone-site body.clone-home-page .clone-home-hero-message { position: absolute; inset: 0 24px auto; width: auto; min-height: 0; margin: 0; padding: 54px 0 0; }
  .clone-home-hero .clone-home-hero-message h1 { font-size: clamp(32px, 8.8vw, 45px); line-height: 1.2; }
  .clone-home-hero .clone-home-hero-message > p { max-width: 410px; margin-top: 22px; font-size: 17px !important; line-height: 1.7 !important; }
  .clone-home-hero .clone-home-actions { flex-wrap: nowrap; gap: 10px; margin-top: 26px; }
  .clone-home-hero .clone-home-actions a { min-height: 52px; padding: 13px 15px; font-size: 16px; }
  .clone-home-portal { padding: 0; }
  .clone-home-portal .clone-shell { width: 100% !important; }
  .clone-portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; }
  .clone-portal-grid a,
  .clone-portal-grid a:first-child { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; min-height: 100px; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--sg-line); }
  .clone-portal-grid a:nth-child(odd) { border-right: 1px solid var(--sg-line); }
  .clone-portal-grid a:nth-child(n+3) { border-bottom: 0; }
  .clone-portal-grid a::before { width: 30px; height: 30px; }
  .clone-portal-grid a strong { font-size: 17px; margin: 0; line-height: 1.5; }
  .clone-portal-grid a small { display: none; }
  .clone-home-latest { padding: 50px 0 54px !important; }
  .clone-section-lead { gap: 16px; margin-bottom: 25px; }
  .clone-site .clone-section-lead p { font-size: 14px; margin-bottom: 8px; }
  .clone-section-lead h2 { font-size: 28px !important; line-height: 1.3 !important; }
  .clone-section-lead div > span { margin-top: 11px; font-size: 16px; }
  .clone-section-lead > a { padding-left: 0; }
  .clone-home-album .latest-table-loop { gap: 16px; grid-auto-columns: 100%; grid-auto-rows: auto; }
  .clone-home-album .latest-post,
  .clone-home-album .latest-post:first-child { border-radius: 0; }
  .clone-home-album .content-wrap,
  .clone-home-album .latest-post:first-child .content-wrap { padding: 16px 0 4px !important; }
  .clone-home-album .latest-post-list-title,
  .clone-home-album .latest-post-list-title a,
  .clone-home-album .latest-post:first-child .latest-post-list-title,
  .clone-home-album .latest-post:first-child .latest-post-list-title a { font-size: 18px !important; }
  .clone-home-latest-compact .container > .row { gap: 16px; }
  .clone-home-latest-compact .container > .row > [class*="col-"],
  .clone-home-latest-compact .container > .row > [class*="col-"]:nth-child(2) { padding: 24px 20px !important; border-radius: 4px; }
  .clone-site .clone-footer-brand { padding-top: 42px; padding-bottom: 32px; }
}
@media (min-width: 481px) and (max-width: 768px) {
  .clone-home-hero .clone-home-hero-message > p,
  .clone-home-hero .clone-home-actions { max-width: 350px; }
}
@media (max-width: 480px) {
  .clone-home-hero .carousel-inner > .item > div,
  .clone-home-hero .gallery-view,
  .clone-home-hero .gallery-view > div {
    background-size: auto 275px !important;
    background-position: right bottom !important;
    background-color: #142d47 !important;
    background-repeat: no-repeat !important;
  }
  .clone-home-hero .carousel-inner::after { background: linear-gradient(180deg, #142d47 0%, rgba(20, 45, 71, .98) 40%, rgba(20, 45, 71, .18) 70%, transparent 100%) !important; }
}
@media (max-width: 350px) {
  html.clone-site body.clone-home-page .clone-home-hero-message { left: 20px; right: 20px; }
  .clone-home-hero .clone-home-actions a { padding-inline: 12px; font-size: 14px; }
  .clone-portal-grid { padding: 0; }
  .clone-portal-grid a,
  .clone-portal-grid a:first-child { grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding-inline: 8px; }
  .clone-portal-grid a::before { width: 25px; height: 25px; }
  .clone-portal-grid a strong { font-size: 16px; }
  .clone-portal-grid a small { font-size: 11px; }
}

/* Mobile opening layout: a complete message block followed by the photograph. */
@media (max-width: 768px) {
  html.clone-site body.clone-home-page .clone-home-hero {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    background: var(--sg-paper) !important;
  }
  html.clone-site body.clone-home-page .clone-home-hero-message {
    position: relative;
    inset: auto;
    order: 0;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 30px 24px 28px;
    align-items: center;
    text-align: center;
    color: var(--sg-ink);
  }
  html.clone-site body.clone-home-page .clone-home-hero-message h1,
  html.clone-site body.clone-home-page .clone-home-hero-message h1 strong {
    color: var(--sg-ink) !important;
    line-height: 1.2;
    text-shadow: none;
  }
  html.clone-site body.clone-home-page .clone-home-hero-message h1 {
    margin: 0;
    font-size: clamp(34px, 9.8vw, 42px);
    text-align: center;
  }
  html.clone-site body.clone-home-page .clone-home-hero-message > p {
    width: 100%;
    max-width: 310px;
    margin: 16px 0 0;
    color: var(--sg-body) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    text-align: center;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  html.clone-site body.clone-home-page .clone-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 360px;
    gap: 10px;
    margin: 22px 0 0;
  }
  html.clone-site body.clone-home-page .clone-home-actions a {
    min-width: 0;
    min-height: 50px;
    padding: 12px 8px;
    border: 1px solid var(--sg-blue) !important;
    border-radius: 4px;
    background: transparent !important;
    color: var(--sg-blue) !important;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
  }
  html.clone-site body.clone-home-page .clone-home-actions a span { display: none; }
  html.clone-site.clone-dark body.clone-home-page .clone-home-actions { --sg-blue-dark: #245c9e; }
  html.clone-site body.clone-home-page .clone-home-actions .clone-home-action-primary {
    border-color: var(--sg-blue-dark) !important;
    background: var(--sg-blue-dark) !important;
    color: #fff !important;
  }
  html.clone-site body.clone-home-page .clone-home-actions a:hover,
  html.clone-site body.clone-home-page .clone-home-actions a:focus-visible {
    border-color: var(--sg-blue-dark) !important;
    background: var(--sg-blue-dark) !important;
    color: #fff !important;
  }
  html.clone-site body.clone-home-page .clone-home-hero > .carousel-inner {
    position: relative !important;
    inset: auto !important;
    order: 1;
    flex: none;
    width: 100% !important;
    height: clamp(190px, 56.25vw, 320px) !important;
    margin: 0 !important;
    overflow: hidden;
  }
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner::after { display: none !important; }
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner > .item,
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner > .item > div,
  html.clone-site body.clone-home-page .clone-home-hero .gallery-view,
  html.clone-site body.clone-home-page .clone-home-hero .gallery-view > div {
    height: 100% !important;
    min-height: 0 !important;
    background-size: cover !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    opacity: 1;
    filter: none;
  }
}
@media (max-width: 350px) {
  html.clone-site body.clone-home-page .clone-home-hero-message { padding: 28px 20px 26px; }
}

/* Mobile theme switch: an independent tap target above the bottom shortcuts. */
html.clone-site body > .clone-theme-toggle-mobile {
  display: none !important;
}

@media (max-width: 1024px) {
  html.clone-site body > .clone-theme-toggle-mobile {
    display: inline-flex !important;
    position: fixed !important;
    z-index: 1190;
    top: auto !important;
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 48px !important;
    min-height: 48px !important;
    flex: 0 0 48px;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--sg-line) !important;
    border-radius: 50% !important;
    background: var(--sg-paper) !important;
    color: var(--sg-ink) !important;
    box-shadow: 0 3px 12px rgba(7, 21, 34, 0.16);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
  }

  .clone-theme-toggle-mobile .clone-theme-toggle-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
  }

  .clone-theme-toggle-mobile svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .clone-theme-toggle-mobile[aria-pressed="false"] .clone-theme-icon-sun,
  .clone-theme-toggle-mobile[aria-pressed="true"] .clone-theme-icon-moon {
    display: none;
  }

  html.clone-site body > .clone-theme-toggle-mobile:focus-visible {
    outline: 3px solid var(--sg-blue) !important;
    outline-offset: 3px;
  }

  html.clone-site.clone-mobile-menu-open body > .clone-theme-toggle-mobile {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.clone-site #mobile-nav .mobilenav_top {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 20px !important;
  }

  html.clone-site #mobile-nav .mobilenav_top #fixed-menu {
    display: grid !important;
    position: static !important;
    inset: auto !important;
    float: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.clone-site #mobile-nav .mobilenav_top #fixed-menu > li {
    float: none !important;
    min-width: 0;
    height: auto !important;
    min-height: 44px;
    margin: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html.clone-site #mobile-nav .mobilenav_top #fixed-menu > .clone-member-chip {
    grid-column: 1 / -1;
  }

  html.clone-site.clone-dark #mobile-nav .mobilenav_top #fixed-menu {
    background: transparent !important;
  }

  html.clone-site.clone-dark #mobile-nav .mobilenav_top #fixed-menu > li {
    border-color: var(--sg-line) !important;
    background: var(--sg-paper) !important;
  }

  html.clone-site.clone-dark #mobile-nav .mobilenav_top #fixed-menu :is(a, button, .clone-member-chip span) {
    background: transparent !important;
    color: var(--sg-body) !important;
  }

  html.clone-site #mobile-nav .mobilenav_top.clone-mobile-account-empty {
    display: none !important;
  }

  html.clone-site #mobile-nav .clone-theme-toggle-item {
    display: none !important;
  }
}

@media (max-width: 768px) {
  html.clone-site body > .clone-theme-toggle-mobile {
    bottom: calc(58px + 12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
/* Shared inner-page spacing: size titles to their content. */
.clone-inner-page .clone-page-header { height: auto; }
.clone-inner-page .clone-page-heading { padding-top: 30px; padding-bottom: 30px; }
.clone-inner-page .clone-breadcrumb { margin-bottom: 12px; }

.clone-inner-page .clone-page-element:where(:not(.clone-forum-list,.clone-live-panel,[data-type="showcase"])) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.clone-site .clone-inner-page .clone-page-element:where(:not(.clone-forum-list,.clone-live-panel,[data-type="showcase"])) > .container,
.clone-site .clone-inner-page .clone-page-element:where(:not(.clone-forum-list,.clone-live-panel,[data-type="showcase"])) .section > .container {
  padding-top: 40px !important;
  padding-bottom: 48px !important;
}
.clone-site .clone-inner-page .clone-forum-list { padding-top: 40px !important; padding-bottom: 48px !important; }
.clone-site .clone-inner-page .clone-forum-list > .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.clone-site .clone-inner-page .clone-content-lead { margin-bottom: 28px; padding-bottom: 22px; }
.clone-site .clone-inner-page .clone-content-lead h2 { margin-bottom: 0 !important; }

/* Give album captions one vertical center within each row. */
.clone-home-album .thumb-wrap { margin-bottom: 0 !important; }
.clone-home-album .content-wrap,
.clone-home-album .latest-post:first-child .content-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 100%;
  min-height: 72px;
  margin-top: auto !important;
  padding: 16px 20px !important;
}
@media (min-width: 769px) and (max-width: 1024px) {
  .clone-home-album .content-wrap,
  .clone-home-album .latest-post:first-child .content-wrap { min-height: 88px; }
}
@media (max-width: 360px) {
  .clone-home-album .content-wrap,
  .clone-home-album .latest-post:first-child .content-wrap { min-height: 96px; }
}

@media (max-width: 768px) {
  .clone-inner-page .clone-page-heading { padding-top: 22px; padding-bottom: 22px; }
  .clone-inner-page .clone-breadcrumb { margin-bottom: 8px; }
  .clone-site .clone-inner-page .clone-page-element:where(:not(.clone-forum-list,.clone-live-panel,[data-type="showcase"])) > .container,
  .clone-site .clone-inner-page .clone-page-element:where(:not(.clone-forum-list,.clone-live-panel,[data-type="showcase"])) .section > .container {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
  }
  .clone-site .clone-inner-page .clone-location-panel > .container { padding-top: 0 !important; padding-bottom: 0 !important; }
  .clone-site .clone-inner-page .clone-forum-list { padding-top: 28px !important; padding-bottom: 32px !important; }
  .clone-site .clone-inner-page .clone-content-lead { gap: 8px; margin-bottom: 20px; padding-bottom: 18px; }
}

/* Board introductions sit directly beneath the page title. */
.clone-site .clone-page-header .clone-board-subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--sg-muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Quiet, matching portrait cards for the church staff. */
.clone-site .clone-people-grid .row[data-loop="true"] {
  width: 100%;
  max-width: 880px;
  align-self: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.clone-site .clone-people-grid .gallery-item,
.clone-site .clone-people-grid .gallery-item:nth-child(even) {
  background: var(--sg-paper);
  border: 1px solid var(--sg-line);
  border-radius: 16px;
  overflow: hidden;
}
.clone-site .clone-people-grid .gallery-item::before { display: none; }
.clone-site .clone-people-grid figure {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.clone-site .clone-people-grid .img-wrapper {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: var(--sg-paper-2);
}
.clone-site .clone-people-grid :is(.g-img, img) {
  border-radius: 0 !important;
  filter: none;
  transform: none !important;
}
.clone-site .clone-people-grid .g-img {
  height: 100% !important;
  background-position: center 30% !important;
  background-size: cover !important;
}
.clone-site .clone-people-grid img { object-position: center 30%; }
.clone-site .clone-people-grid figcaption {
  min-height: 0;
  padding: 24px 28px 28px !important;
  gap: 7px;
  justify-content: flex-start;
}
.clone-site .clone-people-grid h5.figure {
  margin: 0 !important;
  color: var(--sg-muted) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
.clone-site .clone-people-grid p.figure,
.clone-site .clone-people-grid .gallery-item:nth-child(even) p.figure {
  color: var(--sg-ink) !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
.clone-site .clone-people-grid .clone-content-lead {
  display: block;
  border: 0;
  padding-bottom: 0;
  text-align: center;
}
.clone-site .clone-people-grid .clone-content-lead > span,
.clone-site .clone-people-grid .clone-content-lead h2 { display: none; }
.clone-site .clone-people-grid .clone-content-lead p { max-width: none; }
@media (max-width: 600px) {
  .clone-site .clone-people-grid .row[data-loop="true"] {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .clone-site .clone-people-grid figcaption { padding: 20px 22px 24px !important; }
}

/* ==========================================================================
   2026 RENEWAL LAYER (sg26)
   - 풀스크린 사진 히어로 / 투명 헤더
   - 오른쪽 아래 원형 라이트·다크 버튼 (전 해상도)
   - 글자 크게 보기 버튼
   - 일반형 게시판 목록 (번호·제목·작성자·작성일·조회)
   이 블록은 파일 맨 끝에 있어 위의 기존 규칙보다 우선합니다.
   ========================================================================== */

html.clone-site {
  --sg26-bg: #faf9f7;
  --sg26-bg2: #f1efeb;
  --sg26-fg: #1a1c20;
  --sg26-fg2: #5b5f66;
  --sg26-line: #e2dfd9;
  --sg26-accent: #1f4f8f;
  --sg26-accent-fg: #ffffff;
  --sg26-hover: #f3f1ed;
  --sg26-header: 76px;
}
html.clone-site.clone-dark {
  --sg26-bg: #121417;
  --sg26-bg2: #191c20;
  --sg26-fg: #ecebe8;
  --sg26-fg2: #a2a5aa;
  --sg26-line: #2a2e34;
  --sg26-accent: #86aee6;
  --sg26-accent-fg: #0f1216;
  --sg26-hover: #1b1e23;
}

/* 글자 크게 보기 */
html.clone-site.sg26-large body { zoom: 1.15; }

/* ---------- 헤더 ---------- */
html.clone-site .header.el-menu,
html.clone-site .header.el-menu .menu-sgmtv {
  background: var(--sg26-bg) !important;
  border-bottom: 1px solid var(--sg26-line) !important;
  transition: background .3s, border-color .3s;
}
html.clone-site .header.el-menu .menu-sgmtv { border-bottom: 0 !important; }
html.clone-site .header.el-menu ul.navbar-nav:not(#fixed-menu) > li > a {
  color: var(--sg26-fg) !important;
  background: transparent !important;
  font-family: Pretendard, var(--sg-font) !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
}
html.clone-site .header.el-menu ul.navbar-nav:not(#fixed-menu) > li:hover > a,
html.clone-site .header.el-menu ul.navbar-nav > li.clone-section-active > a {
  color: var(--sg26-accent) !important;
}
html.clone-site .header.el-menu ul.dropdown-menu {
  background: var(--sg26-bg) !important;
  border: 1px solid var(--sg26-line) !important;
  border-top: 2px solid var(--sg26-accent) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12) !important;
}
html.clone-site .header.el-menu ul.dropdown-menu > li > a {
  color: var(--sg26-fg) !important;
  background: transparent !important;
  font-size: 14.5px !important;
}
html.clone-site .header.el-menu ul.dropdown-menu > li > a:hover {
  background: var(--sg26-hover) !important;
  color: var(--sg26-accent) !important;
}
html.clone-site.clone-dark #tpl-logo-img { filter: brightness(0) invert(1) !important; }

/* 홈: 사진 위 투명 헤더 → 스크롤 시 불투명 */
html.clone-site body.clone-home-page .header.el-menu {
  position: fixed !important;
  top: 0; left: 0; right: 0;
}
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu .menu-sgmtv {
  background: transparent !important;
  border-bottom-color: transparent !important;
}
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu ul.navbar-nav:not(#fixed-menu) > li > a,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu #fixed-menu a,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu .navbar-toggle {
  color: #fff !important;
}
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu .navbar-toggle .icon-bar { background: #fff !important; }
html.clone-site body.clone-home-page.sg26-at-top #tpl-logo-img { filter: brightness(0) invert(1) !important; }

/* ---------- 풀스크린 히어로 ---------- */
html.clone-site .clone-home-hero,
html.clone-site .clone-home-hero .carousel-inner,
html.clone-site .clone-home-hero .carousel-inner > .item,
html.clone-site .clone-home-hero .fill {
  height: 100vh !important;
  height: 100svh !important;
  min-height: 560px !important;
}
html.clone-site .clone-home-hero {
  position: relative;
  margin: 0 !important;
  background: #1a1c20 !important;
}
html.clone-site .clone-home-hero .fill {
  opacity: 1 !important;
  background-size: cover !important;
  background-position: center !important;
}
html.clone-site .clone-home-hero .carousel-inner > .item {
  position: absolute !important;
  inset: 0;
  display: block !important;
  opacity: 0;
  transition: opacity 1.4s ease !important;
}
html.clone-site .clone-home-hero .carousel-inner > .item.active { opacity: 1; }
html.clone-site .clone-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.15) 30%, rgba(10,12,16,.25) 60%, rgba(10,12,16,.75) 100%);
}
html.clone-site .clone-home-hero .carousel-indicators,
html.clone-site .clone-home-hero .carousel-control { display: none !important; }

html.clone-site .clone-home-hero .clone-home-hero-message {
  position: absolute !important;
  z-index: 3;
  left: 0; right: 0; bottom: 110px; top: auto !important;
  width: min(calc(100% - 64px), 1240px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: none !important;
  color: #fff !important;
  text-align: left !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
html.clone-site .clone-home-hero .clone-home-kicker {
  color: #fff !important;
  background: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  letter-spacing: .28em;
  opacity: .9;
}
html.clone-site .clone-home-hero h1 {
  margin: 0 !important;
  color: #fff !important;
  font-family: "Noto Serif KR", serif !important;
  font-weight: 700 !important;
  font-size: clamp(40px, 6vw, 76px) !important;
  line-height: 1.18 !important;
  letter-spacing: -.03em;
}
html.clone-site .clone-home-hero h1 span,
html.clone-site .clone-home-hero h1 strong { display: block; color: #fff !important; font-weight: 700 !important; }
html.clone-site .clone-home-hero .clone-home-hero-message > p {
  margin: 0 !important;
  max-width: 520px;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(16px, 1.6vw, 19px) !important;
  line-height: 1.7 !important;
}
html.clone-site .clone-home-hero .clone-home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html.clone-site .clone-home-hero .clone-home-actions a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 28px !important;
  border-radius: 999px !important;
  font-size: 15.5px !important; font-weight: 600 !important;
}
html.clone-site .clone-home-hero .clone-home-action-primary {
  background: #fff !important; color: #1a1c20 !important; border: 0 !important;
}
html.clone-site .clone-home-hero .clone-home-action-secondary {
  background: rgba(255,255,255,.08) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  backdrop-filter: blur(6px);
}
html.clone-site .clone-home-hero .clone-home-meta { display: none !important; }

.sg26-hero-bars {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 44px;
  width: min(calc(100% - 64px), 1240px); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.sg26-hero-bars[hidden] { display: none; }
.sg26-hero-bars .sg26-bars { display: flex; gap: 6px; }
.sg26-hero-bars button {
  width: 18px; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: width .4s, background .4s;
}
.sg26-hero-bars button[aria-current="true"] { width: 44px; background: #fff; }

html.clone-site .clone-home-divider { display: none !important; }

/* ---------- 빠른 메뉴 (포털) ---------- */
html.clone-site .clone-home-portal { background: var(--sg26-bg) !important; border-bottom: 1px solid var(--sg26-line); padding: 0 !important; }
html.clone-site .clone-home-portal .clone-section-lead { display: none !important; }
html.clone-site .clone-home-portal .clone-portal-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 0 !important;
}
html.clone-site .clone-home-portal .clone-portal-grid a {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 44px;
  grid-template-areas: "t arrow" "d arrow";
  align-items: center; column-gap: 16px; row-gap: 8px;
  min-height: 120px; padding: 30px 28px !important;
  border: 0 !important; border-left: 1px solid var(--sg26-line) !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--sg26-fg) !important;
}
html.clone-site .clone-home-portal .clone-portal-grid a:hover { background: var(--sg26-bg2) !important; }
html.clone-site .clone-home-portal .clone-portal-grid a > span { display: none !important; }
html.clone-site .clone-home-portal .clone-portal-grid strong { grid-area: t; font-size: 20px !important; font-weight: 700 !important; color: var(--sg26-fg) !important; }
html.clone-site .clone-home-portal .clone-portal-grid small { grid-area: d; font-size: 15.5px !important; color: var(--sg26-fg2) !important; }
html.clone-site .clone-home-portal .clone-portal-grid b {
  grid-area: arrow; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--sg26-line); display: flex; align-items: center; justify-content: center;
  font-weight: 400; color: var(--sg26-fg) !important;
}

/* ---------- 원형 라이트·다크 버튼 + 글자 크기 버튼 (전 해상도) ---------- */
html.clone-site .clone-theme-toggle-item { display: none !important; }
html.clone-site body > .clone-theme-toggle-mobile,
html.clone-site body > .sg26-font-toggle {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  position: fixed !important;
  z-index: 1190;
  top: auto !important; left: auto !important;
  right: calc(28px + env(safe-area-inset-right, 0px)) !important;
  width: 56px !important; min-width: 56px !important; max-width: 56px !important;
  height: 56px !important; min-height: 56px !important;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--sg26-line) !important;
  border-radius: 50% !important;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: transform .2s, background .3s, color .3s;
}
html.clone-site body > .clone-theme-toggle-mobile {
  bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  background: var(--sg26-fg) !important;
  color: var(--sg26-bg) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.22) !important;
}
html.clone-site body > .sg26-font-toggle {
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  background: var(--sg26-bg) !important;
  color: var(--sg26-fg) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.14) !important;
  font: 700 17px/1 Pretendard, var(--sg-font);
}
html.clone-site body > .clone-theme-toggle-mobile:hover,
html.clone-site body > .sg26-font-toggle:hover { transform: scale(1.06); }
html.clone-site body > .clone-theme-toggle-mobile .clone-theme-toggle-symbol { display: flex; width: 22px; height: 22px; }
html.clone-site body > .clone-theme-toggle-mobile svg {
  display: block; width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
html.clone-site body > .clone-theme-toggle-mobile[aria-pressed="false"] .clone-theme-icon-sun,
html.clone-site body > .clone-theme-toggle-mobile[aria-pressed="true"] .clone-theme-icon-moon { display: none; }
html.clone-site.clone-mobile-menu-open body > .sg26-font-toggle { visibility: hidden !important; pointer-events: none !important; }

@media (max-width: 768px) {
  html.clone-site body > .clone-theme-toggle-mobile,
  html.clone-site body > .sg26-font-toggle {
    right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    width: 48px !important; min-width: 48px !important; max-width: 48px !important;
    height: 48px !important; min-height: 48px !important;
  }
  html.clone-site body > .clone-theme-toggle-mobile { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
  html.clone-site body > .sg26-font-toggle { bottom: calc(128px + env(safe-area-inset-bottom, 0px)) !important; font-size: 15px; }
  html.clone-site .clone-home-hero .clone-home-hero-message { bottom: 96px; width: calc(100% - 40px) !important; }
  .sg26-hero-bars { width: calc(100% - 40px); bottom: 36px; }
}

/* ---------- 일반형 게시판 목록 ---------- */
html.clone-site .sg26-board .table-wrap { float: none !important; width: 100% !important; }
html.clone-site .sg26-board-head,
html.clone-site .sg26-board .table.iflex > .item {
  display: grid !important;
  grid-template-columns: 80px minmax(0,1fr) 120px 120px 80px;
  grid-template-areas: "num title name date hit";
  align-items: center;
  column-gap: 12px;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 17px 8px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sg26-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
  font-family: Pretendard, var(--sg-font);
}
html.clone-site .sg26-board-head {
  border-top: 2px solid var(--sg26-fg) !important;
  background: var(--sg26-bg2) !important;
  padding: 14px 8px !important;
  font-size: 14px; font-weight: 600; color: var(--sg26-fg2);
}
html.clone-site .sg26-board-head > span:nth-child(1) { grid-area: num; }
html.clone-site .sg26-board-head > span:nth-child(2) { grid-area: title; }
html.clone-site .sg26-board-head > span:nth-child(3) { grid-area: name; }
html.clone-site .sg26-board-head > span:nth-child(4) { grid-area: date; }
html.clone-site .sg26-board-head > span:nth-child(5) { grid-area: hit; }
html.clone-site .sg26-board .table.iflex {
  display: block !important;
  margin: 0 !important;
  gap: 0 !important;
}
html.clone-site .sg26-board .table.iflex > .item:hover { background: var(--sg26-hover) !important; }
html.clone-site .sg26-board .table.iflex > .item :is(.border-wrap, .thumb-wrap, .cont-wrap, ul) {
  display: contents !important;
}
html.clone-site .sg26-board .table.iflex > .item :is(.tpl-forum-list-thumb, .tpl-forum-list-cont, .tpl-forum-list-category, .tpl-forum-list-comment) {
  display: none !important;
}
html.clone-site .sg26-board .table.iflex > .item .tpl-forum-list-num {
  grid-area: num; position: static !important;
  background: none !important; padding: 0 !important; width: auto !important; height: auto !important;
  font-size: 13.5px !important; color: var(--sg26-fg2) !important;
}
html.clone-site .sg26-board .table.iflex > .item .tpl-forum-list-content {
  grid-area: title; min-width: 0; text-align: left; padding: 0 !important; margin: 0 !important;
}
html.clone-site .sg26-board .table.iflex > .item .tpl-forum-list-title {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15.5px !important; font-weight: 400 !important; line-height: 1.5 !important;
  color: var(--sg26-fg) !important;
}
html.clone-site .sg26-board .table.iflex > .item:hover .tpl-forum-list-title { color: var(--sg26-accent) !important; }
html.clone-site .sg26-board .table.iflex > .item :is(.tpl-forum-list-name, .tpl-forum-list-date, .tpl-forum-list-hit) {
  display: block !important; float: none !important; margin: 0 !important; padding: 0 !important;
  font-size: 14px !important; color: var(--sg26-fg2) !important; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html.clone-site .sg26-board .table.iflex > .item :is(.tpl-forum-list-date, .tpl-forum-list-hit)::before,
html.clone-site .sg26-board .table.iflex > .item :is(.tpl-forum-list-date, .tpl-forum-list-hit)::after { display: none !important; }
html.clone-site .sg26-board .table.iflex > .item .tpl-forum-list-name { grid-area: name; }
html.clone-site .sg26-board .table.iflex > .item .tpl-forum-list-date { grid-area: date; }
html.clone-site .sg26-board .table.iflex > .item .tpl-forum-list-hit { grid-area: hit; }

/* 공지 행 */
html.clone-site .sg26-board .table.iflex > .item.sg26-notice { background: var(--sg26-bg2) !important; }
html.clone-site .sg26-board .item.sg26-notice .tpl-forum-list-notice-icon { display: none !important; }
html.clone-site .sg26-board .item.sg26-notice .tpl-forum-list-num::before {
  content: "공지"; color: var(--sg26-accent); font-weight: 700;
}
html.clone-site .sg26-board .item.sg26-notice .tpl-forum-list-title { font-weight: 600 !important; }

/* 검색·페이지·글쓰기 */
html.clone-site .sg26-board :is(.search-box, .forum-search) input {
  height: 42px !important; border: 1px solid var(--sg26-line) !important; border-radius: 4px !important;
  background: var(--sg26-bg) !important; color: var(--sg26-fg) !important; padding: 0 14px !important;
}
html.clone-site .sg26-board .tpl-forum-page a,
html.clone-site .sg26-board .tpl-forum-page span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--sg26-line) !important; border-radius: 4px !important;
  background: var(--sg26-bg) !important; color: var(--sg26-fg2) !important; font-weight: 600;
}
html.clone-site .sg26-board .tpl-forum-page .active a,
html.clone-site .sg26-board .tpl-forum-page .active span {
  background: var(--sg26-fg) !important; border-color: var(--sg26-fg) !important; color: var(--sg26-bg) !important;
}
html.clone-site .sg26-board .tpl-forum-write {
  height: 42px; padding: 0 22px !important; border: 0 !important; border-radius: 4px !important;
  background: var(--sg26-accent) !important; color: var(--sg26-accent-fg) !important; font-weight: 600 !important;
}

@media (max-width: 760px) {
  html.clone-site .sg26-board-head,
  html.clone-site .sg26-board .table.iflex > .item {
    grid-template-columns: minmax(0,1fr) 96px;
    grid-template-areas: "title date";
  }
  html.clone-site .sg26-board-head > span:is(:nth-child(1), :nth-child(3), :nth-child(5)),
  html.clone-site .sg26-board .table.iflex > .item :is(.tpl-forum-list-num, .tpl-forum-list-name, .tpl-forum-list-hit) {
    display: none !important;
  }
  html.clone-site .sg26-board .item.sg26-notice .tpl-forum-list-title::before {
    content: "[공지] "; color: var(--sg26-accent);
  }
}

/* ---------- 홈 최근글 (교회학교 3열) ---------- */
html.clone-site .clone-home-latest-compact .latest-table-header .lt-header {
  font-size: 19px !important; font-weight: 700 !important; color: var(--sg26-fg) !important;
  padding-bottom: 14px !important;
}
html.clone-site .clone-home-latest-compact .latest-table-header hr {
  width: 100% !important; margin: 0 !important; border-top: 2px solid var(--sg26-fg) !important;
}
html.clone-site .clone-home-latest-compact .latest-post {
  display: grid !important; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px;
  float: none !important; width: 100% !important;
  padding: 15px 2px !important; border-bottom: 1px solid var(--sg26-line);
}
html.clone-site .clone-home-latest-compact .latest-post .content-wrap { grid-column: 1; grid-row: 1; width: auto !important; min-width: 0; }
html.clone-site .clone-home-latest-compact .latest-post .latest-post-list-date {
  grid-column: 2; grid-row: 1; width: auto !important; float: none !important;
  font-size: 13.5px; color: var(--sg26-fg2) !important; font-variant-numeric: tabular-nums;
}
html.clone-site .clone-home-latest-compact .latest-post-list-title {
  float: none !important; max-width: 100% !important; display: block !important;
  font-size: 15.5px !important; color: var(--sg26-fg) !important;
}

/* 오시는 길: 네이버 지도 */
html.clone-site .sg26-naver-map {
  width: 100%;
  height: clamp(320px, 45vw, 520px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sg26-bg2);
}

/* sg26 fix (2026-09-28): 기존 모바일 홈 규칙(html.clone-site body.clone-home-page …)이
   renewal 규칙보다 선택자 우선순위가 높아 풀스크린 히어로·빠른 메뉴가 깨지던 문제 보정 */
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero {
  display: block !important;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero > .carousel-inner {
  position: absolute !important;
  inset: 0 !important;
  order: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .carousel-inner > .item,
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .fill {
  height: 100% !important;
  min-height: 0 !important;
}
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message {
  position: absolute !important;
  inset: auto 0 110px 0 !important;
  order: 0;
  width: min(calc(100% - 64px), 1240px) !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
html.clone-site body.clone-home-page:not(.sg27-home) .clone-home-portal .clone-portal-grid a > small { display: block !important; }
html.clone-site body.clone-home-page:not(.sg27-home) .clone-home-portal .clone-portal-grid a > b { position: static !important; }
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message {
    inset: auto 0 96px 0 !important;
    width: calc(100% - 40px) !important;
    gap: 18px;
  }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero h1 {
    font-size: clamp(34px, 9.5vw, 46px) !important;
    line-height: 1.22 !important;
  }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-actions {
    display: flex !important;
    margin: 0 !important;
  }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-actions a {
    min-height: 50px;
    padding: 0 20px !important;
    font-size: 15px !important;
  }
}
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .fill {
  background-position: right center !important; /* 사진 속 교회명 쪽 우선 노출 (2026-09-12 요청 유지) */
}
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message,
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message :is(h1, h1 span, h1 strong, p, .clone-home-kicker) {
  color: #fff !important;
  text-align: left !important;
}
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message > p { color: rgba(255,255,255,.92) !important; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-action-primary { background: #fff !important; color: #1a1c20 !important; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-action-secondary { background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message { inset: auto 0 190px 0 !important; }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-actions a { flex: 0 0 auto; width: auto !important; }
}
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message {
    inset: auto auto 92px 20px !important;
    width: calc(100% - 96px) !important;
    max-width: 560px;
    align-items: flex-start !important;
  }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-actions { flex-wrap: nowrap; gap: 8px; }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-actions a { padding: 0 16px !important; font-size: 14.5px !important; }
  html.clone-site body.clone-home-page.clone-home-page .sg26-hero-bars { left: 20px; right: auto; width: auto; margin: 0; }
}
@media (max-width: 768px) and (max-height: 700px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message { bottom: 76px !important; gap: 12px; }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero h1 { font-size: 30px !important; }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message > p { font-size: 15px !important; line-height: 1.6 !important; }
}

/* sg26 fix: 사진 이야기형(clone-story-archive) 게시판을 표로 바꿀 때 남는 어두운 배경·번호 배지·큰 제목 보정 */
html.clone-site .sg26-board.sg26-board .table.iflex { background: transparent !important; }
html.clone-site .sg26-board.sg26-board .table.iflex > .item::before,
html.clone-site .sg26-board.sg26-board .table.iflex > .item::after { content: none !important; display: none !important; }
html.clone-site .sg26-board.sg26-board .table.iflex > .item .tpl-forum-list-title a {
  color: var(--sg26-fg) !important;
  font-size: 15.5px !important;
  font-weight: inherit !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
}
html.clone-site .sg26-board.sg26-board .table.iflex > .item:hover .tpl-forum-list-title a { color: var(--sg26-accent) !important; }
html.clone-site .sg26-board.sg26-board .table.iflex { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.clone-site .sg26-board.sg26-board .table.iflex > .item .tpl-forum-list-num { display: block !important; visibility: visible !important; opacity: 1 !important; text-align: center; }
@media (max-width: 760px) {
  html.clone-site .sg26-board.sg26-board .table.iflex > .item .tpl-forum-list-num { display: none !important; }
}

/* ==========================================================================
   2026 HOME LAYER (sg27) — 시안 홈 섹션·투명 헤더·내장 명조·새 푸터
   되돌리기: 이 주석부터 파일 끝까지 삭제
   ========================================================================== */
@font-face {
  font-family: "SG Serif KR";
  src: url("/assets/fonts/NotoSerifKR-Bold-subset.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SG Serif Latin";
  src: url("/assets/fonts/LibreBaskerville-Bold-subset.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+00B7;
}
html.clone-site { --sg27-serif: "SG Serif Latin", "SG Serif KR", "Noto Serif KR", serif; }

/* ---------- 투명 헤더: 사진 위에서는 모든 하위 배경 제거 ---------- */
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu :is(.menu-sgmtv, header, .navbar, .container, .navbar-collapse, .navbar-header, #tpl-menu, #tpl-menu > li, #tpl-menu > li > a, #fixed-menu, #fixed-menu > li) {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu::before,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu::after,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu header::before,
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu header::after { display: none !important; }
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu {
  background: linear-gradient(180deg, rgba(8, 10, 14, .45), rgba(8, 10, 14, 0)) !important;
}

/* ---------- 명조 제목 (내장 글꼴) ---------- */
html.clone-site body.clone-home-page .clone-home-hero #clone-home-title,
html.clone-site body.clone-home-page .clone-home-hero #clone-home-title :is(span, strong),
html.clone-site #clone-page-title,
html.clone-site .clone-page-header h1,
html.clone-site .sg27-title {
  font-family: var(--sg27-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}
html.clone-site body.clone-home-page .clone-home-hero #clone-home-title {
  font-size: clamp(40px, 6vw, 76px) !important;
  line-height: 1.18 !important;
  word-break: keep-all;
}
html.clone-site body.clone-home-page .clone-home-hero #clone-home-title strong { display: block; }
html.clone-site body.clone-home-page .clone-home-hero .clone-home-kicker {
  display: block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: .28em !important;
  text-transform: uppercase;
  color: #fff !important;
  opacity: .9;
  background: none !important;
  padding: 0 !important;
  margin: 0 0 28px !important;
}
html.clone-site body.clone-home-page .clone-home-hero .clone-home-hero-message > p {
  font-size: clamp(16px, 1.6vw, 19px) !important;
  line-height: 1.45 !important;
}
html.clone-site body.clone-home-page .clone-home-hero .clone-home-meta { display: none !important; }
html.clone-site .sg27-scroll {
  position: absolute; right: max(96px, calc((100% - 1240px) / 2 + 32px)); bottom: 36px; z-index: 5;
  font-size: 12px; letter-spacing: .2em; color: #fff; opacity: .75; pointer-events: none;
}

/* ---------- 빠른 메뉴 (시안: 4칸 선 구분) ---------- */
html.clone-site body.sg27-home .clone-home-portal { padding: 0 !important; background: var(--sg26-bg) !important; border-bottom: 1px solid var(--sg26-line); }
html.clone-site body.sg27-home .clone-home-portal .clone-shell { width: 100% !important; max-width: none !important; padding: 0 !important; overflow: hidden; }
html.clone-site body.sg27-home .clone-home-portal .clone-section-lead { display: none !important; }
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: 0 !important; margin-left: -1px !important;
}
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto auto; align-items: center; column-gap: 16px; row-gap: 8px;
  min-height: 120px; padding: 34px clamp(24px, 3vw, 48px) !important; box-sizing: border-box;
  border: 0 !important; border-left: 1px solid var(--sg26-line) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; color: var(--sg26-fg) !important; transform: none !important;
}
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a:hover { background: var(--sg26-bg2) !important; }
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > span { display: none !important; }
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > strong { grid-column: 1; font-size: 20px !important; font-weight: 700 !important; color: var(--sg26-fg) !important; }
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > small { grid-column: 1; font-size: 15.5px !important; color: var(--sg26-fg2) !important; }
html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > b {
  grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sg26-line);
  display: flex !important; align-items: center; justify-content: center; font-size: 18px; font-weight: 400; color: var(--sg26-fg) !important; background: transparent !important; position: static !important;
}

/* 기존 홈 최근글 블록은 새 섹션으로 대체 */
html.clone-site body.sg27-home :is(.clone-home-album, .clone-home-latest-compact, .clone-home-divider) { display: none !important; }

/* ---------- 공통 섹션 ---------- */
html.clone-site .sg27-home-sections { background: var(--sg26-bg); color: var(--sg26-fg); }
html.clone-site .sg27-sec { max-width: 1240px; margin: 0 auto; padding: 56px 32px 40px; box-sizing: border-box; }
html.clone-site .sg27-sec.sg27-worship { padding-top: 64px; }
html.clone-site .sg27-sec.sg27-album { padding-bottom: 120px; }
html.clone-site .sg27-sec[hidden] { display: none !important; }
html.clone-site .sg27-rule { height: 1px; background: var(--sg26-line); margin-bottom: 72px; }
html.clone-site .sg27-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
html.clone-site .sg27-head > div { display: flex; flex-direction: column; gap: 12px; }
html.clone-site .sg27-eyebrow { font-size: 13px; letter-spacing: .2em; color: var(--sg26-accent); font-weight: 600; }
html.clone-site .sg27-title { margin: 0 !important; font-size: clamp(30px, 3.4vw, 42px) !important; line-height: 1.25 !important; color: var(--sg26-fg) !important; }
html.clone-site .sg27-more { font-size: 15px; font-weight: 600; color: var(--sg26-fg) !important; text-decoration: none !important; }
html.clone-site .sg27-more:hover { color: var(--sg26-accent) !important; }
html.clone-site .sg27-home-sections :is(strong, small, b, span, a, h2, h3, p) { word-break: keep-all; overflow-wrap: break-word; }

/* 표 행 */
html.clone-site .sg27-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px 64px; }
html.clone-site .sg27-table h3 { margin: 0; font-size: 18px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--sg26-fg); color: var(--sg26-fg); }
html.clone-site .sg27-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--sg26-line); }
html.clone-site .sg27-row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html.clone-site .sg27-row strong { font-size: 18px; font-weight: 600; color: var(--sg26-fg); }
html.clone-site .sg27-row small { font-size: 14.5px; color: var(--sg26-fg2); line-height: 1.6; }
html.clone-site .sg27-row > b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sg26-fg); }

/* 오시는 길 */
html.clone-site .sg27-loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 64px; align-items: stretch; }
html.clone-site .sg27-map { position: relative; min-height: 320px; border-radius: 6px; overflow: hidden; background: var(--sg26-bg2); }
html.clone-site .sg27-map-canvas { position: absolute; inset: 0; }
html.clone-site .sg27-map-canvas iframe { width: 100%; height: 100%; border: 0; display: block; }
html.clone-site .sg27-map-badge { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: #03c75a; color: #fff !important; text-decoration: none !important; }
html.clone-site .sg27-loc-info { display: flex; flex-direction: column; gap: 28px; }
html.clone-site .sg27-addr { display: flex; flex-direction: column; gap: 8px; }
html.clone-site .sg27-addr span { font-size: 14px; color: var(--sg26-fg2); }
html.clone-site .sg27-addr strong { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.4; color: var(--sg26-fg); }
html.clone-site .sg27-btns { display: flex; flex-wrap: wrap; gap: 10px; }
html.clone-site .sg27-btn { font-size: 16px; font-weight: 600; height: 52px; padding: 0 24px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--sg26-fg); color: var(--sg26-fg) !important; background: transparent; text-decoration: none !important; }
html.clone-site .sg27-btn-solid { background: var(--sg26-fg); color: var(--sg26-bg) !important; }
html.clone-site .sg27-transit { border-top: 2px solid var(--sg26-fg); }
html.clone-site .sg27-row-k { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
html.clone-site .sg27-row-k > span { font-size: 15.5px; font-weight: 700; color: var(--sg26-fg); }
html.clone-site .sg27-row-k strong { font-size: 16.5px; }

/* 새광명 소식 */
html.clone-site .sg27-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px 64px; }
html.clone-site .sg27-board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--sg26-fg); }
html.clone-site .sg27-board-head > div { display: flex; align-items: baseline; gap: 10px; }
html.clone-site .sg27-board-head strong { font-size: 19px; font-weight: 700; color: var(--sg26-fg); }
html.clone-site .sg27-board-head span { font-size: 13px; color: var(--sg26-fg2); }
html.clone-site .sg27-board-head a { font-size: 13.5px; color: var(--sg26-fg2) !important; text-decoration: none !important; }
html.clone-site .sg27-post { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--sg26-line); color: var(--sg26-fg) !important; text-decoration: none !important; }
html.clone-site .sg27-post:hover { color: var(--sg26-accent) !important; }
html.clone-site .sg27-post-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; }
html.clone-site .sg27-post-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.clone-site .sg27-new { flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--sg26-accent-fg); background: var(--sg26-accent); border-radius: 3px; padding: 3px 5px; }
html.clone-site .sg27-date { font-size: 13.5px; color: var(--sg26-fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.clone-site .sg27-empty { margin: 0; padding: 24px 2px; font-size: 15px; color: var(--sg26-fg2); border-bottom: 1px solid var(--sg26-line); }

/* 앨범 4열 */
html.clone-site .sg27-album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
html.clone-site .sg27-card { display: flex; flex-direction: column; gap: 6px; color: var(--sg26-fg) !important; text-decoration: none !important; }
html.clone-site .sg27-card-img { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--sg26-bg2); margin-bottom: 8px; }
html.clone-site .sg27-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
html.clone-site .sg27-card:hover img { transform: scale(1.04); }
html.clone-site .sg27-card strong { font-size: 16px; font-weight: 600; line-height: 1.45; }
html.clone-site .sg27-card span { font-size: 13.5px; color: var(--sg26-fg2); }

/* 로딩 중 자리 표시 (샘플 글 없이 빈 칸만) */
html.clone-site .sg27-sec[aria-busy="true"] :is(.sg27-news-grid, .sg27-album-grid) { min-height: 280px; border-radius: 6px; background: var(--sg26-bg2); }

/* ---------- 새 푸터 ---------- */
html.clone-site .el-footer.sg27-footer-host { background: var(--sg26-bg2) !important; border-top: 1px solid var(--sg26-line) !important; padding: 0 !important; }
html.clone-site .el-footer.sg27-footer-host > :not(.sg27-footer) { display: none !important; }
html.clone-site .sg27-foot-inner { max-width: 1240px; margin: 0 auto; padding: 56px 32px 64px; box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
html.clone-site .sg27-foot-id { display: flex; flex-direction: column; gap: 10px; }
html.clone-site .sg27-foot-id img { height: 40px; width: auto; align-self: flex-start; margin-bottom: 10px; }
html.clone-site.clone-dark .sg27-foot-id img { filter: brightness(0) invert(1); }
html.clone-site .sg27-foot-id p { margin: 0; font-size: 14.5px; color: var(--sg26-fg2); word-break: keep-all; }
html.clone-site .sg27-foot-id p a { color: inherit !important; }
html.clone-site .sg27-foot-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--sg26-fg2); }
html.clone-site .sg27-foot-admin { font-size: 11px; color: var(--sg26-fg2) !important; opacity: .45; text-decoration: none !important; }
html.clone-site .sg27-foot-admin:hover { opacity: 1; }
html.clone-site .sg27-foot-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: flex-start; }
html.clone-site .sg27-foot-nav a { font-size: 14px; color: var(--sg26-fg2) !important; text-decoration: none !important; }
html.clone-site .sg27-foot-nav a:hover { color: var(--sg26-fg) !important; }

/* ---------- 태블릿·모바일 ---------- */
@media (max-width: 1024px) {
  html.clone-site .sg27-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  html.clone-site .sg27-sec { padding: 40px 20px 28px; }
  html.clone-site .sg27-sec.sg27-worship { padding-top: 48px; }
  html.clone-site .sg27-sec.sg27-album { padding-bottom: 80px; }
  html.clone-site .sg27-rule { margin-bottom: 48px; }
  html.clone-site .sg27-head { margin-bottom: 28px; }
  html.clone-site .sg27-title { font-size: 28px !important; }
  html.clone-site .sg27-cols, html.clone-site .sg27-news-grid { gap: 40px; }
  html.clone-site .sg27-row { padding: 15px 2px; }
  html.clone-site .sg27-row strong { font-size: 16.5px; }
  html.clone-site .sg27-row > b { font-size: 16.5px; }
  html.clone-site .sg27-map { min-height: 0; aspect-ratio: 4 / 3; }
  html.clone-site .sg27-btn { flex: 1 1 auto; justify-content: center; }
  html.clone-site .sg27-album-grid { gap: 20px 12px; }
  html.clone-site .sg27-card strong { font-size: 15px; }
  html.clone-site .sg27-foot-inner { padding: 40px 20px 96px; flex-direction: column; }
  html.clone-site .sg27-scroll { display: none; }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid { grid-template-columns: 1fr 1fr !important; margin: 0 !important; }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a {
    grid-template-columns: 1fr; min-height: 104px; padding: 20px !important;
    border-left: 0 !important; border-bottom: 1px solid var(--sg26-line) !important;
  }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a:nth-child(odd) { border-right: 1px solid var(--sg26-line) !important; }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > b { display: none !important; }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > strong { font-size: 17px !important; }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > small { font-size: 14px !important; }
  html.clone-site body.clone-home-page .clone-home-hero #clone-home-title { font-size: clamp(34px, 10vw, 44px) !important; }
  html.clone-site body.clone-home-page .clone-home-hero .clone-home-kicker { font-size: 11px !important; letter-spacing: .22em !important; margin-bottom: 18px !important; }
}
@media (max-width: 360px) {
  html.clone-site .sg27-sec { padding-left: 16px; padding-right: 16px; }
  html.clone-site .sg27-row-k { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  html.clone-site .sg27-row > b { font-size: 15px; }
  html.clone-site .sg27-album-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  html.clone-site body.clone-home-page .clone-home-hero #clone-home-title { font-size: 32px !important; }
}

/* sg27 fix (2026-09-29): 기존 푸터 이미지 규칙에 밀려 새 푸터 로고가 가운데로 가던 문제 */
html.clone-site .el-footer .sg27-footer .sg27-foot-id img {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: 40px !important;
  margin: 0 0 10px !important;
  align-self: flex-start !important;
}
/* sg27 fix: 모바일 빠른 메뉴 2×2에서 아이콘(::before)과 제목이 같은 칸에 겹치던 문제 */
@media (max-width: 768px) {
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    column-gap: 10px !important;
    align-items: center !important;
    text-align: left !important;
  }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a::before {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
  }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > strong,
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > small {
    grid-column: 2 !important;
    grid-area: auto / 2 !important;
    text-align: left !important;
  }
  html.clone-site body.sg27-home .clone-home-portal .clone-portal-grid > a > small { display: block !important; }
}

/* ==========================================================================
   sg28 (2026-09-29): Claude Design 최신 시안 반영
   - 헤더 구분선: border 대신 inset box-shadow, 사진 위(맨 위)에서는 선 없음
   - 첫 화면 문구 간격: WELCOME 아래 22px, 제목 행간 1.15·아래 22px, 설명 행간 1.5·아래 36px
   ========================================================================== */
html.clone-site .header.el-menu { border-bottom: 0 !important; box-shadow: inset 0 -1px 0 var(--sg26-line) !important; }
html.clone-site body.clone-home-page.sg26-at-top .header.el-menu { box-shadow: none !important; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message { gap: 0 !important; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-kicker { line-height: 1 !important; margin: 0 0 22px !important; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero #clone-home-title { line-height: 1.15 !important; margin: 0 0 22px !important; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message > p { line-height: 1.5 !important; margin: 0 0 36px !important; }
html.clone-site .sg27-map-canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-kicker { margin-bottom: 18px !important; }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message > p { margin-bottom: 28px !important; }
}
/* sg28: 시안처럼 맨 위 헤더 완전 투명 (sg27 그라데이션·구분선이 메뉴 아래 '바'로 보이던 문제) */
html.clone-site body.clone-home-page.clone-home-page.sg26-at-top .header.el-menu {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
/* sg28: 시안처럼 빠른 메뉴 아이콘 없이 제목·설명 왼쪽 정렬, 오른쪽 화살표 원 */
html.clone-site body.sg27-home.sg27-home .clone-home-portal .clone-portal-grid > a::before { content: none !important; display: none !important; }
html.clone-site body.sg27-home.sg27-home .clone-home-portal .clone-portal-grid > a {
  grid-template-columns: minmax(0, 1fr) 44px !important;
  grid-template-areas: none !important;
  column-gap: 16px !important;
  row-gap: 8px !important;
  align-items: center !important;
  justify-items: start !important;
  text-align: left !important;
  padding: 34px clamp(24px, 3vw, 48px) !important;
}
html.clone-site body.sg27-home.sg27-home .clone-home-portal .clone-portal-grid > a > :is(strong, small) {
  grid-column: 1 !important;
  grid-row: auto !important;
  justify-self: start !important;
  text-align: left !important;
  margin: 0 !important;
}
html.clone-site body.sg27-home.sg27-home .clone-home-portal .clone-portal-grid > a > b { grid-column: 2 !important; grid-row: 1 / span 2 !important; justify-self: end !important; }
@media (max-width: 768px) {
  html.clone-site body.sg27-home.sg27-home .clone-home-portal .clone-portal-grid > a {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 22px 20px !important;
  }
  html.clone-site body.sg27-home.sg27-home .clone-home-portal .clone-portal-grid > a > :is(strong, small) { grid-column: 1 !important; }
}
/* sg28: 네이버 지도 API가 지도 상자에 position:relative를 인라인으로 넣어 높이가 0이 되던 문제 */
html.clone-site .sg27-map .sg27-map-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Hero optical alignment: keep large title anchored. */
html.clone-site .clone-home-hero .clone-home-kicker,
html.clone-site .clone-home-hero .clone-home-hero-message > p,
html.clone-site .clone-home-hero .clone-home-actions { translate: 10px 0; }
@media (max-width: 768px) {
  html.clone-site .clone-home-hero .clone-home-kicker,
  html.clone-site .clone-home-hero .clone-home-hero-message > p,
  html.clone-site .clone-home-hero .clone-home-actions { translate: 5px 0; }
}

/* sg29: 모바일에서 사진 진행 막대가 하단 고정바(58px)에 가려지지 않게 올린다. */
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .sg26-hero-bars { bottom: 66px; }
}
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message { bottom: 102px !important; }
}
/* sg29: 모바일 사진 규칙(opacity:1)이 모든 슬라이드를 겹쳐 보이게 해 현재 슬라이드만 보이게 한다. */
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .carousel-inner > .item { opacity: 0; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .carousel-inner > .item.active { opacity: 1; }


/* sg30: 첫 화면 큰 제목을 화면 세로 중앙보다 50px 위에 둔다. 높이 700px 이하는 기존 bottom 110px 유지. */
@media (min-width: 769px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message {
    bottom: max(110px, calc(50% - 240px)) !important;
  }
}

/* ==========================================================================
   v11 LAYER (sg31, 2026-10-08) — 흰·네이비 색, Pretendard 제목,
   홈 순서, 예배 안내·오시는 길 페이지, 갤러리 게시판, 커뮤니티 메뉴 카드
   되돌리기: 이 주석부터 파일 끝까지 삭제
   ========================================================================== */
@font-face {
  font-family: "SG Pretendard";
  src: url("/assets/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SG Pretendard";
  src: url("/assets/fonts/Pretendard-Bold.subset.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 색: 흰 바탕 + 네이비 (옅은 네이비 면, 네이비 푸터). 다크 모드는 기존 값 유지 ---------- */
html.clone-site { --sg27-serif: "SG Pretendard", var(--sg-font); --sg-heading-font: "SG Pretendard", var(--sg-font); }
html.clone-site:not(.clone-dark) {
  --sg31-navy: #1d3557;
  --sg31-tint: #f2f5f9;
  --sg26-bg: #ffffff;
  --sg26-bg2: var(--sg31-tint);
  --sg26-fg: #1c2638;
  --sg26-fg2: #5c6474;
  --sg26-line: #e1e6ee;
  --sg26-accent: var(--sg31-navy);
  --sg26-accent-fg: #ffffff;
  --sg26-hover: #f6f8fb;
  --sg-paper-2: var(--sg31-tint);
  --sg-ink: #1c2638;
  --sg-line: #e1e6ee;
  --sg-blue: var(--sg31-navy);
  --sg-blue-dark: var(--sg31-navy);
  --sg-signal: var(--sg31-navy);
}
html.clone-site:not(.clone-dark) .header.el-menu { background: #ffffff !important; }
html.clone-site:not(.clone-dark) .clone-page-eyebrow { color: var(--sg31-navy) !important; }
html.clone-site:not(.clone-dark) .sg27-eyebrow { color: var(--sg31-navy) !important; }
html.clone-site:not(.clone-dark) .el-footer.sg27-footer-host {
  background: var(--sg31-navy) !important; border-top: 0 !important;
  --sg26-fg: #ffffff; --sg26-fg2: rgba(255, 255, 255, .72); --sg26-line: rgba(255, 255, 255, .28); --sg26-accent: #ffffff;
}
html.clone-site:not(.clone-dark) .el-footer.sg27-footer-host .sg27-foot-id img { filter: brightness(0) invert(1) !important; }

/* ---------- 제목 글꼴: Pretendard ---------- */
html.clone-site .clone-home-hero h1,
html.clone-site .clone-home-hero h1 :is(span, strong),
html.clone-site .clone-page-header h1,
html.clone-site .sg27-title,
html.clone-site :is(.clone-section-lead, .clone-content-lead) h2 {
  font-family: var(--sg27-serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

/* ---------- 홈: 최근 장면 → 소식(옅은 네이비 띠) → 오시는 길 ---------- */
html.clone-site .sg27-home-sections > .sg27-sec:first-child .sg27-rule { display: none; }
html.clone-site .sg27-sec.sg27-album { padding-top: 64px; padding-bottom: 56px; }
html.clone-site .sg27-sec.sg27-news {
  background: var(--sg26-bg2);
  box-shadow: 0 0 0 100vmax var(--sg26-bg2);
  clip-path: inset(0 -100vmax);
  padding-bottom: 56px;
}
html.clone-site .sg27-sec.sg27-news .sg27-rule,
html.clone-site .sg27-sec.sg27-news + .sg27-location .sg27-rule { display: none; }
html.clone-site .sg27-sec.sg27-location { padding-top: 64px; padding-bottom: 120px; }

/* ---------- 예배 안내·오시는 길 페이지: 홈 섹션과 같은 화면 ---------- */
html.clone-site .sg31-replaced { display: none !important; }
html.clone-site .sg31-info-page .sg27-sec { padding-top: 56px; padding-bottom: 96px; }

/* ---------- 갤러리 게시판 (선교회·교회학교·새광명 앨범) ---------- */
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .sg26-board-head { display: none !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  gap: 36px 24px !important;
  margin: 28px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex::before,
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex::after { display: none !important; content: none !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex > .item {
  display: block !important;
  position: relative !important;
  grid-column: auto !important; grid-row: auto !important;
  width: auto !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  aspect-ratio: auto !important; overflow: visible !important;
  float: none !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; text-align: left;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex > .item::before,
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex > .item::after { display: none !important; content: none !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex > .item:hover { background: transparent !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .border-wrap {
  display: flex !important; flex-direction: column; gap: 14px;
  position: static !important; width: auto !important; height: auto !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .thumb-wrap {
  display: block !important; position: relative !important;
  width: 100% !important; height: auto !important; aspect-ratio: 4 / 3;
  margin: 0 !important; padding: 0 !important; overflow: hidden;
  border-radius: 8px; background: var(--sg26-bg2) !important;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-thumb,
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-thumb > a {
  display: block !important; position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important;
  background: transparent !important;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-thumb img {
  display: block !important; width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: cover; opacity: 1 !important; filter: none !important;
  transform: none; transition: transform .35s ease;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item:hover .tpl-forum-list-thumb img { transform: scale(1.04); }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-num { display: none !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap {
  display: block !important; position: static !important; inset: auto !important;
  width: auto !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  background: transparent !important; color: var(--sg26-fg) !important; transform: none !important;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-content { display: block !important; margin: 0 !important; padding: 0 !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-title,
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-title a {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  white-space: normal !important; word-break: keep-all; overflow-wrap: anywhere;
  font-family: var(--sg27-serif) !important; font-size: 17px !important; font-weight: 600 !important;
  line-height: 1.45 !important; letter-spacing: -0.01em; color: var(--sg26-fg) !important;
  text-shadow: none !important; background: none !important; padding: 0 !important;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item:hover .tpl-forum-list-title a { color: var(--sg26-accent) !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap > ul {
  display: flex !important; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0 !important; padding: 0 !important; list-style: none;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap > ul > li:not(.hide):not(.empty) {
  display: block !important; float: none !important; margin: 0 !important; padding: 0 !important;
  font-size: 13.5px !important; color: var(--sg26-fg2) !important; font-variant-numeric: tabular-nums;
}
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap > ul > li.tpl-forum-list-category:not(.hide):not(:empty) { color: var(--sg26-accent) !important; font-weight: 600; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap > ul > li:is(.hide, .empty, :empty),
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item :is(.tpl-forum-list-name, .tpl-forum-list-cont) { display: none !important; }
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap > ul > li::before,
html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .cont-wrap > ul > li::after { display: none !important; }
@media (max-width: 760px) {
  html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .table.iflex { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 14px !important; }
  html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .border-wrap { gap: 10px; }
  html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-title,
  html.clone-site .sg31-gallery.sg31-gallery.sg31-gallery.sg31-gallery .item .tpl-forum-list-title a { font-size: 15px !important; }
}

/* ---------- /커뮤니티 묶음 페이지: 세 게시판 사진 카드 ---------- */
html.clone-site body.sg31-hub-page .clone-page-element { display: none !important; }
html.clone-site .sg31-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
html.clone-site .sg31-hub-card { display: flex; flex-direction: column; gap: 8px; color: var(--sg26-fg) !important; text-decoration: none !important; }
html.clone-site .sg31-hub-photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden; border-radius: 10px; background: var(--sg26-bg2); }
html.clone-site .sg31-hub-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
html.clone-site .sg31-hub-card:hover .sg31-hub-photo img { transform: scale(1.04); }
html.clone-site .sg31-hub-card strong { font-family: var(--sg27-serif); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
html.clone-site .sg31-hub-card small { min-height: 1.5em; font-size: 14px; color: var(--sg26-fg2); }
html.clone-site .sg31-hub-go { font-size: 14px; font-weight: 600; color: var(--sg26-accent); }
html.clone-site .sg31-hub-card:hover strong { color: var(--sg26-accent); }
@media (max-width: 760px) {
  html.clone-site .sg31-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- 첫 화면 사진 일시정지 버튼 ---------- */
html.clone-site .sg26-hero-bars button.sg31-hero-pause {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: 4px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .18); color: #fff;
  transition: background .2s;
}
html.clone-site .sg26-hero-bars button.sg31-hero-pause:hover { background: rgba(255, 255, 255, .22); }
html.clone-site .sg26-hero-bars button.sg31-hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html.clone-site .sg26-hero-bars button.sg31-hero-pause svg { width: 12px; height: 12px; }

/* ---------- 첫 화면 사진 막대: 넘김 시간만큼 차오름 ---------- */
html.clone-site .sg26-hero-bars .sg26-bars button { position: relative; overflow: hidden; }
html.clone-site .sg26-hero-bars .sg26-bars button[aria-current="true"] { width: 64px; background: rgba(255, 255, 255, .4); }
@media (max-width: 768px) { html.clone-site .sg26-hero-bars .sg26-bars button[aria-current="true"] { width: 52px; } }
html.clone-site .sg26-hero-bars .sg26-bars button[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform-origin: left center; transform: scaleX(0);
  animation: sg31-hero-fill var(--sg31-hero-ms, 8000ms) linear forwards;
}
html.clone-site .sg26-hero-bars.sg31-paused .sg26-bars button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes sg31-hero-fill { to { transform: scaleX(1); } }

/* ---------- 하단·오시는 길 SNS 링크 (로고 + 이름) ---------- */
html.clone-site .sg31-sns { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
html.clone-site .sg31-sns-link { display: inline-flex; align-items: center; gap: 7px; color: inherit !important; text-decoration: none !important; }
html.clone-site .sg31-sns-link svg { flex: none; width: 20px; height: 20px; }
html.clone-site .sg31-sns-link span { text-decoration: underline; text-decoration-color: var(--sg26-line); text-underline-offset: 3px; }
html.clone-site .sg31-sns-link:hover { color: var(--sg26-accent) !important; }
html.clone-site .sg31-sns-link:hover span { text-decoration-color: currentColor; }

/* ---------- PC 세부 메뉴 칸 높이 44px → 36px ---------- */
html.clone-site .el-menu #tpl-menu .dropdown-menu > li > a {
  min-height: 36px !important; padding-top: 8px !important; padding-bottom: 8px !important; box-sizing: border-box;
}

/* ---------- 첫 화면 등장: 로딩 화면이 걷히면 사진이 먼저 나타나고, 0.5초 뒤부터 글이 차례로 떠오름.
   사진은 넘김 시간 동안 천천히 확대 ---------- */
html.clone-site .clone-home-hero #clone-home-title > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  html.sg31-intro .clone-home-hero .carousel-inner { animation: sg31-fade .9s ease both; }
  html.sg31-intro .clone-home-hero .clone-home-kicker { animation: sg31-rise .8s cubic-bezier(.2, .7, .2, 1) .5s both; }
  html.sg31-intro .clone-home-hero #clone-home-title > span { animation: sg31-rise .8s cubic-bezier(.2, .7, .2, 1) .62s both; }
  html.sg31-intro .clone-home-hero #clone-home-title > strong { animation: sg31-rise .8s cubic-bezier(.2, .7, .2, 1) .74s both; }
  html.sg31-intro .clone-home-hero .clone-home-hero-message > p { animation: sg31-rise .8s cubic-bezier(.2, .7, .2, 1) .9s both; }
  html.sg31-intro .clone-home-hero .clone-home-actions { animation: sg31-rise .8s cubic-bezier(.2, .7, .2, 1) 1.02s both; }
  html.sg31-intro .clone-home-hero .carousel-inner > .item.active .fill {
    animation: sg31-zoom var(--sg31-hero-ms, 8000ms) ease-out both;
  }
  html.sg31-intro .clone-home-hero.sg31-paused .carousel-inner > .item.active .fill { animation-play-state: paused; }
}
@keyframes sg31-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sg31-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes sg31-fade { from { opacity: 0; } to { opacity: 1; } }


/* 모바일 첫 화면: 사진 위 제목이 사람들 얼굴과 겹쳐도 읽히도록 아래쪽을 더 어둡게 */
@media (max-width: 768px) {
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner::after {
    content: "" !important; display: block !important; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, rgba(12, 22, 40, .82) 0%, rgba(12, 22, 40, .62) 38%, rgba(12, 22, 40, 0) 68%) !important;
  }
}

/* sg32 (2026-10-10): 모바일 첫 화면 조정.
   - 문구·버튼 묶음을 크게 올린다: 큰 제목 중심이 화면 세로 중앙 근처(390×844 기준 약 150px 위로). 낮은 화면은 기존 102px 유지.
   - 문구가 올라간 만큼 아래쪽 어둡게 처리도 위로 넓힌다.
   - 사진 효과: 확대 대신 좌우로 천천히 이동해 가로 사진 전체가 보이게 한다(짝수 사진은 반대 방향).
   - 우측 상단 메뉴 버튼은 배경 없이 흰 줄만.
   - 하단 카카오채널·유튜브 바 58px → 46px. 사진 진행 막대·다크모드·글자 버튼은 바와 22px 띄운다. */
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .clone-home-hero-message { bottom: max(102px, calc(50% - 170px)) !important; }
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner::after {
    background: linear-gradient(to top, rgba(12, 22, 40, .82) 0%, rgba(12, 22, 40, .6) 55%, rgba(12, 22, 40, 0) 85%) !important;
  }

  html.clone-site body.clone-home-page.sg26-at-top .header.el-menu .navbar-header .navbar-toggle,
  html.clone-site body.clone-home-page.sg26-at-top .header.el-menu .navbar-toggle {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  html.clone-site .clone-site .dsgn-body,
  .clone-site .dsgn-body { padding-bottom: calc(46px + env(safe-area-inset-bottom)) !important; }
  .clone-site .fnav.fnav-mobile-fnav {
    min-height: 46px !important;
    height: calc(46px + env(safe-area-inset-bottom)) !important;
  }
  .clone-site .fnav.fnav-mobile-fnav a { min-height: 46px !important; padding: 6px 12px !important; }
  html.clone-site body.clone-home-page.clone-home-page .sg26-hero-bars { bottom: 68px; }
  html.clone-site body > .clone-theme-toggle-mobile { bottom: calc(46px + 22px + env(safe-area-inset-bottom, 0px)) !important; }
  html.clone-site body > .sg26-font-toggle { bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  html.sg31-intro body.clone-home-page .clone-home-hero .carousel-inner > .item.active .fill {
    animation: sg32-pan var(--sg31-hero-ms, 8000ms) linear both;
  }
  html.sg31-intro body.clone-home-page .clone-home-hero .carousel-inner > .item.active:nth-child(even) .fill { animation-direction: reverse; }
  html.sg31-intro body.clone-home-page .clone-home-hero.sg31-paused .carousel-inner > .item.active .fill { animation-play-state: paused; }
  /* 넘어간 사진이 끝 위치에 머물러, 사라지는 동안 튀지 않게 한다. */
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner > .item > .fill { --sg32-x: 58%; }
  html.clone-site body.clone-home-page .clone-home-hero .carousel-inner > .item:nth-child(even) > .fill { --sg32-x: 18%; }
}
/* 기존 .fill background-position이 !important라 애니메이션이 직접 덮지 못한다. 등록한 변수(--sg32-x)를 움직이고 그 값을 !important로 쓴다. */
@property --sg32-x { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .fill.sg32-photo1 { background-position: 50% 55% !important; }
@media (max-width: 768px) {
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .carousel-inner > .item > .fill { background-position: var(--sg32-x) center !important; }
  html.clone-site body.clone-home-page.clone-home-page .clone-home-hero .carousel-inner > .item > .fill.sg32-photo1 { background-position: var(--sg32-x) 55% !important; }
}
@keyframes sg32-pan { from { --sg32-x: 40%; } to { --sg32-x: 58%; } }

/* sg34 (2026-10-10): 모바일 사진 이동은 오른쪽으로 18%만, 일정한 속도로 천천히 움직인다. 홀수 사진 40%→58%(가운데보다 조금 왼쪽에서 시작), 짝수 사진 0%→18%(왼쪽 끝에서 시작). */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  html.sg31-intro body.clone-home-page .clone-home-hero .carousel-inner > .item.active:nth-child(even) .fill { animation-name: sg34-pan-even; animation-direction: normal; }
}
@keyframes sg34-pan-even { from { --sg32-x: 0%; } to { --sg32-x: 18%; } }

/* sg33 (2026-10-10): 모든 내부 페이지 제목 위 위치 표시(홈 / 교회소개 / 새광명교회는)와 분류 글자(교회소개)를 키운다. PC 11·12px → 18·20px, 모바일 10px → 13·14px. */
html.clone-site .clone-page-header .clone-breadcrumb,
html.clone-site .clone-page-header .clone-breadcrumb :is(a, span) { font-size: 18px !important; }
html.clone-site .clone-page-header .clone-page-eyebrow { font-size: 20px !important; }
@media (max-width: 768px) {
  html.clone-site .clone-page-header .clone-breadcrumb,
  html.clone-site .clone-page-header .clone-breadcrumb :is(a, span) { font-size: 13px !important; }
  html.clone-site .clone-page-header .clone-page-eyebrow { font-size: 14px !important; }
}


/* v29 (2026-10-26): 첫 화면 공지 띠. 관리자 화면(첫 화면 관리)에서 문구·기간을 정하며, 기간 안에만 문구 위에 보인다. */
html.clone-site body.clone-home-page .clone-home-hero .sg29-notice {
  display: inline-flex !important;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px !important;
  padding: 6px 16px 6px 6px !important;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(16, 24, 40, .38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.4 !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
}
html.clone-site body.clone-home-page .clone-home-hero .sg29-notice-tag {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff;
  color: #1d3557 !important;
  font-size: 13px;
  font-weight: 800;
}
html.clone-site body.clone-home-page .clone-home-hero .sg29-notice-text { min-width: 0; color: #fff !important; word-break: keep-all; overflow-wrap: anywhere; }
html.clone-site body.clone-home-page .clone-home-hero .sg29-notice-go { flex: none; color: #fff !important; transition: transform .2s ease; }
html.clone-site body.clone-home-page .clone-home-hero a.sg29-notice:hover { background: rgba(16, 24, 40, .55); }
html.clone-site body.clone-home-page .clone-home-hero a.sg29-notice:hover .sg29-notice-go { transform: translateX(3px); }
html.clone-site body.clone-home-page .clone-home-hero a.sg29-notice:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
@media (max-width: 768px) {
  html.clone-site body.clone-home-page .clone-home-hero .sg29-notice { margin-bottom: 20px !important; font-size: 15px !important; } /* 10-26 사용자 요청: 4px는 너무 붙어 보임 */
}
@media (prefers-reduced-motion: reduce) {
  html.clone-site body.clone-home-page .clone-home-hero .sg29-notice-go { transition: none; }
}

/* v30: 화면 설정은 헤더에서 열고, 본문 위에 떠 있던 조작 버튼을 없앤다. */
html.clone-site .sg30-access { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 12; color: var(--sg26-fg); }
html.clone-site .sg30-access > summary { display: flex; align-items: center; justify-content: center; list-style: none; width: 44px; height: 44px; border: 1px solid var(--sg26-line); border-radius: 50%; cursor: pointer; font-size: 18px; font-weight: 700; background: var(--sg26-bg); color: var(--sg26-fg); }
html.clone-site .sg30-access > summary::-webkit-details-marker { display: none; }
html.clone-site .sg30-access-panel { position: absolute; right: 0; top: 52px; display: grid; gap: 10px; width: 190px; padding: 16px; border: 1px solid var(--sg26-line); border-radius: 14px; background: var(--sg26-bg); box-shadow: 0 8px 28px #0002; }
html.clone-site .sg30-access-panel > strong { font-size: 14px; line-height: 1.5; color: var(--sg26-fg); }
html.clone-site .sg30-access-panel button { display: flex !important; align-items: center; justify-content: center; gap: 8px; position: static !important; width: 100% !important; min-height: 44px; padding: 8px 10px; border: 1px solid var(--sg26-line); border-radius: 8px; background: var(--sg26-bg2); color: var(--sg26-fg); font: 600 15px/1.4 var(--sg-font); }
html.clone-site .sg30-access-panel .clone-theme-toggle-symbol { display: flex; width: 20px; height: 20px; }
html.clone-site .sg30-access-panel svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }
html.clone-site .sg30-access-panel [aria-pressed="false"] .clone-theme-icon-sun,
html.clone-site .sg30-access-panel [aria-pressed="true"] .clone-theme-icon-moon { display: none; }
html.clone-site .sg30-access :is(summary,button):focus-visible { outline: 3px solid #f0b542; outline-offset: 3px; }
html.clone-site .navbar-menu-sgmtv { padding-right: 66px !important; }
@media (max-width: 991px) {
  html.clone-site .sg30-access { right: 76px; }
  html.clone-site .navbar-menu-sgmtv { padding-right: 0 !important; }
  html.clone-site .sg30-access > summary { width: 44px; height: 44px; font-size: 16px; }
}
@media (max-width: 360px) {
  html.clone-site .sg30-access { right: 66px; }
  html.clone-site .navbar-brand { max-width: calc(100% - 112px); }
}
/* The visual line remains 3px, inside a non-overlapping 44px button. */
html.clone-site .sg26-hero-bars .sg26-bars { gap: 8px; }
html.clone-site .sg26-hero-bars .sg26-bars button { width: 44px; min-width: 44px; height: 44px; background: transparent; border-radius: 0; }
html.clone-site .sg26-hero-bars .sg26-bars button::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 3px; background: rgba(255,255,255,.4); border-radius: 2px; }
html.clone-site .sg26-hero-bars .sg26-bars button[aria-current="true"] { width: 64px; background: transparent; }
html.clone-site .sg26-hero-bars .sg26-bars button[aria-current="true"]::after { inset: 20px 0 auto; height: 3px; }
html.clone-site .sg26-hero-bars button.sg31-hero-pause { width: 44px; min-width: 44px; height: 44px; }
html.clone-site .sg26-hero-bars button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html.clone-site .sg30-info-date { margin: 24px 0 0; font-size: 13px; color: var(--sg26-fg2); }
html.clone-site .sg30-visitor-note, html.clone-site .sg27-row small { white-space: pre-line; }
html.clone-site .sg30-load-error { padding: 20px; border: 1px solid var(--sg26-line); border-radius: 10px; color: var(--sg26-fg); }
html.clone-site .sg30-load-error :is(button,a) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 8px; color: var(--sg26-fg); }
html.clone-site .sg30-load-error button { background: var(--sg26-bg2); border: 1px solid var(--sg26-line); }
