/* ==========================================================================
   DINGHY SAILING 101 - 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;
}

