/* IKTEN landing · section «ΚΑΘΑΡΑ ΚΑΙ ΜΕΤΡΗΜΕΝΑ.» (#sxedia) · owner: builder dw · class prefix: sxe-
   Purpose and Greek copy: work/FINAL_SPEC.md 3.9 and work/PLAN_LIGHT.md B3. Look: work/LIGHT_SPEC.md.
   The drawing desk: an A3 sheet (inline SVG at 1:50 with real tables laid over it), the same layout on a white
   plate turned in space, two setting wheels of black drums between a «−» and a «+» key, and the four keys of the
   wall that give DXF. Ink only: the sheet is #000 on #fff like every paper of the page, its greys are black at a
   lower opacity; the model is drawn in --ink. Shared materials (.m-plate, .m-sheet, .m-label, .m-chip, .key, .odo)
   are used as they are and adjusted only through their knobs or inside .sxe- selectors. */

/* every section stops at the same width on a wide monitor; the ground stays full bleed */
.sec-sxedia > * { max-width: var(--page-max, 1840px); margin-inline: auto; }

/* ───────────────────────────── the desk: a grid of five parts ─────────────────────────────
   DOM order (= keyboard order): wheels and verdict · sheet · model · note · list. On a wide screen the sheet takes
   the left and the model sits above the wheels on the right; the note and the list make the lower row. */
.sxe-desk {
  display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  grid-template-areas: "fig ctl" "fig model" "fig note" "list dxf";
  grid-template-rows: auto auto 1fr auto; column-gap: clamp(28px, 2.6vw, 48px); row-gap: 18px; align-items: start;
}
.sxe-ctl { grid-area: ctl; }
.sxe-fig { grid-area: fig; margin: 0; min-width: 0; container: sxe-fig / inline-size; }
.sxe-model { grid-area: model; }
.sxe-note { grid-area: note; }
.sxe-list { grid-area: list; }
.sxe-dxf { grid-area: dxf; }
.sxe-list, .sxe-dxf { margin-top: clamp(10px, 2vh, 24px); padding-top: 20px; border-top: 1px solid var(--ink); }

/* ───────────────────────────── the setting wheels ───────────────────────────── */
.sxe-wheels { display: flex; gap: 12px; }
.sxe-wheel { --m-plate-r: 14px; --m-plate-pad: 11px 14px 14px; flex: 1 1 0; min-width: 0; display: grid; gap: 9px; }
.sxe-wheel__row { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.5vw, 26px); }
.sxe-wheel__v { display: inline-flex; align-items: center; justify-content: center; min-width: 0; }
.sxe-odo { font: 800 44px/1 var(--f-display); letter-spacing: 0; margin-right: 0; }
.sxe-unit { margin-left: 6px; font: 800 22px/1 var(--f-display); color: var(--ink); align-self: flex-end; padding-bottom: 3px; }
.sxe-plain { display: none; font: 800 44px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.sxe-step { flex: none; width: 48px; }
.sxe-step .key__cap { height: 48px; font-size: 22px; }
.sxe-step .ik-ico { stroke-width: 2.4; }
/* at a limit the key cannot go further: it sinks flat under the veil of the tray, as a key of the wall outside its filter */
.sxe-step[aria-disabled="true"] { background: #cfccc1; box-shadow: 0 0 0 1px rgba(19, 19, 17, .28); cursor: default; }
.sxe-step[aria-disabled="true"] .key__cap { position: relative; box-shadow: none; transform: translateY(var(--kd)); }
.sxe-step[aria-disabled="true"] .key__cap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tray); opacity: .8; pointer-events: none; }
@media (pointer: coarse) {
  .sxe-step { width: 52px; }
  .sxe-step .key__cap { height: 52px; }
}
/* without a script the wheels cannot turn: their keys go, the value stays as plain numerals */
html:not(.js) .sxe-step, html:not(.js) .sxe-odo { display: none; }
html:not(.js) .sxe-plain { display: inline; }
html:not(.js) .sxe-wheel__row { justify-content: flex-start; }

.sxe-verdict { margin-top: 16px; max-width: 30em; font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.sxe-verdict b { color: var(--ink); font-weight: 680; }

/* ───────────────────────────── the A3 sheet ─────────────────────────────
   1260 × 891 units (A3 at 3 units per mm). --sxe-u is one unit in px: the width of the sheet over 1260 (a
   container unit; js/sec-sxedia.js sets it where container units are missing). Type on the sheet is 20 units:
   13 px at 1440, 11.5 px at 768. Below 700 px of sheet the type would fall under 11 px, so the sheet takes its
   phone form (the drawing cut to the section, the tables under it, the title block as lines). */
.sxe-sheet { --sxe-u: .62px; position: relative; aspect-ratio: 1260 / 891; overflow: hidden; }
@supports (container-type: inline-size) {
  .sxe-sheet { --sxe-u: calc(100cqw / 1260); }
}
.sxe-artbox { position: absolute; inset: 0; }
.sxe-dwg { display: block; width: 100%; height: 100%; font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif; }
.sxe-frm { fill: none; stroke: #000; stroke-width: 4; }
.sxe-tx { font-size: 20px; fill: #000; }
.sxe-tx--b { font-weight: 700; }
.sxe-tx--h { font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.sxe-tx--i { font-style: italic; fill: rgba(0, 0, 0, .78); }
.sxe-tx--m { text-anchor: middle; }
.sxe-tx--e { text-anchor: end; }
.sxe-ul { fill: none; stroke: #000; stroke-width: 3; }
.sxe-ln { fill: none; stroke: #000; stroke-width: 1.5; }
.sxe-gl { fill: none; stroke: #000; stroke-width: 3; stroke-linejoin: round; stroke-linecap: square; }
.sxe-bx { stroke: #000; stroke-width: 3; }
.sxe-pw { fill: #fff; }
.sxe-ph { fill: none; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.sxe-pd { fill: rgba(0, 0, 0, .62); }
.sxe-pe { fill: none; stroke: rgba(0, 0, 0, .55); stroke-width: 1.5; }
.sxe-lm { fill: #fff; stroke: #000; stroke-width: 1.5; stroke-linejoin: round; }
.sxe-dot { fill: #000; }
.sxe-dim { fill: none; stroke: #000; stroke-width: 1.2; }
.sxe-tk { fill: none; stroke: #000; stroke-width: 3; }
.sxe-bar__k { fill: #000; }
.sxe-bar__o { fill: none; stroke: #000; stroke-width: 1.5; }

/* the tables over the sheet: Arial, black rules; sizes in units so that they keep their place on the paper */
.sxe-over { position: absolute; inset: 0; color: #000; font: 400 calc(20 * var(--sxe-u))/1.2 Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif; }
.sxe-side { position: absolute; left: 67.143%; top: 4.938%; width: 29.206%; display: flex; flex-direction: column; gap: .9em; }
.sxe-t { width: 100%; border-collapse: collapse; font-size: 1em; }
.sxe-t caption { caption-side: top; padding-bottom: .3em; text-align: left; font-weight: 700; }
.sxe-t th, .sxe-t td { padding: .18em .4em; border: max(1px, calc(1.5 * var(--sxe-u))) solid #000; text-align: left; font-weight: 400; vertical-align: middle; }
.sxe-t thead th { font-weight: 700; }
.sxe-t td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sxe-t .sxe-sum th, .sxe-t .sxe-sum td { font-weight: 700; }
.sxe-t--q td[data-sxe="dif"].is-over { font-weight: 700; }
.sxe-notes__h { font-weight: 700; }
.sxe-notes ol { margin-top: .2em; padding-left: 1.3em; list-style: decimal; }
.sxe-q { position: absolute; left: 7.143%; top: 61.504%; width: 53.175%; }
.sxe-q__h { font-weight: 700; }
.sxe-q__l { margin-top: .2em; }
.sxe-q__w { display: none; }
.sxe-t--q { margin-top: .55em; table-layout: fixed; }
.sxe-t--q .sxe-c1 { width: 36%; }
.sxe-t--q thead th:nth-child(2) { width: 17%; }
.sxe-t--q thead th:nth-child(3) { width: 27%; }
.sxe-t--q thead th:nth-child(4) { width: 20%; }
.sxe-t--q th, .sxe-t--q td { text-align: right; }
.sxe-t--q .sxe-c1 { text-align: left; white-space: normal; }
/* the title block, at the lower right corner of the frame (its right and lower edges are the frame itself) */
.sxe-tb { position: absolute; left: 61.905%; right: 2.381%; bottom: 3.367%; display: grid;
  border-left: max(1.5px, calc(3 * var(--sxe-u))) solid #000; border-top: max(1.5px, calc(3 * var(--sxe-u))) solid #000; background: #fff; }
.sxe-tb > * + * { border-top: max(1px, calc(1.5 * var(--sxe-u))) solid #000; }
.sxe-tb__a { display: flex; flex-direction: column; justify-content: center; padding: .3em .5em; text-align: center; font-weight: 700; line-height: 1.25; }
.sxe-tb__r { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); }
.sxe-tb__r--2 { grid-template-columns: 6.5em minmax(0, 1fr) 4.8em minmax(0, 1fr); }
.sxe-tb__k, .sxe-tb__v { padding: .28em .45em; }
.sxe-tb__k { font-weight: 700; border-right: max(1px, calc(1.5 * var(--sxe-u))) solid #000; }
.sxe-tb__r--2 .sxe-tb__v:nth-child(2) { border-right: max(1px, calc(1.5 * var(--sxe-u))) solid #000; }

/* the highlighter band on a number that just changed (ink at 10 %, opacity only) */
.sxe-over [data-c], .sxe-over [data-sxe] { position: relative; }
.sxe-over [data-c]::after, .sxe-over [data-sxe]::after { content: ""; position: absolute; inset: 0; background: rgba(19, 19, 17, .1);
  opacity: 0; transition: opacity 220ms linear; pointer-events: none; }
.sxe-over .is-hl::after { opacity: 1; }

.sxe-cap { margin-top: 14px; max-width: 48em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.sxe-cap__s { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }

/* the phone form of the sheet: the drawing alone, cut to the section (600 × 440 units from x 145, y 52), then
   the tables of the sheet, then the title block as four lines */
@container sxe-fig (max-width: 699px) {
  .sxe-sheet { aspect-ratio: auto; padding: 12px 10px 14px; }
  .sxe-dwg .sxe-tx { font-size: 22px; }
  .sxe-artbox { position: relative; inset: auto; aspect-ratio: 600 / 440; overflow: hidden; }
  .sxe-dwg { position: absolute; left: 0; top: 0; width: 210%; height: auto; aspect-ratio: 1260 / 891; transform: translate(-11.508%, -5.836%); }
  .sxe-over { position: static; font-size: 12.5px; line-height: 1.3; }
  .sxe-side, .sxe-q, .sxe-tb { position: static; width: auto; height: auto; }
  .sxe-side { margin-top: 12px; }
  .sxe-t--lv, .sxe-notes { display: none; }
  .sxe-q { margin-top: 14px; }
  .sxe-q__w { display: block; margin-top: .5em; font-weight: 700; }
  .sxe-t--q .sxe-c1 { display: none; }
  .sxe-t--q thead th:nth-child(2) { width: 27%; }
  .sxe-t--q thead th:nth-child(3) { width: 43%; }
  .sxe-t--q thead th:nth-child(4) { width: 30%; }
  .sxe-tb { display: block; margin-top: 16px; padding-top: 8px; border: 0; border-top: 1.5px solid #000; }
  .sxe-tb > * + * { border-top: 0; }
  .sxe-tb__a { display: none; }
  .sxe-tb__r, .sxe-tb__r--2 { display: block; padding: 1px 0; }
  .sxe-tb__k, .sxe-tb__v { display: inline; padding: 0; border: 0; }
  .sxe-tb__k::after { content: " "; }
  .sxe-tb__r--2 .sxe-tb__v:nth-child(2) { border: 0; }
  .sxe-tb__r--2 .sxe-tb__v:nth-child(2)::after { content: " · "; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .sxe-sheet { aspect-ratio: auto; padding: 12px 10px 14px; }
    .sxe-dwg .sxe-tx { font-size: 22px; }
    .sxe-artbox { position: relative; inset: auto; aspect-ratio: 600 / 440; overflow: hidden; }
    .sxe-dwg { position: absolute; left: 0; top: 0; width: 210%; height: auto; aspect-ratio: 1260 / 891; transform: translate(-11.508%, -5.836%); }
    .sxe-over { position: static; font-size: 12.5px; line-height: 1.3; }
    .sxe-side, .sxe-q, .sxe-tb { position: static; width: auto; height: auto; }
    .sxe-side { margin-top: 12px; }
    .sxe-t--lv, .sxe-notes { display: none; }
    .sxe-q { margin-top: 14px; }
    .sxe-q__w { display: block; margin-top: .5em; font-weight: 700; }
    .sxe-t--q .sxe-c1 { display: none; }
    .sxe-t--q thead th:nth-child(2) { width: 27%; }
    .sxe-t--q thead th:nth-child(3) { width: 43%; }
    .sxe-t--q thead th:nth-child(4) { width: 30%; }
    .sxe-tb { display: block; margin-top: 16px; padding-top: 8px; border: 0; border-top: 1.5px solid #000; }
    .sxe-tb > * + * { border-top: 0; }
    .sxe-tb__a { display: none; }
    .sxe-tb__r, .sxe-tb__r--2 { display: block; padding: 1px 0; }
    .sxe-tb__k, .sxe-tb__v { display: inline; padding: 0; border: 0; }
    .sxe-tb__k::after { content: " "; }
    .sxe-tb__r--2 .sxe-tb__v:nth-child(2) { border: 0; }
    .sxe-tb__r--2 .sxe-tb__v:nth-child(2)::after { content: " · "; }
  }
}

/* ───────────────────────────── the model on its plate ───────────────────────────── */
.sxe-model { --m-plate-pad: 8px; }
.sxe-3d { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 11px; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; font-family: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif; }
.sxe-3d.is-drag { cursor: grabbing; }
.sxe-3d:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sxe-m-top, .sxe-m-mesh-a, .sxe-m-mesh-b, .sxe-m-earth, .sxe-m-fill { fill: #fff; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.sxe-m-ha { fill: none; stroke: rgba(19, 19, 17, .3); stroke-width: 1; }
.sxe-m-hb { fill: none; stroke: rgba(19, 19, 17, .45); stroke-width: 1; }
.sxe-m-he { fill: none; stroke: rgba(19, 19, 17, .5); stroke-width: 1; }
.sxe-m-dots { fill: none; stroke: rgba(19, 19, 17, .55); stroke-width: 2.1; stroke-linecap: round; }
.sxe-m-brkw { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: round; }
.sxe-m-brk { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: miter; }
.sxe-m-ext { fill: none; stroke: var(--ink); stroke-width: 1; }
.sxe-m-dim { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.sxe-m-tk { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.sxe-m-tx { font-size: 13.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }

/* ───────────────────────────── the note, the paragraph, the list ───────────────────────────── */
.sxe-h3 { font: 640 clamp(19px, 1.45vw, 22px)/1.25 var(--f-text); letter-spacing: -.012em; color: var(--ink); }
.sxe-hint { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.sxe-hint__touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .sxe-hint__fine { display: none; }
  .sxe-hint__touch { display: inline; }
}
.sxe-small { margin-top: 10px; }
.sxe-para { margin-top: 18px; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }

.sxe-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 34px; margin-top: 10px; }
.sxe-btns li { border-top: 1px solid var(--line-2); }
.sxe-btn { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 14px; align-items: start; min-height: 56px; padding: 13px 2px 14px;
  color: inherit; text-decoration: none; border-radius: 4px; }
.sxe-btn__i { margin-top: 2px; font-size: 20px; color: var(--ink); }
.sxe-btn__n { display: block; font-size: 17px; font-weight: 640; line-height: 1.3; color: var(--ink); }
.sxe-btn__o { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.sxe-btn__f { display: flex; gap: 6px; padding-top: 1px; }
@media (hover: hover) and (pointer: fine) {
  .sxe-btn:hover .sxe-btn__n { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
}

/* ───────────────────────────── widths ───────────────────────────── */
@media (max-width: 1399px) {
  .sxe-odo, .sxe-plain { font-size: 38px; }
  .sxe-unit { font-size: 20px; }
  .sxe-wheel__row { gap: clamp(8px, 1.2vw, 16px); }
  .sxe-step { width: 44px; }
  .sxe-step .key__cap { height: 44px; font-size: 20px; }
  .sxe-verdict { font-size: 18px; }
  .sxe-btns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1239px) {
  .sxe-desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ctl ctl" "fig fig" "model note" "model dxf" "list list";
    grid-template-rows: auto auto auto 1fr auto; row-gap: 22px; }
  .sxe-ctl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .sxe-verdict { margin-top: 0; }
  .sxe-3d { aspect-ratio: 3 / 2; }
  .sxe-dxf { margin-top: 0; padding-top: 0; border-top: 0; }
  .sxe-list { margin-top: 8px; }
  .sxe-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .sxe-desk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ctl" "fig" "model" "note" "dxf" "list"; grid-template-rows: auto; }
  .sxe-ctl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sxe-dxf { margin-top: -4px; }
  .sxe-btns { grid-template-columns: minmax(0, 1fr); }
  .sxe-3d { aspect-ratio: 2 / 1; }
}
@media (max-width: 640px) {
  .sxe-wheels { gap: 10px; }
  .sxe-wheel { --m-plate-pad: 10px 10px 12px; justify-items: center; }
  .sxe-wheel__l { justify-self: start; }
  /* on a phone the two keys of a wheel go under its drums */
  .sxe-wheel__row { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "v v" "m p"; gap: 10px 8px; width: 100%; }
  .sxe-wheel__v { grid-area: v; }
  .sxe-step:first-child { grid-area: m; }
  .sxe-step:last-child { grid-area: p; }
  .sxe-step { width: 100%; }
  .sxe-odo, .sxe-plain { font-size: 36px; }
  .sxe-unit { font-size: 19px; }
  .sxe-verdict { font-size: 17px; }
  .sxe-3d { aspect-ratio: 4 / 3; }
  .sxe-cap { font-size: 14.5px; }
  .sxe-para { font-size: 16px; }
  .sxe-desk { row-gap: 18px; }
  .sxe-btn { grid-template-columns: 20px minmax(0, 1fr); padding: 11px 2px 12px; }
  .sxe-btn__f { grid-column: 2; padding-top: 5px; }
}
@media (max-width: 380px) {
  .sxe-odo, .sxe-plain { font-size: 32px; }
}
