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

a:hover {
  color: var(--brand-hover);
}

/* List / inner page top — solid navy, no decorative chart */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--header);
  color: var(--header-ink);
}

.hero h1 {
  max-width: none;
  font-size: var(--heading-page);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  overflow-wrap: anywhere;
}

.hero--list {
  padding: 1.6rem 0 2.4rem;
}

.hero p.lead {
  color: var(--header-ink-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 62ch;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--header-ink-soft);
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

.crumb a:hover {
  color: #fff;
}

/* Header — two layers, solid #073149 */
.site-head {
  background: var(--header);
  color: var(--header-ink);
}

.util {
  background: var(--topbar);
  font-size: 14px;
  font-weight: 500;
  color: var(--header-ink-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.util__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  gap: 1rem;
}

.util__safe {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.util__mid {
  text-align: center;
}

.util__flag {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mast__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #fff;
}

.brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.brand em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--header-ink-soft);
  margin-top: 0.18rem;
}

.mast__nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-right: 0.5rem;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.mast__nav a {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.mast__nav a[aria-current="page"],
.mast__nav a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.mast__search {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
}

.mast__burger {
  display: none;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  min-height: 44px;
  align-items: center;
  font-size: 15px;
  cursor: pointer;
}

.mast__drawer {
  display: none;
  padding: 0 0 1rem;
}

.mast__drawer a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 860px) {
  .util__row {
    grid-template-columns: 1fr auto;
  }

  .util__mid {
    display: none;
  }

  .mast__nav,
  .mast__search {
    display: none;
  }

  .mast__burger {
    display: inline-flex;
    justify-self: end;
  }

  .mast__row {
    grid-template-columns: 1fr auto;
  }

  .site-head:has(#nav-toggle:checked) .mast__drawer {
    display: block;
  }
}

/* Buttons */
.btn--primary,
.btn--teal {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: var(--brand);
}

.btn--primary:hover,
.btn--teal:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn--ghost,
.btn--save {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover,
.btn--save:hover {
  border-color: var(--accent);
}

.btn--line {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

/* Home splash — v2: 49/51 inside 1500px, art bleeds to viewport edge */
.splash {
  position: relative;
  overflow: hidden;
  background: var(--header);
  color: #fff;
}

.splash__grid {
  position: relative;
  height: 414px;
  display: grid;
  grid-template-columns: 49% 51%;
}

.splash__copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  width: auto;
  min-width: 0;
  padding: 38px 46px 30px 5px;
}

.splash__art {
  position: relative;
  min-width: 0;
  height: 414px;
  overflow: hidden;
  margin-right: calc((100vw - min(var(--container), calc(100vw - var(--gutter) * 2))) / -2);
}

.splash__art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--header) 0%, rgba(7, 49, 73, 0.82) 31%, rgba(7, 49, 73, 0) 100%);
}

.splash__art img {
  position: absolute;
  z-index: 1;
  right: 0;
  top: -31.2%;
  width: 184.25%;
  max-width: none;
  height: auto;
  filter: saturate(0.94) contrast(1.02);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #fff;
}

.splash h1 {
  color: #fff;
  font-size: var(--heading-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 13px 0 9px;
  overflow-wrap: anywhere;
}

.splash__lead {
  max-width: 600px;
  color: #fff;
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
}

.splash__stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.splash__stats li {
  display: grid;
  grid-template-columns: 22px 1fr;
  min-width: 0;
  padding: 13px 10px 11px 0;
  align-content: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow-wrap: anywhere;
}

.splash__stats li:not(:nth-child(3n + 1)) {
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.splash__stats .stat-orb {
  grid-row: 1 / 3;
  display: flex;
  color: #cbe1e5;
  padding-top: 2px;
}

.splash__stats .stat-orb svg {
  display: block;
  width: 17px;
  height: 17px;
}

.splash__stats small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #d2e2e6;
  line-height: 1.25;
}

.splash__stats strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.splash__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 18px;
}

.splash .btn--primary {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 3px;
  background: #169da1;
  font-size: 13px;
}

.splash__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  padding: 9px 0 5px;
  background: none;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.splash__save:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

@media (max-width: 1200px) {
  .splash__grid {
    grid-template-columns: 54% 46%;
  }

  .splash__copy {
    padding-right: 28px;
  }

  .splash__art {
    margin-right: -22px;
  }
}

@media (max-width: 900px) {
  .splash__grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .splash__copy {
    min-height: 440px;
    padding: 38px 28px 30px;
  }

  .splash__art {
    position: absolute;
    inset: 0 0 auto auto;
    width: 58%;
    height: 440px;
    margin: 0;
    opacity: 0.68;
  }

  .splash__art img {
    top: -18%;
    width: 225%;
  }

  .splash__art::before {
    width: 65%;
    background: linear-gradient(90deg, var(--header), rgba(7, 49, 73, 0));
  }
}

@media (max-width: 620px) {
  .splash__copy {
    min-height: 546px;
    padding: 30px 18px 24px;
  }

  .splash__art {
    width: 100%;
    height: 235px;
    opacity: 0.72;
  }

  .splash__art img {
    top: -25%;
    width: 184.25%;
  }

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

  .splash__stats li:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }

  .splash__stats li:nth-child(even) {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
}

/* Sections / cards */
.section {
  padding: 3.1rem 0;
}

.band {
  padding: 25px 0;
}

.band--mist,
.section--soft {
  background: var(--surface-soft);
}

.band__head,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.band__head h2,
.section-head h2 {
  margin: 0;
  font-size: var(--heading-section);
  font-weight: 700;
  line-height: 1.22;
}

.band__head a,
.section-head a {
  color: var(--brand);
  font-weight: 600;
  font-size: var(--text-meta);
  white-space: normal;
}

.gcard {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.gcard:hover {
  border-color: rgba(10, 132, 144, 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.gcard a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  min-width: 0;
}

.gcard__shot {
  position: relative;
  height: 168px;
  aspect-ratio: auto;
  background: var(--surface-strong);
  flex: 0 0 auto;
}

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

.gcard__ph {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0.75rem;
  text-align: center;
  font-weight: 700;
}

.gcard__nuevo {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.gcard__body {
  padding: 0.8rem 0.85rem 0.95rem;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gcard--featured .gcard__body {
  padding-bottom: 2.15rem;
}

.gcard h3 {
  margin: 0;
  font-size: var(--heading-card);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.gcard__prov {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin: 0.12rem 0 0.5rem;
}

.gcard__pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem;
  margin-top: auto;
}

.gcard__pair small {
  display: block;
  color: var(--ink-faint);
  font-size: var(--text-xs);
  font-weight: 500;
}

.gcard__pair strong {
  font-size: var(--text-meta);
}

.gcard__date {
  margin: 0.55rem 0 0;
  color: var(--ink-faint);
  font-weight: 500;
  font-size: var(--text-sm);
}

.gcard__score {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  margin: 0;
  color: var(--rating);
}

.gcard__tag {
  display: inline-flex;
  align-items: center;
  margin-top: 0.65rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

.gcard__tag--rec {
  background: #fff4d6;
  color: #9a6b00;
}

.gcard__tag--new {
  background: var(--accent-soft);
  color: var(--brand);
}

.gcard__tag--top {
  background: var(--success-soft);
  color: var(--success);
}

.gcard__tag--classic {
  background: #e4eef8;
  color: #1d5f8a;
}

.gcard__tag--hot {
  background: #ffe8d9;
  color: #b24a12;
}

.logos-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.logos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0;
  min-width: 0;
  width: 100%;
}

.logos__nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
}

.logo-tile {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 0.7rem 0.85rem;
  text-align: center;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.provider-logo {
  display: block;
  width: 100%;
  max-width: 168px;
  height: 48px;
  object-fit: contain;
}

.provider-logo--fallback {
  display: grid;
  place-items: center;
  height: 48px;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 800;
}

.provider-logo--inline {
  width: 92px;
  height: 28px;
  background: #fff;
  border-radius: 4px;
  padding: 0.1rem 0.25rem;
}

.provider-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.1rem 1.15rem;
  color: inherit;
}

.provider-card:hover {
  border-color: rgba(10, 132, 144, 0.45);
  box-shadow: var(--shadow-card);
}

.provider-card .provider-logo {
  margin-bottom: 0.35rem;
}

.search-panel {
  max-width: 40rem;
}

.search-panel .field {
  grid-column: 1 / -1;
}

.results-block {
  margin-bottom: 2.4rem;
}

.results-block h2 {
  margin: 0 0 1rem;
  font-size: var(--heading-small);
}

.list-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  color: inherit;
}

.list-link:hover {
  border-color: rgba(10, 132, 144, 0.45);
}

.list-link h3 {
  margin: 0 0 0.3rem;
  font-size: 17px;
}

.provider-hero-mark {
  display: inline-flex;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin-bottom: 1rem;
}

.logo-tile span {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (max-width: 1023px) {
  .logos-wrap {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .logos__nav {
    display: none;
  }

  .logos {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    width: auto;
  }
}

@media (max-width: 640px) {
  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  height: 100%;
}

.guide__orb {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.guide h3 {
  margin: 0 0 0.45rem;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.guide p {
  color: var(--ink-soft);
  font-size: var(--text-base);
}

.guide__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.pill-base {
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: var(--accent-soft);
  color: var(--brand);
}

.pill-base--estrategia {
  background: #eee6f8;
  color: #6b3fa0;
}

.pill-base--basicos {
  background: #e4eef8;
  color: #1d5f8a;
}

.news-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.news {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
  min-width: 0;
}

.news img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.news h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.news p {
  color: var(--ink-soft);
  font-size: var(--text-base);
}

.news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.7rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust {
  display: block;
  background: var(--surface-soft);
  padding: 2.4rem 0;
}

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

.trust article {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust h3 {
  margin: 0 0 0.2rem;
  font-size: 16px;
}

.trust p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.trust__ico {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  flex: 0 0 auto;
}

/* Grids — home (grid-6) and list (grid-5) use separate breakpoints */
.grid-6,
.grid-5,
.grid-4,
.grid-3 {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
}

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

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

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

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

@media (max-width: 1279px) {
  .grid-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .grid-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 899px) {
  .grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 679px) {
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .detail-page::before {
    height: 52rem;
  }

  .grid-6,
  .grid-5,
  .grid-4,
  .grid-3,
  .news-row,
  .trust__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Filters — no outer panel */
.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  margin-top: 1.35rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hero .field label,
.filters .field label,
.field--switch > span {
  color: #c5d8e8;
  font-size: var(--text-sm);
  font-weight: 600;
}

.hero .field select,
.hero .field input,
.filters .field select,
.filters .field input {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.filters .field select:hover,
.filters .field input:hover {
  border-color: rgba(27, 184, 196, 0.75);
}

.filters .field select:focus,
.filters .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 184, 196, 0.18);
}

.filters .field select option {
  color: #0b2b3b;
  background: #fff;
}

.filters__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.field--switch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: var(--text-meta);
}

.switch input {
  appearance: none;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.switch input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.switch input:checked::after {
  left: 20px;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
}

.results-bar__sort {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.results-bar select {
  width: auto;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  padding: 0.4rem 0.7rem;
}

@media (max-width: 1099px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Game detail */
.detail-page {
  position: relative;
  background: #fff;
  padding: 1.5rem 0 3rem;
}

.detail-page::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32rem;
  background: var(--header);
  z-index: 0;
}

.detail-page > .wrap {
  position: relative;
  z-index: 1;
}

.detail-page > .wrap > .crumb {
  color: var(--header-ink-soft);
}


.detail-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.detail-primary {
  min-width: 0;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: stretch;
  color: #fff;
  padding-bottom: 1.5rem;
}

.detail-intro--no-cover {
  grid-template-columns: minmax(0, 1fr);
}

.detail-intro h1 {
  color: #fff;
  font-size: var(--heading-page);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

.detail-intro__cover {
  order: 2;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0;
  align-self: stretch;
  background: #0a2438;
}

.detail-intro__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.detail-intro__prov {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.detail-intro__by {
  color: var(--header-ink-soft);
  font-size: var(--text-meta);
  margin-bottom: 1rem;
}

.detail-intro .splash__lead {
  max-width: 620px;
  color: var(--header-ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.detail-intro h1 {
  margin-bottom: 0.55rem;
}

.detail-intro__prov {
  margin-bottom: 0.5rem;
}

.detail-intro__by {
  margin: 0 0 1rem;
  opacity: 0.92;
}

.detail-intro__actions {
  margin-top: 0.15rem;
}

.detail-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(140px, 170px);
  gap: 16px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d8e3e6;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(3, 53, 70, 0.1);
  margin: 0 0 2.25rem;
}

.detail-summary__item {
  min-width: 0;
}

.detail-summary__item small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.detail-summary__item strong {
  display: block;
  font-size: var(--text-meta);
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.detail-summary__score {
  text-align: center;
  border-left: 1px solid var(--line);
  padding-left: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-summary__score p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.detail-summary__score svg {
  color: var(--rating);
  margin: 0.35rem 0 0.1rem;
}

.detail-summary__score strong {
  display: block;
  margin: 0.1rem 0 0.15rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.detail-summary__score em {
  font-style: normal;
  font-weight: 600;
  color: var(--brand);
  font-size: var(--text-sm);
}

.detail-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.toc,
.source-card {
  background: #ffffff;
  border: 1px solid #d8e3e6;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.toc-fold > summary {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.toc-fold > summary::-webkit-details-marker {
  display: none;
}

.toc h2,
.toc summary,
.source-card h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.toc li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
}

.toc a {
  display: block;
  padding: 0.28rem 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  overflow-wrap: anywhere;
}

.toc a:hover {
  color: var(--brand);
}

.source-card p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}

.source-card p:last-child {
  margin-bottom: 0;
}

.toc__meta {
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.prose {
  min-width: 0;
}

.prose h2 {
  font-size: var(--heading-section);
  margin: 2rem 0 0.7rem;
  overflow-wrap: anywhere;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink);
  font-size: var(--text-article);
  line-height: 1.72;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-meta);
  overflow-wrap: anywhere;
}

.spec-table th {
  width: 42%;
  color: var(--ink-soft);
  font-weight: 500;
  background: var(--surface-soft);
}

.callout {
  background: var(--surface-soft);
  border-left: 3px solid var(--brand);
  padding: 0.9rem 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0 1.5rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.box {
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.box--ok {
  background: var(--success-soft);
}

.box--warn {
  background: var(--danger-soft);
}

.box h3 {
  margin: 0 0 0.5rem;
}

.box--ok h3 {
  color: var(--success);
}

.box--warn h3 {
  color: var(--danger);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}

.faq details[open] {
  background: var(--surface-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.related-block {
  margin-top: 2.5rem;
}

.method {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.method h2 {
  margin: 0 0 1.1rem;
  font-size: var(--heading-section);
}

.method__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.method article h3 {
  margin: 0 0 0.35rem;
  font-size: 16px;
}

.method article p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

@media (max-width: 1100px) {
  .detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-summary__score {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 0.75rem 0 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .detail-page::before {
    height: 46rem;
  }

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

  .detail-primary {
    display: contents;
  }

  .detail-intro {
    order: 1;
    grid-template-columns: 1fr;
    gap: 14px;
    background: var(--header);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-bottom: 1.25rem;
  }

  .detail-page > .wrap > .crumb {
    background: var(--header);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
  }

  .detail-intro__cover {
    order: 0;
    width: 100%;
    max-width: none;
    margin-top: 0;
    aspect-ratio: 16 / 9;
    align-self: auto;
  }

  .detail-summary {
    order: 2;
  }

  .detail-sidebar {
    order: 3;
    position: static;
  }

  .prose {
    order: 4;
  }

  .related-block {
    order: 5;
  }

  .method {
    order: 6;
  }

  .toc-fold > summary {
    display: block;
  }

  .toc-fold > h2 {
    display: none;
  }

  .split-2,
  .foot__grid,
  .method__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .band__head,
  .section-head {
    display: block;
  }

  .band__head a,
  .section-head a {
    display: inline-block;
    margin-top: 0.4rem;
  }
}

@media (max-width: 620px) {
  .detail-intro h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .detail-intro .splash__lead {
    font-size: 14px;
    line-height: 1.5;
  }

  .detail-intro__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .detail-intro__actions .btn {
    width: auto;
  }
}

@media (max-width: 479px) {
  .detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* Footer */
.foot {
  background: var(--footer);
  color: var(--footer-ink);
  padding: 2.75rem 0 0;
}

.foot a:hover {
  color: var(--accent);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.foot h2 {
  color: var(--footer-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  margin: 0 0 0.45rem;
  font-size: var(--text-meta);
  color: var(--footer-ink-soft);
}

.foot__brand p,
.foot__safe p {
  color: var(--footer-ink-soft);
  font-size: var(--text-meta);
}

.foot__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.foot__social span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
}

.foot__bar {
  background: var(--footer-secondary);
  padding: 1rem 0 1.25rem;
  font-size: var(--text-sm);
  color: var(--footer-ink-soft);
}

.foot__bar-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pager [aria-current="page"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (max-width: 900px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gcard:hover {
    transform: none;
  }

  .logos {
    scroll-behavior: auto;
  }
}

/* ---------- 导航下拉（Ocean 扩展） ---------- */
.mast__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.mast__item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.caret {
  font-size: 11px;
  opacity: 0.75;
  transition: transform 0.18s ease;
}
.mast__item.has-sub:hover .caret,
.mast__item.has-sub:focus-within .caret {
  transform: rotate(180deg);
}
.mast__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 232px;
  padding: 10px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(3, 53, 70, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 70;
}
.mast__item.has-sub:hover .mast__sub,
.mast__item.has-sub:focus-within .mast__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(2px);
}
.mast__sub a {
  display: block;
  padding: 9px 18px;
  color: var(--ink);
  border-bottom: 0 !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  white-space: normal;
}
.mast__sub a:hover {
  color: var(--brand);
  background: var(--surface-soft);
}

/* 移动端抽屉里的子菜单 */
.mast__drawer-sub {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  margin: 0 0 4px;
}
.mast__drawer-sub a {
  padding: 8px 10px;
  font-size: 14px;
  color: var(--header-ink);
  opacity: 0.85;
}
