/* Product details, resources and model comparison. */
.product-highlights,
.model-resources,
.model-comparison {
  --accent: #c1f52b;
  --ink: #141715;
  --rule: #cbd0c7;
}

.product-highlights,
.model-comparison {
  padding-block: clamp(2rem, 4vw, 3.75rem);
  background: #f5f4ee;
  color: var(--ink);
}

.highlights-layout {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.showcase-title,
.feature-shot h3,
.resource-item h2,
.model-choice strong,
.film-name {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  word-spacing: .04em;
  text-transform: uppercase;
}

.showcase-title {
  font-size: clamp(2.6rem, 3.9vw, 3.65rem);
  font-style: italic;
  line-height: .98;
  letter-spacing: -.047em;
}

.showcase-title span { display: block; }
.showcase-title::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: .28rem;
  margin-top: 1.1rem;
  background: var(--accent);
}

.showcase-intro p {
  max-width: 30ch;
  margin-top: 1rem;
  line-height: 1.48;
  color: #3e443e;
}

.feature-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1.35rem;
}

.feature-tabs button {
  padding: .52rem .8rem;
  min-height: 44px;
  border: 1px solid #a9afa4;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 700 .875rem/1.15 var(--body);
  cursor: pointer;
}
.feature-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}
.feature-tabs button:hover { border-color: var(--ink); }
.feature-panels { min-width: 0; }
.feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.65rem);
}
.feature-pair + .feature-pair { margin-top: 1.5rem; }
.feature-pair[hidden] + .feature-pair { margin-top: 0; }
.feature-shot { margin: 0; }
.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  background: #e2e3df;
}
.feature-shot--pending {
  padding: 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: #fafaf6;
}
.feature-shot--pending h3 { margin-top: .25rem; }
.showcase-intro .media-status { font-size: .875rem; }
.feature-shot figcaption { padding-top: .7rem; }
.feature-shot h3 {
  font-size: clamp(1.2rem, 1.75vw, 1.6rem);
  letter-spacing: -.028em;
  line-height: 1.1;
}
.feature-shot p {
  margin-top: .3rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #424741;
}

.model-resources {
  background: #131614;
  color: #fff;
  padding-block: clamp(1.65rem, 3.3vw, 3rem);
}
.resource-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.resource-item {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: .85rem;
  padding-inline: clamp(1rem, 2.4vw, 2.2rem);
}
.resource-item:first-child { padding-inline-start: 0; }
.resource-item:last-child { padding-inline-end: 0; }
.resource-item + .resource-item { border-inline-start: 1px solid #535b53; }
.resource-symbol {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.resource-copy { display: flex; flex-direction: column; align-items: start; }
.resource-item h2 {
  font-size: clamp(1.4rem, 2.15vw, 2rem);
  letter-spacing: -.028em;
  line-height: 1.1;
}
.resource-item p {
  max-width: 29ch;
  margin: .55rem 0 1.15rem;
  color: #e1e5de;
  line-height: 1.45;
}
.resource-action,
.compare-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font: 750 1rem/1.2 var(--body);
  font-variation-settings: "wdth" 75;
  text-transform: uppercase;
  text-decoration: none;
}
.resource-action { margin-top: auto; }
.resource-action:hover,
.resource-action:focus-visible { color: var(--accent); }
.resource-action:focus-visible { outline-color: var(--accent); }

.review-spread {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.74fr) minmax(0, 1.53fr);
  gap: clamp(.85rem, 1.6vw, 1.5rem);
  align-items: center;
}
.review-spread .showcase-title { font-size: clamp(2rem, 3.1vw, 3rem); }
.review-spread .showcase-intro p { max-width: 25ch; }
.compare-action {
  margin-top: 1rem;
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.compare-action:hover { background: #303730; }
.model-choices {
  display: grid;
  grid-template-columns: repeat(var(--model-count, 3), minmax(0, 1fr));
  gap: clamp(.35rem, .65vw, .7rem);
}
.model-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding-bottom: .85rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: #fafaf6;
  text-align: center;
  text-decoration: none;
}
.model-choice.is-current {
  border-color: #8aad15;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.model-choice:hover,
.model-choice:focus-visible { border-color: #425818; }
.model-choice:hover strong { text-decoration: underline; text-underline-offset: .16em; }
.model-choice img {
  display: block;
  width: 100%;
  aspect-ratio: 1.17;
  object-fit: cover;
  object-position: 53% center;
  border-radius: 4px 4px 0 0;
}
.model-choice strong {
  margin: .75rem .2rem .3rem;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.choice-power {
  display: block;
  padding: .15rem .55rem;
  background: var(--accent);
  color: var(--ink);
  font: italic 800 .875rem/1.18 "Open Sans", sans-serif;
  font-variation-settings: "wdth" 75;
}
.film-column {
  min-width: 0;
  padding-inline-start: clamp(.85rem, 1.6vw, 1.5rem);
  border-inline-start: 1px solid #a1a69d;
}
.film-player,
.film-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  aspect-ratio: 16 / 9;
}
.film-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.film-preview { margin: 0; }
.film-preview img { width: 100%; height: 100%; object-fit: cover; }
.film-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #080e08f5, #080e0860 32%, transparent 62%);
  content: "";
}
.film-preview .film-caption { z-index: 1; }
.film-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: linear-gradient(0deg, #080e08ed, #080e087d 23%, transparent 55%);
  color: white;
  text-align: start;
  cursor: pointer;
}
.film-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
.play-disc {
  display: grid;
  place-items: center;
  width: clamp(3rem, 4.5vw, 4rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}
.play-disc::before {
  content: "";
  margin-inline-start: .2rem;
  border-block: .48rem solid transparent;
  border-inline-start: .78rem solid currentColor;
}
.film-cover:hover .play-disc { background: #d6ff64; }
.film-caption {
  position: absolute;
  inset: auto 1rem .85rem;
  display: grid;
  gap: .14rem;
}
.film-meta { font: 700 .875rem/1.2 var(--body); }
.film-name { font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1; letter-spacing: -.028em; }

.comparison-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fafaf6;
  color: var(--ink);
  overscroll-behavior: contain;
}
.comparison-dialog::backdrop { background: #0b100cd1; }
.comparison-dialog[open] { display: flex; flex-direction: column; }
.dialog-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.dialog-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.dialog-head button {
  min-height: 44px;
  padding-inline: .85rem;
  background: transparent;
  border: 1px solid #899083;
  border-radius: 3px;
  color: inherit;
  font: 700 .875rem var(--body);
  cursor: pointer;
}
.comparison-scroll { min-height: 0; overflow: auto; }
.comparison-note { margin-bottom: .9rem; color: #3e443e; font-size: .9rem; }
.comparison-dialog table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: start;
  font-size: 1rem;
  line-height: 1.4;
}
.comparison-dialog th,
.comparison-dialog td {
  padding: .65rem .6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: start;
  overflow-wrap: break-word;
}
.comparison-dialog tr > :first-child { width: 30%; }
.comparison-dialog thead { position: sticky; top: 0; background: var(--ink); color: white; }
.comparison-dialog thead tr > :nth-child(2) { color: var(--accent); }
.comparison-dialog tbody th { font-weight: 600; }

.feature-tabs[hidden], .feature-pair[hidden], .film-cover[hidden] { display: none; }

@media (max-width: 62rem) {
  .review-spread {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  }
  .review-spread .showcase-intro { grid-column: 1 / -1; }
  .review-spread .showcase-title span { display: inline; }
  .review-spread .showcase-intro p { max-width: 50ch; }
}

@media (min-width: 48.01rem) and (max-width: 62rem) {
  .resource-item {
    grid-template-columns: 1.65rem minmax(0, 1fr);
    gap: .55rem;
    padding-inline: .85rem;
  }
  .resource-symbol { width: 1.65rem; height: 1.65rem; }
  .resource-action { padding-inline: .65rem; }
}

@media (max-width: 48rem) {
  .highlights-layout { grid-template-columns: 1fr; gap: 1.35rem; }
  .showcase-title span { display: inline-block; }
  .showcase-intro p { max-width: 48ch; }
  .feature-tabs { margin-top: 1rem; }
  .resource-row { grid-template-columns: 1fr; }
  .resource-item { padding: 1.2rem 0; }
  .resource-item:first-child { padding-top: 0; }
  .resource-item:last-child { padding-bottom: 0; }
  .resource-item + .resource-item { border-inline-start: 0; border-top: 1px solid #535b53; }
  .resource-item p { max-width: 48ch; }
}

@media (max-width: 38rem) {
  .review-spread { grid-template-columns: 1fr; gap: 1.2rem; }
  .film-column { border-inline-start: 0; padding-inline-start: 0; }
  .feature-pair { grid-template-columns: 1fr; gap: 1.4rem; }
  .comparison-dialog { width: calc(100% - 1.25rem); max-width: none; padding: .85rem; }
  .comparison-dialog table,
  .comparison-dialog thead,
  .comparison-dialog tbody { display: block; }
  .comparison-dialog table { font-size: .9375rem; }
  .comparison-dialog tr {
    display: grid;
    grid-template-columns: repeat(var(--model-count, 3), minmax(0, 1fr));
  }
  .comparison-dialog tr > :first-child { width: auto; }
  .comparison-dialog thead th:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .comparison-dialog thead th { padding: .65rem .4rem; }
  .comparison-dialog tbody th {
    grid-column: 1 / -1;
    padding: .4rem;
    background: #e9ece3;
    border: 0;
    font-weight: 700;
  }
  .comparison-dialog td { padding: .5rem .4rem; }
}
