/**
 * ATGourmet — fælles kontrast (offentlig canvas + lyse flader + admin).
 * MudTheme: AtgTheme.cs (Background, Surface, TextPrimary, TextSecondary).
 */

:root {
    --atg-on-canvas: #f6efe4;
    --atg-on-canvas-muted: #e8dece;
    --atg-on-surface: #1a1410;
    --atg-on-surface-soft: #2e2720;
    --atg-on-surface-muted: #52483f;
    --atg-eyebrow-on-canvas: #e3c99a;
    --atg-eyebrow-on-surface: #2c241d;
    --atg-link-on-surface: #7a3b2a;
    --atg-link-on-canvas: #e3c99a;
    --atg-input-border-surface: rgba(26, 20, 16, 0.42);
    --atg-footer-muted: #d4c8b0;
    --atg-footer-link: #e3c99a;
}

/* ========== Offentlig: mørk canvas ========== */
.atg-public-template-shell .atg-main-content {
    color: var(--atg-on-canvas);
}

.atg-public-template-shell .atg-page-hero,
.atg-public-template-shell .atg-home-hero,
.atg-public-template-shell .atg-hero {
    color: var(--atg-on-canvas);
}

.atg-public-template-shell .atg-main-content .atg-section-intro .atg-section-title,
.atg-public-template-shell .atg-main-content .atg-home-menus-intro .atg-section-title {
    color: var(--atg-on-canvas);
}

.atg-public-template-shell .atg-main-content .atg-section-intro .atg-section-lead,
.atg-public-template-shell .atg-main-content .atg-section-intro .atg-section-copy,
.atg-public-template-shell .atg-main-content .atg-home-menus-intro .atg-section-lead,
.atg-public-template-shell .atg-main-content .atg-home-menus-intro .atg-section-copy {
    color: var(--atg-on-canvas-muted);
}

.atg-public-template-shell .atg-page-hero .atg-eyebrow,
.atg-public-template-shell .atg-home-hero .atg-eyebrow,
.atg-public-template-shell .atg-main-content .atg-section-intro .atg-eyebrow,
.atg-public-template-shell .atg-main-content .atg-home-menus-intro .atg-eyebrow {
    color: var(--atg-eyebrow-on-canvas);
}

.atg-public-template-shell .atg-main-content .atg-section-intro a:not(.mud-button-root),
.atg-public-template-shell .atg-main-content .atg-home-menus-intro a:not(.mud-button-root) {
    color: var(--atg-link-on-canvas);
}

/* Lyse sektionsbånd (citatvæg m.m.) — ikke canvas-typografi */
.atg-references-wall-section,
.atg-delivery-questions-section {
    color: var(--atg-on-surface);
}

.atg-references-wall-section .atg-section-intro .atg-section-title,
.atg-delivery-questions-section .atg-section-intro .atg-section-title {
    color: var(--atg-on-surface) !important;
}

.atg-references-wall-section .atg-section-intro .atg-eyebrow,
.atg-delivery-questions-section .atg-section-intro .atg-eyebrow {
    color: var(--atg-eyebrow-on-surface) !important;
}

.atg-public-template-shell .atg-main-content [class$="-quote-card"] .atg-eyebrow {
    color: var(--atg-eyebrow-on-surface) !important;
}

/* CTA / footer på mørk baggrund */
.atg-cta-section,
.atg-cta-section .atg-cta-title,
.atg-cta-section .atg-cta-copy {
    color: var(--atg-on-canvas);
}

.atg-cta-section .atg-cta-eyebrow {
    color: var(--atg-eyebrow-on-canvas);
}

.atg-footer {
    color: var(--atg-footer-muted);
}

.atg-footer .atg-footer-heading,
.atg-footer .atg-footer-address,
.atg-footer .atg-footer-links-row,
.atg-footer .atg-footer-legal {
    color: var(--atg-footer-muted);
}

.atg-footer a {
    color: var(--atg-footer-link);
}

/* ========== Lyse overflader (vigtig: højere specificitet end canvas) ========== */
.atg-public-template-shell .atg-main-content .atg-surface-elevated,
.atg-public-template-shell .atg-main-content .atg-legal-article,
.atg-legal-article {
    background: var(--atg-elevated-surface, #fffdf9);
    color: var(--atg-on-surface-soft, #2e2720);
}

.atg-legal-article .atg-legal-heading,
.atg-legal-block p,
.atg-legal-list {
    color: var(--atg-on-surface-soft, #2e2720);
}

.atg-form-data-notice {
    color: var(--atg-on-surface-muted, #5c534c);
}

.atg-public-template-shell .atg-main-content .atg-quote-panel,
.atg-public-template-shell .atg-main-content .atg-newsletter-panel,
.atg-public-template-shell .atg-main-content .atg-public-intro-card,
.atg-public-template-shell .atg-main-content .atg-public-note-card,
.atg-surface-elevated,
.atg-quote-panel,
.atg-newsletter-panel,
.atg-public-intro-card,
.atg-public-note-card {
    color: var(--atg-on-surface) !important;
}

.atg-public-template-shell .atg-main-content .atg-surface-elevated .atg-eyebrow,
.atg-public-template-shell .atg-main-content .atg-quote-panel .atg-eyebrow,
.atg-public-template-shell .atg-main-content .atg-newsletter-panel .atg-eyebrow,
.atg-public-template-shell .atg-main-content [class$="-story-card"] .atg-eyebrow,
.atg-surface-elevated .atg-eyebrow,
.atg-quote-panel .atg-eyebrow,
.atg-newsletter-panel .atg-eyebrow {
    color: var(--atg-eyebrow-on-surface) !important;
}

.atg-public-template-shell .atg-main-content .atg-public-intro-card .atg-prose-course-heading,
.atg-public-template-shell .atg-main-content .atg-surface-elevated .atg-section-title,
.atg-public-template-shell .atg-main-content .atg-newsletter-panel .atg-newsletter-title,
.atg-public-template-shell .atg-main-content .atg-quote-panel .atg-quote-panel-heading,
.atg-public-template-shell .atg-main-content [class$="-story-card"] .atg-section-title,
.atg-surface-elevated .atg-newsletter-title,
.atg-surface-elevated .mud-typography-h4,
.atg-surface-elevated .mud-typography-h6 {
    color: var(--atg-on-surface) !important;
}

.atg-public-template-shell .atg-main-content .atg-surface-elevated .atg-section-lead,
.atg-public-template-shell .atg-main-content .atg-newsletter-panel .atg-newsletter-lead,
.atg-public-template-shell .atg-main-content .atg-public-intro-card .atg-public-lead-copy,
.atg-public-template-shell .atg-main-content .atg-public-intro-card .atg-festmenu-footnote,
.atg-public-template-shell .atg-main-content .atg-public-note-card p,
.atg-public-template-shell .atg-main-content [class$="-story-card"] .atg-section-lead,
.atg-surface-elevated .atg-newsletter-lead,
.atg-surface-elevated .mud-typography-body1,
.atg-surface-elevated .mud-typography-body2,
.atg-quote-panel .mud-typography-body2 {
    color: var(--atg-on-surface-soft) !important;
}

.atg-public-template-shell .atg-main-content .atg-surface-elevated .mud-input-label,
.atg-public-template-shell .atg-main-content .atg-quote-panel .mud-input-label,
.atg-public-template-shell .atg-main-content .atg-newsletter-panel .mud-input-label,
.atg-surface-elevated .mud-input-slot,
.atg-quote-panel .mud-input-slot {
    color: var(--atg-on-surface) !important;
}

.atg-public-template-shell .atg-main-content .atg-surface-elevated .mud-input-outlined .mud-input-outlined-border,
.atg-public-template-shell .atg-main-content .atg-quote-panel .mud-input-outlined .mud-input-outlined-border,
.atg-public-template-shell .atg-main-content .atg-newsletter-panel .mud-input-outlined .mud-input-outlined-border {
    border-color: var(--atg-input-border-surface) !important;
}

.atg-public-template-shell .atg-main-content [class$="-quote-card"] blockquote,
.atg-public-template-shell .atg-main-content [class$="-quote-card"] cite {
    color: var(--atg-on-surface-soft) !important;
}

.atg-public-template-shell .atg-main-content .atg-surface-elevated a:not(.mud-button-root),
.atg-public-template-shell .atg-main-content .atg-quote-panel a:not(.mud-button-root),
.atg-public-template-shell .atg-main-content .atg-newsletter-panel a:not(.mud-button-root) {
    color: var(--atg-link-on-surface);
}

.atg-about-fact-card .atg-link,
.atg-contact-story-card .atg-contact-quick-card a,
.atg-contact-story-card .atg-contact-quick-card .mud-link {
    color: var(--atg-on-surface) !important;
}

.atg-about-fact-card span,
.atg-contact-quick-card span,
.atg-references-fact-card span,
.atg-delivery-fact-card span {
    color: var(--atg-eyebrow-on-surface) !important;
}

/* ========== Admin ========== */
.mud-layout.atg-admin-template-shell,
.mud-layout.atg-admin-template-shell .mud-main-content,
.mud-layout.atg-admin-template-shell main.atg-admin-workspace {
    color: var(--mud-palette-text-primary);
}

.mud-layout.atg-admin-template-shell main.atg-admin-workspace .mud-secondary-text,
.mud-layout.atg-admin-template-shell main.atg-admin-workspace .mud-typography-color-secondary,
.mud-layout.atg-admin-template-shell main.atg-admin-workspace .mud-typography-body2.mud-secondary-text {
    color: var(--mud-palette-text-secondary) !important;
}