:root {
  --bg: #0f172a;
  --card: #111827;
  --ink: #e5e7eb;
  --muted: rgba(226, 232, 240, 0.72);
  --accent: #60a5fa;
  --line: rgba(255, 255, 255, 0.14);
  --active: #22c55e;
  --shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.8);
  --nav-height: 64px;
  --tank-bar-bg: rgba(15, 23, 42, 0.92);
  --tank-bar-border: rgba(148, 163, 184, 0.35);
  --tank-bar-shadow: 0 18px 42px -24px rgba(15, 23, 42, 0.9);
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  margin: 0;
}

[data-include] {
  display: block;
}

.gear-page {
  min-height: 100vh;
  padding-top: 16px;
}

.gear-intro {
  width: min(960px, 100%);
  margin: 0 auto 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem) 16px 0;
}

.gear-intro__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.gear-intro__blurb {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 85%;
}

@media (max-width: 600px) {
  .gear-intro__blurb {
    max-width: 100%;
  }
}

.tank-ref {
  width: min(960px, 100%);
  margin: 0 auto 24px;
  padding: 0 16px;
}

.card {
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card--tank {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.select-wrap {
  position: relative;
  z-index: 120;
}

.select-wrap select {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  padding: 0 44px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrap select:focus {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 2px;
}

.select-wrap .chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  opacity: 0.8;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.select-wrap.open .chevron {
  transform: translateY(-50%) rotate(180deg);
}

.tank-meta {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.gear-shell {
  width: min(960px, 100%);
  margin: 0 auto 96px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gear-inline-copy {
  width: min(960px, 100%);
  margin: clamp(1.75rem, 5vw, 2.5rem) auto clamp(2.5rem, 6vw, 3.5rem);
  padding: 0 16px;
}

.gear-inline-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gear-tip[hidden] {
  display: none;
}

.gear-tip {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gear-tip__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.65);
}

.gear-tip__panel {
  position: relative;
  max-width: min(420px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 22px 24px;
  color: #e5e7eb;
  box-shadow: 0 30px 54px -28px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gear-tip__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.gear-tip__header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.gear-tip__close {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 12px;
  cursor: pointer;
}

.gear-tip__close:hover,
.gear-tip__close:focus-visible {
  background: rgba(96, 165, 250, 0.18);
  outline: 2px solid rgba(148, 163, 184, 0.48);
  outline-offset: 2px;
}

.gear-tip__body {
  font-size: 0.95rem;
  line-height: 1.6;
}

html.ttg-tooltip-lock,
body.ttg-tooltip-lock {
  overflow: hidden;
}

.gear-card {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.25s ease, border-color 0.25s ease;
}

.gear-card:hover,
.gear-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -28px rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}

.gear-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  background: none;
  border: 0;
  width: 100%;
  color: inherit;
  text-align: left;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.gear-card__header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 14px;
}

.gear-card__header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
  line-height: 1.25;
}

.info-btn {
  --info-btn-color: var(--muted, rgba(226, 232, 240, 0.72));
  --info-btn-color-hover: var(--ink, #e5e7eb);
  --info-btn-color-disabled: rgba(148, 163, 184, 0.55);
  --info-btn-focus-inner: var(--bg, #0f172a);
  --info-btn-focus-outer: var(--accent, rgba(96, 165, 250, 0.9));
  font-size: 0.95rem;
}

.info-btn:hover:not([disabled]) {
  color: var(--info-btn-color-hover);
}

.info-btn[disabled] {
  color: var(--info-btn-color-disabled);
}

.gear-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gear-card__body {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* === Ad Slot Styling (Prototype Only) === */
/* HTML reminder:
   <div class="ad-slot" role="region" aria-label="Advertisement"></div>
*/
.ad-slot {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 90px;
  margin-top: 3rem;
  margin-bottom: 10rem; /* ≥ ~160px vertical spacing (desktop, AdSense spacing guard) */
  text-align: center;
  position: relative;
}

/* Visible label (ARIA label handled in HTML) */
.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Mobile spacing */
@media (max-width: 600px) {
  .ad-slot {
    margin-top: 2.5rem;
    margin-bottom: 10rem; /* maintains ≥150px breathing room on mobile */
  }
}

/* Optional subtle divider for visual separation */
.ad-slot::after {
  content: "";
  display: block;
  width: 80%;
  max-width: 640px;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  margin: 1rem auto 0;
}
/* Inline gear page styles */
.gear-page .btn,
.gear-page .btn-gear--hygger,
.gear-page .hygger-btn,
.gear-page .btn-hygger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.gear-page .btn:active,
.gear-page .btn-gear--hygger:active,
.gear-page .hygger-btn:active,
.gear-page .btn-hygger:active {
  transform: translateY(1px);
}

.gear-page .btn svg {
  width: 1em;
  height: 1em;
}

.gear-page .btn-amazon-affiliate {
  border: 1px solid rgba(148, 163, 184, .45);
  background: #FF9900;
  color: #131921;
  line-height: 1.2;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gear-page .btn-amazon-affiliate:hover {
  background: #E68A00;
  border-color: rgba(148, 163, 184, .6);
}

.gear-page .btn-amazon-affiliate svg {
  width: 1.1em;
  height: 1.1em;
}

.gear-page .btn-amazon {
  background: #ff9900;
  color: #131921;
  box-shadow: 0 10px 22px -12px rgba(255, 153, 0, .5), 0 0 0 1px rgba(0, 0, 0, .1) inset;
}

.gear-page .btn-amazon:hover {
  filter: brightness(0.95);
}


.btn-gear--hygger,
.hygger-btn,
.btn-hygger {
  justify-content: center;
  background: linear-gradient(135deg, #1fa672 0%, #25c48c 100%);
  color: #041018;
  box-shadow: 0 10px 22px -12px rgba(31, 166, 114, .5), 0 0 0 1px rgba(0, 0, 0, .1) inset;
  border: none;
}

.btn-gear--hygger:hover,
.hygger-btn:hover,
.btn-hygger:hover {
  filter: brightness(0.95);
  box-shadow: 0 12px 26px -14px rgba(31, 166, 114, .55), 0 0 0 1px rgba(0, 0, 0, .12) inset;
  transform: translateY(-1px);
}

.btn-gear--hygger:focus-visible,
.hygger-btn:focus-visible,
.btn-hygger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px;
}

.btn-gear--hygger:active,
.hygger-btn:active,
.btn-hygger:active {
  box-shadow: 0 8px 18px -12px rgba(31, 166, 114, .5), 0 0 0 1px rgba(0, 0, 0, .1) inset;
}

.gear-card__actions .btn-gear--hygger,
.gear-card__actions .hygger-btn,
.gear-card__actions .btn-hygger {
  margin-top: 0.4rem;
}

.gear-card__actions .btn-gear + .btn-gear--hygger,
.gear-card__actions .btn-gear + .hygger-btn,
.gear-card__actions .btn-gear + .btn-hygger,
.gear-card__actions .btn-gear--hygger + .btn-gear--hygger,
.gear-card__actions .hygger-btn + .hygger-btn,
.gear-card__actions .btn-hygger + .btn-hygger,
.gear-card__actions .btn-gear--hygger + .hygger-btn,
.gear-card__actions .btn-gear--hygger + .btn-hygger,
.gear-card__actions .hygger-btn + .btn-hygger {
  margin-top: 0.4rem;
}

.gear-page .btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .6);
  outline-offset: 2px;
}

.gear-page .cta-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.gear-page .cta-row .btn + .btn {
  margin-left: 0;
}

.gear-page .btn + .btn {
  margin-left: .5rem;
}

@media (prefers-color-scheme: light) {
  .gear-page .btn-amazon {
    color: #111;
  }
}

@media (max-width: 520px) {
  .gear-page .cta-row {
    width: 100%;
    justify-content: flex-start;
  }
}

.affiliate-disclosure {
  margin: 1.25rem auto 0;
  font-size: 0.9em;
  color: #c8d0da;
  max-width: min(960px, 100%);
  padding: 0 16px;
}

.affiliate-disclosure p {
  margin: 0.35rem 0 0;
}

.affiliate-disclosure p:first-child {
  margin-top: 0;
}

.affiliate-disclosure strong {
  color: #f8fafc;
}

.pub-credit {
  color: rgba(191, 219, 254, 0.92);
  font-size: 0.95rem;
  margin: 0.75rem auto 1.75rem;
  max-width: min(960px, 100%);
  padding: 0 16px;
}

.pub-credit strong {
  color: #f8fafc;
}

.prototype-banner {
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.5rem 1rem;
  text-align: center;
}

.trust-note {
  margin: 0 auto 2rem;
  max-width: min(960px, 100%);
  padding: 0 16px;
}

.trust-note__panel {
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  color: #cbd5f5;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.5);
}

.ttg-ad-slot {
  --ttg-ad-border: rgba(129, 155, 211, 0.72);
  --ttg-ad-bg: rgba(12, 20, 36, 0.22);
  --ttg-ad-label-bg: rgba(12, 20, 36, 0.85);
  --ttg-ad-label-color: rgba(226, 235, 255, 0.96);
  margin: 10rem auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: min(100%, 970px);
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 2px dashed transparent;
  background: transparent;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body[data-ad-qa="true"] .ttg-ad-slot,
.ttg-ad-slot.ttg-ad-slot--empty {
  border-color: var(--ttg-ad-border);
  background: var(--ttg-ad-bg);
}

.ttg-ad-slot::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ttg-ad-label-bg);
  color: var(--ttg-ad-label-color);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  z-index: 2;
}

body[data-ad-qa="true"] .ttg-ad-slot::before,
.ttg-ad-slot.ttg-ad-slot--empty::before {
  content: attr(data-ad-label);
  opacity: 1;
  transform: translateY(0);
}

.ttg-ad-slot::after {
  content: attr(data-ad-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 4vw, 1.75rem);
  background: var(--ttg-ad-label-bg);
  color: var(--ttg-ad-label-color);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.ttg-ad-slot.ttg-ad-slot--empty::after {
  opacity: 1;
  visibility: visible;
}

.ttg-ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
  position: relative;
  z-index: 3;
}

.gear-card__header {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 1rem 1.25rem;
  cursor: default;
}

.gear-card__trigger {
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex: 1;
  font: inherit;
  gap: 12px;
  justify-content: space-between;
  padding: 0;
  text-align: left;
}

.gear-card__trigger:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.8);
  outline-offset: 4px;
  border-radius: 12px;
}

.gear-card__title {
  flex: 1;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.gear-card__header .info-btn {
  flex-shrink: 0;
}

.gear-card__header .chevron {
  transition: transform 0.25s ease-in-out;
}

.gear-card__intro {
  color: rgba(203, 213, 225, 0.92);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  padding: 0 1.25rem;
}

.quick-answers__intro {
  color: rgba(203, 213, 225, 0.95);
  margin: 0 0 1.25rem;
  max-width: 720px;
}

.gear-card__body ul,
.gear-card__body .list-flush {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.gear-card__body ul:last-child,
.gear-card__body .list-flush:last-child {
  margin-bottom: 0;
}

.tank-checklists {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.tank-checklist {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
}

.tank-checklist h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.tank-checklist ul {
  list-style-position: outside;
  margin: 0;
  padding-left: 1.15rem;
}

.tank-checklist li {
  margin-bottom: 0.35rem;
}

.tank-checklist li:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .tank-checklists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.proto-footer-links {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  margin: 3rem auto 0;
  max-width: min(960px, 100%);
  padding: 2rem 16px 0;
  text-align: center;
}

.proto-footer-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.proto-footer-links__item a {
  color: rgba(191, 219, 254, 0.95);
  font-size: 0.9rem;
  text-decoration: none;
}

.proto-footer-links__item a:hover,
.proto-footer-links__item a:focus-visible {
  color: #f0f9ff;
  text-decoration: underline;
}

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  width: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
}
