/* elitesoft — the COMOSYS page (inc/comosys-page.php), on top of edpage.css.
 * A set of steel drawings: dark sheets for the story, light «drafting film» sheets (.cmx-paper) for what a
 * detailer checks. Cyanotype blue is the drawing ink, red-oxide primer marks what an engine touches,
 * green a joint that passed. The engines demo (.cmd, assets/js/comosys.js) is the one moving part. */

.cmx {
  --cmx-film: #E4E9E6;
  --cmx-film-2: #D5DCD8;
  --cmx-ink: #14202B;
  --cmx-ink-soft: #3E4C59;
  --cmx-blue: #1C4E77;
  --cmx-blue-line: rgba(28, 78, 119, .28);
  --cmx-blue-faint: rgba(28, 78, 119, .09);
  --cmx-oxide: #B0442A;
  --cmx-pass: #2D7A4C;
  --cmx-gutter: clamp(56px, 8vw, 120px);
}

/* ---------- sheets ---------- */
.cmx-sec { padding: var(--cmx-gutter) 0; }
.cmx-dark { background: var(--ground); }
.cmx-deep { background: var(--ground-deep); border-block: 1px solid var(--line); }
.cmx-paper {
  color: var(--cmx-ink); color-scheme: light;
  background-color: var(--cmx-film);
  background-image: linear-gradient(var(--cmx-blue-faint) 1px, transparent 1px), linear-gradient(90deg, var(--cmx-blue-faint) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.cmx-paper :focus-visible { outline-color: var(--cmx-blue); }
.cmx-paper p { color: var(--cmx-ink-soft); }

.cmx-head { margin-bottom: clamp(28px, 4vw, 52px); }
.cmx-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--tungsten); font: 600 var(--t-sm)/1.3 var(--sans); }
.cmx-eyebrow::before { content: ''; flex: none; width: 22px; height: 1px; background: currentColor; }
.cmx-paper .cmx-eyebrow { color: var(--cmx-blue); }
.cmx-h2 { margin: 0; max-width: 20ch; font: 600 clamp(32px, 4vw, 58px)/1.02 var(--display); letter-spacing: -0.032em; text-wrap: balance; overflow-wrap: break-word; }
.cmx-intro { margin: 18px 0 0; max-width: 62ch; font-size: var(--t-lg); line-height: 1.55; color: var(--ink-soft); }
.cmx-paper .cmx-intro { color: var(--cmx-ink-soft); }
.cmx-h3 { margin: 0; font: 600 clamp(19px, 1.5vw, 23px)/1.22 var(--display); letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
.cmx-note { margin: 18px 0 0; font-size: var(--t-xs); color: var(--cmx-ink-soft); }
.cmx-shot { margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); aspect-ratio: 16 / 9; }
.cmx-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmx-shot--paper { border-color: var(--cmx-blue-line); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 40px -28px rgba(20, 32, 43, .45); }
.cmx-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cmx-go .btn { min-height: 54px; padding: 0 26px; }

/* ---------- first screen: the statement across the sheet, then the copy and a large screen ---------- */
.cmx-hero { padding: calc(var(--top-h) + clamp(24px, 4vw, 56px)) 0 0; background: radial-gradient(120% 80% at 85% 10%, rgba(142, 193, 230, .07), transparent 60%), linear-gradient(180deg, var(--ground-deep), var(--ground)); border-bottom: 1px solid var(--line); }
.cmx-hero__top { margin-bottom: clamp(28px, 3.6vw, 52px); }
.cmx-hero__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "copy sheet"; gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.cmx-hero__copy { grid-area: copy; padding-top: 6px; }
.cmx-h1 { margin: 0; font-family: var(--display); }
.cmx-h1__name { display: block; margin-bottom: 18px; color: var(--tungsten); font: 700 clamp(17px, 1.3vw, 20px)/1 var(--display); letter-spacing: .02em; }
.cmx-h1__say { display: block; max-width: 22ch; font: 600 clamp(38px, 5vw, 78px)/.98 var(--display); letter-spacing: -0.035em; text-wrap: balance; overflow-wrap: break-word; }
.cmx-hero__lead { margin: 0; max-width: 54ch; color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }
.cmx-hero__by { margin: 18px 0 0; color: var(--muted); font-size: var(--t-sm); }
.cmx-sheet { grid-area: sheet; margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-float); }
.cmx-sheet__img { aspect-ratio: 1400 / 757; }
.cmx-sheet__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a drawing's title block: what the sheet is */
.cmx-tblock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1px solid var(--line-2); font-size: var(--t-sm); }
.cmx-tblock__c { padding: 12px 16px; border-left: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.cmx-tblock__c:first-child { border-left: 0; }
.cmx-tblock__brand { font: 700 15px var(--display); letter-spacing: .02em; color: var(--tungsten); }
.cmx-tblock__t { color: var(--ink-soft); }
.cmx-tblock__f b { font: 600 13px var(--display); color: var(--sky); letter-spacing: .02em; }
.cmx-with { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: clamp(28px, 4vw, 48px); padding: 20px 0 22px; border-top: 1px solid var(--line); }
.cmx-with__t { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.cmx-with__l { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); }

/* ---------- the engines demo ---------- */
.cmx-hint { margin: -24px 0 28px; font-size: var(--t-sm); color: var(--cmx-ink-soft); }
.cmd.is-on { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.cmd.is-on .cmx-note { grid-column: 2; margin-top: 0; }
.cmd-pick { display: grid; gap: 0; border-top: 1px solid var(--cmx-blue-line); }
.cmd-tab { position: relative; display: grid; gap: 3px; width: 100%; min-height: 64px; padding: 14px 14px 14px 20px; border: 0; border-bottom: 1px solid var(--cmx-blue-line); background: none; color: var(--cmx-ink); text-align: left; cursor: pointer; transition: background-color var(--d-fast) ease; }
.cmd-tab::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--cmx-oxide); transform: scaleY(0); transform-origin: top; transition: transform var(--d-ui) var(--ease-out); }
.cmd-tab[aria-selected="true"] { background: rgba(255, 255, 255, .55); }
.cmd-tab[aria-selected="true"]::before { transform: none; }
.cmd-tab__n { font: 600 18px/1.2 var(--display); letter-spacing: -0.01em; }
.cmd-tab__s { font-size: 14px; line-height: 1.35; color: var(--cmx-ink-soft); overflow-wrap: break-word; hyphens: auto; }
.cmd-tab:focus-visible { outline: 2px solid var(--cmx-blue); outline-offset: -2px; border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .cmd-tab:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, .3); } }

.cmd-panel { display: grid; gap: 22px; }
.cmd-panel[hidden], .cmd-pick[hidden], .cmd-run[hidden], .cmx-hint[hidden] { display: none; }
.cmd-tb__go:has(> [hidden]), .cmd:not(.is-on) .cmx-note { display: none; }
.cmd:not(.is-on) .cmd-panel + .cmd-panel { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--cmx-blue-line); }
.cmd-fig { margin: 0; border: 1px solid var(--cmx-blue); border-radius: var(--r-sm); background: #EEF2EF; box-shadow: 0 30px 60px -40px rgba(20, 32, 43, .55); overflow: hidden; }
.cmd-canvas { position: relative; aspect-ratio: 720 / 380; }
.cmd-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.cmd.is-on .cmd-svg { display: block; }
.cmd-photo { position: absolute; inset: 0; background: var(--ground); }
.cmd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmd.is-on .cmd-photo { opacity: 0; transform: scale(1.03); pointer-events: none; }
.cmd.is-on .cmd-fig[data-state="photo"] .cmd-photo { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out); }

/* the title block under the drawing: product, engine, state, the button */
.cmd-tb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; border-top: 1px solid var(--cmx-blue); color: var(--cmx-ink); }
.cmd-tb__c { display: flex; align-items: center; padding: 10px 16px; border-left: 1px solid var(--cmx-blue-line); min-height: 64px; }
.cmd-tb__c:first-child { border-left: 0; }
.cmd-tb__brand { font: 700 14px var(--display); letter-spacing: .02em; color: var(--cmx-blue); }
.cmd-tb__name { font: 600 17px/1.2 var(--display); }
.cmd-tb__st { gap: 8px; font-size: 14px; color: var(--cmx-ink-soft); }
.cmd-tb__st:empty { display: none; }
.cmd-tb__st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cmx-blue-line); flex: none; }
.cmd-fig[data-state="run"] .cmd-tb__st::before { background: var(--cmx-oxide); }
.cmd-fig[data-state="done"] .cmd-tb__st::before, .cmd-fig[data-state="photo"] .cmd-tb__st::before { background: var(--cmx-pass); }
.cmd-tb__go { padding: 8px; }
.cmd-run { min-height: 48px; padding: 0 20px; gap: 9px; white-space: nowrap; }
.cmd-run:focus-visible { outline-color: var(--cmx-blue); }
.cmd-copy { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; align-items: start; }
.cmd-copy p { margin: 0; line-height: 1.6; }
.cmd-h3 { margin: 0; font: 600 clamp(20px, 1.7vw, 26px)/1.2 var(--display); letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
.cmd-h3__n { display: block; color: var(--cmx-oxide); font-size: .72em; letter-spacing: 0; margin-bottom: 4px; }

/* the drawing: ink lines on film */
.cmd-axes line { stroke: var(--cmx-blue); stroke-width: .8; stroke-dasharray: 10 4 2 4; opacity: .45; }
.cmd-axes circle { fill: #EEF2EF; stroke: var(--cmx-blue); stroke-width: 1.2; }
.cmd-axes text { fill: var(--cmx-blue); font: 600 13px var(--sans); text-anchor: middle; }
.cmd-ground { stroke: var(--cmx-ink); stroke-width: 1.5; }
.cmd-col { fill: #4A6378; }
.cmd-raf, .cmd-beam { fill: none; stroke: #4A6378; stroke-width: 7; stroke-linejoin: round; }
.cmd-beam { stroke-width: 6; }
.cmd-brace path { fill: none; stroke: #4A6378; stroke-width: 2.5; }
.cmd-slot { fill: none; stroke: var(--cmx-blue); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.cmd-j > * { fill: var(--cmx-blue); }
.cmd-j > circle { fill: #EEF2EF; }
.cmd-j.is-src > *:not(circle), .cmd-j.is-copy > *:not(circle) { fill: var(--cmx-oxide); }
.cmd-add path { fill: var(--cmx-oxide); stroke: none; }
.cmd-add .cmd-cleat, .cmd-stiff path { fill: none; stroke: var(--cmx-oxide); stroke-width: 2.5; }
.cmd-ok circle { fill: var(--cmx-pass); }
.cmd-ok path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmd-clash circle { fill: rgba(176, 68, 42, .1); stroke: var(--cmx-oxide); stroke-width: 2; stroke-dasharray: 5 4; }
.cmd-clash text { fill: var(--cmx-oxide); font: 700 12px var(--sans); text-anchor: middle; letter-spacing: .04em; }
.cmd-dim path { fill: none; stroke: var(--cmx-oxide); stroke-width: 1.6; }

/* every moving part turns around its own centre */
.cmd-j, .cmd-add, .cmd-col, .cmd-slot { transform-box: fill-box; transform-origin: center; }
.cmd-brace { transform-box: fill-box; transform-origin: 50% 100%; }

/* idle: what the engine has not done yet */
.cmd.is-on [data-engine="connect"] .cmd-j { opacity: 0; transform: scale(.9); }
.cmd.is-on [data-engine="connect"] .cmd-slot { opacity: .8; }
.cmd.is-on [data-engine="clone"] .cmd-j.is-copy { opacity: 0; transform: translateX(var(--dx, 0)); }
.cmd.is-on [data-engine="clone"] .cmd-slot { opacity: 0; }
.cmd.is-on .cmd-add { opacity: 0; transform: scale(.9); }

/* running, done, picture: each step 240 ms, ease-out, one after the other */
.cmd.is-on .cmd-fig:not([data-state="idle"]) [data-engine] .cmd-j,
.cmd.is-on .cmd-fig:not([data-state="idle"]) .cmd-j { opacity: 1; transform: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.cmd.is-on .cmd-fig:not([data-state="idle"]) .cmd-slot { opacity: 0; transition: opacity 200ms ease; transition-delay: calc(var(--i, 0) * 80ms); }
.cmd.is-on .cmd-fig:not([data-state="idle"]) .cmd-add { opacity: 1; transform: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
/* IntelliClone: the copies travel from the joint you detailed to each joint like it */
.cmd.is-on [data-engine="clone"] .cmd-fig:not([data-state="idle"]) .cmd-j.is-copy { transition: opacity 200ms var(--ease-out), transform 520ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 140ms); }
/* AutoAdjust: the level rises, the columns get a heavier section, braces and plates follow */
.cmd.is-on [data-engine="adjust"] .cmd-fig:not([data-state="idle"]) .cmd-lvl { transform: translateY(-32px); }
.cmd.is-on [data-engine="adjust"] .cmd-fig:not([data-state="idle"]) .cmd-col { transform: scaleX(1.7); }
.cmd.is-on [data-engine="adjust"] .cmd-fig:not([data-state="idle"]) .cmd-brace { transform: scaleY(1.4); }
.cmd.is-on [data-engine="adjust"] .cmd-fig:not([data-state="idle"]) .cmd-j { transform: scale(1.2); transition-delay: 0ms; }
.cmd.is-on [data-engine="adjust"] .cmd-lvl, .cmd.is-on [data-engine="adjust"] .cmd-col, .cmd.is-on [data-engine="adjust"] .cmd-brace { transition: transform 700ms var(--ease-in-out); }
.cmd.is-on [data-engine="adjust"] .cmd-fig:not([data-state="idle"]) .cmd-add { transition-delay: 500ms; }
/* the check: green ticks; the clash goes red, and its joint with it */
.cmd.is-on [data-engine="check"] .cmd-fig:not([data-state="idle"]) .cmd-add { transition-delay: calc(var(--i, 0) * 90ms); }
.cmd.is-on [data-engine="check"] .cmd-fig:not([data-state="idle"]) .cmd-j.is-clash > *:not(circle) { fill: var(--cmx-oxide); transition: fill 240ms ease 1100ms; }
/* again: back to the start at once, never animated backwards */
.cmd .cmd-fig.is-reset *, .cmd .cmd-fig.is-reset { transition: none !important; }

/* ---------- four phases: a line with axis bubbles ---------- */
.cmx-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cmx-flow__st { position: relative; padding: 0 clamp(16px, 2vw, 28px) 0 0; }
.cmx-flow__st::before { content: ''; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--line-2); }
.cmx-flow__st:first-child::before { left: 21px; }
.cmx-flow__n { position: relative; display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border: 1px solid var(--sky); border-radius: 50%; background: var(--ground); color: var(--sky); font: 600 16px var(--display); }
.cmx-flow__st:last-child .cmx-flow__n { border-color: var(--tungsten); color: var(--tungsten); }
.cmx-flow__p { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.55; }
.cmx-flow__l { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cmx-flow__l li { padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.cmx-flow__l b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- drawings: the steps a detailer no longer does ---------- */
.cmx-draw__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cmx-draw__a .cmx-shot { margin-top: 8px; }
.cmx-tblw { overflow-x: auto; border: 1px solid var(--cmx-blue); border-radius: var(--r-sm); background: rgba(255, 255, 255, .5); }
.cmx-tbl { width: 100%; border-collapse: collapse; font-size: var(--t-sm); color: var(--cmx-ink); }
.cmx-tbl th, .cmx-tbl td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cmx-blue-line); }
.cmx-tbl thead th { font: 600 14px var(--display); color: var(--cmx-blue); border-bottom: 1px solid var(--cmx-blue); }
.cmx-tbl tbody th { font-weight: 500; }
.cmx-tbl td { white-space: nowrap; }
.cmx-tbl td:last-child, .cmx-tbl thead th:last-child { background: rgba(28, 78, 119, .06); }
.cmx-mark { display: inline-block; width: 11px; height: 11px; margin-right: 9px; vertical-align: -1px; border: 1.5px solid var(--cmx-ink-soft); border-radius: 2px; }
.is-auto { color: var(--cmx-blue); font-weight: 600; }
.is-auto .cmx-mark { background: var(--cmx-blue); border-color: var(--cmx-blue); }
.cmx-tbl tfoot th, .cmx-tbl tfoot td { border-bottom: 0; border-top: 1px solid var(--cmx-blue); padding-block: 18px; font: 600 18px var(--display); }
.cmx-tbl tfoot .is-win { color: var(--cmx-blue); font-size: clamp(22px, 2vw, 28px); }

/* ---------- rebar ---------- */
.cmx-rebar__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cmx-shot--tall { aspect-ratio: 4 / 3; }
.cmx-pts { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.cmx-pts li { padding: 20px 0; border-top: 1px solid var(--line-2); }
.cmx-pts p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- fabrication: three files for the shop ---------- */
.cmx-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.cmx-out__h { margin: 22px 0 0; font-family: var(--display); }
.cmx-out__code { display: block; color: var(--tungsten); font: 700 clamp(34px, 3.4vw, 52px)/1 var(--display); letter-spacing: -0.03em; }
.cmx-out__what { display: block; margin-top: 8px; font: 600 19px/1.25 var(--display); letter-spacing: -0.01em; }
.cmx-out p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- integrations and design codes ---------- */
.cmx-fit__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cmx-fit .cmx-h2 { font-size: clamp(30px, 3.2vw, 46px); }
.cmx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cmx-chips li { padding: 10px 16px; border: 1px solid var(--cmx-blue); border-radius: var(--r-xs); background: rgba(255, 255, 255, .55); font: 600 15px/1.3 var(--display); color: var(--cmx-ink); }
.cmx-codes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cmx-blue); }
.cmx-codes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--cmx-blue-line); }
.cmx-codes b { font: 600 22px/1.1 var(--display); letter-spacing: -0.01em; }
.cmx-codes span { grid-column: 2; grid-row: 1; align-self: center; color: var(--cmx-ink-soft); font-size: var(--t-sm); }
.cmx-codes small { color: var(--cmx-ink-soft); font-size: 14px; }
.cmx-codes .is-first { padding: 20px 0 20px 16px; border-left: 3px solid var(--cmx-blue); background: rgba(255, 255, 255, .5); }
.cmx-codes .is-first b { font-size: clamp(30px, 2.6vw, 38px); color: var(--cmx-blue); }
.cmx-codes .is-first span { padding-right: 16px; }

/* ---------- learning path: seven sessions ---------- */
.cmx-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.cmx-path__st:last-child { grid-column: span 2; }
.cmx-path .cmx-h3 { hyphens: manual; }
.cmx-path__st { padding: 24px 22px 28px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cmx-path__n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border: 1px solid var(--sky); border-radius: 50%; color: var(--sky); font: 600 14px var(--display); }
.cmx-path__st:last-child .cmx-path__n { border-color: var(--tungsten); color: var(--tungsten); }
.cmx-path p { margin: 8px 0 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }

/* ---------- questions ---------- */
.cmx-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.cmx-faq .cmx-head { position: sticky; top: calc(var(--top-h) + 24px); }
.cmx-faq__l { border-top: 1px solid var(--line-2); }
.cmx-faq__l details { border-bottom: 1px solid var(--line-2); }
.cmx-faq__l summary { position: relative; display: block; padding: 20px 44px 20px 0; cursor: pointer; list-style: none; font: 600 clamp(17px, 1.3vw, 20px)/1.35 var(--display); letter-spacing: -0.01em; }
.cmx-faq__l summary::-webkit-details-marker { display: none; }
.cmx-faq__l summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--tungsten), var(--tungsten)) center / 14px 2px no-repeat, linear-gradient(var(--tungsten), var(--tungsten)) center / 2px 14px no-repeat; transition: transform var(--d-ui) var(--ease-out); }
.cmx-faq__l details[open] summary::after { transform: rotate(45deg); }
.cmx-faq__l summary:focus-visible { outline-offset: -2px; }
.cmx-faq__l details p { margin: 0 0 22px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- next step ---------- */
.cmx-end { background: var(--ground); }
.cmx-end__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); border: 1px solid var(--tungsten-line); border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(90% 120% at 0% 0%, rgba(242, 176, 94, .12), transparent 60%), var(--surface); }
.cmx-end__main { padding: clamp(28px, 4.5vw, 64px); }
.cmx-end__main p { margin: 18px 0 0; color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }
.cmx-end__trial { padding: clamp(28px, 4.5vw, 64px) clamp(24px, 3.5vw, 48px); border-left: 1px solid var(--line-2); background: rgba(7, 9, 12, .35); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cmx-end__trial p { margin: 12px 0 22px; color: var(--ink-soft); }
.cmx-src { margin: 36px 0 0; max-width: 90ch; color: var(--muted); font-size: var(--t-xs); line-height: 1.55; }
.cmx-src a { color: var(--ink-soft); }
.cmx-back { margin: 12px 0 0; font-size: var(--t-sm); }
.cmx-back a { color: var(--tungsten); }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .cmx-hero__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "sheet"; }
  .cmd.is-on { grid-template-columns: minmax(0, 1fr); }
  .cmd.is-on .cmx-note { grid-column: auto; }
  .cmd-pick { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .cmd-tab { width: auto; min-height: 46px; padding: 10px 16px; border: 1px solid var(--cmx-blue-line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .35); }
  .cmd-tab::before { display: none; }
  .cmd-tab[aria-selected="true"] { background: var(--cmx-blue); border-color: var(--cmx-blue); color: #fff; }
  .cmd-tab__n { font-size: 16px; }
  .cmd-tab__s { display: none; }
  .cmx-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .cmx-draw__in, .cmx-rebar__in, .cmx-fit__in, .cmx-faq { grid-template-columns: minmax(0, 1fr); }
  .cmx-faq .cmx-head { position: static; }
  .cmx-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cmx-hint { margin: -16px 0 20px; }
  .cmx-tblock { grid-template-columns: auto minmax(0, 1fr); }
  .cmx-tblock__f { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
  .cmd-tb { grid-template-columns: auto minmax(0, 1fr); }
  .cmd-tb__st { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--cmx-blue-line); min-height: 44px; }
  .cmd-tb__go { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--cmx-blue-line); }
  .cmd-run { width: 100%; white-space: normal; }
  .cmd-copy { grid-template-columns: minmax(0, 1fr); }
  .cmx-flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .cmx-flow__st { padding: 0 0 32px 62px; }
  .cmx-flow__st::before, .cmx-flow__st:first-child::before { left: 21px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .cmx-flow__st:last-child::before { bottom: auto; height: 21px; }
  .cmx-flow__n { position: absolute; left: 0; top: 0; margin: 0; }
  .cmx-out { grid-template-columns: minmax(0, 1fr); }
  .cmx-path { grid-template-columns: minmax(0, 1fr); }
  .cmx-path__st:last-child { grid-column: auto; }
  .cmx-end__in { grid-template-columns: minmax(0, 1fr); }
  .cmx-end__trial { border-left: 0; border-top: 1px solid var(--line-2); }
  .cmx-go .btn { flex: 1 1 auto; }
  .cmx-tbl { table-layout: fixed; font-size: 14px; }
  .cmx-tbl th, .cmx-tbl td { padding: 11px 8px; white-space: normal; overflow-wrap: break-word; hyphens: auto; }
  .cmx-tbl thead th:first-child { width: 40%; }
  .cmx-mark { display: block; margin: 0 0 6px; }
  .cmx-tbl tfoot th, .cmx-tbl tfoot td { font-size: 15px; }
  .cmx-tbl tfoot .is-win { font-size: 20px; }
}

/* less motion: the end state, then the picture, by opacity alone */
@media (prefers-reduced-motion: reduce) {
  .cmd *, .cmd .cmd-fig *, .cmd.is-on .cmd-fig:not([data-state="idle"]) * { transition-duration: 0ms !important; transition-delay: 0ms !important; }
  .cmd.is-on .cmd-photo, .cmd.is-on .cmd-fig[data-state="photo"] .cmd-photo { transform: none; transition: opacity 200ms ease !important; }
  .cmd-tab::before, .cmx-faq__l summary::after { transition: none; }
}

/* ---------- fit the screen (Κώστας 2026-11-27: «τα sections είναι μεγαλύτερα της οθόνης») ----------
 * Less air between sections, headings and pictures sized by the screen height, so on a laptop or
 * desktop screen each section fits in one view where its content allows. */
.cmx { --cmx-gutter: clamp(40px, 6vh, 76px); }
.cmx-head { margin-bottom: clamp(18px, 2.8vh, 34px); }
.cmx-h2 { font-size: clamp(28px, min(3.4vw, 5.4vh), 50px); }
.cmx-hero { padding-top: calc(var(--top-h) + clamp(16px, 3vh, 36px)); }
.cmx-hero__top { margin-bottom: clamp(18px, 3vh, 36px); }
.cmx-h1__say { font-size: clamp(32px, min(4.4vw, 6.6vh), 68px); }
@media (min-width: 901px) {
  .cmx-sheet__img { aspect-ratio: auto; height: clamp(240px, 38vh, 480px); }
  .cmd-canvas { aspect-ratio: auto; height: clamp(240px, 37vh, 400px); }
  .cmx-shot--tall { aspect-ratio: auto; height: clamp(260px, 52vh, 520px); }
  .cmx-shot { max-height: 54vh; }
  .cmx-pts li { padding: 14px 0; }
  .cmd-tab { min-height: 54px; padding-block: 10px; }
}
