:root {
  color-scheme:light;
  --background:#f3f5f7;
  --surface:#fff;
  --ink:#17211c;
  --muted:#526057;
  --green:#197e25;
  --button:#197b32;
  --green-dark:#133a2b;
  --green-pale:#e6f5e9;
  --line:#d9e2dc;
  --soft:#f7f9f8;
}
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--background); color:var(--ink); font:400 16px/1.58 Pretendard,'Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif; }
h1,h2,h3,h4,p { margin-block:0; }
h1,h2,h3,h4 { line-height:1.22; font-weight:800; letter-spacing:-.035em; word-break:keep-all; overflow-wrap:anywhere; }
h1 { font-size:clamp(2rem,4.8vw,3.15rem); }
h2 { font-size:clamp(1.22rem,2.5vw,1.55rem); }
h3 { font-size:1.1rem; }
h4 { font-size:1rem; }
small { font-size:.82em; }
a { color:inherit; text-underline-offset:.2em; }
img { display:block; max-width:100%; }
button,input,select { font:inherit; }
button,summary,select { cursor:pointer; }
:focus-visible { outline:3px solid #176c33; outline-offset:3px; }
.container { width:min(1160px,calc(100% - 64px)); margin-inline:auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip { position:fixed; z-index:25; top:10px; left:10px; padding:8px 14px; color:#fff; background:var(--green-dark); transform:translateY(-160%); }
.skip:focus { transform:none; }

.header { background:var(--surface); border-top:4px solid #30a83c; border-bottom:1px solid var(--line); }
.header-row { min-height:64px; display:flex; align-items:stretch; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:9px; white-space:nowrap; font-weight:850; text-decoration:none; letter-spacing:-.028em; }
.brand img { border-radius:8px; }
nav { display:flex; gap:3px; }
nav a { display:grid; place-items:center; padding:0 13px; border-bottom:3px solid transparent; text-decoration:none; font-size:.91rem; color:var(--muted); font-weight:700; white-space:nowrap; }
nav a[aria-current],nav a:hover { color:var(--green); border-color:#30a83c; }

.home { padding-block:24px 36px; }
.hero {
  align-items:stretch; border-radius:15px; display:grid; overflow:hidden;
  grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);
  background:linear-gradient(130deg,#102e24,#174733);
  color:#fff;
}
.hero-copy { align-self:center; padding:clamp(26px,5vw,64px); min-width:0; }
.hero h1 { color:#f7fbf5; font-size:clamp(2rem,4.55vw,3.65rem); line-height:1.11; letter-spacing:-.047em; text-wrap:balance; }
.hero h1 span { display:block; font-size:.55em; margin-bottom:.28em; color:#b8e2c3; letter-spacing:.01em; }
.hero p { color:#e0eee5; max-width:32rem; font-size:clamp(.94rem,1.5vw,1.08rem); margin-top:15px; word-break:keep-all; overflow-wrap:anywhere; }
.hero img { width:100%; height:100%; min-height:345px; object-fit:cover; object-position:50% 50%; }
.hero-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; border-radius:999px; border:1px solid transparent; min-height:42px; padding:7px 15px; font-size:.9rem; font-weight:800; line-height:1.25; text-align:center; text-decoration:none; }
.button:disabled { cursor:default; opacity:.51; }
.primary { color:#fff; background:var(--button); }
.primary:hover:not(:disabled) { background:#116324; }
.main-button { color:#123923; background:#ceefcb; }
.main-button:hover { background:#e4fce2; }
.hero-secondary { border-color:#91b79d; color:#fff; }
.hero-secondary:hover { background:#ffffff18; }
.hero a:focus-visible { outline-color:#d2f7d0; }
.outline { background:#fff; color:var(--green); border-color:#aac9b2; }
.outline:hover:not(:disabled) { background:var(--green-pale); }
.text-link { color:#176429; font-weight:750; font-size:.9rem; display:inline-block; }
.text-link:hover { color:#114a1c; }

.home-feed { margin-top:clamp(26px,4.1vw,45px); }
.section-top,.page-heading { display:flex; justify-content:space-between; align-items:center; gap:10px 18px; }
.section-top { margin-bottom:13px; }
.home-grid,.tool-grid { display:grid; grid-template-columns:minmax(0,1.92fr) minmax(0,1fr); gap:15px; align-items:start; }
.feed { display:grid; gap:10px; }
.feature { display:grid; grid-template-columns:66px minmax(0,1fr) auto; align-items:center; gap:15px; border:1px solid var(--line); border-radius:9px; padding:14px 15px; background:#fff; min-width:0; }
.feature-mark { min-height:63px; display:grid; place-items:center; border-radius:9px; color:#12662b; background:#e2f4e7; font-weight:900; font-size:1.23rem; }
.feature-mark.orange { background:#fff0d8; color:#8c4c11; }
.feature-mark.blue { background:#e6effd; color:#19539a; }
.feature p { color:var(--muted); font-size:.89rem; margin-top:3px; }
.panel { min-width:0; border:1px solid var(--line); border-radius:10px; background:var(--surface); padding:clamp(14px,2vw,22px); }
.axis-panel > p { margin-top:8px; color:var(--muted); }
.axis-panel > button { margin-top:14px; }
.axis-list { list-style:none; margin:10px 0; padding:0; }
.axis-list li { display:flex; align-items:center; gap:11px; padding:9px 0; border-bottom:1px solid #e7ede8; font-size:.89rem; line-height:1.35; }
.axis-list li b { flex:0 0 60px; color:var(--green); background:var(--green-pale); padding:7px 5px; text-align:center; border-radius:6px; }
.axis-list li small { display:block; color:var(--muted); margin-top:2px; }

.inner { padding-block:25px 35px; }
.page-heading { margin-bottom:18px; align-items:flex-end; }
.page-heading p { margin-top:8px; color:var(--muted); }
.personality .page-share.page-share--neutral {
  --share-fill:#edf5ef; --share-line:#afc6b6; --share-paper:#fff;
  --share-text:#1a6434; --share-select:#dfefe3; --share-radius:999px;
  margin-top:0;
}
.personality .page-share__menu { border-radius:8px; }
.small-note { font-size:.83rem; color:var(--muted); }

.quiz-progress > div,.axis-heading,.axis-sides { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.quiz-progress span { color:var(--muted); font-size:.86rem; white-space:nowrap; }
progress,meter { display:block; width:100%; height:12px; accent-color:var(--green); }
progress { margin-top:9px; }
.quiz fieldset { padding:0; border:0; margin:15px 0; min-width:0; }
.quiz legend { width:100%; font-size:clamp(1.16rem,2.4vw,1.5rem); font-weight:800; line-height:1.4; letter-spacing:-.025em; padding:0 0 12px; }
.quiz legend:focus,.quiz h3:focus { outline:none; }
.answer-options { display:grid; gap:7px; }
.answer-options label { display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:8px; background:var(--soft); padding:8px 11px; min-height:43px; cursor:pointer; }
.answer-options label:has(input:checked) { background:var(--green-pale); border-color:#74ae83; }
.answer-options label:hover { border-color:#74ae83; }
.answer-options input { accent-color:var(--green); width:16px; height:16px; margin:0; flex:none; }
.action-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:11px; }
[data-quiz-form] .action-row { justify-content:space-between; }
[data-quiz-result] h3 { margin:13px 0 8px; }
.score-intro { border-radius:9px; background:var(--green-pale); border:1px solid #c4e0cc; padding:15px; }
.score-intro p { margin:4px 0; }
.result-code { display:block; color:#135627; font:900 clamp(2rem,5vw,3.1rem)/1.12 system-ui,sans-serif; letter-spacing:.025em; }
.code-links { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.code-links .button { min-height:36px; font-size:.8rem; }
.result-axes { display:grid; gap:8px; margin-top:12px; }
.axis-score { border:1px solid var(--line); border-radius:8px; padding:10px; }
.axis-score meter { margin:4px 0; }
.axis-sides { font-size:.82rem; }
[data-quiz-result] > .small-note { margin-top:8px; }

.match-grid { grid-template-columns:minmax(0,.77fr) minmax(0,1.45fr); }
[data-match] { display:grid; gap:10px; margin:12px 0; }
[data-match] label,.type-filter label { display:block; font-size:.88rem; font-weight:750; min-width:0; }
[data-match] select,.type-filter select,.type-filter input,[data-match-result] input {
  width:100%; min-width:0; border:1px solid #b7c7bd; border-radius:8px; background:var(--soft);
  color:var(--ink); margin-top:4px; padding:8px 10px; min-height:43px;
}
.swap { justify-self:end; min-height:35px; font-size:.82rem; }
.match-submit { justify-content:space-between; margin-top:3px; }
.match-result .small-note,.empty-result { margin:10px 0 0; }
.empty-result { background:var(--soft); border:1px dashed var(--line); padding:15px; border-radius:8px; color:var(--muted); }
.match-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px 12px; padding:12px 0; }
.pair { display:flex; gap:8px; align-items:center; }
.type-code { padding:7px 9px; border-radius:7px; background:#e1f3e7; color:#12612a; font:850 .9rem/1.25 system-ui,sans-serif; letter-spacing:.03em; }
.type-code.nf { background:#f1e8fb; color:#653a8c; }
.type-code.nt { background:#e1effd; color:#205896; }
.type-code.sf { background:#fff1da; color:#824d0e; }
.conversation-starter { background:var(--green-pale); border-radius:8px; padding:11px; }
.conversation-starter p { margin-top:4px; }
.match-breakdown h3 { margin-top:13px; }
.match-breakdown ul { padding:0; list-style:none; margin:5px 0 0; }
.match-breakdown li { padding:7px 0; border-bottom:1px solid var(--line); }
.pair-description { display:block; color:#226f36; font-weight:720; font-size:.83rem; }
.match-breakdown li p { color:var(--muted); font-size:.89rem; }
.matrix { margin-top:15px; }
.matrix summary { font-weight:850; }
.matrix p { margin:6px 0; color:var(--muted); font-size:.88rem; }
.matrix-scroll { overflow:auto; max-width:100%; border:1px solid var(--line); border-radius:6px; }
.matrix table { border-collapse:separate; border-spacing:0; text-align:center; width:100%; font-size:.8rem; }
.matrix th,.matrix td { border-bottom:1px solid var(--line); border-right:1px solid var(--line); padding:4px; white-space:nowrap; }
.matrix th { background:#edf4ed; }
.matrix tr th:first-child { position:sticky; left:0; }
.matrix td button { min-width:36px; min-height:35px; border:0; border-radius:5px; color:#2b4c35; background:var(--soft); }
.matrix td button:hover { background:var(--green-pale); }
.matrix td button:focus-visible { outline-offset:0; }

.type-filter { display:grid; gap:8px; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); margin-bottom:10px; }
.type-list { display:grid; gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.type-card { min-width:0; border:1px solid var(--line); border-radius:8px; scroll-margin-top:14px; }
.type-card:target { border-color:#74ae83; outline:1px solid #74ae83; }
.type-card summary { list-style:none; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:8px; align-items:center; padding:10px; }
.type-card summary::-webkit-details-marker { display:none; }
.type-card summary::after { content:'+'; justify-self:end; font-weight:850; color:var(--green); }
.type-card[open] summary::after { content:'−'; }
.type-card summary small { display:block; color:var(--muted); line-height:1.28; }
.type-body { border-top:1px solid var(--line); padding:10px 12px 13px; }
.type-body dl { margin:8px 0; font-size:.88rem; }
.type-body dt { color:#1b6530; font-weight:750; margin-top:5px; }
.type-body dd { margin:0; color:var(--muted); }
[data-type-count] { color:var(--muted); font-size:.85rem; }
.indicators { margin-top:14px; scroll-margin-top:14px; }
.indicator-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.indicator-grid article { padding:9px; border-radius:8px; background:var(--soft); }
.indicator-grid h3 span { font-weight:700; font-size:.92rem; color:var(--green); }
.indicator-grid p { margin-top:4px; font-size:.9rem; }

.business-footer-host { margin-bottom:22px; }
.business-footer-host > p { margin-bottom:8px; }

@media (max-width:900px) {
  .container { width:calc(100% - 38px); }
  .hero-copy { padding:25px; }
  .hero img { min-height:310px; }
  .feature { gap:9px; grid-template-columns:53px minmax(0,1fr) auto; }
  .feature-mark { min-height:50px; }
}
@media (max-width:730px) {
  .container { width:calc(100% - 30px); }
  .header-row { display:block; min-height:auto; }
  .brand { padding:9px 0 3px; }
  .brand img { width:27px; height:27px; }
  nav { flex-wrap:wrap; }
  nav a { min-height:41px; padding:0 7px; font-size:.85rem; }
  .hero { grid-template-columns:minmax(0,1fr); }
  .hero img { min-height:0; height:186px; }
  .home-grid,.tool-grid,.match-grid { grid-template-columns:minmax(0,1fr); }
  .page-heading { align-items:flex-start; flex-direction:column; }
}
@media (max-width:455px) {
  .container { width:calc(100% - 26px); }
  .hero-copy { padding:19px; }
  .hero-actions { margin-top:15px; }
  .hero-actions .button { font-size:.82rem; padding-inline:11px; }
  .hero img { height:151px; }
  .feature { grid-template-columns:46px minmax(0,1fr); padding:10px; }
  .feature a { grid-column:2; justify-self:start; min-height:34px; }
  .feature-mark { min-height:46px; }
  .home-feed > .section-top { flex-direction:column; align-items:flex-start; }
  .type-list,.type-filter,.indicator-grid { grid-template-columns:minmax(0,1fr); }
}
