html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-sm));
}

body.sbo-body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.ico {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.ico-play {
  width: 0.85rem;
  height: 0.85rem;
}

#sbo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--color-mast);
  border-bottom: 1px solid oklch(42% 0.1 255 / 0.55);
}

#sbo-header.scrolled {
  background: oklch(14% 0.04 250);
}

.sbo-header-inner {
  max-width: var(--shell-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0 var(--page-gutter);
  height: var(--header-h);
}

.sbo-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: var(--tracking-display);
  color: var(--color-mast-ink);
  text-decoration: none;
  white-space: nowrap;
}

.sbo-logo span {
  color: var(--color-brand);
}

.sbo-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
}

.sbo-nav a {
  color: var(--color-mast-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.sbo-nav a:hover,
.sbo-nav a.is-current {
  color: var(--color-mast-ink);
  background: oklch(30% 0.06 255 / 0.35);
}

.sbo-nav .btn-play-nav {
  margin-left: var(--space-xs);
}

.sbo-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.sbo-hamburger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-mast-ink);
  border-radius: 1px;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-micro) var(--ease-out);
}

.sbo-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sbo-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.sbo-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sbo-mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-nav);
  background: var(--color-mast);
  padding: var(--space-md);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--dur-short) var(--ease-out);
}

.sbo-mobile-nav.open {
  transform: translateX(0);
}

.sbo-mobile-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-mast-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  padding: var(--space-md);
  border-bottom: 1px solid oklch(40% 0.04 250 / 0.35);
}

.sbo-mobile-nav a:hover {
  color: var(--color-mast-ink);
}

.sbo-mobile-nav .btn-play {
  margin-top: var(--space-md);
  justify-content: center;
  border-bottom: 0;
}

.btn-play,
.btn-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 2.5rem;
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-micro) var(--ease-out);
}

.btn-play {
  background: var(--color-play);
  color: var(--color-play-ink);
}

.btn-play:hover {
  background: var(--color-play-press);
  color: var(--color-play-ink);
}

.btn-reg {
  background: var(--color-register);
  color: var(--color-register-ink);
}

.btn-reg:hover {
  color: var(--color-register-ink);
}

.portal {
  max-width: var(--shell);
  margin-inline: auto;
  padding: var(--space-lg) var(--page-gutter) var(--space-2xl);
}

.page-doc {
  max-width: var(--shell-doc);
  margin-inline: auto;
  padding: var(--space-lg) var(--page-gutter) var(--space-2xl);
}

.fold {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.fold-photo {
  margin: 0;
  position: relative;
}

.fold-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-mast);
}

.fold-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: var(--display-weight);
  font-style: normal;
  letter-spacing: var(--tracking-display);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lede {
  margin: var(--space-xs) 0 0;
  max-width: 38ch;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.board {
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-whisper);
  overflow: hidden;
}

.board-head,
.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}

.board-head {
  background: var(--color-mast);
  color: var(--color-mast-ink);
}

.board-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
}

.board-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-mast-muted);
}

.board-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--color-rule);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.board-row:hover {
  background: var(--color-paper-3);
}

.board-row.board-alt {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: var(--space-sm);
}

.board-go {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.board-ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: oklch(55% 0.16 255 / 0.1);
  color: var(--color-accent);
}

.board-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  min-width: 0;
}

.board-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
}

.board-text span {
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.board-foot {
  justify-content: flex-end;
  color: var(--color-live);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0;
  color: var(--color-live);
  font-size: var(--text-xs);
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-live);
}

.help,
.note,
.posts,
.doc-shell {
  margin-top: var(--space-xl);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
}

.page-doc .doc-shell {
  margin-top: 0;
}

.help details {
  border-top: 1px solid var(--color-rule);
}

.help details:first-child {
  border-top: 0;
}

.help summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
}

.help summary::-webkit-details-marker {
  display: none;
}

.help summary::after {
  content: "";
  float: right;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-right: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(45deg);
}

.help details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.help-body {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-ink-2);
  font-size: 0.95rem;
}

.help-body ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.2em;
}

.note {
  padding: var(--space-lg);
}

.note h2,
.posts h2,
.page-doc h1,
.doc h1 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  font-style: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.page-doc .doc h1 {
  font-size: clamp(1.2rem, 1.5vw + 0.85rem, 1.7rem);
  line-height: 1.28;
  max-width: 22em;
}

.note p {
  margin: 0;
  max-width: 62ch;
  color: var(--color-ink-2);
}

.posts {
  padding: var(--space-lg);
}

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-md);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
}

.post-card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
}

.post-card time {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.post-card strong {
  display: block;
  margin-top: var(--space-2xs);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
}

.doc-head,
.doc-body {
  padding-inline: var(--space-lg);
}

.doc-head {
  padding-top: var(--space-lg);
}

.doc-hero {
  margin: var(--space-md) 0 0;
}

.doc-hero img {
  width: 100%;
  max-width: 62rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
}

.doc-body {
  padding-bottom: var(--space-xl);
}

.doc-body h2 {
  margin: 1.6em 0 0.55em;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.35;
  max-width: 36rem;
}

.doc-body p {
  margin: 0 0 0.9em;
  max-width: 62ch;
}

.doc-body .doc-lede {
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-ink-2);
}

.doc-body ol,
.doc-body ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  max-width: 62ch;
}

.doc-body li {
  margin: 0.28em 0;
}

.doc-body a {
  text-underline-offset: 0.15em;
}

.doc-body .step-pair {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
  max-width: none;
}

.doc-body .step-copy p,
.doc-body .step-copy ol,
.doc-body .step-copy ul {
  max-width: none;
}

.doc-body .step-copy > :last-child {
  margin-bottom: 0;
}

.doc-body figure.step-shot,
.doc-body figure.step-wide,
.doc-body figure.step-icon {
  position: relative;
  margin: 0.7em 0 1.2em;
  padding: 0;
}

.doc-body .step-pair figure {
  margin: 0;
}

.doc-body figure.step-icon {
  max-width: 7.5rem;
}

.doc-body figure.step-shot {
  max-width: 22rem;
}

.doc-body figure.step-wide {
  max-width: 46rem;
}

.doc-body figure picture {
  display: block;
}

.doc-body figure.step-shot img,
.doc-body figure.step-wide img,
.doc-body figure.step-icon img,
.doc-body figure.step-shot picture img,
.doc-body figure.step-wide picture img,
.doc-body figure.step-icon picture img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  background: var(--color-paper-3);
  transition: transform var(--dur-micro) var(--ease-out);
}

.doc-body figure[data-zoom] {
  cursor: zoom-in;
}

.doc-body figure[data-zoom]:hover img,
.doc-body figure[data-zoom]:hover picture img {
  transform: translateY(-2px);
}

.doc-body figure[data-pin]::after {
  content: attr(data-pin);
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  z-index: var(--z-base);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--color-mast);
  color: var(--color-mast-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.doc-body figure.step-shot figcaption {
  position: static;
  margin-top: 0.45em;
  max-width: none;
  color: var(--color-muted);
}

.doc-body figcaption {
  margin-top: 0.45em;
  max-width: 62ch;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.doc-body .symptom-list,
.doc-body .try-list,
.doc-body .carrier-list {
  list-style: none;
  padding: 0;
  max-width: 42rem;
}

.doc-body .symptom-list {
  counter-reset: sy;
}

.doc-body .symptom-list li {
  counter-increment: sy;
  position: relative;
  margin: 0 0 var(--space-sm);
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 2.55rem;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
}

.doc-body .symptom-list li::before {
  content: counter(sy);
  position: absolute;
  left: 0.7rem;
  top: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-mast);
  color: var(--color-mast-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
}

.doc-body .try-list {
  counter-reset: try;
}

.doc-body .try-list li {
  counter-increment: try;
  position: relative;
  margin: 0 0 var(--space-sm);
  padding: 0.15rem 0 0.15rem 2.1rem;
}

.doc-body .try-list li::before {
  content: counter(try);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-play);
  color: var(--color-play-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
}

.doc-body .carrier-list li {
  margin: 0 0 var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
  border-radius: var(--radius-sm);
}

.doc-body .callout {
  margin: 0 0 1.2em;
  max-width: 42rem;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-rule);
  background: var(--color-paper-3);
  border-radius: var(--radius-sm);
}

.doc-body .callout p {
  margin: 0;
  max-width: none;
  color: var(--color-ink);
}

.doc-body .faq-block {
  max-width: 42rem;
  margin-top: var(--space-md);
}

.doc-body .faq-block .help-body p {
  margin: 0;
  max-width: none;
}

.doc-body .doc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  max-width: none;
  margin-top: var(--space-lg);
}

.shot-zoom {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + var(--space-md)) var(--space-lg) var(--space-lg);
  background: color-mix(in oklch, var(--color-mast) 94%, transparent);
  cursor: zoom-out;
}

.shot-zoom img {
  max-width: min(64rem, 96vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.shot-zoom-close {
  position: absolute;
  top: calc(var(--header-h) + var(--space-xs));
  right: var(--space-md);
  min-height: 2.5rem;
  padding: 0 var(--space-md);
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 800px) {
  .doc-body .step-pair {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
    align-items: start;
    column-gap: var(--space-lg);
  }

  .doc-body .step-pair-flip {
    grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  }

  .doc-body .step-pair-flip .step-copy {
    order: 2;
  }

  .doc-body .step-pair-icon {
    grid-template-columns: minmax(0, 1fr) 7.5rem;
  }

  .doc-body .step-pair .step-shot {
    position: sticky;
    top: calc(var(--header-h) + var(--space-md));
  }

  .doc-body figure.step-shot {
    max-width: 18rem;
  }
}

.mast-line {
  margin: 0 0 var(--space-xs);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.doc-body,
.page-doc {
  color: var(--color-ink);
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
}

.index-list li a {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-rule);
  text-decoration: none;
  color: inherit;
}

.index-date {
  color: var(--color-muted);
  min-width: 6.5rem;
}

#sbo-footer {
  background: var(--color-footer);
  color: var(--color-footer-ink);
  margin-top: var(--space-3xl);
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
}

.sbo-footer-top {
  max-width: var(--shell-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.sbo-footer-logo {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-mast-ink);
}

.sbo-footer-logo span {
  color: var(--color-brand);
}

.sbo-footer-brand p,
.sbo-footer-col a {
  color: var(--color-footer-ink);
  text-decoration: none;
  font-size: var(--text-sm);
}

.sbo-footer-col h2 {
  margin: 0 0 var(--space-sm);
  color: var(--color-mast-ink);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
}

.sbo-footer-col a,
.sbo-footer-brand p {
  display: block;
  margin: 0 0 var(--space-xs);
}

.sbo-footer-col a:hover {
  color: var(--color-mast-ink);
}

.sbo-line-link {
  color: var(--color-play) !important;
  font-weight: 700;
}

.sbo-footer-bottom {
  max-width: var(--shell-wide);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid oklch(30% 0.03 250 / 0.6);
  font-size: var(--text-xs);
}

.sbo-footer-bottom p {
  margin: 0 0 var(--space-2xs);
}

.sbo-disclaimer {
  color: oklch(48% 0.02 250);
}

.mobile-sticky-bar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
  grid-template-columns: 1fr 1fr;
}

.sticky-play,
.sticky-reg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3.25rem;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.sticky-play {
  background: var(--color-mast);
  color: var(--color-mast-ink);
}

.sticky-reg {
  background: var(--color-register);
  color: var(--color-register-ink);
}

.admin-bar #sbo-header {
  top: 32px;
}

@media (max-width: 900px) {
  .sbo-nav {
    display: none;
  }

  .sbo-hamburger {
    display: flex;
  }

  .sbo-mobile-nav {
    display: block;
  }

  .sbo-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .mobile-sticky-bar {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }

  body.sbo-body {
    padding-bottom: calc(3.25rem + env(safe-area-inset-bottom));
  }

  .post-card-lead,
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .sbo-footer-top {
    grid-template-columns: 1fr;
  }

  .fold-photo img {
    aspect-ratio: 16 / 9;
  }

  .board-row .btn-play {
    padding-inline: var(--space-sm);
  }
}

@media (max-width: 782px) {
  .admin-bar #sbo-header {
    top: 46px;
  }

  .admin-bar .sbo-mobile-nav {
    top: calc(var(--header-h) + 46px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn-play:hover,
  .btn-reg:hover,
  .board-row:hover .btn-play,
  .doc-body figure[data-zoom]:hover img,
  .doc-body figure[data-zoom]:hover picture img {
    transform: none;
  }
}
