/* Shared page parts and inner pages: privacy note, footer, cookie notice, review page, policies, ads. */

/* Home: privacy note */

/* A plain statement, not another card: the glass is kept for the chip and the ranking. */
.privacy-note {
  display: grid;
  gap: 12px 24px;
  align-items: start;
}

.privacy-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-note h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.privacy-note p {
  max-width: 60ch;
  margin-top: 8px;
  color: var(--ink-2);
}

.privacy-note .text-link {
  justify-self: start;
}

@media (min-width: 860px) {
  .privacy-note {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
}

/* Footer */

.site-footer {
  padding-block: 40px 20px;
}

/* The footer is not a card: a quiet end of the page, under one rule. */
.footer-inner {
  display: grid;
  gap: 16px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.footer-name {
  font-size: var(--text-md);
  font-weight: 700;
}

.footer-brand p + p {
  max-width: 42ch;
  margin-top: 6px;
  color: var(--ink-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  background: var(--hover);
  color: var(--ink);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

@media (min-width: 860px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* Cookie notice */

.cookie-notice {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  inset-inline: 12px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  max-width: 700px;
  margin-inline: auto;
  padding-block: 12px;
  padding-inline: 22px 12px;
  border-radius: 28px;
  background: var(--glass-strong);
  font-size: var(--text-sm);
}

.cookie-notice p {
  flex: 1 1 280px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.cookie-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
}

.cookie-actions .button {
  min-height: 44px;
  padding-inline: 22px;
}

/* Review page */

.crumbs {
  padding-top: 16px;
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "/";
  content: "/" / "";
  margin-inline-end: 6px;
}

.article-head {
  max-width: 940px;
  padding-block: 20px 36px;
}

.article-head h1 {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.dek {
  max-width: 46em;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: var(--text-md);
}

.article-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-size: var(--text-sm);
}

.article-facts div {
  display: flex;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-pill);
  background: var(--tile);
  box-shadow: inset 0 1px 0 var(--glass-rim);
}

.article-facts dt {
  color: var(--ink-2);
}

.article-facts dd {
  font-weight: 600;
}

.article-layout {
  display: grid;
  gap: 20px;
}

.verdict {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.verdict-title {
  font-size: var(--text-md);
}

.verdict-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.verdict .score-tile {
  width: 100px;
  font-size: 2.1rem;
}

.verdict-grade {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
}

.verdict-sub {
  display: block;
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.verdict .proscons {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.price {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price span {
  color: var(--ink-2);
}

.article-body {
  padding: clamp(22px, 4vw, 44px);
}

@media (min-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
  }

  .verdict {
    grid-column: 2;
    grid-row: 1;
  }

  .article-body {
    grid-column: 1;
    grid-row: 1;
  }
}

/* The verdict stays in view while reading, but only where the whole panel fits on screen. */
@media (min-width: 980px) and (min-height: 1000px) {
  .verdict {
    position: sticky;
    top: calc(var(--header-h) + 12px);
  }
}

.bench {
  margin: 0;
}

.bench figcaption {
  margin-bottom: 12px;
  font-weight: 700;
}

.bench figcaption span {
  display: block;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 400;
}

.bench table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bench th,
.bench td {
  padding-block: 6px;
}

.bench th {
  width: 1%;
  padding-inline-end: 16px;
  font-weight: 500;
  text-align: start;
  white-space: nowrap;
}

.bench-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bench-value {
  min-width: 3em;
  font-weight: 700;
  text-align: end;
}

.prose {
  max-width: 68ch;
  font-size: var(--text-base);
  line-height: 1.8;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 1.6rem;
}

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

.prose h3 {
  margin: 24px 0 8px;
  font-size: var(--text-md);
}

.prose p + p {
  margin-top: 16px;
}

.prose ul {
  margin-block: 12px;
  padding-inline-start: 1.3em;
}

.prose li + li {
  margin-top: 8px;
}

.prose .sources {
  padding: 0;
}

/* Long text sits on a full-width tile; the lines inside keep a readable length. */
.article-body.prose,
.policy-body.prose {
  max-width: none;
}

.article-body > *,
.policy-body > * {
  max-width: 72ch;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.specs th,
.specs td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.specs th,
.specs td:not(:last-child) {
  padding-inline-end: 16px;
}

.specs th {
  color: var(--ink-2);
  font-weight: 500;
}

.specs tbody th {
  width: 34%;
}

.specs thead th {
  font-size: var(--text-xs);
}

.specs td:last-child {
  color: var(--ink-2);
  font-size: var(--text-sm);
}

/* Privacy policy and terms of use */

.page-head {
  padding-block: 28px 28px;
}

.page-head h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem);
  letter-spacing: -0.02em;
}

.page-meta {
  margin-top: 10px;
  color: var(--ink-2);
}

.policy {
  display: grid;
  gap: 20px;
  padding-bottom: 8px;
}

.toc {
  padding: 16px;
  border-radius: 26px;
}

.toc h2 {
  margin: 4px 10px 8px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

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

.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 14px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-decoration: none;
}

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

.toc a[aria-current="location"] {
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}

.policy-body {
  padding: clamp(22px, 4vw, 44px);
}

/* Above the text on narrow screens: two columns, so the contents do not fill the first screen. */
@media (max-width: 979px) {
  .toc ol {
    columns: 2;
    column-gap: 4px;
  }

  .toc li {
    break-inside: avoid;
  }

  .toc a {
    padding: 6px 10px;
    font-size: var(--text-sm);
  }
}

@media (min-width: 980px) {
  .policy {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 12px);
  }
}

.policy-body > * + * {
  margin-top: 40px;
}

.summary {
  padding: 22px 24px;
  border-radius: var(--r-inner);
  background: var(--tint);
}

.summary ul {
  margin-bottom: 0;
}

/* Email addresses read left to right inside Hebrew text. */
.mail-link {
  unicode-bidi: isolate;
  direction: ltr;
  cursor: pointer;
}

.footer-links .mail-link,
.cookie-actions .mail-link {
  direction: inherit;
}

.placeholder {
  padding-inline: 3px;
  border-radius: 3px;
  outline: 1.5px dashed currentColor;
  outline-offset: 1px;
}

/* Ad slots: clearly set apart from the reviews, labelled, and quieter than the content around them. */

.ad-slot {
  padding-block: 24px;
}

.ad-label {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: var(--text-xs);
}

.ad {
  display: block;
  overflow: hidden;
  border-radius: var(--r-inner);
}

.ad img {
  width: 100%;
  height: auto;
}

.ad-house {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 24px;
  border-style: dashed;
}

.ad-house p {
  flex: 1 1 320px;
  color: var(--ink-2);
}

.ad-house strong {
  color: var(--ink);
}
