/* ============ Weifang Luck / HONGYUN - Garment OEM website ============ */
:root {
  --navy: #0f2a43;
  --navy-light: #1c3f61;
  --accent: #d9a441;
  --accent-dark: #b8872e;
  --text: #2b2b2b;
  --muted: #666b73;
  --bg: #ffffff;
  --bg-soft: #f5f2ec;
  --line: #e6e1d8;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "Noto Sans JP", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfd8e2;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cfd8e2; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  height: 60px; width: auto; display: block;
}
@media (max-width: 640px) {
  .logo-mark { height: 44px; }
}

nav ul { display: flex; gap: 26px; align-items: center; }
nav a { font-size: 14.5px; font-weight: 500; color: var(--navy); padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--accent-dark); border-color: var(--accent); }

.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.lang-switch button, .lang-switch a {
  border: 0; background: transparent; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--muted);
  text-decoration: none; line-height: 1.6; display: inline-block;
}
.lang-switch button.active, .lang-switch a.active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 60%, #2a5579 100%);
  color: #fff;
  padding: 84px 0 96px;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.hero h1 .gold { color: var(--accent); }
.hero p.lead { margin: 20px 0 28px; font-size: 17px; color: #dce5ee; max-width: 560px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--navy);
  padding: 13px 30px; border-radius: 30px; font-weight: 700; font-size: 15px;
  transition: .25s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; margin-left: 10px; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hcard {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 18px;
}
.hcard b { font-size: 15px; display: block; margin-bottom: 4px; }
.hcard span { font-size: 13px; color: #c9d6e3; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head .eyebrow {
  color: var(--accent-dark); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}
.sec-head h2 { font-size: 30px; color: var(--navy); margin: 8px 0 12px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid h3 { font-size: 24px; color: var(--navy); margin-bottom: 16px; }
.about-grid p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.fact b { font-size: 20px; color: var(--accent-dark); display: block; }
.fact span { font-size: 13px; color: var(--muted); }

.about-visual {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: #e8e2d8;
  display: flex; align-items: center; justify-content: center; color: #9a917f; font-size: 14px;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Workplace ---------- */
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wp-card {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: .25s;
}
.wp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,42,67,.12); }
/* height:auto 必须保留：图片标签上的 height 属性会变成 CSS 高度，
   不写 height:auto 的话 aspect-ratio 会失效，6 张图高度就会各不相同。 */
.wp-card img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; object-position: center; display: block; }
.wp-card figcaption {
  padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--navy);
  border-top: 1px solid var(--line);
}

/* ---------- Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: .25s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,42,67,.12); }
.prod-img {
  position: relative; aspect-ratio: 4/3; background: #f5f6f8;
}
.prod-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.prod-img span {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255,255,255,.9); padding: 4px 10px; border-radius: 12px; font-size: 12px;
}
.prod-body { padding: 18px; }
.prod-body h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.prod-body p { font-size: 13.5px; color: var(--muted); }

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.st-card .ico { font-size: 30px; margin-bottom: 12px; }
.st-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.st-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px 18px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 26px; font-weight: 800; color: var(--accent);
}
.step h3 { font-size: 15px; color: var(--navy); margin: 6px 0 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.cinfo li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.cinfo .ico { font-size: 20px; line-height: 1.5; }
.cinfo b { display: block; font-size: 14px; color: var(--navy); }
.cinfo span { display: block; font-size: 14px; color: var(--muted); }
.cinfo a { font-size: 14px; color: var(--muted); }
.cinfo a:hover { color: var(--accent-dark); }

form { display: grid; gap: 14px; }
form label { font-size: 13px; font-weight: 600; color: var(--navy); }
form input, form select, form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
form textarea { min-height: 110px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #aebccb; padding: 42px 0 26px; font-size: 13.5px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
footer li { margin-bottom: 7px; }
footer a:hover { color: var(--accent); }
.foot-bottom { text-align: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #7e8fa1; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .wp-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .strengths, .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 24px 18px;
  }
  nav ul.open { display: flex; }
  nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .prod-grid, .wp-grid, .strengths, .trust-grid, .steps, .facts, .form-row { grid-template-columns: 1fr; }
}

/* ---------- Global Reach ---------- */
.global {
  background: linear-gradient(140deg, #0a1f33 0%, #143253 55%, #1d4469 100%);
  color: #fff; padding: 78px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.global .sec-head h2 { color: #fff; }
.global .sec-head p { color: #c9d6e3; }
.global .sec-head .eyebrow { color: var(--accent); }

.map-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 22px 22px 18px;
}
.map-svg { width: 100%; height: auto; display: block; }
.world-dots path { fill: none; stroke: #8aa4c7; stroke-width: 3.4; stroke-linecap: round; opacity: .6; }
.route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 9; opacity: .95;
  animation: routeFlow 1.4s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -16; } }
.city-dot { fill: var(--accent); }
.city-lbl { font-size: 12.5px; fill: #fff; font-weight: 600; stroke: #0a1f33; stroke-width: 3; paint-order: stroke; }

.map-legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.lg-item { display: flex; align-items: flex-start; gap: 12px; color: #dbe7f1; }
.lg-item b { display: block; font-size: 14px; color: #fff; }
.lg-item span { display: block; font-size: 12px; color: #a8bdd2; line-height: 1.4; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex-shrink: 0; background: var(--accent); }
.lg-dot.start { box-shadow: 0 0 0 4px rgba(217,164,65,.25); }

@media (max-width: 1100px) {
  .map-legend { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .map-legend { grid-template-columns: 1fr; }
}

/* ---------- Quality & Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.trust-card .ico { font-size: 28px; margin-bottom: 12px; }
.trust-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.trust-card p { font-size: 13.5px; color: var(--muted); }
.trust-dl {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 22px 26px;
}
.trust-dl b { display: block; font-size: 16px; margin-bottom: 4px; }
.trust-dl span { font-size: 13.5px; color: #b8c7d6; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .faq-list { grid-template-columns: 1fr; } }
.faq-list + .faq-list { margin-top: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 46px 16px 20px; font-size: 15.5px; font-weight: 600;
  color: var(--navy); position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--accent-dark); transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item p { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- Download card ---------- */
.dl-card {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: .25s;
}
.dl-card:hover { border-color: var(--accent); box-shadow: 0 12px 26px rgba(15,42,67,.1); transform: translateY(-2px); }
.dl-card .ico { font-size: 22px; color: var(--accent-dark); line-height: 1.3; }
.dl-card b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.dl-card span span { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Inquiry form status / honeypot ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 14px; margin-top: 4px; min-height: 20px; }
.form-status.ok { color: #1c7a45; }
.form-status.err { color: #b3261e; }
.form-status.sending { color: var(--muted); }
form .btn[disabled] { opacity: .65; cursor: default; }
.form-fallback { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.form-fallback a { color: var(--accent-dark); border-bottom: 1px solid rgba(184,135,46,.4); }
.form-fallback a:hover { border-color: var(--accent-dark); }

@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wp-card:hover, .prod-card:hover, .btn:hover, .dl-card:hover { transform: none; }
  .routes circle, .city circle[stroke] { display: none; }
}

/* ---------- Guide / article pages (guides/<slug>/) ---------- */
.crumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--navy); }
.crumb a:hover { color: var(--accent-dark); }
.crumb .sep { margin: 0 6px; color: #b9b2a4; }

.art-head {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 60%, #2a5579 100%);
  color: #fff; padding: 56px 0 58px;
}
.art-head h1 { font-size: 34px; line-height: 1.28; font-weight: 800; max-width: 920px; }
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: #c9d6e3; }

.art-wrap { display: grid; grid-template-columns: 265px 1fr; gap: 46px; align-items: start; padding: 52px 24px 76px; }
.toc {
  position: sticky; top: 92px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 13.5px;
}
.toc b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 10px; }
.toc ol { list-style: decimal; padding-left: 18px; color: var(--muted); display: grid; gap: 7px; }
.toc a:hover { color: var(--accent-dark); }

.article { max-width: 830px; }
.article h2 {
  font-size: 24px; font-weight: 800; color: var(--navy);
  margin: 40px 0 14px; scroll-margin-top: 92px;
}
.article h3 { font-size: 18px; color: var(--navy); margin: 26px 0 10px; }
.article p { margin-bottom: 14px; font-size: 15.5px; color: #3d434b; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; font-size: 15.5px; color: #3d434b; display: grid; gap: 8px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article strong { color: var(--navy); }
.article a { color: var(--accent-dark); border-bottom: 1px solid rgba(184,135,46,.4); }
.article a:hover { border-color: var(--accent-dark); }
.article > p:first-of-type { font-size: 16.5px; color: #2f353d; }

.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 10px; }
.kv > div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kv b { display: block; font-size: 19px; color: var(--accent-dark); }
.kv span { font-size: 13px; color: var(--muted); }

.tbl-wrap { overflow-x: auto; margin: 20px 0 24px; }
table.gt { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
table.gt th, table.gt td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.gt th { background: var(--navy); color: #fff; font-weight: 600; }
table.gt tbody tr:nth-child(even) td { background: #faf9f6; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 10px; }
.case-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.case-card img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.case-card figcaption { padding: 12px 15px; font-size: 13px; color: var(--muted); }

.note {
  background: #fff8e8; border: 1px solid #f0dfb6; border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 14px 18px; margin: 20px 0;
  font-size: 14.5px; color: #5c4a22;
}

.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px 34px; margin: 38px 0 10px; }
.cta-box h2 { color: #fff; margin: 0 0 12px; }
.cta-box p { color: #c9d6e3; }
.cta-box .btn { margin-top: 14px; }
.cta-box .btn.ghost { border-color: rgba(255,255,255,.6); }

.rel-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rel-links .dl-card { margin-top: 0; }

/* ---------- RFQ template box (guide pages) ---------- */
.rfq-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0; background: #fff; }
.rfq-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--navy); color: #fff; padding: 11px 16px; font-size: 13.5px;
}
.rfq-copy {
  background: var(--accent); color: #10243a; border: 0; border-radius: 6px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.rfq-copy:hover { background: #d3a34c; }
.rfq-box pre {
  margin: 0; padding: 16px 18px; font-size: 12.8px; line-height: 1.75; color: #2f353d;
  white-space: pre-wrap; word-break: break-word; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 920px) {
  .art-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .toc { position: static; }
  .art-head h1 { font-size: 25px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .case-grid, .rel-links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr; }
  .art-head { padding: 40px 0 42px; }
}

/* ---------- Fabric consumption calculator ---------- */
.calc-intro {
  display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 26px;
}
.calc-intro h2 { font-size: 24px; color: var(--navy); font-weight: 800; }
.calc-intro p { font-size: 14.5px; color: var(--muted); max-width: 640px; }

.calc-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 30px; align-items: start; }
.calc-out { position: sticky; top: 92px; }

.calc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.calc-card > h3 { font-size: 15.5px; color: var(--navy); font-weight: 700; }
.calc-card > .hint { font-size: 13px; color: var(--muted); margin: 5px 0 15px; }

.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.calc-fields.three { grid-template-columns: 1fr 1fr 1fr; }
.calc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.calc-field.full { grid-column: 1 / -1; }
.calc-field label { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.calc-field input, .calc-field select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text);
}
.calc-field input:focus, .calc-field select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.calc-field .tip { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* size table */
.size-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 13.5px; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 6px 7px; text-align: center; }
.size-table th { background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: 12px; line-height: 1.35; }
.size-table th .th-sub { font-weight: 400; color: var(--muted); }
.size-table input {
  width: 100%; padding: 6px 6px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13.5px; font-family: inherit; text-align: center; color: var(--text);
}
.size-table input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.size-table input.fc-size { font-weight: 700; color: var(--navy); }
.size-table td.res { background: #fffdf7; color: var(--accent-dark); font-weight: 700; }
.size-table tr.fc-row-off td.res { color: #b9b2a4; font-weight: 400; }
.fc-del {
  border: 0; background: transparent; color: #b8b2a6; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px 7px; border-radius: 6px;
}
.fc-del:hover { color: #b23b2e; background: #f6ece9; }

.btn-sm {
  display: inline-block; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--navy); padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: .2s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-sm.solid { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.btn-sm.solid:hover { background: var(--accent-dark); color: #fff; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.calc-actions .tip { font-size: 12px; color: var(--muted); }

/* results */
.calc-out-card {
  background: linear-gradient(140deg, #0a1f33 0%, #143253 58%, #1d4469 100%);
  color: #fff; border-radius: 14px; padding: 22px 24px;
}
.calc-out-card h3 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.calc-big { display: grid; gap: 12px; }
.calc-big > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,.16); padding-bottom: 10px; }
.calc-big > div:last-child { border-bottom: 0; }
.calc-big b { font-size: 25px; font-weight: 800; color: var(--accent); letter-spacing: .3px; line-height: 1.2; }
.calc-big b small { font-size: 13px; font-weight: 600; color: #c9d6e3; }
.calc-big span { font-size: 12.5px; color: #c9d6e3; text-align: right; }
.calc-rows { margin-top: 16px; display: grid; gap: 8px; font-size: 13px; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 12px; color: #b8c7d6; }
.calc-rows > div b { color: #fff; font-weight: 600; }
.calc-note { margin-top: 14px; font-size: 12px; color: #8fa3b8; line-height: 1.6; }
.calc-warn {
  margin-top: 14px; background: rgba(217,164,65,.14); border: 1px solid rgba(217,164,65,.38);
  border-radius: 8px; padding: 10px 13px; font-size: 12.5px; color: #f0dfb6; line-height: 1.6;
}
.calc-warn b { color: #fff; }
.calc-detail { margin-top: 16px; font-size: 12.5px; }
.calc-detail summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.calc-detail pre {
  margin-top: 10px; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.2px; line-height: 1.75; color: #c9d6e3;
}
.calc-out .btn-sm { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.calc-out .btn-sm:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 1060px) {
  .calc-layout { grid-template-columns: 1fr; gap: 20px; }
  .calc-out { position: static; }
}
@media (max-width: 640px) {
  .calc-fields, .calc-fields.three { grid-template-columns: 1fr 1fr; }
  .calc-card { padding: 16px 15px; }
  .calc-big b { font-size: 21px; }
}
@media (max-width: 420px) {
  .calc-fields, .calc-fields.three { grid-template-columns: 1fr; }
}

/* print — a costing sheet on paper */
@media print {
  .topbar, header, nav.crumb, footer, .toc, .calc-actions, .no-print { display: none !important; }
  body { background: #fff; }
  .art-head { background: #fff !important; color: #000; padding: 0 0 12px; }
  .art-head h1 { color: #000; font-size: 20px; }
  .art-meta { color: #444; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-out-card { background: #fff !important; color: #000; border: 1px solid #999; }
  .calc-out-card h3, .calc-big b, .calc-rows > div b, .calc-rows > div, .calc-big span { color: #000 !important; }
  section { padding: 0; }
}
