:root {
  color-scheme: light;
  --bg: oklch(97% 0.018 195);
  --bg-strong: oklch(99% 0.006 195);
  --surface: oklch(100% 0.004 195);
  --surface-soft: oklch(94% 0.034 190);
  --ink: oklch(19% 0.046 218);
  --muted: oklch(43% 0.036 215);
  --teal: oklch(39% 0.104 194);
  --teal-dark: oklch(27% 0.086 207);
  --seafoam: oklch(84% 0.085 178);
  --coral: oklch(68% 0.16 32);
  --gold: oklch(75% 0.126 82);
  --green: oklch(55% 0.13 150);
  --red: oklch(58% 0.17 26);
  --amber: oklch(66% 0.13 78);
  --shadow: 0 18px 48px rgba(9, 49, 61, 0.14), 0 2px 8px rgba(9, 49, 61, 0.08);
  --hairline: rgba(13, 75, 91, 0.14);
  --radius-sm: 4px;
  --radius: 8px;
  --max: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(14, 88, 105, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 88, 105, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(239, 96, 73, 0.1), transparent 18rem),
    linear-gradient(180deg, oklch(99% 0.012 92), oklch(97% 0.018 195));
  background-size: 34px 34px, 34px 34px, auto, auto;
}

button,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--coral), white 28%);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(var(--max) + 48px);
  min-width: 0;
  padding: 20px 24px 14px;
  position: relative;
  z-index: 4;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  min-height: 40px;
}

.brand-mark {
  background:
    linear-gradient(135deg, var(--teal-dark), var(--teal)),
    radial-gradient(circle at 70% 30%, var(--gold), transparent 28%);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 5px 16px rgba(7, 62, 75, 0.22);
  display: inline-block;
  height: 28px;
  position: relative;
  width: 28px;
}

.brand-mark::after {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 11px;
  position: absolute;
  top: 11px;
  width: 6px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.site-nav a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  min-height: 40px;
  padding: 10px 12px;
  transition-duration: 160ms;
  transition-property: background-color, color, transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 3px rgba(9, 49, 61, 0.1);
  color: var(--teal-dark);
}

.tool-frame {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 22px 70px rgba(9, 49, 61, 0.16), 0 2px 8px rgba(9, 49, 61, 0.08);
  margin: 14px auto 28px;
  max-width: min(1180px, calc(100vw - 48px));
  overflow: hidden;
}

.tool-masthead {
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(89, 210, 200, 0.22), transparent 22rem),
    linear-gradient(135deg, #063c49, #075866);
  color: white;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  min-height: 104px;
  padding: 24px 32px;
}

.masthead-brand {
  align-items: center;
  display: flex;
  gap: 16px;
}

.masthead-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: 0;
  line-height: 1;
}

.masthead-brand span:last-child {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  font-size: 0.9rem;
  margin-top: 6px;
}

.compass-mark {
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(246, 184, 61, 0.72), 0 8px 20px rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
  height: 58px;
  position: relative;
  width: 58px;
}

.compass-mark::before,
.compass-mark::after {
  background: var(--gold);
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.compass-mark::before {
  height: 48px;
  width: 2px;
}

.compass-mark::after {
  height: 2px;
  width: 48px;
}

.masthead-scan {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 0;
}

.masthead-scan div {
  position: relative;
}

.masthead-scan dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
}

.masthead-scan dd {
  color: white;
  font-size: 0.88rem;
  font-weight: 900;
  margin: 3px 0 0;
}

.bookmark-button {
  align-items: center;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
}

.tool-tabs {
  align-items: center;
  background: white;
  box-shadow: inset 0 -1px 0 var(--hairline);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 36px;
}

.tool-tabs a {
  align-items: center;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  min-height: 56px;
  position: relative;
}

.tool-tabs a[aria-current="page"] {
  color: var(--teal);
}

.tool-tabs a[aria-current="page"]::after {
  background: var(--teal);
  bottom: 0;
  content: "";
  height: 3px;
  left: 18%;
  position: absolute;
  right: 18%;
}

.tool-body {
  padding: 30px 36px 24px;
}

.tool-body h1 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.6vw, 2.45rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.tool-body h1::after {
  background: var(--coral);
  content: "";
  display: block;
  height: 4px;
  margin-top: 8px;
  width: 44px;
}

.feature-row {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  margin-bottom: 20px;
}

.newest-card,
.redeem-card {
  align-items: center;
  border-radius: var(--radius);
  display: flex;
  gap: 18px;
  min-height: 112px;
  padding: 18px;
}

.newest-card {
  background: linear-gradient(135deg, rgba(255, 247, 244, 0.94), white);
  box-shadow: inset 0 0 0 2px rgba(239, 96, 73, 0.34);
}

.redeem-card {
  background: linear-gradient(135deg, rgba(231, 247, 250, 0.96), white);
  box-shadow: inset 0 0 0 2px rgba(45, 165, 190, 0.28);
}

.ticket-mark,
.shield-mark {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex: 0 0 auto;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.ticket-mark {
  background: rgba(239, 96, 73, 0.1);
}

.ticket-mark::before {
  background: var(--coral);
  border-radius: 6px;
  content: "";
  height: 28px;
  transform: rotate(-15deg);
  width: 36px;
}

.shield-mark {
  background: rgba(14, 120, 142, 0.11);
  color: var(--teal);
}

.shield-mark::before {
  background: var(--teal);
  clip-path: polygon(50% 0, 88% 18%, 78% 76%, 50% 100%, 22% 76%, 12% 18%);
  content: "";
  height: 36px;
  width: 30px;
}

.card-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.card-label span {
  background: var(--coral);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.65rem;
  margin-left: 6px;
  padding: 3px 5px;
}

.reward-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 8px 0 0;
}

.redeem-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.redeem-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.filter-line {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 14px 0 14px;
}

.filter-line > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav a:active,
button:active {
  transform: scale(0.96);
}

body[data-page="home"] .site-header .site-nav {
  display: none;
}

.hero-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(330px, 0.58fr) minmax(680px, 1.42fr);
  margin: 0 auto;
  max-width: calc(var(--max) + 48px);
  min-height: 690px;
  overflow: hidden;
  padding: 36px 24px 48px;
  position: relative;
}

.hero-art {
  border-radius: var(--radius);
  height: min(620px, calc(100% - 70px));
  left: 24px;
  object-fit: cover;
  opacity: 0.74;
  position: absolute;
  top: 70px;
  width: min(760px, calc(100% - 48px));
  z-index: 0;
}

.hero-shell::before {
  background: linear-gradient(90deg, rgba(245, 253, 251, 0.68), rgba(245, 253, 251, 0.9) 40%, var(--bg) 78%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-copy,
.codes-console {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: start;
  padding: 92px 0 44px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--teal-dark);
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 20px;
  max-width: 760px;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

h2 {
  color: var(--teal-dark);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 0;
  text-wrap: balance;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 560px;
  text-wrap: pretty;
}

.scan-meter {
  background: rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(9, 49, 61, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0 0;
  max-width: 620px;
  overflow: hidden;
}

.scan-meter div {
  padding: 15px 16px;
}

.scan-meter div + div {
  border-left: 1px solid var(--hairline);
}

.scan-meter dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.scan-meter dd {
  color: var(--ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  margin: 0;
}

.codes-console {
  align-self: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}

.console-topline {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.ghost-button,
.filter-chip,
.copy-button {
  align-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  transition-duration: 160ms;
  transition-property: background-color, color, transform, box-shadow;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.ghost-button {
  background: var(--teal-dark);
  color: white;
  padding: 10px 14px;
  white-space: nowrap;
}

.latest-code {
  align-items: flex-start;
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: auto;
  padding: 0;
}

.code-token {
  background: var(--ink);
  border-radius: var(--radius-sm);
  color: white;
  display: inline-flex;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
  font-weight: 800;
  min-height: 40px;
  padding: 10px 12px;
}

.muted {
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: white;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--teal-dark);
  padding: 9px 12px;
}

.filter-chip.is-active {
  background: var(--coral);
  color: white;
  box-shadow: 0 8px 18px rgba(206, 82, 58, 0.23);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
}

.codes-table {
  background: white;
  border-radius: var(--radius);
  border-collapse: collapse;
  box-shadow: inset 0 0 0 1px var(--hairline);
  min-width: 840px;
  overflow: hidden;
  width: 100%;
}

.codes-table caption {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.codes-table th,
.codes-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.codes-table th {
  background: oklch(98% 0.012 195);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.codes-table td {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.42;
}

.codes-table .code-token {
  background: transparent;
  color: var(--teal-dark);
  min-height: auto;
  overflow: visible;
  padding: 0;
}

.code-cell {
  align-items: center;
  display: flex;
  gap: 8px;
}

.code-cell::before {
  border: 2px solid color-mix(in oklch, var(--teal), white 28%);
  border-radius: 3px;
  content: "";
  flex: 0 0 auto;
  height: 10px;
  transform: rotate(45deg);
  width: 10px;
}

.copy-button {
  background: var(--surface-soft);
  color: var(--teal-dark);
  min-width: 40px;
  padding: 8px;
}

.table-footer {
  align-items: center;
  background: white;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  font-weight: 800;
  justify-content: space-between;
  margin-top: -1px;
  padding: 14px 16px;
}

.table-footer a {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--teal-dark);
  min-height: 36px;
  padding: 9px 12px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-links a,
.source-pill {
  background: rgba(14, 99, 117, 0.08);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 28px;
  padding: 6px 8px;
}

.status-badge {
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  min-height: 28px;
  padding: 6px 8px;
  white-space: nowrap;
}

.status-cross {
  background: color-mix(in oklch, var(--green), white 78%);
  color: color-mix(in oklch, var(--green), black 38%);
}

.status-new {
  background: color-mix(in oklch, var(--gold), white 70%);
  color: color-mix(in oklch, var(--amber), black 42%);
}

.status-conflict {
  background: color-mix(in oklch, var(--coral), white 78%);
  color: color-mix(in oklch, var(--coral), black 42%);
}

.status-expired {
  background: color-mix(in oklch, var(--red), white 82%);
  color: color-mix(in oklch, var(--red), black 36%);
}

.content-band,
.source-board,
.page-main {
  margin: 0 auto;
  max-width: calc(var(--max) + 48px);
  padding: 44px 24px;
}

.content-band {
  display: grid;
  gap: 28px;
  grid-template-columns: 0.78fr 1.22fr;
}

.status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-grid article,
.source-list a,
.level-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(9, 49, 61, 0.1);
}

.status-grid article {
  min-height: 146px;
  padding: 18px;
}

.status-grid p {
  color: var(--muted);
  line-height: 1.58;
  margin: 12px 0 0;
}

.source-board {
  display: grid;
  gap: 22px;
}

.source-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-list a {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px;
}

.source-state {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.source-state.is-ok {
  background: color-mix(in oklch, var(--green), white 78%);
  color: color-mix(in oklch, var(--green), black 38%);
}

.source-state.is-error {
  background: color-mix(in oklch, var(--red), white 82%);
  color: color-mix(in oklch, var(--red), black 36%);
}

.site-footer {
  color: var(--muted);
  margin: 0 auto;
  max-width: calc(var(--max) + 48px);
  padding: 28px 24px 44px;
}

.page-main {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr);
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(235, 250, 247, 0.9)),
    url("/assets/hero-nautical.png") center / cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 300px;
  padding: clamp(28px, 6vw, 64px);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 780px;
}

.guide-main {
  gap: 22px;
  min-width: 0;
}

.guide-hero {
  min-height: 260px;
  padding: clamp(28px, 5vw, 48px);
}

.guide-hero h1 {
  font-size: clamp(2.55rem, 6vw, 4.35rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  min-width: 0;
}

.hero-actions a,
.text-link {
  align-items: center;
  background: var(--teal-dark);
  border-radius: var(--radius-sm);
  color: white;
  display: inline-flex;
  font-weight: 900;
  min-height: 40px;
  padding: 10px 14px;
}

.guide-scan {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}

.guide-scan div {
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(13, 75, 91, 0.12);
  min-width: 152px;
  padding: 10px 12px;
}

.guide-scan dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-scan dd {
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  margin: 4px 0 0;
}

.guide-section {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.guide-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 8px;
}

.guide-section h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.section-note,
.guide-card p,
.guide-table td,
.check-list {
  color: var(--muted);
  line-height: 1.58;
}

.guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.guide-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.guide-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(9, 49, 61, 0.1);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 20px;
  position: relative;
}

.guide-card::before {
  background: var(--seafoam);
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 16px;
  width: 42px;
}

.guide-card.accent-coral::before {
  background: var(--coral);
}

.guide-card.accent-teal::before {
  background: var(--teal);
}

.guide-card.accent-gold::before {
  background: var(--gold);
}

.guide-card .status-badge {
  margin-bottom: 12px;
}

.guide-table-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 250, 249, 0.82));
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(9, 49, 61, 0.08), inset 0 0 0 1px var(--hairline);
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 12px;
}

.guide-table {
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 860px;
  table-layout: fixed;
  width: 100%;
}

.guide-table caption {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.guide-table th,
.guide-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-table td {
  background: white;
  border-bottom: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
}

.guide-table td:first-child {
  border-left: 1px solid var(--hairline);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--teal-dark);
  font-weight: 900;
}

.guide-table td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-right: 1px solid var(--hairline);
}

.guide-row-key {
  align-items: center;
  background: color-mix(in oklch, var(--seafoam), white 58%);
  border-radius: var(--radius-sm);
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 900;
  line-height: 1.25;
  padding: 6px 8px;
}

.guide-source-mini {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 8px;
}

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  border: 2px solid var(--teal);
  border-radius: 3px;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: 0.48em;
  transform: rotate(45deg);
  width: 10px;
}

.source-note {
  background: color-mix(in oklch, var(--surface-soft), white 54%);
  border-radius: var(--radius);
  padding: 20px;
}

.source-link-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-link-grid a {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--teal-dark);
  font-weight: 800;
  min-height: 48px;
  padding: 12px;
}

.level-groups {
  display: grid;
  gap: 14px;
}

.level-card {
  padding: 20px;
}

.level-card h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.level-card .codes-table {
  min-width: 680px;
}

@media (hover: hover) {
  .site-nav a:hover,
  .filter-chip:hover,
  .copy-button:hover {
    background: color-mix(in oklch, var(--seafoam), white 44%);
    color: var(--teal-dark);
  }

  .ghost-button:hover {
    background: var(--coral);
    box-shadow: 0 10px 24px rgba(206, 82, 58, 0.22);
  }

  .source-list a:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .tool-masthead {
    grid-template-columns: 1fr;
  }

  .tool-tabs {
    overflow-x: auto;
    padding: 0 14px;
    width: 100%;
  }

  .tool-tabs a {
    min-width: 120px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .filter-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-shell,
  .content-band {
    display: block;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-copy {
    padding: 58px 0 24px;
    max-width: calc(100vw - 32px);
  }

  .codes-console {
    align-self: stretch;
  }

  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid,
  .guide-grid.three-up,
  .split-section,
  .source-link-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    padding-bottom: 4px;
    width: 100%;
  }

  .site-nav a {
    flex: 0 1 auto;
  }

  .site-header,
  .hero-shell,
  .content-band,
  .source-board,
  .page-main,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tool-frame {
    border-radius: 0;
    margin: 10px 0 24px;
    max-width: 100%;
  }

  .tool-masthead {
    padding: 22px 18px;
  }

  .masthead-brand strong {
    font-size: 1.36rem;
  }

  .compass-mark {
    height: 44px;
    width: 44px;
  }

  .compass-mark::before {
    height: 34px;
  }

  .compass-mark::after {
    width: 34px;
  }

  .tool-body {
    padding: 22px 16px;
  }

  .tool-body h1 {
    font-size: 1.74rem;
  }

  .guide-hero h1 {
    font-size: 2.3rem;
  }

  .guide-hero {
    border-radius: var(--radius);
    min-height: 0;
  }

  .guide-hero .lede {
    max-width: 100%;
    width: auto;
  }

  .hero-actions a {
    justify-content: center;
    min-width: 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .guide-scan div {
    min-width: 0;
  }

  .guide-scan {
    display: grid;
    grid-template-columns: 1fr;
  }

  .newest-card,
  .redeem-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .hero-art {
    height: 690px;
    left: 16px;
    opacity: 0.46;
    top: 132px;
    width: calc(100% - 32px);
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.05rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .lede {
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
  }

  .scan-meter {
    grid-template-columns: 1fr;
  }

  .scan-meter div + div {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .console-topline,
  .latest-code {
    align-items: stretch;
    flex-direction: column;
  }

  .ghost-button {
    width: 100%;
  }

  .newest-card .ghost-button {
    min-width: 132px;
    width: auto;
  }

  .status-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .codes-table {
    min-width: 760px;
  }

  .guide-table-wrap {
    overflow-x: visible;
  }

  .guide-table {
    border-spacing: 0;
    display: block;
    min-width: 0;
  }

  .guide-table thead {
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
  }

  .guide-table tbody,
  .guide-table tr,
  .guide-table td {
    display: block;
    width: 100%;
  }

  .guide-table tr {
    background: white;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(9, 49, 61, 0.08);
    margin-bottom: 12px;
    overflow: hidden;
  }

  .guide-table td,
  .guide-table td:first-child,
  .guide-table td:last-child {
    border: 0;
    border-radius: 0;
    padding: 12px 14px;
  }

  .guide-table td + td {
    border-top: 1px solid var(--hairline);
  }

  .guide-table td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .code-token {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .hero-copy,
  .codes-console,
  .scan-meter,
  .lede {
    width: min(358px, calc(100vw - 32px));
  }

  .site-nav {
    gap: 0;
    font-size: 0.88rem;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav a {
    padding: 8px 7px;
  }

  .filter-row {
    flex-wrap: nowrap;
    margin-right: -16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }
}
