/* Block 11 · Akut (V8-BLOCKS §11; r1 2026-10-26). Concept: the doctor at his desk, life-size at the page's edge and
   already on the phone; beside him the number he answers, at display scale, and a lamp that says whether the practice
   is open. On paper (block 12's mist begins at its floor, so the cut-out's desk line has an edge to stand on); no card,
   no box: the cut-out's own straight cuts are the block's only edges. */
.ak { position: relative; background: var(--paper); padding-bottom: 0; }
.ak-in { position: relative; z-index: 1; container-type: inline-size; display: grid; gap: 32px; }

/* the live state: a lamp (lime while open, an ink ring otherwise; shown only once the JS knows the state) and the
   status in two lines, status / next opening (S9). The words carry the meaning; the lamp is aria-hidden. */
.ak-state { display: flex; align-items: flex-start; gap: .5em; font-size: var(--fs-h4); line-height: 1.3; letter-spacing: var(--ls-h4); color: var(--ink); }
.ak-lamp { display: none; flex: none; width: .5em; height: .5em; margin-top: .42em; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-64); }
.ak[data-state] .ak-lamp { display: block; }
.ak[data-state="open"] .ak-lamp, .ak[data-state="closing"] .ak-lamp { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.ak-status { min-height: 1.3em; }
.ak-line { display: block; white-space: nowrap; }
.ak-nojs { display: block; font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: 0; color: var(--ink-75); }

/* the number fills the column it is given: „01 269 96 900" measures 7.14 em in Onest 400 at -0.03 em, so the column
   width / 7.3 keeps it on one line at every width (360 px phone: 42.7 px; the 690 px column: 94.5 px) */
.ak-num { margin-block: 8px; font-size: calc(100cqi / 7.3); line-height: 1; letter-spacing: var(--ls-figure); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ak-num a { display: inline-block; padding-block: .06em; color: var(--ink); text-decoration: none; }
.ak-num a:hover { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .1em; }

.ak-foot { display: grid; gap: 12px; }
.ak-foot .t-body { max-width: 34em; }
/* inline, so a wrapped link (360 px) keeps its arrow after the last word; the paragraph holds the 44 px target and
   the link's 10 px of padding reaches it */
.ak-link-p { min-height: 44px; padding-block: 10px; line-height: var(--lh-body); }
.ak-link {
  padding-block: 10px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--blue-deep); text-decoration: underline;
}
.ak-arrow { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 12px; vertical-align: -.22em; transition: transform var(--dur-ui) var(--ease-ui); }
.ak-arrow svg { width: 20px; height: 20px; }
@media (hover: hover) { .ak-link:hover .ak-arrow { transform: translateX(4px); } }   /* the link answers the pointer */

/* the cut-out: desk line on the section's floor, iMac edge on the viewport's right edge (child of the section, not of
   .wrap, so it reaches the edge without 100vw) */
.ak-cut { margin: 0; }
.ak-cut picture { display: block; }
.ak-img { display: block; width: 100%; height: auto; }

/* D and T: text cols 1–7; the cut-out at most 40vw / 680 px, and never taller than the screen less 140 px, so block
   and portrait fit one screen; the section is at least as tall as the portrait plus 120 px of air above his head */
@media (min-width: 810px) {
  .ak { --ak-w: min(40vw, 680px, calc((100svh - 140px) / 1.266)); min-height: calc(var(--ak-w) * 1.266 + 120px); }
  .ak-in { width: calc((100% + var(--gap-grid)) * 7 / 12 - var(--gap-grid)); padding-bottom: 120px; }
  .ak-cut { position: absolute; right: 0; bottom: 0; z-index: 0; width: var(--ak-w); }
}

/* P: the text, then the cut-out at 80 % of the width on the same two edges */
@media (max-width: 809.98px) {
  .ak-in { gap: 20px; }
  .ak-state { font-size: var(--fs-h5); }
  .ak-num { margin-block: 4px; }
  .ak-cut { width: 80%; margin: 40px 0 0 auto; }
}
