/* Reset and Core Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #3b5a8e; /* Deep blueish baseline */
    /* Added a subtle gradient to mimic the building's deep blue overlay */
    background: linear-gradient(180deg, #324c7a 0%, #1e3153 100%);
    color: #fff;
    min-height: 100vh;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Print Button Overlay */
.print-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.action-btn {
    background-color: #149441;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0, 0.4);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.action-btn:hover {
    box-shadow: 0 6px 15px rgba(0,0,0, 0.6);
    transform: translateY(-2px);
}

/* Main Container */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Janning Logo Area */
.logo-area {
    text-align: center;
    margin-bottom: 50px;
}
.brand-hex {
    width: 200px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}
.brand-text {
    font-size: 32px;
    line-height: 1.1;
    color: #000;
    text-shadow: 
        -2px -2px 0 #fff,  
         2px -2px 0 #fff,
        -2px  2px 0 #fff,
         2px  2px 0 #fff; /* White outline effect from the image */
    font-weight: 800;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -1px;
}

/* Page title & disclaimer under logo */
.aus-page-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 12px;
    margin-bottom: 4px;
    text-align: center;
}
.aus-disclaimer {
    font-size: 0.85em;
    color: #fbbf24;
    opacity: 0.9;
    text-align: center;
    line-height: 1.4;
}

/* Ribbons Setup */
.ribbons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Offset to the right slightly to allow 100% width feeling with a sharp clip-path edge */
    width: 100%;
}

/* Shadow filter wrapper for clip-path to drop shadows perfectly */
.shadow-filter {
    filter: drop-shadow(0px 8px 6px rgba(0, 0, 0, 0.3));
}

.ribbon {
    width: 100%;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 50px 50%); /* Inset `>` shape on the left */
    padding: 25px 30px 25px 70px; /* Right padding clears right edge, left clearing cutout */
    text-align: center;
    background: #000; /* Fallback */
}

/* Ensure the elements inside are nicely shaped */
.ribbon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ribbon h2 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

.pill-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pill-box {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
    font-weight: bold;
    font-size: 20px;
    padding: 10px 40px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.line-height-spaced {
    line-height: 1.4;
    font-size: 18px;
}

/* Ribbon Variables Map */
.ribbon-blue {
    background-color: #6bb0ea; /* Exact blue */
}
.pill-box.text-blue {
    background-color: #c9e2f9;
    color: #000;
}

.ribbon-lime {
    background-color: #b5cd40; /* Lime green */
}
.pill-box.text-lime {
    background-color: #e2ecc1;
    color: #000;
}

.ribbon-green {
    background-color: #5bb748; /* Grass green */
}
.pill-box.text-green {
    background-color: #bce1b2;
    color: #000;
}

.ribbon-red {
    background-color: #c74c43; /* Exact red */
}
.pill-box.text-red {
    background-color: #e5aaa6;
    color: #000;
}

/* ============================================================
   MOBILE RESPONSIVE (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {

    /* Container */
    .app-container {
        padding: 16px 8px;
    }

    /* Logo */
    .logo-area {
        margin-bottom: 24px;
    }
    .brand-hex {
        width: 140px !important;
    }
    .brand-text {
        font-size: 22px;
    }

    /* Ribbons */
    .ribbons-wrapper {
        gap: 16px;
    }
    .ribbon {
        padding: 16px 16px 16px 50px;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30px 50%);
    }
    .ribbon h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    /* Pill box */
    .pill-box {
        font-size: 15px;
        padding: 8px 18px;
        border-radius: 30px;
        word-break: break-word;
        text-align: center;
    }
    .line-height-spaced {
        font-size: 14px;
    }

    /* Print button */
    .print-actions {
        bottom: 12px;
        right: 12px;
    }
    .action-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Nav bar */
    .lang-change-bar {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* Print specific styles */
@media print {
    .print-hidden {
        display: none !important;
    }
    
    @page {
        size: A4 portrait;
        margin: 0; /* Fully bleed the background */
    }

    body {
        /* Must maintain precise colors for print */
        background-color: #2b5695 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .app-container {
        padding: 40px 10px;
        /* Scale down everything linearly if A4 requires it */
        zoom: 0.95;
    }

    .ribbon {
        padding: 20px 20px 20px 70px;
        margin-bottom: 5px;
        page-break-inside: avoid;
    }
    
    .ribbon h2 {
        font-size: 24px !important;
    }
    
    .pill-box {
        font-size: 18px !important;
    }
}
