@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("inter-latin-400-8909904ab6.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("inter-latin-600-f9a06e79cd.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("inter-latin-600-f9a06e79cd.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url("manrope-latin-600-f7ac6258da.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 700; font-display: swap; src: url("manrope-latin-700-d2a12c85a8.woff2") format("woff2"); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url("manrope-latin-700-d2a12c85a8.woff2") format("woff2"); }
@font-face { font-family: "FEX Hans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fex-hans-82ee91a9b0.woff2") format("woff2"); unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url("barlow-latin-700-ba0f36b03c.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0b2a5b;
  --navy-2: #183656;
  --ink: #1d2733;
  --muted: #5c6570;
  --line: #e2ddd4;
  --bg: #f7f4ee;
  --white: #fff;
  --teal: #0c8a78;
  --teal-d: #08685a;
  --mint: #d8f3ee;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(18, 42, 69, 0.08);
  --max: 1180px;
  --font: Inter, "Noto Sans SC", "FEX Hans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --head: Manrope, Inter, "Noto Sans SC", "FEX Hans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-d); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 0.45em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.85em; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: 8px; top: -40px; background: #fff; color: var(--navy); padding: 8px 12px; z-index: 80; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.topbar { background: var(--navy); color: #d5e4ee; font-size: 0.86rem; }
.topbar .container { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.tb-right { display: flex; gap: 16px; flex-wrap: wrap; }
.tb-ops { background: #0e2238; color: #c5d4e2; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.08); }
.role-pill { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-right: 8px; background: var(--mint); color: var(--teal-d); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #091b32; flex: none; }
.brand-mark { width: auto; height: 42px; display: block; }
.lockup-rule { background: #e3ddd4; width: 1px; height: 28px; flex: none; }
.lockup-name { font-family: Barlow, var(--head); letter-spacing: 0.14em; font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.foot-brand img { width: auto; height: 36px; display: block; }
.foot-brand .lockup-name { color: inherit; margin: 4px 0 12px; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: #efeae2; color: var(--teal-d); }
.nav .btn { margin-left: 6px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--teal-d); }
.lang { border: 1px solid var(--line); border-radius: 999px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--teal); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero { background: linear-gradient(120deg, #0d2138 0%, #122a45 48%, #0e4f56 100%); color: #fff; padding: 0; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: 560px; padding-top: 48px; padding-bottom: 48px; }
.hero h1, .hero p { color: #fff; }
.hero .lead { color: #d6e4ee; font-size: 1.12rem; max-width: 40rem; }
.render { position: relative; background: #eef0f2; border-radius: 16px; overflow: hidden; margin: 0; }
.render img { width: 100%; height: auto; display: block; background: #eef0f2; }
.render .cap { position: absolute; right: 12px; bottom: 10px; color: #6b7280; font-size: 12px; font-weight: 400; line-height: 1; }
.family-layout { display: grid; grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); gap: 28px; align-items: center; }
.card-link { display: block; color: inherit; text-decoration: none; }
ul.points { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.points li { position: relative; padding-left: 22px; margin: 0.35em 0; }
ul.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.eyebrow { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8ee0d2; margin-bottom: 10px; }

.band { background: #0e2238; color: #e7f2f4; padding: 42px 0; }
.band h2, .band h3, .band p { color: #fff; }
.tight { padding: 40px 0; }
.eyebrow.dark { color: var(--teal-d); }
.product-card { padding: 0; overflow: hidden; }
.product-card .pad { padding: 14px 16px 18px; }
.range-line { color: var(--teal-d); font-weight: 700; font-size: 0.92rem; }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.tile-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #eef0f2; flex: none; }
.tile-media .render { position: absolute; inset: 0; height: 100%; margin: 0; border-radius: 0; }
.tile-media .render picture, .tile-media .render img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile > div { padding: 12px 14px 16px; }
.quote-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quote-flow article { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px; }
.quote-flow b { color: #8ee0d2; font-family: var(--head); font-size: 1.3rem; }
.family-hero { padding: 28px 0 8px; }
.family-hero-grid, .split-2 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; }
ol.specify { margin: 0; padding-left: 1.2em; }
ol.specify li { margin: 0.45em 0; }
.faq { border-top: 1px solid var(--line); padding: 8px 0; }
.cta-band .btn { background: #fff; color: var(--navy); border-color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 8px 4px; }
.stat b { display: block; font-family: var(--head); font-size: 1.7rem; color: #fff; line-height: 1.1; }
.stat span { color: #c5d6e2; font-size: 0.92rem; }

section { padding: 68px 0; }
.section-alt { background: #fff; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46rem; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: #b7ddd6; }
.card h3 { margin-top: 8px; }
.card p:last-child { margin-bottom: 0; }
.illu { background: #e7eef2; border-radius: 12px; min-height: 160px; display: grid; place-items: center; overflow: hidden; }
.illu svg { width: min(100%, 280px); height: auto; }
.tag { display: inline-block; background: var(--mint); color: var(--teal-d); font-weight: 700; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; }
.page-hero { background: linear-gradient(120deg, #0d2138, #122a45 60%, #0e4f56); color: #fff; padding: 48px 0 40px; }
.page-hero h1, .page-hero p { color: #fff; }
.page-hero p { color: #d6e4ee; max-width: 46rem; margin: 0; }
.crumbs { font-size: 0.88rem; margin-bottom: 8px; color: #b7c9d8; }
.crumbs a { color: #e7f4f2; }

.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 54px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 16px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }

.image-band { position: relative; padding: 0; }
.image-band img { width: 100%; max-height: 520px; object-fit: cover; }
.image-band figcaption { position: absolute; left: 24px; bottom: 24px; background: rgba(255,255,255,0.94); color: var(--navy); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.88rem; }
.image-band figcaption a { color: var(--navy); text-decoration: none; }

.cta-band { background: linear-gradient(120deg, var(--teal-d), var(--teal)); color: #fff; border-radius: 22px; padding: 36px 40px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { color: #e7f7f3; margin-top: 6px; }

.spec-card { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.spec dt { font-weight: 700; color: var(--navy); }
.spec dd { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f3ee; color: var(--navy); }

.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 92px; }
.filters label { display: block; font-weight: 700; color: var(--navy); font-size: 0.88rem; margin: 10px 0 4px; }
.filters select, .field input, .field select, .field textarea, input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cfc6b8; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; gap: 8px; align-items: center; justify-content: flex-start; font-weight: 600; margin: 8px 0; width: auto; }
.finder-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 22px; align-items: start; }
.wizard-progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.wizard-progress li { flex: 1; height: 6px; border-radius: 99px; background: #e4ddd2; }
.wizard-progress li.on { background: var(--teal); }
fieldset { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 16px; margin: 0 0 12px; }
legend { font-family: var(--head); font-weight: 700; color: var(--navy); padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-weight: 600; color: var(--navy); }
.trio { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 8px; }
.result { border-left: 4px solid var(--teal); }
.callout { background: #fff6e8; border-radius: 12px; padding: 12px 14px; color: #6b4a12; }
.note { color: var(--muted); font-size: 0.92rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; }
.rfq-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #eef6f4; }
.rfq-status.err { background: #fff4f0; }
.ref-code { font-family: var(--head); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.04em; color: var(--navy); background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; }

.site-footer { background: #122a45; color: #c5d4e2; padding: 56px 0 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0.35em 0; }
.footer-role { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8ee0d2; margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
.hidden { display: none !important; }
address { font-style: normal; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .hero .container, .g4, .g3, .stats, .spec-card, .layout, .finder-layout, .footer-grid, .form-grid, .family-layout, .family-hero-grid, .split-2, .quote-flow { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .cards { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero .container { min-height: 0; }
  section { padding: 48px 0; }
  .tb-left { max-width: 100%; }
}
@media (max-width: 640px) {
  .industry-grid { grid-template-columns: 1fr; }
  .container { width: min(var(--max), calc(100% - 28px)); }
  .cta-band { padding: 24px; }
  .trio { grid-template-columns: 1fr; }
  .brand { gap: 10px; }
  .brand-mark { height: 32px; }
  .lockup-name { font-size: 0.82rem; letter-spacing: 0.12em; }
  h1 { overflow-wrap: anywhere; hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.app-card .app-media{margin:-22px -22px 14px;aspect-ratio:16/10;overflow:hidden;border-radius:var(--radius) var(--radius) 0 0;background:#eef0f2}
.app-card .app-media picture,.app-card .app-media img{display:block;width:100%;height:100%;object-fit:cover}

.steps .card.step-out::before{content:"\2713";counter-increment:none}

/* r5.1: application cards without a photo should not stretch to an empty frame */
.app-card:not(:has(.app-media)){align-self:start}

/* r5.1 I9: 7 family cards as 4 + 3 centred on desktop */
@media (min-width: 981px) {
  .grid.g4.families-7 { grid-template-columns: repeat(12, 1fr); }
  .grid.g4.families-7 > * { grid-column: span 3; }
  .grid.g4.families-7 > :nth-child(5) { grid-column: 3 / span 3; }
  .grid.g4.families-7 > :nth-child(6) { grid-column: 6 / span 3; }
  .grid.g4.families-7 > :nth-child(7) { grid-column: 9 / span 3; }
}
/* r5.1 I10: mobile top bar = phone icon + quote button only */
.header-tel, .header-quote { display: none; }
.header-tel { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); align-items: center; justify-content: center; flex: none; }
.header-tel svg { width: 20px; height: 20px; fill: currentColor; display: block; }
@media (max-width: 980px) {
  .topbar { display: none; }
  .site-header .container { justify-content: flex-start; gap: 6px; }
  .brand { margin-right: auto; min-width: 0; }
  .header-tel, .header-quote { display: inline-flex; flex: none; align-items: center; justify-content: center; }
  .header-quote { padding: 7px 10px; font-size: 0.8rem; white-space: nowrap; }
  .header-tel { width: 36px; height: 36px; }
}
@media (max-width: 520px) {
  .brand .lockup-rule, .brand .lockup-name { display: none; }
}
/* r5.1: empty reference box hidden until the number is filled */
#ref-slot:empty { display: none; }
/* r5.1: product / industry cards with photo removed stay tidy */
.product-card:not(:has(figure)) { padding: 16px 18px; }
.scenario .sm:empty { display: none; }

/* r-upg1 additions */
.hero .btn-row { flex-wrap: wrap; }
.u1-pts { list-style: none; padding: 0; margin: 10px 0 12px; font-size: .9rem; color: var(--muted); }
.u1-pts li { padding: 3px 0; border-top: 1px solid #e6ebf0; }
.u1-pts b { color: var(--navy); font-weight: 600; }
.u1-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.u1-pick { font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.u1-cmp { margin-top: 18px; }
.u1-cmp [data-compare-panel] { margin-top: 14px; }
.u1-ver h3 { font-size: 1.05rem; }
.u1-ver p { margin: 0 0 8px; }
.u1-add { font-weight: 600; }
.u1-notes { border-top: 1px solid #e6ebf0; }
.u1-note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.u1-note { background: #fff; border: 1px solid #dfe5ec; border-left: 4px solid var(--teal); border-radius: 10px; padding: 16px 18px; }
.u1-note h3 { font-size: 1.02rem; margin-bottom: .35em; }
.u1-note p { margin: 0; color: var(--muted); font-size: .95rem; }
.section-alt .u1-note { background: #fff; }
.u1-docs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 22px; padding: 18px 20px; background: #f3f6f9; border-radius: 10px; }
.u1-docs h3 { margin-bottom: .2em; font-size: 1.02rem; }
.u1-docs p { margin: 0; max-width: 680px; }
.u1-chk ul, .u1-list { padding-left: 1.1em; margin: 6px 0 10px; }
.u1-chk li, .u1-list li { margin: 3px 0; }
.u1-gl { margin: 0; }
.u1-gl div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid #e6ebf0; }
.u1-gl dt { font-weight: 600; color: var(--navy); }
.u1-gl dd { margin: 0; color: var(--muted); }
.u1-contact h3 { font-size: 1rem; margin: 14px 0 4px; }
.u1-contact p { margin: 0; }
.u1-contact .lockup-name { font-weight: 700; letter-spacing: .12em; color: var(--navy); }
.u1-status { padding: 12px 14px; border-radius: 8px; border-left: 4px solid; background: #f3f6f9; }
.u1-status b { display: block; margin-bottom: 2px; }
.u1-status.ok { border-color: var(--teal); }
.u1-status.missing { border-color: #c98a00; background: #fff8e6; }
.u1-status.review { border-color: #b4462b; background: #fdf0ec; }
@media (max-width: 900px) { .u1-note-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .u1-gl div { grid-template-columns: 1fr; gap: 2px; } .hero .btn-row .btn { flex: 1 1 100%; text-align: center; } }
/* r-upg1: six menu items + RFQ + two languages – compact menu up to 1320px */
.nav { gap: 0; flex-wrap: nowrap; }
.nav a { padding: 8px 7px; font-size: 0.9rem; white-space: nowrap; }
.nav .lang { padding: 6px 9px; margin-left: 4px; }
.brand .lockup-rule { margin: 0 2px; }
@media (min-width: 981px) and (max-width: 1320px) {
  .site-header .container { position: relative; justify-content: flex-start; gap: 6px; }
  .brand { margin-right: auto; }
  .nav-toggle { display: block; }
  .header-quote { display: inline-flex; flex: none; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 60; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}
/* r-upg2: version cards without orphans */
.u1-vgrid { grid-template-columns: repeat(3, 1fr); }
.u1-vgrid.n2, .u1-vgrid.n4 { grid-template-columns: repeat(2, 1fr); }
.u1-vgrid.n7 { grid-template-columns: repeat(2, 1fr); }
.u1-vgrid.n7 > :last-child { grid-column: span 2; }
@media (min-width: 1200px) {
  .u1-vgrid.n4, .u1-vgrid.n7 { grid-template-columns: repeat(4, 1fr); }
  .u1-vgrid.n7 > :last-child { grid-column: span 2; }
}
@media (max-width: 980px) {
  .u1-vgrid, .u1-vgrid.n2, .u1-vgrid.n4, .u1-vgrid.n7 { grid-template-columns: 1fr; }
  .u1-vgrid.n7 > :last-child { grid-column: auto; }
}
.u1-files code { font-size: .82rem; word-break: break-all; background: #f2f4f6; padding: 1px 4px; border-radius: 3px; }
.u1-credits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.u1-credits .card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.u1-credits .card p { margin: 0 0 6px; }
@media (max-width: 980px) { .u1-credits { grid-template-columns: 1fr; } }
/* r-upg3: no single card or image alone in a last row (all widths above mobile single column) */
.u1-vgrid.n7 > :last-child { grid-column: auto; }
@media (min-width: 981px) and (max-width: 1199px) {
  .u1-vgrid.n7 { grid-template-columns: repeat(6, 1fr); }
  .u1-vgrid.n7 > * { grid-column: span 2; }
  .u1-vgrid.n7 > :nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 1200px) { .u1-vgrid.n7 > :last-child { grid-column: span 2; } }
@media (min-width: 981px) {
  .cards > :first-child:nth-last-child(odd), .u1-credits > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .grid.g2:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .mosaic > figure:nth-child(4):last-child { grid-column: span 2; }
}
@media (min-width: 641px) and (max-width: 980px) {
  .req-grid > :first-child:nth-last-child(odd), .prod-grid > :first-child:nth-last-child(odd), .adv-grid > :first-child:nth-last-child(odd), .ind-tiles > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .mosaic > figure:first-child:nth-last-child(4) { grid-column: auto; aspect-ratio: 4/3; }
}
@media (min-width: 981px) {
  .cards > .card:first-child:nth-last-child(odd) figure.render { aspect-ratio: auto; height: 300px; padding: 0; }
  .cards > .card:first-child:nth-last-child(odd) figure.render picture { display: block; height: 100%; }
  .cards > .card:first-child:nth-last-child(odd) figure.render img { position: static; width: 100%; height: 100%; object-fit: contain; }
}

/* r-upg4: about process steps — no lone card in the 2-column band (641–980px) */
@media (min-width: 641px) and (max-width: 980px) {
  .fxa .fxa-steps > li:first-child { grid-column: 1 / -1; }
}
/* r-upg4: keep card action labels (e.g. 对比) on one line at every width */
.u1-pick { white-space: nowrap; flex-shrink: 0; }
.u1-actions .btn { white-space: nowrap; flex-shrink: 0; }
