/* Nova Scotia Compass: site stylesheet */
:root {
  --navy: #0f2a3d;
  --navy-2: #173a52;
  --sea: #2a6478;
  --sea-soft: #dbe8ea;
  --fog: #f4f6f4;
  --paper: #ffffff;
  --sand: #f3ecdd;
  --ink: #1b2b36;
  --muted: #526672;
  --line: #d6dfe1;
  --copper: #a8431f;
  --copper-dark: #8a3517;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 2px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid #e08a3c; outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .55em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
small { font-size: .85em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Utility bar */
.utility { background: var(--navy); color: #cfdde2; font-size: .82rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; align-items: center; }
.utility p { margin: 0; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; color: #fff; }
.utility nav { display: flex; gap: 16px; flex: none; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 38px; height: 38px; }
.brand b { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.1; display: block; }
.brand span { display: block; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.brand:hover { color: var(--navy); }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--copper); }
.main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--copper); }
.main-nav a.nav-cta { background: var(--copper); color: #fff; border-radius: var(--radius); margin-left: 10px; padding: 9px 15px; font-weight: 600; border: 0; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta[aria-current="page"] { background: var(--copper-dark); color: #fff; }
.nav-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 600 .9rem var(--sans); color: var(--navy); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: var(--radius); border: 2px solid var(--copper); background: var(--copper); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Heroes */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 42, .9) 0%, rgba(10, 28, 42, .68) 42%, rgba(10, 28, 42, .08) 76%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1, .hero h2 { color: #fff; }
.hero-home .wrap { padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px); }
.hero-home .hero-copy { max-width: 620px; }
.hero-home p { font-size: 1.2rem; color: #e7eef0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--copper); margin: 0 0 12px; }
.hero .eyebrow { color: #f0b48d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero .wrap { padding: 44px 0 56px; }
.page-hero .lede { max-width: 640px; font-size: 1.13rem; color: #e7eef0; margin: 0; }
.crumbs { font-size: .84rem; margin-bottom: 26px; color: #cfdde2; }
.crumbs a { color: #fff; }

/* Fact strip */
.facts { background: var(--navy-2); color: #fff; }
.facts dl { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; }
.facts dl > div { padding: 22px 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: #a9c3cc; }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; }
.facts-note { background: var(--navy-2); color: #a9c3cc; font-size: .78rem; padding-bottom: 12px; margin: 0; }

/* Sections */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-fog { background: var(--fog); }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); }
.figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-wide { grid-column: span 2; }
.card-body { padding: 20px 22px 22px; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--copper); text-decoration: underline; }
.card p { font-size: .97rem; color: #3a4d59; margin: 0; }
.plain-card { background: #fff; border-top: 3px solid var(--sea); padding: 22px 22px 20px; }
.section-fog .plain-card { box-shadow: 0 1px 0 var(--line); }
.plain-card h3 { font-size: 1.15rem; }
.plain-card p:last-child { margin-bottom: 0; }

/* Article layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 1.7em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose .figure { margin: 1.5em 0; }
.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.aside-box h2 { font-size: 1.05rem; margin-bottom: .6em; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin: 0; border-top: 1px solid var(--line); }
.aside-box li:first-child { border-top: 0; }
.aside-box li a { display: block; padding: 7px 0; text-decoration: none; }
.aside-cta { background: var(--navy); color: #dce7ea; border: 0; }
.aside-cta h2 { color: #fff; }
.aside-cta .btn { width: 100%; margin-top: 4px; }

.region { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.region img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.region h2 { margin-bottom: .35em; }
.region ul { columns: 2; column-gap: 28px; font-size: .96rem; margin-bottom: 0; }
.region li { break-inside: avoid; }

.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 8px; font-size: .95rem; }
.jump li { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.3em 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 600; border-bottom: 0; }
tbody th { font-weight: 600; color: var(--navy); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 1.3em 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 24px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); border: 2px solid #fff; }
.timeline b { font-family: var(--serif); color: var(--navy); font-size: 1.08rem; display: block; }

.note { background: var(--fog); border-left: 4px solid var(--sea); padding: 14px 18px; font-size: .95rem; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }
.sources { margin-top: 2.6em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.sources h2 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 0 0 .5em; }
.sources ul { margin: 0; }

/* Brochure form band */
.band { background: var(--navy); color: #dce7ea; }
.band h2 { color: #fff; }
.band .split { align-items: start; }
.band a { color: #fff; }
.band-list { list-style: none; padding: 0; margin: 18px 0 0; }
.band-list li { padding: 7px 0 7px 26px; position: relative; margin: 0; }
.band-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 2px solid #f0b48d; border-bottom: 2px solid #f0b48d; transform: rotate(-45deg); }
.form-card { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); }
.form-card h3 { font-size: 1.45rem; }
.form-card a { color: var(--sea); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 5px; color: var(--navy); }
.field input { width: 100%; padding: 12px 13px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8fa2ac; border-radius: var(--radius); }
.field input:focus { border-color: var(--sea); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .86rem; margin: 5px 0 0; }
.form-card .btn { width: 100%; }
.form-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form-status { font-size: .9rem; color: #b3261e; margin: 10px 0 0; }

.brochure-cover { box-shadow: 0 10px 34px rgba(15, 42, 61, .24); max-width: 300px; height: auto; }

/* Identity / contact */
.id-card { border: 1px solid var(--line); border-top: 3px solid var(--copper); padding: 22px 24px; border-radius: var(--radius); }
.id-card dl { margin: 0; display: grid; grid-template-columns: 145px 1fr; gap: 8px 14px; }
.id-card dt { font-weight: 600; color: var(--navy); font-size: .93rem; }
.id-card dd { margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; }
.faq details p { margin: 10px 0 2px; }

.legal h2 { font-size: 1.45rem; }
.legal-meta { color: var(--muted); font-size: .92rem; }

/* Footer */
.site-footer { background: #0b1f2e; color: #b9cad1; font-size: .92rem; }
.site-footer .wrap { padding: 52px 0 26px; }
.site-footer a { color: #e6eef1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; }
.footer-cols h2 { font-family: var(--sans); font-size: .77rem; letter-spacing: .12em; text-transform: uppercase; color: #8ca6b1; font-weight: 700; margin-bottom: 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 7px; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; display: block; margin-bottom: 8px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 34px; padding-top: 20px; font-size: .84rem; }
.footer-legal p { margin-bottom: .6em; }
.footer-legal strong { color: #fff; font-weight: 600; }

/* Consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(10, 28, 42, .28); padding: 18px 20px; font-size: .92rem; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { padding: 9px 18px; font-size: .92rem; }

.sitemap-list { columns: 2; column-gap: 40px; }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-mobile { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(10, 28, 42, .12); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 18px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--copper); }
  .main-nav a.nav-cta { margin: 14px 0 0; text-align: center; padding: 13px; }
  .facts dl { grid-template-columns: repeat(3, 1fr); }
  .facts dl > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .facts dl > div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: auto; }
  .split, .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .region { grid-template-columns: 1fr; gap: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .hero::after { background: linear-gradient(90deg, rgba(10, 28, 42, .88), rgba(10, 28, 42, .55)); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .utility nav { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .facts dl > div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .facts dl > div:nth-child(-n+2) { border-top: 0; }
  .region ul, .sitemap-list { columns: 1; }
  .brand span { display: none; }
  .hero-actions .btn { width: 100%; }
  .id-card dl { grid-template-columns: 1fr; gap: 2px; }
  .id-card dd { margin-bottom: 10px; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .utility, .site-header, .site-footer, .aside, .band, .consent { display: none; }
}
