/* ==========================================================================
   Site chrome: header / GNB / hero / page header / footer
   ========================================================================== */

/* --- Utility bar --------------------------------------------------------- */

.utilbar {
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
  font-size: var(--step--1);
}

.utilbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-5);
  min-height: 36px;
}

.utilbar a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-weight: 500;
}

.utilbar a:hover {
  color: var(--cyan-400);
}

.utilbar__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 900px) {
  .utilbar {
    display: none;
  }
}

/* --- Header -------------------------------------------------------------- */

/* The blur lives on a pseudo-element: a backdrop-filter on .header itself
   would make it the containing block for the position:fixed mobile drawer. */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink-800);
  line-height: 1;
}

.brand__mark em {
  font-style: normal;
  color: var(--cyan-600);
}

.brand__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .brand__tag {
    display: none;
  }
}

/* --- Primary navigation -------------------------------------------------- */

.gnb {
  margin-left: auto;
}

.gnb__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.gnb__list > li {
  margin: 0;
  position: relative;
}

.gnb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.gnb__link:hover,
.gnb__list > li:focus-within > .gnb__link {
  color: var(--cyan-700);
  background: var(--slate-50);
}

.gnb__link.is-active {
  color: var(--cyan-700);
}

.gnb__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: -1px;
  height: 2px;
  background: var(--cyan-600);
}

.gnb__caret {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
}

/* Second depth */

.gnb__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  padding: var(--sp-2);
  margin: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease),
    visibility 0.16s;
}

.gnb__list > li:hover > .gnb__sub,
.gnb__list > li:focus-within > .gnb__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.gnb__sub li {
  margin: 0;
}

.gnb__sub a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.gnb__sub a:hover {
  background: var(--slate-50);
  color: var(--cyan-700);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* --- Mobile drawer ------------------------------------------------------- */

.navtoggle {
  display: none;
  appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}

.navtoggle span,
.navtoggle span::before,
.navtoggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.navtoggle span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.navtoggle span::before,
.navtoggle span::after {
  content: "";
  left: 0;
}

.navtoggle span::before {
  transform: translateY(-6px);
}

.navtoggle span::after {
  transform: translateY(6px);
}

.navtoggle[aria-expanded="true"] span {
  background: transparent;
}

.navtoggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.navtoggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .navtoggle {
    display: block;
  }

  .header__actions {
    display: none;
  }

  .gnb {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(88vw, 24rem);
    margin: 0;
    padding: var(--sp-5) var(--sp-5) var(--sp-8);
    background: var(--paper);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.26s var(--ease);
  }

  .gnb.is-open {
    transform: none;
  }

  .gnb__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .gnb__link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .gnb__link:hover {
    background: transparent;
  }

  .gnb__link.is-active::after {
    display: none;
  }

  .gnb__caret {
    transform: rotate(45deg);
    transition: transform 0.2s var(--ease);
  }

  .gnb__link[aria-expanded="true"] .gnb__caret {
    transform: rotate(-135deg);
  }

  .gnb__sub {
    position: static;
    display: none;
    min-width: 0;
    padding: var(--sp-2) 0 var(--sp-3) var(--sp-4);
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .gnb__sub.is-open {
    display: block;
  }

  .gnb__mobile-extra {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }
}

@media (min-width: 901px) {
  .gnb__mobile-extra {
    display: none;
  }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(16, 19, 31, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s;
}

.nav-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* --- Home hero ----------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(84vh, 46rem);
  display: grid;
  background: var(--ink-900);
  overflow: hidden;
}

.hero__slide {
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s linear;
}

.hero__slide.is-active .hero__bg {
  transform: scale(1);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(16, 19, 31, 0.52) 0%,
      rgba(16, 19, 31, 0.42) 45%,
      rgba(16, 19, 31, 0.4) 100%
    ),
    linear-gradient(to top, rgba(16, 19, 31, 0.7), transparent 45%);
}

.hero__content {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  max-width: 46rem;
  color: #fff;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--sp-4);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--cyan-400);
}

.hero h2 {
  font-size: var(--step-5);
  color: #fff;
  margin-bottom: var(--sp-5);
  letter-spacing: -0.035em;
}

.hero p {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.8);
  max-width: 40rem;
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  z-index: 2;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__dots li {
  margin: 0;
}

.hero__dot {
  appearance: none;
  width: 2.75rem;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.hero__dot[aria-selected="true"] {
  background: var(--cyan-400);
}

.hero__playpause {
  appearance: none;
  margin-left: var(--sp-4);
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.hero__playpause:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

/* --- Page header (sub pages) --------------------------------------------- */

.pagehead {
  position: relative;
  background: var(--ink-800);
  color: #fff;
  overflow: hidden;
}

.pagehead__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /*opacity: 0.35;*/
}

.pagehead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(31, 35, 57, 0.95) 10%,
    rgba(31, 35, 57, 0.55) 100%
  );
}

.pagehead__inner {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.pagehead h1 {
  color: #fff;
  margin-bottom: var(--sp-3);
}

.pagehead p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--step-1);
  max-width: 52rem;
  margin-bottom: 0;
}

/* --- Breadcrumb ---------------------------------------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.6);
}

.crumbs li {
  margin: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.crumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--cyan-400);
}

/* --- Local (in-page) nav ------------------------------------------------- */

.localnav {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.localnav ul {
  display: flex;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  /* Scrolls when the items overflow, but without a permanent scrollbar rule
     sitting under the tabs on wide screens. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.localnav ul::-webkit-scrollbar {
  display: none;
}

.localnav li {
  margin: 0;
}

.localnav a {
  display: block;
  padding: 1rem 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.localnav a:hover {
  color: var(--ink-800);
}

.localnav a[aria-current="page"] {
  color: var(--ink-800);
  border-bottom-color: var(--cyan-600);
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--ink-900);
  color: var(--text-on-dark-muted);
  font-size: var(--step--1);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 2.2fr;
  gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

.footer__brand .brand__mark {
  color: #fff;
  font-size: 1.5rem;
}

.footer__brand p {
  margin-top: var(--sp-3);
  max-width: 22rem;
  color: var(--text-on-dark-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--sp-5);
}

.footer__links h3 {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-3);
}

.footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--sp-2);
}

.footer__links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--cyan-400);
}

.footer__offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border-dark);
}

.office__name {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.office address {
  font-style: normal;
  line-height: 1.6;
}

.office__ko {
  display: block;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.9em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
}

.footer__marks {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer__marks img {
  height: 28px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(1) brightness(1.6);
}

.footer__marks a:hover img {
  opacity: 1;
}

/* --- Back to top --------------------------------------------------------- */

.totop {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.totop:hover {
  border-color: var(--ink-800);
}

/* Ghost buttons sitting on the dark hero / page header need light chrome. */
.hero .btn--ghost,
.pagehead .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.hero .btn--ghost:hover,
.pagehead .btn--ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}


/* ===== appended by build.mjs: chrome for news.asp / jobApp.asp ===== */
/* =========================================================================
   legacy.css — chrome for the two surviving Classic ASP pages.

   news.asp (FSBOARD newsroom) and jobApp.asp keep their ASP engine and their
   original markup; only their styling is replaced. Neither file is edited.

   HOW IT IS DELIVERED
   Both pages hard-code <link href="css/layout.css">, so build.mjs appends this
   file to the Korean build's dist/ko/css/layout.css. Uploading the Korean site
   therefore restyles them with no server-side change at all, and rolling back
   is restoring one CSS file.

   WHY IT IS SAFE IN BOTH DIRECTIONS
   - Our stylesheets contain zero ID selectors and zero bare element selectors,
     so nothing in layout.css matches the legacy markup by accident.
   - Every rule below is rooted at an id or class that exists only on the
     legacy pages (#header, #gnb, #content, #footer, .sVisual, .location,
     .ls_*, .langArea, .topgo_link), so nothing here matches a static page.
   - Values are literals, not var(--token): the legacy pages load neither
     tokens.css nor base.css. Keep them in step with tokens.css by hand.

   The legacy pages also still load css/font.css (locally hosted Noto Sans KR)
   and css/aos.css. Both are left in place, so Korean text keeps its webfont
   and the existing scroll animations keep working.
   ========================================================================= */

/* --- Reset, scoped to the legacy roots ---------------------------------- */

#skipNavi,
#header,
.sVisual,
.location,
#content,
#footer,
footer.mobile,
.topgo_link,
#skipNavi *,
#header *,
.sVisual *,
.location *,
#content *,
#footer *,
footer.mobile *,
.topgo_link * {
  box-sizing: border-box;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

#header img,
#content img,
#footer img {
  max-width: 100%;
  height: auto;
}

/* Skip link: hidden until focused. */
#skipNavi a {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
}
#skipNavi a:focus {
  left: 0;
  padding: 0.75rem 1.25rem;
  background: #1f2339;
  color: #fff;
  text-decoration: none;
}

/* --- Header ------------------------------------------------------------- */

#header {
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #dfe3ee;
}

#header .inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  height: 76px;
}

/* Brand. The legacy markup wraps it in an <h1>; reset that to body scale so
   the page's real <h1 class="title"> stays the dominant heading. */
#header h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
#header h1 a {
  color: #1f2339;
  text-decoration: none;
}
#header h1 a:hover {
  color: #0e91ad;
}

/* The legacy mobile drawer is driven by js/common.js, which toggles
   #header.open and applies inline styles through jQuery fadeIn/fadeOut. Rather
   than style around state we do not control, the drawer is retired: these two
   controls are hidden at every width and the nav becomes a scrollable strip on
   narrow screens (see the media query at the end). Nothing here depends on
   common.js, so the page cannot end up in a half-open state. */
.btnMenu,
.btnClose {
  display: none !important;
}

#gnb {
  margin-left: auto;
}
#gnb ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#gnb > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#gnb > ul > li {
  position: relative;
}
#gnb > ul > li > a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2b3050;
  text-decoration: none;
  white-space: nowrap;
}
#gnb > ul > li > a:hover,
#gnb > ul > li:focus-within > a {
  color: #0e91ad;
}

/* Second level: a card that opens on hover, matching the static site. */
#gnb > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 19, 31, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
#gnb > ul > li:hover > ul,
#gnb > ul > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* The last item sits at the container's right edge; anchor its panel there so
   it cannot push the page into a horizontal scroll. */
#gnb > ul > li:last-child > ul {
  left: auto;
  right: 0;
}
#gnb > ul > li > ul a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #3d436a;
  text-decoration: none;
  white-space: nowrap;
}
#gnb > ul > li > ul a:hover {
  background: #f0f2f8;
  color: #0e91ad;
}
/* Third level (사업분야 > 주요사업) renders inline under its parent. */
#gnb > ul > li > ul ul {
  padding-left: 0.5rem;
}

.langArea ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.langArea a {
  font-size: 0.8125rem;
  color: #5b6180;
  text-decoration: none;
}
.langArea a:hover {
  color: #0e91ad;
}

/* --- Page head ---------------------------------------------------------- */

.sVisual {
  position: relative;
  background: #1f2339;
  color: #fff;
}
.sVisual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(31, 35, 57, 0.92), rgba(31, 35, 57, 0.6));
}
.sVisual_txt {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}
.sVisual_txt h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sVisual_txt h4 {
  margin: 0;
  max-width: 52rem;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Breadcrumb --------------------------------------------------------- */

.location {
  border-bottom: 1px solid #dfe3ee;
  background: #fff;
}
.location > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  padding: 0.75rem 0;
}
.location > ul > li {
  position: relative;
}
.location a {
  font-size: 0.875rem;
  color: #5b6180;
  text-decoration: none;
}
.location a:hover {
  color: #0e91ad;
}
.location ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 19, 31, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s, visibility 0.14s;
  z-index: 40;
}
.location li:hover > ul,
.location li:focus-within > ul {
  opacity: 1;
  visibility: visible;
}
.location ul ul a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
}
.location ul ul a:hover {
  background: #f0f2f8;
}

/* --- Content ------------------------------------------------------------ */

#content {
  display: block;
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0;
  color: #1f2339;
  font-size: 1rem;
  line-height: 1.75;
}

#content h1.title {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
#content h1.title span {
  display: block;
}

/* The legacy tab strip above the title (솔루션/사업분야 pages). */
#content ul.tab_menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  border-bottom: 1px solid #dfe3ee;
}
#content ul.tab_menu a {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5b6180;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
#content ul.tab_menu li.on a,
#content ul.tab_menu a:hover {
  color: #0e91ad;
  border-bottom-color: #0e91ad;
}

/* --- FSBOARD (news.asp) -------------------------------------------------
   The board skin at /fsboard/skin/div_test/style.asp is generated by the
   board engine from query parameters and must never be edited. It loads
   after this file, so a few rules below need the extra weight of an id.
   ------------------------------------------------------------------------ */

#ls_frame,
#ls_layout {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Search form */
#ls_srh {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}
#ls_srh table {
  border-collapse: collapse;
}
#ls_srh td {
  padding: 0 0.35rem;
  vertical-align: middle;
  font-size: 0.875rem;
  color: #5b6180;
}
#ls_srh input[type="text"] {
  width: 205px;
  padding: 0.5rem 0.7rem;
  border: 1px solid #dfe3ee;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #1f2339;
  background: #fff;
}
#ls_srh input[type="text"]:focus {
  outline: 3px solid rgba(14, 145, 173, 0.35);
  outline-offset: 1px;
  border-color: #0e91ad;
}
#ls_srh input[type="checkbox"] {
  margin: 0 0.25rem 0 0.6rem;
  accent-color: #0e91ad;
}

/* List header and rows share one column grid. FSBOARD emits four cells per
   row: ls_body2 번호, ls_body4 제목, ls_body6 작성일, ls_body7 조회. */
#ls_title,
.ls_content {
  display: grid;
  grid-template-columns: 4.5rem 1fr 7rem 4.5rem;
  gap: 1rem;
  align-items: center;
}
#ls_title {
  padding: 0.9rem 0.5rem;
  border-top: 2px solid #1f2339;
  border-bottom: 1px solid #dfe3ee;
  background: #f7f8fc;
}
#ls_title h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2339;
}
.ls_content {
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid #dfe3ee;
}
.ls_content:hover {
  background: #f7f8fc;
}
.ls_content p {
  margin: 0;
  font-size: 0.95rem;
  color: #3d436a;
  min-width: 0;
}
.ls_content p.ls_body2,
#ls_title h4.ls_body2 {
  font-variant-numeric: tabular-nums;
  color: #7d8399;
}
.ls_content p.ls_body6,
#ls_title h4.ls_body6,
.ls_content p.ls_body7,
#ls_title h4.ls_body7 {
  font-variant-numeric: tabular-nums;
  color: #7d8399;
  font-size: 0.875rem;
}
.ls_content p.ls_body7,
#ls_title h4.ls_body7 {
  text-align: right;
}
.ls_content a.ls_lnk {
  color: #1f2339;
  font-weight: 500;
  text-decoration: none;
}
.ls_content a.ls_lnk:hover {
  color: #0e91ad;
  text-decoration: underline;
}

/* Paging */
.ls_page {
  margin-top: 1.75rem;
  text-align: center;
}
#page_btn {
  display: inline-flex;
  gap: 0.25rem;
  margin: 0;
}
a.ls_psc,
span.ls_psc {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #dfe3ee;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  color: #3d436a !important;
}
a.ls_psc:hover {
  border-color: #0e91ad;
  color: #0e91ad !important;
}
span.ls_psc {
  background: #1f2339;
  border-color: #1f2339;
  color: #fff !important;
  font-weight: 700;
}

#ls_btn {
  margin-top: 1rem;
  text-align: right;
}

/* --- jobApp.asp form ---------------------------------------------------- */

#content form table {
  width: 100%;
  border-collapse: collapse;
}
#content form th,
#content form td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid #dfe3ee;
  font-size: 0.95rem;
  text-align: left;
  vertical-align: middle;
}
#content form th {
  width: 10rem;
  font-weight: 600;
  color: #1f2339;
  background: #f7f8fc;
}
#content input[type="text"],
#content input[type="email"],
#content input[type="tel"],
#content input[type="password"],
#content input[type="file"],
#content select,
#content textarea {
  max-width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #dfe3ee;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1f2339;
  background: #fff;
}
#content textarea {
  width: 100%;
  min-height: 10rem;
  line-height: 1.7;
}
#content input:focus,
#content select:focus,
#content textarea:focus {
  outline: 3px solid rgba(14, 145, 173, 0.35);
  outline-offset: 1px;
  border-color: #0e91ad;
}
#content input[type="submit"],
#content button {
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: #0e91ad;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
#content input[type="submit"]:hover,
#content button:hover {
  background: #0a6f85;
}

/* --- Footer ------------------------------------------------------------- */

#footer,
footer.mobile {
  background: #10131f;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.8;
}
#footer > div,
footer.mobile > div {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}
#footer .footer_menu {
  padding-top: 2.5rem;
}
#footer .footer_menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#footer .footer_menu a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  text-decoration: none;
}
#footer .footer_menu a:hover {
  color: #6cecff;
}
#footer .address,
#footer .address_1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
}
#footer .address > div:nth-child(odd),
#footer .address_1 > div:nth-child(odd) {
  color: #fff;
  font-weight: 700;
}
#footer .address ul,
#footer .address_1 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Back to top -------------------------------------------------------- */

.topgo_link {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #1f2339;
  color: #fff;
  cursor: pointer;
  z-index: 60;
}
.topgo_link:hover {
  background: #0e91ad;
}
.topgo_link .txt {
  font-size: 0.7rem;
  font-weight: 700;
}

/* --- Below 900px -------------------------------------------------------- */

@media (max-width: 900px) {
  #header .inner {
    height: auto;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.75rem;
  }
  #gnb {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  #gnb > ul {
    flex-wrap: nowrap;
  }
  /* Hover panels are unusable on touch; the top-level links still navigate. */
  #gnb > ul > li > ul,
  .location ul ul {
    display: none;
  }
  #ls_title {
    display: none;
  }
  .ls_content {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
