/* Shared typography and spacing. Page containers remain in style.css. */
:root {
  --ds-heading-font: Manrope, sans-serif;
  --ds-text-font: Manrope, sans-serif;
  --ds-title: clamp(46px, 6.8vw, 92px);
  --ds-title-tracking: -.065em;
  --ds-detail-title: clamp(28px, 2.8vw, 50px);
  --ds-functional-title: 32px;
  --ds-h2: 36px;
  --ds-h3: 28px;
  --ds-body: 17px;
  --ds-body-leading: 1.75;
  --ds-lead: clamp(15px, 1.7vw, 19px);
  --ds-page-top: 168px;
  --ds-page-bottom: 64px;
  --ds-section: 100px;
  --ds-header-after: 48px;
  --ds-title-lead: 24px;
  --ds-block: 32px;
  --ds-card-pad: 24px;
  --ds-grid-gap: 24px;
}
@media (max-width: 1000px) {
  :root { --ds-detail-title: clamp(28px, 4.8vw, 44px); }
}
@media (max-width: 720px) {
  :root { --ds-page-top: 104px; --ds-page-bottom: 48px; --ds-section: 48px; --ds-header-after: 32px; --ds-block: 24px; --ds-grid-gap: 18px; }
}
@media (max-width: 620px) {
  :root { --ds-title: 36px; --ds-title-tracking: -.075em; --ds-detail-title: clamp(28px, 7.5vw, 36px); --ds-functional-title: 26px; --ds-h2: 28px; --ds-h3: 22px; --ds-body: 16px; --ds-body-leading: 1.6; --ds-lead: 15px; --ds-title-lead: 16px; }
}

/* Breadcrumbs, including legacy aliases: one appearance and one spacing rule. */
.moto-design :is(.news-breadcrumbs, .about-breadcrumbs, .calendar-crumbs, .moto-store__breadcrumbs, .moto-product-crumbs, .moto-cart-crumbs) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--color-text-muted);
  font: 500 12px/1.4 var(--ds-text-font);
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}
.moto-design :is(.news-breadcrumbs, .about-breadcrumbs, .calendar-crumbs, .moto-store__breadcrumbs, .moto-product-crumbs, .moto-cart-crumbs) :is(a, span, b) {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-decoration: none;
}
.moto-design :is(.news-breadcrumbs, .about-breadcrumbs, .calendar-crumbs, .moto-store__breadcrumbs, .moto-product-crumbs, .moto-cart-crumbs) a:hover { text-decoration: underline; }
.moto-design :is(.news-breadcrumbs, .about-breadcrumbs, .calendar-crumbs, .moto-store__breadcrumbs, .moto-product-crumbs, .moto-cart-crumbs) a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.moto-design :is(.calendar-hero, .video-hero, .gallery-hero, .clubs-hero) :is(.news-breadcrumbs, .about-breadcrumbs, .calendar-crumbs, .moto-store__breadcrumbs, .moto-product-crumbs, .moto-cart-crumbs) { color: var(--color-text-inverse-muted); }

/* Section titles: same typography on light and dark surfaces. */
.moto-design :is(.news-page .news-hero h1, .articles-hero h1, .video-hero h1, .gallery-hero h1, .clubs-hero h1, .about-header h1, .moto-store__intro h1, .moto-catalog__intro h1, .calendar-page:has(.calendar-page__shell) .calendar-hero h1) {
  max-width: 950px;
  margin: 0;
  font: 800 var(--ds-title)/.88 var(--ds-heading-font);
  letter-spacing: var(--ds-title-tracking);
  text-transform: none;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.moto-design :is(.news-page .news-hero__lead, .articles-hero__lead, .video-hero > .video-shell > p, .clubs-hero > .clubs-shell > p:last-child, .about-header .about-intro, .moto-store__intro > p, .moto-catalog__intro > p, .calendar-page:has(.calendar-page__shell) .calendar-lead) {
  max-width: 660px;
  margin: var(--ds-title-lead) 0 0;
  font: 500 var(--ds-lead)/1.55 var(--ds-text-font);
}
.moto-design .about-intro__copy { font: inherit; }

/* Material titles: shared by editorial content, albums, clubs and products. */
.moto-design :is(.news-article__header h1, .article-detail__header h1, .video-detail h1, .gallery-page.gallery-page--album .gallery-hero h1, .club-detail h1, .about-detail .about-header h1, .moto-product__summary h1, .calendar-event__hero h1) {
  max-width: 100%;
  margin: 0 0 24px;
  font: 800 var(--ds-detail-title)/1.04 var(--ds-heading-font);
  letter-spacing: -.055em;
  text-transform: none;
  overflow-wrap: anywhere;
  hyphens: manual;
}
/* Short functional titles for account, studio and checkout. */
.moto-design :is(.moto-auth .moto-auth__title, .moto-profile.articles-page .articles-hero h1, .moto-studio.articles-page .articles-hero h1, .moto-cart-page h1) {
  margin: 0 0 24px;
  font: 800 var(--ds-functional-title)/1.15 var(--ds-heading-font);
  letter-spacing: -.035em;
  text-transform: none;
}

/* Text blocks and internal heading hierarchy. */
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-page--event .calendar-event__content, .moto-product-tabs__panel, .news-article__header .news-article__dek, .article-detail__lead, .video-detail__lead, .club-detail__lead) {
  font: 400 var(--ds-body)/var(--ds-body-leading) var(--ds-text-font);
  overflow-wrap: anywhere;
}
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) :is(p, ul, ol, blockquote) { margin-block: 0 16px; }
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) :is(ul, ol) { padding-inline-start: 24px; }
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) li + li { margin-top: 8px; }
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) h2 {
  margin: var(--ds-block) 0 16px;
  font: 800 var(--ds-h2)/1.2 var(--ds-heading-font);
  letter-spacing: -.035em;
  text-transform: none;
}
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) h3 {
  margin: 24px 0 12px;
  font: 800 var(--ds-h3)/1.25 var(--ds-heading-font);
  letter-spacing: -.025em;
  text-transform: none;
}
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) > :first-child { margin-top: 0; }
.moto-design .calendar-event__about > h2:first-child { font: 800 var(--ds-h2)/1.2 var(--ds-heading-font); letter-spacing: -.035em; }
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-richtext, .calendar-event__content, .moto-product-tabs__panel) > :last-child { margin-bottom: 0; }

/* Section headings and subheadings, including home content below the banner. */
.moto-design :is(.section-heading h2, .section h2, .calendar-section-heading h2, .calendar-application__intro h2, .moto-store-feature__copy h2, .moto-cart-empty h2, .articles-section-heading h2, .calendar-page:has(.calendar-page__shell) .calendar-section-heading h2, .calendar-results__header h2, .calendar-filter-panel h2, .clubs-directory > header h2, .about-teaser h2, .moto-store-catalog__heading h2, .moto-checkout h2, .moto-studio__heading h2, .production-heading h2, .subscribe-panel h2, .calendar-photo-reports > h2, .sticky-copy h2) {
  margin: 0 0 16px;
  font: 800 var(--ds-h2)/1.2 var(--ds-heading-font);
  letter-spacing: -.035em;
  text-transform: none;
}
.moto-design :is(.article-section-card h3, .now-lead h3, .history-card h3, .production-step h3, .moto-studio__panel h3, .moto-profile__card h2) {
  font: 800 var(--ds-h3)/1.25 var(--ds-heading-font);
  letter-spacing: -.025em;
  text-transform: none;
}

/* Editorial card typography; the prominent first news story remains a variant. */
.moto-design :is(.news-page .articles-feed__grid .news-card.article-feed-card h2, .articles-feed__grid .news-card.article-feed-card h2, .gallery-album h2, .club-card h2, .club-card__title) {
  margin: 10px 0;
  font: 800 23px/1.15 var(--ds-heading-font);
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}
.moto-design :is(.news-page .news-card.article-feed-card .news-card__summary, .news-card.article-feed-card .news-card__summary) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font: 500 14px/1.6 Inter, sans-serif;
}
.moto-design .news-card.article-feed-card .news-card__summary > * { margin-block: 0; font: inherit; }
.moto-design :is(.news-page .news-card.article-feed-card .news-card__date, .news-card.article-feed-card .news-card__date) { font: 700 13px/1.4 Inter, sans-serif; }
.moto-design :is(.news-card.article-feed-card .news-card__more) { margin-top: auto; padding-top: 16px; font-size: 14px; line-height: 1.4; }
.moto-design :is(.news-page .news-card.article-feed-card .news-card__body, .news-card.article-feed-card .news-card__body, .gallery-album__body, .club-card__body) { height: auto; padding: var(--ds-card-pad); }
.moto-design :is(.news-card.article-feed-card .news-card__tags) { margin-bottom: 12px; gap: 6px; }
.moto-design .news-card.article-feed-card .news-card__tags a { font-size: 11px; }

/* Page rhythm. The header, footer and main home hero are intentionally untouched. */
.moto-design :is(.news-page, .articles-page, .about-page, .moto-store, .moto-product-page, .moto-cart-page, .moto-auth) {
  padding-top: var(--ds-page-top);
  padding-bottom: var(--ds-page-bottom);
}
.moto-design :is(.news-hero, .articles-hero, .about-header, .moto-store__intro, .moto-catalog__intro) { margin-bottom: var(--ds-header-after); padding-block: 0; }
.moto-design :is(.video-hero, .gallery-hero, .clubs-hero, .calendar-page:has(.calendar-page__shell) .calendar-hero) { padding-top: var(--ds-page-top); padding-bottom: var(--ds-header-after); min-height: 0; }
.moto-design :is(.video-page, .gallery-page, .clubs-page) { padding-bottom: var(--ds-page-bottom); }
.moto-design :is(.video-detail, .club-detail) { padding-top: var(--ds-page-top); padding-bottom: 0; }
.moto-design .calendar-page--event { padding-top: var(--ds-page-top); padding-bottom: var(--ds-page-bottom); }
.moto-design .calendar-page--event .calendar-event { padding-block: 0; }
.moto-design .calendar-page--archive { padding-top: var(--ds-page-top); padding-bottom: var(--ds-page-bottom); }
.moto-design :is(.video-feed, .gallery-feed, .clubs-directory) { padding-top: var(--ds-header-after); }
.moto-design :is(.news-article__nav, .article-detail__nav, .calendar-event__hero .calendar-event__nav, .club-detail .article-detail__nav) { margin: 0 0 24px; padding-block: 0; }
.moto-design :is(.news-article__date, .article-detail__header time, .video-detail header time) { display: block; margin: 0 0 12px; font: 700 15px/1.35 var(--ds-text-font); }
.moto-design :is(.news-article__header .news-article__dek, .article-detail__lead, .video-detail__lead, .club-detail__lead) { margin: 0; }
.moto-design :is(.news-article__cover, .article-detail__cover, .about-detail__cover, .club-detail__logo, .video-player) { margin-block: var(--ds-block) 0; }
.moto-design :is(.news-article__content, .article-detail__content, .video-detail__content, .club-detail__content, .about-detail__text, .calendar-page--event .calendar-event__content) { margin-top: var(--ds-block); }
.moto-design :is(.calendar-event__hero, .calendar-event__hero .calendar-event__badges) { margin-bottom: 24px; }
.moto-design :is(.calendar-event__hero .calendar-event__header, .calendar-page--event .calendar-event__content) { padding: var(--ds-card-pad); }
.moto-design :is(.articles-directions) { padding-bottom: 0; }
.moto-design :is(.articles-feed, .calendar-page:has(.calendar-page__shell) .calendar-feed--latest) { margin-block: 0; padding-top: var(--ds-section); }
.moto-design .articles-index > .articles-directions + .articles-feed { padding-top: 16px; }
.moto-design :is(.calendar-page:has(.calendar-page__shell) .calendar-feed--upcoming) { margin-block: 0; padding-block: var(--ds-section) 0; }
.moto-design :is(.calendar-browser-title) { padding-top: var(--ds-section); padding-bottom: 24px; }
.moto-design :is(.calendar-results__header, .calendar-day-results) { margin-top: var(--ds-header-after); }
.moto-design :is(.articles-section-heading, .calendar-section-heading, .clubs-directory > header) { margin-bottom: 24px; gap: 24px; }
.moto-design :is(.about-teaser) { padding-block: calc(var(--ds-section) / 2); }
.moto-design :is(.news-grid, .articles-feed__grid, .gallery-album-grid, .clubs-grid, .calendar-grid) { gap: var(--ds-grid-gap); }
/* Adjacent sections contribute half each: total content-to-content gap is one token. */
.moto-design main > .section { padding-block: calc(var(--ds-section) / 2); }
.moto-design :is(.calendar-application, .club-change-application, .club-ownership) { margin-top: var(--ds-section); }
.moto-design .calendar-page--event .calendar-event { padding-bottom: 0; }
.moto-design .calendar-recommendations { margin-top: var(--ds-section); padding-bottom: 0; }
.moto-design .calendar-page--event :is(.calendar-photo-reports, .calendar-event__contacts) { margin-top: var(--ds-section); }
.moto-design .ds-section + .ds-section { margin-top: var(--ds-section); }
.moto-design :is(.news-pagination, .articles-pagination, .calendar-archive-pagination) { margin-top: var(--ds-header-after); }
/* Embedded authentication is part of its parent form, not another page. */
.moto-design .moto-auth[data-motomag-auth-context="cart"] { padding-block: 24px; }

.moto-design .about-header .about-intro { font: 500 var(--ds-lead)/1.55 var(--ds-text-font); }

/* Ordinary editorial cards share the same inset media layout as news. */
.moto-design :is(.news-page .articles-feed__grid .news-card.article-feed-card, .articles-feed__grid .news-card.article-feed-card) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
.moto-design :is(.news-page .news-card.article-feed-card .news-card__media, .news-card.article-feed-card .news-card__media) {
  flex-shrink: 0;
  width: calc(100% - 36px);
  margin: 18px 18px 0;
  border-radius: 11px;
}
@media (max-width: 720px) {
  .moto-design :is(.news-page .news-card.article-feed-card .news-card__media, .news-card.article-feed-card .news-card__media) {
    width: calc(100% - 24px);
    margin: 12px 12px 0;
  }
}

/* The about-page intro uses display: contents, so its copy owns the gap. */
.moto-design .about-header .about-intro__copy { margin-top: var(--ds-title-lead); }
.moto-design :is(.club-detail__layout, .moto-product, .moto-profile__layout) { gap: var(--ds-block); }
.moto-design :is(.moto-auth__form, .moto-profile__form, .calendar-hostcms-form) { gap: 24px; }
.moto-design :is(.moto-auth__field) { gap: 8px; }
.moto-design :is(.moto-auth__card, .moto-profile__card, .moto-studio__panel) { padding: var(--ds-block); }
.moto-design :is(.calendar-page:has(.calendar-page__shell) .calendar-results__header, .calendar-day-results) { margin-top: var(--ds-header-after); }
.moto-design :is(.calendar-page:has(.calendar-page__shell) .calendar-grid, .news-grid, .articles-feed__grid, .gallery-album-grid, .clubs-grid) { gap: var(--ds-grid-gap); }

/* Compact event cards, approved 21.09.2026. */
.moto-design .calendar-card__body { height: auto; padding: var(--ds-card-pad); }
.moto-design .calendar-card h2 { margin: 0; font: 800 23px/1.15 var(--ds-heading-font); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
