/* Artikelvisning. Eksisterende farver, typografi og kort genbruges. */
.hg-article { padding-block: var(--space-8); }
.hg-article__heading, .hg-article__body { max-width: 760px; margin-inline: auto; }
.hg-article__heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); overflow-wrap: anywhere; }
.hg-article__summary { font-size: var(--fs-lg); }
/* Den lange guideoverskrift skal kunne læses uden et enkelt slutbogstav på mobil. */
@media (max-width: 480px) {
  html:has(link[rel="canonical"][href="https://www.hergame.dk/articles/hvad-er-skiskydning"]) .hg-article__heading h1 {
    font-size: clamp(1.4rem, 6.5vw, 2rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}
.hg-article__figure { max-width: 960px; margin: var(--space-7) auto; }
.hg-article__figure--portrait { max-width: 600px; }
.hg-article__figure img { border-radius: var(--radius-lg); }
.hg-article__figure figcaption { color: var(--color-text-light); font-size: var(--fs-sm); margin-top: var(--space-3); }
.hg-article__body h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: var(--space-7); }
.hg-article__body p { overflow-wrap: anywhere; }
.hg-test-notice { padding: var(--space-4); border: 2px solid var(--color-primary); border-radius: var(--radius-sm); background: var(--color-surface-alt); margin-block: var(--space-5); }
.hg-story-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.hg-story-link:hover { color: inherit; }
.story[data-article="sofie-skott-dahl"] img { object-position: 50% 43%; }
/* Tekstbåret hovedhistorie: samme serif og farver, uden tom billedplads. */
.hg-hero-text h1 { max-width: 24ch; font-size: clamp(1.85rem, 4.5vw, 3.5rem); line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: none; }
.hg-hero-text > .container > p { max-width: 68ch; font-size: var(--fs-lg); }
.hg-empty { grid-column: 1 / -1; }
.hg-article-list { padding-block: var(--space-7); }
.hg-article__body ul, .hg-article__body ol { padding-left: 1.5rem; margin-bottom: var(--space-5); }
.hg-article__body ul { list-style: disc; }
.hg-article__body ol { list-style: decimal; }
.hg-article__body a, .hg-source a { text-decoration: underline; overflow-wrap: anywhere; }
.hg-illustration img { width: 100%; height: auto; }
.hg-comparison { width: 100%; table-layout: fixed; border-collapse: collapse; margin-block: var(--space-6); font-size: var(--fs-sm); }
.hg-comparison caption { text-align: left; font-weight: 600; padding-bottom: var(--space-3); }
.hg-comparison th, .hg-comparison td { padding: var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; }
.hg-comparison thead { background: var(--color-surface-alt); }
.hg-comparison__label { display: none; }
@media (max-width: 640px) {
  .hg-comparison caption { display: block; width: 100%; }
  .hg-comparison, .hg-comparison tbody, .hg-comparison tr, .hg-comparison td, .hg-comparison tbody th { display: block; width: 100%; }
  .hg-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hg-comparison tr { padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); }
  .hg-comparison th, .hg-comparison td { border: 0; padding: var(--space-1) 0; }
  .hg-comparison tbody th { color: var(--color-primary-dark); }
  .hg-comparison__label { display: inline; font-weight: 600; margin-right: .5em; }
  .hg-comparison__label::after { content: ':'; }
}
.hg-factbox { padding: var(--space-5); background: var(--color-surface-alt); border-left: 4px solid var(--color-primary); margin-block: var(--space-6); }
.skeleton-weekend .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skeleton-weekend .section-header p { max-width: 48rem; }
.skeleton-weekend .story img { width: 100%; height: 320px; object-fit: cover; }
.skeleton-weekend .theme-lead { grid-column: 1 / -1; }
.skeleton-weekend .theme-lead .hg-story-link { display: grid; grid-template-columns: 1fr 1fr; }
.skeleton-weekend .theme-lead img { height: 100%; min-height: 400px; max-height: 480px; }
.skeleton-weekend .theme-lead h3 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.25; }
@media (max-width: 640px) {
  .skeleton-weekend .stories-grid { grid-template-columns: 1fr; }
  .skeleton-weekend .story img { height: 260px; }
  .skeleton-weekend .theme-lead .hg-story-link { display: flex; }
  .skeleton-weekend .theme-lead img { height: 320px; min-height: 0; }
}
.hg-article__body blockquote { border-left: 4px solid var(--color-primary); padding-left: var(--space-5); margin-block: var(--space-6); }
.hg-article__body cite { display: block; }
.hg-source, .hg-original-links { max-width: 760px; margin: var(--space-7) auto; }
.hg-source { font-size: var(--fs-sm); }

/* Lang reportage genbruger artikeltypografien og lader billederne fylde mere. */
.hg-reportage .hg-article__heading { max-width: 900px; }
.hg-reportage > .hg-article__figure { margin-top: var(--space-6); }
.hg-reportage .hg-article__heading h1 { font-size: clamp(2.15rem, 5.4vw, 4.5rem); line-height: 1.12; overflow-wrap: normal; }
.hg-reportage > .hg-article__figure { max-width: 1200px; }
.hg-reportage .hg-article__body { max-width: none; }
.hg-reportage .hg-article__body > :is(p, h2, blockquote) { max-width: 720px; margin-inline: auto; }
.hg-reportage .hg-article__body > p { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.85; }
.hg-reportage .hg-article__body > h2 { margin-top: var(--space-8); margin-bottom: var(--space-5); }
.hg-reportage .hg-article__body > .hg-article__figure { max-width: 880px; margin-block: var(--space-8); }
.hg-reportage .hg-article__body > .hg-article__figure--portrait { max-width: 600px; }
.hg-reportage .hg-article__body blockquote { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.5; margin-block: var(--space-8); }

/* Text-bearing editorial graphics: intrinsic ratio at every breakpoint.
   Every selector is opt-in. Existing photograph crops/overlays stay unchanged. */
.hg-editorial-graphic img[data-image-type="editorial-graphic"] {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  align-self: start;
  transform: none;
}
.hero-feature.hg-editorial-graphic {
  display: block;
  min-height: 0;
  padding: 0;
}
.hero-feature.hg-editorial-graphic > img { border-radius: inherit; }
.hero-feature.hg-editorial-graphic > .hero-overlay {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  margin: 0;
  transform: none;
}
.sport-feature.hg-editorial-graphic { min-height: 0; }
