/* ==========================================================================
   Layline - PUBLII COMPATIBILITY THEME OVERRIDE
   ========================================================================== */

/* 1. Global Reset & Base Setup */
html, body {
    margin: 0;
    padding: 0;
    background-color: transparent !important; /* Forces the iframe to inherit the main site's canvas color */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    color: #333333; /* Update this hex to match your text color if using a dark theme */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 2. Page Typography Integration */
h1, h2, h3, h4, h5, h6 {
    color: #111111;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 0.3rem; }
h3 { font-size: 1.35rem; }

/* 3. Layout Restructuring (Simulating a Publii Content Container) */
.course-container, main, #wrapper {
    max-width: 800px; /* Publii's default text column standard for perfect readability */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

/* 4. Styled Component Elements */
a {
    color: #0066cc; /* Switch to your primary theme brand blue/accent color */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
}

/* Course Syllabus List Styles */
ol, ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.btn, 
button, 
.start-button {
    /* Layout & Alignment */
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    
    /* Structure & Sizing */
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    
    /* Shape & Borders: Sharp rectangular corners */
    border-radius: 0; 
    border: 1px solid #0066cc;
    
    /* Core Branding Colors: Solid Blue with White Text */
    background-color: #0066cc; 
    color: #ffffff !important;
    
    /* Transition Profile */
    will-change: transform;
    transition: all 0.24s ease-out;
}

/* Strict Color Inversion Hover, Active, and Focus States */
.btn:hover, 
button:hover,
.start-button:hover,
.btn:active, 
button:active,
.start-button:active,
.btn:focus, 
button:focus,
.start-button:focus {
    /* Action: Blue becomes White, White becomes Blue */
    background-color: #ffffff; 
    border-color: #0066cc;
    color: #0066cc !important; 
    text-decoration: none;
}

/* Mobile Responsiveness Strategy */
@media (max-width: 19.9375em) {
    .btn, 
    button, 
    .start-button {
        width: 100%;
    }
}


/* ==========================================================================
   FORCE UNIVERSAL GEOMETRIC SQUARED OVERRIDE
   ========================================================================== */

/* Target every element, pseudo-element, and structural layout wrap */
*, 
*:before, 
*:after, 
html, 
body, 
div, 
span, 
main, 
section, 
article, 
img, 
a, 
button, 
.btn, 
.button, 
.start-button, 
input, 
select, 
textarea {
    border-radius: 0px !important;
    -webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
}



/* Map specific styling */
#map {
  background-color: #e5e9f0;
  border: 1px dashed #ccd4e0;
  height: 910px;
}

/* ==========================================================================
   MOBILE FOOTER RESIZING FOR THE 0.5 VIEWPORT SCALE
   ========================================================================== */

/* Target mobile devices where the 0.5 viewport compresses the layout */
@media (max-width: 768px) {
    
    /* 1. Double the padding and text sizes inside the footer */
    #footer-placeholder footer, 
    #footer-placeholder .brand-footer,
    footer, 
    .brand-footer {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        font-size: 28px !important; /* Doubles the base text visibility */
        line-height: 1.6 !important;
    }

    /* 2. Scale up any headings inside the footer */
    #footer-placeholder h1, #footer-placeholder h2, #footer-placeholder h3, #footer-placeholder h4, #footer-placeholder h5, #footer-placeholder h6,
    footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
        font-size: 36px !important;
        margin-bottom: 20px !important;
    }

    /* 3. Scale up links and list items */
    #footer-placeholder a, 
    #footer-placeholder li,
    footer a, 
    footer li {
        font-size: 28px !important;
        padding: 10px 0 !important; /* Makes links easier to tap on mobile */
    }

    /* 4. Scale up icons inside the footer if you have them */
    #footer-placeholder i, 
    footer i {
        font-size: 32px !important;
    }
}

