/*
 * The English section (design/english-2026-11/SPEC.md and its mockups). Tokens and base: site.css;
 * the tool: constructor*.css; the name card and the alphabet: names.css. New classes are e-*; header
 * and footer rules are scoped to body.en, so nothing here touches a Russian page (it is not loaded there).
 * Sections are 56 px apart on a phone, 80 on a desktop; tap targets 44 px and up.
 */
body.en { --ok-tint: #E3F1EE; --amber-tint: #FCF1DC; --danger: #B3261E; --danger-tint: #FBE9E6; }
.en .nw { white-space: nowrap; }
.en b, .en strong { font-weight: 600; }

/* ---------------------------------------------------------------- header */
.en .header-inner { gap: 6px; min-height: 64px; }
.en .wordmark { margin-right: auto; order: 1; }
.lang {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; order: 2; min-width: 44px; height: 44px; padding: 0 8px;
    font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); border-radius: 12px;
}
.lang svg { flex: none; }
.lang:hover { color: var(--accent); background: var(--tint-2); }
.en .nav-toggle { margin-left: 4px; }
.en .site-nav a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; font-size: 15.5px; }
.en .site-nav a small { color: var(--muted); font-size: 13px; font-weight: 400; }
.en .site-nav a[aria-current] { color: var(--accent); font-weight: 600; }
.en .site-nav .nav-extra a { color: var(--muted); font-size: 14.5px; border-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.en .site-footer { margin-top: 56px; display: block; }
.en .site-footer h2 { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #A2938A; }
.en .site-footer ul { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; font-size: 14px; }
.en .site-footer ul a { display: block; padding: 9px 0; line-height: 1.3; }
.en .site-footer .legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.e-foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.e-foot-site { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- page parts */
.e-lead { max-width: 60ch; margin: 0 0 22px; font-size: 17px; color: var(--body); }
.e-sec { margin-top: 56px; scroll-margin-top: 80px; }
.e-sec > h2 { margin-bottom: 8px; }
.e-sublead { max-width: 62ch; margin: 0 0 20px; font-size: 16px; color: var(--body); }
.e-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.e-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-md); padding: 22px 20px; }
.en button.btn { border: 0; font-family: var(--text); cursor: pointer; }
.en button.btn-secondary { border: 1px solid var(--line); }
.en .ad-slot { margin-block: 48px; max-width: 728px; }
.en .ad-slot + .e-sec, .en .ad-slot + .e-cta { margin-top: 0; }
.e-amber { background: var(--amber-tint); border-radius: 16px; padding: 16px 18px; font-size: 15px; color: var(--body); }
.e-amber a { font-weight: 600; white-space: nowrap; }

.e-prose { max-width: var(--w-text); margin: 44px auto 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.e-prose > :first-child { margin-top: 0; }
.e-prose h2 { margin: 44px 0 12px; color: var(--ink); scroll-margin-top: 80px; }
.e-prose h3 { margin: 28px 0 8px; color: var(--ink); }
.e-prose ul, .e-prose ol { margin: 0 0 16px; padding-left: 22px; }
.e-prose li { margin-bottom: 8px; }
.e-prose li::marker { color: var(--muted); }
.e-prose h1 { color: var(--ink); }
.e-prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.e-prose figure { margin: 24px 0 28px; }
.e-prose figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.e-fig { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 32px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.e-fig img { display: block; }
.e-fig img { max-width: 100%; height: auto; }
.e-prose + .ad-slot { margin-top: 48px; }

.e-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px -20px 0; padding: 0 20px 4px; }
.e-chips::-webkit-scrollbar { display: none; }
.e-prose .crumbs a, .e-prose .e-chips a { text-decoration: none; }
.e-chips a { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.e-chips a:hover { border-color: var(--accent); color: var(--accent); }

.e-links { display: grid; gap: 12px; margin-top: 16px; }
.e-links a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
.e-links a:hover { border-color: #DFCFC0; box-shadow: var(--shadow-md); }
.e-links b { display: block; font-size: 16px; }
.e-links span span { font-size: 14px; color: var(--muted); }
.e-links a::after { content: "→"; margin-left: auto; color: var(--accent); }

.e-tbl-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.e-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.e-tbl th, .e-tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.e-tbl tr:last-child > * { border-bottom: 0; }
.e-tbl thead th { background: var(--tint-2); font-size: 13.5px; font-weight: 600; }
.e-tbl th[scope=row] { font-weight: 600; }
.e-strings .e-tbl th[scope=row] { white-space: nowrap; }
.e-tbl small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.e-tbl svg { display: block; }
.en .e-tbl code { margin-left: 0; }

/* ---------------------------------------------------------------- hub */
.e-hero { display: grid; gap: 28px; padding-top: 8px; }
.e-hero h1 { max-width: 14ch; margin: 16px 0 14px; font-size: clamp(34px, 4.4vw, 52px); }
.e-hero .e-lead { margin-bottom: 26px; }
.e-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.e-ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.e-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.e-ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%232E7D74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.e-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 20px; border-radius: 24px; background: var(--tint-2); }
.e-art img { display: block; border-radius: 8px; }
.e-tools { display: grid; gap: 14px; }
.e-tool { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
.e-tool:hover { border-color: var(--accent); color: var(--ink); }
.e-tool-pic { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 14px; background: var(--tint-2); overflow: hidden; }
.e-tool-pic img { display: block; max-width: calc(100% - 12px); height: auto; }
.e-tool-pic.is-wide img { max-width: none; width: 200px; }
.e-tool h3 { margin: 0 0 4px; font-size: 17.5px; }
.e-tool p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.e-tool-go { display: none; }
.e-tool.is-main { border-color: var(--ink); background: var(--ink); color: #F5EDE5; }
.e-tool.is-main p { color: #BFB1A6; }
.e-tool.is-main .e-tool-pic { background: #3A302A; }
.e-abc { display: flex; align-items: flex-end; gap: 4px; }
.e-abc svg { display: block; width: calc(var(--n) * 4.6px); height: auto; overflow: visible; }
.e-bars { display: grid; gap: 5px; width: 72px; }
.e-bars span { display: flex; align-items: center; gap: 6px; }
.e-bars i { height: 6px; border-radius: 4px; }
.e-bars small { display: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.e-knots4 { display: grid; grid-template-columns: auto auto; gap: 6px; }
.e-knots4 svg { display: block; width: 34px; height: 34px; }
.e-about { display: grid; gap: 22px; }
.e-about p { font-size: 16.5px; color: var(--body); }
.e-about ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.e-about li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 15px; color: var(--body); }
.e-about li b { display: block; margin-bottom: 2px; color: var(--ink); }

/* ---------------------------------------------------------------- the tool in English */
.en .cn-page { max-width: 880px; margin-inline: auto; }
.en .cn-page > .e-prose { margin-inline: 0; max-width: 720px; }
.cn-weave a { min-height: var(--tap); border-radius: 11px; color: var(--muted); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; }
.cn-weave a:hover { color: var(--ink); }
.cn-weave a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(38, 32, 28, 0.12); }
.cn-dhelp-more { margin: 12px 0 0; text-align: center; font-size: 14.5px; }
.cn-dhelp-more a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.en .cn-dopts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.en .cn-dopt { min-width: 0; padding-inline: 10px; gap: 10px; }
@media (max-width: 479px) { .en .cn-my-th { width: 70px; } .en .cn-my-th canvas { max-width: 64px; } .en .cn-my-open { gap: 10px; } .en .cn-my-row { padding-right: 0; } }   /* “Normal · today · 8 strings” fits */
/* “Background” is longer than «Фон» */
.en .cn-pick { padding-inline: 8px; gap: 8px; }
.en .cn-pick i { width: 26px; height: 26px; }
.en .cn-pick b { font-size: 14px; }
/* the length line of the alpha result carries the switch */
.en #cn-result-sum { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.en #cn-result-sum .cn-units button { min-width: 38px; padding: 0 8px; }
/* in | cm */
.cn-units { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--tint-2); vertical-align: middle; }
.cn-units button { min-width: 44px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 500 14px var(--text); color: var(--muted); cursor: pointer; position: relative; }
.cn-units button::after { content: ""; position: absolute; inset: -5px 0; }   /* 44 px to tap */
.cn-units button.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(38, 32, 28, 0.12); }
.en .cn-legend h3, .en .cn-dlegend h3:first-child { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.cn-units-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.en #cn-dlength { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------------------------------------------------------------- the four knots */
.e-knots { display: grid; gap: 12px; margin: 18px 0 26px; padding: 0; list-style: none; }
.e-prose .e-knots { padding: 0; }
.e-knots li { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 16px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.e-knots i { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 12px; background: var(--tint-2); }
.e-knots b { font-size: 16.5px; color: var(--ink); }
.e-knots p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.en code { margin-left: 8px; padding: 3px 7px; border-radius: 6px; background: var(--tint); font: 600 12.5px/1 var(--text); color: var(--accent-dark); }

/* ---------------------------------------------------------------- name page, alphabet (names.css) */
.en .nh .nc { margin-top: 0; }
.en .ab-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.e-sizes { display: grid; gap: 18px; }
.e-yours td b { white-space: nowrap; }
.e-letters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; padding: 0; list-style: none; }
.e-letters li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 600; }
.e-strings { display: grid; gap: 24px; }
.e-strings h3 { margin: 0 0 4px; }
.e-strings h3 + p { margin-bottom: 18px; color: var(--body); font-size: 16px; }
.e-cta { display: grid; gap: 16px; margin-top: 56px; padding: 24px 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-md); }
.e-cta h2 { margin: 0 0 6px; }
.e-cta p { margin: 0; color: var(--body); }
.e-quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 600; }
.en .sz td span + span::before { content: none; }
.en .sz td span { display: block; }

/* ---------------------------------------------------------------- calculator */
.calc { display: grid; gap: 24px; }
.calc-field { margin-top: 22px; }
.calc-field:first-child { margin-top: 0; }
.calc-field[hidden] { display: none; }
.calc-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15px; font-weight: 600; min-height: 44px; }
.calc-stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; }
.calc-stepper button { height: 56px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); font: 500 24px var(--text); color: var(--ink); cursor: pointer; }
.calc-stepper button:disabled { color: #C9BDB2; cursor: default; }
.calc-stepper output { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #FDFBF8; font-size: 18px; font-weight: 700; line-height: 1.15; }
.calc-stepper output small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.calc-pats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.calc-pat { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 10px 2px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: 600 13.5px var(--text); color: var(--ink); cursor: pointer; }
.calc-pat i { display: block; width: 40px; height: 40px; border-radius: 8px; background-size: 40px auto; box-shadow: inset 0 0 0 1px var(--line); }
.calc-pat[aria-checked=true] { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.calc-mine { margin-top: 10px; }
.calc-short { display: none; }
.calc-rows { margin-top: 18px; }
.calc-mine > button i { display: inline-block; font-style: normal; transition: transform .2s; }
.calc-mine > button[aria-expanded=true] i { transform: rotate(90deg); }
.calc-mine > button { min-height: 44px; padding: 0; border: 0; background: none; font: 600 14.5px var(--text); color: var(--accent); cursor: pointer; }
.calc-mine ul { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.calc-mine li button { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; align-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: 500 15px var(--text); color: var(--ink); text-align: left; cursor: pointer; }
.calc-mine li button[aria-checked=true] { border-color: var(--accent); }
.calc-mine li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-mine li small { flex: none; font-size: 12.5px; color: var(--muted); }
.calc-mine p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.calc-res { padding: 20px 18px; border-radius: 18px; background: var(--tint-2); scroll-margin-top: 80px; }
.calc-res h2 { margin: 0 0 2px; font-size: 19px; letter-spacing: -0.01em; }
.calc-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.calc-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.calc-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.calc-list i { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font: 700 12px var(--text); box-shadow: 0 0 0 1px rgba(38, 32, 28, .18); }
.calc-list b { display: block; font-size: 15px; }
.calc-list small { display: block; font-size: 12.5px; color: var(--muted); }
.calc-len { text-align: right; white-space: nowrap; }
.calc-list .calc-len b { font-size: 18px; }
.calc-tip { margin: 14px 0 0; font-size: 13.5px; color: var(--body); }
.e-formula { margin: 16px 0 20px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 15.5px; }
.e-formula div { display: flex; justify-content: space-between; gap: 4px 14px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.e-formula div:last-child { border-bottom: 0; }
.e-formula dt { font-weight: 600; color: var(--ink); }
.e-formula dd { margin: 0; color: var(--muted); }

@media (max-width: 359px) {
    .calc-stepper { grid-template-columns: 48px 1fr 48px; gap: 8px; }
    .calc-stepper output { font-size: 15.5px; white-space: nowrap; }
    .en .ab-height { flex-wrap: wrap; gap: 8px; }
    .en .ab-height .seg { flex-basis: 100%; }
    .en .cn-dopt { padding-inline: 8px; gap: 8px; }
    .en .cn-dopt b { font-size: 13.5px; }
    .e-chips { flex-wrap: wrap; overflow: visible; }
    .e-chips a { padding: 0 11px; font-size: 13.5px; }
    .e-prose .e-tbl th, .e-prose .e-tbl td { padding: 9px 6px; font-size: 13px; }
    .e-prose .e-tbl svg { width: 30px; height: 30px; }
    .en .cn-rcv-actions { grid-template-columns: minmax(0, 1fr); }
    .en .cn-rcv-actions .cn-btn { padding: 0 10px; }
    .e-abc svg { width: calc(var(--n) * 4px); }
    .en .wordmark { font-size: 15.5px; }
    .lang { padding: 0 4px; }
    .e-tool { grid-template-columns: 80px 1fr; gap: 12px; }
    .e-tool-pic { width: 80px; height: 80px; }
    .e-tbl th, .e-tbl td { padding: 10px 9px; }
}
@media (max-width: 419px) {
    .calc-pats { grid-template-columns: 1fr 1fr; }
    .calc-long { display: none; }
    .calc-short { display: inline; }
}
@media (max-width: 899px) {
    .e-hero .e-actions .btn { flex: 1 1 100%; }
    .e-opt { display: none; }
}

@media (min-width: 900px) {
    .en .header-inner { flex-wrap: nowrap; gap: 4px; }
    .en .wordmark { margin-right: 18px; }
    .en .site-nav { margin: 0 auto 0 0; }
    .en .site-nav ul { gap: 2px; }
    .en .site-nav a { padding: 10px; border-radius: 10px; position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink); }
    .en .site-nav a small { display: none; }
    .en .site-nav a:hover { background: var(--tint-2); color: var(--ink); }
    .en .site-nav a[aria-current] { color: var(--ink); }
    .en .site-nav a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
    .lang { order: 3; padding-left: 14px; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; }
    .en .site-footer { max-width: 1200px; margin: 80px auto 20px; padding: 36px 40px 24px; }
    .e-foot { display: grid; grid-template-columns: 1.3fr 2.7fr; gap: 40px; }
    .e-foot-cols { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
    .e-foot-site { grid-column: auto; }
    .en .site-footer h2 { margin-top: 4px; }
    .e-lead { font-size: 18px; margin-bottom: 28px; }
    .e-sec { margin-top: 80px; }
    .e-card { padding: 32px 36px; }
    .e-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
    .e-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    /* five cards: three and two, no hole */
    .e-links:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .e-links:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
    .e-links:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
    .e-hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding-top: 24px; }
    .e-art { min-height: 360px; padding: 32px; }
    .e-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .e-tool { display: flex; flex-direction: column; align-items: stretch; padding: 16px 16px 20px; }
    .e-tool > span:last-child { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
    .e-tool-pic { width: 100%; height: 150px; }
    .e-tool-pic.is-wide img { width: 328px; }
    .e-tool-go { display: inline-block; margin-top: auto; padding-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
    .e-tool.is-main .e-tool-go { color: #F3B9A6; }
    .e-abc { gap: 10px; }
    .e-abc svg { width: calc(var(--n) * 10px); }
    .e-bars { gap: 8px; width: 230px; }
    .e-bars i { height: 8px; }
    .e-bars small { display: inline; }
    .e-knots4 { gap: 10px; }
    .e-knots4 svg { width: 44px; height: 44px; }
    .e-about { grid-template-columns: 1.1fr 1fr; gap: 48px; }
    .e-knots { grid-template-columns: 1fr 1fr; }
    .en .ab-grid { grid-template-columns: repeat(13, minmax(0, 1fr)); }
    .en .ab-sheet { max-width: none; }
    .e-sizes { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
    .e-strings { grid-template-columns: 1.2fr 1fr; align-items: start; gap: 40px; }
    .e-cta { margin-top: 80px; grid-template-columns: 1fr auto; align-items: center; padding: 30px 36px; }
    .calc { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
    .calc-res { padding: 26px; }
}

/* ---------------------------------------------------------------- print: one layout that fits US Letter and A4
   (SPEC E9): A4's width × Letter's height minus 0.4 in margins. */
@page { size: auto; margin: 0.4in; }
@page alphabet { size: landscape; margin: 0.4in; }
@media print {
    body.en { background: #fff; }
    html.cn-printing .cn-print { max-width: 7.47in; }
    .ab-print img { max-height: 7.4in; }
}
