/* IKTEN landing · section «ΤΙΜΙΕΣ ΑΠΑΝΤΗΣΕΙΣ.» (#erotiseis) · owner: builder fm · class prefix: ero-
   Purpose and Greek copy: work/PLAN_LIGHT.md B6 (FINAL_SPEC 3.12). Look: work/LIGHT_SPEC.md (the contract is its part f).
   The one moment: every question is a row with a square key at its end. Press it and the key goes down and stays
   black, its plus turns into a cross, and the answer feeds out under the row as a slip of white paper with a
   perforated lower edge: the paper of the word ΧΑΡΤΙ in the headline (css/page.css .slip__paper), written in px.
   Native <details>: works the same with no script; several answers may be open; the first is open at load.
   Motion: transform and opacity only (the feed 280 ms --out, the cross 140 ms --out, the key 60 ms / 190 ms --spring
   as every key of the page). Reduced motion: no feed, no turn.
   WebKit: <summary> stays a block (Safari did not lay out a flex <summary>); the row inside it is the flex box.
   The marker is removed both ways (list-style and ::-webkit-details-marker). The mask has its -webkit- twin. */

.ero-in { max-width: var(--page-max, 1840px); margin-inline: auto; }

/* ── the title: left, sticky inside the section from 1100 px (never under the top bar) ── */
.ero-h { margin-bottom: clamp(22px, 4vh, 40px); }

/* ── the list: one ink line above the first row and under the last, a faint hairline between rows ── */
.ero-list { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ero-q + .ero-q { border-top: 1px solid var(--line); }

/* ── a row: the question and its key ── */
.ero-sum { display: block; list-style: none; cursor: pointer; border-radius: 6px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ero-sum::-webkit-details-marker { display: none; }
.ero-sum::marker { content: ""; }
.ero-sum:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.ero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 10px 0; }        /* 64 px with the 44 px key; a question on two lines grows the row */
.ero-t { min-width: 0; font: 640 21px/1.3 var(--f-text); letter-spacing: -.01em; color: var(--ink); }

/* the square key at the end of the row: the page's white key (.key.key--sq), 44 px; the whole row presses it */
.ero-key { flex: none; width: 44px; height: 44px; }
.ero-key .key__cap { height: 100%; }
.ero-key .ik-ico { font-size: 18px; transition: transform 140ms var(--out); }
.ero-sum:active .ero-key .key__cap { transform: translateY(var(--kd)); transition: transform 60ms linear; }
@media (hover: hover) and (pointer: fine) {
  .ero-sum:hover .ero-key .key__cap { transform: translateY(1px); }
  .ero-sum:active .ero-key .key__cap { transform: translateY(var(--kd)); }
}
/* open: the black key (the values of .key--ink), resting 2 px lower, a white cross */
.ero-q[open] .ero-key { --top-a: var(--blk-a); --top-b: var(--blk-b); --side: #000; --txt: #fff;
  --hi: rgba(255, 255, 255, .34); --seam: rgba(255, 255, 255, .17); }
.ero-q[open] .ero-key .key__cap { transform: translateY(2px); }
.ero-q[open] .ero-key .ik-ico { transform: rotate(45deg); }
.ero-q[open] .ero-sum:active .ero-key .key__cap { transform: translateY(var(--kd)); }

/* ── the answer: a slip of paper that comes out from under the row ──
   .ero-a cuts the slip at its top edge only (the line it comes out of) · .ero-slip moves and carries the three
   warm shadows of the headline's slip (--m-sheet-shadow as drop-shadows, so the mask does not cut them) ·
   .ero-slip__paper is the sheet: pure white, a 3 px rule of ink along its top, the perforated lower edge. */
.ero-a { padding: 4px 0 26px; -webkit-clip-path: inset(4px -60px -60px -60px); clip-path: inset(4px -60px -60px -60px); }
.ero-slip { max-width: calc(62ch + 52px);
  filter: drop-shadow(0 0 .62px rgba(var(--sh), .75)) drop-shadow(0 3.72px 3.47px rgba(var(--sh), .26)) drop-shadow(0 11.16px 12.4px rgba(var(--sh), .2)); }
.ero-slip__paper { padding: 22px 26px 30px; border-top: 3px solid var(--ink); background: #fff;
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  -webkit-mask: radial-gradient(5px at 50% 100%, #0000 96%, #000) 50% 100% / 15px 100% repeat-x;
          mask: radial-gradient(5px at 50% 100%, #0000 96%, #000) 50% 100% / 15px 100% repeat-x; }
.ero-q[open] .ero-slip { animation: ero-feed 280ms var(--out); }
@keyframes ero-feed { from { opacity: 0; transform: translateY(-12px); } }

/* ── desktop: the title on the left four columns, sticky; the list on the right eight ── */
@media (min-width: 1101px) {
  .ero-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.2vw, 40px); }
  .ero-h { grid-column: 1 / span 4; align-self: start; position: -webkit-sticky; position: sticky;
    top: calc(var(--top-h) + 24px); margin-bottom: 0; }
  .ero-list { grid-column: 5 / -1; }
}
@media (min-width: 1700px) {
  .ero-t { font-size: 23px; }
  .ero-slip__paper { font-size: 19px; }
}

/* ── phones ── */
@media (max-width: 640px) {
  .ero-row { min-height: 56px; padding: 6px 0; }
  .ero-t { font-size: 18px; line-height: 1.3; }
  .ero-slip__paper { padding: 18px 18px 26px; font-size: 16.5px; }
  .ero-a { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ero-q[open] .ero-slip { animation: none; }
  .ero-key .ik-ico { transition: none; }
}
