:root {
  color-scheme: dark;
  --ink: #f5f7ff;
  --muted: #a8b5cc;
  --muted-strong: #c7d2e5;
  --navy-950: #050916;
  --navy-900: #091225;
  --navy-850: #0d1930;
  --navy-800: #12213a;
  --line: rgba(157, 194, 232, 0.18);
  --line-strong: rgba(80, 218, 242, 0.34);
  --cyan: #59dcf4;
  --cyan-soft: #b7f3ff;
  --amber: #f8c96a;
  --amber-strong: #f3a93b;
  --green: #8fe3b2;
  --danger: #ff9c9c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(38, 122, 174, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(241, 170, 60, 0.09), transparent 24rem),
    var(--navy-950);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  border-radius: 10px;
  background: var(--amber);
  color: #171006;
  padding: 10px 14px;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topline {
  display: none;
}

.topline__inner,
.nav,
.page-width,
.site-footer__inner {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.topline__inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
}

.topline__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 22, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 27px;
  fill: #fff;
}

.brand__fallback {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  border-radius: 10px;
  color: var(--muted-strong);
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: rgba(89, 220, 244, 0.1);
  color: #fff;
}

.nav__tool {
  border: 1px solid rgba(248, 201, 106, 0.45);
  color: var(--amber) !important;
}

.hero {
  position: relative;
  min-height: 86px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 22, 0.9) 0%, rgba(5, 9, 22, 0.8) 50%, rgba(5, 9, 22, 0.72) 100%),
    linear-gradient(0deg, var(--navy-950), transparent 58%);
  content: "";
}

.hero__art {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  object-fit: cover;
  object-position: center 32%;
}

.hero__inner {
  display: grid;
  min-height: 86px;
  align-items: center;
  padding-block: 6px 12px;
}

.hero__copy {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.hero .eyebrow {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: inherit;
  text-wrap: balance;
}

h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero__lede {
  max-width: 980px;
  margin: 5px 0 0;
  color: #d8e2f2;
  font-size: clamp(0.94rem, 1.5vw, 1.05rem);
  text-align: center;
}

.hero__badges {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hero__badges li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 17, 34, 0.7);
  color: var(--cyan-soft);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 750;
}

.main-content {
  position: relative;
  z-index: 5;
  padding-bottom: 72px;
}

.calculator-shell {
  margin-top: -12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.tool-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-bottom: 0;
  padding: 0 0 10px;
}

.tool-introduction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
}

.tool-tabs {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 8, 18, 0.52);
  padding: 4px;
  grid-column: 2;
  margin-inline: 0;
}

.tool-actions {
  display: flex;
  grid-column: 3;
  justify-self: end;
  gap: 8px;
}

.tool-tabs button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 850;
}

.tool-tabs button.is-active {
  background: linear-gradient(135deg, rgba(89, 220, 244, 0.22), rgba(89, 220, 244, 0.1));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(89, 220, 244, 0.24);
}

.secondary-button,
.quick-pick,
.recent-item {
  border: 1px solid var(--line);
  background: rgba(10, 24, 45, 0.72);
  color: var(--muted-strong);
}

.secondary-button {
  border-radius: 11px;
  padding: 9px 13px;
  font-size: 0.86rem;
  font-weight: 800;
}

.secondary-button:hover,
.quick-pick:hover,
.recent-item:hover {
  border-color: var(--line-strong);
  color: #fff;
}

.tool-stage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 42px 280px;
  align-items: center;
  min-height: 256px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tool-form-area {
  padding: clamp(14px, 2vw, 18px);
}

.tool-result-area {
  min-width: 0;
  border: 2px solid rgba(248, 201, 106, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 10%, rgba(248, 201, 106, 0.1), transparent 48%),
    rgba(4, 10, 22, 0.44);
  width: 280px;
  margin: 0;
  padding: 14px;
  min-height: 288px;
}

.tool-intro {
  margin: 6px 0 0;
  color: var(--muted);
}

.stage-equals {
  color: var(--cyan-soft);
  font-size: 3.25rem;
  font-weight: 900;
  text-align: center;
}

.result-area__label {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.parent-grid {
  display: grid;
  grid-template-columns: 280px 42px 280px;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.parent-card,
.target-card {
  display: grid;
  gap: 10px;
  min-height: 288px;
  border: 2px solid rgba(89, 220, 244, 0.46);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 28%, rgba(89, 220, 244, 0.1), transparent 46%),
    rgba(4, 12, 27, 0.68);
  padding: 14px;
}

.selection-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #edf6ff;
  font-size: 0.88rem;
  font-weight: 900;
}

.selection-card__step {
  display: none;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.parent-card label,
.target-card label,
.table-search label {
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 850;
}

.input-stack {
  display: flex;
  justify-content: center;
}

.input-stack select {
  width: 144px;
  padding-inline: 10px 28px;
  font-size: 0.86rem;
}

.slot-preview {
  display: grid;
  min-height: 178px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #eff8ff;
  padding: 12px;
  text-align: center;
}

.slot-preview span {
  color: var(--cyan-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.slot-preview strong {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.slot-preview__avatar,
.result-pal__avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(210, 249, 255, 0.68);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(89, 220, 244, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.28);
  color: #07111f;
  font-size: 1rem;
  font-weight: 950;
}

.parent-card.is-active .slot-preview,
.target-card.is-active .slot-preview {
  box-shadow: none;
}

.parent-card.is-active,
.target-card.is-active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(89, 220, 244, 0.08);
}

.parent-card.has-selection .slot-preview,
.target-card.has-selection .slot-preview {
  background:
    radial-gradient(circle at 50% 28%, rgba(248, 201, 106, 0.13), transparent 48%),
    rgba(6, 17, 31, 0.78);
}

input,
select {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(154, 184, 218, 0.26);
  border-radius: 12px;
  background: rgba(3, 9, 20, 0.78);
  color: #fff;
  padding: 11px 13px;
}

input::placeholder {
  color: #70809a;
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.pair-plus {
  color: var(--cyan-soft);
  font-size: 2.8rem;
  font-weight: 900;
  text-align: center;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber), var(--amber-strong));
  box-shadow: 0 12px 30px rgba(243, 169, 59, 0.18);
  color: #241706;
  padding: 12px 20px;
  font-weight: 950;
}

.primary-button:hover {
  filter: brightness(1.06);
}

.form-action {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.form-action .secondary-button {
  min-height: 42px;
}

.form-action--auto {
  display: none;
}

.target-card {
  max-width: 520px;
}

.tool-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.tool-status[data-type="success"] {
  color: var(--green);
}

.tool-status[data-type="error"] {
  color: var(--danger);
}

.egg-stage {
  display: grid;
  min-height: 224px;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(248, 201, 106, 0.12), transparent 58%);
  text-align: center;
}

.egg {
  position: relative;
  width: 62px;
  height: 80px;
  border: 2px solid rgba(248, 201, 106, 0.9);
  border-radius: 54% 54% 48% 48% / 62% 62% 40% 40%;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.66), transparent 12%),
    linear-gradient(145deg, #ffeab1 4%, #ecb84e 48%, #8f5515 100%);
  box-shadow:
    0 0 30px rgba(248, 201, 106, 0.34),
    0 20px 44px rgba(0, 0, 0, 0.36);
}

.egg::after {
  position: absolute;
  inset: 27% 16%;
  border: 2px solid rgba(64, 33, 7, 0.48);
  border-width: 0 2px;
  clip-path: polygon(0 40%, 30% 0, 50% 56%, 75% 14%, 100% 58%, 72% 100%, 48% 54%, 22% 92%);
  content: "";
}

.egg-stage p {
  max-width: 230px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.result-card,
.result-empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 23, 43, 0.78);
  padding: 20px;
}

.result-card--primary {
  border-color: rgba(248, 201, 106, 0.48);
  box-shadow: inset 0 0 30px rgba(248, 201, 106, 0.04);
}

.result-card h3 {
  margin: 3px 0;
  color: #fff2c5;
  font-size: 1.7rem;
}

.result-pal {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin: 4px 0 10px;
  text-align: center;
}

.result-pal__avatar {
  width: 78px;
  height: 78px;
}

.result-kicker,
.result-meta,
.gender-note,
.result-count,
.result-limit,
.result-empty p {
  margin: 0;
}

.result-kicker {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-meta,
.gender-note,
.result-limit,
.result-empty p {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-count {
  color: var(--cyan-soft);
  font-weight: 800;
}

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

.parent-results {
  display: grid;
  max-height: 520px;
  gap: 8px;
  margin: 14px 0;
  padding: 0 4px 0 0;
  overflow: auto;
  list-style: none;
}

.parent-results li {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.parent-results li div {
  display: grid;
}

.parent-results li span {
  color: var(--muted);
  font-size: 0.78rem;
}

.tool-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 22px;
}

.pal-browser {
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 22px 24px;
}

.pal-browser__head,
.pal-browser__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pal-browser__head {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.pal-browser__head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.035em;
}

.pal-browser__head .eyebrow {
  margin-bottom: 5px;
}

.pal-browser__count {
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--cyan-soft);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.pal-browser__controls {
  margin-bottom: 10px;
}

.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid rgba(89, 220, 244, 0.28);
  border-radius: 15px;
  background: rgba(3, 9, 20, 0.72);
  color: var(--cyan-soft);
  padding-left: 15px;
}

.search-field input {
  flex: 1;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding-left: 0;
}

.search-field:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(89, 220, 244, 0.08);
}

.sort-field select {
  width: 132px;
}

.active-pick {
  margin: 0;
  color: var(--amber);
  font-size: 0.83rem;
  font-weight: 850;
}

.pal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.pal-card {
  display: grid;
  min-height: 154px;
  align-content: space-between;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(89, 220, 244, 0.24);
  border-radius: 14px;
  background: rgba(15, 42, 68, 0.7);
  color: #e9f6ff;
  padding: 12px;
  text-align: center;
}

.pal-card__top {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

.pal-card__avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(129, 238, 255, 0.4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-soft), #4a83d8);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
  color: #07111f;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.pal-card__avatar--1 {
  background: linear-gradient(135deg, #baf3e2, #41a991);
}

.pal-card__avatar--2 {
  background: linear-gradient(135deg, #ffd6a6, #e77c4e);
}

.pal-card__avatar--3 {
  background: linear-gradient(135deg, #dfc7ff, #8a6bd8);
}

.pal-card__avatar--4 {
  background: linear-gradient(135deg, #fff1a8, #d9a92d);
}

.pal-card__avatar--5 {
  background: linear-gradient(135deg, #c8dbff, #5e81ce);
}

.pal-card.is-selected .pal-card__avatar {
  border-color: #ffe6a1;
  background: linear-gradient(135deg, #ffe7a6, var(--amber-strong));
}

.pal-card:hover,
.pal-card:focus-visible,
.pal-card.is-selected {
  border-color: var(--amber);
  background: rgba(20, 51, 82, 0.92);
  box-shadow: inset 0 0 0 1px rgba(248, 201, 106, 0.32);
}

.pal-card__dex,
.pal-card__tag {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
}

.pal-card__dex {
  position: absolute;
  top: -2px;
  right: 0;
  border: 1px solid rgba(157, 194, 232, 0.22);
  border-radius: 999px;
  background: rgba(4, 12, 27, 0.72);
  padding: 2px 5px;
}

.pal-card__tag {
  min-width: 62px;
  border: 1px solid rgba(157, 194, 232, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
}

.pal-card--form .pal-card__tag {
  border-color: rgba(190, 124, 255, 0.5);
  background: rgba(139, 72, 207, 0.12);
  color: #debaff;
}

.pal-card strong {
  font-size: 1rem;
}

.tool-extras h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-list,
.recent-list {
  display: grid;
  gap: 8px;
}

.quick-pick,
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 11px;
  padding: 10px 12px;
  text-align: left;
}

.quick-pick span,
.recent-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-pick strong,
.recent-item strong {
  color: var(--cyan-soft);
  font-size: 0.84rem;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding-top: 52px;
}

.content-grid--home {
  grid-template-columns: minmax(0, 1fr);
}

.article-body {
  min-width: 0;
}

.article-section,
.faq-section,
.source-section,
.related-section,
.trust-card,
.combinations-tool {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 24, 44, 0.74);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.14);
}

.article-section,
.faq-section,
.source-section,
.related-section {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 36px);
}

.article-section h2,
.faq-section h2,
.source-section h2,
.related-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.article-section h3,
.article-section h4 {
  margin: 28px 0 8px;
  color: #eff6ff;
  font-family: inherit;
  line-height: 1.35;
}

.article-section p,
.article-section li,
.faq-item p {
  color: #c9d4e6;
}

.article-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-section th,
.article-section td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.article-section th {
  color: var(--cyan-soft);
}

.quick-answer {
  border-left: 3px solid var(--amber);
  background: rgba(248, 201, 106, 0.07);
}

.quick-answer p {
  margin: 0;
  color: #e9edf6;
  font-size: 1.06rem;
}

.article-aside {
  align-self: start;
  position: sticky;
  top: 94px;
}

.trust-card {
  padding: 22px;
}

.trust-card h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-card p,
.trust-card li {
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
}

.page-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__inner {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 34px;
  padding-block: 54px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.page-hero__image {
  height: 260px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.breadcrumbs {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.83rem;
}

.breadcrumbs a {
  color: var(--cyan-soft);
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.faq-item h3 {
  margin: 0 0 7px;
  font-family: inherit;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
}

.source-list,
.related-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.combinations-tool {
  margin-top: -42px;
  padding: clamp(20px, 4vw, 32px);
}

.table-search {
  display: grid;
  max-width: 620px;
  gap: 8px;
  margin-bottom: 18px;
}

.table-wrap {
  max-height: 680px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
}

.combination-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(3, 9, 20, 0.46);
  font-size: 0.9rem;
}

.combination-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #111f38;
  color: var(--cyan-soft);
  padding: 12px 14px;
  text-align: left;
}

.combination-table td {
  border-top: 1px solid var(--line);
  padding: 11px 14px;
  vertical-align: top;
}

.combination-table td strong,
.combination-table td span {
  display: block;
}

.combination-table td span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 8, 18, 0.74);
}

.not-found {
  min-height: 70vh;
  padding-block: 12vh;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding-block: 34px;
}

.footer-brand {
  max-width: 650px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 7px;
}

.footer-brand p,
.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 900px) {
  .nav__links a:not(.nav__tool) {
    display: none;
  }

  .tool-stage,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stage-equals {
    line-height: 1;
  }

  .tool-result-area {
    margin: 0 24px 26px;
  }

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

  .article-aside {
    position: static;
  }

  .page-hero__inner {
    grid-template-columns: 1fr;
  }

  .page-hero__image {
    width: 100%;
    height: min(48vw, 330px);
  }
}

@media (max-width: 680px) {
  .topline {
    display: none;
  }

  .nav {
    min-height: 56px;
  }

  .brand__logo {
    height: 28px;
  }

  .nav__tool {
    padding: 7px 9px !important;
    font-size: 0.8rem !important;
  }

  .hero,
  .hero__inner {
    min-height: 112px;
  }

  .hero__inner {
    padding-block: 12px 20px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(5, 9, 22, 1) 4%, rgba(5, 9, 22, 0.82) 65%, rgba(5, 9, 22, 0.62) 100%);
  }

  .hero__art {
    opacity: 0.5;
    object-position: 60% center;
  }

  .hero__badges {
    display: none;
  }

  .tool-head,
  .tool-extras {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .tool-tabs,
  .tool-actions {
    grid-column: 1;
    justify-self: center;
  }

  .tool-actions {
    margin-top: 8px;
  }

  .tool-introduction {
    display: block;
    padding-inline: 20px;
  }

  .tool-introduction .tool-status {
    margin-top: 10px;
  }

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

  .parent-grid {
    grid-template-columns: 1fr;
  }

  .parent-grid > .pair-plus {
    font-size: 2rem;
  }

  .input-stack {
    grid-template-columns: 1fr;
  }

  .form-action .primary-button {
    width: 100%;
  }

  .pal-browser__controls {
    display: grid;
  }

  .sort-field select {
    width: 100%;
  }

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

  .tool-result-area {
    margin-inline: 18px;
  }

  .pal-browser {
    padding-inline: 18px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-meta {
    grid-column: 1;
  }

  .combination-table {
    min-width: 660px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
