/* =========================================================
   (사)한국인공지능융합산업협회 — site.css
   Fluid, full-width, light theme. No rounded corners.
   ========================================================= */

:root {
  --ink: #14213D;
  --ink-2: #3A4757;
  --muted: #6B7684;
  --blue: #0B4A9E;
  --blue-deep: #083A7C;
  --blue-soft: #E9F1FB;
  --blue-line: #B9CDEB;
  --paper: #FFFFFF;
  --mist: #F4F6F9;
  --line: #D8DEE7;
  --red: #E70012;
  --green: #00913A;

  --gutter: clamp(20px, 4.5vw, 160px);
  --header-h: 5rem;
  --sec-y: clamp(3.5rem, 6vw, 7rem);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
          'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  /* Bootstrap: square everything */
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-pill: 0;
  --bs-primary: #0B4A9E;
  --bs-primary-rgb: 11, 74, 158;
  --bs-link-color: #0B4A9E;
  --bs-link-hover-color: #083A7C;
  --bs-body-color: #14213D;
  --bs-body-font-family: var(--font);
}

html { font-size: clamp(15px, 0.42vw + 10.5px, 24px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
address { font-style: normal; margin: 0; }
button { font-family: inherit; }
.btn, .form-control, .form-select, .btn-check:checked + .btn { border-radius: 0 !important; }
.btn { font-weight: 600; padding: .7rem 1.4rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-deep); --bs-btn-hover-border-color: var(--blue-deep); --bs-btn-active-bg: var(--blue-deep); }
.btn-outline-dark { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); }
.form-control, .form-select { border-color: var(--line); padding: .7rem .9rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(11, 74, 158, .15); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { padding-inline: var(--gutter); width: 100%; }

.skip-link {
  position: absolute; left: 0; top: -100px; z-index: 2000;
  background: var(--blue); color: #fff; padding: .8rem 1.2rem; font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- tricolor rule (brand) ---------- */
.brand-rule { display: flex; height: 4px; width: 100%; }
.brand-rule > span { flex: 1; }
.brand-rule > span:nth-child(1) { background: var(--red); }
.brand-rule > span:nth-child(2) { background: var(--green); }
.brand-rule > span:nth-child(3) { background: var(--blue); }
.brand-rule--short { width: 3.6rem; height: 4px; margin-bottom: 1.1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo img { height: 2.5rem; width: auto; }

.site-nav { height: 100%; }
.site-nav__list { display: flex; height: 100%; }
.site-nav__item { position: relative; height: 100%; }
.site-nav__link {
  display: flex; align-items: center; height: 100%;
  padding: 0 1.5rem; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav__item:hover > .site-nav__link,
.site-nav__item:focus-within > .site-nav__link,
.site-nav__item.is-active > .site-nav__link { color: var(--blue); border-bottom-color: var(--blue); }
.site-nav__sub {
  position: absolute; left: 0; top: 100%; min-width: 15rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav__item:nth-child(2) .site-nav__sub { min-width: 22rem; }
.site-nav__item:hover .site-nav__sub, .site-nav__item:focus-within .site-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.site-nav__sub a { display: block; padding: .8rem 1.2rem; font-size: .98rem; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--mist); }
.site-nav__sub li:last-child a { border-bottom: 0; }
.site-nav__sub a:hover, .site-nav__sub a:focus-visible { background: var(--blue-soft); color: var(--blue); }

.nav-toggle {
  display: none; width: 2.8rem; height: 2.8rem; border: 0; background: transparent; padding: .5rem;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav__inner { padding: .5rem var(--gutter) 1.5rem; }
.mobile-nav__group { border-bottom: 1px solid var(--line); }
.mobile-nav__title { display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 700; }
.mobile-nav__group ul { padding: 0 0 .8rem .8rem; }
.mobile-nav__group ul a { display: block; padding: .55rem 0; color: var(--ink-2); font-size: 1rem; }
.mobile-nav__group ul a::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--blue); margin-right: .7rem; vertical-align: middle; }
.mobile-nav__foot { padding-top: 1.2rem; color: var(--muted); font-size: .95rem; }

@media (max-width: 1099px) {
  :root { --header-h: 4rem; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-logo img { height: 2.1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero-swiper { height: calc(100svh - var(--header-h)); min-height: 30rem; max-height: 64rem; }
.hero-slide { position: relative; background-size: cover; background-position: center; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 26, 60, .78) 0%, rgba(8, 26, 60, .42) 55%, rgba(8, 26, 60, .18) 100%),
              linear-gradient(0deg, rgba(8, 26, 60, .55) 0%, rgba(8, 26, 60, 0) 45%);
}
.hero-slide__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24%;
  max-width: 52rem;
}
.hero-slide__kicker { font-size: .9rem; letter-spacing: .01em; color: rgba(255, 255, 255, .75); margin-bottom: 1.2rem; padding-left: 3.6rem; position: relative; }
.hero-slide__kicker::before { content: ''; position: absolute; left: 0; top: 50%; width: 2.6rem; height: 1px; background: rgba(255, 255, 255, .6); }
.hero-slide__title {
  font-size: clamp(1.9rem, 3.6vw, 5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; color: #fff;
  text-wrap: balance;
}
.hero-slide__sub { margin-top: 1.1rem; font-size: clamp(1rem, 1.15vw, 1.5rem); color: rgba(255, 255, 255, .88); font-weight: 400; max-width: 40rem; }
.hero-slide__link {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: 1.8rem;
  padding: .75rem 1.3rem; border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-weight: 600; font-size: .98rem;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-slide__link:hover { background: #fff; color: var(--blue-deep); border-color: #fff; }
.hero-slide__link i { font-size: 1.3em; }

.swiper-slide-active .hero-slide__kicker,
.swiper-slide-active .hero-slide__title,
.swiper-slide-active .hero-slide__sub,
.swiper-slide-active .hero-slide__link { animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.swiper-slide-active .hero-slide__title { animation-delay: .1s; }
.swiper-slide-active .hero-slide__sub { animation-delay: .22s; }
.swiper-slide-active .hero-slide__link { animation-delay: .34s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-controls {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.hero-pagination { display: flex; gap: .5rem; }
.hero-pagination .swiper-pagination-bullet {
  width: 4.5rem; height: 3px; border-radius: 0; margin: 0 !important; opacity: 1;
  background: rgba(255, 255, 255, .38); transition: background .3s;
}
.hero-pagination .swiper-pagination-bullet-active { background: #fff; }
.hero-buttons { display: flex; gap: .4rem; }
.hero-btn {
  width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255, 255, 255, .55); background: rgba(8, 26, 60, .25); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: background .2s, color .2s;
}
.hero-btn:hover { background: #fff; color: var(--blue-deep); }

.hero-index {
  position: absolute; z-index: 5; right: var(--gutter); bottom: 24%;
  width: 17rem; padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, .35);
}
.hero-index__title { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: .6rem; }
.hero-index a {
  display: block; padding: .42rem 0; color: #fff; font-size: 1rem; font-weight: 500; opacity: .92;
  border-bottom: 1px solid rgba(255, 255, 255, .12); transition: padding-left .25s, opacity .25s;
}
.hero-index li:last-child a { border-bottom: 0; }
.hero-index a:hover, .hero-index a:focus-visible { padding-left: .6rem; opacity: 1; color: #fff; }
@media (max-width: 1399px) { .hero-index { display: none; } }
@media (max-width: 767px) {
  .hero-swiper { height: calc(100svh - var(--header-h)); min-height: 26rem; max-height: 42rem; }
  .hero-slide__caption { bottom: 26%; }
  .hero-slide__kicker { padding-left: 2.4rem; font-size: .78rem; max-width: 18rem; line-height: 1.4; }
  .hero-slide__kicker::before { width: 1.6rem; }
  .hero-controls { bottom: 1.6rem; }
  .hero-pagination .swiper-pagination-bullet { width: 2.6rem; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--sec-y); scroll-margin-top: calc(var(--header-h) + 3.4rem); }
.sec-head { margin-bottom: clamp(1.8rem, 3vw, 3.2rem); }
.sec-head h2 { font-size: clamp(1.7rem, 2.5vw, 3.1rem); letter-spacing: -0.025em; }
.sec-head p { margin-top: .8rem; font-size: clamp(1rem, 1.05vw, 1.3rem); color: var(--ink-2); max-width: 48rem; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.btn-line {
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.2rem;
  border: 1px solid var(--ink); color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-line i { font-size: 1.15em; }
.empty { color: var(--muted); padding: 2rem 0; }

/* greeting */
.sec--greeting { background: var(--paper); }
.greeting { display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.greeting__media { position: relative; padding: 0 1.2rem 1.2rem 0; }
.greeting__media::before { content: ''; position: absolute; right: 0; bottom: 0; width: 70%; height: 55%; background: var(--blue-soft); }
.greeting__media img { position: relative; display: block; width: 100%; aspect-ratio: 37 / 65; object-fit: cover; }
.greeting__intro { font-size: clamp(1.2rem, 1.5vw, 1.8rem); font-weight: 600; color: var(--blue-deep); line-height: 1.5; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.greeting__text { font-size: clamp(1rem, 1.05vw, 1.3rem); line-height: 1.85; color: var(--ink-2); margin-bottom: 1.2rem; max-width: 62rem; }
.greeting__sign { margin: 2rem 0 1.8rem; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.greeting__sign span { color: var(--ink-2); font-size: 1rem; }
.greeting__sign strong { font-size: 1.45rem; font-weight: 700; letter-spacing: .12em; }
@media (max-width: 899px) {
  .greeting { grid-template-columns: 1fr; }
  .greeting__media { max-width: 22rem; }
}

/* divisions */
.sec--divisions { background: var(--mist); }
.division-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 2400px) { .division-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 599px) { .division-grid { grid-template-columns: 1fr; } }
.division-tile { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.division-tile:hover { border-color: var(--blue); color: var(--ink); box-shadow: 0 12px 30px -18px rgba(11, 74, 158, .45); }
.division-tile__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-soft); }
.division-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.division-tile:hover .division-tile__media img { transform: scale(1.04); }
.division-tile__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.division-tile__name { font-size: 1.18rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.division-tile__summary { font-size: .95rem; color: var(--ink-2); line-height: 1.65; flex: 1; }
.division-tile__more { display: inline-flex; align-items: center; gap: .2rem; margin-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--blue); }
.division-tile__more i { font-size: .95em; transition: transform .2s; }
.division-tile:hover .division-tile__more i { transform: translateX(3px); }

/* executives */
.exec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 1399px) { .exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .exec-grid { grid-template-columns: 1fr; gap: 1rem; } }
.exec-card { display: grid; grid-template-columns: 7rem 1fr; gap: 1.3rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.exec-card--chair { grid-column: 1 / -1; grid-template-columns: 11rem 1fr; background: var(--blue-soft); border-color: var(--blue-line); }
.exec-card__body, .division__text, .greeting__body { min-width: 0; }
.exec-card__photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: var(--mist); }
.exec-card__name { font-size: 1.3rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.exec-card--chair .exec-card__name { font-size: 1.55rem; border-bottom-color: var(--blue-line); }
.exec-card__name small { font-size: .9rem; font-weight: 600; color: var(--blue); }
.exec-card__career li { position: relative; padding: .22rem 0 .22rem .95rem; font-size: .93rem; line-height: 1.6; color: var(--ink-2); break-inside: avoid; }
.exec-card__career li::before { content: ''; position: absolute; left: 0; top: .85em; width: 5px; height: 5px; background: var(--blue); }
@media (min-width: 1400px) { .exec-card--chair .exec-card__career { columns: 2; column-gap: 2.5rem; } }
@media (max-width: 599px) {
  .exec-card, .exec-card--chair { grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1.1rem; }
}

/* news */
.sec--news { background: var(--paper); border-top: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem) clamp(2rem, 4vw, 5rem); }
.news-box--gallery { grid-column: 1 / -1; }
@media (min-width: 2200px) {
  .news-grid { grid-template-columns: 1fr 1fr 1.5fr; }
  .news-box--gallery { grid-column: auto; }
}
@media (max-width: 899px) { .news-grid { grid-template-columns: 1fr; } }
.news-box { min-width: 0; }
.news-box__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; margin-bottom: .3rem; border-bottom: 2px solid var(--ink); }
.news-box__head h3 { font-size: 1.35rem; }
.news-box__head a { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.news-box__head a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; align-items: center; gap: .7rem; padding: .95rem 0; color: var(--ink); }
.news-list a:hover .news-list__title { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.news-list__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; }
.news-list__date { flex: 0 0 auto; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

.badge-sq { display: inline-block; padding: .15rem .5rem; font-size: .75rem; font-weight: 700; line-height: 1.4; background: var(--blue); color: #fff; flex: 0 0 auto; }
.badge-new { display: inline-flex; width: 1.1rem; height: 1.1rem; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; background: var(--red); color: #fff; flex: 0 0 auto; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.gallery-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 2200px) { .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .gallery-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1299px) { .gallery-grid, .gallery-grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .gallery-grid, .gallery-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.gallery-card { display: flex; flex-direction: column; gap: .6rem; color: var(--ink); }
.gallery-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); border: 1px solid var(--line); position: relative; }
.gallery-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery-card__media.is-empty { display: flex; align-items: center; justify-content: center; }
.gallery-card__media.is-empty .gallery-card__mark { width: 3rem; height: auto; opacity: .35; }
.gallery-card:hover { color: var(--ink); }
.gallery-card:hover .gallery-card__media img:not(.gallery-card__mark) { transform: scale(1.04); }
.gallery-card:hover .gallery-card__title { color: var(--blue); }
.gallery-card__title { font-size: 1.02rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-card__date, .gallery-card__meta { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.gallery-card__meta { display: flex; gap: 1rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__partners { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-footer__partners ul { display: flex; flex-wrap: wrap; gap: 1rem 3rem; padding: 1.3rem 0; align-items: center; }
.site-footer__partners img { height: 2.1rem; width: auto; opacity: .85; transition: opacity .2s; }
.site-footer__partners a:hover img { opacity: 1; }
.site-footer__body { background: var(--mist); padding: 3rem 0 2.2rem; color: var(--ink-2); font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem 4rem; align-items: start; }
.site-footer__brand img { height: 2.4rem; width: auto; }
.site-footer__name { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .6rem; }
.site-footer__info dl { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: 0; }
.site-footer__info dl > div { display: flex; gap: .5rem; }
.site-footer__info dt { font-weight: 600; color: var(--ink); }
.site-footer__info dd { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 500; }
.site-footer__admin { color: var(--muted); }
.site-footer__copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 1099px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900; width: 2.8rem; height: 2.8rem;
  border: 0; background: var(--blue); color: #fff; font-size: 1.1rem; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- sub page header ---------- */
.page-header {
  position: relative; color: #fff; background: var(--blue-deep) var(--ph-image) center / cover no-repeat;
  min-height: clamp(13rem, 22vw, 24rem); display: flex; align-items: flex-end;
}
.page-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 40, 100, .88), rgba(8, 40, 100, .55)); }
.page-header .wrap { position: relative; padding-block: 2.4rem; }
.breadcrumb-nav ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; color: rgba(255, 255, 255, .8); margin-bottom: .9rem; }
.breadcrumb-nav li + li::before { content: ''; display: inline-block; width: 4px; height: 4px; background: rgba(255, 255, 255, .6); margin: 0 .5rem .2rem 0; }
.breadcrumb-nav a { color: rgba(255, 255, 255, .85); }
.breadcrumb-nav a:hover { color: #fff; }
.page-header__title { font-size: clamp(1.9rem, 3vw, 3.6rem); letter-spacing: -0.025em; color: #fff; }
.page-header__lead { margin-top: .8rem; font-size: clamp(.98rem, 1.05vw, 1.3rem); color: rgba(255, 255, 255, .85); max-width: 48rem; }

.page-tabs { position: sticky; top: var(--header-h); z-index: 800; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.page-tabs ul::-webkit-scrollbar { display: none; }
.page-tabs a { display: block; padding: 1rem 1.3rem; font-size: 1rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.page-tabs li.is-active a, .page-tabs a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- business ---------- */
.division--alt { background: var(--mist); }
.division__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
@media (max-width: 1099px) { .division__inner { grid-template-columns: 1fr; } }
.division__text .sec-head h2 { font-size: clamp(1.5rem, 2.1vw, 2.6rem); }
.check-list li { position: relative; padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--line); font-size: clamp(1rem, 1.05vw, 1.25rem); line-height: 1.65; color: var(--ink-2); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 1.35em; width: 8px; height: 8px; background: var(--blue); }
.check-list li:first-child { border-top: 2px solid var(--ink); }
.division__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.division__media figure { margin: 0; border: 1px solid var(--line); overflow: hidden; background: var(--mist); }
.division__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 599px) { .division__media { grid-template-columns: 1fr; } }

/* ---------- board ---------- */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.board-total { font-size: .98rem; color: var(--ink-2); }
.board-total strong { color: var(--blue); }
.board-total__q { color: var(--muted); margin-left: .4rem; }
.board-search { display: flex; gap: .5rem; flex-wrap: wrap; }
.board-search .form-select { width: 8rem; flex: 0 0 auto; }
.board-search .form-control { width: 18rem; max-width: 100%; }
.board-search .btn { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 599px) {
  .board-search { width: 100%; }
  .board-search .form-control { width: auto; flex: 1 1 8rem; }
}

.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 1rem; }
.board-table th { padding: 1rem .75rem; font-weight: 600; text-align: center; background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
.board-table td { padding: 1rem .75rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; color: var(--ink-2); }
.board-table .td-title { text-align: left; }
.board-table .td-title a { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 500; }
.board-table .td-title a:hover .td-title__text { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.board-table .td-title__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-table .td-title i { color: var(--muted); }
.board-table tbody tr:hover { background: #FAFCFF; }
.board-table tr.is-pinned { background: #FBFCFE; }
.board-table tr.is-pinned .td-title a { font-weight: 700; }
.board-table .col-num { width: 6rem; } .board-table .col-writer { width: 8rem; } .board-table .col-date { width: 8rem; } .board-table .col-hits { width: 6rem; }
.board-table .td-date, .board-table .td-hits { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .board-table, .board-table thead, .board-table tbody, .board-table tr, .board-table td { display: block; }
  .board-table thead { display: none; }
  .board-table tr { padding: .9rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; align-items: center; }
  .board-table td { padding: 0; border: 0; text-align: left; }
  .board-table .td-num { grid-row: 1; font-size: .85rem; color: var(--muted); }
  .board-table .td-num:not(:has(.badge-sq)) { display: none; }
  .board-table .td-title { grid-column: 1 / -1; grid-row: 2; }
  .board-table .td-title__text { white-space: normal; }
  .board-table .td-writer { display: none; }
  .board-table .td-date, .board-table .td-hits { grid-row: 3; font-size: .85rem; color: var(--muted); }
  .board-table .td-hits::before { content: '조회 '; }
}

.board-empty { padding: 5rem 0; text-align: center; color: var(--muted); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.board-empty i { font-size: 2.4rem; display: block; margin-bottom: .8rem; }

.paging { margin-top: 2.5rem; display: flex; justify-content: center; }
.paging ul { display: flex; gap: .3rem; }
.paging a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.paging a:hover { border-color: var(--blue); color: var(--blue); }
.paging li.is-current a { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.paging li.is-disabled a { pointer-events: none; opacity: .35; }

/* post view */
.post { max-width: 80rem; margin: 0 auto; }
.post__head { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 1.8rem 0 1.4rem; }
.post__head .badge-sq { margin-bottom: .8rem; }
.post__title { font-size: clamp(1.4rem, 2vw, 2.4rem); line-height: 1.35; letter-spacing: -0.02em; }
.post__meta { display: flex; flex-wrap: wrap; gap: .4rem 0; margin-top: 1rem; font-size: .92rem; color: var(--ink-2); }
.post__meta li { padding: 0 1rem; border-left: 1px solid var(--line); }
.post__meta li:first-child { padding-left: 0; border-left: 0; }
.post__meta span { color: var(--muted); margin-right: .45rem; }
.post__files { margin-top: 1.2rem; padding: 1rem 1.2rem; background: var(--mist); border: 1px solid var(--line); }
.post__files-title { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; }
.post__files li a { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .95rem; color: var(--ink-2); }
.post__files li a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.post__files li small { color: var(--muted); }
.post__content { padding: 2.4rem 0 3rem; font-size: clamp(1rem, 1.05vw, 1.25rem); line-height: 1.85; color: var(--ink-2); min-height: 12rem; }
.post-content p { margin: 0 0 1.1em; }
.post-content img { max-width: 100%; height: auto; display: block; margin: 1.4rem auto; }
.post-content a.glightbox img { cursor: zoom-in; }
.post-content table { max-width: 100%; border-collapse: collapse; margin: 1rem 0; }
.post-content table td, .post-content table th { border: 1px solid var(--line); padding: .5rem .7rem; }
.post-content blockquote { border-left: 4px solid var(--blue); margin: 1.2rem 0; padding: .4rem 1rem; color: var(--ink-2); }
.post-content iframe, .post-content video { max-width: 100%; }
.post-content h1, .post-content h2, .post-content h3 { margin: 1.4em 0 .6em; color: var(--ink); }
.post-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.post-content ol { list-style: decimal; padding-left: 1.4em; margin-bottom: 1em; }
.post__foot { border-top: 1px solid var(--line); }
.post__nav li { display: flex; align-items: center; gap: 1.2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.post__nav-label { flex: 0 0 6rem; color: var(--muted); font-weight: 600; font-size: .9rem; }
.post__nav a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.post__nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.post__nav em { color: var(--muted); font-style: normal; }
.post__actions { margin-top: 1.6rem; display: flex; justify-content: flex-end; gap: .5rem; }
.post__actions .btn { display: inline-flex; align-items: center; gap: .4rem; }

/* error */
.error-page { text-align: center; padding-block: clamp(5rem, 12vw, 12rem); }
.error-page__code { font-size: clamp(3rem, 8vw, 7rem); font-weight: 800; color: var(--blue-line); line-height: 1; }
.error-page h1 { font-size: clamp(1.4rem, 2vw, 2.2rem); margin: 1rem 0 .6rem; }
.error-page p { color: var(--ink-2); }
.error-page__actions { margin-top: 2rem; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* glightbox: square */
.glightbox-clean .gslide-media, .glightbox-clean .gslide-description { border-radius: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .to-top, .page-tabs, .hero-controls, .hero-index, .post__actions { display: none !important; }
}
