html {
  overflow-x: clip;
}

body {
  padding-top: 104px;
  overflow-x: clip;
}
.navbar {
  height: 80px;
  overflow: visible;
  padding-top: 0;
  padding-bottom: 0;
  top: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: clamp(1400px, calc(100vw - 6rem), 1720px);
  border-radius: 20px;
  transition: transform 0.3s ease;
}
.navbar .container-fluid { padding-left: 150px; }
.navbar-brand {
  position: absolute;
  top: clamp(-57px, calc(-0.212 * (100vw - 872px) - 1px), -30px);
  left: 24px;
  font-size: 1.7rem;
  padding-top: 0;
  padding-bottom: 0;
  transition: top 0.3s ease;
}

.navbar-brand img {
  width: clamp(120px, calc(100vw - 872px), 250px);
  height: clamp(120px, calc(100vw - 872px), 250px);
  transition: width 0.3s ease, height 0.3s ease;
}

body.navbar-scrolled .navbar-brand {
  top: 0px;
}

body.navbar-scrolled .navbar-brand img {
  width: 70px;
  height: 70px;
}

body.navbar-hidden .navbar {
  transform: translate(-50%, -150%);
}

.footer .hover-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1020;

  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  border: 2px solid #075a3e;
  border-radius: 50%;
  background: #fffdf7;
  color: #075a3e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
              background-color 0.2s ease, color 0.2s ease;
}

body.show-back-to-top .back-to-top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #075a3e;
  color: #fffdf7;
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 2px;
}

.back-to-top:active { transform: translateY(0) scale(0.94); }

@media (max-width: 991.98px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  footer.footer { padding-bottom: 88px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease, visibility 0.2s ease; }
  .back-to-top:hover,
  .back-to-top:focus-visible,
  .back-to-top:active { transform: none; }
}

@media (max-width: 991.98px) {
  .navbar .container-fluid { padding-left: 12px; padding-right: 12px; }
  .navbar-brand { position: static; top: auto; left: auto; }
  .navbar-brand img,
  body.navbar-scrolled .navbar-brand img { width: 72px; height: 72px; }

  .navbar-toggler { position: relative; z-index: 5; margin-left: auto; }

  .navbar-collapse {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #60c028;
    padding: 4px 16px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}
@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-extralight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa";
  src: url("https://static.igem.wiki/teams/6379/wiki/fonts/changa/changa-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root { --bs-body-font-family: "Changa", "Noto Sans TC", sans-serif; }

body {
  font-family: "Changa", "Noto Sans TC", sans-serif;
  font-weight: 400;
}

h1, .h1 { font-weight: 800; }
h2, .h2,
h3, .h3 { font-weight: 700; }
h4, .h4,
h5, .h5,
h6, .h6 { font-weight: 600; }

.lead { font-weight: 300; }

th { font-weight: 600; }
strong, b { font-weight: 700; }

.navbar-nav .nav-link { font-family: "Changa", sans-serif; font-size: 1.3rem; color: #05442e; transition: color 0.15s ease; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus { color: #fff6b7; }

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2305442e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-dark .navbar-toggler { border-color: rgba(5, 68, 46, 0.4); }
.dropdown-item { font-family: "Changa", sans-serif; font-weight: 400; transition: background-color 0.15s ease, color 0.15s ease; }

@media (min-width: 992px) {
  .navbar .dropdown-menu {
    display: block;
    margin-top: 8px;
    visibility: hidden;
    pointer-events: none;
  }
  .navbar .dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
  }
  .navbar .dropdown:hover .dropdown-menu {
    visibility: visible;
    pointer-events: auto;
  }
}

.navbar .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(5, 68, 46, 0.1);
}

.dropdown-item {
  background-color: transparent;
  color: #05442e;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(255, 246, 183, 0.8);
  color: #05442e;
}
.navbar.bg-dark {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(5, 68, 46, 0.1);
}
footer.bg-dark { background-color: #075a3e !important; }
html[data-theme="dark"] footer.bg-dark { background-color: #071820 !important; }
footer.footer {
  --footer-fade: 4rem;
  margin-top: 1rem !important;
  padding-top: calc(3rem + var(--footer-fade)) !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--footer-fade));
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--footer-fade));
}

.footer .text-white-50 { color: rgba(255, 255, 255, 0.75) !important; }
.bg-hero {
  background-color: #fff6b7;
  margin-top: -104px;
  padding-top: calc(3rem + 104px) !important;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: -6px;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.03);
}

.page-hero-bg.is-fit-height {
  background-image: var(--hero-img),
    linear-gradient(90deg, var(--hero-fill-from, #333), var(--hero-fill-to, #222));
  background-size: auto var(--hero-zoom, 100%), cover;
  background-repeat: no-repeat;
}

.page-hero-bg.hero-hardware { --hero-fill-from: #5b5855; --hero-fill-to: #21201d; --hero-zoom: 125%; }

body.hw-nexus .page-hero-bg.hero-hardware { filter: blur(2px) saturate(1) brightness(0.8); }

body.hw-nexus .page-hero-bg.hero-software { filter: blur(2px) saturate(1) brightness(0.75); }
.page-hero-bg.hero-software {
  background-image: var(--hero-img), linear-gradient(#edf5f6, #f2f6f7);
  background-size: calc(100% - 12px) auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  transform: none;
}

html[data-theme="dark"] .page-hero-bg.hero-labbook,
html[data-theme="dark"] .page-hero-bg.hero-description,
html[data-theme="dark"] .page-hero-bg.hero-parts,
html[data-theme="dark"] body.edu-nexus .page-hero-bg,
html[data-theme="dark"] body.bg-nexus .page-hero-bg {
  filter: blur(2px) brightness(0.7) saturate(0.8);
}

.page-hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.99));
}

.page-hero .container { position: relative; z-index: 1; }

footer { font-family: "Changa", sans-serif; }
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

.sponsor-logo {
  height: 72px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

.sponsor-marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sponsor-marquee-rail {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: sponsorMarquee 32s linear infinite;
}

.sponsor-marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  padding: 0 1.25rem;
}

@keyframes sponsorMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-marquee-rail { animation: none; }
  .sponsor-marquee { overflow-x: auto; }
}

.hover-icon {
  transition: transform 0.2s ease-in-out, color 0.2s;
}

.hover-icon:hover {
  color: #1abc9c !important;
  transform: scale(1.1);
}

.footer-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}
.footer-mark {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-mark img {
  display: block;
  width: auto;
  height: 69px;
}
@media (min-width: 1200px) { .footer-mark img { height: 84px; } }
@media (min-width: 1400px) { .footer-mark img { height: 100px; } }
.footer a.footer-mark:hover,
.footer a.footer-mark:focus-visible { transform: translateY(-2px); opacity: 0.85; text-decoration: none; }
.footer-mark:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 991.98px) {
  .footer-marks { justify-content: center; }
  .footer-mark img { height: 80px; }
}

@media (min-width: 992px) {
  .footer-main { min-height: 156px; }
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.2rem;
  font-size: 2.4rem;
}
.footer .footer-social .hover-icon { min-width: 56px; min-height: 56px; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .footer-social { gap: 0.5rem; }
  .footer .footer-social .hover-icon { min-width: 48px; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-mark { transition: none; }
  .footer a.footer-mark:hover,
  .footer a.footer-mark:focus-visible { transform: none; }
}

.hero-title {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  color: #fff6b7;
  font-size: clamp(1.9175rem, 1.9175rem + 3.51vw, 4.55rem);
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-sub {
  color: #6cd82e;
}

.home-slogan {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: #eafff0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.home-slogan-accent {
  color: #6cd82e;
}

.notebook {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: clip;
}

.notebook-drift {
  position: absolute;
  inset: -80px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.drift-item {
  position: absolute;
  width: 90px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 16px rgba(20,60,100,0.2));
}

.drift-1 { top: 4%; left: 6%; width: 110px; animation: drift-a 26s ease-in-out infinite; }
.drift-2 { top: 55%; left: 2%; width: 70px; animation: drift-b 22s ease-in-out infinite; }
.drift-3 { top: 8%; right: 8%; width: 85px; animation: drift-c 30s ease-in-out infinite; }
.drift-4 { bottom: 6%; right: 4%; width: 100px; animation: drift-a 24s ease-in-out infinite reverse; }
.drift-5 { bottom: 12%; left: 40%; width: 65px; animation: drift-b 28s ease-in-out infinite reverse; }

@keyframes drift-a {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  50%  { transform: translate(30px, -24px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}

@keyframes drift-b {
  0%   { transform: translate(0, 0) rotate(3deg); }
  50%  { transform: translate(-24px, 20px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(3deg); }
}

@keyframes drift-c {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-18px, 28px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .drift-item { animation: none; }
}

.notebook-radio { display: none; }

.notebook-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  z-index: 5;
}

.notebook-tab {
  display: block;
  position: relative;
  top: 6px;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #1c3a52;
  text-align: center;
  padding: 0.65rem 1.3rem;
  cursor: pointer;
  opacity: 0.6;
  border-radius: 14px 14px 0 0;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.55);
  border-bottom: none;
  border-top: 3px solid var(--tab-accent, #7fb8e0);
  transition: opacity 0.2s ease, top 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tab-leader { --tab-accent: #14b391; }
.tab-wet { --tab-accent: #14b391; }
.tab-dry { --tab-accent: #14b391; }
.tab-hp  { --tab-accent: #14b391; }
.tab-professor { --tab-accent: #14b391; }
.tab-advisor { --tab-accent: #14b391; }

#page-leader:checked    ~ .notebook-tabs .tab-leader,
#page-wet:checked       ~ .notebook-tabs .tab-wet,
#page-dry:checked       ~ .notebook-tabs .tab-dry,
#page-hp:checked        ~ .notebook-tabs .tab-hp,
#page-professor:checked ~ .notebook-tabs .tab-professor,
#page-advisor:checked   ~ .notebook-tabs .tab-advisor {
  opacity: 1;
  top: 0;
  background: rgba(255,255,255,0.88);
  z-index: 6;
}

.notebook-book { margin-top: 0; border-top-left-radius: 4px; }

@media (max-width: 575.98px) {
  .notebook-tabs { justify-content: center; }
  .notebook-tab {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
  }
}

.notebook-book {
  position: relative;
  display: grid;
  perspective: 1400px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(20,60,100,0.2);
  padding: 3rem 2.5rem 2.5rem;
  min-height: 720px;
}

.notebook-page {
  grid-area: 1 / 1 / 2 / 2;
  position: relative;
  opacity: 0;
  transform: rotateY(-25deg) translateX(-12px);
  transform-origin: left center;
  visibility: hidden;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
  pointer-events: none;
}

#page-leader:checked    ~ .notebook-book #content-leader,
#page-wet:checked       ~ .notebook-book #content-wet,
#page-dry:checked       ~ .notebook-book #content-dry,
#page-hp:checked        ~ .notebook-book #content-hp,
#page-professor:checked ~ .notebook-book #content-professor,
#page-advisor:checked   ~ .notebook-book #content-advisor {
  opacity: 1;
  transform: rotateY(0deg) translateX(0);
  visibility: visible;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
  pointer-events: auto;
}

.page-tag {
  position: relative;
  display: inline-block;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: #1c3a52;
  padding: 0.2rem 1.1rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.7);
  border-left: 4px solid var(--tag-accent, #7fb8e0);
  box-shadow: 0 6px 14px rgba(20,60,100,0.12);
}

.tag-leader { --tag-accent: #14b391; }
.tag-wet { --tag-accent: #14b391; }
.tag-dry { --tag-accent: #14b391; }
.tag-hp  { --tag-accent: #14b391; }
.tag-professor { --tag-accent: #14b391; }
.tag-advisor { --tag-accent: #14b391; }

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.team-grid + .team-grid {
  margin-top: 2rem;
}

.polaroid {
  position: relative;
  width: 180px;
  background: linear-gradient(180deg, #ffffff, #eaf6ff);
  padding: 12px 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(20,60,100,0.18);
  opacity: 0.85;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.polaroid::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 50%;
  height: 160%;
  background: linear-gradient(115deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%);
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 3;
}

.polaroid:hover {
  transform: translateY(-4px);
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 24px rgba(20,60,100,0.3);
  z-index: 10;
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }

.polaroid-caption {
  text-align: center;
  margin-top: 12px;
  font-family: "Changa", sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: #333;
}

.polaroid-role {
  text-align: center;
  margin-top: 2px;
  font-family: "Changa", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.polaroid-photo.hw-flip { position: relative; }
.polaroid-photo > .hw-flip-card { position: absolute; inset: 0; }
.polaroid-photo.hw-flip .hw-flip-front,
.polaroid-photo.hw-flip .hw-flip-back { position: absolute; inset: 0; }
.polaroid-photo .hw-flip-front,
.polaroid-photo .hw-flip-back { background: #ddd; }
.polaroid-photo .hw-flip-back img { width: 100%; height: 100%; object-fit: cover; }

.polaroid-photo.is-single { position: relative; }
.polaroid-photo.is-single > img { position: absolute; inset: 0; }

.polaroid .polaroid-photo .hw-flip-front::before,
.polaroid .polaroid-photo .hw-flip-front::after { content: none; }

.polaroid-has-bio:focus { outline: none; }
.polaroid-has-bio:focus-visible {
  outline: 3px solid #075a3e;
  outline-offset: 3px;
}

.team-bio-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 15, 10, 0.75);
  z-index: 1080;
  padding: 1.5rem;
}

.team-bio-overlay.is-open { display: flex; }

body.team-bio-locked { overflow: hidden; }

.team-bio-card {
  position: relative;
  width: 100%;
  max-width: max(500px, 66.6667vw);
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff, #eaf6ff);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
}

.team-bio-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(7, 90, 62, 0.1);
  color: #075a3e;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.15s ease;
}
.team-bio-close:hover { background: rgba(7, 90, 62, 0.2); }

.team-bio-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 1.1rem;
}
.team-bio-photo .polaroid-photo { width: 100%; height: 100%; }
.team-bio-card .team-bio-photo .hw-flip-front::before,
.team-bio-card .team-bio-photo .hw-flip-front::after { content: none; }

.team-bio-name {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #1f4a38;
  margin-bottom: 0.75rem;
}

.team-bio-paragraphs p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4a3f35;
  margin-bottom: 0.9rem;
}
.team-bio-paragraphs p:last-child { margin-bottom: 0; }

@media (min-width: 1200px) {
  .team-bio-card {
    display: grid;
    grid-template-columns: minmax(200px, 300px) 1fr;
    gap: 1.75rem;
    align-items: start;
    padding: 2rem;
  }

  .team-bio-photo {
    max-width: none;
    margin: 0;
  }

  .team-bio-name { padding-right: 2.75rem; }

  .team-bio-paragraphs p { max-width: 68ch; }
}

@media (max-width: 480px) {
  .team-bio-card { padding: 1.1rem; max-height: 90vh; }
  .team-bio-name { font-size: 1.35rem; }
}

   @media (min-width: 992px) {
    .custom-nav-width {
      width: clamp(112px, calc(112px + (100vw - 992px) * 0.15), 200px);
      position: relative;
    }
  
    .custom-nav-width .dropdown-menu {
      min-width: 100%;
      width: max-content;
      max-width: min(22rem, 92vw);
    }
  
    .custom-nav-width .dropdown-item {
      white-space: normal !important;
      word-wrap: break-word;
      text-align: center;
    }
  }

  @media (min-width: 992px) {
    .custom-nav-short {
      width: clamp(84px, calc(84px + (100vw - 992px) * 0.125), 155px);
      position: relative;
    }
  }

.webcam-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 3rem auto 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 16px 32px rgba(20,60,100,0.15);
  padding: 0 0 0 1.5rem;
  flex-wrap: wrap;
}

.webcam-booth {
  flex: 1 1 500px;
  max-width: 850px;
  border-top-right-radius: 13px;
  border-bottom-right-radius: 13px;
  overflow: hidden;
}

.webcam-booth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1c3a52;
}

.webcam-booth-title {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.webcam-booth-close {
  background: none;
  border: none;
  color: #1c3a52;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

.webcam-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
}

.webcam-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: none;
}

.webcam-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.webcam-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ccc;
  font-family: "Changa", sans-serif;
  text-align: center;
  padding: 1rem;
}

.webcam-placeholder span { font-size: 3rem; }

.webcam-flash {
  position: relative;
}

.webcam-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0.8;
  animation: webcamFlash 0.2s ease;
  pointer-events: none;
}

@keyframes webcamFlash {
  from { opacity: 0.8; }
  to { opacity: 0; }
}

.webcam-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 1rem 3rem 1rem 1.25rem;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.webcam-filters {
  flex: 1 1 240px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-content: space-evenly;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
}

.webcam-filter-btn {
  min-width: 0;
  min-height: 34px;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #1c3a52;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20,60,100,0.15);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.webcam-filter-btn:hover { transform: scale(1.1); }

.webcam-filter-btn.active {
  background: rgba(255,255,255,0.8);
  color: #1c3a52;
  border-color: #2f9fe0;
  box-shadow: inset 0 0 0 1px #2f9fe0, 0 2px 6px rgba(20,60,100,0.15);
  box-shadow: 0 0 0 3px rgba(47,159,224,0.3), 0 2px 6px rgba(20,60,100,0.2);
}

.webcam-shutter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.8);
  background: rgba(47,159,224,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(20,60,100,0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.webcam-shutter:hover { transform: translateX(-50%) scale(1.08); }

.webcam-shutter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateX(-50%);
}

.webcam-start,
.webcam-flip {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  color: #1c3a52;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,60,100,0.12);
  transition: background 0.15s ease;
}

.webcam-start:hover,
.webcam-flip:hover { background: rgba(255,255,255,0.75); }
.webcam-flip { margin-right: auto; }
.webcam-flip[hidden] { display: none; }
.webcam-video.is-rear { transform: none; }

.webcam-review {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #1a1a1a;
  z-index: 2;
}

.webcam-review-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.webcam-review-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 0.75rem 0.75rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.6));
}

.webcam-review-hint {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.webcam-review-btn {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  color: #1c3a52;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20,60,100,0.12);
  transition: background 0.15s ease;
}

.webcam-review-btn:hover { background: rgba(255,255,255,0.75); }

.webcam-save,
.webcam-download {
  background: #2f9fe0;
  border-color: #2f9fe0;
  color: #fff;
}

.webcam-save:hover,
.webcam-download:hover { background: #2589c4; }

.webcam-save:not([hidden]) ~ .webcam-download {
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.8);
  color: #1c3a52;
}

@media (max-width: 575.98px) {
  .webcam-layout {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    margin-top: 2rem;
    overflow: hidden;
  }

  .webcam-booth {
    flex: none;
    max-width: none;
    border-radius: 0;
  }

  .webcam-stage { aspect-ratio: 4 / 3; }

  .webcam-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .webcam-shutter,
  .webcam-shutter:hover,
  .webcam-shutter:disabled {
    position: static;
    transform: none;
    grid-column: 2;
  }

  .webcam-flip {
    grid-column: 1;
    justify-self: start;
    margin-right: 0;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
  }

  .webcam-start {
    grid-column: 3;
    justify-self: end;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
  }

  .webcam-filters {
    order: 1;
    flex: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.75rem;
  }

  .webcam-filter-btn {
    min-height: 40px;
    padding: 0.3rem 0.25rem;
  }

  .webcam-review-btn { padding: 0.4rem 0.75rem; }

  .webcam-filter-btn:hover { transform: none; }
}

.edu-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 3rem 0;
}

.edu-stat-tile {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  padding: 0.5rem 1.25rem;
}

.edu-stat-number {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #075a3e;
  line-height: 1;
}

.edu-stat-label {
  font-family: "Changa", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: #4a3f35;
  margin-top: 0.5rem;
}

.edu-map-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

.edu-map-row.is-orbit { padding: 0 280px; }
.edu-map-row.is-orbit-compact { padding: 0 190px; }
.edu-map-row.is-orbit-compact .edu-map-viewport { max-width: 380px; }
.edu-map-row.is-strip .edu-map-viewport { max-width: min(100%, 360px); }

.edu-map-orbit {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 6;
  contain: size layout;
}

.edu-map-orbit-item {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 130px;
  padding: 0.25rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #2b1e17;
  font-family: "Changa", sans-serif;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 4px 10px rgba(20, 60, 40, 0.14);
  opacity: 0.8;
  pointer-events: auto;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  z-index: 1;
  will-change: transform;
  transition: width 0.8s ease, border-radius 0.8s ease, padding 0.8s ease,
              opacity 0.4s ease, box-shadow 0.4s ease;
}

.edu-map-orbit-item .edu-map-info-photo {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  transition: width 0.8s ease, height 0.8s ease, border-radius 0.8s ease;
}

.edu-map-orbit-item .edu-map-info-body { min-width: 0; }
.edu-map-orbit-item .edu-map-info-title {
  display: block;
  font-weight: 700;
  color: #2b1e17;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.edu-map-orbit-item .edu-map-info-meta { display: none; }

.edu-map-orbit-item.is-active {
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  width: 260px;
  padding: 0.7rem;
  border-radius: 16px;
  opacity: 1;
  z-index: 7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(20, 60, 40, 0.22);
}

.edu-map-orbit-item.is-active .edu-map-info-photo {
  width: 100%;
  height: 140px;
  border-radius: 10px;
}

.edu-map-orbit-item.is-active .edu-map-info-meta {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.72rem;
  color: #5a5147;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edu-map-leaders {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.edu-map-leader-line {
  --leader: #075a3e;
  position: absolute;
  left: 0;
  top: 0;
  width: 1400px;
  clip-path: inset(0 100% 0 0);
  height: 1.25px;
  margin-top: -0.625px;
  transform-origin: 0 50%;
  background: repeating-linear-gradient(90deg, var(--leader) 0 3px, transparent 3px 6px);
  opacity: 0.7;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.edu-map-row.is-orbit .edu-map-orbit,
.edu-map-row.is-orbit-compact .edu-map-orbit,
.edu-map-row.is-orbit .edu-map-leaders,
.edu-map-row.is-orbit-compact .edu-map-leaders { display: block; }

.edu-map-row.is-orbit-compact .edu-map-orbit-item { width: 110px; }
.edu-map-row.is-orbit-compact .edu-map-orbit-item.is-active { width: 190px; padding: 0.55rem; }
.edu-map-row.is-orbit-compact .edu-map-orbit-item.is-active .edu-map-info-photo { height: 105px; }

.edu-map-strip {
  display: none;
  gap: 0.75rem;
  margin: -2.5rem 0 -0.75rem;
  padding: 2.75rem 0.25rem 2.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.edu-map-row.is-strip + .edu-map-strip { display: flex; }
.edu-map-strip.is-marquee { scrollbar-width: none; }
.edu-map-strip.is-marquee::-webkit-scrollbar { display: none; }

.edu-strip-item {
  flex: 0 0 auto;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #2b1e17;
  text-decoration: none;
  scroll-snap-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.edu-strip-photo {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 0.3rem;
}
.edu-strip-title {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
}
.edu-strip-meta {
  font-size: 0.72rem;
  color: #5a5147;
}
.edu-strip-item.is-selected {
  border-color: #14b391;
  box-shadow: 0 0 0 2px #14b391, 0 8px 18px rgba(20, 60, 40, 0.22);
}

.edu-pin.is-selected {
  transform: translate(-50%, -50%) scale(1.7);
  background: #ff7a00;
  border-color: #6cd82e;
  box-shadow: 0 0 0 3px rgba(108, 216, 46, 0.45);
  z-index: 4;
}
.edu-map-row.is-strip .edu-pin::before {
  content: "";
  position: absolute;
  inset: -9px;
}

@media (prefers-reduced-motion: reduce) {
  .edu-map-orbit-item { transition: none; }
}

.edu-map-viewport {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 460 / 640;
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
  contain: paint;
}

.edu-map {
  position: relative;
  width: 100%;
  height: 100%;
}

.edu-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.edu-map-county {
  stroke: rgba(7, 90, 62, 0.35);
  stroke-width: 0.8;
  transition: fill 0.15s ease, opacity 0.15s ease;
}

.edu-map-county.edu-map-county-active {
  opacity: 0.75;
}

.edu-map-county-interactive {
  stroke: #075a3e;
  stroke-width: 1.5;
}

.desc { max-width: 52rem; }
.desc section { margin-bottom: 3rem; }
.desc h2 {
  font-family: "Changa", sans-serif;
  color: var(--c-ink-2);
  margin-bottom: 1rem;
}
.desc p { line-height: 1.8; color: var(--c-text); }
/* A citation numeral that links down to the reference list stays the colour
   of the sentence it sits in, on every page -- Description, Engineering,
   Model, Results, Safety, Software, Home. Without this the anchor takes the
   link colour and the numerals go lime, which is the convention the team
   dropped. Underline only on hover, so the mark still reads as text. */
sup a[href^="#"] { color: inherit; text-decoration: none; }
sup a[href^="#"]:hover,
sup a[href^="#"]:focus-visible { text-decoration: underline; }

.desc sup { color: inherit; font-weight: 700; font-size: 0.72em; }
.desc sup a { color: inherit; text-decoration: none; }
.desc sup a:hover,
.desc sup a:focus-visible { text-decoration: underline; }

.desc-lead p {
  font-size: 1.12rem;
  line-height: 1.85;
}
.desc-lead p:first-child { color: var(--c-text); }

.desc-lead p:first-child > em:first-child {
  font-size: 1.45em;
  letter-spacing: -0.01em;
}
.desc-lead {
  border-left: 4px solid #075a3e;
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

.desc-diagram { margin: 1.6rem auto 1.4rem; max-width: 560px; }
.desc-diagram img { display: block; width: 100%; height: auto; }
.desc-diagram figcaption {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--c-text-3);
}

.desc-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 1.75rem 0 1rem;
  padding: 0;
}
.desc-stats > li:first-child { grid-column: 1 / -1; }
.desc-stats > li {
  padding-left: 0.9rem;
  border-left: 3px solid color-mix(in srgb, var(--c-teal-deep) 55%, transparent);
}
.desc .desc-stat-v {
  font-family: "Changa", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-ink-2);
  margin: 0 0 0.3rem;
}
.desc .desc-stat-l {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-text-2);
  margin: 0;
}
.desc .desc-stat-src {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-text-3);
  margin: 0 0 1.4rem;
}
@media (max-width: 767.98px) {
  .desc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .desc .desc-stat-v { font-size: 1.7rem; }
}

.desc-chain {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.75rem;
  margin: 2rem 0 2.25rem;
  padding: 0;
}
.desc-chain-step { position: relative; }
.desc-chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: -1.7rem;
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid var(--c-teal-deep);
  border-right: 2px solid var(--c-teal-deep);
  transform: rotate(45deg);
  opacity: 0.75;
}
.desc-chain-icon {
  display: block;
  width: 3.1rem;
  height: 3.1rem;
  fill: none;
  stroke: var(--c-teal-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.desc .desc-chain-head {
  font-family: "Changa", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink-2);
  margin: 0.85rem 0 0.4rem;
}
.desc .desc-chain-say {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--c-text-2);
  margin: 0;
}
@media (max-width: 767.98px) {
  .desc-chain { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .desc-chain-step:not(:last-child)::after {
    top: auto;
    bottom: -1.65rem;
    right: auto;
    left: 1.2rem;
    transform: rotate(135deg);
  }
}

.desc-figure { margin: 1.75rem 0; }

.desc-figure:has(> .desc-table) { overflow-x: auto; max-width: 100%; }

.desc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.desc-table caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--c-text-3);
  text-align: left;
  line-height: 1.6;
}

.desc-table th,
.desc-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #dfe8e2;
  text-align: left;
}

.desc-table thead th {
  font-family: "Changa", sans-serif;
  color: var(--c-ink-2);
  border-bottom: 2px solid #075a3e;
}

.desc-table a { word-break: break-word; }

.desc-table .is-highlight {
  background: #ecffb5;
  font-weight: 700;
}

.desc-routes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.desc-route {
  position: relative;
  border: 2px solid #cfdcd5;
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.3rem;
  background: #fffdf7;
}

.desc-route[data-route="a"] { border-color: #a2efaa; background: #f6fff8; }
.desc-route[data-route="b"] { border-color: #b4fadf; background: #f4fffb; }

.desc-route-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.2rem;
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fffdf7;
  background: #075a3e;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.desc-route h3 {
  font-family: "Changa", sans-serif;
  font-size: 1.1rem;
  color: var(--c-ink-2);
  margin: 0.35rem 0 0.75rem;
}

.desc-route p,
.desc-route li { font-size: 0.93rem; line-height: 1.7; }
.desc-route li { margin-bottom: 0.35rem; }

.desc-route-note {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--c-line-2);
  font-size: 0.86rem;
  color: var(--c-text-3);
}

.desc-refs ol { padding-left: 1.4rem; }
.desc-refs li {
  margin-bottom: 0.85rem;
  line-height: 1.65;
  font-size: 0.92rem;
  color: var(--c-text-2);
}
.desc-refs a { word-break: break-word; }

.desc a,
.attr-ai a,
.labbook .protocol-body a { color: #0a58ca; }

html[data-theme="dark"] .desc a,
html[data-theme="dark"] .attr-ai a,
html[data-theme="dark"] .labbook .protocol-body a { color: var(--c-teal); }

.hw.eng > .eng-refs { grid-column: 2; margin-top: 4rem; }
body.hw-nexus .hw .eng-refs h2 { margin: 0 0 1.25rem; font-size: 1.6rem; }
.eng-refs li { color: var(--nx-muted, #93a7ad); }
.eng-refs a { color: var(--c-teal, #49c5b6); }

@media (max-width: 575.98px) {
  .desc-lead { padding-left: 1rem; }
  .desc-table { font-size: 0.86rem; }
  .desc-table th, .desc-table td { padding: 0.5rem 0.4rem; }
}

.eng-cycle { margin: 0; }
.eng-cycle svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.eng-cycle-tail-design { stop-color: #6fb83a; }
.eng-cycle-head-design { stop-color: #a0e860; }
.eng-cycle-tail-build  { stop-color: #23955e; }
.eng-cycle-head-build  { stop-color: #4fd48f; }
.eng-cycle-tail-test   { stop-color: #23928a; }
.eng-cycle-head-test   { stop-color: #49c5b6; }
.eng-cycle-tail-learn  { stop-color: #1f6f9c; }
.eng-cycle-head-learn  { stop-color: #5bb6e6; }
.eng-cycle-arrow { stroke-width: 6; stroke-linejoin: round; }
.eng-cycle-track {
  fill: none;
  stroke: color-mix(in srgb, var(--part) 35%, transparent);
  stroke-width: 1.2;
  stroke-dasharray: 1.5 7;
  stroke-linecap: round;
}
.eng-cycle-core { stroke: color-mix(in srgb, var(--part) 30%, transparent); stroke-width: 1; }
/* The disc under the centre comes up with the ring. engineering-cycle.js sets
   --lit from how far the reader has moved through this round's stages, the same
   progress that fills the arrows, eased so the disc is most of the way lit by
   the middle of the round rather than only at its end. The centre lettering is
   left alone: it has to stay legible from the first line. Without the script
   --lit stays 1 and the disc is simply lit, the way the arrows are. */
.eng-cycle { --lit: 1; }
.eng-cycle-core { filter: brightness(calc(0.82 + 0.73 * var(--lit))); }
.eng-cycle-core-in  { stop-color: color-mix(in srgb, var(--part) 14%, #1c4352); stop-opacity: 0.9; }
.eng-cycle-core-out { stop-color: color-mix(in srgb, var(--part) 8%, #16323f); stop-opacity: 0.6; }
.eng-cycle-label {
  font-family: "Changa", sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.03em;
  fill: #0e242e;
}
.eng-cycle-centre {
  font-family: "Changa", sans-serif;
  font-size: 30px;
  font-weight: 700;
  fill: #f2f8fa;
}
.eng-cycle-kicker {
  font-family: "Changa", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.32em;
  fill: #49c5b6;
}
.eng-cycle-round {
  font-family: "Changa", sans-serif;
  font-size: 76px;
  font-weight: 700;
  fill: #a0e860;
  filter: drop-shadow(0 0 10px rgba(160, 232, 96, 0.35));
}
.eng-cycle-centre.has-round {
  font-size: 24px;
  fill: #cfe3ea;
}
.eng-cycle-label { pointer-events: none; }
.eng-cycle-arrow-skipped { opacity: 0.25; pointer-events: none; }
.eng-cycle-label-skipped { opacity: 0.4; }
.eng-cycle-lit { filter: drop-shadow(0 0 12px rgba(160, 232, 96, 0.3)); }
.eng-cycle-base .eng-cycle-arrow { transition: opacity 0.4s ease; }
.eng-cycle[data-active] .eng-cycle-base .eng-cycle-arrow { opacity: 0.24; }
.eng-cycle[data-active] .eng-cycle-base [aria-current] .eng-cycle-arrow { opacity: 0.5; }
.eng-cycle .eng-cycle-base .eng-cycle-link:hover .eng-cycle-arrow,
.eng-cycle .eng-cycle-base .eng-cycle-link:focus-visible .eng-cycle-arrow { opacity: 0.75; }
.eng-cycle-link { cursor: pointer; outline: none; text-decoration: none; }
.eng-cycle-link:focus-visible .eng-cycle-arrow { stroke: #f2f8fa; }
.eng-cycle-spark {
  fill: #f2f8fa;
  filter: drop-shadow(0 0 5px #a0e860) drop-shadow(0 0 12px rgba(160, 232, 96, 0.7));
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.eng-cycle.is-started .eng-cycle-spark { opacity: 1; }
.eng-cycle.is-complete .eng-cycle-spark { opacity: 0; }
.eng-cycle-label { transition: fill 0.4s ease; }
.eng-cycle[data-active] .eng-cycle-label { fill: #b6ccd4; }
.eng-cycle[data-active] .eng-cycle-label.is-lit { fill: #0e242e; }
@media (prefers-reduced-motion: reduce) {
  .eng-cycle .eng-cycle-arrow, .eng-cycle .eng-cycle-label, .eng-cycle .eng-cycle-spark { transition: none; }
}

.hw.eng { max-width: 86rem; }
@media (min-width: 992px) {
  .hw.eng {
    display: grid;
    grid-template-columns: minmax(10.5rem, 1.3fr) minmax(0, 58rem) minmax(6rem, 0.7fr);
    column-gap: 2.5rem;
  }
  .hw.eng > .eng-parts-nav { grid-column: 2; }
  .eng-part {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    align-items: start;
  }
  .eng-part::before, .eng-part-head { grid-column: 2; }
  .eng-dbtl { display: contents; }
  .eng-dbtl > .eng-dbtl-rail { grid-column: 1; justify-self: start; width: 10.5rem; margin-top: 1rem; }
  @media (min-width: 1300px) {
    .eng-dbtl > .eng-dbtl-rail { justify-self: end; width: 11.5rem; margin-right: 1.5rem; }
  }
  .eng-dbtl > .eng-dbtl-stages { grid-column: 2; margin-top: 1rem; }
  .eng-cycle-band { grid-column: 2; }
  .eng-future { grid-column: 2; }
  .hw.eng > .eng-closing { grid-column: 2; }
  .hw.eng > .eng-sep { grid-column: 1 / -1; }
}
[data-part="detect"]     { --part: #49c5b6; }
[data-part="inhibition"] { --part: #e6b060; }
.eng-parts-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 3rem;
}

.eng-flow-letter {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 7px;
  background: color-mix(in srgb, var(--stage) 22%, transparent);
  font-family: "Changa", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--stage);
}
[data-part="detect"]     { --part: #49c5b6; }
[data-part="inhibition"] { --part: #e6b060; }
.eng-parts-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 3rem;
}

@media (max-width: 991.98px) {
  
}
[data-part="detect"]     { --part: #49c5b6; }
[data-part="inhibition"] { --part: #e6b060; }
[data-part="reader"]     { --part: #b18df0; }
.eng-parts-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 3rem;
}

body.hw-nexus .hw .eng-parts-nav a {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--part) 40%, transparent);
  border-left: 6px solid var(--part);
  border-radius: 14px;
  background: color-mix(in srgb, var(--part) 9%, transparent);
  color: var(--part);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
body.hw-nexus .hw .eng-parts-nav a:hover,
body.hw-nexus .hw .eng-parts-nav a:focus-visible {
  background: color-mix(in srgb, var(--part) 18%, transparent);
  transform: translateY(-2px);
}
.eng-parts-nav-name {
  font-family: "Changa", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}
.eng-part { scroll-margin-top: 100px; }
.eng-part::before {
  content: "";
  display: block;
  width: 7rem;
  height: 9px;
  margin-bottom: 1.4rem;
  border-radius: 5px;
  background: var(--part);
}
.eng-sep {
  height: 2px;
  margin: 3rem 0;
  border: 0;
  opacity: 1;
  border-radius: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, currentColor 52%, transparent) 6%,
    color-mix(in srgb, currentColor 52%, transparent) 94%,
    transparent);
}
.eng-part + .eng-part { margin-top: 0; }
.eng-sep + .eng-closing { margin-top: 0; }
@media (max-width: 991.98px) {
  .eng-sep { margin: 2.2rem 0; }
}
.eng-part-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--part) 35%, transparent);
}
.eng-part-num {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--part) 16%, transparent);
  font-family: "Changa", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--part);
}
body.hw-nexus .hw .eng-part-title {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.05;
  color: var(--part);
}
.eng-part .eng-cycle-centre,
.eng-part .eng-cycle-kicker { fill: var(--part); }

.eng-future {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px dashed color-mix(in srgb, var(--part) 40%, transparent);
}
.eng-future-arrow {
  display: block;
  width: min(300px, 70%);
  height: auto;
  margin-bottom: 0.75rem;
  overflow: visible;
}
.eng-future-arrow-loop,
.eng-future-arrow-out,
.eng-future-arrow-head {
  stroke: var(--part);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eng-future-arrow-loop { opacity: 0.45; stroke-dasharray: 5 7; }
body.hw-nexus .hw .eng-future-title {
  margin: 0 0 1rem;
  font-size: 1.9rem;
  color: var(--part);
}
@media (max-width: 991.98px) {
  .eng-future { margin-top: 2.5rem; }
  .eng-future-arrow { width: 100%; }
}

.eng-closing { margin-top: 6rem; }
.eng-closing::before {
  content: "";
  display: block;
  width: 7rem;
  height: 9px;
  margin-bottom: 1.4rem;
  border-radius: 5px;
  background: linear-gradient(90deg, #49c5b6, #e6b060);
}
.eng-closing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, #9bbf96 45%, transparent);
}
.eng-closing-num {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg,
    color-mix(in srgb, #49c5b6 16%, transparent),
    color-mix(in srgb, #e6b060 16%, transparent));
  font-family: "Changa", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8aa888;
}
body.hw-nexus .hw .eng-closing-title {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.05;
  background: linear-gradient(90deg, #49c5b6, #e6b060);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 991.98px) {
  .eng-closing { margin-top: 3.5rem; }
  body.hw-nexus .hw .eng-closing-title { font-size: 2.1rem; }
}

.eng-cycle-band {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  scroll-margin-top: 100px;
}
.eng-dbtl + .eng-cycle-band { margin-top: 5rem; }
.eng-cycle-band-num {
  flex: none;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--part) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--part) 45%, transparent);
  font-family: "Changa", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--part);
}
.eng-cycle-band-rule {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right,
    color-mix(in srgb, var(--part) 70%, transparent), transparent);
}
@media (max-width: 991.98px) {
  .eng-dbtl + .eng-cycle-band { margin-top: 3rem; }
}

@media (max-width: 991.98px) {
  body.hw-nexus .hw .eng-part-title { font-size: 2.4rem; }
}
.eng-dbtl-rail {
  position: sticky;
  top: 110px;
}
.eng-dbtl-rail { transition: opacity 0.3s ease; }
.eng-dbtl-rail.is-tracked:not(.is-in-view) { opacity: 0; pointer-events: none; }
.eng-dbtl-stage {
  --stage: #a0e860;
  scroll-margin-top: 110px;
  margin-bottom: 4.5rem;
}
.eng-dbtl-stage:last-child { min-height: calc(100vh - 140px); margin-bottom: 0; }
.eng-dbtl-stage[data-stage="build"] { --stage: #4fd48f; }
.eng-dbtl-stage[data-stage="test"]  { --stage: #49c5b6; }
.eng-dbtl-stage[data-stage="learn"] { --stage: #5bb6e6; }
.eng-folder { margin: 0 0 3.5rem; }
.eng-folder-page { --stage: #a0e860; }
.eng-folder-page[data-stage="build"] { --stage: #4fd48f; }
.eng-folder-page[data-stage="test"]  { --stage: #49c5b6; }
.eng-folder-page[data-stage="learn"] { --stage: #5bb6e6; }
.eng-folder-page {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--stage) 55%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--stage) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--stage) 6%, var(--nx-panel, #16323f));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.eng-folder-body {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 2.2rem 1.6rem;
}
.eng-folder:not(.is-book) .eng-folder-page + .eng-folder-page { margin-top: 1rem; }
.eng-folder:not(.is-book) .eng-folder-spine,
.eng-folder:not(.is-book) .eng-folder-edge { display: none; }

.eng-folder.is-book .eng-folder-pages {
  --s: 3rem;
  display: grid;
  container-type: inline-size;
  perspective: 1600px;
  perspective-origin: 100% 50%;
}
.eng-folder.is-book .eng-folder-page {
  grid-area: 1 / 1;
  display: flex;
  width: calc(100cqw - (var(--n, 4) - 1) * var(--s));
  margin-left: calc(var(--i, 0) * var(--s));
  overflow: hidden;
  cursor: pointer;
  transform-origin: left center;
  transition:
    width 0.6s cubic-bezier(0.3, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1),
    filter 0.6s, box-shadow 0.6s;
}
.eng-folder.is-book .eng-folder-body {
  flex: none;
  width: calc(100cqw - var(--n, 4) * var(--s));
  transition: opacity 0.25s, visibility 0s 0.25s;
}
.eng-folder.is-book .eng-folder-page.is-open {
  z-index: 10;
  cursor: auto;
  transform: translateZ(12px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--stage) 25%, transparent),
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 40px color-mix(in srgb, var(--stage) 12%, transparent);
}
.eng-folder.is-book .eng-folder-page.is-open .eng-folder-body {
  transition: opacity 0.35s 0.2s, visibility 0s;
}
.eng-folder.is-book .eng-folder-page:not(.is-open) .eng-folder-body {
  visibility: hidden;
  opacity: 0;
}
.eng-folder.is-book .eng-folder-page.is-before {
  z-index: 11;
  width: var(--s);
  transform: rotateY(32deg);
  filter: brightness(0.72);
  box-shadow: inset -14px 0 18px -6px rgba(0, 0, 0, 0.45), 6px 10px 22px rgba(0, 0, 0, 0.35);
}
.eng-folder.is-book .eng-folder-page.is-after {
  z-index: calc(10 - var(--a, 1));
  transform-origin: right center;
  transform: translateZ(calc(var(--a, 1) * -55px)) rotateY(calc(var(--a, 1) * -2.5deg));
  filter: brightness(calc(1 - var(--a, 1) * 0.16));
  box-shadow: inset 18px 0 20px -10px rgba(0, 0, 0, 0.55), 0 14px 30px rgba(0, 0, 0, 0.3);
}
.eng-folder.is-book .eng-folder-page:not(.is-open):hover { filter: brightness(1.05); }

.eng-folder-spine,
.eng-folder-edge {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: var(--s);
  padding: 1.1rem 0;
  background: color-mix(in srgb, var(--stage) 12%, transparent);
  font-family: "Changa", sans-serif;
  font-weight: 700;
  color: var(--stage);
}
.eng-folder-spine {
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--stage) 35%, transparent);
  cursor: pointer;
}
.eng-folder-spine:focus-visible { outline: 2px solid var(--stage); outline-offset: -4px; }
.eng-folder-spine-name {
  writing-mode: vertical-rl;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eng-folder-edge {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border-left: 1px solid color-mix(in srgb, var(--stage) 35%, transparent);
  visibility: hidden;
}
.eng-folder.is-book .eng-folder-page.is-after .eng-folder-edge { visibility: visible; }

.eng-folder-page::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.eng-folder.is-book .eng-folder-page.is-open:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .eng-folder.is-book .eng-folder-page,
  .eng-folder.is-book .eng-folder-body { transition: none; }
}

body.hw-nexus .hw .eng-folder-page-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0 0 1rem;
  font-family: "Changa", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--stage);
}
.eng-folder-page-num {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
body.hw-nexus .hw .eng-folder-page-note {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--nx-text, #d7e3e6);
}
.eng-folder-page.is-skipped .eng-folder-page-note { font-style: italic; opacity: 0.6; }
.eng-folder-page.is-skipped { border-style: dashed; }
.eng-folder-page.is-skipped .eng-flow-letter,
.eng-folder-page.is-skipped .eng-folder-spine-name { opacity: 0.55; }
body.hw-nexus .hw .eng-folder-page-more {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--stage) 45%, transparent);
  background: color-mix(in srgb, var(--stage) 10%, transparent);
  font-family: "Changa", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--stage);
  text-decoration: none;
  transition: background 0.15s;
}
body.hw-nexus .hw .eng-folder-page-more:hover,
body.hw-nexus .hw .eng-folder-page-more:focus-visible {
  background: color-mix(in srgb, var(--stage) 22%, transparent);
}
@media (max-width: 991.98px) {
  .eng-folder { margin-bottom: 2.5rem; }
  .eng-folder-body { padding: 1.5rem 1.4rem 1.3rem; }
  body.hw-nexus .hw .eng-folder-page-note { font-size: 1.12rem; }
}
@media (max-width: 575.98px) {
  .eng-folder.is-book .eng-folder-pages { --s: 2rem; }
  .eng-folder-spine-name { display: none; }
  .eng-folder-body { padding: 1.25rem 1rem 1.1rem; }
  body.hw-nexus .hw .eng-folder-page-head { font-size: 1.35rem; }
}
[data-part="inhibition"] .eng-dbtl-stage,
[data-part="inhibition"] .eng-folder-page[data-stage="design"] { --stage: #e8d25c; }
[data-part="inhibition"] .eng-dbtl-stage[data-stage="build"],
[data-part="inhibition"] .eng-folder-page[data-stage="build"]  { --stage: #e8b155; }
[data-part="inhibition"] .eng-dbtl-stage[data-stage="test"],
[data-part="inhibition"] .eng-folder-page[data-stage="test"]   { --stage: #e59356; }
[data-part="inhibition"] .eng-dbtl-stage[data-stage="learn"],
[data-part="inhibition"] .eng-folder-page[data-stage="learn"]  { --stage: #d9775e; }
[data-part="inhibition"] .eng-cycle-tail-design { stop-color: #b89a2e; }
[data-part="inhibition"] .eng-cycle-head-design { stop-color: #e8d25c; }
[data-part="inhibition"] .eng-cycle-tail-build  { stop-color: #b87f28; }
[data-part="inhibition"] .eng-cycle-head-build  { stop-color: #e8b155; }
[data-part="inhibition"] .eng-cycle-tail-test   { stop-color: #b56228; }
[data-part="inhibition"] .eng-cycle-head-test   { stop-color: #e59356; }
[data-part="inhibition"] .eng-cycle-tail-learn  { stop-color: #a84a30; }
[data-part="inhibition"] .eng-cycle-head-learn  { stop-color: #d9775e; }
[data-part="reader"] .eng-dbtl-stage,
[data-part="reader"] .eng-folder-page[data-stage="design"] { --stage: #d7a8e8; }
[data-part="reader"] .eng-dbtl-stage[data-stage="build"],
[data-part="reader"] .eng-folder-page[data-stage="build"]  { --stage: #c294e8; }
[data-part="reader"] .eng-dbtl-stage[data-stage="test"],
[data-part="reader"] .eng-folder-page[data-stage="test"]   { --stage: #a884e0; }
[data-part="reader"] .eng-dbtl-stage[data-stage="learn"],
[data-part="reader"] .eng-folder-page[data-stage="learn"]  { --stage: #8f79d6; }
[data-part="reader"] .eng-cycle-tail-design { stop-color: #8f6bb0; }
[data-part="reader"] .eng-cycle-head-design { stop-color: #d7a8e8; }
[data-part="reader"] .eng-cycle-tail-build  { stop-color: #7f5cb0; }
[data-part="reader"] .eng-cycle-head-build  { stop-color: #c294e8; }
[data-part="reader"] .eng-cycle-tail-test   { stop-color: #6f4faa; }
[data-part="reader"] .eng-cycle-head-test   { stop-color: #a884e0; }
[data-part="reader"] .eng-cycle-tail-learn  { stop-color: #5d45a0; }
[data-part="reader"] .eng-cycle-head-learn  { stop-color: #8f79d6; }
.eng-dbtl-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #24596b;
}
.eng-dbtl-num {
  font-family: "Changa", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--stage);
  opacity: 0.8;
}
body.hw-nexus .hw .eng-dbtl-head h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--stage);
}
.eng-dbtl-note {
  grid-column: 2;
  margin: 0.2rem 0 0;
  font-size: 0.98rem;
}
body.hw-nexus .hw .eng-dbtl-note { color: var(--nx-muted); }
.eng-figure img {
  max-width: min(100%, 520px);
  max-height: 70vh;
  width: auto;
  height: auto;
}
.eng-sub + .eng-sub,
.eng-sub > p + .eng-sub { margin-top: 2.25rem; }
.eng-sub-2 {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid color-mix(in srgb, var(--part) 45%, transparent);
}
body.hw-nexus .hw .eng-sub-title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--part);
}
body.hw-nexus .hw h3.eng-sub-title { font-size: 1.5rem; }
body.hw-nexus .hw h4.eng-sub-title { font-size: 1.15rem; }
.eng-sub-num {
  flex: none;
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--part) 20%, transparent);
  font-family: "Changa", sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  text-align: center;
}
.eng-sub > p { margin-bottom: 1.5rem; }
.eng-sub-2 .eng-figure-float { width: min(38%, 250px); }
.eng-sub .eng-dbtl-empty { min-height: 24vh; }
.eng-sub-2 .eng-dbtl-empty { min-height: 18vh; }
.eng-figure-float {
  float: right;
  clear: right;
  width: min(42%, 290px);
  margin: 0.35rem 0 1.5rem 1.75rem;
}
.eng-figure-float img { max-width: 100%; max-height: none; }
.eng-figure-float figcaption { padding-top: 0.6rem; }
.eng-sub:after, .eng-dbtl-body:after { content: ""; display: block; clear: both; }
@media (max-width: 767.98px) {
  .eng-figure-float { float: none; width: auto; margin: 1.5rem 0; }
}
.eng-figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin: 1.5rem 0;
}
.eng-figure-pair .eng-figure { margin: 0; }
.eng-figure-pair .eng-figure-half img {
  width: 100%;
  max-width: 100%;
  max-height: none;
  aspect-ratio: var(--pair-ratio, 7 / 5);
  object-fit: contain;
}
.eng-figure-wide img { max-width: min(100%, 760px); max-height: none; }
.eng-figure-small img { max-width: min(100%, 340px); }
.eng-figure-pair-square { --pair-ratio: 1 / 1; }
.eng-figure-pair-fill .eng-figure-half img { object-fit: cover; }
.eng-figure-pair-narrow { max-width: 720px; margin-inline: auto; }
body.hw-nexus .hw .eng-figure {
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem 1.75rem;
  border: 1px solid var(--nx-line);
  border-top: 3px solid color-mix(in srgb, var(--part, var(--nx-mint)) 55%, var(--nx-line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--nx-panel) 65%, transparent);
}
body.hw-nexus .hw .eng-figure > img { border-radius: 8px; }
body.hw-nexus .hw .eng-figure figcaption {
  text-align: left;
  padding-top: 1.35rem;
}
body.hw-nexus .hw .eng-figure-float {
  margin: 0.35rem 0 1.75rem 2rem;
  width: min(42%, 326px);
  padding: 1.1rem 1.25rem 1.25rem;
}
body.hw-nexus .hw .eng-sub-2 .eng-figure-float { width: min(38%, 286px); }
@media (max-width: 767.98px) {
  body.hw-nexus .hw .eng-figure-float,
  body.hw-nexus .hw .eng-sub-2 .eng-figure-float {
    float: none;
    width: auto;
    margin: 1.75rem 0;
  }
}
body.hw-nexus .hw .eng-figure-pair .eng-figure { margin: 0; }

.eng-dbtl-empty {
  min-height: 46vh;
  border: 1.5px dashed color-mix(in srgb, var(--stage) 38%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--stage) 5%, transparent);
}

@media (max-width: 991.98px) {
  .eng-dbtl { margin-top: 1rem; }
  .eng-dbtl-rail {
    position: fixed;
    top: auto;
    margin-left: 0;
    left: 12px;
    bottom: 12px;
    z-index: 1010;
    width: 104px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(14, 36, 46, 0.86);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .eng-dbtl-rail.is-tracked:not(.is-in-view) {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    pointer-events: none;
  }
  .eng-dbtl-stage:last-child { min-height: calc(100vh - 140px); }
  .eng-dbtl-empty { min-height: 38vh; }
}

.attr-thanks {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.attr-people { margin-bottom: 2.5rem; }

.attr-people h2 {
  font-family: "Changa", sans-serif;
  color: #075a3e;
  margin-bottom: 1rem;
}

.attr-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.attr-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 14px;
  background: #e9eeeb;
  border: 1px solid #d5ddd8;
}

.attr-card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.attr-avatar {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #c9d6cf;
}
.attr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.attr-avatar img:not([style]) {
  object-position: 50% 12%;
  transform: scale(var(--az, 2.2));
  transform-origin: var(--ox, 50%) var(--oy, 24%);
}

.attr-card-name {
  flex: 1;
  margin: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #24352c;
}

.attr-card-body {
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  border-radius: 10px;
  background: #1d2a24;
  color: #e6efe9;
}

.attr-card-role {
  margin: 0 0 0.55rem;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #a0e860;
}

.attr-card-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
}
.attr-card-tasks li {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 232, 96, 0.35);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #cfe3d6;
}

.attr-card-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .attr-cards { grid-template-columns: 1fr; }
}

.attr-ai {
  border-left: 4px solid #075a3e;
  background: #f6fbf8;
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.75rem;
}

.attr-ai h2 {
  font-family: "Changa", sans-serif;
  color: #075a3e;
  margin-top: 0;
}

.attr-ai h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #4a3f35;
  margin-top: 1.5rem;
}

.attr-ai ul { margin-bottom: 0; }
.attr-ai li { margin-bottom: 0.5rem; line-height: 1.6; }
.attr-ai li:last-child { margin-bottom: 0; }

@media (max-width: 575.98px) {
  .attr-ai { padding: 1.15rem 1.15rem; }
}

.edu-pin {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid #6cd82e;
  background: #ff7a00;
  cursor: pointer;
  transition: transform 0.15s ease;
  padding: 0;
  z-index: 2;
}

.edu-pin:hover {
  transform: translate(-50%, -50%) scale(1.4);
  z-index: 3;
}

.edu-detail-layout {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  width: calc(100% + 0.75rem);
  margin: 0 0 4rem -0.75rem;
}

.edu-sidebar {
  position: sticky;
  top: 84px;
  flex: 0 0 200px;
  padding-left: 0;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.edu-sidebar::-webkit-scrollbar {
  display: none;
}

.edu-sidebar-link.edu-sidebar-top-link {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #075a3e;
}

.edu-sidebar-group {
  margin-bottom: 1.5rem;
}

.edu-sidebar-link {
  position: relative;
  display: block;
  padding: 0.35rem 0.6rem 0.35rem 1.15rem;
  border-radius: 8px;
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  color: #6b6055;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.edu-sidebar-link::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #c9bfa8;
  transform: translateY(-50%);
  transition: border-left-color 0.2s ease;
  z-index: 1;
}

.edu-sidebar-link:hover::before {
  border-left-color: #075a3e;
  transform: translate(-8px, -50%);
}

.edu-sidebar-link.passed::before,
.edu-sidebar-link.active::before {
  border-left-color: #075a3e;
}

.edu-sidebar-link:hover {
  color: #075a3e;
  transform: translateX(8px);
}

.edu-sidebar-link.active {
  background: rgba(7, 90, 62, 0.12);
  color: #075a3e;
  font-weight: 700;
}

.edu-sessions {
  flex: 1 1 auto;
  min-width: 0;
}

.edu-session-block {
  padding: 2rem 0;
  border-bottom: 1px solid #e0d6c0;
  scroll-margin-top: 90px;
}

.edu-sessions > .edu-session-block:first-child { padding-top: 0; }

.edu-overview-block { border-bottom: none; }

.edu-overview-block {
  padding-top: 0;
}

.edu-session-block:last-child {
  border-bottom: none;
}

.edu-session-block h2 {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  color: #2b1e17;
  margin: 0;
}

.edu-session-block p {
  margin-top: 1rem;
}

.collab-teams {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin: 0.75rem 0 1.1rem;
  padding: 0;
  list-style: none;
}

.collab-teams li { display: flex; align-items: center; gap: 0.5rem; }

.collab-teams img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: none;
}

.collab-teams span {
  font-family: "Changa", sans-serif;
  font-size: 0.82rem;
  color: #6b7a72;
}

@media print {
  .promo-signal { display: none; }
}

.edu-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.edu-logo {
  display: block;
  width: 80px;
  height: auto;
  flex: none;
}

.edu-session-block h3 {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #2b1e17;
  scroll-margin-top: 90px;
  margin: 1.75rem 0 0;
}

.edu-heading-date {
  font-family: "Changa", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #6b6055;
}

.edu-quote {
  border-left: 4px solid #075a3e;
  padding-left: 1.25rem;
  margin: 1rem 0;
  font-weight: 700;
  color: #4a3f35;
}

.edu-gallery {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.edu-gallery::-webkit-scrollbar {
  display: none;
}

.edu-gallery img {
  flex: 0 0 auto;
  height: 340px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .edu-gallery img {
    height: 240px;
  }
}

.edu-gallery-zoomable {
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.edu-gallery-zoomable:hover {
  transform: scale(1.03);
}

.edu-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 15, 10, 0.9);
  z-index: 1000;
  padding: 2rem;
}

.edu-lightbox.is-open {
  display: flex;
}

body.edu-lightbox-locked {
  overflow: hidden;
}

.edu-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.edu-lightbox-close,
.edu-lightbox-prev,
.edu-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.edu-lightbox-close:hover,
.edu-lightbox-prev:hover,
.edu-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.edu-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.75rem;
  line-height: 1;
}

.edu-lightbox-prev,
.edu-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
}

.edu-lightbox-prev { left: 1rem; }
.edu-lightbox-next { right: 1rem; }

.edu-lightbox-count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: "Changa", sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 600px) {
  .edu-lightbox { padding: 1rem; }
  .edu-lightbox-prev, .edu-lightbox-next {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
  }
  .edu-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

.edu-carousel {
  margin: 1.25rem 0 2rem;
}

.edu-carousel-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.edu-gallery.is-carousel {
  display: block;
  position: relative;
  flex: 0 1 640px;
  max-width: 640px;
  aspect-ratio: 3 / 2;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f1ece0;
  scroll-snap-type: none;
}

.edu-gallery.is-carousel .edu-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.edu-gallery.is-carousel .edu-slide.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

.edu-arrow {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #075a3e;
  background: #fffdf7;
  border: 1px solid #c6bda6;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.edu-arrow:hover,
.edu-arrow:focus-visible {
  background: #eaf7dd;
  border-color: #075a3e;
}

.edu-arrow:focus-visible {
  outline: 2px solid #075a3e;
  outline-offset: 2px;
}

.edu-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 0.7rem;
}

.edu-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.edu-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.edu-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bfb49c;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.edu-dot:hover::before,
.edu-dot:focus-visible::before {
  background: #7d6c4e;
}

.edu-dot[aria-current="true"]::before {
  background: #075a3e;
  transform: scale(1.4);
}

.edu-dot:focus-visible {
  outline: 2px solid #075a3e;
  outline-offset: 1px;
}

.edu-carousel-status {
  margin: 0;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: #6b6055;
  min-width: 4.5em;
  text-align: center;
}

@media (max-width: 600px) {
  .edu-gallery.is-carousel { aspect-ratio: 4 / 3; }
  .edu-carousel-controls { gap: 0.4rem 0.6rem; }
  .edu-carousel-frame { gap: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .edu-gallery.is-carousel .edu-slide,
  .edu-gallery.is-carousel .edu-slide.is-current { transition: none; }
  .edu-dot::before,
  .edu-arrow { transition: none; }
}

@media print {
  .edu-carousel-frame { display: block; }
  .edu-gallery.is-carousel {
    aspect-ratio: auto;
    max-width: none;
    height: auto;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: none;
  }
  .edu-gallery.is-carousel .edu-slide {
    position: static;
    opacity: 1;
    visibility: visible;
    width: 32%;
    height: auto;
    break-inside: avoid;
  }
  .edu-carousel-controls,
  .edu-arrow { display: none; }
}

.edu-pdf-viewer {
  margin: 1.25rem auto 0;
  max-width: 850px;
  line-height: 0;
}

.edu-pdf-viewer iframe {
  display: block;
  width: 100%;
  height: min(62vh, 720px);
  min-height: 380px;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  .edu-pdf-viewer { display: none; }
}

@media (min-width: 576px) {
  .edu-pdf-viewer + .edu-pdf-link { display: none; }
}

.edu-podcast-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0;
}

.edu-podcast-logo,
.edu-podcast-cover {
  height: 140px;
  width: auto;
  max-width: 100%;
}

.edu-podcast-cover {
  border-radius: 8px;
}

.edu-pdf-link {
  margin-top: 0.75rem;
  text-align: center;
}

.edu-consent-note {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #d8b26a;
  font-size: 0.8rem;
  color: #8a7f6f;
}

.edu-pdf-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #075a3e;
  text-decoration: none;
  background: #fffdf9;
  border: 2px solid #075a3e;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.edu-pdf-link a:hover,
.edu-pdf-link a:focus-visible {
  background: #075a3e;
  color: #fffdf9;
}

.edu-pdf-link svg {
  flex: none;
  font-size: 1.1em;
}

.edu-handbook { position: relative; margin-top: 1rem; }

.edu-handbook-radio {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.edu-handbook-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.edu-handbook-lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7a72;
}

.edu-handbook-switch {
  display: inline-flex;
  padding: 3px;
  border: 2px solid #075a3e;
  border-radius: 999px;
  background: #fffdf9;
}

.edu-handbook-switch label {
  margin: 0;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #075a3e;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.edu-handbook-switch label:hover { background: #e7f1eb; }

#edu-handbook-en:checked ~ .edu-handbook-lang label[for="edu-handbook-en"],
#edu-handbook-cn:checked ~ .edu-handbook-lang label[for="edu-handbook-cn"] {
  background: #075a3e;
  color: #fffdf9;
  cursor: default;
}

#edu-handbook-en:focus-visible ~ .edu-handbook-lang label[for="edu-handbook-en"],
#edu-handbook-cn:focus-visible ~ .edu-handbook-lang label[for="edu-handbook-cn"] {
  outline: 2px solid #075a3e;
  outline-offset: 3px;
}

#edu-handbook-en:checked ~ .edu-handbook-panel-cn,
#edu-handbook-cn:checked ~ .edu-handbook-panel-en { display: none; }

@media (max-width: 860px) {
  .edu-detail-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .edu-sidebar {
    position: static;
    width: 100%;
    padding-left: 1rem;
  }

  .edu-detail-layout {
    width: 100%;
    margin-left: 0;
  }
}

.sgd {
  margin-inline: calc(50% - 50vw);
  overflow-x: clip;
  padding: 3rem clamp(1rem, 5vw, 3rem) 3.5rem;
  background:
    radial-gradient(120% 120% at 50% -10%, #fffdf7 0%, #f6faf7 45%, #eef6f1 100%);
  border-block: 1px solid #dfe8e2;
  margin-bottom: 2.5rem;
}

.sgd-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.sgd-kicker {
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f8f74;
  margin: 0 0 0.4rem;
  text-align: center;
}

.sgd-title {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  color: #075a3e;
  margin: 0 0 2.5rem;
  text-align: center;
}

.sgd-stops {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sgd-js .sgd-text {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sgd-js .sgd-stop.is-in .sgd-text {
  opacity: 1;
  transform: none;
}

.sgd-stop {
  display: grid;
  grid-template-columns: 1fr minmax(310px, 32%) 1fr;
  align-items: center;
  min-height: 250px;
}

.sgd-stop.is-right > .sgd-text { grid-column: 1; grid-row: 1; text-align: left; }
.sgd-stop.is-left > .sgd-text { grid-column: 3; grid-row: 1; text-align: left; }
.sgd-spine { grid-column: 2; grid-row: 1; }

.sgd-spine {
  position: relative;
  align-self: stretch;
}

.sgd-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.sgd-arc-track { stroke: #cfe0d6; }

.sgd-arc-fill {
  stroke: #075a3e;
  clip-path: inset(0 0 var(--cut, 0%) 0);
}

.sgd-node {
  position: absolute;
  top: 50%;
  width: 5.2rem;
  height: 5.2rem;
  display: grid;
  place-items: center;
  border: 3px solid #a9cbb8;
  border-radius: 50%;
  background: #fffdf7;
  overflow: hidden;
  box-shadow: 0 0 0 7px #f3f8f5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.sgd-stop.is-reached .sgd-node {
  border-color: #075a3e;
  box-shadow: 0 0 0 7px #e3efe8;
}

.sgd-stop.is-reached .sgd-icon { filter: none; }

.sgd-stop.is-right:hover .sgd-node,
.sgd-stop.is-left:hover .sgd-node { transform: translate(-50%, -50%) scale(1.12); }

.sgd-stop.is-right .sgd-node { left: 86.25%; transform: translate(-50%, -50%); }
.sgd-stop.is-left .sgd-node { left: 13.75%; transform: translate(-50%, -50%); }

.sgd-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.62) opacity(0.72);
  transition: filter 0.4s ease;
}

.sgd-text { padding: 1.25rem 0; }

.sgd-heading {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #075a3e;
  margin: 0 0 0.6rem;
}

.sgd-text p,
.sgd-list li {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #4a5a51;
  margin: 0 0 0.8rem;
}

.sgd-text p:last-child { margin-bottom: 0; }

.sgd-list {
  margin: 0;
  padding-left: 1.1rem;
}

.sgd-list li::marker { color: #d8b26a; }

@media (max-width: 991.98px) {
  .sgd { padding: 2rem 1rem 2.25rem; }
  .sgd-title { margin-bottom: 1.75rem; }

  .sgd-stop {
    display: block;
    min-height: 0;
    padding-bottom: 1.9rem;
  }

  .sgd-stop.is-right > .sgd-text,
  .sgd-stop.is-left > .sgd-text { grid-column: auto; padding: 0; }

  .sgd-arc { display: none; }

  .sgd-spine {
    position: static;
    margin-bottom: 0.85rem;
  }

  .sgd-stop.is-right .sgd-node,
  .sgd-stop.is-left .sgd-node {
    position: static;
    left: auto;
    transform: none;
    width: 3.9rem;
    height: 3.9rem;
    box-shadow: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sgd-node,
  .sgd-icon { transition: none; }
}

@media print {
  .sgd { margin-inline: 0; padding: 0 0 1rem; background: none; }
  .sgd-stop { display: block; min-height: 0; }
  .sgd-arc { display: none; }
}

.board-game-page {
  --wood-light: #fbf8e9; --wood-mid: #f2eedb; --wood-dark: #e2dcc2;
  --paper: #fdfbf7; --paper2: #f4efe6; --ink: #3d3229; --ink2: #5c4e42; --border: #4a3b32;
  --positive: #2e7d32; --positive-edge: #256428; --positive-drop: #1b4a1d;
  --brand: #60c028; --brand-soft: #8fd94f; --brand-tint: #eaf7dd;
  --neutral: #4a3f35; --neutral-edge: #3a312a; --neutral-drop: #2a231e;
  --red: #c44536; --gold: #c9a227; --muted: #8a7a6a;
  --sticky-y: #fff3a3; --sticky-p: #ffcce0; --sticky-g: #c8f0d4;
  font-family: "Changa", "Noto Sans TC", sans-serif;
  background: linear-gradient(160deg, var(--wood-light), var(--wood-mid), var(--wood-dark));
  color: var(--ink); line-height: 1.5; position: relative;
  border-radius: 16px; padding: 18px; margin-bottom: 2rem;
}
.board-game-page, .board-game-page * { box-sizing: border-box; margin: 0; padding: 0; }
.board-game-page .lang-bar {
  position: absolute; top: 10px; right: 14px; z-index: 50;
  background: var(--paper); border: 2px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-size: 0.85rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.board-game-page .lang-bar select { border: 1px solid #c4b8a8; border-radius: 5px; padding: 3px 6px; background: #fff; }
.board-game-page .screen { display: none; padding: 18px; max-width: 1400px; margin: 0 auto; }
.board-game-page .screen.active { display: block; }
.board-game-page h1 { text-align: center; margin-bottom: 14px; font-size: clamp(1.5rem, 3.8vw, 2.15rem); color: var(--border); }
.board-game-page h2 { margin: 10px 0 8px; color: var(--positive); font-size: 1.08rem; }
.board-game-page button {
  background: var(--neutral); color: #fff; border: 2px solid var(--neutral-edge); padding: 10px 18px;
  border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 600;
  box-shadow: 0 3px 0 var(--neutral-drop); transition: 0.12s;
}
.board-game-page button:hover { filter: brightness(1.06); }
.board-game-page button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--neutral-drop); }
.board-game-page button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.board-game-page button.danger { background: var(--red); border-color: #a3382c; box-shadow: 0 3px 0 #8b2e24; }
.board-game-page button.success { background: var(--positive); border-color: var(--positive-edge); box-shadow: 0 3px 0 var(--positive-drop); }
.board-game-page button.large { padding: 14px 26px; font-size: 1.05rem; width: 100%; max-width: 340px; margin: 8px auto; display: block; }
.board-game-page input, .board-game-page select { background: var(--paper); border: 2px solid #c4b8a8; color: var(--ink); padding: 8px 12px; border-radius: 7px; font-size: 0.95rem; }
.board-game-page .menu-box, .board-game-page .setup-box {
  background: var(--paper); padding: 26px; border-radius: 12px; max-width: 520px; margin: 0 auto;
  text-align: center; border: 2px solid var(--border); box-shadow: 0 6px 20px rgba(74,59,50,0.12);
}
.board-game-page .player-setup { margin: 10px 0; display: grid; grid-template-columns: 70px 1fr 170px; gap: 8px; align-items: center; text-align: left; }
.board-game-page .player-setup label { font-size: 0.88rem; color: var(--muted); }
.board-game-page .player-setup input,
.board-game-page .player-setup select { min-width: 0; }

@media (max-width: 560px) {
  .board-game-page .player-setup { grid-template-columns: 1fr 132px; gap: 6px; }
  .board-game-page .player-setup label { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .board-game-page .lang-bar {
    position: static;
    width: fit-content;
    margin: 0 0 10px auto;
  }
}

@media (min-width: 821px) {
  .board-game-page #gameScreen .log-panel { padding-top: 46px; }
}
.board-game-page .tgc-pause {
  position: fixed;
  left: calc(var(--tgc-ov-left, 0px) + 14px);
  bottom: calc(var(--tgc-ov-bottom, 0px) + 14px);
  z-index: 10000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.board-game-page .tgc-pause[hidden] { display: none; }
.board-game-page .tgc-pause:hover { border-color: var(--positive); }
.board-game-page .tgc-pause-mark {
  width: 10px; height: 12px; flex: 0 0 auto;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}
.board-game-page .tgc-pause.is-paused { background: var(--positive); color: #fff; border-color: var(--positive-edge); }
.board-game-page .tgc-pause.is-paused .tgc-pause-mark {
  border: 0;
  width: 0; height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}

.board-game-page.is-paused .screen,
.board-game-page.is-paused #card-play-modal,
.board-game-page.is-paused #card-play-modal.show,
.board-game-page.is-paused #modal,
.board-game-page.is-paused #modal.show,
.board-game-page.is-paused #ai-notice,
.board-game-page.is-paused #ai-notice.show { pointer-events: none; }
.board-game-page.is-paused .screen { filter: grayscale(0.4) brightness(0.62); }
.board-game-page.is-paused .tgc-torn-page,
.board-game-page.is-paused .tgc-dialog,
.board-game-page.is-paused .ai-notice-box { filter: grayscale(0.4) brightness(0.62); }

html.tgc-overlay-open, html.tgc-overlay-open body { overflow: hidden; }

.board-game-page .online-block { margin: 14px 0 6px; text-align: left; }
.board-game-page .online-label {
  display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted);
  margin-bottom: 4px; letter-spacing: 0.03em;
}
.board-game-page .online-block input { width: 100%; }
.board-game-page #onlineCode {
  text-transform: uppercase; letter-spacing: 0.35em; font-weight: 700;
  font-size: 1.2rem; text-align: center;
}
.board-game-page .online-status {
  font-size: 0.85rem; line-height: 1.5; color: var(--muted);
  margin-bottom: 10px; min-height: 1.2em;
}
.board-game-page .online-status.error { color: var(--red); font-weight: 600; }
.board-game-page .online-status.ok { color: var(--positive); font-weight: 600; }
.board-game-page .room-code-display {
  background: #f5f2eb; border: 2px dashed #d8b26a; border-radius: 10px;
  padding: 12px; margin-bottom: 12px;
}
.board-game-page .room-code-label {
  display: block; font-size: 0.72rem; color: var(--muted);
  letter-spacing: 0.06em; margin-bottom: 2px;
}
.board-game-page .room-code-display strong {
  font-size: 2rem; letter-spacing: 0.3em; color: var(--border);
}
.board-game-page .lobby-players { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; }
.board-game-page .lobby-players li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px;
  background: #f9f7f2; border: 1px solid #ded6c8; border-radius: 8px;
  font-size: 0.92rem;
}
.board-game-page .lobby-players li.self { border-color: var(--positive); background: var(--brand-tint); }
.board-game-page .lobby-seat {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #e8e0d4; border: 1px solid #c4b8a8;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.board-game-page .lobby-host-tag {
  margin-left: auto; font-size: 0.66rem; font-weight: 700;
  background: var(--gold); color: #fff; border-radius: 8px; padding: 2px 7px;
}

.board-game-page .tutorial-box {
  background: var(--paper); border: 2px solid var(--border); border-radius: 12px;
  max-width: 940px; margin: 0 auto; padding: 20px 24px 18px;
  box-shadow: 0 6px 20px rgba(74,59,50,0.12);
}
.board-game-page .tutorial-progress {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px dashed #d5cbb8;
}
.board-game-page .tutorial-step-num { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.board-game-page .tutorial-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.board-game-page .tutorial-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #ded6c8; border: 1px solid #c4b8a8; transition: 0.2s;
}
.board-game-page .tutorial-dot.done { background: var(--positive); border-color: var(--positive); }
.board-game-page .tutorial-dot.current { background: var(--gold); border-color: #a88b1a; transform: scale(1.35); }
.board-game-page .tutorial-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 780px) { .board-game-page .tutorial-pane { grid-template-columns: 1fr; gap: 18px; } }
.board-game-page .tutorial-lang { min-width: 0; }
.board-game-page .tutorial-lang + .tutorial-lang { border-left: 1px solid #e8dcc8; padding-left: 22px; }
@media (max-width: 780px) {
  .board-game-page .tutorial-lang + .tutorial-lang { border-left: none; padding-left: 0; border-top: 1px dashed #d5cbb8; padding-top: 16px; }
}
.board-game-page .tutorial-lang-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--muted); background: #f0ebe3; border: 1px solid #ded6c8;
  border-radius: 10px; padding: 2px 9px; margin-bottom: 8px;
}
.board-game-page .tutorial-lang h2 { margin: 0 0 10px; color: var(--positive); font-size: 1.12rem; line-height: 1.35; }
.board-game-page .tutorial-lang ul { list-style: none; margin: 0; padding: 0; }
.board-game-page .tutorial-lang li {
  position: relative; padding-left: 16px; margin-bottom: 9px;
  font-size: 0.9rem; line-height: 1.6; color: var(--ink2);
}
.board-game-page .tutorial-lang li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.board-game-page .tutorial-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed #d5cbb8;
}
.board-game-page .tutorial-actions button { min-width: 150px; }
@media (max-width: 560px) { .board-game-page .tutorial-actions button { min-width: 130px; flex: 1 1 auto; } }

.board-game-page .draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(118px, 100%), 1fr)); gap: 10px; margin: 14px 0; }
.board-game-page .sdg-pick {
  background: var(--paper); border: 2px solid #c4b8a8; border-radius: 10px; padding: 11px 7px;
  text-align: center; cursor: pointer; transition: 0.15s; user-select: none;
}
.board-game-page .sdg-pick:hover:not(.disabled):not(.selected) { border-color: var(--positive); transform: translateY(-2px); }
.board-game-page .sdg-pick.disabled { opacity: 0.32; cursor: not-allowed; filter: grayscale(0.6); }
.board-game-page .sdg-pick.selected { border-color: var(--positive); background: var(--brand-tint); box-shadow: 0 0 0 2px var(--positive); }
.board-game-page .sdg-pick .pick-count { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.board-game-page .draft-status { text-align: center; margin: 10px 0; font-size: 1.08rem; color: var(--positive); font-weight: 600; }
.board-game-page .draft-selected-count { text-align: center; color: var(--muted); margin-bottom: 6px; }
.board-game-page .game-layout { display: grid; grid-template-columns: 1fr 290px; gap: 14px; }
@media (max-width: 960px) { .board-game-page .game-layout { grid-template-columns: 1fr; } .board-game-page .log-panel { max-height: 260px; } }
.board-game-page .board { background: var(--paper); border-radius: 12px; padding: 14px; border: 2px solid var(--border); box-shadow: 0 6px 18px rgba(74,59,50,0.1); }
.board-game-page .players-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; margin-bottom: 12px; }
.board-game-page .player-card { background: #f9f7f2; border: 2px solid #c4b8a8; border-radius: 10px; padding: 10px; position: relative; }
.board-game-page .player-card.current { border-color: var(--positive); box-shadow: 0 0 0 2px rgba(46,125,50,0.3); }
.board-game-page .player-card.sanctioned::after { content: attr(data-sanction); position: absolute; top: 5px; right: 7px; background: var(--red); color: #fff; font-size: 0.65rem; padding: 2px 6px; border-radius: 5px; }
.board-game-page .player-card.ai-tag::before { content: "Bot"; position: absolute; top: 5px; left: 7px; background: #6b5b4f; color: #fff; font-size: 0.6rem; padding: 2px 5px; border-radius: 4px; }
.board-game-page .player-name { font-weight: 700; font-size: 0.98rem; margin-bottom: 6px; padding-left: 24px; }
.board-game-page .sdg-row { display: flex; gap: 6px; margin-bottom: 3px; align-items: center; }
.board-game-page .sdg-badge { background: #e8e0d4; border: 1px solid #c4b8a8; border-radius: 6px; padding: 3px 6px; font-size: 0.78rem; min-width: 60px; text-align: center; font-weight: 600; }
.board-game-page .sdg-badge.goal { background: linear-gradient(135deg, #e8c547, #c9a227); border-color: #a88b1a; }
.board-game-page .sdg-progress-bar { display: block; flex: 1; height: 18px; background: #e5dfd4; border-radius: 9px; overflow: hidden; position: relative; border: 1px solid #c4b8a8; }
.board-game-page .progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-soft)); transition: width 0.45s ease; }
.board-game-page .progress-fill.negative { background: linear-gradient(90deg, #c44536, #e06b5e); }
.board-game-page .progress-preview { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, rgba(96,192,40,0.35), rgba(96,192,40,0.35) 4px, rgba(96,192,40,0.12) 4px, rgba(96,192,40,0.12) 8px); border: 2px dashed var(--brand); border-radius: 9px; pointer-events: none; }
.board-game-page .progress-preview.negative { background: repeating-linear-gradient(90deg, rgba(196,69,54,0.4), rgba(196,69,54,0.4) 4px, rgba(196,69,54,0.15) 4px, rgba(196,69,54,0.15) 8px); border-color: #c44536; }
.board-game-page .progress-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; z-index: 2; }
.board-game-page .sdg-track { flex: 1; min-width: 0; }
.board-game-page .progress-labels { position: relative; height: 0.85rem; font-size: 0.58rem; color: var(--muted); margin-top: 1px; }
.board-game-page .progress-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.board-game-page .progress-labels span:first-child { transform: none; }
.board-game-page .progress-labels span:last-child { transform: translateX(-100%); }
.board-game-page .hand-area { background: #f5f2eb; border-radius: 10px; padding: 12px; margin-top: 10px; border: 1px solid #d5cbb8; }
.board-game-page .hand-cards { display: flex; flex-wrap: wrap; gap: 10px; min-height: 115px; }
.board-game-page .hand-card {
  background: var(--paper); border: 2px solid var(--border); border-radius: 10px; padding: 0; width: 148px;
  font-size: 0.74rem; cursor: pointer; transition: 0.18s; overflow: hidden; box-shadow: 0 4px 10px rgba(74,59,50,0.12);
}
.board-game-page .hand-card:hover { transform: translateY(-8px) scale(1.04); border-color: var(--gold); }
.board-game-page .hand-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); transform: translateY(-6px); }
.board-game-page .hand-card.disabled-card { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.board-game-page .hand-card-header { padding: 4px 8px; font-size: 0.65rem; font-weight: 700; }
.board-game-page .hand-card.event .hand-card-header { background: #e8a54b; color: #3d3229; }
.board-game-page .hand-card.special .hand-card-header { background: #7b6b9e; color: #fff; }
.board-game-page .hand-card-body { padding: 7px; }
.board-game-page .card-name { font-weight: 700; margin-bottom: 3px; font-size: 0.8rem; }
.board-game-page .card-effect { color: var(--muted); font-size: 0.68rem; }
.board-game-page .card-fwd { color: var(--positive); }
.board-game-page .card-bwd { color: #a3382c; }
.board-game-page .deck-info { display: flex; gap: 14px; margin: 10px 0; font-size: 0.88rem; color: var(--muted); }
.board-game-page .phase-bar { background: #ebe6dc; padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border: 1px solid #d5cbb8; }
.board-game-page .phase-label { font-weight: 700; color: var(--positive); }
.board-game-page .ai-thinking { color: #6b5b4f; animation: boardGamePulse 1.2s infinite; }
@keyframes boardGamePulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.board-game-page .log-panel { background: var(--paper); border-radius: 12px; padding: 12px; height: calc(100vh - 40px); max-height: 840px; display: flex; flex-direction: column; border: 2px solid var(--border); }
.board-game-page .log-content { flex: 1; overflow-y: auto; font-size: 0.8rem; color: var(--ink2); }
.board-game-page .log-entry { padding: 4px 0; border-bottom: 1px solid #ebe6dc; }
.board-game-page .log-entry.sys { color: var(--neutral); }
.board-game-page .log-entry.win { color: var(--positive); font-weight: 700; }
.board-game-page .log-entry.ai { color: #6b5b4f; }
.board-game-page .log-entry.up { color: var(--positive); }
.board-game-page .log-entry.down { color: #a3382c; }
.board-game-page .log-entry.special { color: #8b6914; }
.board-game-page .modal-overlay { position: fixed; top: var(--tgc-ov-top, 0px); left: var(--tgc-ov-left, 0px); width: var(--tgc-ov-width, 100%); height: var(--tgc-ov-height, 100%); background: rgba(61,50,41,0.45); display: none; align-items: center; justify-content: center; z-index: 2000; }
.board-game-page .modal-overlay.show { display: flex; }
.board-game-page .tgc-dialog { display: block; position: static; opacity: 1; pointer-events: auto; background: var(--paper); border-radius: 12px; padding: 22px; max-width: 480px; width: 92%;
  max-height: min(85vh, calc(var(--tgc-ov-height, 100vh) - 26px)); overflow-y: auto; border: 2px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.board-game-page .tgc-dialog h3 { margin-bottom: 12px; color: var(--positive); }
.board-game-page .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.board-game-page .modal-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; max-height: 280px; overflow-y: auto; }
.board-game-page .modal-list button { font-size: 0.82rem; padding: 8px 12px; }
.board-game-page .win-screen { text-align: center; padding: 48px 20px; }
.board-game-page .win-screen h1 { color: var(--gold); }
.board-game-page .confirm-bar { margin-top: 10px; display: flex; gap: 10px; justify-content: center; }

.board-game-page #card-play-modal {
  position: fixed; top: var(--tgc-ov-top, 0px); left: var(--tgc-ov-left, 0px); width: var(--tgc-ov-width, 100%); height: var(--tgc-ov-height, 100%); background: rgba(61,50,41,0.42);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.board-game-page #card-play-modal.show { opacity: 1; pointer-events: auto; }
.board-game-page .tgc-torn-page {
  position: relative;
  background:
    linear-gradient(90deg, transparent 0, transparent 28px, #e8dcc8 28px, #e8dcc8 30px, transparent 30px),
    repeating-linear-gradient(0deg, transparent, transparent 27px, #d4cfc4 27px, #d4cfc4 28px),
    linear-gradient(160deg, var(--paper), var(--paper2));
  border: 1px solid #c9bfa8;
  border-radius: 2px 12px 12px 2px;
  padding: 28px 32px 22px 42px;
  max-width: 480px; width: 92%;
  max-height: min(88vh, calc(var(--tgc-ov-height, 100vh) - 22px)); overflow-y: auto;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.15), inset 0 0 40px rgba(255,255,255,0.3);
  transform: rotate(-0.6deg) scale(0.94);
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1);
}
.board-game-page #card-play-modal.show .tgc-torn-page { transform: rotate(0deg) scale(1); }
.board-game-page .tgc-torn-page::before {
  content: ""; position: absolute; left: -6px; top: 8%; bottom: 8%; width: 14px;
  background: radial-gradient(circle at 4px 12px, transparent 5px, #c9bfa8 5.5px, #c9bfa8 7px, transparent 7.5px) 0 0 / 14px 28px;
  opacity: 0.7;
}
.board-game-page .tgc-torn-page::after {
  content: ""; position: absolute; top: -2px; left: 10%; right: 8%; height: 8px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06) 20%, transparent 40%, rgba(0,0,0,0.05) 70%, transparent);
  border-radius: 50%;
}
.board-game-page .card-announce-player { font-size: 0.95rem; color: var(--neutral); margin-bottom: 4px; font-weight: 600; }
.board-game-page .card-announce-player.reveal {
  color: var(--gold); font-size: 0.82rem; letter-spacing: 0.02em;
  display: inline-block; background: #fdf3d6; border: 1px dashed #d8b26a;
  border-radius: 12px; padding: 3px 11px; margin-bottom: 8px;
}
.board-game-page .card-announce-name { font-size: 1.5rem; font-weight: 800; color: var(--border); margin-bottom: 4px; line-height: 1.25; }
.board-game-page .card-announce-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #c9bfa8;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.board-game-page .card-announce-link:hover,
.board-game-page .card-announce-link:focus-visible {
  color: #075a3e;
  text-decoration-color: #075a3e;
}
.board-game-page .card-announce-link:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 3px;
  border-radius: 3px;
}
.board-game-page .card-announce-link::after {
  content: "\2197";
  font-size: 0.72em;
  margin-left: 4px;
  vertical-align: super;
  display: inline-block;
}
.board-game-page .card-announce-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; font-style: italic; }
.board-game-page .card-announce-desc {
  font-size: 0.9rem; color: var(--ink2); margin-bottom: 16px; line-height: 1.55;
  border-left: 3px solid #e8dcc8; padding-left: 12px;
}
.board-game-page .card-announce-effects {
  display: flex; flex-wrap: wrap; gap: 14px 12px;
  justify-content: center; margin: 6px 0 20px;
}
.board-game-page .sticky-note {
  position: relative;
  flex: 0 1 auto;
  width: 178px; min-height: 92px;
  padding: 14px 12px 12px;
  text-align: left;
  font-size: 0.82rem; font-weight: 600; line-height: 1.35;
  border-radius: 1px;
  box-shadow: 2px 4px 7px rgba(0,0,0,0.18), inset 0 -14px 18px -14px rgba(0,0,0,0.12);
}
.board-game-page .sticky-note.up { background: var(--sticky-g); transform: rotate(-2deg); color: #1a5c4a; }
.board-game-page .sticky-note.down { background: var(--sticky-p); transform: rotate(3deg); color: #8b2e3a; }
.board-game-page .sticky-note.special { background: var(--sticky-y); transform: rotate(-2deg); color: #5c4a12; }
.board-game-page .sticky-note::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 54px; height: 18px; transform: translateX(-50%) rotate(-1.5deg);
  background: rgba(255,255,255,0.55);
  border-left: 1px solid rgba(0,0,0,0.05); border-right: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.board-game-page .sticky-note::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  background: linear-gradient(315deg, rgba(0,0,0,0.10) 50%, transparent 50%);
}
.board-game-page .sticky-note-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px; margin-bottom: 2px;
}
.board-game-page .sticky-note-sdg { font-size: 0.9rem; font-weight: 800; }
.board-game-page .sticky-note-delta { font-size: 0.9rem; font-weight: 800; white-space: nowrap; }
.board-game-page .sticky-note-title {
  font-size: 0.72rem; font-weight: 700; opacity: 0.75;
  margin-bottom: 5px; padding-bottom: 4px;
  border-bottom: 1px dashed rgba(0,0,0,0.18);
}
.board-game-page .sticky-note-text { font-size: 0.76rem; font-weight: 500; opacity: 0.95; }
.board-game-page .sticky-note.plain { width: auto; min-width: 104px; min-height: 0; padding: 10px 14px; text-align: center; }
.board-game-page .sticky-note.plain .sticky-note-head { justify-content: center; }
.board-game-page .card-announce-next { text-align: center; }
.board-game-page .card-announce-next button { min-width: 140px; font-size: 1rem; }
.board-game-page .ack-status {
  margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted);
  min-height: 1.1em;
}
.board-game-page .player-card.viewer { box-shadow: 0 0 0 2px var(--gold); }
.board-game-page .you-tag {
  font-size: 0.62rem; font-weight: 700; background: var(--gold); color: #fff;
  border-radius: 8px; padding: 1px 6px; margin-left: 4px; vertical-align: middle;
}
.board-game-page .hand-count-tag {
  font-size: 0.62rem; font-weight: 600; color: var(--muted);
  background: #eee7db; border: 1px solid #ded6c8;
  border-radius: 8px; padding: 1px 6px; margin-left: 4px; vertical-align: middle;
}
.board-game-page .hand-owner { font-size: 0.85rem; color: var(--gold); font-weight: 700; }

.board-game-page #ai-notice {
  position: fixed; top: var(--tgc-ov-top, 0px); left: var(--tgc-ov-left, 0px); width: var(--tgc-ov-width, 100%); height: var(--tgc-ov-height, 100%); background: rgba(61,50,41,0.32);
  display: none; align-items: center; justify-content: center; z-index: 9000;
}
.board-game-page #ai-notice.show { display: flex; }
.board-game-page .ai-notice-box {
  background: var(--paper); border: 3px solid var(--border); border-radius: 12px;
  padding: 22px 32px; max-width: 420px; text-align: center; font-size: 1.05rem;
  font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.labbook {
  max-width: 940px;
  margin: 0 auto;
}

.labbook .protocol {
  background: #fffdf9;
  border: 1px solid #e6ddc8;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(43, 30, 23, 0.06);
  margin-bottom: 2.75rem;
  overflow: hidden;
}

.labbook .protocol > h2 {
  font-family: "Changa", sans-serif;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem);
  line-height: 1.3;
  color: #fffdf9;
  background: #075a3e;
  margin: 0;
  padding: 1.15rem 1.5rem 1.05rem;
}

.labbook .protocol-pdf {
  margin: 0;
  padding: 1rem 1.5rem;
  background: #f5f1e4;
  border-bottom: 1px solid #e6ddc8;
}

.labbook .protocol-pdf a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #075a3e;
  text-decoration: none;
  background: #fffdf9;
  border: 2px solid #075a3e;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.labbook .protocol-pdf a:hover,
.labbook .protocol-pdf a:focus-visible {
  background: #075a3e;
  color: #fffdf9;
}

.labbook .protocol-pdf svg {
  flex: none;
  font-size: 1.1em;
}

.labbook .protocol-body {
  padding: 1.75rem 1.5rem 2rem;
}

.labbook .protocol-section {
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #075a3e;
  margin: 2.5rem 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #dbe7cb;
}

.labbook .protocol-section:first-child {
  margin-top: 0;
}

.labbook .protocol-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #2b1e17;
  margin: 1.6rem 0 0.55rem;
}

.labbook .protocol-body h4:first-of-type {
  margin-top: 0;
}

.labbook .protocol-body p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.labbook .protocol-table-wrap {
  border: 1px solid #e0d6c0;
  border-radius: 10px;
  overflow-x: auto;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.labbook .protocol-table {
  margin-bottom: 0;
  font-size: 0.93rem;
  border: none;
}

.labbook .protocol-table thead th {
  font-family: "Changa", sans-serif;
  font-weight: 600;
  color: #fffdf9;
  background: #075a3e;
  border: none;
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

.labbook .protocol-table td {
  border: none;
  border-top: 1px solid #ece5d4;
  padding: 0.55rem 1rem;
  background: transparent;
  vertical-align: middle;
}

.labbook .protocol-table tbody tr:nth-child(odd) td {
  background: #fbf9f2;
}

.labbook .protocol-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.labbook .protocol-table tbody tr:last-child td {
  background: #eaf7dd;
  border-top: 2px solid #075a3e;
}

.labbook .protocol-table-wrap--recipe {
  width: 100%;
}

.labbook .protocol-table--recipe {
  width: 100%;
  table-layout: fixed;
}

.labbook .protocol-table--recipe th,
.labbook .protocol-table--recipe td {
  width: 33.3333%;
}

.labbook .protocol-table--recipe.protocol-table--cols-2 th,
.labbook .protocol-table--recipe.protocol-table--cols-2 td {
  width: 50%;
}

.labbook .protocol-table--recipe td:last-child {
  text-align: left;
  font-variant-numeric: normal;
  font-weight: 400;
  white-space: normal;
}

.labbook .protocol-table--recipe tbody tr:nth-child(odd) td:not(.recipe-group),
.labbook .protocol-table--recipe tbody tr:last-child td:not(.recipe-group) {
  background: transparent;
  border-top: 1px solid #ece5d4;
}

.labbook .protocol-table--recipe tbody tr:first-child td {
  border-top: none;
}

.labbook .protocol-table--recipe td.recipe-group {
  font-weight: 700;
  color: #075a3e;
  background: #f7f4ea;
  white-space: normal;
}

.labbook .protocol-table--recipe tr.group-start:not(:first-child) td {
  border-top: 2px solid #dbe7cb;
}

.labbook .rsite {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 0.2rem 0.55rem;
  align-items: center;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  line-height: 1.4;
}

.labbook .rsite-end {
  font-size: 0.8em;
  font-weight: 400;
  color: var(--c-text-3);
}

.labbook .rsite-bases {
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  font-weight: 700;
  color: var(--c-text);
}

.labbook .rsite-cut {
  display: inline-block;
  width: 3px;
  height: 1.7em;
  margin: 0 0.1em;
  border-radius: 2px;
  background: var(--c-amber);
  vertical-align: -0.5em;
}

@media print {
  .labbook .rsite-cut { background: #000; }
  .labbook .rsite-bases { color: #000; }
  .labbook .rsite-end { color: #444; }
}

@media (max-width: 575.98px) {
  .labbook .protocol > h2 { padding: 1rem 1.15rem 0.95rem; }
  .labbook .protocol-pdf { padding: 0.9rem 1.15rem; }
  .labbook .protocol-body { padding: 1.4rem 1.15rem 1.6rem; }
  .labbook .protocol-table-wrap { width: auto; }
  .labbook .protocol-table-wrap--recipe { width: 100%; }
}

.labbook .protocol-viewer {
  background: #ece6d8;
  border-bottom: 1px solid #e6ddc8;
  line-height: 0;
}

.labbook .protocol-viewer iframe {
  display: block;
  width: 100%;
  height: min(62vh, 720px);
  min-height: 380px;
  border: 0;
  background: #ece6d8;
}

@media (max-width: 575.98px) {
  .labbook .protocol-viewer { display: none; }
}

.labbook .protocol-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem 1.75rem;
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 2.75rem;
}

.labbook .protocol-index-title {
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--c-ink-2);
}

.labbook .protocol-index-title a {
  color: var(--c-ink-2);
  text-decoration: none;
}

.labbook .protocol-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.labbook .protocol-index li {
  margin: 0.3rem 0;
  font-size: 0.93rem;
  line-height: 1.4;
}

.labbook .protocol-index li a {
  color: var(--c-text-2);
  text-decoration: none;
}

.labbook .protocol-index li a:hover,
.labbook .protocol-index li a:focus-visible {
  color: var(--c-text);
}

.labbook .protocol-index a:hover,
.labbook .protocol-index a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 1200px) {
  .labbook .protocol-index { display: none; }
}

.labbook .protocol-group {
  font-family: "Changa", sans-serif;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2rem);
  color: var(--c-ink-2);
  margin: 3.25rem 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--c-ink-2);
  scroll-margin-top: 90px;
}

.labbook .protocol-index + .protocol-group,
.labbook .protocol-index + .protocol-group-head > .protocol-group { margin-top: 0; }
.labbook .protocol-group-head { margin: 0; }

.labbook .protocol,
.labbook .protocol-embed { scroll-margin-top: 90px; }

.labbook .protocol-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}

.labbook .protocol-head > h2 {
  flex: 1 1 auto;
  min-width: 0;
}

.labbook .protocol-embed h2 {
  font-family: "Changa", sans-serif;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.3;
  color: var(--c-ink-2);
  margin: 0 0 0.85rem;
}

.labbook .protocol-embed .protocol-viewer {
  border: 1px solid #e6ddc8;
  border-radius: 10px;
  overflow: hidden;
}

.labbook .protocol-embed .protocol-pdf {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  flex: none;
}

.labbook .protocol-embed .protocol-pdf a {
  gap: 0;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  justify-content: center;
  border-color: var(--c-ink-2);
  background: none;
}

.labbook .protocol-embed .protocol-pdf svg { font-size: 1.15em; }

.labbook .protocol-pdf-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.labbook .protocol-rule {
  border: 0;
  border-top: 2px solid #d9cdb2;
  opacity: 1;
  margin: 2.5rem 0;
}

@media (max-width: 575.98px) {
  .labbook .protocol-index { padding-bottom: 1.2rem; }
  .labbook .protocol-rule { margin: 1.75rem 0; }
}

@media print {
  .labbook .protocol-index { display: none !important; }
  .labbook .protocol-group { margin: 1rem 0 0.5rem; font-size: 14pt; color: #000; border-color: #000; }
  .labbook .protocol-embed { break-inside: avoid; }
  .labbook .protocol-embed h2 { color: #000; font-size: 12pt; margin: 0 0 0.2rem; }
  .labbook .protocol-head { display: block; }
  .labbook .protocol-pdf-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .labbook .protocol-rule { margin: 0.6rem 0; border-color: #999; }
  .labbook .protocol-embed .protocol-pdf { display: block !important; padding: 0; }
  .labbook .protocol-embed .protocol-pdf a {
    display: inline;
    width: auto;
    height: auto;
    border: none;
    padding: 0;
    font-weight: 400;
  }
  .labbook .protocol-embed .protocol-pdf svg { display: none; }
  .labbook .protocol-embed .protocol-pdf a::after {
    content: " — " attr(href);
    font-size: 8.5pt;
    word-break: break-all;
  }
  .labbook #appendix { break-before: page !important; }
}

@media print {

  @page { margin: 15mm 14mm; }

  .navbar,
  footer.footer,
  .back-to-top,
  .labbook .protocol-viewer,
  .labbook .protocol-pdf { display: none !important; }

  html, body {
    background: #fff !important;
    color: #000;
    font-size: 10.5pt;
  }

  .container {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
  }

  header.bg-hero {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 0 0.8rem !important;
  }
  .hero-title { color: #000 !important; font-size: 17pt; margin: 0 !important; }
  .hero-sub { color: #333 !important; font-size: 10pt; margin: 0 !important; }

  a { color: #000 !important; }

  .labbook { max-width: none; }

  .labbook .protocol {
    border: none;
    border-top: 3pt solid #000;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin: 0 0 1.4rem;
  }
  .labbook .protocol + .protocol { break-before: page; }

  .labbook .protocol > h2 {
    background: none !important;
    color: #000 !important;
    padding: 0.45rem 0 0.5rem;
    font-size: 14pt;
    break-after: avoid;
  }

  .labbook .protocol-body { padding: 0; }

  .labbook .protocol-section {
    color: #000;
    border-bottom: 1.5pt solid #000;
    margin: 1.1rem 0 0.6rem;
    font-size: 11pt;
    break-after: avoid;
  }

  .labbook .protocol-body h4 { break-after: avoid; margin: 0.8rem 0 0.3rem; }
  .labbook .protocol-body p { line-height: 1.5; margin-bottom: 0.5rem; }

  .labbook .protocol-table-wrap {
    border: 1pt solid #000;
    border-radius: 0;
    break-inside: avoid;
  }
  .labbook .protocol-table thead th {
    background: none !important;
    color: #000 !important;
    border-bottom: 1.5pt solid #000;
  }
  .labbook .protocol-table td { border-top: 0.5pt solid #999; }
  .labbook .protocol-table tbody tr:nth-child(odd) td { background: none; }
  .labbook .protocol-table tbody tr:last-child td {
    background: none;
    border-top: 1.2pt solid #000;
    font-weight: 700;
  }

}

.hw { max-width: 58rem; }
.hw section { margin-bottom: 3rem; }
.hw h2 {
  font-family: "Changa", sans-serif;
  color: #075a3e;
  margin-bottom: 1rem;
}
.hw h3 {
  font-family: "Changa", sans-serif;
  font-size: 1.12rem;
  color: #1f4a38;
  margin: 2rem 0 0.75rem;
}
.hw p { line-height: 1.8; color: #33413a; }
.hw code {
  font-size: 0.88em;
  color: #1f4a38;
  background: #eef5f1;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}
.hw a { color: #0a58ca; }

.hw-lead {
  border-left: 4px solid #075a3e;
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}
.hw-lead p { font-size: 1.12rem; line-height: 1.85; }
.hw-lead p:first-child { color: #24352c; }

.hw-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.hw-terms > div {
  border: 1px solid #dfe8e2;
  border-left: 3px solid #075a3e;
  border-radius: 0 10px 10px 0;
  background: #fffdf7;
  padding: 1rem 1.1rem;
}
.hw-terms dt {
  font-family: "Changa", sans-serif;
  color: #1f4a38;
  margin-bottom: 0.4rem;
}
.hw-terms dd {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #4a5a51;
}

.hw-flip > .hw-flip-card {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;

  display: grid;
  grid-template-areas: "face";

  cursor: pointer;
}

.hw-flip > .hw-flip-card:focus:not(:focus-visible) { outline: none; }
.hw-flip > .hw-flip-card:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 3px;
}

.hw-flip-card > .hw-flip-front,
.hw-flip-card > .hw-flip-back {
  grid-area: face;
  position: relative;
  margin: 0;
  backface-visibility: hidden;

  transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.25, 1),
              box-shadow 0.35s ease;
}

.hw-flip-card > .hw-flip-front { transform: perspective(1400px) rotateY(0deg); }
.hw-flip-card > .hw-flip-back { transform: perspective(1400px) rotateY(-180deg); }
.hw-flip-card:hover > .hw-flip-front,
.hw-flip-card:focus-within > .hw-flip-front {
  transform: perspective(1400px) rotateY(180deg);
}
.hw-flip-card:hover > .hw-flip-back,
.hw-flip-card:focus-within > .hw-flip-back {
  transform: perspective(1400px) rotateY(0deg);
}

.hw-flip-card:hover > .hw-flip-front,
.hw-flip-card:hover > .hw-flip-back { transition-delay: 0.11s; }
.hw-flip-card:focus-within > .hw-flip-front,
.hw-flip-card:focus-within > .hw-flip-back { transition-delay: 0s; }

.hw-flip-card:hover > .hw-flip-front,
.hw-flip-card:hover > .hw-flip-back,
.hw-flip-card:focus-within > .hw-flip-front,
.hw-flip-card:focus-within > .hw-flip-back {
  box-shadow: 0 10px 26px rgba(7, 90, 62, 0.15);
}

.hw-flip-card > .hw-flip-front::before {
  content: "hover to read";
  position: absolute;
  left: 1.2rem;
  bottom: 1.1rem;
  font-family: "Changa", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d6b5c;
  transition: color 0.3s ease;
}
@media (hover: none) {
  .hw-flip-card > .hw-flip-front::before { content: "tap to read"; }
}

.hw-flip-card > .hw-flip-front::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top-right-radius: 10px;
  background: linear-gradient(45deg, transparent 50%, #a2cab6 50%);
  transition: width 0.35s ease, height 0.35s ease;
}

.hw-flip-card:hover > .hw-flip-front::after,
.hw-flip-card:focus-within > .hw-flip-front::after { width: 26px; height: 26px; }
.hw-flip-card:hover > .hw-flip-front::before,
.hw-flip-card:focus-within > .hw-flip-front::before { color: #1f4a38; }

.hw-terms .hw-flip-front,
.hw-terms .hw-flip-back {
  border: 1px solid #dfe8e2;
  border-left: 3px solid #075a3e;
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.2rem;
}

.hw-ico {
  display: inline-block;
  vertical-align: -0.34em;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  color: #4d8a70;
}

.hw-ico svg { display: block; width: 100%; height: 100%; }

.hw-flip-front .hw-dec-claim{ flex: 1 1 auto; min-width: 0; }

.hw-decs .is-narrow .hw-ico { color: #b5872f; }

.hw-terms .hw-flip-front {
  display: flex;
  align-items: center;
  background: #fffdf7;
  font-size: 1.35rem;
  line-height: 1.35;
  padding-right: 2.3rem;
  padding-bottom: 2.9rem;
}

.hw-terms .hw-flip-back { background: #f2f9f5; }

.hw-decs .hw-flip-front { font-size: 1.12rem; line-height: 1.45; }

.hw-decs .hw-dec-claim { display: block; }

.hw-decs .is-narrow .hw-flip-front,
.hw-decs .is-narrow .hw-flip-back { border-left-color: #d8b26a; }

.hw-dec-flag {
  display: block;
  width: fit-content;
  margin-top: 0.7rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid #e0c49a;
  border-radius: 3px;
  background: #fbf4ea;
  font-family: "Changa", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a5524;
}

@media (prefers-reduced-motion: reduce) {
  .hw-flip-card > .hw-flip-front,
  .hw-flip-card > .hw-flip-back,
  .hw-flip-card:hover > .hw-flip-front,
  .hw-flip-card:hover > .hw-flip-back,
  .hw-flip-card:focus-within > .hw-flip-front,
  .hw-flip-card:focus-within > .hw-flip-back {
    transform: none;
    backface-visibility: visible;
    transition: opacity 0.16s ease;
  }
  .hw-flip-card > .hw-flip-back { opacity: 0; }
  .hw-flip-card:hover > .hw-flip-front,
  .hw-flip-card:focus-within > .hw-flip-front { opacity: 0; }
  .hw-flip-card:hover > .hw-flip-back,
  .hw-flip-card:focus-within > .hw-flip-back { opacity: 1; }
}

@media print {
  .hw-flip > .hw-flip-card {
    display: block;
    cursor: auto;
  }
  .hw-flip-card > .hw-flip-front,
  .hw-flip-card > .hw-flip-back {
    transform: none !important;
    backface-visibility: visible;
    opacity: 1 !important;
    box-shadow: none !important;
    border: 0;
    border-left: 3px solid var(--hw-step-edge, #075a3e);
    border-radius: 0;
    padding: 0 0 0 0.9rem;
  }
  .hw-flip-card > .hw-flip-front { display: block; margin-bottom: 0.3rem; }
  .hw-flip-card > .hw-flip-front::after,
  .hw-flip-card > .hw-flip-front::before { display: none; }
  .hw-flip-card > .hw-flip-back { padding-bottom: 0.6rem; }
}

.md-val-verdict {
  font-size: 1.02rem;
  line-height: 1.75;
}
.md-val-verdict strong { color: var(--nx-lime); font-weight: 700; }

.md-val-kpis {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}
.md-val-kpis > li {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--nx-panel) 72%, transparent);
  border: 1px solid var(--nx-line);
  border-radius: 4px;
  border-left: 3px solid var(--nx-mint);
}
.md-val-kpis > li.is-null { border-left-color: var(--nx-line); }

.md-val-n {
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--nx-lime);
}
.md-val-kpis > li.is-null .md-val-n { color: var(--nx-text); }
.md-val-u { font-size: 0.5em; font-weight: 700; margin-left: 0.15em; }

.md-val-k {
  font-family: "Changa", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nx-text);
  margin-top: 0.15rem;
}
.md-val-s { font-size: 0.82rem; line-height: 1.45; color: var(--nx-muted); }

@media print {
  .md-val-kpis > li { background: none; border-color: #999; border-left-color: #555; }
  .md-val-n, .md-val-k { color: #000; }
  .md-val-s { color: #333; }
  .md-val-verdict strong { color: #000; }
}

.md-pipe {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  --pipe-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --pipe-edge: color-mix(in srgb, var(--nx-mint) 30%, var(--nx-line));
}

.md-pipe > li { position: relative; }
.md-pipe > li:not(:last-child)::before,
.md-pipe > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.md-pipe > li:not(:last-child)::before {
  bottom: -1.4rem;
  width: 2px;
  height: 1.4rem;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--nx-mint) 55%, transparent),
    color-mix(in srgb, var(--nx-mint) 22%, transparent));
}
.md-pipe > li:not(:last-child)::after {
  bottom: -1.4rem;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid color-mix(in srgb, var(--nx-mint) 55%, transparent);
}

.md-pipe-step {
  display: grid;
  grid-template-areas: "body out";
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 1.5rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--nx-panel) 72%, transparent);
  border: 1px solid var(--pipe-edge);
  border-radius: 3px;
  transition: border-color var(--t-fast, 0.15s) ease,
              box-shadow var(--t-fast, 0.15s) ease;
}
.md-pipe-step:hover { border-color: var(--nx-mint); }

.md-pipe-no {
  grid-area: body;
  align-self: start;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-family: var(--pipe-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nx-ground);
  background: var(--nx-mint);
  border-radius: 3px;
}

.md-pipe-body { grid-area: body; display: grid; gap: 0.35rem; padding-left: 2.5rem; }
.md-pipe-body strong {
  font-family: var(--pipe-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-text);
}
.md-pipe-body > span { font-size: 0.9rem; line-height: 1.6; color: var(--nx-muted); }

.md-pipe-out {
  grid-area: out;
  justify-self: end;
  font-family: var(--pipe-mono);
  font-size: 0.76rem;
  color: var(--nx-mint);
  background: color-mix(in srgb, var(--nx-mint) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--nx-mint) 28%, transparent);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}
.md-pipe-out::before {
  content: "\2500\25B8";
  color: color-mix(in srgb, var(--nx-mint) 55%, transparent);
  margin-right: 0.4rem;
}

.md-pipe-end .md-pipe-no { background: var(--nx-lime); }

.md-pipe-fork { display: grid; gap: 0.7rem; }

.md-pipe-ask {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--pipe-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-mint);
  justify-self: stretch;
  animation: md-pipe-breathe 5s ease-in-out infinite;
}

@keyframes md-pipe-breathe {
  0%, 100% {
    text-shadow: 0 0 6px color-mix(in srgb, var(--nx-mint) 30%, transparent);
  }
  50% {
    text-shadow: 0 0 10px color-mix(in srgb, var(--nx-mint) 70%, transparent),
                 0 0 22px color-mix(in srgb, var(--nx-mint) 40%, transparent);
  }
}
.md-pipe-ask::before,
.md-pipe-ask::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right,
    transparent, color-mix(in srgb, var(--nx-mint) 45%, transparent));
}
.md-pipe-ask::after { background: linear-gradient(to left,
    transparent, color-mix(in srgb, var(--nx-mint) 45%, transparent)); }

.md-pipe-fork > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.md-pipe-fork > ul > li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.9rem 1.1rem;
  background: color-mix(in srgb, var(--nx-ground) 55%, transparent);
  border: 1px dashed var(--pipe-edge);
  border-radius: 3px;
  animation: md-pipe-edge-breathe 5s ease-in-out infinite;
}
.md-pipe-fork > ul > li:nth-child(2) { animation-delay: 2.5s; }

@keyframes md-pipe-edge-breathe {
  0%, 100% {
    border-color: var(--pipe-edge);
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    border-color: var(--nx-mint);
    box-shadow: 0 0 16px -3px color-mix(in srgb, var(--nx-mint) 38%, transparent);
  }
}

.md-pipe-cond {
  justify-self: start;
  font-family: var(--pipe-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-blue-up);
}
.md-pipe-cond::after {
  content: " \2500\2500";
  color: color-mix(in srgb, var(--nx-blue-up) 45%, transparent);
}

.md-pipe-fork > ul > li strong {
  font-family: var(--pipe-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nx-text);
}
.md-pipe-fork > ul > li > span:last-child {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--nx-muted);
}

@media (prefers-reduced-motion: reduce) {
  .md-pipe-step { transition: none; }
  .md-pipe-ask {
    animation: none;
    text-shadow: 0 0 10px color-mix(in srgb, var(--nx-mint) 55%, transparent);
  }
  .md-pipe-fork > ul > li {
    animation: none;
    border-color: color-mix(in srgb, var(--nx-mint) 65%, var(--nx-line));
  }
}

@media (max-width: 640px) {
  .md-pipe-step { grid-template-areas: "body" "out"; grid-template-columns: 1fr; gap: 0.6rem; }
  .md-pipe-out { justify-self: start; white-space: normal; margin-left: 2.5rem; }
  .md-pipe-fork > ul { grid-template-columns: 1fr; }
}

@media print {
  .md-pipe-step,
  .md-pipe-fork > ul > li { background: none; border-color: #999; box-shadow: none; }
  .md-pipe-body strong,
  .md-pipe-fork > ul > li strong { color: #000; }
  .md-pipe-body > span,
  .md-pipe-fork > ul > li > span:last-child { color: #333; }
  .md-pipe-no { background: #ddd; color: #000; }
  .md-pipe-out { background: none; border-color: #999; color: #000; }
  .md-pipe-ask, .md-pipe-cond { color: #000; }
}

.hw-aside {
  font-size: 0.93rem;
  color: #4a5a51;
  border-left: 3px solid #cfdcd5;
  padding-left: 1rem;
  margin-top: 1.5rem;
}
.hw-caution {
  background: #fff6e2;
  border-left: 4px solid #d8b26a;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin-top: 1.25rem;
  color: #6b4a1f;
  font-size: 0.95rem;
}
.hw-caution em { color: #8a5a12; font-style: normal; font-weight: 700; }

.hw-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.hw-module {
  position: relative;
  border: 2px solid #cfdcd5;
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.3rem;
  background: #fffdf7;
}
.hw-module[data-module="primary"] { border-color: #75b299; background: #f6fffb; }
.hw-module[data-module="secondary"] { border-color: #dfe8e2; }
.hw-module-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.2rem;
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fffdf7;
  background: #075a3e;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.hw-module[data-module="secondary"] .hw-module-tag { background: #6b7a72; }
.hw-module h3 { margin: 0.35rem 0 0.5rem; font-size: 1.15rem; }
.hw-module-what { font-size: 0.95rem; margin-bottom: 1rem; }

.hw-figure {
  margin: 1.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.hw-diagram {
  border: 1px solid #dfe8e2;
  border-radius: 14px;
  background: #fffdf7;
  padding: 1rem;
}
.hw-svg { display: block; width: 100%; height: auto; }
.hw-svg text { font-family: inherit; }
.hw-svg-label { font-size: 17px; font-weight: 600; fill: #24352c; }
.hw-svg-sub { font-size: 14px; fill: #5f6e66; }
.hw-svg-note { font-size: 13px; fill: #8a978f; }
.hw-svg-angle { font-size: 15px; font-weight: 700; fill: #1f4a38; }

.hw-svg-case {
  fill: #f7f9f8;
  stroke: #cfdcd5;
  stroke-width: 2;
  stroke-dasharray: 6 5;
}
.hw-svg-body { fill: none; stroke: #6b7a72; stroke-width: 2; }
.hw-svg-blue-box { fill: #e8f0fd; stroke: #7aa5dd; stroke-width: 1.5; }
.hw-svg-sensor { fill: #eaf4ef; stroke: #4f8f74; stroke-width: 1.5; }
.hw-svg-sample { fill: #fdf1dd; stroke: #d8b26a; stroke-width: 2; }
.hw-svg-stop { fill: #3a4640; }
.hw-svg-meniscus { fill: none; stroke: #c99b4e; stroke-width: 2; }
.hw-svg-axis {
  fill: none;
  stroke: #9aa8a1;
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}
.hw-svg-right-angle { fill: none; stroke: #1f4a38; stroke-width: 2; }
.hw-svg-dim { fill: none; stroke: #6b7a72; stroke-width: 1.2; }

.hw-beam-blue { fill: none; stroke: #2b6cb0; stroke-width: 3.5; }
.hw-beam-green { fill: none; stroke: #2e9e5b; stroke-width: 3.5; }

.hw-figure figcaption {
  padding-top: 0.85rem;
  font-size: 0.86rem;
  color: #5f6e66;
  line-height: 1.7;
}

.hw3d {
  --hw3d-paper: #fffdf7;
  --hw3d-ink: #24352c;
  --hw3d-ink-2: #4a5a51;
  --hw3d-ink-3: #8a978f;
  --hw3d-rule: #dfe8e2;
  --hw3d-accent: #1f4a38;
  --hw3d-accent-2: #4f8f74;
  --hw3d-beam-ex: #2b6cb0;
  --hw3d-beam-em: #2e9e5b;
  --hw3d-sample: #c99b4e;
  --hw3d-frame: #3f544a;
  --hw3d-ghost: #9aa8a1;
  --hw3d-warn: #a8632a;
  --hw3d-bb: #dcd7c8;
  --hw3d-bb-dark: #a8a294;
  --hw3d-pcb: #1e2428;
  --hw3d-metal: #b4bac0;
  --hw3d-gold: #bd9a2e;
  --hw3d-ledw: #f2eedd;
  --hw3d-rail-r: #b8402f;

  border: 1px solid #dfe8e2;
  border-radius: 14px;
  background: #fffdf7;
  padding: 1rem;
}
.hw3d-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}
.hw3d-viewport {
  position: relative;
  min-height: 520px;
  border: 1px solid #e8efe9;
  border-radius: 10px;
  background: #fbfcfb;
  overflow: hidden;
}
.hw3d-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.hw3d-viewport canvas:active { cursor: grabbing; }
.hw3d-viewport canvas:focus-visible { outline: 2px solid #2b6cb0; outline-offset: -2px; }
.hw3d-hud,
.hw3d-hint {
  position: absolute;
  bottom: 0.5rem;
  font-size: 0.7rem;
  color: #8a978f;
  pointer-events: none;
}
.hw3d-hud { left: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hw3d-hint { right: 0.75rem; }

.hw3d-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 0.9rem 1.1rem;
  min-width: 0;
  border-top: 1px solid #e8efe9;
  padding-top: 0.85rem;
}
.hw3d-grp { min-width: 0; }
.hw3d-grp h4 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a978f;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.hw3d-slider { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.55rem; }
.hw3d-slider:last-child { margin-bottom: 0; }
.hw3d-slider label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4a5a51;
  margin: 0;
}
.hw3d-slider label span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #8a978f;
}
.hw3d input[type="range"] { width: 100%; accent-color: #4f8f74; height: 18px; margin: 0; }
.hw3d-views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hw3d-views button {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.2rem;
  background: #f2f5f2;
  color: #4a5a51;
  border: 1px solid #cfdcd5;
  border-radius: 6px;
  cursor: pointer;
}
.hw3d-views button:hover { border-color: #4f8f74; color: #24352c; }
.hw3d-layers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 0.3rem 0.9rem;
}
.hw3d-layers label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4a5a51;
  margin: 0;
  cursor: pointer;
}
.hw3d-layers input { accent-color: #4f8f74; margin: 0; width: 14px; height: 14px; flex: none; }

.hw3d-readout { font-size: 0.78rem; color: #4a5a51; min-height: 4rem; }
.hw3d-readout .hw3d-rname { font-weight: 600; color: #24352c; display: block; margin-bottom: 0.15rem; }
.hw3d-readout .hw3d-rnum {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: #8a978f;
  display: block;
}
.hw3d-readout .hw3d-rnote { display: block; margin-top: 0.35rem; }
.hw3d-dim { color: #8a978f; }

.hw3d-list {
  margin-top: 0.9rem;
  border: 1px solid #e8efe9;
  border-radius: 10px;
  background: #fff;
}

.hw3d-list-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.hw3d-list-head::-webkit-details-marker { display: none; }

.hw3d-list-head:hover { background: #f6f9f7; }

.hw3d-list[open] .hw3d-list-head { border-bottom: 1px solid #e8efe9; }

.hw3d-list-head:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: -3px;
}

.hw3d-list-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f4a38;
}

.hw3d-list-count {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a978f;
}

.hw3d-list-state {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: #4f8f74;
}

.hw3d-list-caret { transition: transform 0.18s ease; }
.hw3d-list[open] .hw3d-list-caret { transform: rotate(180deg); }

.hw3d-list-verb[data-open="true"] { display: none; }
.hw3d-list[open] .hw3d-list-verb[data-open="true"] { display: inline; }
.hw3d-list[open] .hw3d-list-verb[data-open="false"] { display: none; }

.hw3d-list-body {
  padding: 0 0.15rem 0.15rem;
  overflow-x: auto;
}

.hw3d-list-foot {
  margin: 0;
  padding: 0.55rem 0.65rem 0.5rem;
  text-align: right;
}

.hw3d-list-close {
  padding: 0.35rem 0.85rem;
  border: 1px solid #cfe0d6;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f4a38;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hw3d-list-close:hover { background: #eef6f1; border-color: #a9cbb8; }

.hw3d-list-close:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .hw3d-list-foot { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .hw3d-list-caret { transition: none; }
}

@media print {
  .hw3d-list-head { display: none; }
  .hw3d-list-foot { display: none; }
  .hw3d-list { border: 0; }
}
.hw3d-list table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
.hw3d-list th,
.hw3d-list td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid #e8efe9; vertical-align: top; }
.hw3d-list thead th {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a978f;
  font-weight: 600;
}
.hw3d-list tbody tr { cursor: pointer; }
.hw3d-list tbody tr:hover { background: #f2f5f2; }
.hw3d-list tbody tr[aria-selected="true"] { background: #f2f5f2; box-shadow: inset 3px 0 0 #4f8f74; }
.hw3d-list tbody tr:last-child td { border-bottom: 0; }
.hw3d-name { font-weight: 600; }
.hw3d-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  white-space: nowrap;
  color: #4a5a51;
}

@media (max-width: 767.98px) {
  .hw3d-viewport { min-height: 360px; }
  .hw3d-hint { display: none; }
}

.hw-table {
  width: 100%;
  min-width: 18rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.hw-fold {
  margin: 1.5rem auto;
  border: 1px solid #e8efe9;
  border-radius: 10px;
  background: #fff;
}

.hw-fold-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.hw-fold-head::-webkit-details-marker { display: none; }
.hw-fold-head:hover { background: #f6f9f7; }
.hw-fold[open] .hw-fold-head { border-bottom: 1px solid #e8efe9; }

.hw-fold-head:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: -3px;
}

.hw-fold-title {
  font-family: "Changa", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f4a38;
}

.hw-fold-meta {
  font-family: "Changa", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a978f;
  font-variant-numeric: tabular-nums;
}

.hw-fold-state {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-family: "Changa", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #4f8f74;
}

.hw-fold-verb[data-open="true"] { display: none; }
.hw-fold[open] .hw-fold-verb[data-open="true"] { display: inline; }
.hw-fold[open] .hw-fold-verb[data-open="false"] { display: none; }

.hw-fold-caret { transition: transform 0.18s ease; }
.hw-fold[open] .hw-fold-caret { transform: rotate(180deg); }

.hw-fold-body { padding: 0 0.15rem 0.15rem; }

.hw-fold .hw-figure { margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .hw-fold-caret { transition: none; }
}

@media print {
  .hw-fold-head { display: none; }
  .hw-fold { border: 0; }
}

.hw-figure-table { margin-inline: auto; }

#model-zone-params .hw-figure-table { margin-inline: 0; max-width: none; }
#model-zone-params .hw-table th:first-child,
#model-zone-params .hw-table td:first-child { min-width: 11rem; width: 26%; }

.md-cv-figure { margin: 2rem 0; }
.md-cv-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--nx-line);
  border-radius: 4px;
  background: #fff;
}

@media (min-width: 768px) {
  .hw-figure-table { max-width: 72%; }
  .hw-fold { max-width: 72%; }
  .hw3d-list { max-width: 72%; margin-inline: auto; }
}
.hw-table caption {
  caption-side: top;
  font-family: "Changa", sans-serif;
  font-size: 1rem;
  color: #1f4a38;
  text-align: left;
  padding-bottom: 0.5rem;
}
.hw-table th,
.hw-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #dfe8e2;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.hw-table thead th {
  font-family: "Changa", sans-serif;
  font-weight: 400;
  color: #075a3e;
  border-bottom: 2px solid #075a3e;
}
.hw-table tbody tr:last-child td { border-bottom: none; }
.hw-table .is-total {
  background: #f2f9f5;
  font-weight: 700;
  color: #1f4a38;
}
.hw-spec { margin: 0; font-size: 0.9rem; }
.hw-spec > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px dashed #cfdcd5;
}
.hw-spec dt {
  font-family: "Changa", sans-serif;
  font-weight: 400;
  color: #075a3e;
}
.hw-spec dd { margin: 0; color: #4a5a51; line-height: 1.6; }
.hw-table .hw-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hw-table.hw-keep td:first-child { white-space: nowrap; }

body.hw-nexus .hw .hw-table caption { color: var(--nx-mint); }

.hw-steps { padding-left: 1.3rem; margin: 1.25rem 0 1.5rem; }
.hw-steps li { margin-bottom: 0.55rem; line-height: 1.7; padding-left: 0.2rem; }

.hw-jump .sw-links { margin: 0 0 2.4rem; }
.hw section[id],
.hw h3[id] { scroll-margin-top: 90px; }
.hw p[id] { scroll-margin-top: 110px; }

.hw-pick {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  margin-bottom: 0;
}
.hw-pick-card { display: flex; flex-direction: column; }
.hw-pick-card h3 { margin: 0.35rem 0 0.5rem; font-size: 1.2rem; }
.hw-pick-card .hw-spec { margin-bottom: 1rem; }
.hw-pick-card .hw-spec > div { grid-template-columns: 5.6rem 1fr; gap: 0.5rem; }
.hw-pick-photo {
  margin: 0 0 1rem;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}
.hw-pick-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hw-pick-go {
  margin-top: auto;
  align-self: flex-start;
  font-family: "Changa", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.hw-pick-go::after { content: " \2193"; }
.hw-pick-go:hover .hw-pick-see,
.hw-pick-go:focus-visible .hw-pick-see { text-decoration: underline; }
.hw-pick-now { display: none; }

.hw-pick.is-live .hw-pick-card { cursor: pointer; transition: border-color 0.15s ease; }
.hw-pick.is-live .hw-pick-card:hover { border-color: #75b299; }
.hw-pick.is-live .hw-pick-card.is-on { border-color: #075a3e; cursor: default; }
.hw-pick.is-live .is-on .hw-pick-see { display: none; }
.hw-pick.is-live .is-on .hw-pick-now { display: inline; }
.hw-pick.is-live .is-on .hw-pick-go { color: inherit; }
.hw-pick.is-live .hw-pick-card.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-0.55rem - 1px);
  width: 1.1rem;
  height: 1.1rem;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border: solid #075a3e;
  border-width: 0 2px 2px 0;
}
@media (max-width: 640px) {
  .hw-pick.is-live .hw-pick-card.is-on::after { content: none; }
}

.hw-build { scroll-margin-top: 90px; }
.hw-build-head {
  margin: 0 0 2.4rem;
  padding-top: 1.2rem;
  border-top: 2px solid #075a3e;
}
.hw .hw-build-title { font-size: clamp(1.9rem, 1.6rem + 1.1vw, 2.5rem); margin: 0 0 0.9rem; }
.hw-build-head .sw-links { margin: 0; }
.hw-build-end {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 0 0 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid #cfdcd5;
  font-family: "Changa", sans-serif;
}
@media print {
  .hw-build[hidden] { display: block !important; }
}

body.hw-nexus .hw-pick.is-live .hw-pick-card:hover { border-color: var(--nx-mint); }
body.hw-nexus .hw-pick.is-live .hw-pick-card.is-on,
body.hw-nexus .hw-pick.is-live .hw-pick-card.is-on::after { border-color: var(--nx-lime); }
body.hw-nexus .hw .hw-pick.is-live .is-on .hw-pick-go { color: var(--nx-muted); }
body.hw-nexus .hw-build-head { border-top-color: var(--nx-mint); }
body.hw-nexus .hw-build-end { border-top-color: var(--nx-line); }

.hw-gains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.hw-gain {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 0.95rem;
  border: 1px solid #cfdcd5;
  border-radius: 12px;
  background: #fffdf7;
}
.hw-gain-what {
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f4a38;
}
.hw-gain-fig {
  margin: 0.3rem 0 0.5rem;
  font-family: "Changa", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: #075a3e;
  font-variant-numeric: tabular-nums;
}
.hw-gain-from { font-weight: 500; color: #6b7a72; }
.hw-gain-arrow { margin: 0 0.4rem; color: #6b7a72; }
.hw .hw-gain p { margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.6; }
.hw-gain-basis {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed #cfdcd5;
  font-size: 0.82rem;
  color: #5f6e66;
}
@media (max-width: 640px) {
  .hw-gains { grid-template-columns: minmax(0, 1fr); }
}
body.hw-nexus .hw-gain { background: var(--nx-panel); border-color: var(--nx-line); }
body.hw-nexus .hw-gain-what { color: var(--nx-mint); }
body.hw-nexus .hw-gain-fig { color: var(--nx-lime); }
body.hw-nexus .hw-gain-from,
body.hw-nexus .hw-gain-arrow,
body.hw-nexus .hw-gain-basis { color: var(--nx-muted); }
body.hw-nexus .hw-gain-basis { border-top-color: var(--nx-line); }

.hw-vis {
  --hw-v1: #6b7a72;
  --hw-v2: #075a3e;
  --hw-accent: #1f7a5c;
  --hw-ink: #33413a;
  --hw-ink2: #5f6e66;
  --hw-rule: #cfdcd5;
  --hw-surf: #fffdf7;
  display: block;
  width: 100%;
  height: auto;
  margin: 0.2rem 0 0.5rem;
  overflow: visible;
}
body.hw-nexus .hw-vis {
  --hw-v1: var(--nx-muted);
  --hw-v2: var(--nx-lime);
  --hw-accent: var(--nx-mint);
  --hw-ink: var(--nx-text);
  --hw-ink2: var(--nx-muted);
  --hw-rule: var(--nx-line);
  --hw-surf: var(--nx-panel);
}
.hw-vis text { font-family: inherit; font-size: 10.5px; fill: var(--hw-ink2); }
.hw-vis .hw-vis-strong { fill: var(--hw-ink); font-weight: 600; }
.hw-vis .hw-vis-rule { stroke: var(--hw-rule); stroke-width: 1; fill: none; }
.hw-vis .hw-vis-line { stroke: var(--hw-v1); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.hw-vis .hw-curve { stroke: var(--hw-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hw-vis .hw-on { fill: var(--hw-accent); }
.hw-vis .hw-on-soft { opacity: 0.55; }
.hw-vis .hw-hollow { fill: none; stroke: var(--hw-v1); stroke-width: 1.5; }
.hw-vis .hw-v1 { fill: var(--hw-v1); }
.hw-vis .hw-v2 { fill: var(--hw-v2); }
.hw-vis .hw-dot { stroke: var(--hw-surf); stroke-width: 2; }
.hw-vis .hw-dot:hover, .hw-vis .hw-bar:hover { filter: brightness(1.2); }
.hw-vis .hw-ring { fill: var(--hw-surf); stroke: var(--hw-v2); stroke-width: 2; }
.hw-vis .hw-ring-v1 { fill: var(--hw-surf); stroke: var(--hw-v1); stroke-width: 2; }
.hw-vis.hw-mod { --hw-ex: #2f6fb0; }
body.hw-nexus .hw-vis.hw-mod { --hw-ex: var(--nx-blue-up); }
.hw-vis .hw-mod-changed { fill: color-mix(in srgb, var(--hw-v2) 20%, transparent); stroke: var(--hw-v2); stroke-width: 1.5; }
.hw-vis .hw-mod-ready { fill: none; stroke: var(--hw-v2); stroke-width: 1.5; stroke-dasharray: 5 3; }
.hw-vis .hw-mod-untried { fill: none; stroke: var(--hw-v1); stroke-width: 1.5; stroke-dasharray: 1.5 3; stroke-linecap: round; }
.hw-vis .hw-mod-same { fill: none; stroke: var(--hw-rule); stroke-width: 1.5; }
.hw-vis .hw-mod-ex { fill: none; stroke: var(--hw-ex); stroke-width: 2; }
.hw-vis .hw-mod-ex-head { fill: var(--hw-ex); }
.hw-vis .hw-mod-em { fill: none; stroke: var(--hw-accent); stroke-width: 2; }
.hw-vis .hw-mod-em-head { fill: var(--hw-accent); }
.hw-vis .hw-mod-tag { fill: var(--hw-v2); }
.hw-chart { margin: 1.2rem 0 1rem; }
.hw-chart .hw-vis { min-width: 520px; }
body.hw-nexus .hw-chart .hw-vis { --hw-surf: var(--nx-ground, #0d2630); }

.hw-steps2 { display: grid; gap: 0.45rem; margin: 0.35rem 0 0.75rem; }
.hw-steps2-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem; }
.hw-steps2-who { flex: 0 0 4.4rem; font-size: 0.8rem; color: #5f6e66; }
.hw .hw-steps2 ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hw-step;
}
.hw .hw-steps2 li,
.hw-steps2 .hw-read {
  margin: 0;
  padding: 0.26rem 0.6rem;
  border: 1px solid #cfdcd5;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: nowrap;
}
.hw .hw-steps2 li { counter-increment: hw-step; }
.hw .hw-steps2 li::before { content: counter(hw-step) "\00a0"; font-weight: 700; color: #075a3e; }
.hw-steps2 .hw-read { font-variant-numeric: tabular-nums; font-weight: 600; }
.hw-steps2-loop .hw-steps2-who { flex-basis: 100%; }
.hw .hw-steps2-loop ol { display: grid; grid-template-columns: repeat(2, max-content); }
.hw-steps2-done { font-size: 0.8rem; font-weight: 600; color: #075a3e; }
.hw-steps2-done::before { content: "\2713\00a0"; }
.hw-steps2-row.is-v2 li,
.hw-steps2-row.is-v2 .hw-read { border-color: #075a3e; }
body.hw-nexus .hw-steps2-who { color: var(--nx-muted); }
body.hw-nexus .hw .hw-steps2 li,
body.hw-nexus .hw-steps2 .hw-read { border-color: var(--nx-line); color: var(--nx-text); }
body.hw-nexus .hw .hw-steps2 li::before { color: var(--nx-mint); }
body.hw-nexus .hw-steps2-done { color: var(--nx-lime); }
body.hw-nexus .hw-steps2-row.is-v2 li,
body.hw-nexus .hw-steps2-row.is-v2 .hw-read { border-color: var(--nx-lime); }

@keyframes hw-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes hw-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hw-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hw-step-1 { 0%, 3% { opacity: 0.28; } 7%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes hw-step-2 { 0%, 17% { opacity: 0.28; } 21%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes hw-step-3 { 0%, 31% { opacity: 0.28; } 35%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes hw-step-4 { 0%, 45% { opacity: 0.28; } 49%, 94% { opacity: 1; } 100% { opacity: 0.28; } }
@keyframes hw-step-5 { 0%, 59% { opacity: 0; } 63%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hw-step-0 { 0%, 17% { opacity: 0; } 21%, 94% { opacity: 1; } 100% { opacity: 0; } }

.is-armed:not(.is-seen) .hw-dot,
.is-armed:not(.is-seen) .hw-bar,
.is-armed:not(.is-seen) .hw-late,
.is-armed:not(.is-seen) .hw-pop { opacity: 0; }
.is-seen .hw-pop {
  animation: hw-fade 0.25s ease both;
  animation-delay: calc(var(--i, 0) * 28ms + 0.1s);
}
.is-seen .hw-dot {
  transform-box: fill-box;
  animation: hw-drop 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.32s + 0.15s);
}
.is-seen .hw-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: hw-grow 0.7s ease-out both;
  animation-delay: calc(var(--i, 0) * 0.25s + 0.15s);
}
.is-seen rect.hw-bar { transform-origin: 0 50%; animation-name: hw-grow-x; }
.is-seen .hw-late {
  animation: hw-fade 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 0.3s + 0.6s);
}
.is-seen .hw-steps2-loop li:nth-child(1) { animation: hw-step-1 7s linear infinite; }
.is-seen .hw-steps2-loop li:nth-child(2) { animation: hw-step-2 7s linear infinite; }
.is-seen .hw-steps2-loop li:nth-child(3) { animation: hw-step-3 7s linear infinite; }
.is-seen .hw-steps2-loop li:nth-child(4) { animation: hw-step-4 7s linear infinite; }
.is-seen .hw-steps2-loop .hw-steps2-done { animation: hw-step-5 7s linear infinite; }
.is-seen .hw-steps2-loop.is-v2 .hw-steps2-done { animation-name: hw-step-0; }

.hw-svg-slot { fill: none; stroke: #6b7a72; stroke-width: 1.2; stroke-dasharray: 3 3; }
body.hw-nexus .hw-svg-slot { stroke: #6f93a1; }

.hw-fold-prose { padding: 0.85rem 1rem 0.4rem; }
.hw-fold-prose > p:first-child { margin-top: 0; }
.hw-fold-prose .hw-steps { margin: 0.8rem 0 0.6rem; }
.hw-fold .hw-figure figcaption { padding: 0.7rem 0.85rem 0.75rem; }

.hw-nb { white-space: nowrap; }

.hw-table tbody th[scope="row"] { font-weight: 600; }

.hw-table.hw-vs th,
.hw-table.hw-vs td { width: 50%; }

.hw-lead.hw-lead-tight { margin-bottom: 1.6rem; }
.hw-keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}
.hw-keys > div {
  padding: 0.95rem 1.1rem 1rem;
  border: 1px solid #cfdcd5;
  border-radius: 12px;
  background: #fffdf7;
}
.hw-keys dt {
  font-family: "Changa", sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: #075a3e;
  font-variant-numeric: tabular-nums;
}
.hw-keys dd { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.5; color: #4a5a51; }
body.hw-nexus .hw .hw-keys > div { background: var(--nx-panel); border-color: var(--nx-line); }
body.hw-nexus .hw .hw-keys dt { color: var(--nx-lime); }
body.hw-nexus .hw .hw-keys dd { color: var(--nx-muted); }

@media (min-width: 768px) {
  .hw-fold.hw-fold-wide { max-width: none; }
}
.hw-fold-prose > .hwx-rig { margin: 1rem 0 1.1rem; }
.hw-fold-prose > .hw-terms { margin-bottom: 0.8rem; }

.hw-ref { font-size: 0.72em; line-height: 0; }
.hw-ref a { text-decoration: none; padding: 0 0.1em; }
.hw-refs { padding-left: 1.3rem; font-size: 0.9rem; }
.hw-refs li { margin-bottom: 0.6rem; line-height: 1.6; }
.hw section[id] li[id] { scroll-margin-top: 90px; }

.hw-cost .hw-cost-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hw-cost .hw-cost-head th {
  padding-top: 0.9rem;
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d6b5c;
  text-align: left;
}

.hw-cost .hw-cost-sub td {
  font-weight: 600;
  color: #1f4a38;
  border-bottom: 1px solid #cfe0d6;
}

.hw-refs-note { font-size: 0.88rem; color: #5f6e66; }

@media (max-width: 575.98px) {
  .hw-lead { padding-left: 1rem; }
  .hw-diagram { padding: 0.6rem; }
  
}

@media (max-width: 767.98px) {
  .hw-diagram { overflow-x: auto; overflow-y: hidden; }
  .hw-svg { min-width: 680px; }
}

.hw {
  --hwx-dark: #0a1216;
  --hwx-dark2: #111c22;
  --hwx-rule: #23333b;
  --hwx-ink: #c9d6dc;
  --hwx-dim: #7e959f;
  --hwx-blue: #5baeff;
  --hwx-green: #64de9a;
  --hwx-amber: #e6a94b;
  --hwx-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
              "Liberation Mono", monospace;
}

.hwx-rig {
  margin: 1.8rem 0 1.2rem;
  border: 1px solid var(--hwx-rule);
  border-radius: 12px;
  background: var(--hwx-dark);
  color: var(--hwx-ink);
  overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(2, 10, 14, 0.55);
}

.hwx-rig-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--hwx-rule);
}

.hwx-rig-head h3 {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: 1rem;
  color: #eaf2f6;
}

.hwx-rig-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--hwx-dim);
}

.hwx-rig-figure { padding: 0; }
.hwx-rig-figure > svg { display: block; width: 100%; height: auto; }

.hwx-rig-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--hwx-rule);
  background: var(--hwx-dark2);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--hwx-dim);
}

.hwx-fallback {
  margin: 0;
  padding: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--hwx-dim);
  grid-column: 1 / -1;
}

.hwx-verdict:empty { display: none; }

.hwx-lab { background: var(--hwx-dark); }
.hwx-lab-solid rect { fill: #1a272d; stroke: #2f454f; stroke-width: 1; }
.hwx-lab-bore { fill: #0e171c; stroke: #3a5761; stroke-width: 1; }
.hwx-lab-stop line { stroke: #41616c; stroke-width: 2; stroke-dasharray: 3 4; }
.hwx-lab-cell { fill: #0c161b; stroke: #44636e; stroke-width: 1; }
.hwx-lab-trap { fill: #141f24; stroke: #2f454f; stroke-width: 1; }
.hwx-lab-trap-in { fill: #0b1216; }

.hwx-lab-label text {
  font-family: "Changa", sans-serif;
  font-size: 12px;
  fill: #7e959f;
}

.hwx-lab-tick text {
  font-family: var(--hwx-mono);
  font-size: 10px;
  fill: #3e535c;
}

.hwx-lab-warn {
  font-family: "Changa", sans-serif;
  font-size: 12px;
  fill: var(--hwx-amber);
}

#hwxBeamEx, #hwxBeamTh, #hwxBeamEm, #hwxScatter, #hwxAmbient, #hwxFill {
  transition: opacity 0.25s ease, fill 0.25s ease;
}

.hwx-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--hwx-dark2);
  border-bottom: 1px solid var(--hwx-rule);
}
.hwx-tabs:empty, .hwx-ctrls:empty { display: none; }

.hwx-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: -1px;
  padding: 0.7rem 1.1rem 0.7rem;
  border: 0;
  border-top: 2px solid transparent;
  border-right: 1px solid var(--hwx-rule);
  border-bottom: 1px solid var(--hwx-rule);
  background: none;
  font-family: "Changa", sans-serif;
  text-align: left;
  color: var(--hwx-dim);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hwx-tab:last-child { border-right: 0; }
.hwx-tab-name { font-size: 0.98rem; font-weight: 600; line-height: 1.2; color: #a9bec7; }
.hwx-tab-hint { font-size: 0.72rem; line-height: 1.35; }
.hwx-tab:hover { background: rgba(255, 255, 255, 0.025); }
.hwx-tab:hover .hwx-tab-name { color: #eaf2f6; }
.hwx-tab[aria-pressed="true"] {
  background: var(--hwx-dark);
  border-top-color: var(--hwx-green);
  border-bottom-color: var(--hwx-dark);
}
.hwx-tab[aria-pressed="true"] .hwx-tab-name { color: #fff; }
.hwx-tab[aria-pressed="true"] .hwx-tab-hint { color: var(--hwx-ink); }
.hwx-tab:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: -3px; }

@media (max-width: 575.98px) {
  .hwx-tab { padding: 0.65rem 0.6rem; }
  .hwx-tab-name { font-size: 0.86rem; }
  .hwx-tab-hint { display: none; }
}

.hwx-ctrls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  padding: 0.95rem 1.1rem 1rem;
  border-bottom: 1px solid var(--hwx-rule);
  background: var(--hwx-dark);
}

.hw .hwx-ask {
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--hwx-ink);
}

.hwx-cgroup { display: flex; flex-direction: column; gap: 0.4rem; }

.hwx-clabel {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f868f;
}

.hwx-seg { display: flex; flex-wrap: wrap; gap: 0.25rem; }

.hwx-seg button {
  padding: 0.35rem 0.7rem;
  border: 1px solid #26383f;
  border-radius: 5px;
  background: #16242b;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  color: #a9bec7;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hwx-seg button:hover { background: #1e313a; color: #dce9ee; }

.hwx-seg button:focus-visible {
  outline: 3px solid var(--hwx-amber);
  outline-offset: 2px;
}

.hwx-seg button[aria-pressed="true"] {
  background: #e7eff3;
  border-color: #e7eff3;
  color: #0a1216;
  font-weight: 600;
}

.hwx-seg button.hwx-hot[aria-pressed="true"] {
  background: var(--hwx-blue);
  border-color: var(--hwx-blue);
  color: #04121f;
}

.hwx-seg button.hwx-lit[aria-pressed="true"] {
  background: var(--hwx-green);
  border-color: var(--hwx-green);
  color: #042415;
}

.hwx-seg button.hwx-warm[aria-pressed="true"] {
  background: var(--hwx-amber);
  border-color: var(--hwx-amber);
  color: #241503;
}

.hwx-seg button:disabled { opacity: 0.38; cursor: default; }
.hwx-seg button:disabled:hover { background: #16242b; color: #a9bec7; }

.hwp {
  --hwp-both: #b3c1cb;
  --hwp-v1: #66757f;
  --hwp-v2: #49c5b6;
  --hwp-proxy: #5fb3e0;
  --hwp-ex: #5fb3e0;
  --hwp-em: #55d98a;
  --hwp-absent: #8fa5b0;
  --hwp-hot: #e6b060;
  --hwp-bed: #12222b;
  --hwp-grid: #23404d;
}

.hwp { scroll-margin-top: 90px; }

.hwp-tools { order: 1; margin-left: auto; }
.hwp-wide { order: 2; flex-basis: 100%; }

.hwp-stage {
  position: relative;
  height: clamp(320px, 52vw, 540px);
  height: clamp(320px, min(52vw, 100vh - 130px), 540px);
  -webkit-user-select: none;
  user-select: none;
}
.hwp-view {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.hwp-view:active { cursor: grabbing; }
.hwp-view:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: -3px; }

.hwp-legend,
.hwp-hud,
.hwp-hint {
  position: absolute;
  margin: 0;
  pointer-events: none;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--hwx-dim);
}
.hw .hwp-legend {
  top: 0.7rem;
  left: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  padding: 0;
  list-style: none;
}
.hw .hwp-legend li { margin: 0; }
.hwp-legend li::before {
  content: "";
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  background: var(--hwp-both);
}
.hwp-legend .hwp-k-v1::before { background: var(--hwp-v1); }
.hwp-legend .hwp-k-v2::before { background: var(--hwp-v2); }
.hwp-legend .hwp-k-proxy::before { background: var(--hwp-proxy); }
.hwp-legend .hwp-k-ex::before { background: var(--hwp-ex); }
.hwp-legend .hwp-k-em::before { background: var(--hwp-em); }
.hwp-legend .hwp-k-absent::before {
  background: none;
  box-shadow: inset 0 0 0 1px var(--hwp-absent);
}
.hwp-hud {
  left: 1.1rem;
  bottom: 0.65rem;
  font-family: var(--hwx-mono);
  font-size: 0.78rem;
  color: var(--hwx-ink);
}
.hwp-hint { right: 1.1rem; bottom: 0.65rem; }

.hwp-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--hwx-dim);
  pointer-events: none;
}
.hwp-status:empty { display: none; }

.hw .hwp-readout { min-height: 7.6rem; }
.hwp-r-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 0.25rem;
}
.hw .hwp-readout .hwp-r-head p { margin: 0; }
.hw .hwp-readout p {
  max-width: none;
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--hwx-ink);
}
.hw .hwp-readout .hwp-r-lead { color: var(--hwx-dim); }
.hw .hwp-readout .hwp-r-lead strong { color: #eaf2f6; font-weight: 600; }
.hw .hwp-readout .hwp-r-name {
  font-family: "Changa", sans-serif;
  font-size: 1.02rem;
  color: #eaf2f6;
}
.hwp-back {
  padding: 0.3rem 0.7rem;
  border: 1px solid #26383f;
  border-radius: 5px;
  background: #16242b;
  font-family: "Changa", sans-serif;
  font-size: 0.76rem;
  color: #a9bec7;
  cursor: pointer;
}
.hwp-back:hover { background: #1e313a; color: #dce9ee; }
.hwp-r-tools { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.hw .hwp-readout .hwp-r-steps {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.35rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--hwx-dim);
}
.hw .hwp-readout .hwp-r-steps li { margin: 0; padding-left: 0.15rem; transition: color 0.2s ease; }
.hw .hwp-readout .hwp-r-steps li.is-done { color: var(--hwx-ink); }
.hw .hwp-readout .hwp-r-steps li.is-now { color: #fff; }
.hw .hwp-readout .hwp-r-steps li.is-now::marker { color: var(--hwp-em); }
@media (prefers-reduced-motion: reduce) {
  .hw .hwp-readout .hwp-r-steps li { transition: none; }
}
.hwp-back:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }

.hwp-meta {
  font-family: var(--hwx-mono);
  font-size: 0.76rem;
  color: var(--hwx-dim);
}
.hwp-meta .hwp-qty { color: var(--hwx-ink); }
.hwp-meta .hwp-dims::before,
.hwp-meta .hwp-state::before { content: "\00b7\00a0"; }
.hwp-note { color: var(--hwx-dim); }
.hw .hwp .hwp-dl {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: inherit;
  font-size: 0.78rem;
  color: var(--hwx-blue);
  overflow-wrap: anywhere;
}
.hw .hwp .hwp-dl code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hw .hwp .hwp-dl span { color: var(--hwx-dim); }
.hw .hwp button.hwp-dl { cursor: pointer; }
.hw .hwp button.hwp-dl code { text-decoration: underline; }
.hw .hwp button.hwp-dl:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }
.hw .hwp span.hwp-dl { color: var(--hwx-dim); }

.hw .hwp .hwp-get {
  max-width: none;
  margin: 0.2rem 0 0.9rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--hwx-dim);
}
.hw .hwp .hwp-get a { color: var(--c-teal); overflow-wrap: anywhere; }
.hw .hwp .hwp-get .hwp-back { display: block; margin-top: 0.6rem; }

.hwp-files { border-top: 1px solid var(--hwx-rule); }
.hwp-files-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.hwp-files-head::-webkit-details-marker { display: none; }
.hwp-files-head:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: -3px; }
.hwp-files-title { font-family: "Changa", sans-serif; font-size: 0.92rem; color: #eaf2f6; }
.hwp-files-meta { font-size: 0.78rem; color: var(--hwx-dim); }
.hwp-files-state { margin-left: auto; font-size: 0.78rem; color: var(--hwx-green); }
.hwp-files:not([open]) .hwp-files-state [data-open="true"],
.hwp-files[open] .hwp-files-state [data-open="false"] { display: none; }
.hwp-files-body { padding: 0 1.1rem 1rem; }

.hw .hwp-group h4 {
  margin: 1.1rem 0 0.35rem;
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hwx-ink);
}
.hwp-group:first-child h4 { margin-top: 0.2rem; }
.hwp-group h4 span {
  margin-left: 0.5rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hwx-dim);
}
.hw .hwp-group ul { margin: 0; padding: 0; list-style: none; }
.hw .hwp-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.25fr);
  gap: 0.1rem 1rem;
  align-items: baseline;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-top: 1px solid var(--hwx-rule);
  font-size: 0.84rem;
  line-height: 1.5;
}
.hwp-group li.is-on { background: rgba(230, 176, 96, 0.12); }
.hwp-group .hwp-name { color: var(--hwx-ink); font-weight: 600; }
.hwp-group .hwp-note { grid-column: 1 / -1; grid-row: 2; font-size: 0.78rem; }
.hwp-group .hwp-dl { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
.hwp-group button.hwp-pick {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--hwx-green);
  cursor: pointer;
}
.hwp-group button.hwp-pick:hover { text-decoration: underline; }
.hwp-group button.hwp-pick:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }

@media (max-width: 720px) {
  .hw .hwp-group li { grid-template-columns: minmax(0, 1fr); }
  .hwp-group .hwp-note,
  .hwp-group .hwp-dl { grid-column: 1; grid-row: auto; }
  .hwp-group .hwp-dl { justify-self: start; text-align: left; }
  .hwp-tools { margin-left: 0; }
  .hwp-hint { display: none; }
}

.hwx-log-track {
  display: flex;
  padding: 1.05rem 0.6rem 0.85rem;
  overflow-x: auto;
  background: var(--hwx-dark2);
  border-bottom: 1px solid var(--hwx-rule);
}
.hwx-log-track:empty { display: none; }

.hwx-log-stop {
  position: relative;
  flex: 1 0 5.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0 0.3rem 0.25rem;
  border: 0;
  border-radius: 6px;
  background: none;
  font-family: "Changa", sans-serif;
  text-align: center;
  color: var(--hwx-dim);
  cursor: pointer;
}
.hwx-log-stop::before {
  content: "";
  position: absolute;
  top: calc(0.5rem - 1px);
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--hwx-rule);
  transition: background-color 0.2s ease;
}
.hwx-log-stop:first-child::before { content: none; }
.hwx-log-stop.is-past::before,
.hwx-log-stop[aria-pressed="true"]::before { background: var(--hwx-green); }

.hwx-log-dot {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--hwx-rule);
  border-radius: 50%;
  background: var(--hwx-dark2);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hwx-log-stop.is-past .hwx-log-dot { border-color: var(--hwx-green); }
.hwx-log-stop[aria-pressed="true"] .hwx-log-dot {
  border-color: var(--hwx-green);
  background: var(--hwx-green);
  box-shadow: 0 0 0 5px rgba(100, 222, 154, 0.16);
}
.hwx-log-stop:hover .hwx-log-dot { border-color: var(--hwx-green); }

.hwx-log-when {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.hwx-log-name { font-size: 0.8rem; line-height: 1.25; color: var(--hwx-ink); }
.hwx-log-stop[aria-pressed="true"] .hwx-log-when { color: var(--hwx-green); }
.hwx-log-stop[aria-pressed="true"] .hwx-log-name,
.hwx-log-stop:hover .hwx-log-name { color: #fff; }
.hwx-log-stop:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }

.hwx-log-list { list-style: none; margin: 0; padding: 0; }
.hwx-log-item { padding: 1.15rem 1.2rem 1.25rem; }
.hwx-log-item + .hwx-log-item { border-top: 1px solid var(--hwx-rule); }
.hwx-log.is-live .hwx-log-list { display: grid; }
.hwx-log.is-live .hwx-log-item { grid-area: 1 / 1; border-top: 0; }
.hwx-log.is-live .hwx-log-item.is-off { visibility: hidden; }

.hwx-log-date {
  margin-bottom: 0.3rem;
  font-family: "Changa", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hwx-dim);
}
.hw .hwx-log-item h4 {
  margin: 0 0 0.6rem;
  font-family: "Changa", sans-serif;
  font-size: 1.2rem;
  color: #eaf2f6;
}
.hwx-log-item p { margin: 0 0 0.75rem; font-size: 0.93rem; line-height: 1.7; }
.hwx-log-item p:last-child { margin-bottom: 0; }
.hwx-log-change { padding-left: 0.9rem; border-left: 3px solid var(--hwx-green); }
.hwx-log-change > span {
  display: block;
  margin-bottom: 0.1rem;
  font-family: "Changa", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hwx-green);
}

.hwx-log-nav { display: inline-flex; align-items: center; gap: 0.7rem; }
.hwx-log-nav button {
  padding: 0.3rem 0.75rem;
  border: 1px solid #26383f;
  border-radius: 5px;
  background: #16242b;
  font-family: "Changa", sans-serif;
  font-size: 0.76rem;
  color: #a9bec7;
  cursor: pointer;
}
.hwx-log-nav button[hidden] { display: none; }
.hwx-log-nav button:hover:not(:disabled) { background: #1e313a; color: #dce9ee; }
.hwx-log-nav button:disabled { opacity: 0.4; cursor: default; }
.hwx-log-nav button:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hwx-log-stop::before, .hwx-log-dot { transition: none; }
}

.hwx-rig-body { padding: 1.1rem; border-top: 1px solid var(--hwx-rule); }

.hwx-readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(86px, 100%), 1fr));
  gap: 0.4rem;
}

.hwx-ch {
  position: relative;
  padding: 0.5rem 0.55rem 0.6rem;
  border: 1px solid #1e2e35;
  border-radius: 6px;
  background: #101b21;
  overflow: hidden;
}

.hwx-ch-name {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  color: #758c96;
}

.hwx-ch-name span { font-weight: 400; color: #53686f; }

.hwx-ch-val {
  margin: 0;
  font-family: var(--hwx-mono);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #e6f1f6;
  font-variant-numeric: tabular-nums;
}

.hwx-ch-val.hwx-ch-nr {
  font-family: "Changa", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  color: #53686f;
  padding: 0.2rem 0 0.15rem;
}

.hwx-ch.is-blank { background: transparent; border-style: dashed; }
.hwx-ch.is-blank .hwx-ch-val { font-weight: 400; color: #3e535c; }

.hwx-ch[data-ch="F4"] { border-color: rgba(100, 222, 154, 0.5); }
.hwx-ch[data-ch="F4"] .hwx-ch-name { color: var(--hwx-green); }

.hwx-readout-note {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #61787f;
}
.hwx-readout-note:empty { display: none; }

.hwx-ch-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #2f4650;
  transition: width 0.35s ease;
}

.hwx-ch[data-band="v"] .hwx-ch-bar { background: #8e7be8; }
.hwx-ch[data-band="b"] .hwx-ch-bar { background: var(--hwx-blue); }
.hwx-ch[data-band="g"] .hwx-ch-bar { background: var(--hwx-green); }
.hwx-ch[data-band="o"] .hwx-ch-bar { background: #e8a24b; }
.hwx-ch[data-band="r"] .hwx-ch-bar { background: #e2705f; }
.hwx-ch[data-band="k"] .hwx-ch-bar { background: #c3d2d8; }

.hwx-bench-main { border-top: 1px solid var(--hwx-rule); }
.hwx-bench-read { padding: 1.1rem; border-top: 1px solid var(--hwx-rule); }
@media (min-width: 900px) {
  .hwx-bench-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .hwx-bench-main > .hwx-rig-figure { align-self: center; }
  .hwx-bench-read {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-top: 0;
    border-left: 1px solid var(--hwx-rule);
  }
  .hwx-bench-read .hwx-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
  .hwx-bench-read .hwx-ch {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem 0.5rem;
  }
  .hwx-bench-read .hwx-ch-val { font-size: 0.98rem; }
}

.hwx-verdict {
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #3b4c55;
  border-radius: 8px;
  background: #101b21;
}

.hwx-verdict.is-ok { border-left-color: var(--hwx-green); }
.hwx-verdict.is-warn { border-left-color: var(--hwx-amber); }
.hwx-verdict.is-none { border-left-color: #3b4c55; }

.hwx-verdict-title {
  margin: 0 0 0.2rem;
  font-family: "Changa", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #eaf3f7;
}

.hwx-verdict-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #b6c8d0;
}

.hwx-verdict-src {
  margin: 0.5rem 0 0;
  font-family: var(--hwx-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: #61787f;
}

.hwx-chan { cursor: help; }
.hwx-chan:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }
.hwx-chan rect { transition: opacity 0.15s ease; }
.hwx-chan:hover rect, .hwx-chan:focus-visible rect { opacity: 1; }

.hwx-chan-n {
  text-anchor: middle;
  font-family: "Changa", sans-serif;
  font-size: 12px;
  font-weight: 700;
  fill: #08141a;
}

.hwx-sch { background: var(--hwx-dark); }
.hwx-sch-name { font-family: "Changa", sans-serif; font-size: 13px; fill: #c4d6dd; }
.hwx-sch-sub { font-size: 11px; fill: #7e959f; }
.hwx-sch-val { font-family: var(--hwx-mono); font-size: 11px; fill: #c4d6dd; }
.hwx-sch-i2c { fill: #8edcb4; }

.hwx-node { cursor: help; }
.hwx-node:focus-visible { outline: 3px solid var(--hwx-amber); outline-offset: 2px; }
.hwx-node:hover text, .hwx-node:focus-visible text { fill: #ffffff; }

.hwx-timing {
  position: relative;
  height: 76px;
  border: 1px solid var(--hwx-rule);
  border-radius: 8px;
  background: var(--hwx-dark2);
  overflow: hidden;
}

.hwx-tseg {
  position: absolute;
  top: 14px;
  height: 30px;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  border-radius: 4px;
  font-family: "Changa", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #04121f;
  white-space: nowrap;
  overflow: hidden;
}

.hwx-t-settle { background: var(--hwx-amber); }
.hwx-t-read { background: var(--hwx-blue); }
.hwx-t-margin {
  background: #1b2a31;
  border: 1px dashed #3b525c;
  color: var(--hwx-dim);
}

.hwx-tmark {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed #6a828c;
}

.hwx-tmark span {
  position: absolute;
  top: 2px;
  left: 5px;
  font-family: "Changa", sans-serif;
  font-size: 0.64rem;
  white-space: nowrap;
  color: #8aa2ac;
}

.hwx-tmark-led { border-left-color: var(--hwx-blue); }
.hwx-tmark-led span { color: var(--hwx-blue); }

.hwx-tmark-left span { left: auto; right: 5px; }

.hwx-tscale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1em;
  font-family: var(--hwx-mono);
  font-size: 0.6rem;
  color: #5e747d;
}

.hwx-tscale span { position: absolute; padding-left: 3px; }

.hwx-tscale-end {
  right: 4px;
  left: auto !important;
  padding: 0 !important;
  color: var(--hwx-amber);
}
.hwx-timing {
  position: relative;
  height: 76px;
  border: 1px solid var(--hwx-rule);
  border-radius: 8px;
  background: var(--hwx-dark2);
  overflow: hidden;
}

.hwx-tseg {
  position: absolute;
  top: 14px;
  height: 30px;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  border-radius: 4px;
  font-family: "Changa", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #04121f;
  white-space: nowrap;
  overflow: hidden;
}

.hwx-t-settle { background: var(--hwx-amber); }
.hwx-t-read { background: var(--hwx-blue); }
.hwx-t-margin {
  background: #1b2a31;
  border: 1px dashed #3b525c;
  color: var(--hwx-dim);
}

.hwx-tmark {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed #6a828c;
}

.hwx-tmark span {
  position: absolute;
  top: 2px;
  left: 5px;
  font-family: "Changa", sans-serif;
  font-size: 0.64rem;
  white-space: nowrap;
  color: #8aa2ac;
}

.hwx-tmark-led { border-left-color: var(--hwx-blue); }
.hwx-tmark-led span { color: var(--hwx-blue); }

.hwx-tmark-left span { left: auto; right: 5px; }

.hwx-tscale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1em;
  font-family: var(--hwx-mono);
  font-size: 0.6rem;
  color: #5e747d;
}

.hwx-tscale span { position: absolute; padding-left: 3px; }

.hwx-tscale-end {
  right: 4px;
  left: auto !important;
  padding: 0 !important;
  color: var(--hwx-amber);
}
.hwx-tip {
  position: fixed;
  z-index: 1080;
  max-width: 320px;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  background: var(--hwx-dark, #0a1216);
  color: #c9d6dc;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.hwx-tip b {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

@media (max-width: 575.98px) {
  .hwx-rig-head,
  .hwx-ctrls,
  .hwx-rig-body,
  .hwx-rig-foot { padding-left: 0.8rem; padding-right: 0.8rem; }

  .hwx-rig-figure { overflow-x: auto; overflow-y: hidden; }
  .hwx-lab { min-width: 560px; }

}

@media (prefers-reduced-motion: reduce) {
  #hwxBeamEx, #hwxBeamTh, #hwxBeamEm, #hwxScatter, #hwxAmbient, #hwxFill,
  .hwx-ch-bar { transition: none; }
}

@media print {
  .hwx-rig {
    border-color: #999;
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  .hwx-rig-head,
  .hwx-rig-foot { border-color: #ccc; background: #fff; }
  .hwx-rig-head h3 { color: #000; }
  .hwx-rig-sub, .hwx-rig-foot { color: #444; }

  .hwx-ctrls, .hwx-tip, .hwx-log-track, .hwx-log-nav { display: none !important; }

  .hwx-lab { background: #fff; }
  .hwx-lab-solid rect { fill: #f2f2f2; stroke: #888; }
  .hwx-lab-label text { fill: #222; }

  .hwx-rig-body { border-color: #ccc; }
  .hwx-ch { border-color: #ccc; background: #fff; }
  .hwx-ch-val { color: #000; }
  .hwx-verdict { background: #f7f7f7; }
  .hwx-verdict-title { color: #000; }
  .hwx-verdict-text { color: #222; }
}

.cap-page { max-width: 58rem; }

.cap-intro p { font-size: 1.1rem; line-height: 1.8; color: #33413a; }
.cap-intro { margin-bottom: 1.75rem; }

.cap-game { margin: 0 0 1.5rem; }

.cap-field {
  position: relative;
  height: clamp(360px, 62vh, 560px);
  border: 1px solid #cfe0d6;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f4faf6 55%, #e9f4ee 100%),
    repeating-linear-gradient(0deg, rgba(7, 90, 62, 0.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(7, 90, 62, 0.05) 0 1px, transparent 1px 40px);
  overflow: hidden;
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAA1CAYAAAAklDnhAAANGklEQVR42rVYa3iU1bV+197fN5fMLSEJSSBIxMCjoK1IOK1WjyFWrVqtvWSUpyoevNVrj/X0OdTztJNYq6I97ePliGARlSJ1glVR8VIhEat4SbgICA0YIFxC7pfJXL75vr3X+TEzGqlWCbB/zTMz38y713rXWu+7CCNOlKMyTGEFAC+tWzC5qLTwepfb/KnWCIK11sxCStmTGLaWL75nQf3TT69Naa2JiBhHeIzcC+aoJAqrhSsjRaecMu3XbrfrKm+eOz+VtABWDCJIQSQN4Rt3XNG8q+ddd8qWLcM/BKDB0CAcERgaCeKNzU+dX1gYeiyU768Y6B+CZra9XrdpugxAA47jIJlMKwbr4rEFZuvm3fedP2Pur5qbF5pVVTfYRwQkl47XNy65pmRc4eNCCLJSluMP+gwCobujv9W2nN2mx5SCMCE4xjclbdmaCBogsXPb/ppwzc1vRaNRGQ5n0jrqiLy+Ycl3SsuL1iqlAGbWCjIZT78x2BdbHrllQbSlpSWR/b5r9ZY/31FWXnhPMp50pCkFK8R2bdv3gx/V3PwWMwsi0qPiSGRJxBMIeR8xXYawh21HCom27Xtrw9+9ZcVn/GGRfWkT0b2vrn+CKirH/S42FLeDIV+ocHzBojlz5nwTgJW93GHzRZxVdcKlgVDg1OFYwvYH8ozBgcQ74e/esoKZZWNjxABARKRzN2VuNC44be49nQd6lgWCPjM2mEgXFAanXHDFjDOJiKPRqBhNRITX56oVklgQtJQCynG2MUdEE5po1qx6Z+TtMmVarZmZ/vHRvjtjg/EEEQy3x+TCktD3AaC4tphGBURKeapjOwSGYADQAFH9l+aZiJiIuOXNhg6l1AHTZQg77ZDb4/4OAKpG9agIKwgoVkqDs8TF1wzsokUtGoBDRMiSvLSsbIY329wOOyqCAYvos+dI/mskzJlMLXk+EpBCFChHQwgCM9IdHYOjLl+hFe8yDcnIktEQgpj5K29UVFLqA+BTSsEwDADcDuy0ss8eftWkLetNaUhiZjAzlKMmEBFXo/oLedLQ0CCYI4LcRqlhSj8AW0rJiWFrAwA0oUmOKiK7dnQ+HRuKJ12mIePDSR0c4ztr8QsPTM1kIfJPeZpaO1US1Wu/13O2z58HAJyIW9R1YKABALobukc/c1Z/9PTdu9KN/MHeFanW+BvcuG3ZKgBo5mZzJPEiWWAr1y08c/3BF/tbDjxv70y+yW9uWvrcIY3v8CMS5ah87Lcv3dXedqApVBBwD/YPWcUl+Re8/OHjN1RRlZ3jCzNTHep4beuymyZMKltF4JDP7zX27+5+5/XXPro6C2LU0RC1qNUrVqxIr3rhrUv7Ogc2FYwJudOWnS4bX/Tomi1LHyUiikQigoh4/qJ5QbfLPd8wRABEerB3eN+Ha7bMfuC/H4jVoQ5HoksMIuLssBqcNv3kH0LKaH6Br8qybBw/efyNq5r/1Hlh1bX1AHDcCWUeZratVJp9/jzZ+tHeyH/d/Lu9zc0LzSo6Mhkgst1SRyIRcdX5t+06veInZ7bt7Lg8lbS2p21b5RcEr7/pppv8AGAYcpLpMQsAKCKCP+D1MjPFYlOOWKF9Sq76+nodiUQEMzsXzZj7rNa82nSZkoQwK08fFwAAKNsrZYYyQhBsWxUQEaMaOGpSMQdm3LhxZmNjhAjwaKXBrH2mtgMAOvJ8PqbslGdmBsjBUTr/VG4zZsxATc1djlJsEQHMbA4PprwA4PG5ASKAASEEGabsBwA0NR3diGRL1WFmCKKJju2AAEOKTD4SsbhWRQXaMA3Z1zPUv2XTnleJCF8HRjQalTmJUI0mfeiENw4BQeHwNGPd7ugifyDvokQ8xUrzAVvxfgAYTlo9WmthmIYCOD5j5sTpzNxeP6veiUQior7+i+VDhCMiZ1MOUX2cK/kREWkQRGG1dsczT5SUFf60p6vfKhxb4O7rHHrpf35+bzcz0/811PUmhlM7vL7QZK/PXR4Ilb2wri26unVL29w5l8xrZ+ZPPQ4zqK4uQnV1dSAivWrTknMKC3w16bST7OvuX0lEH+UCQESZrplT4I1bl/6yfFLp/f29Q2m32zQcS6V2fNxxzmXn3vh+Q0ODCIfD6oorzvXN/s/Lri0dV3g/iBDK97u6O/q2f9y849+/WXv+AFpaMHPmz+ycXACApu1Lf1NcWlhPAEgQEnErbSXST7b8ff2dt865rzcSiQjKhXTVe4vKi8uLtpkuw8tasxBSfrx+1+zZ37vt2RFWgUgQs2as3vzUwxMrx93S2z2QGFtamLdja/tvz5t+9W8+TcfC6/OKiiu8E8sK/628omSVkASX2wUwkE6n4fPnob9ncGtz0+aaG6+s66ZGbjRm0Sznrdbl88rGF9470B9L+3x5ru2b9sz7cfXP5uc+/yy3EdGEatH6TFP+N86YttEX8JYRoAYH4jutlLXA43VVCSmnCEElrBEAUcgf8JixgUR/Kmk9IYVR5HLLi915rjH+oA97dx1sqJl2ZZhyLu/dT559vqAo+INk0kJiONV3zUUPHX/59nPjqMv0l0MrIBwOq+feeqim8qSK1abbAGsgPz8ACYmUYyGVTEM5CtIUSKcc3vOPjnkXn3nd/QDwh8WRSd+qnroymO+bxpqxZ2fnbMqR5Z225etC+cFvMzMGemObz5oy+zQQnC+bpzmH+NK6BdeVlJfc6tjKZyXTnyST1nuOrbYOdA0Nmh5DB4K+6Xv2dK25+fI7P2RuNLZu7RYnnxxOL/rrPVOmf+vE931+b6i3c+CDjNiZOtW1bnfDjk3dK3lL/yv8duvyDxGB+CrJGPlMOMm5v5wb+AqtK3O/l9U5WNv6zF92JP7G7+1q6Pu0fLVWEiBopeE4auzEJye6qJ5S/8q51VO9zqX2iQeeiAHAoy/fW+DVusTn9ZiePL/tDXoqB3qGDhJRc+65mWKmDQDK0fGsZHcbWQmQZka76TIqkvGUDgTzyn5x99WTbruibluubL/kloKI1CvvP1YVyA+c5/a4zwP4BAYXEZEEoP2BPHco5B985YPFs3v2dX7Qtun1wQnTL/RWVBad7w96vpe2bK2UjhtNaBIAtGOrNYYhz9ZaOcFQwH3iyRW3E9F1zIwIR0T9IS25kRsNInJe37Dk6gnHly5hZpAgEGXHIjM0M5LxpGOYIlReUbyqqCTUfVLV5B5mBLw+T7lyFKSU6OuOPWo0oUkDQMf+nmU+v+dXpmmasaG4Gj9x7LVrNj+liegGABjZwjNCaJa9quVP55SWFz1spSxlGIa0EjbSlr1Xa+6BBpNEwB/MmwwAtpW2TZcsloYsVo6CYysVCPlk27YDD158+jV1NLIC3tz05F2TTjzu1709A2kCZKggIPe3dy/s2NV53+wLbt+d1a1UT/U68shN/gsvrnnX5/ecojWjryv2ctf+/t+3rG7fOH/+/EEAqKysdD/4l3lXlZQW3h3M943VWkNrhmFIDA8l7Y723shF3557LzMLGrGwEWFqwJqtlzxfUTn+4r6efmbNKr8wZPR09u/btrH9jP+49I59RMTP//2RUydUjFvkcrlmSpdArD/R9fhDr560+I+L+7KK73Ou8P5HIqVVZ1VeJl3iDMN0eVTaObCrtWvRnEt/viHLM/6cBGBmmgGYa7b++Y8bD75or+94gT/YuyL1SWo1v7H+qTsA4NUNj1dvOPhicnPvy7yxcyW/t/u57UtX/uE0ELCweaF5iO+lKEe/1HCN/Ex8zuWDsJ7Irpl2xe07tu4+WyndL6U07bTNSisXAPh9eT/yB/M8ju04qaS1d9n/vnzWlZf8Yj3riLghs0cbWeocprBiZmpsbDSYozLKUZnpKZ+XBsYhiyx+NvoTWVsb5b82zW/XSuURSWIGsUZnxqTLItt22DANY2gg0fXww0u6v2pllQ29c1hSsbZ2KhOR9gYLx5AQLgCslEI8lhjO/KhgymyRIIQcGq3p/kogueP1unU22eTYCi7D1ZMBAg0AWRU/PNp9yNcGIg3SGSkHcmzFA4PxZMZRqGKtGUIICEJXdgMgjhkQzZoZgBACtu04lqN6AcAwpZe1BkCw087wMbMTuaPS5BKCIIQAa453t/cOZolXoHVm0SWE6DxmQJqaMu9pqEqP1y1AgGYefPu1DQMPPnirmwhBpTUIgJM+av7qyyPCrINCEKSU0I7ufO2116yib0wMMODXSucicuyBaAcqNxfSaWcnAFSWTGJB9GkTEsYxBNJdPY0BQArRpZzMf9pWehMAtO3ZE2BGHmeHyNGD8UUNDVsZAOLxZKdlpbVSGsNDyd0AEBuO+Zi1l4g0gY5oVfU1UlPHALBn+959WnGvaRqsbeXPtHdoBjSYmZlV2nbiRwuI8UVzIavse95ti+72+3zFpsfMdjnZJwTF3V53vmGYiA0m2o/JNmCkDwag7KS9pvNg7/iBntjbzExUR91rpy5/W9uJ8Xvbev7WfXCoEQBmVderIwXy/9Wz5uo3oRLuAAAAAElFTkSuQmCC") 17 27, crosshair;
}

.cap-hud {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  pointer-events: none;
}

.cap-pill {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  border: 1px solid #bcd8c9;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.94);
  font-family: "Changa", sans-serif;
  color: #075a3e;
}

.cap-pill-key {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4d6b5c;
}

.cap-score-value,
.cap-time-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.cap-unit { font-size: 0.8rem; color: #4d6b5c; }

.cap-score-value.is-loss,
.cap-final-score.is-loss { color: #8a5524; }

.cap-game:not([data-state="playing"]) .cap-hud { display: none; }

.cap-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  padding: 0;
  border: 1px solid #bcd8c9;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.94);
  color: #075a3e;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.15s ease;
}

.cap-pause:hover { background: #eaf7dd; }

.cap-pause:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 2px;
}

.cap-game:not([data-state="playing"]) .cap-pause,
.cap-game[data-paused="true"] .cap-pause { display: none; }

.cap-target {
  position: absolute;
  z-index: 2;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(7, 90, 62, 0.25));
}

.cap-target-ahl { filter: drop-shadow(0 4px 8px rgba(92, 58, 30, 0.32)); }

.cap-ahl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 3px solid #5c3a1e;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #a9713d 0%, #8a5524 52%, #6f421a 100%);
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff6e6;
  text-shadow: 0 1px 2px rgba(58, 33, 12, 0.55);
  pointer-events: none;
}

.cap-field .cap-target { cursor: inherit; }

.cap-target img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.cap-target:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 4px;
}

.cap-target.is-in { animation: cap-pop 0.24s cubic-bezier(0.2, 1.4, 0.4, 1); }

@keyframes cap-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cap-target.is-out { animation: cap-fade 0.22s ease forwards; }

@keyframes cap-fade {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.72); opacity: 0; }
}

.cap-burst,
.cap-plus {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.cap-burst {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 3px solid #075a3e;
  border-radius: 50%;
  animation: cap-ring 0.55s ease-out forwards;
}

@keyframes cap-ring {
  from { transform: scale(0.55); opacity: 0.9; }
  to { transform: scale(1.9); opacity: 0; }
}

.cap-plus {
  margin: -52px 0 0 -14px;
  font-family: "Changa", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #075a3e;
  text-shadow: 0 1px 0 #fffdf7;
  animation: cap-float 0.8s ease-out forwards;
}

@keyframes cap-float {
  from { transform: translateY(6px); opacity: 0; }
  25% { opacity: 1; }
  to { transform: translateY(-34px); opacity: 0; }
}

.cap-burst.is-loss { border-color: #8a5524; }
.cap-plus.is-loss { color: #8a5524; }

.cap-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(244, 250, 246, 0.93);
  cursor: auto;
}

.cap-game[data-state="idle"] .cap-panel-start,
.cap-game[data-state="over"] .cap-panel-end { display: flex; }

.cap-game[data-paused="true"] .cap-panel-pause { display: flex; }

.cap-panel h2 {
  font-family: "Changa", sans-serif;
  font-size: 1.4rem;
  color: #075a3e;
  margin: 0;
}

.cap-panel-start {
  justify-content: safe center;
  overflow-y: auto;
}

.cap-rules {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 32rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.cap-rule {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 0.7rem;
}

.cap-rule-chip {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

.cap-rule-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cap-rule-chip .cap-ahl {
  border-width: 2px;
  font-size: 0.6rem;
  letter-spacing: 0;
}

.cap-rule-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #33413a;
}

.cap-rule-score {
  display: inline-block;
  min-width: 2.1rem;
  margin-right: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #e4f3e9;
  font-family: "Changa", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  color: #075a3e;
}

.cap-rule-score.is-loss {
  background: #f6ecdf;
  color: #7a4a1c;
}

.cap-levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.cap-level { position: relative; margin: 0; }

.cap-level input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cap-level-box {
  display: block;
  min-width: 128px;
  padding: 0.7rem 1rem;
  border: 1px solid #bcd8c9;
  border-radius: 12px;
  background: #fffdf7;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cap-level-name {
  display: block;
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f4a38;
}

.cap-level-box:hover { border-color: #75b299; background: #f2f9f5; }

.cap-level input:checked + .cap-level-box {
  border-color: #075a3e;
  background: #e7f4ee;
  box-shadow: inset 0 0 0 1px #075a3e;
}

.cap-level input:focus-visible + .cap-level-box {
  outline: 3px solid #d8b26a;
  outline-offset: 2px;
}

.cap-btn {
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fffdf7;
  background: #075a3e;
  border: 1px solid #075a3e;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cap-btn:hover { background: #0a7150; }

.cap-btn:focus-visible {
  outline: 3px solid #d8b26a;
  outline-offset: 3px;
}

.cap-btn-quiet {
  color: #075a3e;
  background: #fffdf7;
  font-weight: 400;
}

.cap-btn-quiet:hover { background: #eaf7dd; }

.cap-note,
.cap-final-meta {
  margin: 0;
  font-size: 0.86rem;
  color: #4d6b5c;
}

.cap-final {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
}

.cap-final-score {
  font-family: "Changa", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: #075a3e;
  font-variant-numeric: tabular-nums;
}

.cap-final-unit {
  font-family: "Changa", sans-serif;
  font-size: 1rem;
  color: #4d6b5c;
}

.cap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .cap-field { height: clamp(320px, 58vh, 440px); }
  .cap-target { width: 60px; height: 60px; }
  .cap-burst { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .cap-hud { top: 8px; right: 8px; gap: 0.35rem; }
  .cap-pill { padding: 0.3rem 0.6rem; }
  .cap-score-value, .cap-time-value { font-size: 1.05rem; }
  .cap-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap-level-box { min-width: 0; padding: 0.55rem 0.5rem; }

  .cap-panel { gap: 0.65rem; padding: 1.1rem; }
  .cap-ahl { font-size: 0.92rem; }
  .cap-rule { grid-template-columns: 2.1rem 1fr; gap: 0.6rem; }
  .cap-rule-chip { width: 2.1rem; height: 2.1rem; }
  .cap-rule-chip .cap-ahl { font-size: 0.52rem; }
  .cap-rule-text { font-size: 0.9rem; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-target.is-in,
  .cap-target.is-out { animation: none; }
  .cap-burst, .cap-plus { animation: none; opacity: 0; }
}

@media print {
  .cap-field { display: none; }
}

.nb {
  --nb-w: max(100%, min(100vw - 4rem, 88rem));
  --nb-rule: rgba(7, 90, 62, 0.14);
  --nb-muted: #5c6b62;
  --nb-week-col: 6.5rem;
  position: relative;
  width: var(--nb-w);
  max-width: none;
  left: 50%;
  margin: 0 0 4rem calc(var(--nb-w) / -2);
  font-family: "Changa", sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.nb [data-track="wet"] { --nb-accent: #075a3e; }
.nb [data-track="dry"] { --nb-accent: #ff7a00; }
.nb [data-track="hp"]  { --nb-accent: #6cd82e; }

.nb-intro { margin: 0 0 1.5rem; }

.nb-intro h2 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #075a3e;
  margin: 0;
}

.nb-tallies {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 1rem;
}

.nb-status {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--nb-muted);
  margin: 0 0 2.5rem;
}

.nb-status-n {
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
  color: #075a3e;
}

.nb-tally {
  border-top: 3px solid var(--nb-accent);
  padding: 0.9rem 0 0;
  min-width: 9rem;
}

.nb-tally-n {
  display: block;
  font-weight: 800;
  font-size: 3.8rem;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #075a3e;
}

.nb-tally-label {
  display: block;
  margin-top: 0.3rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nb-muted);
}

.nb-sort {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--nb-muted);
  cursor: pointer;
  transition: color 0.18s ease;
}

.nb-sort:disabled { cursor: default; }
.nb-sort:not(:disabled):hover { color: #075a3e; }

.nb-sort:focus-visible {
  outline: 2px solid #075a3e;
  outline-offset: 3px;
}

.nb-sort-icon { transition: transform 0.25s ease; }
.nb-sort[data-order="desc"] .nb-sort-icon { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .nb-sort-icon { transition: none; }
}

.nb-head {
  display: flex;
  gap: 2rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgba(7, 90, 62, 0.28);
}

.nb-head-week,
.nb-head-track {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #075a3e;
}

.nb-head-week { flex: 0 0 var(--nb-week-col); }

.nb-head-track {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--nb-accent);
}

.nb-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-week {
  display: flex;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--nb-rule);
  scroll-margin-top: 104px;
}

.nb-week-id {
  flex: 0 0 var(--nb-week-col);
  padding: 0.3rem 0.5rem;
  margin: -0.3rem 0 -0.3rem -0.5rem;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}

.nb-week-id:hover { background: rgba(255, 246, 183, 0.55); }

.nb-week-n {
  font-weight: 200;
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #075a3e;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.nb-dates {
  display: block;
  margin-top: 0.35rem;
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--nb-muted);
}

.nb-col {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.3rem 0.9rem 0.3rem 0.9rem;
  margin: -0.3rem 0;
  border-left: 2px solid var(--nb-accent);
  border-radius: 0 8px 8px 0;
  transition: background-color 0.18s ease;
}

.nb-col:not(.is-empty):hover {
  background: color-mix(in srgb, var(--nb-accent) 10%, transparent);
}

.nb-col.is-empty { border-left-color: var(--nb-rule); }

.nb-col-head {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nb-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-entry {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.5rem;
  color: #24352c;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.6;
}

.nb-entry:last-child { margin-bottom: 0; }

.nb-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nb-accent);
}

.nb-entry a {
  color: #075a3e;
  text-decoration: underline;
  text-decoration-color: rgba(7, 90, 62, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s ease;
}

.nb-entry a:hover { text-decoration-color: #ff7a00; }

.nb-empty {
  margin: 0;
  color: rgba(7, 90, 62, 0.3);
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.6;
}

.nb-hover-img {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: 240px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(7, 90, 62, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s ease;
}

.nb-hover-img.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .nb-hover-img { transition: none; }
}

@media (max-width: 991.98px) {
  .nb-head { display: none; }

  .nb-week { flex-direction: column; gap: 1rem; }

  .nb-week-id {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
  }

  .nb-week-n { font-size: 2rem; }
  .nb-dates { margin-top: 0; }

  .nb-col-head {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 0.4rem;
    overflow: visible;
    clip-path: none;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #075a3e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-week-id, .nb-col, .nb-entry a { transition: none; }
}

@media print {
  .nb-week { break-inside: avoid; }
}

.quiz-invite {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.quiz-open {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  font-family: "Changa", sans-serif;
  font-size: 1.05rem;
  color: #075a3e;
  background: #fffdf7;
  border: 2px solid #075a3e;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quiz-open:hover,
.quiz-open:focus-visible { background: #075a3e; color: #fffdf7; }

.quiz {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 92px 16px 24px;
}

.quiz[hidden] { display: none; }

.quiz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 22, 0.62);
  cursor: pointer;
}

.quiz-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  background: #fffdf7;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 32, 22, 0.35);
  padding: 1.1rem 1.6rem 1.4rem;
}

.quiz-card:focus { outline: none; }
.quiz-card:focus-visible { outline: 3px solid #d8b26a; outline-offset: 3px; }

.quiz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.quiz-lang {
  display: inline-flex;
  border: 1px solid #c3cec7;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-lang button {
  min-height: 32px;
  padding: 0.25rem 0.8rem;
  font-family: "Changa", sans-serif;
  font-size: 0.82rem;
  color: #5f6e66;
  background: #fffdf7;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quiz-lang button + button { border-left: 1px solid #c3cec7; }
.quiz-lang button:hover { background: #eaf7dd; }
.quiz-lang button[aria-pressed="true"] { background: #075a3e; color: #fffdf7; }

.quiz-count {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #5f6e66;
}

.quiz-skip {
  min-height: 32px;
  padding: 0.25rem 0.85rem;
  font-family: "Changa", sans-serif;
  font-size: 0.85rem;
  color: #075a3e;
  background: #fffdf7;
  border: 1px solid #c3cec7;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.quiz-skip:hover,
.quiz-skip:focus-visible { background: #eaf7dd; }

.quiz-stage { min-height: 260px; }

.quiz-title {
  margin: 0 0 0.5rem;
  font-family: "Changa", sans-serif;
  font-size: 1.4rem;
  line-height: 1.35;
  color: #075a3e;
}

.quiz-lead {
  margin: 0 0 1.1rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #5f6e66;
}

.quiz-lead[hidden] { display: none; }

.quiz-options {
  display: grid;
  gap: 0.6rem;
}

.quiz-options[hidden] { display: none; }

.quiz-option {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  color: #24352c;
  background: #fff;
  border: 2px solid #dfe8e2;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  background: #f2f9f5;
  border-color: #75b299;
  transform: translateX(3px);
}

.quiz-option[aria-pressed="true"] {
  background: #e7f4ee;
  border-color: #075a3e;
  font-weight: 700;
}

.quiz-results {
  display: grid;
  gap: 0.85rem;
}

.quiz-results[hidden] { display: none; }

.quiz-result {
  border: 1px solid #dfe8e2;
  border-left: 4px solid #075a3e;
  border-radius: 0 12px 12px 0;
  background: #fff;
  padding: 1rem 1.15rem;
}

.quiz-result h3 {
  margin: 0 0 0.35rem;
  font-family: "Changa", sans-serif;
  font-size: 1.1rem;
  color: #1f4a38;
}

.quiz-result p {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a5a51;
}

.quiz-go {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1.1rem;
  font-family: "Changa", sans-serif;
  font-size: 0.92rem;
  color: #fffdf7;
  background: #075a3e;
  border: 2px solid #075a3e;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.quiz-go::after { content: "\2192"; margin-left: 0.45rem; }

.quiz-go:hover,
.quiz-go:focus-visible {
  background: #04412c;
  border-color: #04412c;
  color: #fffdf7;
  text-decoration: none;
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid #e6ddc8;
}

.quiz-btn {
  min-height: 40px;
  padding: 0.45rem 1.15rem;
  font-family: "Changa", sans-serif;
  font-size: 0.95rem;
  color: #075a3e;
  background: #fffdf7;
  border: 2px solid #075a3e;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quiz-btn:hover:not(:disabled),
.quiz-btn:focus-visible { background: #eaf7dd; }

.quiz-btn:disabled {
  color: #5f6e66;
  border-color: #c3cec7;
  cursor: default;
}

.quiz-restart { border-style: dashed; }

.quiz-pages { display: none; }

body.quiz-active { overflow: hidden; }

@media (max-width: 575.98px) {
  .quiz { padding: 80px 10px 16px; }
  .quiz-card { padding: 1rem 1.1rem 1.2rem; }
  .quiz-title { font-size: 1.2rem; }
  .quiz-option { font-size: 0.95rem; }
  .quiz-option:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-option { transition: background-color 0.15s ease, border-color 0.15s ease; }
  .quiz-option:hover,
  .quiz-option:focus-visible { transform: none; }
}

.home-video {
  max-width: 900px;
  margin: 4rem auto 0;
}

.home-video-title {
  color: #2c3e50;
  margin-bottom: 1.25rem;
}

.home-video-frame {
  overflow: hidden;
  border-radius: 12px;
  background: #10171d;
  box-shadow: 0 10px 30px rgba(16, 23, 29, 0.18);
}

.home-video-frame iframe { border: 0; }

.home-video-note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: #5f6e66;
}

@media (max-width: 575.98px) {
  .home-video { margin-top: 2.5rem; }
  .home-video-frame { border-radius: 8px; }
}

.hp-slogan {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--nx-lime, #075a3e);
  margin: 0.4rem 0 1.4rem;
}

.hp-figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.hp-figure-grid:not(.hp-figure-grid-2) > .hp-figure {
  max-width: calc(50% - 0.75rem);
  justify-self: center;
}

.hp-figure-grid-2 { grid-template-columns: repeat(2, 1fr); }

.hp-figure {
  margin: 0;
  background: #fff;
  border: 1px solid #e6e2da;
  border-radius: 8px;
  padding: 0.75rem;
}

.hp-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hp-figure figcaption {
  margin-top: 0.6rem;
  font-family: "Changa", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4a3f35;
  text-align: center;
}

@media (max-width: 767.98px) {
  .hp-figure-grid-2 { grid-template-columns: 1fr; }
  .hp-figure-grid > .hp-figure { max-width: none; }
}

.hp-pie-source {
  font-size: 0.85rem;
  color: #6b6055;
}

.hp-pie-chart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem 1.4rem;
  padding: 0.4rem 0.2rem 0.2rem;
}

.hp-pie-svg {
  flex: none;
  width: clamp(150px, 40%, 200px);
  height: auto;
  overflow: visible;
}

.hp-pie-slice path { transition: opacity 0.15s ease; }
.hp-pie.is-focusing .hp-pie-slice:not(.is-on) path { opacity: 0.35; }
.hp-pie.is-focusing .hp-pie-slice:not(.is-on) .hp-pie-pct { opacity: 0.35; }

.hp-pie-pct {
  font-family: "Changa", sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.hp-pie-total {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 30px;
  text-anchor: middle;
  fill: #2b2b2b;
}
.hp-pie-total-sub {
  font-family: "Changa", sans-serif;
  font-size: 12px;
  text-anchor: middle;
  fill: #6b6055;
}

.hp-pie-legend {
  flex: 1 1 170px;
  max-width: 260px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Changa", sans-serif;
  font-size: 0.88rem;
  line-height: 1.25;
}
.hp-pie-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.22rem 0.4rem;
  border-radius: 6px;
  color: #2b2b2b;
  transition: background-color 0.15s ease;
}
.hp-pie-legend li.is-on { background: rgba(0, 0, 0, 0.06); }
.hp-pie-swatch { width: 12px; height: 12px; border-radius: 3px; }
.hp-pie-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

.hp-pie-table table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}
.hp-pie-table caption { caption-side: top; font-weight: 600; padding-bottom: 0.3rem; }
.hp-pie-table th,
.hp-pie-table td { padding: 0.2rem 0.4rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.hp-pie-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hp-pie.is-drawn .hp-pie-table {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.hp-pie { position: relative; }

.hp-pie-tip {
  position: fixed;
  z-index: 1090;
  max-width: 260px;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: #ffffff;
  color: #2b2b2b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-family: "Changa", sans-serif;
  font-size: 0.85rem;
  line-height: 1.35;
  pointer-events: none;
}
.hp-pie-tip strong { display: block; }

@media (prefers-reduced-motion: reduce) {
  .hp-pie-slice path,
  .hp-pie-legend li { transition: none; }
}

body.hw-nexus,
body.nb-nexus,
body.bg-nexus,
body.edu-nexus {
  --nx-ground:  #0e242e;
  --nx-panel:   #16323f;
  --nx-raised:  #1c4352;
  --nx-line:    #24596b;
  --nx-mint:    #49c5b6;
  --nx-lime:    #a0e860;
  --nx-blue:    #2779a7;
  --nx-blue-up: #5fb3e0;
  --nx-text:    #dbe9ee;
  --nx-muted:   #93b0bb;
  --nx-warm:    #e6b060;

  background: var(--nx-ground);
}

body.hw-nexus::before,
body.nb-nexus::before,
body.bg-nexus::before,
body.hw-nexus::after,
body.nb-nexus::after,
body.bg-nexus::after,
body.edu-nexus::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body.edu-nexus::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: none;
}

body.hw-nexus::before,
body.nb-nexus::before,
body.bg-nexus::before,
body.edu-nexus::before {
  background-image:
    linear-gradient(to bottom,
      rgba(20, 179, 145, 0.06) 0%,
      rgba(20, 179, 145, 0.02) 42%,
      rgba(20, 179, 145, 0) 100%);
}

body.hw-nexus::after,
body.nb-nexus::after,
body.bg-nexus::after { background-image: none; }

.hw-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hw-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--d);
  height: var(--d);
  animation: hw-orb-x var(--tx) ease-in-out infinite alternate;
  animation-delay: var(--dx);
}

.hw-orb > span {
  display: block;
  width: 100%;
  height: 100%;
  animation: hw-orb-y var(--ty) ease-in-out infinite alternate;
  animation-delay: var(--dy);
}

.hw-orb-a > span {
  background:
    radial-gradient(closest-side circle at 44% 40%,
      rgba(160, 232, 96, 0.1148) 0%,
      rgba(160, 232, 96, 0.0459) 44%,
      rgba(20, 179, 145, 0) 72%),
    radial-gradient(closest-side circle at 62% 61%,
      rgba(20, 179, 145, 0.05) 0%,
      rgba(20, 179, 145, 0) 56%);
}

.hw-orb-b > span {
  background:
    radial-gradient(closest-side circle at 58% 37%,
      rgba(160, 232, 96, 0.1186) 0%,
      rgba(160, 232, 96, 0.0420) 40%,
      rgba(20, 179, 145, 0) 70%),
    radial-gradient(closest-side circle at 38% 64%,
      rgba(20, 179, 145, 0.04) 0%,
      rgba(20, 179, 145, 0) 52%);
}

.hw-orb-c > span {
  background:
    radial-gradient(closest-side circle at 49% 55%,
      rgba(160, 232, 96, 0.0994) 0%,
      rgba(160, 232, 96, 0.0383) 46%,
      rgba(20, 179, 145, 0) 74%),
    radial-gradient(closest-side circle at 63% 36%,
      rgba(160, 232, 96, 0.0459) 0%,
      rgba(20, 179, 145, 0) 50%);
}

.hw-orb-a { --d: 26rem; --tx: 71s; --ty: 47s; --dx: 0s; --dy: -13s; }
.hw-orb-b { --d: 19rem; --tx: 53s; --ty: 67s; --dx: -19s; --dy: -6s; }
.hw-orb-c { --d: 31rem; --tx: 89s; --ty: 59s; --dx: -34s; --dy: -25s; }

@keyframes hw-orb-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw - var(--d))); }
}

@keyframes hw-orb-y {
  from { transform: translateY(0); }
  to { transform: translateY(calc(100vh - var(--d))); }
}

@media (prefers-reduced-motion: reduce) {
  .hw-orb,
  .hw-orb > span { animation-play-state: paused; }
}

@media print {
  .hw-orbs { display: none; }
}

@media print {
  body.hw-nexus::before,
  body.hw-nexus::after,
  body.edu-nexus::before,
  body.edu-nexus::after { display: none; }
}

body.hw-nexus .bg-hero,
body.nb-nexus .bg-hero,
body.bg-nexus .bg-hero,
body.edu-nexus .bg-hero { background-color: var(--nx-ground); }
body.hw-nexus .page-hero-bg,
body.nb-nexus .page-hero-bg,
body.bg-nexus .page-hero-bg,
body.edu-nexus .page-hero-bg { filter: blur(2px) saturate(0.55) brightness(0.6); }
body.hw-nexus .page-hero-tint,
body.nb-nexus .page-hero-tint,
body.bg-nexus .page-hero-tint,
body.edu-nexus .page-hero-tint {
  background: linear-gradient(to bottom,
    rgba(14, 36, 46, 0.55), rgba(14, 36, 46, 0.97));
}
body.hw-nexus .hero-title,
body.nb-nexus .hero-title,
body.bg-nexus .hero-title,
body.edu-nexus .hero-title {
  color: var(--nx-mint);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
body.hw-nexus .hero-sub,
body.nb-nexus .hero-sub,
body.bg-nexus .hero-sub,
body.edu-nexus .hero-sub { color: var(--nx-muted); }

body.hw-nexus .navbar,
body.nb-nexus .navbar,
body.bg-nexus .navbar,
body.edu-nexus .navbar {
  background: rgba(14, 36, 46, 0.86) !important;
  border: 1px solid var(--nx-line);
}
body.hw-nexus .navbar-nav .nav-link,
body.nb-nexus .navbar-nav .nav-link,
body.bg-nexus .navbar-nav .nav-link,
body.edu-nexus .navbar-nav .nav-link { color: var(--nx-text); }
body.hw-nexus .navbar-nav .nav-link:hover,
body.nb-nexus .navbar-nav .nav-link:hover,
body.bg-nexus .navbar-nav .nav-link:hover,
body.hw-nexus .navbar-nav .nav-link:focus,
body.nb-nexus .navbar-nav .nav-link:focus,
body.bg-nexus .navbar-nav .nav-link:focus,
body.edu-nexus .navbar-nav .nav-link:hover,
body.edu-nexus .navbar-nav .nav-link:focus { color: var(--nx-lime); }
body.hw-nexus .dropdown-menu,
body.nb-nexus .dropdown-menu,
body.bg-nexus .dropdown-menu,
body.edu-nexus .dropdown-menu {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
}
body.hw-nexus .dropdown-item,
body.nb-nexus .dropdown-item,
body.bg-nexus .dropdown-item,
body.edu-nexus .dropdown-item { color: var(--nx-text); }
body.hw-nexus .dropdown-item:hover,
body.nb-nexus .dropdown-item:hover,
body.bg-nexus .dropdown-item:hover,
body.hw-nexus .dropdown-item:focus,
body.nb-nexus .dropdown-item:focus,
body.bg-nexus .dropdown-item:focus,
body.edu-nexus .dropdown-item:hover,
body.edu-nexus .dropdown-item:focus {
  background: var(--nx-raised);
  color: var(--nx-lime);
}

body.hw-nexus .hw h2 { color: var(--nx-mint); }
body.hw-nexus .hw h3,
body.hw-nexus .hw h4 { color: var(--nx-text); }
body.hw-nexus .hw p,
body.hw-nexus .hw li,
body.hw-nexus .hw dd { color: var(--nx-text); }
body.hw-nexus .hw a { color: var(--nx-lime); }
body.hw-nexus .hw strong { color: #fff; }
body.hw-nexus .hw strong.md-q { color: var(--nx-lime); }
body.hw-nexus .hw code {
  color: var(--nx-mint);
  background: rgba(20, 179, 145, 0.12);
  border: 1px solid rgba(20, 179, 145, 0.24);
}
body.hw-nexus .hw-lead { border-left-color: var(--nx-mint); }
body.hw-nexus .hw-lead p { font-size: 1.14rem; }

body.hw-nexus .hw-module,
body.hw-nexus .hw-fold,
body.hw-nexus .hw-diagram,
body.hw-nexus .hw-flip-front,
body.hw-nexus .hw-flip-back,
body.hw-nexus .hw-terms > div {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
body.hw-nexus .hw-flip-card:hover .hw-flip-front,
body.hw-nexus .hw-flip-card:focus-within .hw-flip-front,
body.hw-nexus .hw-flip-back { background: var(--nx-raised); }
body.hw-nexus .hw-module-tag {
  background: var(--nx-mint);
  color: var(--nx-ground);
}
body.hw-nexus .hw-module-what { color: var(--nx-muted); }
body.hw-nexus .hw-ico { color: var(--nx-mint); }
body.hw-nexus .hw-fold-head { color: var(--nx-text); }
body.hw-nexus .hw-fold-meta,
body.hw-nexus .hw-fold-state,
body.hw-nexus .hw-refs-note,
body.hw-nexus .hw-figure figcaption { color: var(--nx-muted); }
body.hw-nexus .hw-fold-title,
body.hw-nexus .hw-fold-verb { color: var(--nx-mint); }

body.hw-nexus .hw-table { color: var(--nx-text); }
body.hw-nexus .hw-table th,
body.hw-nexus .hw-table td { border-bottom-color: var(--nx-line); }
body.hw-nexus .hw-table thead th {
  color: var(--nx-mint);
  border-bottom-color: var(--nx-mint);
}
body.hw-nexus .hw-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}
body.hw-nexus .hw-cost-n { color: var(--nx-lime); }

body.hw-nexus .hw-aside {
  color: var(--nx-muted);
  border-left-color: var(--nx-line);
}
body.hw-nexus .hw-caution {
  background: rgba(230, 176, 96, 0.10);
  border-left-color: var(--nx-warm);
  color: var(--nx-warm);
}
body.hw-nexus .hw-dec-flag {
  background: rgba(230, 176, 96, 0.12);
  border-color: rgba(230, 176, 96, 0.45);
  color: var(--nx-warm);
}
body.hw-nexus .hw-decs .is-narrow .hw-ico { color: var(--nx-warm); }

body.hw-nexus .hw-svg-case {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--nx-line);
}
body.hw-nexus .hw-svg-body { stroke: #6f93a1; }
body.hw-nexus .hw-svg-label { fill: var(--nx-text); }
body.hw-nexus .hw-svg-sub   { fill: var(--nx-muted); }
body.hw-nexus .hw-svg-note  { fill: #7d99a4; }
body.hw-nexus .hw-svg-angle { fill: var(--nx-mint); }
body.hw-nexus .hw-svg-axis  { stroke: #4d7383; }
body.hw-nexus .hw-svg-dim   { stroke: #7d99a4; }
body.hw-nexus .hw-svg-right-angle { stroke: var(--nx-mint); }
body.hw-nexus .hw-svg-stop  { fill: #050f14; }
body.hw-nexus .hw-svg-sensor { fill: var(--nx-raised); stroke: var(--nx-mint); }
body.hw-nexus .hw-svg-sample { fill: rgba(230, 176, 96, 0.16); stroke: var(--nx-warm); }
body.hw-nexus .hw-svg-meniscus { stroke: var(--nx-warm); }
body.hw-nexus .hw-svg-blue-box { fill: rgba(95, 179, 224, 0.20); stroke: var(--nx-blue-up); }

body.hw-nexus .hw-beam-blue  { stroke: var(--nx-blue-up); }
body.hw-nexus .hw-beam-green { stroke: #55d98a; }

body.hw-nexus .hwx-rig {
  --hwx-green: var(--nx-mint);
  --hwx-blue: var(--nx-blue-up);
  --hwx-ink: var(--nx-text);
  --hwx-dim: var(--nx-muted);
  --hwx-rule: var(--nx-line);
  --hwx-amber: var(--nx-warm);
}

body.hw-nexus .hw3d {
  --hw3d-paper: var(--nx-panel);
  --hw3d-ink: var(--nx-text);
  --hw3d-ink-2: var(--nx-muted);
  --hw3d-ink-3: #7d99a4;
  --hw3d-rule: var(--nx-line);
  --hw3d-accent: var(--nx-mint);
  --hw3d-accent-2: var(--nx-mint);
  --hw3d-beam-ex: var(--nx-blue-up);
  --hw3d-beam-em: #55d98a;
  --hw3d-sample: var(--nx-warm);
  --hw3d-frame: #6f93a1;
  --hw3d-ghost: #4d7383;
  --hw3d-warn: #e0705f;
  --hw3d-gold: var(--nx-warm);
  --hw3d-ledw: #dff3ee;

  background: var(--nx-panel);
  border-color: var(--nx-line);
}
body.hw-nexus .hw3d-viewport,
body.hw-nexus .hw3d-list,
body.hw-nexus .hw3d-list-close {
  background: var(--nx-raised);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
body.hw-nexus .hw3d-views button {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
body.hw-nexus .hw3d-views button[aria-pressed="true"] {
  background: var(--nx-mint);
  border-color: var(--nx-mint);
  color: var(--nx-ground);
}
body.hw-nexus .hw3d input[type="range"] { accent-color: var(--nx-mint); }

body.hw-nexus .hw-table tr.is-total {
  background: rgba(20, 179, 145, 0.14);
  color: var(--nx-text);
}

body.hw-nexus .back-to-top,
body.nb-nexus .back-to-top,
body.bg-nexus .back-to-top {
  background: var(--nx-panel);
  border-color: var(--nx-mint);
  color: var(--nx-mint);
}
body.hw-nexus .back-to-top:hover,
body.nb-nexus .back-to-top:hover,
body.bg-nexus .back-to-top:hover,
body.hw-nexus .back-to-top:focus-visible {
  background: var(--nx-mint);
  color: var(--nx-ground);
}

body.hw-nexus footer.footer,
body.nb-nexus footer.footer,
body.bg-nexus footer.footer { background: #071820 !important; }

@media (prefers-contrast: more) {
  body.hw-nexus { --nx-text: #f2f8fa; --nx-muted: #b6ccd4; }
}

body.hw-nexus .hw3d input[type="range"] {
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
body.hw-nexus .hw3d input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--nx-line);
}
body.hw-nexus .hw3d input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--nx-line);
}
body.hw-nexus .hw3d input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: none;
  border-radius: 50%;
  background: var(--nx-mint);
}
body.hw-nexus .hw3d input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--nx-mint);
}

body.hw-nexus .hw3d-list-title { color: var(--nx-text); }
body.hw-nexus .hw3d-list-state,
body.hw-nexus .hw3d-list-caret { color: var(--nx-mint); }
body.hw-nexus .hw3d-dim,
body.hw-nexus .hw3d-list thead th { color: var(--nx-muted); }
body.hw-nexus .hw3d-num,
body.hw-nexus .hw3d-name { color: var(--nx-text); }
body.hw-nexus .hw3d-list td,
body.hw-nexus .hw3d-list th { border-color: var(--nx-line); }

body.hw-nexus .hw-cost td,
body.hw-nexus .hw-cost th,
body.hw-nexus .hw-table td,
body.hw-nexus .hw-table th { color: var(--nx-text); }
body.hw-nexus .hw-table tr.is-total td,
body.hw-nexus .hw-table tr.is-total th { color: var(--nx-text); }

body.hw-nexus .navbar .dropdown-menu,
body.nb-nexus .navbar .dropdown-menu,
body.bg-nexus .navbar .dropdown-menu {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
}
body.hw-nexus .navbar .dropdown-item,
body.nb-nexus .navbar .dropdown-item,
body.bg-nexus .navbar .dropdown-item { color: var(--nx-text); }
body.hw-nexus .navbar .dropdown-item:hover,
body.nb-nexus .navbar .dropdown-item:hover,
body.bg-nexus .navbar .dropdown-item:hover,
body.hw-nexus .navbar .dropdown-item:focus {
  background: var(--nx-raised);
  color: var(--nx-lime);
}
body.hw-nexus .hw3d-list-head,
body.hw-nexus .hw3d-list-foot {
  background: var(--nx-panel);
  border-color: var(--nx-line);
}

body.hw-nexus .hw-flip-card > .hw-flip-front::after {
  background: linear-gradient(45deg, transparent 50%, var(--nx-mint) 50%);
}
body.hw-nexus .hw-flip-card > .hw-flip-front::before,
body.hw-nexus .hw-flip-card:focus-within > .hw-flip-front::before {
  color: var(--nx-muted);
}

.sw-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: -1.5rem 0 1.5rem;
}
.sw-links li > a,
.sw-links li > span {
  display: inline-block;
  font-family: "Changa", sans-serif;
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: var(--nx-panel);
  color: var(--nx-muted);
  text-decoration: none;
}
body.hw-nexus .sw-links li > a { color: var(--nx-lime); }
body.hw-nexus .sw-links li > a:hover,
body.hw-nexus .sw-links li > a:focus-visible { border-color: var(--nx-lime); }
body.hw-nexus .sw-links li > a.sw-btn-link {
  padding: 0.5rem 1.15rem;
  border-width: 2px;
  font-size: 0.95rem;
  font-weight: 600;
}
body.hw-nexus .sw-links li > a.sw-link-primary {
  background: var(--nx-lime);
  border-color: var(--nx-lime);
  color: var(--nx-ground);
}
body.hw-nexus .sw-links li > a.sw-link-primary:hover,
body.hw-nexus .sw-links li > a.sw-link-primary:focus-visible {
  background: var(--nx-mint);
  border-color: var(--nx-mint);
}
body.hw-nexus .sw-links li > a.sw-link-secondary {
  background: var(--nx-raised);
  border-color: var(--nx-lime);
  color: var(--nx-lime);
}
body.hw-nexus .sw-links li > a.sw-link-secondary:hover,
body.hw-nexus .sw-links li > a.sw-link-secondary:focus-visible {
  background: var(--nx-line);
}
@media (max-width: 575.98px) {
  .sw-links { gap: 0.5rem; }
  body.hw-nexus .sw-links li > a.sw-btn-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.86rem;
  }
}
.sw-links li.sw-links-note {
  align-self: center;
  padding-left: 0.3rem;
  font-size: 0.85rem;
  color: var(--nx-muted);
}

.sw-small { font-size: 0.88rem; }
body.hw-nexus .sw .sw-small { color: var(--nx-muted); }

.sw .hw-module .sw-small { margin: 0.9rem 0 0; }
.sw .hw-module:last-child:nth-child(odd) { grid-column: 1 / -1; }

.sw-eq {
  margin: 1.1rem 0 1.3rem;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", Cambria, Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 2.1;
  color: var(--nx-text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--nx-line);
  border-radius: 10px;
}
.sw-eq-key { border-left: 3px solid var(--nx-mint); }
.sw-eq var { font-style: italic; }
.sw-eq sub, .sw-eq sup { font-size: 0.68em; }
.sw-sep { display: inline-block; width: 2.2em; }
.sw-frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  line-height: 1.35;
  margin: 0 0.12em;
}
.sw-frac > span { padding: 0 0.2em; }
.sw-frac > span:first-child { border-bottom: 1px solid currentColor; }
.sw-bar { text-decoration: overline; }

.sw p var, .sw li var, .sw td var, .sw label var { font-family: Cambria, Georgia, serif; }

.sw-code {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--nx-text);
  background: #0a1c24;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  overflow-x: auto;
}

.sw-svg-link { fill: none; stroke: var(--nx-mint); stroke-width: 2.2; }
.sw-svg-head { fill: var(--nx-mint); }
.sw-svg-local { fill: none; stroke: var(--nx-muted); stroke-width: 1.6; stroke-dasharray: 2 4; stroke-linecap: round; }
.sw-svg-shared { fill: rgba(160, 232, 96, 0.08); stroke: var(--nx-lime); stroke-width: 1.5; }
body.hw-nexus .sw-svg-box { fill: var(--nx-raised); }
body.hw-nexus .sw-svg-in { fill: var(--nx-text); }

.sw-btn:focus-visible {
  outline: 3px solid var(--nx-warm);
  outline-offset: 2px;
}
.sw-btn {
  font-family: "Changa", sans-serif;
  font-size: 0.92rem;
  padding: 0.4rem 1.1rem;
  color: var(--nx-text);
  background: var(--nx-raised);
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  cursor: pointer;
}
.sw-btn:hover { border-color: var(--nx-mint); }
.sw-btn.is-primary {
  color: var(--nx-ground);
  background: var(--nx-mint);
  border-color: var(--nx-mint);
  font-weight: 600;
}
.sw-btn.is-primary:hover { background: var(--nx-lime); border-color: var(--nx-lime); }

.sw-inv-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.84rem;
  color: var(--nx-muted);
}

.sw-plot-wrap { margin: 0; }
.sw-plot {
  display: block;
  width: 100%;
  height: auto;
  background: #0a1c24;
  border: 1px solid var(--nx-line);
  border-radius: 10px;
}
.sw-plot-grid { stroke: rgba(20, 179, 145, 0.45); stroke-width: 1; }
.sw-plot-axis { stroke: var(--nx-muted); stroke-width: 1.2; fill: none; }
.sw-plot-tick { font-size: 12px; fill: var(--nx-muted); }
.sw-plot-title { font-size: 13px; fill: var(--nx-text); }
.sw-plot-range { fill: rgba(20, 179, 145, 0.12); }
.sw-plot-lod { stroke: var(--nx-warm); stroke-width: 1.3; stroke-dasharray: 6 5; }
.sw-plot-curve { fill: none; stroke: var(--nx-mint); stroke-width: 2.5; }
.sw-plot-pt { fill: var(--nx-lime); fill-opacity: 0.85; stroke: #0a1c24; stroke-width: 1; }
.sw-plot-pt.is-blank { fill: var(--nx-muted); }
.sw-plot-inv { stroke: var(--nx-blue-up); stroke-width: 1.4; stroke-dasharray: 4 4; }
.sw-plot-ci { fill: rgba(95, 179, 224, 0.28); stroke: var(--nx-blue-up); stroke-width: 1; }
.sw-plot-mark { fill: var(--nx-blue-up); stroke: #0a1c24; stroke-width: 1.5; }

.sw-lab-table { max-width: 40rem; }
body.hw-nexus .sw .hw-table caption { color: var(--nx-mint); }
body.hw-nexus .sw .sw-lab-table th { color: var(--nx-text); font-weight: 400; white-space: nowrap; }
body.hw-nexus .sw .sw-lab-table td { font-variant-numeric: tabular-nums; }
body.hw-nexus .sw .sw-lab-table td.sw-lab-note { color: var(--nx-muted); font-size: 0.8rem; }

.sw-inv-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.sw-inv-row label { flex: 1 1 9rem; }

body.hw-nexus .sw .sw-map-wrap { margin: 2.2rem 0 1rem; }
body.hw-nexus .sw .sw-map-title {
  margin: 0 0 0.4rem;
  font-family: "Changa", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.sw-map {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2.5rem;
  padding: 0;
  margin: 0;
}
.sw-map a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
  align-content: start;
  height: 100%;
  padding: 0.85rem 0.25rem 0.95rem;
  border-top: 1px solid var(--nx-line);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.sw-map-no {
  grid-row: 1 / span 2;
  font-family: "Changa", sans-serif;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--nx-mint);
}
.sw-map-name {
  font-family: "Changa", sans-serif;
  font-size: 1.12rem;
  color: var(--nx-lime);
}
.sw-map-q {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--nx-muted);
}
.sw-map a:hover,
.sw-map a:focus-visible { background: var(--nx-panel); }
.sw-map a:hover .sw-map-name,
.sw-map a:focus-visible .sw-map-name { text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 768px) {
  .sw-map { grid-template-columns: repeat(2, 1fr); }
}
.sw-solve { display: grid; gap: 0.9rem; margin: 1.2rem 0 0; }
.sw-solve-row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.sw-solve-row > p { margin: 0; padding: 0.9rem 1.1rem; border-radius: 10px; line-height: 1.7; }
.sw-solve-was { border: 1px solid var(--nx-line); }
body.hw-nexus .sw .sw-solve-row > p.sw-solve-was { color: var(--nx-muted); }
body.hw-nexus .sw .sw-solve-row > p.sw-solve-was strong { color: var(--nx-text); }
.sw-solve-now {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-left: 3px solid var(--nx-mint);
  color: var(--nx-text);
}
.sw-solve-k {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Changa", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.sw-solve-now .sw-solve-k { color: var(--nx-mint); }
body.hw-nexus .sw .sw-solve-row > p.sw-solve-now strong { color: var(--nx-mint); }
.sw-solve-head { display: none; }
@media (min-width: 768px) {
  .sw-solve-row { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .sw-solve-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: -0.3rem;
    padding: 0 1.1rem;
    font-family: "Changa", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-muted);
  }
  .sw-solve-head span + span { color: var(--nx-mint); padding-left: 1.1rem; }
  .sw-solve-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.sw-map > .sw-map-apart { grid-column: 1 / -1; margin-top: 0.6rem; }
.sw-map-apart a { border-top-style: dashed; }
.sw-map-apart .sw-map-name { color: var(--nx-mint); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .sw-map a { transition: none; }
}
body.hw-nexus .sw .sw-takeaway {
  max-width: 50rem;
  margin: 0.9rem 0 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--nx-mint);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--nx-text);
}
.sw .md-part.sw-apart {
  margin-top: 6rem;
  border-top: 2px dashed var(--nx-muted);
}
body.hw-nexus .sw .sw-apart .md-part-no { color: var(--nx-muted); }

.sw-shot { display: flex; flex-direction: column; gap: 0.55rem; margin: 0; }
.sw-frame { overflow: hidden; border-radius: 8px; }
.sw-shot img { display: block; width: 100%; height: auto; }
body.hw-nexus .sw .sw-shot figcaption { font-size: 0.8rem; line-height: 1.5; color: var(--nx-muted); }
body.hw-nexus .sw .sw-shot figcaption strong { color: var(--nx-text); font-weight: 600; }
.sw-shot.is-todo .sw-frame { border: 1.5px dashed var(--nx-warm); box-shadow: none; }
.sw-shot-todo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--nx-warm);
  background: rgba(230, 176, 96, 0.04);
}

.sw-block {
  max-width: 50rem;
  margin: 2.5rem auto 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--nx-line);
}
#tools > h2 + .sw-block { margin-top: 1.5rem; padding-top: 0; border-top: 0; }
.sw-block h3 { margin: 0 0 1.1rem; }
.sw-block > p:last-child { margin-bottom: 0; }
body.hw-nexus .sw .sw-row-tag {
  margin: 0 0 0.25rem;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-mint);
}
.sw-block > .sw-shot { margin: 0 auto 1.2rem; }
body.hw-nexus .sw .sw-block .sw-shot figcaption { text-align: center; }
.sw-shot.sw-shot-tall { max-width: 22rem; }

.sw-row,
.sw-group {
  margin: 2.5rem 0 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--nx-line);
}
.sw-row { display: grid; grid-template-columns: 1fr; gap: 1.2rem 2.5rem; align-items: center; }
.sw-group h3 { margin: 0 0 0.4rem; }
.sw-group > .sw-row-inner { margin-top: 1.4rem; padding-top: 0; border-top: 0; }
.sw-group > .sw-shot-strip { margin-top: 1.1rem; }
.sw-row-text > :last-child { margin-bottom: 0; }
.sw-row h3 { margin: 0 0 0.6rem; }
@media (min-width: 900px) {
  .sw-row { grid-template-columns: 1fr 1fr; }
  .sw-row-flip > .sw-row-text { order: 2; }
  .sw-row-single { grid-template-columns: 1fr; }
}

.sw-flow { margin-top: 1.25rem; }
.sw-flow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .sw-flow-steps { grid-template-columns: repeat(7, 1fr); }
  .sw-flow-steps > li { position: relative; }
  .sw-flow-steps > li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    width: 0.5rem;
    border-top: 2px solid var(--nx-line);
  }
}
.sw-flow-steps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.25rem;
  font-family: "Changa", sans-serif;
  font-size: 0.92rem;
  color: var(--nx-muted);
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sw-flow-steps button:hover { border-color: var(--nx-mint); color: var(--nx-text); }
.sw-flow-steps button[aria-selected="true"] {
  color: var(--nx-text);
  background: var(--nx-raised);
  border-color: var(--nx-mint);
}
.sw-flow-steps button:focus-visible,
.sw-flow-nav .sw-btn:focus-visible {
  outline: 3px solid var(--nx-warm);
  outline-offset: 2px;
}
.sw-flow-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  font-family: "Changa", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nx-mint);
  border: 2px solid var(--nx-mint);
  border-radius: 50%;
}
.sw-flow-steps button.is-done .sw-flow-n { background: rgba(73, 197, 182, 0.18); }
.sw-flow-steps button[aria-selected="true"] .sw-flow-n {
  color: var(--nx-ground);
  background: var(--nx-mint);
}
.sw-flow-panel { margin-bottom: 1.5rem; }
.sw-flow.is-live .sw-flow-panel {
  margin: 0;
  padding: 1.25rem;
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: 14px;
}
.sw-flow-panel[hidden] { display: none; }
.sw-flow-panel:focus-visible { outline: 3px solid var(--nx-warm); outline-offset: 2px; }
.sw .sw-flow-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.sw-flow-cols { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .sw-flow-cols { grid-template-columns: 0.8fr 1.2fr; }
}
.sw-flow-k {
  margin: 0 0 0.4rem;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.hw-nexus .sw .sw-flow-bench .sw-flow-k { color: var(--nx-muted); }
body.hw-nexus .sw .sw-flow-soft .sw-flow-k { color: var(--nx-mint); }
.sw-flow-bench p:not(.sw-flow-k) { font-size: 1rem; }
.sw-flow-soft ul { padding-left: 1.1rem; margin: 0 0 0.6rem; font-size: 0.93rem; }
.sw-flow-soft li { margin-bottom: 0.4rem; line-height: 1.6; }
body.hw-nexus .sw .sw-flow-where { margin: 0; font-size: 0.82rem; color: var(--nx-muted); }
.sw-flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}
.sw-flow-nav[hidden] { display: none; }
.sw-flow-nav .sw-btn:disabled { opacity: 0.4; cursor: default; }
body.hw-nexus .sw .sw-flow-count { font-size: 0.85rem; color: var(--nx-muted); }
.sw-flow-chips {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.55rem;
  font-family: "Changa", sans-serif;
  font-size: 0.74rem;
  white-space: nowrap;
  color: var(--nx-mint);
  border: 1px solid var(--nx-line);
  border-radius: 999px;
}

.sw h2 .sw-h-no {
  display: inline-block;
  margin-right: 0.55em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--nx-muted);
}
.sw-idea .sw-eq { position: relative; padding-left: 3.5rem; padding-right: 3.5rem; }
.sw-eq-no {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--nx-muted);
}
body.hw-nexus .sw-page .hw-table caption:not(.visually-hidden) {
  caption-side: top;
  padding: 0 0 0.6rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--nx-muted);
}
body.hw-nexus .sw-page .hw-table caption strong { color: var(--nx-text); font-weight: 600; }

.sw-parts ~ section > p,
.sw-parts ~ section > ul,
.sw-parts ~ section > h3 + p,
.sw-idea > p { max-width: 46rem; }

.sw-pipe {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding: 0;
  margin: 1.2rem 0 2.2rem;
  counter-reset: pipe;
}
.sw-pipe li { position: relative; counter-increment: pipe; font-family: "Changa", sans-serif; font-size: 0.95rem; }
.sw-pipe li::before { content: counter(pipe) ". "; color: var(--nx-mint); }
.sw-pipe li + li::after {
  content: "\2192";
  position: absolute;
  left: -1.15rem;
  top: 0;
  color: var(--nx-muted);
}
.sw-pipe a { color: var(--nx-text); text-decoration: none; border-bottom: 1px dotted var(--nx-line); }
.sw-pipe a:hover, .sw-pipe a:focus-visible { color: var(--nx-lime); border-bottom-color: var(--nx-lime); }
.sw-idea { scroll-margin-top: 90px; }
.sw-idea .sw-eq.md-eqset .sw-eq-no { top: 1.55rem; transform: none; }
@media (max-width: 575.98px) {
  .sw-idea .sw-eq .sw-sep { display: block; width: auto; height: 0.2rem; }
  .sw-idea .sw-eq { padding-left: 1rem; }
}
#rules .sw-row-tag { margin-top: 1.8rem; }
.sw-rules { margin: 0.4rem 0 0; border-top: 1px solid var(--nx-line); }
.sw-rules .sw-rule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--nx-line);
}
@media (min-width: 768px) {
  .sw-rules .sw-rule { grid-template-columns: 17rem 1fr; }
}
.sw-rules dt { display: flex; margin: 0; font-weight: 600; line-height: 1.6; }
body.hw-nexus .sw .sw-rules dt { color: var(--nx-text); }
.sw-rules dd { margin: 0; line-height: 1.7; }
.sw-rule-no {
  display: inline-block;
  flex-shrink: 0;
  min-width: 2.2rem;
  font-family: "Changa", sans-serif;
  font-weight: 600;
  color: var(--nx-mint);
}
body.hw-nexus .sw .sw-rule-for {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--nx-muted);
}
body.hw-nexus .sw .sw-idea-ref { margin: -0.4rem 0 0; font-size: 0.82rem; color: var(--nx-muted); }

.sw-idea { margin: 0 0 2.4rem; }
.sw .sw-idea h3 { display: flex; align-items: center; gap: 0.6rem; }
.sw-idea-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  font-family: "Changa", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nx-mint);
  border: 2px solid var(--nx-mint);
  border-radius: 50%;
}

.sw-yes, .sw-adapt, .sw-no {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  font-family: "Changa", sans-serif;
  font-size: 0.8rem;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.sw-yes { color: var(--nx-mint); }
.sw-adapt { color: var(--nx-text); border-color: var(--nx-line); }
.sw-no { color: var(--nx-warm); }

.sw-try {
  container-type: inline-size;
  padding: 1.25rem;
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-radius: 14px;
}
.sw-try-cols { display: grid; gap: 2rem; }
@container (min-width: 46rem) {
  .sw-try-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
  .sw-try-side { position: sticky; top: 6rem; }
}
.sw-try-step[hidden], .sw-try [hidden] { display: none; }
.sw-try-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
body.hw-nexus .sw .sw-try-head .sw-try-k { margin: 0; }
.sw-try-check { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
body.hw-nexus .sw .sw-try-check li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--nx-muted);
}
.sw-try-tick {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--nx-line);
  border-radius: 50%;
}
body.hw-nexus .sw .sw-try-check li.is-done { color: var(--nx-text); }
.sw-try-check li.is-done .sw-try-tick {
  background: var(--nx-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a1c24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--nx-mint);
}
.sw-try-count { font-variant-numeric: tabular-nums; }
body.hw-nexus .sw .sw-try-empty {
  display: grid;
  place-items: center;
  min-height: 14rem;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--nx-muted);
  border: 1px dashed var(--nx-line);
  border-radius: 10px;
}
.sw-try .sw-plot { cursor: crosshair; }
.sw-try-table input::placeholder { color: var(--nx-muted); opacity: 0.55; font-style: italic; }
body.hw-nexus .sw .sw-try-hint-note {
  margin: 0.35rem 0 0;
  padding-left: 0.3rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--nx-muted);
}
.sw-try-table input.is-bad { border-color: var(--nx-warm); box-shadow: 0 0 0 1px var(--nx-warm); }
.sw-inv-row .sw-inv-n { flex: 0 1 7rem; }
body.hw-nexus .sw .sw-try-k {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  font-family: "Changa", sans-serif;
  font-size: 1.08rem;
  color: var(--nx-text);
}
body.hw-nexus .sw .sw-try-step > .sw-try-k ~ .sw-try-k,
body.hw-nexus .sw #swTryOut > .sw-try-k { margin-top: 1.6rem; }
.sw-try-table-wrap { overflow-x: auto; margin-top: 0.6rem; }
.sw-try-table { width: 100%; border-collapse: separate; border-spacing: 0.25rem; }
.sw-try-table td { min-width: 3.4rem; }
.sw-try-table input { padding-inline: 0.4rem; }
body.hw-nexus .sw .sw-try-table th {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--nx-muted);
  text-align: left;
  padding: 0 0.2rem;
}
body.hw-nexus .sw .sw-try-table th:first-child { color: var(--nx-mint); }
.sw-try input {
  width: 100%;
  color: var(--nx-text);
  background: #0a1c24;
  border: 1px solid var(--nx-line);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}
.sw-try-table td:first-child input { border-color: var(--nx-mint); }
.sw-try input:focus-visible,
.sw-try summary:focus-visible { outline: 3px solid var(--nx-warm); outline-offset: 1px; }
.sw-try-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
body.hw-nexus .sw .sw-try-unit {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--nx-muted);
}
.sw-try-unit input { width: 6rem; }
body.hw-nexus .sw .sw-try-msg { min-height: 1.5rem; margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--nx-muted); }
body.hw-nexus .sw .sw-try-msg.is-error { color: var(--nx-warm); }
.sw-try-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.sw-try-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  background: var(--nx-raised);
  border: 1px solid var(--nx-line);
  border-radius: 10px;
}
.sw-try-stat-k {
  font-family: "Changa", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
.sw-try-stat-v {
  font-family: "Changa", sans-serif;
  font-size: 1.15rem;
  color: var(--nx-text);
  font-variant-numeric: tabular-nums;
}

.sw-try-more { margin: 1rem 0 0; }
.sw-try-more summary { cursor: pointer; font-family: "Changa", sans-serif; color: var(--nx-mint); }
body.hw-nexus .sw .sw-try-result { min-height: 2rem; margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--nx-muted); }
body.hw-nexus .sw .sw-try-result.is-ok strong {
  margin-right: 0.6rem;
  font-family: "Changa", sans-serif;
  font-size: 1.55rem;
  color: var(--nx-mint);
}
body.hw-nexus .sw .sw-try-result.is-bound { color: var(--nx-warm); }

body.hw-nexus .sw .sw-run-k {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.8rem 0 0.5rem;
  font-family: "Changa", sans-serif;
  font-size: 1.08rem;
  color: var(--nx-text);
}
body.hw-nexus .sw .sw-run-steps { margin: 0 0 1rem; padding-left: 1.4rem; }
body.hw-nexus .sw .sw-run-steps li { margin-bottom: 0.45rem; }
.sw kbd {
  padding: 0.05rem 0.35rem;
  font-size: 0.85em;
  color: var(--nx-text);
  background: var(--nx-raised);
  border: 1px solid var(--nx-line);
  border-radius: 4px;
}

.sw-swarm-pair { display: grid; gap: 1.5rem; margin-top: 1.8rem; align-items: start; }
@media (min-width: 700px) { .sw-swarm-pair { grid-template-columns: 3fr 4fr; } }
.sw-swarm-steps { max-width: 46rem; padding-left: 1.3rem; }
.sw-swarm-steps li { margin-bottom: 0.7rem; line-height: 1.7; }
.sw-swarm-steps li::marker { color: var(--nx-mint); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .sw-flow-steps button { transition: none; }
}

.md .md-n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.md .md-keep td:first-child { white-space: nowrap; }

.md .hw-spec > div { grid-template-columns: 7.5rem 1fr; }
.md .hw-spec { margin: 1.5rem 0; }
body.hw-nexus .hw-spec dt { color: var(--nx-mint); }
body.hw-nexus .hw-spec dd { color: var(--nx-text); }
body.hw-nexus .hw-spec > div { border-top-color: var(--nx-line); }

.md-scroll { overflow-x: auto; }
.md-plot { min-width: 560px; }
.md-plot text { font-family: inherit; }
.md-grid { stroke: var(--nx-line, #24596b); stroke-opacity: 0.45; stroke-width: 1; }
.md-axis { fill: none; stroke: var(--nx-muted, #93b0bb); stroke-width: 1.2; }
.md-tick {
  font-size: 13px;
  fill: var(--nx-muted, #93b0bb);
  font-variant-numeric: tabular-nums;
}
.md-tick-sub { font-size: 12px; opacity: 0.85; }
.md-axis-title { font-size: 14px; fill: var(--nx-text, #dbe9ee); }
.md-val {
  font-size: 13px;
  fill: var(--nx-text, #dbe9ee);
  font-variant-numeric: tabular-nums;
}

.md-pt { stroke: #0a1216; stroke-width: 1.3; }
.md-pt.md-s16 { fill: var(--nx-blue-up, #5fb3e0); }
.md-pt.md-s21 { fill: var(--nx-warm, #e6b060); }
.md-pt.md-s29 { fill: var(--nx-lime, #a0e860); }

.md-ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-opacity: 0.8; }
.md-ln16 { stroke: var(--nx-blue-up, #5fb3e0); }
.md-ln21 { stroke: var(--nx-warm, #e6b060); }
.md-ln29 { stroke: var(--nx-lime, #a0e860); }
.md-ln-shared { stroke: var(--nx-mint, #49c5b6); stroke-width: 2.6; stroke-opacity: 1; }

.md-lbl { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.md-lbl16 { fill: var(--nx-blue-up, #5fb3e0); }
.md-lbl21 { fill: var(--nx-warm, #e6b060); }
.md-lbl29 { fill: var(--nx-lime, #a0e860); }
.md-lbl-shared { fill: var(--nx-mint, #49c5b6); }

.md-bar-raw { fill: #5c7f8c; }
.md-bar-conv { fill: var(--nx-mint, #49c5b6); }
.md-ref { stroke: var(--nx-warm, #e6b060); stroke-width: 1.4; stroke-dasharray: 5 5; }
.md-key-ref { background: none; border-top: 2px dashed var(--nx-warm, #e6b060); height: 0; align-self: center; }

.md-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--hwx-rule);
  font-size: 0.82rem;
}
.md-legend-stack { flex-direction: column; gap: 0.35rem; }

body.hw-nexus .hw .md-legend li {
  display: flex;
  align-items: center;
  color: var(--nx-muted);
}
.md-key {
  display: inline-block;
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 0.55rem;
}
.md-key-16 { border-radius: 50%; background: var(--nx-blue-up, #5fb3e0); }
.md-key-21 {
  width: 13px;
  background: var(--nx-warm, #e6b060);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.md-key-29 { border-radius: 2px; background: var(--nx-lime, #a0e860); }
.md-key-bar { width: 20px; height: 9px; border-radius: 2px; }
.md-key-raw { background: #5c7f8c; }
.md-key-conv { background: var(--nx-mint, #49c5b6); }
.md-key-ref {
  width: 20px;
  height: 0;
  border-top: 2px dashed var(--nx-warm, #e6b060);
}

.md-parts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0;
  margin: 0 0 3.5rem;
}
@media (min-width: 768px) {
  .md-parts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .container.has-page-toc .md-parts {
    margin-left: -252px;
    width: calc(100% + 252px);
  }
}
.md-parts a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--nx-line, #24596b);
  border-top: 3px solid var(--nx-mint, #49c5b6);
  border-radius: 10px;
  background: var(--nx-panel, #16323f);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.md-parts a:hover,
.md-parts a:focus-visible {
  border-color: var(--nx-lime, #a0e860);
  background: var(--nx-raised, #1c4352);
}
.md-parts-no {
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-muted, #93b0bb);
}
.md-parts-name {
  font-family: "Changa", sans-serif;
  font-size: 1.18rem;
  color: var(--nx-lime, #a0e860);
}
.md-parts-q {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--nx-text, #dbe9ee);
}
.md-parts-pair {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--nx-line, #24596b);
  font-family: "Changa", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--nx-mint, #49c5b6);
}

.md-part {
  margin: 4.5rem 0 2rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--nx-mint, #49c5b6);
  scroll-margin-top: 90px;
}
body.hw-nexus .md .md-part-no {
  margin: 0 0 0.3rem;
  font-family: "Changa", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-lime, #a0e860);
}
.md .md-part h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  .md-parts a { transition: none; }
}

.md-q {
  display: block;
  font-family: "Changa", sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--c-teal-deep);
  margin-bottom: 0.3rem;
}

.md .md-fold { margin: 1.5rem 0; }
.md .md-fold .hw-spec { margin: 0.4rem 0 0.6rem; }

.md .md-impact td:first-child { white-space: nowrap; }

.md-plate {
  padding: 0.9rem;
  border: 1px solid var(--nx-line, #24596b);
  border-radius: 12px;
  background: #fcfcfb;
}
.md-plate img,
.md-plate svg {
  display: block;
  width: 100%;
  height: auto;
}
.md .md-plate + figcaption { padding-top: 0.85rem; }

@media (min-width: 768px) {
  .hw-figure:has(> .md-plate) { max-width: 640px; margin-inline: auto; }
  .hw-figure:has(> .md-plate-tall) { max-width: 540px; }

}

.md .sw-eq.md-eqset {
  text-align: left;
  line-height: 2.4;
  padding: 1rem 1.4rem;
}
.md .sw-eq.md-eqset .md-eqnote {
  display: block;
  margin-top: 0.3rem;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: normal;
  color: var(--nx-muted, #93b0bb);
}

@media (max-width: 767.98px) {
  .md-plate { overflow-x: auto; }
  .md-plate img,
  .md-plate svg { min-width: 560px; }
  
}

@media (max-width: 575.98px) {
  .md-plate { padding: 0.5rem; border-radius: 9px; }
  .md .sw-eq.md-eqset { padding: 0.8rem 0.9rem; }
}

body.edu-nexus .edu-session-block h2 { color: var(--nx-mint); }
body.edu-nexus .edu-session-block h3 { color: var(--nx-text); }
body.edu-nexus .edu-session-block p,
body.edu-nexus .edu-session-block li { color: var(--nx-text); }
body.edu-nexus .edu-session-block strong { color: #fff; }
body.edu-nexus .edu-session-block a { color: var(--c-teal); }
body.edu-nexus .edu-heading-date { color: var(--nx-muted); }
body.edu-nexus .edu-quote {
  border-left-color: var(--nx-mint);
  color: var(--nx-text);
}

body.edu-nexus .edu-session-block { border-bottom-color: var(--nx-line); }

body.edu-nexus .edu-stat-number { color: var(--nx-lime); }
body.edu-nexus .edu-stat-label { color: var(--nx-muted); }

body.edu-nexus .edu-sidebar-link.edu-sidebar-top-link{ color: var(--nx-mint); }

body.edu-nexus .edu-sidebar-link { color: var(--nx-muted); }
body.edu-nexus .edu-sidebar-link:hover,
body.edu-nexus .edu-sidebar-link.active { color: var(--nx-lime); }
body.edu-nexus .edu-sidebar-link::before { border-left-color: var(--nx-line); }
body.edu-nexus .edu-sidebar-link:hover::before,
body.edu-nexus .edu-sidebar-link.active::before { border-left-color: var(--nx-lime); }

body.edu-nexus .edu-map-viewport { background: transparent; }
body.edu-nexus .edu-map-county,
body.edu-nexus .edu-map-county-interactive { stroke: var(--nx-mint); stroke-width: 0.8; }
body.edu-nexus .edu-map-leader-line { --leader: var(--nx-mint); }

.tw-coast-glow-group { opacity: 0; transition: opacity 0.5s ease; }
.tw-coast-glow-group.is-lit { animation: tw-breathe 3.6s ease-in-out infinite; }
@keyframes tw-breathe {
  0%   { opacity: 0.45; }
  50%  { opacity: 1; }
  100% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-coast-glow-group.is-lit { opacity: 0.85; animation: none; }
}

body.edu-nexus .edu-map-orbit-item {
  background: rgba(7, 60, 41, 0.9);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: var(--nx-line);
  color: var(--nx-text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
body.edu-nexus .edu-map-orbit-item .edu-map-info-title { color: var(--nx-text); }
body.edu-nexus .edu-map-orbit-item.is-active {
  background: var(--nx-raised);
  border-color: var(--nx-mint);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

body.edu-nexus .edu-strip-item {
  background: rgba(7, 60, 41, 0.9);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
body.edu-nexus .edu-strip-title { color: var(--nx-text); }
body.edu-nexus .edu-strip-meta { color: var(--nx-text); opacity: 0.75; }
body.edu-nexus .edu-strip-item.is-selected {
  background: var(--nx-raised);
  border-color: var(--nx-mint);
  box-shadow: 0 0 0 2px var(--nx-mint), 0 8px 18px rgba(0, 0, 0, 0.45);
}
@keyframes edu-glow-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(215, 245, 184, 0.45), 0 0 10px 2px rgba(160, 232, 96, 0.3), 0 0 22px 6px rgba(160, 232, 96, 0.14); }
  50%      { box-shadow: 0 0 0 1px #d7f5b8,                    0 0 16px 4px rgba(160, 232, 96, 0.9), 0 0 34px 10px rgba(160, 232, 96, 0.45); }
}
@media (hover: hover) {
  .edu-strip-item:hover,
  body.edu-nexus .edu-strip-item:hover {
    border-color: #d7f5b8;
    animation: edu-glow-breathe 3.6s ease-in-out infinite;
  }
  .edu-map-orbit-item:hover,
  body.edu-nexus .edu-map-orbit-item:hover {
    border-color: #d7f5b8;
    opacity: 1;
    z-index: 9;
    animation: edu-glow-breathe 3.6s ease-in-out infinite;
  }
}
.edu-map-orbit-item:focus-visible {
  outline: 2px solid #d7f5b8;
  outline-offset: 2px;
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .edu-strip-item:hover,
  body.edu-nexus .edu-strip-item:hover,
  .edu-map-orbit-item:hover,
  body.edu-nexus .edu-map-orbit-item:hover {
    animation: none;
    box-shadow: 0 0 0 1px #d7f5b8, 0 0 16px 4px rgba(160, 232, 96, 0.85), 0 0 30px 8px rgba(160, 232, 96, 0.4);
  }
}
html[data-theme="dark"] .edu-pin.is-selected {
  background: #a0e860;
  border-color: #a0e860;
  box-shadow: 0 0 0 3px rgba(160, 232, 96, 0.4);
}

body:is(.edu-nexus, .hp-nexus) .edu-arrow {
  color: var(--nx-mint);
  background: var(--nx-panel);
  border-color: var(--nx-line);
}
body:is(.edu-nexus, .hp-nexus) .edu-arrow:hover,
body:is(.edu-nexus, .hp-nexus) .edu-arrow:focus-visible {
  background: var(--nx-raised);
  border-color: var(--nx-mint);
}
body:is(.edu-nexus, .hp-nexus) .edu-arrow:focus-visible { outline-color: var(--nx-mint); }
body:is(.edu-nexus, .hp-nexus) .edu-dot::before { background: var(--nx-line); }
body:is(.edu-nexus, .hp-nexus) .edu-dot:hover::before,
body:is(.edu-nexus, .hp-nexus) .edu-dot:focus-visible::before { background: var(--nx-muted); }
body:is(.edu-nexus, .hp-nexus) .edu-dot[aria-current="true"]::before { background: var(--nx-lime); }
body:is(.edu-nexus, .hp-nexus) .edu-dot:focus-visible { outline-color: var(--nx-mint); }
body:is(.edu-nexus, .hp-nexus) .edu-carousel-status { color: var(--nx-muted); }

body.edu-nexus .edu-pdf-link a {
  color: var(--nx-mint);
  background: var(--nx-panel);
  border-color: var(--nx-mint);
}
body.edu-nexus .edu-pdf-link a:hover,
body.edu-nexus .edu-pdf-link a:focus-visible {
  background: var(--nx-mint);
  color: var(--nx-ground);
}

body.edu-nexus .edu-handbook-lang-label { color: var(--nx-muted); }
body.edu-nexus .edu-handbook-switch {
  background: var(--nx-panel);
  border-color: var(--nx-mint);
}
body.edu-nexus .edu-handbook-switch label { color: var(--nx-mint); }
body.edu-nexus .edu-handbook-switch label:hover {
  background: color-mix(in srgb, var(--nx-mint) 14%, var(--nx-panel));
}
body.edu-nexus #edu-handbook-en:checked ~ .edu-handbook-lang label[for="edu-handbook-en"],
body.edu-nexus #edu-handbook-cn:checked ~ .edu-handbook-lang label[for="edu-handbook-cn"] {
  background: var(--nx-mint);
  color: var(--nx-ground);
}
body.edu-nexus #edu-handbook-en:focus-visible ~ .edu-handbook-lang label[for="edu-handbook-en"],
body.edu-nexus #edu-handbook-cn:focus-visible ~ .edu-handbook-lang label[for="edu-handbook-cn"] {
  outline-color: var(--nx-mint);
}
body.edu-nexus .edu-consent-note {
  color: var(--nx-muted);
  border-top-color: var(--nx-line);
}

body.edu-nexus .edu-logo {
  background: #fff;
  border-radius: 6px;
  padding: 4px;
}

@view-transition { navigation: auto; }

.navbar { view-transition-name: site-navbar; }

::view-transition-old(root) { animation: page-leave 170ms ease-in both; }
::view-transition-new(root) { animation: page-enter 260ms ease-out both; }

@keyframes page-leave {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root) { animation: page-leave-flat 120ms ease both; }
  ::view-transition-new(root) { animation: page-enter-flat 120ms ease both; }
}

@keyframes page-leave-flat { to { opacity: 0; } }
@keyframes page-enter-flat { from { opacity: 0; } }

@supports not (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    .container > :first-child,
    .page-hero { animation: page-enter 260ms ease-out backwards; }
  }
}

.edu-album {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem 1.75rem;
  margin: 1.5rem 0 0;
}

.edu-album-item {
  margin: 0;
  scroll-margin-top: 90px;
}

.edu-album-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.edu-album-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.edu-album-item figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin-top: 0.6rem;
}

.edu-album-item figcaption h4 {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2b1e17;
  margin: 0;
}

body.edu-nexus .edu-album-item figcaption h4 { color: var(--nx-text); }

.edu-album.is-scroller {
  --edu-pad: 1.4rem;
  --edu-meta: 148px;
  --edu-arrow: 38px;
  --edu-arrow-gap: 0.75rem;
  display: block;
  margin-top: 1.5rem;
}

.edu-album-frame {
  display: flex;
  align-items: center;
  gap: var(--edu-arrow-gap);
}

.edu-album-frame .edu-album-track { flex: 1 1 auto; min-width: 0; }

.edu-album-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid #e0d6c0;
  border-radius: 18px;
  background: #fffdf7;
}

.edu-album-track::-webkit-scrollbar { display: none; }

.edu-album-track:focus-visible {
  outline: 2px solid #075a3e;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .edu-album-track { scroll-behavior: auto; }
}

.edu-album.is-scroller .edu-album-item {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: var(--edu-meta) minmax(0, 1fr);
  gap: var(--edu-pad);
  align-items: center;
  padding: var(--edu-pad);
  scroll-margin-top: 90px;
}

.edu-album-num {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: #075a3e;
  margin: 0 0 0.6rem;
}

.edu-album.is-scroller .edu-album-meta h4 {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #2b1e17;
  margin: 0 0 0.5rem;
}

.edu-album-meta .edu-heading-date {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: #2b1e17;
}

.edu-album.is-scroller .edu-album-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.edu-album.is-scroller .edu-album-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.edu-album-arrow {
  flex: none;
  width: var(--edu-arrow);
  height: var(--edu-arrow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #075a3e;
  background: #fffdf7;
  border: 1px solid #c6bda6;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.edu-album-arrow-prev svg { transform: scaleX(-1); }

.edu-album-arrow:hover:not(:disabled) { border-color: #075a3e; }
.edu-album-arrow:focus-visible { outline: 2px solid #075a3e; outline-offset: 2px; }

.edu-album-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.edu-album-steps {
  display: flex;
  gap: 6px;
  margin: 0.9rem calc(var(--edu-arrow) + var(--edu-arrow-gap)) 0;
}

.edu-album-step {
  flex: 1 1 0;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.edu-album-step::before {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: #ded4bd;
  transition: background-color 0.2s ease;
}

.edu-album-step[aria-current="true"]::before { background: #075a3e; }
.edu-album-step:focus-visible { outline: 2px solid #075a3e; outline-offset: 2px; }

@media (max-width: 860px) {
  .edu-album.is-scroller { --edu-pad: 1.15rem; }
  .edu-album.is-scroller .edu-album-item { grid-template-columns: 1fr; gap: 1.1rem; }
  .edu-album-num { font-size: 1.9rem; margin-bottom: 0.35rem; }
  .edu-album-meta .edu-heading-date { font-size: 1.2rem; }
  .edu-album.is-scroller { --edu-arrow: 30px; --edu-arrow-gap: 0.45rem; }
  .edu-album-arrow { font-size: 0.9rem; }
}

.edu-album.is-scroller .edu-album-item figcaption { display: none; }

body.edu-nexus .edu-album-track {
  background: var(--nx-panel);
  border-color: var(--nx-line);
}
body.edu-nexus .edu-album-track:focus-visible { outline-color: var(--nx-mint); }

body.edu-nexus .edu-album-meta .edu-album-num { color: var(--nx-lime); }
body.edu-nexus .edu-album.is-scroller .edu-album-meta h4 { color: var(--nx-muted); }
body.edu-nexus .edu-album-meta .edu-heading-date { color: var(--nx-text); }

body.edu-nexus .edu-album-arrow {
  color: var(--nx-mint);
  background: rgba(14, 36, 46, 0.92);
  border-color: var(--nx-line);
}
body.edu-nexus .edu-album-arrow:hover:not(:disabled) { border-color: var(--nx-mint); }
body.edu-nexus .edu-album-arrow:focus-visible { outline-color: var(--nx-mint); }

body.edu-nexus .edu-album-step::before { background: var(--nx-line); }
body.edu-nexus .edu-album-step[aria-current="true"]::before { background: var(--nx-lime); }
body.edu-nexus .edu-album-step:focus-visible { outline-color: var(--nx-mint); }
.parts { max-width: 64rem; }
.parts section { margin-bottom: 3rem; }

.parts h2 {
  font-family: "Changa", sans-serif;
  color: #075a3e;
  margin-bottom: 1rem;
}

.parts p { font-size: 1.06rem; line-height: 1.8; color: #33413a; }

.parts-lead p { font-size: 1.2rem; line-height: 1.8; }

.parts-note {
  font-size: 1rem !important;
  color: #5f6e66 !important;
  border-left: 3px solid #dfe8e2;
  padding-left: 0.9rem;
}

.parts-table-wrap { overflow-x: auto; }

.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.parts-table th,
.parts-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid #dfe8e2;
  text-align: left;
  vertical-align: top;
}

.parts-table thead th {
  font-family: "Changa", sans-serif;
  color: #075a3e;
  border-bottom: 2px solid #075a3e;
  white-space: nowrap;
}

.parts-table .parts-group th {
  font-family: "Changa", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #075a3e;
  background: #f2f8f4;
  border-bottom: 1px solid #cfdcd5;
  padding-top: 0.75rem;
  padding-bottom: 0.45rem;
}

.parts-table .parts-composite td:first-child { font-weight: 700; }

.parts-table code {
  font-size: 0.88em;
  color: #075a3e;
  background: #f2f8f4;
  padding: 0.1em 0.4em;
  border-radius: 3px;
  white-space: nowrap;
}

.parts-card {
  border: 1px solid #dfe8e2;
  border-left: 4px solid #075a3e;
  border-radius: 8px;
  background: #fcfdfc;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.5rem;
}

.parts-card:last-child { margin-bottom: 0; }

.parts-card h3 {
  font-family: "Changa", sans-serif;
  font-size: 1.32rem;
  color: #075a3e;
  margin-bottom: 0.9rem;
}

.parts-card p:last-child { margin-bottom: 0; }

.parts-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.1rem;
  margin: 0 0 1.1rem;
  font-size: 1rem;
}

.parts-meta dt {
  font-family: "Changa", sans-serif;
  font-weight: 600;
  color: #5f6e66;
}

.parts-meta dd { margin: 0; color: #33413a; }

.parts-meta code,
.parts-card > p code {
  font-size: 0.9em;
  color: #075a3e;
  background: #f2f8f4;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.parts-built-from {
  font-size: 0.96rem !important;
  color: #5f6e66 !important;
  padding-top: 0.9rem;
  border-top: 1px solid #e8efea;
}

.parts-built-from code {
  font-size: 0.92em;
  color: #075a3e;
  background: #f2f8f4;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.parts-card .hw-fold.parts-seq-fold {
  margin: 0.9rem 0 0;
  max-width: none;
}
.parts-card .hw-fold-body { padding: 0.7rem 0.15rem 0.15rem; }

.parts-seq {
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: #f2f8f4;
  border: 1px solid #dfe8e2;
  border-radius: 6px;
}

.parts-seq code {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #1f3a2c;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.parts-table td > a,
.parts-meta dd > a { text-decoration: none; }

.parts-table td > a > code,
.parts-meta dd > a > code {
  border: 1px solid #cfe3d7;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.parts-table td > a:hover > code,
.parts-table td > a:focus-visible > code,
.parts-meta dd > a:hover > code,
.parts-meta dd > a:focus-visible > code {
  background: #dcefe3;
  border-color: #075a3e;
}

@media (prefers-reduced-motion: reduce) {
  .parts-table td > a > code,
  .parts-meta dd > a > code { transition: none; }
}

@media (max-width: 575.98px) {
  .parts-table { font-size: 0.86rem; }
  .parts-table th, .parts-table td { padding: 0.5rem 0.4rem; }
  .parts-card { padding: 1.1rem 1rem; }
  .parts-meta { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .parts-meta dd { margin-bottom: 0.5rem; }
}

body.bg-nexus .sgd {
  background: transparent;
  border-block-color: var(--nx-line);
}

body.bg-nexus .page-hero-tint {
  background: linear-gradient(to bottom,
    rgba(14, 36, 46, 0.55), rgba(14, 36, 46, 0.8));
}

body.bg-nexus .page-hero .hero-sub:empty { display: none; }
body.bg-nexus .page-hero {
  --hero-fade: 0rem;
  padding-top: calc(var(--nav-h) + 4rem) !important;
  padding-bottom: 1rem !important;
  margin-bottom: 0 !important;
  min-height: clamp(400px, 54vh, 600px);
  -webkit-mask-image: none;
  mask-image: none;
}
body.bg-nexus .sgd { padding-top: 2rem; }
body.bg-nexus .sgd-kicker { color: var(--nx-mint); }
body.bg-nexus .sgd-title { color: var(--nx-mint); }
body.bg-nexus .sgd-heading { color: var(--nx-text); }
body.bg-nexus .sgd-text p { color: var(--nx-text); }
body.bg-nexus .sgd-arc path { stroke: var(--nx-line); }
body.bg-nexus .sgd-dot {
  background: var(--nx-panel);
  border-color: var(--nx-mint);
}

.bg-handoff {
  max-width: 46rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  text-align: center;
}
.bg-handoff-kicker {
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f8f74;
  margin-bottom: 0.4rem;
}
.bg-handoff-title {
  font-family: "Changa", sans-serif;
  color: #075a3e;
  margin-bottom: 0.75rem;
}
.bg-handoff-lead { line-height: 1.8; color: #33413a; }
.bg-handoff-cue {
  margin: 1.4rem 0 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #75b299;
}

body.bg-nexus .bg-handoff-kicker { color: var(--nx-mint); }
body.bg-nexus .bg-handoff-title { color: var(--nx-mint); }
body.bg-nexus .bg-handoff-lead { color: var(--nx-text); }
body.bg-nexus .bg-handoff-cue { color: var(--nx-mint); }

body.bg-nexus #mainMenu > h1 {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.bg-nexus .board-game-page {
  --wood-light: #16323f; --wood-mid: #123040; --wood-dark: #0e242e;
  --paper: #1c4352; --paper2: #16323f;
  --ink: #dbe9ee; --ink2: #93b0bb; --border: #24596b;

  --positive: #2f9e86; --positive-edge: #268470; --positive-drop: #1a5f51;
  --brand: #49c5b6; --brand-soft: #a0e860; --brand-tint: rgba(73, 197, 182, 0.14);
  --neutral: #1c4352; --neutral-edge: #14323d; --neutral-drop: #0c2029;
  --red: #e0705f; --gold: #e6b060; --muted: #93b0bb;
  --red-up: #f49c8d;
  --sticky-y: #5a4a1e; --sticky-p: #5a2740; --sticky-g: #1d5244;

  background: linear-gradient(160deg, var(--wood-light), var(--wood-mid), var(--wood-dark));
  border: 1px solid var(--nx-line);
}

body.bg-nexus .board-game-page .tgc-torn-page {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
body.bg-nexus .board-game-page .tgc-torn-page::before,
body.bg-nexus .board-game-page .tgc-torn-page::after { opacity: 0.18; }
body.bg-nexus .board-game-page .card-announce-name { color: var(--nx-text); }
body.bg-nexus .board-game-page .card-announce-desc {
  color: var(--nx-muted);
  border-left-color: var(--nx-line);
}
body.bg-nexus .board-game-page .card-announce-link:hover,
body.bg-nexus .board-game-page .card-announce-link:focus-visible { color: var(--nx-lime); }
body.bg-nexus .board-game-page .sticky-note { color: #f2f8fa; }

body.bg-nexus .board-game-page .menu-box,
body.bg-nexus .board-game-page .tgc-dialog,
body.bg-nexus .board-game-page .card,
body.bg-nexus .board-game-page .panel {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
body.bg-nexus .board-game-page h1,
body.bg-nexus .board-game-page h2,
body.bg-nexus .board-game-page h3 { color: var(--nx-mint); }
body.bg-nexus .board-game-page select,
body.bg-nexus .board-game-page input[type="text"],
body.bg-nexus .board-game-page input[type="number"] {
  background: var(--nx-raised);
  border: 1px solid var(--nx-line);
  color: var(--nx-text);
}
body.bg-nexus .board-game-page .lang-bar {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
}

body.bg-nexus .board-game-page .player-card,
body.bg-nexus .board-game-page .hand-area,
body.bg-nexus .board-game-page .phase-bar{
  background: var(--nx-panel);
  border-color: var(--nx-line);
}
body.bg-nexus .board-game-page .room-code-display {
  background: var(--nx-panel);
  border-color: var(--gold);
}
body.bg-nexus .board-game-page .sdg-badge,
body.bg-nexus .board-game-page .sdg-progress-bar,
body.bg-nexus .board-game-page .lobby-seat,
body.bg-nexus .board-game-page .tutorial-dot,
body.bg-nexus .board-game-page .hand-count-tag {
  background: var(--nx-raised);
  border-color: var(--nx-line);
}
body.bg-nexus .board-game-page .sdg-pick,
body.bg-nexus .board-game-page input,
body.bg-nexus .board-game-page select,
body.bg-nexus .board-game-page .lang-bar select {
  border-color: var(--nx-line);
}
body.bg-nexus .board-game-page .lang-bar select {
  background: var(--nx-raised);
  color: var(--nx-text);
}
body.bg-nexus .board-game-page .sdg-badge.goal,
body.bg-nexus .board-game-page .tgc-pause.is-paused { color: #10272f; }
body.bg-nexus .board-game-page .card-announce-player.reveal {
  background: rgba(230, 176, 96, 0.14);
  border-color: var(--gold);
}
body.bg-nexus .board-game-page .card-announce-player { color: var(--nx-muted); }
body.bg-nexus .board-game-page .log-entry { border-bottom-color: var(--nx-line); }
body.bg-nexus .board-game-page .log-entry.sys,
body.bg-nexus .board-game-page .log-entry.ai { color: var(--nx-muted); }
body.bg-nexus .board-game-page .log-entry.down,
body.bg-nexus .board-game-page .card-bwd { color: var(--red-up); }
body.bg-nexus .board-game-page .phase-label { color: var(--brand); }
body.bg-nexus .board-game-page .log-entry.special { color: var(--gold); }
body.bg-nexus .board-game-page .log-entry.up,
body.bg-nexus .board-game-page .card-fwd { color: var(--brand); }
body.bg-nexus .board-game-page .ai-thinking { color: var(--nx-warm); }

body.bg-nexus .sgd-node {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  box-shadow: 0 0 0 7px rgba(73, 197, 182, 0.08);
}
body.bg-nexus .sgd-stop.is-reached .sgd-node {
  border-color: var(--nx-mint);
  box-shadow: 0 0 0 7px rgba(73, 197, 182, 0.18);
}

body.bg-nexus .board-game-page button.success {
  background: var(--nx-mint);
  border-color: #3aa89b;
  box-shadow: 0 3px 0 #27796f;
  color: var(--nx-ground);
}
body.bg-nexus .board-game-page button.danger {
  background: var(--red);
  border-color: #c25646;
  box-shadow: 0 3px 0 #9c4133;
  color: var(--nx-ground);
}
body.bg-nexus .board-game-page .tutorial-lang-tag {
  color: var(--nx-text);
  background: rgba(73, 197, 182, 0.12);
  border-color: var(--nx-line);
}

.sgd-fig { margin: 1.3rem 0 1.1rem; }
.sgd-fig-cap {
  font-family: "Changa", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f4a38;
  margin-bottom: 0.5rem;
}
.sgd-chart { display: block; width: 100%; height: auto; }
.sgd-fig-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #5f6e66;
}

.sgd-chart-grid line { stroke: #dfe8e2; stroke-width: 1; }
.sgd-chart-tick { font-size: 13px; fill: #8a978f; }
.sgd-chart-axis { font-size: 12px; fill: #8a978f; }
.sgd-chart-lab { font-size: 14px; fill: #33413a; }
.sgd-chart-val { font-size: 14px; font-weight: 700; fill: #1f4a38; }

.sgd-bar rect { fill: #279a8c; }
.sgd-bar-rev { fill: #b8853a; }

.sgd-sd { stroke: #9ec5b2; stroke-width: 2; }
.sgd-sd-end { stroke: #9ec5b2; stroke-width: 2; }
.sgd-dumb { stroke: #279a8c; stroke-width: 2; }
.sgd-dot-before { fill: #fffdf7; stroke: #279a8c; stroke-width: 2.5; }
.sgd-dot-after { fill: #279a8c; stroke: #fffdf7; stroke-width: 2; }

body.bg-nexus .sgd-fig-cap { color: var(--nx-mint); }
body.bg-nexus .sgd-fig-note { color: var(--nx-muted); }
body.bg-nexus .sgd-chart-grid line { stroke: var(--nx-line); }
body.bg-nexus .sgd-chart-tick,
body.bg-nexus .sgd-chart-axis { fill: var(--nx-muted); }
body.bg-nexus .sgd-chart-lab { fill: var(--nx-text); }
body.bg-nexus .sgd-chart-val { fill: var(--nx-text); }
body.bg-nexus .sgd-sd,
body.bg-nexus .sgd-sd-end { stroke: #4d7383; }
body.bg-nexus .sgd-dot-before { fill: var(--nx-panel); stroke: #279a8c; }
body.bg-nexus .sgd-dot-after { fill: #279a8c; stroke: var(--nx-panel); }

body.bg-nexus { --nx-muted: #c6dde4; }

body.bg-nexus .sgd-list li { color: var(--nx-text); }
body.bg-nexus .sgd-list li strong { color: var(--nx-lime); font-weight: 600; }
body.bg-nexus .sgd-list li::marker { color: var(--nx-mint); }

body.bg-nexus .board-game-page { --muted: #c6dde4; --ink2: #c6dde4; }

.sdgp-strip { margin: 1.75rem 0 0.5rem; }

.sdgp-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.6rem;
}

.sdgp-tile {
  border: 2px solid var(--sdg);
  border-radius: 8px;
  background: #fff;
  color: #4a4a4a;
  min-height: 124px;
  opacity: 0.55;
}

.sdgp-tile > a,
.sdgp-tile:not(.is-ours) {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem;
}

.sdgp-tile > a {
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sdgp-tile.is-ours {
  background: var(--sdg);
  color: #fff;
  opacity: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sdgp-tile.is-ours:hover,
.sdgp-tile.is-ours:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.sdgp-tile.is-ours a:focus-visible {
  outline: 3px solid #2b1e17;
  outline-offset: 3px;
  border-radius: 6px;
}

.sdgp-num {
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.sdgp-tile:not(.is-ours) .sdgp-num,
.sdgp-tile:not(.is-ours) .sdgp-icon { color: var(--sdg); }

.sdgp-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.sdgp-icon {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
}

.sdgp-name {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  hyphens: manual;
}

.sdgp-goal-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sdgp-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: var(--sdg);
  color: #fff;
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

.sdgp-badge-pair { padding: 0; overflow: hidden; }
.sdgp-badge-pair > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 2.6rem;
  background: var(--sdg);
}

.sdgp-goal h3 {
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sdg);
  margin-top: 1.6rem;
}

.sdgp-target {
  font-size: 0.92rem;
  color: #5c6b62;
  border-left: 3px solid var(--sdg);
  padding-left: 0.8rem;
}

.sdgp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 0.4rem;
}

.sdgp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sdg) 8%, #fff);
  border-top: 4px solid var(--sdg);
}

.sdgp-stat-num {
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--sdg);
}

.sdgp-stat-label { font-size: 0.88rem; color: #4a4a4a; line-height: 1.35; }

.sdgp-closing { text-align: center; }

.sdgp-closing-text {
  max-width: 34ch;
  margin: 1.5rem auto 0.5rem;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.2rem);
  line-height: 1.35;
  background: linear-gradient(100deg, #a0e860, #49c5b6 60%, #5fb3e0);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(160, 232, 96, 0.3));
}

.sdgp-closing-text em {
  font-style: normal;
  font-weight: 800;
}

body.hp-nexus .edu-session-block .sdgp-closing-text {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 575.98px) {
  .sdgp-tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .sdgp-tile { min-height: 108px; }
  .sdgp-num { font-size: 1.4rem; }
  .sdgp-icon { width: 1.7rem; height: 1.7rem; }
  .sdgp-name { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sdgp-tile.is-ours { transition: none; }
  .sdgp-tile.is-ours:hover,
  .sdgp-tile.is-ours:focus-within { transform: none; }
}

body.edu-nexus .sdgp-tile {
  background: var(--nx-panel);
  color: var(--nx-text);
  opacity: 1;
  border-color: color-mix(in srgb, var(--sdg) 70%, transparent);
}

body.edu-nexus .sdgp-tile:not(.is-ours) .sdgp-num,
body.edu-nexus .sdgp-tile:not(.is-ours) .sdgp-icon {
  color: color-mix(in srgb, var(--sdg) 45%, #fff);
}

body.edu-nexus .sdgp-tile:not(.is-ours) .sdgp-name { color: var(--nx-muted); }
body.edu-nexus .sdgp-tile:not(.is-ours) { background: transparent; }

body.edu-nexus .sdgp-tile.is-ours {
  background: var(--sdg);
  border-color: color-mix(in srgb, var(--sdg) 60%, #fff);
  color: #fff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--sdg) 55%, transparent);
}

body.edu-nexus .sdgp-tile.is-ours:hover,
body.edu-nexus .sdgp-tile.is-ours:focus-within {
  box-shadow: 0 0 26px color-mix(in srgb, var(--sdg) 80%, transparent),
              0 8px 18px rgba(0, 0, 0, 0.45);
}

body.edu-nexus .sdgp-tile.is-ours a { color: #fff; }
body.edu-nexus .sdgp-tile.is-ours a:focus-visible { outline-color: var(--nx-lime); }

body.edu-nexus .sdgp-goal h3 { color: color-mix(in srgb, var(--sdg) 40%, #fff); }
body.edu-nexus .sdgp-target {
  color: var(--nx-muted);
  border-left-color: color-mix(in srgb, var(--sdg) 70%, #fff);
}
body.edu-nexus .sdgp-badge { box-shadow: 0 0 16px color-mix(in srgb, var(--sdg) 50%, transparent); }

body.edu-nexus .sdgp-stat {
  background: var(--nx-panel);
  border: 1px solid var(--nx-line);
  border-top: 4px solid var(--sdg);
}
body.edu-nexus .sdgp-stat-num { color: var(--nx-lime); }
body.edu-nexus .sdgp-stat-label { color: var(--nx-muted); }

body.edu-nexus .hp-figure {
  background: var(--nx-panel);
  border-color: var(--nx-line);
}
body.edu-nexus .hp-figure figcaption { color: var(--nx-muted); }
body.edu-nexus .hp-pie-source { color: var(--nx-muted); }
body.edu-nexus .hp-pie-total { fill: var(--nx-text); }
body.edu-nexus .hp-pie-total-sub { fill: var(--nx-muted); }
body.edu-nexus .hp-pie-legend li { color: var(--nx-text); }
body.edu-nexus .hp-pie-legend li.is-on { background: var(--nx-raised); }
body.edu-nexus .hp-pie-table th,
body.edu-nexus .hp-pie-table td { color: var(--nx-text); border-bottom-color: var(--nx-line); }
body.edu-nexus .hp-pie-table caption { color: var(--nx-muted); }
body.edu-nexus .hp-pie-tip {
  background: var(--nx-raised);
  color: var(--nx-text);
  border: 1px solid var(--nx-line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

body.edu-nexus .collab-teams img {
  box-sizing: border-box;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}
body.edu-nexus .collab-teams span { color: var(--nx-muted); }

body.nb-nexus .nb {
  --nb-rule: var(--nx-line);
  --nb-muted: var(--nx-muted);
}

body.nb-nexus .nb [data-track="wet"] { --nb-accent: #279a8c; }
body.nb-nexus .nb [data-track="dry"] { --nb-accent: #b8853a; }
body.nb-nexus .nb [data-track="hp"]  { --nb-accent: #7490dd; }

body.nb-nexus .nb-tally-n { color: var(--nx-text); }
body.nb-nexus .nb-tally-label { color: var(--nx-muted); }
body.nb-nexus .nb-status { color: var(--nx-text); }
body.nb-nexus .nb-status-n { color: var(--nx-mint); }
body.nb-nexus .nb-intro p { color: var(--nx-text); }

body.nb-nexus .nb-head { border-color: var(--nx-line); }
body.nb-nexus .nb-head-week,
body.nb-nexus .nb-head-track { color: var(--nx-muted); }
body.nb-nexus .nb-week { border-color: var(--nx-line); }
body.nb-nexus .nb-week-n { color: var(--nx-text); }
body.nb-nexus .nb-dates { color: var(--nx-muted); }
body.nb-nexus .nb-col-head { color: var(--nx-muted); }
body.nb-nexus .nb-entry { color: var(--nx-text); }
body.nb-nexus .nb-entry a { color: var(--c-teal); }
html[data-theme="dark"] .nb-entry a { text-decoration-color: currentColor; }
body.nb-nexus .nb-entry em { color: var(--nx-text); }
body.nb-nexus .nb-empty { color: #5c7d8a; }

body.nb-nexus .nb-sort {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  color: var(--nx-text);
}
body.nb-nexus .nb-sort:hover:not(:disabled),
body.nb-nexus .nb-sort:focus-visible {
  background: var(--nx-raised);
  color: var(--nx-lime);
}

body.nb-nexus .nb-hover-img {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

body.hw-nexus .hw #printed > section { margin-bottom: 4.5rem; }
body.hw-nexus .hw #printed > section > p,
body.hw-nexus .hw #printed .hw-build-head > p { max-width: 46rem; }
body.hw-nexus .hw #printed > section:not(.hw-docs) > h3 {
  margin-top: 3rem;
  font-size: 1.3rem;
}

body.hw-nexus .hw .hw-point {
  max-width: 44rem;
  margin: 0 0 1.2rem;
  font-family: "Changa", sans-serif;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}
body.hw-nexus .hw .hw-point.hw-point-sub { font-size: 1.12rem; }

body.hw-nexus .hw .hw-limit {
  max-width: 46rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-limit > b {
  margin-right: 0.55rem;
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nx-warm);
}

body.hw-nexus .hw .hw-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  max-width: none;
  margin: 1rem 0 0;
  font-family: "Changa", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}
body.hw-nexus .hw .hw-more a { font-weight: 600; text-decoration: none; }
body.hw-nexus .hw .hw-more a::after { content: "\00a0\2192"; }
body.hw-nexus .hw .hw-more a:hover,
body.hw-nexus .hw .hw-more a:focus-visible { text-decoration: underline; }

body.hw-nexus .hw .hw-build-head .hw-keys { margin-bottom: 0.2rem; }
.hw .hw-build-head .hw-keys .hw-key-say,
.hw .hw-brief .hw-key-say {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: #33413a;
}
body.hw-nexus .hw .hw-build-head .hw-keys .hw-key-say,
body.hw-nexus .hw .hw-brief .hw-key-say { color: var(--nx-text); }

body.hw-nexus .hw .hw-brief {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}
body.hw-nexus .hw .hw-brief + .hw-limit { margin-top: 1.1rem; }

.hw-svg-lead { fill: none; stroke: var(--nx-mint, #4f8f74); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hw-svg-nm { text-anchor: middle; font-size: 13px; fill: var(--nx-muted, #8a978f); }
.hw-svg-cue { font-size: 14px; font-weight: 600; }
.hw-svg-cue-blue { fill: var(--nx-blue-up, #2b6cb0); }
.hw-svg-cue-green { fill: #55d98a; }
.hw-svg-land-blue { fill: none; stroke: var(--nx-blue-up, #2b6cb0); stroke-width: 2; }
.hw-svg-land-green { fill: none; stroke: #55d98a; stroke-width: 2; }
.hw-svg-badge circle { fill: var(--nx-ground, #fffdf7); stroke: var(--nx-mint, #1f4a38); stroke-width: 1.5; }
.hw-svg-badge text {
  text-anchor: middle;
  font-family: "Changa", sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: var(--nx-mint, #1f4a38);
}
.hw-svg .hwx-chan.is-em rect { stroke: #55d98a; stroke-width: 2.5; opacity: 1; }
.hw-svg .hwx-chan:focus-visible { outline: 3px solid var(--nx-warm, #e6a94b); outline-offset: 2px; }
.hw-svg .hwx-chan-wide { font-size: 11px; fill: #dbe9ee; }

body.hw-nexus .hw .hw-how {
  list-style: none;
  counter-reset: hw-how;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
}
body.hw-nexus .hw .hw-how > li {
  counter-increment: hw-how;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-how > li > b {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
  font-family: "Changa", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--nx-text);
}
body.hw-nexus .hw .hw-how > li > b::before {
  content: counter(hw-how);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--nx-mint);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nx-mint);
}
@media (max-width: 991.98px) {
  body.hw-nexus .hw .hw-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  body.hw-nexus .hw .hw-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.hw-nexus .hw .hw-brief > div { padding: 0.8rem 0.85rem; }
  body.hw-nexus .hw .hw-brief dt { font-size: 1.55rem; }
  body.hw-nexus .hw .hw-brief .hw-key-say { font-size: 1.04rem; }
}
body.hw-nexus .hw .hw-build-head .hw-limit { margin: 0.9rem 0 1.7rem; }
body.hw-nexus .hw #printed .hw-limit + p:not(.hw-more) { margin-top: 1.6rem; }

body.hw-nexus .hw .hw-loop { margin: 1.9rem 0 0.4rem; }
body.hw-nexus .hw .hw-loop-who {
  margin: 1.2rem 0 0.55rem; font-family: "Changa", sans-serif; font-weight: 700; font-size: 1rem; color: #fff;
}
body.hw-nexus .hw .hw-loop-turn {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
body.hw-nexus .hw .hw-loop-turn > li {
  position: relative; margin: 0; padding: 1.1rem 1.25rem 1.05rem;
  border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-panel);
  font-size: 0.95rem; line-height: 1.6; color: var(--nx-text);
}
body.hw-nexus .hw .hw-loop-turn > li > b {
  display: block; margin-bottom: 0.35rem;
  font-family: "Changa", sans-serif; font-size: 1.32rem; font-weight: 700; line-height: 1.2;
  color: var(--nx-lime);
}
body.hw-nexus .hw .hw-loop-next > b {
  font-family: "Changa", sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-mint);
}
body.hw-nexus .hw .hw-loop-turn > li + li::before {
  content: "\2192"; position: absolute; left: -0.75rem; top: 50%; transform: translate(-50%, -50%);
  color: var(--nx-lime); font-size: 1rem; line-height: 1;
}
body.hw-nexus .hw .hw-loop-next {
  margin: 1rem 0 0; padding: 1.1rem 1.25rem 1.05rem;
  border: 1px dashed var(--nx-line); border-radius: 12px;
  font-size: 0.95rem; line-height: 1.6; color: var(--nx-text);
}
body.hw-nexus .hw .hw-loop-next > b { margin-right: 0.6rem; color: var(--nx-lime); }
@media (max-width: 859.98px) {
  body.hw-nexus .hw .hw-loop-turn { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  body.hw-nexus .hw .hw-loop-turn > li + li::before { content: none; }
}

body.hw-nexus .hw .hw-said,
body.hw-nexus .hw .hw-do {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
body.hw-nexus .hw .hw-said { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.hw-nexus .hw .hw-said.is-one { grid-template-columns: minmax(0, 1fr); }
body.hw-nexus .hw .hw-do { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: hw-do; }
body.hw-nexus .hw .hw-said > li,
body.hw-nexus .hw .hw-do > li {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem 1.05rem;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-panel);
}
body.hw-nexus .hw .hw-said-who,
body.hw-nexus .hw .hw-do > li::before {
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-mint);
}
body.hw-nexus .hw .hw-said p { margin: 0; }
body.hw-nexus .hw .hw-said .hw-gain-fig { margin: 0.35rem 0 1rem; }
body.hw-nexus .hw .hw-said .hw-said-note {
  margin: -0.55rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-said .hw-said-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0.9rem;
  border-top: 1px dashed var(--nx-line);
}
body.hw-nexus .hw .hw-said .hw-said-what,
body.hw-nexus .hw .hw-said .hw-said-then {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--nx-text);
}
body.hw-nexus .hw .hw-said .hw-said-what { padding-right: 1.5rem; }
body.hw-nexus .hw .hw-said .hw-said-then {
  padding-left: 1.5rem;
  border-left: 1px dashed var(--nx-line);
}
body.hw-nexus .hw .hw-said b {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-said .hw-said-then b { color: var(--nx-lime); }

body.hw-nexus .hw .hw-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1.6rem;
}
body.hw-nexus .hw .hw-shots.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 859.98px) { body.hw-nexus .hw .hw-shots.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body.hw-nexus .hw .hw-shots.is-three { grid-template-columns: minmax(0, 1fr); } }
body.hw-nexus .hw .hw-shot { margin: 0; }
body.hw-nexus .hw .hw-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-panel);
}
body.hw-nexus .hw .hw-shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-shot figcaption b {
  margin-right: 0.5rem;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-mint);
}
@media (max-width: 640px) {
  body.hw-nexus .hw .hw-shots { grid-template-columns: minmax(0, 1fr); }
}

body.hw-nexus .hw .hw-place {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.3rem 0 1.4rem;
}
body.hw-nexus .hw .hw-place-deck {
  margin: 0;
  padding: 0.95rem 0.95rem 1rem;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-panel);
}
body.hw-nexus .hw .hw-place-who {
  margin-bottom: 0.7rem;
  font-family: "Changa", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-place-deck[data-deck="v2"] .hw-place-who { color: var(--nx-lime); }
body.hw-nexus .hw .hw-place-who span { margin-left: 0.5rem; font-weight: 500; color: var(--nx-muted); }
body.hw-nexus .hw .hw-place-slides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.hw-nexus .hw .hw-place-slides img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--nx-ground);
}
body.hw-nexus .hw .hw-place-slides p {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--nx-text);
}
body.hw-nexus .hw .hw-place-slides b {
  display: block;
  font-family: "Changa", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
body.hw-nexus .hw .hw-place-deck[data-deck="v2"] .hw-place-slides b { color: var(--nx-lime); }

body.hw-nexus .hw .hw-place.is-live .hw-place-slides { grid-template-columns: minmax(0, 1fr); }
body.hw-nexus .hw .hw-place.is-live .hw-place-slides > li {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
body.hw-nexus .hw .hw-place.is-live .hw-place-slides > li.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s;
}

body.hw-nexus .hw .hw-place-ctrl {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.5rem;
}
body.hw-nexus .hw .hw-place-marks {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
body.hw-nexus .hw .hw-place-marks i {
  width: 1.7rem;
  height: 3px;
  border-radius: 2px;
  background: var(--nx-line);
  transition: background-color 0.25s ease;
}
body.hw-nexus .hw .hw-place-marks i.is-done { background: var(--nx-mint); }
body.hw-nexus .hw .hw-place-marks i.is-on { background: var(--nx-lime); }
body.hw-nexus .hw .hw-place-btn {
  min-width: 2.3rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--nx-line);
  border-radius: 999px;
  background: var(--nx-panel);
  font-family: "Changa", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nx-lime);
  cursor: pointer;
}
body.hw-nexus .hw .hw-place-btn:hover { border-color: var(--nx-mint); }
body.hw-nexus .hw .hw-place-btn:focus-visible { outline: 2px solid var(--nx-lime); outline-offset: 2px; }
body.hw-nexus .hw .hw-place-prev,
body.hw-nexus .hw .hw-place-next { font-size: 1.1rem; line-height: 1.1; }
body.hw-nexus .hw .hw-place-toggle { margin-left: 0.6rem; min-width: 4.4rem; }
body.hw-nexus .hw .hw-place-at {
  min-width: 6.6rem;
  text-align: center;
  font-family: "Changa", sans-serif;
  font-size: 0.86rem;
  color: var(--nx-muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  body.hw-nexus .hw .hw-place { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.hw-nexus .hw .hw-place.is-live .hw-place-slides > li,
  body.hw-nexus .hw .hw-place.is-live .hw-place-slides > li.is-on { transition: none; }
}

body.hw-nexus .hw .hw-do > li { counter-increment: hw-do; }
body.hw-nexus .hw .hw-do > li::before { content: "Step " counter(hw-do); }
body.hw-nexus .hw .hw-do h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.75rem;
  color: var(--nx-lime);
}
body.hw-nexus .hw .hw-do p { margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.6; }
body.hw-nexus .hw .hw-do .hw-more {
  margin: auto 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--nx-line);
}

body.hw-nexus .hw .hw-do.hw-do-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.hw-nexus .hw .hw-do > .hw-do-wide {
  grid-column: 1 / -1;
  padding: 1.25rem 1.5rem 1.2rem;
  scroll-margin-top: 96px;
}
body.hw-nexus .hw .hw-do .hw-run-lead { max-width: 46rem; margin-bottom: 1.2rem; }

body.hw-nexus .hw .hw-run-once > b,
body.hw-nexus .hw .hw-run-cols span {
  font-family: "Changa", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

body.hw-nexus .hw .hw-run-log {
  margin: 0 0 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--nx-line);
  border-radius: 8px;
  background: var(--nx-ground);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--nx-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body.hw-nexus .hw .hw-run-log b { font-weight: 700; color: var(--nx-lime); }

body.hw-nexus .hw .hw-run-cols,
body.hw-nexus .hw .hw-run > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
  column-gap: 1.25rem;
}
body.hw-nexus .hw .hw-run-cols { padding-bottom: 0.5rem; border-bottom: 1px solid var(--nx-line); }
body.hw-nexus .hw .hw-run-cols span:first-child { grid-column: 2; }
body.hw-nexus .hw .hw-run {
  list-style: none;
  counter-reset: hw-run;
  margin: 0;
  padding: 0;
}
body.hw-nexus .hw .hw-run > li {
  position: relative;
  counter-increment: hw-run;
  padding: 0.85rem 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
body.hw-nexus .hw .hw-run > li::before {
  content: counter(hw-run);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--nx-mint);
  border-radius: 50%;
  background: var(--nx-panel);
  font-family: "Changa", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--nx-mint);
}
body.hw-nexus .hw .hw-run > li::after {
  content: "";
  position: absolute;
  left: calc(0.875rem - 0.5px);
  top: 1rem;
  bottom: -1rem;
  width: 1px;
  background: var(--nx-line);
}
body.hw-nexus .hw .hw-run > li:last-child::after { content: none; }
body.hw-nexus .hw .hw-run > li.is-hero::before {
  border-color: var(--nx-lime);
  background: var(--nx-lime);
  color: var(--nx-ground);
}

body.hw-nexus .hw .hw-run-do { color: var(--nx-muted); }
body.hw-nexus .hw .hw-run-do > b {
  display: block;
  margin-bottom: 0.15rem;
  font-family: "Changa", sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

body.hw-nexus .hw .hw-run-cmd { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
body.hw-nexus .hw .hw-run-cmd kbd {
  max-width: 100%;
  padding: 0.22rem 0.65rem 0.26rem;
  border: 1px solid var(--nx-mint);
  border-radius: 8px;
  background: var(--nx-ground);
  box-shadow: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  overflow-wrap: anywhere;
}
body.hw-nexus .hw .hw-run-cmd kbd::before { content: ">\00a0"; color: var(--nx-mint); }
body.hw-nexus .hw .hw-run > li.is-hero .hw-run-cmd kbd { border-color: var(--nx-lime); }
body.hw-nexus .hw .hw-run > li.is-hero .hw-run-cmd kbd::before { color: var(--nx-lime); }

body.hw-nexus .hw .hw-do .hw-run-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0;
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
body.hw-nexus .hw .hw-run-strip > span {
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--nx-line);
  background: var(--nx-ground);
  color: var(--nx-muted);
  white-space: nowrap;
}
body.hw-nexus .hw .hw-run-strip > span + span { border-left: 0; }
body.hw-nexus .hw .hw-run-strip > span:first-child { border-radius: 8px 0 0 8px; }
body.hw-nexus .hw .hw-run-strip > span:nth-child(3) { border-radius: 0 8px 8px 0; }
body.hw-nexus .hw .hw-run-strip > span b { font-weight: 700; color: var(--nx-text); }
body.hw-nexus .hw .hw-run-strip > .is-lit {
  background: rgba(95, 179, 224, 0.16);
  color: var(--nx-blue-up);
}
body.hw-nexus .hw .hw-run-strip > .is-lit b { color: #55d98a; }
body.hw-nexus .hw .hw-run-strip > code { margin-left: 0.55rem; overflow-wrap: anywhere; }
body.hw-nexus .hw .hw-run > li.is-hero .hw-run-strip > .is-lit b { font-size: 1.12rem; line-height: 1; }

body.hw-nexus .hw .hw-do .hw-run-note,
body.hw-nexus .hw .hw-do .hw-run-foot {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--nx-muted);
}
body.hw-nexus .hw .hw-do .hw-run-foot {
  max-width: 46rem;
  margin: 0.55rem 0 0 3.25rem;
}
body.hw-nexus .hw .hw-run-foot i { font-style: normal; color: var(--nx-text); }

body.hw-nexus .hw .hw-run-once {
  margin: 1.1rem 0 1.5rem;
  padding: 0.8rem 1rem 0.9rem;
  border: 1px dashed var(--nx-line);
  border-radius: 10px;
}
body.hw-nexus .hw .hw-run-once > b { display: block; margin-bottom: 0.25rem; color: var(--nx-warm); }
body.hw-nexus .hw .hw-run-once p { margin: 0 0 0.55rem; }
body.hw-nexus .hw .hw-run-once .hw-run-log { margin: 0; color: var(--nx-text); }

body.hw-nexus .hw .hw-do .hw-run-else-head {
  margin: 1.5rem 0 0.1rem;
  font-size: 1.12rem;
  color: #fff;
}
body.hw-nexus .hw .hw-run-else {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0 0 0.6rem;
}
body.hw-nexus .hw .hw-run-else dl { margin: 0; }
body.hw-nexus .hw .hw-run-else dl > div { padding: 0.7rem 0 0.15rem; }
body.hw-nexus .hw .hw-run-else dt { margin-bottom: 0.2rem; font-size: 0.95rem; font-weight: 700; color: var(--nx-warm); }
body.hw-nexus .hw .hw-run-else dt code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nx-warm);
  overflow-wrap: anywhere;
}
body.hw-nexus .hw .hw-run-else .is-ok dt,
body.hw-nexus .hw .hw-run-else .is-ok dt code { color: var(--nx-lime); }
body.hw-nexus .hw .hw-run-else dd { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--nx-text); }
body.hw-nexus .hw .hw-run-seen {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--nx-muted);
}

@media (max-width: 760px) {
  body.hw-nexus .hw .hw-do.hw-do-two { grid-template-columns: minmax(0, 1fr); }
  body.hw-nexus .hw .hw-do > .hw-do-wide { padding: 1.1rem 1rem 1.05rem; }
  body.hw-nexus .hw .hw-run-cols { display: none; }
  body.hw-nexus .hw .hw-run { border-top: 1px solid var(--nx-line); }
  body.hw-nexus .hw .hw-run > li { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.8rem; row-gap: 0.5rem; }
  body.hw-nexus .hw .hw-run > li > div { grid-column: 2; }
  body.hw-nexus .hw .hw-run > li::before { grid-row: 1 / span 3; }
  body.hw-nexus .hw .hw-do .hw-run-foot { margin-left: 0; }
  body.hw-nexus .hw .hw-run-else { grid-template-columns: minmax(0, 1fr); }
}

body.hw-nexus .hw .hw-docs > h3 {
  margin: 2.2rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nx-muted);
  scroll-margin-top: 96px;
}
body.hw-nexus .hw .hw-docs-list { border-top: 1px solid var(--nx-line); }
body.hw-nexus .hw .hw-docs-list > .hw-fold {
  max-width: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--nx-line);
  border-radius: 0;
  background: transparent;
  scroll-margin-top: 96px;
}
body.hw-nexus .hw .hw-docs-list > .hw-fold > .hw-fold-head { padding: 0.9rem 0.35rem; }
body.hw-nexus .hw .hw-docs-list > .hw-fold > .hw-fold-head:hover { background: rgba(255, 255, 255, 0.03); }
body.hw-nexus .hw .hw-docs-list > .hw-fold[open] > .hw-fold-head { border-bottom: 0; }
body.hw-nexus .hw .hw-docs-list > .hw-fold > .hw-fold-head .hw-fold-title {
  font-size: 1rem;
  color: var(--nx-text);
}
body.hw-nexus .hw .hw-docs-list > .hw-fold[open] > .hw-fold-head .hw-fold-title { color: var(--nx-mint); }
body.hw-nexus .hw .hw-docs-list > .hw-fold > .hw-fold-body { padding: 0.2rem 0.35rem 1.7rem; }
body.hw-nexus .hw .hw-docs-list .hw-fold-body > p { max-width: 46rem; }
body.hw-nexus .hw .hw-docs-list .hw-figure-table { max-width: none; }
body.hw-nexus .hw .hw-docs-list h4 {
  margin: 2rem 0 0.7rem;
  font-size: 1rem;
  color: var(--nx-text);
}
body.hw-nexus .hw .hw-docs-list .hw-fold-body > h4:first-child { margin-top: 0.5rem; }

@media (max-width: 760px) {
  body.hw-nexus .hw .hw-said,
  body.hw-nexus .hw .hw-do { grid-template-columns: minmax(0, 1fr); }
  body.hw-nexus .hw .hw-said .hw-gain-fig { font-size: 1.35rem; }
  body.hw-nexus .hw .hw-said .hw-said-pair { grid-template-columns: minmax(0, 1fr); }
  body.hw-nexus .hw .hw-said .hw-said-what { padding-right: 0; }
  body.hw-nexus .hw .hw-said .hw-said-then {
    margin-top: 0.9rem;
    padding: 0.9rem 0 0;
    border-left: 0;
    border-top: 1px dashed var(--nx-line);
  }
  body.hw-nexus .hw .hw-point { font-size: 1.16rem; }
  body.hw-nexus .hw .hw-point.hw-point-sub { font-size: 1.04rem; }
  body.hw-nexus .hw #printed > section { margin-bottom: 3.4rem; }
  body.hw-nexus .hw .hw-build-head .hw-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  body.hw-nexus .hw .hw-build-head .hw-keys > div { padding: 0.8rem 0.85rem; }
  body.hw-nexus .hw .hw-build-head .hw-keys dt { font-size: 1.55rem; }
  body.hw-nexus .hw .hw-build-head .hw-keys .hw-key-say { font-size: 1.04rem; }
}

body.team-page .notebook-book {
  background: linear-gradient(180deg, rgba(22, 50, 63, 0.86), rgba(22, 50, 63, 0.62));
  border: 1px solid var(--nx-line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body.team-page .notebook-tab {
  opacity: 1;
  color: var(--nx-muted);
  background: rgba(22, 50, 63, 0.55);
  border-color: var(--nx-line);
  border-top-color: var(--nx-line);
}
body.team-page .notebook-tab:hover { color: var(--nx-text); }
body.team-page #page-leader:checked    ~ .notebook-tabs .tab-leader,
body.team-page #page-wet:checked       ~ .notebook-tabs .tab-wet,
body.team-page #page-dry:checked       ~ .notebook-tabs .tab-dry,
body.team-page #page-hp:checked        ~ .notebook-tabs .tab-hp,
body.team-page #page-professor:checked ~ .notebook-tabs .tab-professor,
body.team-page #page-advisor:checked   ~ .notebook-tabs .tab-advisor {
  color: var(--nx-lime);
  background: rgba(22, 50, 63, 0.86);
  border-top-color: var(--nx-mint);
}

body.team-page .drift-item { opacity: 0.6; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45)); }

body.team-page .page-tag {
  color: var(--nx-mint);
  background: rgba(28, 67, 82, 0.7);
  border-color: var(--nx-line);
  border-left-color: var(--nx-lime);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

body.team-page .polaroid {
  background: linear-gradient(180deg, var(--nx-raised), var(--nx-panel));
  border-color: var(--nx-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.35);
  opacity: 0.92;
}
body.team-page .polaroid:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 26px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--nx-mint);
}
body.team-page .polaroid::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%);
}
body.team-page .polaroid-photo,
body.team-page .polaroid-photo .hw-flip-front,
body.team-page .polaroid-photo .hw-flip-back { background: #24414d; }
body.team-page .polaroid-caption { color: var(--nx-text); }
body.team-page .polaroid-role { color: var(--nx-muted); }

.polaroid-field {
  text-align: center;
  margin-top: 4px;
  font-family: "Changa", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #075a3e;
}
body.team-page .polaroid-field { color: var(--nx-mint); }
body.team-page .polaroid-has-bio:focus-visible { outline-color: var(--nx-lime); }

body.team-page .team-bio-overlay { background: rgba(4, 14, 19, 0.8); }
body.team-page .team-bio-card {
  background: linear-gradient(180deg, var(--nx-raised), var(--nx-panel));
  border: 1px solid var(--nx-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
body.team-page .team-bio-name { color: var(--nx-mint); }
body.team-page .team-bio-paragraphs p { color: var(--nx-text); }
body.team-page .team-bio-close {
  background: rgba(73, 197, 182, 0.14);
  color: var(--nx-mint);
}
body.team-page .team-bio-close:hover { background: rgba(73, 197, 182, 0.26); }

body.team-page .webcam-layout {
  background: linear-gradient(180deg, rgba(22, 50, 63, 0.82), rgba(22, 50, 63, 0.6));
  border-color: var(--nx-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 32px rgba(0, 0, 0, 0.35);
}
body.team-page .webcam-booth-header,
body.team-page .webcam-controls { background: rgba(14, 36, 46, 0.6); color: var(--nx-text); }
body.team-page .webcam-booth-close { color: var(--nx-text); }
body.team-page .webcam-filter-btn {
  background: var(--nx-panel);
  border-color: var(--nx-line);
  color: var(--nx-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
body.team-page .webcam-filter-btn.active {
  background: var(--nx-raised);
  color: var(--nx-lime);
  border-color: var(--nx-lime);
  box-shadow: 0 0 0 3px rgba(160, 232, 96, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
}
body.team-page .webcam-start,
body.team-page .webcam-flip {
  background: var(--nx-raised);
  border-color: var(--nx-line);
  color: var(--nx-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.team-page .webcam-start:hover,
body.team-page .webcam-flip:hover { background: var(--nx-line); color: #fff; }
body.team-page .webcam-review-btn {
  background: var(--nx-raised);
  border-color: var(--nx-line);
  color: var(--nx-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.team-page .webcam-review-btn:hover { background: var(--nx-line); color: #fff; }
body.team-page .webcam-save,
body.team-page .webcam-download {
  background: var(--nx-lime);
  border-color: var(--nx-lime);
  color: #0e242e;
}
body.team-page .webcam-save:hover,
body.team-page .webcam-download:hover { background: var(--nx-mint); border-color: var(--nx-mint); color: #0e242e; }
body.team-page .webcam-save:not([hidden]) ~ .webcam-download {
  background: var(--nx-raised);
  border-color: var(--nx-line);
  color: var(--nx-text);
}

body.hw-nexus.attr-page .container { color: var(--nx-text); }
body.hw-nexus.attr-page .container h2 { color: var(--nx-mint); font-family: "Changa", sans-serif; font-weight: 700; }
body.hw-nexus.attr-page .attr-ai {
  background: var(--nx-panel);
  border-left-color: var(--nx-mint);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
body.hw-nexus.attr-page .attr-ai h2 { color: var(--nx-mint); }
body.hw-nexus.attr-page .attr-ai h4 { color: var(--nx-muted); }
body.hw-nexus.attr-page .attr-ai strong { color: #fff; }
body.hw-nexus.attr-page .attr-ai a { color: var(--c-teal); }

body.hw-nexus.attr-page .attr-thanks { color: var(--nx-text); }
body.hw-nexus.attr-page .attr-people h2 { color: var(--nx-mint); }
body.hw-nexus.attr-page .attr-card { background: var(--nx-panel); border-color: var(--nx-line); }
body.hw-nexus.attr-page .attr-avatar { background: var(--nx-raised); box-shadow: 0 0 0 2px var(--nx-line); }
body.hw-nexus.attr-page .attr-card-name { background: var(--nx-raised); color: #fff; }
body.hw-nexus.attr-page .attr-card-body { background: #0a1a21; color: var(--nx-text); }
body.hw-nexus.attr-page .attr-card-role { color: var(--nx-lime); }
body.hw-nexus.attr-page .attr-card-tasks li { color: var(--nx-muted); border-color: var(--nx-line); }

body.hw-nexus.attr-page .tone-advisor { --tone: var(--nx-mint); }
body.hw-nexus.attr-page .tone-sponsor { --tone: var(--nx-warm); }
body.hw-nexus.attr-page .tone-edu     { --tone: var(--nx-lime); }
body.hw-nexus.attr-page .tone-igem    { --tone: var(--nx-blue-up); }
body.hw-nexus.attr-page .tone-wiki    { --tone: #f08a7e; }

.attr-finale {
  margin: 4.5rem auto 1rem;
  padding: 3rem 1rem 2.5rem;
  max-width: 54rem;
  text-align: center;
  border-top: 1px solid var(--nx-line, #d5ddd8);
}

.attr-finale-text {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem);
  line-height: 1.25;
  background: linear-gradient(100deg, #a0e860 0%, #49c5b6 55%, #5fb3e0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(160, 232, 96, 0.35));
}

.attr-finale-name {
  background: linear-gradient(100deg, #f5c96a, #e6b060);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

body.hw-nexus.attr-page .attr-finale-sign {
  margin: 1.2rem 0 0;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

.attr-groups-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}

body.hw-nexus.attr-page .attr-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--tone);
  color: var(--tone);
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.attr-group-chip svg { width: 1.1rem; height: 1.1rem; }

body.hw-nexus.attr-page .attr-group-chip:hover,
body.hw-nexus.attr-page .attr-group-chip:focus-visible {
  background: var(--tone);
  color: var(--nx-ground);
}

.attr-group-count {
  font-size: 0.78em;
  font-weight: 600;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.attr-group {
  margin: 0 0 2.75rem;
  scroll-margin-top: 104px;
}

.attr-group-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--nx-line, #d5ddd8);
}

body.hw-nexus.attr-page .attr-group-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, var(--nx-panel));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tone) 45%, transparent),
              0 0 22px -6px var(--tone);
}

.attr-group-icon svg { width: 1.7rem; height: 1.7rem; }

body.hw-nexus.attr-page .attr-group-title {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--tone);
}

body.hw-nexus.attr-page .attr-group-intro {
  margin: 0.15rem 0 0;
  color: var(--nx-muted);
  font-size: 0.95rem;
}

@media (min-width: 1200px) {
  .attr-cards.attr-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.hw-nexus.attr-page .attr-avatar.is-icon {
  display: grid;
  place-items: center;
  color: var(--tone);
  background: radial-gradient(circle at 50% 35%,
              color-mix(in srgb, var(--tone) 22%, var(--nx-raised)),
              var(--nx-raised) 75%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone) 55%, transparent),
              0 0 18px -4px var(--tone);
}

.attr-avatar.is-icon svg { width: 34px; height: 34px; }

body.hw-nexus.attr-page .attr-card.is-supporter .attr-card-name {
  font-size: 1.05rem;
}

body.hw-nexus.attr-page .attr-card.is-supporter .attr-card-role { color: var(--tone); }

body.hw-nexus.attr-page .attr-card.is-supporter {
  transition: border-color 0.2s ease;
}

body.hw-nexus.attr-page .attr-card.is-supporter:hover {
  border-color: color-mix(in srgb, var(--tone) 55%, var(--nx-line));
}

body.hw-nexus.team-page .page-hero-bg,
body.hw-nexus.attr-page .page-hero-bg,
body.hp-nexus.promotion-page .page-hero-bg { filter: saturate(1) brightness(0.7); }
body.hw-nexus.team-page .page-hero-bg { filter: saturate(1) brightness(0.9); }

body.team-page .page-hero,
body.hw-nexus.attr-page .page-hero,
body.promotion-page .page-hero {
  min-height: clamp(520px, 82vh, 900px);
  display: flex;
  align-items: center;
  padding-top: 254px !important;
  padding-bottom: 104px;
}

body.promotion-page .page-hero {
  align-items: center;
  padding-top: 204px !important;
  padding-bottom: 104px;
}

body.team-page .page-hero > .container,
body.hw-nexus.attr-page .page-hero > .container,
body.promotion-page .page-hero > .container { width: 100%; }

body.team-page .page-hero .hero-sub:empty,
body.hw-nexus.attr-page .page-hero .hero-sub:empty,
body.promotion-page .page-hero .hero-sub:empty { display: none; }
body.team-page .page-hero .hero-title,
body.hw-nexus.attr-page .page-hero .hero-title,
body.promotion-page .page-hero .hero-title { margin: 0 !important; }
body.hw-nexus.team-page .page-hero-tint,
body.hw-nexus.attr-page .page-hero-tint,
body.hp-nexus.promotion-page .page-hero-tint,
body.hw-nexus .page-hero-bg.hero-hardware + .page-hero-tint {
  background: linear-gradient(to bottom,
    rgba(14, 36, 46, 0) 0%,
    rgba(14, 36, 46, 0.1) 45%,
    rgba(14, 36, 46, 0.97) 100%);
}
body.team-page .hero-title,
body.hw-nexus.attr-page .hero-title,
body.promotion-page .hero-title,
body.hw-nexus .page-hero:has(.hero-hardware) .hero-title {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75), 0 2px 22px rgba(0, 0, 0, 0.6);
}

body.bg-nexus .bg-num {
  color: var(--nx-warm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.bg-nexus .bg-hl {
  color: var(--nx-lime);
  font-weight: 600;
}

body.bg-nexus .bg-key,
body.bg-nexus .sgd-list li strong.bg-key {
  color: var(--nx-lime);
  font-weight: 600;
}

body.bg-nexus .bg-quote {
  color: var(--nx-blue-up);
  font-weight: 700;
  font-size: 0.9rem;
}

.bg-fb-switch-wrap { position: relative; margin: 0.25rem 0 1rem; }

.bg-fb-radio {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bg-fb-switch {
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--nx-mint);
  border-radius: 999px;
  background: var(--nx-panel);
  margin-bottom: 0.75rem;
}

.bg-fb-switch label {
  margin: 0;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--nx-mint);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bg-fb-switch label:hover { background: var(--nx-raised); }

#bg-fb-en:checked ~ .bg-fb-switch label[for="bg-fb-en"],
#bg-fb-zh:checked ~ .bg-fb-switch label[for="bg-fb-zh"] {
  background: var(--nx-mint);
  color: var(--nx-panel);
  cursor: default;
}

#bg-fb-en:focus-visible ~ .bg-fb-switch label[for="bg-fb-en"],
#bg-fb-zh:focus-visible ~ .bg-fb-switch label[for="bg-fb-zh"] {
  outline: 2px solid var(--nx-mint);
  outline-offset: 3px;
}

#bg-fb-en:checked ~ .bg-fb-panel-zh,
#bg-fb-zh:checked ~ .bg-fb-panel-en { display: none; }