/* Permitely site design system (2026-10 redesign).
   Loaded after every page's inline styles, so these rules win on equal specificity.
   Principles: warm paper background, ink text, one restrained accent, hairline rules,
   square corners, no gradients, no drop shadows, real photography. */

:root{
  --bg:#f6f5f1; --surface:#ffffff; --ink:#16191d; --body:#3c4148; --muted:#6c7178;
  --line:#e2dfd7; --line-2:#cfcbc1; --accent:#1d3a5f; --accent-ink:#ffffff; --accent-soft:#e8edf3;
  --warn:#8a5a14; --neg:#9b2f2f; --pos:#2f5d3a;
  --serif:'Source Serif 4','Noto Serif KR',Georgia,'Times New Roman',serif;
  --sans:'Public Sans','Noto Sans KR',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  /* legacy tokens used by page styles */
  --paper:var(--bg); --card:var(--surface); --fba:var(--accent); --money:var(--accent); --ok:var(--accent);
  --clay:var(--accent); --tt:var(--accent); --gold:#9a7a3a; --alert:var(--neg); --shadow:none;
}

html body{background:var(--bg)!important;color:var(--body);font-family:var(--sans)!important;font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body h1,body h2,body h3,body .brand{font-family:var(--serif)!important;color:var(--ink);font-weight:600;letter-spacing:-.01em}
body a{color:var(--accent);text-underline-offset:3px;text-decoration-thickness:1px}
body main code{overflow-wrap:anywhere}
body .mono,body .n,body .big,body .profitbig{font-family:var(--sans)!important;font-variant-numeric:tabular-nums lining-nums}
body .wrap{max-width:1120px;padding:0 24px}

/* ---------- Header ---------- */
body .sx-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--line)!important;backdrop-filter:none!important}
.sx-header .sx-in{max-width:1120px;margin:0 auto;padding:0 24px;height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.sx-logo{display:flex;align-items:center;gap:10px;text-decoration:none!important;color:var(--ink)!important}
.sx-logo .sx-mark{width:26px;height:26px;border:1.5px solid var(--ink);display:grid;place-items:center;font:600 14px/1 var(--serif);color:var(--ink)}
.sx-logo .sx-word{font:600 21px/1 var(--serif);letter-spacing:-.01em}
.sx-nav{display:flex;align-items:center;gap:26px}
.sx-nav a{font-size:14px;font-weight:500;color:var(--body)!important;text-decoration:none!important;padding:6px 0;border-bottom:1px solid transparent}
.sx-nav a:hover{color:var(--ink)!important;border-bottom-color:var(--ink)}
.sx-nav a.sx-cta{border:1px solid var(--ink);padding:8px 14px;color:var(--ink)!important}
.sx-nav a.sx-cta:hover{background:var(--ink);color:#fff!important}
.sx-menu{display:none}
@media(max-width:900px){
  .sx-nav{display:none}
  .sx-menu{display:block;position:relative}
  .sx-menu summary{list-style:none;cursor:pointer;font-size:14px;font-weight:600;color:var(--ink);border:1px solid var(--line-2);padding:8px 12px}
  .sx-menu summary::-webkit-details-marker{display:none}
  .sx-menu[open] .sx-drop{display:block}
  .sx-drop{display:none;position:absolute;right:0;top:44px;width:260px;background:#fff;border:1px solid var(--line);padding:8px 0}
  .sx-drop a{display:block;padding:10px 18px;font-size:14px;color:var(--ink)!important;text-decoration:none!important}
  .sx-drop a:hover{background:var(--bg)}
}

/* ---------- Hero (split: text + photograph) ---------- */
body .sx-hero{background:var(--bg)!important;color:var(--body)!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;box-shadow:none!important}
.sx-hero .sx-hero-in{max-width:1120px;margin:0 auto;padding:56px 24px 48px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:56px;align-items:center}
.sx-hero .sx-hero-text{min-width:0}
.sx-hero .eyebrow,.sx-hero .sx-eyebrow{display:flex;align-items:center;gap:12px;font:600 12px/1.2 var(--sans)!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--accent)!important;margin:0 0 18px!important}
.sx-hero .eyebrow::before,.sx-hero .sx-eyebrow::before{content:"";width:28px;height:1px;background:currentColor;display:inline-block}
.sx-hero h1{font-family:var(--serif)!important;font-weight:500!important;font-size:clamp(32px,4.2vw,50px)!important;line-height:1.1!important;letter-spacing:-.018em!important;color:var(--ink)!important;margin:0 0 14px!important;max-width:20ch!important}
.sx-hero p[data-byline]{opacity:1!important;color:var(--muted)!important;font-size:13px!important;margin:0 0 18px!important;padding-bottom:16px;border-bottom:1px solid var(--line)}
.sx-hero p[data-byline] a{color:var(--muted)!important}
.sx-hero .sub,.sx-hero .std-intro{color:var(--body)!important;font-size:17px!important;line-height:1.65!important;max-width:60ch!important;margin:0!important}
.sx-hero .sub a{color:var(--accent)!important}
.sx-hero .sx-media{margin:0;position:relative;aspect-ratio:4/5;max-height:560px;background:#ddd8cc;overflow:hidden}
.sx-hero .sx-media img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.82) contrast(1.02)}
.sx-hero .sx-media figcaption{position:absolute;left:0;bottom:0;background:rgba(22,25,29,.82);color:#fff;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:7px 12px}
@media(max-width:860px){
  .sx-hero .sx-hero-in{grid-template-columns:1fr;gap:28px;padding:36px 20px 28px}
  .sx-hero .sx-media{aspect-ratio:3/2;order:-1;max-height:none}
}
.sx-hero.sx-noimg .sx-hero-in{grid-template-columns:1fr;padding-bottom:28px}
.sx-hero.sx-noimg h1{max-width:28ch!important}

/* ---------- Tool layout ---------- */
body .grid{gap:24px;margin:28px 0 12px}
body .grid>*{min-width:0}
@media(min-width:780px){body .grid{grid-template-columns:380px 1fr}}
body .panel,body .result,body .verdict,body .break,body .acc,body .xlink,body .lead,body .card{border-radius:2px!important;box-shadow:none!important}
body .panel{background:var(--surface);border:1px solid var(--line)}
body .panel h2{font:600 12px/1.2 var(--sans)!important;letter-spacing:.12em;text-transform:uppercase;color:var(--ink)!important;padding:18px 20px 14px!important;border-bottom:1px solid var(--line);margin:0}
body .panel .body{padding:6px 20px 20px}
body .field label{font-size:13px;font-weight:600;color:var(--ink)}
body .field .hint{color:var(--muted);font-weight:400}
body .ig{border:1px solid var(--line-2)!important;border-radius:0!important;background:#fff}
body .ig:focus-within{border-color:var(--ink)!important;box-shadow:0 0 0 1px var(--ink)}
body .ig .pre{background:var(--bg)!important;border-right:1px solid var(--line-2)!important;color:var(--muted)}
body .ig input,body .ig select{font-size:15px;padding:11px 12px;font-family:var(--sans)}
body .seg button{border-radius:0!important;border:1px solid var(--line-2)!important;background:#fff;color:var(--ink);font-family:var(--sans)}
body .seg button.on{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
body input[type=range]{accent-color:var(--ink)}
body .adv summary,body details.adv>summary{color:var(--accent);font-weight:600}

body .result{background:var(--surface);border:1px solid var(--line)}
body .verdict{background:var(--surface)!important;border:1px solid var(--line);border-top:3px solid var(--ink)!important;text-align:left!important;padding:22px 24px!important}
body .result .verdict{border:0!important;border-top:3px solid var(--ink)!important;border-bottom:1px solid var(--line)!important}
body .verdict.ok,body .verdict.alert{background:var(--surface)!important}
body .verdict.alert{border-top-color:var(--warn)!important}
body .verdict .badge{background:transparent!important;color:var(--accent)!important;border:1px solid currentColor;border-radius:0!important;letter-spacing:.12em;padding:4px 10px}
body .verdict.alert .badge{color:var(--warn)!important}
body .verdict .big,body .profitbig{font-family:var(--serif)!important;font-weight:500!important;font-size:46px!important;color:var(--ink)!important;letter-spacing:-.02em}
body .profitbig.pos{color:var(--pos)!important} body .profitbig.neg,body .neg{color:var(--neg)!important}
body .verdict .vs,body .profitsub{margin-left:0!important;color:var(--muted)}
body .stat3 .st,body .cmp .opt{border-radius:0!important;border:1px solid var(--line)!important;background:var(--surface)!important;text-align:left}
body .cmp .opt.win{border-color:var(--ink)!important;background:var(--accent-soft)!important}
body .st .l,body .cmp .opt .ot{color:var(--muted)!important;letter-spacing:.1em}
body .brow{border-bottom:1px solid var(--line)}
body table.bd td,body table.bd th,body table.ft td,body table.ft th{border-bottom:1px solid var(--line)}
body table.bd thead th,body table.ft thead th{font:600 11.5px/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-align:left}

body .lead{background:var(--surface)!important;border:1px solid var(--line)!important;border-left:3px solid var(--accent)!important}
body .lead .cta,body .btn-primary{background:var(--ink)!important;border-radius:0!important;color:#fff!important}
body .xlink{background:var(--surface)!important;border:1px solid var(--line)!important;padding:16px 18px!important}
body .xlink:hover{border-color:var(--ink)!important}
body .xlink .t{font-family:var(--serif);font-weight:600;font-size:16px;color:var(--ink)}
body .note{background:var(--surface)!important;border-left:2px solid var(--warn)!important;border-radius:0!important}
body main a[style*="border-radius:12px"],body main a[style*="border-radius:11px"]{border-radius:2px!important;background:var(--surface)!important;border-color:var(--line)!important;border-left:3px solid var(--accent)!important}

/* ---------- Long-form content ---------- */
body .deepdive-sep{border-top:1px solid var(--ink)!important;margin:56px 0 0!important;padding-top:12px}
body .deepdive-sep .tag{color:var(--ink)!important;letter-spacing:.14em}
body .content{max-width:760px;padding:8px 0 40px}
body .content h2{font-size:28px!important;font-weight:500!important;line-height:1.25;margin:44px 0 12px!important;color:var(--ink)}
body .content h3{font-family:var(--sans)!important;font-size:13px!important;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)!important;margin:28px 0 8px!important}
body .content p,body .content li{font-size:16px!important;line-height:1.75;color:var(--body)!important}
body .acc{border:0!important;border-top:1px solid var(--line)!important;background:transparent!important;margin:0!important}
body .acc:last-of-type{border-bottom:1px solid var(--line)!important}
body .acc summary{padding:16px 0!important;font-family:var(--serif);font-size:17px!important;font-weight:600;color:var(--ink)}
body .acc .ab{padding:0 0 18px!important}
body .faq-q{font-family:var(--serif);font-size:18px;font-weight:600;color:var(--ink);border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
body .clusters a{border-radius:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--ink)!important;padding:9px 13px!important}
body .clusters a:hover{border-color:var(--ink)!important}
body .editorial-note{background:var(--surface);border:1px solid var(--line);padding:18px 20px;font-size:14px!important;color:var(--body)!important}
body .review-date{font-size:13px;color:var(--muted)}
body .adsense-slot{border-radius:0!important}

/* ---------- Footer ---------- */
body .sx-footer{background:var(--ink)!important;color:#c9ccd0!important;border:0!important;margin-top:64px!important}
.sx-footer .sx-fin{max-width:1120px;margin:0 auto;padding:56px 24px 28px}
.sx-footer .sx-cols{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:40px;padding-bottom:36px;border-bottom:1px solid #33373d}
.sx-footer .sx-brandrow{display:flex;gap:40px;align-items:baseline;flex-wrap:wrap;padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #33373d}
.sx-footer .sx-brandrow .sx-about{margin:0;max-width:60ch}
.sx-footer .sx-cols5{grid-template-columns:repeat(5,1fr);gap:32px}
@media(max-width:1000px){.sx-footer .sx-cols5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.sx-footer .sx-cols5{grid-template-columns:1fr 1fr}}
.sx-footer .sx-word{font:600 22px/1 var(--serif);color:#fff}
.sx-footer .sx-about{font-size:14px;line-height:1.6;color:#a9adb3;margin:14px 0 0;max-width:34ch}
.sx-footer h4{font:600 11.5px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#fff;margin:4px 0 16px}
.sx-footer ul{list-style:none;margin:0;padding:0}
.sx-footer li{margin:0 0 10px}
.sx-footer a{color:#c9ccd0!important;text-decoration:none!important;font-size:14px}
.sx-footer a:hover{color:#fff!important;text-decoration:underline!important}
.sx-footer .sx-legal{padding-top:22px;font-size:12.5px;line-height:1.65;color:#8e9298}
.sx-footer .sx-legal p{margin:0 0 10px;color:#8e9298!important}
.sx-footer .sx-legal a{font-size:12.5px;color:#b5b9be!important;text-decoration:underline!important}
.sx-footer .sx-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:12.5px;color:#8e9298;padding-top:8px}
@media(max-width:860px){.sx-footer .sx-cols{grid-template-columns:1fr 1fr}.sx-footer .sx-brandcol{grid-column:1/-1}}

/* ---------- Text pages without a hero (about, policies, 404, widgets) ---------- */
body:not(:has(.sx-hero)) main{max-width:760px!important;margin:0 auto;padding:56px 24px 40px!important}
body:not(:has(.sx-hero)) main h1{font-family:var(--serif)!important;font-weight:500!important;font-size:clamp(32px,4vw,44px)!important;line-height:1.12;letter-spacing:-.018em;margin:0 0 22px!important;padding-bottom:20px;border-bottom:1px solid var(--line)}
body:not(:has(.sx-hero)) main h2{font-size:22px!important;font-weight:600;margin:36px 0 10px!important}
body:not(:has(.sx-hero)) main p,body:not(:has(.sx-hero)) main li{font-size:16px;line-height:1.75}

/* ---------- Checker pages (Tailwind template: hazmat, ungating) ---------- */
body.bg-paper{background:var(--bg)!important}
body .rounded-2xl,body .rounded-xl,body .rounded-xl2,body .rounded-lg{border-radius:2px!important}
body .shadow-sm,body .shadow,body .shadow-md,body .shadow-lg{box-shadow:none!important}
body .border-slate-100{border-color:var(--line)!important}
body .result-green{background:#2f5d3a!important}
body .result-yellow{background:#6b4a14!important}
body .result-red{background:#7a2828!important}
body .bg-amber-50,body .bg-orange-50{background:#faf6ec!important}
body .bg-green-50,body .bg-emerald-50{background:var(--accent-soft)!important}
body .bg-red-50{background:#f8eeec!important}
body .text-orange-700,body .text-orange-600{color:var(--accent)!important}
body .sx-notes{max-width:760px!important;margin:40px auto 0;padding:0 24px}
body .sx-notes .acc summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}
body .sx-notes .acc summary::-webkit-details-marker{display:none}
body .sx-notes .acc .chev{width:16px;height:16px}
body .sx-notes .acc-body{padding:0 0 18px;font-size:14px}
body #feedbackToggle{border-radius:0!important;background:var(--ink)!important}

/* ---------- Embedded (iframe) mode keeps chrome hidden ---------- */
html.embed .sx-header,html.embed .sx-footer,html.embed .sx-hero .sx-media{display:none!important}

@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}

/* Wide reference tables scroll inside their column on phones */
@media(max-width:700px){body .content table,body table.cmp{display:block;max-width:100%;overflow-x:auto}}

/* Square corners across tool content, overriding inline radii */
body main div,body main section,body main aside,body main details,body main a,body main table{border-radius:2px!important}
body main .rounded-full{border-radius:999px!important}


/* ---------- Permitely template (Tailwind build) ---------- */
body{background:var(--bg)!important}
body .bg-paper,body .bg-white\/70{background:var(--bg)!important}
body .text-ink{color:var(--ink)!important}
body .text-body{color:var(--body)!important}
body .text-muted{color:var(--muted)!important}
body .font-serif{font-family:var(--serif)!important}
body .card,body .cta-card,body .lawbox,body .stamp{border-radius:2px!important;box-shadow:none!important;border-color:var(--line)!important;background:var(--surface)}
body a.card:hover,body .hover\:shadow-lift:hover{box-shadow:none!important;border-color:var(--ink)!important;transform:none!important}
body .btn{border-radius:0!important;box-shadow:none!important;font-family:var(--sans);font-weight:600;letter-spacing:.01em}
body .btn-primary,body .btn-gold{background:var(--ink)!important;color:#fff!important;border:1px solid var(--ink)!important}
body .btn-primary:hover,body .btn-gold:hover{background:var(--accent)!important;border-color:var(--accent)!important}
body .btn-ghost{background:transparent!important;color:var(--ink)!important;border:1px solid var(--ink)!important}
body .chip{border-radius:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--body)!important}
body .icon-badge,body .step-badge{border-radius:0!important;background:var(--accent-soft)!important;color:var(--accent)!important}
body .langbtn{border-radius:0!important;border:1px solid var(--line-2)!important;background:var(--surface)!important;color:var(--ink)!important}
body .langbtn.on{background:var(--ink)!important;border-color:var(--ink)!important;color:#fff!important}
body .lawbox{border-left:3px solid var(--accent)!important;background:var(--surface)!important}
body .bg-navy-50,body .bg-navy-100{background:var(--accent-soft)!important}
body .bg-navy-700,body .bg-navy-800,body .bg-navy-900{background:var(--ink)!important}
body .text-navy-700,body .text-navy-800,body .text-navy-600,body .text-navy-500{color:var(--accent)!important}
body .border-navy-100,body .border-line{border-color:var(--line)!important}
body .text-gold-500,body .text-gold-600{color:var(--warn)!important}
body .bg-gold-100{background:#f4efe3!important}
body .ph-tag{border-radius:0!important}
body .result-res,body .result-non{border-radius:2px!important;box-shadow:none!important}
body .hairline{border-color:var(--line)!important}
body #resultCard{border-radius:2px!important}
body #breakdownCard{background:var(--surface)!important;border-color:var(--line)!important}
body main h2{font-family:var(--serif)!important;font-weight:500!important;color:var(--ink)}
body main h3{font-family:var(--serif)!important;color:var(--ink)}
/* hero (text column) — Tailwind classes written for a navy background */
.sx-hero .sx-hero-text [class*="text-white"],.sx-hero .sx-hero-text .text-gold-100{color:var(--body)!important}
.sx-hero .sx-hero-text .rounded-full{display:flex!important;align-items:center;gap:12px;border:0!important;background:none!important;padding:0!important;border-radius:0!important;
  font:600 12px/1.3 var(--sans)!important;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)!important;margin:0 0 18px!important}
.sx-hero .sx-hero-text .rounded-full::before{content:"";width:28px;height:1px;background:currentColor;flex:none}
.sx-hero .sx-hero-text .display-h1,.sx-hero .sx-hero-text .std-h1{font-family:var(--serif)!important;font-weight:500!important;font-size:clamp(32px,4.2vw,50px)!important;line-height:1.1!important;letter-spacing:-.018em!important;color:var(--ink)!important;margin:0 0 14px!important}
.sx-hero .sx-hero-text > p:not([data-byline]),.sx-hero .std-intro{color:var(--body)!important;font-size:17px!important;line-height:1.65!important;max-width:60ch}
.sx-hero .btn-ghost{background:transparent!important;color:var(--ink)!important;border-color:var(--ink)!important}
.sx-hero .text-white\/50{color:var(--muted)!important}
/* page-notes accordions moved out of the old footer */
body .sx-notes{max-width:760px;margin:48px auto 0;padding:0 24px}
body .sx-notes .wrap{padding:0!important;max-width:none}
body .sx-notes p{color:var(--body)}
body .sx-notes .acc summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none}
body .sx-notes .acc summary::-webkit-details-marker{display:none}
body .sx-notes .acc .chev{width:16px;height:16px}
body .sx-notes .acc-body{padding:0 0 18px;font-size:14px}
body{margin:0}
body main input:not([type=range]):not([type=checkbox]):not([type=radio]),body main select,body main textarea{border-radius:0!important}
.sx-hero + div.bg-white{background:var(--bg)!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
/* Text pages written for the old dark theme (about, policies, contact, 404) */
body:not(:has(.sx-hero)) main .text-white,body:not(:has(.sx-hero)) main h1,body:not(:has(.sx-hero)) main h2,body:not(:has(.sx-hero)) main h3{color:var(--ink)!important}
body:not(:has(.sx-hero)) main [class*="text-slate-"]{color:var(--body)!important}
body:not(:has(.sx-hero)) main a[class*="text-"]{color:var(--accent)!important}
body:not(:has(.sx-hero)) main [class*="bg-white\/"],body:not(:has(.sx-hero)) main [class*="bg-slate-"],body:not(:has(.sx-hero)) main [class*="bg-navy-"]{background:var(--surface)!important;border-color:var(--line)!important}
body:not(:has(.sx-hero)) main [class*="border-white\/"]{border-color:var(--line)!important}
body main [class*="text-blue-"],body .sx-notes [class*="text-blue-"]{color:var(--accent)!important}

/* ---------- Result follow-up notes (formerly affiliate placeholders) ---------- */
body .affiliate-slot{background:var(--surface)!important;border:1px solid var(--line)!important;border-left:2px solid var(--accent)!important;
  border-radius:0!important;color:var(--body)!important;text-align:left!important;padding:14px 16px!important;font-size:14px!important}
body .affiliate-slot .font-semibold{color:var(--ink)}
