/* gagabox CMS chrome — overrides copied-site common.css after Tailwind design CSS */

/*
  Guard against legacy unlayered resets (e.g. gray/layout.css `* { margin:0;padding:0 }`).
  Unlayered rules beat Tailwind @layer utilities, so spacing must be reasserted here.
*/
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-12 { padding-bottom: 3rem; }
.p-3 { padding: 0.75rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
  .sm\:py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:mt-0 { margin-top: 0; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-between { justify-content: space-between; }
  .md\:justify-end { justify-content: flex-end; }
  .md\:text-right { text-align: right; }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:items-center { align-items: center; }
  .lg\:min-h-\[550px\] { min-height: 550px; }
  .lg\:min-h-\[580px\] { min-height: 580px; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

html,
body {
  background: #f8fafc !important;
  color: #1e293b !important;
  font-family: Inter, "Noto Sans KR", ui-sans-serif, system-ui, sans-serif !important;
  /* 한글·영어 모두 단어(어절) 중간에서 줄바꿈되지 않도록 */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 텍스트 요소에 상속 보장 (코드/입력란 제외) */
body :where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, td, th, a, span, label, button, figcaption, blockquote, cite, em, strong, small, b, i, u, s, div) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
body :where(pre, code, kbd, samp, textarea, input) {
  word-break: normal;
  overflow-wrap: anywhere;
}
.break-keep {
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.site-wrap,
.min-h-screen {
  min-height: 100vh;
  background: #f8fafc;
}

#u-skip a {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 8px 12px;
  background: #ea580c;
  color: #fff;
}
#u-skip a:focus { left: 0; }

.blind,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Header */
#header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 0;
  height: auto;
  overflow: visible;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(226,232,240,.8);
  backdrop-filter: blur(12px);
}
#header.site-header.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}

.btn-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: #334155;
}
.btn-menu svg { width: 1.5rem; height: 1.5rem; }
.btn-menu .icon-close { display: none; }
.btn-menu.is-open .icon-open { display: none; }
.btn-menu.is-open .icon-close { display: block; }

/* GNB */
.gnb { display: none !important; }
.gnb__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: auto;
}
.gnb__item {
  position: relative;
  display: flex;
  align-items: center;
}
#header .gnb__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  height: auto;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #334155 !important;
  transition: color .2s;
}
#header .gnb__item:hover > .gnb__link,
#header .gnb__item:focus-within > .gnb__link,
#header .gnb__item.is-active > .gnb__link {
  color: #ea580c !important;
}
.gnb__chevron {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.gnb__item.has-sub:hover > .gnb__link .gnb__chevron,
.gnb__item.has-sub:focus-within > .gnb__link .gnb__chevron {
  transform: rotate(180deg);
}

#header .gnb__link--pill {
  padding: .375rem .875rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,247,237,.8);
  color: #ea580c !important;
  border: 1px solid rgba(255,215,168,.9);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
#header .gnb__item--pill:hover > .gnb__link--pill,
#header .gnb__item--pill.is-active > .gnb__link--pill,
#header .gnb__item--pill:focus-within > .gnb__link--pill {
  background: #ffedd5;
  color: #c2410c !important;
}

.gnb__item--cta { margin-left: .5rem; }
#header .gnb__link--cta {
  padding: .625rem 1.25rem;
  border-radius: .75rem;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background-image: linear-gradient(to right, #f05100, #f99c00);
  box-shadow: 0 4px 14px rgba(254,110,0,.2);
}
#header .gnb__item--cta:hover > .gnb__link--cta,
#header .gnb__item--cta.is-active > .gnb__link--cta {
  color: #fff !important;
  background-image: linear-gradient(to right, #c2410c, #d97706);
  transform: translateY(-2px);
}

.gnb__sub {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  min-width: 12rem;
  margin: .5rem 0 0;
  padding: .5rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 60;
}
.gnb__item--cta > .gnb__sub {
  left: auto;
  right: 0;
}
.gnb__item.has-sub:hover > .gnb__sub,
.gnb__item.has-sub:focus-within > .gnb__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
#header .gnb__sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .75rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #334155 !important;
  white-space: nowrap;
  border-radius: .75rem;
}
#header .gnb__sub-link:hover {
  color: #ea580c !important;
  background: #fff7ed;
}
#header .gnb__sub-link.is-accent {
  color: #ea580c !important;
  font-weight: 700;
}
#header .gnb__sub-link.is-accent .gnb__sub-arrow { color: #f97316; }
.gnb__sub-divider {
  display: block;
  height: 1px;
  margin: .25rem .35rem;
  background: #f1f5f9;
  list-style: none;
  padding: 0;
}
.mobile-nav__sub.is-accent { color: #ea580c; font-weight: 700; }
.gnb__sub-arrow {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}
.gnb__sub-link:hover .gnb__sub-arrow { color: #ea580c; }
.gnb__sub-link--depth2 {
  padding-left: 1.25rem;
  font-size: 11px;
  color: #64748b !important;
}
.gnb__sub2 {
  list-style: none;
  margin: 0;
  padding: .15rem 0 .25rem;
}

@media (min-width: 1024px) {
  .gnb { display: flex !important; }
  .btn-menu { display: none !important; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px rgba(15,23,42,.12);
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  padding: .75rem 1rem 1.25rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__group { border-bottom: 1px solid #f1f5f9; }
.mobile-nav__row { display: flex; align-items: stretch; }
.mobile-nav__parent {
  flex: 1;
  display: flex;
  align-items: center;
  padding: .9rem .5rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #1e293b;
}
.mobile-nav__toggle {
  flex: 0 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-left: 1px solid #f1f5f9;
}
.mobile-nav__plus::before { content: "+"; font-size: 1.1rem; }
.mobile-nav__group.is-open .mobile-nav__plus::before { content: "–"; }
.mobile-nav__subs { display: none; padding: 0 .5rem .75rem 1rem; }
.mobile-nav__group.is-open .mobile-nav__subs { display: block; }
.mobile-nav__sub {
  display: block;
  padding: .45rem 0;
  font-size: .82rem;
  color: #475569;
}
.mobile-nav__sub--depth2 { padding-left: .75rem; color: #64748b; }
.mobile-cta {
  display: block;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: .75rem;
  background: linear-gradient(to right, #f05100, #f99c00);
  color: #fff !important;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
}

/* Subpage hero */
.page-hero {
  position: relative;
  overflow: hidden;
  background: #070A12;
  color: #fff;
  min-height: 0;
  padding: 5.5rem 0 3.25rem;
  border-bottom: 1px solid #1e293bcc;
}
.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#334155 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .25;
  pointer-events: none;
}
.page-hero__glow {
  position: absolute;
  top: 20%;
  left: 18%;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  background: rgba(240,81,0,.18);
  filter: blur(120px);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .page-hero__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .page-hero__inner { padding: 0 2rem; } }

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  padding: .25rem .75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fb923c;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-hero__eyebrow::before { content: none; }
.page-hero__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: #fff;
}
.page-hero__desc {
  margin-top: .75rem;
  max-width: 36rem;
  color: #cbd5e1;
  font-size: .92rem;
  line-height: 1.7;
}
.page-hero__panel {
  min-width: 16rem;
  padding: 1.1rem 1.25rem;
  border-radius: .9rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,6,24,.72);
  backdrop-filter: blur(10px);
}
.page-hero__panel::before { content: none; }
.page-hero__panel-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fb923c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.page-hero__panel-title {
  margin: .35rem 0 .6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.page-hero__panel .breadcrumb,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: #94a3b8;
}
.breadcrumb a:hover { color: #fb923c; }
.breadcrumb img { display: none; }
.page-hero__cta {
  display: inline-flex;
  margin-top: .85rem;
  padding: .55rem 1rem;
  border-radius: .7rem;
  background: #ea580c;
  color: #fff !important;
  font-size: .75rem;
  font-weight: 700;
}
.page-hero__cta:hover { background: #c2410c; }

#main.page-main {
  background: #f8fafc;
  padding: 2.5rem 0 5rem;
}
.page-content {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  color: #1e293b !important;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
@media (min-width: 640px) { .page-content { padding: 2rem 1.75rem; } }
@media (min-width: 1024px) { .page-content { padding: 2.25rem 2.25rem; } }

.page-content a { color: #ea580c; }
.page-content a:hover { color: #c2410c; }

/* Hero tabs / case filters */
.hero-tab.is-active {
  background: rgba(249,115,22,.2) !important;
  color: #fb923c !important;
  box-shadow: 0 10px 15px -3px rgba(249,115,22,.15);
  outline: 1px solid rgba(249,115,22,.6);
}
.hero-tab.is-active .hero-tab__dot {
  background: #fb923c;
  box-shadow: 0 0 0 2px rgba(251,146,60,.5);
  animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
.case-filter.is-active {
  background: #ea580c !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(234,88,12,.2);
}

.header-tools { display: none; }

:root, :host {
  --font-sans: Inter, "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
}
html, body {
  font-family: Inter, "Noto Sans KR", ui-sans-serif, system-ui, sans-serif !important;
}

#header.site-header {
  position: sticky !important;
  min-height: 0 !important;
  height: auto !important;
  background: rgba(255,255,255,.95) !important;
}

canvas[data-hero-globe] {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.notice-ticker__item { display: none; }
.notice-ticker__item.is-active { display: flex; }

.a4-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.a4-modal.is-open { display: flex; }
.a4-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.a4-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 64rem;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.a4-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #0f172a;
  background: rgba(2,6,23,.85);
}
.a4-stage {
  position: relative;
  aspect-ratio: 1.414 / 1;
  max-height: 72vh;
  overflow: hidden;
  background: #020617;
}
.a4-slide {
  display: none;
  width: 100%;
  height: 100%;
}
.a4-slide.is-active { display: flex; }
.a4-modal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.5rem 1.1rem;
  border-top: 1px solid #0f172a;
}

@media print {
  body * { visibility: hidden; }
  #a4Modal, #a4Modal * { visibility: visible; }
  #a4Modal {
    position: static;
    display: block !important;
    padding: 0;
    background: #fff;
  }
  #a4Modal .a4-modal__backdrop,
  #a4Modal .a4-modal__toolbar,
  #a4Modal .a4-modal__nav { display: none !important; }
  #a4Modal .a4-modal__dialog {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    max-width: none;
  }
  #a4Modal .a4-stage { max-height: none; }
}
