/* Shared type roles. Layout and color remain in styles.css. */
:root {
  --weight-body:400;
  --weight-label:500;
  --weight-statement:550;
  --weight-title:600;
  --weight-impact:600;
  --type-chapter:14px;
  --type-number:11px;
  --type-lead:32px;
  --type-content:28px;
  --type-item:18px;
  --type-body:16px;
  --type-compact:14px;
  --type-label:13px;
  --type-meta:12px;
  --type-action:14px;
  --type-statement:40px;
  --type-proof:44px;
  --type-impact:64px;
  --chapter-gap:10px;
}

/* 01–04 are chapter markers, including the two that use semantic h2 tags. */
body.type-system :is(.section-label,.section-heading--plain h2) {
  font-size:var(--type-chapter);
  font-weight:var(--weight-title);
  line-height:1.5;
  letter-spacing:-.025em;
}
body.type-system .section-label {
  align-self:start;
  gap:var(--chapter-gap);
  padding-top:0;
}
body.type-system .section-label>span {
  font-size:var(--type-number);
  font-weight:var(--weight-label);
  line-height:1.5;
  letter-spacing:0;
}
body.type-system .section-heading--plain {
  align-items:center;
  gap:var(--chapter-gap);
}

/* Main content and nested subject titles. */
body.type-system :is(.vision h2,.contact h2) {
  font-size:var(--type-lead);
  font-weight:var(--weight-title);
  line-height:1.4;
  letter-spacing:-.045em;
}
body.type-system .subsection-title {
  font-size:var(--type-content);
  font-weight:var(--weight-title);
  line-height:1.45;
  letter-spacing:-.04em;
}
body.type-system :is(.item-title,.news-item h3,.contact-routes>a>span) {
  font-size:var(--type-item);
  font-weight:var(--weight-title);
  line-height:1.5;
  letter-spacing:-.025em;
}
body.type-system .company-statement {
  font-size:var(--type-statement);
  font-weight:var(--weight-statement);
  line-height:1.5;
  letter-spacing:-.045em;
}

/* Reading text uses one size and rhythm across sections. */
body.type-system :is(.hero-description,.product-copy>p,.body-copy,.research-record>p:not(.small-heading),.principle-body p,.team-principles dd,.vision>p:not(.kicker),.philosophy) {
  font-size:var(--type-body);
  font-weight:var(--weight-body);
  line-height:1.85;
  letter-spacing:-.025em;
}
body.type-system :is(.supply-list>div,.supply-list dd,.data-projects li,.institution-case dl>div,.institution-case dt,.institution-case dd,.history ol li,.history-more li,.credential-list dd,.research-patents p,.research-patents>span,.impact-numbers p,.news-item p,.proof-case>span:not(.proof-arrow),.proof-number>span,.team-link .team-value) {
  font-size:var(--type-compact);
  line-height:1.75;
  letter-spacing:-.025em;
}
body.type-system .history time {
  font-size:var(--type-compact);
  font-weight:var(--weight-label);
  line-height:1.75;
  letter-spacing:0;
}
body.type-system .credential-list dt strong {
  font-size:var(--type-compact);
  font-weight:var(--weight-title);
  line-height:1.65;
  letter-spacing:-.025em;
}
body.type-system :is(.small-heading,.kicker,.team-link>span,.workflow,.history-more summary) {
  font-size:var(--type-label);
  font-weight:var(--weight-label);
  line-height:1.65;
  letter-spacing:-.025em;
}

/* Notes stay quieter, but never become 8–10px text on a phone. */
body.type-system :is(figcaption,figcaption>span,.data-projects li>span,.case-kicker,.case-kicker>span,.proof-case small,.proof-number>span small,.proof-note,.metric-note,.source-links,.research-meta,.research-patents small,.credential-list dt>span,.credential-list dd small,.news-category,.news-item time,.contact-guide,.copy-email,.footer-company p,.footer-address,.footer-links,.footer-bottom,.dialog-caption) {
  font-size:var(--type-meta);
  font-weight:var(--weight-body);
  line-height:1.65;
  letter-spacing:0;
}
body.type-system :is(.text-link,.button,.contact-button,.institution-case .text-link) {
  font-size:var(--type-action);
  font-weight:var(--weight-label);
  line-height:1.5;
  letter-spacing:-.025em;
}
body.type-system :is(.nav,.nav-main,.nav-utility,.menu-toggle,.dialog-top h2,.dialog-close) {
  font-size:var(--type-action);
  font-weight:var(--weight-label);
  line-height:1.5;
  letter-spacing:-.025em;
}
body.type-system .proof-number strong {font-size:var(--type-proof);line-height:1.15}
body.type-system .proof-number strong>span {font-size:.62em}
body.type-system .impact-value {font-size:var(--type-impact);line-height:1.15}
body.type-system .impact-value small {font-size:.43em}
body.type-system .research-patents strong {font-size:var(--type-content);line-height:1.3}
body.type-system .contact-address>a {font-size:24px;line-height:1.5}

@media(max-width:1190px) {
  :root {--type-lead:30px;--type-content:26px;--type-body:15px;--type-statement:36px;--type-proof:40px;--type-impact:56px}
}
@media(max-width:900px) {
  :root {--type-lead:28px;--type-content:24px;--type-item:17px;--type-statement:32px;--type-action:13px;--chapter-gap:10px}
  body.type-system .data-projects li>span {display:block;width:auto;margin-bottom:3px}
  body.type-system .research-patents {flex-wrap:wrap;row-gap:10px}
  body.type-system .research-patents small {overflow-wrap:anywhere}
}
@media(max-width:600px) {
  :root {--type-chapter:13px;--type-lead:28px;--type-content:24px;--type-item:16px;--type-body:14px;--type-compact:13px;--type-label:12px;--type-meta:11px;--type-statement:clamp(24px,6.7vw,28px);--type-proof:36px;--type-impact:48px;--chapter-gap:8px}
  body.type-system .data-example {grid-template-columns:125px minmax(0,1fr);gap:19px}
  body.type-system .institution-case dl>div {grid-template-columns:1fr;gap:7px}
  body.type-system .credential-list>div {grid-template-columns:1fr;gap:7px}
  body.type-system .credential-list dd small {margin-top:4px}
  body.type-system .research-patents {align-items:flex-start;flex-direction:column;gap:10px}
  body.type-system .research-meta {flex-wrap:wrap;gap:6px 16px}
  body.type-system .footer-links {flex-wrap:wrap;row-gap:10px}
  body.type-system .contact-address>a {font-size:20px}
}
@media print {
  body.type-system .company-statement {font-size:32px}
}

/* Project evidence is attached to its case, rather than used as a section image. */
body.type-system .project-index li {
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:18px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}
body.type-system .project-index .project-year {
  display:block;
  width:auto;
  margin:0;
  padding-top:2px;
  font-size:var(--type-meta);
  line-height:1.65;
}
body.type-system .project-result {
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:7px;
  padding:5px 0;
  border:0;
  background:none;
  color:var(--blue);
  font-size:var(--type-meta);
  line-height:1.65;
  letter-spacing:0;
  text-decoration:underline;
  text-underline-offset:4px;
}
body.type-system .project-result:hover {color:var(--ink)}
.dialog-caption[hidden] {display:none}
@media(max-width:600px) {
  body.type-system .project-index li {grid-template-columns:74px minmax(0,1fr);gap:14px;padding:13px 0}
  body.type-system .project-index .small-heading {font-size:var(--type-label);padding-bottom:12px}
  body.type-system .project-result {min-height:32px}
}

/* The vision bridges the mission and the concrete business description. */
body.type-system .hero-vision{font-size:20px;font-weight:var(--weight-label);line-height:1.65;letter-spacing:-.035em}
@media(max-width:900px){body.type-system .hero-vision{font-size:18px}}

/* Research metrics use the same evidence, metadata and reading roles as the rest of the site. */
body.type-system .outcome>strong{font-size:var(--type-lead);line-height:1.2}
body.type-system :is(.outcome>p,.metric-method-body){font-size:var(--type-compact);line-height:1.75;letter-spacing:-.025em}
body.type-system :is(.outcomes-source,.metric-condition,.metric-source,.method-source){font-size:var(--type-meta);line-height:1.65;letter-spacing:0}
body.type-system :is(.metric-code,.metric-method summary){font-size:var(--type-label);line-height:1.65}

body.type-system :is(.metric-name,.metric-explanation){font-size:var(--type-compact);line-height:1.75;letter-spacing:-.025em}
body.type-system .metric-name{font-weight:var(--weight-title)}
body.type-system :is(.metric-publisher,.grading-range>span){font-size:var(--type-meta);line-height:1.65;letter-spacing:0}
body.type-system .grading-range p{font-size:var(--type-item);line-height:1.6;font-weight:var(--weight-label);letter-spacing:-.025em}

/* Operational scale and contact guidance use existing type roles. */
body.type-system .scale-number>strong{font-size:var(--type-proof)}
body.type-system :is(.scale-number>p,.contact-intro){font-size:var(--type-compact);line-height:1.75;letter-spacing:-.025em}
body.type-system :is(.scale-source,.scale-number>p>span){font-size:var(--type-meta);line-height:1.65;letter-spacing:0}

/* Detail pages retain the site's shared reading and metadata sizes. */
body.type-system .has-details .dialog-top h2{font-size:var(--type-item);line-height:1.5;font-weight:var(--weight-title);letter-spacing:-.025em}
body.type-system .project-period{font-size:var(--type-meta);line-height:1.65;letter-spacing:0}
body.type-system .project-description{font-size:var(--type-body);line-height:1.9;letter-spacing:-.025em}
body.type-system .dialog-image-toggle{font-size:var(--type-action);line-height:1.5;font-weight:var(--weight-label);letter-spacing:-.025em}

/* Outfit is reserved for metric figures; Korean labels keep the reading font. */
@font-face{font-family:Outfit;src:url('assets/OutfitVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
body.type-system .count-up{position:relative;display:inline-block;font-family:Outfit,Inter,sans-serif;font-weight:var(--weight-impact);font-variant-numeric:tabular-nums;letter-spacing:-.035em;white-space:nowrap;vertical-align:baseline}
.count-reserve{visibility:hidden}
.count-value{position:absolute;inset:0;text-align:right}
body.type-system .scale-number>strong>.count-up{font-size:inherit;margin:0}
body.type-system .research-patents{display:block}
.patent-summary{display:flex;align-items:center;justify-content:space-between;gap:24px}
body.type-system .patent-summary>strong{display:flex;align-items:baseline;gap:5px;font-size:var(--type-proof);line-height:1.2;color:var(--blue)}
body.type-system .patent-summary>strong>small{font-size:var(--type-compact);font-weight:var(--weight-body)}

/* Patent scope is stated in the evaluation workflow, with a record per claim set. */
body.type-system .patent-summary h4{font-size:var(--type-item);font-weight:var(--weight-title);line-height:1.5;letter-spacing:-.025em}
body.type-system .patent-summary>div>p{font-size:var(--type-compact);line-height:1.65;color:var(--muted);margin-top:4px}
.patent-list{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--line)}
.patent-list>li{padding:14px 0;border-bottom:1px solid var(--line)}
.patent-row-title{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 16px}
body.type-system .patent-row-title h5{margin:0;font-size:var(--type-compact);font-weight:var(--weight-title);line-height:1.65;letter-spacing:-.025em}
body.type-system .patent-row-title>a{font-size:var(--type-meta);font-weight:var(--weight-body);line-height:1.65;letter-spacing:0;white-space:nowrap;color:var(--blue);text-decoration:underline;text-underline-offset:4px;text-decoration-color:#a6b6c9}
.patent-row-title>a>span{margin-left:5px}
.patent-row-title>a:hover{text-decoration-color:currentColor}
body.type-system .patent-list>li>p{margin:6px 0 0;font-size:var(--type-compact);line-height:1.75;color:var(--muted);letter-spacing:-.025em}
body.type-system .patent-verification{margin-top:12px;font-size:var(--type-meta);line-height:1.65;color:var(--muted);letter-spacing:0}
@media(max-width:600px){.patent-list{margin-top:16px}.patent-list>li{padding:13px 0}}

/* Put each metric's meaning beside its value, before the measurement notes. */
.metric-score{display:flex;align-items:baseline;gap:12px;margin-top:20px}
.grading-metric .metric-score .impact-value{margin-top:0}
body.type-system .metric-symbol{font-size:var(--type-label);font-weight:var(--weight-title);line-height:1.5;letter-spacing:0;color:var(--blue)}
body.type-system .metric-verdict{font-size:var(--type-item);font-weight:var(--weight-title);line-height:1.5;letter-spacing:-.025em;margin-top:13px}
body.type-system .metric-interpretation-source{margin-top:5px}
.metric-interval{white-space:nowrap}
@media(max-width:600px){.metric-score{gap:8px}}
@media(max-width:360px){.metric-score{gap:6px}}

/* Assessment-sheet scope belongs only to the QWK test. */
.grading-metric .grading-range strong{display:block;margin-top:4px}

/* Research facts use the same heading, reading and numerical roles as other chapters. */
body.type-system .research-feature-title{font-size:var(--type-lead);font-weight:var(--weight-statement);line-height:1.5;letter-spacing:-.035em}
body.type-system :is(.research-program-name,.research-facts dt,.research-partners>.small-heading){font-size:var(--type-label);font-weight:var(--weight-label);line-height:1.7;letter-spacing:-.025em}
body.type-system :is(.research-facts dd>span,.research-partners li){font-size:var(--type-compact);line-height:1.75;letter-spacing:-.025em}
body.type-system .research-leadership dd>strong{font-size:var(--type-content);font-weight:var(--weight-title);line-height:1.5;letter-spacing:-.035em}
body.type-system .research-fact-value{font-size:var(--type-proof);font-weight:var(--weight-title);line-height:1.2}
body.type-system .research-fact-value>small{font-size:var(--type-body);font-weight:var(--weight-label);letter-spacing:0}

/* Align the first visible line, including pairs with different type sizes.
   Insets account for Pretendard/Inter's leading; stacked layouts need no offset. */
.company-history{--history-row-padding:14px}
.company-history .history li{
  align-items:start;
  align-content:start;
  padding-block:var(--history-row-padding);
}
@media(min-width:601px){
  .team-principles>div{align-items:start;align-content:center}
  .team-principles dt{padding-top:2px}
  .data-projects>.item-title{padding-top:2px}
  .credential-list{padding-top:3px}
}
@media(min-width:901px){
  .company .careers-inner>.subsection-title{
    padding-top:calc(var(--type-statement)*.3 - var(--type-content)*.25);
  }
  .company .company-history>.subsection-title{
    padding-top:calc(var(--history-row-padding) - 2px);
  }
  .credential-list dd{padding-top:0;margin-top:-2px}
}
@media(max-width:600px){
  .company-history{--history-row-padding:12px}
}

