/* =========================================================
   GENERAL SETTINGS
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #263238;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    background: #173f2a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.top-bar-content {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    min-height: 125px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand img {
    width: 240px;
    height: auto;
    object-fit: contain;
}


.office-label {
    display: block;

    color: #667085;
    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1px;

    margin-bottom: 4px;
}

.brand h1 {
    color: #173f2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 29px;
    line-height: 1.1;
}

.brand p {
    margin-top: 6px;

    color: #667085;
    font-size: 13px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;

    z-index: 100;
}

.nav-menu {
    list-style: none;

    display: flex;
    align-items: center;

    gap: 5px;
}

.nav-menu a {
    display: block;

    padding: 16px 15px;

    color: #344054;

    font-size: 14px;
    font-weight: 600;

    border-bottom: 3px solid transparent;

    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #173f2a;
    border-bottom-color: #173f2a;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #173f2a 0%,
            #225b3d 60%,
            #2d714c 100%
        );

    color: #ffffff;

    padding: 90px 0;
}

.hero-content {
    display: grid;

    grid-template-columns: 1.5fr 0.8fr;

    gap: 70px;

    align-items: center;
}

.hero-label {
    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    opacity: 0.8;
}

.hero h2 {
    margin-top: 18px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 54px;
    line-height: 1.1;
}

.hero h2 span {
    color: #d7eadc;
}

.hero-text > p {
    max-width: 650px;

    margin-top: 25px;

    color: #e4eee7;

    font-size: 17px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-block;

    padding: 13px 22px;

    border-radius: 4px;

    font-size: 14px;
    font-weight: bold;

    transition: 0.2s;
}

.primary-button {
    background: #ffffff;
    color: #173f2a;
}

.primary-button:hover {
    background: #e9f1eb;
}

.secondary-button {
    border: 1px solid rgba(255,255,255,0.5);

    color: #ffffff;
}

.secondary-button:hover {
    background: rgba(255,255,255,0.1);
}


/* =========================================================
   HERO CARD
========================================================= */

.hero-card {
    padding: 35px;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 8px;
}

.hero-card-icon {
    font-size: 42px;

    margin-bottom: 20px;
}

.hero-card h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 26px;

    line-height: 1.2;
}

.hero-card p {
    margin-top: 15px;

    color: #dce9e0;

    font-size: 14px;
}


/* =========================================================
   SECTION BASICS
========================================================= */

.content-section {
    padding: 90px 0;
}

.light-section {
    background: #f6f8f6;
}

.dark-section {
    background: #173f2a;
    color: #ffffff;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading.centered {
    text-align: center;
}

.section-label {
    display: block;

    color: #2d714c;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.dark-section .section-label {
    color: #b8d8c2;
}

.section-heading h2,
.two-column h2 {
    font-family: Georgia, "Times New Roman", serif;

    color: #173f2a;

    font-size: 38px;

    line-height: 1.2;
}

.dark-section .section-heading h2 {
    color: #ffffff;
}

.section-heading p {
    max-width: 650px;

    margin: 14px auto 0;

    color: #667085;
}

.dark-section .section-heading p {
    color: #d6e2da;
}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-access {
    padding: 85px 0;
}

.card-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.portal-card {
    position: relative;

    display: grid;

    grid-template-columns: 55px 1fr 20px;

    gap: 20px;

    align-items: start;

    padding: 30px;

    border: 1px solid #e4e7ec;

    background: #ffffff;

    border-radius: 6px;

    transition: 0.25s;
}

.portal-card:hover {
    border-color: #2d714c;

    transform: translateY(-3px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.card-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f1eb;

    color: #173f2a;

    border-radius: 5px;

    font-size: 24px;
}

.portal-card h3 {
    color: #173f2a;

    font-size: 19px;
}

.portal-card p {
    margin-top: 7px;

    color: #667085;

    font-size: 14px;
}

.card-arrow {
    color: #2d714c;

    font-size: 22px;
}


/* =========================================================
   TWO COLUMN LAYOUT
========================================================= */

.two-column {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.two-column p {
    margin-top: 18px;

    color: #667085;
}

.text-link {
    display: inline-block;

    margin-top: 25px;

    color: #2d714c;

    font-weight: bold;

    font-size: 14px;
}


/* =========================================================
   INFO PANEL
========================================================= */

.info-panel {
    padding: 35px;

    background: #ffffff;

    border-left: 4px solid #2d714c;

    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.info-panel h3 {
    color: #173f2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 24px;

    margin-bottom: 20px;
}

.check-list {
    list-style: none;
}

.check-list li {
    padding: 10px 0;

    border-bottom: 1px solid #eaecf0;

    color: #475467;

    font-size: 14px;
}

.check-list span {
    color: #2d714c;

    font-weight: bold;

    margin-right: 10px;
}


/* =========================================================
   DOCUMENT CARDS
========================================================= */

.document-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.document-card {
    padding: 32px;

    border: 1px solid #e4e7ec;

    background: #ffffff;

    border-radius: 6px;
}

.document-number {
    color: #98a2b3;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1px;
}

.document-card h3 {
    margin-top: 18px;

    color: #173f2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 21px;

    line-height: 1.3;
}

.document-card p {
    margin-top: 15px;

    color: #667085;

    font-size: 14px;
}

.document-card a {
    display: inline-block;

    margin-top: 20px;

    color: #2d714c;

    font-size: 13px;

    font-weight: bold;
}


/* =========================================================
   STATISTICS
========================================================= */

.statistics-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-top: 50px;
}

.stat-card {
    padding: 30px;

    text-align: center;

    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.05);

    border-radius: 5px;
}

.stat-card strong {
    display: block;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 40px;

    color: #ffffff;
}

.stat-card span {
    display: block;

    margin-top: 5px;

    color: #cbdacf;

    font-size: 13px;
}

.center-button {
    text-align: center;

    margin-top: 40px;
}


/* =========================================================
   GIS SECTION
========================================================= */

.gis-section {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 gap: clamp(36px, 5vw, 64px);
}

.tableau-map {
    width: 100%;
    height: clamp(600px, 65vw, 900px);
    margin: 0 auto;
}

.tableau-map tableau-viz {
    display: block;
    width: 100%;
    height: 100%;
}

.map-placeholder {
    position: relative;

    min-height: 400px;

    overflow: hidden;

    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #e8f1eb,
            #d6e7db
        );
}

.map-grid {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(23,63,42,0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(23,63,42,0.08) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
}

.map-marker {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: #173f2a;

    font-size: 80px;
}

.map-label {
    position: absolute;

    bottom: 20px;
    left: 20px;

    padding: 8px 12px;

    background: rgba(255,255,255,0.9);

    color: #173f2a;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1px;
}

.gis-links {
    margin-top: 25px;
}

.gis-links a {
    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-bottom: 1px solid #eaecf0;

    color: #344054;

    font-size: 14px;
}

.gis-links a:hover {
    color: #2d714c;
}


/* =========================================================
   DASHBOARDS
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 40px;
}

.dashboard-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;

    border-radius: 6px;
}

.dashboard-header {
    height: 100px;

    display: flex;
    align-items: flex-end;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #dce9df,
            #edf4ef
        );
}

.dashboard-tag {
    padding: 5px 9px;

    background: #173f2a;

    color: #ffffff;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1px;
}

.dashboard-body {
    padding: 25px;
}

.dashboard-body h3 {
    color: #173f2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;
}

.dashboard-body p {
    margin-top: 12px;

    color: #667085;

    font-size: 14px;
}

.dashboard-body a {
    display: inline-block;

    margin-top: 20px;

    color: #2d714c;

    font-size: 13px;
    font-weight: bold;
}


/* =========================================================
   NEWS
========================================================= */

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.news-card {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 20px;

    padding: 25px;

    border: 1px solid #e4e7ec;

    border-radius: 6px;
}

.news-date {
    text-align: center;

    color: #667085;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1px;
}

.news-date span {
    display: block;

    color: #173f2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 30px;

    line-height: 1;
}

.news-category {
    color: #2d714c;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 1px;
}

.news-card h3 {
    margin-top: 7px;

    color: #173f2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 20px;

    line-height: 1.25;
}

.news-card p {
    margin-top: 10px;

    color: #667085;

    font-size: 13px;
}

.news-card a {
    display: inline-block;

    margin-top: 15px;

    color: #2d714c;

    font-size: 12px;
    font-weight: bold;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #102d1f;

    color: #ffffff;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1.2fr;

    gap: 50px;

    padding: 65px 0;
}

.footer h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 21px;
}

.footer h4 {
    margin-bottom: 15px;

    color: #c5d8cb;

    font-size: 12px;

    letter-spacing: 1px;
}

.footer p {
    margin-top: 10px;

    color: #aebfb4;

    font-size: 13px;
}

.footer a {
    display: block;

    margin: 8px 0;

    color: #aebfb4;

    font-size: 13px;
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 900px) {

    .hero-content {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .document-grid,
    .dashboard-grid,
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .statistics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu {
        overflow-x: auto;
    }

}


@media (max-width: 600px) {

    .top-bar-content {
        display: none;
    }

    .header-content {
        min-height: 100px;
    }

    .brand h1 {
        font-size: 21px;
    }

    .logo-placeholder {
        width: 55px;
        height: 55px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .card-grid,
    .document-grid,
    .dashboard-grid,
    .news-grid,
    .statistics-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .quick-access {
        padding: 60px 0;
    }

    .section-heading h2,
    .two-column h2 {
        font-size: 30px;
    }

}
.tableau-map {
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.dashboard-container {
    overflow: hidden;

    margin-top: 40px;
}

.dashboard-container iframe {
    display: block;
    max-width: 100%;
}

@media (max-width: 600px) {

    .tableau-map {
        height: 600px;
    }

    .brand {
        gap: 12px;
        align-items: flex-start;
    }

    .brand img {
        width: 72px;
    }

    .brand-text {
        min-width: 0;
    }

    .office-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

}
section[id], main[id] { scroll-margin-top: 90px; }
a:focus-visible { outline: 3px solid #b97918; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 18px; background: #fff; color: #173f2a; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.embed-link { display: inline-block; margin-top: 16px; color: #2d714c; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.two-column > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Provincial indicators: readable, sourced records at every screen width. */
.indicator-context { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; color:#d8e7dc; font-size:13px; }
.indicator-intro { max-width:760px; margin:22px auto 32px; text-align:center; color:#cbdacf; font-size:14px; }
.indicators-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.indicator-card { min-width:0; padding:26px; display:flex; flex-direction:column; background:#fff; color:#173f2a; border-radius:12px; border-top:4px solid #d9b96c; }
.indicator-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px; }
.indicator-index { color:#58745f; font-size:12px; font-weight:700; }
.indicator-period { border-radius:20px; background:#eef4ef; color:#365840; padding:5px 10px; font-size:12px; }
.indicator-card h3 { font-size:16px; line-height:1.4; min-height:45px; font-weight:600; }
.indicator-card .indicator-value { margin:14px 0; color:#173f2a; font-family:Georgia,serif; font-size:clamp(30px,3.1vw,42px); font-variant-numeric:tabular-nums; line-height:1.15; overflow-wrap:anywhere; }
.indicator-value span { display:block; margin-top:6px; font-family:Arial,sans-serif; font-size:15px; color:#58745f; }
.indicator-description { color:#58675e; font-size:13px; line-height:1.65; margin-bottom:22px; }
.indicator-source { margin-top:auto; padding-top:15px; border-top:1px solid #e1e9e3; font-size:12px; line-height:1.5; color:#28633e; text-decoration:underline; text-underline-offset:3px; }
.indicator-footnote { margin-top:28px; padding-left:18px; border-left:2px solid #d9b96c; color:#cfdfd3; font-size:12px; line-height:1.8; }
.indicator-footnote p+p { margin-top:8px; }
@media(max-width:900px) { .indicators-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .indicators-grid { grid-template-columns:minmax(0,1fr); } .indicator-card h3 { min-height:0; } .indicator-context { flex-direction:column; align-items:center; text-align:center; } }

/* Population and housing */
.housing-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.housing-summary article { padding:24px; border-top:3px solid #c4a357; background:#fff; border-radius:8px; }
.housing-summary span { font-size:12px; color:#52675a; }
.housing-summary strong { display:block; margin:12px 0 8px; font-size:clamp(25px,2.7vw,36px); line-height:1.2; font-family:Georgia,serif; color:#173f2a; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.housing-summary h3 { font-size:14px; font-weight:600; }
.housing-note { margin:22px 0 32px; font-size:13px; color:#52675a; max-width:900px; }
.housing-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.housing-panel { padding:28px; background:#fff; border:1px solid #dce6df; border-radius:10px; min-width:0; }
.housing-panel h3 { color:#173f2a; font-family:Georgia,serif; font-size:23px; }
.housing-panel table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.housing-panel caption { text-align:left; padding:12px 0; color:#52675a; font-size:13px; }
.housing-panel td,.housing-panel th { padding:12px 0; border-bottom:1px solid #e5ece7; text-align:left; }
.housing-panel td,.housing-panel th:last-child { text-align:right; }
.housing-construction dl { margin:18px 0; }
.housing-construction dl div { padding:12px 0; border-bottom:1px solid #e5ece7; }
.housing-construction dt { font-size:13px; color:#52675a; }
.housing-construction dd { margin-top:4px; font-size:25px; font-weight:600; color:#173f2a; }
.housing-construction p,.housing-source { font-size:12px; color:#52675a; line-height:1.7; }
.housing-source { margin-top:24px; }
.housing-source a { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:900px) { .housing-summary {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px) { .housing-detail-grid,.housing-summary {grid-template-columns:minmax(0,1fr);} .housing-panel {padding:22px;} }

.dashboard-subsection { margin-top:56px; padding-top:36px; border-top:1px solid #dce6df; scroll-margin-top:90px; }
.dashboard-subsection h3 { color:#173f2a; font-family:Georgia,serif; font-size:clamp(26px,3vw,36px); line-height:1.25; }
.clup-embed { width:100%; margin-top:24px; }
