/*
 * Toni Premium Typografie 1.1.0 - ONE canonical editorial style layer.
 * Reference: schneetoni-premium 1.2.05 from the 2026-11-09 theme archive.
 * Explicitly restricted to the eligible Toni consumer body class.
 * Does not style weather data, maps, warning levels, forms or header geometry.
 */

/* 1. Shared type tokens. Values derive from SchneeToni single/card styles. */
body.tpt-schneetoni-typography {
  --tpt-font: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --tpt-article-width: 760px;
  --tpt-article-card: 900px;
  --tpt-single-title: 1.7rem;
  --tpt-body-size: 1rem;
  --tpt-body-leading: 1.58;
  --tpt-story-title: 1.26rem;
  --tpt-story-copy: 1.02rem;
  --tpt-h2: 1.5rem;
  --tpt-h3: 1.17rem;
  --tpt-section-title: 1.7rem;
  --tpt-meta-size: .78rem;
  --tn-layout-content: var(--tpt-article-width);
  font-family: var(--tpt-font);
}

/* 2. Shared article content widths and consistent editorial typography. */
body.tpt-schneetoni-typography :is(.tn-ow-article, .sw-article) {
  max-width: var(--tpt-article-card);
}
body.tpt-schneetoni-typography :is(
  .tn-ow-article__body, .tn-ow-article__footer, .tn-ow-article__lead,
  .sw-article__body, .sw-article__footer, .sw-article__lead
) {
  max-width: var(--tpt-article-width);
}
body.tpt-schneetoni-typography .tn-article__content > :not(.alignfull):not(.alignwide) {
  max-width: var(--tpt-article-width);
}
body.tpt-schneetoni-typography :is(
  .tn-article__title, .tn-ow-article__header h1, .sw-article__header h1
) {
  max-width: 100%;
  font-family: var(--tpt-font);
  font-size: var(--tpt-single-title);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.012em;
  overflow-wrap: break-word;
}
body.tpt-schneetoni-typography :is(
  .tn-article__content, .tn-ow-article__body, .sw-article__body
) {
  font-family: var(--tpt-font);
  font-size: var(--tpt-body-size);
  font-weight: 400;
  line-height: var(--tpt-body-leading);
  overflow-wrap: break-word;
}
body.tpt-schneetoni-typography :is(
  .tn-article__content, .tn-ow-article__body, .sw-article__body
) :is(p, ul, ol, blockquote) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
body.tpt-schneetoni-typography :is(
  .tn-article__content, .tn-ow-article__body, .sw-article__body
) h2 {
  font-family: var(--tpt-font);
  font-size: var(--tpt-h2);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.015em;
}
body.tpt-schneetoni-typography :is(
  .tn-article__content, .tn-ow-article__body, .sw-article__body
) h3 {
  font-family: var(--tpt-font);
  font-size: var(--tpt-h3);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
}
/* Extracts in the special child-theme article headers are not part of the body. */
body.tpt-schneetoni-typography :is(.tn-ow-article__lead, .sw-article__lead) {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-copy);
  font-weight: 400;
  line-height: var(--tpt-body-leading);
}

/* 3. Actual editorial card templates of parent and both special child themes. */
body.tpt-schneetoni-typography :is(
  .tn-card__title, .tn-ow-story:not(.tn-ow-story--lead) h3,
  .sw-story:not(.sw-story--lead):not(.sw-story--compact) h3,
  .wt-editorial-tile__title
) {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-title);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
body.tpt-schneetoni-typography :is(
  .tn-card__excerpt, .tn-card__excerpt p,
  .tn-ow-story__content > p, .sw-story__content > p,
  .wt-editorial-tile__excerpt
) {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-copy);
  font-weight: 300;
  line-height: 1.58;
  letter-spacing: .01em;
  overflow-wrap: break-word;
}
body.tpt-schneetoni-typography :is(
  .tn-topstory__title, .tn-ow-story--lead h3, .sw-story--lead h3
) {
  font-family: var(--tpt-font);
  font-size: var(--tpt-single-title);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.012em;
}
body.tpt-schneetoni-typography .tn-topstory__excerpt {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-copy);
  font-weight: 300;
  line-height: 1.58;
}
/* Small compact teasers remain smaller by role, never forced into lead size. */
body.tpt-schneetoni-typography .sw-story--compact h3 {
  font-family: var(--tpt-font);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.28;
}

/* Country home-page LEAD story uses wt-story (not wt-editorial-tile).
 * Legacy home.css has several font-size !important rules, so the two
 * explicit !important replacements below are unavoidable to guarantee
 * one canonical authority. These selectors cannot touch weather widgets. */
body.tpt-schneetoni-typography .wt-story--lead .wt-story__title {
  max-width: 100% !important;
  font-family: var(--tpt-font);
  font-size: var(--tpt-single-title) !important;
  font-weight: 700;
  line-height: 1.24 !important;
  letter-spacing: -.012em !important;
  overflow-wrap: break-word;
}
body.tpt-schneetoni-typography .wt-story--lead .wt-story__excerpt {
  max-width: 100% !important;
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-copy) !important;
  font-weight: 300;
  line-height: 1.58 !important;
}

/* 4. MISSING in 1.0.0: the real six-country regional pulse markup. */
body.tpt-schneetoni-typography .wt-regional-pulse {
  font-family: var(--tpt-font);
}
body.tpt-schneetoni-typography .wt-regional-pulse__head h2 {
  font-family: var(--tpt-font);
  font-size: var(--tpt-section-title);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.012em;
}
body.tpt-schneetoni-typography .wt-regional-pulse__head p {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-copy);
  font-weight: 400;
  line-height: 1.58;
}
body.tpt-schneetoni-typography .wt-regional-pulse__name {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-title);
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
body.tpt-schneetoni-typography .wt-regional-pulse__story {
  font-family: var(--tpt-font);
  font-size: var(--tpt-story-copy);
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}
body.tpt-schneetoni-typography .wt-regional-pulse__meta {
  font-family: var(--tpt-font);
  font-size: var(--tpt-meta-size);
  font-weight: 600;
  line-height: 1.35;
}
body.tpt-schneetoni-typography :is(
  .wt-regional-pulse__action, .wt-regional-pulse__all a
) {
  font-family: var(--tpt-font);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
}
/* Editorial headings only. WetterToni home.css uses font-size !important;
 * match it once here without changing weather modules or portal headers. */
body.tpt-schneetoni-typography .wt-editorial-heading h2 {
  font-family: var(--tpt-font);
  font-size: var(--tpt-section-title) !important;
  font-weight: 700;
  line-height: 1.24 !important;
  letter-spacing: -.012em !important;
}
body.tpt-schneetoni-typography :is(
  .tn-ow-editorial__head h2, .sw-section-head--editorial h2
) {
  font-family: var(--tpt-font);
  font-size: var(--tpt-section-title);
  font-weight: 700;
  line-height: 1.24;
}

/* 5. Ordinary editorial pages keep their deliberate page hierarchy. */
body.tpt-schneetoni-typography .tn-page-title {
  font-family: var(--tpt-font);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
}
body.tpt-schneetoni-typography .tn-page-content {
  max-width: 940px;
  font-family: var(--tpt-font);
  font-size: clamp(17px, 1.55vw, 19px);
  line-height: 1.72;
}
body.tpt-schneetoni-typography .tn-page-content h2 {
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.12;
}
body.tpt-schneetoni-typography .tn-page-content h3 {
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.18;
}
@media (max-width: 700px) {
  body.tpt-schneetoni-typography .tn-page-title {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
  }
  body.tpt-schneetoni-typography .tn-page-content {
    font-size: 17px;
    line-height: 1.58;
  }
}
