/* styles.css */
:root{
  --space-1:6px;
  --space-2:10px;
  --space-3:14px;
  --space-4:18px;
  --space-5:24px;
  --space-6:32px;
  
  --primary:#1E3A8A;
  --accent:#14B8A6;
  --bg:#F7F8FC;
  --card:#FFFFFF;
  --text:#111827;
  --muted:#6B7280;
  --border:#E5E7EB;
  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --shadow2: 0 6px 18px rgba(17,24,39,.08);
  --r18:18px;
  --r14:14px;
  --max:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.55;
}

a{color:inherit;text-decoration:none}
b{font-weight:750}

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

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(247,248,252,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(229,231,235,.7);
}
.topbar__inner{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.brand__logo{
  width:60px;height:60px;
  border-radius:999px;
  display:grid;place-items:center;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  overflow:hidden;
}
.brand__text{letter-spacing:-.3px; font-size:20px; line-height:1.15;}
.brand--footer .brand__logo{border-color:rgba(229,231,235,.3)}

.nav{
  display:flex; align-items:center; gap:8px;
}
.nav__link{
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:650;
}
.nav__link:hover{background:rgba(17,24,39,.04); color:var(--text)}
.nav__cta{margin-left:6px}

/* Mobile nav */
.navbtn{
  display:inline-flex;
  align-items:center; justify-content:center;
  width:44px; height:44px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  box-shadow: 0 6px 16px rgba(17,24,39,.06);
  cursor:pointer;
}
.navbtn__icon{font-size:18px}

/* Hero */
.hero{
  position:relative;
  padding: 36px 0 8px;
}
.hero__bg{
  position:absolute; inset:-40px 0 auto 0;
  height: 340px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.8)),
    radial-gradient(700px 240px at 15% 30%, rgba(20,184,166,.14), transparent 60%),
    radial-gradient(700px 260px at 85% 20%, rgba(30,58,138,.14), transparent 60%),
    url("/static/assets/hero_kyobo_building.jpg") center/cover no-repeat;
  pointer-events:none;
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  padding-top: 8px;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.8);
  border:1px solid rgba(229,231,235,.9);
  color: var(--muted);
  font-weight:650;
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
  margin:0 0 10px;
  width:fit-content;
}
.hero__title{
  margin:0;
  font-size: 32px;
  line-height:1.15;
  letter-spacing:-.8px;
}
.hero__desc{
  margin:10px 0 18px;
  color:var(--muted);
  font-size:16px;
}
.hero__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badges{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top:18px;
}
.badge{
  display:flex; gap:10px; align-items:center;
  padding:12px 12px;
  border-radius: var(--r18);
  background: rgba(255,255,255,.86);
  border:1px solid rgba(229,231,235,.9);
  box-shadow: 0 8px 20px rgba(17,24,39,.06);
}
.badge__icon{
  width:40px;height:40px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(30,58,138,.12), rgba(20,184,166,.14));
  border:1px solid rgba(229,231,235,.9);
}
.badge__t{font-weight:800; letter-spacing:-.3px}
.badge__s{color:var(--muted); font-size:13px; margin-top:2px}

.hero__card{display:block}
.heroCard{
  padding:18px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  box-shadow: var(--shadow);
}
.heroCard__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.heroCard__kicker{
  font-weight:850;
  letter-spacing:-.4px;
}
.heroCard__chip{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  color: #0f766e;
  background: rgba(20,184,166,.14);
  border:1px solid rgba(20,184,166,.2);
}
.heroCard__list{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
}
.heroCard__actions{
  display:flex; gap:10px; margin-top:14px; flex-wrap:wrap;
}

/* Sections */
.section{padding: 32px 0}
.section--tint{
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(247,248,252,1));
}
.section__head{margin-bottom:14px}
.section__head--row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.section__title{
  margin:0;
  font-size: 22px;
  letter-spacing:-.5px;
}
.section__desc{
  margin:6px 0 0;
  color: var(--muted);
}
.section__actions{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 14px;
}

/* Cards + grids */
.card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius: var(--r18);
  padding:16px;
  box-shadow: 0 10px 24px rgba(17,24,39,.05);
}
.card--bento{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--bento:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(20,184,166,.25);
}
.card__icon{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(30,58,138,.12), rgba(20,184,166,.14));
  border:1px solid rgba(229,231,235,.9);
  flex:0 0 auto;
  font-size:18px;
}
.card__title{font-weight:900; letter-spacing:-.3px}
.card__desc{margin-top:4px; color:var(--muted); font-size:14px}
.card__link{margin-top:10px; color:var(--primary); font-weight:800; font-size:14px}

.card--link{display:block; transition:transform .18s ease, box-shadow .18s ease}
.card--link:hover{transform: translateY(-2px); box-shadow: var(--shadow2)}

.card--list .date{color:var(--muted); font-size:12px; font-weight:700}

.bento{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.grid3{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
.grid4{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.h3{
  margin:8px 0 6px;
  font-size:18px;
  letter-spacing:-.3px;
}
.p{margin:0; color:var(--muted)}
.meta{
  margin:10px 0 10px;
  padding-left: 18px;
  color: var(--muted);
}
.miniTitle{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(30,58,138,.10);
  border:1px solid rgba(30,58,138,.14);
  color: rgba(30,58,138,.95);
  font-weight:850;
  font-size:12px;
}

/* --- logo chips: make logos fill the shape (no unwanted background showing) --- */
.miniTitle--logo{
  padding:0;
  width:44px;
  height:44px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  display:inline-grid;
  place-items:stretch;
  overflow:hidden;
}
.miniTitle__logo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.textLink{
  display:inline-flex;
  margin-top:10px;
  color: var(--primary);
  font-weight:850;
}
.textLink:hover{text-decoration:underline}

.tag{
  display:inline-flex;
  width:fit-content;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#0f766e;
  background: rgba(20,184,166,.14);
  border:1px solid rgba(20,184,166,.22);
}
.tag--soft{color:#1e40af; background:rgba(30,64,175,.10); border-color: rgba(30,64,175,.18)}
.tag--warn{color:#92400e; background:rgba(245,158,11,.14); border-color: rgba(245,158,11,.22)}

.faq{
  display:grid;
  gap:10px;
}
.faq__item{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius: var(--r18);
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(17,24,39,.05);
}
.faq__item summary{
  cursor:pointer;
  font-weight:850;
  letter-spacing:-.2px;
  list-style:none;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__content{
  margin-top:10px;
  color:var(--muted);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: var(--r14);
  border:1px solid transparent;
  font-weight:900;
  letter-spacing:-.2px;
  cursor:pointer;
  user-select:none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:active{transform: translateY(1px)}
.btn--block{width:100%}

.btn--primary{
  background: linear-gradient(135deg, var(--primary), #2748b8);
  color:#fff;
  box-shadow: 0 10px 22px rgba(30,58,138,.25);
}
.btn--primary:hover{box-shadow: 0 12px 26px rgba(30,58,138,.32)}

.btn--ghost{
  background: rgba(255,255,255,.85);
  border-color: rgba(229,231,235,.95);
  color: var(--text);
}
.btn--ghost:hover{background:#fff; box-shadow: 0 10px 22px rgba(17,24,39,.08)}

.btn--soft{
  background: rgba(20,184,166,.12);
  border-color: rgba(20,184,166,.18);
  color:#0f766e;
}
.btn--soft:hover{background: rgba(20,184,166,.16)}

/* CTA box */
.ctaBox{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:18px;
  border-radius: 24px;
  background:
    radial-gradient(700px 220px at 15% 30%, rgba(20,184,166,.18), transparent 60%),
    radial-gradient(700px 240px at 85% 30%, rgba(30,58,138,.18), transparent 60%),
    rgba(255,255,255,.88);
  border:1px solid rgba(229,231,235,.9);
  box-shadow: var(--shadow);
}
.ctaBox__title{margin:0; font-size:22px; letter-spacing:-.5px}
.ctaBox__desc{margin:6px 0 0; color:var(--muted)}
.ctaBox__actions{display:flex; gap:10px; flex-wrap:wrap}

.contactGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:14px;
}

/* Footer */
.footer{
  padding: 26px 0;
  border-top:1px solid rgba(229,231,235,.7);
  background: rgba(255,255,255,.55);
}
.footer__inner{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer__links{
  display:flex;
  gap:14px;
  color: var(--muted);
  font-weight:700;
}
.footer__links a:hover{text-decoration:underline}
.footer__small{color:var(--muted); margin:8px 0 0; font-size:12px}

/* Responsive */
@media (min-width: 720px){
  .hero{padding: 54px 0 14px}
  .hero__grid{grid-template-columns: 1.2fr .8fr; gap:18px}
  .badges{grid-template-columns: repeat(3, 1fr)}
  .bento{grid-template-columns: repeat(2, 1fr)}
  .grid3{grid-template-columns: repeat(3, 1fr)}
  .grid4{grid-template-columns: repeat(2, 1fr)}
  .contactGrid{grid-template-columns: repeat(3, 1fr)}
}
@media (min-width: 1024px){
  .hero__title{font-size: 30px}
  .hero__desc{font-size: 17px}
  .bento{grid-template-columns: repeat(4, 1fr)}
  .grid4{grid-template-columns: repeat(4, 1fr)}
}

/* Nav behavior on small screens */
@media (max-width: 900px){
  .nav{
    position: absolute;
    right:16px;
    top: 70px;
    width: min(360px, calc(100vw - 32px));
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(229,231,235,.9);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .nav.is-open{display:flex}
  .nav__link{
    padding: 12px 12px;
  }
  .nav__cta{margin-left:0; margin-top:6px}
}
@media (min-width: 901px){
  .navbtn{display:none}
}


/* --- FIX: prevent header/footer logo overflow --- */
.brand__logoImg{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}


/* --- bento icons (svg) --- */
.iconSvg{
  width:22px;
  height:22px;
  display:block;
}


/* --- meaning diagram --- */
.esopDiagram{
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
}
.esopDiagram img{
  width: 100%;
  height: auto;
  display: block;
}


/* --- simple lists for detail pages --- */
.list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li{
  margin: 8px 0;
  line-height: 1.6;
}


/* --- development page --- */
.devBlock{ margin-top: 14px; }
.devTitle{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 6px 0 10px;
  font-size: 16px;
}
.devDot{
  width:10px;
  height:10px;
  border-radius: 2px;
  background: rgba(30,58,138,1);
  display:inline-block;
}
.devImg{
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
}
.devImg img{ width:100%; height:auto; display:block; }
.devNote{
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(15,23,42,.06);
  padding: 14px;
  border: 1px solid rgba(15,23,42,.06);
}
.devNoteHead{
  font-weight: 800;
  margin-bottom: 8px;
}


/* --- blue section bullet (■) --- */
.blueBullet{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius: 2px;
  background: rgba(30,58,138,1);
  vertical-align: middle;
  margin-right: 6px;
}

/* --- auth user box (top right) --- */
.userbox{
  display:none;
  align-items:center;
  gap:10px;
}
.userbox__name{
  font-weight: 800;
  color: rgba(15,23,42,1);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.08);
  max-width: 180px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- topbar center nav --- */
.centerNav{
  flex: 1;
  display:flex;
  justify-content:center;
}
.centerNav__link{
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
}
.centerNav__link:hover{
  background: rgba(30,58,138,.08);
  border-color: rgba(30,58,138,.18);
}
@media (max-width: 720px){
.centerNav{ display:none; }
}

/* Soft button (Home) - ensure specificity */
.btn.btn--soft{
  background: rgba(30,58,138,.10);
  border: 1px solid rgba(30,58,138,.20);
  color: rgba(30,58,138,1);
}
.btn.btn--soft:hover{
  background: rgba(30,58,138,.14);
  border-color: rgba(30,58,138,.26);
}

/* Action bar buttons sizing/alignment */
.actionBar{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; align-items:center}
.actionBar .btn{min-width:84px; text-align:center}


/* Success button (e.g., 회원가입/작성) */
.btn.btn--success{
  background: rgba(16,185,129,1);
  border: 1px solid rgba(16,185,129,1);
  color: white;
  box-shadow: 0 10px 24px rgba(16,185,129,.18);
}
.btn.btn--success:hover{ filter: brightness(.98); }



/* Danger button (삭제) */
.btn.btn--danger{
  background: rgba(220,38,38,1);
  border: 1px solid rgba(220,38,38,1);
  color: white;
  box-shadow: 0 10px 24px rgba(220,38,38,.16);
}
.btn.btn--danger:hover{ filter: brightness(.98); }



/* Warning button (수정) */
.btn.btn--warning{
  background: rgba(245,158,11,1);
  border: 1px solid rgba(245,158,11,1);
  color: white;
  box-shadow: 0 10px 24px rgba(245,158,11,.14);
}
.btn.btn--warning:hover{ filter: brightness(.98); }



.divider{height:1px; width:100%; background: rgba(15,23,42,.10); margin: 10px 0;}





.hero__actions{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  align-items:center;
  margin-top:14px;
}
.hero__actions .btn{
  flex: 0 0 auto;
  min-width: 132px;
  text-align:center;
}
@media (max-width: 420px){
  .hero__actions .btn{ min-width: 0; flex: 1 1 0; }
}


/* Info button (공시 등 외부정보) */
.btn.btn--info{
  background: rgba(14,165,233,1);
  border: 1px solid rgba(14,165,233,1);
  color: white;
  box-shadow: 0 10px 24px rgba(14,165,233,.16);
}
.btn.btn--info:hover{ filter: brightness(.98); }

/* Hero actions (forum / Q&A / disclosure) */
.hero__actions{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  align-items:center;
  margin-top:14px;
}
.hero__actions .btn{
  flex: 1 1 0;
  min-width: 0;
  text-align:center;
  white-space:nowrap;
  padding: 10px 10px;
  font-size: 14px;
}
@media (max-width: 420px){
  .hero__actions{ gap:6px; }
  .hero__actions .btn{
    padding: 9px 8px;
    font-size: 12.5px;
  }
}

@media (max-width: 360px){
  .hero__actions .btn{
    padding: 8px 6px;
    font-size: 11.5px;
  }
}

/* Alert */
.alert{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.08);
  color: rgba(127,29,29,1);
  font-size: 14px;
}

.pager button:disabled{opacity:.55; cursor:not-allowed}

/* Disclosure mobile cards */
@media (max-width: 560px){
  .tableWrap{ overflow: visible; }
  table.tbl thead{ display:none; }
  table.tbl, table.tbl tbody, table.tbl tr, table.tbl td{ display:block; width:100%; }
  table.tbl tbody tr{
    margin: 10px 0;
    padding: 12px 12px;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 16px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 6px 18px rgba(15,23,42,.06);
  }
  table.tbl tbody td{
    border: none !important;
    padding: 8px 0 !important;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: start;
    gap: 10px;
    font-size: 14px;
  }
  table.tbl tbody td .cellVal{
    min-width: 0;
    word-break: break-word;
  }
  table.tbl tbody td::before{
    content: attr(data-label);
    flex: 0 0 72px;
    font-weight: 800;
    color: rgba(30,41,59,.85);
    letter-spacing: -0.2px;
  }
  table.tbl tbody td[data-label="제목"]{
    display:block;
  }
  table.tbl tbody td[data-label="제목"]::before{
    display:block;
    margin-bottom: 6px;
  }
  table.tbl tbody td[data-label="제목"]{
    font-size: 15px;
    font-weight: 700;
    color: rgba(15,23,42,.92);
    line-height: 1.35;
    word-break: keep-all;
  }
  table.tbl tbody td[data-label="접수일자"], table.tbl tbody td[data-label="순번"]{
    color: rgba(51,65,85,.9);
    font-weight: 600;
  }
  table.tbl tbody td[data-label="링크"]{
    padding-top: 10px !important;
  }
  table.tbl tbody td[data-label="링크"] .cellVal a.btn{
    width: 100%;

    width: 100%;
    justify-content: center;
  }
}

/* Disclosure header sizing */
.page-disclosure .h1{
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
@media (max-width: 560px){
  .page-disclosure .h1{
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.2px;
  }
  .page-disclosure .cardHead{
    gap: 10px;
    align-items: center;
  }
  .page-disclosure .actionBar .btn{
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 14px;
  }
}

/* Disclosure table alignment */
.page-disclosure table.tbl td:nth-child(1),
.page-disclosure table.tbl th:nth-child(1){
  text-align: center;
}

/* Disclosure mobile: tighten '순번' row alignment */
@media (max-width: 560px){
  .page-disclosure table.tbl tbody td[data-label="순번"] .cellVal{
    justify-self: start;
    font-weight: 800;
  }
}

/* Disclosure: colored Home button */
.page-disclosure .btn--soft{
  background: #1d4ed8;
  color: #fff;
  border-color: transparent;
}
.page-disclosure .btn--soft:hover{
  filter: brightness(0.95);
}


/* Page wrapper */
.page{ padding-bottom: 56px; }

.hero__subtitle{ margin:8px 0 6px; color: rgba(17,24,39,.92); font-weight:700; letter-spacing:-.3px; }

@media (max-width: 520px){
  .hero__title{ font-size: 26px; letter-spacing:-.6px; }
  .hero__desc{ font-size: 14px; margin:8px 0 14px; }
}


/* Notice board (index) */
.noticeCard{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r18);
  box-shadow: var(--shadow2);
  padding: 14px 14px 10px;
  margin: 14px 0 30px;
}
.noticeCard__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30,58,138,.08);
  border: 1px solid rgba(30,58,138,.10);
}
.noticeCard__title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing:-.3px;
  color: var(--primary);
}
.noticeTableWrap{ overflow:hidden; margin-top:10px; border-radius: 14px; }
.noticeTable{
  width:100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.noticeTable th, .noticeTable td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(229,231,235,.9);
  text-align:left;
  font-size: 14px;
}
.noticeTable thead th{
  position: sticky;
  top: 0;
  background: rgba(30,58,138,.85);
  color: #fff;
  font-weight: 800;
  border-bottom: 0;
}
.noticeTable .colNo{ width: 64px; text-align:center; }
.noticeTable .colDate{ width: 120px; text-align:right; white-space:nowrap; }
.noticeTitle{ font-weight: 650; }
.noticeLink{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  color: inherit;
  text-decoration: none;
}
.noticeLink:hover{ text-decoration: underline; }
.noticeEmpty{ text-align:center; color: var(--muted); padding: 16px 12px; }
.btn--sm{ padding:8px 10px; border-radius: 12px; font-size: 13px; }
@media (max-width: 720px){
  .noticeCard{ padding: 12px 12px 8px; margin: 12px 0 26px; }
  .noticeCard__title{ font-size: 15px; }
  .noticeTable th, .noticeTable td{ font-size: 12.5px; padding: 9px 10px; }
  .noticeTable .colDate{ width: 96px; }
}



/* Notice pages (list/detail) */
.noticePageHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.noticeKicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30,58,138,.08);
  border: 1px solid rgba(30,58,138,.12);
  color: #1e3a8a;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: -.2px;
}
.noticePageTitle{
  margin: 8px 0 0;
  font-size: 24px;
  letter-spacing: -.6px;
}
.noticePageBtns{ display:flex; gap:8px; }
.noticeDetailCard{ padding: 18px 18px 16px; }
.noticeMetaRow{ display:flex; justify-content:flex-start; margin-bottom: 10px; }
.noticeBadge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.78);
  font-size: 12.5px;
  font-weight: 700;
}
.noticeDetailTitle{
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -.5px;
  line-height: 1.25;
}
.noticeBody{
  font-size: 15px;
  line-height: 1.75;
  color: rgba(15,23,42,.92);
  word-break: break-word;
}
.noticeEmptyText{ margin:0; opacity:.78; }

@media (max-width: 720px){
  .noticePageTitle{ font-size: 20px; }
  .noticeDetailCard{ padding: 14px 14px 12px; }
  .noticeDetailTitle{ font-size: 18px; }
  .noticeBody{ font-size: 14px; }
}

@media (max-width: 520px){
  .hero__actions{ flex-wrap:wrap; }
  .hero__actions .btn{ flex: 1 1 calc(50% - 8px); min-width: 0; }
  .hero__actions .btn:last-child{ flex-basis: 100%; }
}

/* Fixed menu (Topbar 바로 아래 공통 고정메뉴) */
.fixedmenu{
  position: sticky;
  top: 64px; /* topbar height */
  z-index: 49;
  padding: 8px 0;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.9);
}
.fixedmenu__inner{
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.fixedmenu__link{
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fixedmenu__link::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(30,58,138,.65);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.fixedmenu__link:hover{
  background: rgba(30,58,138,.06);
  color: #1e3a8a;
}
.fixedmenu__link:hover::after{ transform: scaleX(1); }
.fixedmenu__link:active{
  background: rgba(30,58,138,.10);
}
.fixedmenu__link:focus-visible{
  outline: 3px solid rgba(30,58,138,.22);
  outline-offset: -3px;
}

@media (max-width: 720px){
  .fixedmenu{ top: 56px; padding: 6px 0; }
  .topbar__inner{ height: 56px; }
  .fixedmenu__inner{ border-radius: 16px; }
  .fixedmenu__link{ padding: 11px 6px; font-size: 13px; }
  .fixedmenu__link::after{ left: 10px; right: 10px; bottom: 7px; }
}



/* ===== Admin (left menu + right content) ===== */
.adminShell{
  display:flex;
  gap:16px;
  margin-top:12px;
}
.adminSide{
  width:220px;
  flex:0 0 220px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
  position:sticky;
  top:84px;
  align-self:flex-start;
}
.adminSide__title{
  font-weight:800;
  font-size:14px;
  letter-spacing:-.2px;
  opacity:.9;
  margin-bottom:10px;
}
.adminNav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.adminNav__btn{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.02);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: .15s ease;
}
.adminNav__btn:hover{
  transform: translateY(-1px);
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.25);
}
.adminNav__btn.is-active{
  background: rgba(59,130,246,.14);
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 8px 20px rgba(59,130,246,.18);
}
.adminMain{
  flex:1;
  min-width:0;
  display:flex;
}
.adminPanel{
  display:none;
  width:100%;
}
.adminPanel.is-active{
  display:block;
}
.adminMain .card{ margin-top:0 !important; }
.adminMain .card + .card{ margin-top:12px !important; }

@media (max-width: 900px){
  .adminShell{ flex-direction:column; }
  .adminSide{
    width:100%;
    flex:0 0 auto;
    position:static;
    top:auto;
  }
  .adminNav{
    flex-direction:row;
    gap:8px;
    overflow:auto;
    padding-bottom:4px;
  }
  .adminNav__btn{
    white-space:nowrap;
    width:auto;
    flex:0 0 auto;
  }
}


/* =============================
   Icon + Notice Detail polish
   (2026-02-01 patch)
   ============================= */

/* Accessible text (screen-reader only) */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* Inline icon wrapper */
.icon{ display:inline-flex; align-items:center; justify-content:center; }
.icon svg{ width:18px; height:18px; }

/* Icon-only buttons */
.btn--icon{ padding: 12px 12px; min-width: 44px; }
.btn--sm.btn--icon{ padding: 8px 10px; min-width: 38px; }

/* Notice detail: make it more "designed" but keep existing layout */
.noticeDetailPage{
  background: linear-gradient(180deg, rgba(30,58,138,.06), rgba(248,250,252,0) 260px);
}
.noticeDetailCard{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(30,58,138,.10);
  box-shadow: 0 18px 38px rgba(2,6,23,.08);
}
.noticeDetailCard:before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 5px;
  background: linear-gradient(180deg, rgba(30,58,138,.88), rgba(20,184,166,.62));
}
.noticeDetailTitle{ font-weight: 950; }
.noticeBody{
  padding-top: 14px;
  border-top: 1px dashed rgba(15,23,42,.14);
}

/* =============================
   Rules (/rules) page
   ============================= */
.rulesGrid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:16px;
  align-items:start;
}
.rulesSide{
  position: sticky;
  top: 14px;
  padding: 14px;
}
.rulesSide__top{
  display:flex;
  gap:10px;
  align-items:center;
}
.rulesHint{
  margin-top:10px;
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(30,58,138,.06);
  border: 1px solid rgba(30,58,138,.10);
  color: rgba(15,23,42,.78);
  font-size: 13px;
}
.rulesHint .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:22px;
  padding:0 10px;
  border-radius:999px;
  font-weight: 800;
  background: rgba(20,184,166,.14);
  border: 1px solid rgba(20,184,166,.22);
}
.rulesToc{
  margin-top: 12px;
  max-height: calc(100vh - 240px);
  overflow:auto;
  padding-right: 6px;
}
.rulesGroup{ margin-bottom: 12px; }
.rulesGroup__title{
  font-weight: 900;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(2,6,23,.06);
}
.rulesGroup__list{ list-style:none; padding: 8px 0 0; margin:0; display:flex; flex-direction:column; gap:8px; }
.rulesItem{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.08);
  background: rgba(255,255,255,.92);
  color: rgba(2,6,23,.92);
  cursor:pointer;
  text-align:left;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.rulesItem:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(2,6,23,.10);
  border-color: rgba(30,58,138,.18);
}
.rulesItem.is-active{
  border-color: rgba(30,58,138,.40);
  box-shadow: 0 14px 30px rgba(30,58,138,.16);
}
.rulesItem__label{ font-weight: 800; font-size: 13.5px; }
.rulesItem__page{
  font-size: 12.5px;
  opacity: .72;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(2,6,23,.03);
}
.rulesEmpty{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.14);
  color: rgba(15,23,42,.78);
  font-weight: 700;
}
.rulesViewer{ padding: 14px; }
.rulesViewer__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(15,23,42,.14);
}
.rulesViewer__kicker{ font-size: 12px; opacity: .6; margin-bottom: 4px; }
.rulesViewer__title{ font-size: 18px; font-weight: 950; letter-spacing: -0.02em; }
.rulesViewer__actions{ display:flex; gap:8px; flex-wrap:wrap; }
.rulesFrameWrap{
  margin-top: 12px;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(2,6,23,.02);
}
.rulesFrame{
  width: 100%;
  height: min(72vh, 860px);
  border: 0;
  background: white;
}
.rulesFooterNote{
  margin-top: 12px;
  font-size: 12.5px;
  opacity: .68;
}

@media (max-width: 980px){
  .rulesGrid{ grid-template-columns: 1fr; }
  .rulesSide{ position: relative; top: auto; }
  .rulesToc{ max-height: 42vh; }
  .rulesFrame{ height: 70vh; }
}



/* intro tabs */
.section__sub{margin-top:6px; opacity:.75}
.introTabs{
  display:flex;
  gap:10px;
  padding:10px;
  background: linear-gradient(180deg, rgba(30,58,138,.06), rgba(20,184,166,.04));
  border:1px solid var(--border);
  border-radius: var(--r18);
  box-shadow: var(--shadow2);
  margin: 14px 0 16px;
  overflow:auto;
}
.introTabs__btn{
  appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.introTabs__btn:hover{transform: translateY(-1px); box-shadow: var(--shadow2);}
.introTabs__btn.is-active{
  background: var(--primary);
  border-color: rgba(30,58,138,.25);
  color:#fff;
}
.introPanel{margin-bottom: 18px;}
.introCard{padding: 16px;}
.introCard__head{
  display:flex;
  gap:12px;
  align-items:center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.introAvatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(30,58,138,.95), rgba(20,184,166,.95));
  box-shadow: var(--shadow2);
  flex: 0 0 auto;
  overflow:hidden;
  background:#fff;
  border: 1px solid rgba(15,23,42,.12);
}
.introAvatar img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.introAvatar--alt{
  background: linear-gradient(135deg, rgba(20,184,166,.95), rgba(30,58,138,.95));
}
.introKicker{font-size:12px; color: var(--muted); font-weight: 700;}
.introTitle{margin: 2px 0 2px; font-size: 20px; letter-spacing: -.02em;}
.introMeta{margin:0; font-size: 13px; color: var(--muted);}
.introBody{padding-top: 14px; font-size: 15px; line-height: 1.75;}
.introBody p{margin: 0 0 12px;}
.callout{
  padding: 14px 14px;
  border:1px solid rgba(20,184,166,.25);
  background: rgba(20,184,166,.06);
  border-radius: var(--r18);
  box-shadow: 0 6px 18px rgba(17,24,39,.06);
  margin: 10px 0 14px;
}
.introH3{margin: 14px 0 10px; font-size: 16px;}
.promiseList{
  margin: 0 0 14px;
  padding-left: 18px;
}
.promiseList li{margin: 0 0 8px;}
.signature{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(229,231,235,.9);
}
.signature__thanks{margin:0 0 6px; font-weight: 800;}
.signature__name{margin:0; color: var(--text);}
.emptyState{
  padding: 18px;
  border: 1px dashed rgba(229,231,235,.9);
  border-radius: var(--r18);
  background: rgba(255,255,255,.6);
}
.emptyState__title{margin:0 0 6px; font-size:16px; font-weight: 900;}
.emptyState__desc{margin:0; color: var(--muted); font-size: 14px; line-height: 1.6;}
@media (max-width: 480px){
  .introTitle{font-size: 18px;}
  .introBody{font-size: 14px;}
  .introTabs__btn{font-size: 13px; padding: 9px 12px;}
}


/* ===== 자료실 ===== */
.libraryCard { padding: 0; overflow: hidden; }
.libraryMeta { padding: 16px 18px; border-bottom: 1px solid rgba(15,23,42,.08); display:flex; justify-content:space-between; align-items:center; }
.tableWrap { width:100%; overflow:auto; }
.libraryTitle { font-weight: 700; font-size: 15px; }
.libraryFileName { font-size: 12px; opacity: .7; margin-top: 4px; word-break: break-all; }
.td--num, .td--date { white-space: nowrap; text-align: center; }
.btn--sm { padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.pager { display:flex; align-items:center; justify-content:center; gap:10px; padding: 14px 16px; border-top: 1px solid rgba(15,23,42,.08); }
.pager__btn { display:inline-flex; align-items:center; justify-content:center; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(15,23,42,.12); background: #fff; color: inherit; text-decoration:none; font-weight: 600; }
.pager__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(2,6,23,.10); }
.pager__btn--disabled { opacity:.45; pointer-events:none; }
.pager__info { font-weight:700; opacity:.85; min-width: 90px; text-align:center; }

.emptyState { padding: 34px 18px; text-align:center; }
.emptyState__icon { font-size: 30px; margin-bottom: 10px; }

/* Admin mini list */
.miniList { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.miniList__item { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border:1px solid rgba(15,23,42,.10); border-radius: 12px; background: rgba(255,255,255,.7); }
.miniList__title { font-weight:700; font-size: 13px; }
.miniList__meta { font-size: 12px; opacity: .75; white-space: nowrap; }


/* ===== 자료실 모바일 정렬 개선 ===== */
.tableWrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.libraryTitle { font-size: 15px; font-weight: 800; line-height: 1.25; }
.libraryFileName { font-size: 12px; opacity: .75; margin-top: 4px; word-break: break-all; }
.td--date { white-space: nowrap; }

/* 작은 화면에서는 표를 카드형으로 보여주기 */
@media (max-width: 640px) {
  .section__title { font-size: 18px; }
  .p { font-size: 14px; }
  .btn--sm { padding: 8px 10px; font-size: 13px; }

  table.table--responsive thead { display: none; }
  table.table--responsive, 
  table.table--responsive tbody, 
  table.table--responsive tr, 
  table.table--responsive td { display: block; width: 100%; }

  table.table--responsive tr {
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    padding: 10px 12px;
    margin: 10px 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
  }

  table.table--responsive td {
    border: 0 !important;
    padding: 8px 0 !important;
  }

  table.table--responsive td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 800;
    opacity: .65;
    margin-bottom: 4px;
  }

  .td--num { font-size: 13px; font-weight: 800; opacity: .85; }
  .pager { gap: 10px; }
  .pager__info { font-size: 13px; }
}

/* ===== Mobile layout fixes (forum / Q&A / header) ===== */
@media (max-width: 520px) {
  /* Top header */
  .topbar__inner{ height:auto; padding:10px 0; flex-wrap:wrap; gap:10px; }
  .brand{ flex: 1 1 auto; min-width: 220px; gap:10px; }
  .brand__logoImg{ width:40px; height:40px; }
  .brand__text{ font-size:18px; line-height:1.15; }
  .userbox{ margin-left:auto; }
  .userbox__name{ max-width: 120px; }
  .userbox__actions{ gap:8px; }
  .userbox__actions .btn{ padding:10px 12px; font-size:13px; white-space:nowrap; }

  /* Top menu (prevent ugly wraps) */
  .fixedMenu{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .fixedMenu::-webkit-scrollbar{ height:0; }
  .fixedmenu__link{ white-space:nowrap; }

  /* Forum/Q&A list items: stack meta under title on small screens */
  .card .list > a[href^="/forum/"]{ flex-direction:column !important; align-items:flex-start !important; }
  .card .list > a[href^="/forum/"] > div{ width:100%; }
  .card .list > a[href^="/forum/"] > div:last-child{ margin-left:0 !important; padding-left:0 !important; border-left:0 !important; }
  .card .list > a[href^="/forum/"] span[style*="white-space:nowrap"]{ white-space:normal !important; }

  .card a[href^="/qa/"]{ flex-direction:column !important; align-items:flex-start !important; }
  .card a[href^="/qa/"] > div{ width:100%; }
  .card a[href^="/qa/"] > div:last-child{ margin-left:0 !important; }
  .card a[href^="/qa/"] span[style*="white-space:nowrap"]{ white-space:normal !important; }
  .card a[href^="/qa/"] > div:last-child{ flex-wrap:wrap; gap:8px !important; }
}

/* =========================================================
   Board pages: minimize buttons + text as much as possible
   Scope: <body class="page-board">
   Targets: forum / Q&A / notices / union activities / admin writing
   ========================================================= */

body.page-board{ font-size:12px; }

/* Headings / copy */
body.page-board .section__title{ font-size:18px !important; }
body.page-board h2{ font-size:14px !important; }
body.page-board .p{ font-size:12px !important; }

/* Cards / list rows */
body.page-board .card{ padding:12px 14px; }
body.page-board a[href^="/forum/"],
body.page-board a[href^="/qa/"],
body.page-board a[href^="/notice/"],
body.page-board a[href^="/status/"]{
  padding:10px 12px !important;
  border-radius:12px !important;
}

/* Override inline font sizes inside board list rows */
body.page-board a[href^="/forum/"] *,
body.page-board a[href^="/qa/"] *,
body.page-board a[href^="/notice/"] *,
body.page-board a[href^="/status/"] *{
  font-size:12px !important;
}

/* Buttons */
body.page-board .btn{
  padding:6px 8px !important;
  font-size:12px !important;
  border-radius:10px !important;
  min-height:30px;
  line-height:1.15;
}
body.page-board .btn--icon{ padding:6px 6px !important; min-width:30px !important; }
body.page-board .btn--sm{ padding:5px 7px !important; font-size:11px !important; border-radius:10px !important; }

/* Inputs */
body.page-board input,
body.page-board select,
body.page-board textarea{
  font-size:12px !important;
  padding:8px 10px !important;
  border-radius:12px !important;
}
body.page-board label{ font-size:12px !important; }

/* Tables */
body.page-board table{ font-size:12px !important; }
body.page-board th,
body.page-board td{ padding:8px 8px !important; }

/* Topbar in board pages (admin / logout / login buttons) */
body.page-board .topbar .userbox__name{ font-size:12px !important; }
body.page-board .topbar .btn{ padding:5px 7px !important; font-size:11px !important; min-height:28px; }



/* =========================================================
   Forum list rows: force 2-line layout (match Q&A screenshot)
   Scope: only rows in forum list (board-row--forum)
   ========================================================= */
body.page-board .board-row--forum{
  display:block !important;
}
body.page-board .board-row--forum .board-row__title{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
}
body.page-board .board-row--forum .board-row__meta{
  display:block !important;
  margin-top:6px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
