/* PPT 공통 기준: 1440px 화면, 1240px 본문, 남색/라임. React 메인과 JSP가 같은 CSS를 사용합니다. */
@font-face {
  font-family: Paperlogy;
  src: url("./Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Paperlogy;
  src: url("./Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --navy: #153b4d;
  --ink: #123244;
  --lime: #aff04f;
  --sage: #e8efda;
  --lavender: #e8e2f2;
  --muted: #71838b;
  --line: #dfe7e3;
  --surface: #f3f6f3;
  --font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
  --color-primary: #aff04f;
  --color-text: #123244;
  --color-muted: #71838b;
  --color-navy: #153b4d;
  --color-border: #dfe7e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: white;
  font: 14px/1.65 var(--font-family);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
  letter-spacing: -0.045em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #527632;
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: calc(100% - 80px);
  max-width: 1240px;
  margin-inline: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}
.btn.primary {
  background: var(--lime);
}
.btn.primary:hover {
  background: #a1e63f;
}
.btn.secondary {
  background: #f0f4f4;
  color: #687b83;
}
.btn.dark {
  background: var(--navy);
  color: #fff;
}
.btn:disabled {
  background: #e7ece7;
  color: #8a9690;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #577a60;
  margin-bottom: 16px;
}
.muted {
  color: var(--muted);
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  background: #eaf3dc;
  color: #527632;
}
.pill.blue {
  background: #e3edf5;
  color: #476f8c;
}
.pill.purple {
  background: #ece6f6;
  color: #766390;
}
.screen-note {
  font-size: 10px;
  color: #87948e;
  margin-top: 26px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: absolute;
  left: 15px;
  top: -70px;
  background: var(--navy);
  color: #fff;
  padding: 10px;
  z-index: 90;
}
.skip-link:focus {
  top: 10px;
}
/* 모든 페이지에서 Header.jsx를 렌더링합니다. JSP는 독립 헤더 번들을 사용합니다. */
.ui-header {
  border-bottom: 1px solid #e5eaec;
  height: 86px;
  background: #fff;
}
.ui-header-inner {
  max-width: 1264px;
  width: calc(100% - 80px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}
.ui-logo {
  width: 110px;
  flex-shrink: 0;
}
.ui-logo img {
  width: 110px;
  height: 42px;
  object-fit: contain;
}
.ui-nav {
  display: flex;
  gap: 28px;
  height: 100%;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.ui-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
}
.ui-nav a.active {
  color: #356441;
}
.ui-nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #83ce36;
}
.ui-search {
  margin-left: auto;
  width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 9px;
  background: #f3f5f5;
  padding: 0 17px;
  height: 42px;
  color: #8f9da4;
}
.ui-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  outline-offset: 7px;
}
.ui-search input::placeholder {
  color: #92a0a4;
}
.ui-search button {
  padding: 0;
  background: none;
  color: #8d9da2;
  font-size: 21px;
  line-height: 1;
}
.ui-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  font-size: 13px;
}
.ui-actions .btn {
  min-height: 38px;
  padding: 9px 18px;
}
.ui-actions .ui-logout {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ui-header-inner {
  column-gap: 60px;
}
.ui-search + .ui-actions {
  margin-left: -20px;
}
.small-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .ui-header-inner {
    gap: 30px;
  }
  .ui-search {
    width: 230px;
  }
  .ui-search + .ui-actions {
    margin-left: 0;
  }
  .ui-nav {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .ui-header {
    height: auto;
    min-height: 80px;
  }
  .ui-header-inner {
    width: calc(100% - 32px);
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 12px 0;
  }
  .ui-logo,
  .ui-logo img {
    width: 94px;
    height: 36px;
  }
  .ui-actions {
    margin-left: auto !important;
    gap: 12px;
    font-size: 12px;
  }
  .ui-actions .btn {
    min-height: 36px;
    padding: 8px 12px;
  }
  .ui-nav {
    order: 3;
    height: 30px;
    gap: 24px;
    font-size: 12px;
  }
  .ui-search {
    order: 4;
    margin-left: auto;
    height: 34px;
    max-width: 52%;
    font-size: 11px;
    padding: 0 10px;
    gap: 6px;
  }
  .ui-search button {
    font-size: 17px;
  }
  .btn {
    font-size: 13px;
    padding: 10px 18px;
  }
  .small-links {
    flex-wrap: wrap;
  }
}
