/* Hallmark · redesign: new component within the "next" layer · built: the project · brand kept: YouSee360 green, Outfit
   YouSee360 formats showcase (dev): one place, four formats. Uses the tokens of css/ys-next.css, scoped to html.ys-next.
   The step numbers are a real sequence, so they are set as numerals; labels are body face, sentence case. */

html.ys-next .nf { padding: clamp(var(--nx-space-8), 8vw, var(--nx-space-10)) clamp(var(--nx-space-4), 4vw, var(--nx-space-7)) !important; color: var(--nx-ink); text-align: left; }
/* a calm backing so the explanations stay readable over the animated sky on inner pages */
html.ys-next .nf, html.ys-next .nf-block { background: var(--nx-scrim); }
html.ys-next .nf-wrap { max-width: var(--nx-container); margin: 0 auto; }
html.ys-next .nf-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--nx-space-4) var(--nx-space-8); align-items: end; margin: 0 0 var(--nx-space-6); }
html.ys-next .nf-head :is(h1, h2) {
  margin: 0 !important; min-width: 0; color: var(--nx-ink) !important; font-size: var(--nx-text-section) !important; font-weight: 600;
  line-height: 1.04 !important; letter-spacing: -.035em; text-align: left; overflow-wrap: break-word;
}
html.ys-next .nf-lede { margin: 0; max-width: 52ch; color: var(--nx-ink-2); font-size: var(--nx-text-body); line-height: 1.6; }

/* the four steps */
html.ys-next .nf-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 var(--nx-space-5); border-top: 1px solid var(--nx-rule); }
html.ys-next .nf-tab {
  position: relative; display: flex; align-items: center; gap: var(--nx-space-3); min-height: 72px;
  padding: var(--nx-space-3) var(--nx-space-4) var(--nx-space-3) 0; border: 0; border-radius: 0; background: transparent;
  color: var(--nx-ink-2); font: inherit; text-align: left; cursor: pointer;
  transition: color var(--nx-t-micro) var(--nx-ease-out);
}
html.ys-next .nf-tab:hover, html.ys-next .nf-tab[aria-selected="true"] { color: var(--nx-ink); }
html.ys-next .nf-tab[aria-selected="true"]::after { content: ""; position: absolute; inset: -1px 0 auto 0; border-block-start: 3px solid var(--nx-green); }
html.ys-next .nf-num { flex: none; color: var(--nx-ink-3); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
html.ys-next .nf-tab[aria-selected="true"] .nf-num { color: var(--nx-green); }
html.ys-next .nf-tab-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.ys-next .nf-tab-name { font-size: 17px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ys-next .nf-tab-sub { font-size: var(--nx-text-label); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* stage and explanation */
html.ys-next .nf-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--nx-space-6); align-items: start; }
html.ys-next .nf-stage {
  position: relative; aspect-ratio: 16 / 9; max-height: min(74dvh, 760px); width: 100%; overflow: hidden;
  border-radius: var(--nx-radius-card); background: var(--nx-surface); border: 1px solid var(--nx-rule);
}
html.ys-next .nf-stage:fullscreen { max-height: none; border: 0; border-radius: 0; aspect-ratio: auto; }
html.ys-next .nf-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity var(--nx-t-long) var(--nx-ease-out); }
html.ys-next .nf-frame { position: absolute; inset: 0; }
html.ys-next .nf-frame iframe, html.ys-next .nf-video, html.ys-next .nf-sphere {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--nx-canvas);
}
html.ys-next .nf-video { object-fit: contain; }
html.ys-next .nf-sphere { cursor: grab; touch-action: none; }
html.ys-next .nf-sphere:active { cursor: grabbing; }
html.ys-next .nf-stage.is-live .nf-poster { opacity: 0; pointer-events: none; }
html.ys-next .nf-stage.is-live .nf-enter, html.ys-next .nf-stage.is-loading .nf-enter { opacity: 0; visibility: hidden; pointer-events: none; }
html.ys-next .nf-enter {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--nx-space-3); height: 52px; padding: 0 6px 0 var(--nx-space-5);
  border-radius: var(--nx-radius-control); color: var(--nx-ink); font: 600 17px/1 inherit; white-space: nowrap; cursor: pointer;
  transition: border-color var(--nx-t-short) var(--nx-ease-out), opacity var(--nx-t-short) var(--nx-ease-out), visibility var(--nx-t-short);
}
html.ys-next .nf-enter:hover { border-color: var(--nx-ink); }
html.ys-next .nf-loading {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: none; align-items: center; gap: var(--nx-space-3); height: 48px; padding: 0 var(--nx-space-5) 0 var(--nx-space-4);
  border-radius: var(--nx-radius-control); color: var(--nx-ink); font-size: 16px; font-weight: 500; white-space: nowrap;
}
html.ys-next .nf-stage.is-loading .nf-loading { display: inline-flex; }
html.ys-next .nf-controls {
  position: absolute; left: var(--nx-space-4); right: var(--nx-space-4); bottom: var(--nx-space-4); z-index: 3;
  display: flex; align-items: center; gap: var(--nx-space-3); height: 52px; padding: 0 var(--nx-space-4) 0 var(--nx-space-1);
  border-radius: var(--nx-radius-control); color: var(--nx-ink);
}
html.ys-next .nf-play { flex: none; height: 44px; min-width: 96px; padding: 0 var(--nx-space-4); border: 0; border-radius: var(--nx-radius-control); background: var(--nx-ink); color: var(--nx-green-ink); font: 600 15px/1 inherit; cursor: pointer; }
html.ys-next .nf-seek { flex: 1; min-width: 0; accent-color: var(--nx-green); }
html.ys-next .nf-hint { flex: none; color: var(--nx-ink-2); font-size: var(--nx-text-label); white-space: nowrap; }

html.ys-next .nf-side { min-width: 0; display: flex; flex-direction: column; gap: var(--nx-space-5); }
html.ys-next .nf-panel-in h3 { margin: 0 0 var(--nx-space-3) !important; color: var(--nx-ink); font-size: 26px !important; font-weight: 600; line-height: 1.15 !important; letter-spacing: -.02em; }
html.ys-next .nf-panel-in p { margin: 0 0 var(--nx-space-4); color: var(--nx-ink-2); font-size: var(--nx-text-body); line-height: 1.55; }
html.ys-next .nf-facts { margin: 0; padding: 0; }
html.ys-next .nf-facts div { padding: var(--nx-space-3) 0; border-top: 1px solid var(--nx-rule); }
html.ys-next .nf-facts dt { margin: 0 0 2px; color: var(--nx-ink-3); font-size: var(--nx-text-label); font-weight: 500; }
html.ys-next .nf-facts dd { margin: 0; color: var(--nx-ink); font-size: 16px; line-height: 1.45; }
html.ys-next .nf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nx-space-3) var(--nx-space-4); }

/* the dedicated page: side-by-side table and the closing action */
html.ys-next .nf-page { padding-top: 96px; }
html.ys-next .nf-block { padding: 0 clamp(var(--nx-space-4), 4vw, var(--nx-space-7)) clamp(var(--nx-space-8), 8vw, var(--nx-space-10)); color: var(--nx-ink); text-align: left; }
html.ys-next .nf-block h2 { margin: 0 0 var(--nx-space-5) !important; color: var(--nx-ink) !important; font-size: clamp(30px, 3.4vw, 44px) !important; font-weight: 600; line-height: 1.08 !important; letter-spacing: -.03em; text-align: left; }
html.ys-next .nf-block p { margin: 0 0 var(--nx-space-5); max-width: 62ch; color: var(--nx-ink-2); font-size: var(--nx-text-body); line-height: 1.6; }
html.ys-next .nf-scroll { overflow-x: auto; }
html.ys-next .nf-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
html.ys-next .nf-table th, html.ys-next .nf-table td { padding: var(--nx-space-4) var(--nx-space-5) var(--nx-space-4) 0; border-top: 1px solid var(--nx-rule); vertical-align: top; color: var(--nx-ink); font-size: 16px; line-height: 1.45; font-weight: 400; }
html.ys-next .nf-table thead th { border-top: 0; font-size: 17px; font-weight: 600; }
html.ys-next .nf-table tbody th { width: 15%; color: var(--nx-ink-3); font-size: var(--nx-text-label); font-weight: 500; }

@media (max-width: 1080px) {
  html.ys-next .nf-head { grid-template-columns: minmax(0, 1fr); }
  html.ys-next .nf-body { display: flex; flex-direction: column; align-items: stretch; gap: var(--nx-space-5); }
}
@media (max-width: 760px) {
  /* steps that do not fit stay on one row and scroll */
  html.ys-next .nf-tabs { display: flex; overflow-x: auto; scroll-snap-type: inline proximity; scrollbar-width: none; }
  html.ys-next .nf-tabs::-webkit-scrollbar { display: none; }
  html.ys-next .nf-tab { flex: none; width: 204px; scroll-snap-align: start; }
  html.ys-next .nf-stage { aspect-ratio: 4 / 5; max-height: 72dvh; }
  html.ys-next .nf-stage[data-kind="video"] { aspect-ratio: 16 / 9; }
  html.ys-next .nf-stage[data-kind="sphere"] { aspect-ratio: 1 / 1; }
  html.ys-next .nf-hint { display: none; }
  html.ys-next .nf-nav .nx-btn { flex: 1 1 auto; }
  html.ys-next .nf-page { padding-top: 72px; }
}
