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

/* 5. Clean, Native Buttons */
.btn, button, .start-button {
    display: inline-block;
    background-color: #0066cc; /* Match primary action accent color */
    color: #ffffff !important;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover, button:hover {
    background-color: #004499; /* Deepened variant on hover states */
    text-decoration: none;
}
/* ==========================================================================
   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;
}

