:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--site-color-bg);
  color: var(--site-color-text);
  font-family: var(--site-font-body), system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body {
  margin: 0;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--site-color-link);
  text-underline-offset: 0.15em;
}

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: 5;
  background: var(--site-color-accent);
  color: var(--site-color-on-accent);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer {
  background: var(--site-color-header);
  color: var(--site-color-text);
}

.site-footer {
  background: var(--site-color-footer);
}

.site-header__inner,
.site-footer__inner,
main {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
}

.site-header a {
  color: var(--site-color-header-link);
  text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
  text-decoration: underline;
}

.brand {
  display: block;
  min-width: 0;
}

.logo,
.brand img {
  display: block;
  width: auto;
  max-width: min(100%, 16rem);
  height: auto;
}

.site-name {
  font-family: var(--site-font-heading), system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 650;
  color: inherit;
  text-decoration: none;
}

nav ul,
.card-list,
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

main {
  background: var(--site-color-surface);
  color: var(--site-color-text);
  padding: 1.25rem;
  margin-block: 1.25rem 2rem;
}

h1,
h2,
h3 {
  font-family: var(--site-font-heading), system-ui, sans-serif;
  line-height: 1.2;
}

.lede,
.article-teaser {
  font-size: 1.15rem;
}

.article-dates {
  margin-top: 0;
}

.article-updated {
  margin-left: 0.75rem;
}

.card-list li,
.related li {
  padding: 0.8rem 0;
  border-top: 1px solid color-mix(in srgb, var(--site-color-text) 18%, transparent);
}

.hero-figure,
.article-image,
.article-video {
  margin: 1rem 0;
}

.video-title {
  margin: 0 0 0.5rem;
}

.hero,
.listicle img,
.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.review-score {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  background: var(--site-color-accent);
  color: var(--site-color-on-accent);
  font-family: var(--site-font-heading), system-ui, sans-serif;
}

.pros,
.cons,
.listicle {
  padding-left: 1.2rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, calc(var(--ad-w) * 1px));
  height: calc(var(--ad-h) * 1px);
  min-height: calc(var(--ad-h) * 1px);
  margin: 1rem auto;
  overflow: hidden;
  background: var(--site-color-header);
  color: var(--site-color-muted);
}

.ad-slot__label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-slot .adsbygoogle {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 700px) {
  .ad-slot {
    width: min(100%, var(--ad-mw, 300px));
    height: var(--ad-mh, 250px);
    min-height: var(--ad-mh, 250px);
  }

  .ad-slot--desktop-only {
    display: none;
  }
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--site-color-header);
  overflow: hidden;
}

.video-play {
  display: none;
}

.js .video-play {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--site-color-on-accent);
}

.video-frame img,
.video-frame iframe,
.video-frame__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border: 0;
}

.video-play__icon {
  position: relative;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--site-color-accent);
}

.video-play__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent var(--site-color-on-accent);
}

.video-fallback {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--site-color-accent);
  color: var(--site-color-on-accent);
  padding: 0.4rem 0.7rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer__inner {
  padding-top: 1.5rem;
}

.site-footer__name,
.site-footer a {
  color: var(--site-color-text);
}

.site-footer small {
  display: block;
  color: var(--site-color-muted);
}

.paywall-notice {
  padding: 1rem;
  border: 1px solid var(--site-color-accent);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Thumbnail Wall preset. Header and home rules live only in this file. */
:root {
  --wall-bg: #0F0F0F;
  --wall-panel: #181818;
  --wall-ink: #FFFFFF;
  --wall-muted: #AAAAAA;
  --wall-green: #6FBC37;
  --wall-green-hover: #8FD65A;
  --wall-focus: #8AB4F8;
  --wall-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wall-max: 1360px;
  --wall-margin: 40px;
  --wall-gap: 12px;
  --wall-radius: 12px;
  --wall-sec: 48px;
}

@media (max-width: 1199px) {
  :root {
    --wall-margin: 24px;
    --wall-gap: 10px;
    --wall-sec: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --wall-margin: 12px;
    --wall-gap: 8px;
    --wall-radius: 10px;
    --wall-sec: 32px;
  }
}

.site-header {
  background: var(--wall-bg);
  color: var(--wall-ink);
  border-bottom: 1px solid #222;
  position: relative;
  z-index: 20;
}

.site-header :focus-visible {
  outline: 3px solid var(--wall-focus);
  outline-offset: 2px;
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 68px;
  width: min(var(--wall-max), calc(100% - 2 * var(--wall-margin)));
  padding: 0;
}

.site-header a {
  color: var(--wall-green);
  text-decoration: none;
}

.site-header a:hover,
.site-header a:focus-visible {
  text-decoration: none;
}

.site-header .brand {
  flex: none;
  min-width: 0;
}

.site-header .brand img,
.site-header .logo {
  display: block;
  width: 170px;
  max-width: 170px;
  height: auto;
}

.site-header .cats {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header .cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .cats-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header .cats-top::-webkit-scrollbar {
  display: none;
}

.site-header .cats a,
.site-header .more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--wall-green);
  font: 700 15px/1 var(--wall-sans);
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none;
}

.site-header .cats a:hover,
.site-header .more summary:hover {
  background: #1f1f1f;
  color: var(--wall-green-hover);
}

.site-header .more {
  position: relative;
  flex: none;
}

.site-header .more summary {
  cursor: pointer;
  list-style: none;
  gap: 6px;
}

.site-header .more summary::-webkit-details-marker {
  display: none;
}

.site-header .more[open] summary {
  background: #1f1f1f;
}

.site-header .more-list {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--wall-panel);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 30;
}

.site-header .more-list a {
  display: flex;
  width: 100%;
}

.site-header .search {
  position: relative;
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #272727;
  color: #fff;
  font: 600 14px/1 var(--wall-sans);
}

.site-header a.search,
.site-header a.search:hover {
  color: #fff;
  text-decoration: none;
}

.site-header .search:hover {
  background: #3a3a3a;
}

.site-header .search .sl {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .site-header__inner {
    gap: 10px;
  }

  .site-header .brand img,
  .site-header .logo {
    width: 140px;
    max-width: 140px;
  }

  .site-header .cats a,
  .site-header .more summary {
    padding: 0 9px;
    font-size: 14px;
  }

  .site-header .search {
    width: 44px;
    height: 44px;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    min-height: 56px;
    gap: 6px;
  }

  .site-header .brand img,
  .site-header .logo {
    width: 112px;
    max-width: 112px;
  }

  .site-header .cats a,
  .site-header .more summary {
    padding: 0 8px;
    font-size: 13px;
  }
}

body:has(.wall-home) {
  background: var(--wall-bg);
  color: var(--wall-ink);
  font-family: var(--wall-sans);
  font-size: 15px;
  line-height: 1.45;
}

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

.wall-home .wrap {
  width: min(100% - 2 * var(--wall-margin), var(--wall-max));
  margin-inline: auto;
}

main:has(.wall-home) {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 0 var(--wall-sec);
  background: var(--wall-bg);
  color: var(--wall-ink);
}

.wall-home .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wall-home > section {
  margin-top: var(--wall-sec);
}

.wall-home > section.top {
  margin-top: 16px;
}

.wall-home .shead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wall-home .sec-h {
  font: 800 22px/1.15 var(--wall-sans);
  letter-spacing: -0.01em;
  border-left: 5px solid var(--wall-green);
  padding-left: 10px;
  margin: 0;
  text-decoration: none;
}

.wall-home .sec-h a {
  color: inherit;
  text-decoration: none;
}

.wall-home .sec-h a:hover,
.wall-home .sec-h a:focus-visible {
  text-decoration: underline;
}

.wall-home .see {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px 0 12px;
  color: #6FBC37;
  font: 600 14px/1 var(--wall-sans);
  white-space: nowrap;
  text-decoration: none;
}

.wall-home .see:hover,
.wall-home .see:focus-visible {
  color: #6FBC37;
  text-decoration: underline;
}

.wall-home .tile {
  position: relative;
  min-width: 0;
}

.wall-home .tl {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--wall-radius);
  background: #222;
  color: #fff;
}

.wall-home .tl .media,
.wall-home .tl picture {
  position: absolute;
  inset: 0;
  display: block;
}

.wall-home .tl img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.wall-home .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 44px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0, rgba(0, 0, 0, 0.85) 4.75rem, rgba(0, 0, 0, 0) 100%);
}

.wall-home .tt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font: 700 16px/1.25 var(--wall-sans);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.005em;
}

.wall-home .badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  color: #fff;
  text-decoration: none;
}

.wall-home .badge span {
  background: var(--wall-green);
  color: #0F0F0F;
  font: 700 12px/1 var(--wall-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 8px;
  border-radius: 4px;
}

.wall-home .badge:hover span {
  background: var(--wall-green-hover);
}

.wall-home .tl:focus-visible {
  outline: 3px solid var(--wall-focus);
  outline-offset: 3px;
}

.wall-home .badge:focus-visible {
  outline: none;
}

.wall-home .badge:focus-visible span {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #000;
}

.wall-home .tl:hover .tt {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .wall-home .tl img {
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .wall-home .tl:hover img,
  .wall-home .tl:focus-visible img {
    transform: scale(1.06);
  }

  .wall-home .shelf-track {
    scroll-behavior: smooth;
  }
}

.wall-home .top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wall-gap);
}

.wall-home .top .hero {
  grid-column: span 2;
  grid-row: span 2;
}

.wall-home .top .hero .tl {
  aspect-ratio: auto;
  height: 100%;
  min-height: 100%;
}

.wall-home .hero .cap {
  padding: 72px 24px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0, rgba(0, 0, 0, 0.85) 8.5rem, rgba(0, 0, 0, 0) 100%);
}

.wall-home .hero .tt {
  font: 800 clamp(24px, 1.4vw + 12px, 36px) / 1.12 var(--wall-sans);
  letter-spacing: -0.015em;
}

.wall-home .hero .badge {
  padding: 14px;
}

.wall-home .hero .badge span {
  font-size: 13px;
  padding: 6px 10px;
}

.wall-home .big .tt {
  font-size: 18px;
}

@media (max-width: 1199px) {
  .wall-home .top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wall-home .top .hero {
    grid-row: auto;
  }

  .wall-home .top .hero .tl {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 767px) {
  .wall-home .hero .cap {
    padding: 48px 14px 14px;
  }

  .wall-home .hero .tt {
    font-size: 22px;
  }

  .wall-home .hero .badge {
    padding: 8px;
  }

  .wall-home .big .tt {
    font-size: 14px;
    line-height: 1.25;
  }

  .wall-home .big .cap,
  .wall-home .wt .cap {
    padding: 30px 10px 9px;
  }
}

.wall-home .wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wall-gap);
}

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

  .wall-home .wt .tt {
    font-size: 15px;
  }
}

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

  .wall-home .wt .tt {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .wall-home .wt .tt {
    font-size: 14px;
  }

  .wall-home .wt:nth-child(5n + 1) {
    grid-column: 1 / -1;
  }

  .wall-home .wt:nth-child(5n + 1) .tt {
    font-size: 20px;
  }

  .wall-home .wt:nth-child(5n + 1) .cap {
    padding: 44px 14px 12px;
  }
}

.wall-home .shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: var(--wall-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.wall-home .shelf-track > .tile {
  scroll-snap-align: start;
}

.wall-home .shelf-track:focus-visible {
  outline-offset: 4px;
  border-radius: var(--wall-radius);
}

.wall-home .st .tt {
  font-size: 15px;
}

.wall-home .st .cap {
  padding: 36px 12px 10px;
}

@media (max-width: 767px) {
  .wall-home .shelf-track {
    grid-auto-columns: 78%;
  }
}

.wall-home .older {
  margin-top: var(--wall-sec);
  text-align: center;
}

.wall-home .older a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #272727;
  color: #fff;
  font: 600 15px/1 var(--wall-sans);
  text-decoration: none;
}

.wall-home .older a:hover,
.wall-home .older a:focus-visible {
  background: #3a3a3a;
  color: #fff;
  text-decoration: underline;
}
