/* 포인트입시 — Upbit public tokens, table-first, light canvas */
:root{
  --accent:#0062DF;
  --accent-deep:#003597;
  --ink:#1A2434;
  --body:#333333;
  --muted:#565D6A;
  --border:#D6D8DB;
  --canvas:#E9ECF1;
  --surface:#FFFFFF;
  --control:#F4F5F7;
  --disabled:#8E929B;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:auto}
html,body{min-height:100%}
body{
  font-family:Roboto,"Noto Sans KR",sans-serif,AppleSDGothicNeo-Regular,"Malgun Gothic",Dotum,sans-serif;
  font-size:14px;
  font-weight:400;
  line-height:21px;
  color:var(--body);
  background:var(--canvas);
}
img{max-width:100%;display:block;border:0}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{
  font:inherit;
  color:inherit;
  border-radius:4px;
  box-shadow:none;
}
table{border-collapse:collapse;width:100%;border-radius:0;box-shadow:none}
ul,ol{list-style:none}

.wrap{width:min(1080px,calc(100% - 32px));margin:0 auto}

/* ===== UTIL + GNB ===== */
.util{
  background:var(--control);
  border-bottom:1px solid var(--border);
  height:28px;
  font-size:12px;
  line-height:28px;
  color:var(--muted);
}
.util-in{display:flex;justify-content:space-between;align-items:center}
.util-l span + span::before{content:"|";margin:0 8px;color:var(--border)}
.util a{color:var(--muted)}
.util a:hover{color:var(--accent);text-decoration:none}
.util-r span{margin-left:8px}

.gnb{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:40;
}
.gnb-in{
  height:56px;
  display:flex;align-items:center;gap:16px;
}
.logo{
  display:block;
  height:32px;
  flex:0 0 auto;
}
.logo img{
  height:32px;
  width:auto;
  max-width:200px;
  object-fit:contain;
  object-position:left center;
}
.gnb-nav{
  display:flex;align-items:stretch;height:56px;flex:1;justify-content:flex-end;gap:0;
}
.gnb-nav a{
  color:var(--ink);
  font-size:14px;
  font-weight:500;
  padding:0 12px;
  display:flex;align-items:center;
  height:56px;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  white-space:nowrap;
  text-decoration:none;
}
.gnb-nav a:hover{color:var(--accent)}
.gnb-nav a.is-on{color:var(--accent);border-bottom-color:var(--accent)}
.gnb-side{display:flex;align-items:center;gap:8px;flex:0 0 auto}

.btn-menu{
  display:none;
  width:28px;height:28px;
  border:1px solid var(--border);
  background:var(--control);
  border-radius:4px;
  padding:0 6px;
  cursor:pointer;
}
.btn-menu span,
.btn-menu span::before,
.btn-menu span::after{
  display:block;width:14px;height:1px;background:var(--ink);position:relative;
}
.btn-menu span::before,
.btn-menu span::after{content:"";position:absolute;left:0}
.btn-menu span::before{top:-5px}
.btn-menu span::after{top:5px}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:28px;
  padding:0 8px;
  background:var(--accent);
  color:#fff;
  border:0;
  border-radius:4px;
  font-size:12px;
  font-weight:500;
  line-height:28px;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:none;
}
.btn:hover{background:var(--accent-deep);color:#fff;text-decoration:none}
.btn-line{
  background:var(--surface);
  color:var(--accent);
  border:1px solid var(--accent);
}
.btn-line:hover{background:var(--control);color:var(--accent)}

/* ===== PAGE BAR ===== */
.page-bar{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  padding:14px 0;
}
.crumb{font-size:12px;color:var(--muted);margin-bottom:4px}
.crumb a{color:var(--muted)}
.crumb span{color:var(--disabled)}
.page-bar h1{font-size:18px;font-weight:700;line-height:24px;color:var(--ink)}
.page-bar p{font-size:12px;color:var(--muted);margin-top:4px}

.lnb{
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.lnb .wrap{display:flex;gap:0;overflow-x:auto}
.lnb a{
  font-size:12px;
  color:var(--muted);
  padding:8px 12px;
  border-bottom:2px solid transparent;
  white-space:nowrap;
  text-decoration:none;
}
.lnb a:hover,.lnb a.is-on{color:var(--accent);border-bottom-color:var(--accent)}

/* ===== PANELS ===== */
.sec{padding:16px 0}
.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:0;
  box-shadow:none;
}
.panel-h{
  display:flex;justify-content:space-between;align-items:center;
  min-height:36px;
  padding:0 12px;
  border-bottom:1px solid var(--border);
  background:var(--control);
  font-size:12px;
  font-weight:500;
  color:var(--ink);
}
.panel-h a{font-weight:400}
.panel-b{padding:12px}
.panel-b > h2,
.sec-h h2{
  font-size:14px;
  font-weight:700;
  line-height:21px;
  color:var(--ink);
  margin-bottom:4px;
}
.sec-h{margin-bottom:10px}
.sec-h p{color:var(--muted);font-size:12px;line-height:18px}

/* ===== TABLES ===== */
.tbl{
  width:100%;
  background:var(--surface);
  font-size:12px;
  font-weight:400;
  line-height:18px;
}
.tbl th,.tbl td{
  border:1px solid var(--border);
  padding:6px 8px;
  text-align:left;
  vertical-align:middle;
  color:var(--body);
}
.tbl thead th{
  background:var(--control);
  color:var(--ink);
  font-weight:500;
}
.tbl tbody th{
  background:var(--control);
  color:var(--ink);
  font-weight:500;
  white-space:nowrap;
  width:112px;
}
.tbl tbody tr:nth-child(even) td{background:#FAFBFC}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums}
.tbl a{font-weight:500}
.note{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
  line-height:18px;
}

/* ===== HOME ===== */
.home-intro{
  padding:16px 0 0;
}
.intro-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:12px;
}
.intro-copy h1{
  font-size:18px;
  font-weight:700;
  line-height:24px;
  color:var(--ink);
  margin-bottom:8px;
}
.intro-copy p{margin-bottom:8px}
.intro-actions{display:flex;gap:8px;margin-top:12px}
.intro-photo{
  border:1px solid var(--border);
  background:var(--control);
  overflow:hidden;
}
.intro-photo img{
  width:100%;
  height:100%;
  min-height:180px;
  object-fit:cover;
  object-position:center;
}

.widgets{
  display:grid;
  grid-template-columns:1.2fr 0.9fr 1.2fr;
  gap:12px;
}
.board li{
  display:flex;
  gap:8px;
  font-size:12px;
  line-height:20px;
  border-bottom:1px solid var(--border);
  padding:4px 0;
}
.board li:last-child{border-bottom:0}
.board time{color:var(--muted);flex:0 0 68px;font-variant-numeric:tabular-nums}
.board a{color:var(--ink);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board a:hover{color:var(--accent)}

.tel-box{text-align:center;padding:16px 12px}
.tel-box .tel{
  font-size:28px;
  font-weight:700;
  line-height:32px;
  color:var(--ink);
  letter-spacing:-0.02em;
  font-variant-numeric:tabular-nums;
}
.tel-box .virt{color:var(--muted);font-size:12px;margin:4px 0 8px}
.tel-box p{font-size:12px;line-height:18px;color:var(--body)}
.tel-fill{
  background:var(--accent-deep);
  color:#fff;
  padding:16px 12px;
  text-align:center;
}
.tel-fill .tel{color:#fff;font-size:26px;font-weight:700;line-height:30px}
.tel-fill .virt,
.tel-fill p{color:#D6D8DB;font-size:12px;line-height:18px}
.tel-fill .btn{margin-top:10px}

.links{
  display:flex;flex-wrap:wrap;gap:8px;
}

/* ===== TEACHERS ===== */
.tphoto{
  width:56px;height:70px;
  object-fit:cover;
  object-position:center top;
  border:1px solid var(--border);
  background:var(--control);
}
.bio-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.bio{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:10px;
  padding:12px;
}
.bio img{
  width:72px;height:90px;
  object-fit:cover;
  object-position:center top;
  border:1px solid var(--border);
}
.bio h3{font-size:14px;font-weight:700;color:var(--ink);margin-bottom:6px}
.bio p{margin-bottom:6px}

/* ===== FORM ===== */
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}
.field input,
.field select,
.field textarea{
  width:100%;
  height:28px;
  padding:0 8px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:4px;
  box-shadow:none;
}
.field textarea{height:96px;padding:6px 8px;resize:vertical}
.field.full{grid-column:1/-1}
.form-ok{
  background:var(--control);
  border:1px solid var(--border);
  padding:10px 12px;
  font-size:13px;
  color:var(--ink);
  margin-bottom:12px;
}
.form-note{font-size:12px;color:var(--muted);margin-top:8px}
.split{
  display:grid;
  grid-template-columns:1.4fr 0.8fr;
  gap:12px;
}

/* ===== ARTICLE ===== */
.article h2{font-size:16px;font-weight:700;color:var(--ink);margin-bottom:8px}
.article .meta{font-size:12px;color:var(--muted);margin-bottom:12px}
.prose p{margin-bottom:10px}
.rel{margin-top:16px;border-top:1px solid var(--border);padding-top:8px}
.rel a{
  display:flex;gap:8px;
  font-size:12px;
  padding:4px 0;
  color:var(--ink);
  border-bottom:1px solid var(--border);
}
.rel time{color:var(--muted);flex:0 0 68px}

/* ===== FOOTER ===== */
.footer{
  margin-top:16px;
  background:var(--surface);
  border-top:1px solid var(--border);
}
.footer-main{padding:20px 0}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;
  gap:20px;
  font-size:12px;
  line-height:18px;
  color:var(--muted);
}
.footer-logo{display:block;height:28px;margin-bottom:8px}
.footer-logo img{height:28px;width:auto;max-width:180px;object-fit:contain;object-position:left center}
.footer h4{font-size:12px;font-weight:700;color:var(--ink);margin-bottom:8px}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--accent)}
.footer-tel{font-size:18px;font-weight:700;color:var(--ink);line-height:24px}
.footer-bot{
  background:var(--control);
  border-top:1px solid var(--border);
  font-size:12px;
  color:var(--muted);
  padding:8px 0;
}

/* ===== MOBILE ===== */
@media (max-width:900px){
  .intro-grid,.widgets,.bio-grid,.split,.footer-grid,.form-grid{grid-template-columns:1fr}
  .gnb-nav{
    display:none;
    position:absolute;
    left:0;right:0;top:85px;
    background:var(--surface);
    border-bottom:1px solid var(--border);
    flex-direction:column;
    height:auto;
  }
  .gnb-nav.open{display:flex}
  .gnb-nav a{height:40px;border-bottom:1px solid var(--border)}
  .btn-menu{display:block}
  .util-l span:nth-child(3){display:none}
}
