/* =========================================================================
   TOTALLY SEOUL — design system
   Palette pulled from the site mark: midnight blue city + neon pink/cyan.
   ========================================================================= */

:root{
  /* --- surfaces --- */
  --ink:        #0a0d24;   /* page background */
  --night:      #11153a;   /* card surface */
  --night-2:    #171c52;   /* elevated / header surface */
  --night-3:    #1e2464;   /* hover surface */
  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(255,255,255,.16);

  /* --- accents (from the logo) --- */
  --cyan:       #4fd6ff;
  --blue:       #5b6bff;
  --pink:       #ff3fa4;
  --pink-2:     #ff8fc9;
  --violet:     #8b5cf6;

  /* --- text --- */
  --paper:      #f4f5ff;
  --muted:      #a6acd9;
  --muted-2:    #7278a8;

  /* --- gradients --- */
  --grad-neon:  linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--pink));
  --grad-hero:  radial-gradient(120% 140% at 15% 0%, #1b2166 0%, #0a0d24 55%);
  --grad-card:  linear-gradient(160deg, rgba(91,107,255,.12), rgba(255,63,164,.06));

  /* --- type --- */
  --f-display: "Poppins", "Noto Sans KR", "Noto Sans", sans-serif;
  --f-body:    "Inter", "Noto Sans KR", "Noto Sans", sans-serif;

  /* --- misc --- */
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 20px 50px -20px rgba(0,0,0,.6);
  --maxw:       1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html:focus-within{ scroll-behavior:auto; }

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--f-display); margin:0 0 .5em; line-height:1.15; font-weight:700; }
p{ margin:0 0 1em; color:var(--muted); }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

:focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; border-radius:4px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* =========================================================================
   TICKER — live-feeling info bar
   ========================================================================= */
.ticker{
  background:#060815;
  border-bottom:1px solid var(--line);
  font-size:12.5px;
  color:var(--muted);
  overflow:hidden;
  white-space:nowrap;
}
.ticker .wrap{ display:flex; align-items:center; gap:28px; padding:8px 24px; overflow-x:auto; scrollbar-width:none; }
.ticker .wrap::-webkit-scrollbar{ display:none; }
.ticker a{ color:var(--muted); white-space:nowrap; display:flex; gap:6px; align-items:center; }
.ticker a:hover{ color:var(--paper); }
.ticker .dot{ color:var(--pink); }
.ticker b{ color:var(--paper); font-weight:600; }

/* =========================================================================
   HEADER
   ========================================================================= */
header.site{
  position:sticky; top:0; z-index:40;
  background:rgba(10,13,36,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
header.site .bar{ display:flex; align-items:center; justify-content:space-between; padding:12px 24px; gap:20px; }
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img{ height:34px; width:auto; }
.brand span{ font-family:var(--f-display); font-weight:700; letter-spacing:.02em; font-size:15px; color:var(--paper); }
.brand span em{ font-style:normal; color:var(--pink-2); }

nav.primary{ display:flex; gap:2px; }
nav.primary a{
  font-size:14.5px; font-weight:600; color:var(--muted); padding:10px 13px; border-radius:8px; transition:.15s;
}
nav.primary a:hover, nav.primary a.active{ color:var(--paper); background:var(--night-2); }

.head-actions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:38px; height:38px; display:grid; place-items:center; border-radius:10px; background:var(--night-2);
  border:1px solid var(--line); color:var(--paper); cursor:pointer;
}
.icon-btn:hover{ background:var(--night-3); }
.lang-btn{
  display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--paper);
  background:var(--night-2); border:1px solid var(--line); padding:8px 12px; border-radius:10px; cursor:pointer;
}
.menu-btn{ display:none; }

@media (max-width: 980px){
  nav.primary{ display:none; }
  .menu-btn{ display:grid; }
}

/* =========================================================================
   LANGUAGE PANEL + SEARCH + MOBILE DRAWER
   ========================================================================= */
.overlay-panel{
  position:fixed; inset:0; background:rgba(6,8,21,.72); backdrop-filter:blur(3px);
  display:none; z-index:60; align-items:flex-start; justify-content:center; padding:80px 20px;
}
.overlay-panel.open{ display:flex; }
.panel-card{
  background:var(--night-2); border:1px solid var(--line-2); border-radius:var(--radius);
  width:100%; max-width:560px; padding:22px; box-shadow:var(--shadow); max-height:80vh; overflow:auto;
}
.panel-card h3{ font-size:16px; margin-bottom:14px; }
.lang-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.lang-grid a{
  display:flex; justify-content:space-between; padding:10px 12px; border-radius:9px; background:var(--night);
  border:1px solid var(--line); font-size:14px; font-weight:600;
}
.lang-grid a:hover{ border-color:var(--cyan); color:var(--cyan); }
.lang-grid span.tag{ font-size:10.5px; color:var(--muted-2); font-weight:600; }
.search-input{
  width:100%; background:var(--night); border:1px solid var(--line-2); border-radius:10px; color:var(--paper);
  padding:12px 14px; font-size:15px; margin-bottom:12px;
}
.search-input:focus{ outline:none; border-color:var(--cyan); }
.panel-close{ float:right; background:none; border:0; color:var(--muted); font-size:18px; cursor:pointer; }

.drawer{
  position:fixed; top:0; right:-100%; width:min(340px,86vw); height:100%; background:var(--night-2);
  z-index:70; transition:right .25s ease; border-left:1px solid var(--line-2); overflow:auto;
}
.drawer.open{ right:0; }
.drawer .d-head{ display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid var(--line); }
.drawer nav{ display:flex; flex-direction:column; padding:10px; }
.drawer nav a{ padding:13px 12px; font-weight:600; border-radius:9px; font-size:15px; }
.drawer nav a:hover{ background:var(--night); }
.drawer-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:65; display:none; }
.drawer-backdrop.open{ display:block; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero{
  position:relative; background:var(--grad-hero); overflow:hidden; border-bottom:1px solid var(--line);
}
.hero::after{
  content:""; position:absolute; inset:auto 0 0 0; height:220px;
  background:url('../../images/og-default.jpg') center bottom/cover no-repeat;
  opacity:.28; mask-image:linear-gradient(to top, black, transparent);
  -webkit-mask-image:linear-gradient(to top, black, transparent);
}
.hero .wrap{ position:relative; z-index:2; padding:72px 24px 56px; display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:var(--pink-2); margin-bottom:18px;
}
.eyebrow::before{ content:"◆"; color:var(--cyan); font-size:10px; }
.hero h1{ font-size:clamp(34px,5vw,56px); color:var(--paper); }
.hero h1 .accent{ background:var(--grad-neon); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{ font-size:17.5px; max-width:52ch; color:var(--muted); }
.hero-ctas{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:13px 22px; border-radius:11px; font-weight:700; font-size:14.5px;
  border:1px solid transparent; transition:.15s; cursor:pointer;
}
.btn.primary{ background:var(--grad-neon); color:#0a0d24; }
.btn.primary:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.btn.ghost{ background:transparent; border-color:var(--line-2); color:var(--paper); }
.btn.ghost:hover{ border-color:var(--cyan); color:var(--cyan); }

.hero-art{ position:relative; }
.hero-art img{ border-radius:20px; border:1px solid var(--line-2); box-shadow:var(--shadow); }

/* =========================================================================
   SKYLINE DIVIDER — signature element (reused throughout the site)
   ========================================================================= */
.skyline-divider{ line-height:0; width:100%; }
.skyline-divider svg{ width:100%; height:auto; display:block; }

/* =========================================================================
   STATS STRIP
   ========================================================================= */
.stats{ background:var(--night); border-bottom:1px solid var(--line); }
.stats .wrap{ display:grid; grid-template-columns:repeat(5,1fr); padding:26px 24px; gap:10px; }
.stat b{ display:block; font-family:var(--f-display); font-size:26px; color:var(--paper); }
.stat span{ font-size:12.5px; color:var(--muted-2); }
@media (max-width:760px){ .stats .wrap{ grid-template-columns:repeat(2,1fr); } }

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.section{ padding:64px 0; }
.section.tight{ padding:44px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:30px; flex-wrap:wrap; }
.kicker{ font-size:12.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--cyan); margin-bottom:10px; display:block; }
.section-head h2{ font-size:clamp(24px,3vw,32px); color:var(--paper); }
.section-head p{ margin:8px 0 0; max-width:60ch; }
.section-link{ font-weight:700; font-size:14px; color:var(--pink-2); white-space:nowrap; }
.section-link:hover{ color:var(--cyan); }

/* =========================================================================
   REGION / DISTRICT GRID
   ========================================================================= */
.region-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.region-card{
  background:var(--night); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px;
  transition:.18s;
}
.region-card:hover{ border-color:var(--cyan); transform:translateY(-2px); }
.region-card .tag{ font-size:11px; font-weight:700; color:var(--cyan); letter-spacing:.05em; }
.region-card h4{ font-size:16px; margin:8px 0 6px; color:var(--paper); }
.region-card p{ font-size:13.5px; margin:0; }
@media (max-width:900px){ .region-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .region-grid{ grid-template-columns:1fr; } }

/* =========================================================================
   DEPARTMENT CARDS
   ========================================================================= */
.dept-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.dept-card{
  background:var(--grad-card); border:1px solid var(--line); border-radius:var(--radius); padding:26px;
  display:flex; flex-direction:column; gap:12px; transition:.18s;
}
.dept-card:hover{ border-color:var(--line-2); box-shadow:var(--shadow); transform:translateY(-3px); }
.dept-card .icon{ font-size:26px; }
.dept-card .dept-label{ font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--muted-2); text-transform:uppercase; }
.dept-card h3{ font-size:19px; color:var(--paper); }
.dept-card p{ font-size:14px; flex-grow:1; }
.dept-card ul{ display:flex; flex-direction:column; gap:6px; margin:4px 0; }
.dept-card ul a{ font-size:13.5px; color:var(--muted); }
.dept-card ul a:hover{ color:var(--cyan); }
.dept-card .more{ font-size:13.5px; font-weight:700; color:var(--pink-2); margin-top:auto; }
.dept-card .more:hover{ color:var(--cyan); }
@media (max-width:980px){ .dept-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .dept-grid{ grid-template-columns:1fr; } }

/* =========================================================================
   NEWS BOARD
   ========================================================================= */
.board{ background:var(--night); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.board-head{ display:flex; justify-content:space-between; align-items:center; padding:14px 20px; border-bottom:1px solid var(--line); font-size:11.5px; font-weight:700; letter-spacing:.08em; color:var(--muted-2); }
.board-head .live{ color:var(--pink-2); display:flex; align-items:center; gap:6px; }
.board-head .live::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--pink-2); animation:pulse 1.6s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1;} 50%{ opacity:.3;} }
.board-row{ display:flex; align-items:center; gap:14px; padding:15px 20px; border-bottom:1px solid var(--line); font-size:14.5px; }
.board-row:last-child{ border-bottom:0; }
.board-row .badge{ font-size:10.5px; font-weight:800; letter-spacing:.04em; color:var(--ink); background:var(--cyan); padding:4px 8px; border-radius:6px; flex-shrink:0; }
.board-row .badge.pink{ background:var(--pink-2); }
.board-row a{ flex-grow:1; font-weight:600; }
.board-row a:hover{ color:var(--cyan); }
.board-row time{ font-size:12.5px; color:var(--muted-2); flex-shrink:0; }

/* =========================================================================
   PROGRESS / GROWTH BLOCK
   ========================================================================= */
.growth{ display:grid; grid-template-columns:.9fr 1.1fr; gap:36px; align-items:center; }
.growth-card{ background:var(--night); border:1px solid var(--line); border-radius:var(--radius); padding:28px; }
.bar-track{ height:10px; border-radius:6px; background:var(--night-2); overflow:hidden; margin:14px 0; }
.bar-fill{ height:100%; background:var(--grad-neon); border-radius:6px; }
@media (max-width:860px){ .growth{ grid-template-columns:1fr; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
footer.site{ background:#070a1e; border-top:1px solid var(--line); margin-top:40px; }
.footer-top{ display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:28px; padding:56px 24px 36px; }
.footer-brand img{ height:30px; margin-bottom:14px; }
.footer-brand p{ font-size:13.5px; max-width:32ch; }
.footer-col h5{ font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted-2); margin-bottom:14px; }
.footer-col ul{ display:flex; flex-direction:column; gap:9px; }
.footer-col a{ font-size:13.8px; color:var(--muted); }
.footer-col a:hover{ color:var(--cyan); }
.footer-bottom{ border-top:1px solid var(--line); padding:18px 24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12.5px; color:var(--muted-2); }
.footer-bottom a{ color:var(--muted-2); }
.footer-bottom a:hover{ color:var(--cyan); }
.social-row{ display:flex; gap:10px; margin-top:14px; }
.social-row a{ width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:var(--night-2); border:1px solid var(--line); font-size:13px; }
.social-row a:hover{ border-color:var(--cyan); color:var(--cyan); }

@media (max-width:900px){ .footer-top{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } }

/* =========================================================================
   ARTICLE / INNER PAGE LAYOUT
   ========================================================================= */
.page-hero{ background:var(--grad-hero); border-bottom:1px solid var(--line); padding:46px 0 40px; }
.breadcrumb{ font-size:12.5px; color:var(--muted-2); margin-bottom:14px; }
.breadcrumb a:hover{ color:var(--cyan); }
.page-hero h1{ font-size:clamp(28px,4vw,42px); color:var(--paper); max-width:22ch; }
.page-hero p.lead{ max-width:60ch; font-size:16.5px; }
.meta-row{ display:flex; gap:16px; flex-wrap:wrap; margin-top:18px; font-size:12.5px; color:var(--muted-2); }
.meta-row span{ display:flex; align-items:center; gap:6px; }

.content-layout{ display:grid; grid-template-columns:2.2fr 1fr; gap:44px; align-items:start; padding:48px 0; }
.article{ font-size:16px; }
.article h2{ font-size:24px; margin-top:1.6em; color:var(--paper); }
.article h3{ font-size:19px; margin-top:1.4em; color:var(--paper); }
.article p{ color:#c7cbef; }
.article ul, .article ol{ margin:0 0 1.2em; padding-left:1.3em; color:#c7cbef; }
.article li{ margin-bottom:.5em; }
.article a{ color:var(--cyan); text-decoration:underline; text-underline-offset:3px; }
.callout{
  background:var(--grad-card); border:1px solid var(--line); border-left:3px solid var(--pink); border-radius:10px;
  padding:16px 18px; margin:24px 0; font-size:14.5px; color:var(--muted);
}
.callout b{ color:var(--paper); }
.table-wrap{ overflow-x:auto; margin:20px 0; }
table{ width:100%; border-collapse:collapse; font-size:14.5px; }
th,td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); }
th{ color:var(--cyan); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }

.sidebar{ position:sticky; top:90px; display:flex; flex-direction:column; gap:18px; }
.side-card{ background:var(--night); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px; }
.side-card h5{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); margin:0 0 12px; }
.side-card ul{ display:flex; flex-direction:column; gap:9px; }
.side-card a{ font-size:14px; color:var(--muted); }
.side-card a:hover{ color:var(--cyan); }
.share-row{ display:flex; gap:8px; flex-wrap:wrap; }
.share-row a{ font-size:12px; padding:8px 10px; border-radius:8px; background:var(--night-2); border:1px solid var(--line); }
.share-row a:hover{ border-color:var(--pink); color:var(--pink-2); }

.card-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){ .content-layout{ grid-template-columns:1fr; } .sidebar{ position:static; } .card-grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .card-grid-3{ grid-template-columns:1fr; } }

.mini-card{ background:var(--night); border:1px solid var(--line); border-radius:12px; padding:16px; }
.mini-card .tag{ font-size:10.5px; font-weight:700; color:var(--cyan); text-transform:uppercase; letter-spacing:.05em; }
.mini-card h4{ font-size:15px; margin:8px 0 6px; }
.mini-card p{ font-size:13px; margin:0; }

/* =========================================================================
   HUB / LISTING PAGES
   ========================================================================= */
.filter-row{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:26px; }
.filter-row button{
  background:var(--night); border:1px solid var(--line); color:var(--muted); font-size:13px; font-weight:600;
  padding:9px 15px; border-radius:20px; cursor:pointer;
}
.filter-row button.active, .filter-row button:hover{ background:var(--night-2); color:var(--paper); border-color:var(--line-2); }
.listing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.listing-card{ background:var(--night); border:1px solid var(--line); border-radius:var(--radius-sm); padding:20px; display:flex; flex-direction:column; gap:8px; }
.listing-card:hover{ border-color:var(--cyan); }
.listing-card .tag{ font-size:11px; font-weight:700; color:var(--pink-2); letter-spacing:.05em; text-transform:uppercase; }
.listing-card h3{ font-size:17px; }
.listing-card p{ font-size:13.8px; margin:0; }
@media (max-width:900px){ .listing-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .listing-grid{ grid-template-columns:1fr; } }

/* =========================================================================
   COMING SOON / TRANSLATION STATE
   ========================================================================= */
.translation-note{
  display:flex; gap:12px; align-items:flex-start; background:var(--grad-card); border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:16px 18px; margin-bottom:28px; font-size:13.8px; color:var(--muted);
}
.translation-note b{ color:var(--paper); }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
.small{ font-size:13px; color:var(--muted-2); }
