/**
 * AbayaFemme Community — front end.
 *
 * Two rules govern this file.
 *
 * 1. Every value is a token declared once on `.afc`, and each token falls back to a
 *    literal. On this store the AbayaFemme theme has already declared `--af-*`, so the
 *    community inherits the shop's palette, spacing and typography automatically. On
 *    any other theme the fallbacks take over and the module still looks finished.
 *    That is what makes the plugin sellable rather than site-specific.
 *
 * 2. Nothing outside `.afc` is styled. The theme's header, navigation and footer are
 *    untouched, so a community page is recognisably the same site.
 *
 * Deliberate absences: no border radius beyond a hairline, no gradient, no card
 * inside a card, no drop shadow used as decoration. The visual weight comes from
 * whitespace and one accent, which is the register a fashion storefront reads in.
 */

.afc {
  --afc-ink: var(--af-color-ink, #24231f);
  --afc-ink-soft: var(--af-color-ink-muted, #625f58);
  --afc-ink-faint: #8a867c;
  --afc-accent: var(--af-color-olive-800, #4d4c38);
  --afc-accent-soft: var(--af-color-olive-600, #6d6b50);
  --afc-page: var(--af-color-ivory, #faf7f2);
  --afc-raised: var(--af-color-white, #fff);
  --afc-cream: var(--af-color-cream, #f5efe8);
  --afc-line: var(--af-color-border, #e6dfd7);
  --afc-line-soft: #efe9e1;

  /*
   * Three aliases the circles proposal form has referenced since it shipped and that were never
   * declared anywhere. An undefined custom property is not "no value" — it makes the whole
   * declaration invalid at computed-value time, so `border: 1px solid var(--afc-line-strong)`
   * resolved to no border at all and `background: var(--afc-paper)` to transparent. The visible
   * result was a "Choisir un thème" select rendered as bare text on the page ground, with no box,
   * no arrow and nothing to say it could be clicked.
   */
  --afc-line-strong: var(--af-color-border-strong, #cfc5ba);
  --afc-paper: var(--af-color-white, #fff);
  --afc-muted: var(--af-color-ink-muted, #625f58);
  --afc-good: var(--af-color-success, #39704d);
  --afc-good-bg: #eaf3ee;
  --afc-warn: var(--af-color-warning, #9a6429);
  --afc-warn-bg: #fbf1e2;
  --afc-bad: var(--af-color-danger, #a43f3f);
  --afc-bad-bg: #fbebeb;
  --afc-focus: var(--af-color-focus, #245fb8);
  --afc-display: var(--af-font-display, "Bodoni Moda", Didot, Georgia, serif);
  --afc-ui: var(--af-font-ui, "Jost", system-ui, -apple-system, sans-serif);
  --afc-wrap: 1800px;
  --afc-gutter: clamp(1rem, 2.2vw, 2.65rem);
  --afc-gap: clamp(1.25rem, 3vw, 2.25rem);
  --afc-section: clamp(2.5rem, 6vw, 4.5rem);

  color: var(--afc-ink);
  font-family: var(--afc-ui);
  font-size: 16px;
  line-height: 1.6;
}

/* ========================================================================== */
.afc *,
.afc *::before,
.afc *::after {
  box-sizing: border-box;
}

.afc-wrap {
  width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

/* Community pages begin at the storefront navigation edge. WoodMart's generic
 * 40px content padding created an unexplained white band above every hero. */
body.afc-page .wd-content-layout {
  max-width: none;
  padding-block: 0;
  padding-inline: 0;
}

/* WoodMart and many themes give every `li` a bottom margin, which turns any flex
 * row into a staircase. Neutralised for lists this module owns only. */
.afc ul li,
.afc ol li {
  margin-bottom: 0;
}

/* Themes commonly set `text-transform: capitalize` on headings, which is wrong in
 * French: it produces "La Communauté Vient D'ouvrir". Our headings always carry the
 * capitalisation the copy was written with. Small-caps treatments in this file are
 * applied deliberately, per component, and are unaffected.
 *
 * `legend` and `label` are in the list for the same reason: the parent capitalises them too,
 * and the question form's fieldset legend was rendering as "Qui Peut Lire Ce Message ?". */
.afc :is(h1, h2, h3, h4, h5, h6, legend, label) {
  text-transform: none;
  font-variant-caps: normal;
}

.afc a:not([class]) {
  color: inherit;
  text-decoration-color: var(--afc-line);
  text-underline-offset: 0.2em;
}

.afc a:not([class]):hover {
  text-decoration-color: currentcolor;
}

/*
 * The icon set's base drawing rules.
 *
 * Load-bearing, not cosmetic: every path in `Icons` is an outline with no `fill` attribute, and an
 * SVG with no styling defaults to `fill: currentColor` and `stroke: none`. Without this rule the
 * whole set rendered as **solid blobs** — the gear became a filled dot, the shield a filled
 * lozenge, the house a filled triangle — which is what the first version of the masthead shipped
 * with, and it read as bullet points beside the labels.
 *
 * `1em` rather than a fixed size, so an icon scales with the text it sits beside; the components
 * override the size where they need a specific one.
 */
.afc .afc-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---------------------------------------------------------------------------
 * Buttons and small controls
 * ------------------------------------------------------------------------- */

.afc .afc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.6rem;
  border: 1px solid var(--afc-ink);
  background: transparent;
  color: var(--afc-ink);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.afc .afc-btn:hover,
.afc .afc-btn:focus {
  background: var(--afc-ink);
  color: var(--afc-page);
}

.afc .afc-btn--primary {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: #fff;
}

.afc .afc-btn--primary:hover,
.afc .afc-btn--primary:focus {
  background: var(--afc-accent-soft);
  border-color: var(--afc-accent-soft);
  color: #fff;
}

.afc .afc-btn--small {
  min-height: 2.5rem;
  padding: 0 1.05rem;
  font-size: 0.9rem;
}

/* Row-level actions: withdraw, report, archive, restore.
 *
 * `text-transform: none` is load-bearing, not tidiness. WoodMart uppercases every `button` on the
 * site, so "Archiver" rendered as "ARCHIVER" with letter-spacing and read as a stranded section
 * heading rather than as something you could click. And 0.78rem is 10.9px here — smaller than the
 * legal small print in the footer. */
.afc .afc-action {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 0.8rem;
  border: 1px solid var(--afc-line);
  border-radius: 3px;
  background: var(--afc-raised);
  color: var(--afc-ink-soft);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.afc .afc-action:hover {
  border-color: var(--afc-ink-soft);
  color: var(--afc-ink);
}

.afc .afc-action__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.afc .afc-action.is-active {
  border-color: var(--afc-accent);
  background: var(--afc-cream);
  color: var(--afc-accent);
}

.afc .afc-action--quiet {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------------------
 * Sections and headings
 * ------------------------------------------------------------------------- */

.afc-section {
  padding-block: 0 var(--afc-section);
}

.afc-section__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 3vw, 1.85rem);
}

.afc-section__title {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
}

.afc-section__note {
  max-width: 58ch;
  margin: 0;
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
}

.afc-section__more {
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * Topics
 * ------------------------------------------------------------------------- */

.afc-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-topics__list a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.55rem 1rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
  font-size: 1.0rem;
  text-decoration: none;
}

.afc-topics__list a:hover {
  border-color: var(--afc-accent);
}

.afc-topics__count {
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------------- */

.afc-cards {
  display: grid;
  gap: var(--afc-gap);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .afc-cards--2,
  .afc-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .afc-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.afc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--afc-line);
  border-radius: 5px;
  background: var(--afc-raised);
}

.afc-card__media {
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.afc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afc-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.1rem;
}

.afc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}

/* The question itself: the primary link of the card and the only thing she reads before deciding.
 * It was 14.8px against a 14px excerpt — barely distinguishable from the summary beneath it, so a
 * listing of six cards had no focal point per card. Now clearly the dominant line. */
.afc-card__title {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.afc-card__title a {
  text-decoration: none;
}

.afc-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* An excerpt is the sentence she reads to decide whether to open a discussion, so it is prose and
 * sits at body size — not on the 12.9px floor the surrounding meta uses. */
.afc-card__excerpt {
  margin: 0.6rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.afc-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--afc-line-soft);
}

.afc-card__replies {
  color: var(--afc-ink-faint);
  font-size: 13px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * Tags, bylines, avatars
 * ------------------------------------------------------------------------- */

.afc-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--afc-cream);
  color: var(--afc-ink-soft);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.afc-tag--answered {
  background: var(--afc-good-bg);
  color: var(--afc-good);
}

.afc-tag--open {
  background: var(--afc-warn-bg);
  color: var(--afc-warn);
}

.afc-tag--staff {
  background: var(--afc-accent);
  color: #fff;
}

.afc-tag--pin,
.afc-tag--story {
  border: 1px solid var(--afc-line);
  background: transparent;
}

.afc-byline {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  color: var(--afc-ink-soft);
  font-size: 13px;
}

.afc-byline a {
  text-decoration: none;
}

.afc-byline time {
  color: var(--afc-ink-faint);
}

.afc-byline time::before {
  margin-right: 0.4rem;
  content: "·";
}

.afc-byline--large {
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.afc-avatar {
  display: inline-grid;
  overflow: hidden;
  width: var(--afc-avatar-size, 2.75rem);
  height: var(--afc-avatar-size, 2.75rem);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--afc-cream);
  place-items: center;
}

.afc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afc-avatar--initials {
  color: var(--afc-accent);
  font-size: calc(var(--afc-avatar-size, 2.75rem) * 0.4);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.afc-avatar--default {
  border: 1px solid color-mix(in oklch, var(--afc-avatar-ink) 16%, transparent);
  background: var(--afc-avatar-bg);
  color: var(--afc-avatar-ink);
}

.afc-avatar__default-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.afc-avatar__halo {
  fill: color-mix(in oklch, var(--afc-avatar-accent) 28%, transparent);
}

.afc-avatar__veil {
  fill: var(--afc-avatar-ink);
}

.afc-avatar__face {
  fill: var(--afc-avatar-bg);
}

.afc-avatar__line {
  fill: none;
  stroke: var(--afc-avatar-accent);
  stroke-width: 1.2;
  stroke-linecap: round;
}

/* ---------------------------------------------------------------------------
 * Archives
 * ------------------------------------------------------------------------- */

.afc-archive__head {
  padding-block: var(--afc-section) clamp(1.25rem, 3vw, 2rem);
}

.afc-archive__title {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
}

.afc-archive__intro {
  max-width: 62ch;
  margin: 0.9rem 0 0;
  color: var(--afc-ink-soft);
}

/* ---------------------------------------------------------------------------
 * Theme archive: a compact editorial introduction for a mixed collection.
 * ------------------------------------------------------------------------- */

.afc-theme__head {
  border-bottom: 1px solid var(--afc-line);
  background: var(--afc-cream);
}

.afc-theme__head-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

@media (min-width: 48em) {
  .afc-theme__head-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  }
}

.afc-theme__eyebrow,
.afc-theme__section-kicker,
.afc-area__panel-kicker {
  margin: 0 0 0.6rem;
  color: var(--afc-accent);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afc-theme__title {
  max-width: 13ch;
  margin: 0;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}

.afc-theme__lede {
  max-width: 52ch;
  margin: clamp(1rem, 2vw, 1.4rem) 0 0;
  color: var(--afc-ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.afc-theme__summary {
  padding-top: 1rem;
  border-top: 1px solid var(--afc-ink);
}

.afc-theme__summary p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
}

.afc-theme__summary strong {
  font-family: var(--afc-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.afc-theme__summary span {
  color: var(--afc-ink-soft);
}

.afc-theme__summary > a {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--afc-ink);
  font-weight: 600;
  text-decoration: none;
}

.afc-theme__body {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--afc-section);
}

.afc-theme__section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--afc-line);
}

.afc-theme__section-head h2 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 400;
  line-height: 1.1;
}

.afc-theme__doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
}

.afc-theme__doors a {
  color: var(--afc-accent);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.afc-theme__empty {
  padding-block: clamp(2rem, 5vw, 4rem);
  border-block: 1px solid var(--afc-line);
}

.afc-theme__empty h2 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
}

.afc-theme__empty p {
  max-width: 56ch;
  margin: 0.75rem 0 0;
  color: var(--afc-ink-soft);
}

.afc-archive__body {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: var(--afc-section);
}

@media (min-width: 1000px) {
  .afc-archive__body {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }

  .afc-archive__aside {
    position: sticky;
    top: 2rem;
  }
}

.afc-pagination {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.afc-pagination .page-numbers {
  display: inline-block;
  min-width: 2.4rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--afc-line);
  margin-right: 0.35rem;
  font-size: 0.98rem;
  text-align: center;
  text-decoration: none;
}

.afc-pagination .page-numbers.current {
  border-color: var(--afc-ink);
  background: var(--afc-ink);
  color: var(--afc-page);
}

/* ---------------------------------------------------------------------------
 * Single contribution
 * ------------------------------------------------------------------------- */

/* The reading column is narrower than the wrap, so it needs its own centring:
 * inheriting the wrap's `margin-inline: auto` centres the *wrap*, which left the
 * article pinned to the left edge with a void beside it. */
.afc-single__inner {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: var(--afc-section);
}

.afc-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

/*
 * `4.2vw` was sized against a full-width column. Since the question moved into a two-column
 * body it is the column that constrains the title, not the viewport, so the type kept growing
 * while the measure shrank — a two-line title overlapped itself and left the "?" alone on the
 * second line. Capped smaller, and the line-height loosened enough that descenders and
 * accents cannot collide.
 */
.afc-single__title {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

.afc-single__figure {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.afc-single__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.afc-prose {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  font-size: 1.06rem;
}

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

.afc-prose p {
  margin: 0 0 1.1em;
}

.afc-prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 2px solid var(--afc-accent);
  color: var(--afc-ink-soft);
  font-style: normal;
}

.afc-prose--story {
  font-size: 1.12rem;
}

.afc-prose--reply {
  margin-top: 0.8rem;
  font-size: 1rem;
}

.afc-single__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--afc-line);
}

.afc-accepted {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-left: 3px solid var(--afc-good);
  background: var(--afc-good-bg);
}

.afc-accepted__title {
  margin: 0 0 0.85rem;
  color: var(--afc-good);
  font-family: var(--afc-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.afc-hub .afc-disclosure {
  max-width: 62ch;
  margin-inline: auto;
  /* The hub renders inside the theme's page content, which already pads its own
   * bottom. Adding our own here produced a visible void above the footer. */
  margin-bottom: 0;
  text-align: center;
}

.afc-disclosure {
  max-width: 62ch;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--afc-line);
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------------------
 * Reactions
 *
 * Hidden until the script marks the document as enhanced: a reaction button that
 * does nothing is worse than no button.
 * ------------------------------------------------------------------------- */

.afc-reactions {
  display: none;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.afc-enhanced .afc-reactions {
  display: flex;
}

.afc-reaction {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
  color: var(--afc-ink-soft);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.afc-reaction:hover {
  border-color: var(--afc-ink-soft);
  color: var(--afc-ink);
}

.afc-reaction.is-active {
  border-color: var(--afc-accent);
  background: var(--afc-cream);
  color: var(--afc-accent);
}

.afc-reaction__symbol {
  font-size: 0.9rem;
  line-height: 1;
}

.afc-reaction__count:not(:empty)::before {
  margin-right: 0.15rem;
  content: "·";
}

/* ---------------------------------------------------------------------------
 * Follow, save, report
 * ------------------------------------------------------------------------- */

.afc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.afc-actions__status:empty {
  display: none;
}

.afc-actions__status {
  flex-basis: 100%;
  margin: 0.35rem 0 0;
  color: var(--afc-good);
  font-size: 0.95rem;
}

.afc-report {
  position: relative;
}

.afc-report > summary {
  list-style: none;
}

.afc-report > summary::-webkit-details-marker {
  display: none;
}

.afc-report__panel {
  z-index: 5;
  width: min(22rem, 90vw);
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

@media (min-width: 620px) {
  .afc-report__panel {
    position: absolute;
    right: 0;
  }
}

.afc-report__intro {
  margin: 0 0 0.75rem;
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
}

.afc-report__field {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.afc-report__field span {
  display: block;
  margin-bottom: 0.25rem;
}

.afc-report__field select,
.afc-report__field textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
  font-family: inherit;
  font-size: 1.0rem;
}

/* ---------------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------------- */

.afc-form-block {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--afc-form-border, var(--afc-line));
  background: var(--afc-form-surface, var(--afc-raised));
}

/* Each contribution has its own calm editorial surface. The distinction is tied
 * to the contribution type, rather than to one page layout, so the shared form
 * keeps the same identity wherever it is rendered. */
.afc-form-block--question {
  --afc-form-surface: #f0f2e8;
  --afc-form-border: #d1d6c0;
  --afc-form-field: #fffefb;
}

.afc-form-block--testimonial {
  --afc-form-surface: #f7ece8;
  --afc-form-border: #e1cbc2;
  --afc-form-field: #fffdfb;
}

.afc-form-block__gate {
  margin: 0 0 1rem;
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
}

/* The form scale.
 *
 * `html` is 14px here (WoodMart's `--wd-text-font-size`), so every rem is 14px-based and the
 * values that read as normal in a 16px codebase come out three sizes too small: labels were
 * 0.85rem = 11.9px and help text 0.82rem = 11.5px. An 11px interface is not a premium one, and it
 * is unreadable for the reading glasses half this audience wears. Recalibrated so a label lands
 * near 15px and help text near 13px, with controls tall enough to be a comfortable touch target. */

.afc .afc-field {
  display: block;
  margin: 0 0 1.35rem;
}

.afc .afc-field > label,
.afc .afc-fieldset legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--afc-ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.afc .afc-field input[type="text"],
.afc .afc-field input[type="email"],
.afc .afc-field input[type="password"],
.afc .afc-field input[type="file"],
.afc .afc-field select,
.afc .afc-field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--afc-form-border, var(--afc-line));
  border-radius: 3px;
  background: var(--afc-form-field, var(--afc-raised));
  color: var(--afc-ink);
  font-family: inherit;
  font-size: 1.12rem;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* A visible, generous focus state: this is the only signal telling a keyboard user where she is. */
.afc .afc-field input[type="text"]:focus,
.afc .afc-field input[type="email"]:focus,
.afc .afc-field input[type="password"]:focus,
.afc .afc-field select:focus,
.afc .afc-field textarea:focus {
  border-color: var(--afc-accent);
  box-shadow: 0 0 0 3px rgb(77 76 56 / 12%);
  outline: none;
}

.afc .afc-field input::placeholder,
.afc .afc-field textarea::placeholder {
  color: var(--afc-ink-faint);
  opacity: 1;
}

/* The native arrow is drawn by the platform and cannot be styled; a background chevron plus room
 * for it is what makes a select look like it belongs to the same family as the text inputs. */
.afc .afc-field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23625f58' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
  appearance: none;
}

.afc .afc-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.afc-field__help {
  display: block;
  margin-top: 0.4rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.afc-field--check label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
}

.afc .afc-field--check input {
  width: auto;
  margin-top: 0.2rem;
}

.afc-fieldset {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--afc-form-border, var(--afc-line));
}

.afc-form__submit {
  margin: 1.35rem 0 0;
}

.afc-form__policy {
  margin: 0.85rem 0 0;
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
}

/* The decoy field. Kept in the layout flow with zero size rather than
 * `display:none`, which some bots detect. */
.afc-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.afc-message {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--afc-accent);
  background: var(--afc-cream);
  font-size: 0.95rem;
}

.afc-message--good {
  border-left-color: var(--afc-good);
  background: var(--afc-good-bg);
  color: var(--afc-good);
}

.afc-message--bad {
  border-left-color: var(--afc-bad);
  background: var(--afc-bad-bg);
  color: var(--afc-bad);
}

.afc-empty-note {
  max-width: 62ch;
  color: var(--afc-ink-soft);
}

/* The pre-launch hub. Centred to match the hero above it: a left-aligned block of
 * text under a centred headline reads as a layout mistake, and this is the first
 * thing a visitor sees before the community has any content. */
.afc-empty-hub {
  padding-block: 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.afc-empty-hub p {
  max-width: 58ch;
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem);
  color: var(--afc-ink-soft);
}

.afc-empty-hub .afc-section__title {
  margin-bottom: 0.85rem;
}

/* ---------------------------------------------------------------------------
 * Profile and member area
 * ------------------------------------------------------------------------- */

.afc-profile__safety {
  margin-top: var(--afc-section);
  padding-top: 1.25rem;
  border-top: 1px solid var(--afc-line);
}

.afc-profile__safety-note {
  max-width: 60ch;
  margin: 0.5rem 0 0;
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
}

.afc-activity {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-activity li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-activity a {
  font-weight: 500;
  text-decoration: none;
}

.afc-activity p {
  margin: 0.35rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

.afc-activity__time {
  display: block;
  margin-top: 0.35rem;
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
}

.afc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-area__panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.afc-area__panel-head h2 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.6rem, 2.6vw, 1.95rem);
  font-weight: 400;
}

.afc-area__panel-intro {
  max-width: 60ch;
  margin: 0.65rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.afc-area__subtitle {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 1rem;
  font-family: var(--afc-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.afc-notifications {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-notification {
  padding: 1rem 0 1rem 1rem;
  border-bottom: 1px solid var(--afc-line-soft);
  border-left: 3px solid transparent;
}

.afc-notification.is-unread {
  border-left-color: var(--afc-accent);
  background: var(--afc-cream);
}

.afc-notification a {
  font-weight: 500;
  text-decoration: none;
}

.afc-notification p {
  margin: 0.3rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

.afc-notification__time {
  display: block;
  margin-top: 0.3rem;
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
}

.afc-pending,
.afc-blocked {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--afc-warn);
  background: var(--afc-warn-bg);
}

.afc-pending h3,
.afc-blocked h3 {
  margin: 0 0 0.5rem;
  font-family: var(--afc-ui);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afc-pending p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.afc-pending ul,
.afc-blocked ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.afc-blocked {
  border-left-color: var(--afc-line);
  background: var(--afc-cream);
}

/* ---------------------------------------------------------------------------
 * Storefront teaser
 * ------------------------------------------------------------------------- */

.afc-teaser {
  padding-block: clamp(2rem, 5vw, 3rem);
}

.afc-teaser__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.afc-teaser__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--afc-line);
}

.afc-teaser__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-teaser__list a {
  font-size: 1rem;
  text-decoration: none;
}

.afc-teaser__count {
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * Utilities and preferences
 * ------------------------------------------------------------------------- */

.afc .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.afc [aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .afc * {
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------------
 * Doorways: the gate and the charter.
 *
 * A single narrow column, centred, with nothing else competing. These pages have
 * exactly one job each and the layout says so. Sign in, join and the two password
 * screens moved to the portal block at the end of this file, which is a two-column
 * composition rather than a narrow column.
 * ------------------------------------------------------------------------- */

.afc-gate__inner {
  max-width: 34rem;
  margin-inline: auto;
  padding-block: var(--afc-section);
}

.afc-gate__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--afc-ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afc-gate__title {
  margin: 0 0 0.9rem;
  font-family: var(--afc-display);
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.afc-gate__body,
.afc-gate__body p {
  color: var(--afc-ink-soft);
}

.afc-gate__body p:last-child {
  margin-bottom: 0;
}

.afc-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.afc-gate__note {
  margin: 1.5rem 0 0;
  font-size: 0.98rem;
}

.afc .afc-field input[type="email"],
.afc .afc-field input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-page);
  color: var(--afc-ink);
  font-family: inherit;
  font-size: 1rem;
}

.afc-charter {
  padding-bottom: var(--afc-section);
  background: var(--afc-page);
}

.afc-charter__layout {
  display: grid;
  gap: clamp(2rem, 4vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

.afc-charter__nav {
  align-self: start;
  padding-top: 0.75rem;
  border-top: 1px solid var(--afc-ink);
}

.afc-charter__version {
  margin: 0 0 1.25rem;
  color: var(--afc-accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.afc-charter__nav h2 {
  margin: 0 0 0.8rem;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: 1.65rem;
  font-weight: 400;
}

.afc-charter__nav nav {
  display: grid;
}

.afc-charter__nav nav a {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--afc-line);
  color: var(--afc-ink);
  font-size: 1rem;
  text-decoration: none;
}

.afc-charter__nav nav a:is(:hover, :focus-visible) {
  color: var(--afc-accent);
}

.afc-charter__nav > p:last-child {
  margin: 1.25rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.afc-charter__main {
  min-width: 0;
  max-width: 1120px;
}

.afc-charter__intro {
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--afc-ink);
}

.afc-charter__intro p {
  max-width: 72ch;
  margin: 0;
  color: var(--afc-ink-soft);
  font-family: var(--afc-display);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.24;
}

.afc-charter__intro strong {
  display: block;
  max-width: 66ch;
  margin-top: 1.25rem;
  color: var(--afc-ink);
  font-size: 1.05rem;
}

.afc-charter__principles,
.afc-charter__section,
.afc-charter__consent {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--afc-line);
}

.afc-charter__section-head {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.afc-charter__section-head > span {
  color: var(--afc-accent);
  font-family: var(--afc-display);
  font-size: 1.35rem;
}

.afc-charter__section-head p {
  margin: 0 0 0.25rem;
  color: var(--afc-accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.afc-charter__section-head h2,
.afc-charter__consent h2 {
  margin: 0;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  font-weight: 400;
  line-height: 1.06;
}

.afc-charter__principle-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--afc-line);
  background: var(--afc-line);
}

.afc-charter__principle-grid article {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--afc-raised);
}

.afc-charter__principle-grid article > span {
  color: var(--afc-accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.afc-charter__principle-grid h3,
.afc-charter__columns h3 {
  margin: 0.8rem 0 0.45rem;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: 1.55rem;
  font-weight: 400;
}

.afc-charter__principle-grid p,
.afc-charter__section > p,
.afc-charter__columns p,
.afc-charter__body {
  color: var(--afc-ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.afc-charter__body ul,
.afc-charter__checks {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

.afc-charter__body li,
.afc-charter__checks li {
  margin-bottom: 0.7rem;
}

.afc-charter__columns {
  display: grid;
  gap: 1px;
  border: 1px solid var(--afc-line);
  background: var(--afc-line);
}

.afc-charter__columns > div {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--afc-cream);
}

.afc-charter__consent {
  display: grid;
  gap: 1.5rem;
  border-bottom: 0;
}

.afc-charter__consent > div > p {
  margin: 0 0 0.35rem;
  color: var(--afc-accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.afc-charter__form {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  border-left: 3px solid var(--afc-accent);
  background: var(--afc-cream);
}

.afc-charter__form .afc-btn {
  justify-self: start;
}

.afc-charter__accepted {
  margin: 0;
  color: var(--afc-good);
  font-size: 1rem;
}

.afc-form__charter {
  margin: -0.35rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 0.93rem;
}

.afc-form__charter a {
  color: var(--afc-ink);
  text-underline-offset: 0.2em;
}

@media (min-width: 900px) {
  .afc-charter__layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
  }

  .afc-charter__nav {
    position: sticky;
    top: calc(var(--afc-sticky-top, 0px) + 2rem);
  }

  .afc-charter__principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afc-charter__columns,
  .afc-charter__consent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------------------
 * Anonymity, visibility and badges
 * ------------------------------------------------------------------------- */

.afc-avatar--anon {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border: 1px dashed var(--afc-line-strong, var(--afc-line));
  border-radius: 50%;
  color: var(--afc-ink-faint);
  place-items: center;
}

.afc-tag--members {
  background: var(--afc-accent);
  color: #fff;
}

.afc-badge-chip {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--afc-line);
  color: var(--afc-ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.afc-level {
  display: inline-block;
  color: var(--afc-accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The help-resources notice. Calm, not alarming: it offers, it does not warn. */
.afc-resources {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border-left: 3px solid var(--afc-accent-soft);
  background: var(--afc-cream);
}

.afc-resources__title {
  margin: 0 0 0.6rem;
  font-family: var(--afc-display);
  font-size: 1.15rem;
}

.afc-resources ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.afc-resources li {
  margin-bottom: 0.4rem;
}

/* The appeal. Given a quiet frame rather than a warning colour: contesting a decision
 * is a normal thing to do, not an incident. */
.afc-appeal {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-appeal h3 {
  margin: 0 0 0.5rem;
  font-family: var(--afc-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.afc-appeal > p {
  max-width: 64ch;
  margin: 0 0 1rem;
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

.afc-appeal__form + .afc-appeal__form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--afc-line-soft);
}

.afc-appeal__subject {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

/* The per-contribution visibility choice. Laid out as two readable blocks rather than
 * two bare radios: this is the decision that determines whether a sentence about her
 * marriage is findable on Google, and it deserves the room to be understood. */
.afc-visibility__choice {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: auto 1fr;
  align-items: start;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--afc-form-border, var(--afc-line));
  background: var(--afc-form-field, var(--afc-raised));
  cursor: pointer;
  font-weight: 400;
}

.afc-visibility__choice:last-child {
  margin-bottom: 0;
}

.afc-visibility__choice:has(input:checked) {
  border-color: var(--afc-accent);
  background: var(--afc-cream);
}

.afc-visibility__choice strong {
  display: block;
  font-size: 0.92rem;
}

.afc-visibility__choice .afc-field__help {
  margin-top: 0.2rem;
}

/* ---------------------------------------------------------------------------
 * Circles
 * ------------------------------------------------------------------------- */

.afc-circle__inner {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 3.5vw, 3.5rem);
}

.afc-circle-hero {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: oklch(0.25 0.045 135);
  color: oklch(0.975 0.012 83);
}

.afc-circle-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 580px);
  width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
  max-width: none;
  min-height: 0;
  align-items: center;
  padding-block: clamp(1rem, 1.5vw, 1.5rem);
}

.afc-circle-hero__inner > div {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 4vw, 4.5rem) 0 0;
}

.afc-circle-hero__eyebrow {
  margin: 0 0 0.7rem !important;
  color: oklch(0.81 0.065 115) !important;
  font-size: 0.88rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.afc-circle-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: oklch(0.975 0.012 83);
  font-family: var(--afc-display);
  font-size: clamp(2.65rem, 4.35vw, 4.65rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.afc-circle-hero p {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: oklch(0.86 0.025 78);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.afc-circle-hero figure {
  position: relative;
  z-index: 0;
  grid-column: 2;
  align-self: stretch;
  aspect-ratio: 16 / 9;
  inset: auto;
  margin: 0 calc(-1 * var(--afc-gutter)) 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 100%);
}

.afc-circle-hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
}

@media (max-width: 759px) {
  .afc-circle-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
  }

  .afc-circle-hero__inner > div {
    padding: 2rem 0;
  }

  .afc-circle-hero figure {
    position: relative;
    z-index: auto;
    grid-column: 1;
    width: calc(100% + (2 * var(--afc-gutter)));
    margin: 0 calc(-1 * var(--afc-gutter));
    -webkit-mask-image: none;
    mask-image: none;
  }

  .afc-circle-hero img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* ========================================================================== 
 * COMMUNITY DETAIL CONTRACT — mockups 13 and 15
 *
 * These are the source styles for contribution detail pages and their discussion.
 * Fixed pixel floors are deliberate: the storefront sets the document root to 14px,
 * which previously turned a 19rem rail into a compressed 266px column and body copy
 * into 12–13px text. The detail contract must remain legible regardless of that root.
 * ======================================================================== */

.afc-contribution-hero {
  width: min(calc(100% - (2 * var(--afc-gutter))), 1700px);
  margin-top: 20px;
  border-radius: 3px;
  background: var(--afc-cream);
}

.afc-contribution-hero__inner {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 430px;
  padding: 0;
}

.afc-contribution-hero__copy {
  z-index: 2;
  grid-column: 1;
  align-items: stretch;
  padding: clamp(32px, 3vw, 54px);
  background: color-mix(in srgb, var(--afc-cream) 95%, white);
}

.afc-contribution-hero__eyebrow {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 9px;
  background: #eee5d8;
  color: #685845;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.09em;
}

.afc-contribution-hero h1 {
  max-width: 18ch;
  font-size: clamp(42px, 3.25vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.afc-contribution-hero__lede {
  display: -webkit-box;
  max-width: 52ch;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--afc-ink-soft);
  font-size: 16px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.afc-contribution-hero__author {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 18px;
}

.afc-contribution-hero__author .afc-avatar,
.afc-contribution-hero__author img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.afc-contribution-hero__author p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.afc-contribution-hero__author strong {
  font-size: 15px;
  font-weight: 600;
}

.afc-contribution-hero__author span {
  color: var(--afc-ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.afc-contribution-hero__actions {
  margin-top: 18px;
}

.afc-contribution-hero__actions .afc-actions {
  gap: 8px;
}

.afc-contribution-hero__actions .afc-action {
  min-height: 38px;
  padding-inline: 13px;
  border-color: #cfc5b9;
  background: rgba(255, 255, 255, 0.78);
  color: var(--afc-ink);
  font-size: 13px;
}

.afc-contribution-hero__actions .afc-report,
.afc-contribution-hero__actions .afc-actions__status {
  display: none;
}

.afc-contribution-hero figure {
  position: relative;
  grid-column: 2;
  inset: auto;
  min-width: 0;
}

.afc-contribution-hero figure img {
  object-position: center 10%;
}

.afc-reaction-strip {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-reaction-strip .afc-reactions,
.afc-reaction-prompt .afc-reactions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  width: 100%;
  gap: 8px;
}

.afc-reaction-strip .afc-reaction,
.afc-reaction-prompt .afc-reaction {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  border-color: #e4ddd5;
  border-radius: 2px;
  background: #fff;
  color: #4e4943;
  font-size: 14px;
}

.afc-reaction-strip .afc-reaction__symbol,
.afc-reaction-prompt .afc-reaction__symbol {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff3ea;
  color: #c77743;
  font-size: 18px;
}

.afc-reaction__symbol svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.afc-reaction__count {
  margin-inline-start: auto;
  color: var(--afc-ink-soft);
  font-size: 13px;
}

.afc-reaction__count:not(:empty)::before {
  content: none;
}

.afc-reaction.is-active {
  border-color: var(--afc-accent);
  background: #f6f3ec;
  color: var(--afc-accent);
}

.afc-single__inner {
  width: min(calc(100% - (2 * var(--afc-gutter))), 1700px);
  padding-block: 18px 56px;
}

@media (min-width: 1000px) {
  .afc-single__grid {
    gap: clamp(24px, 2.3vw, 40px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
  }

  .afc-single__aside {
    position: sticky;
    top: 24px;
  }
}

.afc-single__main {
  min-width: 0;
}

.afc-single__head--question {
  padding: 20px 22px 12px;
  border: 1px solid var(--afc-line);
  border-bottom: 0;
  background: var(--afc-raised);
}

.afc-single__section-title {
  margin: 0;
  padding: 22px 22px 0;
  border-inline: 1px solid var(--afc-line);
  background: var(--afc-raised);
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.15;
}

.afc-single--question .afc-single__main > .afc-prose {
  margin-top: 0;
  padding: 18px 22px 24px;
  border: 1px solid var(--afc-line);
  border-top: 0;
  background: var(--afc-raised);
}

.afc-prose,
.afc-prose--story {
  color: #45413b;
  font-size: 17px;
  line-height: 1.75;
}

.afc-prose :is(h2, h3, h4) {
  margin: 1.35em 0 0.45em;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-weight: 400;
  line-height: 1.16;
}

.afc-prose h2 {
  font-size: 32px;
}

.afc-prose h3 {
  font-size: 26px;
}

.afc-prose--reply {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.62;
}

.afc-reaction-prompt {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-reaction-prompt h2 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.afc-reaction-prompt > p {
  margin: 5px 0 16px;
  color: var(--afc-ink-soft);
  font-size: 15px;
}

.afc-single__aside {
  gap: 16px;
}

.afc-single__aside .afc-panel,
.afc-hub__aside .afc-panel,
.afc-listing__aside .afc-panel,
.afc-directory__rail .afc-panel {
  padding: 20px;
}

.afc-single__aside .afc-panel__title,
.afc-hub__aside .afc-panel__title,
.afc-listing__aside .afc-panel__title,
.afc-directory__rail .afc-panel__title {
  margin-bottom: 14px;
  font-family: var(--afc-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.18;
}

.afc-single__aside :is(.afc-panel__note, .afc-asker__bio, .afc-similar a, .afc-shortcuts a, .afc-rules li),
.afc-hub__aside :is(.afc-panel__note, .afc-shortcuts a, .afc-rules li),
.afc-listing__aside :is(.afc-panel__note, .afc-shortcuts a, .afc-rules li) {
  font-size: 15px;
  line-height: 1.5;
}

.afc-asker__person strong {
  font-size: 16px;
}

.afc-asker__stats dd {
  font-size: 26px;
}

.afc-asker__stats dt,
.afc-similar span {
  font-size: 13px;
}

/* The same rail floor is used by every public community surface. */
@media (min-width: 1000px) {
  .afc-profile__body,
  .afc-circle__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  }
}

@media (min-width: 1200px) {
  .afc-preferences__layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .afc-preferences__content {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

@media (max-width: 999px) {
  .afc-single__aside {
    margin-top: 26px;
  }
}

@media (max-width: 759px) {
  .afc-contribution-hero {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .afc-contribution-hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
  }

  .afc-contribution-hero__copy {
    grid-column: 1;
    padding: 24px 20px;
  }

  .afc-contribution-hero h1 {
    max-width: none;
    font-size: clamp(36px, 11vw, 48px);
  }

  .afc-contribution-hero__lede {
    font-size: 15px;
  }

  .afc-contribution-hero figure {
    grid-column: 1;
    margin: 0;
  }

  .afc-contribution-hero figure img {
    aspect-ratio: 16 / 9;
  }

  .afc-contribution-hero__actions .afc-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afc-reaction-strip {
    width: calc(100% - 24px);
    overflow-x: auto;
  }

  .afc-reaction-strip .afc-reactions,
  .afc-reaction-prompt .afc-reactions {
    display: flex;
    min-width: max-content;
  }

  .afc-reaction-strip .afc-reaction,
  .afc-reaction-prompt .afc-reaction {
    min-width: 130px;
  }

  .afc-single__inner {
    width: calc(100% - 24px);
  }

}

/* 52rem is a reading measure, right for the description and wrong for a two-column body: it
 * squeezed the discussions into a 450px column beside an 18rem aside. The wrapper widens once
 * there is a second column to hold. */
@media (min-width: 1000px) {
  .afc-circle__inner {
    max-width: min(var(--afc-wrap), 100%);
  }

  .afc-circle__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 1rem clamp(2rem, 5vw, 5rem);
    max-width: none;
    align-items: start;
  }

  .afc-circle__head > :not(.afc-circle__join) {
    grid-column: 1;
  }

  .afc-circle__head .afc-circle__join,
  .afc-circle__head > p:last-child:has(.afc-btn) {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin: 0;
    padding: 1.5rem;
    border-block: 1px solid var(--afc-ink);
    background: var(--afc-cream);
  }

  .afc-circle__head .afc-circle__join::before,
  .afc-circle__head > p:last-child:has(.afc-btn)::before {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--afc-accent);
    content: "Accès au cercle";
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
}

.afc-circle__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.afc-circle__title {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
}

.afc-circle__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 1.25rem 0 0;
  padding-block: 1rem;
  border-block: 1px solid var(--afc-line);
  color: var(--afc-ink-soft);
  font-size: 1.0rem;
}

.afc-circle__join {
  margin: 1.5rem 0 0;
}

.afc-circle__pending {
  margin: 0 0 0.6rem;
  color: var(--afc-ink-soft);
  font-size: 0.9rem;
}

.afc-circle__join-status {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  color: var(--afc-good);
  font-size: 0.9rem;
}

.afc-circle__promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  border-block: 1px solid var(--afc-line);
  list-style: none;
}

.afc-circle__promise li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 1rem;
}

.afc-circle__promise li + li {
  border-left: 1px solid var(--afc-line);
}

.afc-circle__promise .afc-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--afc-accent);
}

.afc-circle__promise span {
  display: grid;
  color: var(--afc-ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.afc-circle__promise strong {
  color: var(--afc-ink);
  font-size: 0.9rem;
}

/* The keeper's panel. Set apart because it is the one block on the page that only one
 * person sees, and she needs to find it without hunting. */
/* The host's panel lives in the aside now, so it drops the full-width band treatment and
 * keeps only the accent that marks it as a tool rather than content. Its heading used to be
 * set in small caps, which read as a different kind of thing from the two panels above it. */
.afc-circle__manage {
  border-left: 3px solid var(--afc-accent);
  background: var(--afc-cream);
}

.afc-circle__requests {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-circle__requests li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--afc-line);
}

.afc-circle__requests li:last-child {
  border-bottom: 0;
}

.afc-circle__decide {
  display: flex;
  gap: 0.5rem;
}

.afc-circle__decide form {
  margin: 0;
}

.afc-circle__locked {
  display: grid;
  max-width: 52rem;
  gap: 0.55rem;
  margin: var(--afc-section) 0 0;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-block: 1px solid var(--afc-ink);
  color: var(--afc-ink-soft);
}

.afc-circle__locked > .afc-icon {
  width: 2rem;
  height: 2rem;
  color: var(--afc-accent);
}

.afc-circle__locked > p {
  margin: 0.55rem 0 0;
  color: var(--afc-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.afc-circle__locked h2 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.afc-circle__locked > span {
  max-width: 62ch;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .afc-circle__promise {
    grid-template-columns: 1fr;
  }

  .afc-circle__promise li + li {
    border-top: 1px solid var(--afc-line);
    border-left: 0;
  }
}

.afc-circle__discussions {
  margin-top: var(--afc-section);
}

.afc-field__help--standalone {
  display: block;
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--afc-accent);
  background: var(--afc-cream);
  color: var(--afc-ink-soft);
}

/* ---------------------------------------------------------------------------
 * Private messages
 * ------------------------------------------------------------------------- */

.afc-requests {
  margin: 0 0 var(--afc-section);
  padding: clamp(1.15rem, 3vw, 1.6rem);
  border-left: 3px solid var(--afc-accent);
  background: var(--afc-cream);
}

.afc-requests h3 {
  margin: 0 0 0.4rem;
  font-family: var(--afc-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.afc-requests > p {
  max-width: 64ch;
  margin: 0 0 1rem;
  color: var(--afc-ink-soft);
  font-size: 0.9rem;
}

.afc-threads {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-thread-row {
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-thread-row:last-child {
  border-bottom: 0;
}

.afc-thread-row__link,
.afc-thread-row > .afc-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  text-decoration: none;
}

.afc-thread-row.is-unread .afc-thread-row__link strong {
  font-weight: 600;
}

.afc-thread-row__excerpt {
  display: block;
  max-width: 52ch;
  margin-top: 0.15rem;
  color: var(--afc-ink-soft);
  font-size: 1.0rem;
}

.afc-thread-row__meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
  white-space: nowrap;
}

.afc-thread-row__decide {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.9rem;
}

.afc-thread-row__decide form {
  margin: 0;
}

.afc-thread-view__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--afc-line);
}

.afc-thread-view__head h3 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.afc-messages {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

/* Her own messages sit right, the other's left — the one convention every messaging
 * interface shares, so it needs no explaining. */
.afc-message-bubble {
  max-width: min(38rem, 82%);
  padding: 0.75rem 1rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-message-bubble.is-mine {
  margin-left: auto;
  border-color: transparent;
  background: var(--afc-cream);
}

.afc-message-bubble .afc-prose {
  margin-top: 0;
}

.afc-message-bubble .afc-prose p:last-child {
  margin-bottom: 0;
}

.afc-message-bubble__erased {
  margin: 0;
  color: var(--afc-ink-faint);
  font-size: 0.9rem;
  font-style: italic;
}

.afc-message-bubble__time {
  display: block;
  margin-top: 0.35rem;
  color: var(--afc-ink-faint);
  font-size: 0.85rem;
}

.afc-message-form {
  padding-top: 1.25rem;
  border-top: 1px solid var(--afc-line);
}

/* ---------------------------------------------------------------------------
 * Photographs inside a bubble
 *
 * The grid is driven by how many there are, because two photographs side by side and
 * two stacked say different things: side by side is "the same thing twice", stacked is
 * "then this". One photograph gets the width it deserves; two, three and four go into
 * a square grid so the bubble keeps a predictable height whatever she sends.
 *
 * `aspect-ratio` plus `object-fit: cover` on the multiples: a thread of photographs in
 * a dozen different shapes reads as a mess, and the full-size version is one tap away.
 * A single photograph keeps its own proportions — nothing is cropped when there is no
 * grid to keep tidy.
 * ------------------------------------------------------------------------- */

.afc-photos {
  display: grid;
  gap: 0.25rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.afc-photos:first-child {
  margin-top: 0;
}

.afc-photos--2,
.afc-photos--3,
.afc-photos--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afc-photos a {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--afc-cream);
}

/* The image is the link's whole content, so the focus ring belongs on the link and has
 * to be visible against a photograph of any colour. */
.afc-photos a:focus-visible {
  outline: 2px solid var(--afc-focus);
  outline-offset: 2px;
}

.afc-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.afc-photos--1 img {
  max-height: 22rem;
  object-fit: contain;
}

.afc-photos--2 img,
.afc-photos--3 img,
.afc-photos--4 img {
  aspect-ratio: 1;
  height: 100%;
  object-fit: cover;
}

/* Three photographs: the first spans both columns, so nothing is left as an orphan
 * half-cell at the end of the row. */
.afc-photos--3 li:first-child {
  grid-column: 1 / -1;
}

.afc-photos--3 li:first-child img {
  aspect-ratio: 16 / 10;
}

.afc-field--photos input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  color: var(--afc-ink-soft);
  font-family: var(--afc-ui);
  font-size: 0.98rem;
}

.afc-field__help--privacy {
  color: var(--afc-ink-soft);
}

/* What went wrong with a photograph, under the status line that says the message went. */
.afc-message__details {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
}

/* ---------------------------------------------------------------------------
 * Member identity card
 *
 * The composition from the account mockup: the person on the left, the counters and the
 * actions on the right. Two columns above 860px, stacked below, and the counters keep
 * their row on a phone because three numbers side by side is the whole point of them.
 * ------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * Public profile — the panels and bars of ProfilePublique.png
 * ------------------------------------------------------------------------- */

/* Spans both columns of the identity grid. Without this it takes the first cell and pushes
 * the avatar and the name into the right-hand column — which is exactly what it did. */
.afc-tag--scope {
  background: var(--afc-cream);
  color: var(--afc-accent);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* The statistics bar. Equal columns rather than a flex row: the labels are of very
 * different lengths ("réaction reçue" against "témoignages laissés") and flex sized each
 * cell to its own text, which made the row read as five unrelated blocks. */
.afc-statbar {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 var(--afc-gap);
  padding: 0;
  border: 1px solid var(--afc-line);
  background: var(--afc-line);
}

@media (min-width: 900px) {
  .afc-statbar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.afc-statbar__item {
  padding: 1.15rem 0.8rem;
  background: #fff;
  text-align: center;
}

.afc-statbar dd {
  margin: 0;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: 1.6rem;
  line-height: 1.1;
}

.afc-statbar dt {
  margin-top: 0.3rem;
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

/* The level is a phrase, not a number, so it gets the label treatment rather than the
 * figure treatment — at 1.6rem "Sœur engagée" wraps to three lines. */
.afc-statbar__item--level dd {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Two columns from 1000px, contributions first in the DOM so a phone gets what she wrote
 * before it gets the panels about her. */
@media (min-width: 1000px) {
  .afc-profile__body {
    display: grid;
    gap: var(--afc-gap);
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }
}

.afc-profile__aside {
  display: grid;
  gap: var(--afc-gap);
}

.afc-panel {
  padding: 1.15rem;
  border: 1px solid var(--afc-line);
  background: #fff;
}

.afc-panel__title {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.afc-panel__figure {
  margin: 0 0 0.8rem;
}

.afc-panel__figure strong {
  display: block;
  font-family: var(--afc-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.afc-panel__figure span {
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
}

.afc-reactions-breakdown {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-reactions-breakdown li {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.afc-reactions-breakdown__bar {
  display: block;
  height: 0.4rem;
  background: var(--afc-cream);
}

.afc-reactions-breakdown__bar span {
  display: block;
  height: 100%;
  background: var(--afc-accent);
}

.afc-reactions-breakdown__count {
  color: var(--afc-ink-soft);
}

.afc-badge-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-badge-list li {
  margin-bottom: 0.8rem;
}

.afc-badge-list strong {
  display: block;
  font-size: 1.0rem;
  font-weight: 600;
}

.afc-badge-list span {
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
}

/* Followed members as overlapping faces, as the mockup draws them. */
.afc-follow-faces {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-follow-faces li {
  margin: 0 0 0 -0.5rem;
}

.afc-follow-faces li:first-child {
  margin-left: 0;
}

.afc-follow-faces .afc-avatar {
  border: 2px solid #fff;
}

/* This stylesheet had no visually-hidden helper, so the accessible names next to the
 * followed-members avatars rendered as visible text and were clipped to "Khadij", "Sofi". */
.afc-visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * Hub — greeting bar and side column of 10-community-home.png
 * ------------------------------------------------------------------------- */

.afc-hubme {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  margin-bottom: var(--afc-gap);
  padding: 1.15rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-cream);
}

.afc-hub {
  background: var(--afc-page);
}

.afc-hub .afc-hubme {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 0;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid var(--afc-line);
  background: transparent;
}

.afc-hub__grid {
  padding-block: 1.5rem var(--afc-section);
}

.afc-hub__main .afc-section {
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.afc-hub__main .afc-section__head {
  padding-top: 1rem;
  border-top: 1px solid var(--afc-ink);
}

.afc-hub__main .afc-section__title {
  font-size: clamp(30px, 2.6vw, 44px);
}

.afc-hub__discover {
  margin-bottom: 2rem;
  padding: 1.15rem;
  border: 1px solid var(--afc-line);
  border-radius: 5px;
  background: var(--afc-raised);
}

.afc-hub__tabs {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  overflow-x: auto;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--afc-line);
  scrollbar-width: none;
}

.afc-hub__tabs a {
  position: relative;
  padding: 0 0 0.75rem;
  color: var(--afc-ink-soft);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.afc-hub__tabs a.is-current {
  color: var(--afc-ink);
  font-weight: 600;
}

.afc-hub__tabs a.is-current::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--afc-accent);
  content: "";
}

.afc-hub__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin: 0;
}

.afc-hub__search input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
  color: var(--afc-ink);
  font: inherit;
  font-size: 15px;
}

.afc-hub__aside .afc-panel {
  border-color: var(--afc-line);
  background: var(--afc-raised);
}

.afc-hub > .af-request-hub-invitation {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-block: 1px solid var(--afc-line);
}

.afc-hub > .af-request-hub-invitation .af-request-btn--primary {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: var(--afc-raised);
}

.afc-hub > .af-request-hub-invitation .af-request-btn--primary:hover,
.afc-hub > .af-request-hub-invitation .af-request-btn--primary:focus-visible {
  border-color: var(--afc-ink);
  background: var(--afc-ink);
  color: var(--afc-raised);
}

@media (min-width: 860px) {
  .afc-hubme {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

.afc-hubme__person {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.afc-hubme__hello {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

/* Stays in the display face, and safely so: `Lina_b` used to render as `Lina b` here because Bodoni
 * Moda draws the underscore as a true hairline below the baseline, invisible at this size. Fixed at
 * the font level in the child theme's tokens — one codepoint served from Jost — rather than by
 * switching this one rule, which would have left the same pseudonym set in two different faces
 * depending on the screen. */
.afc-hubme__hello strong {
  font-family: var(--afc-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.afc-hubme__thanks {
  margin: 0.2rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
}

.afc-hubme__counters {
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.afc-hubme__counters dd {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
}

.afc-hubme__counters dt {
  margin-top: 0.2rem;
  color: var(--afc-ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* The two-column body. The side column comes after the content in the DOM, so a phone reads
 * what the community is saying before it reads the ways into it. */
@media (min-width: 1000px) {
  .afc-hub__grid {
    display: grid;
    gap: var(--afc-gap);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }
}

.afc-hub__aside {
  display: grid;
  gap: var(--afc-gap);
}

.afc-panel__note {
  margin: 0 0 0.8rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

.afc-panel__more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.afc-btn--block {
  display: block;
  margin-bottom: 0.5rem;
  text-align: center;
}

.afc-shortcuts,
.afc-contributors {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-shortcuts a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--afc-line-soft);
  font-size: 1.0rem;
  text-decoration: none;
}

.afc-shortcuts li:last-child a {
  border-bottom: 0;
}

.afc-pill {
  display: inline-grid;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--afc-accent);
  color: #fff;
  font-size: 0.85rem;
  place-items: center;
}

.afc-contributors a {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0;
  text-decoration: none;
}

.afc-contributors__text strong {
  display: block;
  font-size: 1.0rem;
  font-weight: 600;
}

.afc-contributors__text span {
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

/* Numbered rules. The counter is drawn rather than left to the list marker so it can sit in
 * a disc, as the mockup draws it. */
.afc-rules {
  margin: 0;
  padding: 0;
  counter-reset: afc-rule;
  list-style: none;
}

.afc-rules li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 2rem;
  color: var(--afc-ink-soft);
  counter-increment: afc-rule;
  font-size: 0.98rem;
}

.afc-rules li::before {
  position: absolute;
  left: 0;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--afc-cream);
  color: var(--afc-accent);
  content: counter(afc-rule);
  font-size: 0.85rem;
  place-items: center;
}

@media (min-width: 1000px) and (max-width: 1279px) {
  .afc-hub__main .afc-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card statistics: replies and views on one line, as the listing mockups show them. */
.afc-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

.afc-tag--replied {
  background: var(--afc-cream);
  color: var(--afc-accent);
}

/* ---------------------------------------------------------------------------
 * One circle
 * ------------------------------------------------------------------------- */

@media (min-width: 1000px) {
  .afc-circle__grid {
    display: grid;
    gap: var(--afc-gap);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }
}

.afc-circle__aside {
  display: grid;
  gap: var(--afc-gap);
  align-content: start;
}

/* The roster. Rows rather than a grid of faces: in a circle the name matters as much as the
 * avatar — you are deciding whether you know these people. */
.afc-roster {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-roster li {
  margin: 0;
}

.afc-roster a,
.afc-roster li > span {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  text-decoration: none;
}

.afc-roster__name {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  font-size: 1.0rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afc-tag--host {
  flex: 0 0 auto;
  background: var(--afc-cream);
  color: var(--afc-accent);
}

.afc-circle__how {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-circle__how li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
}

.afc-circle__how li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--afc-accent);
  content: "";
}

/* Pending requests sit in the aside, where a host expects her tools. */
.afc-circle__requests {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-circle__requests li {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-circle__requests li:last-child {
  border-bottom: 0;
}

.afc-circle__decide {
  display: flex;
  gap: 0.6rem;
}

/* Group headings on the circles archive ("Mes cercles" then "À découvrir"). */
.afc-circles__group {
  margin: var(--afc-gap) 0 0.9rem;
}

.afc-circles__group:first-of-type {
  margin-top: 0;
}

/* ---------------------------------------------------------------------------
 * One question — two columns, as 15-community-question-detail.png lays it out
 * ------------------------------------------------------------------------- */

@media (min-width: 1000px) {
  .afc-single__inner {
    max-width: min(var(--afc-wrap), 100%);
  }

  .afc-single__grid {
    display: grid;
    gap: var(--afc-gap);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }

  .afc-single__main {
    max-width: none;
  }
}

.afc-single__aside {
  display: grid;
  gap: var(--afc-gap);
  align-content: start;
}

.afc-single__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0.5rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
}

.afc-asker__person {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.7rem;
}

.afc-asker__person strong {
  display: block;
  font-size: 0.95rem;
}

.afc-asker__bio {
  margin: 0 0 0.9rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
}

.afc-asker__stats {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 0.9rem;
  padding-block: 0.7rem;
  border-block: 1px solid var(--afc-line-soft);
}

.afc-asker__stats dd {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
}

.afc-asker__stats dt {
  margin-top: 0.15rem;
  color: var(--afc-ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

.afc-similar {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-similar li {
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-similar li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.afc-similar a {
  display: block;
  font-size: 1.0rem;
  text-decoration: none;
}

.afc-similar span {
  display: block;
  margin-top: 0.15rem;
  color: var(--afc-ink-soft);
  font-size: 0.92rem;
}

/* ===========================================================================
 * THE MESSENGER
 *
 * Rebuilt on the shape every messaging application uses, because the shape it had was unusable and
 * was correctly described as such: three columns of roughly 200px each inside the member area's
 * two-column shell — a column of clipped names, a conversation too narrow for a sentence, and a
 * column of context nobody could read.
 *
 * Now: a list beside a conversation, both full height, the conversation scrolling inside itself with
 * its header stuck to the top and its composer stuck to the bottom. Below 900px it is one pane at a
 * time, swapped by CSS from the `?fil=` state already in the URL — no script, no second copy of the
 * markup, and every state has an address.
 *
 * The panes have a fixed height on purpose. A conversation that grows the page means the composer
 * moves further away with every message and she scrolls to reach it; a conversation that scrolls
 * inside a frame keeps the thing she writes with in the same place forever.
 * ======================================================================== */

.afc-msgr {
  /*
   * `min()` against the viewport and against a ceiling. On a laptop 72vh is about 560px, which holds
   * eight conversations and six messages; the 46rem ceiling stops it from becoming a 1200px-tall
   * frame on a desktop monitor, where a conversation would read as a wall.
   */
  --afc-msgr-height: min(72vh, 46rem);
  display: grid;
  gap: 1px;
  border: 1px solid var(--afc-line);
  background: var(--afc-line);
  overflow: hidden;
}

@media (min-width: 900px) {
  .afc-msgr {
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
    height: var(--afc-msgr-height);
  }

  /* Nothing to read beside the list, so it takes the whole frame rather than a fifth of it. */
  .afc-msgr--single {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
}

/* --- The list ------------------------------------------------------------- */

.afc-msgr__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  background: var(--afc-raised);
  overscroll-behavior: contain;
}

/*
 * One pane at a time below 900px.
 *
 * `is-open` is on the wrapper whenever `?fil=` names a conversation, so the swap is a CSS rule
 * rather than two renderings of the same screen.
 */
@media (max-width: 899px) {
  .afc-msgr {
    border-inline: 0;
  }

  .afc-msgr.is-open .afc-msgr__list {
    display: none;
  }

  .afc-msgr:not(.is-open) .afc-msgr__pane {
    display: none;
  }

  .afc-msgr__pane {
    height: min(78vh, 40rem);
  }
}

/* --- The conversation ---------------------------------------------------- */

.afc-msgr__pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--afc-page);
}

.afc-thread-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

/*
 * The header stays.
 *
 * On a conversation of a hundred messages the name of the person she is talking to used to scroll
 * away, and with it the only route to the profile and to the safety controls. Sticky, opaque, and
 * with a hairline under it so it reads as a header rather than as a message.
 */
.afc-thread-view__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: var(--afc-raised);
  border-bottom: 1px solid var(--afc-line);
}

/* Only where the list is not beside it: on a desktop the list *is* the way back. */
.afc-thread-view__back {
  display: none;
  gap: 0.3rem;
  align-items: center;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  text-decoration: none;
}

.afc-thread-view__back svg {
  width: 1.05rem;
  height: 1.05rem;
}

@media (max-width: 899px) {
  .afc-thread-view__back {
    display: inline-flex;
  }
}

.afc-thread-view__who {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  margin-inline-end: auto;
  color: inherit;
  text-decoration: none;
}

.afc-thread-view__who .afc-avatar,
.afc-thread-view__who img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
}

.afc-thread-view__who .afc-avatar--initials {
  display: grid;
  place-items: center;
  background: var(--afc-cream);
  color: var(--afc-accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.afc-thread-view__who strong {
  display: block;
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afc-thread-view__seewho {
  display: block;
  color: var(--afc-ink-faint);
  font-size: 0.9rem;
}

.afc-thread-view__who:hover .afc-thread-view__seewho {
  color: var(--afc-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.afc-thread-view__tools {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  align-items: center;
}

/* --- The messages -------------------------------------------------------- */

/*
 * The scroller. `flex: 1 1 auto` with `min-height: 0` is the pair that makes a flex child scroll
 * instead of growing its parent — without the `min-height` the list wins and the composer is pushed
 * off the bottom of the frame, which is exactly what a naïve version does.
 */
.afc-messages {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 1rem 0.9rem;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

/*
 * A quiet link, centred, not a button.
 *
 * An uppercase bordered button in the middle of a conversation reads as a section divider and pulls
 * the eye away from the messages either side of it. "Voir les messages plus anciens" is a way back
 * through history, which is a low-frequency, low-stakes action: a link is the right weight.
 */
.afc-messages__older,
.afc-messages__latest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  align-items: baseline;
  align-self: center;
  justify-content: center;
  text-align: center;
}

.afc-messages__older a {
  font-size: 0.98rem;
  font-weight: 600;
}

/*
 * Bubbles: hers on the left, mine on the right, in two different surfaces.
 *
 * The version this replaces drew every message as an identical bordered box in a single column, so
 * telling who said what meant reading the name each time. Side and colour together do it without
 * reading anything, which is the entire reason chat interfaces look like this.
 */
.afc-message-bubble {
  position: relative;
  max-width: min(80%, 34rem);
  margin: 0;
  padding: 0.6rem 0.85rem;
  align-self: flex-start;
  background: var(--afc-raised);
  border: 1px solid var(--afc-line);
  border-radius: 1.1rem 1.1rem 1.1rem 0.25rem;
  font-size: 1.02rem;
  line-height: 1.5;
}

.afc-message-bubble.is-mine {
  align-self: flex-end;
  background: var(--afc-accent);
  border-color: var(--afc-accent);
  border-radius: 1.1rem 1.1rem 0.25rem;
  color: #fff;
}

.afc-message-bubble p {
  margin: 0 0 0.4rem;
}

.afc-message-bubble p:last-of-type {
  margin-bottom: 0;
}

.afc-message-bubble__erased {
  margin: 0;
  color: var(--afc-ink-faint);
  font-style: italic;
}

.afc-message-bubble__time {
  display: block;
  margin-top: 0.25rem;
  color: var(--afc-ink-faint);
  font-size: 0.85rem;
}

.afc-message-bubble.is-mine .afc-message-bubble__time {
  color: color-mix(in oklch, #fff 72%, transparent);
}

.afc-message-bubble.is-mine a {
  color: #fff;
}

/*
 * The per-message action, quiet until wanted.
 *
 * Withdrawing a message and reporting one are both consequential, and neither needs to be visible on
 * thirty bubbles at once. `:focus-within` is the half that matters: it stays keyboard-reachable.
 */
.afc-message-bubble__tools {
  display: block;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.afc-message-bubble:hover .afc-message-bubble__tools,
.afc-message-bubble:focus-within .afc-message-bubble__tools {
  opacity: 1;
}

@media (hover: none) {
  .afc-message-bubble__tools {
    opacity: 1;
  }
}

.afc-message-bubble.is-mine .afc-action {
  color: color-mix(in oklch, #fff 80%, transparent);
}

.afc-message-bubble.is-mine .afc-action:hover {
  color: #fff;
}

/* Photographs fill the bubble's width rather than sitting in a fixed grid inside it. */
.afc-message-bubble .afc-photos {
  margin: 0.4rem 0 0;
}

/* --- The composer -------------------------------------------------------- */

.afc-message-form {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: var(--afc-raised);
  border-top: 1px solid var(--afc-line);
}

/*
 * One row: what she is writing, a paperclip, and send.
 *
 * `align-items: flex-end` so the two round buttons stay on the last line as the textarea grows, which
 * is where a thumb expects them. `field-sizing: content` grows it with the text where the browser
 * supports it, and `rows="1"` plus a max height is the fallback everywhere else.
 */
.afc-composer {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.afc .afc-composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.9rem;
  max-height: 9rem;
  padding: 0.7rem 0.9rem;
  background: var(--afc-page);
  border: 1px solid var(--afc-line);
  border-radius: 1.45rem;
  color: var(--afc-ink);
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.45;
  resize: none;
  field-sizing: content;
}

.afc .afc-composer textarea:focus {
  background: var(--afc-raised);
  border-color: var(--afc-accent);
}

.afc-composer__clip,
.afc .afc-composer__send {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.afc-composer__clip {
  position: relative;
  background: var(--afc-cream);
  border: 1px solid var(--afc-line);
  color: var(--afc-ink-soft);
}

.afc-composer__clip:hover,
.afc-composer__clip:focus-within {
  border-color: var(--afc-accent);
  color: var(--afc-accent);
}

/*
 * A real input, made invisible but still focusable — not `display: none`.
 *
 * Hidden with `display: none` a file input is unreachable by keyboard and the label stops opening
 * the picker in some browsers; a 1px clipped input keeps the native behaviour and the focus ring,
 * which is why `:focus-within` above can draw it.
 */
.afc .afc-composer__clip input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.afc .afc-composer__send {
  padding: 0;
  background: var(--afc-accent);
  border: 1px solid var(--afc-accent);
  color: #fff;
}

.afc .afc-composer__send:hover,
.afc .afc-composer__send:focus-visible {
  background: var(--afc-accent-soft);
  border-color: var(--afc-accent-soft);
  color: #fff;
}

.afc-composer__clip svg,
.afc .afc-composer__send svg {
  width: 1.15rem;
  height: 1.15rem;
}

.afc-composer__help {
  display: grid;
  gap: 0.15rem;
  margin: 0.5rem 0 0;
  color: var(--afc-ink-faint);
  font-size: 0.9rem;
  line-height: 1.4;
}

.afc-composer__privacy {
  color: var(--afc-ink-soft);
}

/* --- The folded context panel -------------------------------------------- */

.afc-thread-view__context {
  flex: 0 0 auto;
  border-top: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-thread-view__context > summary {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  list-style: none;
  cursor: pointer;
}

.afc-thread-view__context > summary::-webkit-details-marker {
  display: none;
}

.afc-thread-view__context > summary:hover {
  color: var(--afc-accent);
}

.afc-thread-view__context > summary svg {
  width: 1.05rem;
  height: 1.05rem;
}

.afc-thread-view__context[open] {
  max-height: 22rem;
  overflow-y: auto;
}

/* The selected conversation is marked in the list, so she can see where she is. */
.afc-msgr__list .afc-convo.is-current .afc-convo__link {
  background: var(--afc-cream);
  box-shadow: inset 3px 0 0 var(--afc-accent);
}

/* The designed blank fills the pane rather than sitting as a strip at the top of it. */
.afc-msgr__pane > .afc-blank--pane {
  flex: 1 1 auto;
  align-content: center;
  border: 0;
}

/* Listing pages get the same two-column body as the hub (mockups 12 and 14). */
@media (min-width: 1000px) {
  .afc-listing {
    display: grid;
    gap: var(--afc-gap);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }
}

.afc-listing__aside {
  display: grid;
  gap: var(--afc-gap);
  align-content: start;
}

/* Three cards abreast do not fit beside a 19rem column. */
@media (min-width: 1000px) {
  .afc-listing__main .afc-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Message actions. Revealed on hover and on focus-within, so a mouse user gets a calm thread and
 * a keyboard user can still reach every control by tabbing into the bubble. */
.afc-message-bubble__tools {
  display: block;
  visibility: hidden;
  margin-top: 0.3rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.afc-message-bubble:hover .afc-message-bubble__tools,
.afc-message-bubble:focus-within .afc-message-bubble__tools {
  visibility: visible;
  opacity: 1;
}

.afc-message-bubble__tools form {
  margin: 0;
}

.afc-report--message .afc-report__panel {
  min-width: 15rem;
  margin-top: 0.5rem;
  padding: 0.8rem;
  border: 1px solid var(--afc-line);
  background: #fff;
  text-align: start;
}

/* The conversation's own options: leaving, blocking, reporting. */
.afc-thread-view__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.afc-thread-view__safety {
  position: relative;
}

.afc-thread-view__safety-panel {
  display: grid;
  gap: 0.9rem;
  width: min(22rem, 80vw);
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--afc-line);
  background: #fff;
}

@media (min-width: 700px) {
  .afc-thread-view__safety-panel {
    position: absolute;
    right: 0;
    z-index: 5;
    box-shadow: 0 8px 28px rgb(36 35 31 / 12%);
  }
}

.afc-thread-view__safety-panel form {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  justify-items: start;
}

.afc-thread-view__safety-panel .afc-field__help {
  margin: 0;
}

/* Blocking is the one action here that cannot be undone in a click, so it is the one that reads
 * as a warning. */
.afc-action--danger {
  color: var(--afc-bad);
}

.afc-action--danger:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * The inbox: head, toolbar, rows, blanks.
 *
 * Rebuilt because the screen did not invite anybody to read a message, let alone write one. What
 * was wrong, in the order the eye met it: a tinted full-width band carrying a legal disclosure was
 * the loudest element on the page; a search input with a full-width "CHERCHER" button under it took
 * two rows before the first conversation; four filter chips wrapped with one alone on a second
 * line; each row was a three-line stack whose height depended on the length of the last message;
 * and both empty states were a single grey sentence.
 * ------------------------------------------------------------------------- */

.afc-inbox__head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(1.15rem, 3vw, 1.6rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--afc-line);
}

.afc-inbox__head-text {
  min-width: 0;
}

.afc-inbox__head h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 400;
  line-height: 1.15;
}

/* The pending-request count rides on the title, in the accent, so it is read as part of it. */
.afc-inbox__head-count {
  padding: 0.2rem 0.6rem;
  background: var(--afc-accent);
  border-radius: 999px;
  color: #fff;
  font-family: var(--afc-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* The disclosure. Still the whole sentence — it is a promise, and shortening it would be a change
   of policy rather than of design — but as a quiet line with a padlock instead of a warning band. */
.afc-inbox__privacy {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  max-width: 68ch;
  margin: 0.5rem 0 0;
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
  line-height: 1.45;
}

.afc-inbox__privacy svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.18rem;
}

/* --- Toolbar -------------------------------------------------------------- */

/*
 * The toolbar spans the whole panel, above both columns.
 *
 * It started inside the 19rem list column, where a search field and four filter chips had 300px
 * between them: the field lost its placeholder to an ellipsis and the fourth chip was clipped at
 * the edge with nothing to say so. Full width it is one comfortable row, and it also reads
 * correctly — searching and filtering apply to the inbox, not to the conversation open beside it.
 */
.afc-inbox__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.afc-inbox__search {
  position: relative;
  flex: 1 1 16rem;
  max-width: 24rem;
  margin: 0;
}

.afc .afc-inbox__search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: 0.6rem 2.9rem 0.6rem 0.85rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
  color: var(--afc-ink);
  font-family: inherit;
  font-size: 1.02rem;
}

/* The submit inside the field, which is where every other search box on this site puts it. */
.afc .afc-inbox__search button {
  position: absolute;
  inset-block: 1px;
  inset-inline-end: 1px;
  display: grid;
  width: 2.7rem;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--afc-ink-soft);
  cursor: pointer;
}

.afc .afc-inbox__search button:hover,
.afc .afc-inbox__search button:focus-visible {
  color: var(--afc-accent);
}

.afc .afc-inbox__search button svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Scrolls sideways rather than wrapping: four chips at this column width put "Supprimées" alone on
   a second line, and a lone chip under three others reads as a rendering fault. */
.afc-inbox__views {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0 0.2rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.afc-inbox__views::-webkit-scrollbar {
  display: none;
}

.afc-inbox__views a {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--afc-line);
  border-radius: 999px;
  color: var(--afc-ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.afc-inbox__views a:hover {
  border-color: var(--afc-ink-faint);
  color: var(--afc-ink);
}

.afc-inbox__views a[aria-current] {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: #fff;
}

.afc-inbox__views a[aria-current] .afc-pill {
  background: #fff;
  color: var(--afc-accent);
}

/* --- Conversation rows ---------------------------------------------------- */

.afc-convos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-convo {
  position: relative;
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-convo:first-child {
  border-top: 1px solid var(--afc-line-soft);
}

.afc-convo__link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.6rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.afc-convo__link:hover,
.afc-convo__link:focus-visible {
  background: var(--afc-cream);
}

.afc-convo__avatar {
  flex: 0 0 auto;
}

.afc-convo__avatar .afc-avatar,
.afc-convo__avatar img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.afc-convo__avatar .afc-avatar--initials {
  display: grid;
  place-items: center;
  background: var(--afc-cream);
  color: var(--afc-accent);
  font-size: 1rem;
  font-weight: 600;
}

/*
 * `minmax(0, 1fr)` on the track, and `min-width: 0` on every box down the chain.
 *
 * This is the trap that made the whole screen non-responsive. `min-width: 0` on *this* element lets
 * it shrink, but its children are grid items with the default `min-width: auto`, so the track was
 * sized to their min-content — and their content is `white-space: nowrap`, which has no min-content
 * smaller than the whole sentence. One conversation row therefore forced the column to 904px inside
 * a 375px page, and `.afc-msgr`'s `overflow: hidden` quietly clipped the result. `text-overflow:
 * ellipsis` can only do its job once the box is genuinely allowed to be narrower than its text.
 */
.afc-convo__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.afc-convo__top,
.afc-convo__who,
.afc-convo__excerpt {
  min-width: 0;
}

.afc-convo__top {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  justify-content: space-between;
}

.afc-convo__who {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afc-convo__time {
  flex: 0 0 auto;
  color: var(--afc-ink-faint);
  font-size: 0.9rem;
}

/*
 * One line, clipped.
 *
 * Wrapped, the row's height depended on how long the last message happened to be, and a list whose
 * rows are all different heights cannot be scanned with the eye — which is the only way anybody
 * reads an inbox.
 */
.afc-convo__excerpt {
  overflow: hidden;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afc-convo__tags {
  margin-top: 0.2rem;
}

/*
 * Unread: a dot and a weight, not a count.
 *
 * "3" tells her how many messages are waiting inside a conversation she is about to open and read
 * all of anyway. A dot tells her the one thing she needs before she opens it, and it does not
 * compete with the timestamp beside it.
 */
.afc-convo.is-unread .afc-convo__who {
  font-weight: 700;
}

.afc-convo.is-unread .afc-convo__excerpt {
  color: var(--afc-ink);
}

.afc-convo__dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--afc-accent);
  border-radius: 50%;
}

/*
 * The row's one action, quiet until wanted.
 *
 * Archiving is a real action and it stays keyboard-reachable at all times — `:focus-within` is the
 * half of this rule that matters — but it does not need to be visible on forty rows at once.
 */
.afc-convo__flag {
  position: absolute;
  inset-block-end: 0.35rem;
  inset-inline-end: 0.6rem;
  margin: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.afc-convo:hover .afc-convo__flag,
.afc-convo:focus-within .afc-convo__flag {
  opacity: 1;
}

/* Touch has no hover, so the control is simply always there. */
@media (hover: none) {
  .afc-convo__flag {
    position: static;
    opacity: 1;
    padding-inline: 0.6rem 0;
  }
}

/* --- Designed blanks ------------------------------------------------------ */

/*
 * An empty state is not an error message: it is the only chance a screen gets to say what it is
 * for. On this one there is something real to say — private messages start from a member's profile,
 * which is not obvious and is the reason nobody finds them.
 */
.afc-blank {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: clamp(1.75rem, 5vw, 3rem) 1.25rem;
  background: var(--afc-cream);
  border: 1px solid var(--afc-line);
  text-align: center;
}

.afc-blank__icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  margin-bottom: 0.35rem;
  background: var(--afc-raised);
  border: 1px solid var(--afc-line);
  border-radius: 50%;
  color: var(--afc-accent);
}

.afc-blank__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.afc-blank__title {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 1.4rem;
  line-height: 1.2;
}

.afc-blank__text {
  max-width: 44ch;
  margin: 0;
  color: var(--afc-ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.afc-blank .afc-btn {
  margin-top: 0.6rem;
}

/* In the reading pane the blank is the whole column, so it carries its own height rather than
   hugging its text — otherwise it sits as a short strip at the top of an empty 700px panel. */
.afc-blank--pane {
  align-content: center;
  min-height: 18rem;
  background: transparent;
  border-style: dashed;
}

.afc-tag--muted {
  background: var(--afc-cream);
  color: var(--afc-ink-soft);
}

/* Three columns from 1300px: list, conversation, context — the shape of mockup 16. Below that the
 * context panel stacks under the conversation, which is where it belongs on a narrower screen. */
@media (min-width: 1300px) {
  .afc-inbox:not(.afc-inbox--single) {
    grid-template-columns: 19rem minmax(0, 1fr);
  }

  .afc-inbox__thread {
    display: grid;
    gap: var(--afc-gap);
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: start;
  }
}

.afc-thread-aside {
  display: grid;
  gap: 1.15rem;
  align-content: start;
}

.afc-thread-aside .afc-panel__title {
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
 * Listing chrome — search, filters, sort, and the counted foot
 *
 * The listings had no controls at all: a 96-question archive offered nothing but pagination,
 * so a member who wanted to help somebody still waiting had to read every page to find her.
 * ------------------------------------------------------------------------- */

.afc-chrome-bar {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.25rem);
  border-bottom: 1px solid var(--afc-line);
}

/* Scrolls sideways on a phone rather than wrapping into three ragged rows. */
.afc-chrome-bar__states {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.afc-chrome-bar__states::-webkit-scrollbar {
  display: none;
}

.afc-filter {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--afc-line);
  border-radius: 999px;
  background: var(--afc-raised);
  color: var(--afc-ink-soft);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.afc-filter:hover {
  border-color: var(--afc-accent-soft);
  color: var(--afc-ink);
}

.afc-filter.is-current {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: #fff;
  font-weight: 500;
}

.afc-filter:focus-visible {
  outline: 2px solid var(--afc-focus);
  outline-offset: 2px;
}

/* Search takes the room that is left; the two selects and the button keep their own width. */
.afc-chrome-bar__form {
  display: grid;
  gap: 0.6rem;
}

@media (min-width: 46em) {
  .afc-chrome-bar__form {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
  }
}

.afc-chrome-bar__form p {
  margin: 0;
  min-width: 0;
}

.afc .afc-chrome-bar__form input[type="search"],
.afc .afc-chrome-bar__form select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--afc-line);
  border-radius: 3px;
  background: var(--afc-raised);
  color: var(--afc-ink);
  font-family: inherit;
  font-size: 1.05rem;
}

.afc .afc-chrome-bar__form input[type="search"]:focus,
.afc .afc-chrome-bar__form select:focus {
  border-color: var(--afc-accent);
  box-shadow: 0 0 0 3px rgb(77 76 56 / 12%);
  outline: none;
}

.afc-chrome-bar__reset {
  margin: 0;
  font-size: 0.98rem;
}

.afc-chrome-bar__reset a {
  color: var(--afc-ink-soft);
}

/* The foot: the count on the left, the button centred under the list. */
.afc-listing-foot {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--afc-line);
}

.afc-listing-foot__count {
  margin: 0;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.afc-listing-foot__more {
  margin: 0;
}

/* While a page is being fetched, the list says so instead of looking finished. */
[data-afc-listing][aria-busy="true"] {
  opacity: 0.6;
}

[data-afc-next][aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

/* ---------------------------------------------------------------------------
 * The portal: sign in, join, forgotten password, new password.
 *
 * Two columns on a desktop — the form on the right where the eye lands, the reason
 * for having an account on the left — and one column on a phone, where the aside is
 * removed entirely rather than stacked. Nobody scrolls past three sentences of
 * argument to reach a password field.
 *
 * The form column is a raised card on the page ground, which is the same device the
 * member area uses for its panels, so the portal reads as the same product rather
 * than as a login page bolted on. The aside is the one place in this stylesheet with
 * an inverted surface: it is the moment the site is allowed to be a brand.
 *
 * Type sizes are written against this store's 14px root, which is why the floor here
 * is 0.95rem (13.3px) and not the 0.85rem that reads fine in a 16px document.
 * ------------------------------------------------------------------------- */

.afc-portal {
  padding-block: clamp(2rem, 5vw, 4rem);
  background: var(--afc-page);
}

.afc-portal__inner {
  display: grid;
  width: 100%;
  max-width: var(--afc-wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.afc-portal__panel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--afc-raised);
  border: 1px solid var(--afc-line);
}

.afc-portal__head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.afc-portal__title {
  margin: 0 0 0.6rem;
  font-family: var(--afc-display);
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.afc-portal__intro {
  margin: 0;
  max-width: 46ch;
  color: var(--afc-ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.afc-portal__intro p {
  margin: 0 0 0.5rem;
}

.afc-portal__intro p:last-child {
  margin-bottom: 0;
}

.afc-portal__form {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

/* The primitives already own the field; the portal only needs them not to inherit a
   grid gap twice. */
.afc-portal__form .afc-field {
  margin: 0;
}

.afc-portal__row {
  margin: 0;
}

/*
 * The checkbox and its sentence.
 *
 * `align-items: start` with a nudged input rather than `center`: the acceptance line
 * wraps to two lines on a phone, and a vertically centred box then floats beside the
 * middle of the sentence instead of beside its first word.
 */
.afc .afc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.afc .afc-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.18rem 0 0;
  accent-color: var(--afc-accent);
}

.afc-portal__submit {
  margin: 0.35rem 0 0;
}

.afc-portal__submit .afc-btn {
  width: 100%;
}

.afc-portal__note {
  margin: 0;
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
  line-height: 1.45;
}

.afc-portal__whom {
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.9rem;
  background: var(--afc-cream);
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
}

.afc-portal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(1.25rem, 3vw, 1.6rem);
  padding-top: clamp(1.1rem, 3vw, 1.4rem);
  border-top: 1px solid var(--afc-line);
  font-size: 1rem;
}

.afc-portal__legal {
  margin: 0.9rem 0 0;
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* --- The editorial half --------------------------------------------------- */

/*
 * The same ground as the masthead, for the same reason: olive is the accent, not the field. Two
 * different dark surfaces on one site read as two brands, so the portal's aside and the community
 * masthead share one recipe.
 */
.afc-portal__aside {
  --afc-portal-deep: oklch(0.235 0.014 62);
  --afc-portal-lift: oklch(0.305 0.021 68);
  --afc-portal-sand: var(--af-color-sand, #eadfd2);
  position: relative;
  display: none;
  overflow: hidden;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--afc-portal-deep);
  color: var(--af-color-ivory, #faf7f2);
}

.afc-portal__aside::after {
  display: none;
}

/* The content sits above the wash. */
.afc-portal__aside > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  /* Centred, not top-aligned. The panel beside it grows with its form — four fields on the join
     page, one on the recovery page — and three sentences pinned to the top of a 790px column
     leaves the olive block looking like it failed to load the rest of itself. */
  .afc-portal__aside {
    align-content: center;
  }
}

.afc-portal__eyebrow {
  margin: 0 0 1rem;
  color: color-mix(in oklch, var(--afc-portal-sand) 82%, transparent);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afc-portal__aside-title {
  margin: 0 0 1.5rem;
  font-family: var(--afc-display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
}

.afc-portal__points {
  display: grid;
  gap: 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-portal__points li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: color-mix(in oklch, var(--af-color-ivory, #faf7f2) 92%, transparent);
  font-size: 1.02rem;
  line-height: 1.55;
}

.afc-portal__points li::before {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: color-mix(in oklch, var(--afc-portal-sand) 80%, transparent);
  content: "";
}

@media (min-width: 900px) {
  .afc-portal__inner {
    /*
     * The aside is last in the source so the form is reached first without styles or by a
     * screen reader; the explicit columns are what put it back on the left visually.
     */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
  }

  .afc-portal__aside {
    display: grid;
    grid-column: 1;
    grid-row: 1;
  }

  .afc-portal__panel {
    grid-column: 2;
    grid-row: 1;
  }
}

/*
 * The "show password" button, added by `community.js`.
 *
 * Inside the field rather than beside it, because a control that changes the field belongs to the
 * field. `padding-inline-end` on the input is what keeps a long password from running underneath
 * it — without it the last characters typed are the ones she cannot read, which is the opposite of
 * what the button is for.
 */
.afc .afc-field--reveal {
  position: relative;
}

.afc .afc-field--reveal input[type="password"],
.afc .afc-field--reveal input[type="text"] {
  padding-inline-end: 5.5rem;
}

.afc .afc-reveal {
  position: absolute;
  inset-block-start: 2.05rem;
  inset-inline-end: 0.4rem;
  min-height: 2.1rem;
  padding: 0 0.6rem;
  color: var(--afc-ink-soft);
  background: transparent;
  border: 1px solid var(--afc-line);
  font-family: inherit;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.afc .afc-reveal:hover,
.afc .afc-reveal:focus-visible {
  color: var(--afc-ink);
  border-color: var(--afc-ink);
}

/* ===========================================================================
 * THE MASTHEAD
 *
 * One band, four surfaces: the community home, a member's own space, a member profile, and any
 * listing that wants one. It replaces three separate arrangements of a heading and a paragraph on
 * the page ground — which is why a member could not tell the hub, her space and a profile were the
 * same site.
 *
 * How it is built, and why each part is the way it is:
 *
 * - **Olive ground with a radial wash.** The same surface as the account dropdown's identity strip
 *   and the portal's aside, so the three premium moments of the site are one material. The wash is
 *   a single `radial-gradient` rather than an image: it survives a CDN outage, it costs nothing, and
 *   it gives the band a light source so it does not read as a flat colour swatch.
 * - **A grid, not a flex row.** The identity and the actions are the two cells; below 780px the
 *   grid collapses to one column and the actions become full width, because a 3.2rem button beside
 *   a 5-line title on a 390px screen wraps into a shape nobody designed.
 * - **The numbers are inside the band.** A strip of figures directly under a title, on the same
 *   surface, reads as a description of the page. The same strip on the ivory below reads as content
 *   and gets skipped — which is what happened to the profile's statistics bar.
 * - **Type is on the storefront's scale, not a smaller one.** This store's root is 14px, so
 *   `--afc-mast-lede` is 1.08rem (15.1px) and no label here is below 0.9rem. The 0.85rem tracked
 *   caps of the old hero were 11.9px and read as decoration.
 * ======================================================================== */

/*
 * THE GROUND
 *
 * Not olive. `--af-color-olive-800` (#4d4c38) is the brand's *accent* — it is the fill of every
 * primary button on the site — and an accent stretched across a 400px full-bleed band stops being
 * an accent and becomes the whole impression. At that size a desaturated yellow-green reads as
 * military khaki, which is the one register a modest-fashion house cannot afford.
 *
 * So the band is a deep warm espresso, which is the same family as the footer's charcoal and
 * therefore already part of this site's vocabulary, and olive goes back to being the accent it is
 * everywhere else. Warm, because a neutral black under an ivory page reads as a hole rather than as
 * a material; the hue is pushed towards brown so the band and the cream below it are lit by the
 * same sun.
 *
 * Three layers, and each one is doing work:
 *
 * 1. a diagonal gradient, so the surface has a direction and is not a swatch;
 * 2. a warm sand glow behind the title and a deeper vignette under the actions, which is the
 *    direction the eye already travels;
 * 3. a 1.5%-opacity hairline weave. Almost invisible, and it is the difference between a printed
 *    surface and a colour fill — the same trick a matte laminate plays on a lookbook cover.
 */
.afc-mast {
  --afc-mast-deep: oklch(0.235 0.014 62);
  --afc-mast-lift: oklch(0.305 0.021 68);
  --afc-mast-ink: var(--af-color-ivory, #faf7f2);
  --afc-mast-ink-soft: color-mix(in oklch, var(--af-color-sand, #eadfd2) 82%, transparent);
  --afc-mast-sand: var(--af-color-sand, #eadfd2);
  --afc-mast-rule: color-mix(in oklch, var(--af-color-sand, #eadfd2) 22%, transparent);
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  background: var(--afc-mast-deep);
  color: var(--afc-mast-ink);
  isolation: isolate;
}

.afc-mast__wash {
  display: none;
}

/*
 * A hairline of the accent along the top edge.
 *
 * One olive line where the band meets the navigation is what ties the two together; without it the
 * dark band looks pasted on top of a light site rather than cut out of it.
 */
.afc-mast::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--afc-accent);
  content: "";
}

.afc-mast__inner {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.15rem);
}

/* --- Breadcrumbs ---------------------------------------------------------- */

.afc-mast__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--afc-mast-ink-soft);
  font-size: 0.95rem;
}

.afc-mast__crumbs a {
  color: var(--afc-mast-ink-soft);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.afc-mast__crumbs a:hover,
.afc-mast__crumbs a:focus-visible {
  color: var(--afc-mast-ink);
  text-decoration: underline;
}

.afc-mast__crumbs-here {
  color: var(--afc-mast-ink);
}

/* --- Identity and actions ------------------------------------------------- */

.afc-mast__body {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}

@media (min-width: 780px) {
  .afc-mast__body {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/*
 * The avatar aligns with the title, not with the middle of the text block.
 *
 * `align-items: center` looked right with a name alone and wrong the moment the block grew a lede
 * and two rows of chips: the face floated beside the third line and read as unrelated to the name
 * above it. Top-aligned, with a hair of offset, puts it on the title's cap line.
 */
.afc-mast__identity {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: flex-start;
  min-width: 0;
}

/* A ring rather than a border: the avatar sits on a coloured ground, and a 1px line in the same
   family as the ground disappears while a translucent ring reads at any brightness. */
.afc-mast__avatar {
  flex: 0 0 auto;
  margin-top: 0.3rem;
}

.afc-mast__avatar .afc-avatar,
.afc-mast__avatar img {
  width: clamp(4rem, 8vw, 5.5rem);
  height: clamp(4rem, 8vw, 5.5rem);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--afc-mast-sand) 34%, transparent),
    0 0 0 6px color-mix(in oklch, var(--afc-mast-sand) 9%, transparent);
  object-fit: cover;
}

.afc-mast__avatar .afc-avatar--initials {
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--afc-mast-sand) 14%, transparent);
  color: var(--afc-mast-ink);
  font-family: var(--afc-ui);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.afc-mast__text {
  min-width: 0;
}

/* Sits above the identity row now, so it needs no bottom margin of its own — the grid gap on
   `.afc-mast__inner` already separates it from the name. */
.afc-mast__eyebrow {
  margin: 0;
  color: var(--afc-mast-ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/*
 * `color` is declared, not inherited, and that is the whole point of this rule.
 *
 * WoodMart ships `h1, h2, h3, h4, h5, h6, legend, .title { color: var(--wd-title-color) }` — near
 * black on this store. A specificity of 0,0,1 loses to `.afc-mast__title` at 0,1,0, so it looks
 * harmless; but this class never declared `color`, and a *direct* declaration on the element always
 * beats a colour inherited from an ancestor however specific that ancestor's selector is. So every
 * masthead title on the site rendered near-black on a near-black band. It was legible enough in a
 * screenshot to be missed and was caught by reading the computed style: `rgb(2, 2, 2)`.
 *
 * Any dark surface added to this stylesheet has to declare the colour of its own headings for the
 * same reason.
 */
.afc-mast :is(h1, h2, h3),
.afc-mast__title {
  color: var(--afc-mast-ink);
}

.afc-mast__title {
  margin: 0;
  max-width: 26ch;
  font-family: var(--afc-display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 400;
  /* 1.14, not 1.08: a two-line Didone headline at this size has descenders that touch the cap line
     of the row below at anything tighter. */
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.afc-mast__lede {
  margin: 0.7rem 0 0;
  max-width: 54ch;
  color: var(--afc-mast-ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

/* --- Chips ---------------------------------------------------------------- */

/*
 * The facts, each in its own container.
 *
 * They used to be one paragraph with spaces between them, which on a profile produced
 * "Membre depuis mars 2024 Sœur engagée 25-34 Lille" — four unrelated facts read as one broken
 * sentence. A chip has an edge, and an edge is what tells the eye where one fact ends.
 */
.afc-mast__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.afc-mast__chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.32rem 0.75rem;
  background: color-mix(in oklch, var(--afc-mast-sand) 9%, transparent);
  border: 1px solid color-mix(in oklch, var(--afc-mast-sand) 20%, transparent);
  border-radius: 999px;
  color: var(--afc-mast-ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.afc-mast__chip svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

/*
 * Her level, and the staff badge: the two chips that are a status rather than a fact.
 *
 * Filled, in sand and in ivory, so they read before the facts beside them without needing to be
 * bigger. This is where the accent earns its place — the level is the one thing on the band that is
 * about achievement.
 */
.afc-mast__chip--accent {
  background: color-mix(in oklch, var(--afc-mast-sand) 88%, transparent);
  border-color: var(--afc-mast-sand);
  color: var(--afc-mast-deep);
  font-weight: 600;
}

.afc-mast__chip--staff {
  background: var(--afc-mast-ink);
  border-color: var(--afc-mast-ink);
  color: var(--afc-accent);
  font-weight: 600;
}

/* --- Actions -------------------------------------------------------------- */

.afc-mast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

@media (min-width: 780px) {
  .afc-mast__actions {
    justify-content: flex-end;
  }
}

/*
 * Buttons on a dark ground, which is why these are not `.afc-btn`.
 *
 * `.afc-btn` is drawn for the ivory page: an ink border and ink text, which on olive is a dark
 * outline nobody can see. The primary here is the page ground reversed — ivory fill, olive text —
 * and the secondary is a translucent surface with a light rule.
 */
.afc .afc-mast__btn {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.35rem;
  border: 1px solid color-mix(in oklch, var(--afc-mast-sand) 38%, transparent);
  background: color-mix(in oklch, var(--afc-mast-sand) 7%, transparent);
  color: var(--afc-mast-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.afc .afc-mast__btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.afc .afc-mast__btn:hover,
.afc .afc-mast__btn:focus-visible {
  background: color-mix(in oklch, var(--afc-mast-sand) 16%, transparent);
  border-color: color-mix(in oklch, var(--afc-mast-sand) 62%, transparent);
  color: var(--afc-mast-ink);
}

/* Sand rather than white: on a warm dark ground a pure-white button is a hole punched in the band,
   and the same shape in sand reads as paper laid on it. */
.afc .afc-mast__btn--primary {
  background: var(--afc-mast-sand);
  border-color: var(--afc-mast-sand);
  color: var(--afc-mast-deep);
  font-weight: 600;
}

.afc .afc-mast__btn--primary:hover,
.afc .afc-mast__btn--primary:focus-visible {
  background: var(--afc-mast-ink);
  border-color: var(--afc-mast-ink);
  color: var(--afc-mast-deep);
}

.afc-mast__note {
  flex-basis: 100%;
  margin: 0;
  color: var(--afc-mast-ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 780px) {
  .afc-mast__note {
    text-align: end;
  }
}

/* --- The numbers ---------------------------------------------------------- */

/*
 * Equal columns rather than a flex row. The labels are of very different lengths — "réaction reçue"
 * against "témoignages laissés" — and flex sized each cell to its own text, which made the strip
 * read as four unrelated blocks instead of as one measure.
 */
.afc-mast__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1px;
  margin: 0;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--afc-mast-rule);
}

.afc-mast__stat {
  padding-inline: 0.15rem;
}

.afc-mast__stat a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.afc-mast__stat a:hover dd,
.afc-mast__stat a:focus-visible dd {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.afc-mast__stat dd {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1;
}

.afc-mast__stat dt {
  margin-top: 0.35rem;
  color: var(--afc-mast-ink-soft);
  font-size: 0.95rem;
  line-height: 1.3;
}

/* The hub has no avatar, so its title can take the full measure and centre itself. */
.afc-mast--hub .afc-mast__title {
  max-width: 30ch;
}

/*
 * On a phone the band has to earn its height.
 *
 * At 390px the masthead was taking the entire first screen: full-bleed padding, a four-line lede,
 * three chips on three rows, two stacked full-width buttons, and four figures that fell into a
 * 3 + 1 grid. All of it correct and all of it before the page. Tightened, and the figures are an
 * explicit 2 × 2 — `auto-fit` at this width produced three in a row and one orphaned below, which
 * looks like the fourth one broke.
 */
@media (max-width: 640px) {
  .afc-mast {
    padding-block: clamp(1.5rem, 5vw, 2.15rem);
  }

  .afc-mast__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 0.75rem;
    padding-top: 1.15rem;
  }

  .afc-mast__lede {
    font-size: 1.02rem;
  }

  .afc .afc-mast__btn {
    min-height: 2.85rem;
  }
}

/* --------------------------------------------------------------------------
 * Editorial directories — public listings from mockups 12 and 14
 * ----------------------------------------------------------------------- */
.afc-member-strip {
  display: grid;
  grid-template-columns: minmax(17rem, 1.2fr) minmax(28rem, 1.6fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--afc-line);
  border-radius: 5px;
  background: var(--afc-raised);
}

.afc-member-strip__identity {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.afc-member-strip__identity .afc-avatar,
.afc-member-strip__identity img {
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.afc-member-strip__identity p {
  margin: 0.15rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 14px;
  line-height: 1.4;
}

.afc-member-strip__hello {
  color: var(--afc-ink) !important;
  font-family: var(--afc-display);
  font-size: 22px !important;
  line-height: 1.15 !important;
}

.afc-member-strip__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.afc-member-strip__stats > div {
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
  border-inline-start: 1px solid var(--afc-line);
}

.afc-member-strip__stats dd {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
}

.afc-member-strip__stats dt {
  margin-top: 0.35rem;
  color: var(--afc-ink-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.afc-directory {
  display: grid;
  grid-template-areas:
    "main"
    "compose"
    "rail";
  gap: clamp(1.25rem, 2vw, 2rem);
  padding-block: 1.5rem var(--afc-section);
}

.afc-directory__main {
  grid-area: main;
  min-width: 0;
}

.afc-directory__compose {
  grid-area: compose;
  min-width: 0;
}

.afc-directory__rail {
  grid-area: rail;
  min-width: 0;
}

.afc-directory__rail > .afc-listing__aside {
  display: grid;
  gap: 1rem;
}

.afc-directory__section {
  margin-top: clamp(2rem, 3.4vw, 3.5rem);
}

.afc-directory__head {
  margin-bottom: 1.25rem;
}

.afc-directory__head--rule {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--afc-ink);
}

.afc-directory__head p {
  margin: 0 0 0.4rem;
  color: var(--afc-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.afc-directory__head h2,
.afc-directory__empty h3 {
  margin: 0;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: clamp(32px, 2.6vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.afc-cards--featured {
  gap: clamp(0.9rem, 1.4vw, 1.4rem);
}

.afc-card--featured {
  background: var(--afc-raised);
}

.afc-card--featured .afc-card__media {
  order: -1;
  aspect-ratio: 4 / 3;
  max-height: none;
  margin: 0;
}

.afc-card--featured .afc-card__body {
  padding: 1.1rem;
}

.afc-card--featured .afc-card__title {
  font-family: var(--afc-display);
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}

.afc-card--featured .afc-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.afc-cards--directory {
  gap: 1rem;
}

.afc-directory__form {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.afc-directory__compose .afc-form-block,
.afc-directory__form .afc-form-block {
  border-color: var(--afc-form-border, var(--afc-line));
  background: var(--afc-form-surface, var(--afc-raised));
}

.afc-directory__compose .afc-form-block {
  padding: 1.35rem;
}

.afc-directory__compose .afc-section__title {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

.afc-directory__compose .afc-form {
  gap: 1rem;
}

.afc-directory__compose .afc-visibility__choice {
  padding: 0.85rem;
}

.afc-directory__empty {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--afc-line);
  text-align: center;
}

.afc-directory__empty h3 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

@media (min-width: 980px) {
  .afc-directory--stories {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas: "main rail";
  }

  .afc-directory--questions {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas:
      "main rail"
      "compose rail";
  }

  .afc-directory__rail > .afc-listing__aside {
    position: sticky;
    top: 1.5rem;
  }
}

@media (min-width: 980px) {
  .afc-directory--questions .afc-directory__compose {
    position: static;
    align-self: start;
  }
}

@media (min-width: 980px) {
  .afc-archive--stories .afc-cards--directory .afc-card {
    display: grid;
    grid-template-columns: minmax(9rem, 34%) minmax(0, 1fr);
  }

  .afc-archive--stories .afc-cards--directory .afc-card__media {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 979px) {
  .afc-member-strip {
    grid-template-columns: 1fr auto;
  }

  .afc-member-strip__stats {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  .afc-member-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .afc-member-strip > .afc-btn {
    display: none;
  }

  .afc-member-strip__stats {
    grid-column: auto;
    grid-row: auto;
  }

  .afc-member-strip__stats > div {
    padding-inline: 0.5rem;
  }

  .afc-member-strip__stats > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .afc-member-strip__stats dt {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .afc-directory {
    padding-top: 1.4rem;
  }

  .afc-cards--featured {
    display: flex;
    width: calc(100% + 1rem);
    margin-inline-end: -1rem;
    padding-inline-end: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .afc-cards--featured > .afc-card {
    min-width: min(82vw, 20rem);
    scroll-snap-align: start;
  }
}

/* --------------------------------------------------------------------------
 * Preferences — dedicated account surface
 * ----------------------------------------------------------------------- */
.afc-preferences {
  padding-bottom: var(--afc-section);
  background: var(--afc-page);
}

.afc-preferences__header {
  border-bottom: 1px solid var(--afc-line);
  background: #f2ece3;
}

.afc-preferences__header-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(10rem, 16vw, 13.5rem);
  padding-block: 2rem;
}

.afc-preferences__identity {
  display: flex;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: center;
}

.afc-preferences__avatar .afc-avatar,
.afc-preferences__avatar img {
  width: clamp(4.25rem, 7vw, 6rem);
  height: clamp(4.25rem, 7vw, 6rem);
  border-radius: 50%;
  object-fit: cover;
}

.afc-preferences__identity p,
.afc-preferences__intro > p {
  margin: 0 0 0.25rem;
  color: var(--afc-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.afc-preferences__identity h1,
.afc-preferences__intro h2 {
  margin: 0;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: clamp(2.35rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.afc-preferences__identity > div > span,
.afc-preferences__intro > span {
  display: block;
  max-width: 58ch;
  margin-top: 0.55rem;
  color: var(--afc-ink-soft);
  line-height: 1.5;
}

.afc-preferences__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.afc-preferences__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.afc-preferences__nav {
  min-width: 0;
}

.afc-preferences__account-link {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-cream);
  font-size: 15px;
}

.afc-preferences__account-link p {
  margin: 0.35rem 0;
  color: var(--afc-ink-soft);
}

.afc-preferences__account-link a {
  color: var(--afc-ink);
  font-weight: 600;
}

.afc-preferences__main {
  min-width: 0;
}

.afc-preferences__intro {
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--afc-line);
}

.afc-preferences__intro h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.afc-preferences__content {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.afc-preferences__form {
  gap: 0;
  min-width: 0;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-preference-section {
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
}

.afc-preference-section + .afc-preference-section {
  border-top: 1px solid var(--afc-line);
}

.afc-preference-section > header {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.afc-preference-section > header > span {
  padding-top: 0.3rem;
  color: var(--afc-accent);
  font-size: 12px;
  font-weight: 700;
}

.afc-preference-section > header h3 {
  margin: 0;
  color: var(--afc-ink);
  font-family: var(--afc-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.12;
}

.afc-preference-section > header p {
  margin: 0.35rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 15px;
}

.afc-preferences__photo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--afc-line-soft);
  background: var(--afc-page);
}

.afc-preferences__photo > span .afc-avatar,
.afc-preferences__photo > span img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
}

.afc-preferences__photo .afc-field {
  margin: 0;
}

.afc-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin-top: 0.35rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
}

.afc-file-picker label {
  margin: 0;
  padding: 0.72rem 0.9rem;
  border-right: 1px solid var(--afc-line);
  background: var(--afc-ink);
  color: var(--afc-raised);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.afc-file-picker > span {
  overflow: hidden;
  padding: 0.72rem 0.9rem;
  color: var(--afc-ink-soft);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afc-file-picker:has(input:focus-visible) {
  outline: 2px solid var(--afc-focus);
  outline-offset: 2px;
}

.afc-preferences__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.afc-preferences__fields .afc-field,
.afc-preferences__switches .afc-field {
  margin: 0;
}

.afc-preferences__fields .afc-field--wide {
  grid-column: 1 / -1;
}

.afc-preferences__interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  border: 0;
}

.afc-preferences__interests label {
  margin: 0;
  cursor: pointer;
}

.afc-preferences__interests input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.afc-preferences__interests span {
  display: block;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
  color: var(--afc-ink);
  font-size: 14px;
  line-height: 1.2;
}

.afc-preferences__interests input:checked + span {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: var(--afc-raised);
}

.afc-preferences__interests input:focus-visible + span {
  outline: 2px solid var(--afc-focus);
  outline-offset: 2px;
}

.afc-preferences__switches {
  display: grid;
  gap: 0;
  border: 1px solid var(--afc-line);
}

.afc-preference-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  margin: 0;
  padding: 1rem;
  cursor: pointer;
}

.afc-preference-toggle + .afc-preference-toggle,
.afc-preferences__switches > .afc-field {
  border-top: 1px solid var(--afc-line);
}

.afc-preference-toggle small {
  display: block;
  margin-top: 0.2rem;
  color: var(--afc-ink-soft);
  font-size: 14px;
  font-weight: 400;
}

.afc-preference-toggle input {
  position: absolute;
  opacity: 0;
}

.afc-preference-toggle i {
  position: relative;
  width: 2.45rem;
  height: 1.35rem;
  border: 1px solid var(--afc-ink-faint);
  background: var(--afc-raised);
}

.afc-preference-toggle i::after {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--afc-ink-faint);
  content: "";
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.afc-preference-toggle input:checked + i {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
}

.afc-preference-toggle input:checked + i::after {
  background: var(--afc-raised);
  transform: translateX(1.05rem);
}

.afc-preference-toggle input:focus-visible + i {
  outline: 2px solid var(--afc-focus);
  outline-offset: 2px;
}

.afc-preferences__switches > .afc-field {
  padding: 1rem;
}

.afc-preferences__save {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.4rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--afc-ink);
  background: var(--afc-cream);
}

.afc-preferences__save p {
  margin: 0;
  color: var(--afc-ink-soft);
  font-size: 14px;
}

.afc-preferences__preview {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.afc-preferences__preview > section {
  padding: 1.25rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-preferences__preview > section > p:first-child {
  margin: 0 0 1rem;
  color: var(--afc-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afc-preferences__preview-person {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.afc-preferences__preview-person .afc-avatar,
.afc-preferences__preview-person img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.afc-preferences__preview-person strong,
.afc-preferences__preview-person span {
  display: block;
}

.afc-preferences__preview-person span {
  color: var(--afc-ink-soft);
  font-size: 14px;
}

.afc-preferences__preview-copy,
.afc-preferences__preview li {
  color: var(--afc-ink-soft);
  font-size: 15px;
}

.afc-preferences__preview ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-inline-start: 1.15rem;
}

@media (min-width: 920px) {
  .afc-preferences__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .afc-preferences__nav {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }

  .afc-preferences__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .afc-preferences__preview {
    position: static;
  }
}

@media (min-width: 1200px) {
  .afc-preferences__layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .afc-preferences__content {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .afc-preferences__preview {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 760px) {
  .afc-preferences__header-inner {
    display: grid;
    min-height: 0;
  }

  .afc-preferences__header-actions {
    justify-content: flex-start;
  }

  .afc-preferences__fields {
    grid-template-columns: 1fr;
  }

  .afc-preferences__fields .afc-field--wide {
    grid-column: auto;
  }

  .afc-preferences__save {
    align-items: stretch;
    flex-direction: column;
  }

  .afc-preferences__save .afc-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .afc-preferences__identity {
    align-items: flex-start;
  }

  .afc-preferences__identity h1 {
    font-size: 2.4rem;
  }

  .afc-preferences__identity > div > span {
    font-size: 0.88rem;
  }

  .afc-preferences__header-actions .afc-btn {
    flex: 1 1 100%;
  }

  .afc-preferences__photo {
    grid-template-columns: 1fr;
  }

  .afc-preference-section {
    padding-inline: 1rem;
  }
}

/* Contribution details — the same immersive contract as the public directories. */
.afc-contribution-hero {
  --afc-detail-surface: oklch(0.29 0.055 52);
  --afc-detail-copy: oklch(0.975 0.012 83);
  --afc-detail-muted: oklch(0.86 0.025 76);
  --afc-detail-accent: oklch(0.82 0.07 68);
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--afc-detail-surface);
  color: var(--afc-detail-copy);
}

.afc-single--story .afc-contribution-hero {
  --afc-detail-surface: oklch(0.255 0.055 22);
  --afc-detail-accent: oklch(0.84 0.055 55);
}

.afc-contribution-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 580px);
  width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
  max-width: none;
  min-height: 0;
  align-items: center;
  padding-block: clamp(1rem, 1.5vw, 1.5rem);
}

.afc-contribution-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  grid-column: 1;
  align-items: stretch;
  justify-content: center;
  padding: 0 clamp(2rem, 4vw, 4.5rem) 0 0;
  background: transparent;
}

.afc-contribution-hero__eyebrow {
  align-self: flex-start;
  margin: 0 0 0.8rem;
  padding: 0;
  background: transparent;
  color: var(--afc-detail-accent);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.afc-contribution-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--afc-detail-copy);
  font-family: var(--afc-display);
  font-size: clamp(2.65rem, 4.35vw, 4.65rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.afc-contribution-hero__lede {
  color: var(--afc-detail-muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.afc-contribution-hero__author strong {
  color: var(--afc-detail-copy);
}

.afc-contribution-hero__author span {
  color: var(--afc-detail-muted);
  font-size: 0.92rem;
}

.afc-contribution-hero figure {
  position: relative;
  z-index: 0;
  grid-column: 2;
  inset: auto;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin: 0 calc(-1 * var(--afc-gutter)) 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 100%);
}

.afc-contribution-hero figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
}

.afc-contribution-hero__actions .afc-action {
  border-color: color-mix(in oklch, var(--afc-detail-copy) 52%, transparent);
  background: transparent;
  color: var(--afc-detail-copy);
}

.afc-contribution-hero__actions .afc-action:is(:hover, :focus-visible) {
  border-color: var(--afc-detail-copy);
  background: var(--afc-detail-copy);
  color: var(--afc-detail-surface);
}

.afc-single__inner {
	padding-top: 18px;
}

.afc-single__head {
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--afc-line);
}

.afc-single__head .afc-single__meta {
  margin-top: 0;
}

@media (max-width: 759px) {
  .afc-contribution-hero {
		width: 100%;
		margin: 0;
  }

  .afc-contribution-hero__inner {
		display: grid;
		grid-template-columns: 1fr;
		width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
		min-height: 0;
		padding: 0;
	}

	.afc-contribution-hero__copy {
		grid-column: 1;
		padding: 2rem 0;
	}

	.afc-contribution-hero h1 {
		max-width: 12ch;
		font-size: clamp(2.65rem, 12vw, 4rem);
	}

  .afc-contribution-hero figure {
		position: relative;
		z-index: auto;
		grid-column: 1;
		width: calc(100% + (2 * var(--afc-gutter)));
		margin: 0 calc(-1 * var(--afc-gutter));
		-webkit-mask-image: none;
		mask-image: none;
  }

  .afc-contribution-hero figure img {
		aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

/* Public member profiles keep the account vocabulary: light, compact and readable. */
.afc-mast--profile:not(.afc-mast--illustrated) {
  --afc-mast-ink: var(--afc-ink);
  --afc-mast-ink-soft: var(--afc-ink-soft);
  --afc-mast-rule: var(--afc-line);
  width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
  margin: 1.5rem auto 0;
  padding-block: clamp(2rem, 3vw, 3rem);
  border: 1px solid var(--afc-line);
  border-radius: 6px;
  background: var(--afc-cream);
  background-image: url("../../../../themes/abayafemme-child/assets/images/catalogue-abaya-hero-v2.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--afc-ink);
}

.afc-mast--profile:not(.afc-mast--illustrated)::before {
  display: none;
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__inner {
  width: calc(100% - (2 * clamp(1.5rem, 3vw, 3rem)));
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__body {
  max-width: 68%;
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__title {
  font-size: clamp(42px, 4vw, 62px);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__lede {
  max-width: 42ch;
  font-size: 16px;
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__stats {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--afc-line);
  background: rgb(255 255 255 / 92%);
}

@media (max-width: 760px) {
  .afc-mast--profile:not(.afc-mast--illustrated) {
    margin-top: 1rem;
    background-image: none;
  }

  .afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__inner,
  .afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__body {
    width: 100%;
    max-width: none;
  }
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__wash {
  display: none;
}

.afc-mast--profile:not(.afc-mast--illustrated) :is(h1, h2, h3),
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__title {
  color: var(--afc-ink);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__eyebrow,
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__lede,
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__crumbs,
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__crumbs a,
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__note,
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__stat dt {
  color: var(--afc-ink-soft);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__crumbs-here {
  color: var(--afc-ink);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__avatar .afc-avatar,
.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__avatar img {
  box-shadow: 0 0 0 1px var(--afc-line);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__chip {
  border-color: var(--afc-line);
  background: var(--afc-raised);
  color: var(--afc-ink);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__chip--accent {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: var(--afc-raised);
}

.afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__stats {
  border-top-color: var(--afc-line);
}

.afc .afc-mast--profile:not(.afc-mast--illustrated) .afc-mast__btn--primary {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: var(--afc-raised);
}

/* --------------------------------------------------------------------------
 * Illustrated community heroes.
 * One full-width composition: copy and image share the same surface, and the
 * image fades into that surface only on wide screens. On phones they become two
 * normal document rows, so there is no absolute-positioned collage to break.
 * ----------------------------------------------------------------------- */
.afc-mast--illustrated {
  --afc-hero-surface: oklch(0.26 0.035 72);
  --afc-hero-copy: oklch(0.975 0.012 83);
  --afc-hero-muted: oklch(0.86 0.025 78);
  --afc-hero-accent: oklch(0.77 0.075 72);
  --afc-mast-deep: var(--afc-hero-surface);
  --afc-mast-ink: var(--afc-hero-copy);
  --afc-mast-ink-soft: var(--afc-hero-muted);
  --afc-mast-sand: var(--afc-hero-accent);
  --afc-mast-rule: color-mix(in oklch, var(--afc-hero-copy) 24%, transparent);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--afc-hero-surface);
  color: var(--afc-hero-copy);
}

.afc-mast--illustrated-hub {
  --afc-hero-surface: oklch(0.255 0.043 104);
  --afc-hero-accent: oklch(0.8 0.07 92);
}

.afc-mast--illustrated-questions {
  --afc-hero-surface: oklch(0.29 0.055 52);
  --afc-hero-accent: oklch(0.82 0.07 68);
}

.afc-mast--illustrated-stories {
  --afc-hero-surface: oklch(0.255 0.055 22);
  --afc-hero-accent: oklch(0.84 0.055 55);
}

.afc-mast--illustrated-circles {
  --afc-hero-surface: oklch(0.25 0.045 135);
  --afc-hero-accent: oklch(0.81 0.065 115);
}

.afc-mast--illustrated-theme {
  --afc-hero-surface: oklch(0.29 0.038 83);
  --afc-hero-accent: oklch(0.84 0.06 78);
}

.afc-mast--illustrated-messages {
  --afc-hero-surface: oklch(0.245 0.045 352);
  --afc-hero-accent: oklch(0.84 0.055 40);
}

.afc-mast--illustrated-activity {
  --afc-hero-surface: oklch(0.29 0.045 47);
  --afc-hero-accent: oklch(0.86 0.065 63);
}

.afc-mast--illustrated-notifications {
  --afc-hero-surface: oklch(0.27 0.045 282);
  --afc-hero-accent: oklch(0.83 0.05 318);
}

.afc-mast--illustrated-saved {
  --afc-hero-surface: oklch(0.28 0.04 82);
  --afc-hero-accent: oklch(0.84 0.065 78);
}

.afc-mast--illustrated-following {
  --afc-hero-surface: oklch(0.255 0.043 104);
  --afc-hero-accent: oklch(0.8 0.07 92);
}

.afc-mast--illustrated-badges {
  --afc-hero-surface: oklch(0.245 0.046 145);
  --afc-hero-accent: oklch(0.82 0.075 103);
}

.afc-mast--illustrated-profile,
.afc-mast--illustrated-preferences {
  --afc-hero-surface: oklch(0.3 0.045 47);
  --afc-hero-accent: oklch(0.86 0.065 63);
}

.afc-mast--illustrated-charter {
  --afc-hero-surface: oklch(0.235 0.042 143);
  --afc-hero-accent: oklch(0.82 0.075 103);
}

.afc-mast--illustrated::before,
.afc-mast--illustrated .afc-mast__wash {
  display: none;
}

.afc-mast--illustrated .afc-mast__inner {
  width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
  max-width: none;
  padding: 0;
}

.afc-mast--illustrated .afc-mast__body {
  display: grid;
  grid-template-areas:
    "identity"
    "actions"
    "visual";
  gap: 1.25rem;
  padding-block: clamp(2rem, 6vw, 3.25rem) 0;
}

.afc-mast--illustrated .afc-mast__identity {
  grid-area: identity;
  align-self: end;
  min-width: 0;
}

.afc-mast--illustrated .afc-mast__actions {
  grid-area: actions;
  justify-content: flex-start;
  align-self: start;
}

.afc-mast--illustrated .afc-mast__visual {
  grid-area: visual;
  align-self: stretch;
  width: calc(100% + (2 * var(--afc-gutter)));
  aspect-ratio: 16 / 9;
  margin: 0 calc(-1 * var(--afc-gutter));
}

.afc-mast--illustrated .afc-mast__image {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--afc-hero-surface);
}

.afc-mast--illustrated .afc-mast__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.afc-mast--illustrated .afc-mast__visual-notes {
  display: none;
}

.afc-mast--illustrated.afc-mast--profile .afc-mast__stats {
  position: static;
  z-index: auto;
  margin: 0;
  padding: 1.2rem 0;
  border: 0;
  border-top: 1px solid var(--afc-mast-rule);
  background: transparent;
  color: var(--afc-hero-copy);
}

.afc-mast--illustrated.afc-mast--profile .afc-mast__stat dt {
  color: var(--afc-hero-muted);
}

.afc-mast--illustrated :is(h1, h2, h3),
.afc-mast--illustrated .afc-mast__title {
  max-width: 13ch;
  color: var(--afc-hero-copy);
  font-size: clamp(2.65rem, 4.35vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.afc-mast--illustrated .afc-mast__lede {
  max-width: 58ch;
  margin-top: 1.1rem;
  color: var(--afc-hero-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.55;
}

.afc-mast--illustrated .afc-mast__eyebrow {
  margin-bottom: 0.8rem;
  color: var(--afc-hero-accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.afc .afc-mast--illustrated .afc-mast__btn {
  min-height: 3rem;
  padding-inline: 1.35rem;
  border-color: color-mix(in oklch, var(--afc-hero-copy) 58%, transparent);
  background: transparent;
  color: var(--afc-hero-copy);
  font-size: 1rem;
}

.afc .afc-mast--illustrated .afc-mast__btn:hover,
.afc .afc-mast--illustrated .afc-mast__btn:focus-visible {
  border-color: var(--afc-hero-copy);
  background: var(--afc-hero-copy);
  color: var(--afc-hero-surface);
}

.afc .afc-mast--illustrated .afc-mast__btn--primary {
  border-color: var(--afc-hero-copy);
  background: var(--afc-hero-copy);
  color: var(--afc-hero-surface);
}

.afc .afc-mast--illustrated .afc-mast__btn--primary:hover,
.afc .afc-mast--illustrated .afc-mast__btn--primary:focus-visible {
  border-color: var(--afc-hero-accent);
  background: var(--afc-hero-accent);
  color: var(--afc-hero-surface);
}

@media (min-width: 900px) {
  .afc-mast--illustrated .afc-mast__body {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 560px);
    grid-template-rows: auto auto;
    grid-template-areas:
      "identity visual"
      "actions visual";
    column-gap: clamp(2rem, 4vw, 5rem);
    row-gap: 1.15rem;
    align-content: center;
    min-height: 0;
    padding-block: clamp(1rem, 1.5vw, 1.5rem);
  }

  .afc-mast--illustrated .afc-mast__visual {
    align-self: center;
    width: calc(100% + var(--afc-gutter));
    min-width: 0;
    margin: 0 calc(-1 * var(--afc-gutter)) 0 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 100%);
  }

  .afc-mast--illustrated .afc-mast__identity {
    align-self: end;
  }

  .afc-mast--illustrated .afc-mast__actions {
    align-self: start;
  }

  .afc-mast--illustrated .afc-mast__image {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .afc-mast--illustrated .afc-mast__actions {
    display: grid;
    width: 100%;
  }

  .afc-mast--illustrated .afc-mast__title {
    max-width: 11ch;
    font-size: clamp(2.45rem, 11.5vw, 3.65rem);
  }
}

/* A member-created circle starts as an editorial proposal, not as another card. */
.afc-circle-proposal {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-block: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(2rem, 4vw, 4rem);
  border-block: 1px solid var(--afc-line);
}

.afc-circle-proposal__intro h2,
.afc-circle-proposals h2 {
  max-width: 15ch;
  margin: 0.35rem 0 0.85rem;
  font-family: var(--afc-display);
  font-size: clamp(2.15rem, 3.25vw, 3.35rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.afc-circle-proposal__intro > p:last-of-type {
  max-width: 46ch;
  color: var(--afc-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.afc-circle-proposal__intro ol {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--afc-line);
}

.afc-circle-proposal__intro li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--afc-line);
}

.afc-circle-proposal__intro li span {
  color: var(--afc-muted);
}

.afc-circle-proposal__form {
  padding: clamp(1.4rem, 2.5vw, 2.5rem);
  background: oklch(0.965 0.014 78);
}

.afc-circle-proposal__form .afc-field {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.afc-circle-proposal__form label,
.afc-circle-proposal__form legend,
.afc-circle__invite label {
  font-weight: 700;
}

.afc-circle-proposal__form :is(input[type="text"], select, textarea),
.afc-circle__invite input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--afc-line-strong);
  border-radius: 0;
  background: var(--afc-paper);
  color: var(--afc-ink);
  font: inherit;
}

.afc-circle-proposal__form textarea {
  min-height: 9rem;
  resize: vertical;
}

.afc-circle-proposal__form small,
.afc-circle__invite p {
  color: var(--afc-muted);
  line-height: 1.5;
}

.afc-circle-proposal__form small.is-error {
  color: var(--afc-bad);
  font-weight: 700;
}

/*
 * THE PROPOSAL FORM'S SECOND ROW
 *
 * It put a single select in a 0.82fr column beside a fieldset in a 1.18fr one, which meant "Thème
 * principal" sat alone at the top of a column with 200px of empty cream under it while the two
 * access modes stacked to its right. Equal columns and an aligned baseline make it read as two
 * questions asked side by side, which is what it is; below 760px it stacks, because two questions
 * side by side on a phone is one question too many per line.
 */
.afc-circle-proposal__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-block: 1.25rem;
}

@media (max-width: 760px) {
  .afc-circle-proposal__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A select with no visible arrow is a text field that refuses to be typed in. The chevron is drawn
 * here rather than left to the browser, so it matches the one the account's own selects use. */
.afc-circle-proposal__form select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23625f58'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%2010%206%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.05rem;
  cursor: pointer;
}

.afc-circle-proposal__row fieldset {
  padding: 0;
  border: 0;
}

.afc-circle-proposal__form .afc-choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-paper);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 160ms ease, background 160ms ease;
}

.afc-circle-proposal__form .afc-choice:hover {
  border-color: var(--afc-line-strong);
}

/* The chosen mode carries a surface and a heavier rule. A radio dot is 12px of signal for a choice
 * that decides whether every future member is vetted or walks straight in. */
.afc-circle-proposal__form .afc-choice:has(input:checked) {
  border-color: var(--afc-accent);
  background: color-mix(in oklch, var(--afc-accent) 6%, var(--afc-paper));
}

.afc-circle-proposal__form .afc-choice input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--afc-accent);
}

.afc-circle-proposal__form .afc-choice span {
  display: grid;
  flex: 1 1 auto;
  gap: 0.15rem;
  color: var(--afc-muted);
}

.afc-circle-proposal__form .afc-choice strong {
  color: var(--afc-ink);
}

.afc-circle-proposal__submit {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.afc-circle-proposal__submit [data-afc-status],
.afc-circle__invite [data-afc-status] {
  margin: 0;
  font-weight: 700;
}

.afc-circle-proposals {
  margin-block: 2.5rem 4rem;
}

.afc-circle-proposals ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--afc-line-strong);
}

.afc-circle-proposals li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--afc-line);
}

.afc-circle-proposals li span,
.afc-circle-proposals li time {
  color: var(--afc-muted);
}

.afc-circle__invite form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.afc-circle__invite form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.afc-circle__invite form .afc-btn {
  min-height: 3.2rem;
}

.afc-circle__invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .afc-circle-proposal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .afc-circle-proposal__row,
  .afc-circle-proposals li {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .afc-circle-proposal__form {
    padding-inline: var(--afc-gutter);
  }

  .afc-circle-proposal__submit,
  .afc-circle__invite-actions {
    display: grid;
  }

  .afc-circle-proposal__submit .afc-btn,
  .afc-circle__invite-actions .afc-btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
 * Circle directory
 * ----------------------------------------------------------------------- */
.afc-circle-directory {
  padding-block: clamp(2rem, 3.5vw, 3.5rem);
}

.afc-circle-directory__intro {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--afc-ink);
}

.afc-circle-directory__intro > div:first-child {
  max-width: 66rem;
}

.afc-kicker,
.afc-circle-directory__guide-title p {
  margin: 0 0 0.65rem;
  color: var(--afc-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.afc-circle-directory__intro h2,
.afc-circle-directory__group-head h2,
.afc-circle-directory__login h2,
.afc-circle-directory__empty h2 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(2.15rem, 3.6vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.afc-circle-directory__intro > div:first-child > p:last-child,
.afc-circle-directory__group-head p,
.afc-circle-directory__login p,
.afc-circle-directory__empty p {
  max-width: 64ch;
  margin: 1rem 0 0;
  color: var(--afc-ink-soft);
  font-size: 1.05rem;
}

.afc-circle-directory__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--afc-line);
}

.afc-circle-directory__stats div {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  justify-content: center;
  padding: 1rem clamp(0.8rem, 1.5vw, 1.5rem);
}

.afc-circle-directory__stats div + div {
  border-left: 1px solid var(--afc-line);
}

.afc-circle-directory__stats dt {
  color: var(--afc-ink-soft);
  font-size: 0.8rem;
}

.afc-circle-directory__stats dd {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 2rem;
  line-height: 1;
}

.afc-circle-directory__guide {
  display: grid;
  gap: 2rem;
  margin-block: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-block: 1px solid var(--afc-line);
}

.afc-circle-directory__guide-title {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.afc-circle-directory__guide-title > .afc-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: var(--afc-accent);
}

.afc-circle-directory__guide-title h2 {
  margin: 0;
  font-family: var(--afc-display);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  font-weight: 400;
}

.afc-circle-directory__guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-circle-directory__guide li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.85rem;
  align-content: start;
  padding: 0 1.25rem;
}

.afc-circle-directory__guide li + li {
  border-left: 1px solid var(--afc-line);
}

.afc-circle-directory__guide li > span {
  grid-row: 1 / span 2;
  color: var(--afc-accent);
  font-family: var(--afc-display);
  font-size: 1.25rem;
}

.afc-circle-directory__guide li strong {
  font-size: 0.95rem;
}

.afc-circle-directory__guide li small {
  color: var(--afc-ink-soft);
  font-size: 0.86rem;
}

.afc-circle-directory__group {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.afc-circle-directory__group-head {
  display: flex;
  gap: 1rem 3rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.afc-circle-directory__group-head p {
  max-width: 38rem;
  margin: 0;
  text-align: right;
}

.afc-archive--circles .afc-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.afc-archive--circles .afc-circle-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--afc-line);
  background: var(--afc-raised);
}

.afc-circle-card__cover {
  display: flex;
  min-height: 6rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.1rem;
  background: oklch(0.31 0.038 136);
  color: oklch(0.96 0.012 86);
}

.afc-circle-card--tone-2 .afc-circle-card__cover {
  background: oklch(0.31 0.038 82);
}

.afc-circle-card--tone-3 .afc-circle-card__cover {
  background: oklch(0.3 0.045 25);
}

.afc-circle-card__cover > span {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  place-items: center;
}

.afc-circle-card__cover .afc-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.afc-circle-card__cover small {
  max-width: 60%;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.afc-archive--circles .afc-circle-card__body {
  display: flex;
  min-height: 29rem;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.afc-archive--circles .afc-circle-card__title {
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.05;
}

.afc-archive--circles .afc-circle-card__title a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.afc-archive--circles .afc-circle-card__excerpt {
  min-height: 5.4em;
  font-size: 0.98rem;
}

.afc-circle-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.25rem 0 0;
  padding-block: 1rem;
  border-block: 1px solid var(--afc-line);
}

.afc-circle-card__stats div {
  min-width: 0;
}

.afc-circle-card__stats div + div {
  padding-left: 0.8rem;
  border-left: 1px solid var(--afc-line);
}

.afc-circle-card__stats dt {
  overflow: hidden;
  color: var(--afc-ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.afc-circle-card__stats dd {
  margin: 0.2rem 0 0;
  color: var(--afc-ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.afc-archive--circles .afc-circle-card__foot {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  border-top: 0;
}

.afc-circle-card__foot .afc-icon {
  width: 1rem;
  height: 1rem;
  vertical-align: -0.18em;
}

.afc-circle-card__action {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--afc-ink);
  color: var(--afc-ink);
  font-weight: 700;
  text-decoration: none;
}

.afc-circle-card__action .afc-icon {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.afc-circle-card__action:is(:hover, :focus-visible) .afc-icon {
  transform: translateX(0.25rem);
}

.afc-circle-directory__login {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-block: 1px solid var(--afc-ink);
}

.afc-circle-directory__login h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.afc-circle-directory__empty {
  max-width: 52rem;
  margin: 4rem auto 0;
  text-align: center;
}

.afc-circle-directory__empty > .afc-icon {
  width: 3rem;
  height: 3rem;
  color: var(--afc-accent);
}

@media (min-width: 900px) {
  .afc-circle-directory__intro {
    grid-template-columns: minmax(0, 1.3fr) minmax(420px, 0.7fr);
  }

  .afc-circle-directory__guide {
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
  }
}

@media (max-width: 1100px) {
  .afc-archive--circles .afc-circles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .afc-circle-directory__stats {
    grid-template-columns: 1fr;
  }

  .afc-circle-directory__stats div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .afc-circle-directory__stats div + div {
    border-top: 1px solid var(--afc-line);
    border-left: 0;
  }

  .afc-circle-directory__guide ol,
  .afc-archive--circles .afc-circles {
    grid-template-columns: 1fr;
  }

  .afc-circle-directory__guide li {
    padding: 0.8rem 0;
  }

  .afc-circle-directory__guide li + li {
    border-top: 1px solid var(--afc-line);
    border-left: 0;
  }

  .afc-circle-directory__group-head,
  .afc-circle-directory__login {
    align-items: flex-start;
    flex-direction: column;
  }

  .afc-circle-directory__group-head p {
    text-align: left;
  }

  .afc-archive--circles .afc-circle-card__body {
    min-height: 0;
  }

  .afc-archive--circles .afc-circle-card__excerpt {
    min-height: 0;
  }
}

/* ===========================================================================
 * THE MEMBER-AREA SHELL
 *
 * Content first in the source, navigation on the left on screen — the same arrangement the portal
 * uses, and for the same reason: the panel is what she came for.
 * ======================================================================== */

.afc-shell {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem) var(--afc-section);
}

/*
 * The wide shell, for the messages section only.
 *
 * The navigation becomes the horizontal rail it already is on a phone, and the panel takes the whole
 * container. It is the same navigation, in the same order, with the same counts — laid sideways.
 */
/* The rail is above the content at every width: on a phone it was rendering under the messenger,
   because below 960px the grid falls back to source order and the panel comes first. */
.afc-shell--wide .afc-shell__side {
  order: -1;
}

.afc-shell--wide .afc-areanav {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.afc-shell--wide .afc-areanav::-webkit-scrollbar {
  display: none;
}

.afc-shell--wide .afc-areanav__heading {
  display: none;
}

.afc-shell--wide .afc-areanav__group ul {
  display: flex;
  gap: 0.4rem;
}

.afc-shell--wide .afc-areanav__link {
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .afc-shell:not(.afc-shell--wide) {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }

  /* One column, navigation first: the rail sits above the messenger. */
  .afc-shell--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .afc-shell--wide .afc-shell__side {
    grid-column: 1;
    grid-row: 1;
    position: static;
  }

  .afc-shell--wide .afc-shell__main {
    grid-column: 1;
    grid-row: 2;
  }

  /* The cross-link to the shop is a column card; on a rail it would be a wall. */
  .afc-shell--wide .afc-shell__crosslink {
    display: none;
  }

  .afc-shell:not(.afc-shell--wide) .afc-shell__side {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    /* Clears the community bar, which is itself sticky at the top of the viewport. */
    top: calc(var(--afc-sticky-top, 0px) + 4.5rem);
  }

  .afc-shell:not(.afc-shell--wide) .afc-shell__main {
    grid-column: 2;
    grid-row: 1;
  }
}

/*
 * `min-width: 0` on the grid items, and it is not cosmetic.
 *
 * A grid or flex item's default `min-width: auto` means its track cannot shrink below the item's
 * min-content width — so one row deep inside, with two nowrap buttons and a name, blew the whole
 * column out to 904px inside a 375px page. The overflow was invisible because `.afc-msgr` clips it:
 * the list was simply cut off on a phone.
 *
 * `__side` is in the list for a reason that took a while to find. Below 960px both panes share one
 * implicit column, and on the messages section the navigation inside `__side` becomes a horizontal
 * rail of seven chips — about 900px of `max-content` columns. Its own `overflow-x: auto` makes it a
 * scroller, but `__side` was still a grid item with `min-width: auto`, so *it* refused to shrink and
 * took the shared column to 904px with it. Hiding every child of `__main` changed nothing, which is
 * what pointed at the sibling.
 */
.afc-shell__main,
.afc-shell__side,
.afc-shell__panel {
  min-width: 0;
}

/* --- The section navigation ---------------------------------------------- */

.afc-areanav {
  display: grid;
  gap: 1.25rem;
}

/* On a phone the two groups become one horizontal rail: a 320px-wide column of seven rows above the
   content means scrolling past the whole menu to reach the thing it pointed at. */
@media (max-width: 959px) {
  .afc-areanav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .afc-areanav::-webkit-scrollbar {
    display: none;
  }

  .afc-areanav__heading {
    display: none;
  }

  .afc-areanav__group ul {
    display: flex;
    gap: 0.4rem;
  }

  .afc-areanav__link {
    border-radius: 999px;
    white-space: nowrap;
  }
}

.afc-areanav__heading {
  margin: 0 0 0.35rem;
  padding-inline: 0.75rem;
  color: var(--afc-ink-faint);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.afc-areanav__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.afc-areanav__link {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  color: var(--afc-ink-soft);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.afc-areanav__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--afc-ink-faint);
}

.afc-areanav__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.afc-areanav__label {
  min-width: 0;
}

.afc-areanav__link:hover,
.afc-areanav__link:focus-visible {
  background: var(--afc-cream);
  color: var(--afc-ink);
}

.afc-areanav__link:hover .afc-areanav__icon {
  color: var(--afc-accent);
}

/*
 * The current section: a filled surface, an accent rule down its leading edge, and the icon in the
 * accent. Three signals rather than one shade, because this is the only thing on the page telling
 * her which of seven she is reading.
 */
.afc-areanav__link.is-current {
  background: var(--afc-raised);
  border-color: var(--afc-line);
  box-shadow: inset 3px 0 0 var(--afc-accent);
  color: var(--afc-ink);
  font-weight: 600;
}

.afc-areanav__link.is-current .afc-areanav__icon {
  color: var(--afc-accent);
}

.afc-areanav__count {
  display: grid;
  min-width: 1.6rem;
  height: 1.6rem;
  margin-inline-start: auto;
  place-items: center;
  padding-inline: 0.35rem;
  background: var(--afc-accent);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

/* --- The cross-link to the shop ----------------------------------------- */

.afc-shell__crosslink {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  background: var(--afc-cream);
  border: 1px solid var(--afc-line);
}

.afc-shell__crosslink-title {
  margin: 0 0 0.35rem;
  font-family: var(--afc-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.afc-shell__crosslink p {
  margin: 0 0 0.6rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.afc-shell__crosslink a {
  font-size: 0.98rem;
  font-weight: 600;
}

@media (max-width: 959px) {
  .afc-shell__crosslink {
    margin-top: 0;
  }
}

/* ===========================================================================
 * THE PROFILE BAR AND ITS SIDE PANELS
 * ======================================================================== */

.afc-profile__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--afc-line);
}

.afc-profile__interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.afc-profile__interests-label {
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afc-profile__interests .afc-tag {
  text-decoration: none;
}

.afc-profile__do {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.afc-profile__write {
  margin: 0;
}

.afc-profile__write summary {
  list-style: none;
}

.afc-profile__write summary::-webkit-details-marker {
  display: none;
}

.afc-profile__write-panel {
  width: min(24rem, 78vw);
  margin-top: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--afc-line);
  background: var(--afc-page);
}

.afc-pair {
  display: flex;
  gap: clamp(1.25rem, 5vw, 2.5rem);
  margin: 0;
}

.afc-pair dd {
  margin: 0;
  font-family: var(--afc-display);
  font-size: 1.7rem;
  line-height: 1;
}

.afc-pair dt {
  margin-top: 0.3rem;
  color: var(--afc-ink-faint);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .afc-areanav__link,
  .afc-convo__link,
  .afc-convo__flag,
  .afc .afc-mast__btn {
    transition: none;
  }
}

/* --- Paging inside the inbox and inside a conversation -------------------- */

/*
 * Both of these exist because two windows were silently truncating.
 *
 * The inbox read the first thirty conversations with no control for the rest — so a member with
 * thirty-six had six she could not reach. The conversation read the *oldest* hundred messages, so
 * past a hundred she saw the beginning of the exchange and never the end: she could send a message
 * and not see it appear. Both are now windows with a way out of them, and both controls print the
 * total, because "20 sur 32" is what tells her whether the next click is worth making.
 */
.afc-convos__more,
.afc-messages__older {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin: 1rem 0 0;
}

.afc-messages__older {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--afc-line-soft);
}

.afc-convos__count,
.afc-messages__older-count {
  color: var(--afc-ink-faint);
  font-size: 0.95rem;
}

/* Walking back through the history is a different place from the live end of the conversation, so
   the way out of it is stated rather than left to the back button. */
.afc-messages__latest {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

/* --- Contact requests, on the conversation row's shape ------------------- */

/*
 * They are the same object as a conversation, one moment earlier, so they get the same row. The
 * markup they used to borrow — `.afc-thread-row` — put the avatar in one column, the name and
 * excerpt 400px to its right, and the two buttons under the avatar: a decision whose controls were
 * nowhere near the thing being decided.
 */
.afc-requests {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem 0.5rem;
  background: var(--afc-cream);
  border: 1px solid var(--afc-line);
}

.afc-requests__title {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0;
  font-family: var(--afc-ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.afc-requests__title::-webkit-details-marker {
  display: none;
}

.afc-requests__title svg {
  width: 1.05rem;
  height: 1.05rem;
  letter-spacing: normal;
}

/* The chevron, drawn rather than iconised so it can rotate at the same weight as the row icons. */
.afc-requests__title::after {
  width: 0.42rem;
  height: 0.42rem;
  margin-inline-start: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-0.08rem);
}

.afc-requests[open] > .afc-requests__title::after {
  transform: rotate(-135deg) translateY(-0.08rem);
}

.afc-requests__note {
  max-width: 64ch;
  margin: 0.4rem 0 0.85rem;
  color: var(--afc-ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

/* Not links: a request row is decided by its two buttons, so nothing here should look clickable
   except them. */
.afc-convos--requests .afc-convo__link {
  cursor: default;
}

.afc-convos--requests .afc-convo__link:hover {
  background: transparent;
}

.afc-convos--requests .afc-convo {
  border-color: var(--afc-line);
}

.afc-convo__decide {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.afc-convo__decide form {
  margin: 0;
}

@media (max-width: 599px) {
  /* The buttons drop under the name rather than squeezing the excerpt to nothing. */
  .afc-convos--requests .afc-convo__link {
    flex-wrap: wrap;
  }

  .afc-convo__decide {
    flex-basis: 100%;
    padding-block: 0.35rem 0.15rem;
  }
}

/* --- Her photograph, on the preferences screen ---------------------------- */

.afc-photo__status {
  display: block;
  min-height: 1.35em;
  margin-top: 0.45rem;
  color: var(--afc-ink-soft);
  font-size: 0.88rem;
}

/*
 * The slim masthead, for the messages section.
 *
 * The full band is 430px of identity — name, biography, three chips, four figures, two buttons — and
 * on a screen whose whole job is a conversation it pushed the messenger below the fold on every
 * laptop. Nobody opens her inbox to read her own statistics. Same component, same surface, a third
 * of the height.
 */
.afc-mast--slim {
  padding-block: clamp(1.15rem, 2.5vw, 1.6rem);
}

.afc-mast--slim .afc-mast__title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.afc-mast--slim .afc-mast__avatar .afc-avatar,
.afc-mast--slim .afc-mast__avatar img {
  width: 3.25rem;
  height: 3.25rem;
}

.afc-mast--slim .afc-mast__avatar {
  margin-top: 0.15rem;
}

/* The private workspace needs orientation, not a second public-facing campaign hero. */
.afc-mast--workspace:not(.afc-mast--illustrated) {
  padding-block: clamp(1.35rem, 3.5vw, 2.2rem);
  background: var(--afc-cream);
  color: var(--afc-ink);
  border-bottom: 1px solid var(--afc-line);
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__wash {
  display: none;
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__body {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__avatar .afc-avatar,
.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__avatar img {
  width: clamp(3.25rem, 6vw, 4.25rem);
  height: clamp(3.25rem, 6vw, 4.25rem);
  box-shadow: none;
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__eyebrow {
  margin-bottom: 0.35rem;
  color: var(--afc-accent);
}

.afc-mast--workspace:not(.afc-mast--illustrated) :is(h1, h2, h3),
.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__title {
  color: var(--afc-ink);
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__lede {
  max-width: 65ch;
  color: var(--afc-ink-soft);
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn {
  border-color: var(--afc-ink);
  background: transparent;
  color: var(--afc-ink);
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn:hover,
.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn:focus-visible {
  border-color: var(--afc-ink);
  background: var(--afc-ink);
  color: var(--afc-page);
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn--primary {
  border-color: var(--afc-accent);
  background: var(--afc-accent);
  color: #fff;
}

.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn--primary:hover,
.afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__btn--primary:focus-visible {
  border-color: var(--afc-accent-soft);
  background: var(--afc-accent-soft);
  color: #fff;
}

@media (max-width: 47.99em) {
  .afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .afc-mast--workspace:not(.afc-mast--illustrated) .afc-mast__actions {
    display: none;
  }
}

/* The inbox follows mockup 16: a short editorial door before the working panes. */
.afc-mast--messages-hero {
  width: min(calc(100% - (2 * var(--afc-gutter))), var(--afc-wrap));
  margin: 1.5rem auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--afc-line);
  border-radius: 6px;
}

.afc-mast--messages-hero .afc-mast__inner {
  width: 100%;
  max-width: none;
  padding: 0;
}

.afc-mast--messages-hero .afc-mast__body {
  position: relative;
  display: flex;
  min-height: 280px;
  align-items: center;
  padding: 2.5rem 52% 2.5rem clamp(2rem, 4vw, 4rem);
}

.afc-mast--messages-hero .afc-mast__identity {
  position: relative;
  z-index: 2;
  display: block;
}

.afc-mast--messages-hero .afc-mast__eyebrow {
  display: none;
}

.afc-mast--messages-hero .afc-mast__title {
  max-width: 12ch;
  font-size: clamp(42px, 4vw, 58px);
}

.afc-mast--messages-hero .afc-mast__lede {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.55;
}

.afc-mast--messages-hero .afc-mast__visual {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.afc-mast--messages-hero .afc-mast__image,
.afc-mast--messages-hero .afc-mast__image img {
  width: 100%;
  height: 100%;
}

.afc-mast--messages-hero .afc-mast__image img {
  object-fit: cover;
  object-position: center 8%;
}

@media (max-width: 759px) {
  .afc-mast--messages-hero {
    margin-top: 1rem;
  }

  .afc-mast--messages-hero .afc-mast__body {
    display: grid;
    min-height: 0;
    padding: 1.5rem;
  }

  .afc-mast--messages-hero .afc-mast__visual {
    position: relative;
    margin: 1.25rem -1.5rem -1.5rem;
  }

  .afc-mast--messages-hero .afc-mast__image img {
    aspect-ratio: 2 / 1;
  }
}

/* ---------------------------------------------------------------------------
 * The invitation combobox
 *
 * The listbox is positioned rather than laid out, so opening it never moves the "Envoyer" button
 * or the status line under it — a suggestion list that pushes the control you were reaching for is
 * the reason autocompletes get sworn at.
 * ------------------------------------------------------------------------- */

.afc-combo__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.afc-combo__field input {
  width: 100%;
}

.afc-combo__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  width: min(24rem, 100%);
  max-height: 15rem;
  margin: 0;
  padding: 0.3rem;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--afc-line);
  border-radius: 0.5rem;
  background: var(--afc-raised);
  box-shadow: 0 12px 32px rgb(45 37 30 / 12%);
}

.afc-combo__list li {
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.35rem;
  color: var(--afc-ink);
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.3;
}

/* Hover and keyboard highlight are the same treatment on purpose: in a combobox they mean the same
 * thing — "this is the one Enter will take" — and giving them two looks makes the list read as two
 * separate selections when the pointer and the caret are in different places. */
.afc-combo__list li:hover,
.afc-combo__list li.is-active {
  background: var(--afc-cream);
  color: var(--afc-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .afc-combo__list {
    animation: afc-combo-in 140ms cubic-bezier(0.2, 0, 0.2, 1);
  }
}

@keyframes afc-combo-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
