/* 대통령닷컴 v5 — 대형 히어로·얼굴 띠·대통령 DB·인물 히어로 (2026-11-12) */
:root{--kred:#c60c30;--kblue:#003478;--ivory:#f6f1e7}
.logo-flag{width:36px;height:24px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.top{background:rgba(10,22,44,.94);backdrop-filter:blur(8px)}

/* 히어로 */
.kh{position:relative;min-height:min(88vh,860px);display:flex;align-items:center;color:#fff;overflow:hidden;background:#0a162c}
.kh-bg{position:absolute;inset:0}
.kh-s{position:absolute;inset:-2%;background-size:cover;background-position:center;opacity:0;transform:scale(1.02);transition:opacity 2.6s ease,transform 14s linear}
.kh-s.on{opacity:1;transform:scale(1.1)}
.kh-fallback{background:radial-gradient(1200px 600px at 75% 40%,#28508f 0%,#0f2342 55%,#070f1f 100%)}
.kh-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,14,30,.92) 0%,rgba(6,14,30,.72) 38%,rgba(6,14,30,.25) 70%,rgba(6,14,30,.1) 100%),linear-gradient(0deg,rgba(6,14,30,.85) 0%,rgba(6,14,30,0) 35%)}
.kh-flag{position:absolute;right:-6%;top:50%;width:min(52vw,760px);height:auto;transform:translateY(-50%) rotate(-6deg);opacity:.08;filter:grayscale(.2);z-index:1}
.kh-in{position:relative;z-index:2;padding-top:70px;padding-bottom:70px;width:100%}
.kh-eye{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.06em;color:#e9d8a6;margin:0 0 14px}
.kh-eye img{border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.kh h1{color:#fff;font-size:clamp(52px,9vw,120px);line-height:1.02;margin:0 0 18px;letter-spacing:-.03em;text-shadow:0 6px 40px rgba(0,0,0,.45)}
.kh-lead{max-width:640px;font-size:clamp(17px,1.6vw,20px);color:#e6ebf5;margin:0 0 26px}
.kh-q{display:flex;gap:8px;max-width:680px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:16px;padding:8px;backdrop-filter:blur(6px)}
.kh-q input{flex:1;min-width:0;border:0;background:transparent;color:#fff;font:inherit;font-size:16px;padding:10px 12px;outline:0}
.kh-q input::placeholder{color:#b9c4d8}
.kh-btn{display:inline-flex;align-items:center;white-space:nowrap;padding:10px 18px;border-radius:11px;background:linear-gradient(135deg,var(--kred),#e04a5f);color:#fff;font-weight:800}
.kh-btn:hover{text-decoration:none;filter:brightness(1.08)}
.kh-stats{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.kh-stats div{min-width:130px;padding:12px 16px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16)}
.kh-stats b{display:block;font-size:24px;color:#fff}.kh-stats span{font-size:13px;color:#c8d2e4}
.kh-ai{position:absolute;right:14px;bottom:8px;margin:0;font-size:11px;color:rgba(255,255,255,.55);z-index:2}

/* 얼굴 띠 */
.rail{background:var(--ivory);padding:34px 0 18px;border-bottom:1px solid #e8dfcc}
.rail-h{display:flex;justify-content:space-between;align-items:baseline}.rail-h h2{margin:0;font-size:26px}
.rail-l{list-style:none;margin:18px 0 0;padding:0 max(20px,calc((100vw - 1180px)/2 + 20px)) 10px;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin}
.rail-l li{flex:0 0 132px;scroll-snap-align:start}
.rail-l a{display:block;color:var(--ink);text-align:center}.rail-l a:hover{text-decoration:none}
.rp{display:grid;place-items:center;width:132px;height:168px;border-radius:14px;background:#d9d2c3 center 18%/cover;font:700 44px serif;color:#8a7d63;box-shadow:0 10px 24px rgba(15,35,66,.16);filter:grayscale(.15);transition:transform .25s,filter .25s}
.rail-l a:hover .rp{transform:translateY(-4px);filter:none}
.rail-l b{display:block;margin-top:8px;font-size:16px}.rail-l small{display:block;color:var(--sub);font-size:12px;line-height:1.4}
.rail-note{font-size:12.5px;color:var(--sub);margin:8px 0 0}

/* 대통령 DB */
.db{padding:46px 0 30px;background:#fff}
.db-h{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.db-h h2{margin:0 0 4px;font-size:32px}.db-h .sub{margin:0;color:var(--sub)}
.db-n{margin:0;font-size:15px;color:var(--sub)}.db-n b{font-size:40px;color:var(--kblue);font-family:serif}
.db-f{margin:18px 0 14px;padding:16px;border-radius:18px;background:#f4f6fa;border:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.fg{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.fg>span{min-width:76px;font-size:13px;font-weight:700;color:var(--sub)}
.fg button{border:1px solid #cfd6e3;background:#fff;border-radius:999px;padding:5px 13px;font:inherit;font-size:14px;cursor:pointer;color:var(--ink)}
.fg button.on{background:var(--kblue);border-color:var(--kblue);color:#fff}
.fg.sel{gap:14px}.fg.sel label{font-size:13px;font-weight:700;color:var(--sub);display:flex;align-items:center;gap:6px}
.fg select{font:inherit;font-size:14px;padding:5px 8px;border-radius:9px;border:1px solid #cfd6e3;background:#fff}
.fg .ck{font-weight:500}.fg .reset{margin-left:auto;border-radius:9px;background:#fff}
.db-l{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px}
.db-l li[hidden]{display:none}
.db-l a{display:flex;gap:14px;padding:12px;border-radius:16px;border:1px solid var(--line);background:#fff;color:var(--ink);transition:box-shadow .2s,border-color .2s;height:100%}
.db-l a:hover{text-decoration:none;border-color:#9fb3d6;box-shadow:0 12px 26px rgba(15,35,66,.1)}
.dp{flex:0 0 86px;height:110px;border-radius:12px;background:#e6e0d3 center 18%/cover}
.dt{display:flex;flex-direction:column;min-width:0}.dt em{font-style:normal;font-size:12px;font-weight:800;color:var(--kred)}
.dt b{font-size:20px;line-height:1.25}.dt small{color:var(--sub);font-size:12px}
.dm{font-size:13px;color:var(--sub);margin-top:2px}
.dg{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.dg i{font-style:normal;font-size:12px;padding:2px 8px;border-radius:999px;background:#eef2f8;color:#334}
.db-empty{padding:30px;text-align:center;color:var(--sub)}

/* 대통령 페이지 히어로 */
.ph5{position:relative;overflow:hidden;background:linear-gradient(120deg,#0a162c 0%,#13305e 60%,#1f4a8c 100%);color:#fff;padding:46px 0}
.ph5-flag{position:absolute;right:-4%;top:-10%;width:520px;height:347px;background:url(/assets/taegukgi.svg) center/contain no-repeat;opacity:.07;transform:rotate(-8deg)}
.ph5-in{position:relative;display:flex;gap:34px;align-items:center}
.ph5-img{margin:0;flex:0 0 260px}.ph5-img img{width:260px;height:330px;object-fit:cover;object-position:center 18%;border-radius:18px;box-shadow:0 20px 50px rgba(0,0,0,.4);background:#223}
.ph5-img figcaption,.gal figcaption{font-size:11.5px;line-height:1.45;color:#aeb9cc;margin-top:6px}
.ph5-img .cr a{color:#d6c08a}
.ph5-t .eyebrow a{color:#e9d8a6}.ph5-t h1{color:#fff;font-size:clamp(38px,5.4vw,64px);margin:4px 0 4px}
.ph5-names{margin:0;color:#c8d2e4}.ph5-t .lead{color:#e6ebf5;margin:6px 0 16px}
.ph5-g{display:flex;flex-wrap:wrap;gap:10px}.ph5-g span{padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);font-size:12.5px;color:#c8d2e4}
.ph5-g b{display:block;font-size:17px;color:#fff}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin:6px 0 10px}
.gal figure{margin:0}.gal img{width:100%;height:190px;object-fit:cover;border-radius:12px;background:#eee}
.gal figcaption{color:var(--sub)}.cr{color:#7d8798}.cr a{color:inherit;text-decoration:underline}
.side ol li a i{display:inline-block;width:26px;height:32px;border-radius:6px;background:#e6e0d3 center 18%/cover;vertical-align:middle;margin-right:8px}

@media (max-width:760px){
 .kh{min-height:auto}.kh-in{padding-top:54px;padding-bottom:64px}.kh-flag{width:90vw;right:-30%;opacity:.06}
 .kh-q{flex-direction:column}.kh-btn{justify-content:center}
 .kh-stats div{min-width:calc(50% - 6px)}
 .db-h{flex-direction:column;align-items:flex-start}.db-l{grid-template-columns:1fr}
 .ph5-in{flex-direction:column;align-items:flex-start}.ph5-img{flex-basis:auto}.ph5-img img{width:200px;height:254px}
 .fg.sel .reset{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.kh-s{transition:opacity 1s}.kh-s.on{transform:none}}

/* ---- 좋아요 · 세계 통합 (11-12 2차) ---- */
.db-l li{position:relative}
.db-l li>a{padding-right:16px;padding-bottom:40px}
.lk{display:inline-flex;align-items:center;gap:5px;border:1px solid #f1c3cc;background:#fff;color:#b4233d;border-radius:999px;padding:4px 11px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:transform .15s,background .15s}
.lk:hover{background:#fff1f3}.lk.on{background:#c60c30;border-color:#c60c30;color:#fff}.lk .lk-h{font-size:14px}.lk b{font-weight:800}
.lk.pop{transform:scale(1.18)}
.db-l li>.lk{position:absolute;right:12px;bottom:10px}
.ph5-like{margin:0 0 12px}.ph5-like .lk{font-size:15px;padding:7px 16px;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.1);color:#fff}.ph5-like .lk.on{background:#c60c30;border-color:#c60c30}
.dp i{display:grid;place-items:center;height:100%;font:700 34px serif;color:#8a7d63;font-style:normal}
.dg i.now{background:#dcfce7;color:#15803d}
.dbq{width:100%;max-width:520px;font:inherit;font-size:15px;padding:9px 13px;border:1px solid #cfd6e3;border-radius:11px;background:#fff}
.wt{background:linear-gradient(180deg,#0f2342,#0a162c);color:#e6ebf5;padding:46px 0}
.wt-in{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:30px;align-items:start}
.wt h2,.wt h3{color:#fff}.wt h2{margin:4px 0 8px;font-size:30px}.wt p{color:#c8d2e4}.wt .small{font-size:12px;color:#9aa7bd}
.wt .cards .card{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:#fff}.wt .cards .card .yr,.wt .cards .card .pt{color:#c8d2e4}
.wt-flags{display:flex;flex-wrap:wrap;gap:8px;font-size:30px;margin:10px 0 18px}.wt-flags a:hover{text-decoration:none;transform:translateY(-2px)}.wt-flags.big{font-size:38px}
.wt-r{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:18px}
.lktop{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px}
.lktop a{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;color:inherit;background:rgba(255,255,255,.04)}.lktop a:hover{text-decoration:none;background:rgba(255,255,255,.1)}
.lktop .tn{width:22px;font-weight:800;color:#e9c46a;text-align:center}.lktop .tp{width:34px;height:42px;border-radius:7px;background:#556 center 18%/cover;flex:0 0 34px}
.lktop .tt{flex:1;min-width:0;display:flex;flex-direction:column}.lktop .tt b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lktop .tt small{font-size:11.5px;opacity:.75}
.lktop .tc{font-weight:800;color:#ff8fa3}.lktop .ld{opacity:.7;padding:8px}
.wrap>.lktop a,.pad>.lktop a{background:#f4f6fa;color:var(--ink)}.pad>.lktop .tc{color:#c60c30}
.foot .plat{color:#e6ebf5}.foot .plat b{color:#e9c46a;margin-right:6px}
.hero.hero-img{position:relative;background:#0a162c;overflow:hidden}
.hero.hero-img::before{content:"";position:absolute;inset:0;background:var(--hb) center/cover;opacity:.55;transform:scale(1.04);animation:hbz 24s ease-in-out infinite alternate}
.hero.hero-img::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,14,30,.9) 0%,rgba(6,14,30,.55) 55%,rgba(6,14,30,.2) 100%)}
.hero.hero-img>.wrap{position:relative;z-index:1}
@keyframes hbz{to{transform:scale(1.12)}}
.phead.ph5w{background:linear-gradient(120deg,#0a162c 0%,#13305e 60%,#1f4a8c 100%);color:#fff}
.phead.ph5w h1,.phead.ph5w h1 small{color:#fff}.phead.ph5w .lead{color:#e6ebf5}.phead.ph5w .eyebrow a{color:#e9d8a6}
.ph5w .ph5-img img{width:220px;height:280px}
@media (max-width:760px){.wt-in{grid-template-columns:1fr}.ph5w .ph5-img img{width:170px;height:216px}}
@media (prefers-reduced-motion:reduce){.hero.hero-img::before{animation:none}}
.fl{display:inline-block;width:21px;height:14px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12);vertical-align:-2px}
.fl.big{width:48px;height:32px;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.lktop .fl{width:18px;height:12px}

/* ---- 대통령 비교 /비교/ (11-12 3차) ---- */
.vs-h{background:linear-gradient(120deg,#0a162c 0%,#13305e 55%,#3a1020 100%);color:#fff;padding:40px 0 34px}
.vs-h .eyebrow a{color:#e9d8a6}.vs-h h1{color:#fff;font-size:clamp(30px,4.6vw,54px);margin:6px 0 22px;text-align:center}
.vs-pp{display:grid;grid-template-columns:1fr 90px 1fr;gap:16px;align-items:center;max-width:900px;margin:0 auto}
.vs-p{text-align:center;padding:18px;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15)}
.vs-img{display:grid;place-items:center;width:170px;height:212px;margin:0 auto 12px;border-radius:16px;background:#2a3a5a center 18%/cover;box-shadow:0 16px 40px rgba(0,0,0,.4)}
.vs-img i{font:700 64px serif;color:#9fb0cc;font-style:normal}
.vs-p p{margin:2px 0}.vs-c{font-size:13px;color:#c8d2e4}.vs-n{font:800 26px/1.25 "Nanum Myeongjo",serif}.vs-n a{color:#fff}.vs-e{font-size:13px;color:#aeb9cc}.vs-y{font-size:14px;color:#e9d8a6;margin-bottom:10px!important}
.vs-p .lk{border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.1);color:#fff}.vs-p .lk.on{background:#c60c30;border-color:#c60c30}
.vs-mid{display:grid;place-items:center;width:78px;height:78px;margin:auto;border-radius:50%;background:linear-gradient(135deg,#c60c30,#003478);font:900 26px/1 system-ui;color:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.08)}
.vs-sum{max-width:900px;margin:22px auto 0;padding:16px 20px 16px 38px;border-radius:16px;background:rgba(255,255,255,.08);color:#eef2fa;line-height:1.8}
.vs-t{width:100%;border-collapse:collapse}.vs-t th,.vs-t td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.vs-t thead th{background:#f4f6fa;font-size:15px}.vs-t thead th.va,.vs-t thead th.vb{font-family:"Nanum Myeongjo",serif;font-size:18px;color:var(--navy)}
.vs-t tbody th{width:26%;text-align:center;font-size:13px;color:var(--sub);font-weight:700}.vs-t td.va{text-align:right;width:37%}.vs-t td.vb{text-align:left;width:37%}
.vs-t td.w{color:#15803d;font-weight:800}
.vs-bar{display:flex;gap:4px;margin-top:5px;height:6px;direction:ltr}.vs-bar>span{flex:1;display:flex;height:6px;background:#eef1f6;border-radius:3px}.vs-bar>span:first-child{justify-content:flex-end}
.vs-bar i{display:block;height:6px;border-radius:3px;background:#2a5db0}.vs-bar>span:first-child i{background:#c60c30}
.vs-cols{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.vs-tl li.sa time{color:#c60c30}.vs-tl li.sb time{color:#2a5db0}
.vsw{margin:30px 0 10px;padding:20px;border-radius:18px;background:#f4f6fa;border:1px solid var(--line)}.vsw .sec{margin-top:0}
.vsw-f{display:flex;gap:8px;max-width:640px}.vsw-f input{flex:1;min-width:0;font:inherit;font-size:15px;padding:10px 13px;border:1px solid #cfd6e3;border-radius:11px}
.vsw-h{margin:14px 0 6px;font-size:13px;font-weight:700;color:var(--sub)}
.vsw-l{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.vsw-l a{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #d7deea;color:var(--ink);font-size:14px}.vsw-l a:hover{text-decoration:none;border-color:#9fb3d6}
.vsw-l b{color:#c60c30;font-size:12px}
@media (max-width:760px){.vs-pp{grid-template-columns:1fr 46px 1fr;gap:6px}.vs-img{width:112px;height:140px}.vs-n{font-size:19px}.vs-mid{width:44px;height:44px;font-size:15px}.vs-p{padding:10px}.vs-cols{grid-template-columns:1fr}.vs-t tbody th{width:30%}}
