:root {
  /* Brand palette */
  --bg: #f2f7f5;
  --surface: #ffffff;
  --tint: #e6f3ec;
  --ink: #14231f;
  --mute: #3b524b;
  --green: #2b9348;
  --green-d: #1e6e35;
  --orange: #f77f00;
  --orange-d: #b85a00;
  --line: #cfe0d7;
  --ink-on-green: #ffffff;
  --ink-on-orange: #14231f;

  /* Peripheral tones defined strictly in root to avoid raw hex */
  --white: #ffffff;
  --foot-text: #dbe8e2;
  --foot-muted: #b9cdc5;
  --stripe-overlay: rgba(255, 255, 255, 0.08);
  --foot-sep: rgba(255, 255, 255, 0.12);

  /* Typography */
  --f-th: "Noto Sans Thai", system-ui, sans-serif;
  --f-disp: "Squada One", "Noto Sans Thai", sans-serif;
  --fs-base: 17px;
  --lh-body: 1.85;
  --lh-head: 1.25;

  /* Metric rhythm */
  --u: 8px;
  --rad-card: 10px;
  --rad-btn: 8px;
  --max-w: 1180px;
  --prose-w: 720px;
  --pad-m: 18px;
  --pad-d: 32px;

  /* Borders & transitions */
  --b-label: 2px solid var(--ink);
  --b-card: 1px solid var(--line);
  --dur-rapid: 150ms;
  --ease-soft: ease-out;
}

/* Base reset and notebook foundation */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--fs-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
  margin: 0;
  padding: 0;
}

body.wy-body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--f-th);
  font-size: 1rem;
  line-height: var(--lh-body);
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility skip link */
.wy-skip {
  position: absolute;
  top: -9999px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background-color: var(--surface);
  color: var(--ink);
  border: var(--b-label);
  border-radius: var(--rad-btn);
  font-weight: 700;
  text-decoration: none;
}

.wy-skip:focus {
  top: 16px;
}

/* Top science advisory notice */
.wy-strip {
  background-color: var(--ink);
  color: var(--ink-on-green);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 32px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header layout: positioned ancestor for mobile panel */
header.wy-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.wy-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  max-width: var(--max-w);
  height: 64px;
  margin: 0 auto;
  padding: 0 var(--pad-m);
}

.wy-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
}

.wy-mark {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.wy-brand-t {
  font-family: var(--f-disp);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}

.wy-brand-t b {
  color: var(--orange);
}

/* Desktop navigation */
.wy-nav {
  display: none;
}

.wy-na {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border-radius: var(--rad-btn);
  color: var(--ink);
  text-decoration: none;
  background-color: transparent;
  transition: background-color var(--dur-rapid) var(--ease-soft);
}

.wy-na:hover {
  background-color: var(--tint);
  color: var(--green-d);
}

/* Global CTA & Header Button */
.wy-cta {
  border-radius: var(--rad-btn);
  background-color: var(--orange);
  color: var(--ink-on-orange);
  font-weight: 700;
  font-size: 15px;
  padding: 0 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--dur-rapid) var(--ease-soft), transform var(--dur-rapid) var(--ease-soft);
}

.wy-cta:hover {
  background-color: var(--orange-d);
  transform: translateY(-1px);
}

/* Mobile drawer and interactive summary */
.wy-mob {
  display: block;
  flex-shrink: 0;
}

.wy-mob-s {
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--rad-btn);
  border: var(--b-label);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  padding: 0;
  user-select: none;
  transition: background-color var(--dur-rapid) var(--ease-soft);
}

.wy-mob-s::-webkit-details-marker {
  display: none;
}

.wy-mob-i {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

.wy-mob[open] .wy-mob-s {
  background-color: var(--tint);
}

.wy-mob[open] .wy-mob-i {
  background-color: transparent;
  box-shadow: none;
  position: relative;
}

.wy-mob[open] .wy-mob-i::before,
.wy-mob[open] .wy-mob-i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
}

.wy-mob[open] .wy-mob-i::before {
  transform: rotate(45deg);
}

.wy-mob[open] .wy-mob-i::after {
  transform: rotate(-45deg);
}

/* Mobile panel anchored to header */
.wy-mob-p {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: var(--surface);
  border-bottom: 2px solid var(--ink);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 12px 18px 22px;
  z-index: 45;
}

.wy-mt {
  display: block;
  font-size: 13px;
  color: var(--green-d);
  font-weight: 700;
  margin: 14px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wy-ma {
  display: block;
  min-height: 46px;
  line-height: 46px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  padding: 0 4px;
  transition: background-color var(--dur-rapid) var(--ease-soft);
}

.wy-ma:hover {
  background-color: var(--tint);
  color: var(--green-d);
}

.wy-mob-cta {
  width: 100%;
  margin-top: 16px;
  display: flex;
}

/* Breadcrumb trail */
.wy-trail {
  background-color: var(--tint);
  border-bottom: 1px solid var(--line);
}

.wy-trail-in {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--pad-m);
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
  display: flex;
  align-items: center;
}

.wy-tr-a {
  color: var(--green-d);
  text-decoration: none;
  font-weight: 500;
}

.wy-tr-a:hover {
  text-decoration: underline;
  color: var(--orange-d);
}

.wy-tr-s {
  color: var(--mute);
  margin: 0 8px;
  user-select: none;
}

.wy-tr-now {
  color: var(--ink);
  font-weight: 600;
}

/* Inner pages layout grid */
.wy-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-m);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.wy-main {
  min-width: 0;
  overflow-x: clip;
}

.wy-rail {
  display: block;
  margin-top: 40px;
}

.wy-card {
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  padding: 18px;
  margin-bottom: 16px;
}

.wy-card-h {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.wy-card-h::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--orange);
  margin-top: 6px;
  border-radius: 2px;
}

.wy-chk {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wy-chk li {
  position: relative;
  padding-left: 26px;
  margin: 0.5em 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.wy-chk li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

.wy-rl {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wy-rl li a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  color: var(--green-d);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-rapid) var(--ease-soft);
}

.wy-rl li a:hover {
  color: var(--orange-d);
}

/* Home hero banner */
.wy-hero {
  background-color: var(--tint);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 28px;
}

.wy-hero-in {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-m);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.wy-eyebrow {
  display: inline-block;
  border: var(--b-label);
  background-color: var(--surface);
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 14px;
  transform: rotate(-1deg);
  line-height: 1.5;
}

.wy-h1 {
  font-weight: 700;
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.22;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 14px;
  font-family: var(--f-th);
}

.wy-lead {
  font-size: 18px;
  color: var(--mute);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
}

.wy-hero-b {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}

.wy-hero-n {
  font-size: 14px;
  color: var(--mute);
  margin-top: 14px;
  line-height: 1.5;
}

.wy-bench {
  width: 100%;
  height: auto;
  display: block;
  max-width: 560px;
  margin: auto;
  object-fit: contain;
}

/* Primary and secondary button designs */
.wy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--rad-btn);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--f-th);
  transition: transform var(--dur-rapid) var(--ease-soft), background-color var(--dur-rapid) var(--ease-soft);
}

.wy-btn-main {
  background-color: var(--orange);
  color: var(--ink-on-orange);
  border: var(--b-label);
  box-shadow: 3px 3px 0 var(--ink);
}

.wy-btn-main:hover {
  transform: translate(-1px, -1px);
  background-color: var(--orange-d);
}

.wy-btn-line {
  background-color: transparent;
  border: 2px solid var(--green-d);
  color: var(--green-d);
}

.wy-btn-line:hover {
  background-color: var(--tint);
  transform: translateY(-1px);
}

/* Recurring section containers */
.wy-meth,
.wy-labs,
.wy-games,
.wy-long,
.wy-provs,
.wy-faq,
.wy-end,
.wy-gal {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  margin-top: 36px;
  padding-left: var(--pad-m);
  padding-right: var(--pad-m);
}

.wy-h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: var(--lh-head);
  margin: 0 0 18px;
  border-left: 4px solid var(--green);
  padding-left: 12px;
  color: var(--ink);
  font-family: var(--f-th);
}

/* Numbered tiles (Steps) */
.wy-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.wy-st {
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  padding: 20px;
  border-top: 4px solid var(--green);
  display: flex;
  flex-direction: column;
}

.wy-st-n {
  font-family: var(--f-disp);
  font-size: 44px;
  color: var(--orange);
  line-height: 1;
}

.wy-st-t {
  font-weight: 700;
  font-size: 19px;
  margin: 0.3em 0;
  line-height: 1.3;
  color: var(--ink);
}

.wy-st-d {
  font-size: 15px;
  color: var(--mute);
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin: 0;
}

/* Lab Cards grid */
.wy-lcs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.wy-lc {
  position: relative;
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  padding: 18px 18px 18px 72px;
  transition: border-color var(--dur-rapid) var(--ease-soft), background-color var(--dur-rapid) var(--ease-soft);
}

.wy-lc:hover {
  border-color: var(--green);
  background-color: var(--tint);
}

.wy-lc-i {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--tint);
  color: var(--green-d);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wy-ic {
  width: 26px;
  height: 26px;
  display: block;
}

.wy-lc-t {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--ink);
}

.wy-lc-t a {
  color: var(--ink);
  text-decoration: none;
}

.wy-lc-t a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wy-lc-d {
  font-size: 14px;
  color: var(--mute);
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin: 0;
}

/* Game Cards grid */
.wy-gmg {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wy-gmf {
  margin: 0;
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wy-gmf img {
  aspect-ratio: 296 / 410;
  width: 100%;
  object-fit: cover;
  display: block;
}

.wy-gmc {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wy-gmn {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}

.wy-gmp {
  display: block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green-d);
  margin-top: 2px;
  text-transform: uppercase;
}

.wy-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1.5px dashed var(--orange-d);
  color: var(--orange-d);
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
  align-self: flex-start;
  line-height: 1.4;
}

.wy-gm-n {
  font-size: 14px;
  color: var(--mute);
  margin-top: 14px;
  line-height: 1.5;
}

/* Provider logos */
.wy-pvl {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wy-pv {
  aspect-ratio: 1 / 1;
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wy-pv img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

/* Prose articles */
.wy-art,
.wy-prose {
  max-width: var(--prose-w);
}

.wy-art p,
.wy-prose p {
  margin: 0 0 1.1em;
  overflow-wrap: anywhere;
}

.wy-art h2,
.wy-prose h2 {
  font-weight: 700;
  font-size: clamp(21px, 2.8vw, 27px);
  line-height: var(--lh-head);
  margin: 1.9em 0 0.6em;
  color: var(--ink);
  position: relative;
}

.wy-art h2::after,
.wy-prose h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--green);
  margin-top: 8px;
  border-radius: 2px;
}

.wy-art h3,
.wy-prose h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  margin: 1.5em 0 0.5em;
  color: var(--ink);
}

.wy-art ul,
.wy-prose ul {
  padding-left: 1.3em;
  margin: 0 0 1.1em;
}

.wy-art ul li::marker,
.wy-prose ul li::marker {
  color: var(--orange);
}

.wy-art ol,
.wy-prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.1em;
}

.wy-art strong,
.wy-prose strong {
  color: var(--green-d);
  font-weight: 700;
}

.wy-art a,
.wy-prose a {
  color: var(--green-d);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wy-art a:hover,
.wy-prose a:hover {
  color: var(--orange-d);
}

.wy-art table,
.wy-prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  margin: 1.5em 0;
}

.wy-art th,
.wy-prose th {
  background-color: var(--tint);
  border: var(--b-card);
  padding: 10px 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.wy-art td,
.wy-prose td {
  border: var(--b-card);
  padding: 10px 12px;
}

/* Mid-article note callout */
.wy-note {
  margin: 2em 0;
  padding: 16px 18px;
  background-color: var(--surface);
  border: 2px dashed var(--orange);
  border-radius: var(--rad-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wy-note-t {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

/* Gallery component */
.wy-gg {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wy-gf {
  margin: 0;
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wy-gf img {
  aspect-ratio: 296 / 410;
  width: 100%;
  object-fit: cover;
  display: block;
}

.wy-gc {
  padding: 8px 10px;
}

.wy-gn {
  font-weight: 600;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.4;
  display: block;
}

/* FAQ Accordion */
.wy-qas {
  max-width: 820px;
  margin: 0;
}

.wy-qa {
  background-color: var(--surface);
  border: var(--b-card);
  border-radius: var(--rad-card);
  margin-bottom: 10px;
  overflow: hidden;
}

.wy-q {
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 52px;
  padding: 14px 52px 14px 16px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.4;
  display: flex;
  align-items: center;
  user-select: none;
}

.wy-q::-webkit-details-marker {
  display: none;
}

.wy-q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--green);
  color: var(--ink-on-green);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wy-qa[open] > .wy-q::after {
  content: "-";
  background-color: var(--green-d);
}

.wy-a {
  padding: 0 16px 16px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
}

/* Closing callout band */
.wy-end {
  margin-top: 56px;
}

.wy-end-in {
  max-width: var(--max-w);
  margin-left: var(--pad-m);
  margin-right: var(--pad-m);
  background-color: var(--green-d);
  background-image: repeating-linear-gradient(
    45deg,
    var(--stripe-overlay) 0,
    var(--stripe-overlay) 6px,
    transparent 6px,
    transparent 12px
  );
  color: var(--ink-on-green);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.wy-end-t {
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink-on-green);
}

.wy-end-s {
  font-size: 15px;
  max-width: 60ch;
  margin: 0 auto 22px;
  line-height: 1.6;
  color: var(--foot-text);
}

.wy-end-b {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.wy-end-b .wy-btn-main {
  background-color: var(--orange);
  color: var(--ink-on-orange);
  border: var(--b-label);
}

.wy-end-b .wy-btn-line {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
}

.wy-end-b .wy-btn-line:hover {
  background-color: var(--stripe-overlay);
}

/* Comprehensive Footer */
.wy-foot {
  background-color: var(--ink);
  color: var(--foot-text);
  margin-top: 64px;
}

.wy-foot-in {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-m);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.wy-fh {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wy-fh::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--orange);
  margin-top: 6px;
  border-radius: 2px;
}

.wy-fl {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wy-fl li {
  margin: 4px 0;
}

.wy-fl a {
  color: var(--foot-text);
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--dur-rapid) var(--ease-soft);
}

.wy-fl a:hover {
  color: var(--orange);
}

.wy-flogo {
  font-family: var(--f-disp);
  font-size: 34px;
  color: var(--white);
  line-height: 1;
  display: inline-block;
  margin-bottom: 12px;
}

.wy-flogo b {
  color: var(--orange);
}

.wy-fp {
  font-size: 14px;
  color: var(--foot-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.wy-copy {
  text-align: center;
  font-size: 13px;
  color: var(--foot-muted);
  padding: 14px var(--pad-m) 26px;
  border-top: 1px solid var(--foot-sep);
  margin: 0;
}

/* Mobile Fixed Bottom Navigation */
.wy-bnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background-color: var(--surface);
  border-top: 2px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}

.wy-bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--mute);
  min-height: 56px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  background-color: transparent;
}

.wy-bn-i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wy-bn-t {
  font-size: 12px;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--f-th);
}

.wy-bn[aria-current="page"] {
  color: var(--green-d);
}

.wy-bn[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--orange);
}

/* General safety & 404 page overrides */
.wy-k-404 .wy-hero-in {
  text-align: center;
  justify-items: center;
}

.wy-k-404 .wy-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.wy-k-404 .wy-lead {
  margin: 0 auto;
}

.wy-k-404 .wy-hero-b {
  justify-content: center;
}

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

/* Focus indicator states */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Breakpoint: 560px */
@media (min-width: 560px) {
  .wy-lcs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Breakpoint: 700px */
@media (min-width: 700px) {
  .wy-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wy-gmg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wy-pvl {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .wy-note {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .wy-gg {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wy-end-in {
    margin-left: auto;
    margin-right: auto;
  }

  .wy-foot-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: var(--pad-d);
    padding-right: var(--pad-d);
  }

  .wy-meth,
  .wy-labs,
  .wy-games,
  .wy-long,
  .wy-provs,
  .wy-faq,
  .wy-end,
  .wy-gal {
    margin-top: 48px;
    padding-left: var(--pad-d);
    padding-right: var(--pad-d);
  }

  .wy-bar {
    padding: 0 var(--pad-d);
  }

  .wy-hero-in {
    padding: 0 var(--pad-d);
  }

  .wy-trail-in {
    padding: 8px var(--pad-d);
  }

  .wy-wrap {
    padding: 0 var(--pad-d);
  }
}

/* Breakpoint: 900px */
@media (min-width: 900px) {
  .wy-hero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }

  .wy-lcs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Breakpoint: 980px */
@media (min-width: 980px) {
  body.wy-body {
    padding-bottom: 0;
  }

  .wy-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
    flex: 1;
  }

  .wy-cta {
    margin-left: 0;
  }

  .wy-mob {
    display: none;
  }

  .wy-bnav {
    display: none;
  }

  .wy-wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .wy-rail {
    margin-top: 0;
    position: sticky;
    top: 88px;
  }
}

/* Breakpoint: 1100px */
@media (min-width: 1100px) {
  .wy-gg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wy-foot-in {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
@media (min-width: 1000px) {
  .wy-gmg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wy-prose .wy-btn-main, .wy-prose .wy-btn-main:hover { color: var(--ink-on-orange); text-decoration: none; }
.wy-brand-t b { color: var(--orange); }

.wy-mob:not([open]) .wy-mob-p { display: none; }

.wy-tr-a { display: inline-flex; align-items: center; min-height: 34px; }
