/* Part size reference — an off-white palette with black type and the editorial rhythm of
   the Carbon Steel material-intelligence series. Scoped to this page. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
.size-page {
  --bg: #f5f3ed; --surface: #faf9f5; --text: #171716; --muted: #474640;
  --dim: #605d55; --border: #d4d0c6; --border-md: #aaa498;
  --accent: #42677d; --accent-ink: #20201e; --accent-dim: #42677d0d;
  --green: #49715b; --green-ink: #31563e; --green-dim: #49715b0d;
  --orange: #8b501e; --red-ink: #a33b29; --card-hover: #e8e4da;
  background: var(--bg); color: var(--text); font: 16px/1.65 Inter, Arial, sans-serif;
}
.size-page #main-nav { position: fixed; top: 0; left: 0; right: 0; }
.size-page #announce-bar { display: none; }
.size-page main a { color: inherit; text-underline-offset: 4px; }
.size-page main a:hover { color: #405d6a; }
.size-page main :focus-visible, .gc-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.size-page main strong { color: var(--text); font-weight: 600; }
.size-page main button, .size-page main input, .size-page main select { font: inherit; }
.size-page main [hidden] { display: none !important; }
.size-page main section[id] { scroll-margin-top: 155px; }
.size-page main p, .size-page main h1, .size-page main h2, .size-page main h3, .size-page main figure { margin: 0; }
.size-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 2000; padding: 12px 20px; background: #171716; color: #fffefa; }
.skip-link:focus { top: 10px; }
.size-hero, .detail-section { max-width: 1560px; margin: auto; padding-inline: clamp(24px, 3.6vw, 64px); }
.size-hero { padding-top: 125px; }
.size-topline { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.size-topline a { text-decoration: none; }
.size-hero-title { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 8vw; padding: 65px 0 75px; }
.size-hero h1 { font-size: clamp(66px, 7.5vw, 118px); font-weight: 400; line-height: .97; letter-spacing: -.065em; }
.size-page .size-headline { font-size: clamp(28px, 3.25vw, 48px); line-height: 1.16; letter-spacing: -.04em; margin-bottom: 26px; }
.size-page .size-dek { color: var(--muted); font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -.03em; line-height: 1.4; margin-bottom: 34px; max-width: 560px; }
.size-action { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 0 0 12px; border-bottom: 1px solid #aaa498; text-decoration: none; font-size: 13px; max-width: 250px; }
.size-action span { font-size: 24px; line-height: 1; transition: transform .2s; }
.size-action:hover span { transform: translate(3px, 3px); }
.size-index { position: sticky; top: 80px; z-index: 80; display: flex; gap: 34px; align-items: center; padding: 0 max(24px, 3.6vw); min-height: 56px; overflow-x: auto; background: #f5f3edf5; backdrop-filter: blur(12px); border-block: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: #aaa498 #f5f3ed; }
.size-index a { padding: 16px 0; white-space: nowrap; font-size: 12px; text-decoration: none; }
.size-index a:hover, .size-index a:focus-visible { box-shadow: inset 0 -1px var(--muted); }
.detail-section { padding-block: 80px; }
.detail-section + .detail-section { border-top: 1px solid var(--border); }
.size-section-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 8vw; align-items: end; margin-bottom: 42px; }
.section-eyebrow, .cs-eyebrow, .size-drawing-label { font: 11px/1.6 'Share Tech Mono', monospace; text-transform: uppercase; letter-spacing: .1em; color: #605b50; }
.section-eyebrow { margin-bottom: 25px; }
.size-page .section-title { font-size: clamp(32px, 3.6vw, 54px); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; }
.size-page .section-sub { color: var(--muted); font-size: 17px; line-height: 1.75; }
/* Material explorer */
.cs-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 1fr); border: 1px solid #c4beb2; background: #faf9f5; }
.size-page .size-drawing { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 28px; background: #edeae2; border-right: 1px solid #c4beb2; }
.size-drawing-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--dim); }
.cs-stage { padding: 28px 0; }
.cs-stage svg, .sd-wrap svg { display: block; width: 100%; height: auto; }
.size-drawing figcaption { font-size: 11px; line-height: 1.7; color: var(--muted); max-width: 470px; }
.cs-side { min-width: 0; padding: 28px; }
.cs-pick { display: grid; gap: 16px; margin-bottom: 28px; }
.conv-field { min-width: 0; }
.conv-field label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.conv-field label span { color: var(--dim); }
.size-page .conv-field input, .size-page .conv-field select { display: block; width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #a8a194; border-radius: 0; background: #fffefa; color: var(--text); font-size: 16px; color-scheme: light; }
.size-page .conv-field input:focus, .size-page .conv-field select:focus { border-color: var(--accent); }
.conv-field option, .conv-field optgroup { background: #fffefa; color: var(--text); }
.cs-eyebrow { margin-bottom: 10px; }
.cs-tier { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 22px 0; border-top: 1px solid var(--border); }
.cs-letter { font-size: 25px; font-weight: 400; }
.cs-tier.a .cs-letter { color: var(--orange); }
.cs-tier.b .cs-letter { color: var(--accent); }
.cs-tier.c .cs-letter { color: var(--green); }
.cs-dim { display: block; font-size: clamp(19px, 1.8vw, 27px); letter-spacing: -.045em; line-height: 1.2; }
.cs-tier-name { display: block; color: var(--dim); font-size: 10px; margin-bottom: 7px; }
.cs-sub { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 7px; }
.cs-badge { color: var(--green-ink) !important; font-size: 10px; white-space: nowrap; text-decoration: none; border-bottom: 1px solid #8d9c8e; padding-block: 8px; }
.size-page .cs-foot { border-top: 1px solid var(--border); padding-top: 18px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.size-page main code { font: .9em 'IBM Plex Mono', monospace; color: var(--accent-ink); }
/* Blank checker */
.size-checker { display: grid; grid-template-columns: 1fr 1.05fr; gap: 8vw; align-items: start; }
.size-checker-intro .section-title { margin-bottom: 28px; }
.size-page .size-checker-note { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 25px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 32px 0; border-block: 1px solid var(--border); }
.hero-stat { padding: 24px 18px 24px 0; }
.hero-stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--border); }
.hero-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 32px; letter-spacing: -.055em; line-height: 1.3; }
.hero-stat-label { margin-top: 8px; font: 10px 'Share Tech Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.conv-card { border: 1px solid #aaa498; background: #faf9f5; }
.conv-head { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border); padding: 18px 26px; }
.conv-head-title { font: 11px/1.5 'Share Tech Mono', monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.conv-body { padding: 26px; }
.conv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.size-page .sel-hint { font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 24px; }
.conv-out-main { padding: 23px 0 28px; border-block: 1px solid var(--border); }
.conv-out-label { font: 11px/1.7 'Share Tech Mono', monospace; color: var(--muted); }
.conv-out-big { color: var(--text); font-size: clamp(36px, 4.7vw, 66px); line-height: 1.15; letter-spacing: -.06em; margin-top: 12px; }
.conv-out-alt { font-size: 14px; color: var(--green-ink); margin-top: 10px; }
.conv-out-alt.is-warning { color: var(--orange); }
.ck-row { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.ck-k { font: 10px/1.7 'Share Tech Mono', monospace; color: var(--dim); text-transform: uppercase; }
.ck-v { color: var(--muted); font-size: 12px; line-height: 1.7; }
.ck-v b { color: var(--text); font-weight: 500; }
.conv-stock { display: flex; align-items: baseline; gap: 15px; padding-top: 20px; }
.conv-field input[aria-invalid=true] { border-color: var(--red-ink); }
.size-page .gc-ghost-btn:disabled { opacity: .4; cursor: default; }
.size-empty { color: var(--muted); text-align: center; }
/* Catalog: scroll locally to keep a long catalog navigable. */
.gc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 22px 0; border-top: 1px solid var(--border); }
.gc-tool-label { color: var(--dim); font-size: 12px; }
.gc-seg { display: flex; flex-wrap: wrap; gap: 7px; }
.size-page .gc-seg button, .size-page .gc-ghost-btn { min-height: 42px; padding: 10px 14px; border: 1px solid #aaa498; border-radius: 0; color: var(--text); background: transparent; font-size: 12px; cursor: pointer; }
.size-page .gc-seg button.on { background: #20201e; color: #fffefa; border-color: #20201e; }
.size-page .gc-seg button:hover, .size-page .gc-ghost-btn:hover { border-color: var(--text); }
.gc-check { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; font-size: 12px; }
.gc-check input { width: 18px; height: 18px; margin: 0; accent-color: #315d76; }
.gc-check-box { display: none; }
.gc-tool-spacer { margin-left: auto; }
.gc-count { color: var(--muted); font: 11px 'Share Tech Mono', monospace; }
.size-page .size-table-hint { color: var(--dim); font-size: 11px; margin: 0 0 14px; }
.gc-wrap { max-height: 680px; overflow: auto; border: 1px solid #aaa498; scrollbar-color: #9b9488 #f5f3ed; scrollbar-width: thin; }
.gc-table { width: 100%; min-width: 1090px; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: left; }
.gc-table th { position: sticky; top: 0; z-index: 2; background: #e6e2d8; border-bottom: 1px solid #aaa498; padding: 18px 20px; vertical-align: bottom; }
.gc-th-name { display: block; font-size: 12px; font-weight: 500; }
.gc-th-std { display: block; font-size: 10px; color: var(--dim); font-weight: 400; margin-top: 5px; }
.gc-table td { padding: 20px; border-bottom: 1px solid var(--border); vertical-align: middle; background: #faf9f5; }
.gc-table tr:nth-child(even) td { background: #f0ede5; }
.gc-table tr:hover td { background: #e8e4da; }
.gc-table .ms-mat { position: sticky; left: 0; z-index: 1; min-width: 200px; max-width: 250px; border-right: 1px solid var(--border); }
.gc-table th.ms-mat { z-index: 3; }
.ms-mat-name { display: block; font-size: 14px; line-height: 1.5; }
.ms-mat-alloy, .ms-thk-ga, .ms-dim-sub, .ms-by { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.ms-thk, .ms-dim { font: 13px 'IBM Plex Mono', monospace; white-space: nowrap; }
.ms-max .ms-dim { color: var(--accent-ink); }
.ms-conf, .vd { display: inline-block; font: 10px/1.5 'Share Tech Mono', monospace; padding: 4px 7px; border: 1px solid #aaa498; white-space: nowrap; }
.ms-conf.yes, .vd.ok { color: var(--green-ink); border-color: #98aa98; background: var(--green-dim); }
.ms-conf.no { color: var(--muted); }
.vd.bad { color: var(--red-ink); border-color: #c39b8f; background: #a33b2908; }
.vd-note { display: block; font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 7px; }
.td-verdict { min-width: 180px; }
.size-page .disclaimer { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 23px; }
/* Reference sections */
.callout { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 30px; padding: 32px 0; border-top: 1px solid var(--border); }
.callout-icon { color: #605b50; font: 25px/1.4 'Share Tech Mono', monospace; }
.size-page .callout h3 { font-size: 27px; font-weight: 400; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 18px; }
.size-page .callout p { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 960px; }
.size-page .callout p + p { margin-top: 14px; }
.size-sheet-controls { max-width: 720px; margin-bottom: 30px; grid-template-columns: 1.7fr 1fr; }
.sd-wrap { padding: 20px; border: 1px solid #aaa498; background: #edeae2; }
.sd-wrap svg { max-width: 1060px; margin: auto; }
.sd-legend { display: flex; flex-wrap: wrap; gap: 12px 25px; margin-top: 20px; }
.sd-leg { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.sd-leg i { display: inline-block; width: 14px; height: 11px; border: 1px solid #aaa; }
.so-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.so-card { border-top: 1px solid #aaa498; padding-top: 25px; }
.so-card.hit { border-color: var(--orange); }
.so-op { font-size: 25px; line-height: 1.3; letter-spacing: -.03em; }
.so-limit { color: var(--accent-ink); font: 14px/1.7 'Share Tech Mono', monospace; margin: 15px 0; }
.size-page .so-why { color: var(--muted); font-size: 14px; line-height: 1.8; }
.so-flag { display: inline-block; color: var(--orange); font-size: 11px; margin-top: 18px; border-left: 2px solid var(--orange); padding-left: 12px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; list-style: none; padding: 26px 0; font-size: 21px; line-height: 1.45; letter-spacing: -.025em; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font: 23px 'Share Tech Mono',monospace; color: var(--muted); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 930px; padding: 0 35px 30px 0; }
.size-ending { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8vw; align-items: center; padding-block: 85px 110px; }
.size-page .size-ending>p { font-size: clamp(34px, 4.5vw, 65px); letter-spacing: -.055em; line-height: 1.15; }
.size-ending>p>span { color: var(--muted); }
.size-ending .size-action { max-width: none; padding-block: 20px; font-size: 15px; }
.size-page .size-ending>div>p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 22px; }
/* Shared recommendations are inserted outside main. Keep them in the series. */
.size-page .rel-guides { max-width: 1560px; margin: 0 auto 65px; padding-inline: clamp(24px,3.6vw,64px); color: var(--text); }
.size-page .rel-card { background: #faf9f5; border-color: var(--border); color: var(--text); }
.size-page .rel-guides-title, .size-page .rel-card-title { color: var(--text); font-weight: 400; }
.size-page .rel-guides-head { color: #605b50; }
.size-page .rel-card:hover .rel-card-title { color: var(--accent-ink); }
.size-page .rel-cat::before { background: var(--muted); }
.size-page .rel-foot, .size-page .rel-arrow { border-color: var(--border); }
.size-page .rel-meta, .size-page .rel-cat { color: var(--muted); }
@media(min-width:1560px) { .size-index { padding-inline: calc((100vw - 1560px)/2 + 56px); } }
@media(max-width:900px) { .size-index { top: 72px; } }
@media(max-width:1100px) {
  .size-hero-title, .size-section-top, .size-checker { gap: 5vw; }
  .cs-shell { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); }
  .cs-side, .size-page .size-drawing { padding: 22px; }
  .cs-tier { grid-template-columns: 22px minmax(0,1fr); }
  .cs-badge { grid-column: 2; justify-self: start; padding: 3px 0; }
}
@media(max-width:760px) {
  .size-hero { padding-top: 108px; }
  .size-topline { flex-direction: column; gap: 7px; font-size: 11px; }
  .size-hero-title { grid-template-columns: 1fr; gap: 36px; padding: 42px 0; }
  .size-hero h1 { font-size: clamp(55px, 12.6vw, 90px); }
  .size-page .size-headline { font-size: 31px; margin-bottom: 18px; }
  .size-page .size-dek { font-size: 23px; max-width: 560px; }
  .size-action { max-width: none; }
  .size-index { gap: 26px; }
  .detail-section { padding-block: 54px; }
  .size-section-top, .size-checker, .size-ending { grid-template-columns: 1fr; gap: 28px; }
  .size-section-top { margin-bottom: 30px; }
  .section-eyebrow { margin-bottom: 20px; }
  .size-page .section-title { font-size: 36px; }
  .size-page .section-sub { font-size: 16px; }
  .cs-shell { grid-template-columns: 1fr; }
  .size-page .size-drawing { border-right: 0; border-bottom: 1px solid #c4beb2; padding: 20px; }
  .cs-stage { padding: 18px 0; }
  .cs-stage svg text[font-size="14"] { font-size: 24px; }
  .cs-stage svg text[font-size="13"] { font-size: 20px; }
  .cs-side { padding: 22px; }
  .cs-tier { grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px; }
  .cs-badge { grid-column: auto; }
  .size-checker-intro .section-title { margin-bottom: 20px; }
  .conv-body { padding: 22px; }
  .conv-head { padding: 18px 22px; }
  .gc-toolbar { gap: 10px 14px; }
  .gc-tool-label { width: 100%; }
  .gc-check { width: 100%; }
  .gc-tool-spacer { display: none; }
  .gc-count { width: 100%; padding: 12px 0 5px; }
  .gc-wrap { max-height: 540px; }
  .gc-table .ms-mat { position: static; min-width: 170px; }
  .gc-table th.ms-mat { position: sticky; }
  .callout { grid-template-columns: 30px minmax(0,1fr); gap: 15px; padding: 27px 0; }
  .size-page .callout h3 { font-size: 24px; }
  .size-sheet-controls { grid-template-columns: 1fr; gap: 20px; }
  .sd-wrap { padding: 4px; overflow-x: auto; }
  .sd-wrap svg { min-width: 580px; }
  .so-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-item summary { font-size: 19px; padding: 23px 0; }
  .size-ending { padding-block: 54px 70px; }
}
@media(max-width:380px) {
  .size-hero, .detail-section { padding-inline: 20px; }
  .cs-tier { grid-template-columns: 22px minmax(0,1fr); }
  .cs-badge { grid-column: 2; }
  .size-page .size-drawing, .cs-side, .conv-body { padding: 16px; }
  .hero-stat-num { font-size: 27px; }
  .ck-row { grid-template-columns: 1fr; gap: 6px; }
  .conv-stock { flex-direction: column; gap: 6px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .size-action span { transition: none; }
}
@media print {
  .size-page { background: #fff; color: #111; --text:#111; --muted:#333; --dim:#444; --border:#bbb; --accent-ink:#174e70; }
  #main-nav, .size-index, .site-footer, .skip-link, .gc-toolbar, .size-action, .rel-guides, .size-ending { display: none !important; }
  .size-hero { padding-top: 0; }
  .size-hero-title { padding-block: 20px; }
  .size-hero h1 { font-size: 52px; }
  .detail-section { padding-block: 25px; }
  .size-page .section-title { font-size: 28px; }
  .cs-shell, .size-page .size-drawing, .conv-card, .conv-field input, .conv-field select { background: #fff; color: #111; }
  .cs-stage, .sd-wrap { background: #edeae2; print-color-adjust: exact; }
  .gc-wrap { max-height: none; overflow: visible; }
  .gc-table { min-width: 0; font-size: 9px; }
  .gc-table th, .gc-table td, .gc-table tr:nth-child(n) td { position: static; padding: 8px; background: #fff; color: #111; min-width: 0; max-width: none; }
  .gc-table .ms-mat { position: static; min-width: 0; }
  .ms-dim, .ms-thk { font-size: 9px; white-space: normal; }
  .ms-mat-name { font-size: 10px; }
  .ms-conf, .vd, .conv-out-alt { color: #222; }
  .size-checker { gap: 30px; }
  .hero-stat-num { font-size: 25px; }
  .faq-answer { display: block !important; }
}
