/* ===================================================================
   ARTICLE STYLES - NO WRAPPER REQUIRED
   Works directly on elements - no parent container needed
   Last Updated: January 2026
   =================================================================== */

/* TYPOGRAPHY - HEADINGS
   Direct styling - no wrapper needed
   ------------------------------------------------------------------- */
h1 {
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 30px;
    line-height: 36px;
    color: #000;
    text-decoration: none;
    margin-top: 3px;
    margin-bottom: 6px;
    text-align: left;
}

h1:first-child {
    margin-top: 0;
}

h2 {
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 26px;
    color: #000;
    text-decoration: none;
    margin-top: 18px;
    margin-bottom: 6px;
    text-align: left;
    -webkit-text-size-adjust: 100%;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 20px;
    line-height: 32px;
    color: #000;
    text-decoration: none;
    margin-top: 7px;
    margin-bottom: 5px;
    text-align: left;
}

h3:first-child {
    margin-top: 0;
}

/* FAQ-style H3 headers */
h3.faq {
    color: #309;
    margin-top: 15px;
    margin-bottom: 12px;
}

h4 {
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 28px;
    color: #000;
    text-decoration: none;
    margin-top: 15px;
    margin-bottom: 8px;
    text-align: left;
}

/* TYPOGRAPHY - BODY TEXT
   ------------------------------------------------------------------- */
p {
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #000;
    text-decoration: none;
    margin-top: 6px;
    margin-bottom: 12px;
    text-align: left;
    -webkit-text-size-adjust: 100%;
}

p:last-child {
    margin-bottom: 0;
}

/* Blue Italic Subheading - YOUR SIGNATURE STYLE */
.subheading {
    color: #309;
    font-style: italic;
    font-weight: bold;
    font-size: 18px;
    line-height: 26px;
    margin: 9px 0 3px 0;
}

/* TYPOGRAPHY - INLINE ELEMENTS
   ------------------------------------------------------------------- */
strong {
    font-weight: bold;
    color: #000;
}

em {
    font-style: italic;
}

a:link {
    color: #00f;
    text-decoration: underline;
}

a:visited {
    color: #00f;
    text-decoration: underline;
}

a:hover {
    color: #c00;
    text-decoration: underline;
}

/* LISTS
   ------------------------------------------------------------------- */
ul,
ol {
    font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 32px;
    color: #000;
    text-decoration: none;
    margin-top: 12px;
    margin-bottom: 15px;
    padding-left: 30px;
    text-align: left;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0;
}

/* Nested lists */
ul ul,
ol ol,
ul ol,
ol ul {
    margin-top: 8px;
    margin-bottom: 0;
}

/* SECTIONS
   ------------------------------------------------------------------- */
section {
    margin-bottom: 30px;
}

section:last-of-type {
    margin-bottom: 20px;
}

/* MODERN FORMATTING ENHANCEMENTS
   These work anywhere - no wrapper needed
   ------------------------------------------------------------------- */

/* Quick Summary Box */
.quick-summary {
    background-color: #f0f8ff;
    border-left: 4px solid #309;
    padding: 15px 20px;
    margin: 20px 0;
}

.quick-summary h3 {
    color: #309;
    margin-top: 0;
    font-size: 18px;
}

/* Highlight/Callout Box */
.callout-box {
    background-color: #fffbf0;
    border: 1px solid #ffd700;
    border-radius: 4px;
    padding: 15px 20px;
    margin: 20px 0;
}

.callout-box h3,
.callout-box h4 {
    margin-top: 0;
    color: #c60;
}

/* Important Note Box */
.important-note {
    background-color: #fff5f5;
    border-left: 4px solid #c00;
    padding: 15px 20px;
    margin: 20px 0;
}

.important-note strong {
    color: #c00;
}

/* Key Points List */
.key-points {
    background-color: #f9f9f9;
    padding: 15px 20px 5px 40px;
    margin: 15px 0;
    border-radius: 4px;
}

.key-points li {
    margin-bottom: 10px;
}

/* Pro Tip Box */
.pro-tip {
    background-color: #f0fff4;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.pro-tip::before {
    content: "💡 Pro Tip: ";
    font-weight: bold;
    font-style: normal;
    color: #28a745;
}

/* Stats/Numbers Highlight */
.stat-highlight {
    font-size: 20px;
    font-weight: bold;
    color: #309;
    display: block;
    margin: 15px 0;
}

/* Provincial Info Grid */
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.province-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.province-card h4 {
    margin-top: 0;
    color: #309;
    font-size: 18px;
}

/* FOOTER
   ------------------------------------------------------------------- */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.article-footer em {
    font-style: italic;
}

/* RESPONSIVE DESIGN - TABLETS
   ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 28px;
        line-height: 34px;
    }
    
    h2 {
        font-size: 22px;
        line-height: 28px;
        margin-top: 16px;
    }
    
    h3 {
        font-size: 19px;
        line-height: 30px;
    }
    
    h4 {
        font-size: 17px;
        line-height: 26px;
    }
}

/* RESPONSIVE DESIGN - MOBILE
   ------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
        line-height: 30px;
    }
    
    h2 {
        font-size: 20px;
        line-height: 26px;
        margin-top: 15px;
    }
    
    h3 {
        font-size: 18px;
        line-height: 28px;
    }
    
    h4 {
        font-size: 16px;
        line-height: 24px;
    }
    
    p,
    ul,
    ol {
        font-size: 15px;
        line-height: 24px;
    }
    
    ul,
    ol {
        padding-left: 25px;
    }
    
    /* Mobile adjustments for enhanced elements */
    .subheading {
        font-size: 17px;
    }
    
    .quick-summary,
    .callout-box,
    .important-note,
    .pro-tip,
    .key-points {
        padding: 12px 15px;
        margin: 15px 0;
    }
    
    .province-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-highlight {
        font-size: 18px;
    }
}

/* PRINT STYLES
   ------------------------------------------------------------------- */
@media print {
    h2 {
        page-break-after: avoid;
    }
    
    h3,
    h4 {
        page-break-after: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}
