@charset "UTF-8";

:root {
  --og-primary-text: #176b51;
  --og-primary-text-strong: #0d4d3a;
  --og-primary: #176b51;
  --og-primary-dark: #0d4d3a;
  --og-primary-soft: #eaf7f1;
  --og-accent: #f1a53a;
  --og-ink: #17231f;
  --og-muted: #66736e;
  --og-border: #dfe8e4;
  --og-surface: #ffffff;
  --og-canvas: #f4f7f6;
  --og-shadow-sm: 0 8px 24px rgba(26, 61, 49, 0.07);
  --og-shadow: 0 18px 50px rgba(26, 61, 49, 0.1);
}

html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

html body {
  color: var(--og-ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(23, 107, 81, 0.07), transparent 26rem),
    var(--og-canvas);
  font-family: Inter, "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body main {
  background-color: transparent;
}

body header.fixed-top + main {
  min-height: calc(100vh - 10rem);
  margin-bottom: 0;
  padding-top: calc(2rem + 72px);
  padding-bottom: 3.5rem;
}

body a {
  color: var(--og-primary-text-strong);
}

body a:hover,
body a:focus {
  color: var(--og-primary-text);
}

body :focus-visible {
  outline: 3px solid rgba(23, 107, 81, 0.28);
  outline-offset: 2px;
}

/* Header */
body .site-header {
  height: 72px;
  overflow: visible;
  border-bottom: 1px solid rgba(23, 107, 81, 0.1);
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 7px 24px rgba(29, 56, 47, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

body .site-header .navbar {
  height: 72px;
  min-height: 72px;
  padding: 0;
}

body .site-header .navbar > .container {
  position: relative;
  height: 100%;
  align-items: center;
}

body .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

body .site-brand .navbar-brand-item {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

body .site-brand > span,
body .site-brand strong,
body .site-brand small {
  display: block;
}

body .site-brand strong {
  color: var(--og-primary-text-strong);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

body .site-brand small {
  margin-top: 0.18rem;
  color: var(--og-muted);
  font-size: 0.66rem;
  font-weight: 600;
}

body .site-header .navbar-nav {
  height: 100%;
  align-items: center;
  gap: 0.12rem;
}

body .site-header .navbar-nav .nav-item {
  display: flex;
  height: 100%;
  align-items: center;
}

body .site-header .navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.68rem 0.72rem;
  border-radius: 0.65rem;
  color: #485650;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

body .site-header .navbar-nav .nav-link:hover,
body .site-header .navbar-nav .nav-link:focus,
body .site-header .navbar-nav .nav-link.active {
  color: var(--og-primary-text-strong);
  background: var(--og-primary-soft);
}

body .site-header-cta-wrap {
  margin-left: 0.55rem;
}

body .site-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.66rem 0.9rem;
  border: 1px solid var(--og-primary);
  border-radius: 0.7rem;
  color: #fff;
  background: var(--og-primary);
  font-size: 0.83rem;
  font-weight: 800;
}

body .site-header-cta:hover,
body .site-header-cta:focus {
  border-color: var(--og-primary-dark);
  color: #fff;
  background: var(--og-primary-dark);
  transform: translateY(-1px);
}

body .site-mode-item {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
}

body .site-mode-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

body .site-mode-button .modeswitch-item {
  margin: 0 0.45rem;
}

body .site-header .navbar-toggler {
  border: 1px solid var(--og-border);
  border-radius: 0.7rem;
  background: #fff;
}

body > header.header-static:not(.site-header) {
  border-bottom: 1px solid rgba(23, 107, 81, 0.1);
  background: var(--og-surface) !important;
  box-shadow: 0 7px 24px rgba(29, 56, 47, 0.06);
}

body > header.header-static:not(.site-header) .navbar-nav .nav-link {
  padding: 0.68rem 0.72rem;
  border-radius: 0.65rem;
  color: #485650;
  font-size: 0.88rem;
  font-weight: 700;
}

body > header.header-static:not(.site-header) .navbar-nav .nav-link:hover,
body > header.header-static:not(.site-header) .navbar-nav .nav-link:focus {
  color: var(--og-primary-text-strong);
  background: var(--og-primary-soft);
}

/* Shared content frame */
body main > .container > .row.g-4,
body main > section > .container > .row.g-4 {
  align-items: flex-start;
}

body .card {
  border: 1px solid var(--og-border);
  border-radius: 1rem;
  background-color: var(--og-surface);
  box-shadow: var(--og-shadow-sm);
}

body .card .card {
  box-shadow: none;
}

body .card-header,
body .card-footer {
  border-color: var(--og-border);
  background: transparent;
}

body .card-header:first-child {
  border-radius: 1rem 1rem 0 0;
}

body .card-body {
  padding: clamp(1rem, 2vw, 1.4rem);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  color: var(--og-ink);
  letter-spacing: -0.035em;
}

body .text-primary {
  color: var(--og-primary-text) !important;
}

body .bg-primary,
body .btn-primary {
  border-color: var(--og-primary) !important;
  background-color: var(--og-primary) !important;
}

body .btn-primary:hover,
body .btn-primary:focus {
  border-color: var(--og-primary-dark) !important;
  background-color: var(--og-primary-dark) !important;
}

body .btn-success {
  border-color: var(--og-primary) !important;
  background-color: var(--og-primary) !important;
}

body .btn {
  border-radius: 0.7rem;
  font-weight: 700;
}

body .form-control,
body .form-select,
body .choices .choices__inner {
  min-height: 44px;
  border-color: var(--og-border);
  border-radius: 0.7rem;
  background-color: var(--og-surface);
}

body .form-control:focus,
body .form-select:focus {
  border-color: var(--og-primary);
  box-shadow: 0 0 0 0.2rem rgba(23, 107, 81, 0.12);
}

body .table-responsive {
  border: 1px solid var(--og-border);
  border-radius: 0.85rem;
}

body .table {
  margin-bottom: 0;
  color: var(--og-ink);
}

body .table > :not(caption) > * > * {
  padding: 0.72rem 0.8rem;
  border-color: var(--og-border);
  vertical-align: middle;
}

body .table thead th {
  color: var(--og-primary-text-strong);
  background: var(--og-primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

body .accordion-item {
  overflow: hidden;
  border: 1px solid var(--og-border);
  border-radius: 0.8rem !important;
  background: var(--og-surface);
}

body .accordion-button {
  color: var(--og-ink);
  background: var(--og-surface);
}

body .accordion-button:not(.collapsed) {
  color: var(--og-primary-text-strong);
  background: var(--og-primary-soft);
  box-shadow: inset 0 -1px 0 var(--og-border);
}

body .accordion-button:focus {
  border-color: var(--og-primary);
  box-shadow: 0 0 0 0.2rem rgba(23, 107, 81, 0.12);
}

body .pagination .page-link {
  border-color: var(--og-border);
  color: var(--og-primary-text-strong);
}

body .pagination .active .page-link {
  border-color: var(--og-primary);
  color: #fff;
  background: var(--og-primary);
}

body section.position-relative[style*="background-image"] {
  overflow: hidden;
  margin-top: -2rem;
  border-radius: 0 0 2rem 2rem;
}

/* Side navigation */
body .site-sidebar-column {
  position: sticky;
  top: 92px;
}

body .site-sidebar-trigger {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--og-border);
  color: var(--og-primary-text-strong);
  background: var(--og-surface);
}

body .site-sidebar-card {
  overflow: hidden;
  border-radius: 1rem;
}

body .site-sidebar-intro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--og-primary-dark), var(--og-primary));
}

body .site-sidebar-intro img {
  width: 44px;
  height: 44px;
  padding: 0.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
}

body .site-sidebar-intro strong,
body .site-sidebar-intro span {
  display: block;
}

body .site-sidebar-intro strong {
  color: #fff;
  font-size: 0.96rem;
}

body .site-sidebar-intro span {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
}

body .site-sidebar-message {
  margin-bottom: 1rem;
  color: var(--og-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

body .site-sidebar-nav {
  gap: 0.28rem;
}

body .site-sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  color: #53615b;
  font-size: 0.84rem;
  font-weight: 700;
}

body .site-sidebar-nav .nav-link i {
  width: 1.15rem;
  color: var(--og-primary-text);
  font-size: 1rem;
  text-align: center;
}

body .site-sidebar-nav .nav-link:hover,
body .site-sidebar-nav .nav-link:focus,
body .site-sidebar-nav .nav-link.active {
  color: var(--og-primary-text-strong);
  background: var(--og-primary-soft);
}

body .site-sidebar-card .card-footer {
  padding: 0.8rem 1.2rem;
  text-align: center;
}

body .site-sidebar-card .card-footer a {
  color: var(--og-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Page-specific existing components */
body .divider::before,
body .divider::after {
  border-color: var(--og-border);
}

body .badge.bg-danger,
body .badge.bg-success,
body .badge.bg-primary {
  border-radius: 999px;
}

@media (min-width: 992px) {
  body main > .container > .row.g-4.wordproc-info-layout {
    align-items: stretch;
  }

  body .wordproc-info-content > .wordproc-info-card {
    flex: 1 1 auto;
  }
}

body .wordproc-upload-zone {
  border-color: rgba(23, 107, 81, 0.55) !important;
  border-radius: 1rem !important;
  background: var(--og-primary-soft) !important;
}

body .wordproc-upload-zone:hover,
body .wordproc-upload-zone:focus-within {
  border-color: var(--og-primary) !important;
  box-shadow: 0 0 0 4px rgba(23, 107, 81, 0.1) !important;
}

body canvas {
  max-width: 100%;
}

body .ratio,
body iframe,
body video,
body .plyr {
  border-radius: 0.85rem;
}

/* Footer */
body .site-footer,
body footer.bg-mode {
  margin-top: auto;
  border-top: 1px solid var(--og-border);
  color: var(--og-muted);
  background: rgba(255, 255, 255, 0.82) !important;
}

body .site-footer {
  padding: 2rem 0 1.25rem;
}

body .site-footer-main,
body .site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

body .site-footer-brand > a {
  color: var(--og-primary-text-strong);
  font-size: 1rem;
  font-weight: 850;
}

body .site-footer-brand p {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
}

body .site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

body .site-footer-links a,
body .site-footer-bottom {
  color: var(--og-muted);
  font-size: 0.76rem;
  font-weight: 650;
}

body .site-footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--og-border);
}

body .site-footer-bottom a {
  color: var(--og-muted);
}

/* Dark mode */
html[data-theme="dark"] {
  --og-primary-text: #7bd4b2;
  --og-primary-text-strong: #9be3c5;
  --og-ink: #eef8f4;
  --og-muted: #a6b9b1;
  --og-border: #31483f;
  --og-surface: #18251f;
  --og-canvas: #101914;
  --og-primary-soft: #203d32;
}

html[data-theme="dark"] body .site-header,
html[data-theme="dark"] body .site-footer,
html[data-theme="dark"] body footer.bg-mode {
  background: rgba(18, 29, 24, 0.94) !important;
}

html[data-theme="dark"] body .site-header .navbar-nav .nav-link,
html[data-theme="dark"] body .site-sidebar-nav .nav-link {
  color: #c2d2cb;
}

html[data-theme="dark"] body .site-sidebar-nav .nav-link.active,
html[data-theme="dark"] body .site-sidebar-nav .nav-link:hover,
html[data-theme="dark"] body .site-sidebar-nav .nav-link:focus {
  color: var(--og-primary-text-strong) !important;
}

html[data-theme="dark"] body .site-header .navbar-toggler {
  background: var(--og-surface);
}

html[data-theme="dark"] body .text-primary,
html[data-theme="dark"] body .btn-outline-primary {
  color: var(--og-primary-text) !important;
}

html[data-theme="dark"] body .btn-outline-primary:hover,
html[data-theme="dark"] body .btn-outline-primary:focus,
html[data-theme="dark"] body .btn-outline-primary.active {
  color: #fff !important;
}

html[data-theme="dark"] body .text-muted,
html[data-theme="dark"] body .text-secondary {
  color: var(--og-muted) !important;
}

html[data-theme="dark"] body .form-control,
html[data-theme="dark"] body .form-select,
html[data-theme="dark"] body .accordion-button,
html[data-theme="dark"] body .table {
  color: var(--og-ink);
  background: var(--og-surface);
}

@media (max-width: 1199.98px) {
  body .site-brand small {
    display: none;
  }

  body .site-header .navbar-nav .nav-link {
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 991.98px) {
  body .site-header,
  body .site-header .navbar {
    height: 64px;
    min-height: 64px;
  }

  body header.fixed-top + main {
    padding-top: calc(1.25rem + 64px);
  }

  body .site-header .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    height: auto;
    margin-top: 0;
    padding: 0.75rem;
    border: 1px solid var(--og-border);
    border-radius: 0.85rem;
    background: var(--og-surface);
    box-shadow: var(--og-shadow);
  }

  body .site-header .navbar-nav {
    height: auto;
    align-items: stretch !important;
  }

  body .site-header .navbar-nav .nav-item {
    display: block;
    height: auto;
  }

  body .site-header .navbar-nav .nav-link {
    display: flex;
    width: 100%;
    line-height: 1.35;
  }

  body .site-header-cta-wrap,
  body .site-mode-item {
    margin: 0.4rem 0 0;
  }

  body .site-header-cta {
    justify-content: center;
    width: 100%;
  }

  body .site-mode-item {
    justify-content: flex-end;
  }

  body .site-sidebar-column {
    position: static;
  }

  body .site-sidebar .offcanvas {
    background: var(--og-canvas);
  }
}

@media (max-width: 767.98px) {
  body header.fixed-top + main {
    padding-bottom: 2.5rem;
  }

  body .site-brand > span {
    display: none;
  }

  body .site-brand .navbar-brand-item {
    width: 34px;
    height: 34px;
  }

  body .card-body {
    padding: 1rem;
  }

  body section.position-relative[style*="background-image"] {
    margin-top: -1.25rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }

  body .table > :not(caption) > * > * {
    padding: 0.58rem 0.62rem;
    font-size: 0.76rem;
  }

  body .site-footer-main,
  body .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body *,
  body *::before,
  body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
