/* == tokens == */
:root {
  --de-paper: var(--palette-secondary, #f2f0ec);
  --color-line: #e9e7e3;
  --color-muted: #817f7c;
  --section-py: clamp(var(--space-6), 5vw, var(--space-12));
}

/* A card on a secondary-tone section would melt into its background. */
[data-tone="secondary"] {
  --de-paper: var(--palette-bg, #fff);
}

/* == section headings: serif title + hairline, as in the mock == */
.section-heading,
.carousel-root
  > :is(h1, h2, h3, h4):first-child:not(
    .sale-month-heading,
    .news-month-heading
  ),
[data-section-type="title"] > section > :is(h1, h2, h3) {
  font-weight: 400;
  line-height: 1;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
  margin: 0 0 var(--space-8);
}

/* The title section pads with inline styles but never caps its width. */
[data-section-type="title"] > section > :is(h1, h2, h3) {
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  margin-bottom: 0;
}

/* == buttons (colors live in the theme Buttons panel) == */
.button-primary,
.button-secondary {
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* == top bar == */
.top-bar {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.top-bar-content a {
  color: inherit;
}
.top-bar-content a:hover {
  color: var(--color-primary);
}

/* == header == */
.site-header-nav a:hover {
  color: var(--color-primary);
  opacity: 1;
}
/* Set "nav-cta" in the menu item's CSS classes field. The child selector is
   needed to beat header.css, which zeroes link padding on desktop. */
.site-header-nav > ul > li > .site-header-nav-row > a.nav-cta {
  padding: 0.625rem 1rem;
  background: var(--palette-primary, #dc2925);
  color: var(--palette-bg, #fff);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.site-header-nav > ul > li > .site-header-nav-row > a.nav-cta:hover,
.site-header-nav > ul > li > .site-header-nav-row > a.nav-cta:focus-visible {
  background: color-mix(in srgb, var(--palette-primary, #dc2925) 85%, #000);
  color: var(--palette-bg, #fff);
}
@media (min-width: 1280px) {
  /* Default desktop grid centers the nav; the mock pushes it right. */
  .site-header--logo-left:not([data-search-open="true"]) .site-header-inner {
    grid-template-areas: "logo nav";
    grid-template-columns: auto minmax(0, 1fr);
  }
  .site-header--logo-left .site-header-nav-area {
    justify-self: end;
  }
  .site-header-nav ul ul {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--color-line);
  }
}

/* == slider: caption card + control bar, after Sotheby's / Bonhams / Artcurial == */
.slider {
  --de-edge: max(
    var(--gutter),
    calc((100% - var(--container-width, 1200px)) / 2)
  );
  /* Tinted card, red rule and shadow: each alone fails on some photo (white studio shot, paper-toned scan), together the card always has an edge. */
  --de-lift: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -8px rgb(0 0 0 / 0.18);
}

/* Pages migrated with a 21:9 desktop ratio grow past 800px on wide screens. */
@media (min-width: 768px) {
  .slider {
    max-height: min(37.5rem, 75vh);
  }
}

/* The card carries its own background, so the full-image shade is not needed. */
.slide--shaded::after {
  display: none;
}
.slide > a img {
  transition: transform 1.2s var(--ease-out);
}
.slide > a:hover img {
  transform: scale(1.02);
}
.slide > a:focus-visible {
  outline: 2px solid var(--palette-bg, #fff);
  outline-offset: -6px;
}

/* !important: slider.css pads the caption through a 4-class :has() selector. */
.slide-caption {
  left: var(--de-edge);
  right: auto;
  bottom: var(--space-8);
  width: min(26rem, calc(100% - 2 * var(--de-edge)));
  max-height: calc(100% - 2 * var(--space-8));
  padding: var(--space-6) var(--space-6) var(--space-5) !important;
  background: color-mix(in srgb, var(--de-paper) 96%, transparent);
  border-left: 3px solid var(--palette-primary, #dc2925);
  box-shadow: var(--de-lift);
  color: var(--palette-text, #000);
  text-shadow: none !important;
  font-size: 0.8125rem;
  line-height: 1.5;
}
/* Works for both legacy <br> captions and <p> captions: the price is always the first line. */
.slide-caption::first-line {
  color: var(--palette-primary, #dc2925);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slide-caption p + p {
  margin-top: var(--space-3);
}
.slide-caption strong {
  font-weight: 600;
}
.slide-caption p:nth-child(2) {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.15;
}
.slide-caption p:last-child:not(:nth-child(-n + 2)) {
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* Controls leave the artwork: one bar at the bottom right of the container. */
.slider--horizontal .slider-btn {
  top: auto;
  bottom: var(--space-8);
  transform: none;
  box-shadow: var(--de-lift);
}
.slider--horizontal .slider-prev {
  left: auto;
  right: calc(var(--de-edge) + 2.5rem + var(--space-2));
}
.slider--horizontal .slider-next {
  right: var(--de-edge);
}
.slider--horizontal .slider-dots {
  left: auto;
  right: calc(var(--de-edge) + 5rem + var(--space-5));
  bottom: var(--space-8);
  transform: none;
  height: 2.5rem;
  align-items: center;
  padding-inline: var(--space-3);
  background: var(--palette-bg, #fff);
  box-shadow: var(--de-lift);
}

/* slider.js fills the dots in; until it runs the bar would be an empty white chip. */
.slider-dots:empty {
  display: none;
}

/* Navigation skins load from <body> after this file: one extra class to win. */
.slider .slider-arrow--custom {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--palette-bg, #fff);
  color: var(--palette-text, #000);
}
.slider .slider-arrow--custom:hover {
  background: var(--palette-text, #000);
  color: var(--palette-bg, #fff);
}
.slider:has(.slider-arrow--custom) {
  --slider-arrow-w: 2.5rem;
}
/* Dots shrink to 1.25rem when slides are many: keep a gap between bars. */
.slider .slider-dots--custom .slider-dot::before {
  width: min(1.5rem, calc(100% - 4px));
  height: 2px;
  border-radius: 0;
  background: color-mix(in srgb, var(--palette-text, #000) 20%, transparent);
}
.slider .slider-dots--custom .slider-dot:hover::before,
.slider .slider-dots--custom .slider-dot[aria-current="true"]::before {
  background: var(--palette-text, #000);
}

/* From 7 slides a bar row stops reading: show "03 / 18" instead, the arrows navigate.
   visibility (not display) keeps the hidden dots counting. */
.slider-dots:has(.slider-dot:nth-child(7)) {
  counter-reset: slide;
  gap: 0.4em;
  color: var(--palette-text, #000);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.slider-dots:has(.slider-dot:nth-child(7)) .slider-dot {
  counter-increment: slide;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  visibility: hidden;
  position: absolute;
}
.slider-dots:has(.slider-dot:nth-child(7)) .slider-dot::before {
  display: none;
}
.slider-dots:has(.slider-dot:nth-child(7))
  .slider-dot:is([aria-current="true"], :last-child) {
  visibility: visible;
  position: static;
  color: inherit;
}
.slider-dots:has(.slider-dot:nth-child(7))
  .slider-dot[aria-current="true"]::after {
  content: counter(slide, decimal-leading-zero);
}
.slider-dots:has(.slider-dot:nth-child(7)) .slider-dot:last-child::after {
  content: "/ " counter(slide, decimal-leading-zero);
  opacity: 0.6;
}
.slider-dots:has(.slider-dot:nth-child(7))
  .slider-dot[aria-current="true"]:last-child::after {
  content: counter(slide, decimal-leading-zero) " / "
    counter(slide, decimal-leading-zero);
  opacity: 1;
}

/* Phones: the card leaves the image and sits under it, at a fixed height so the
   image does not jump between slides. */
@media (max-width: 767px) {
  /* Migrated sliders keep the legacy 320px phone height, which would leave the
     image a strip above the caption. */
  .slider {
    min-height: 30rem;
  }
  .slide {
    display: flex;
    flex-direction: column;
  }
  .slide > a,
  .slide > img {
    flex: 1 1 auto;
    min-height: 0;
  }
  .slide-caption {
    position: static;
    flex: 0 0 9.5rem;
    width: auto;
    max-height: none;
    padding: var(--space-4) var(--gutter) !important;
    background: var(--de-paper);
    border-left: 0;
    box-shadow: none;
  }
  .slide-caption p:nth-child(2) {
    font-size: 1.125rem;
  }
  .slide-caption p:last-child:not(:nth-child(-n + 2)) {
    display: none;
  }
  .slider--horizontal .slider-btn,
  .slider--horizontal .slider-dots {
    bottom: calc(9.5rem + var(--space-3));
  }
}

/* == sale, news and lot cards: matted cover, text on the page ==
   Most covers and lot photos are white studio shots: on a white page a bare image
   has no edge. A paper mat (passe-partout) gives every image one, whatever its
   background, and keeps the text block light. */
.sale-card-media,
.news-card-img,
.lot-card-media {
  padding: var(--space-3);
  background: var(--de-paper);
}
.sale-card-media img,
.news-card-img img,
.lot-card-media img {
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.sale-card-link:hover .sale-card-media img,
.news-card:hover .news-card-img img,
.lot-card:hover .lot-card-media img {
  transform: scale(1.03);
}

.sale-card-body,
.news-card-body {
  padding: var(--space-4) 0 0;
  gap: var(--space-2);
}
.sale-card-title,
.news-card-title {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.sale-card-meta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
}
.sale-card-date,
.news-card-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}
.sale-type {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.sale-type::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin-left: var(--space-2);
  background: var(--color-line);
  vertical-align: -0.05em;
}
.sale-card-place,
.sale-card-text,
.news-card-text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-muted);
}
.sale-card .sale-tags {
  padding-top: var(--space-1);
  font-size: 0.75rem;
}

/* Calendar grid rows: text sits beside the cover, so it gets the gutter instead,
   and nothing has to line up across cards, so the reserved title/place lines go. */
@media (min-width: 480px) {
  .sale-grid .sale-card-body {
    padding: 0 0 0 var(--space-5);
  }
  .sale-grid :is(.sale-card-title, .sale-card-place) {
    min-height: 0;
  }
  /* sale.css sizes the cover from the row height, so covers shrink next to short
     text: a fixed width keeps every thumbnail the same. */
  .sale-grid .sale-card .sale-card-media {
    width: min(45cqi, 12.5rem);
    max-width: none;
    align-self: flex-start;
  }
}

/* == lot card: title then estimate; a result leads with its price, as Artcurial does == */
.lot-card-body {
  padding: var(--space-3) 0 0;
  gap: var(--space-1);
}
.lot-card-title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
}
.lot-card-price-wrap {
  margin-top: var(--space-1);
}
.lot-card-price-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.lot-card-price {
  font-size: 0.875rem;
  font-weight: 500;
}
.lot-card-price-wrap--result {
  order: -1;
  margin: 0 0 var(--space-1);
}
.lot-card-price-wrap--result .lot-card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
}
.lot-card-body:has(.lot-card-price-wrap--result) .lot-card-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* == card group tiles (specialty index): photo, serif label, whole tile clickable ==
   Only linked cover images: logo grids and plain galleries keep the theme look. */
.cg-grid .img-figure:has(.img-media--fit-cover):has(.img-link) {
  position: relative;
  max-width: none;
  align-items: stretch;
  gap: var(--space-3);
}
.cg-grid .img-figure:has(.img-link) .img-link {
  overflow: hidden;
  background: var(--de-paper);
}
/* Square tiles in 3 columns make 12 specialties four screens tall. */
.cg-grid .img-link .img-media--fit-cover {
  aspect-ratio: 1;
  transition: transform 0.8s var(--ease-out);
}
.cg-grid .img-figure:hover .img-link .img-media--fit-cover {
  transform: scale(1.03);
}
.cg-grid .img-figure:has(.img-media--fit-cover):has(.img-link) .img-caption {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
}
.cg-grid .img-figure:has(.img-link) .img-caption a {
  color: var(--color-text);
}
/* The legend link stretches over the figure, so the label and the gap under the
   photo are part of the target, not just the image. */
.cg-grid .img-figure:has(.img-link) .img-caption a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cg-grid .img-figure:has(.img-link) .img-caption a:focus-visible {
  outline: none;
}
.cg-grid .img-figure:has(.img-link) .img-caption a:focus-visible::after {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}
/* == card group directory (team page): a grid with group titles ==
   Legend: <p><strong>Name</strong><br>Role</p><p>Phone<br>email</p>, made with
   the Bold button only, so editors never touch a class. */
.cg-grid:has(> .cg-group-title) .img-figure {
  max-width: none;
  align-items: stretch;
  gap: var(--space-3);
}
/* Portraits keep their own ratio, whatever the card's fit setting: a crop can
   cut a face. img.css forces a square on every fit but none. */
.cg-grid:has(> .cg-group-title) .img-media {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}
/* No portrait: a paper tile at the usual portrait ratio. */
.cg-grid:has(> .cg-group-title) .img-figure:not(:has(.img-media))::before {
  content: "";
  aspect-ratio: 4 / 5;
  background: var(--de-paper);
}
.cg-grid:has(> .cg-group-title) .img-caption {
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.cg-grid:has(> .cg-group-title) .img-caption p:first-child {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.cg-grid:has(> .cg-group-title) .img-caption p + p {
  margin-top: var(--space-2);
}
/* inline-block, not block: a block would turn the <br> after it into an empty line. */
.cg-grid:has(> .cg-group-title) .img-caption strong {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-text);
}
/* Two columns on a phone are narrower than most addresses. */
.cg-grid:has(> .cg-group-title) .img-caption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
/* The section's inline #cg-<id> rule owns the title margin, and padding on the
   title would stretch its red edge: the space between departments goes on the
   card before it. */
.cg-grid > :has(+ .cg-group-title) {
  margin-bottom: var(--space-6);
}

/* One tile per row under 480px is twelve full screens of scrolling. !important:
   the section sizes its grid through an inline #cg-<id> rule. */
@media (max-width: 479px) {
  .cg-grid:is(:has(.img-link .img-media--fit-cover), :has(> .cg-group-title)) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: var(--space-3);
  }
  .cg-grid .img-figure:has(.img-media--fit-cover):has(.img-link) .img-caption {
    font-size: 1rem;
  }
}

/* == carousel: square arrows, progress-bar indicators == */
/* 5 sales / 6 lots per row on desktop, a floor below that so a phone shows ~1.5 cards. */
.carousel-root.sale-carousel {
  --carousel-item: max(13.5rem, calc((100% - 4 * var(--space-4)) / 5));
}
.carousel-section .carousel-root {
  --carousel-item: max(11rem, calc((100% - 5 * var(--space-4)) / 6));
}
.carousel-track {
  gap: var(--space-4);
}
.carousel-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0;
  border: 1px solid var(--color-line);
  background: var(--palette-bg, #fff);
  color: var(--palette-text, #000);
}
.carousel-arrow:hover:not(:disabled) {
  border-color: currentColor;
}
.carousel[data-arrow-position="center"] > .carousel-prev {
  left: var(--space-4);
}
.carousel[data-arrow-position="center"] > .carousel-next {
  right: var(--space-4);
}
/* Adjacent 3rem segments read as one bar; the 2.75rem hit height stays. */
.carousel-dot {
  width: 3rem;
}
.carousel-dot::before {
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: var(--color-line);
}
.carousel-dot[aria-current="true"]::before {
  background: var(--color-text);
}

/* == sale calendar filters == */
.sale-period,
.sale-period:visited,
.sale-next {
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.sale-period:hover {
  border-color: var(--color-text);
}

/* Years: a tab bar on one hairline, the active year underlined into it. */
.sale-years {
  gap: var(--space-6);
  border-bottom: 1px solid var(--color-line);
}
.sale-year,
.sale-year:visited {
  min-height: 2.75rem;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition:
    color 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
}
.sale-year:hover {
  color: var(--color-text);
}
.sale-year.is-active,
.sale-year.is-active:visited {
  color: var(--color-text);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--color-text);
}
.sale-years-arrow {
  border-radius: 0;
  border-color: var(--color-line);
}

/* Month: a serif subheading marked by the red edge of the slider caption, so it
   reads as a chapter of the list without a rule across the page.
   Card group titles (team departments) use the same subheading. */
.sale-month-heading,
.cg-grid > .cg-group-title,
.raw-html .artist-anchor {
  margin: var(--space-12) 0 var(--space-5);
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
}
.sale-month-heading:first-child {
  margin-top: 0;
}

/* Specialty pages filter their calendars by category, which often comes up
   empty: the theme's message should read as a quiet note, not a broken list. */
.sale-empty {
  padding: var(--space-6) var(--space-5);
  background: var(--de-paper);
  font-size: 0.875rem;
  text-align: center;
  color: var(--color-muted);
}

/* == gazette articles: its inline <style> reads these two tokens == */
.ga-wrap {
  --color-surface: var(--de-paper);
  --radius-sm: 0;
}
.ga-wrap > :is(h2, h3):first-child {
  font-weight: 400;
  line-height: 1;
  margin: 0;
}
.ga-wrap > hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: var(--space-4) 0 var(--space-8);
}

/* == news article: the content width setting sizes the hero, so the text gets its own
   reading measure == */
.news .news-lead,
.news .news-body {
  max-width: 70ch;
  margin-inline: auto;
}

/* == rich text == */
.rich-text-body a:not([class]) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.rich-text-block--bg {
  border-radius: 0;
}

/* == home: estimation card (rich text markup) == */
.estimation-card {
  display: grid;
  background: var(--de-paper);
}
.estimation-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.estimation-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: clamp(var(--space-5), 4vw, var(--space-12));
}
.estimation-card__title,
.estimation-card__subtitle {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-heading, var(--color-text));
}
.estimation-card__title {
  color: var(--color-primary);
}
.estimation-card__body p + p {
  margin-top: var(--space-3);
}
@media (min-width: 768px) {
  .estimation-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* == rich text cta cards (estimation page aside, starter content) == */
.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.cta-card {
  gap: var(--space-3);
}
.cta-card :is(h2, h3) {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}
.cta-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: var(--space-2);
}
.cta-card > a {
  margin-top: var(--space-2);
}
.rich-text-body hr {
  margin: var(--space-6) 0;
  border: 0;
  border-top: 1px solid var(--color-line);
}

/* == estimation form: the steps read in ink, not grey == */
.estim-step[data-state="done"] .estim-step-dot,
.estim-step[data-state="current"] .estim-step-dot,
.estim-steps-compact .estim-step-dot {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}
.estim-step-label,
.estim-steps-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.estim-dropzone {
  background: var(--de-paper);
}
/* Also used in rich text as the page notice (payment page), so both notices match. */
.form-note {
  border-radius: 0;
  background: var(--de-paper);
  font-size: 0.8125rem;
  line-height: 1.5;
}
/* The aside is short and the wizard is long: keep the help in view while scrolling. */
@media (min-width: 1024px) {
  .flex-resizeable:has(> .rich-text-block--bg .cta-card) {
    position: sticky;
    top: 7rem;
  }
}

/* == process steps (rich text): a numbered timeline, numbered by CSS so editors
   never renumber by hand; vertical so it also fits a half-width column == */
.process-steps {
  counter-reset: step;
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: var(--space-5);
  row-gap: var(--space-2);
  padding-bottom: var(--space-8);
  counter-increment: step;
}
.process-step:last-child {
  padding-bottom: 0;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
}
.process-step::after {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: var(--space-3);
  left: 0.75rem;
  width: 1px;
  background: var(--color-line);
}
.process-step:last-child::after {
  display: none;
}
.process-step-title {
  grid-column: 2;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}
.process-step p {
  grid-column: 2;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* == prose (rich text opt-in): paragraph rhythm for long editorial text; legacy
   content spaced with <br> is left alone because it does not carry the class == */
.prose > * + * {
  margin-top: var(--space-4);
}
.prose > :is(h3, h4) {
  margin-top: var(--space-8);
}
.prose > :is(h3, h4):first-child {
  margin-top: 0;
}
.prose h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose li + li {
  margin-top: var(--space-2);
}

/* Fee schedule: label left, amount right, one hairline per row. */
.rich-text-body .fee-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}
/* The saved HTML is <li><strong>…</strong> …</li>, but the editor holds <li><p>…</p></li>:
   the row is laid out on the li, and a p, when there is one, steps out of the way. */
.fee-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-6);
  margin: 0;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.fee-list li + li {
  margin-top: 0;
}
.fee-list li > p {
  display: contents;
}
.fee-list strong {
  font-weight: 500;
  color: var(--color-text);
}

/* Images alone in a column next to text: fill the column, square corners. */
.flex-resizeable .rich-text-body > img:only-child {
  width: 100%;
  height: auto;
}

.cta-card--center {
  align-items: center;
  text-align: center;
}
@media (min-width: 480px) {
  .cta-card--center {
    align-items: center;
  }
}

/* == specialty page intro: title, lede, one primary action == */
.lede {
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-muted);
}
.rich-text-body > :is(h1, h2) + .lede {
  margin-top: var(--space-4);
}
.rich-text-body > .lede + .prose {
  margin-top: var(--space-5);
}
.rich-text-body > :is(.lede, .prose) + p {
  margin-top: var(--space-6);
}

/* == contacts aside (rich text): photo beside role, name, phone and mail ==
   Sized on img and on the first child, so it holds whether or not the editor
   wraps the img in a <p>. */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.contact-card {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}
/* No forced ratio: a cover crop on portraits cuts off heads. */
.contact-card img {
  width: 100%;
  height: auto;
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.contact-card-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--color-text);
}
.rich-text-body .contact-card a {
  color: inherit;
  text-decoration: none;
}
.rich-text-body .contact-card a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* == artist directory (/estimation/artiste, raw HTML generated from the page table):
   sticky A-Z bar over letter groups. The class names are the legacy page's, so the
   generator query and this block stay in step. == */
.raw-html:has(.alphabet-nav) {
  --de-az-top: 0px;
  --de-az-h: 2.75rem;
}
/* The header's height is not exposed as a token: 7rem is what the sticky
   estimation aside above uses too. */
body:has(.site-header[data-sticky="true"]) .raw-html:has(.alphabet-nav) {
  --de-az-top: 7rem;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.alphabet-nav) {
    scroll-behavior: smooth;
  }
}
.raw-html .titre_page {
  margin: 0 0 var(--space-6);
  font-weight: 400;
  line-height: 1.1;
}
/* z-index stays under the header (40) so its dropdowns still cover the bar. */
.raw-html .custom-sticky-container {
  position: sticky;
  top: var(--de-az-top);
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
/* Same tab look as the calendar's years. On a phone the 26 letters scroll sideways
   instead of wrapping onto a second sticky row. */
.raw-html .alphabet-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.raw-html .alphabet-nav a {
  flex: 1 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--de-az-h);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition:
    color 0.18s var(--ease-out),
    box-shadow 0.18s var(--ease-out);
}
.raw-html .alphabet-nav a:hover,
.raw-html .alphabet-nav a:focus-visible {
  color: var(--color-text);
  box-shadow: inset 0 -2px 0 var(--color-text);
  outline: none;
}
/* Without it the letter heading lands under the header and the bar. */
.raw-html .artist-anchor {
  scroll-margin-top: calc(var(--de-az-top) + var(--de-az-h) + var(--space-5));
}
.raw-html .custom-sticky-container + .artist-anchor,
.raw-html .titre_page + .artist-anchor {
  margin-top: var(--space-8);
}
/* 9rem floor: two columns on a phone, four on desktop. */
.raw-html .list-group {
  columns: 4 9rem;
  column-gap: var(--space-6);
}
.raw-html .list-group-item {
  display: block;
  break-inside: avoid;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.18s var(--ease-out);
}
.raw-html .list-group-item:hover {
  color: var(--color-primary);
}
.raw-html .list-group-item:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* == home: floating estimation button == */
/* Sticky on the section's wrapper: the section is exactly as tall as its wrapper, so it
   has no room to stick, while the wrapper's parent (main) ends above the footer. */
[data-section-type="rich_text"]:has(.btn-fixe) {
  position: sticky;
  bottom: var(--gutter);
  z-index: 30;
  pointer-events: none;
  padding: 1rem 0;
}
/* Its rich_text section has nothing else in it; without this it leaves an empty band. */
.section:has(.btn-fixe) {
  padding: 0;
}
/* width + auto margins center it whatever wrappers the rich text section adds around it. */
.btn-fixe {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  pointer-events: auto;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .btn-fixe {
    display: none !important;
  }
}

/* == home: floating estimation card (rich text markup) == */
.estimation-modal {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 30;
  width: min(20rem, calc(100% - 2 * var(--gutter)));
  padding: var(--space-5);
  background: var(--de-paper);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  line-height: 1.6;
  animation: estimation-modal-in 0.5s ease-out 0.5s both;
}
.estimation-modal h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.125rem;
  font-weight: 600;
}
.estimation-modal p {
  margin: 0;
}
.estimation-modal .button-primary {
  width: 100%;
  margin-top: var(--space-4);
}
@keyframes estimation-modal-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .estimation-modal {
    animation: none;
  }
}
@media (max-width: 767px) {
  .estimation-modal {
    display: none !important;
  }
}
/* Its rich_text section has nothing else in it; without this it leaves an empty band. */
.section:has(.estimation-modal) {
  padding: 0;
}

/* == footer == */
.footer {
  text-align: center;
}
.footer .footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer .legal-links {
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
