/* ============================================================
   Korea 101 — app shell (Reddit-style layout)
   Loaded LAST on every page so it overrides styles.css,
   community.css and any per-page <style>.
   Layout: sticky top bar · left nav · center feed · right rail
   ============================================================ */
:root{
  --canvas:#FFFFFF; --soft:#F5F7F8; --soft2:#EAEEF0; --hover:#EEF2F3;
  --line:#E3E8EA; --ink:#0F1A1C; --text:#1F2D2A; --muted:#5C6F6B;
  --primary:#12796A; --primary-ink:#0C574B; --primary-soft:#E5F3EE;
  --up:#D93A00; --down:#4C62D6;
  --topbar:56px; --lnav:264px; --rail:316px; --col:760px;
}
html{scroll-padding-top:calc(var(--topbar) + 12px)}
body{background:var(--canvas);color:var(--text);font-family:"Inter",-apple-system,"Segoe UI",Roboto,sans-serif}
h1,h2,h3{font-family:"Inter",-apple-system,"Segoe UI",sans-serif}

/* neutralise the old page frame inside the shell */
.shell .wrap{max-width:none;margin:0;padding:0}
.shell .page-body,.shell .catalog{padding:0}
.shell .article{max-width:none}

/* ---------------- top bar ---------------- */
.top{position:sticky;top:0;z-index:50;height:var(--topbar);background:var(--canvas);
  border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 16px}
.top .brand{font-family:"Bricolage Grotesque","Inter",sans-serif;font-weight:800;font-size:1.3rem;letter-spacing:-.02em;
  display:inline-flex;align-items:baseline;gap:6px;color:var(--ink);flex:none}
.top .brand .oneoone{background:var(--primary);color:#fff;border-radius:8px;padding:1px 8px;font-size:.9em}
.burger{display:none;width:40px;height:40px;border:0;background:none;border-radius:50%;cursor:pointer;color:var(--ink);flex:none}
.burger:hover{background:var(--hover)}
.burger svg{width:22px;height:22px;margin:auto}

.search{flex:1;max-width:560px;margin:0 auto;position:relative}
.search-box{display:flex;align-items:center;gap:8px;height:40px;background:var(--soft2);border:1px solid transparent;
  border-radius:999px;padding:0 14px;transition:.12s}
.search-box:hover{background:#E2E7EA}
.search-box:focus-within{background:var(--canvas);border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.search-box svg{width:18px;height:18px;color:var(--muted);flex:none}
.search-box input{flex:1;min-width:0;border:0;background:none;outline:none;font:400 .94rem/1 Inter,sans-serif;color:var(--ink)}
.search-box kbd{font:600 .7rem/1 Inter,sans-serif;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:3px 6px;background:var(--canvas)}
.search-pop{display:none;position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--canvas);border:1px solid var(--line);
  border-radius:16px;box-shadow:0 12px 32px rgba(10,25,22,.14);padding:6px;max-height:70vh;overflow:auto;z-index:60}
.search-pop.open{display:block}
.sr{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:10px;color:var(--ink)}
.sr:hover,.sr.on{background:var(--hover)}
.sr .ic{width:32px;height:32px;border-radius:50%;flex:none}
.sr b{display:block;font:600 .92rem/1.3 Inter,sans-serif}
.sr small{display:block;color:var(--muted);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-body{min-width:0}
.sr-empty{padding:14px;color:var(--muted);font-size:.9rem}
.sr-head{padding:8px 10px 4px;font:700 .7rem/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

.top-actions{display:flex;align-items:center;gap:8px;flex:none}
.pill{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;border-radius:999px;border:1px solid transparent;
  font:600 .9rem/1 Inter,sans-serif;color:var(--ink);background:none;cursor:pointer;white-space:nowrap;transition:.12s}
.pill svg{width:18px;height:18px;flex:none}
.pill:hover{background:var(--hover)}
.pill.solid{background:var(--primary);color:#fff}
.pill.solid:hover{background:var(--primary-ink)}
.pill.line{border-color:var(--line);background:var(--canvas)}
.pill.line:hover{border-color:#C7D0D3;background:var(--soft)}
.pill.sm{height:32px;padding:0 12px;font-size:.82rem}
.pill.gray{background:var(--soft2)}
.pill.gray:hover{background:#DDE3E6}

/* header auth widget (from header-auth.js) */
.head-auth{order:0}
.ha-btn{height:40px;border-radius:999px;border:1px solid transparent;background:none;padding:4px 10px 4px 4px;font:600 .88rem/1 Inter,sans-serif}
.ha-btn:hover{background:var(--hover);border-color:transparent}
.ha-av{width:32px;height:32px}
.ha-signin{background:var(--primary);color:#fff;padding:0 16px;border-color:var(--primary)}
.ha-signin:hover{background:var(--primary-ink);border-color:var(--primary-ink)}
.ha-menu{border-radius:12px}

/* ---------------- shell grid ---------------- */
.shell{display:grid;grid-template-columns:var(--lnav) minmax(0,1fr);min-height:calc(100vh - var(--topbar))}
.lnav{position:sticky;top:var(--topbar);height:calc(100vh - var(--topbar));overflow-y:auto;border-right:1px solid var(--line);
  padding:12px 12px 24px;background:var(--canvas);scrollbar-width:thin}
.shell-main{display:flex;justify-content:center;align-items:flex-start;gap:24px;padding:16px 24px 48px;min-width:0}
.col{flex:1 1 auto;max-width:var(--col);min-width:0}
.rail{flex:none;width:var(--rail);position:sticky;top:calc(var(--topbar) + 16px);max-height:calc(100vh - var(--topbar) - 32px);
  overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column;gap:16px}
.rail::-webkit-scrollbar{display:none}

/* left nav */
.ln-item{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border-radius:8px;color:var(--text);
  font:500 .92rem/1 Inter,sans-serif}
.ln-item:hover{background:var(--hover)}
.ln-item.on{background:var(--soft2);color:var(--ink);font-weight:600}
.ln-item svg.g{width:20px;height:20px;flex:none;color:var(--ink)}
.ln-sep{height:1px;background:var(--line);margin:12px 8px}
.ln-head{padding:6px 12px 6px;font:600 .72rem/1 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.ln-small{display:flex;flex-wrap:wrap;gap:4px 12px;padding:4px 12px;font-size:.78rem;color:var(--muted)}
.ln-small a:hover{color:var(--ink);text-decoration:underline}

/* topic icon (circle with emblem) */
.ic{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--s1,#E5F3EE);color:var(--acc,var(--primary));flex:none}
.ic svg{width:62%;height:62%}
.ln-item .ic{width:28px;height:28px}
.ic.brand{background:var(--primary);color:#fff;font:800 .62rem/1 "Bricolage Grotesque",Inter,sans-serif;letter-spacing:-.02em}
.ax-free{--acc:#12796A;--s1:#E5F3EE;--s2:#CFEADF}
.ax-k101{--acc:#12796A;--s1:#E5F3EE;--s2:#CDE9DE}

/* ---------------- community-style header (home / section / board) ---------------- */
.sub-head{margin-bottom:8px}
.sub-banner{height:104px;border-radius:12px;background:linear-gradient(120deg,var(--s1),var(--s2));position:relative;overflow:hidden}
.sub-banner svg{position:absolute;right:28px;top:50%;width:150px;height:150px;transform:translateY(-50%) rotate(-8deg);color:var(--acc);opacity:.14}
.sub-row{display:flex;align-items:flex-end;gap:14px;padding:0 16px;margin-top:-38px;position:relative}
.sub-avatar{width:88px;height:88px;border:4px solid var(--canvas);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.sub-avatar.brand{font-size:1.5rem}
.sub-title{padding-bottom:6px;min-width:0}
.sub-title h1{font-size:1.75rem;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:0}
.sub-code{font:600 .8rem/1.4 Inter,sans-serif;color:var(--muted);margin-top:3px}
.sub-actions{margin-left:auto;display:flex;gap:8px;padding-bottom:8px;flex-wrap:wrap;justify-content:flex-end}
.sub-desc{padding:12px 16px 0;color:var(--muted);font-size:.95rem;max-width:64ch}
.sub-head .wx{margin:12px 16px 0}

/* sort / section strip */
.strip,.shell .sec-lab{display:flex;align-items:center;gap:10px;margin:18px 0 6px;padding:0 4px 8px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.strip h2,.shell .sec-lab h2{font:700 1rem/1.3 Inter,sans-serif;color:var(--ink);letter-spacing:0;display:inline-flex;align-items:center;gap:8px}
.strip h2 svg{width:18px;height:18px;color:var(--up)}
.shell .sec-lab .hint{font-size:.85rem;color:var(--muted)}
.strip .more{margin-left:auto;font:600 .85rem/1 Inter,sans-serif;color:var(--primary-ink)}
.strip .more:hover{text-decoration:underline}

/* create-post bar */
.create{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;padding:8px 10px;margin:14px 0 4px;background:var(--canvas)}
.create:hover{border-color:#C7D0D3}
.create .ic{width:38px;height:38px}
.create .fake{flex:1;height:40px;border-radius:999px;background:var(--soft2);display:flex;align-items:center;padding:0 16px;color:var(--muted);font-size:.93rem}
.create:hover .fake{background:#E2E7EA}
.create .cr-ico{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--muted)}
.create .cr-ico svg{width:20px;height:20px}
.create:hover .cr-ico{background:var(--hover)}

/* ---------------- feed rows (guide & topic cards) ---------------- */
.shell .cards{display:flex;flex-direction:column;gap:0;grid-template-columns:none}
.shell .card{position:relative;display:flex;flex-direction:row-reverse;align-items:flex-start;gap:16px;background:transparent;
  border:0;border-radius:16px;box-shadow:none;padding:12px 16px;overflow:visible;transition:background .12s}
.shell .card:hover{background:var(--soft);transform:none;box-shadow:none}
.shell .card+.card::before{content:"";position:absolute;top:0;left:16px;right:16px;border-top:1px solid var(--line)}
.shell .card:hover::before,.shell .card:hover+.card::before{border-color:transparent}
.shell .banner{width:132px;height:96px;flex:none;border-radius:12px;margin-top:2px}
.shell .banner svg.emblem{width:42px;height:42px}
.shell .banner .code{display:none}
.shell .card-body{padding:0;flex:1;min-width:0}
.shell .card-body h3{font:600 1.08rem/1.35 Inter,sans-serif;color:var(--ink);letter-spacing:-.005em;margin:2px 0 4px}
.shell .card:hover h3{color:var(--primary-ink)}
.shell .card-body .desc{font-size:.9rem;line-height:1.5;color:var(--muted);margin:0 0 10px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shell .card-body .topics{gap:6px;margin-top:0}
.shell .card-body .topics span{font:600 .74rem/1 Inter,sans-serif;color:var(--acc);background:var(--s1);border-radius:999px;padding:5px 9px}
.shell .card-body .go{margin-top:10px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;
  background:var(--soft2);color:var(--ink);font:600 .78rem/1 Inter,sans-serif;align-self:flex-start}
.shell .card:hover .go{gap:6px;background:#DDE3E6}
.pmeta{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--muted);margin-bottom:2px;flex-wrap:wrap}
.pmeta .ic{width:20px;height:20px}
.pmeta b{color:var(--ink);font-weight:600}
.pmeta .dot::before{content:"•";margin:0 1px}

/* ---------------- post view (guide articles & info pages) ---------------- */
.post-head{margin-bottom:6px}
.post-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.back{width:32px;height:32px;border-radius:50%;background:var(--soft2);display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--ink)}
.back:hover{background:#DDE3E6}
.back svg{width:16px;height:16px}
.post-top .ic{width:32px;height:32px}
.post-top .who{line-height:1.25;font-size:.8rem;color:var(--muted)}
.post-top .who a{color:var(--ink);font-weight:600}
.post-top .who a:hover{text-decoration:underline}
.post-head h1{font-size:1.85rem;line-height:1.2;font-weight:700;letter-spacing:-.02em;color:var(--ink);margin:0 0 8px}
.post-sub{color:var(--muted);font-size:1.02rem;margin:0 0 14px;max-width:64ch}
.post-media{border-radius:16px;background:linear-gradient(130deg,var(--s1),var(--s2));display:flex;align-items:center;justify-content:center;
  height:240px;overflow:hidden;border:1px solid var(--line)}
.post-media .hero-illo{width:300px;height:230px;opacity:1}
.post-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.post-actions .pill{height:34px;padding:0 13px;font-size:.82rem;background:var(--soft2)}
.post-actions .pill:hover{background:#DDE3E6}
.post-actions .pill.solid{background:var(--primary);color:#fff}
.post-actions .pill.solid:hover{background:var(--primary-ink)}

/* article content, re-tuned */
.shell .article .lead-tldr{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:16px 18px;margin:0 0 22px}
.shell .article .lead-tldr h2{font:700 .74rem/1 Inter,sans-serif;letter-spacing:.07em;color:var(--primary-ink);margin-bottom:10px}
.shell .article h2.sec{font:700 1.3rem/1.3 Inter,sans-serif;letter-spacing:-.01em;color:var(--ink);margin:30px 0 10px}
.shell .article h3{font:600 1.05rem/1.35 Inter,sans-serif;color:var(--ink)}
.shell .article p,.shell .article ul.list li{color:var(--text);font-size:1rem;line-height:1.7}
.shell .article a:not(.btn):not(.pill){color:var(--primary-ink);text-decoration:underline;text-underline-offset:2px}
.shell .step{border-radius:12px;box-shadow:none;border:1px solid var(--line);padding:14px 16px 14px 58px}
.shell .step::before{left:14px;top:14px;width:30px;height:30px;border-radius:50%;font-family:Inter,sans-serif;font-size:.9rem}
.shell .callout{border-radius:12px;border-left-width:4px}
.shell .faq details{border-radius:12px}
.shell table.cmp{font-size:.9rem;border-radius:12px;overflow:hidden}
.shell .sources{border-radius:12px;background:var(--soft);border:1px solid var(--line)}

/* CTA band → community prompt card */
.shell .commons{background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin:28px 0 8px;gap:16px;color:var(--ink)}
.shell .commons h2{font:700 1.1rem/1.3 Inter,sans-serif;color:var(--ink);letter-spacing:0}
.shell .commons p{color:var(--muted);font-size:.92rem;margin-top:4px}
.shell .commons .cdeco{display:none}
.shell .btn{font-family:Inter,sans-serif;font-weight:600;font-size:.9rem;border-radius:999px;padding:11px 18px}
.shell .empty{border-radius:16px;box-shadow:none;max-width:none;background:var(--soft);padding:18px 20px}
.shell .wxgrid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.shell .wxcard{border-radius:16px;box-shadow:none}

/* weather chips */
.shell .wx{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.shell .wx .wx-lab{display:none}
.shell .wx .chip{background:var(--canvas);border:1px solid var(--line);padding:5px 11px;font-size:.82rem}

/* ---------------- right rail cards ---------------- */
.rcard{background:var(--soft);border-radius:16px;padding:16px;font-size:.88rem;color:var(--text)}
.rcard.bare{background:none;padding:4px 16px}
.rcard h4{font:700 .74rem/1 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.rcard .rc-name{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rcard .rc-name .ic{width:36px;height:36px}
.rcard .rc-name b{font:700 1rem/1.25 Inter,sans-serif;color:var(--ink)}
.rcard p{color:var(--muted);line-height:1.55;margin:0 0 12px}
.rc-stats{display:flex;gap:22px;margin:4px 0 14px}
.rc-stats div{font-size:.76rem;color:var(--muted);line-height:1.3}
.rc-stats b{display:block;font:700 1rem/1.2 Inter,sans-serif;color:var(--ink)}
.rc-btns{display:flex;flex-direction:column;gap:8px}
.rc-btns .pill{justify-content:center;height:38px}
.rc-list{display:flex;flex-direction:column;margin:0 -8px}
.rc-list a{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;color:var(--ink)}
.rc-list a:hover{background:var(--hover)}
.rc-list .ic{width:30px;height:30px}
.rc-list b{display:block;font:600 .86rem/1.3 Inter,sans-serif}
.rc-list small{display:block;font-size:.76rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-list span.t{min-width:0}
.rc-rules{list-style:none;margin:0;padding:0;counter-reset:r}
.rc-rules li{counter-increment:r;display:flex;gap:10px;padding:9px 0;border-top:1px solid var(--line);line-height:1.45}
.rc-rules li:first-child{border-top:0;padding-top:0}
.rc-rules li::before{content:counter(r);font:700 .8rem/1.45 Inter,sans-serif;color:var(--muted);min-width:12px}
.rc-rules b{color:var(--ink);font-weight:600}
.rcard .wx{margin:0}

/* footer in rail */
.shell .site-foot{border:0;margin:0;padding:4px 16px 8px;background:none}
.shell .site-foot .links{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.78rem;color:var(--muted)}
.shell .site-foot .links a:hover{color:var(--ink);text-decoration:underline}
.shell .site-foot p{font-size:.75rem;color:var(--muted);margin-top:8px;line-height:1.5}

/* ---------------- homepage community feed (home-community.js) ---------------- */
.shell .ch-feed{display:flex;flex-direction:column;gap:0}
.hp{position:relative;display:flex;gap:14px;padding:10px 16px 8px;border-radius:16px;color:var(--ink)}
.hp:hover{background:var(--soft)}
.hp+.hp::before{content:"";position:absolute;top:0;left:16px;right:16px;border-top:1px solid var(--line)}
.hp:hover::before,.hp:hover+.hp::before{border-color:transparent}
.hp-main{flex:1;min-width:0}
.hp-title{font:600 1.04rem/1.35 Inter,sans-serif;margin:3px 0 8px;color:var(--ink)}
.hp:hover .hp-title{color:var(--primary-ink)}
.hp-flair{display:inline-block;font:600 .72rem/1 Inter,sans-serif;color:var(--tacc);background:var(--tsoft);padding:4px 8px;border-radius:999px}
.hp-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.hp-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;background:var(--soft2);
  font:600 .78rem/1 Inter,sans-serif;color:var(--ink)}
.hp-chip svg{width:16px;height:16px}
.hp-chip .up{color:var(--up)}
.hp-thumb{width:112px;height:84px;border-radius:12px;object-fit:cover;flex:none;border:1px solid var(--line);margin-top:4px}
.shell .ch-skel{height:92px;border-radius:16px;margin:6px 0}
.shell .ch-invite{border-radius:16px;margin-top:8px}
.ch-more{display:inline-flex;margin:8px 16px 0;font:600 .88rem/1 Inter,sans-serif;color:var(--primary-ink)}
.ch-more:hover{text-decoration:underline}

/* ---------------- community board inside the shell ---------------- */
.shell .cm-page{background:none}
.shell .cm-page .wrap{max-width:none}
.shell .cm-page .cm-bar{border-radius:16px;border-color:var(--line);padding:8px 10px}
.shell .cm-page .cm-btn{border-radius:999px}
.shell .cm-page .cm-btn.primary{background:var(--primary);border-color:var(--primary)}
.shell .cm-page .cm-btn.primary:hover{background:var(--primary-ink);border-color:var(--primary-ink)}
.shell .cm-page .cm-controls{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:4px 0 10px;background:none}
.shell .cm-page .cm-feed{gap:0}
.shell .cm-page .cm-post{border:0;border-radius:16px;position:relative}
.shell .cm-page .cm-post:hover{background:var(--soft)}
.shell .cm-page .cm-post:hover .cm-vote{background:transparent}
.shell .cm-page .cm-post+.cm-post::before{content:"";position:absolute;top:0;left:12px;right:12px;border-top:1px solid var(--line)}
.shell .cm-page .cm-vote{background:transparent}
.shell .cm-page .cm-arrow.up.on,.shell .cm-page .cm-arrow.up:hover{color:var(--up)}
.shell .cm-page .cm-arrow.down.on,.shell .cm-page .cm-arrow.down:hover{color:var(--down)}
.shell .cm-page .cm-detail{border:0;padding:4px 0}
.shell .cm-page .cm-post h3:hover{color:var(--primary-ink)}
.shell .cm-page .cm-back{color:var(--primary-ink)}

/* ---------------- drawer overlay ---------------- */
.scrim{display:none}

/* ---------------- responsive ---------------- */
@media (max-width:73.75em){
  .shell-main{flex-direction:column;align-items:center}
  .col{width:100%}
  .rail{position:static;width:100%;max-width:var(--col);max-height:none;overflow:visible;
    display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));align-items:start}
  .rail .site-foot{grid-column:1/-1}
}
@media (max-width:60em){
  .shell{grid-template-columns:minmax(0,1fr)}
  .burger{display:inline-flex}
  .lnav{position:fixed;top:var(--topbar);left:0;bottom:0;height:auto;width:min(82vw,var(--lnav));z-index:45;
    transform:translateX(-102%);transition:transform .2s ease;box-shadow:0 0 0 rgba(0,0,0,0)}
  body.nav-open .lnav{transform:none;box-shadow:8px 0 32px rgba(0,0,0,.12)}
  body.nav-open .scrim{display:block;position:fixed;inset:var(--topbar) 0 0 0;background:rgba(10,20,18,.35);z-index:44}
  .shell-main{padding:12px 16px 40px}
}
@media (max-width:45em){
  .top{gap:6px;padding:0 8px}
  .top .brand{font-size:1.15rem}
  .search-box kbd{display:none}
  .pill.create-btn span{display:none}
  .pill.create-btn{width:40px;padding:0;justify-content:center}
  .ha-name{display:none}
  .sub-row{flex-wrap:wrap;margin-top:-30px;padding:0 8px}
  .sub-avatar{width:68px;height:68px}
  .sub-title h1{font-size:1.4rem}
  .sub-actions{margin-left:0;width:100%;justify-content:flex-start}
  .sub-desc{padding:10px 8px 0}
  .shell .card{padding:12px 8px}
  .shell .card+.card::before,.hp+.hp::before{left:8px;right:8px}
  .shell .banner{width:88px;height:72px}
  .shell .banner svg.emblem{width:32px;height:32px}
  .hp{padding:10px 8px 8px}
  .hp-thumb{width:84px;height:64px}
  .post-head h1{font-size:1.5rem}
  .post-media{height:180px}
  .post-media .hero-illo{width:220px;height:170px}
}
@media (max-width:30em){
  .search{max-width:none}
  .top .brand .oneoone{padding:1px 6px}
  .shell .card-body .desc{-webkit-line-clamp:3}
}

/* sub-head: title sits under the banner, long titles flow down */
.sub-row{align-items:flex-start}
.sub-title{padding-top:44px;padding-bottom:0}
.sub-actions{padding-top:46px;padding-bottom:0}
.sub-banner svg.skyline{position:absolute;left:0;right:0;bottom:-1px;top:auto;width:100%;height:auto;transform:none;color:#BFE0D4;opacity:.9}
@media (max-width:45em){
  .sub-title{padding-top:34px}
  .sub-actions{padding-top:10px}
}
.sub-row{z-index:2}.sub-banner svg.skyline{z-index:0}
.search{min-width:0}
.search-box input{width:100%}
.shell .cm-page .cm-chip.on{background:var(--tacc,var(--primary));border-color:var(--tacc,var(--primary))}
.shell .cm-page .cm-btn.google{background:#fff;border:1px solid var(--line);color:var(--ink)}
.shell .cm-page .cm-btn.google:hover{background:var(--soft)}
@media (max-width:30em){.search-box{padding:0 10px}.search-box input::}

/* ============================================================
   BLUE THEME + solid icon style (v2)
   ============================================================ */
:root{
  --primary:#2563EB; --primary-ink:#1D4ED8; --primary-soft:#EAF1FE;
  --ink:#0F172A; --text:#1E293B; --muted:#64748B; --line:#E2E8F0;
  --soft:#F5F7FA; --soft2:#EAEEF3; --hover:#EEF2F6; --bg:#FFFFFF; --panel:#FFFFFF;
}
/* topics: --acc solid colour, --acct text colour on --s1 tint, --acc2 banner end */
.ax-imm {--acc:#4F46E5;--acct:#4338CA;--s1:#EEF0FF;--s2:#E0E3FF;--acc2:#3730A3}
.ax-job {--acc:#D97706;--acct:#B45309;--s1:#FEF3E2;--s2:#FDE7C4;--acc2:#B45309}
.ax-liv {--acc:#E0533D;--acct:#C2410C;--s1:#FDEDEA;--s2:#FBDAD3;--acc2:#B4321F}
.ax-mov {--acc:#0891B2;--acct:#0E7490;--s1:#E3F5F9;--s2:#C9EBF3;--acc2:#0E6E86}
.ax-see {--acc:#9333EA;--acct:#7E22CE;--s1:#F4EAFD;--s2:#E9D5FB;--acc2:#6B21A8}
.ax-free,.ax-k101{--acc:#2563EB;--acct:#1D4ED8;--s1:#EAF1FE;--s2:#D6E4FD;--acc2:#1E3A8A}
.tagc-immigration{--tacc:#4338CA;--tsoft:#EEF0FF}
.tagc-jobs{--tacc:#B45309;--tsoft:#FEF3E2}
.tagc-living{--tacc:#C2410C;--tsoft:#FDEDEA}
.tagc-transport{--tacc:#0E7490;--tsoft:#E3F5F9}
.tagc-travel{--tacc:#7E22CE;--tsoft:#F4EAFD}
.tagc-free{--tacc:#1D4ED8;--tsoft:#EAF1FE}

/* solid round icons, white glyph (community-avatar style) */
.ic{background:var(--acc,var(--primary));color:#fff}
.ic svg{width:58%;height:58%;stroke-width:2.2}
.ic.brand{background:var(--primary)}
.ln-item .ic{width:26px;height:26px}
.pmeta .ic{width:20px;height:20px}
.pmeta .ic svg{stroke-width:2.6}
.ln-item svg.g{width:20px;height:20px;stroke-width:1.9}

/* banners: plain colour, no artwork */
.sub-banner{background:linear-gradient(115deg,var(--acc) 0%,var(--acc2) 100%);height:88px}
.sub-row{margin-top:-30px}
.sub-title{padding-top:36px}
.sub-actions{padding-top:38px}
.sub-avatar{border-color:var(--canvas)}
.sub-avatar svg{width:50%;height:50%}

/* feed rows are text posts now (no thumbnails) */
.shell .card{flex-direction:column;gap:0;padding:12px 16px 12px}
.shell .card-body .topics span{color:var(--acct,var(--primary-ink));background:var(--s1)}
.shell .card-body .go{margin-top:10px}

/* post view without illustration */
.post-head h1{margin-top:2px}
.post-sub{margin-bottom:10px}

/* strip / misc accents */
.strip h2 svg{width:18px;height:18px;color:#F97316}
.strip .more{color:var(--primary)}
.shell .article .lead-tldr h2{color:var(--primary-ink)}
.shell .article a:not(.btn):not(.pill){color:var(--primary-ink)}
.hp-chip .up{color:#F97316}
.shell .cm-page .cm-arrow.up.on,.shell .cm-page .cm-arrow.up:hover{color:#F97316}
.cm-xlate,.shell .cm-page .cm-xlate{background:#F1F5FD;border-color:#DCE6F8}
.cm-xlate-label,.cm-xlate-label a{color:var(--primary-ink)}
.ch-dot{background:#3B82F6}
.mod-status.s-open{color:var(--primary-ink)}
:focus-visible{outline-color:var(--primary)}
@media (max-width:45em){
  .sub-title{padding-top:30px}
  .sub-actions{padding-top:8px}
  .shell .card{padding:12px 8px}
}

/* compact community header — no empty banner (v3) */
.sub-head{padding:8px 0 4px;border-bottom:0}
.sub-row{margin-top:0;align-items:center;padding:0 16px;gap:16px}
.sub-avatar{width:64px;height:64px;border:0;box-shadow:none}
.sub-avatar.brand{font-size:1.15rem}
.sub-title{padding-top:0}
.sub-title h1{font-size:1.6rem}
.sub-actions{padding-top:0}
.sub-desc{padding:10px 16px 0 96px}
@media (max-width:45em){
  .sub-row{padding:0 8px;gap:12px}
  .sub-avatar{width:52px;height:52px}
  .sub-title{flex:1}
  .sub-title h1{font-size:1.3rem}
  .sub-actions{padding-top:4px}
  .sub-desc{padding:10px 8px 0}
}
@media (max-width:30em){
  .pill.create-btn{display:none}
  .create .fake{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:40px}
  .ha-signin{padding:0 12px}
}

/* ============================================================
   v4 — scale with the visitor's font size (rem-based layout,
   no fixed heights that clip/overlap when text is larger)
   ============================================================ */
:root{--topbar:3.5rem; --lnav:16.5rem; --rail:19.75rem; --col:47.5rem}
.top{height:auto;min-height:var(--topbar);padding-top:.4rem;padding-bottom:.4rem}
.lnav{top:var(--topbar)}
.ln-item{height:auto;min-height:2.5rem;padding:.45rem .75rem;line-height:1.25}
.pill{height:auto;min-height:2.5rem;padding:.5rem 1rem;line-height:1.2}
.pill.sm{min-height:2rem}
.post-actions .pill{min-height:2.125rem;padding:.4rem .8rem}
.rc-btns .pill{min-height:2.375rem}
.search-box{height:auto;min-height:2.5rem;padding:.3rem .9rem}
.ha-btn{height:auto;min-height:2.5rem}
.hp-chip{height:auto;min-height:1.875rem;padding:.3rem .7rem}
.shell .card-body .go{height:auto;min-height:1.875rem;padding:.35rem .75rem}
.create .fake{height:auto;min-height:2.5rem;line-height:1.3;padding:.55rem 1rem}
.burger{width:2.5rem;height:2.5rem}
.ic svg{flex:none}
.ln-item .ic{width:1.625rem;height:1.625rem}
.pmeta .ic{width:1.25rem;height:1.25rem}
.rc-list .ic{width:1.875rem;height:1.875rem}
.rcard .rc-name .ic{width:2.25rem;height:2.25rem}
.sub-avatar{width:4rem;height:4rem}
.back,.post-top .ic{width:2rem;height:2rem}
@media (max-width:45em){.sub-avatar{width:3.25rem;height:3.25rem}}
@media (max-width:30em){.create .fake{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.sub-title{flex:1;min-width:0}
.sub-desc{padding-left:6rem}
@media (max-width:45em){.sub-desc{padding-left:.5rem}}

/* v5 — board: drop buttons duplicated by the page header / top bar */
.shell .cm-page .cm-bar > .cm-btn.primary{display:none}      /* "+ New post" = "Create post" above */
.shell .cm-page .cm-auth .cm-btn.google{display:none}         /* sign-in lives in the top bar */
.shell .cm-page .cm-bar{background:none;border:0;padding:0;margin:0 0 6px;min-height:0}
.shell .cm-page .cm-bar:empty{display:none}

/* ============================================================
   v6 — Job Board
   ============================================================ */
.jb-page{margin-top:6px}
.jb-muted{color:var(--muted);font-size:.9rem;line-height:1.55;margin:4px 0 12px}
.jb-card{border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--canvas);margin-top:8px}
.jb-card h2{font:700 1.2rem/1.3 Inter,sans-serif;color:var(--ink);margin:0 0 6px}
.jb-center{text-align:center;padding:32px 20px}
.jb-center .pill{margin-top:6px}
.jb-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:8px;padding:4px 0 12px;border-bottom:1px solid var(--line)}
.jb-filters input,.jb-filters select,.jb-form input,.jb-form select,.jb-form textarea,.jb-code input{
  width:100%;min-height:2.5rem;border:1px solid var(--line);border-radius:12px;background:var(--canvas);padding:.5rem .8rem;
  font:400 .92rem/1.4 Inter,sans-serif;color:var(--ink)}
.jb-filters input:focus,.jb-filters select:focus,.jb-form input:focus,.jb-form select:focus,.jb-form textarea:focus,.jb-code input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.jb-search{display:block}
.jb-count{font:600 .8rem/1 Inter,sans-serif;color:var(--muted);padding:12px 16px 4px}
.jb-row{position:relative;display:block;padding:12px 16px;border-radius:16px;color:var(--ink)}
.jb-row:hover{background:var(--soft)}
.jb-row+.jb-row::before{content:"";position:absolute;top:0;left:16px;right:16px;border-top:1px solid var(--line)}
.jb-row:hover::before,.jb-row:hover+.jb-row::before{border-color:transparent}
.jb-row.static:hover{background:none}
.jb-title{font:600 1.08rem/1.35 Inter,sans-serif;margin:3px 0 6px}
.jb-row:hover .jb-title{color:var(--primary-ink)}
.jb-facts{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.86rem;color:var(--text);margin-bottom:8px}
.jb-pay{font-weight:700;color:var(--ink)}
.jb-perk{color:#047857;font-weight:600}
.jb-visas{display:flex;flex-wrap:wrap;gap:6px}
.jb-visa{font:700 .74rem/1 Inter,sans-serif;color:#B45309;background:#FEF3E2;border-radius:999px;padding:5px 9px}
.jb-visas.lg .jb-visa{font-size:.8rem;padding:7px 11px}
.jb-detail{padding:4px 0}
.jb-h1{font:700 1.7rem/1.25 Inter,sans-serif;color:var(--ink);letter-spacing:-.015em;margin:4px 0 14px}
.jb-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:10px;margin:0 0 6px;background:var(--soft);border-radius:16px;padding:14px 16px}
.jb-dl dt{font:600 .72rem/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.jb-dl dd{margin:0;font-weight:600;color:var(--ink);font-size:.95rem}
.jb-sub{font:700 .78rem/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:22px 0 10px}
.jb-body{white-space:pre-wrap;word-break:break-word;font-size:1rem;line-height:1.7;color:var(--text)}
.jb-apply{border:1px solid #BFD3FB;background:var(--primary-soft);border-radius:16px;padding:14px 16px;margin-top:22px}
.jb-legal{font-size:.8rem;line-height:1.55;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:8px}
.jb-banner{background:#FEF3E2;border:1px solid #FBD9A5;color:#7C4A03;border-radius:12px;padding:10px 14px;font-size:.9rem;margin-bottom:14px}
.jb-banner a{color:#7C4A03;font-weight:700;text-decoration:underline}
/* form */
.jb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.jb-field{margin:10px 0}
.jb-field>label{display:block;font:600 .85rem/1.3 Inter,sans-serif;color:var(--ink);margin-bottom:6px}
.jb-field .ko,.jb-opt .ko{font-weight:500;color:var(--muted)}
.jb-hint{font-size:.8rem;color:var(--muted);margin-top:6px;line-height:1.5}
.jb-warn{color:#B91C1C !important;font-weight:600}
.jb-pair{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.jb-pair select{flex:0 0 auto;width:auto;min-width:8.5rem}
.jb-pair input{flex:1;min-width:8rem}
.jb-check{display:flex;align-items:flex-start;gap:8px;font-size:.9rem;color:var(--text);cursor:pointer;line-height:1.4}
.jb-check input{width:1.05rem;height:1.05rem;min-height:0;margin-top:.12rem;accent-color:var(--primary);flex:none}
.jb-visa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(13.5rem,1fr));gap:6px}
.jb-visa-grid .jb-check{border:1px solid var(--line);border-radius:10px;padding:.55rem .7rem}
.jb-visa-grid .jb-check:has(input:checked){border-color:var(--primary);background:var(--primary-soft)}
.jb-agree{background:var(--soft);border-radius:12px;padding:12px 14px;margin:14px 0 6px;font-size:.84rem}
.jb-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px}
.jb-actions.center{justify-content:center}
/* publish */
.jb-steps{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.jb-steps span{font:600 .76rem/1 Inter,sans-serif;padding:6px 10px;border-radius:999px;background:var(--soft2);color:var(--muted)}
.jb-steps span.on{background:var(--primary);color:#fff}
.jb-steps span.done{background:var(--primary-soft);color:var(--primary-ink)}
.jb-center .jb-steps{justify-content:center}
.jb-preview{border:1px dashed var(--line);border-radius:16px;margin:10px 0 16px}
.jb-pay-opts{display:grid;gap:10px}
.jb-opt{border:2px solid var(--line);border-radius:16px;padding:14px 16px}
.jb-opt.on{border-color:var(--primary)}
.jb-opt.disabled{opacity:.6;background:var(--soft)}
.jb-opt-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jb-opt-h b{font-size:1rem;color:var(--ink)}
.jb-radio{width:1.1rem;height:1.1rem;border-radius:50%;border:2px solid var(--line);flex:none}
.jb-opt.on .jb-radio{border:5px solid var(--primary)}
.jb-tag{margin-left:auto;font:700 .7rem/1 Inter,sans-serif;padding:5px 9px;border-radius:999px;background:#DCFCE7;color:#047857}
.jb-tag.gray{background:var(--soft2);color:var(--muted)}
.jb-code{display:flex;gap:8px;flex-wrap:wrap}
.jb-code input{flex:1;min-width:10rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
/* my posts */
.jb-mine-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.jb-mine-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.jb-mine-row .t{flex:1;min-width:12rem}
.jb-mine-row .t a:hover b{color:var(--primary-ink)}
.jb-mine-row small{display:block;color:var(--muted);font-size:.8rem;margin-top:2px}
.jb-mine-row .a{display:flex;gap:6px}
.jb-status{font:700 .7rem/1 Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em;padding:5px 9px;border-radius:999px;background:var(--soft2);color:var(--muted)}
.jb-status.s-live{background:#DCFCE7;color:#047857}
.jb-status.s-draft{background:#FEF3E2;color:#B45309}
.jb-status.s-removed{background:#FDEDEA;color:#C2410C}
.sub-actions .pill.on{outline:2px solid var(--primary-soft)}
/* promo banner on Jobs section page */
.jb-promo{display:flex;align-items:center;gap:12px;border:1px solid #FBD9A5;background:#FFF8EC;border-radius:16px;padding:12px 14px;margin:10px 0 4px;color:var(--ink)}
.jb-promo:hover{border-color:#F59E0B}
.jb-promo .ic{width:2.5rem;height:2.5rem}
.jb-promo span:nth-child(2){flex:1;min-width:0}
.jb-promo b{display:block;font-size:.98rem}
.jb-promo small{display:block;color:var(--muted);font-size:.84rem}
@media (max-width:45em){
  .jb-filters{grid-template-columns:1fr 1fr}
  .jb-search{grid-column:1/-1}
  .jb-grid{grid-template-columns:1fr}
  .jb-card{padding:16px 14px}
  .jb-row{padding:12px 8px}
  .jb-h1{font-size:1.4rem}
  .jb-promo .pill{display:none}
}
.jb-pair .jb-check input{flex:none;min-width:0;width:1.05rem}
.jb-pair .jb-check{flex:0 0 auto;margin-right:12px}
.jb-code input::placeholder{text-transform:none;letter-spacing:0;font-weight:400}

/* v7 — compact Korea 101 links in left nav */
.ln-item.sm{min-height:2rem;padding:.3rem .75rem;font-size:.88rem}
.ln-item.sm svg.g{width:18px;height:18px}

/* photo banners (home + topic hubs), Reddit-style community header */
.sub-banner.photo{height:180px;background:var(--s1,#e8eefc);border-radius:12px;position:relative;overflow:hidden}
.sub-banner.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.sub-banner.photo + .sub-row{margin-top:-34px}
.sub-banner.photo + .sub-row .sub-title{padding-top:40px}
.sub-banner.photo + .sub-row .sub-actions{padding-top:42px}
@media (max-width:45em){.sub-banner.photo{height:120px;border-radius:0 0 12px 12px}.sub-banner.photo + .sub-row .sub-title{padding-top:36px}.sub-banner.photo + .sub-row .sub-actions{padding-top:8px}}
