/* =========================================================
   청년환생교육원 COMMUNITY CSS
   - @import 사용 없음
   - !important 사용 없음
   - index1.html / styles2.css / script2.js 분리 구조
   ========================================================= */

/* ---------------------------------------------------------
   01. Design Tokens / Reset
   --------------------------------------------------------- */
:root {
  --color-navy: #2a3b57;
  --color-navy-dark: #18374f;
  --color-brown: #7a4b4b;
  --color-blue-gray: #8fa3b8;
  --color-bg: #f3f3f3;
  --color-text: #1d2635;
  --color-line: rgba(0, 0, 0, 0.16);
  --color-white: #ffffff;

  --red-soft: #d46f6f;

  --header-height: 82px;
  --container-width: min(calc(100% - 48px), 1872px);

  --shadow-card: 0 16px 34px rgba(15, 23, 42, 0.13);
  --shadow-card-dark: 0 22px 58px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    "Pretendard",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  word-break: keep-all;
  overflow-x: hidden;
  transition:
    background 0.9s ease,
    color 0.9s ease;
}

body::before,
body::after {
  content: none;
  display: none;
}

body > header,
body > main,
body > footer {
  width: 100%;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

section,
article,
header,
footer,
nav,
aside {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

/* ---------------------------------------------------------
   02. Header / Navigation
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    background 0.9s ease,
    border-color 0.9s ease;
}

.header-inner {
  width: var(--container-width);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
}

.brand-link {
  grid-column: 2 / span 4;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy-dark);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.9s ease;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

body.mobile-menu-open {
  overflow: hidden;
}

.main-nav {
  grid-column: 8 / span 5;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  width: 94px;
  height: var(--header-height);
  display: grid;
  place-items: center;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.22s ease,
    font-weight 0.22s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 88px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-navy-dark);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center center;
  transition: transform 0.24s ease;
}

.main-nav a.is-active {
  color: var(--color-navy-dark);
  font-weight: 800;
}

.main-nav a.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

.main-nav:hover a.is-active:not(:hover) {
  color: #000000;
  font-weight: 500;
}

.main-nav:hover a.is-active:not(:hover)::after {
  transform: translateX(-50%) scaleX(0);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-navy-dark);
  font-weight: 800;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* ---------------------------------------------------------
   03. Background Effects / Scroll Progress
   --------------------------------------------------------- */
.dark-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at 50% 35%,
      transparent 0%,
      rgba(9, 14, 23, 0.25) 42%,
      rgba(9, 14, 23, 0.84) 100%
    ),
    linear-gradient(180deg, rgba(42, 59, 87, 0), rgba(10, 16, 27, 0.86));
  transition: opacity 1.1s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 4px;
  background: rgba(42, 59, 87, 0.08);
}

.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-navy),
    var(--color-brown),
    var(--color-blue-gray)
  );
}

/* ---------------------------------------------------------
   04. Main / Intro Hero
   --------------------------------------------------------- */
main {
  width: 100%;
  margin: 0;
  padding: var(--header-height) 0 130px;
}

.intro-hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(90px, 11vw, 150px) 24px;
  text-align: center;
}

.intro-content {
  width: min(100%, 1060px);
  margin-inline: auto;
}

.intro-label {
  margin: 0 0 28px;
  color: var(--color-brown);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(66px, 10vw, 142px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.intro-text {
  width: min(100%, 1060px);
  margin: 56px auto 0;
  color: rgba(29, 38, 53, 0.68);
  font-size: clamp(22px, 1.75vw, 27px);
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: -0.035em;
  text-align: center;
}

.intro-line {
  display: block;
}

.intro-keep {
  white-space: nowrap;
}

/* ---------------------------------------------------------
   05. Content Card / Document Header
   --------------------------------------------------------- */
.content-card {
  position: relative;
  width: min(calc(100% - 48px), 1080px);
  margin: 0 auto;
  padding: 170px 96px 0px;
  background: #ffffff;
  border: 0;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  transition:
    background 0.9s ease,
    box-shadow 0.9s ease;
}

.content-card::before {
  content: none;
  display: none;
}

.card-header {
  padding-bottom: 120px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 104px;
}

.text-label {
  margin: 0 0 24px;
  color: rgba(0, 0, 0, 0.54);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-header .text-label {
  color: var(--color-navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-transform: none;
}

.card-header h2,
.chapter-header h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 82px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.085em;
}

.card-header p,
.chapter-header p {
  max-width: 820px;
  margin: 42px auto 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 17px;
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: -0.045em;
}

.chapter-header {
  padding: 120px 0 76px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 104px;
}

.chapter-header h2 {
  font-size: 66px;
  line-height: 1.12;
}

.chapter-header p {
  max-width: 820px;
  font-size: 18px;
  line-height: 2.05;
}

/* ---------------------------------------------------------
   06. Notice Sections
   --------------------------------------------------------- */
.notice-section {
  position: relative;
  padding: 84px 0 92px;
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: 104px;
}

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

.notice-section::before {
  content: attr(data-no);
  position: absolute;
  right: 8px;
  top: 82px;
  color: rgba(42, 59, 87, 0.15);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
}

.notice-section h3 {
  max-width: calc(100% - 110px);
  margin: 0;
  color: var(--color-navy);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.065em;
}

.notice-section p {
  margin: 34px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: -0.045em;
}

.notice-section strong {
  color: rgba(0, 0, 0, 0.78);
  font-weight: 800;
}

.accent {
  color: var(--color-brown);
  font-weight: 800;
}

/* ---------------------------------------------------------
   07. Community Profile Table
   --------------------------------------------------------- */
.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 70px;
  border-top: 1px solid var(--color-line);
}

.info-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-line);
}

.info-row dt,
.template-row dt {
  color: var(--color-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: -0.04em;
}

.info-row dd,
.template-row dd {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: -0.04em;
}

/* ---------------------------------------------------------
   08. Lists / Cards / Buttons
   --------------------------------------------------------- */
.text-list,
.warning-list,
.check-list {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.text-list li,
.warning-list li,
.check-list li,
.example-list li {
  position: relative;
  padding: 28px 0 28px 34px;
  color: rgba(0, 0, 0, 0.62);
  border-bottom: 1px solid var(--color-line);
  font-size: 18px;
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: -0.045em;
}

.text-list li::before,
.warning-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue-gray);
}

.example-list {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.example-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-left: 0;
}

.example-list li::before {
  display: none;
}

.example-list b {
  color: var(--color-brown);
  font-size: 18px;
  font-weight: 700;
}

.time-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.time-card,
.sample-box,
.form-box,
.pledge-box,
.toggle-box,
.ban-item {
  margin-top: 48px;
  padding: 36px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 24px;
  background: rgba(42, 59, 87, 0.035);
}

.time-card {
  margin-top: 0;
}

.time-card span {
  display: block;
  color: var(--color-brown);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.time-card strong {
  display: block;
  margin-top: 16px;
  color: var(--color-navy);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.time-card p {
  margin-top: 16px;
}

.sample-box h4,
.form-box h4,
.pledge-box h4 {
  margin: 0 0 28px;
  color: var(--color-navy);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.placeholder-box {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin-top: 36px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  color: rgba(0, 0, 0, 0.42);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.chat-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.chat-bubble {
  max-width: 78%;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
}

.chat-bubble.from-user {
  justify-self: end;
  background: rgba(143, 163, 184, 0.18);
}

.chat-bubble.from-ai {
  justify-self: start;
}

.button-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.link-button,
.copy-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--color-navy);
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------------------------------------------------------
   09. Profile Template
   --------------------------------------------------------- */
.profile-area {
  width: 100%;
  max-width: none;
  margin: 0;
}

.profile-link-area {
  width: 100%;
  margin-top: 54px;
  margin-bottom: 40px;
}

.profile-link-area .link-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--color-navy);
  text-decoration: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-link-area .link-button:hover,
.profile-link-area .link-button:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 44, 67, 0.08);
}

.profile-template {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 68px 72px 40px;
  border: 1px solid rgba(42, 59, 87, 0.14);
  border-radius: 28px;
  background: #f7f8fa;
}

.profile-template__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 58px;
}

.profile-template__head h2 {
  margin: 0;
  color: #2a3b57;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.profile-template__action {
  position: static;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-template__icon {
  width: 65px;
  height: 65px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-template__icon img {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.profile-template__table {
  border-top: 1px solid rgba(42, 59, 87, 0.18);
}

.profile-template__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 54px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(42, 59, 87, 0.16);
}

.profile-template__row strong {
  color: #2a3b57;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.6;
}

.profile-template__row span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   10. Profile Template Copy
   --------------------------------------------------------- */

.profile-template__toast {
  display: none;
}

button.profile-template__copy {
  all: unset;
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.2s ease;
}

button.profile-template__copy img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
  object-fit: contain;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

button.profile-template__copy::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #2a3b57;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

button.profile-template__copy.is-copied img {
  opacity: 0;
  transform: scale(0.72);
}

button.profile-template__copy.is-copied::before {
  opacity: 1;
  transform: scale(1);
}

button.profile-template__copy:hover {
  transform: translateY(-2px);
}

button.profile-template__copy:focus,
button.profile-template__copy:focus-visible,
button.profile-template__copy:active {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

/* ---------------------------------------------------------
   11. Trigger Warning / Toggle Box
   --------------------------------------------------------- */
.warning-start {
  scroll-margin-top: 120px;
}

.warning-header {
  text-align: center;
  padding-top: clamp(110px, 12vw, 150px);
}

.warning-header h3 {
  color: var(--color-brown);
  font-size: clamp(58px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.09em;
}

.toggle-box summary {
  cursor: pointer;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.toggle-content {
  margin-top: 30px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: -0.045em;
}

.closing-message {
  margin-top: 80px;
  padding-top: 42px;
  border-top: 1px solid var(--color-line);
  color: rgba(0, 0, 0, 0.76);
  font-size: 24px;
  font-weight: 800;
  line-height: 2;
  letter-spacing: -0.045em;
  text-align: center;
}

.notice-section .toggle-box {
  width: 100%;
  margin-top: 42px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
}

.notice-section .toggle-box summary {
  height: 84px;
  min-height: 84px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.notice-section .toggle-box summary::-webkit-details-marker {
  display: none;
}

.notice-section .toggle-box summary::before {
  content: "▶";
  flex: 0 0 auto;
  color: #e97883;
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.notice-section .toggle-box[open] summary::before {
  transform: rotate(90deg);
}

.notice-section .toggle-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  padding: 0 52px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 18px;
  font-weight: 700;
  line-height: 2.05;
  letter-spacing: -0.03em;
  will-change: height, opacity, transform;
}

.notice-section .toggle-box[open] .toggle-content {
  margin-top: -10px;
  padding: 0 52px 34px;
}

/* ---------------------------------------------------------
   12. Footer
   --------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 30px;
  background: #03112e;
}

.footer__layout {
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  color: #ffffff;
}

.footer__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.footer__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer__brand-text {
  min-width: 0;
  text-align: left;
}

.footer__brand-text strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.footer__brand-text span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer__note {
  width: 900px;
  max-width: 100%;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.025em;
  text-align: left;
  word-break: keep-all;
}

/* ---------------------------------------------------------
   13. Copy Helper / Reveal Motion
   - 스크롤 진입 시 블러 + 디졸브 등장
   --------------------------------------------------------- */

.copy-helper {
  position: fixed;
  left: -9999px;
  top: -9999px;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  filter: blur(10px);
  transition:
    opacity 0.95s ease,
    transform 0.95s ease,
    filter 0.95s ease;
  will-change: opacity, transform, filter;
}

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

/* ---------------------------------------------------------
   14. Dark Mode
   --------------------------------------------------------- */
body.is-dark {
  background: #101826;
  color: #eef2f5;
}

body.is-dark .dark-overlay {
  opacity: 1;
}

body.is-dark .site-header {
  background: rgba(16, 24, 38, 0.88);
  border-color: rgba(238, 242, 245, 0.12);
}

body.is-dark .brand-link,
body.is-dark .main-nav a,
body.is-dark .main-nav a.is-active,
body.is-dark .main-nav a:hover,
body.is-dark .main-nav a:focus-visible,
body.is-dark .main-nav:hover a.is-active:not(:hover) {
  color: #eef2f5;
}

body.is-dark .main-nav a::after {
  background: #eef2f5;
}

body.is-dark .intro-label,
body.is-dark h1,
body.is-dark .intro-text,
body.is-dark .card-header h2,
body.is-dark .chapter-header h2,
body.is-dark .notice-section h3,
body.is-dark .time-card strong,
body.is-dark .sample-box h4,
body.is-dark .form-box h4 {
  color: #eef2f5;
}

body.is-dark .content-card {
  background: linear-gradient(180deg, #4b555d 0%, #4a545b 100%);
  box-shadow: var(--shadow-card-dark);
}

body.is-dark .card-header,
body.is-dark .chapter-header,
body.is-dark .notice-section,
body.is-dark .info-list,
body.is-dark .info-row,
body.is-dark .text-list,
body.is-dark .warning-list,
body.is-dark .check-list,
body.is-dark .text-list li,
body.is-dark .warning-list li,
body.is-dark .check-list li,
body.is-dark .example-list li,
body.is-dark .template-list,
body.is-dark .template-row,
body.is-dark .closing-message {
  border-color: rgba(238, 242, 245, 0.16);
}

body.is-dark .text-label,
body.is-dark .card-header .text-label,
body.is-dark .info-row dt,
body.is-dark .template-row dt {
  color: #a9c3d6;
}

body.is-dark .card-header p,
body.is-dark .chapter-header p,
body.is-dark .notice-section p,
body.is-dark .info-row dd,
body.is-dark .template-row dd,
body.is-dark .text-list li,
body.is-dark .warning-list li,
body.is-dark .check-list li,
body.is-dark .example-list li,
body.is-dark .toggle-content {
  color: rgba(238, 242, 245, 0.68);
}

body.is-dark .notice-section strong,
body.is-dark .closing-message,
body.is-dark .toggle-box summary {
  color: #eef2f5;
}

body.is-dark .time-card,
body.is-dark .sample-box,
body.is-dark .form-box,
body.is-dark .pledge-box,
body.is-dark .toggle-box,
body.is-dark .ban-item {
  background: rgba(238, 242, 245, 0.055);
  border-color: rgba(238, 242, 245, 0.16);
}

body.is-dark .warning-header h3 {
  color: var(--red-soft);
  text-shadow: 0 0 24px rgba(212, 111, 111, 0.08);
}

body.is-dark .warning-header .text-label,
body.is-dark .warning-header ~ .notice-section .text-label {
  color: #a9c3d6;
}

body.is-dark .warning-header::before,
body.is-dark .warning-header ~ .notice-section[data-no="20"]::before,
body.is-dark .warning-header ~ .notice-section[data-no="21"]::before,
body.is-dark .warning-header ~ .notice-section[data-no="22"]::before {
  color: rgba(238, 242, 245, 0.22);
}

body.is-dark .warning-header,
body.is-dark .warning-header ~ .notice-section {
  border-color: rgba(238, 242, 245, 0.18);
}

body.is-dark .warning-header ~ .notice-section .toggle-box,
body.is-dark .warning-header ~ .notice-section .ban-item {
  background: rgba(17, 24, 39, 0.12);
  border-color: rgba(238, 242, 245, 0.26);
}

body.is-dark .warning-header ~ .notice-section .toggle-box summary::marker,
body.is-dark .warning-header ~ .notice-section .accent {
  color: var(--red-soft);
}

/* ---------------------------------------------------------
   15. Responsive / Mobile Menu
   --------------------------------------------------------- */
@media (max-width: 760px) {
  :root {
    --header-height: 70px;
    --container-width: min(calc(100% - 32px), 1200px);
  }

  .header-inner {
    width: var(--container-width);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--color-navy-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-decoration: none;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    gap: 5px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 24px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--color-navy-dark);
    transition:
      transform 0.24s ease,
      opacity 0.24s ease;
  }

  body.is-dark .mobile-menu-button span {
    background: #eef2f5;
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu__dim {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 9, 16, 0.48);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.28s ease;
  }

  .mobile-menu.is-open .mobile-menu__dim {
    opacity: 1;
  }

  .mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(82vw, 320px);
    height: 100%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.22);
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
  }

  .mobile-menu__head {
    margin-bottom: 34px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(42, 59, 87, 0.14);
  }

  .mobile-menu__head p {
    margin: 0;
    color: var(--color-navy-dark);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
  }

  .mobile-menu__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 59, 87, 0.08);
    color: var(--color-navy-dark);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu__panel a {
    position: relative;
    padding: 18px 4px;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.045em;
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 59, 87, 0.1);
    transition:
      color 0.2s ease,
      padding-left 0.2s ease;
  }

  .mobile-menu__panel a:hover,
  .mobile-menu__panel a:focus-visible,
  .mobile-menu__panel a.is-active {
    padding-left: 10px;
    color: var(--color-navy-dark);
  }

  .mobile-menu__panel a.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: var(--color-navy-dark);
    transform: translateY(-50%);
  }

  main {
    padding-bottom: 72px;
  }

  .intro-hero {
    min-height: calc(82vh - var(--header-height));
  }

  .intro-label {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(48px, 13vw, 70px);
  }

  .intro-text {
    font-size: 16px;
    line-height: 2;
  }

  .content-card {
    width: min(calc(100% - 24px), 1080px);
    padding: 96px 24px 72px;
    border-radius: 22px;
  }

  .card-header {
    padding-bottom: 76px;
  }

  .card-header .text-label,
  .chapter-header .text-label,
  .notice-section .text-label {
    font-size: 14px;
  }

  .card-header h2 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .chapter-header h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .card-header p,
  .chapter-header p,
  .notice-section p {
    font-size: 15px;
    line-height: 2;
  }

  .notice-section {
    padding: 64px 0 72px;
  }

  .notice-section h3 {
    max-width: calc(100% - 70px);
    font-size: 34px;
  }

  .notice-section::before {
    right: 0;
    top: 62px;
    font-size: 58px;
  }

  .info-list,
  .time-list {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .info-row,
  .template-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .info-row dt,
  .info-row dd,
  .template-row dt,
  .template-row dd,
  .text-list li,
  .warning-list li,
  .check-list li,
  .example-list li {
    font-size: 15px;
  }

  .time-card,
  .sample-box,
  .form-box,
  .pledge-box,
  .toggle-box,
  .ban-item {
    padding: 26px;
  }

  .chat-bubble {
    max-width: 100%;
    font-size: 15px;
  }

  .link-button,
  .copy-button {
    font-size: 15px;
  }

  .profile-template {
    padding: 44px 24px 28px;
    border-radius: 22px;
  }

  .profile-template__head {
    gap: 18px;
    margin-bottom: 36px;
  }

  .profile-template__head h2 {
    font-size: 34px;
  }

  .profile-template__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .profile-template__row strong {
    font-size: 18px;
  }

  .profile-template__row span {
    font-size: 16px;
  }

  .profile-template__toast {
    top: 220px;
    min-width: 190px;
    padding: 14px 22px;
    font-size: 15px;
  }

  .warning-header h3 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .toggle-box summary,
  .toggle-content {
    font-size: 15px;
  }

  .notice-section .toggle-box summary {
    height: auto;
    min-height: 64px;
    padding: 0 24px;
    font-size: 16px;
  }

  .notice-section .toggle-content {
    padding: 0 24px;
    font-size: 15px;
  }

  .notice-section .toggle-box[open] .toggle-content {
    padding: 0 24px 28px;
  }

  .closing-message {
    font-size: 18px;
  }

  .page-footer,
  .footer {
    margin-top: 72px;
    padding: 28px 0 32px;
  }

  .footer-inner,
  .footer__layout {
    width: min(calc(100% - 24px), 960px);
    max-width: calc(100% - 24px);
  }

  .footer-logo,
  .footer__mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .footer-title,
  .footer__brand-text strong {
    font-size: 16px;
  }

  .footer-subtitle,
  .footer__brand-text span {
    font-size: 12px;
  }

  .footer-text,
  .footer__note {
    font-size: 11px;
    line-height: 1.75;
  }
}

/* ---------------------------------------------------------
   Profile Template Mobile Layout
   - 모바일에서 프로필 양식을 카드형 리스트로 정리
   --------------------------------------------------------- */

@media (max-width: 760px) {
  .profile-template {
    padding: 34px 18px 24px;
    border-radius: 20px;
    background: #f8f9fb;
  }

  .profile-template__head {
    margin-bottom: 28px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(42, 59, 87, 0.16);
  }

  .profile-template__head h2 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.06em;
  }

  .profile-template__action {
    flex: 0 0 auto;
  }

  button.profile-template__copy {
    width: 38px;
    height: 38px;
  }

  .profile-template__table {
    display: grid;
    gap: 12px;
    border-top: 0;
  }

  .profile-template__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(42, 59, 87, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 44, 67, 0.05);
  }

  .profile-template__row strong {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(42, 59, 87, 0.08);
    color: var(--color-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .profile-template__row span {
    color: rgba(0, 0, 0, 0.68);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
    letter-spacing: -0.045em;
  }

  .profile-template__toast {
    top: 92px;
    min-width: 180px;
    padding: 13px 20px;
    font-size: 14px;
  }
}

/* 더 작은 모바일 화면 보정 */
@media (max-width: 374px) {
  .profile-template {
    padding: 30px 14px 20px;
  }

  .profile-template__head h2 {
    font-size: 27px;
  }

  .profile-template__row {
    padding: 16px 15px 18px;
  }

  .profile-template__row span {
    font-size: 15px;
  }
}

/* ---------------------------------------------------------
   Toggle Box Responsive Fix
   - 트리거 소재 목록 / 설정 금지 소재 열람 박스 모바일 대응
   --------------------------------------------------------- */

@media (max-width: 760px) {
  .notice-section .toggle-box {
    width: 100%;
    margin-top: 32px;
    border-radius: 22px;
  }

  .notice-section .toggle-box summary {
    min-height: auto;
    height: auto;
    padding: 22px 22px;
    align-items: flex-start;
    gap: 10px;
    font-size: 18px;
    line-height: 1.45;
    word-break: keep-all;
  }

  .notice-section .toggle-box summary::before {
    margin-top: 4px;
    font-size: 15px;
  }

  .notice-section .toggle-content {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 22px;
    font-size: 15px;
    line-height: 2;
    word-break: keep-all;
    white-space: normal;
  }

  .notice-section .toggle-box[open] .toggle-content {
    height: auto;
    max-height: none;
    overflow: visible;
    margin-top: 0;
    padding: 0 22px 26px;
  }
}

@media (max-width: 480px) {
  .notice-section .toggle-box {
    border-radius: 18px;
  }

  .notice-section .toggle-box summary {
    padding: 20px 18px;
    font-size: 17px;
    line-height: 1.45;
  }

  .notice-section .toggle-content {
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.95;
  }

  .notice-section .toggle-box[open] .toggle-content {
    padding: 0 18px 24px;
  }
}

@media (max-width: 374px) {
  .notice-section .toggle-box summary {
    padding: 18px 16px;
    font-size: 16px;
  }

  .notice-section .toggle-content {
    padding: 0 16px;
    font-size: 13px;
    line-height: 1.9;
  }

  .notice-section .toggle-box[open] .toggle-content {
    padding: 0 16px 22px;
  }
}

/* ---------------------------------------------------------
   Toggle Box First Open Fix
   - 첫 열림에서 내용 높이가 덜 계산되어 잘리는 현상 방지
   --------------------------------------------------------- */

.notice-section .toggle-box[open] .toggle-content {
  overflow: visible;
}

@media (max-width: 760px) {
  .notice-section .toggle-box {
    overflow: visible;
  }

  .notice-section .toggle-content {
    word-break: keep-all;
    white-space: normal;
  }
}
