/*
 * Page "Méthode" (ticket 0237, sub-lot B2-d, rules 21 and 22): the style of this page alone,
 * loaded by templates/core/method.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 numbered sections of the preview (`.page-head`,
 * `.ov-section`), the rows ruled in Encre of its catalogue (`.catalogue`, `.row`).
 *
 * 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);
}

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

.method .page-head .eyebrow {
  margin-bottom: var(--space-4);
}

.eyebrow--brand {
  color: var(--color-brand);
}

/* 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). */
.method .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;
}

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

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

/* Signature, date of update and seniority notice: one line of marks under the lead, set
   off by a rule, as the metadata of the sheet of D (`.sheet__meta`). */
.method .signature {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  max-width: 50rem;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-width) solid var(--color-line);
}

.method .signature > *,
.method .signature > * + * {
  margin: 0;
}

/* Numbered sections (D: `.ov-section`): a rule above, the title in the margin and the text
   beside it from 900 pixels, as the rows of the catalogue; one column below. */
.method__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) {
  .method__section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-7);
    padding: var(--space-7) 0;
  }
}

.method__section h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0;
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  font-weight: 450;
  line-height: 1.15;
  text-wrap: balance;
}

/* The number of a section, in the machine voice before its title (D: `.ov-section h2 .n`). */
.method__number {
  flex: none;
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
}

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

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

/* Section 4: the controls as a list of facts, ruled in Encre above and by a rule under each
   item (D: the rule of the catalogue, in Encre); each fact leads by a small check drawn by two
   borders. A list, not a table of one column without header cell (ticket 0256, lot A). */
.facts-list {
  margin: 0;
  padding: 0;
  border-top: var(--border-width) solid var(--color-ink);
  color: var(--color-ink);
  list-style: none;
}

.facts-list li,
.facts-list li + li {
  position: relative;
  margin: 0;
  padding: var(--space-4) 0 var(--space-4) var(--space-6);
  border-bottom: var(--border-width) solid var(--color-line);
}

.facts-list li::before {
  content: "";
  position: absolute;
  top: calc(var(--space-4) + 0.45em);
  left: var(--space-1);
  width: 0.7em;
  height: 0.4em;
  border-bottom: 2px solid var(--color-ink);
  border-left: 2px solid var(--color-ink);
  transform: rotate(-45deg);
}

/* What the service does not do: a list ruled like the list of facts, a short rule for each item
   (not a check: these are not facts of control). */
.method__limits {
  margin: 0;
  padding: 0;
  border-top: var(--border-width) solid var(--color-ink);
  list-style: none;
}

.method__limits li,
.method__limits li + li {
  position: relative;
  margin: 0;
  padding: var(--space-4) 0 var(--space-4) var(--space-6);
  border-bottom: var(--border-width) solid var(--color-line);
}

.method__limits li::before {
  content: "";
  position: absolute;
  top: calc(var(--space-4) + 0.8em);
  left: var(--space-1);
  width: 0.8em;
  border-top: 2px solid var(--color-ink-muted);
}

/* 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;
}
