/* Editorial pages share a text measure and opening spread. All screen rules stay
   inside the article so the site's navigation and the printable sheets keep their own layout. */
@media screen {
  main.ed-layout {
    --ed-navy: #102e43;
    --ed-ink: #122d40;
    --ed-body: #334f60;
    --ed-link: #065a7b;
    --ed-paper: #f3f7f7;
    --ed-line: #bdcfd5;
    --ed-blue: #9fdaeb;
    --ed-gutter: max(clamp(20px,5vw,70px),calc((100% - 1152px)/2));
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  .ed-layout :is(h1,h2,h3,h4) { overflow-wrap: break-word; text-wrap: balance; }
  .ed-layout p { text-wrap: pretty; }
  .ed-layout :is(figure,article,section,div) { min-inline-size: 0; }
  .ed-layout :is(.guide-race,.blue-line-story,.guide-kit,.carnet,.guide-head) {
    padding-inline: var(--ed-gutter);
  }
  .ed-layout :is(.carnet-inner,.guide-kit,.guide-race,.tp-field,.tp-outro,.art-guide,.reb-field-sheet,.reportage) p {
    max-inline-size: 68ch;
    line-height: 1.65;
  }
  .ed-layout :is(.carnet-inner,.guide-kit,.guide-race,.tech-library,.art-guide,.reb-field-sheet,.reportage,.tp-field) h2 {
    line-height: 1.13; letter-spacing: -.035em;
  }
  .ed-layout :is(figcaption,.reportage figcaption) { font-size: .875rem; line-height: 1.48; }
  .ed-layout :where(a,button,summary,input,select,textarea):focus-visible {
    outline: 3px solid #e6513f;
    outline-offset: 3px;
  }

  /* The same opening geometry accommodates portraits, landscape photographs and long translated headlines. */
  .ed-layout .ed-opening {
    color: #fff; background: var(--ed-navy);
    display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
    align-items: center; gap: clamp(28px,5vw,80px);
    text-align: left; animation: none;
  }
  .ed-layout > .ed-opening {
    width: 100%; max-width: none;
    margin: 0; padding: clamp(30px,4vw,64px) var(--ed-gutter);
  }
  .ed-layout .ed-opening > div:first-child {
    min-width: 0; width: 100%; margin: 0; padding: 0; align-self: center;
  }
  .ed-layout .ed-opening > div:first-child::before {
    content: ""; display: block; width: 2.45rem; height: 4px;
    margin: 0 0 1.15rem; border-radius: 1px; background: #ef655a;
  }
  .ed-layout .ed-opening > div h1 {
    font: 500 clamp(2.55rem,4.5vw,4.6rem)/1.03 Georgia, "Times New Roman", serif;
    max-width: 21ch; letter-spacing: -.046em;
    color: inherit; margin: 0 0 .38em;
  }
  .ed-layout .ed-opening > div p {
    margin: 0 0 .62em; max-width: 56ch;
    color: #e2edf1; font: 400 clamp(1rem,1.24vw,1.18rem)/1.56 system-ui,sans-serif;
  }
  .ed-layout .ed-opening > div p:last-child { margin-bottom: 0; }
  .ed-layout .ed-opening > div :is(.field-kicker,.tp-location,.kicker) {
    margin: 0 0 .85rem; color: #b6e4f2; font: 700 .78rem/1.4 system-ui,sans-serif;
    letter-spacing: .095em; text-transform: uppercase;
  }
  .ed-layout .ed-opening > :is(figure,img) {
    display: block; width: 100%; max-width: none; margin: 0;
    align-self: center; min-height: 0;
  }
  .ed-layout .ed-opening > img, .ed-layout .ed-opening figure img {
    display: block; width: 100%; height: auto; max-height: none; min-height: 0;
    aspect-ratio: 1.34; object-fit: cover; object-position: 50% 56%; border-radius: 7px;
  }
  .ed-layout .ed-opening figure figcaption {
    width: 100%; max-width: 68ch; padding: .55rem 0 0; margin: 0;
    color: #c6dce6; background: none; font: 450 .83rem/1.46 system-ui,sans-serif;
  }
  .ed-layout:is(.ed-equipe,.ed-lignes-bleues,.ed-savoir-faire) .ed-opening figure img,
  .ed-layout.ed-savoir-faire .ed-opening > img { object-position: 50% 65%; }
  .ed-layout .ed-opening.ed-inset,
  .ed-layout .reportage > .ed-opening {
    background: transparent; color: var(--ed-ink); border: 0;
    border-radius: 0; margin: 0 0 clamp(30px,4.2vw,62px); overflow: visible;
  }
  .ed-layout .ed-opening.ed-inset > div p,
  .ed-layout .reportage > .ed-opening > div p { color: var(--ed-body); }
  .ed-layout .ed-opening.ed-inset figure figcaption,
  .ed-layout .reportage > .ed-opening figcaption { color: #476171; }
  .ed-layout .reportage > .ed-opening > figure img {
    aspect-ratio: 1.53; height: auto; max-height: none; min-height: 0; flex: none;
  }
  .ed-layout .reportage > .ed-opening > div { padding: 0; }
  .ed-layout .reportage { background: transparent; }
  .ed-layout.ed-benevoles .carnet, .ed-layout.ed-mondiaux-2027 #terrains {
    background: var(--ed-paper); padding-top: clamp(32px,4.8vw,72px);
  }
  .ed-layout.ed-benevoles .ed-opening img { aspect-ratio: 1.46; object-position: 50% 50%; }
  .ed-layout.ed-mondiaux-2027 .ed-opening img { object-position: 50% 65%; }
  .ed-layout.ed-mondiaux-2027 #spectateurs { margin-top: 0; }
  .ed-layout .carnet-pair {
    gap: clamp(19px,4vw,60px); margin-block: clamp(25px,3.5vw,48px);
  }
  .ed-layout .carnet-pair > article {
    display: block; padding-top: 1rem; border-top: 2px solid #187d9f;
  }
  .ed-layout .carnet-pair > article + article { border-top-color: #cb524b; }
  .ed-layout .carnet-pair > article :is(h2,h3) {
    font: 520 clamp(1.65rem,2.5vw,2.4rem)/1.14 Georgia,serif; letter-spacing: -.035em;
  }
  .ed-layout .carnet-link { display: inline-flex; align-items: center; min-height: 44px; gap: .4em; }
  .ed-layout .sommaire-piste {
    display: flex; flex-wrap: wrap; align-items: stretch;
    gap: 0 1.1rem; border-block: 1px solid var(--ed-line); padding: .5rem 0;
    margin: 0 0 clamp(30px,4vw,60px); background: transparent;
  }
  .ed-layout .sommaire-piste a {
    display: inline-flex; align-items: center; min-height: 44px; text-align: left;
    color: var(--ed-link); background: transparent; border: 0; border-radius: 0; padding: .4rem 0;
    box-shadow: none; font-weight: 680; text-decoration: underline; text-decoration-color: #abc4cf;
    text-underline-offset: .2em; line-height: 1.32; transform: none;
  }
  .ed-layout .sommaire-piste a:hover { text-decoration-color: currentColor; transform: none; }
  .ed-layout .reportage > :is(section,details,p):not([class]),
  .ed-layout .reportage > .bruno { max-width: 74ch; margin-inline: auto; }
  .ed-layout .reportage > #coulisses-course > #one-shot > :is(h2,p) { max-width: 66ch; }
  .ed-layout .recits-piste { align-items: start; gap: clamp(16px,2vw,28px); }
  .ed-layout .recits-piste .recit { padding: clamp(16px,2vw,28px); box-shadow: none; }
  .ed-layout .recits-piste .recit img { aspect-ratio: 1.95; height: auto; }
  .ed-layout .ed-opening > .ed-guide-photo { aspect-ratio: 1.75; object-position: 50% 48%; }
  .ed-organisateurs .guide-transfer { padding-bottom: clamp(1.25rem, 2.4vw, 2rem); }
  .ed-organisateurs .guide-actions {
    padding: 0 var(--ed-gutter) clamp(1.5rem, 3vw, 2.75rem);
  }
  .guide-actions-row {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem;
    padding-top: clamp(1rem, 2vw, 1.5rem); border-top: 1px solid var(--ed-line);
  }
  .guide-actions-row :is(.guide-contact,button) {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
    min-height: 46px; max-width: 100%; padding: .65rem 1.1rem; border: 1px solid var(--ed-navy);
    border-radius: 5px; font: 650 1rem/1.4 system-ui,sans-serif; text-align: center; text-decoration: none;
  }
  .guide-actions-row .guide-contact { color: white; background: var(--ed-navy); }
  .guide-actions-row button { color: var(--ed-navy); background: transparent; }
  .guide-actions-row .guide-contact:hover { background: #184c64; }
  .guide-actions-row button:hover { background: #f7fafa; }
  @media (max-width: 700px) {
    .guide-actions-row { flex-direction: column; gap: .6rem; }
  }
  .ed-layout.ed-organisateurs .guide-head h1 { font-size: clamp(2.35rem,4.25vw,4.1rem); }
  .ed-layout.ed-organisateurs .meeting-kit {
    margin: 0; width: 100%; max-width: none; padding: clamp(28px,3.2vw,50px) var(--ed-gutter);
    background: #eaf2f3; border-block-end: 1px solid var(--ed-line);
  }
  .ed-layout .meeting-kit h2 { margin: 0 0 .7em; font-size: clamp(1.6rem,2.65vw,2.65rem); }
  .ed-layout .meeting-kit ol {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1.25rem; list-style: decimal-leading-zero inside; margin: 0 0 1.1rem; padding: 0;
  }
  .ed-layout .meeting-kit li {
    margin: 0; padding: .6rem .4rem 0 0; border-top: 1px solid #9cb5c1;
    color: #223e50; font: 550 1rem/1.48 system-ui,sans-serif;
  }
  .ed-layout .meeting-kit li::marker { color: #10657f; font: 700 .83rem/1.5 system-ui,sans-serif; }
  .ed-layout .meeting-kit .print-top {
    min-height: 46px; padding: .68rem 1.05rem; border-radius: 5px; background: #103d55;
    color: #fff; border: 0; font: 680 1rem/1.45 system-ui,sans-serif;
  }
  .ed-layout .meeting-kit nav { margin: .8rem 0 0; }
  .ed-layout .meeting-kit nav a {
    padding: .4rem .7rem; color: #094d6a; background: transparent;
    border: 1px solid #91afbd; border-radius: 4px; text-decoration: none; line-height: 1.36;
  }
  .ed-layout .tech-links { align-items: stretch; }
  .ed-layout .tech-links a { align-items: center; box-shadow: none; }
  .ed-layout .tech-links :is(span,small) { min-width: 0; }
  .ed-layout .tech-links strong { line-height: 1.25; }
  .ed-layout .atelier-hero > div > a, .ed-layout .ed-machine .read-reb {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: .55rem .8rem; margin: .25rem .28rem 0 0;
    border: 1px solid #80a9bc; border-radius: 5px; text-decoration: none; font: 640 .94rem/1.4 system-ui,sans-serif;
  }
  .ed-layout .atelier-hero > div > a { color: #fff; background: #1b435a; }
  .ed-layout .atelier-hero > div > a:first-of-type { color: #102e43; background: #c2e7f0; border-color: #c2e7f0; }
  .ed-layout .etapes { gap: clamp(16px,2vw,29px); }
  .ed-layout .etapes li { line-height: 1.53; }
  .ed-layout .etapes h3, .ed-layout .fiches h3 { letter-spacing: -.025em; line-height: 1.24; }
  main.ed-birchmeier {
    max-width: none; margin: 0; padding: clamp(30px,4.5vw,65px) var(--ed-gutter);
    color: var(--ed-ink); background: var(--ed-paper);
  }
  .ed-layout .ed-machine { display: block; }
  .ed-layout .ed-machine h2 { color: var(--ed-ink); }
  .ed-layout .ed-machine .ed-opening h2 {
    margin: .4rem 0 .7rem; color: var(--ed-link);
    font: 650 clamp(1rem,1.7vw,1.4rem)/1.38 system-ui,sans-serif;
  }
  .ed-layout .ed-machine .ed-opening img { aspect-ratio: 1.23; object-position: 50% 46%; }
  main.ed-lignes-bleues {
    width: 100%; max-width: none; padding: 0 0 clamp(32px,4vw,64px);
    background: #0b2336; color: #f3f8fa;
  }
  .ed-lignes-bleues > section:not(.ed-opening) {
    width: min(90%,1152px); margin-inline: auto;
  }
  .ed-layout .ed-machine a { color: var(--ed-link); text-underline-offset: .2em; }
  .ed-layout .ed-machine .read-reb { background: var(--ed-navy); color: white; border-color: var(--ed-navy); }
  .ed-layout .ed-reb-notes {
    max-width: 70ch; margin: 0 auto clamp(30px,4vw,56px);
    padding: 0 0 .9rem; border-bottom: 1px solid var(--ed-line);
  }
  .ed-layout .ed-reb-notes p { line-height: 1.58; }
  .ed-layout .ed-reb-notes details { border-color: var(--ed-line); }
  .ed-layout :is(.ed-reb-notes,.reb-field-sheet,.art-guide,.fiches,.reportage) summary {
    min-height: 44px; align-content: center;
  }
  .ed-layout .reb-field-sheet a { text-underline-offset: .18em; }
  @media(max-width: 940px) and (min-width: 701px) {
    .ed-layout .ed-opening { grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: 24px; }
    .ed-layout .ed-opening > div h1 { font-size: clamp(2.35rem,4.6vw,3.2rem); }
    .ed-layout .ed-opening figure img,.ed-layout .ed-opening > img { aspect-ratio: 1.05; }
    .ed-layout .etapes { grid-template-columns: repeat(3,minmax(0,1fr)); }
  }
  @media(max-width: 700px) {
    .ed-layout .ed-opening { grid-template-columns: minmax(0,1fr); gap: 19px; }
    .ed-layout > .ed-opening { padding-block: 26px; }
    .ed-layout .ed-opening > div h1 { font-size: clamp(2.4rem,8.5vw,3.35rem); }
    .ed-layout .ed-opening > div:first-child::before { width: 2rem; height: 3px; margin-block-end: .9rem; }
    .ed-layout .ed-opening > img,.ed-layout .ed-opening figure img,.ed-layout .reportage > .ed-opening figure img { aspect-ratio: 1.52; }
    .ed-layout .ed-opening > .ed-guide-photo { aspect-ratio: 2.1; }
    .ed-layout .meeting-kit ol { grid-template-columns: 1fr; gap: .4rem; }
    .ed-layout .meeting-kit li { padding: .45rem 0 .2rem; }
    .ed-layout .meeting-kit .print-top { width: 100%; }
    .ed-layout .meeting-kit nav { gap: .35rem; }
    .ed-layout .sommaire-piste { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .9rem; }
    .ed-layout .sommaire-piste a { align-items: start; padding-block: .55rem; }
    .ed-layout .ed-machine .read-reb { width: fit-content; }
  }
}
@media print { .ed-guide-photo { display: none; } }
