/*
 * Store Dage (site "storedage", rootpid 846) — site-specifikke rettelser.
 * Indlæses kun på dette site via headerData.382 i
 * Configuration/TypoScript/setup.typoscript.
 */

/*
 * Fonte (kundeønske 2026-10-15): "Bodoni Moda" til overskrifter,
 * "Poppins" til brødtekst. Selve fontene hentes fra Google Fonts i
 * headerData.382 (samme måde som sitets øvrige fonte).
 *
 * Sitets nuværende font sættes af en regel i databasen (sys_template):
 *   *{font-family:"Playfair Display",sans-serif !important}
 * Den har specificitet 0,0,0 og !important, så den vinder over alt
 * uden !important. Reglerne her bruger derfor også !important, men med
 * højere specificitet:
 *   body *                → 0,0,1  (slår "*")
 *   body :is(h1…) og *    → 0,0,2  (slår "body *" for overskrifter og
 *                                   alt inde i dem, fx <span>/<a>)
 */
body,
body * {
    font-family: "Poppins", sans-serif !important;
}

body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) * {
    font-family: "Bodoni Moda", serif !important;
}

/*
 * Overskriftsvægt (kundeønske 2026-10-27): designmanualens "Regular medium"
 * = 500. bootstrap_package sætter 300, som Bodoni Moda (400-900) runder op
 * til 400 - for tyndt i de store størrelser.
 */
body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    font-weight: 500 !important;
}

/*
 * De tynde streger (kundens opfølgning 2026-10-27) skyldes ikke vægten,
 * men Bodoni Modas optical size-akse (opsz 6-96): i store størrelser
 * vælger browseren selv opsz 96 med de tyndeste hårstreger. Låst til 11
 * (fontens tekst-variant), som har tydeligt kraftigere tynde streger.
 */
body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6),
body :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) * {
    font-optical-sizing: none !important;
    font-variation-settings: "opsz" 11 !important;
}

/*
 * Tredje font (kundeønske 2026-10-27): "Meow Script" til enkelte ord som
 * grafisk element. Sættes i RTE'en med stilen "Script (Meow Script)", som
 * giver <span class="text-script">. "html body" (0,1,2) slår overskrifts-
 * reglen ovenfor (0,1,1). Fonten findes kun i vægt 400.
 */
html body .text-script,
html body .text-script * {
    font-family: "Meow Script", cursive !important;
    font-weight: 400 !important;
}

/*
 * Nyhedslisten på "Bryllup" (pid 873, kundeønske 2026-11-16):
 * første nyhed (newsIndex0) brun baggrund med hvid tekst og links,
 * anden nyhed (newsIndex1) brune links.
 * messe_site/theme.scss sætter newsIndex0 til var(--default)/var(--primary)
 * med !important (0,3,2); body#p873 (1,3,2) slår den.
 */
body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex0 {
    background-color: #411118 !important;
}

body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex0,
body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex0 *,
body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex0 a,
body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex0 a * {
    color: #fff !important;
}

body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex0 .btn-text:before {
    background-color: #fff !important;
}

body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex1 a,
body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex1 a * {
    color: #411118 !important;
}

body#p873 .custom-news-list-container.frontpage .custom-news-list-3col.newsIndex1 .btn-text:before {
    background-color: #411118 !important;
}
