/* Styles of /meld_node_operator/ only (moved out of its <style> block on 2026-11-10).
   Loaded after the shared sheets, at the same place the block was, so the
   cascade is unchanged. Rules shared by several pages go in /css. */

/* Node Operator, page-specific only. Everything structural comes from
   css/case-page.css (the case template) and css/grid.css. Two pieces are
   unique to this case, both sized from the grid tokens so every edge lands
   on a column line:
   1. the layers artifact: tabs, a strip of three screens and two arrows
      (one step is a whole number of columns of the block it sits in);
   2. the icon template, which sits on the three right columns of its pair. */

/* ---------- LAYERS ARTIFACT ---------- */
/* Desktop: the block is all the content columns, a step is a third of them
   (three of nine, four of twelve above 1200px), so the three screens fill it. Tablet: four of eight. Phone: the whole width. */
.no-flow { --nf-step: calc((100% - 2 * var(--g-gutter)) / 3); }

.no-flow__head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--g-gutter);
  row-gap: var(--v-gutter);
  align-items: start;
  margin: 0 0 calc(var(--v-gutter) * 1.5);
}

.no-flow__title { grid-column: 1 / -1; margin: 0; }
.no-flow__eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.no-flow__name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.no-flow__tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--v-gutter) var(--g-gutter); }

.no-flow__tab {
  appearance: none;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #000;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
  opacity: 0.5;
  cursor: pointer;
}
.no-flow__tab:hover,
.no-flow__tab:focus-visible { opacity: 1; }
.no-flow__tab[aria-selected="true"] { font-weight: 700; border-bottom-color: #000; opacity: 1; }
.no-flow__tab:focus-visible,
.no-flow__arrow:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

.no-flow__arrows { grid-column: 1 / -1; display: flex; gap: var(--g-gutter); justify-self: end; }

.no-flow__arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  cursor: pointer;
}
.no-flow__arrow:hover:not([disabled]) { opacity: 0.6; }
/* An arrow that cannot move is not shown (visibility keeps the other in place). */
.no-flow__arrow[disabled] { visibility: hidden; }

/* The strip scrolls sideways and stops on a step. */
.no-flow__rail {
  grid-column: 1 / -1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.no-flow__rail::-webkit-scrollbar { display: none; }

/* Every set is built once and kept in the DOM; a tab only toggles [hidden]. */
.no-flow__set { display: flex; align-items: stretch; gap: var(--g-gutter); }
.no-flow__set[hidden] { display: none; }

.no-flow__step {
  flex: 0 0 var(--nf-step);
  margin: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.no-flow__step img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
/* Screens of different shape share one caption line at the foot of the step. */
body.case-page .no-flow__step figcaption {
  margin-top: auto;
  padding-top: var(--v-gutter);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
}
.no-flow__step figcaption b { margin-right: 0.5em; font-weight: 700; }

/* ---------- HERO: the four layers arrive one by one ----------
   Same drawing and timing as the Node Operator case in /opacity/ (there with
   GSAP, here CSS transitions): the arrow first, then each layer drops in
   from above with its label sliding in from the right, 0.6 s apart.
   The script at the end adds .is-in when the hero is mostly in view.
   Without JS, with reduced motion or in the accessible mode the drawing
   is simply there. */
body.case-page .no-hero .cp-fit > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Start pose: set by the script in <head> (html.nh-anim) so it is already
   there on the first frame. No transition on the way out, only on the way in. */
html.nh-anim .no-ly > g { opacity: 0; }
html.nh-anim .no-ly > .ly-s { transform: translateY(-28px); }
html.nh-anim .no-ly > .ly-t { transform: translateX(12px); }
html.nh-anim .no-hero.is-in .no-ly > g {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(.25, .46, .45, .94), transform 0.8s cubic-bezier(.25, .46, .45, .94);
}
html.nh-anim .no-hero.is-in .no-ly > .ly-t { transition-duration: 0.6s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-arrow { transition-duration: 0.6s; transition-delay: 0.2s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-s[data-i="1"] { transition-delay: 0.6s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-s[data-i="2"] { transition-delay: 1.2s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-s[data-i="3"] { transition-delay: 1.8s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-s[data-i="4"] { transition-delay: 2.4s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-t[data-i="1"] { transition-delay: 0.9s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-t[data-i="2"] { transition-delay: 1.5s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-t[data-i="3"] { transition-delay: 2.1s; }
html.nh-anim .no-hero.is-in .no-ly > .ly-t[data-i="4"] { transition-delay: 2.7s; }

/* The viewBox is cropped to the drawing itself, so its left edge is the
   line of the first content column (xMin) and it is centred in the height
   of its box (YMid). */
/* Desktop: the drawing on the left, the first five content columns, on rows 2 to 11. Those
   rows leave one row above and one below, so the drawing sits on the
   vertical centre of the viewport. The
   text on the right, the last three content columns, Desired outcome under Problem, near
   the foot of the first screen: its last line on the end of row 11 (row 12
   runs to the very edge of the viewport). The two blocks keep the phone's
   gap of three gutters. */
@media (min-width: 64em) {
  body.case-page .cp-hero.no-hero { grid-column: 1 / span 5; grid-row: 2 / span 10; }
  body.case-page .cp-stage > .cp-pair { grid-row: 2 / span 10; align-self: end; row-gap: calc(var(--v-gutter) * 3); }
  body.case-page .cp-stage > .cp-pair > .cp-block:first-child { grid-column: span 3 / -1; grid-row: 1; }
  body.case-page .cp-stage > .cp-pair > .cp-block:last-child { grid-column: span 3 / -1; grid-row: 2; }
}
/* Tablet: the right half (columns 5 to 8). Phone: the whole width. */
@media (max-width: 63.99em) {
  body.case-page .cp-hero.no-hero { grid-column: 5 / -1; }
  body.case-page .no-hero .cp-fit { aspect-ratio: 454 / 582; }
}
@media (max-width: 37.49em) {
  body.case-page .cp-hero.no-hero { grid-column: 1 / -1; }
}

/* ---------- ICON TEMPLATE: the last six content columns, beside its text ---------- */
body.case-page .cp-pair > .no-icons { grid-column: span 6 / -1; }

/* ---------- OUTCOME: the last three content columns, one empty row under the last image
   (row, plus the gutter on each side of it). ---------- */
body.case-page .cp-pair.no-outcome { margin-top: calc(var(--v-row) + 2 * var(--v-gutter) - var(--cp-gap)); }
body.case-page .cp .no-outcome > .cp-block { grid-column: span 3 / -1; }

@media (min-width: 64em) {
  .no-flow__tabs { grid-column: 1 / span 6; }
  .no-flow__arrows { grid-column: 7 / -1; grid-row: 2; }
}

/* Tablet, 8 columns */
@media (max-width: 63.99em) {
  .no-flow { --nf-step: calc((100% - var(--g-gutter)) / 2); }
  body.case-page .cp-pair > .no-icons { grid-column: 5 / span 4; }
  body.case-page .cp .no-outcome > .cp-block { grid-column: 5 / span 4; }
}

/* Phone, 4 columns */
@media (max-width: 37.49em) {
  .no-flow { --nf-step: 100%; }
  body.case-page .cp-pair > .no-icons { grid-column: 1 / -1; }
  body.case-page .cp .no-outcome > .cp-block { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .no-flow__rail { scroll-behavior: auto; }
}
