/* W3 Wallet case. Page-level classes on top of the home-style system (site.css).
   Prefix .w3- ; flowcharts are inline SVG (.w3-dg) drawn in the system colors. */

/* ---------- head ---------- */
.w3-meta-wide { grid-column: 1 / -1; }
.w3-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.w3-links .btn, .w3-refs .btn, .w3-inline-link .btn { gap: 8px; }
.w3-links img, .w3-refs img, .w3-inline-link img { width: 20px; height: 20px; object-fit: contain; flex: none; border-radius: 5px; }
.case-head .w3-links .btn { margin-top: 0; }
.case-head .cv-text + .cv-text { margin-top: -8px; }
.w3-links--inline { margin-top: 24px; }
.w3-inline-link { margin-top: 24px; }

.w3-summary { margin-top: 8px; border-radius: 24px; background: var(--color-plate); }
.w3-summary summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-size: 16px; line-height: 24px; color: var(--color-text); border-radius: 24px;
}
.w3-summary summary::-webkit-details-marker { display: none; }
.w3-summary summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease, ease); opacity: .6;
}
.w3-summary[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.w3-summary summary:focus-visible { outline: 2px solid #674ff1; outline-offset: 2px; }
.w3-summary__star { width: 22px; height: 22px; flex: none; }
.w3-summary__list { margin: 0; padding: 4px 20px 20px 44px; display: grid; gap: 12px; font-size: 15px; line-height: 24px; color: var(--color-text-body); }
.w3-summary__list li::marker { color: var(--color-text-muted); }

/* ---------- showcase band ---------- */
.w3-hero { margin-top: 64px; padding-block: 32px 24px; }
.w3-hero .slider-controls { margin-top: 20px; }
@media (min-width: 810px) { .w3-hero { margin-top: 96px; padding-block: 48px 32px; } }
.w3-hero .slider--screens { gap: 24px; }
.w3-hero video { background: #0d0d0d; }

/* ---------- section rhythm ---------- */
.w3-sec > .container + .container { margin-top: 56px; }
.w3-sec > .band + .container { margin-top: 56px; }
.w3-sec > .container + .band { margin-top: 40px; }
.w3-sec .case-text > * + .w3-h3 { margin-top: 48px; }
.w3-sec .case-text > .w3-h3:first-child { margin-top: 0; }
.w3-h3 { margin-bottom: 16px; }
.w3-h3--lg { margin-top: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.04em; }
.w3-h3 + .t-body, .w3-h3 + .w3-list { margin-top: 0; }
.w3-h4 { margin: 28px 0 8px; font-weight: var(--fw); font-size: 17px; line-height: 27px; color: var(--color-text); letter-spacing: -0.01em; }
.w3-h4--lg { margin-top: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -0.02em; margin-bottom: 12px; }
.w3-sec .case-text .t-body + .w3-list, .w3-sec .case-text .w3-list + .t-body { margin-top: 16px; }
.w3-sec .case-text .t-body + .w3-h4 { margin-top: 28px; }
.w3-sec .case-text .w3-list + .w3-h4 { margin-top: 28px; }

.w3-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 17px; line-height: 27px; color: var(--color-text-body); text-wrap: pretty; }
.w3-list li { position: relative; padding-left: 22px; }
.w3-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-text); }

.w3-chain { margin: 0 0 16px; font-size: 17px; line-height: 27px; color: var(--color-text); }
.w3-chain--inline { display: block; margin: 8px 0 0; color: var(--color-text); }
.w3-arrow { color: var(--color-text-muted); padding-inline: 2px; }

.w3-steps { counter-reset: s; margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.w3-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--color-plate); color: var(--color-text); font-size: 14px; white-space: nowrap; }
.w3-steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-text); color: #fff; font-size: 13px; }
.w3-steps + .t-body { margin-top: 24px; }

.w3-note { margin: 32px 0 0; padding: 24px 24px 28px; border-radius: 24px; background: var(--color-plate); }
.w3-note__label { display: block; margin-bottom: 12px; font-weight: var(--fw); font-size: 15px; line-height: 24px; color: var(--color-text-muted); }
.w3-note .t-body { color: var(--color-text); }
.w3-note .t-body + .t-body { margin-top: 12px; }

.w3-refs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* ---------- team ---------- */
.w3-roles { margin: 32px 0 24px; padding: 0; list-style: none; display: grid; gap: 0; max-width: 720px; }
.w3-roles li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; }
.w3-roles li:last-child { }
.w3-roles b { display: flex; align-self: start; align-items: center; gap: 10px; font-weight: var(--fw); font-size: 17px; line-height: 27px; min-height: 27px; color: var(--color-text); }
.w3-roles span { font-size: 17px; line-height: 27px; color: var(--color-text-body); }
.w3-avatar { width: 28px; height: 28px; margin: -1px 0 -1px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 809.98px) { .w3-roles li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- media inside bands ---------- */
.w3-shot { margin: 0; }
.w3-shot img { display: block; width: 100%; height: auto; border-radius: 24px; background: #fff; }
.w3-shot__link { display: block; border-radius: 24px; cursor: zoom-in; }
.w3-shot__link:focus-visible { outline: 2px solid #674ff1; outline-offset: 4px; }
.w3-shot--wide img, .w3-shot--16x9 img { background: #fff; }
.w3-shot .caption { margin: 12px 4px 0; font-size: 14px; line-height: 20px; }
@media (min-width: 1200px) { .w3-shot--16x9 { max-width: 1184px; margin-inline: auto; } }

.w3-phones { display: flex; justify-content: center; gap: 24px; }
.w3-shot--phone { flex: 0 1 300px; }
.w3-shot--phone img { border-radius: 28px; }
@media (max-width: 809.98px) { .w3-phones { gap: 12px; } .w3-shot--phone { flex-basis: 44%; } .w3-shot--phone img { border-radius: 18px; } }

.w3-pair { gap: 24px; }
.w3-pair .w3-shot { align-self: start; }

.w3-b1 { background: transparent; aspect-ratio: auto; }
.w3-bento .w3-b1 { grid-row: auto; border-radius: 24px; }
.w3-bento { grid-auto-rows: auto; align-items: start; }
.w3-bento .bento__item img { height: auto; object-fit: initial; display: block; border-radius: 24px; }

/* ---------- reading blocks ---------- */
.w3-brand { display: flex; align-items: center; gap: 14px; }
.w3-brand__logo { width: 32px; height: 32px; flex: none; }

.w3-cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 810px) { .w3-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; } }
.w3-cols > div { padding-top: 24px; }
.w3-cols .w3-h3 { margin-top: 0; font-size: 22px; line-height: 28px; }
.w3-cols .w3-list { font-size: 16px; line-height: 25px; gap: 12px; }
.w3-cols .w3-list li::before { top: 10px; }

/* ---------- metrics table ---------- */
.w3-tablewrap { margin-top: 0; }
.w3-table { width: 100%; border-collapse: collapse; text-align: left; }
.w3-table th, .w3-table td { padding: 20px 24px 20px 0; vertical-align: top; font-size: 16px; line-height: 24px; color: var(--color-text-body); }
.w3-table thead th { font-weight: var(--fw); font-size: 14px; color: var(--color-text-muted); padding-block: 0 12px; }
.w3-table tbody th { font-weight: var(--fw); color: var(--color-text); width: 26%; }
.w3-table tbody tr + tr > * { }
.w3-table td { width: 37%; }
@media (max-width: 809.98px) {
  .w3-table thead { display: none; }
  .w3-table, .w3-table tbody, .w3-table tr, .w3-table th, .w3-table td { display: block; width: 100%; }
  .w3-table tr { padding: 20px 0; }
  .w3-table tbody tr:first-child { }
  .w3-table tbody tr + tr > * { border-top: 0; }
  .w3-table th, .w3-table td { padding: 0; }
  .w3-table tbody th { font-size: 18px; line-height: 26px; margin-bottom: 8px; width: 100%; }
  .w3-table td { margin-top: 10px; }
  .w3-table td::before { content: attr(data-label); display: block; font-size: 13px; line-height: 18px; color: var(--color-text-muted); }
}

/* ---------- flowcharts ---------- */
.w3-dgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 810px) { .w3-dgs { gap: 56px; } }
.w3-dgfig { margin: 0; min-width: 0; }
.w3-dgfig__t { margin: 0 0 16px; font-size: 15px; line-height: 24px; color: var(--color-text-muted); }
.w3-dgscroll { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); -webkit-overflow-scrolling: touch; }
.w3-dgscroll::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .w3-dgscroll { margin-inline: 0; padding-inline: 0; } }
.w3-dg { display: block; width: 100%; height: auto; min-width: 760px; max-width: 100%; font-family: inherit; }
@media (max-width: 1199.98px) { .w3-dg { max-width: none; } }
.w3-dg .dg-n { fill: #fff; stroke: #212121; stroke-width: 1.5; }
.w3-dg .dg-hub { fill: #fff; stroke-width: 2.25; }
.w3-dg .dg-start.dg-n { fill: #212121; }
.w3-dg .dg-e { fill: none; stroke: #212121; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.w3-dg .dg-lb { fill: #f7f7f7; }
.w3-dg .dg-t { font-size: 14px; fill: #212121; letter-spacing: -0.01em; font-weight: 500; }
.w3-dg .dg-t.dg-start { fill: #fff; }
.w3-dg .dg-l { fill: #666; font-size: 13px; }

/* wide figures that are unreadable at phone width: pan horizontally instead of shrinking */
@media (max-width: 809.98px) {
  .w3-pan { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); -webkit-overflow-scrolling: touch; }
  .w3-pan::-webkit-scrollbar { display: none; }
  .w3-pan > img, .w3-pan > a { display: block; width: 760px; max-width: none; flex: none; }
  .w3-pan > a > img { width: 100%; }
}

/* 28.11: no dividers anywhere (owner). Rows are separated by space only. */
.w3-roles li { padding: 12px 0; }
.w3-table tbody tr > * { padding-block: 14px; }

/* =====================================================================
   29.11 clean rebuild: no Figma-board crops.
   One surface only: screens sit straight on the grey .band (no white card inside it).
   Every phone screen has the home radius (24px), no shadow; wide shots use the media radius (24px).
   ===================================================================== */

/* ---------- phone rows ---------- */
.w3-row { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.w3-ph { margin: 0; flex: 0 1 300px; min-width: 0; }
.w3-ph img { display: block; width: 100%; height: auto; border-radius: 24px; }
.w3-ph__l { display: block; margin: 0 0 16px; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; font-weight: var(--fw); color: var(--color-text); }
.w3-row--flow { gap: 40px; }
.w3-row--flow .w3-ph + .w3-ph { position: relative; }
.w3-row--flow .w3-ph + .w3-ph::before {
  content: ""; position: absolute; left: -28px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: solid #212121; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg) scale(.7); border-radius: 2px; opacity: .55;
}
.w3-refcap, .w3-rowcap { margin: 20px 4px 0; text-align: center; }
.w3-rowcap { margin: 0 0 24px; }
.w3-rowcap--2 { margin-top: 56px; }
.w3-row + .w3-rowcap--2 { margin-top: 56px; }
.w3-wide { margin: 0 auto; max-width: 880px; }
.w3-wide img { display: block; width: 100%; height: auto; border-radius: 24px; }
.w3-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.w3-ph--page { flex: none; }

@media (max-width: 809.98px) {
  .w3-row, .w3-ann {
    justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); -webkit-overflow-scrolling: touch;
  }
  .w3-row::-webkit-scrollbar, .w3-ann::-webkit-scrollbar { display: none; }
  .w3-ph, .w3-scr { flex: 0 0 66%; scroll-snap-align: start; }
  .w3-ph__l { font-size: 18px; line-height: 24px; margin-bottom: 12px; }
  .w3-row--flow { gap: 12px; }
  .w3-row--flow .w3-ph + .w3-ph::before { display: none; }
  .w3-pages { grid-template-columns: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); gap: 12px; }
  .w3-pages::-webkit-scrollbar { display: none; }
  .w3-pages .w3-ph { flex: 0 0 72%; scroll-snap-align: start; }
  .w3-rowcap { text-align: left; }
}

/* ---------- annotated screens: numbered markers on the screen, matching notes below ---------- */
.w3-ann { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.w3-scr { margin: 0; flex: 0 1 300px; min-width: 0; }
.w3-scr__img { position: relative; }
.w3-scr__img img { display: block; width: 100%; height: auto; border-radius: 24px; }
.w3-pin {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #212121; color: #fff;
  font-style: normal; font-size: 12px; line-height: 1; font-weight: var(--fw); box-shadow: 0 0 0 2px #fff;
}
.w3-notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: n var(--s, 0); }
.w3-notes li { counter-increment: n; position: relative; padding-left: 34px; font-size: 14px; line-height: 21px; color: var(--color-text-body); text-wrap: pretty; }
.w3-notes li::before {
  content: counter(n); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #212121; color: #fff; font-size: 12px; line-height: 1;
}
.w3-ann--2 .w3-scr { flex-basis: 300px; }

/* ---------- loop diagram: same drawing language as the userflows, accent only on the two highlighted nodes ---------- */
.w3-loop .dg-hi { stroke: #674ff1; stroke-width: 2.25; }
.w3-loop .dg-grey { stroke: #b4b4b4; stroke-dasharray: none; }
.w3-loop .dg-ah { fill: none; stroke: #212121; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.w3-loop .dg-ah.dg-grey { stroke: #b4b4b4; }
.w3-loop .dg-dots { fill: #b4b4b4; font-size: 18px; letter-spacing: 2px; }

/* draw-in: lines draw, nodes and arrowheads fade, once, when the figure enters the viewport (.reveal -> .is-in) */
.js .w3-loop .dg-e { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .w3-loop .dg-ah, .js .w3-loop .dg-dots { opacity: 0; }
.js .w3-loop .dg-g { opacity: 0; transform: translateY(6px); transform-box: fill-box; }
.js .w3-loop.is-in .dg-e { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) calc(var(--d, 0) * 1s + .3s); }
.js .w3-loop.is-in .dg-ah { opacity: 1; transition: opacity .25s ease-out calc(var(--d, 0) * 1s + .85s); }
.js .w3-loop.is-in .dg-dots { opacity: 1; transition: opacity .4s ease-out 1.4s; }
.js .w3-loop.is-in .dg-g { opacity: 1; transform: none; transition: opacity .5s ease-out calc(var(--d, 0) * 1s), transform .6s var(--ease-out, cubic-bezier(.22, 1, .36, 1)) calc(var(--d, 0) * 1s); }
/* the page-level .reveal blur would soften the SVG strokes, drop it for this figure */
.js .w3-loop.reveal, .js .w3-stairs.reveal, .js .w3-compare.reveal { filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .w3-loop .dg-e { stroke-dashoffset: 0 !important; transition: none !important; }
  .js .w3-loop .dg-ah, .js .w3-loop .dg-dots, .js .w3-loop .dg-g { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* mobile overrides for the annotated screens (must come after the base .w3-ann/.w3-scr rules) */
@media (max-width: 809.98px) {
  .w3-ann { justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); -webkit-overflow-scrolling: touch; }
  .w3-ann::-webkit-scrollbar { display: none; }
  .w3-scr { flex: 0 0 72%; scroll-snap-align: start; }
  .w3-notes li { font-size: 15px; line-height: 22px; }
}

/* 28.11 final pass: phone-width strips snap to the content edge, not to the screen edge */
@media (max-width: 809.98px) {
  .w3-row, .w3-ann, .w3-pages { scroll-padding-inline: var(--pad); }
  .w3-row > :last-child, .w3-ann > :last-child, .w3-pages > :last-child { scroll-snap-align: end; }
}

/* Loop diagram sequence (28.11): node, then the arrow out of it, then the next node.
   Nodes every .6s; each arrow starts .25s after its source node and draws in .4s; arrowhead lands with it. */
.w3-loop .dg-g:nth-of-type(1) { --d: 0 !important; }
.w3-loop .dg-g:nth-of-type(2) { --d: .6 !important; }
.w3-loop .dg-g:nth-of-type(3) { --d: 1.2 !important; }
.w3-loop .dg-g:nth-of-type(4) { --d: 1.8 !important; }
.w3-loop .dg-g:nth-of-type(5) { --d: 2.4 !important; }
.w3-loop .dg-g:nth-of-type(6) { --d: 3.0 !important; }
.w3-loop path:nth-of-type(-n+6) { --d: .25 !important; }
.w3-loop path:nth-of-type(7), .w3-loop path:nth-of-type(8) { --d: .85 !important; }
.w3-loop path:nth-of-type(9), .w3-loop path:nth-of-type(10) { --d: 1.45 !important; }
.w3-loop path:nth-of-type(11), .w3-loop path:nth-of-type(12) { --d: 2.05 !important; }
.w3-loop path:nth-of-type(13), .w3-loop path:nth-of-type(14) { --d: 2.65 !important; }
.w3-loop path:nth-of-type(15), .w3-loop path:nth-of-type(16) { --d: 3.25 !important; }
.js .w3-loop.is-in .dg-e { transition: stroke-dashoffset .4s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0) * 1s); }
.js .w3-loop.is-in .dg-ah { transition: opacity .15s ease-out calc(var(--d, 0) * 1s + .3s); }
.js .w3-loop.is-in .dg-dots { transition: opacity .4s ease-out .6s; }

/* =====================================================================
   28.11 final pass: a clear spine and varied compositions
   ===================================================================== */

/* chapter titles in the home style: grey #N_ prefix, big, one per section */
.w3-chapter { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.045em; }
.w3-chapter .t-section__idx { display: inline; }
.w3-chapter .w3-brand { display: inline-flex; vertical-align: top; gap: .2em; }
#hako .w3-brand__logo { width: .8em; height: .8em; align-self: center; }
.w3-lede { margin-top: 20px; font-size: 20px; line-height: 28px; letter-spacing: -0.015em; color: var(--color-text); }

/* text blocks: heading (and the chapter lede) on the left, details on the right; stacked below 1100 */
.w3-split__r > * + .w3-h3 { margin-top: 48px; }
.w3-split__r > :first-child { margin-top: 0; }
.w3-split__l + .w3-split__r { margin-top: 24px; }
@media (min-width: 1100px) {
  .w3-sec .case-text.w3-split { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .w3-sec .case-text.w3-split--r { display: block; padding-left: calc((100% - 64px) * 5 / 12 + 64px); }
  .w3-split__l + .w3-split__r { margin-top: 0; }
  .w3-split__l { position: sticky; top: calc(var(--header-h) + 80px); }
  .w3-split__l .w3-h3 { margin: 4px 0 0; font-size: 26px; line-height: 32px; letter-spacing: -0.03em; }
  .js .w3-sec .case-text.reveal.w3-split > .w3-split__l { transform: translateX(-24px); }
  .js .w3-sec .case-text.reveal.w3-split > .w3-split__r { transform: translateX(24px); }
  .js .w3-sec .case-text.reveal.w3-split.is-in > * { transform: none; }
}
.w3-sec > .container + .container { margin-top: 64px; }

/* small label pills, inside the visual (no caption lines under images) */
.w3-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--color-text); font-size: 13px; line-height: 16px; letter-spacing: -0.01em; white-space: nowrap; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); }
.w3-dgfig { position: relative; }
.w3-dgfig__t.w3-tag { margin: 0 0 20px; }
.w3-loop .w3-dgfig__t.w3-tag { position: absolute; top: 0; left: 0; margin: 0; }
.w3-rowcap { margin: 0 0 28px; text-align: center; }
.w3-rowcap--2, .w3-row + .w3-rowcap--2 { margin-top: 64px; }
.w3-ph { position: relative; }
.w3-ph__l.w3-tag { position: absolute; z-index: 1; top: -14px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 13px; line-height: 16px; letter-spacing: -0.01em; }
.w3-refcap { margin: 32px 0 -16px; text-align: center; font-size: 12px; line-height: 16px; color: var(--color-text-muted); }

/* one phone size everywhere (300), a smaller one (220) only for the five-up reference row; whole frames, same radius */
.w3-ph, .w3-scr { flex: 0 1 300px; }
.w3-ph img, .w3-scr__img img { border-radius: 30px; }
.w3-row:has(> .w3-ph:nth-child(5)) .w3-ph { flex-basis: 220px; }
.w3-row:has(> .w3-ph:nth-child(5)) .w3-ph img { border-radius: 22px; }
@media (min-width: 810px) { .w3-row, .w3-ann { gap: 32px; } .w3-row--flow { gap: 40px; } }
@media (max-width: 809.98px) { .w3-ph img, .w3-scr__img img { border-radius: 22px; } .w3-row { padding-top: 16px; } }

/* annotated screens: calm markers on clean screens, the note opens in a popover (hover, focus or tap) */
.w3-ann { position: relative; }
.w3-pin {
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #212121; color: #fff; font: inherit; font-size: 12px; line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .95); cursor: pointer; transition: transform .45s var(--ease-spring, cubic-bezier(.34, 1.4, .64, 1)), background .2s;
}
.w3-pin:hover, .w3-pin.is-open { background: var(--color-link, #09f); transform: translate(-50%, -50%) scale(1.15); }
.w3-pin:focus-visible { outline: 2px solid var(--color-link, #09f); outline-offset: 3px; }
.w3-pin::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #212121; opacity: 0; pointer-events: none; }
.js .w3-ann.is-pins .w3-pin::after { animation: w3-pulse 1.2s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) calc(var(--pi, 0) * 120ms + .5s) 1; }
@keyframes w3-pulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.w3-tip {
  position: absolute; z-index: 5; left: 0; top: 0; width: max-content; max-width: min(280px, calc(100% - 16px)); padding: 12px 14px; border-radius: 20px;
  background: #fff; color: var(--color-text); font-size: 14px; line-height: 20px; letter-spacing: -0.01em; text-wrap: pretty;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none; opacity: 0; visibility: hidden; transform: scale(.94); transform-origin: var(--ox, 50%) var(--oy, 100%);
  transition: opacity .18s ease-out, transform .35s var(--ease-spring, cubic-bezier(.34, 1.4, .64, 1)), visibility 0s .18s;
}
.w3-tip::after { content: ""; position: absolute; left: var(--ax, 50%); width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); box-shadow: 1px 1px 0 0 rgba(0, 0, 0, .08); }
.w3-tip[data-side="top"]::after { bottom: -5px; }
.w3-tip[data-side="bottom"]::after { top: -5px; box-shadow: -1px -1px 0 0 rgba(0, 0, 0, .08); }
.w3-tip.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }

/* compare in the Review chapter: one phone, whole screen */
.w3-compare { width: min(340px, 82vw); margin-inline: auto; }
.w3-compare .compare__stage { border-radius: 32px; background: #fff; }
.w3-compare { --r: 32px; }

/* metrics: one staircase chart in four states (past, current, next) */
.w3-stairs { margin: 0; --step: 40px; }
.w3-stairs__cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.w3-st { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.w3-st__head { padding: 16px 20px; border-radius: 20px; background: var(--color-plate); color: var(--color-text); }
.w3-st__head b { display: block; font-weight: var(--fw); font-size: 20px; line-height: 26px; letter-spacing: -0.02em; }
.w3-st__head span { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--color-text-muted); }
.w3-st__body { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(300px + var(--i) * var(--step)); padding: 22px 20px 24px; border-radius: 24px; background: var(--color-plate); color: var(--color-text);
  transition: background .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)), color .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.w3-st__head { transition: background .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)), color .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.w3-band-metrics, .band:has(> .container > .w3-stairs) { background: #fff; }
.w3-st__d { margin: 0; display: grid; gap: 18px; }
.w3-st__d dt { font-size: 15px; line-height: 20px; color: var(--color-text-muted); transition: color .5s; }
.w3-st__d dd { margin: 4px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.w3-v { font-size: 32px; line-height: 36px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: font-size .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)), line-height .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.w3-pre { font-style: normal; font-size: .6em; margin-right: .08em; color: var(--color-text-muted); vertical-align: .15em; }
.w3-dlt { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .05); color: var(--color-text-muted); font-size: 13px; line-height: 16px; white-space: nowrap; }
.w3-sk { display: block; height: 10px; border-radius: 999px; background: #e6e6e6; }
.w3-sk + .w3-sk { margin-top: 28px; }
.w3-sk:nth-child(1) { width: 70%; } .w3-sk:nth-child(2) { width: 52%; } .w3-sk:nth-child(3) { width: 62%; }
/* current column: dark card, big numbers, green deltas */
.w3-st.is-now .w3-st__head, .w3-st.is-now .w3-st__body { background: #212121; color: #fff; }
.w3-st.is-now .w3-st__head span, .w3-st.is-now dt, .w3-st.is-now .w3-pre { color: rgba(255, 255, 255, .6); }
.w3-st.is-now .w3-v { font-size: 48px; line-height: 52px; }
.w3-st.is-now .w3-v--base { font-size: 32px; line-height: 36px; }
.w3-st.is-now .w3-dlt { background: rgba(43, 182, 115, .16); color: #2bb673; }
.w3-st.is-now .w3-dlt--neg { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.js .w3-stairs .w3-st.is-now .w3-dlt { opacity: 0; transform: translateY(6px); }
.js .w3-stairs .w3-st.is-now.is-counted .w3-dlt { opacity: 1; transform: none; transition: opacity .35s ease-out .15s, transform .5s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) .15s; }
@media (min-width: 810px) and (max-width: 1199.98px) { .w3-st.is-now .w3-v { font-size: 36px; line-height: 40px; } .w3-v { font-size: 26px; line-height: 30px; } }
@media (max-width: 809.98px) {
  .w3-stairs__cols { grid-template-columns: minmax(0, 1fr); }
  .w3-st__body { min-height: 0; }
  .w3-st.is-next .w3-st__body { display: none; }
}

/* flow diagrams: fit the reading width, larger node text, node, arrow, node in sequence */
.w3-flows .w3-dg { max-width: 920px; margin-inline: auto; }
.w3-flows .w3-dg .dg-t { font-size: 15px; }
.w3-flows .w3-dg .dg-l { font-size: 14px; }
.w3-flows.reveal { filter: none; transform: none; opacity: 1; }
.js .w3-flows .dg-g { opacity: 0; transform: translateY(6px); transform-box: fill-box; }
.js .w3-flows.is-in .dg-g { opacity: 1; transform: none; transition: opacity .45s ease-out calc(var(--d, 0) * 1s + .1s), transform .6s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) calc(var(--d, 0) * 1s + .1s); }

/* final: three readable cards */
.w3-cols { gap: 8px; }
@media (min-width: 810px) { .w3-cols { gap: 8px; } }
.w3-cols > div { padding: 32px 28px 36px; border-radius: 24px; background: var(--color-plate); }
.w3-cols .w3-h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.03em; margin-bottom: 20px; }
.w3-cols .w3-list { font-size: 17px; line-height: 26px; gap: 14px; color: var(--color-text); }
.w3-cols .w3-list li::before { top: 10px; }

/* Hako: the site hero big, the report pages as a tidy three-up */
#hako .w3-wide { max-width: none; }
#hako .w3-wide img { border-radius: 24px; }
#hako .w3-pages { gap: 24px; margin-top: 24px; }
#hako .w3-pages img { border-radius: 20px; }

/* hero strip: slow drift, edges fade instead of a half-cut phone */

@media (prefers-reduced-motion: reduce) {
  .js .w3-ann .w3-pin::after { animation: none !important; }
  .js .w3-flows .dg-g { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .w3-sec .case-text.reveal.w3-split > * { transform: none !important; }
  .js .w3-stairs .w3-st .w3-dlt { opacity: 1 !important; transform: none !important; }
  .w3-st__body, .w3-st__head, .w3-v { transition: none !important; }
}
/* phone widths: strips scroll on phones (these must come after the 300 / 220 desktop sizes) */
@media (max-width: 809.98px) {
  .w3-row .w3-ph, .w3-ann .w3-scr { flex: 0 0 66%; }
  .w3-row:has(> .w3-ph:nth-child(5)) .w3-ph { flex-basis: 52%; }
  .w3-pages .w3-ph { flex: 0 0 72%; }
}

/* labels: short muted captions centred under the visual (owner 28.11), no pills */
.w3-dgfig { display: flex; flex-direction: column; }
.w3-dgfig__t, .w3-loop .w3-dgfig__t { position: static; order: 2; margin: 16px 0 0; text-align: center; font-size: 15px; line-height: 20px; color: var(--color-text-muted); }
.w3-ph { display: flex; flex-direction: column; }
.w3-ph__l { position: static; order: 2; margin: 14px 0 0; transform: none; text-align: center; font-size: 15px; line-height: 20px; letter-spacing: 0; color: var(--color-text-muted); white-space: nowrap; }
.w3-rowcap, .w3-rowcap--2, .w3-row + .w3-rowcap--2 { margin: 16px 0 0; text-align: center; font-size: 15px; line-height: 20px; color: var(--color-text-muted); }
.w3-rowcap + .w3-row { margin-top: 64px; }
.w3-refcap { margin: 16px 0 0; font-size: 14px; line-height: 20px; }
@media (max-width: 809.98px) { .w3-row { padding-top: 0; } .w3-ph__l, .w3-rowcap { font-size: 14px; } .w3-rowcap { text-align: left; } }

/* userflow diagrams share the loop's drawing language (strokes, chevrons, 10px gaps, draw-in); fit 1:1 where possible */
.w3-flow .w3-dg { margin-inline: auto; }
.w3-flow .dg-start.dg-t { fill: #fff; }
/* markers never cover the UI (owner 28.11): each sits just outside the phone, level with its target;
   on hover, focus or tap a ring marks the target on the screen and the note opens */
.w3-pin[data-side] { top: calc(var(--y) * 1%); }
.w3-pin[data-side="left"] { left: -20px; }
.w3-pin[data-side="right"] { left: calc(100% + 20px); }
@media (max-width: 809.98px) { .w3-pin[data-side="left"] { left: 0; } .w3-pin[data-side="right"] { left: 100%; } }
.w3-pin[data-side]::before {
  content: ""; position: absolute; top: 50%; left: calc(50% + var(--dx, 0px)); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 2px solid var(--color-link, #09f); opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .2s ease-out, transform .45s var(--ease-spring, cubic-bezier(.34, 1.4, .64, 1));
}
.w3-pin[data-side]:hover::before, .w3-pin[data-side].is-open::before, .w3-pin[data-side]:focus-visible::before { opacity: 1; transform: none; }
.w3-scr__img { overflow: visible; }

/* diagram reveal (owner 28.11): a strict schedule baked into each element's --t (seconds; --d is taken by the site stagger).
   Nodes fade and rise in .35s at --d; an edge is invisible until --d, then draws in .25s; its arrowhead
   and branch label appear when the draw ends; no pre-rendered round caps. Same for the loop. */
.js .w3-loop .dg-e { opacity: 0; }
.js .w3-loop.is-in .dg-e { opacity: 1; transition: stroke-dashoffset .7s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) calc(var(--d, 0) * 1s + .3s), opacity 0s linear calc(var(--d, 0) * 1s + .3s); }
.js .w3-loop.w3-flow .dg-e { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.js .w3-loop.w3-flow .dg-ah { opacity: 0; }
.js .w3-loop.w3-flow .dg-g { opacity: 0; transform: translateY(6px); transform-box: fill-box; }
.js .w3-loop.w3-flow.is-in .dg-e { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .25s cubic-bezier(.16, 1, .3, 1) calc(var(--t, 0) * 1s), opacity 0s linear calc(var(--t, 0) * 1s); }
.js .w3-loop.w3-flow.is-in .dg-ah { opacity: 1; transition: opacity .12s ease-out calc(var(--t, 0) * 1s); }
.js .w3-loop.w3-flow.is-in .dg-g { opacity: 1; transform: none; transition: opacity .35s ease-out calc(var(--t, 0) * 1s), transform .35s cubic-bezier(.16, 1, .3, 1) calc(var(--t, 0) * 1s); }
.w3-flow .dg-dash { stroke: #a8a8a8; stroke-dasharray: 4 5; }
.js .w3-loop.w3-flow .dg-e.dg-dash { stroke-dasharray: 4 5; stroke-dashoffset: 0; }
.w3-flow .dg-ah.dg-dash { stroke: #a8a8a8; }
.w3-flow .dg-n.dg-ghost { fill: none; stroke: #b4b4b4; stroke-dasharray: 4 4; }
.w3-flow .dg-t.dg-ghost { fill: #8a8a8a; }
@media (prefers-reduced-motion: reduce) {
  .js .w3-loop .dg-e, .js .w3-loop .dg-ah, .js .w3-loop .dg-g { opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   Touch demos (owner 28.11, after the Telegram contest demos): one phone plays the screens of a set,
   a soft touch circle taps the point each note is about, the screen responds, the caption under the
   phone carries the note. Static row + numbered notes for reduced motion and no-JS.
   ===================================================================== */
.w3-demo { display: none; }
.js .w3-demo { display: flex; flex-direction: column; align-items: center; }
.js .w3-static, .js .w3-static-notes { display: none; }
.w3-static-notes { max-width: 720px; margin: 24px auto 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 22px; color: var(--color-text-muted); }
/* device: dark bezel, the screen sits inside it with its own radius, so nothing of the screenshot is cut (28.11).
   --w is the screen width, --sr its corner radius: 13.1% of the width at any size (30.11, it was a fixed 41px
   and small phones looked too round). The body radius is --sr + the 9px bezel, so the bezel is even. Change --w, not width.
   The press moves the whole phone a little, never zooms the screen content. */
.w3-demo__stage {
  --w: min(320px, 72vw); --sr: calc(var(--w) * .131); position: relative; width: var(--w); aspect-ratio: 900 / 1949; box-sizing: content-box; padding: 9px;
  border-radius: calc(var(--sr) + 9px); background: #121212; isolation: isolate; transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
}
.w3-demo__stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.w3-demo.is-press .w3-demo__stage { transform: scale(1.025); }
.w3-demo__cam { position: absolute; inset: 9px; border-radius: var(--sr); overflow: hidden; background: #fff; }
.w3-demo__scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(8px); transform: translateX(24px);
  transition: opacity .45s ease-out, filter .5s ease-out, transform .7s cubic-bezier(.16, 1, .3, 1); }
.w3-demo__scr.is-on { opacity: 1; filter: none; transform: none; }
.w3-demo__scr.is-off { opacity: 0; filter: blur(8px); transform: translateX(-24px); }
/* touch: a soft grey disc lands, presses in, and leaves a ring that spreads out */
.w3-demo__touch {
  position: absolute; z-index: 2; left: var(--tx, 50%); top: var(--ty, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(30, 30, 30, .22); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7) inset; opacity: 0; transform: scale(1.4); pointer-events: none;
  transition: opacity .25s ease-out, transform .5s cubic-bezier(.34, 1.4, .64, 1);
}
.w3-demo__touch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(30, 30, 30, .25); opacity: 0; }
.w3-demo.is-touch .w3-demo__touch { opacity: 1; transform: scale(1); }
.w3-demo.is-touch.is-press .w3-demo__touch { transform: scale(.8); }
.w3-demo.is-press .w3-demo__touch::after { animation: w3-ring .7s cubic-bezier(.16, 1, .3, 1); }
@keyframes w3-ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.w3-demo__cap { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 560px; min-height: 66px; margin: 20px auto 0; text-align: center; font-size: 15px; line-height: 22px; color: var(--color-text-muted); }
.w3-demo__n { font-size: 13px; line-height: 18px; color: #a3a3a3; font-variant-numeric: tabular-nums; }
.w3-demo__t { transition: opacity .3s ease-out; text-wrap: balance; }
.w3-demo__cap.is-swap .w3-demo__t, .w3-demo__cap.is-swap .w3-demo__n { opacity: 0; }
.w3-demo__n { transition: opacity .3s ease-out; }
@media (max-width: 809.98px) { .w3-demo__cap { font-size: 14px; line-height: 20px; padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .js .w3-demo { display: none; }
  .js .w3-static { display: flex; }
  .js .w3-static-notes { display: grid; }
}

/* touch demos fit one viewport with the header, the chapter strip and the caption (28.11) */
.w3-demo__stage { --w: max(160px, min(320px, 72vw, calc((100svh - 300px) * 0.4618))); }
.w3-demo__cap { min-height: 0; margin-top: 18px; width: 100%; box-sizing: border-box; }

/* no subtitles under the phone: the taps carry the story, the notes stay for screen readers; a story-like progress row
   shows where the set is (28.11) */
.w3-demo__cap { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.w3-demo__prog { display: flex; gap: 6px; margin-top: 22px; }
.w3-demo__prog i { position: relative; width: 6px; height: 6px; border-radius: 3px; background: #d9d9d9; overflow: hidden; transition: width .6s cubic-bezier(.16, 1, .3, 1), background-color .3s; }
.w3-demo__prog i.is-done { background: #111; }
.w3-demo__prog i.is-on { width: 32px; }
.w3-demo__prog i.is-on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #111; transform-origin: left; animation: w3-fill var(--dur, 3.6s) linear both; }
@keyframes w3-fill { from { transform: scaleX(0); } to { transform: none; } }

/* contest-style stage: the phone stands on a soft gradient in the W3 teal, the touch is a hollow grey ring (28.11) */
.js .w3-demo { position: relative; padding: 56px 24px 28px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 90% at 15% 10%, #7fd3e3 0%, rgba(127, 211, 227, 0) 60%), radial-gradient(110% 90% at 90% 100%, #b9e7cf 0%, rgba(185, 231, 207, 0) 65%), linear-gradient(160deg, #66c4d8 0%, #a5dcd3 55%, #d8f0e4 100%); }
.w3-demo__stage { --w: max(160px, min(320px, 72vw, calc((100svh - 320px) * 0.4618))); }
.w3-demo__touch { width: 50px; height: 50px; margin: -25px 0 0 -25px; background: rgba(255, 255, 255, .22); box-shadow: none; border: 5px solid rgba(80, 80, 80, .32); box-sizing: border-box; }
.w3-demo__touch::after { inset: -5px; border-color: rgba(80, 80, 80, .28); }
.w3-demo__prog i { background: rgba(255, 255, 255, .55); }
.w3-demo__prog i.is-done, .w3-demo__prog i.is-on::after { background: #fff; }
@media (max-width: 809.98px) { .js .w3-demo { padding: 36px 12px 20px; border-radius: 24px; } }
/* the gradient fills the whole band edge to edge, the phone stands in it (28.11) */
.js .w3-demo { background: none; border-radius: 0; overflow: visible; padding: 0; }
.js .band:has(> .container > .w3-demo) {
  background: radial-gradient(60% 90% at 12% 8%, #7fd3e3 0%, rgba(127, 211, 227, 0) 70%), radial-gradient(60% 90% at 92% 100%, #b9e7cf 0%, rgba(185, 231, 207, 0) 70%), linear-gradient(160deg, #66c4d8 0%, #a5dcd3 55%, #d8f0e4 100%);
}
@media (prefers-reduced-motion: reduce) { .js .band:has(> .container > .w3-demo) { background: var(--color-bg-alt, #f6f6f6); } }

/* tap → spotlight → note (28.11): the zone stays lit, the rest of the screen dims; the note sits on the side with a line to it */
.js .w3-demo { position: relative; }
.w3-demo__cam { --r: 17%; }
.w3-demo__spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s ease-out;
  background: radial-gradient(circle at var(--tx, 50%) var(--ty, 50%), transparent 0, transparent calc(var(--r-px, 54px) - 1px), rgba(16, 24, 32, .42) var(--r-px, 54px)); }
.w3-demo__spot::after { content: ""; position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); width: calc(var(--r-px, 54px) * 2); height: calc(var(--r-px, 54px) * 2);
  translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(255, 255, 255, .28); scale: .7; transition: scale .5s cubic-bezier(.34, 1.4, .64, 1); }
.w3-demo.is-spot .w3-demo__spot { opacity: 1; }
.w3-demo.is-spot .w3-demo__spot::after { scale: 1; }
.w3-demo__touch { z-index: 3; }
.w3-demo__note { position: absolute; z-index: 4; width: 260px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 14px 16px;
  border-radius: 20px; background: #fff; color: var(--color-text); font-size: 15px; line-height: 21px; letter-spacing: -0.01em; text-wrap: pretty;
  opacity: 0; translate: 0 8px; transition: opacity .3s ease-out, translate .45s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.w3-demo__note[data-side="l"] { translate: 10px 0; } .w3-demo__note[data-side="r"] { translate: -10px 0; }
.w3-demo__note.is-on { opacity: 1; translate: 0 0; }
.w3-demo__nn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-text); color: #fff; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.w3-demo__line { position: absolute; height: 0; border-top: 1.5px dashed rgba(255, 255, 255, .9); transform-origin: left; }
.w3-demo__note[data-side="l"] .w3-demo__line { transform-origin: right; }
.w3-demo__note .w3-demo__line { scale: 0 1; transition: scale .4s cubic-bezier(.16, 1, .3, 1) .1s; }
.w3-demo__note.is-on .w3-demo__line { scale: 1 1; }
.w3-demo__note[data-side="b"] { position: relative; left: auto; top: auto; width: auto; max-width: 420px; margin: 16px auto 0; }
.w3-demo__note[data-side="b"] .w3-demo__line { display: none; }
@media (max-width: 759.98px) { .w3-demo__note { position: relative; width: auto; max-width: 420px; margin: 16px auto 0; min-height: 70px; } .w3-demo__line { display: none; } }
.w3-demo__nn { display: none; } .w3-demo__note { grid-template-columns: 1fr; }   /* no numbers in the notes (28.11) */
@media (max-width: 759.98px) {
  .w3-demo__stage { --w: max(160px, min(72vw, calc((100svh - 400px) * 0.4618))); }
  .w3-demo__note { min-height: 92px; align-content: center; font-size: 15px; line-height: 21px; padding: 12px 16px; }
}
.w3-demo__note[data-side="b"] { text-align: center; text-wrap: balance; }   /* under the phone: centred like the phone and the dots (30.11) */
.w3-split__l { transition: opacity .25s ease-out; } .w3-split__l.is-under { opacity: 0; }   /* see w3.js: sticky titles fade before the header */
/* skip controls (28.11): the phone and the note advance on click, each dot jumps to its step */
.w3-demo__stage, .w3-demo__note { cursor: pointer; }
.w3-demo__note { pointer-events: auto; }
.w3-demo__note:not(.is-on) { pointer-events: none; }
.w3-demo__prog { padding: 8px 6px; margin-top: 14px; }
.w3-demo__prog i { cursor: pointer; box-shadow: 0 0 0 7px transparent; }
.w3-demo__prog i:hover:not(.is-on) { background: rgba(255, 255, 255, .85); }
.w3-demo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 24px; }
/* the ring sits on the phone above the screen (and the bezel), so it is never cut at the screen edge (28.11) */
.w3-demo__spot::after { display: none; }
.w3-demo__ring { position: absolute; z-index: 5; pointer-events: none; left: calc(9px + (100% - 18px) * var(--sx, 50) / 100); top: calc(9px + (100% - 18px) * var(--sy, 50) / 100);
  width: calc(var(--r-px, 54px) * 2); height: calc(var(--r-px, 54px) * 2); translate: -50% -50%; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(255, 255, 255, .3); opacity: 0; scale: .7; transition: opacity .3s ease-out, scale .5s cubic-bezier(.34, 1.4, .64, 1); }
.w3-demo.is-spot .w3-demo__ring { opacity: 1; scale: 1; }
/* dashed edge to a ghost node (28.11): the dash is in pathLength units (the path has pathLength="1"), the arrowhead stays solid */
.w3-flow .dg-e.dg-dash, .js .w3-loop.w3-flow .dg-e.dg-dash { stroke-dasharray: .14 .16; }
.w3-flow .dg-ah.dg-dash { stroke-dasharray: none; }
