/* Biltreff & Foto: desktoptypografi v2 – 23.10.2026
   Fasiten er H1 i AMCAR historie: Inter (var(--body)), 700, clamp(40px,5vw,74px).
   Den eldre utjevningen brukte Barlow Condensed/900 og traff ikke alle undersider.
   Bare PC >=901px; mobil, korttitler og navigasjon beholder sin egen typografi.
*/
@media screen and (min-width: 901px) {
  /* Alle sidetitler – også detaljsider, klubber, kalender, album, personvern,
     nyheter, butikker og administrator. Forsidens spesialoverskrift unntas. */
  html body main:not(.btm-home):not(.amcar-hist) h1,
  html body main.amcar-hist:is(.v8-page, .mm-page, .cj-page) h1 {
    font-family:var(--body, Inter, Arial, sans-serif) !important;
    font-size:clamp(40px, 5vw, 74px) !important;
    font-weight:700 !important;
    font-style:normal !important;
    line-height:1.02 !important;
    letter-spacing:.01em !important;
    text-transform:none !important;
    overflow-wrap:break-word;
    hyphens:manual;
  }

  /* v1 brukte en :is()-gruppe med høy spesifisitet som overstyrer
     generelle H1-regler. Disse faktiske sideklassene må vinnes eksplisitt. */
  html body :is(
    .community-page > .community-intro > h1,
    .community-page.narrow > h1,
    .community-page > h1,
    .section-head > div > h1,
    .album-header > h1,
    .btm-album-overview .section-head h1,
    .news-archive .news-section-title > h1,
    .news-section-title > h1,
    .legends > .legends-hero > h1,
    .narrow.top-space > h1,
    .contact-page > h1,
    .mail-settings-page > h1,
    .hist-page > .hist-hero .hist-hero-inner > h1,
    .boss-page > .boss-hero .boss-hero-content > h1
  ) {
    font-family:var(--body, Inter, Arial, sans-serif) !important;
    font-size:clamp(40px, 5vw, 74px) !important;
    font-weight:700 !important;
    font-style:normal !important;
    line-height:1.02 !important;
    letter-spacing:.01em !important;
    text-transform:none !important;
  }

  /* Historiske artikkelforsider har plass til et bilde ved siden av teksten.
     Samme uttrykk som AMCAR-artikkelen, men dens originale kompakte størrelse. */
  html body main.amcar-hist:is(.v8-page, .mm-page, .cj-page) :is(
    .v8-hero-copy,
    .mm-hero-copy,
    .cj-hero-copy
  ) h1 {
    font-size:clamp(36px, 4.5vw, 66px) !important;
  }

  /* Smale skjema- og infosider får samme typografi i en litt smalere ramme. */
  body main.narrow h1,
  body main:has(> .narrow) > .narrow h1 {
    font-size:clamp(36px, 4.2vw, 62px) !important;
  }

  /* Små tekstlinjer inne i Mustang- og AMCAR-overskriftene beholdes små. */
  body :is(.hist-hero-inner, .amcar-hist-hero-copy) h1 small {
    font-family:var(--body, Inter, Arial, sans-serif) !important;
    font-size:clamp(16px, 1.45vw, 21px) !important;
    font-weight:600 !important;
    line-height:1.35 !important;
    letter-spacing:.035em !important;
  }

  /* Kapitel-/seksjonstitler på fordypningssidene: samme Inter 700 og
     et roligere størrelsesnivå, som AMCAR historie (23–37 px). */
  body :is(
    .hist-page .hist-story h2,
    .hist-page .hist-section-top h2,
    .hist-page .hist-intro h2,
    .hist-page .hist-special h2,
    .hist-page .hist-compare h2,
    .boss-page .boss-section-head h2,
    .boss-page .boss-intro h2,
    .boss-page .boss-chapter h2,
    .v8-page .v8-prose h2,
    .v8-page .v8-related h2,
    .mm-page .mm-story-section h2,
    .mm-page .mm-overview-table h2,
    .mm-page .mm-related h2,
    .mm-page .mm-specs h2,
    .mm-page .mm-sources h2,
    .cj-page .cj-story h2,
    .legends .legends-section h2,
    .legends .legends-compare h2,
    .legends .legends-fact h2,
    .community-page .community-calendar-header h2,
    .community-page .community-description h2
  ) {
    font-family:var(--body, Inter, Arial, sans-serif) !important;
    font-size:clamp(23px, 2.5vw, 37px) !important;
    font-weight:700 !important;
    font-style:normal !important;
    line-height:1.16 !important;
    letter-spacing:.01em !important;
    text-transform:none !important;
  }

  /* Overskrift for arkiv-/undersideseksjoner, men ikke små titler i kort. */
  body main:not(.btm-home) :is(.section-head h2, .news-strip-head h2) {
    font-family:var(--body, Inter, Arial, sans-serif) !important;
    font-size:clamp(23px, 2.5vw, 37px) !important;
    font-weight:700 !important;
    line-height:1.16 !important;
    letter-spacing:.01em !important;
  }
}
