/* The web faces are served with the edition, including both numeral systems. */
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("tiran-sans-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("tiran-kufi-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Tiran Figures";
  src: url("noto-sans-mono-figures-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0025, U+002B-003A, U+066A-066C, U+2013-2014, U+2212;
}
@font-face {
  font-family: "Tiran Figures";
  src: url("noto-sans-mono-figures-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0025, U+002B-003A, U+066A-066C, U+2013-2014, U+2212;
}
@font-face {
  font-family: "Tiran Figures";
  src: url("tiran-arabic-indic-figures.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0660-0669, U+06F0-06F9;
}

:root {
  --tiran-interface: "Noto Sans Arabic", system-ui, Arial, sans-serif;
  --tiran-display: "Noto Kufi Arabic", var(--tiran-interface);
  --tiran-figures: "Tiran Figures", var(--tiran-interface);
  --type-caption: .875rem;
  --type-label: .9375rem;
  --type-data: 1rem;
  --type-card-title: clamp(1.1875rem, 1.06rem + .56vw, 1.55rem);
}

#main :is(h1, h2), .dialog-head h2 {
  font-family: var(--tiran-display);
  font-weight: 700;
  line-height: 1.58;
  letter-spacing: normal;
}
#main :is(h1, h2, h3, h4) { overflow-wrap: anywhere; }
#main h1 { text-wrap: balance; }
#main :is(h3, h4) {
  font-family: var(--tiran-interface);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: normal;
}
#main :is(.story-card, .news-brief) h3, #main .opinion-card h2 {
  font-family: var(--tiran-interface);
  font-size: var(--type-card-title);
  text-wrap: pretty;
}
#main .news-cover h1 { font-size: clamp(1.95rem, 1.24rem + 3vw, 3.85rem); }
#main .reading-words h1 { font-size: clamp(1.85rem, 1.24rem + 2.6vw, 3.45rem); }
#main .edition-panel h1 em { margin: 0; font: inherit; }
#main .dossier-kicker { font-family: var(--tiran-display); line-height: 1.65; }

.reading-story { --prose-size: clamp(1.3125rem, 1.24rem + .35vw, 1.4375rem); }
.reading-story.large-text { --prose-size: clamp(1.625rem, 1.55rem + .45vw, 1.8125rem); }
#main .reading-prose > p, #main .article-copy > p {
  font: 450 var(--prose-size, 1.3125rem)/1.9 var(--tiran-interface);
  letter-spacing: normal;
  text-align: start;
  overflow-wrap: break-word;
}
#main .reading-prose > p + p { margin-block-start: .92em; }
#main .reading-prose > h2 {
  margin-block: 1.35em .4em;
  font-size: clamp(1.5rem, 1.32rem + .65vw, 2rem);
  color: var(--reading-pine);
}
#main .reading-dek, #main .story-subtitle {
  font: 500 clamp(1.15rem, 1.08rem + .42vw, 1.4rem)/1.85 var(--tiran-interface);
}
.reading-tools .reading-text-size {
  padding-inline: .85rem;
  gap: .4em;
  font-size: 1rem;
  font-weight: 600;
}
.reading-tools .reading-text-size[aria-pressed="true"] {
  color: #fff;
  background: #123e2d;
  border-color: #123e2d;
}
.reading-text-size[aria-pressed="true"]::before { content: "✓" / ""; }

/* Use aligned figures only for data. Team and player names keep the text face. */
#main :is(.md-score, .mc-score, .home-match-score, .lt-jump-points bdi,
          .reading-score > b, .pl-figures dd, .st-metric strong,
          .st-table tbody td, .home-league tbody td, .year-nav a, .archive-year > h2),
#main .brief-scorecard > div > bdi {
  font-family: var(--tiran-figures);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: normal;
}
#main .st-scorers .side-team { font-family: var(--tiran-interface); }
