/* Generated by system/build_assets.php. Edit source CSS files, then rebuild. */

/* source: css/fonts/paperlogy.css */
/* Paperlogy — GLVISION brand typeface (Korean geometric sans, full weight range) */

@font-face {
  font-family: "Paperlogy";
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-thin.woff") format("woff"),
       url("/css/fonts/paperlogy-thin.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-extralight.woff") format("woff"),
       url("/css/fonts/paperlogy-extralight.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-light.woff") format("woff"),
       url("/css/fonts/paperlogy-light.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-regular.woff") format("woff"),
       url("/css/fonts/paperlogy-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/Paperlogy-medium.woff") format("woff"),
       url("/css/fonts/Paperlogy-medium.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-semibold.woff") format("woff"),
       url("/css/fonts/paperlogy-semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-bold.woff") format("woff"),
       url("/css/fonts/paperlogy-bold.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-extrabold.woff") format("woff"),
       url("/css/fonts/paperlogy-extrabold.ttf") format("truetype");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("/css/fonts/paperlogy-black.woff") format("woff"),
       url("/css/fonts/paperlogy-black.ttf") format("truetype");
}

/* source: css/base.css */
:root {
  --teal: #108076;
  --teal-dark: #0e5f57;
  --teal-deep: #093f3a;
  --teal-soft: #e8f5f2;
  --ink: #16232d;
  --body: #51636c;
  --muted: #7f8f96;
  --line: #dce7e6;
  --surface: #f4f8f7;
  --white: #fff;
  --blue: #0f76c4;
  --green: #4aa844;
  --orange: #f2871f;
  --violet: #7c51a1;
  --danger: #c0433a;
  --line-strong: #c6d6d4;
  --shadow: 0 18px 50px rgba(12, 73, 68, 0.12);
  --shadow-soft: 0 8px 24px rgba(12, 73, 68, 0.08);
  --radius: 14px;
  --container: 1240px;
  /* 타이포 규격: 본문 16 / 최소 14 / 서브타이틀 24 / 타이틀 32 */
  --fs-min: 14px;
  --fs-body: 16px;
  --fs-subtitle: 24px;
  --fs-title: 32px;
  --control-h: 48px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Paperlogy, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 타이포 규격 기본값 — 개별 지정이 없으면 무조건 이 4단계를 따른다 */
h1 { font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-subtitle); line-height: 1.35; letter-spacing: -0.025em; }
h3, h4, h5, h6 { font-size: var(--fs-body); line-height: 1.45; }
small { font-size: var(--fs-min); }
body.surface-public,
body.surface-mypage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.surface-public > .site-header,
body.surface-public > .site-footer,
body.surface-mypage > .site-header,
body.surface-mypage > .site-footer {
  flex: 0 0 auto;
}
body.surface-public > main,
body.surface-mypage > main {
  width: 100%;
  flex: 1 0 auto;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  word-break: normal;
  /* 교육명·도서명처럼 긴 값이 들어가는 select가 좁은 화면에서 부모를 밀어내지
     않게 한다. min-width:0 이 없으면 flex·grid 안에서 내용 폭만큼 벌어진다. */
  max-width: 100%;
  min-width: 0;
}
/* 선택지가 길면 잘라서 보여 준다. 펼쳤을 때는 브라우저가 전체를 표시한다. */
select {
  text-overflow: ellipsis;
}
button {
  cursor: pointer;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  top: 16px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.muted {
  color: var(--muted);
}
.mobile-only {
  display: none !important;
}

/* source: css/header.css */
.site-header {
  height: 86px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 231, 230, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--container);
  height: 100%;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  width: 208px;
  flex: none;
}
.brand img {
  width: 100%;
  height: auto;
}
.gnb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
}
.gnb-group {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.gnb-group > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-weight: 700;
  font-size: 16px;
  padding: 0 16px;
}
.gnb-group > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.gnb-group:hover > a,
.gnb-group:focus-within > a,
.gnb-group.is-active > a {
  color: var(--teal);
}
.gnb-group:hover > a::after,
.gnb-group:focus-within > a::after,
.gnb-group.is-active > a::after {
  transform: scaleX(1);
}
.gnb-menu {
  display: none;
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.gnb-group:hover .gnb-menu,
.gnb-group:focus-within .gnb-menu {
  display: grid;
}
.gnb-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--body);
  font-size: 14px;
}
.gnb-menu a:hover,
.gnb-menu a.is-active {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-link:hover {
  background: var(--teal-dark);
}
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--body);
  font-size: 18px;
  transition: 0.15s;
}
.icon-button:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.menu-toggle {
  display: none;
}
.mobile-menu,
.search-panel {
  display: none;
}
.search-panel.is-open {
  display: flex;
  position: absolute;
  inset: 86px 0 auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 28px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: var(--shadow);
}
.search-panel div {
  display: flex;
  width: min(620px, 100%);
  min-width: 0;
}
.search-panel input {
  flex: 1;
  min-width: 0;
  min-height: var(--control-h);
  border: 1px solid var(--line-strong);
  border-radius: 12px 0 0 12px;
  padding: 12px 16px;
}
.search-panel button {
  border-radius: 0 12px 12px 0;
}
.header-logout {
  margin: 0;
  display: flex;
}
.header-logout .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--body);
  transition: 0.15s;
}
.header-logout .link-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}
.mobile-menu form {
  margin: 0;
  padding: 0 10px;
}
.mobile-menu .link-button {
  padding: 10px 0;
  font-weight: 700;
}
body.surface-app > .site-header .header-inner,
html.is-app-shell body > .site-header .header-inner {
  max-width: 1040px;
}
body.surface-app > .site-header .header-link,
body.surface-app > .site-header .header-logout .link-button,
html.is-app-shell body > .site-header .header-link,
html.is-app-shell body > .site-header .header-logout .link-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
body.surface-app > .site-header .gnb,
html.is-app-shell body > .site-header .gnb {
  display: none;
}
body.surface-app > .site-header .menu-toggle,
html.is-app-shell body > .site-header .menu-toggle {
  display: block;
}

/* source: css/common.css */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.section {
  padding: 64px 0;
}
.section-soft {
  background: var(--surface);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), #4cbfb2);
}
.section h2,
.page-title h1 {
  font-size: var(--fs-title);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0;
}
.section h3 {
  font-size: var(--fs-subtitle);
}
.section-head p {
  color: var(--body);
  font-size: 16px;
  margin: 8px 0 0;
}
.text-link {
  color: var(--teal-dark);
  font-weight: 700;
}
.button {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s ease;
  white-space: nowrap;
}
.inline-download-form {
  display: inline-flex;
  margin: 0;
}
.section h2,
.page-title h1,
.section h3 {
  text-wrap: balance;
}
.button-primary {
  background: var(--teal);
  color: #fff;
}
.button-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}
.button-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}
.button-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.button-danger {
  background: #fff1f0;
  color: var(--danger);
}
.button-small {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 14px;
}
.button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 파사 앱(WebView) 안에서 열린 웹 페이지: 하단 앱 탭바 주입에 맞춘 보정 */
html.has-injected-app-nav body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
html.is-app-shell .site-footer {
  display: none;
}
html.is-app-shell .site-header {
  padding-top: env(safe-area-inset-top);
}

/* source: css/home.css */
.hero {
  min-height: clamp(440px, 56svh, 560px);
  position: relative;
  display: flex;
  align-items: center;
  background: #102c32;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 30, 34, 0.9) 0%,
    rgba(6, 30, 34, 0.67) 43%,
    rgba(6, 30, 34, 0.12) 78%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 48px));
  margin: auto;
  padding: 64px 0;
  color: #fff;
}
.hero-copy {
  width: min(680px, 100%);
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .eyebrow {
  color: #83e4d8;
}
.hero .eyebrow::before {
  background: #83e4d8;
}
.hero h1 {
  max-width: 680px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 6px 0 16px;
  text-wrap: balance;
}
.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 12px;
}
.hero .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.quick-links {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
  margin: -32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.quick-links a {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s;
}
.quick-links a:last-child {
  border-right: 0;
}
.quick-links a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.quick-links span {
  font-size: 24px;
  color: var(--teal);
  transition: transform 0.2s;
}
.quick-links a:hover span {
  transform: translate(2px, -2px);
}
.list-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
}
.notice-list {
  border-top: 2px solid var(--ink);
}
.notice-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.notice-list a:hover {
  background: var(--surface);
}
.notice-list strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-list time {
  color: var(--muted);
  font-size: 14px;
}
.event-strip {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.event-row {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 22px;
  transition: background 0.15s;
}
.event-row:hover {
  background: var(--surface);
}
.event-row strong {
  font-size: 16px;
}
.event-row b {
  color: var(--teal-dark);
  font-size: 14px;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-closed {
  background: #f0f2f2;
  color: #66757b;
}
.badge-RA {
  background: #eaf3fb;
  color: var(--blue);
}
.badge-MA {
  background: #f3edfb;
  color: #7250a3;
}
.badge-BD {
  background: #eef8ea;
  color: var(--green);
}
.badge-GS {
  background: #fff3e8;
  color: #b86615;
}
.division-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.division-grid a {
  background: #fff;
  padding: 34px 28px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  transition: 0.25s;
}
.division-grid a:hover {
  background: var(--teal-deep);
  color: #fff;
}
.division-grid h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.division-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-soft);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--teal-dark);
  margin-bottom: auto;
  transition: 0.25s;
}
.division-grid a:hover .division-mark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.division-grid p {
  color: var(--body);
  font-size: 14px;
  margin: 4px 0 0;
}
.division-grid a:hover p {
  color: rgba(255, 255, 255, 0.72);
}
.brand-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.brand-wall div {
  min-width: 0;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--body);
  overflow-wrap: anywhere;
  text-align: center;
}
.brand-wall img {
  width: calc(100% - 34px);
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.home-cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 768px) {
  .home-cta-actions {
    justify-content: flex-start;
  }
}

/* source: css/content.css */
.page-title {
  background: linear-gradient(120deg, var(--teal-deep) 0%, #0d554d 62%, #12695f 100%);
  color: #fff;
  padding: 54px 0 44px;
}
.page-title p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  max-width: 740px;
  margin: 10px 0 0;
}
.breadcrumb {
  font-size: 14px;
  color: #9ad7d0;
  margin-bottom: 14px;
}
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0 80px;
}
.lnb {
  position: sticky;
  top: 116px;
  height: max-content;
  border-top: 2px solid var(--ink);
}
.lnb strong {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.lnb a {
  position: relative;
  display: block;
  padding: 13px 8px;
  color: var(--body);
  font-size: 16px;
  border-bottom: 1px solid #edf2f1;
  transition: color 0.15s, background 0.15s;
}
.lnb a:hover {
  color: var(--teal-dark);
  background: var(--surface);
}
.lnb a.is-active {
  color: var(--teal);
  font-weight: 800;
}
.lnb a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--teal);
}
.prose {
  font-size: 16px;
  color: var(--body);
}
.prose .lead {
  font-size: 24px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.55;
  margin-top: 0;
}
.prose-body {
  white-space: pre-line;
  line-height: 2;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.info-grid.division-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.info-block {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.timeline {
  border-left: 2px solid var(--teal);
  padding-left: 28px;
  margin-top: 40px;
}
.timeline p {
  margin: 0 0 22px;
}
.location-map {
  min-height: 360px;
  margin-top: 38px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #d7e9e7, #eef5f4);
}
.location-info {
  margin-top: 26px;
}
.location-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.location-info a {
  color: var(--teal);
  font-weight: 700;
}
.org-chart {
  display: grid;
  justify-items: center;
  margin-top: 36px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f7fbfa, #fff);
}
.org-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 16px;
  width: min(100%, 520px);
}
.org-row.org-divisions {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  width: min(100%, 860px);
}
.org-node {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-weight: 800;
}
.org-node small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}
.org-node-primary {
  min-width: 220px;
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
.org-connector {
  width: 1px;
  height: 28px;
  background: var(--line);
}
.ci-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  margin-top: 46px;
}
.ci-logo-panel,
.ci-colors {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ci-logo-panel img {
  width: min(100%, 340px);
  height: auto;
}
.ci-logo-panel p {
  margin: 26px 0 0;
  color: var(--muted);
}
.ci-colors {
  display: grid;
  gap: 18px;
}
.ci-colors div {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  align-items: center;
}
.ci-colors span {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ci-color);
}
.ci-colors small {
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filters a,
.filters button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--body);
  transition: 0.15s;
}
.filters a:hover,
.filters button:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.filters .is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}
.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.pagination a {
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}
.pagination a.is-active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}
.event-list,
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #4cbfb2);
}
.event-card:hover {
  border-color: #bcd8d4;
}
.event-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.event-card h3 {
  font-size: 20px;
  color: #0a141c;
  margin: 4px 0;
  text-wrap: balance;
}
.event-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  color: var(--body);
  font-size: 14px;
}
.event-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.event-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
}
.event-detail > * {
  min-width: 0;
  max-width: 100%;
}
.book-detail-download {
  max-width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.detail-panel {
  position: sticky;
  top: 116px;
  height: max-content;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail-panel dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
.detail-panel dt {
  color: var(--muted);
}
.curriculum {
  margin: 34px 0;
}
.curriculum li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.book-grid {
  grid-template-columns: repeat(4, 1fr);
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.book-card > .badge {
  margin-top: 2px;
}
.book-card .button {
  margin-top: 4px;
}
.book-cover {
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  color: #fff;
  display: flex;
  align-items: end;
  padding: 0;
  font-size: 24px;
  font-weight: 800;
  text-wrap: balance;
  overflow: hidden;
}
.book-cover > span {
  display: flex;
  align-items: end;
  width: 100%;
  height: 100%;
  padding: 24px;
}
.book-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.book-card h3 {
  font-size: 16px;
  margin: 4px 0 0;
  text-wrap: balance;
}
.book-card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.book-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.viewer {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 86px);
  background: #15262b;
  color: #fff;
}
.viewer-sidebar {
  padding: 32px;
  background: #0c1d21;
}
.viewer-sidebar a {
  display: block;
  padding: 10px;
  color: rgba(255, 255, 255, 0.68);
}
.viewer-page {
  margin: 40px;
  background: #fff;
  color: var(--ink);
  padding: 70px;
  box-shadow: 0 20px 60px #0006;
  min-height: 760px;
}
.viewer-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  position: sticky;
  top: 86px;
  background: #15262b;
  color: #fff;
  padding: 14px 40px;
  z-index: 3;
}
.viewer-toolbar a {
  color: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}
.viewer-toolbar strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viewer-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.ebook-pdf-panel {
  width: min(1440px, calc(100% - 48px));
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.ebook-pdf-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ebook-pdf-panel__head h2 {
  margin: 4px 0 0;
}
[data-ebook-pdf-retry][hidden] {
  display: none !important;
}
.ebook-pdf-frame {
  display: block;
  width: 100%;
  min-height: max(720px, calc(100vh - 230px));
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.viewer.has-pdf-companion {
  min-height: auto;
  margin-top: 24px;
}
.ebook-pdf-panel .ebook-pdf-controls {
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0 0;
}
.ebook-pdf-controls__zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ebook-pdf-canvas-wrap {
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f2f4f5;
  text-align: center;
  max-height: calc(100svh - 180px);
}
.ebook-pdf-canvas {
  display: inline-block;
  margin: 12px auto;
  background: #fff;
  box-shadow: 0 6px 24px #0002;
  max-width: none;
}
.board-list {
  border-top: 2px solid var(--ink);
}
.board-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 80px;
  gap: 20px;
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.board-row--wide {
  grid-template-columns: 80px 1fr 120px 100px 80px;
}
.board-row:hover {
  background: var(--surface);
}
.board-row .board-number,
.board-row time,
.board-row .views,
.board-row .board-author {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.search-form {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 20px;
}
.search-form input {
  width: 300px;
  max-width: 100%;
  min-width: 0;
  min-height: var(--control-h);
  flex: 1 1 160px;
  border: 1px solid var(--line-strong);
  padding: 11px 14px;
  border-radius: 10px 0 0 10px;
}
.search-form select {
  flex-shrink: 0;
  min-height: var(--control-h);
  border: 1px solid var(--line-strong);
  border-left: 0;
  padding: 11px 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.search-form button {
  flex-shrink: 0;
  border-radius: 0 10px 10px 0;
}
.article {
  max-width: 860px;
  margin: auto;
}
.article-meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.article-feature-image {
  aspect-ratio: 4 / 3;
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
}
.article-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  padding: 36px 0;
  min-height: 220px;
  white-space: pre-line;
}
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.attachment-list h2 {
  flex: 0 0 100%;
  margin-bottom: 2px;
}
.attachment-list .button {
  max-width: 100%;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 28px;
  border-block: 1px solid var(--line);
}
.article-neighbors > * {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px 20px;
}
.article-neighbors > * + * {
  border-left: 1px solid var(--line);
  text-align: right;
}
.article-neighbors span,
.article-neighbors small {
  color: var(--muted);
  font-size: 14px;
}
.article-neighbors strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.survey-card {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.survey-card-public {
  align-items: flex-start;
  flex-wrap: wrap;
}
.survey-public-form {
  margin-left: auto;
}
.survey-public-form > summary {
  list-style: none;
  cursor: pointer;
}
.survey-public-form > summary::-webkit-details-marker {
  display: none;
}
.survey-public-form[open] {
  flex: 1 0 100%;
  margin: 8px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft, #f6faf9);
}
.survey-public-form[open] > summary {
  margin-bottom: 20px;
}
.search-form-large {
  max-width: 820px;
  margin: 0 auto 34px;
}
.search-form-large input {
  min-height: var(--control-h);
  font-size: 16px;
}
.search-result-list {
  display: grid;
  gap: 12px;
}
.search-result {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.search-result:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.search-result h2 {
  margin: 10px 0 6px;
  font-size: 24px;
}
.search-result p {
  color: var(--muted);
}
.bank-account {
  margin: 32px 0 0;
  padding: 28px;
  border: 1px solid #b9ddd8;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eff9f7, #fff);
  box-shadow: 0 12px 34px rgba(14, 95, 87, 0.08);
}
.bank-account h3 { margin: 2px 0 8px; }
.bank-account p { margin: 0; }
.bank-account dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 14px;
}
.bank-account dl div {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.bank-account dt { color: var(--muted); font-size: 14px; }
.bank-account dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.bank-account__note { color: var(--body); font-size: 14px; }
.price-pair { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 16px; }
.price-pair span { color: var(--body); font-size: 14px; }
.price-pair strong { color: var(--teal-dark); }
.price-applied, .fee-policy {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--teal-soft);
}
.fee-policy { margin-bottom: 22px; }
.fee-policy p { margin: 4px 0 0; color: var(--body); }
@media (max-width: 800px) {
  .bank-account { padding: 20px; }
  .bank-account dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .bank-account dl { grid-template-columns: 1fr; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e9e7, #eef5f4);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--teal-dark);
  font-weight: 700;
  text-align: center;
}
.gallery-card strong {
  font-size: 16px;
  line-height: 1.4;
}
.gallery-card time {
  color: var(--muted);
  font-size: 14px;
}
.viewer-controls {
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.viewer-controls button[disabled] {
  opacity: 0.45;
  cursor: default;
}
.viewer-controls-app {
  margin: 18px 18px 0;
  justify-content: flex-end;
}
.viewer-content {
  font-size: 100%;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 정적 서브페이지(원본 콘텐츠 이전) 공통 컴포넌트 ===== */
.prose .sec-title {
  position: relative;
  margin: 46px 0 18px;
  padding-left: 16px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.prose .sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), #4cbfb2);
}
.prose .sec-title:first-child,
.prose .lead + .sec-title {
  margin-top: 34px;
}
/* 인사말 */
.greeting-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: start;
  margin-bottom: 10px;
}
.greeting-intro img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.greeting-sign {
  margin-top: 26px;
  font-size: 16px;
  font-weight: 800;
  color: var(--teal-dark);
}
/* 설립목적: 비전·미션·슬로건 */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
.vm-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 24px;
  text-align: center;
}
.vm-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vm-card p {
  margin: 0;
  color: var(--body);
}
.vm-plus {
  align-self: center;
  color: var(--teal);
  font-size: 24px;
  font-weight: 800;
}
.slogan-banner {
  margin-top: 16px;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--teal-deep), #12695f);
  color: #fff;
  text-align: center;
}
.slogan-banner small {
  display: block;
  margin-bottom: 6px;
  color: #9ad7d0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.slogan-banner strong {
  font-size: 24px;
}
/* 주요사업 리스트 */
.biz-list {
  display: grid;
  gap: 12px;
}
.biz-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.biz-item span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 800;
}
.biz-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
/* 연혁 */
.history-list {
  border-top: 2px solid var(--teal-deep);
}
.history-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}
.history-year {
  font-size: 24px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.25;
}
.history-rows {
  display: grid;
  gap: 10px;
  align-content: start;
}
.history-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
}
.history-row b {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding-top: 2px;
}
.history-row p {
  margin: 0;
  color: var(--ink);
}
/* CI */
.ci-symbol-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}
.ci-symbol-panel img {
  width: 100%;
  max-width: 190px;
  margin: auto;
}
.ci-meaning {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.ci-meaning li {
  font-weight: 700;
  color: var(--teal-dark);
}
.ci-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ci-logo-box {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}
.ci-logo-box img {
  width: min(100%, 300px);
}
/* 회원 유형·혜택 */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.benefit-item span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}
.benefit-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.benefit-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}
/* 절차 스텝 플로우 */
.step-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.step-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px 16px;
  text-align: center;
}
.step-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.step-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
/* 정의형 표(좌측 th) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--teal-deep);
  background: #fff;
}
.info-table th {
  width: 220px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  text-align: left;
}
.file-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
/* 분과 소개 */
.division-list {
  display: grid;
  gap: 14px;
}
.division-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.division-row img {
  width: 104px;
}
.division-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.division-row h3 small {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
}
.division-row p {
  margin: 0;
  color: var(--body);
}
.division-row .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .greeting-intro,
  .ci-symbol-panel,
  .ci-logos,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .greeting-intro img {
    max-width: 260px;
  }
  .vm-grid {
    grid-template-columns: 1fr;
  }
  .vm-plus {
    justify-self: center;
  }
  .history-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .history-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .step-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .division-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
  }
  .info-table th {
    width: 120px;
  }
}

/* 목록형 서브페이지 본문 컬럼 */
.page-main {
  min-width: 0;
}
.page-main > .filters {
  margin-bottom: 22px;
}
/* 교육·행사 신청: 카드 1줄 1개 */
.event-list--single {
  grid-template-columns: 1fr;
}
/* 게시판 툴바: 검색바 + 우측 새 게시글 작성 */
.board-toolbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.board-toolbar .search-form {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.board-write {
  flex: none;
}
.board-write > summary {
  list-style: none;
  cursor: pointer;
}
.board-write > summary::-webkit-details-marker {
  display: none;
}
.board-write[open] > summary {
  background: var(--teal-dark);
}
.board-write > form {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* 회원유형 카드: 박스 기준 상하 가운데 정렬 */
.info-grid--center .info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  min-height: 230px;
}
.info-grid--center .info-block h3,
.info-grid--center .info-block p {
  margin: 0;
}
/* 오시는 길: 풀폭 안내 행 */
.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}
.location-rows {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.location-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: #fff;
}
.location-row > strong {
  color: var(--teal-dark);
  font-size: 16px;
}
.location-row p {
  margin: 0;
  color: var(--ink);
}
.location-row small {
  color: var(--muted);
}
.location-row a {
  color: var(--teal-dark);
  font-weight: 700;
}
@media (max-width: 768px) {
  .board-toolbar {
    flex-wrap: wrap;
  }
  .location-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 20px;
  }
  .info-grid--center .info-block {
    min-height: 0;
  }
}

/* 도서 상세에서 E-Book 열람 방법을 주문 전에 알려 주는 안내. */
.notice-inline {
  margin: 12px 0 20px;
  border: 1px solid #cce5e1;
  border-left: 4px solid var(--brand, #0e5f57);
  border-radius: var(--radius);
  background: #f3faf9;
  padding: 14px 18px;
  color: #1d3b38;
  line-height: 1.65;
}
.notice-inline strong {
  display: block;
  margin-bottom: 2px;
}

/* 교육·행사 연간 일정표 */
.schedule-year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 26px 0 18px;
}
.schedule-year-tabs a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.schedule-year-tabs a:hover,
.schedule-year-tabs a:focus-visible {
  border-color: var(--brand, #0e5f57);
}
.schedule-year-tabs a.is-active {
  background: var(--brand, #0e5f57);
  border-color: var(--brand, #0e5f57);
  color: #fff;
}
.schedule-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 14px;
}
.schedule-table th,
.schedule-table td {
  border: 1px solid var(--line);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}
.schedule-table thead th {
  background: #f3faf9;
  font-weight: 600;
  white-space: nowrap;
}
.schedule-table .schedule-name {
  min-width: 320px;
  text-align: left;
  font-weight: 500;
}
.schedule-table .schedule-name a {
  color: inherit;
  text-decoration: none;
}
.schedule-table .schedule-name a:hover,
.schedule-table .schedule-name a:focus-visible {
  text-decoration: underline;
}
.schedule-table .schedule-hours {
  width: 72px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.schedule-table tbody td {
  width: 58px;
  font-variant-numeric: tabular-nums;
  color: var(--brand, #0e5f57);
  font-weight: 600;
}
.schedule-table tbody td.is-on {
  background: #e4f4f1;
}
.schedule-table .schedule-group th {
  background: #eef2f1;
  text-align: left;
  font-weight: 700;
}
@media (max-width: 768px) {
  .schedule-table { min-width: 820px; }
  .schedule-table .schedule-name { min-width: 240px; }
}

/* source: css/forms.css */
.has-auth > main {
  display: flex;
  min-height: 0;
}
.auth-shell {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-visual {
  background:
    linear-gradient(160deg, rgba(8, 51, 48, 0.75), rgba(8, 51, 48, 0.95)),
    url("/img/main_visual01.webp") center/cover;
  color: #fff;
  min-width: 0;
  padding: clamp(56px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-visual > * {
  width: 100%;
  max-width: 560px;
}
.auth-visual-inner {
  width: 100%;
}
.auth-visual .eyebrow {
  color: #72ded3;
}
.auth-visual h1 {
  margin: 20px 0 22px;
  font-size: 32px;
  line-height: 1.3;
  text-wrap: balance;
}
.auth-visual p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}
.auth-panel {
  min-width: 0;
  padding: clamp(28px, 2.2vw, 56px) clamp(52px, 6vw, 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.auth-panel-inner {
  width: min(100%, 560px);
}
.auth-shell.is-signup {
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
}
.auth-shell.is-signup .auth-visual {
  align-items: center;
  justify-content: flex-start;
}
.auth-shell.is-signup .auth-visual-inner {
  position: sticky;
  top: 150px;
  margin-top: clamp(80px, 11vh, 150px);
}
.auth-shell.is-signup .auth-panel {
  align-items: flex-start;
  padding-block: clamp(54px, 6vw, 96px);
}
.auth-panel-inner.auth-panel-wide {
  width: min(100%, 820px);
}
.auth-panel h2 {
  margin: 0 0 26px;
  font-size: 32px;
  line-height: 1.3;
  text-wrap: balance;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 26px;
  background: var(--surface);
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 12px 14px;
  color: var(--body);
}
.tabs button.is-active {
  color: var(--teal-dark);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(12, 73, 68, 0.1);
}
.form-stack {
  display: grid;
  gap: 16px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.checkbox-row label {
  white-space: nowrap;
}
form label:has(> input[type="checkbox"]),
form label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.native-device-change {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.native-device-change h3 { margin: 0 0 8px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
  align-content: start;
}
.field label {
  font-weight: 700;
  font-size: 14px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 12px 14px;
  background: #fff;
  min-height: var(--control-h);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(18, 137, 126, 0.18);
  border-color: var(--teal);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.choice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.choice-card strong {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal-dark);
}
.choice-card:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.form-help {
  font-size: 14px;
  color: var(--muted);
}
.signup-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.signup-heading h2 {
  margin-bottom: 0;
}
.signup-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signup-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
}
.signup-progress span,
.signup-section legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}
.signup-form {
  display: grid;
  gap: 30px;
}
.signup-section {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.signup-section legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}
.section-description {
  margin: -8px 0 0;
  color: var(--body);
  font-size: 14px;
}
.required {
  color: var(--teal);
  font-size: 14px;
}
.field-full {
  grid-column: 1 / -1;
}
.field-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}
.field-action .button {
  min-width: 116px;
  padding-inline: 16px;
}
.field small {
  color: var(--muted);
  font-size: 14px;
}
.status-message {
  min-height: 1.45em;
}
.status-message.is-success {
  color: var(--teal-dark);
  font-weight: 700;
}
.status-message.is-error {
  color: var(--danger);
  font-weight: 700;
}
.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.consent-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}
.consent-row span {
  display: grid;
  gap: 2px;
}
.consent-row small {
  color: var(--muted);
  font-size: 14px;
}
.consent-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-panel .form-help .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.address-fields .field:first-child,
.address-fields .field:nth-child(2) {
  grid-column: 1 / -1;
}
.signup-preferences label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}
.signup-preferences input {
  width: 19px;
  height: 19px;
  accent-color: var(--teal);
}
.signup-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--teal-deep);
  color: #fff;
}
.signup-submit p {
  margin: 0;
  color: #c7e6e2;
  font-size: 14px;
}
.signup-submit strong {
  color: #fff;
}
.signup-submit .button {
  min-width: 150px;
}
.auth-complete {
  display: grid;
  justify-items: start;
  gap: 20px;
}
.complete-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 800;
}
.auth-complete h2,
.auth-complete p {
  margin: 0;
}
.auth-complete ol {
  display: grid;
  width: 100%;
  gap: 10px;
  margin: 2px 0 6px;
  padding: 0;
  list-style: none;
}
.auth-complete li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.auth-complete li strong {
  color: var(--teal);
}

/* display:grid가 hidden 속성을 덮어쓰지 않도록 — 앱 전용 QR 등록 폼/웹 안내 토글용 */
form[data-qr-bind-native][hidden],
[data-qr-bind-web][hidden] {
  display: none !important;
}

/* source: css/mypage.css */
.mypage-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100%;
}
/* 사이드바: 스크롤과 무관하게 화면에 고정(sticky) — 헤더 86px 아래 기준 */
.mypage-nav {
  position: sticky;
  top: 86px;
  align-self: start;
  min-height: calc(100vh - 86px);
  max-height: calc(100vh - 86px);
  overflow-y: auto;
  background: var(--teal-deep);
  color: #fff;
  padding: 38px 26px;
  min-width: 0;
}
.mypage-nav h2 {
  margin: 0 0 4px;
  font-size: 24px;
}
.mypage-nav p {
  color: #9ad7d0;
  font-size: 14px;
  margin: 0 0 28px;
}
.mypage-nav nav {
  display: grid;
  gap: 6px;
}
.mypage-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}
.mypage-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.mypage-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
}
.mypage-content {
  padding: 36px clamp(24px, 4vw, 48px) 64px;
  min-width: 0;
  background: #fafcfb;
}
.mypage-content > h1 {
  position: relative;
  font-size: 32px;
  margin: 6px 0 24px;
  padding-left: 18px;
}
.mypage-content > h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), #4cbfb2);
}
.mypage-content .form-stack + .admin-panel,
.mypage-content form + .admin-panel {
  margin-top: 32px;
}
.mypage-content .admin-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}
.stat strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  color: var(--teal);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--teal-deep);
  background: #fff;
}
.data-table th {
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
/* 헤더·내용 모두 가운데 정렬로 통일 */
.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.data-table td form {
  margin: 0 auto;
}
.data-table .inline-form {
  justify-content: center;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.application-actions {
  min-width: 220px;
}
.education-cancel-form {
  display: grid;
  gap: 8px;
  position: relative;
}
.education-cancel-form > .sr-only {
  left: 0;
  top: 0;
}
.education-cancel-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
}
.education-cancel-form .button {
  width: 100%;
}
* + .empty {
  margin-top: 18px;
}
.empty {
  padding: 30px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
}
/* 내 QR코드: 식별 QR(좁은 카드) + 발급 QR·기기 관리(넓은 카드) */
.qr-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.qr-identity img {
  width: 168px;
  margin: 14px auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.qr-identity h3 {
  margin: 8px 0 2px;
}
.qr-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.qr-identity .qr-identity__code {
  display: grid;
  gap: 4px;
  margin: 14px 0 8px;
  padding: 12px 10px;
  border-radius: 11px;
  background: var(--surface);
}
.qr-identity__code span {
  font-size: 13px;
}
.qr-identity__code code {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--body);
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  .qr-layout {
    grid-template-columns: 1fr;
  }
}
.qr-box {
  width: 240px;
  height: 240px;
  background: repeating-conic-gradient(#16232d 0 25%, #fff 0 50%) 0/20px 20px;
  border: 18px solid #fff;
  box-shadow: var(--shadow);
  margin: 30px auto;
}

.corporate-notice,
.corporate-summary {
  margin-bottom: 24px;
  border: 1px solid #cce5e1;
  border-radius: var(--radius);
  background: #f3faf9;
  padding: 24px;
}
.corporate-notice > h2,
.corporate-summary h2 {
  margin: 5px 0 8px;
}
.corporate-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.corporate-summary p,
.corporate-request-row p {
  margin: 4px 0 0;
  color: var(--muted);
}
.corporate-request-list,
.corporate-member-list,
.group-history-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.corporate-request-row,
.corporate-member-row,
.group-history-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.corporate-request-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.corporate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}
.corporate-connect-panel {
  position: sticky;
  top: 24px;
}
.corporate-member-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, auto);
  align-items: center;
  gap: 16px;
}
.corporate-member-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.corporate-member-identity span,
.corporate-member-identity small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.corporate-member-actions,
.corporate-member-actions form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.corporate-member-actions select,
.corporate-member-actions input {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  max-width: 170px;
}
.corporate-profile-panel,
.group-application-panel,
.group-history-panel {
  margin-top: 24px;
}
.corporate-empty strong {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink);
}
.group-participant-picker {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.group-participant-picker legend {
  padding: 0 8px;
  font-weight: 800;
}
.group-participant-picker legend small {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}
.group-participant-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.group-participant-toolbar strong {
  margin-left: auto;
  color: var(--teal);
}
.group-participant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}
.group-participant {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}
.group-participant:has(input:checked) {
  border-color: var(--teal);
  background: #f1faf8;
}
.group-participant input {
  margin-top: 3px;
}
.group-participant span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.group-participant small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.group-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  gap: 20px;
  padding-bottom: 16px;
}
.group-history-main h3 {
  margin: 10px 0 6px;
}
.group-history-main p,
.group-history-main small {
  color: var(--muted);
}
.group-amount {
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 0;
}
.group-amount div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.group-amount dt {
  color: var(--muted);
}
.group-amount dd {
  margin: 0;
}
.group-cancel-form {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.group-cancel-form > label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}
.ebook-device-manager {
  margin-top: 16px;
}
.ebook-device-row {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}
.ebook-device-row small {
  overflow-wrap: anywhere;
}

/* source: css/admin.css */
.surface-admin {
  overflow-x: hidden;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #10272d;
  color: #fff;
  padding: 26px 20px;
  overflow: auto;
  z-index: 120;
}
.admin-sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 28px;
  min-height: 44px;
}
.admin-brand img {
  width: 42px;
}
.admin-home,
.admin-sidebar section a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #c7d4d7;
  font-size: 14px;
}
.admin-sidebar .is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}
.admin-sidebar section {
  margin-top: 22px;
}
.admin-sidebar section strong {
  display: block;
  color: #6f8e95;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin: 0 12px 7px;
}
.survey-stat {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.survey-stat h3 {
  margin: 0 0 10px;
}
.survey-stat p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 7px 0;
}
.survey-stat blockquote {
  margin: 10px 0;
  padding: 12px;
  border-left: 3px solid var(--teal);
  background: #f4f8f7;
}
.survey-stat blockquote small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.admin-shell {
  margin-left: 250px;
  min-height: 100vh;
  background: #f5f7f7;
}
.admin-topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 80;
}
.admin-top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}
.admin-top-actions a,
.admin-top-actions button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.admin-top-actions form {
  margin: 0;
}
.link-button {
  border: 0;
  background: none;
  color: var(--body);
  padding: 0;
}
.admin-main {
  padding: 34px;
  min-width: 0;
}
.admin-main h1 {
  margin: 0 0 26px;
  font-size: 32px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.admin-stat {
  background: #fff;
  border: 1px solid #e4ebea;
  border-radius: 14px;
  padding: 20px;
}
.admin-stat span {
  color: var(--muted);
  font-size: 14px;
}
.admin-stat strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: start;
}
.admin-panel {
  background: #fff;
  border: 1px solid #e4ebea;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
.admin-panel h2 {
  font-size: 24px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.admin-panel .data-table {
  font-size: 14px;
}
.rich-editor {
  border: 1px solid #cad9d7;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.rich-editor:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 137, 126, 0.18);
}
.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid #dce6e4;
  background: #f6f9f8;
}
.rich-editor__toolbar button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cad9d7;
  border-radius: 7px;
  background: #fff;
  color: var(--body);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.rich-editor__toolbar button:hover,
.rich-editor__toolbar button:focus-visible {
  border-color: var(--teal);
  color: var(--teal-dark);
  outline: 0;
}
.rich-editor__surface {
  min-height: 280px;
  max-height: 65vh;
  padding: 16px;
  overflow: auto;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.rich-editor__surface:focus {
  outline: 0;
}
.rich-editor__surface:empty::before {
  content: "E-Book에서 보여 줄 본문을 입력하십시오.";
  color: var(--muted);
  pointer-events: none;
}
.rich-editor__surface h2,
.rich-editor__surface h3,
.rich-editor__surface blockquote,
.rich-editor__surface p {
  margin: 0 0 0.8em;
}
.rich-editor__surface img {
  max-width: 100%;
  height: auto;
}
.rich-editor__source {
  min-height: 240px;
}
.rich-editor.is-enhanced [data-rich-source] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 9px;
  max-width: 180px;
}
.progress {
  height: 8px;
  background: #e6eeee;
  border-radius: 999px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--teal);
}
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.admin-panel__head h2 { margin: 2px 0 0; }
.form-stack--compact { gap: 8px; min-width: 180px; }
.admin-details {
  margin-top: 7px;
  color: var(--body);
}
.admin-details summary {
  cursor: pointer;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}
.admin-details small {
  display: inline-block;
  margin-top: 7px;
  line-height: 1.7;
}

.edit-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
}
.edit-note .link-button {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
}
.public-image-manager {
  margin-bottom: 26px;
}
.media-manager-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
}
.media-manager-summary::-webkit-details-marker { display: none; }
.media-manager-summary > span:first-child { min-width: 0; }
.media-manager-summary strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.media-manager-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.media-manager-toggle::before { content: "이미지 관리 열기"; }
.media-manager-details[open] .media-manager-toggle::before { content: "닫기"; }
.media-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.media-manager-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  color: var(--teal-dark);
  font-weight: 800;
  text-align: center;
}
.media-preview-logo { aspect-ratio: 8 / 5; }
.media-preview-cover { aspect-ratio: 3 / 4; }
.media-preview-thumbnail { aspect-ratio: 4 / 3; }
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-preview-logo img {
  padding: 18px;
  object-fit: contain;
  background: #fff;
}
.media-preview span {
  padding: 18px;
}
.media-manager-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.media-manager-body > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-upload-form {
  gap: 10px;
}
.media-upload-form .field {
  gap: 5px;
}
.media-upload-form input[type="file"] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
}
.media-remove-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--danger);
  font-size: 14px;
}
.media-remove-option input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  flex: 0 0 18px;
}
[data-post-attachment-list] .media-remove-option,
.post-attachment-summary {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.admin-panel [data-current-file] {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 신규 등록 직후 이동한 행 하이라이트 */
tr:target {
  scroll-margin-top: 90px;
  background: #eaf6f3;
  outline: 2px solid #12897e;
  outline-offset: -2px;
}

/* 표 안 인라인 수정 폼: 고정폭 세로 스택으로 컬럼 폭 팽창(해상도별 잘림) 방지 */
.data-table .inline-form {
  flex-direction: column;
  align-items: stretch;
  width: 190px;
}
.data-table .inline-form input,
.data-table .inline-form select {
  max-width: none;
  width: 100%;
  min-width: 0;
}

.qr-release-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}
.qr-release-actions .button {
  width: 100%;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}
.admin-tabs a.is-active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}
.admin-tabs__count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e52c5c;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

/* 교육 현장 회원 확인: 회원 식별 QR 스캔 → 신청·결제·출결 즉시 확인 */
.member-identify__scan {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 6px;
}
.member-identify__camera {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #12262b;
}
.member-identify__camera video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-identify__camera.is-live video {
  display: block;
}
.member-identify__camera.is-live .member-identify__placeholder {
  opacity: 0;
}
.member-identify__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  color: #c5e9e5;
}
.member-identify__placeholder strong {
  font-size: 30px;
  letter-spacing: 0.08em;
}
.member-identify__placeholder span {
  font-size: 14px;
}
.member-identify__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.member-identify__manual {
  width: 100%;
}
.member-identify__manual label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.member-identify__result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.member-identify__member {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 13px;
  border-left: 5px solid var(--teal);
  background: var(--surface);
}
.member-identify__member.is-warn {
  border-left-color: var(--danger);
}
.member-identify__member strong {
  font-size: 19px;
}
.member-identify__member small {
  color: var(--muted);
}
.member-identify__notice {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 11px;
  font-weight: 700;
}
.member-identify__notice.is-error {
  background: #fdeaee;
  color: #a01532;
}
.member-identify__notice.is-warning {
  background: #fff3e4;
  color: #8a4b06;
}
.member-identify__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.member-identify__facts dt {
  color: var(--muted);
  font-size: 14px;
}
.member-identify__facts dd {
  margin: 3px 0 0;
  font-weight: 800;
}
.member-identify__sessions {
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}
.member-identify__sessions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.member-identify__sessions span {
  flex: 1;
  min-width: 0;
}
.member-identify__sessions strong.is-present {
  color: var(--teal-dark);
}
.member-identify__sessions strong.is-absent {
  color: var(--danger);
}
.member-identify__sessions small {
  color: var(--muted);
}
.member-identify__checkin {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .member-identify__scan {
    grid-template-columns: minmax(0, 1fr);
  }
  .member-identify__camera {
    max-width: 320px;
  }
}

/* 현장 확인 배지 — 접수대에서 신청·입금을 한눈에 구분한다. */
.member-identify__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.identify-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
}
.identify-badge.is-applied {
  background: #dceae6;
  border-color: #9ec9be;
  color: #0a423d;
}
.identify-badge.is-missing {
  background: #f6dedc;
  border-color: #dda8a3;
  color: #7d1c17;
}
.identify-badge.is-paid {
  background: #e4edf6;
  border-color: #a9c2d9;
  color: #24425e;
}
.identify-badge.is-unpaid {
  background: #f6ead6;
  border-color: #ddbf8c;
  color: #7a4604;
}

/* 도착 현황판 */
.attendance-feed__table td small {
  color: #6b7d78;
}
.attendance-feed__table tr.needs-action {
  background: #fdf4ef;
}
.attendance-feed__table tr.needs-action td:first-child {
  box-shadow: inset 3px 0 0 #c2621c;
}
.attendance-feed .status-message.is-error {
  color: #96241f;
}

/* 출결 명단 — 접수대가 신청·입금을 먼저 보게 한다. */
.attendance-alert {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid #ddbf8c;
  border-left: 3px solid #c2621c;
  background: #fdf6ec;
  border-radius: 4px;
  font-size: 14px;
  color: #5f3a06;
}
.attendance-alert strong {
  color: #7a4604;
}
.stat.is-warn strong {
  color: #a3540a;
}
.attendance-roster {
  margin-top: 24px;
}
.attendance-roster__head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.attendance-roster__head .form-help {
  margin: 0 0 12px;
}
/* 입금 전 신청자는 행 왼쪽에 표시를 남겨 스크롤 중에도 눈에 걸리게 한다. */
.attendance-roster__table tr.is-unpaid > td:first-child {
  box-shadow: inset 3px 0 0 #c2621c;
}
.attendance-roster__table tr.is-unpaid {
  background: #fdf9f4;
}
.attendance-roster__table td small {
  color: #6b7d78;
}
.attendance-feed__time,
.attendance-feed__rate {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* 회원번호는 사무국이 눈으로 대조하는 값이라 자릿수를 고정해 읽기 쉽게 한다. */
.attendance-feed__no {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  word-break: break-all;
}
/* 출석률 칸에 수료 예상이 함께 들어가므로 줄바꿈을 허용한다. */
.attendance-feed__rate small {
  white-space: normal;
  display: inline-block;
}

/* 회차가 많으면 표가 옆으로 길어져 신청·입금을 읽을 수 없다. 기본은 접어 두고
   담당자가 필요할 때만 펼친다. 회차별 처리는 아래 정정 폼에서도 할 수 있다. */
.attendance-roster.is-compact .attendance-roster__session {
  display: none;
}
.attendance-roster__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.attendance-roster__head h3 {
  flex: 0 0 auto;
}
.attendance-roster__head .form-help {
  flex: 1 1 240px;
}

/* 좁은 화면에서는 회차 열을 항상 접는다. */
@media (max-width: 900px) {
  .attendance-roster__session {
    display: none;
  }
}

/* source: css/app.css */
.app-canvas {
  min-height: 100vh;
  min-height: 100svh;
  background: #f3f7f6;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
.app-header {
  background: var(--teal-dark);
  color: #fff;
  padding: calc(28px + env(safe-area-inset-top)) 22px 28px;
}
.app-header > a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}
.app-header h1 {
  font-size: 24px;
  margin: 4px 0;
}
.app-screen {
  width: 100%;
  max-width: 1040px;
  margin: auto;
  background: #fff;
  min-height: calc(100svh - 82px - env(safe-area-inset-bottom));
}
.app-section {
  padding: 24px 20px;
}
.app-filters {
  justify-content: flex-start;
  margin-bottom: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.app-filters a {
  white-space: nowrap;
}
.app-quick {
  /* 항목이 6개로 늘어 3열 2행으로 접는다. 좁은 화면에서 글자가 잘리지 않는
     최소 폭을 지키면서 남는 공간을 균등 배분한다. */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: -18px;
  position: relative;
}
.app-quick a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 7px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 5px 15px #0c494311;
}
.app-quick span {
  display: block;
  font-size: 22px;
  color: var(--teal);
}
.app-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  overflow: visible;
}
.app-quick .app-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 5px;
}
.app-onboarding__icon .app-icon {
  width: 44px;
  height: 44px;
}
.app-card {
  display: block;
  width: 100%;
  color: inherit;
  clear: both;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.app-card:first-of-type {
  border-top: 1px solid var(--line);
}
.app-card h3 {
  font-size: 16px;
}
.app-card strong + .badge,
.app-card h3 + .badge {
  margin-left: 8px;
}
.app-screen > .app-section .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.app-card::after {
  content: "";
  display: block;
  clear: both;
}
.app-card h3 {
  margin: 7px 0;
}
.app-book-detail-link {
  display: grid;
  gap: 10px;
  border-radius: 10px;
}
.app-book-detail-link .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.surface-app .book-card > form,
.surface-app .book-card > .button {
  margin-top: auto;
}
.app-viewer-toc {
  margin: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.app-viewer-toc summary {
  cursor: pointer;
  font-weight: 800;
}
.app-viewer-toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.viewer-page-app {
  margin: 18px;
  /* 72px fixed app navigation plus a 32px touch-safe gap. */
  min-height: max(360px, calc(70svh - 104px));
}
.viewer-page-app .viewer-controls {
  margin-top: 48px;
}
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(100%, 1040px);
  left: 50%;
  transform: translateX(-50%);
  height: calc(72px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 150;
  backdrop-filter: blur(12px);
}
.app-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
.app-nav a span {
  font-size: 20px;
  line-height: 1.2;
}
.app-nav a.is-active {
  color: var(--teal);
  font-weight: 800;
}
.app-nav a.is-scan span {
  width: 48px;
  height: 48px;
  margin-top: -22px;
  margin-bottom: 2px;
  border: 5px solid #f3f7f6;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 9px 22px rgba(14, 95, 87, 0.3);
}
.scanner {
  aspect-ratio: 1;
  max-width: 360px;
  margin: 25px auto;
  background: #12262b;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.scanner video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner.is-live video {
  display: block;
  position: relative;
  z-index: 1;
}
.scanner.is-live .scanner-placeholder {
  opacity: 0;
}
.scanner-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
  color: #c5e9e5;
}
.scanner-placeholder strong {
  font-size: 32px;
  letter-spacing: 0.08em;
}
.scanner-placeholder span {
  font-size: 14px;
}
.scanner.is-native {
  aspect-ratio: 1.45;
  background: linear-gradient(145deg, #0e5f57, #12262b);
}
.scanner:after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 3px solid #79ded2;
  border-radius: 16px;
  box-shadow: 0 0 0 999px #06181b88;
}
.scanner-status {
  min-height: 2.6em;
  margin: 0 0 14px;
  text-align: center;
  color: var(--body);
}
.scanner-bind-result {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #b9ddd8;
  border-radius: 14px;
  background: #eef9f7;
  color: var(--body);
}
.scanner-bind-result.is-error {
  border-color: #edc2bd;
  background: #fff4f2;
}
.scanner-bind-result > strong,
.scanner-bind-result > p {
  display: block;
  margin: 0 0 8px;
}
.scanner-bind-result > :last-child {
  margin-bottom: 0;
}
.scanner-bind-result__contact {
  overflow-wrap: anywhere;
}
.scanner-retry {
  display: block;
  margin: 0 auto 18px;
}
.scanner-manual-toggle {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.scanner-manual-toggle > summary {
  cursor: pointer;
  padding: 14px 2px;
  font-weight: 700;
  color: var(--teal-dark);
  list-style: none;
}
.scanner-manual-toggle > summary::-webkit-details-marker {
  display: none;
}
.scanner-manual-toggle > summary::after {
  content: "＋";
  float: right;
  font-weight: 700;
}
.scanner-manual-toggle[open] > summary::after {
  content: "－";
}
.scanner-manual {
  padding-top: 4px;
}
.toast-stack {
  position: fixed;
  right: 24px;
  top: 104px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  max-width: 100%;
  padding: 14px 18px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  background: #fff;
  border-left: 4px solid var(--teal);
  animation: toast-in 0.25s both;
}
.toast-error {
  border-color: var(--danger);
}
.toast-warning {
  border-color: var(--orange);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.app-header-compact {
  padding: calc(20px + env(safe-area-inset-top)) 20px 22px;
}
.app-header-compact h1 {
  font-size: 22px;
  margin: 0;
  line-height: 1.32;
}
.app-header-compact p {
  margin: 6px 0 0;
  color: #bfe3de;
  font-size: 14px;
  line-height: 1.5;
}
.app-header-compact > a {
  margin-bottom: 2px;
  color: #bfe3de;
  font-size: 14px;
}
.app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 4px;
}
.app-section-head h2 {
  margin: 0;
  font-size: 18px;
}
.app-section-head .text-link {
  font-size: 14px;
  white-space: nowrap;
}
.app-quick a {
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.3;
}
.app-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.app-stat-row-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}
.app-stat {
  display: block;
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: center;
  color: inherit;
}
.app-stat strong {
  display: block;
  font-size: 21px;
  color: var(--teal-dark);
  line-height: 1.2;
}
.app-stat span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.app-menu-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.app-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.app-menu-list a::after {
  content: "›";
  color: var(--muted);
  font-size: 20px;
}
.app-logout {
  margin-top: 24px;
}
.empty-compact {
  padding: 22px 16px;
  line-height: 1.6;
}
/* 앱에서는 하단 탭 MY와 MY 화면 안의 로그아웃 버튼, 메뉴 서랍이 같은 동작을
   제공하므로 상단 헤더의 로그아웃 버튼만 감춰 좁은 화면을 정리한다. */
.is-app-shell .site-header .header-logout {
  display: none;
}
.is-app-shell .auth-visual {
  min-height: 0;
  padding: 30px 22px 32px;
}
.is-app-shell .auth-visual h1 {
  font-size: 26px;
  line-height: 1.3;
}
.is-app-shell .auth-visual p {
  margin-top: 8px;
  font-size: 14px;
}
.is-app-shell .auth-panel-inner {
  padding-top: 26px;
}
.is-app-shell .toast-stack {
  top: auto;
  bottom: calc(88px + env(safe-area-inset-bottom));
  right: 16px;
  left: 16px;
  align-items: stretch;
  max-width: none;
}
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page span {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 26px 30px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
/* E-Book PDF.js reader, personal marks, and native onboarding */
.ebook-revision-banner {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin: 16px 20px 0;
  padding: 13px 16px;
  border: 1px solid #e1b667;
  border-radius: 12px;
  background: #fff8e8;
  color: #5f3b00;
}
.ebook-revision-banner strong {
  flex: 0 0 auto;
}
.ebook-revision-banner span {
  flex: 1 1 auto;
}
.ebook-revision-banner time {
  flex: 0 0 auto;
  font-size: 13px;
}
.ebook-pdf-panel-app {
  width: calc(100% - 32px);
  max-width: none;
  margin: 16px auto;
}
.ebook-reader-toolbar {
  position: sticky;
  top: calc(env(safe-area-inset-top) + 4px);
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 14px -6px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(20, 48, 45, 0.08);
  backdrop-filter: blur(12px);
}
.ebook-reader-toolbar__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ebook-reader-toolbar__pages {
  flex: 1 1 410px;
  justify-content: center;
}
.ebook-reader-toolbar button[aria-pressed="true"],
.ebook-reader-toolbar button[aria-expanded="true"] {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.ebook-page-jump {
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.ebook-page-jump select,
.ebook-page-jump input,
.ebook-view-mode select {
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.ebook-page-jump select {
  width: 72px;
  padding: 0 8px;
  border-right: 1px solid var(--line);
}
.ebook-page-jump input {
  width: 74px;
  padding: 0 8px;
  text-align: right;
}
.ebook-page-jump span {
  display: inline-flex;
  min-width: 120px;
  align-items: center;
  padding: 0 8px 0 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.ebook-view-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}
.ebook-view-mode select {
  width: 92px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 8px;
}
.ebook-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.ebook-reader-layout:has(.ebook-reader-panel:not([hidden])) {
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
}
.ebook-reader-panel {
  max-height: calc(100svh - 210px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ebook-reader-panel[hidden] {
  display: none !important;
}
.ebook-reader-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.ebook-reader-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.ebook-reader-panel__head span {
  color: var(--muted);
  font-size: 12px;
}
.ebook-toc-entry {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 8px 9px calc(8px + (var(--toc-level, 1) - 1) * 14px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--body);
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}
.ebook-toc-entry:hover,
.ebook-toc-entry:focus-visible {
  background: var(--teal-soft);
}
.ebook-search-form {
  display: flex;
  gap: 6px;
}
.ebook-search-form input {
  min-width: 0;
}
.ebook-search-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.ebook-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ebook-search-result:hover,
.ebook-search-result:focus-visible {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.ebook-search-result strong {
  color: var(--teal-dark);
  font-size: 13px;
}
.ebook-search-result span {
  color: var(--body);
  font-size: 13px;
  line-height: 1.45;
}
.ebook-pdf-canvas-wrap {
  position: relative;
  margin-top: 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.ebook-pdf-canvas-wrap.is-vertical {
  border-color: #85bdb6;
  overflow-anchor: none;
  scrollbar-gutter: stable both-edges;
  scroll-behavior: auto;
}
.ebook-pdf-page {
  position: relative;
  display: inline-block;
  margin: 12px auto;
  background: #fff;
  box-shadow: 0 6px 24px #0002;
  text-align: initial;
}
.ebook-pdf-page[hidden],
.ebook-pdf-vertical-pages[hidden] {
  display: none !important;
}
.ebook-pdf-page .ebook-pdf-canvas {
  display: block;
  margin: 0;
  box-shadow: none;
}
.ebook-pdf-vertical-pages {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 1px 12px;
}
.ebook-pdf-vertical-window {
  display: grid;
  width: max-content;
  min-width: 100%;
  gap: 20px;
  justify-items: center;
}
.ebook-pdf-virtual-spacer {
  width: 1px;
  max-width: 1px;
  pointer-events: none;
}
.ebook-pdf-page--vertical {
  position: relative;
  display: block;
  max-width: none;
  margin: 0;
  contain: layout paint style;
  scroll-margin: 10px;
}
.ebook-pdf-page--vertical.is-active {
  outline: 2px solid rgba(31, 122, 111, 0.52);
  outline-offset: 3px;
}
.ebook-pdf-page--vertical.is-loading {
  background: linear-gradient(145deg, #fff 20%, #eef4f3 52%, #fff 84%);
}
.ebook-pdf-page--vertical.is-loading > :is(.ebook-pdf-canvas, .textLayer, .ebook-annotation-layer) {
  visibility: hidden;
}
.ebook-pdf-page--vertical.is-error {
  display: grid;
  place-items: center;
  border: 1px solid #b3261e;
  background: #fff4f2;
}
.ebook-pdf-page__label {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(21, 38, 43, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.textLayer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: clip;
  opacity: 1;
  line-height: 1;
  text-align: initial;
  text-size-adjust: none;
  transform-origin: 0 0;
  forced-color-adjust: none;
  user-select: text;
}
.textLayer :is(span, br) {
  position: absolute;
  color: transparent;
  white-space: pre;
  cursor: text;
  transform-origin: 0 0;
}
.textLayer span.markedContent {
  top: 0;
  height: 0;
}
.textLayer span[role="img"] {
  cursor: default;
  user-select: none;
}
.textLayer ::selection {
  background: rgba(31, 122, 111, 0.34);
}
.textLayer span.is-search-match {
  border-radius: 2px;
  background: rgba(255, 193, 7, 0.58);
  box-shadow: 0 0 0 1px rgba(180, 113, 0, 0.22);
}
.ebook-annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.ebook-annotation-mark {
  position: absolute;
  display: block;
  border-radius: 2px;
  background: rgba(255, 214, 38, 0.35);
  mix-blend-mode: multiply;
}
.ebook-annotation-mark.is-underline {
  border-bottom: max(2px, calc(var(--scale-factor, 1) * 1px)) solid #d45742;
  border-radius: 0;
  background: transparent;
}
.ebook-annotation-mark.is-pre-revision {
  outline: 1px dashed #8a6a34;
  opacity: 0.6;
}
.ebook-annotation-memo {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 48px;
  min-height: 36px;
  border: 1px solid #c58b18;
  border-radius: 8px;
  background: #fff3b4;
  color: #5f3b00;
  font-weight: 800;
  pointer-events: auto;
  cursor: pointer;
}
.ebook-annotation-memo.is-pre-revision::after {
  content: "이전";
  display: block;
  font-size: 9px;
}
.ebook-mark-pagination {
  position: sticky;
  bottom: 0;
  justify-content: space-between;
  padding: 10px 0 2px;
  background: #fff;
}
.ebook-mark-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.ebook-selection-toolbar {
  position: fixed;
  z-index: 520;
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}
.ebook-selection-toolbar[hidden] {
  display: none !important;
}
.ebook-memo-fab {
  position: sticky;
  z-index: 10;
  bottom: calc(86px + env(safe-area-inset-bottom));
  float: right;
  min-width: 88px;
  min-height: 46px;
  margin: 12px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(14, 95, 87, 0.3);
  cursor: pointer;
}
.ebook-viewer-tip {
  position: fixed;
  z-index: 510;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid #86beb7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(20, 48, 45, 0.22);
}
.ebook-viewer-tip[hidden] {
  display: none !important;
}
.ebook-viewer-tip p {
  margin: 7px 0 12px;
  color: var(--body);
  line-height: 1.55;
}
.ebook-memo-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}
.ebook-memo-dialog::backdrop {
  background: rgba(12, 29, 28, 0.55);
}
.ebook-memo-dialog form {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.ebook-memo-dialog h3 {
  margin: 0;
}
.ebook-memo-dialog textarea {
  width: 100%;
  resize: vertical;
}
.ebook-memo-dialog .inline-actions {
  justify-content: flex-end;
}
.ebook-mark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ebook-mark-row__jump {
  min-height: 44px;
  padding: 7px 5px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  white-space: pre-line;
  cursor: pointer;
}
.ebook-mark-row__jump:hover,
.ebook-mark-row__jump:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
}
.ebook-mark-row__old {
  grid-column: 1;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff0cf;
  color: #785000;
  font-size: 11px;
}
.ebook-mark-row__delete {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--danger);
}
.book-index-progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 6px 0 10px;
  accent-color: var(--teal);
}
.book-index-progress[hidden] {
  display: none !important;
}
.app-onboarding {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  background: rgba(8, 35, 33, 0.66);
  backdrop-filter: blur(8px);
}
.app-onboarding[hidden] {
  display: none !important;
}
.has-app-onboarding {
  overflow: hidden;
}
.app-onboarding__card {
  position: relative;
  width: min(440px, 100%);
  min-height: 500px;
  padding: 56px 28px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.app-onboarding__skip {
  position: absolute;
  top: 16px;
  right: 18px;
  min-width: 44px;
  min-height: 44px;
}
.app-onboarding article {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 350px;
  text-align: center;
}
.app-onboarding article[hidden] {
  display: none !important;
}
.app-onboarding__icon {
  display: grid;
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--teal-soft), #d9f4ef);
  color: var(--teal-dark);
  font-size: 50px;
}
.app-onboarding h2 {
  margin: 5px 0 12px;
  color: var(--teal-dark);
  font-size: 25px;
}
.app-onboarding article > p:last-child {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
}
.app-onboarding__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.app-onboarding__dots {
  display: flex;
  gap: 7px;
}
.app-onboarding__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c6d5d2;
  transition: width 0.2s ease, background 0.2s ease;
}
.app-onboarding__dots span.is-active {
  width: 24px;
  background: var(--teal);
}

@media (max-width: 900px) {
  .ebook-reader-layout:has(.ebook-reader-panel:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  .ebook-reader-panel {
    max-height: 42svh;
  }
  .ebook-reader-toolbar {
    position: static;
  }
  .ebook-reader-toolbar__group {
    flex: 1 1 auto;
    flex-wrap: wrap;
  }
  .ebook-reader-toolbar__pages {
    order: 3;
    flex-basis: 100%;
  }
}
@media (max-width: 560px) {
  .ebook-revision-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 12px 12px 0;
  }
  .ebook-revision-banner span {
    flex-basis: calc(100% - 90px);
  }
  .ebook-pdf-panel-app {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 10px;
  }
  .ebook-reader-toolbar {
    margin-inline: 0;
    padding: 8px;
  }
  .ebook-reader-toolbar__group:first-child {
    width: 100%;
  }
  .ebook-reader-toolbar__group:first-child .button {
    flex: 1;
  }
  .ebook-reader-toolbar__pages {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .ebook-page-jump span {
    min-width: 98px;
  }
  .ebook-view-mode span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .ebook-pdf-canvas-wrap {
    max-height: calc(100svh - 240px);
  }
  .ebook-memo-fab {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
  .app-onboarding__card {
    min-height: min(520px, calc(100svh - 36px));
    padding-inline: 22px;
  }
}
.attendance-feed__onsite-action {
  display: block;
  margin-top: 8px;
  white-space: nowrap;
}

/* source: css/footer.css */
.site-footer {
  background: #16232d;
  color: #fff;
  padding: 30px 0 0;
}
.footer-inner {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}
.footer-logo {
  width: 168px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 10px;
}
.footer-inner p {
  margin: 3px 0;
  color: #aebcc1;
  font-size: 14px;
}
.footer-inner nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
}
.footer-inner nav a:hover {
  color: #80ded3;
}
.copyright {
  width: min(1240px, calc(100% - 48px));
  margin: 14px auto 0;
  padding: 14px 0;
  border-top: 1px solid #ffffff1c;
  color: #83969c;
  font-size: 14px;
}
@media (max-width: 768px) {
  .footer-inner {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .footer-inner nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .footer-inner nav a {
    padding: 0;
  }
  .copyright {
    width: calc(100% - 32px);
  }
}

/* source: css/responsive.css */
@media (max-width: 1100px) {
  .gnb {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .brand {
    width: 190px;
  }
  .division-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-menu.is-open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 86px);
    overflow: auto;
  }
  .mobile-menu section {
    display: grid;
    align-content: start;
    gap: 2px;
    padding: 6px 14px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .mobile-menu section.is-active {
    border-color: var(--teal);
  }
  .mobile-menu strong {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--teal-dark);
    font-size: 14px;
  }
  .mobile-menu strong::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--teal), #4cbfb2);
  }
  .mobile-menu a,
  .mobile-menu .link-button {
    display: flex;
    min-height: 44px;
    align-items: center;
    width: 100%;
    padding: 8px 6px 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--body);
    line-height: 1.35;
    text-align: left;
  }
  .mobile-menu a:hover,
  .mobile-menu a.is-active {
    background: var(--teal-soft);
    color: var(--teal-dark);
    font-weight: 700;
  }
  .mobile-menu form {
    padding: 0;
  }
  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .media-manager-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-shell.is-signup {
    grid-template-columns: minmax(300px, 0.6fr) minmax(0, 1.4fr);
  }
  .auth-shell.is-signup .auth-panel {
    padding-inline: 40px;
  }
}
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  .auth-shell,
  .auth-shell.is-signup {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-visual,
  .auth-shell.is-signup .auth-visual {
    min-height: clamp(220px, 34svh, 360px);
    padding: clamp(28px, 7vw, 64px);
    align-items: stretch;
    justify-content: end;
  }
  .auth-shell.is-signup .auth-visual-inner {
    position: static;
    margin-top: 0;
  }
  .auth-panel,
  .auth-shell.is-signup .auth-panel {
    padding: 48px clamp(24px, 7vw, 64px) 64px;
    align-items: flex-start;
  }
  .auth-panel-inner {
    width: min(100%, 640px);
  }
}
@media (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {
  .auth-visual,
  .auth-shell.is-signup .auth-visual {
    min-height: 0;
    padding: 20px 32px;
  }
  .auth-visual h1 {
    margin: 10px 0 8px;
    font-size: 24px;
  }
  .auth-visual h1 br {
    display: none;
  }
  .auth-visual p {
    font-size: 14px;
  }
  .auth-panel,
  .auth-shell.is-signup .auth-panel {
    padding: 28px 32px 40px;
  }
}
@media (max-width: 768px) {
  .surface-admin details > summary {
    min-height: 44px;
    padding-block: 8px;
  }
  .surface-admin input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  .surface-admin select,
  .surface-admin textarea:not(.rich-editor__source) {
    min-height: 44px;
  }
  .media-manager-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: min(100% - 32px, var(--container));
  }
  .site-header {
    height: 72px;
  }
  .header-inner {
    padding: 0 10px 0 16px;
    gap: 12px;
  }
  .brand {
    width: 165px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .header-link {
    display: none;
  }
  .header-logout {
    display: none;
  }
  .search-panel.is-open {
    inset: 72px 0 auto;
    padding: 18px 16px;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .search-panel label {
    flex: 0 0 100%;
    font-weight: 700;
  }
  .search-panel div {
    width: 100%;
    min-width: 0;
  }
  .search-panel input {
    width: 0;
    min-width: 0;
  }
  .search-panel button {
    flex: 0 0 auto;
    padding-inline: 16px;
  }
  .surface-app .brand,
  html.is-app-shell .brand {
    width: 120px;
  }
  .surface-app .header-actions,
  html.is-app-shell .header-actions {
    gap: 2px;
  }
  .surface-app .header-logout,
  html.is-app-shell .header-logout {
    display: flex;
  }
  .surface-app .header-logout .link-button,
  html.is-app-shell .header-logout .link-button {
    min-height: 44px;
    padding-inline: 4px;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 800;
  }
  .mobile-menu.is-open {
    top: 72px;
    grid-template-columns: repeat(2, 1fr);
    max-height: calc(100vh - 72px);
    overflow: auto;
  }
  .hero {
    min-height: 400px;
  }
  .hero-inner {
    width: calc(100% - 32px);
  }
  .hero h1 {
    max-width: 14em;
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .quick-links {
    width: calc(100% - 32px);
    margin-top: -24px;
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-links a:nth-child(2) {
    border-right: 0;
  }
  .quick-links a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .quick-links a {
    padding: 18px 18px;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .list-split,
  .content-layout,
  .event-detail,
  .auth-shell,
  .mypage-wrap,
  .admin-grid,
  .viewer {
    grid-template-columns: 1fr;
  }
  .division-grid {
    grid-template-columns: 1fr;
  }
  .division-grid a {
    min-height: 220px;
  }
  .brand-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-wall div,
  .brand-wall span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .lnb {
    display: none;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .info-grid.division-info-grid {
    grid-template-columns: 1fr;
  }
  .info-block {
    padding: 24px;
  }
  .content-layout {
    padding: 42px 0 70px;
    gap: 28px;
  }
  .content-layout > * {
    min-width: 0;
    max-width: 100%;
  }
  .event-list {
    grid-template-columns: 1fr;
  }
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-detail {
    gap: 30px;
  }
  .event-detail .button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .event-card footer,
  .survey-card,
  .article-meta {
    flex-wrap: wrap;
  }
  .detail-panel {
    position: static;
  }
  .board-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .board-row > strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .board-row .views,
  .board-row--wide .board-author {
    display: none;
  }
  .auth-visual {
    min-height: 280px;
    padding: 32px;
    justify-content: end;
  }
  .auth-visual h1 {
    margin: 16px 0 18px;
    font-size: 32px;
  }
  .auth-panel {
    padding: 42px 24px 54px;
    align-items: stretch;
  }
  .auth-panel-inner {
    width: 100%;
  }
  .auth-shell.is-signup .auth-visual {
    align-items: stretch;
    justify-content: end;
  }
  .auth-shell.is-signup {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-shell.is-signup .auth-visual-inner {
    position: static;
    margin-top: 0;
  }
  .auth-shell.is-signup .auth-panel {
    padding: 42px 24px 54px;
  }
  .signup-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .signup-progress {
    grid-template-columns: repeat(2, 1fr);
  }
  .signup-progress li {
    min-height: 52px;
  }
  .address-fields {
    grid-template-columns: 1fr;
  }
  .address-fields .field {
    grid-column: 1 !important;
  }
  .signup-submit {
    align-items: stretch;
    flex-direction: column;
  }
  .signup-submit .button {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .mypage-nav {
    position: static;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 22px 20px 0;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }
  .mypage-nav p {
    margin-bottom: 18px;
  }
  .mypage-nav nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: auto;
    max-width: none;
    margin: 0 -20px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .mypage-nav nav::-webkit-scrollbar { display: none; }
  .mypage-nav nav a {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--body);
    font-size: 14px;
  }
  .mypage-nav nav a:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
  }
  .mypage-nav nav a.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    font-weight: 700;
  }
  .mypage-content {
    padding: 36px 20px;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    overflow-x: clip;
  }
  .mypage-content .table-scroll {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .application-actions {
    min-width: 180px;
    max-width: 220px;
  }
  .education-cancel-form {
    width: 100%;
    min-width: 0;
  }
  .corporate-layout,
  .corporate-member-row,
  .group-history-row {
    grid-template-columns: 1fr;
  }
  .corporate-connect-panel {
    position: static;
  }
  .corporate-request-row,
  .corporate-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .corporate-member-actions,
  .corporate-member-actions form {
    justify-content: flex-start;
  }
  .corporate-member-actions select,
  .corporate-member-actions input {
    max-width: none;
    width: 100%;
    min-height: 44px;
  }
  .group-participant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-cancel-form {
    grid-column: auto;
  }
  .location-info,
  .ci-showcase {
    grid-template-columns: 1fr;
  }
  .org-chart {
    padding: 26px 14px;
  }
  .org-row,
  .org-row.org-divisions {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .admin-sidebar.is-open {
    transform: none;
  }
  .admin-shell {
    margin-left: 0;
  }
  .admin-main {
    padding: 20px 14px;
    overflow-x: hidden;
  }
  .admin-panel {
    overflow-x: hidden;
  }
  .admin-panel .table-scroll {
    overflow-x: auto;
    /* 넓은 원장표는 이 요소 안에서만 스크롤하고,
       루트 문서의 scrollWidth로 페인트 영역을 전파하지 않는다. */
    contain: paint;
  }
  .admin-topbar {
    padding: 0 16px;
  }
  .mobile-only {
    display: inline-flex !important;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-table {
    min-width: 720px;
  }
  .viewer-sidebar {
    display: none;
  }
  .viewer-page {
    margin: 12px;
    padding: 34px 24px;
  }
  .viewer-toolbar {
    top: 72px;
    padding: 12px 16px;
  }
  .viewer-toolbar a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }
  .ebook-pdf-panel {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 12px;
    border-radius: 12px;
  }
  .ebook-pdf-panel__head {
    align-items: flex-start;
  }
  .ebook-pdf-frame {
    min-height: calc(100svh - 220px);
  }
  .page-title {
    padding: 40px 0 32px;
  }
  .text-link,
  .form-help a,
  .location-info a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }
  .button-small {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .group-participant-grid {
    grid-template-columns: 1fr;
  }
  .group-participant-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .group-participant-toolbar strong {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .field-action {
    grid-template-columns: 1fr;
  }
  .field-action .button {
    width: 100%;
  }
  .consent-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }
  .consent-row a {
    grid-column: 2;
  }
  .signup-progress li {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .brand {
    width: 148px;
  }
  .surface-app .brand,
  html.is-app-shell .brand {
    width: 106px;
  }
  .surface-app .header-inner,
  html.is-app-shell .header-inner {
    gap: 5px;
  }
  .surface-app .book-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .quick-links a {
    font-size: 14px;
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .book-card {
    min-width: 0;
  }
  .book-actions {
    flex-wrap: wrap;
  }
  .book-cover > span {
    padding: 16px;
    font-size: 16px;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stat {
    padding: 15px;
  }
  .admin-stat strong {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  .header-logout {
    display: none;
  }
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    min-height: 44px;
  }
}
