/*
 * Page "Revue par un avocat" (ticket 0237, sub-lot B2-d, rules 21 and 22): the style of this
 * page alone, loaded by templates/core/review.html after tokens.css and site.css. The free design of
 * direction D (docs/design/direction-2026-10/d/) has no page for it: it takes its language,
 * that of the head of a page and of the sections of the preview (`.page-head`,
 * `.ov-section`), and the tier of its Nuit plane (`.night`, `.tier--high`).
 *
 * Every colour is a variable of tokens.css (nothing is written here); no movement, no
 * gradient, no shadow: the closed lists of apps/core/tests/test_design_components.py stay
 * those of site.css. The fade of the sections at their arrival is the class `.reveal` of
 * static/css/site.css (rule 20 (e)), set by the comfort script, never required.
 */

/* Head of the page (direction D, `.page-head`) -------------------------------------------- */

.breadcrumb {
  margin: 0 0 var(--space-5);
  color: var(--color-ink-muted);
  font-size: var(--font-size-sm);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* The chevron of the breadcrumb, a small angle drawn by two borders (no image). */
.breadcrumb li + li::before {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin: 0 var(--space-3) 0 var(--space-2);
  padding: 0;
  border-top: var(--border-width) solid currentColor;
  border-right: var(--border-width) solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
}

.review .page-head {
  padding: var(--space-3) 0 var(--space-6);
}

/* The title of a page: the voice of the acts, light, large, the tracking closed; its last
   word in italic and in the Visa (D: `.page-head h1`, 1.04 times 40 to 64 pixels). */
.review .page-head h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.62vw, 4.16rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.review .page-head h1 em {
  color: var(--color-brand);
  font-style: italic;
}

.review .page-head .lead {
  max-width: 40em;
  margin: var(--space-5) 0 0;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
}

/* The paragraphs of the head under the lead, in the size of the text of the page (the link
   to the client space is a link, never a button: ticket 0184). */
.review .page-head p:not(.lead) {
  max-width: 40em;
  margin: var(--space-4) 0 0;
  color: var(--color-ink-soft);
}

.review .page-head p:not(.lead) + p {
  margin-top: var(--space-1);
}

/* Sections (D: `.ov-section`): a rule above, the title in the margin and the text beside it
   from 900 pixels; one column below. */
.review__section {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: var(--border-width) solid var(--color-line);
}

@media (min-width: 56.25rem) {
  .review__section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-7);
    padding: var(--space-7) 0;
  }
}

.review__section h2 {
  margin: 0;
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  font-weight: 450;
  line-height: 1.15;
  text-wrap: balance;
}

.review__body {
  max-width: 42rem;
  min-width: 0;
  color: var(--color-ink-soft);
}

.review__body > :last-child {
  margin-bottom: 0;
}

/* The Nuit plane of the tiers of the free design (`.night`), from edge to edge of the page, and
   the tier of the review on it (`.tier--high`: the raised Nuit, a rule of the Nuit, the
   corner of a card). The three conditions of the quote, each led by a check drawn by two
   borders (D: `.tier li`). */
.review-night {
  margin: var(--space-7) 0 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--color-band);
  color: var(--color-band-ink);
}

.review-night :focus-visible {
  outline-color: var(--color-focus-on-band);
}

.review-tier {
  max-width: 52rem;
  padding: clamp(var(--space-5), 3vw, var(--space-7));
  border: var(--border-width) solid var(--color-band-rule);
  border-radius: var(--radius-card);
  background: var(--color-band-raised);
}

.review-tier p {
  position: relative;
  margin: 0;
  padding-left: var(--space-6);
  font-size: var(--font-size-md);
  line-height: 1.55;
}

.review-tier p + p {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-band-rule);
}

.review-tier p::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: var(--space-1);
  width: 0.7em;
  height: 0.4em;
  border-bottom: 2px solid var(--color-band-ink);
  border-left: 2px solid var(--color-band-ink);
  transform: rotate(-45deg);
}

.review-tier p + p::before {
  top: calc(var(--space-4) + 0.55em);
}

/* Link with an arrow (D: `.link-arrow`), a target of 44 pixels. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target-size);
  border-bottom: var(--border-width) solid var(--color-line-strong);
  color: var(--color-ink);
  font-weight: var(--font-weight-strong);
  text-decoration: none;
}

.link-arrow:hover {
  border-bottom-color: var(--color-ink);
}

.link-arrow .icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
