/* All Canada — An Independent Guide to Canada's Provinces, Cities & Culture */
/* Destination Canada official brand palette applied throughout */

*,*::before,*::after { box-sizing: border-box; }
html,body,h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote,dl,dd { margin: 0; padding: 0; }

:root {
    /* ── Destination Canada Official Colour Palette ── */
    --flag-red:      #E60013;   /* Canadian Flag Red   */
    --maple-red:     #E60013;   /* primary action red  */
    --maple-deep:    #500603;   /* Maple Red (dark)    */
    --forest:        #062F23;   /* Forest Green        */
    --balsam:        #062F23;   /* Forest Green        */
    --balsam-deep:   #062F23;   /* Forest Green        */
    --prairies:      #FADA46;   /* Prairies Yellow     */
    --gold:          #FADA46;   /* Prairies Yellow     */
    --gold-soft:     #FFF6C0;   /* light yellow tint   */
    --great-lakes:   #B9DDF5;   /* Great Lakes Blue    */
    --lake-blue:     #1a6fa8;   /* derived mid-blue    */
    --aurora:        #D5D8EF;   /* Aurora Purple       */
    --aurora-deep:   #5a5fa8;   /* derived purple text */
    --pacific-teal:  #AADACA;   /* Pacific Teal        */
    --sunset-pink:   #F4D2D8;   /* Sunset Pink         */
    --rck-black:     #000000;   /* Rocky Mountain Black*/
    --snow:          #ffffff;
    --paper:         #F6FAFD;   /* Great-Lakes-tinted white   */
    --paper-warm:    #FFFBEF;   /* Prairies-tinted white      */
    --ink:           #0a0e0d;
    --ink-soft:      #445049;
    --rule:          #C8DFEE;
    --rule-soft:     #DCF0FC;

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-serif:   'Source Serif 4', 'Source Serif Pro', 'Georgia', serif;
    --font-sans:    'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --content-max:  1180px;
    --reading-max:  760px;
    --radius:       6px;
    --radius-lg:    12px;
    --shadow-sm:    0 1px 3px rgba(6,47,35,0.07);
    --shadow-md:    0 6px 18px rgba(6,47,35,0.10);
    --shadow-lg:    0 14px 36px rgba(6,47,35,0.14);
    --nav-h:        64px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* ── Flag bar ─────────────────────────────────────── */
.flag-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(to right,
        var(--flag-red) 0 25%,
        var(--snow) 25% 75%,
        var(--flag-red) 75% 100%);
}

/* ── Site header ──────────────────────────────────── */
.site-header {
    background: var(--forest);
    border-bottom: 3px solid var(--flag-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--snow);
    text-decoration: none;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.site-logo:hover { color: var(--prairies); }
.logo-leaf { color: var(--flag-red); font-size: 1.7rem; line-height: 1; }
.logo-tagline {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-top: -2px;
    line-height: 1;
}
@media (max-width: 480px) { .logo-tagline { display: none; } }

/* ── Primary nav ──────────────────────────────────── */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

.main-nav > ul > li { position: relative; }

.main-nav a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.93rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius);
    display: block;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--prairies);
    background: rgba(255,255,255,0.08);
}

/* ── Province dropdown ────────────────────────────── */
.has-dropdown > a::after {
    content: " ▾";
    font-size: 0.75rem;
    opacity: 0.75;
}

.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    background: var(--snow);
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    padding: 0.5rem 0;
    list-style: none;
}

.dropdown li a {
    color: var(--ink);
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 0;
    display: block;
}
.dropdown li a:hover {
    color: var(--flag-red);
    background: var(--paper);
}

/* show on hover (desktop) */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }

/* ── Hamburger toggle (mobile) ────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    z-index: 1100;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--snow);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Breadcrumbs ─────────────────────────────────── */
.breadcrumbs {
    background: var(--paper-warm);
    padding: 0.6rem 1.5rem;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
}
.breadcrumbs-container { max-width: var(--content-max); margin: 0 auto; }
.breadcrumbs a { color: var(--lake-blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── Page-level jump nav (TOC) ───────────────────── */
.page-jump-nav {
    background: var(--forest);
    color: var(--snow);
    padding: 0.6rem 0;
    position: sticky;
    top: var(--nav-h);
    z-index: 900;
    border-bottom: 2px solid var(--flag-red);
    overflow-x: auto;
    scrollbar-width: none;
}
.page-jump-nav::-webkit-scrollbar { display: none; }
.page-jump-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    white-space: nowrap;
}
.page-jump-nav li a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    display: block;
    transition: color 0.15s, background 0.15s;
}
.page-jump-nav li a:hover {
    color: var(--prairies);
    background: rgba(255,255,255,0.1);
}

/* ── Hero — text-only ────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--forest) 0%, var(--lake-blue) 100%);
    color: var(--snow);
    padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(250,218,70,0.12), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(170,218,202,0.10), transparent 40%);
    pointer-events: none;
}
.hero h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--snow);
}
.hero p {
    position: relative;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 720px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.92);
}
.hero-cta {
    position: relative;
    display: inline-block;
    background: var(--flag-red);
    color: var(--snow);
    padding: 0.85rem 1.9rem;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(230,0,19,0.4);
}
.hero-cta:hover {
    background: var(--maple-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(80,6,3,0.45);
}

/* ── Page hero — photographic ────────────────────── */
.page-hero {
    position: relative;
    height: clamp(300px, 45vw, 520px);
    overflow: hidden;
    color: var(--snow);
    background: var(--balsam-deep);
}
.page-hero .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(6,47,35,0.15) 0%,
        rgba(6,47,35,0.50) 65%,
        rgba(6,47,35,0.82) 100%);
    z-index: 2;
}
.page-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.page-hero .kicker {
    font-family: var(--font-sans);
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--prairies);
    margin-bottom: 0.5rem;
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--snow);
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
    max-width: 900px;
}
.page-hero .hero-tagline {
    margin-top: 0.6rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.90);
    max-width: 700px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ── Main content ────────────────────────────────── */
main {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 1.5rem;
}
article { max-width: var(--reading-max); margin: 0 auto; }
article.wide { max-width: 100%; }

.intro-section {
    background: var(--snow);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--flag-red);
}

/* ── Headings ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.005em;
}
article h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 1rem; }
article h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    margin: 2.6rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--flag-red);
    display: inline-block;
    color: var(--balsam-deep);
}
article h3 { font-size: 1.4rem; margin: 1.8rem 0 0.75rem; color: var(--lake-blue); }
article h4 {
    font-size: 1.12rem;
    margin: 1.3rem 0 0.4rem;
    color: var(--balsam);
    font-family: var(--font-sans);
}

p { margin-bottom: 1.05rem; }
article p { font-family: var(--font-serif); }
article p > strong { color: var(--ink); }

.lead {
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--ink-soft);
    border-left: 3px solid var(--prairies);
    padding-left: 1rem;
    margin-bottom: 1.6rem;
    font-style: italic;
    font-family: var(--font-serif);
}

/* ── Province / city directory grid ─────────────── */
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
    margin: 2rem 0;
}
.province-card {
    background: var(--snow);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s, box-shadow 0.22s;
    border-top: 4px solid var(--flag-red);
    display: flex;
    flex-direction: column;
}
.province-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.province-card h3 { margin: 0 0 0.4rem; color: var(--balsam-deep); font-size: 1.25rem; }
.province-card .capital { color: var(--ink-soft); font-size: 0.9rem; font-style: italic; margin-bottom: 0.7rem; }
.province-card p { font-size: 0.98rem; line-height: 1.6; margin-bottom: 0.9rem; }
.province-card a { color: var(--lake-blue); text-decoration: none; font-weight: 600; margin-top: auto; font-family: var(--font-sans); font-size: 0.92rem; }
.province-card a:hover { color: var(--flag-red); text-decoration: underline; }

/* ── City quick-facts ────────────────────────────── */
.city-quickfacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.5rem;
    background: var(--paper-warm);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--prairies);
    margin: 1.5rem 0;
    font-family: var(--font-sans);
}
.city-quickfacts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 600; }
.city-quickfacts dd { font-size: 1rem; color: var(--ink); font-weight: 500; margin-top: 0.15rem; }

/* ── Photo and figure styles ─────────────────────── */
figure.photo {
    margin: 1.8rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--snow);
}
figure.photo img { width: 100%; height: auto; object-fit: cover; }
figure.photo figcaption {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--ink-soft);
    padding: 0.7rem 1rem 0.85rem;
    background: var(--snow);
    border-top: 1px solid var(--rule);
}
.photo-hero { margin: 0 0 2rem; border-radius: 0; box-shadow: none; }
.photo-hero img { width: 100%; height: clamp(240px, 35vw, 420px); object-fit: cover; border-radius: var(--radius-lg); }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.8rem 0;
}
.photo-grid figure.photo { margin: 0; }
.photo-grid figure.photo img { height: 220px; object-fit: cover; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-item {
    background: var(--snow);
    border-left: 4px solid var(--flag-red);
    padding: 1.4rem 1.7rem;
    margin-bottom: 1.1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
}
.faq-item h3 { margin-top: 0; margin-bottom: 0.6rem; font-size: 1.18rem; color: var(--balsam-deep); font-family: var(--font-display); }
.faq-item p:last-child { margin-bottom: 0; }

/* ── City section ────────────────────────────────── */
.city-section {
    background: var(--snow);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--lake-blue);
    scroll-margin-top: calc(var(--nav-h) + 50px);
}
.city-section > h2 { margin-top: 0; color: var(--maple-deep); border-color: var(--prairies); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.city-section h3 { color: var(--balsam); margin-top: 1.7rem; padding-top: 0.5rem; border-top: 1px dashed var(--rule); }
.city-section h3:first-of-type { border-top: none; padding-top: 0; }

/* ── Sports Teams Section ────────────────────────── */
.sports-section {
    background: var(--snow);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--flag-red);
    scroll-margin-top: calc(var(--nav-h) + 50px);
}
.sports-section > h2 {
    margin-top: 0;
    color: var(--maple-deep);
    border-color: var(--flag-red);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.sports-card {
    background: var(--snow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--rule);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.sports-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.sports-card-media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--balsam-deep);
}
.sports-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.sports-card:hover .sports-card-media img { transform: scale(1.05); }

.sports-logo-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 0.7rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--snow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.15;
    background: var(--team-bg, var(--balsam-deep));
    color: var(--team-fg, var(--snow));
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    text-transform: uppercase;
}

.sports-card-body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
}
.sports-card .league {
    font-family: var(--font-sans);
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--flag-red);
    margin-bottom: 0.2rem;
}
.sports-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    margin: 0 0 0.3rem;
}
.sports-card p { font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft); margin: 0; font-family: var(--font-sans); }

/* ── City section photo ──────────────────────────── */
.city-hero-photo {
    width: 100%;
    height: clamp(180px, 25vw, 280px);
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    display: block;
}

/* ── Culture Section ─────────────────────────────── */
.culture-section {
    background: linear-gradient(135deg, var(--aurora) 0%, var(--great-lakes) 100%);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--aurora-deep);
    scroll-margin-top: calc(var(--nav-h) + 50px);
}
.culture-section > h2 {
    margin-top: 0;
    color: var(--balsam-deep);
    border-color: var(--aurora-deep);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.culture-section h3 { color: var(--balsam-deep); }
.culture-section p { color: var(--ink); }

/* ── Fact box ────────────────────────────────────── */
.fact-box {
    background: var(--paper-warm);
    border-left: 4px solid var(--prairies);
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-sans);
    font-size: 0.97rem;
}
.fact-box strong { color: var(--balsam-deep); }

/* ── Tables ──────────────────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--snow);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
    font-size: 0.96rem;
}
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); }
th { background: var(--balsam-deep); color: var(--snow); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--paper); }

/* ── TOC ─────────────────────────────────────────── */
.toc {
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.8rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.toc h4 {
    margin-bottom: 0.6rem;
    color: var(--balsam-deep);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.toc ul { list-style: none; margin: 0; columns: 2; column-gap: 1.5rem; }
.toc li { margin: 0 0 0.35rem; break-inside: avoid; }
.toc a { color: var(--lake-blue); text-decoration: none; }
.toc a:hover { color: var(--flag-red); text-decoration: underline; }

/* ── Lists ───────────────────────────────────────── */
main ul, main ol { margin: 0 0 1.2rem 1.4rem; }
main li { margin-bottom: 0.45rem; }

/* ── Inline links ────────────────────────────────── */
main a { color: var(--lake-blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
main a:hover { color: var(--flag-red); }

/* ── Divider ─────────────────────────────────────── */
.divider-leaf {
    text-align: center;
    margin: 2.5rem 0;
    color: var(--flag-red);
    font-size: 1.4rem;
    letter-spacing: 1rem;
    user-select: none;
}

/* ── Canada Map ──────────────────────────────────── */
.canada-map-section {
    margin: 2.5rem 0;
    background: var(--snow);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--flag-red);
}
.canada-map-section h2 {
    margin-top: 0;
    border: none;
    display: block;
    color: var(--balsam-deep);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-bottom: 0.3rem;
}
.canada-map-section p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    margin-bottom: 1.2rem;
}
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.canada-svg {
    width: 100%;
    height: auto;
    display: block;
}
.canada-svg .province {
    cursor: pointer;
    transition: filter 0.18s, opacity 0.18s;
    stroke: var(--snow);
    stroke-width: 1.5;
}
.canada-svg .province:hover { filter: brightness(1.18); opacity: 0.92; }
.canada-svg .province:focus { outline: 3px solid var(--prairies); outline-offset: 2px; }

.map-tooltip {
    position: absolute;
    background: var(--forest);
    color: var(--snow);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
}
.map-tooltip.visible { opacity: 1; }

/* ── Contact form ────────────────────────────────── */
.contact-form {
    background: var(--snow);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--flag-red);
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}
.contact-form label { display: block; margin: 0.85rem 0 0.3rem; font-family: var(--font-sans); font-weight: 500; color: var(--ink); }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
}
.contact-form button {
    margin-top: 1rem;
    background: var(--flag-red);
    color: var(--snow);
    border: 0;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.18s;
}
.contact-form button:hover { background: var(--maple-deep); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
    background: var(--maple-deep);
    color: var(--snow);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--flag-red);
}
.footer-container {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.footer-col h4 { color: var(--prairies); margin-bottom: 0.85rem; font-size: 1.05rem; font-family: var(--font-display); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.80); text-decoration: none; font-size: 0.95rem; font-family: var(--font-sans); }
.footer-col a:hover { color: var(--prairies); text-decoration: underline; }
.footer-bottom {
    max-width: var(--content-max);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.60);
    font-family: var(--font-sans);
}

/* ── Education cards (legacy) ────────────────────── */
.edu-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--rule);
}
.edu-section > h2 { font-size: 1.75rem; color: var(--balsam-deep); margin-bottom: 0.75rem; }
.edu-intro { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; margin-bottom: 2rem; max-width: 820px; }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.edu-card {
    background: var(--snow);
    border: 1px solid var(--rule);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.edu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.edu-card-img { height: 180px; overflow: hidden; background: var(--paper); }
.edu-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.edu-card:hover .edu-card-img img { transform: scale(1.04); }
.edu-card-body { padding: 1.1rem 1.25rem 1.3rem; }
.edu-card-type { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--prairies); margin-bottom: 0.35rem; filter: brightness(0.75); }
.edu-card-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 0.4rem; line-height: 1.3; }
.edu-card-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.edu-card-desc { font-size: 0.9rem; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ── Responsive — tablet ─────────────────────────── */
@media (max-width: 900px) {
    .toc ul { columns: 1; }
}

/* ── Responsive — mobile ─────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--forest);
        z-index: 1050;
        padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
        overflow-y: auto;
        flex-direction: column;
    }
    .main-nav.open { display: flex; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .main-nav a { font-size: 1.1rem; padding: 0.85rem 0.5rem; }

    /* dropdown in mobile: hidden by default, toggled via JS */
    .has-dropdown > a::after { content: " ▾"; font-size: 0.75rem; opacity: 0.75; }
    .dropdown {
        display: none;
        position: static;
        background: rgba(255,255,255,0.06);
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 1rem;
        border-radius: var(--radius);
        margin-top: 0.25rem;
    }
    .has-dropdown.mobile-open > .dropdown { display: block !important; }
    .has-dropdown.mobile-open > a::after { content: " ▴"; }
    .dropdown li a { color: rgba(255,255,255,0.75); font-size: 0.95rem; padding: 0.4rem 0.5rem; }
    .dropdown li a:hover { color: var(--prairies); background: transparent; }

    .header-container { position: relative; }

    .city-quickfacts { grid-template-columns: repeat(2, 1fr); }
    .page-jump-nav { top: var(--nav-h); }
    .sports-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .city-quickfacts { grid-template-columns: 1fr; }
    article h1 { font-size: 1.7rem; }
    article h2 { font-size: 1.35rem; }
    .page-hero { height: clamp(240px, 60vw, 340px); }
}

/* ── Print ───────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .hero-cta, .flag-bar, .breadcrumbs, .page-jump-nav { display: none; }
    body { background: white; color: black; }
    article { max-width: 100%; }
    a { color: black; text-decoration: underline; }
}
