/* ============================================================
   Yoowon LDS — Main stylesheet (renewal 2026)
   Palette per renewal proposal slide 6:
     navy   #1A2A4A   teal  #0D7C6E
     gold   #C9A84C   gray  #F4F6F9   white #FFFFFF
   Fonts:
     KR / EN  → Spoqa Han Sans Neo
     JP       → Noto Sans JP
     CN       → Noto Sans SC
   ============================================================ */

:root {
  /* Concept "정밀함이 신뢰를 만든다" — premium B2B navy + gold (client-confirmed) */
  --navy:        #0F2A5E;
  --navy-2:      #1f3f78;
  --navy-3:      #081a3d;
  --teal:        #0D7C6E;
  --teal-2:      #14a695;
  --gold:        #E8B84B;
  --gold-2:      #f3cd70;
  --bg:          #F4F6F9;
  --bg-2:        #fafbfd;
  --white:       #FFFFFF;
  --fg:          #14203c;
  --fg-2:        #38486a;
  --muted:       #7a849d;
  --line:        #e3e7ef;
  --line-2:      #eef1f6;
  --tag:         #eef2fa;

  --radius-lg:   16px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-sm:   0 1px 2px rgba(20,30,60,.05), 0 1px 3px rgba(20,30,60,.04);
  --shadow-md:   0 12px 32px rgba(20,30,60,.08), 0 2px 8px rgba(20,30,60,.04);
  --shadow-lg:   0 24px 60px rgba(20,30,60,.12), 0 4px 14px rgba(20,30,60,.06);

  --header-h:    72px;
  --max-w:       1240px;

  --ease-out:    cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--fg);
  background: var(--white);
  font-family: "Spoqa Han Sans Neo", "Pretendard", -apple-system, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

/* Per-language fonts */
body.lang-kr, body.lang-en {
  font-family: "Spoqa Han Sans Neo", "Pretendard", -apple-system, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
body.lang-jp {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
body.lang-cn {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", system-ui, sans-serif;
}

a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
em { font-style: normal; color: var(--gold); }
.muted { color: var(--muted); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* Header spans full width except 10% margin each side */
.header-inner {
  width: 80%; max-width: none; margin: 0 auto;
  height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 0;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--fg); }
.brand:hover { color: var(--navy); }
.brand-logo {
  display: block;
  height: 38px; width: auto;
  image-rendering: -webkit-optimize-contrast;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { display: block; font-weight: 800; font-size: 13px; letter-spacing: 0.14em; color: var(--navy); }
.brand-sub  { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; margin-top: 4px; }

.primary-nav .menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 58px; justify-content: center;
}
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
  display: block; padding: 14px 8px;
  color: var(--fg); font-weight: 500; font-size: 18px;
  position: relative;
}
.primary-nav .menu > li > a:hover { color: var(--navy); }
.primary-nav .menu > li > a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.primary-nav .menu > li:hover > a::after,
.primary-nav .menu > li:focus-within > a::after { transform: scaleX(1); }

.primary-nav .submenu {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(6px);
  /* No min-width: dropdown shrinks to fit content so it stays centered under short labels.
     For longer labels (EN/JP/CN or products) the box naturally widens — that's the intended
     "left overflow" behaviour the client wants kept for those cases. */
  padding: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, visibility .18s, transform .18s;
}
/* Only the DIRECT-child submenu opens on hover; nested .submenu-2 has its own trigger */
.primary-nav .has-sub:hover > .submenu,
.primary-nav .has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.primary-nav .submenu li a {
  display: block; padding: 10px 14px; border-radius: 6px;
  color: var(--fg-2); font-size: 14px; white-space: nowrap;
}
.primary-nav .submenu li a:hover { background: var(--bg); color: var(--navy); }

/* 2-level submenu (제품/서비스 categories → individual products) */
.primary-nav .submenu .has-sub-2 { position: relative; }
.primary-nav .submenu .has-sub-2 > a {
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 12px;
}
.primary-nav .submenu .has-sub-2 > a .caret {
  color: var(--muted); font-size: 14px; line-height: 1;
  margin-left: 16px; transition: color .15s, transform .15s;
}
.primary-nav .submenu .has-sub-2:hover > a .caret { color: var(--navy); transform: translateX(2px); }
.primary-nav .submenu-2 {
  position: absolute; left: 100%; top: -10px;
  margin-left: 6px;
  min-width: 260px; padding: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .18s, visibility .18s, transform .18s;
}
.primary-nav .has-sub-2:hover > .submenu-2,
.primary-nav .has-sub-2:focus-within > .submenu-2 {
  opacity: 1; visibility: visible; transform: translateX(0);
}
/* Wider mega-style first-level submenu when it contains nested groups */
.primary-nav .products-menu > .submenu { min-width: 280px; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; cursor: pointer;
  color: var(--fg); font-weight: 600; font-size: 12px; letter-spacing: 0.04em;
  font-family: inherit;
}
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.lang-menu {
  position: absolute; right: 0; top: 100%; margin-top: 8px;
  list-style: none; padding: 6px; min-width: 160px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, visibility .18s, transform .18s;
}
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu li a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--fg-2); font-size: 14px;
}
.lang-menu li a:hover { background: var(--bg); color: var(--navy); }
.lang-menu li a.active { color: var(--navy); font-weight: 700; background: var(--bg); }

.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy) !important;
  font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px;
  transition: transform .15s, box-shadow .2s, background .15s;
}
.header-cta:hover { background: var(--gold-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,168,76,.4); }

.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 10px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy); border-radius: 2px; }

/* Sitemap trigger (hamburger next to lang switcher) — always visible */
.sitemap-trigger {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
  background: transparent; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 10px;
  border-radius: 999px; transition: background .15s, transform .15s;
  font-family: inherit;
}
.sitemap-trigger:hover { background: var(--bg); }
.sitemap-trigger:hover span { background: var(--navy); }
.sitemap-trigger span {
  display: block; width: 20px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: background .15s;
}
.sitemap-trigger span:nth-child(2) { width: 14px; align-self: flex-end; }

/* ============================================================
   SITEMAP OVERLAY — slides in from right (moldjohap.co.kr style)
   ============================================================ */
.sitemap-overlay {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
}
.sitemap-overlay.open { pointer-events: auto; }

.sitemap-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 26, 61, 0.42);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.sitemap-overlay.open .sitemap-backdrop { opacity: 1; }

.sitemap-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 1240px);
  background: #fff;
  display: grid; grid-template-columns: 1fr 220px;
  transform: translateX(100%);
  transition: transform .42s var(--ease-out);
  box-shadow: -24px 0 60px rgba(8,26,61,.2);
  overflow: hidden;
}
.sitemap-overlay.open .sitemap-panel { transform: translateX(0); }

.sitemap-main {
  display: flex; flex-direction: column;
  padding: 56px clamp(40px, 5vw, 80px);
  overflow-y: auto;
}

.sitemap-head {
  display: flex; align-items: flex-end; gap: 24px;
  margin-bottom: 48px;
}
.sitemap-logo { height: 44px; width: auto; image-rendering: -webkit-optimize-contrast; }
.sitemap-title-block { display: flex; flex-direction: column; gap: 4px; }
.sitemap-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800; color: var(--navy);
  letter-spacing: -0.025em; line-height: 1;
}
.sitemap-sub {
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
}

.sitemap-grid { flex: 1; }
.sm-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 32px; align-items: flex-start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.sm-row:last-child { border-bottom: 1px solid var(--line); }
.sm-cat {
  font-size: 22px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.015em; padding-top: 4px;
}
.sm-items {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 2px;
  font-size: 15px;
}
.sm-items a {
  color: var(--fg-2); padding: 6px 14px; border-radius: 999px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.sm-items a:hover { background: var(--bg); color: var(--navy); }
.sm-sep { color: var(--line); margin: 0 2px; user-select: none; }

.sitemap-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.sitemap-foot a { color: var(--muted); }
.sitemap-foot a:hover { color: var(--navy); }
.sm-foot-divider { width: 1px; height: 12px; background: var(--line); }

/* Right narrow side column with close button */
.sitemap-side {
  background: var(--navy);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 32px 0;
}
.sitemap-close {
  background: transparent; border: 0; cursor: pointer;
  color: #fff; padding: 14px;
  border-radius: 999px;
  transition: color .2s, transform .25s, background .15s;
}
.sitemap-close:hover {
  color: var(--gold); background: rgba(255,255,255,.06);
  transform: rotate(90deg);
}
.sitemap-side-foot { padding: 0 16px; }
.sitemap-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 13px;
  padding: 10px 18px; border-radius: 999px;
  transition: transform .15s, background .15s;
}
.sitemap-cta:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-1px); }

/* ===== BUTTONS ===== */
.btn-gold, .btn-ghost-light, .btn-line-light, .btn, .btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; font-size: 15px; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: transform .15s var(--ease-out), background .2s, color .2s, border .2s, box-shadow .2s;
}
.btn-gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 6px 18px rgba(201,168,76,.32);
}
.btn-gold:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,168,76,.4); }
.btn-ghost-light {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-line-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-line-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn { background: #fff; border-color: var(--line); color: var(--fg); }
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ===== HERO CAROUSEL — 3 fading slides, split left:photo / right:dark photo + copy ===== */
.yw-hero {
  position: relative; overflow: hidden;
  background: var(--navy-3);
  color: #fff;
}
.hero-carousel {
  min-height: 720px;
  padding: 0;
}
.hero-slides {
  position: relative;
  width: 100%; height: 100%;
  min-height: 720px;
}
.hero-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 0s linear 1.2s;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; z-index: 2;
  transition: opacity 1.2s ease-in-out, visibility 0s linear 0s;
}

/* LEFT half — equipment photo fills entire left column edge-to-edge */
.hs-left {
  position: relative;
  overflow: hidden;
  background: var(--navy-3);
}
.hs-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hs-left::after {
  /* subtle right-edge gradient blending into the dark right column */
  content: ""; position: absolute; right: 0; top: 0; bottom: 0;
  width: 18%; z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(8,26,61,.35) 50%, rgba(8,26,61,.85) 100%);
  pointer-events: none;
}

/* RIGHT half — another factory photo, darkened so copy + KPI stand out */
.hs-right {
  position: relative;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hs-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(8,26,61,.96) 0%, rgba(15,42,94,.88) 55%, rgba(15,42,94,.72) 100%),
    radial-gradient(circle at 95% 5%, rgba(232,184,75,.12) 0, transparent 40%);
}
.hs-content {
  position: relative; z-index: 2;
  padding: 72px clamp(40px, 5vw, 80px);
  max-width: 720px;
  color: #fff;
  width: 100%;
}
.hs-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hs-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 18px;
}
.hs-title em {
  color: var(--gold);
  font-style: normal;
  position: relative;
}
.hs-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 9px; background: rgba(232,184,75,.22); z-index: -1;
}
.hs-desc {
  color: rgba(255,255,255,.82);
  font-size: 15.5px; line-height: 1.7;
  margin: 0 0 30px;
  letter-spacing: 0.005em;
}
.hs-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

/* Per-slide KPI strip — same 4 stats on every slide */
.hs-kpi {
  list-style: none; padding: 22px 0 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.hs-kpi li { padding-right: 8px; }
.hs-kpi .n {
  display: block;
  font-size: clamp(26px, 2.4vw, 34px); font-weight: 800;
  color: #fff; letter-spacing: -0.025em; line-height: 1;
}
.hs-kpi .u { color: var(--gold); font-size: 0.55em; margin-left: 2px; font-weight: 700; }
.hs-kpi .l {
  display: block;
  margin-top: 8px; font-size: 11.5px;
  color: rgba(255,255,255,.65); letter-spacing: 0.04em;
}

/* Dot pagination */
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.hd-dot {
  width: 32px; height: 4px; border-radius: 2px; padding: 0;
  background: rgba(255,255,255,.32); border: 0; cursor: pointer;
  transition: background .2s, width .3s var(--ease-out);
  font-family: inherit;
}
.hd-dot:hover { background: rgba(255,255,255,.5); }
.hd-dot.is-active { background: var(--gold); width: 56px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(201,168,76,.22); }
.hero-h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: #fff;
}
.hero-h1 em {
  color: var(--gold);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero-h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 10px; background: rgba(201,168,76,.25); z-index: -1;
}
.hero-p {
  color: rgba(255,255,255,.84);
  font-size: 17px; line-height: 1.7; max-width: 640px;
  margin-bottom: 36px; letter-spacing: 0.01em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

/* Hero-side delivery stats (client renewal direction) */
.hero-clients { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.hc-label {
  display: block; color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.hc-row { display: flex; gap: 6px; flex-wrap: wrap; }
.hc-pill {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.02em;
}
.hc-pill.hc-oem { background: rgba(232,184,75,.16); border-color: rgba(232,184,75,.5); color: var(--gold); }

/* Hero right: 4-product dark grid (3-second proposition) */
.hero-products {
  background: rgba(8,26,61,.62);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  padding: 22px;
}
.hp-head {
  color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; margin-bottom: 14px;
}
.hp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hp-cell {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(165deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  transition: transform .2s var(--ease-out), border-color .2s, background .2s;
  overflow: hidden;
}
.hp-cell::after {
  content: ""; position: absolute; right: -32px; top: -32px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,.18) 0, rgba(232,184,75,0) 70%);
  transition: transform .3s var(--ease-out);
}
.hp-cell:hover {
  border-color: rgba(232,184,75,.5);
  background: linear-gradient(165deg, rgba(232,184,75,.06) 0%, rgba(15,42,94,.18) 100%);
  transform: translateY(-2px); color: #fff;
}
.hp-cell:hover::after { transform: scale(1.4); }
.hp-num {
  font-weight: 700; font-size: 11px;
  color: var(--gold); letter-spacing: 0.16em;
}
.hp-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.hp-target {
  font-size: 11.5px; color: rgba(255,255,255,.6);
  line-height: 1.45; margin-top: 2px;
}
.hp-arrow {
  position: absolute; right: 16px; bottom: 14px;
  color: var(--gold); font-size: 16px;
  transition: transform .2s;
}
.hp-cell:hover .hp-arrow { transform: translateX(4px); }

/* Trust KPI band (slide 7: 신뢰 수치 4종 - 큰 숫자로 즉시 전달) */
.trust-kpi {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(15,26,49,.32);
  backdrop-filter: blur(4px);
}
.trust-kpi li {
  padding: 32px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.trust-kpi li:last-child { border-right: 0; }
.tk-n {
  display: block;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800; line-height: 1;
  color: #fff; letter-spacing: -0.025em;
}
.tk-u { color: var(--gold); font-size: 0.55em; margin-left: 2px; }
.tk-l {
  display: block;
  margin-top: 10px; font-size: 13px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.04em;
}

/* ===== CLIENT LOGOS MARQUEE — attached directly under hero ===== */
.client-logos {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 0;
  /* No margin → seamlessly attached to hero above */
}
.cl-inner {
  display: grid; grid-template-columns: 200px 1fr;
  align-items: center;
  width: 70%; max-width: none; margin: 0 auto;
  padding: 22px 0;
  gap: 24px;
}
.cl-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 800; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap;
}
.cl-label-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,184,75,.22);
}
.cl-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.cl-track {
  display: flex; width: max-content;
  animation: cl-scroll 42s linear infinite;
}
.client-logos:hover .cl-track { animation-play-state: paused; }
.cl-set {
  display: flex; align-items: center;
  gap: clamp(36px, 4vw, 56px);
  padding-right: clamp(36px, 4vw, 56px);
}
.cl-logo {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  filter: grayscale(35%);
  opacity: 0.78;
  transition: opacity .2s, filter .2s, transform .15s;
}
.cl-logo:hover {
  opacity: 1; filter: grayscale(0%); transform: translateY(-1px);
}
.cl-n { line-height: 1; }
.cl-s {
  font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0;
}
/* Brand-inspired colors */
.cl-samsung    { color: #1428a0; }
.cl-lg         { color: #a50034; }
.cl-seoulsemi  { color: #003e74; }
.cl-sl         { color: #1c3d8a; }
.cl-lumens     { color: #0a2f6b; }
.cl-ledlytech  { color: #1a4d8c; }
.cl-hangil     { color: #c8102e; }
.cl-daeyoung   { color: #003c8f; }
.cl-kumho      { color: #c8102e; }
.cl-hk         { color: var(--navy); }

@keyframes cl-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cl-track { animation: none; }
}

/* ===== SECTIONS ===== */
.yw-section { padding: 96px 0; background: #fff; }
.yw-bg-soft { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 56px; }

/* Products section — wider (10% margins each side) per client request */
.yw-section#products > .container { width: 80%; max-width: none; padding: 0; }
.yw-section#products .sec-desc { max-width: none; white-space: nowrap; }
/* Why section — same 80% width */
.yw-why > .container { width: 80%; max-width: none; padding: 0; }
.yw-why .sec-desc { max-width: none; }
.sec-eyebrow {
  color: var(--teal); font-weight: 700; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-eyebrow.light { color: var(--gold); }
.sec-title {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800;
  color: var(--navy); margin-bottom: 16px; letter-spacing: -0.025em;
}
.sec-title.light { color: #fff; }
.sec-desc { color: var(--muted); font-size: 16px; max-width: 720px; margin: 0 auto; line-height: 1.65; }

/* ===== BENTO GRID (slide 6 design principle ①) ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: minmax(280px, auto) minmax(220px, auto);
  gap: 16px;
}
.bento-cell {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  color: var(--fg);
  display: flex; flex-direction: column;
  background-size: cover; background-position: center;
  transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s;
}
.bento-cell:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  color: var(--fg);
}
/* Large hero card spans 2 rows on left (photo background) */
.bento-lg {
  grid-row: span 2;
  color: #fff;
  border-color: transparent;
  min-height: 520px;
}
.bento-lg:hover { color: #fff; border-color: var(--gold); }
.bento-md { background: #fff; }
/* Teal photo-background md cell (measuring) — formerly bento-wide */
.bento-md-teal { color: #fff; border-color: transparent; }
.bento-md-teal:hover { color: #fff; border-color: var(--gold); }
.bento-wide {
  grid-column: span 2;
  color: #fff;
  border-color: transparent;
  min-height: 260px;
}
.bento-wide:hover { color: #fff; border-color: var(--gold); }

.bento-num {
  font-weight: 700; font-size: 13px;
  color: var(--gold); letter-spacing: 0.16em; margin-bottom: 14px;
}
.bento-num.light { color: rgba(255,255,255,.85); }
.bento-body { display: flex; flex-direction: column; flex: 1; }
.bento-name {
  font-size: 26px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--navy); margin-bottom: 10px;
}
.bento-name.light { color: #fff; }
.bento-lg .bento-name { color: #fff; font-size: 30px; }
.bento-sub {
  color: var(--muted); font-size: 18px; line-height: 1.55;
  margin-bottom: 20px; max-width: 620px;
}
.bento-sub.light { color: rgba(255,255,255,.82); }
.bento-lg .bento-sub { color: rgba(255,255,255,.78); }
.bento-list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.bento-list li {
  font-size: 18px; padding: 9px 0; color: var(--fg-2);
  border-bottom: 1px dashed var(--line-2);
}
.bento-list li:last-child { border-bottom: 0; }
/* Card meta rows (target vehicle / key features per renewal direction) */
.card-meta-row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 10px 0; border-top: 1px dashed var(--line-2);
  font-size: 18px;
}
.card-meta-row:first-of-type { border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 14px; }
.cm-label {
  flex-shrink: 0; width: 80px;
  color: var(--muted); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cm-val { color: var(--fg-2); font-weight: 500; }
/* Light variant for dark cards */
.bento-lg .card-meta-row, .card-meta-row.light { border-top-color: rgba(255,255,255,.16); }
.bento-lg .card-meta-row .cm-label, .card-meta-row.light .cm-label { color: rgba(255,255,255,.6); }
.bento-lg .card-meta-row .cm-val, .card-meta-row.light .cm-val { color: rgba(255,255,255,.92); }

.bento-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 20px; }
.bento-tag {
  font-size: 11px; padding: 5px 11px; border-radius: 999px;
  background: var(--bg); color: var(--navy);
  border: 1px solid var(--line); font-weight: 600;
  letter-spacing: 0.01em;
}
.bento-tag-new {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
}
.bento-tag-light {
  background: rgba(255,255,255,.14); color: #fff;
  border-color: rgba(255,255,255,.22);
}
.bento-lg .bento-tag {
  background: rgba(255,255,255,.10); color: #fff;
  border-color: rgba(255,255,255,.18);
}
.bento-lg .bento-tag-new { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.bento-more {
  align-self: flex-start; margin-top: auto;
  color: var(--teal); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.bento-more.light { color: var(--gold); }
.bento-cell:hover .bento-more { gap: 12px; }

/* ===== WHY (dark band) ===== */
.yw-why {
  background: var(--navy);
  color: #fff;
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.yw-why::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 80%, rgba(201,168,76,.08) 0, transparent 40%),
    radial-gradient(circle at 10% 20%, rgba(13,124,110,.1) 0, transparent 45%);
  pointer-events: none;
}
.yw-why .container { position: relative; }
.why-head { text-align: center; margin-bottom: 40px; }
.why-head .sec-desc { color: rgba(255,255,255,.7); }

/* OEM strip (client renewal direction: 현대·기아·포드·아우디 시각화) */
.oem-strip {
  background: linear-gradient(135deg, rgba(232,184,75,.10) 0%, rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(232,184,75,.22);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.oem-label {
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
}
.oem-logos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; }
.oem-logo {
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.04em;
  opacity: .85;
}
.oem-divider { width: 1px; height: 18px; background: rgba(255,255,255,.18); }

/* Timeline (연혁 시각화) */
.timeline {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 48px;
  position: relative;
}
.tl-item {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 4px;
}
.tl-year {
  color: var(--gold); font-weight: 800; font-size: 17px;
  letter-spacing: 0.04em;
}
.tl-bar {
  height: 3px; background: rgba(255,255,255,.14); border-radius: 2px; position: relative;
}
.tl-bar::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(232,184,75,.2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.tl-item:nth-child(1) .tl-bar::before { transform: scaleX(.95); }
.tl-item:nth-child(2) .tl-bar::before { transform: scaleX(.95); }
.tl-item:nth-child(3) .tl-bar::before { transform: scaleX(.95); }
.tl-item:nth-child(4) .tl-bar::before { transform: scaleX(.95); }
.tl-item:nth-child(5) .tl-bar::before { transform: scaleX(.95); }
.tl-item.now .tl-year { color: #fff; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-3); display: inline-block; align-self: flex-start; font-size: 12px; }
.tl-item.now .tl-bar::before {
  background: var(--gold);
  transform: scaleX(1);
  box-shadow: 0 0 16px rgba(232,184,75,.6);
}
.tl-event {
  font-size: 12.5px; color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.why-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
}
.why-item.highlight {
  background: linear-gradient(135deg, rgba(232,184,75,.10) 0%, rgba(255,255,255,.03) 100%);
  border-color: rgba(232,184,75,.32);
}
.as-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

/* PC-only line break helper (hidden on mobile so text flows naturally) */
.pc-br { display: inline; }
.as-pill {
  background: rgba(232,184,75,.18);
  border: 1px solid rgba(232,184,75,.4);
  color: var(--gold);
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.why-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform .2s, background .2s, border .2s;
}
.why-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(201,168,76,.3);
  transform: translateY(-4px);
}
.why-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(232,184,75,.25);
}
.why-icon svg { width: 26px; height: 26px; }
.why-h {
  color: #fff; font-size: 19px; font-weight: 700;
  margin: 0; letter-spacing: -0.01em;
  flex: 1;
}
.why-p { color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.65; margin: 0; }

/* ============================================================
   INDUSTRIES — creative redesign: big number watermark + color rail
   + halo icon + gradient divider + dotted bg pattern
   ============================================================ */
.yw-section#industries {
  background: linear-gradient(180deg, #fafbfd 0%, #eef2f8 100%);
  position: relative; overflow: hidden;
}
.yw-section#industries::before {
  /* subtle dotted grid backdrop */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(15,42,94,.07) 1.4px, transparent 1.4px);
  background-size: 32px 32px;
  pointer-events: none;
}
.yw-section#industries::after {
  /* large gold radial accent in top-right */
  content: ""; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,184,75,.10), transparent 70%);
  pointer-events: none;
}
.yw-section#industries > .container { width: 80%; max-width: none; padding: 0; position: relative; z-index: 1; }
.yw-section#industries .sec-desc { max-width: none; }

.ind-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}

/* Card base */
.ind-card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15,42,94,.08);
  border-radius: 22px;
  padding: 40px 30px 32px;
  box-shadow: 0 2px 6px rgba(15,42,94,.04);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .25s;
}
.ind-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(15,42,94,.18), 0 10px 24px rgba(15,42,94,.10);
  border-color: transparent;
}

/* Per-card accent color (CSS variable scoped by data-ind) */
.ind-card[data-ind="1"] { --c: 15, 42, 94;   --c-solid: #0F2A5E; }
.ind-card[data-ind="2"] { --c: 13, 124, 110; --c-solid: #0D7C6E; }
.ind-card[data-ind="3"] { --c: 196, 142, 31; --c-solid: #C48E1F; }
.ind-card[data-ind="4"] { --c: 31, 63, 120;  --c-solid: #1F3F78; }

/* Vertical color rail on left edge */
.ind-rail {
  position: absolute; top: 32px; bottom: 32px; left: 0;
  width: 4px; border-radius: 0 4px 4px 0;
  background: var(--c-solid);
  opacity: 0.85;
  transition: top .35s var(--ease-out), bottom .35s var(--ease-out), opacity .25s;
}
.ind-card:hover .ind-rail { top: 0; bottom: 0; opacity: 1; }

/* Big translucent number watermark in top-right */
.ind-num-bg {
  position: absolute; top: -18px; right: 14px;
  font-size: 128px; font-weight: 900;
  color: rgba(var(--c), 0.07);
  letter-spacing: -0.06em; line-height: 1;
  pointer-events: none;
  font-family: "Spoqa Han Sans Neo", sans-serif;
  transition: color .3s, transform .4s var(--ease-out);
}
.ind-card:hover .ind-num-bg {
  color: rgba(var(--c), 0.13);
  transform: scale(1.08);
}

/* Row layout */
.ind-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

/* Icon with industry color theme */
.ind-ico {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--c), .12) 0%, rgba(var(--c), .22) 100%);
  color: var(--c-solid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease-out);
}
.ind-card:hover .ind-ico { transform: rotate(-4deg) scale(1.05); }
.ind-ico svg { width: 28px; height: 28px; position: relative; z-index: 1; }

/* Reset legacy ind-ico-N color overrides (use --c-solid now) */
.ind-ico-1, .ind-ico-2, .ind-ico-3, .ind-ico-4 {
  background: linear-gradient(135deg, rgba(var(--c), .12) 0%, rgba(var(--c), .22) 100%);
  color: var(--c-solid);
}

/* Dashed halo around icon on hover */
.ind-halo {
  position: absolute; inset: -7px;
  border-radius: 22px;
  border: 1.5px dashed var(--c-solid);
  opacity: 0;
  transition: opacity .3s, transform .45s var(--ease-out);
  pointer-events: none;
}
.ind-card:hover .ind-halo {
  opacity: 0.45;
  transform: rotate(6deg);
}

.ind-name {
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin: 0; letter-spacing: -0.02em; flex: 1;
  line-height: 1.2;
}

/* Gradient divider line */
.ind-grad-line {
  display: block;
  height: 1px; margin: 0 0 18px;
  background: linear-gradient(90deg, var(--c-solid) 0%, transparent 55%);
  opacity: 0.5;
  transform-origin: left;
  transition: transform .4s var(--ease-out), opacity .25s;
}
.ind-card:hover .ind-grad-line {
  transform: scaleX(1.15);
  opacity: 0.8;
}

.ind-desc {
  color: var(--fg-2); font-size: 18px;
  line-height: 1.65; margin: 0;
  position: relative; z-index: 1;
}

/* ============================================================
   AI SEARCH ERA SECTION — phone mockup + huge headline + AI logos
   ============================================================ */
.yw-ai-era {
  position: relative; overflow: hidden;
  padding: 110px 0;
  background: linear-gradient(180deg, #f1f5fc 0%, #fafbfd 60%, #f1f5fc 100%);
}
.ai-era-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.ai-era-bg::before {
  content: ""; position: absolute; top: -180px; right: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(15,42,94,.10), transparent 70%);
}
.ai-era-bg::after {
  content: ""; position: absolute; bottom: -180px; left: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,184,75,.10), transparent 70%);
}
.yw-ai-era > .container {
  width: 80%; max-width: none; padding: 0; position: relative; z-index: 1;
}
.aie-grid {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

/* === Phone mockup === */
.aie-phone-col { display: flex; justify-content: center; align-items: center; }
.aie-phone {
  position: relative;
  display: flex; justify-content: center;
}
.phone-frame {
  position: relative;
  width: 340px; height: 680px;
  background: linear-gradient(160deg, #1f2937 0%, #111827 100%);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 32px 60px rgba(15,42,94,.30),
    0 12px 24px rgba(15,42,94,.18),
    inset 0 1px 2px rgba(255,255,255,.08);
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0a0f17; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #f7faff;
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 38px 18px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #1c7ee0, #7c5bd2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.chat-status { font-size: 11px; color: #10A37F; display: inline-flex; align-items: center; gap: 4px; }
.chat-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #10A37F; }

.chat-body {
  flex: 1; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.msg {
  font-size: 12.5px; line-height: 1.45;
  padding: 9px 12px; border-radius: 14px;
  max-width: 85%;
  position: relative;
}
.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1c7ee0 0%, #1554a8 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.read-mark {
  display: block; font-size: 10px; opacity: 0.7;
  margin-top: 4px;
}
.msg-ai {
  align-self: flex-start; max-width: 92%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(15,42,94,.06);
}
.rec-card {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 8px;
}
.rec-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(15,42,94,.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rec-icon svg { width: 20px; height: 20px; }
.rec-name { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.rec-loc { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.rec-desc { font-size: 11.5px; color: var(--fg-2); line-height: 1.45; margin: 0 0 8px; }
.rec-tags {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px;
}
.rec-tags span {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(232,184,75,.16); color: #8a6f24;
}
.rec-tags span:nth-child(2) { background: rgba(15,42,94,.10); color: var(--navy); }
.rec-tags span:nth-child(3) { background: rgba(13,124,110,.12); color: var(--teal); }
.rec-link {
  display: inline-block;
  font-size: 11.5px; font-weight: 800;
  color: var(--navy);
}

.msg-typing {
  align-self: flex-start;
  display: flex; gap: 4px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: typing 1.4s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 18px;
  background: #fff;
  border-top: 1px solid var(--line-2);
}
.chat-input span {
  flex: 1; font-size: 12px; color: var(--muted);
  background: var(--bg);
  padding: 10px 14px; border-radius: 999px;
}
.chat-input button {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1c7ee0; border: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Floating AI brand bubbles around phone */
.ai-bubble {
  position: absolute;
  background: #fff;
  font-size: 14px; font-weight: 800;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 14px 28px rgba(15,42,94,.14);
  letter-spacing: -0.01em;
}
.ai-bubble-tl { top: 70px;  left: -50px;  color: #10A37F; border: 2px solid rgba(16,163,127,.22); }
.ai-bubble-bl { bottom: 90px; left: -40px; color: #D97757; border: 2px solid rgba(217,119,87,.22); }
.ai-bubble-tr { top: 70px;  right: -50px; color: #1C7EE0; border: 2px solid rgba(28,126,224,.22); }
.ai-bubble-br { bottom: 90px; right: -50px; color: #20808D; border: 2px solid rgba(32,128,141,.22); }

/* === Right text column === */
.aie-text-col { max-width: 720px; }
.aie-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  color: var(--gold);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.22em;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(232,184,75,.4);
  margin-bottom: 28px;
}
.aie-h {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em; line-height: 1.15;
  margin: 0 0 24px;
}
.aie-h s {
  color: var(--muted); opacity: 0.7;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  font-weight: 700;
}
.aie-h .aie-h-em {
  color: #1c7ee0;
  background: linear-gradient(180deg, transparent 65%, rgba(28,126,224,.18) 65%);
  padding: 0 2px;
}
.aie-p {
  font-size: 18px; line-height: 1.7; color: var(--fg-2);
  margin: 0 0 32px;
}
.aie-p strong { color: var(--navy); font-weight: 800; }

/* === Key message callout — most important === */
.aie-key {
  display: flex; align-items: center; gap: 22px;
  padding: 26px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
  border-radius: 18px;
  color: #fff;
  margin-bottom: 36px;
  box-shadow: 0 20px 40px rgba(15,42,94,.30);
  position: relative; overflow: hidden;
}
.aie-key::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(232,184,75,.18), transparent 70%);
  pointer-events: none;
}
.aie-key-mark {
  flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(232,184,75,.40);
}
.aie-key-mark svg { width: 30px; height: 30px; }
.aie-key-text {
  position: relative; z-index: 1;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35; font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: -0.01em;
}
.aie-key-text strong {
  display: block; color: var(--gold);
  font-weight: 900;
  margin-top: 2px;
  font-size: 1.08em;
}

/* === BIG AI logos row === */
.aie-logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 32px;
}
.ai-logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .2s;
}
.ai-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15,42,94,.14);
}
.ai-logo-mark {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.ai-logo-mark svg { width: 100%; height: 100%; display: block; }
.ai-logo-name {
  font-size: 15px; font-weight: 800;
  color: var(--navy); letter-spacing: -0.01em;
}
.ai-chatgpt:hover    { border-color: #10A37F; }
.ai-gemini:hover     { border-color: #1C7EE0; }
.ai-claude:hover     { border-color: #D97757; }
.ai-perplexity:hover { border-color: #20808D; }

/* CTA */
.aie-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 15px;
  padding: 16px 28px; border-radius: 999px;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(232,184,75,.34);
  transition: background .15s, transform .15s, box-shadow .25s;
}
.aie-cta:hover {
  background: var(--gold-2); color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(232,184,75,.45);
}

/* ===== NEWS v2 — creative bento with bold CTAs (80% width) ===== */
.yw-news-v2 {
  padding: 100px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 60%, #fff 100%);
  position: relative; overflow: hidden;
}
.yw-news-v2::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(232,184,75,.10), transparent 70%);
  pointer-events: none;
}
.yw-news-v2::after {
  content: ""; position: absolute; bottom: -120px; left: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(13,124,110,.10), transparent 70%);
  pointer-events: none;
}
.yw-news-v2 > .container { width: 80%; max-width: none; padding: 0; position: relative; }

.news-v2-grid {
  display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 26px;
}

/* Board cards (공지·뉴스) */
.nv-card {
  position: relative; overflow: hidden;
  background: #fff; border-radius: 22px; padding: 36px 34px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: 0 2px 4px rgba(15,42,94,.04);
  transition: transform .28s var(--ease-out), box-shadow .28s, border-color .2s;
}
.nv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15,42,94,.14), 0 8px 18px rgba(15,42,94,.08);
}
.nv-board::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--gold);
}
.nv-news::before { background: var(--teal); }
.nv-corner {
  position: absolute; top: 0; right: 0;
  width: 110px; height: 110px;
  background: linear-gradient(225deg, rgba(232,184,75,.16), transparent 60%);
  pointer-events: none;
}
.nv-news .nv-corner { background: linear-gradient(225deg, rgba(13,124,110,.18), transparent 60%); }

.nv-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.nv-tag {
  font-size: 22px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.015em;
  position: relative; padding-left: 14px;
}
.nv-notice .nv-tag::before,
.nv-news .nv-tag::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px;
}
.nv-notice .nv-tag::before { background: var(--gold); }
.nv-news .nv-tag::before { background: var(--teal); }
.nv-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: 0.04em; padding: 6px 10px; border-radius: 999px;
  transition: color .2s, background .2s, gap .2s;
}
.nv-more-link:hover { color: var(--navy); background: var(--bg); gap: 10px; }

.nv-board-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.nv-board-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px dashed var(--line-2);
}
.nv-board-list li:last-child { border-bottom: 0; }
.nv-board-list a {
  color: var(--fg); font-size: 16px; font-weight: 500; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .15s;
}
.nv-board-list a:hover { color: var(--navy); }
.nv-board-list time {
  color: var(--muted); font-size: 12px; flex-shrink: 0;
  font-weight: 600; letter-spacing: 0.02em;
}
.nv-empty { color: var(--muted); padding: 24px 0; text-align: center; font-size: 14px; }

/* Quick action stack */
.nv-quick-stack { display: flex; flex-direction: column; gap: 14px; }
.nv-act {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border-radius: 18px;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  text-decoration: none;
}
.nv-act:hover { transform: translateY(-4px); }
.nv-act-quote {
  background: linear-gradient(135deg, var(--gold) 0%, #f3cd6e 50%, #d99e2e 100%);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(232,184,75,.32);
}
.nv-act-quote:hover { color: var(--navy); box-shadow: 0 18px 38px rgba(232,184,75,.44); }
.nv-act-catalog {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 50%, var(--navy-3) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15,42,94,.28);
}
.nv-act-catalog:hover { color: #fff; box-shadow: 0 18px 38px rgba(15,42,94,.40); }
.nv-act-catalog::before {
  content: ""; position: absolute; top: -20px; right: -20px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,.18), transparent 70%);
  pointer-events: none;
}
.nv-act-ico-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(15,42,94,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}
.nv-act-catalog .nv-act-ico-wrap { background: rgba(255,255,255,.12); }
.nv-act-ico-wrap svg { width: 24px; height: 24px; }
.nv-act-body { flex: 1; position: relative; z-index: 1; }
.nv-act-title { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 4px; }
.nv-act-sub { font-size: 12.5px; opacity: 0.78; letter-spacing: 0.01em; }
.nv-act-arrow {
  width: 22px; height: 22px; flex-shrink: 0; position: relative; z-index: 1;
  transition: transform .2s;
}
.nv-act:hover .nv-act-arrow { transform: translateX(5px); }

.nv-mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nv-mini {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; color: var(--fg-2);
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  transition: all .2s var(--ease-out);
}
.nv-mini svg { color: var(--teal); transition: color .15s; }
.nv-mini:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.nv-mini:hover svg { color: var(--gold); }

/* ===== FOOTER CTA BAND ===== */
.footer-cta {
  background: linear-gradient(135deg, var(--teal) 0%, #0a6557 100%);
  color: #fff;
  padding: 56px 24px;
}
.footer-cta .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.fc-q { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.fc-t { color: rgba(255,255,255,.78); font-size: 15px; }
.fc-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--navy-3); color: rgba(255,255,255,.66);
  padding: 64px 0 20px;
  margin-top: 0;
  font-size: 17px;
}
/* Footer content area: 80% width (좌우 10% 여백) */
.site-footer .container { width: 80%; max-width: none; padding: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px;
  padding-bottom: 64px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-logo-img { height: 44px; width: auto; opacity: .96; image-rendering: -webkit-optimize-contrast; }
.fl-main { color: #fff; font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.fl-sub { color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: 0.1em; }
.footer-info { list-style: none; padding: 0; margin: 0 0 22px; }
.footer-info li { padding: 5px 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }
.footer-info a { color: rgba(255,255,255,.85); }
.footer-info a:hover { color: var(--gold); }
.footer-certs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.cert-badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--gold); padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 {
  color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.45; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 34px 0 28px; margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 15px; color: rgba(255,255,255,.48);
}
.footer-bottom a { color: rgba(255,255,255,.7); margin: 0 6px; }
.footer-bottom a:hover { color: var(--gold); }

/* ===== TOP / Scroll-to-top floating button ===== */
.top-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(232,184,75,.32);
  cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .28s, visibility .28s, transform .28s, background .18s, color .18s, box-shadow .25s;
  box-shadow: 0 10px 26px rgba(15,42,94,.32), 0 4px 10px rgba(15,42,94,.18);
}
.top-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.top-btn .top-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em;
  line-height: 1; opacity: .9;
}
.top-btn.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.top-btn:hover {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(232,184,75,.4);
}
.top-btn:hover svg { transform: translateY(-2px); }

/* ===== STATIC PAGES (p/...) ===== */
.post { color: var(--fg); font-size: 16px; line-height: 1.85; }
.post h1, .post h2, .post h3 { color: var(--navy); }
.post img { border-radius: var(--radius); margin: 16px 0; }

/* ===== BOARD (reuse from old, restyled) ===== */
.board-page { padding: 40px 0 96px; width: 80%; max-width: none; margin: 0 auto; }
.board-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 18px; margin-bottom: 28px;
  border-bottom: 2px solid var(--navy);
}
/* When board-head only contains description + tools (no h1), make description take full row above tools */
.board-head .board-desc { flex: 1 1 100%; margin-top: 0; }
.board-head .board-tools { margin-left: auto; }
.board-title { font-size: 30px; margin: 0; font-weight: 800; color: var(--navy); }
.board-desc {
  margin: 18px 0 0;
  padding: 22px 26px;
  background: var(--bg);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  color: var(--fg-2); font-size: 15px; line-height: 1.7;
}
.board-desc p { margin: 0 0 10px; }
.board-desc p:last-child { margin-bottom: 0; }
.board-desc h3 { font-size: 18px; color: var(--navy); margin: 0 0 12px; font-weight: 800; }
.board-desc h3:not(:first-child) { margin-top: 18px; }
.board-desc ul { padding-left: 22px; margin: 6px 0 12px; }
.board-desc ul:last-child { margin-bottom: 0; }
.board-desc li { margin-bottom: 4px; }
.board-desc strong { color: var(--navy); font-weight: 700; }
.board-desc a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.board-desc a:hover { color: var(--gold); }
.board-desc hr {
  border: 0; border-top: 1px dashed var(--line);
  margin: 18px 0;
}
.board-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { display: flex; gap: 4px; }
.search input { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; }
.search button {
  padding: 9px 16px; background: var(--navy); color: #fff; border: 0;
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-weight: 600;
}

.board-table { width: 100%; border-collapse: collapse; }
.board-table thead { background: var(--bg); }
.board-table th, .board-table td {
  padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.board-table th { font-weight: 700; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.board-table .num-col, .board-table .meta-col, .board-table .adm-col { width: 1%; white-space: nowrap; }
/* 제목 외 셀(번호·작성자·작성일·조회)은 줄바꿈 금지 — 작성일이 두 줄로 깨지는 문제 해결 */
.board-table td:not(.subj) { white-space: nowrap; }
.board-table .subj a { color: var(--fg); font-weight: 500; }
.board-table .subj a:hover { color: var(--navy); }
.board-table tr.notice-row { background: #fff8e8; }
.board-table .empty { text-align: center; color: var(--muted); padding: 48px 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tag); font-size: 11px; color: var(--navy); margin-left: 4px; }

.admin-bulk { margin-top: 14px; padding: 12px 16px; background: #fff8e8; border-radius: var(--radius-sm); display: flex; gap: 10px; align-items: center; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--fg); font-size: 14px;
}
.pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager a:hover { background: var(--bg); }
.pager a.on:hover { background: var(--navy-2); }

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.photo-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .2s; }
.photo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.photo-check { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 4px; padding: 2px 4px; }
.photo-thumb {
  width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center;
  background-color: var(--bg);
}
.photo-meta { padding: 14px; }
.photo-title { font-weight: 600; font-size: 14px; color: var(--fg); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-sub { color: var(--muted); font-size: 12px; }

.calendar { width: 100%; border-collapse: separate; border-spacing: 2px; }
.calendar th { background: var(--bg); padding: 10px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.calendar th.sun { color: #d24d4d; }
.calendar th.sat { color: var(--navy); }
.calendar td { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); vertical-align: top; padding: 6px; min-height: 96px; height: 96px; position: relative; }
.calendar td.empty { background: var(--bg); border: 0; }
.calendar td.today { background: #f0f6ff; border-color: var(--navy); }
.calendar td .d { display: inline-block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.calendar td.sun .d { color: #d24d4d; }
.calendar td.sat .d { color: var(--navy); }
.cal-event { display: block; background: var(--navy); color: #fff !important; padding: 2px 6px; border-radius: 3px; font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: var(--navy-2); text-decoration: none; }
.cal-nav { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }

.post-view { padding: 56px 0 96px; width: 80%; max-width: 1180px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.post-head { padding-bottom: 22px; margin-bottom: 28px; border-bottom: 2px solid var(--navy); }
.post-head h1 { font-size: 32px; color: var(--navy); }
.post-meta { color: var(--muted); font-size: 14px; }
.event-bar { background: #fff8e8; padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-weight: 600; color: #7a5a14; }
/* Image attachments rendered at the top of a post */
.post-images { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 8px; }
.post-images .pi-item { margin: 0; }
.post-images .pi-item img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.post-body { font-size: 16px; line-height: 1.85; padding: 28px 0; min-height: 220px; }
.post-body img { border-radius: var(--radius); margin: 14px 0; max-width: 100%; height: auto; }
.attachments-block { background: var(--bg); padding: 18px; border-radius: var(--radius); margin: 24px 0; }
.attachments-block h3 { font-size: 13px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.att-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.att-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.att-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.post-actions { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prev-next a { color: var(--fg); font-size: 14px; }
.prev-next a:hover { color: var(--navy); }
.comments { margin-top: 48px; }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comments li { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.comments li strong { margin-right: 8px; color: var(--navy); }
.comments p { margin: 8px 0 0; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
}

.post-write { padding: 56px 0 96px; width: 80%; max-width: 1180px; margin: 0 auto; }
.write-form { display: flex; flex-direction: column; gap: 16px; }
.write-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
.write-form input[type=text],
.write-form input[type=datetime-local],
.write-form textarea {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
}
.write-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.write-form fieldset.attachments { border: 1px dashed var(--line); padding: 16px; border-radius: var(--radius-sm); }
.write-form .file-row { margin: 6px 0; }
.write-form .form-actions { display: flex; gap: 10px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 14px; }
.alert.ok  { background: #e6f7ee; color: #145a36; }
.alert.err { background: #fde6e8; color: #921c25; }
