/* ==========================================================================
   SILODISPLAY FAMILY GROUP
   ========================================================================== */
@font-face {
    font-family: 'SiloDisplay'; /* MATCHES class selectors below */
    src: url('/static/fonts/SiloDisplay-Regular.woff2') format('woff2');
    font-weight: 400; /* Use standard numbers for consistency */
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ABCDIATYPE FAMILY GROUP
   ========================================================================== */
@font-face {
    font-family: 'ABCDiatype'; /* MATCHES class selectors below */
    src: url('/static/fonts/ABCDiatype-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatype';
    src: url('/static/fonts/ABCDiatype-RegularItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatype';
    src: url('/static/fonts/ABCDiatype-Bold.woff2') format('woff2'); /* FIXED: Changed trailing comma to a semicolon */
    font-weight: 700; /* FIXED: Changed from 800 to 700 to match your 'strong' style mapping below */
    font-style: normal; /* FIXED: 'bold' is not a valid font-style. Valid values are normal, italic, oblique */
    font-display: swap;
}

@font-face {
    font-family: 'ABCDiatype';
    src: url('/static/fonts/ABCDiatype-BoldItalic.woff2') format('woff2');
    font-weight: 700; /* FIXED: Changed from 800 to 700 to keep consistency with bold weights */
    font-style: italic;
    font-display: swap;
}


.note-editable,
.custom-description-box {
    font-family: 'SiloDisplay', -apple-system, sans-serif;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Ensure any nested elements inherit the correct font-family chosen by the dropdown */
.note-editable *,
.custom-description-box * {
    font-family: inherit;
}

/* ==========================================================================
   1. GLOBAL/DESKTOP STYLES
   ========================================================================== */

/* FIXED: Explicitly force bold tags to use font-weight 700 so the browser
   can pull your ABCDiatype-Bold.woff2 file instantly */
.note-editable strong,
.note-editable b,
.custom-description-box strong,
.custom-description-box b {
    font-weight: 700 !important;
}


/* ==========================================================================
   2. MOBILE VIEWPORT OVERRIDES (Screens under 767px wide)
   ========================================================================== */
@media screen and (max-width: 767px) {

  /* Forces the header text and the QR code to stack vertically so they don't clip horizontally */
  .qr-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Adds clean spacing between the text and the code box */
  .qr-container h3 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  /* Ensures the base64 generated QR image fits cleanly on small phone displays */
  .qr-container img {
    max-width: 280px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

} /* End of mobile media query */

.tittel {
    color: #FFF;
    font-family: 'SiloDisplay', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h2.header1 {
    color: #000;
    font-family: 'ABCDiatype', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h5.header2 {
    color: #000;
    font-family: 'ABCDiatype', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}

h6.Kunstnernavn {
    color: #000;
    font-family: 'SiloDisplay', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

li.Kunstnernavn {
    color: #000;
    font-family: 'SiloDisplay', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


p.info {
    font-family: 'ABCDiatype', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    display: block;
    text-align: left;
    margin-left: 0;   /* REMOVED 5px to ensure perfect alignment with the image left edge */
    margin-right: 0;  /* REMOVED 16px so the text can use the full width of the image container */
    margin-bottom: 0; /* Prevents unwanted bottom spacing before the button zone */
}


.stembutton {
    display: inline-flex;
    height: 44px;
    width: 100%;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    background: #000;
    color: #FFF;
    text-align: center;
    border: none;
    font-family: 'ABCDiatype', sans-serif; /* FIXED: Matched exact name from @font-face and removed space */
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
