/* Tanner Hickey, with Robin Hickey
   Type: Outfit for the wordmark, headings, labels, nav and buttons; Inter for body text;
   Source Serif 4 (I, V, X glyphs only) for the Roman section numerals.
   Dark navy field, cool off-white type, soft silver labels and rules. RE/MAX red on primary actions, RE/MAX blue as the stronger accent.
   Restrained, firm-style layout: numbered sections, thin rules, generous whitespace.
   Layout rhythm takes visual inspiration from Blendtek (black canvas, large type, split hero, pill buttons). */

:root {
  /* Dark navy theme (default since v8). The previous black theme is kept below under html[data-theme="black"]. */
  --bg: #071229;
  --bg-alt: #091530;
  --bg-card: #0c1a36;
  --bg-deep: #040b1c;
  --bg-field: #050d20;
  --bg-header: rgba(7, 18, 41, 0.9);
  --ph-1: #0f2145;
  --ph-2: #091530;
  --ph-3: #071229;
  --text: #eef1f6;
  --text-muted: #9aa6b8;
  --text-soft: #c9d1de;
  --silver: #b8c2d3;
  --silver-hover: #d6dde8;
  --red: #c8102e;
  --red-hover: #e21438;
  --blue: #003da5;
  --blue-bright: #7aa2e8;
  --blue-hover: #9bb8ef;
  --rule: rgba(184, 194, 211, 0.16);
  --rule-strong: rgba(184, 194, 211, 0.34);
  --frame: rgba(184, 194, 211, 0.5);
  --focus: #7aa2e8;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Roman numerals only: Outfit and Inter have no serifs, so "III" would read as bars. Loaded as the I, V and X glyphs only. */
  --font-numeral: "Source Serif 4", Georgia, serif;
  --font-display: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section-y: clamp(5rem, 11vw, 9rem);
  --max: 76rem;
  --header-h: 5.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Previous black theme. To switch back, add data-theme="black" to the html element. */
html[data-theme="black"] {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-deep: #000;
  --bg-field: #070707;
  --bg-header: rgba(5, 5, 5, 0.88);
  --ph-1: #121110;
  --ph-2: #0a0a0a;
  --ph-3: #070707;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color 0.25s var(--ease); }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text); }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { margin: 0 0 0.5rem; font-size: 1.22rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1.1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 1000;
  padding: 0.65rem 1.1rem; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--rule-strong); border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver);
}

.numeral-inline { font-family: var(--font-numeral); font-weight: 400; font-size: 1.1em; letter-spacing: 0.06em; margin-right: 0.6rem; color: var(--silver); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

/* Wordmark (option E): Outfit SemiBold, tight, mixed case, a single RE/MAX red full stop */
.brand { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; text-decoration: none; }
a.brand, a.brand:hover { color: inherit; text-decoration: none; }
.logo {
  font-family: "Outfit", var(--font-sans); font-weight: 600;
  font-size: 1.8rem; line-height: 1; letter-spacing: -0.035em;
  color: var(--text); white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.logo-dot { color: var(--red); margin-left: 0.01em; }
.brand:hover .logo { color: #fff; }
.brand-brokerage {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.62rem; line-height: 1.35; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.logo-with { font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.01em; }
@media (max-width: 520px) {
  .site-header .logo { font-size: 1.55rem; }
  .site-header .brand-brokerage { font-size: 0.54rem; letter-spacing: 0.13em; }
  .site-header .brand { gap: 0.45rem; }
}

/* Mobile menu lockup */
.nav-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.nav-lockup .logo { font-size: 2.1rem; }

/* Footer lockup */
.footer-lockup { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.5rem; }
.footer-lockup .logo { font-size: 2.1rem; }

.nav-toggle {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--silver); }
.nav-toggle-bar { display: block; width: 1.05rem; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-deep); border-bottom: 1px solid var(--rule); }
.site-nav.is-open { display: block; min-height: calc(100vh - var(--header-h)); padding: 1.5rem 1.5rem 3rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li { border-bottom: 1px solid var(--rule); }
.site-nav a {
  display: block; padding: 1.1rem 0.25rem;
  font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-cta-mobile a { color: var(--blue-bright); }

a.btn.header-cta { display: none; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; margin-left: auto; background: transparent; border: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.25rem; }
  .site-nav li { border: 0; }
  .site-nav .nav-cta-mobile, .site-nav .nav-lockup { display: none; }
  .site-nav a {
    padding: 0.4rem 0.6rem;
    font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
  }
  .site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--blue-bright); }
  a.btn.header-cta { display: inline-flex; min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.82rem; }
}
@media (min-width: 1000px) and (max-width: 1179px) {
  .site-nav a { padding: 0.4rem 0.45rem; letter-spacing: 0.1em; }
  .brand-brokerage { white-space: nowrap; letter-spacing: 0.08em; }
}
@media (min-width: 1280px) { .site-nav a { padding: 0.4rem 0.8rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.7rem 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-secondary:hover { color: var(--text); border-color: var(--silver); }
.btn-blue { background: transparent; color: var(--blue-bright); border-color: rgba(122, 162, 232, 0.7); }
.btn-blue:hover { color: var(--blue-hover); border-color: var(--blue-hover); background: rgba(0, 61, 165, 0.14); }
.btn-quiet { background: transparent; color: var(--silver-hover); border-color: var(--silver); }
.btn-quiet:hover { color: #fff; border-color: var(--blue-bright); background: rgba(0, 61, 165, 0.35); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 2rem; }

/* Photo placeholders: framed, quiet, intentional */
.photo-placeholder {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  background:
    radial-gradient(110% 80% at 25% 15%, rgba(184, 194, 211, 0.07) 0%, rgba(184, 194, 211, 0) 55%),
    radial-gradient(90% 70% at 85% 95%, rgba(0, 61, 165, 0.12) 0%, rgba(0, 61, 165, 0) 60%),
    linear-gradient(160deg, var(--ph-1) 0%, var(--ph-2) 55%, var(--ph-3) 100%);
}
.photo-placeholder::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--rule); pointer-events: none;
}
.ph-mark {
  font-family: "Outfit", var(--font-sans); font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.035em;
  color: rgba(238, 241, 246, 0.12);
}
.ph-mark::after { content: "."; color: rgba(200, 16, 46, 0.55); }
.ph-caption {
  font-family: var(--font-display); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201, 209, 222, 0.55);
}
.ph-portrait { aspect-ratio: 4 / 5; width: 100%; }
.ph-portrait .ph-mark { font-size: clamp(2.5rem, 5vw, 4rem); }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; }
.hero-copy { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.hero-copy-inner { width: min(100% - 3rem, 44rem); margin-inline: auto; }
.hero h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 400;
}
.hero-compact h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }
.hero-lead, .page-lead {
  margin: 0 0 2.25rem; max-width: 36rem;
  font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.7; color: var(--text-soft);
}
/* Names above the brokerage line: clean white, noticeable but quiet */
.hero-names {
  display: block;
  margin: 0 0 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: 30rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.005em; color: #fff;
}
.hero-names-sep { display: inline-block; margin: 0 0.65em; color: var(--silver, #B8C2D3); opacity: 0.8; }
.hero-names > span:not(.hero-names-sep) { white-space: nowrap; }
.hero-names + .hero-meta { padding-top: 0; border-top: 0; }
.hero-meta {
  margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: 30rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-muted);
}
.hero-media .photo-placeholder { min-height: 22rem; height: 100%; }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; min-height: max(38rem, calc(92vh - var(--header-h))); }
  .hero-compact .hero-grid { min-height: 34rem; }
  .hero-copy {
    display: flex; align-items: center;
    padding: 6rem 4.5rem 6rem max(1.5rem, calc((100vw - var(--max)) / 2));
  }
  .hero-copy-inner { width: 100%; margin: 0; max-width: 44rem; }
  .hero-media { border-left: 1px solid var(--rule); }
}

/* Page hero (text only) */
.page-hero { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.5rem, 8vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 {
  margin: 0 0 1.75rem; max-width: 54rem;
  font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.08; letter-spacing: -0.035em;
}
.page-hero .page-lead { max-width: 40rem; margin-bottom: 0; }

/* Numbered sections */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section + .section:not(.section-alt):not(.consult) { border-top: 1px solid var(--rule); }

.section-grid { display: grid; gap: 1.75rem; }
.section-label { display: flex; align-items: baseline; gap: 0.9rem; }
.numeral { font-family: var(--font-numeral); font-weight: 400; font-size: 1.15rem; color: var(--silver); letter-spacing: 0.06em; min-width: 1.6rem; }
.label { font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.section-body { min-width: 0; }
.section-body > :last-child { margin-bottom: 0; }
.section-lead { max-width: 44rem; font-size: 1.15rem; line-height: 1.75; color: var(--text-soft); margin-bottom: 2.75rem; }
.section-body h2 + .section-lead:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .section-grid { grid-template-columns: 15rem 1fr; gap: 3rem; }
  .section-label { flex-direction: column; gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--rule-strong); align-self: start; }
}

/* Indexed lists (approach, services, process) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index-list > li {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem;
  padding: 2rem 0; border-bottom: 1px solid var(--rule); align-content: start;
}
.index-num { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--silver); letter-spacing: 0.04em; padding-top: 0.25rem; }
.index-body p { margin: 0; color: var(--text-muted); max-width: 40rem; }
.index-body h3 { margin-bottom: 0.45rem; }
.index-link {
  display: inline-block; margin-top: 0.9rem;
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-bright); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.15rem;
}
.index-link::after { content: "\2192"; margin-left: 0.6rem; }
.index-link:hover { border-color: var(--blue-bright); }

@media (min-width: 760px) {
  .index-list-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; border-top: 0; }
  .index-list-grid > li { border-top: 1px solid var(--rule); border-bottom: 0; }
  .index-list-3 { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .index-list-3 { grid-template-columns: repeat(3, 1fr); }
  .index-list-3 > li { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* People preview */
.people-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .people-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 46rem; } }
.person-card { display: flex; align-items: center; gap: 1.5rem; text-decoration: none; color: var(--text); }
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-card:hover .headshot-frame { border-color: #1a3675; background: #1a3675; }
.person-name { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; }
.person-card:hover .person-name { color: var(--silver-hover); }
.person-role { margin-top: 0.35rem; font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.person-since { margin-top: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.person-line .sep { color: var(--text-muted); margin: 0 0.5rem; }
.person-line { margin-top: 0.25rem; font-size: 0.95rem; color: var(--blue-bright); white-space: nowrap; }
.person-call { margin-top: 0.2rem; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--text-soft); }

/* Profiles: attorney style. Small framed photo beside flowing text, one hairline between people. */
.profile {
  display: grid; gap: 1.5rem; max-width: 52rem;
  padding: 0 0 clamp(3rem, 6vw, 4.25rem);
}
.profile + .profile { padding-top: clamp(3rem, 6vw, 4.25rem); border-top: 1px solid var(--rule); }
.profile:last-child { padding-bottom: 0; }
/* Headshots: small, never larger than the source (about 240px wide).
   A soft, thick, lighter navy frame with rounded corners (v31). */
.headshot-frame {
  display: block; flex-shrink: 0; box-sizing: border-box;
  padding: 0; border: 8px solid #132a5e; border-radius: 20px; overflow: hidden;
  background: #132a5e; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.headshot {
  display: block; width: 100%; height: auto; aspect-ratio: 240 / 277; object-fit: cover;
  border-radius: 11px; background: var(--bg-card);
}
.headshot-sm { width: 7.75rem; }
.headshot-md { width: 11rem; }
@media (min-width: 900px) { .headshot-md { width: 11.5rem; } }
.headshot-empty {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ph-1) 0%, var(--ph-2) 60%, var(--ph-3) 100%);
}
.headshot-empty .ph-mark { font-size: 1.5rem; }
.headshot-md .headshot-empty .ph-mark { font-size: 2.2rem; }
.headshot-pf { width: 9rem; }
.profile-photo { width: fit-content; }
.profile-body { min-width: 0; max-width: 38rem; }
.profile-body h2, .profile-body h3 { font-size: clamp(1.9rem, 3vw, 2.35rem); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
.profile-role { margin: 0.45rem 0 0; font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver); }
.profile-link { margin: 0.6rem 0 0; font-size: 0.88rem; }
.profile-link a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.profile-link a:hover { color: var(--silver); border-color: var(--silver); }
.profile-bio { color: var(--text-soft); margin: 1.35rem 0 0; }
.profile-bio p { margin: 0 0 0.85rem; }
.profile-bio p:last-child { margin-bottom: 0; }
/* Small labelled lists, as on law firm profiles (Recognition, Designations, Registration) */
.profile-meta {
  margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem 2.25rem;
}
.profile-meta dt {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 0.35rem;
}
.profile-meta dd { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); }
/* Community and Organizations, side by side on desktop, stacked on phones */
.profile-pair {
  display: grid; gap: 1.5rem 2.25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
@media (min-width: 720px) { .profile-pair { grid-template-columns: 1fr 1.25fr; } }
.profile-pair-title {
  margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver);
}
.profile-pair-col p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); }
.org-list { list-style: none; margin: 0; padding: 0; }
.org-list li { margin: 0; padding: 0; font-size: 0.9rem; line-height: 1.55; color: var(--text-soft); }
.org-list li::marker { content: none; }

@media (min-width: 720px) {
  .profile { grid-template-columns: 9rem 1fr; gap: 2.75rem; align-items: start; }
}
@media (max-width: 719px) {
  .headshot-pf { width: 7.5rem; }
}

.direct { margin: 0; display: grid; border-top: 1px solid var(--rule); }
.direct > div {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
}
.direct dt {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--silver); padding-top: 0.3rem;
}
.direct dd { margin: 0; color: var(--text); font-size: 0.98rem; }
.direct a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.direct a:hover { color: var(--silver); border-color: var(--silver); }
@media (max-width: 520px) {
  .direct > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .direct dd { word-break: break-word; }
}

/* Areas */
.area-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.area-card { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.area-card p { margin: 0; color: var(--text-muted); }
/* Neighbourhood list under the Cambridge cards */
.place-list-title { margin: clamp(2.5rem, 5vw, 3.25rem) 0 0.25rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.place-list { margin: 0; display: grid; gap: 0 2.5rem; }
.place-list > div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.place-list dt { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--text); margin-bottom: 0.3rem; }
.place-list dd { margin: 0; font-size: 0.93rem; line-height: 1.6; color: var(--text-muted); }
@media (min-width: 760px) { .place-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .area-grid { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; border-top: 0; }
  .area-card { border-top: 1px solid var(--rule); border-bottom: 0; }
}

/* Guide */
.guide-panel {
  display: grid; gap: 1.5rem;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border: 1px solid var(--rule-strong);
  background: linear-gradient(160deg, rgba(184, 194, 211, 0.05), rgba(184, 194, 211, 0) 60%), var(--bg-card);
}
.guide-panel h2 { margin: 0; }
.guide-panel p { color: var(--text-soft); max-width: 36rem; }
.guide-panel .btn { margin-top: 0.75rem; }
@media (min-width: 900px) { .guide-panel { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }

/* Consultation strip */
.consult { border-top: 1px solid var(--rule); background: var(--bg-deep); }
.consult-inner { display: grid; gap: 1.5rem; }
.consult h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.1; max-width: 30rem; }
.consult p { color: var(--text-soft); max-width: 32rem; margin-bottom: 1.75rem; }
.consult .actions { margin: 0; }
@media (min-width: 900px) { .consult-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } }

/* Contact */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 950px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; } }
.contact-person { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--rule); }
.contact-person:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-person h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.contact-role { font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.25rem; }
.contact-office { color: var(--text-soft); margin: 0; }

.contact-form { padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--bg-card); border: 1px solid var(--rule-strong); }
.form-title { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.form-note { margin: 0 0 1.75rem; font-size: 0.88rem; color: var(--text-muted); }
/* Netlify honeypot: hidden from people, left empty; bots that fill it are dropped */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; margin-bottom: 0.45rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-soft);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 0.95rem;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--bg-field); font: inherit; font-size: 1rem; color: var(--text);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--silver); }
.field textarea { resize: vertical; min-height: 8rem; }
.field-check { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0.25rem 0 1.75rem; font-size: 0.95rem; color: var(--text-muted); }
.field-check input { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; accent-color: var(--silver); flex-shrink: 0; }

/* Prose */
.prose p { max-width: 42rem; color: var(--text-soft); }

/* Footer */
.site-footer { padding: 4.5rem 0 3rem; border-top: 1px solid var(--rule-strong); background: var(--bg-deep); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; } }
.footer-col p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); }
.footer-brokerage { font-weight: 500; color: var(--text-soft); }
.footer-label { font-family: var(--font-display); font-weight: 500; font-size: 0.7rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver) !important; }
.site-footer a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.site-footer a:hover { color: var(--silver); border-color: var(--silver); }
.footer-base { padding-top: 2rem; }
.footer-base p { font-size: 0.8rem; color: var(--text-muted); max-width: 56rem; margin: 0 0 1rem; line-height: 1.65; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 0 !important; }

/* 404 */
.page-simple { padding: clamp(6rem, 16vw, 11rem) 0; }
.page-simple h1 { margin: 0 0 1.5rem; font-size: clamp(2.4rem, 5.6vw, 3.9rem); line-height: 1.08; letter-spacing: -0.035em; }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Single-column indexed lists: title and description side by side on wide screens */
@media (min-width: 1100px) {
  .index-list:not(.index-list-grid) .index-body { display: grid; grid-template-columns: 17rem 1fr; column-gap: 2.5rem; }
  .index-list:not(.index-list-grid) .index-body h3 { grid-row: span 2; margin: 0; }
  .index-list:not(.index-list-grid) .index-link { justify-self: start; }
}

.section-body h2 + .index-list { margin-top: 2.25rem; }
@media (max-width: 600px) {
  .index-list > li { grid-template-columns: 2.4rem 1fr; gap: 0.6rem; }
}

.contact-person .direct > div:last-child { border-bottom: 0; }
.contact-person { padding-bottom: 1.5rem; }

/* Brokerage: balloon, figures, offices */
.balloon { display: block; height: auto; }
.balloon-sm { width: 2.75rem; }
.balloon-md { width: 4.5rem; }
.brand-block { display: flex; gap: 1.75rem; align-items: flex-start; max-width: 44rem; }
.brand-block p { margin-top: 0; color: var(--text-soft); }
.page-hero-with-aside .container { position: relative; }
.page-hero-aside { margin-bottom: 2rem; }
@media (min-width: 900px) {
  .page-hero-aside { position: absolute; right: 1.5rem; top: 0.25rem; margin: 0; }
}
.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 2.5rem 0; border-top: 1px solid var(--rule);
}
.figures div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; }
.figures dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.figures dt { font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); max-width: 14rem; }
.home-base { margin-top: 2rem; }
.home-base-line { color: var(--text-muted); }
.office-grid { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.office-card { padding: 1.5rem 1.5rem 1.6rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.office-card h3 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.office-card p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); }
.office-card a { color: var(--text-soft); }
.office-home { background: var(--bg-card); box-shadow: inset 0 2px 0 var(--red); }
.office-home h3 { color: var(--text); }
.office-card p.office-tag { margin: -0.4rem 0 0.75rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }

/* Quiet one line note under a section's list */
.section-note { margin: 2.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--text-muted); max-width: 40rem; }
.section-note-tight { margin-top: 0; margin-bottom: 1.75rem; max-width: 46rem; }

/* Giving back: official CMN reversed (white) logo, unaltered, beside a short note */
.cmn-block { display: grid; gap: 1.5rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); max-width: 46rem; align-items: start; }
.cmn-logo { display: inline-block; width: 9.5rem; line-height: 0; border: 0; }
.cmn-logo img { display: block; width: 100%; height: auto; }
.cmn-logo:focus-visible { outline: 2px solid var(--silver); outline-offset: 6px; }
.cmn-text p { margin: 0 0 0.75rem; color: var(--text-soft); font-size: 0.95rem; }
.cmn-text p:last-child { margin-bottom: 0; color: var(--text-muted); }
@media (min-width: 720px) { .cmn-block { grid-template-columns: 9.5rem 1fr; gap: 2.5rem; } }

/* ------------------------------------------------------------------
   Photography (v24). Licensed photos, see CREDITS.md.
   One consistent treatment: lightly muted colour and a soft navy edge, so the
   photos sit quietly in the palette while their detail shows. Text never sits directly on a photo
   except the small band captions, which sit on a near solid navy fade.
   ------------------------------------------------------------------ */
picture { display: contents; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.hero-media { position: relative; overflow: hidden; min-height: 22rem; background: var(--bg-deep); }
.hero-media .photo { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 18, 41, 0.30) 0%, rgba(7, 18, 41, 0) 22%),
    linear-gradient(0deg, rgba(7, 18, 41, 0.22) 0%, rgba(7, 18, 41, 0) 30%);
}
@media (max-width: 999px) { .hero-media { min-height: 0; aspect-ratio: 4 / 3; } }

.photo-band { position: relative; margin: 0; height: clamp(13rem, 30vw, 24rem); overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--bg-deep); }
.photo-band .photo { position: absolute; inset: 0; }
.photo-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 18, 41, 0.84) 0%, rgba(7, 18, 41, 0.50) 20%, rgba(7, 18, 41, 0.08) 52%, rgba(7, 18, 41, 0.04) 100%);
}
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 1; margin-inline: auto; }
.photo-band figcaption span {
  font-family: var(--font-display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 6px rgba(7, 18, 41, 0.7);
}

/* Fine line river contours: a quiet motif behind text heroes */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -8%; bottom: -12%; width: min(78rem, 120%); height: 100%;
  background: url("assets/img/contours.svg") no-repeat right bottom / contain; pointer-events: none; opacity: 0.9;
}
.page-hero > .container { position: relative; }
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: url("assets/img/contours.svg") no-repeat left bottom / cover; opacity: 0.55; pointer-events: none;
}
.hero-copy-inner { position: relative; }

/* Areas map */
.map-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
/* v47: map stacked under the intro and shown much larger */
.map-hero-grid > div:first-child { max-width: 46rem; }
.page-hero-map::before { display: none; }
.map-figure { margin: 0; }
.ontario-map { display: block; width: 100%; height: auto; max-width: 53rem; margin-inline: auto; }
@media (max-width: 699px) { .map-figure { margin-inline: calc(50% - 50vw); } .map-figure figcaption { padding-inline: 1.25rem; } }
.ontario-map .map-water path { fill: rgba(0, 61, 165, 0.16); stroke: var(--silver); stroke-opacity: 0.45; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ontario-map .map-dot { fill: var(--silver); }
.ontario-map .map-dot-small { fill: var(--text-muted); }
.ontario-map .map-home { fill: var(--red-hover); }
.ontario-map .map-north path { fill: none; stroke: var(--silver); stroke-opacity: 0.7; stroke-width: 1.2; }
.ontario-map text { font-family: var(--font-sans); }
.ontario-map .map-label { font-size: 14px; fill: var(--text); }
.ontario-map .map-label-home { font-size: 15px; font-weight: 500; }
.ontario-map .map-label-small { font-size: 11.5px; fill: var(--text-muted); }
.ontario-map .map-note { font-size: 11.5px; fill: var(--text-muted); }
.ontario-map .map-water-label { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--silver); fill-opacity: 0.75; }
.map-figure figcaption { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* Credits */
.credits-list { margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: 46rem; }
.credits-list li { padding: 0.7rem 0; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--text-soft); }
.credits-list a { color: var(--text); }

/* Keep phone numbers on one line */
a[href^="tel:"] { white-space: nowrap; }
/* v32: city dots on the Areas map */
.ontario-map .map-city { fill: var(--silver); fill-opacity: 0.7; }
.ontario-map .map-city-label { font-size: 12.5px; fill: var(--text-soft); letter-spacing: 0.01em; }
.ontario-map .map-city-minor { font-size: 11px; fill: var(--text-muted); }
@media (max-width: 699px) { .ontario-map .map-city-minor { display: none; } }
@media (max-width: 699px) { .ontario-map .map-city-label { font-size: 14px; } .ontario-map .map-label-home { font-size: 17px; } .ontario-map .map-note { font-size: 13px; } }

/* v41: rows of six rounded listing thumbnails on the Areas page (6 across, 3 on tablets, 2 on phones) */
.thumb-row { margin: clamp(2.25rem, 4.5vw, 3rem) 0 0; }
.thumb-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .thumb-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1000px) { .thumb-grid { grid-template-columns: repeat(6, 1fr); } }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--rule); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(7, 18, 41, 0.12); }
.thumb-row figcaption {
  margin-top: 0.75rem; font-family: var(--font-display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}

/* v47: longer band captions wrap neatly */
.photo-band figcaption span { display: inline-block; max-width: 36rem; line-height: 1.7; }

/* v52: email under the phone on the home people cards */
.person-mail { display: block; margin-top: 0.45rem; font-size: 0.88rem; color: var(--text-soft); overflow-wrap: anywhere; }

/* ==========================================================================
   v53: quiet craft details. Everything here is progressive: without JavaScript,
   or with reduced motion, the page simply shows as before.
   ========================================================================== */

/* 1. Typographic rhythm: balanced headings, no lonely last words, hanging quotes */
h1, h2, h3, .page-lead, .section-lead { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
.prose, .section-lead, .page-lead { hanging-punctuation: first; }

/* 2. Links in running text: a soft underline that draws brighter on hover */
main p a:not(.btn):not(.index-link), main dd a:not(.btn) {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule-strong), var(--rule-strong));
  background-size: 0% 1px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.5s var(--ease), color 0.25s var(--ease);
}
main p a:not(.btn):not(.index-link):hover, main dd a:not(.btn):hover,
main p a:not(.btn):not(.index-link):focus-visible, main dd a:not(.btn):focus-visible { background-size: 100% 1px, 100% 1px; }
.index-link::after { display: inline-block; transition: transform 0.4s var(--ease); }
.index-link:hover::after { transform: translateX(4px); }

/* 3. Header settles as you scroll, with a hairline of RE/MAX red showing progress down the page */
.site-header { transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.site-header.is-scrolled { background: rgba(5, 13, 32, 0.94); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7); }
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.35), var(--red));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* 4. Gentle reveals: sections rise into place once, slowly */
.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* 5. Photo bands drift very slightly as you scroll past (set by script.js) */
.js-motion .photo-band .photo { transform: translate3d(0, var(--drift, 0px), 0) scale(1.1); will-change: transform; }
.photo-band figcaption span { transition: opacity 1.2s var(--ease) 0.2s, letter-spacing 1.4s var(--ease) 0.2s; }
.js-motion .photo-band:not(.is-in) figcaption span { opacity: 0; letter-spacing: 0.24em; }

/* 6. Listing thumbnails: a soft lift on hover, and a larger view in a quiet lightbox */
button.thumb { display: block; width: 100%; padding: 0; margin: 0; font: inherit; color: inherit; cursor: zoom-in; }
.thumb img { transition: transform 0.9s var(--ease), filter 0.6s var(--ease); }
.thumb::after { transition: background-color 0.5s var(--ease); }
.thumb:hover img, .thumb:focus-visible img { transform: scale(1.045); filter: saturate(1); }
.thumb:hover::after, .thumb:focus-visible::after { background: rgba(7, 18, 41, 0); }
.thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lightbox {
  width: min(92vw, 70rem); max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 11, 28, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in 0.5s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 12px; background: var(--bg-deep); transition: opacity 0.35s var(--ease); }
.lightbox img.is-loading { opacity: 0.25; }
.lightbox figcaption { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-soft); }
.lightbox .lb-count { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: rgba(7, 18, 41, 0.7); color: var(--text); font: 400 1.1rem/1 var(--font-display); cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.lb-btn:hover { border-color: var(--silver); background: rgba(12, 26, 54, 0.95); }
.lb-close { top: -3.4rem; right: 0; }
.lb-prev, .lb-next { top: 40%; }
.lb-prev { left: -3.6rem; } .lb-next { right: -3.6rem; }
@media (max-width: 900px) { .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; } }

/* 7. The Areas map responds to a pointer: dots brighten with their names; Cambridge breathes very slowly */
.ontario-map .map-hit { fill: transparent; }
.ontario-map .map-place .map-city { transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--ease), fill-opacity 0.4s var(--ease); }
.ontario-map .map-place text { transition: fill 0.3s var(--ease); }
.ontario-map .map-hover-label { opacity: 0; transition: opacity 0.3s var(--ease); paint-order: stroke; stroke: var(--bg); stroke-width: 7px; stroke-linejoin: round; }
@media (hover: hover) {
  .ontario-map .map-place:hover .map-city { transform: scale(1.9); fill-opacity: 1; }
  .ontario-map .map-place:hover text { fill: #fff; }
  .ontario-map .map-place:hover .map-hover-label { opacity: 1; }
}
.ontario-map .map-pulse { fill: none; stroke: var(--red-hover); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ontario-map .map-pulse { animation: map-pulse 4.8s var(--ease) infinite; }
}
@keyframes map-pulse { 0% { transform: scale(1); opacity: 0.55; } 70% { transform: scale(4.2); opacity: 0; } 100% { transform: scale(4.2); opacity: 0; } }

/* 8. Contact: the local time at the office */
.local-time { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--text-muted); }
.local-time-value { color: var(--text-soft); font-variant-numeric: tabular-nums; margin-left: 0.35rem; }
.local-time-value::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; border-radius: 50%; background: var(--silver); opacity: 0.6; vertical-align: 0.12em; }

/* 9. A considered 404: the river contours and a quiet index of pages */
.page-notfound { position: relative; overflow: hidden; }
.page-notfound::before {
  content: ""; position: absolute; right: -10%; bottom: -15%; width: min(70rem, 120%); height: 100%;
  background: url("assets/img/contours.svg") no-repeat right bottom / contain; opacity: 0.8; pointer-events: none;
}
.page-notfound .container { position: relative; }
.nf-links { list-style: none; margin: 2.5rem 0 0; padding: 0; max-width: 28rem; border-top: 1px solid var(--rule); }
.nf-links a { display: flex; align-items: baseline; gap: 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; transition: padding 0.4s var(--ease), color 0.3s var(--ease); }
.nf-links a:hover { padding-left: 0.5rem; color: #fff; }
.nf-num { width: 2rem; font-family: var(--font-numeral); font-size: 0.95rem; color: var(--silver); }

/* 10. Soft cross fade between pages where the browser supports it */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal, .js-motion .photo-band .photo { transform: none !important; opacity: 1 !important; }
  .ontario-map .map-pulse { animation: none; }
}

/* v54: while a city is hovered, the other names step back so nothing overlaps */
@media (hover: hover) {
  .ontario-map:has(.map-place:hover) .map-place:not(:hover) text:not(.map-hover-label),
  .ontario-map:has(.map-place:hover) > .map-label, .ontario-map:has(.map-place:hover) > .map-note { opacity: 0.22; transition: opacity 0.3s var(--ease); }
}
.page-notfound .page-lead { text-wrap: pretty; max-width: 44rem; }
/* v55: the long bungalow band keeps the whole house in frame on phones (a slightly shorter band there) */
@media (max-width: 700px) { .photo-band-wide { height: clamp(9.5rem, 41vw, 13rem); } }
/* v56: About bungalow band is a little taller on larger screens so the whole house sits in frame, and it holds still */
@media (min-width: 701px) { .photo-band-tall { height: clamp(16rem, 40vw, 36rem); } }
.js-motion .photo-band-tall .photo { transform: none; }

/* ==========================================================================
   v57: second craft pass
   ========================================================================== */

/* 1. Home hero: a slow crossfade through a few of our homes */
.hero-slides { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide .photo { position: absolute; inset: 0; }
/* v95: no zoom; thin cream arrows, quiet until hover or focus */
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(7, 18, 41, 0.18);
  color: #efe8d8; cursor: pointer; opacity: 0.45; transition: opacity 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.hero-arrow[hidden] { display: none; }
.hero-prev { left: 0.9rem; }
.hero-next { right: 0.9rem; }
.hero-arrow svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(7, 18, 41, 0.6)); }
.hero-slides:hover .hero-arrow { opacity: 0.8; }
.hero-arrow:hover, .hero-arrow:focus-visible { opacity: 1; color: #a9bfae; background: rgba(7, 18, 41, 0.38); }
.hero-arrow:focus-visible { outline: 1px solid #a9bfae; outline-offset: 2px; }
@media (hover: none) { .hero-arrow { opacity: 0.7; } }
.hero-media-caption {
  position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 2; margin: 0;
  font-family: var(--font-display); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  text-shadow: 0 1px 8px rgba(7, 18, 41, 0.8);
}
.hero-ticks { position: absolute; right: 1.5rem; bottom: 1.55rem; z-index: 2; display: flex; gap: 0.22rem; }
.hero-ticks span { display: block; width: 0.45rem; height: 1px; background: rgba(238, 241, 246, 0.35); transition: background-color 0.8s var(--ease), width 0.8s var(--ease); }
.hero-ticks span.is-active { width: 1rem; background: #fff; }
/* v96/v97: ten, now thirteen, ticks; on narrower two column screens the caption wraps before it reaches them */
@media (min-width: 701px) { .hero-media-caption { max-width: calc(100% - 14.5rem); } }
.hero-slides::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 18, 41, 0.6), rgba(7, 18, 41, 0));
}

/* 2. Mobile menu: a full screen navy room, links arrive one after another */
@media (max-width: 999px) {
  .site-nav.is-open {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 2rem 1.75rem 3rem; background: var(--bg-deep);
    background-image: url("assets/img/contours.svg"); background-repeat: no-repeat; background-position: right -40% bottom -10%; background-size: 160% auto;
  }
  .site-nav.is-open a { font-size: clamp(1.7rem, 7vw, 2.2rem); padding: 1rem 0.1rem; }
  .site-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.75rem; border-radius: 50%; background: var(--red); vertical-align: 0.25em; }
  .js-motion .site-nav.is-open li, .js-motion .site-nav.is-open .nav-lockup { animation: nav-in 0.7s var(--ease) both; }
  .js-motion .site-nav.is-open li:nth-child(2) { animation-delay: 0.05s; }
  .js-motion .site-nav.is-open li:nth-child(3) { animation-delay: 0.1s; }
  .js-motion .site-nav.is-open li:nth-child(4) { animation-delay: 0.15s; }
  .js-motion .site-nav.is-open li:nth-child(5) { animation-delay: 0.2s; }
  .js-motion .site-nav.is-open li:nth-child(6) { animation-delay: 0.25s; }
  .js-motion .site-nav.is-open li:nth-child(7) { animation-delay: 0.3s; }
  .js-motion .site-nav.is-open li:nth-child(8) { animation-delay: 0.35s; }
  .js-motion .site-nav.is-open .nav-lockup { animation-delay: 0.45s; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body.nav-open { overflow: hidden; }

/* 3. Areas map draws itself in on first view: shorelines trace, the core oval follows, then the cities appear */
.map-anim .map-water path { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 2.6s var(--ease), fill-opacity 1.6s var(--ease) 1.4s; }
.map-anim .map-core { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) 1.2s; }
.map-anim .map-place, .map-anim .map-label, .map-anim .map-note, .map-anim .map-water-label, .map-anim .map-north, .map-anim .map-home { opacity: 0; transition: opacity 0.9s var(--ease); }
.map-anim .map-glow { opacity: 0; transition: opacity 2s var(--ease) 1.6s; }
.map-anim.is-drawn .map-water path, .map-anim.is-drawn .map-core { stroke-dashoffset: 0; fill-opacity: 1; }
.map-anim.is-drawn .map-place, .map-anim.is-drawn .map-label, .map-anim.is-drawn .map-note, .map-anim.is-drawn .map-water-label,
.map-anim.is-drawn .map-north, .map-anim.is-drawn .map-home, .map-anim.is-drawn .map-glow { opacity: 1; }
.map-anim.is-drawn:not(.is-settled) .map-label, .map-anim.is-drawn:not(.is-settled) .map-note, .map-anim.is-drawn:not(.is-settled) .map-home { transition-delay: 1.9s; }
.map-anim.is-drawn:not(.is-settled) .map-water-label, .map-anim.is-drawn:not(.is-settled) .map-north { transition-delay: 2.3s; }

/* 4. Photo bands open like a slow shutter as they arrive */
.js-motion .photo-band .photo { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease); }
.js-motion .photo-band:not(.is-in) .photo { clip-path: inset(9% 0 9% 0); }

/* 5. Section numerals: the fine rule above each label draws across as the section arrives */
@media (min-width: 900px) {
  .js-motion .section-label { position: relative; border-top-color: transparent; }
  .js-motion .section-label::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule-strong);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease);
  }
  .js-motion .section-label.is-in::before { transform: scaleX(1); }
  .js-motion .section-label .numeral { transition: color 1.2s var(--ease), letter-spacing 1.4s var(--ease); letter-spacing: 0.2em; }
  .js-motion .section-label.is-in .numeral { letter-spacing: 0.06em; }
}
.numeral { font-size: 1.3rem; }

/* 6. Buttons: a soft lift, a gentle press, and a quiet glow on the primary */
.btn { transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.35s var(--ease), box-shadow 0.45s var(--ease); }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary:hover { box-shadow: 0 10px 28px -12px rgba(226, 20, 56, 0.65); }

/* 7. Signature: the river contour lines, used sparingly behind the closing invitation and the footer */
.consult { position: relative; overflow: hidden; }
.consult::before {
  content: ""; position: absolute; right: -12%; top: -20%; width: min(60rem, 110%); height: 140%; pointer-events: none;
  background: url("assets/img/contours.svg") no-repeat right center / contain; opacity: 0.55;
}
.consult .container { position: relative; }

/* 8. Footer: an oversized, barely there wordmark as a signature at the very end */
.site-footer { position: relative; overflow: hidden; }
.footer-mark {
  margin: 2.5rem 0 -0.1em; font-family: "Outfit", var(--font-sans); font-weight: 600; letter-spacing: -0.05em; line-height: 0.82;
  font-size: min(calc((100vw - 3.75rem) / 6.3), 12.5rem); white-space: nowrap; color: rgba(184, 194, 211, 0.07); user-select: none;
}
.footer-mark > span { display: block; }
.footer-mark > span + span { margin-top: 0.06em; }
.footer-mark .logo-dot { color: rgba(200, 16, 46, 0.5); }

/* 9. Print: Contact, About and every page print clean, black on white, with link addresses shown */
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff !important; color: #000 !important; }
  * { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  .site-header, .nav-toggle, .site-nav, .header-cta, .photo-band, .hero-media, .consult, .footer-mark, .contact-form,
  .thumb-row, .map-figure, .skip-link, .read-progress, .lightbox, .actions, .cmn-logo { display: none !important; }
  .section, .page-hero, .hero { padding: 0.5rem 0 !important; border: 0 !important; }
  .js-motion .reveal { opacity: 1 !important; transform: none !important; }
  main a[href^="mailto:"]::after, main a[href^="tel:"]::after { content: ""; }
  main p a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .site-footer { border: 0; padding-top: 1rem; }
  h1, h2, h3 { page-break-after: avoid; }
  .profile, .contact-person, .office-card { page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .photo-band .photo { clip-path: none !important; }
  .hero-slide { transition: none; }
}

/* v60: joint wordmark, the two names side by side with a silver hairline, on every screen */
.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.logo .logo-name { display: inline; }
.logo-sep { display: inline-block; flex: none; width: 1px; height: 0.78em; margin: 0 0.48em; background: var(--silver); opacity: 0.55; }
.site-header .logo { font-size: 1.65rem; line-height: 1; align-self: flex-start; }
.site-header .brand { gap: 0.5rem; }
@media (max-width: 999px) {
  .site-header .logo { font-size: min(1.65rem, calc((100vw - 7.5rem) / 12.4)); }
  .site-header .logo-sep { margin: 0 0.42em; }
}
@media (max-width: 520px) {
  .site-header .logo { letter-spacing: -0.04em; }
  .site-header .brand { gap: 0.42rem; }
}
@media (min-width: 1000px) and (max-width: 1239px) {
  .site-header .logo { font-size: min(1.65rem, calc((100vw - 48rem) / 12.4)); }
}
.footer-lockup .logo, .nav-lockup .logo { font-size: min(2.1rem, calc((100vw - 3.5rem) / 12.6)); }
@media (min-width: 800px) { .footer-lockup .logo { font-size: min(1.6rem, calc((100vw - 9rem) * 0.375 / 12.6)); } }

/* ==========================================================================
   v64: accessibility pass (audit 2026-11-15), kept as quiet as possible
   ========================================================================== */

/* 1, 2. Pause and play: a small hairline disc. The icon is silver on a navy disc, so it holds 3:1 on any photo */
.motion-toggle {
  position: absolute; z-index: 3; display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; padding: 0; border-radius: 50%;
  border: 1px solid rgba(184, 194, 211, 0.4); background: rgba(7, 18, 41, 0.74); color: var(--silver);
  cursor: pointer; transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .mt-play { display: none; }
.motion-toggle.is-paused .mt-pause { display: none; }
.motion-toggle.is-paused .mt-play { display: block; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: #fff; border-color: var(--silver); background: rgba(7, 18, 41, 0.88); }
.motion-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hero-toggle { right: 1.1rem; bottom: 1.1rem; }
.hero-ticks { right: calc(1.1rem + 2rem + 0.8rem); bottom: 2.05rem; }
.hero-slides.is-paused .hero-slide .photo { transition: none; }
.map-figure { position: relative; }
.map-toggle { top: 0.5rem; right: 0.5rem; background: rgba(7, 18, 41, 0.6); }
@media (max-width: 699px) { .map-toggle { right: 1rem; } }
.ontario-map.is-paused *, .ontario-map.is-paused { animation-play-state: paused !important; }
@media (max-width: 700px) {
  /* 10. phones: the slide lines overlapped the caption, so they step aside; the pause button stays */
  .hero-ticks { display: none; }
  .hero-toggle { right: 0.85rem; bottom: 0.85rem; }
  .hero-media-caption { left: 1.25rem; bottom: 1.35rem; max-width: calc(100% - 5rem); }
}
@media print { .motion-toggle { display: none !important; } }

/* 5. Form fields: outlines just bright enough for 3:1 */
.field input, .field textarea, .field select { border-color: rgba(184, 194, 211, 0.52); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--silver); }

/* 6. Optional fields are marked; one quiet line explains the rest */
.optional { text-transform: none; letter-spacing: 0.02em; font-weight: 400; color: var(--text-muted); margin-left: 0.25em; }
.field-check .optional { margin-left: 0.15em; }
.form-required { margin: -1rem 0 1.75rem; font-size: 0.82rem; color: var(--text-muted); }

/* 7. Captions on photos: a touch more shade along the bottom edge only */
.photo-band::after {
  background: linear-gradient(0deg, rgba(7, 18, 41, 0.9) 0%, rgba(7, 18, 41, 0.62) 18%, rgba(7, 18, 41, 0.22) 36%, rgba(7, 18, 41, 0.06) 56%, rgba(7, 18, 41, 0.04) 100%);
}
.photo-band figcaption span, .hero-media-caption { text-shadow: 0 0 2px rgba(7, 18, 41, 0.9), 0 1px 10px rgba(7, 18, 41, 0.85); }
.hero-slides::after { height: 34%; background: linear-gradient(0deg, rgba(7, 18, 41, 0.84), rgba(7, 18, 41, 0.36) 55%, rgba(7, 18, 41, 0)); }

/* 9. Tap targets of at least 24px */
.footer-nav a, .footer-nav > span { display: inline-flex; align-items: center; min-height: 1.5rem; }

/* 11. The form title is now a heading; it keeps the same look */
h2.form-title { font-size: 1.5rem; line-height: inherit; letter-spacing: -0.02em; margin: 0 0 0.75rem; text-wrap: wrap; }

/* 12. The big faint footer wordmark is drawn from CSS content, so scanners don't read it as text */
.footer-mark > span::before { content: attr(data-mark); }
.footer-mark-last::after { content: "."; color: rgba(200, 16, 46, 0.5); }

/* 13. If a reader forces wider letter spacing, the header names may wrap instead of running off the page */
.site-header .logo { flex-wrap: wrap; white-space: normal; }
.site-header .logo .logo-name { white-space: nowrap; }
@media (max-width: 700px) {
  /* phones: captions can run to three lines, so the shade reaches a little higher */
  .photo-band::after { background: linear-gradient(0deg, rgba(7, 18, 41, 0.9) 0%, rgba(7, 18, 41, 0.7) 28%, rgba(7, 18, 41, 0.32) 50%, rgba(7, 18, 41, 0.06) 72%, rgba(7, 18, 41, 0.04) 100%); }
}

/* v65: the full privacy policy */
.policy h2 { margin: 3rem 0 1rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.policy h2#policy-start { margin-top: 2rem; }
.policy h3 { margin: 1.75rem 0 0.6rem; font-size: 1.05rem; font-weight: 500; }
.policy ul { max-width: 40.8rem; margin: 0 0 1.25rem; padding-left: 1.2rem; color: var(--text-soft); }
.policy li { margin-bottom: 0.45rem; }
.policy li > ul { margin: 0.45rem 0 0; }
.policy li p { margin: 0.6rem 0 0; }
.policy strong { color: var(--text); font-weight: 500; }
.policy-meta { font-size: 0.9rem; color: var(--text-muted) !important; }

/* v67: Privacy Policy as plain fine print */
.fineprint { padding: 2.5rem 0 3.5rem; font-family: Georgia, "Times New Roman", Times, serif; font-size: 0.9rem; line-height: 1.45; color: var(--text-soft); }
.fineprint .container { max-width: 62rem; }
.fineprint h1 { margin: 0 0 0.4rem; font-family: inherit; font-size: 1.15rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: var(--text); }
.fineprint h2 { margin: 1.5rem 0 0.4rem; font-family: inherit; font-size: 0.95rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: var(--text); }
.fineprint p { max-width: none; margin: 0 0 0.6rem; text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; color: var(--text-soft); }
.fineprint-meta { font-style: italic; margin-bottom: 1rem !important; }
.fineprint strong { color: var(--text); font-weight: 700; }
.fineprint a, main .fineprint p a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 2px; background-image: none; }
.fineprint .credits-list { margin: 0; padding-left: 1.1rem; font-size: inherit; line-height: inherit; }
.fineprint .credits-list li { margin: 0 0 0.25rem; color: var(--text-soft); }
@media (max-width: 40rem) { .fineprint p { text-align: left; hyphens: manual; } }

/* v68: keep the #credits clause clear of the sticky header */
.fineprint #credits { scroll-margin-top: calc(var(--header-h) + 1rem); margin-top: 0.6rem; }

/* v72: a soft navy halo behind map labels, so shorelines, the oval and the ripples never cut through the letters */
.ontario-map .map-city-label, .ontario-map .map-label, .ontario-map .map-note { paint-order: stroke fill; stroke: rgba(7, 18, 41, 0.82); stroke-width: 4px; stroke-linejoin: round; }
.ontario-map .map-hover-label { stroke: var(--bg); stroke-width: 7px; }

/* ==================================================================
   v74: third pass. Quiet, useful details; each one falls back cleanly.
   ================================================================== */

/* 1. Cambridge right now: a faint time of day light over the home photographs */
.sky-tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: soft-light; transition: opacity 4s var(--ease), background 4s var(--ease); }
[data-sky="day"] .sky-tint { opacity: 0.3; background: linear-gradient(200deg, rgba(235, 242, 252, 0.9), rgba(184, 194, 211, 0) 65%); }
[data-sky="low"] .sky-tint { opacity: 0.6; background: linear-gradient(var(--sky-angle, 235deg), rgba(255, 150, 140, 0.95), rgba(200, 16, 46, 0.35) 50%, rgba(7, 18, 41, 0) 88%); }
[data-sky="twilight"] .sky-tint { opacity: 0.72; background: linear-gradient(var(--sky-angle, 235deg), rgba(214, 60, 90, 0.85), rgba(26, 54, 117, 0.95) 62%); }
[data-sky="night"] .sky-tint { opacity: 0.34; mix-blend-mode: multiply; background: linear-gradient(180deg, #23345f, #3a5285); }
[data-sky-half="am"] { --sky-angle: 125deg; }
.footer-now { position: relative; padding-left: calc(30px + 0.6rem); margin: 1.25rem 0 0 !important; font-size: 0.78rem; color: var(--text-muted); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.footer-now::before { content: ""; position: absolute; left: 12px; top: calc(0.875em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--silver); opacity: 0.6; }
/* v112: sun face by day, moon face at night, turning slowly at the end of the time and weather line */
.footer-now .now-end { white-space: nowrap; }
.footer-now .now-face { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; overflow: visible; font-size: 18px; line-height: 1; vertical-align: middle; margin: -2px 0 -2px 0.15em; font-style: normal; transform-origin: 50% 50%; animation: now-face-turn 9.26s linear infinite; }
@keyframes now-face-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .footer-now .now-face { animation: none; } }
[data-sky="day"] .footer-now::before { background: #dfe5ee; opacity: 0.8; }
[data-sky="low"] .footer-now::before, [data-sky="twilight"] .footer-now::before { background: var(--red-hover); opacity: 0.85; }
.local-sun { color: var(--text-muted); }

/* 2. Calmer page changes: the header holds perfectly still while the page beneath changes, and each page title settles into place */
@media (prefers-reduced-motion: no-preference) {
  .site-header { view-transition-name: site-header; }
  .site-footer .footer-mark { view-transition-name: footer-mark; }
  main h1 { view-transition-name: page-title; }
  ::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(page-title) { animation: vt-out 0.3s var(--ease) both; }
  ::view-transition-new(page-title) { animation: vt-in 0.55s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}

/* 4. Copy a link to a section */
.h-link {
  position: relative; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-left: 0.5rem; padding: 0;
  border: 0; border-radius: 6px; background: transparent; color: var(--silver); cursor: pointer; vertical-align: 0.15em;
  opacity: 0; transition: opacity 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.h-link svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
h2:hover > .h-link, .h-link:focus-visible, .h-link.is-done { opacity: 1; }
.h-link:hover { background: rgba(184, 194, 211, 0.08); color: #fff; }
@media (hover: none) { .h-link { display: none; } }
.h-link-tip {
  position: absolute; left: 50%; bottom: calc(100% + 0.4rem); transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none;
  padding: 0.2rem 0.55rem; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--bg-card);
  font: 500 0.64rem/1.5 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
  opacity: 0; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.h-link.is-done .h-link-tip { opacity: 1; transform: translate(-50%, 0); }

/* 5. Process timeline on Selling and Buying */
.process-list.is-live { position: relative; padding-left: 1.6rem; }
.process-list.is-live::before, .process-list.is-live::after {
  content: ""; position: absolute; left: 0.3rem; top: var(--rail-top, 2.6rem); width: 1px; height: var(--rail-h, 0px); pointer-events: none;
}
.process-list.is-live::before { background: var(--rule-strong); }
.process-list.is-live::after { left: calc(0.3rem - 0.5px); width: 2px; border-radius: 1px; background: linear-gradient(var(--red-hover), var(--red)); height: calc(var(--rail-h, 0px) * var(--p, 0)); }
.process-list.is-live > li { position: relative; }
.process-list.is-live > li::before {
  content: ""; position: absolute; left: calc(-1.6rem + 0.3rem - 4px); top: calc(2rem + 0.25rem + 0.45em); width: 9px; height: 9px; box-sizing: border-box;
  border-radius: 50%; border: 1px solid var(--silver); background: var(--bg-alt);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.process-list.is-live > li.is-past::before { background: var(--red); border-color: var(--red); }
.process-list.is-live > li.is-current::before { background: var(--red-hover); border-color: var(--red-hover); box-shadow: 0 0 0 5px rgba(226, 20, 56, 0.16); }
.process-list.is-live > li .index-num { transition: color 0.5s var(--ease); }
.process-list.is-live > li.is-current .index-num { color: #fff; }
.process-list.is-live > li.is-current h3 { color: #fff; }
@media (prefers-reduced-motion: reduce) { .process-list.is-live > li::before, .process-list.is-live > li .index-num { transition: none; } }

/* 6. Cards that answer the pointer, very slightly */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.tilt.is-tilting { transition-duration: 0.25s; }
.tilt-light { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.5s var(--ease); background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(184, 194, 211, 0.09), rgba(184, 194, 211, 0) 60%); }
.tilt.is-tilting .tilt-light { opacity: 1; }
.office-card.tilt.is-tilting { background: rgba(184, 194, 211, 0.015); }

/* 7. A single sheen across each headshot frame as it comes into view, and again on hover */
.headshot-frame.sheen { position: relative; }
.headshot-frame.sheen::after {
  content: ""; position: absolute; inset: -8px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(214, 221, 232, 0.28) 50%, rgba(255, 255, 255, 0) 62%);
  background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: screen;
}
.headshot-frame.sheen.is-lit::after { animation: sheen 1.8s cubic-bezier(.45, 0, .2, 1) 0.2s 1 both; }
.person-card:hover .headshot-frame.sheen::after, .profile-photo:hover .headshot-frame.sheen::after { animation: sheen 1.4s cubic-bezier(.45, 0, .2, 1) 1 both; }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }

@media print { .footer-now, .h-link, .sky-tint { display: none !important; } }

/* v81: the quiet line under an "opinion of value" button */
.value-note { margin: -1.2rem 0 2rem; font-size: 0.86rem; line-height: 1.5; color: var(--text-muted); letter-spacing: 0.005em; }
.hero .value-note { margin-bottom: 0; }
.guide-panel .actions-guide { margin: 0.75rem 0 2rem; }
.guide-panel .actions-guide .btn { margin-top: 0; }
.guide-panel .value-note, .consult .value-note { color: var(--text-muted); margin-bottom: 0; }

/* v83: opinion of value at the close of sections, and the quiet buying-page link */
.actions.section-close { margin: 2.25rem 0 0; }
.section-lead + .actions.section-close { margin-top: 0.5rem; }
.value-link { margin: 1.25rem 0 0; font-size: 0.92rem; color: var(--text-muted); }
.value-link a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--rule-strong); }
.value-link a:hover { text-decoration-color: var(--blue-bright); }

/* v84: the closing strip's actions have no bottom margin, so give the note its own gap */
.consult .value-note { margin-top: 1rem; }

/* ==================================================================
   v89b (preview): the Areas map as a quiet forest green print map.
   Land a deep forest green that fades softly into the page; water a deeper blue-green; sage shorelines;
   warm off-white names; muted sage for Cambridge. Motion: a slow draw-in, then one faint ripple every 6s.
   ================================================================== */
.ontario-map { --map-land: #11301f; --map-water: #0a1f18; --map-shore: #9db39f; --map-ink: #efe8d8; --map-ink-soft: #ddd8c8; --map-muted: #b2bfae; --map-accent: #a9bfae; }
.ontario-map .map-land { fill: var(--map-land); }
.ontario-map .map-glow { opacity: 0.9; }
.ontario-map .map-water path { fill: var(--map-water); fill-opacity: 0.92; stroke: var(--map-shore); stroke-opacity: 0.5; }
.ontario-map .map-core { stroke: var(--map-shore); stroke-opacity: 0.2; animation: none !important; }
.ontario-map .map-city { fill: var(--map-ink-soft); fill-opacity: 0.75; }
.ontario-map .map-label { fill: var(--map-ink); }
.ontario-map .map-city-label { fill: var(--map-ink-soft); }
.ontario-map .map-city-minor, .ontario-map .map-note { fill: var(--map-muted); }
.ontario-map .map-water-label { fill: var(--map-shore); fill-opacity: 0.85; }
.ontario-map .map-north path { stroke: var(--map-shore); }
.ontario-map .map-home { fill: var(--map-accent); animation: none !important; }
.ontario-map .map-halo { opacity: 1; animation: none !important; }
/* outlined names: the halo takes the land colour, so lines pass cleanly under them */
.ontario-map .map-city-label, .ontario-map .map-label, .ontario-map .map-note { paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-opacity: 0.9; stroke-linejoin: round; }
.ontario-map .map-hover-label { stroke: var(--map-land); stroke-width: 7px; stroke-opacity: 1; }
@media (hover: hover) { .ontario-map .map-place:hover text { fill: #fff; } .ontario-map .map-place:hover .map-city { fill-opacity: 1; } }
.ontario-map .map-arc { fill: none; stroke-width: 1; stroke-linecap: round; opacity: 0.7; vector-effect: non-scaling-stroke; }
.ontario-map .map-ripple-b { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translate(var(--ox), var(--oy)) scale(0.03); }
.ontario-map .map-ripple-b ellipse { fill: none; stroke: var(--map-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: no-preference) {
  /* entrance: a slower, softer draw of the shorelines, then the lines out of Cambridge, one after another */
  .map-anim .map-water path { transition: stroke-dashoffset 3.6s cubic-bezier(0.45, 0, 0.25, 1), fill-opacity 2.4s var(--ease) 1.8s; }
  .map-anim.is-drawn .map-water path { fill-opacity: 0.92; }
  .map-anim .map-land { opacity: 0; transition: opacity 2.4s var(--ease); }
  .map-anim.is-drawn .map-land { opacity: 1; }
  .map-anim .map-halo { visibility: visible !important; opacity: 0; transition: opacity 2s var(--ease) 2.2s; }
  .map-anim.is-drawn .map-halo { opacity: 1; }
  .map-anim .map-arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(0.45, 0, 0.25, 1) calc(3s + var(--i) * 0.8s); }
  .map-anim.is-drawn .map-arc { stroke-dashoffset: 0; }
  .map-anim .map-place text { transform: translateY(4px); transition: fill 0.3s var(--ease), transform 1.4s var(--ease), opacity 0.3s var(--ease); }
  .map-anim:not(.is-settled) .map-place text { transition-delay: var(--d, 0s); }
  .map-anim.is-drawn .map-place text { transform: none; }
  /* loop: one faint ripple every 6 seconds */
  .map-anim.is-settled .map-ripple-b { will-change: transform, opacity; animation: ripple-b-grow 6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite, ripple-b-fade 6s ease-in-out infinite; }
}
@keyframes ripple-b-grow { from { transform: translate(var(--ox), var(--oy)) scale(0.03); } to { transform: translate(0, 0) scale(1); } }
@keyframes ripple-b-fade { 0% { opacity: 0; } 12% { opacity: 0.32; } 60% { opacity: 0.16; } 92%, 100% { opacity: 0; } }
/* v89b: a dark neutral halo that sits equally well on the green and on the page's navy at the map's soft edges */
.ontario-map .map-city-label, .ontario-map .map-label, .ontario-map .map-note { stroke: #0c2119; stroke-opacity: 0.8; }
.ontario-map .map-hover-label { stroke: #0c2119; }

/* ==================================================================
   v89c (preview): v89b's motion, recoloured. Water back to the v88 navy (opaque, so it matches the page),
   land an almost black green, no green glow. The land field fades out at the map's edges into the page navy,
   which reads as more water, so there is no seam. Sage Cambridge kept.
   ================================================================== */
.ontario-map { --map-land: #07120d; /* v89e: a touch darker green */ --map-water: #06193d; --map-shore: #9db39f; }
.ontario-map .map-glow { display: none; }
.ontario-map .map-water path { fill: var(--map-water); fill-opacity: 1; stroke: var(--map-shore); stroke-opacity: 0.45; }
.map-anim.is-drawn .map-water path { fill-opacity: 1; }
.ontario-map .map-core { stroke: var(--map-shore); stroke-opacity: 0.18; }
.ontario-map .map-city-label, .ontario-map .map-label, .ontario-map .map-note, .ontario-map .map-hover-label { stroke: #08150e; stroke-opacity: 0.85; }
/* v89c polish: a deeper sage, finer lines, quieter type */
.ontario-map { --map-accent: #7f9a87; }
.ontario-map .map-water path { stroke-width: 0.7; stroke-opacity: 0.4; }
.ontario-map .map-core { stroke-width: 1.1; stroke-opacity: 0.32; }
.ontario-map .map-arc { stroke-width: 0.8; opacity: 0.62; }
.ontario-map .map-ripple-b ellipse { stroke-width: 0.8; }
.ontario-map .map-north path { stroke-width: 0.8; stroke-opacity: 0.6; }
.ontario-map .map-water-label { font-size: 9.5px; letter-spacing: 0.3em; fill-opacity: 0.72; }
.ontario-map .map-city-label { font-size: 12px; letter-spacing: 0.015em; }
.ontario-map .map-label { font-size: 13px; letter-spacing: 0.02em; }
.ontario-map .map-label-home { font-size: 14.5px; font-weight: 500; letter-spacing: 0.03em; }
.ontario-map .map-note { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.ontario-map .map-city-minor { font-size: 10.5px; }
.ontario-map .map-city { fill-opacity: 0.7; }
@media (max-width: 699px) { .ontario-map .map-city-label { font-size: 13.5px; } .ontario-map .map-label-home { font-size: 16px; } .ontario-map .map-note { font-size: 11px; } }

/* v91: the header names and brokerage line form one tight block of text.
   The brokerage line is sized to the exact width of the names (script.js fits it on load, fonts and resize);
   the CSS below is a close fallback at 0.445 of the names' size. */
.site-header .brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.36rem; }
.site-header .brand-brokerage {
  display: inline-block; white-space: nowrap; line-height: 1; letter-spacing: 0.14em;
  font-size: 0.734rem;
}
.site-header .brand-brokerage .bb-last { letter-spacing: 0; }
@media (max-width: 999px) {
  .site-header .brand-brokerage { font-size: min(0.734rem, calc((100vw - 7.5rem) / 12.4 * 0.445)); letter-spacing: 0.14em; }
}
@media (min-width: 1000px) and (max-width: 1239px) {
  .site-header .brand-brokerage { font-size: min(0.734rem, calc((100vw - 48rem) / 12.4 * 0.445)); letter-spacing: 0.14em; }
}
@media (max-width: 520px) { .site-header .brand { gap: 0.3rem; } }

/* ------------------------------------------------------------------
   v98: area guide pages, the Areas page guide index, and the opinion of value walkthrough.
   Map colours follow the Areas map: navy water #06193d, near-black green land #07120d, sage #7f9a87.
   ------------------------------------------------------------------ */
:root { --sage-deep: #7f9a87; --sage: #a9bfae; --loc-land: #07120d; --loc-water: #06193d; --loc-shore: #9db39f; }

/* Breadcrumbs */
.crumbs { border-bottom: 1px solid var(--rule); }
.crumbs ol { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 0.8em; color: var(--rule-strong); letter-spacing: 0; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-soft); }

/* Area hero (v98b): type on the left, a large locator map on the right. No listing photos on the guides. */
.area-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  background: radial-gradient(60rem 30rem at 85% 40%, rgba(127, 154, 135, 0.07), rgba(127, 154, 135, 0) 70%); }
.area-hero::before { content: ""; position: absolute; left: -6%; bottom: -14%; width: min(64rem, 110%); height: 85%; background: url("assets/img/contours.svg") no-repeat left bottom / contain; opacity: 0.45; pointer-events: none; }
.area-hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .area-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 6rem); } }
.area-hero h1 { margin: 0 0 1.5rem; font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 400; text-wrap: balance; }
.area-hero h1::after { content: ""; display: block; width: 3.5rem; height: 1px; margin-top: 1.6rem; background: var(--sage-deep); }
.area-dek { margin: 0; max-width: 34rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.65; color: var(--text-soft); text-wrap: pretty; }
.area-hero-locator { margin: 0; }
.area-hero-locator .locator { border-radius: 20px; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(127, 154, 135, 0.12) inset; }
.area-hero-locator figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.area-coords { color: var(--sage); letter-spacing: 0.12em; }
.area-hero-locator .loc-label { font-size: 13px; }
.area-hero-locator .loc-minor { font-size: 10.5px; }

/* Body and sidebar */
.area-main { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.area-grid { display: grid; gap: 3.5rem; }
@media (min-width: 960px) { .area-grid { grid-template-columns: minmax(0, 1fr) 20.5rem; gap: clamp(3.5rem, 6vw, 6rem); align-items: start; } }
.area-prose { max-width: 41rem; }
.area-prose p { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.85; color: var(--text-soft); text-wrap: pretty; }
.area-prose p.area-lead { font-size: clamp(1.22rem, 1.9vw, 1.42rem); line-height: 1.7; color: var(--text); margin-bottom: 2rem; }
.area-prose h2 { position: relative; margin: 3.25rem 0 1.1rem; padding-top: 1.4rem; font-size: clamp(1.45rem, 2.2vw, 1.8rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.area-prose h2::before { content: ""; position: absolute; left: 0; top: 0; width: 2.25rem; height: 1px; background: var(--sage-deep); }
.area-points { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.area-points li { position: relative; padding: 0.9rem 0 0.9rem 1.6rem; border-top: 1px solid var(--rule); font-size: 1.06rem; line-height: 1.7; color: var(--text-soft); }
.area-points li:last-child { border-bottom: 1px solid var(--rule); }
.area-points li::before { content: ""; position: absolute; left: 0.15rem; top: 1.72rem; width: 0.42rem; height: 0.42rem; border-radius: 50%; border: 1px solid var(--sage-deep); }

.area-aside { display: grid; gap: 2rem; }
@media (min-width: 960px) { .area-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
@media (min-width: 600px) and (max-width: 959px) { .area-aside { grid-template-columns: 1fr 1fr; align-items: start; } }
.locator { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--loc-land); }
.locator .loc-land { fill: var(--loc-land); }
.locator .loc-city { fill: #0c2017; stroke: var(--loc-shore); stroke-opacity: 0.42; stroke-width: 1; stroke-linejoin: round; }
.locator .loc-region { fill: #0a1b13; stroke: var(--loc-shore); stroke-opacity: 0.5; stroke-width: 1.1; stroke-linejoin: round; }
.locator .loc-muni { fill: none; stroke: var(--loc-shore); stroke-opacity: 0.22; stroke-width: 0.8; stroke-linejoin: round; }
.locator .loc-muni.is-here { fill: rgba(127, 154, 135, 0.16); stroke: var(--sage-deep); stroke-opacity: 0.85; stroke-width: 1.1; }
.locator .loc-river-edge { fill: none; stroke: var(--loc-shore); stroke-opacity: 0.38; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.locator .loc-river { fill: none; stroke: var(--loc-water); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.locator .loc-lake { fill: var(--loc-water); stroke: var(--loc-shore); stroke-opacity: 0.5; stroke-width: 1; stroke-linejoin: round; }
.locator .loc-dot { fill: var(--sage); }
.locator .loc-ring { fill: none; stroke: var(--sage-deep); stroke-opacity: 0.7; stroke-width: 1; }
.locator text { font-family: var(--font-display); paint-order: stroke fill; stroke: var(--loc-land); stroke-width: 4px; stroke-linejoin: round; }
.locator .loc-label { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; fill: #efe8d8; }
.locator .loc-minor { font-size: 11.5px; fill: #b2bfae; letter-spacing: 0.02em; }
.locator .loc-minor-dot { fill: #b2bfae; fill-opacity: 0.8; }
.locator .loc-water { font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; fill: var(--loc-shore); fill-opacity: 0.8; }

.glance { border-top: 1px solid var(--rule-strong); padding-top: 1.1rem; }
.glance-title { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.glance dl { margin: 0; }
.glance dl > div { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.glance dt { font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.glance dd { margin: 0.25rem 0 0; font-size: 0.97rem; line-height: 1.6; color: var(--text-soft); }

/* Nearby guides */
.area-related { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.related-title { margin: 0 0 1.5rem; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.related-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.related-card { position: relative; display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.4rem 3rem 1.5rem 1.4rem; border: 1px solid var(--rule); border-radius: 14px; color: var(--text); text-decoration: none; background: var(--bg); transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.related-card:hover { border-color: rgba(127, 154, 135, 0.7); background: var(--bg-card); color: var(--text); }
.related-group { font-family: var(--font-display); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.related-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.015em; }
.related-text { font-size: 0.92rem; line-height: 1.55; color: var(--text-muted); }
.guide-arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform 0.3s var(--ease); }
.related-card .guide-arrow { position: absolute; right: 1.3rem; top: 1.5rem; color: var(--sage); }
.related-card:hover .guide-arrow, .area-sell-link:hover .guide-arrow, .place-link:hover .guide-arrow { transform: translateX(3px); }

/* Sources */
.area-sources { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.area-sources-inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .area-sources-inner { grid-template-columns: 18rem 1fr; gap: 3rem; } }
.sources-title { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.sources-note { margin: 0; font-size: 0.86rem; line-height: 1.65; color: var(--text-muted); }
.sources-list { list-style: none; margin: 0; padding: 0; columns: 1; }
@media (min-width: 700px) { .sources-list { columns: 2; column-gap: 2.5rem; } }
.sources-list li { break-inside: avoid; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); font-size: 0.86rem; line-height: 1.5; }
.sources-list a { color: var(--silver); text-decoration-color: rgba(184, 194, 211, 0.35); }
.sources-list a:hover { color: var(--text); }

/* The quiet closing line */
.area-sell { border-top: 1px solid var(--rule); }
.area-sell-link { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0; color: var(--text); text-decoration: none; }
.area-sell-q { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.area-sell-a { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.area-sell-link:hover { color: #fff; }
.area-sell-link:hover .area-sell-a { color: #c9d8cc; }

/* Areas page: index of guides, and links in the lists */
.guide-index { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.guide-index-head { max-width: 40rem; margin-bottom: 2.5rem; }
.guide-index-head h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; letter-spacing: -0.025em; }
.guide-index-head p:last-child { margin: 0; color: var(--text-soft); }
.guide-index-cols { display: grid; gap: 2rem; }
@media (min-width: 800px) { .guide-index-cols { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.guide-index-col h3 { margin: 0 0 0.6rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule-strong); font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.guide-index-col h3 a { color: var(--sage); text-decoration: none; }
.guide-index-col ul { list-style: none; margin: 0; padding: 0; }
.guide-index-col:first-child ul { columns: 2; column-gap: 2rem; }
.guide-index-col li { break-inside: avoid; }
.guide-index-col li a { display: block; padding: 0.42rem 0; color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--rule); transition: color 0.25s var(--ease), padding 0.3s var(--ease); }
.guide-index-col li a:hover { color: #fff; padding-left: 0.3rem; }
.place-link { display: inline-flex; align-items: center; gap: 0.45rem; color: inherit; text-decoration: none; }
.place-link .guide-arrow { color: var(--sage); width: 0.85em; height: 0.85em; }
.place-link:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(127, 154, 135, 0.6); }
.ontario-map .map-place-link { cursor: pointer; }
.ontario-map .map-place-link:focus-visible { outline: none; }
.ontario-map .map-place-link:focus-visible .map-city { transform: scale(1.9); fill-opacity: 1; }
.ontario-map .map-place-link:focus-visible text { fill: #fff; opacity: 1; }
.ontario-map .map-place-link .map-city { fill: var(--sage); fill-opacity: 0.9; }

/* Opinion of value walkthrough */
.oov { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 7rem); position: relative; overflow: hidden; }
.oov::before { content: ""; position: absolute; left: -10%; bottom: -10%; width: min(70rem, 120%); height: 80%; background: url("assets/img/contours.svg") no-repeat left bottom / contain; opacity: 0.5; pointer-events: none; }
.oov-grid { position: relative; display: grid; gap: 3rem; }
@media (min-width: 1000px) { .oov-grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.oov-intro h1 { margin: 0 0 1.5rem; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 400; }
.oov-what { list-style: none; counter-reset: oov; margin: 0 0 2rem; padding: 0; max-width: 30rem; }
.oov-what li { counter-increment: oov; position: relative; padding: 0.85rem 0 0.85rem 2.6rem; border-top: 1px solid var(--rule); color: var(--text-soft); font-size: 0.98rem; line-height: 1.6; }
.oov-what li:last-child { border-bottom: 1px solid var(--rule); }
.oov-what li::before { content: counter(oov); position: absolute; left: 0; top: 0.8rem; font-family: var(--font-display); font-size: 0.9rem; color: var(--sage); }
.oov-direct { color: var(--text-muted); font-size: 0.95rem; }
.oov-form { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--bg-card); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6); }
.oov-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.oov-step + .oov-step { margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--rule); }
.oov-step legend { padding: 0; margin: 0 0 1.4rem; font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.oov-step legend:focus { outline: none; }
.oov-step legend:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
.oov-step-num { display: block; margin-bottom: 0.55rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.oov-choices { display: grid; gap: 0.7rem; }
@media (min-width: 560px) { .oov-choices-2, .oov-choices-3 { grid-template-columns: 1fr 1fr; } }
.oov-choice { position: relative; display: block; cursor: pointer; }
.oov-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.oov-choice-box { display: flex; align-items: center; gap: 0.8rem; min-height: 3.6rem; padding: 0.9rem 1.1rem; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--bg-field); color: var(--text-soft); transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease); }
.oov-choice:hover .oov-choice-box { border-color: rgba(127, 154, 135, 0.6); color: var(--text); }
.oov-choice-mark { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1px solid var(--silver); position: relative; transition: border-color 0.25s var(--ease); }
.oov-choice-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sage); transform: scale(0); transition: transform 0.3s var(--ease); }
.oov-choice input:checked + .oov-choice-box { border-color: var(--sage-deep); background: rgba(127, 154, 135, 0.1); color: #fff; }
.oov-choice input:checked + .oov-choice-box .oov-choice-mark { border-color: var(--sage); }
.oov-choice input:checked + .oov-choice-box .oov-choice-mark::after { transform: scale(1); }
.oov-choice input:focus-visible + .oov-choice-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.oov-choice-label { font-size: 1rem; line-height: 1.35; }
.oov-pair { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .oov-pair { grid-template-columns: 1fr 1fr; } }
.oov-error { margin: 1rem 0 0; font-size: 0.92rem; color: #f3a6b2; }
.oov-form [aria-invalid="true"] { border-color: #f3a6b2; }
.oov-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 2rem; }
.oov-nav [data-oov-back] { margin-right: auto; }
.oov-nav[hidden], .oov-nav [hidden] { display: none; }
.oov-fine { margin: 1.25rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.oov-progress { margin-bottom: 2rem; }
.oov-progress[hidden] { display: none; }
.oov-count { margin: 0 0 0.8rem; font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.oov-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.oov-bar li { position: relative; padding-top: 0.75rem; font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); }
.oov-bar li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--rule-strong); }
.oov-bar li::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.oov-bar li.is-done::after, .oov-bar li.is-current::after { transform: scaleX(1); }
.oov-bar li.is-current { color: var(--text); }
.oov-bar li.is-done { color: var(--text-soft); }
@media (max-width: 420px) { .oov-bar li span { font-size: 0.66rem; } }
.oov-form.is-stepped .oov-step { margin-top: 0; padding-top: 0; border-top: 0; }
.oov-form.is-stepped .oov-step[hidden] { display: none; }
.oov-form.is-stepped .oov-step-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oov-step.is-entering { animation: oov-in 0.45s var(--ease) both; }
@keyframes oov-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .oov-step.is-entering { animation: none; } .oov-bar li::after { transition: none; } }

/* v98b: Areas page, expandable groups and rows (native details and summary, so keyboard and screen readers work as they should) */
.place-wide { margin-top: clamp(2rem, 4vw, 3rem); }
.area-groups { border-top: 1px solid var(--rule-strong); }
.area-group { border-bottom: 1px solid var(--rule); }
.area-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; }
.area-group > summary::-webkit-details-marker { display: none; }
.area-group > summary { padding: 1.5rem 0.25rem; }
.ag-text { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; min-width: 0; }
.ag-title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; color: var(--text); transition: color 0.25s var(--ease); }
.ag-line { font-size: 0.95rem; color: var(--text-muted); }
.ag-count { font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
@media (max-width: 520px) { .ag-count { display: none; } }
.ag-icon { position: relative; flex: none; width: 1.9rem; height: 1.9rem; border: 1px solid var(--rule-strong); border-radius: 50%; transition: border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.ag-icon::before, .ag-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 1px; background: var(--silver); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.ag-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary > .ag-icon { border-color: var(--sage-deep); }
details[open] > summary > .ag-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.area-group > summary:hover .ag-title { color: #fff; }
.area-group > summary:hover .ag-icon { border-color: rgba(127, 154, 135, 0.7); }
.area-group > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.place-grid { list-style: none; margin: 0.25rem 0 2.25rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; } }
@media (min-width: 1040px) { .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.place-card {
  display: flex; flex-direction: column; margin: 0; padding: 1.6rem 1.6rem 1.45rem;
  border: 1px solid var(--rule); border-top: 1px solid rgba(127, 154, 135, 0.45); border-radius: 12px;
  background: linear-gradient(160deg, rgba(184, 194, 211, 0.045), rgba(184, 194, 211, 0) 55%), var(--bg-card);
  scroll-margin-top: 6.5rem; transition: border-color 0.3s var(--ease);
}
.place-card:hover, .place-card:focus-within, .place-card:target { border-color: rgba(127, 154, 135, 0.55); }
.pc-region { margin: 0 0 0.55rem; font-family: var(--font-display); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.pc-name { margin: 0 0 0.75rem; font-size: clamp(1.3rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
.pc-text { margin: 0 0 1.1rem; color: var(--text-soft); font-size: 0.97rem; line-height: 1.7; }
.pc-link { margin-top: auto; align-self: flex-start; }
.place-lead { grid-column: 1 / -1; margin: 0; display: grid; gap: 0.25rem 2.5rem; padding: clamp(1.6rem, 3vw, 2.25rem); border-top-color: var(--sage-deep); }
.place-lead .pc-name { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.place-lead .pc-text { margin: 0; font-size: 1.04rem; max-width: 46rem; }
.place-lead .pc-link { margin-top: 0.4rem; }
.pl-count { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.towns { display: grid; gap: clamp(2.25rem, 4vw, 3rem); margin: 0.25rem 0 2.5rem; }
.town { margin: 0; }
.town-subs { margin: 1.1rem 0 0 clamp(0.9rem, 3vw, 2.5rem); padding-left: clamp(1rem, 2.4vw, 1.75rem); border-left: 1px solid rgba(127, 154, 135, 0.55); }
.town-subs-label { margin: 0 0 0.9rem; font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.town-subs .place-grid { margin: 0; }
@media (max-width: 899px) { .place-lead .pl-count { order: 3; margin-bottom: 0.6rem; } }
@media (min-width: 900px) { .place-lead { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); align-items: start; } .place-lead .pc-link { margin-top: 1rem; } }
@media (max-width: 899px) { .place-lead .pl-head { display: contents; } .place-lead .pc-region { order: 1; } .place-lead .pc-name { order: 2; } .place-lead .pc-text { order: 4; margin-bottom: 1.1rem; } .place-lead .pc-link { order: 5; margin-top: 0; justify-self: start; } }
details[open] > .place-grid, details[open] > .towns { animation: ag-in 0.45s var(--ease) both; }
@keyframes ag-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { details[open] > .place-grid, details[open] > .towns { animation: none; } }
.ag-alias { display: block; height: 0; }
.area-elsewhere { margin: 2rem 0 0; max-width: 44rem; color: var(--text-muted); font-size: 0.98rem; }
@media print { .place-card { break-inside: avoid; } .area-group:not([open]) > .place-grid { display: grid; } }
/* v98f: numbered district dots on the section maps */
.locator .loc-num circle { fill: #0c2017; stroke: var(--sage-deep); stroke-width: 1.2; }
.locator .loc-num text { font-size: 10px; font-weight: 600; fill: var(--sage); stroke-width: 0; letter-spacing: 0; }
.locator .loc-road { fill: none; stroke: #b2bfae; stroke-opacity: 0.35; stroke-width: 1; stroke-dasharray: 3 3; }
/* v98f: Areas page, the four Cambridge section boxes */
@media (min-width: 1040px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; } }
.sec-box { padding: clamp(1.6rem, 2.6vw, 2.1rem); border-top-color: var(--sage-deep); }
.sec-box .pc-name { font-size: clamp(1.55rem, 2.6vw, 1.95rem); }
.sec-districts { margin: 0 0 1.2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-districts > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
.sec-districts > summary::-webkit-details-marker { display: none; }
.sec-districts > summary:hover { color: var(--text); }
.sec-districts > summary .ag-icon { width: 1.6rem; height: 1.6rem; }
.sd-body { padding: 0.2rem 0 1rem; }
details[open] > .sd-body { animation: ag-in 0.4s var(--ease) both; }
.sd-group { margin: 0.9rem 0 0.4rem; font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.sd-group span { color: var(--text-muted); margin-left: 0.4rem; }
.sd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.sd-list a { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.32rem 0; color: var(--text-soft); text-decoration: none; font-size: 0.95rem; line-height: 1.45; }
.sd-list a:hover, .sd-list a:focus-visible { color: var(--text); }
.sd-list a:hover .sd-name { text-decoration: underline; text-decoration-color: var(--sage-deep); text-underline-offset: 0.2em; }
.sd-num { flex: none; min-width: 1.6rem; font-family: var(--font-numeral); font-variant-numeric: tabular-nums; color: var(--sage); }
@media (prefers-reduced-motion: reduce) { details[open] > .sd-body { animation: none; } }

/* v98f: Cambridge section pages */
.place-band { height: clamp(14rem, 34vw, 28rem); }
.place-band figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.4rem 1.5rem; }
.place-band .place-credit { font-size: 0.72rem; letter-spacing: 0.02em; text-transform: none; color: rgba(238, 241, 246, 0.82); max-width: 30rem; }
.place-band .place-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(169, 191, 174, 0.6); text-underline-offset: 0.18em; }
.sec-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(5, 13, 32, 0.95); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sn-list { list-style: none; margin: 0; padding: 0.65rem 0; display: flex; gap: 0.35rem 1.4rem; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.sn-list ul { display: none; }
.sn-group-link { display: inline-block; padding: 0.35rem 0; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); text-decoration: none; border-bottom: 1px solid transparent; }
.sn-group-link:hover, .sn-group-link:focus-visible, .sn-group-link.is-here { color: var(--text); border-bottom-color: var(--sage-deep); }
.sec-groups { border-top: 1px solid var(--rule); }
.sec-group { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 3.25rem; }
.sec-group:nth-child(even) { background: var(--bg-alt); }
.sec-group-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-group-head h2 { margin: 0 0 0.9rem; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.sec-group-head p:last-child { margin: 0; color: var(--text-soft); font-size: 1.08rem; line-height: 1.75; }
.district-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.district { padding: clamp(1.6rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 3.5rem; display: grid; gap: 0.2rem 3rem; }
@media (min-width: 900px) { .district { grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); } .district-name { grid-row: span 2; } }
.district-name { margin: 0; display: flex; gap: 0.85rem; align-items: baseline; font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.25; }
.district-num { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid rgba(127, 154, 135, 0.6); border-radius: 50%; font-family: var(--font-numeral); font-size: 0.95rem; color: var(--sage); transform: translateY(-0.15rem); }
.district-title { overflow-wrap: anywhere; }
.district-lead { margin: 0.6rem 0 0.6rem; max-width: 42rem; font-size: 1.08rem; line-height: 1.75; color: var(--text); }
@media (min-width: 900px) { .district-lead { margin-top: 0.1rem; } }
.district:target .district-num { background: rgba(127, 154, 135, 0.18); border-color: var(--sage-deep); }
.district-more { max-width: 42rem; }
.district-more > summary { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
.district-more > summary::-webkit-details-marker { display: none; }
.district-more > summary:hover { color: var(--text); }
.district-more > summary .ag-icon { width: 1.5rem; height: 1.5rem; order: -1; }
.district-more .dm-close { display: none; }
.district-more[open] .dm-open { display: none; }
.district-more[open] .dm-close { display: inline; }
.district-body { padding: 0.9rem 0 0.3rem; }
details[open] > .district-body { animation: ag-in 0.4s var(--ease) both; }
.district-body p { margin: 0 0 1.1rem; color: var(--text-soft); font-size: 1.02rem; line-height: 1.8; text-wrap: pretty; }
.district-facts { margin: 1.3rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.district-facts div { display: grid; gap: 0.15rem 1.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 620px) { .district-facts div { grid-template-columns: 8rem minmax(0, 1fr); } }
.district-facts dt { font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); padding-top: 0.2rem; }
.district-facts dd { margin: 0; color: var(--text-soft); font-size: 0.96rem; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { details[open] > .district-body { animation: none; } }
@media print { .district-more .district-body { display: block; } .sec-nav { position: static; } }
.sn-num { margin-right: 0.45rem; font-family: var(--font-numeral); letter-spacing: 0; color: var(--sage); }
.sn-list > li { flex: none; }
.area-prose h2.visually-hidden::before { display: none; }
/* v99: the Cambridge map, a companion to the Ontario map above it (same land, water, shoreline, ink, and sage accent).
   Section areas are approximate, so they show as soft tints that fade in, with no hard edges inside the city. */
.cambridge-map { --map-land: #11301f; --map-water: #0a1f18; --map-shore: #9db39f; --map-ink: #efe8d8; --map-ink-soft: #ddd8c8; --map-muted: #b2bfae; --map-accent: #a9bfae;
  display: block; width: 100%; height: auto; }
.cambridge-map .map-land { fill: var(--map-land); }
.cambridge-map .cm-nd { fill: #0f2b1c; }
.cambridge-map .cm-city { fill: #0e2819; }
.cambridge-map .cm-edge { fill: none; stroke: var(--map-shore); stroke-opacity: 0.5; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cambridge-map .cm-edge-nd { stroke-opacity: 0.22; }
.cambridge-map .cm-sec { fill: var(--map-accent); fill-opacity: 0; transition: fill-opacity 0.9s var(--ease); }
.cambridge-map .cm-sec.is-here { fill-opacity: 0.3; }
.cambridge-map .cm-sec-nd.is-here { fill-opacity: 0.14; }
.cambridge-map .cm-river-edge { fill: none; stroke: var(--map-shore); stroke-opacity: 0.5; stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; }
.cambridge-map .cm-river { fill: none; stroke: var(--map-water); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.cambridge-map text { font-family: var(--font-sans); paint-order: stroke; stroke: var(--map-land); stroke-width: 4px; stroke-opacity: 0.9; stroke-linejoin: round; }
.cambridge-map .map-label { font-size: 14px; fill: var(--map-ink); }
.cambridge-map .map-city { fill: var(--map-ink-soft); fill-opacity: 0.75; }
.cambridge-map .map-city-label { font-size: 12px; fill: var(--map-ink-soft); }
.cambridge-map .map-city-minor { font-size: 11.5px; fill: var(--map-muted); }
.cambridge-map .map-water-label { font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase; fill: var(--map-shore); fill-opacity: 0.85; }
.cmap-interactive .cm-sec { fill-opacity: 0.07; }
.cmap-interactive .cm-name { fill: var(--map-ink-soft); transition: fill 0.4s var(--ease); }
.cmap-interactive.show-galt .cm-sec[data-sec="galt"], .cmap-interactive.show-preston .cm-sec[data-sec="preston"], .cmap-interactive.show-hespeler .cm-sec[data-sec="hespeler"] { fill-opacity: 0.32; }
.cmap-interactive.show-north-dumfries .cm-sec[data-sec="north-dumfries"] { fill-opacity: 0.15; }
.cmap-interactive.show-galt .cm-name[data-sec="galt"], .cmap-interactive.show-preston .cm-name[data-sec="preston"], .cmap-interactive.show-hespeler .cm-name[data-sec="hespeler"], .cmap-interactive.show-north-dumfries .cm-name[data-sec="north-dumfries"] { fill: #fff; }
.cambridge-map .cm-hit path { fill: transparent; cursor: pointer; }
.cambridge-map .cm-hit:focus-visible path { stroke: var(--focus); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .cambridge-map .cm-sec, .cambridge-map .cm-name { transition: none; } }

/* v99: section pages as prose by part of town, and the Cambridge map on the Areas page */
.cambridge-map .cm-road { fill: none; stroke: var(--map-ink-soft); stroke-opacity: 0.55; stroke-width: 1.1; stroke-dasharray: 4 3; stroke-linecap: round; }
.cm-anim .cm-sec.is-here { fill-opacity: 0; transition: fill-opacity 1.8s var(--ease) 0.3s; }
.cm-anim .cm-part, .cm-anim .cambridge-map .map-city { opacity: 0; transition: opacity 1s var(--ease) 1.1s; }
.cm-anim.is-lit .cm-sec.is-here { fill-opacity: 0.3; }
.cm-anim.is-lit .cm-sec-nd.is-here { fill-opacity: 0.14; }
.cm-anim.is-lit .cm-part, .cm-anim.is-lit .map-city { opacity: 1; }
.sec-intro { padding-bottom: clamp(1rem, 3vw, 2rem); }
.sec-parts { border-top: 1px solid var(--rule); }
.sec-part { padding: clamp(3.25rem, 7vw, 5.25rem) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 3.25rem; }
.sec-part:nth-child(even) { background: var(--bg-alt); }
.sp-text { max-width: 41rem; }
.sp-text h2 { position: relative; margin: 0 0 1.3rem; padding-top: 1.4rem; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; }
.sp-text h2::before { content: ""; position: absolute; left: 0; top: 0; width: 2.25rem; height: 1px; background: var(--sage-deep); }
.sp-text > p { margin: 0 0 1.4rem; font-size: 1.1rem; line-height: 1.85; color: var(--text-soft); text-wrap: pretty; }
.hoods { margin-top: 1.8rem; border-top: 1px solid var(--rule); }
.hoods > summary { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.9rem 0 0.3rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
.hoods > summary::-webkit-details-marker { display: none; }
.hoods > summary:hover { color: var(--text); }
.hoods > summary .ag-icon { width: 1.5rem; height: 1.5rem; order: -1; }
.hoods .dm-close { display: none; }
.hoods[open] .dm-open { display: none; }
.hoods[open] .dm-close { display: inline; }
.hoods-body { padding: 0.8rem 0 0; }
details[open] > .hoods-body { animation: ag-in 0.4s var(--ease) both; }
.hood { padding: 1.1rem 0 0.2rem; scroll-margin-top: 4rem; }
.hood-name { margin: 0 0 0.55rem; font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.hood:target .hood-name { color: var(--sage); }
.hood p { margin: 0; color: var(--text-soft); font-size: 1.04rem; line-height: 1.8; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { details[open] > .hoods-body { animation: none; } .cm-anim .cm-sec.is-here, .cm-anim .cm-part, .cm-anim .map-city { transition: none; } }
@media print { .hoods .hoods-body { display: block; } }
.cmap-wrap { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.cmap-fig { margin: 0; max-width: 34rem; }
.cmap-fig .cambridge-map { display: block; width: 100%; height: auto; }
.cmap-fig figcaption { margin-top: 0.6rem; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
@media (min-width: 1040px) { .cmap-wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } .cmap-fig { position: sticky; top: calc(var(--header-h) + 1.5rem); } .cmap-wrap .sec-grid { grid-template-columns: 1fr; } }
.sec-box.is-lit { border-top-color: var(--sage); background: rgba(127, 154, 135, 0.06); }
.sec-box { transition: background-color 0.6s var(--ease); }

/* v103: the Burlington map, in the same style as the Cambridge map (it carries both classes) */
.burlington-map .bm-water { fill: var(--map-water); stroke: var(--map-shore); stroke-opacity: 0.55; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.burlington-map .bm-lines { fill: none; stroke: var(--map-shore); stroke-opacity: 0.13; stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.burlington-map .bm-name { font-size: 12.5px; }
.burlington-map .cm-sec.is-here { fill-opacity: 0.34; }
.bmap-small .map-label { font-size: 24px; }
.bmap-small .map-water-label { font-size: 15px; }
.cmap-interactive .cm-sec.is-on { fill-opacity: 0.32; }
.cmap-interactive .cm-name.is-on { fill: #fff; }
.bp-grid { display: grid; gap: 1.6rem; }
.bp-map { margin: 0; width: min(15rem, 62vw); order: -1; }
.bp-map svg { display: block; width: 100%; height: auto; }
.bp-map figcaption { margin-top: 0.4rem; font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
@media (min-width: 900px) { .bp-grid { grid-template-columns: minmax(0, 41rem) minmax(0, 17rem); justify-content: space-between; align-items: start; gap: 3rem; } .bp-map { order: 0; width: 100%; position: sticky; top: calc(var(--header-h) + 5rem); } }
.sd-col .sd-group a { color: inherit; text-decoration: none; }
.sd-col .sd-group a:hover, .sd-col .sd-group a:focus-visible, .sd-col.is-lit .sd-group a { color: #fff; }
.burlington-map.cmap-interactive .cm-sec.is-feature { fill-opacity: 0.18; }
.burlington-map.cmap-interactive .cm-sec.is-feature.is-on { fill-opacity: 0.36; }
.bp-sub { margin: 2.4rem 0 0.9rem; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
.bpart-feature .sp-text h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.bpart-feature .sp-text > p:first-of-type { font-size: 1.22rem; color: var(--text); }

/* v104 (v105: shared with the Cambridge map via .map-detail): quiet map detail (OpenStreetMap): parks, escarpment edge, roads, GO line, highways */
:is(.burlington-map, .map-detail) .bm-park { fill: #34623f; fill-opacity: 0.6; }
:is(.burlington-map, .map-detail) .bm-cliff { fill: none; stroke: var(--map-shore); stroke-opacity: 0.32; stroke-width: 3; stroke-dasharray: 0.9 2.2; vector-effect: non-scaling-stroke; }
:is(.burlington-map, .map-detail) .bm-road { fill: none; stroke: var(--map-ink-soft); stroke-opacity: 0.22; stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
:is(.burlington-map, .map-detail) .bm-hwy { fill: none; stroke: var(--map-ink-soft); stroke-opacity: 0.34; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
:is(.burlington-map, .map-detail) .bm-rail { fill: none; stroke: var(--map-shore); stroke-opacity: 0.42; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
:is(.burlington-map, .map-detail) .bm-rail-tick { fill: none; stroke: var(--map-shore); stroke-opacity: 0.38; stroke-width: 3; stroke-dasharray: 0.7 5; vector-effect: non-scaling-stroke; }
:is(.burlington-map, .map-detail) .bm-go { fill: var(--map-land); stroke: var(--map-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
:is(.burlington-map, .map-detail) .bm-dot { fill: var(--map-ink-soft); fill-opacity: 0.8; }
:is(.burlington-map, .map-detail) .bm-go-label, :is(.burlington-map, .map-detail) .bm-mark { font-size: 8.4px; letter-spacing: 0.02em; fill: var(--map-muted); }
:is(.burlington-map, .map-detail) .bm-mark-green { fill: #9fc3a5; font-style: italic; }
:is(.burlington-map, .map-detail) .bm-shield { font-size: 7.4px; font-weight: 600; letter-spacing: 0.1em; fill: var(--map-ink-soft); fill-opacity: 0.6; }
:is(.burlington-map, .map-detail) .bm-hood { font-size: 9.6px; letter-spacing: 0.03em; fill: var(--map-ink-soft); fill-opacity: 0.78; }
:is(.burlington-map, .map-detail) text.bm-mark, :is(.burlington-map, .map-detail) text.bm-go-label, :is(.burlington-map, .map-detail) text.bm-hood, :is(.burlington-map, .map-detail) text.bm-shield { stroke-width: 3px; }
:is(.burlington-map, .map-detail) .bm-hatch-line { stroke: var(--map-shore); stroke-width: 0.9; stroke-opacity: 0.55; }
:is(.burlington-map, .map-detail) .bm-escarp { opacity: 0.8; }
@media (max-width: 699px) {
  :is(.burlington-map.bmap-full, .map-detail) .bm-wide { display: none; }
  :is(.burlington-map.bmap-full, .map-detail) .bm-name { font-size: 17px; }
  :is(.burlington-map.bmap-full, .map-detail) .bm-hood { font-size: 11.5px; fill-opacity: 0.85; }
  :is(.burlington-map.bmap-full, .map-detail) .bm-mark { font-size: 11px; }
  :is(.burlington-map.bmap-full, .map-detail) .map-water-label { font-size: 11px; letter-spacing: 0.2em; }
  :is(.burlington-map.bmap-full, .map-detail) text.bm-hood, :is(.burlington-map.bmap-full, .map-detail) text.bm-mark { stroke-width: 3.5px; }
}
.bmap-wrap .burlington-map.bmap-full .bm-wide { display: none; }

/* v105: Cambridge map detail */
.map-detail .cm-creek { fill: none; stroke: var(--map-water); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.map-detail .cm-creek-edge { fill: none; stroke: var(--map-shore); stroke-opacity: 0.32; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map-detail .bm-village { fill: var(--map-ink-soft); fill-opacity: 0.85; }
.cmap-wrap:not(.bmap-wrap) .map-detail .bm-wide { display: none; }

/* v107: How we work, an odd last point runs across both columns so the grid stays even */
@media (min-width: 760px) {
  .index-list-grid:not(.index-list-3) > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* v108: song of the day (footer). Spotify icon at its 21px minimum with clear space around it */
.footer-song { margin: 0.5rem 0 0; padding-left: 0; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.01em; }
.footer-song .song-line { position: relative; padding-left: calc(30px + 0.6rem); margin: 0.5rem 0 0 !important; line-height: 1.8; min-height: 30px; }
.footer-song .song-line[hidden] { display: none; }
.footer-song .song-body { min-width: 0; }
.footer-song .song-cover { position: absolute; left: 0; top: -3px; width: 30px; height: 30px; border-radius: 4px; object-fit: cover; background: rgba(255,255,255,0.04); box-shadow: 0 0 0 1px rgba(255,255,255,0.08); opacity: 0.92; }
.footer-song .song-title { font-style: italic; font-weight: 400; }
.site-footer .footer-song .song-main { color: inherit; border-bottom: 0; text-decoration: none; transition: color 0.2s ease; }
.site-footer .footer-song .song-main [data-song-text] { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
.site-footer .footer-song .song-main:hover [data-song-text], .site-footer .footer-song .song-main:focus-visible [data-song-text] { color: var(--text); text-decoration-color: var(--rule-strong); }
.site-footer .footer-song .song-main:hover .song-cover, .site-footer .footer-song .song-main:focus-visible .song-cover { opacity: 1; }
.site-footer .footer-song .song-main:focus-visible { outline: 1px solid var(--silver); outline-offset: 2px; border-radius: 2px; }
.footer-song [data-song-text] { color: var(--text-soft); }
.footer-song .spotify-btn { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; margin: -5px 0.4rem -4px 0.2rem; border-radius: 50%; vertical-align: middle; }
/* v111: when the Spotify button wraps to the start of a line, pull it in so its green icon lines up with the text edge */
.footer-song .spotify-btn.at-line-start { margin-left: -4px; }
.footer-song .spotify-btn:focus-visible { outline: 1px solid var(--silver); outline-offset: 1px; }
.footer-song .spotify-icon { width: 21px; height: 21px; flex: none; }
.footer-song .song-yday-link { display: inline-block; vertical-align: middle; line-height: 1.4; white-space: nowrap; font-size: 0.74rem; color: var(--text-muted); padding: 0.2rem 0; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.footer-song .song-yday-link:hover, .footer-song .song-yday-link:focus-visible { color: var(--text-soft); }

/* v115: the seller's guide as a feature. A rendered guide cover (type and fine line work, no photo) on a soft
   sage field, with two loose pages behind it that fan out as it comes into view. Calm, no flash. */
.guide-section { position: relative; }
.guide-feature {
  --gf-sage: #a9bfae; --gf-sage-deep: #7f9a87; --gf-sage-pale: #c9d8cc; --gf-ink: #0b1f3a;
  position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 80% at 18% 50%, rgba(127, 154, 135, 0.20), rgba(127, 154, 135, 0) 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(0, 61, 165, 0.16), rgba(0, 61, 165, 0) 70%),
    linear-gradient(155deg, #0d1d3c 0%, #091733 55%, #071229 100%);
  box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.16) inset, 0 50px 120px -60px rgba(0, 0, 0, 0.9);
}
.guide-feature::before {  /* the river contour signature, very faint, under the copy */
  content: ""; position: absolute; inset: auto -10% -35% 30%; height: 120%; z-index: -1; pointer-events: none;
  background: url("assets/img/contours.svg") no-repeat right bottom / contain; opacity: 0.32;
}
.guide-feature::after {  /* a fine inner frame, like a mount around a print */
  content: ""; position: absolute; inset: 14px; border-radius: 18px; border: 1px solid rgba(169, 191, 174, 0.08); pointer-events: none;
}
@media (min-width: 900px) { .guide-feature { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }

/* the cover */
.gf-art { position: relative; width: min(100%, 21rem); aspect-ratio: 3 / 4; margin: 0 auto; perspective: 1400px; container-type: inline-size; }
.gf-glow { position: absolute; inset: -18% -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(169, 191, 174, 0.30), rgba(169, 191, 174, 0)); filter: blur(10px); }
.gf-sheet, .gf-cover { position: absolute; inset: 0; border-radius: 6px 12px 12px 6px; transform-origin: 30% 100%;
  transition: transform 1.3s var(--ease), box-shadow 1.3s var(--ease); }
.gf-sheet { background: linear-gradient(100deg, #e9eee8, #f6f8f4 40%, #e4eae3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.gf-sheet-back { transform: rotate(7deg) translate(9%, 2%); background: linear-gradient(100deg, #d6e1d8, #e7eee6 45%, #d2ddd3); }
.gf-sheet-mid { transform: rotate(3.2deg) translate(4.5%, 1%); }
.gf-cover {
  display: flex; flex-direction: column; padding: 9% 10% 8%; color: var(--gf-ink); overflow: hidden;
  transform: rotate(-3deg);
  background-color: var(--gf-sage-pale);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(11, 31, 58, 0.16) 0, rgba(11, 31, 58, 0) 4.5%, rgba(255, 255, 255, 0.22) 5.5%, rgba(255, 255, 255, 0) 9%),
    linear-gradient(160deg, #d6e3d8 0%, #c9d8cc 45%, #b9ccbe 100%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.85), 0 14px 30px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(11, 31, 58, 0.06) inset;
}
.gf-lines { position: absolute; left: 0; right: 0; bottom: 19%; width: 100%; height: 22%; pointer-events: none; }
.gf-lines path { fill: none; stroke: #7f9a87; stroke-width: 1; stroke-opacity: 0.75; vector-effect: non-scaling-stroke; }
.gf-cover-top { position: relative; display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--font-display); font-size: 2.75cqw; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(11, 31, 58, 0.62); padding-bottom: 3.2cqw; border-bottom: 1px solid rgba(11, 31, 58, 0.18); }
.gf-cover-title { position: relative; margin-top: 15%; font-family: var(--font-display); font-weight: 400; font-size: 13.6cqw; line-height: 0.98; letter-spacing: -0.035em; color: var(--gf-ink); }
.gf-cover-sub { position: relative; margin-top: 4.5cqw; max-width: 62cqw; font-size: 3.5cqw; line-height: 1.45; color: rgba(11, 31, 58, 0.7); }
.gf-cover-foot { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 0.25rem; }
.gf-cover-names { font-family: var(--font-display); font-size: 3.9cqw; font-weight: 500; letter-spacing: -0.01em; color: var(--gf-ink); white-space: nowrap; }
.gf-cover-names i { display: inline-block; width: 1px; height: 0.8em; margin: 0 0.35em; vertical-align: -0.05em; background: rgba(11, 31, 58, 0.45); }
.gf-cover-names b { color: var(--red); font-weight: 700; }
.gf-cover-brk { font-family: var(--font-display); font-size: 2.35cqw; font-weight: 500; letter-spacing: 0.14em; white-space: nowrap; text-transform: uppercase; color: rgba(11, 31, 58, 0.55); }

/* the copy */
.gf-copy { position: relative; max-width: 34rem; }
.gf-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2.2rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; line-height: 1.04; }
.gf-lead { margin: 0 0 2rem; font-size: 1.08rem; line-height: 1.75; color: var(--text-soft); text-wrap: pretty; }
.gf-inside { list-style: none; margin: 0 0 1.75rem; padding: 0; border-top: 1px solid rgba(169, 191, 174, 0.2); }
.gf-inside li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.5rem; padding: 0.95rem 0; border-bottom: 1px solid rgba(169, 191, 174, 0.14);
  transition: background-color 0.5s var(--ease); }
.gf-num { padding-top: 0.15rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; color: #a9bfae; font-variant-numeric: tabular-nums; }
.gf-item { display: flex; flex-direction: column; gap: 0.2rem; }
.gf-item-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; color: var(--text); letter-spacing: -0.005em; }
.gf-item-text { font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); }
.gf-free { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.25rem; font-size: 0.95rem; color: var(--text-soft); }
.gf-free-mark { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #a9bfae; box-shadow: 0 0 0 4px rgba(169, 191, 174, 0.14); }
.guide-feature .actions-guide { margin: 1.4rem 0 0; }
.guide-feature .value-note { margin: 1rem 0 0; color: var(--text-muted); }

/* motion: the pages fan out once as the feature comes into view, and lift a little on hover */
.js-motion .guide-feature:not(.is-in) .gf-sheet-back, .js-motion .guide-feature:not(.is-in) .gf-sheet-mid { transform: rotate(-3deg); }
.js-motion .guide-feature:not(.is-in) .gf-cover { transform: rotate(-3deg) translateY(10px); }
.js-motion .guide-feature .gf-copy > * { transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js-motion .guide-feature:not(.is-in) .gf-copy > * { opacity: 0; transform: translateY(14px); }
.js-motion .guide-feature .gf-copy > :nth-child(2) { transition-delay: 0.08s; }
.js-motion .guide-feature .gf-copy > :nth-child(3) { transition-delay: 0.16s; }
.js-motion .guide-feature .gf-copy > :nth-child(4) { transition-delay: 0.24s; }
.js-motion .guide-feature .gf-copy > :nth-child(n+5) { transition-delay: 0.32s; }
@media (hover: hover) and (pointer: fine) {
  .guide-feature.is-in:hover .gf-cover, .guide-feature:not(.is-in):hover .gf-cover { transform: rotate(-1.5deg) translateY(-8px); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.9), 0 20px 40px -22px rgba(0, 0, 0, 0.6); }
  .guide-feature:hover .gf-sheet-back { transform: rotate(9deg) translate(12%, 1%); }
  .guide-feature:hover .gf-sheet-mid { transform: rotate(4.5deg) translate(6%, 0.5%); }
  .gf-inside li:hover { background-color: rgba(169, 191, 174, 0.04); }
}
@media (prefers-reduced-motion: reduce) {
  .gf-sheet, .gf-cover, .guide-feature .gf-copy > * { transition: none !important; }
}
@media (max-width: 899px) {
  .gf-art { width: min(68%, 15.5rem); margin-bottom: 0.5rem; }
  .guide-feature { text-align: left; }
}
@media (max-width: 380px) { .gf-art { width: 72%; } .gf-inside li { grid-template-columns: 2.1rem 1fr; } }
@media print { .gf-art { display: none; } .guide-feature { box-shadow: none; background: none; } }

/* v115: quiet note sections (a short statement set as a framed note, not a lone paragraph) */
.note-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1.1rem, 3vw, 1.9rem); align-items: start;
  max-width: 46rem; padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.75rem); border-radius: 22px; overflow: hidden;
  background: radial-gradient(70% 120% at 0% 0%, rgba(127, 154, 135, 0.14), rgba(127, 154, 135, 0) 60%), linear-gradient(160deg, #0d1c3a, #0a1631);
  box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.15) inset, 0 40px 90px -60px rgba(0, 0, 0, 0.9); }
.note-card::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; border-radius: 2px; background: linear-gradient(#a9bfae, rgba(169, 191, 174, 0)); }
.note-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(169, 191, 174, 0.08); box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.28) inset; }
.note-icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: #a9bfae; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.note-copy h2 { margin: 0.2rem 0 0.9rem; }
.note-text { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.38rem); font-weight: 300; line-height: 1.6; letter-spacing: -0.005em; color: var(--text-soft); text-wrap: pretty; }
@media (max-width: 520px) { .note-card { grid-template-columns: 1fr; } }

/* v115: the contact form as a finished card: soft field, mounted frame, Tanner's photo beside the title */
.contact-form { position: relative; border-radius: 24px; border: 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 100% 0%, rgba(127, 154, 135, 0.13), rgba(127, 154, 135, 0) 70%), linear-gradient(165deg, #0e1e3d, #0a1631 70%);
  box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.16) inset, 0 50px 110px -60px rgba(0, 0, 0, 0.9); }
.contact-form::after { content: ""; position: absolute; inset: 12px; border-radius: 15px; border: 1px solid rgba(169, 191, 174, 0.07); pointer-events: none; z-index: -1; }
.form-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(169, 191, 174, 0.16); }
.form-head .form-title { margin: 0 0 0.3rem; }
.form-head .form-note { margin: 0; }
.form-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 22%; box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.45), 0 0 0 4px rgba(169, 191, 174, 0.08); }
.contact-form .field input, .contact-form .field textarea, .contact-form .field select { border-radius: 12px; background-color: rgba(4, 11, 28, 0.55); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.contact-form .field input:hover, .contact-form .field textarea:hover, .contact-form .field select:hover { border-color: rgba(169, 191, 174, 0.55); }
.contact-form .field input:focus, .contact-form .field textarea:focus, .contact-form .field select:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: #a9bfae; background-color: rgba(4, 11, 28, 0.8); box-shadow: 0 0 0 4px rgba(169, 191, 174, 0.10); }
.contact-form .field-check { padding: 0.9rem 1rem; border-radius: 12px; background: rgba(169, 191, 174, 0.05); box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.12) inset; }
.contact-form .field-check input { accent-color: #a9bfae; }
.contact-form button[type="submit"], .contact-form .btn-primary { min-width: 9rem; }

/* v115: thank you, a calm confirmation with a line that draws itself, and both direct lines */
.thanks-card { position: relative; max-width: 50rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 26px; text-align: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 0%, rgba(127, 154, 135, 0.16), rgba(127, 154, 135, 0) 70%), linear-gradient(165deg, #0e1e3d, #0a1631 70%);
  box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.16) inset, 0 50px 110px -60px rgba(0, 0, 0, 0.9); }
.thanks-mark { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.4rem; }
.thanks-mark svg { width: 100%; height: 100%; fill: none; stroke: #a9bfae; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thanks-mark .tm-ring { stroke-opacity: 0.4; stroke-dasharray: 183; stroke-dashoffset: 183; animation: tm-draw 1.4s var(--ease) 0.2s forwards; }
.thanks-mark .tm-check { stroke-width: 2; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tm-draw 0.9s var(--ease) 0.9s forwards; }
@keyframes tm-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .thanks-mark .tm-ring, .thanks-mark .tm-check { animation: none; stroke-dashoffset: 0; } }
.thanks-copy h2 { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.thanks-copy p { margin: 0 auto; max-width: 30rem; color: var(--text-soft); }
.thanks-people { display: grid; gap: 1rem; margin: 2.2rem 0 2rem; text-align: left; }
@media (min-width: 640px) { .thanks-people { grid-template-columns: 1fr 1fr; } }
.thanks-person { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: 16px; background: rgba(4, 11, 28, 0.4); box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.14) inset; }
.thanks-person img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 22%; box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.4); }
.thanks-person p { margin: 0; }
.tp-name { font-family: var(--font-display); font-weight: 500; color: var(--text); margin-bottom: 0.2rem !important; }
.tp-line { font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }
.thanks-actions { justify-content: center; margin: 0; }

/* v115: 404, a large quiet numeral and the links as tiles */
.nf-mark { position: absolute; right: -0.04em; top: 50%; transform: translateY(-50%); margin: 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(9rem, 26vw, 22rem); line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(169, 191, 174, 0.22); pointer-events: none; user-select: none; }
.page-notfound .container { position: relative; }
.page-notfound h1, .page-notfound .page-lead, .page-notfound .eyebrow { position: relative; }
.nf-links { position: relative; display: grid; gap: 0.75rem; max-width: 40rem; border-top: 0; }
@media (min-width: 640px) { .nf-links { grid-template-columns: 1fr 1fr; } }
.nf-links li { margin: 0; }
.nf-links a { padding: 1rem 1.15rem; border: 0; border-radius: 14px; background: rgba(12, 26, 54, 0.7); box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.14) inset; backdrop-filter: blur(2px);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.nf-links a:hover, .nf-links a:focus-visible { padding-left: 1.15rem; background: rgba(18, 36, 70, 0.85); box-shadow: 0 0 0 1px rgba(169, 191, 174, 0.38) inset; transform: translateY(-2px); }
@media (max-width: 639px) { .nf-mark { top: 4.5rem; transform: none; font-size: 42vw; } }

/* v115: detail maps for the area guides that had only a locator */
.area-map { display: block; width: 100%; height: auto; }
.area-map .cm-sec.is-here { fill-opacity: 0.17; }
.area-map .cm-city { fill: #0f2b1b; }
.area-map .bm-road { stroke-opacity: 0.15; }
.area-map .bm-hwy { stroke-opacity: 0.5; stroke-width: 1.7; }
.area-map .am-river-edge { stroke-width: 3.4; stroke-opacity: 0.42; }
.area-map .am-river { stroke-width: 2; }
.area-map .am-name { font-size: 15px; font-weight: 500; fill: var(--map-ink); letter-spacing: 0.01em; }
.area-map .am-river-label { font-size: 6.6px; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--map-muted); fill-opacity: 0.8; stroke-width: 3px; }
.area-map .bm-dot { fill: var(--map-ink-soft); }
.area-hero-detail figcaption .area-coords { white-space: nowrap; }
@media (max-width: 600px) { .area-map .am-name { font-size: 19px; } .area-map .am-river-label { font-size: 9px; } }
.area-map .map-water-label:not(.am-river-label) { font-size: 8.4px; letter-spacing: 0.3em; fill: #9fb7c9; fill-opacity: 0.75; stroke: var(--map-water); stroke-width: 3px; }
.area-map { --map-water: #0a2148; }
.area-map .map-water-label.am-lake { font-size: 8px; letter-spacing: 0.04em; text-transform: none; font-style: italic; fill: #a9c3d6; stroke: var(--map-land); }
/* v116: the place dots on the Ontario map beacon softly, staggered, never in unison */
.ontario-map .map-beacon { fill: none; stroke: #a9bfae; stroke-width: 0.9; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .ontario-map .map-beacon { animation: map-beacon 3.6s cubic-bezier(0.2, 0.6, 0.35, 1) infinite; }
  .ontario-map .map-beacon-1 { animation-duration: 3.9s; animation-delay: -1.3s; }
  .ontario-map .map-beacon-2 { animation-duration: 3.4s; animation-delay: -2.5s; }
  .ontario-map .map-beacon-3 { animation-duration: 4s; animation-delay: -0.6s; }
  .ontario-map .map-beacon-4 { animation-duration: 3.7s; animation-delay: -3.1s; }
}
@keyframes map-beacon { 0% { transform: scale(1); opacity: 0.42; } 60% { transform: scale(3.6); opacity: 0; } 100% { transform: scale(3.6); opacity: 0; } }
/* v116: the guide covers, a matched pair. Seller: deep navy with sage line work. Buyer: sage with navy line work. */
.gf-cover { isolation: isolate; }
.gf-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.gf-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gf-cover-rule { position: relative; display: block; width: 18cqw; height: 1.5px; margin-top: 11%; border-radius: 1px; }
.gf-cover-title { margin-top: 5% !important; }
.gf-cover-title em { font-style: italic; font-weight: 400; letter-spacing: -0.045em; }
.gf-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.09) 44%, rgba(255, 255, 255, 0.02) 52%, rgba(255, 255, 255, 0) 60%);
  background-size: 260% 100%; background-position: 100% 0; }
@media (prefers-reduced-motion: no-preference) {
  .js-motion .guide-feature .gf-sheen { transition: background-position 2.6s var(--ease) 0.5s; }
  .js-motion .guide-feature:not(.is-in) .gf-sheen { background-position: 100% 0; }
  .js-motion .guide-feature.is-in .gf-sheen { background-position: 0 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .guide-feature:hover .gf-sheen { background-position: 0 0; transition: background-position 1.8s var(--ease); } }

/* seller: navy */
.gf-cover-seller {
  color: #f3efe6;
  background-color: #0d2447;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0, rgba(0, 0, 0, 0) 4.5%, rgba(255, 255, 255, 0.07) 5.5%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(120% 80% at 20% 0%, #17345f 0%, #0d2447 55%, #081a35 100%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 14px 30px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(169, 191, 174, 0.16) inset;
}
.gf-cover-seller .gfm-road { stroke: #a9bfae; stroke-opacity: 0.16; stroke-width: 0.6; }
.gf-cover-seller .gfm-hwy { stroke: #a9bfae; stroke-opacity: 0.32; stroke-width: 1; }
.gf-cover-seller .gfm-city { stroke: #c9d8cc; stroke-opacity: 0.38; stroke-width: 0.8; stroke-dasharray: 2 3; }
.gf-cover-seller .gfm-river-glow { stroke: #a9bfae; stroke-opacity: 0.16; stroke-width: 5; }
.gf-cover-seller .gfm-river { stroke: #c9d8cc; stroke-opacity: 0.8; stroke-width: 1.4; }
.gf-cover-seller .gf-cover-top { color: rgba(201, 216, 204, 0.78); border-bottom-color: rgba(169, 191, 174, 0.26); }
.gf-cover-seller .gf-cover-rule { background: linear-gradient(90deg, #7f9a87, #e2ece4 45%, #a9bfae 60%, #7f9a87); }
.gf-cover-seller .gf-cover-title { color: #f3efe6; }
.gf-cover-seller .gf-cover-title em { color: #c9d8cc; }
.gf-cover-seller .gf-cover-sub { color: rgba(243, 239, 230, 0.72); }
.gf-cover-seller .gf-cover-names { color: #f3efe6; }
.gf-cover-seller .gf-cover-names i { background: rgba(169, 191, 174, 0.55); }
.gf-cover-seller .gf-cover-brk { color: rgba(201, 216, 204, 0.62); }

/* buyer: sage */
.gf-cover-buyer {
  color: #0b1f3a;
  background-color: #a9bfae;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.12 0 0 0 0 0.08 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(11, 31, 58, 0.2) 0, rgba(11, 31, 58, 0) 4.5%, rgba(255, 255, 255, 0.2) 5.5%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(120% 80% at 20% 0%, #c3d4c6 0%, #a9bfae 55%, #8fa995 100%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.85), 0 14px 30px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(11, 31, 58, 0.08) inset;
}
.gf-cover-buyer .gfm-road { stroke: #0b1f3a; stroke-opacity: 0.14; stroke-width: 0.6; }
.gf-cover-buyer .gfm-hwy { stroke: #0b1f3a; stroke-opacity: 0.28; stroke-width: 1; }
.gf-cover-buyer .gfm-city { stroke: #0b1f3a; stroke-opacity: 0.34; stroke-width: 0.8; stroke-dasharray: 2 3; }
.gf-cover-buyer .gfm-river-glow { stroke: #f3f6f2; stroke-opacity: 0.35; stroke-width: 5; }
.gf-cover-buyer .gfm-river { stroke: #0d2447; stroke-opacity: 0.7; stroke-width: 1.4; }
.gf-cover-buyer .gf-cover-rule { background: linear-gradient(90deg, #0d2447, #4a6688 45%, #0d2447); }
.gf-cover-buyer .gf-cover-title em { color: #1d3d63; }
.guide-buyer .gf-sheet-mid { background: linear-gradient(100deg, #e4ebe4, #f3f6f1 40%, #dfe7df); }
.guide-seller .gf-sheet-back { background: linear-gradient(100deg, #b9ccbe, #d4e0d6 45%, #b4c7b8); }
.gf-alt { margin: 1rem 0 0; font-size: 0.95rem; color: var(--text-muted); }
.gf-alt a { color: var(--text-soft); }
.gf-cover-seller :is(.gf-cover-title, .gf-cover-sub, .gf-cover-names, .gf-cover-brk) { text-shadow: 0 0 6px #0d2447, 0 0 12px #0d2447; }
.gf-cover-buyer :is(.gf-cover-title, .gf-cover-sub, .gf-cover-names, .gf-cover-brk) { text-shadow: 0 0 6px #a9bfae, 0 0 12px #a9bfae; }
/* v117: the buyer's cover in deep evergreen, with sage and ivory line work, a sibling to the navy seller's cover */
.gf-cover-buyer {
  color: #f3efe6;
  background-color: #21403a;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.075 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, rgba(0, 0, 0, 0) 1px 3px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0, rgba(0, 0, 0, 0.08) 3%, rgba(0, 0, 0, 0) 4.5%, rgba(255, 255, 255, 0.08) 5.5%, rgba(255, 255, 255, 0) 9%),
    radial-gradient(120% 80% at 20% 0%, #2c5249 0%, #21403a 55%, #172f2a 100%);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 14px 30px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 216, 204, 0.14) inset;
}
.gf-cover-buyer .gfm-road { stroke: #c9d8cc; stroke-opacity: 0.14; stroke-width: 0.6; }
.gf-cover-buyer .gfm-hwy { stroke: #c9d8cc; stroke-opacity: 0.3; stroke-width: 1; }
.gf-cover-buyer .gfm-city { stroke: #f3efe6; stroke-opacity: 0.34; stroke-width: 0.8; stroke-dasharray: 2 3; }
.gf-cover-buyer .gfm-river-glow { stroke: #a9bfae; stroke-opacity: 0.16; stroke-width: 5; }
.gf-cover-buyer .gfm-river { stroke: #e8e2d2; stroke-opacity: 0.75; stroke-width: 1.4; }
.gf-cover-buyer .gf-cover-top { color: rgba(201, 216, 204, 0.8); border-bottom-color: rgba(201, 216, 204, 0.24); }
.gf-cover-buyer .gf-cover-rule { background: linear-gradient(90deg, #8a7f63, #efe6cc 45%, #c9b98f 60%, #8a7f63); }
.gf-cover-buyer .gf-cover-title { color: #f3efe6; }
.gf-cover-buyer .gf-cover-title em { color: #c9d8cc; }
.gf-cover-buyer .gf-cover-sub { color: rgba(243, 239, 230, 0.74); }
.gf-cover-buyer .gf-cover-names { color: #f3efe6; }
.gf-cover-buyer .gf-cover-names i { background: rgba(201, 216, 204, 0.5); }
.gf-cover-buyer .gf-cover-brk { color: rgba(201, 216, 204, 0.62); }
.gf-cover-buyer :is(.gf-cover-title, .gf-cover-sub, .gf-cover-names, .gf-cover-brk) { text-shadow: 0 0 6px #21403a, 0 0 12px #21403a; }
.guide-buyer .gf-sheet-back { background: linear-gradient(100deg, #a9bfae, #c4d3c7 45%, #a2b8a7); }
.guide-buyer .gf-sheet-mid { background: linear-gradient(100deg, #ebe5d6, #f6f2e8 40%, #e6dfcd); }
.guide-buyer .gf-glow { background: radial-gradient(closest-side, rgba(127, 154, 135, 0.32), rgba(127, 154, 135, 0)); }
/* v118: the guides as an editorial feature: a photograph of the booklets, plain type, hairline rules. No card, glow, or sheen. */
.guide-feature { background: none; box-shadow: none; border-radius: 0; overflow: visible; isolation: auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid rgba(169, 191, 174, 0.16); border-bottom: 1px solid rgba(169, 191, 174, 0.16);
  gap: clamp(2.25rem, 5.5vw, 5.5rem); align-items: center; }
.guide-feature::before, .guide-feature::after { content: none; display: none; }
@media (min-width: 900px) { .guide-feature { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.gf-photo { margin: 0; position: relative; }
.gf-photo picture, .gf-photo img { display: block; width: 100%; height: auto; }
.gf-photo img { border-radius: 2px; background: #0e1726; }
.gf-copy { max-width: 31rem; }
.gf-copy h2 { font-weight: 400; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.gf-lead { margin-bottom: 2.25rem; }
.gf-inside-label { margin: 0 0 0.85rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #a9bfae; }
.gf-inside { border-top: 1px solid rgba(169, 191, 174, 0.22); margin-bottom: 2rem; }
.gf-inside li { display: block; padding: 1.05rem 0 1.1rem; border-bottom: 1px solid rgba(169, 191, 174, 0.12); transition: none; }
.gf-inside li:hover { background: none; }
.gf-item { gap: 0.3rem; }
.gf-item-title { font-size: 1.06rem; font-weight: 400; letter-spacing: -0.01em; }
.gf-free { display: block; font-size: 0.95rem; color: var(--text-muted); }
.guide-feature .actions-guide { margin-top: 1.5rem; }
@media (max-width: 899px) { .gf-photo { max-width: 34rem; margin: 0 auto; width: 100%; } .guide-feature { padding-top: 2rem; } }
@media print { .gf-photo { display: none; } }
@media (min-width: 900px) {
  .guide-feature { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  .gf-photo { margin-block: calc(-1 * clamp(2.5rem, 5vw, 4rem) - 1.5rem); }
}
.gf-photo figcaption { margin-top: 0.85rem; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--text-muted); font-style: italic; }
/* v119: the booklet photo is now on oat linen in daylight; a fine mount line sets it off the navy page */
.gf-photo img { background: #d9cfbd; border-radius: 1px; outline: 1px solid rgba(201, 216, 204, 0.22); outline-offset: 7px; }
.gf-photo figcaption { margin-top: 1.25rem; }
@media (max-width: 899px) { .gf-photo { padding: 8px; } }
/* v120: the booklet image is now on a plain slate navy panel; no mount line */
.gf-photo img { outline: none; background: #13233f; border-radius: 2px; }
@media (max-width: 899px) { .gf-photo { padding: 0; } }
/* v121: the guides as text only: the introduction on the left, what's inside on the right, on hairline rules */
.guide-feature.gf-text { align-items: start; gap: clamp(2.25rem, 5vw, 5rem); padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
@media (min-width: 900px) {
  .guide-feature.gf-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gf-text .gf-list { padding-top: 0.35rem; }
}
.gf-text .gf-copy { max-width: none; }
.gf-text .gf-intro { max-width: 30rem; }
.gf-text .gf-intro h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
.gf-text .gf-lead { margin-bottom: 1.75rem; }
.gf-text .gf-inside { margin-bottom: 0; }
.gf-text .gf-inside li:last-child { border-bottom: 0; }
.gf-text .gf-item-text { max-width: 32rem; }

/* v122: interactive area maps (rings for each part of town, landmark dots, one small card) */
.imap-fig { position: relative; }
.imap .im-zone { cursor: pointer; outline: none; }
.imap .im-zone-hit, .imap .im-poi-hit { fill: transparent; }
.imap .im-halo, .imap .im-dot, .imap .im-poi-dot { pointer-events: none; }
.imap .im-halo { fill: #A9BFAE; fill-opacity: 0.1; stroke: #C9D8CC; stroke-opacity: 0.45; stroke-width: 0.8; transform-box: fill-box; transform-origin: center; transition: fill-opacity 0.35s var(--ease), stroke-opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.imap .im-dot { fill: #C9D8CC; }
.imap .im-zlabel { font-family: var(--font-display); font-size: 9.6px; font-weight: 500; letter-spacing: 0.02em; fill: var(--map-ink-soft, #b8c2d3); paint-order: stroke; stroke: rgba(4, 11, 28, 0.85); stroke-width: 3px; stroke-linejoin: round; transition: fill 0.3s var(--ease), opacity 0.3s var(--ease); pointer-events: none; }
.imap .im-zlabel-quiet { opacity: 0; }
.imap .im-zone:hover .im-halo, .imap .im-zone:focus-visible .im-halo, .imap .im-zone.is-on .im-halo { fill-opacity: 0.32; stroke-opacity: 0.9; transform: scale(1.25); }
.imap .im-zone:hover .im-zlabel, .imap .im-zone:focus-visible .im-zlabel, .imap .im-zone.is-on .im-zlabel { fill: #fff; opacity: 1; }
.imap .im-zone:focus-visible .im-halo { stroke: var(--focus, #9bb8ef); stroke-width: 1.6; stroke-opacity: 1; }
.imap .im-poi { cursor: pointer; outline: none; }
.imap .im-poi-dot { fill: #7F9A87; stroke: #071229; stroke-width: 1; transition: r 0.25s var(--ease), fill 0.25s var(--ease); }
.imap .im-poi:hover .im-poi-dot, .imap .im-poi:focus-visible .im-poi-dot, .imap .im-poi.is-on .im-poi-dot { fill: #C9D8CC; r: 3.6; }
.imap .im-poi:focus-visible .im-poi-hit { stroke: var(--focus, #9bb8ef); stroke-width: 1.4; }
.im-card { position: absolute; left: 0; top: 0; z-index: 3; max-width: 15.5rem; padding: 0.6rem 0.75rem 0.65rem; border: 1px solid rgba(201, 216, 204, 0.22); border-radius: 4px; background: rgba(5, 13, 32, 0.94); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.im-card.is-on { opacity: 1; transform: none; }
.im-card-title { display: block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; color: #fff; }
.im-card-text { display: block; margin-top: 0.2rem; font-size: 0.76rem; line-height: 1.5; color: var(--text-soft); }
.im-card-text[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .imap .im-halo, .imap .im-zlabel, .imap .im-poi-dot, .im-card { transition: none; } .imap .im-zone.is-on .im-halo, .imap .im-zone:hover .im-halo { transform: none; } }

/* v122: deep area guides, laid out for easy reading */
.deep-grid { display: grid; gap: 2rem; }
@media (min-width: 980px) { .deep-grid { grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); gap: clamp(3rem, 6vw, 6rem); align-items: start; } .part-glance { position: sticky; top: calc(var(--header-h) + 4.5rem); } }
.deep-part .sp-text { max-width: 44rem; }
.deep-part .sp-text > p { font-size: 1.04rem; line-height: 1.8; color: var(--text-soft); }
.part-kicker { margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.part-kicker:empty { display: none; }
.hoods-title { margin: 2.4rem 0 0.2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver); }
.hood-grid { display: grid; gap: 0 2.2rem; }
@media (min-width: 720px) { .hood-grid { grid-template-columns: 1fr 1fr; } }
.hood-grid .hood { padding: 1.1rem 0 1rem; border-bottom: 1px solid var(--rule); }
.hood-grid .hood-name { font-size: 1.12rem; margin-bottom: 0.4rem; }
.hood-grid .hood p { font-size: 0.96rem; line-height: 1.7; }
.in-page { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.in-page-title { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.in-page ol { margin: 0; padding: 0; list-style: none; counter-reset: ip; columns: 2 14rem; column-gap: 2rem; }
.in-page li { counter-increment: ip; break-inside: avoid; padding: 0.3rem 0; }
.in-page li::before { content: counter(ip, decimal-leading-zero); margin-right: 0.6rem; font-family: var(--font-display); font-size: 0.72rem; color: var(--sage-deep, #7F9A87); }
.in-page a { color: var(--text-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.in-page a:hover, .in-page a:focus-visible { color: #fff; border-bottom-color: var(--sage-deep, #7F9A87); }
.deep-part.is-lit .sp-text h2 { color: #fff; }
.deep-part h2:focus { outline: none; }
/* v123: the quiet golf link, a touch more visible: sage text with a thin dotted sage underline. On hover (mouse only) and
   on keyboard focus the word swaps to a flag in the hole, stacked in the same grid cell so the width never changes. */
a.golf-link, a.golf-link:hover, a.golf-link:focus-visible { display: inline-grid; color: #C9D8CC; font-weight: 600; text-decoration: none; border-bottom: 0; background-image: none !important; background-color: rgba(169, 191, 174, 0.12); border-radius: 3px; padding: 0 0.18em; margin: 0 0.02em; }
a.golf-link .gl-word, a.golf-link .gl-flag { grid-area: 1 / 1; transition: opacity 0.18s ease, transform 0.18s ease; }
a.golf-link .gl-word { text-decoration: underline solid; text-decoration-color: #A9BFAE; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a.golf-link .gl-flag { justify-self: center; line-height: 1; opacity: 0; transform: scale(0.8); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a.golf-link:hover .gl-word { opacity: 0; }
  a.golf-link:hover .gl-flag { opacity: 1; transform: none; }
}
a.golf-link:focus-visible { outline: 1px solid #A9BFAE; outline-offset: 2px; border-radius: 2px; }
a.golf-link:focus-visible .gl-word { opacity: 0; }
a.golf-link:focus-visible .gl-flag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  a.golf-link .gl-word, a.golf-link .gl-flag { transition: none; transform: none; }
}

/* v122: photo credits, small and quiet in the corner of each photo (full credits are on the privacy page) */
.photo-band { position: relative; }
.photo-band .place-credit { position: absolute; right: 0.5rem; bottom: 0.4rem; z-index: 2; max-width: min(22rem, 70%); padding: 0.1rem 0.35rem; font-size: 9.5px; line-height: 1.35; letter-spacing: 0.01em; text-transform: none; text-align: right; color: rgba(238, 241, 246, 0.62); background: rgba(4, 11, 28, 0.38); border-radius: 2px; }
.photo-band .place-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(238, 241, 246, 0.3); text-underline-offset: 0.15em; }
.photo-band .place-credit a:hover, .photo-band .place-credit a:focus-visible { color: #fff; }

/* v122: deep area heroes must not widen the grid on phones */
.area-hero-grid > * { min-width: 0; }
.imap-fig figcaption { flex-wrap: wrap; row-gap: 4px; }
.imap-fig figcaption .area-coords { white-space: normal; }

/* v122: the weather and time line and the song of the day share one quiet line at the very foot of the page, below the names, a step larger for laptops */
.footer-strip { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: 0.6rem; margin: 1.75rem 0 0; }
.footer-strip .footer-now { margin: 0 !important; font-size: 0.86rem; line-height: 1.8; padding-left: calc(33px + 0.65rem); }
.footer-strip .footer-now[hidden], .footer-strip .footer-song[hidden] { display: none; }
.footer-strip .footer-now::before { left: 13.5px; top: calc(0.9em - 3px); }
.footer-strip .footer-now .now-face { width: 23px; height: 23px; font-size: 20px; }
.footer-strip .footer-song { margin: 0; font-size: 0.86rem; min-width: 0; }
.footer-strip .footer-now:not([hidden]) + .footer-song { margin-left: 1.15rem; padding-left: 1.15rem; border-left: 1px solid rgba(169, 191, 174, 0.55); }
.footer-strip .footer-song .song-line { margin: 0 !important; padding-left: calc(33px + 0.65rem); min-height: 33px; line-height: 1.8; }
.footer-strip .footer-song .song-cover { top: calc(0.9em - 16.5px); width: 33px; height: 33px; }
.footer-strip .footer-song .spotify-btn { width: 32px; height: 32px; }
.footer-strip .footer-song .spotify-icon { width: 23px; height: 23px; }
.footer-strip .footer-song .song-yday-link { font-size: 0.8rem; }
@media (max-width: 760px) {
  .footer-strip { flex-direction: column; align-items: stretch; row-gap: 0.7rem; }
  .footer-strip .footer-now:not([hidden]) + .footer-song { margin-left: 0; padding-left: 0; border-left: 0; padding-top: 0.7rem; border-top: 1px solid rgba(169, 191, 174, 0.35); }
}
/* v122: on narrow screens the "copied" tip opens to the left of its button, so it never pushes the page sideways */
@media (max-width: 600px) {
  .h-link-tip { left: auto; right: 0; transform: translate(0, 4px); }
  .h-link.is-done .h-link-tip { transform: translate(0, 0); }
}
html { overflow-x: clip; }
/* v122: the quiet golf maps */
.golf-map .cm-city { fill: #0f2b1b; }
.golf-map .golf-sec { fill: rgba(169, 191, 174, 0.05); stroke: rgba(169, 191, 174, 0.28); stroke-width: 0.8; stroke-dasharray: 3 3; }
.golf-map .golf-sec-label { opacity: 0.75; }
.golf-map .map-land { fill: #0a1628; }
.golf-map .cm-city { fill: #102c1d; }
.golf-map .cm-edge { stroke: rgba(169, 191, 174, 0.55); }

/* v122: album cover moved from the start of the line to just left of the Spotify logo */
.footer-song .song-media { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; vertical-align: middle; margin: -5px 0.4rem -4px 0.45rem; }
.footer-song .song-media .spotify-btn { margin: 0; }
.footer-song .song-media.at-line-start { margin-left: 0; }
.footer-song .song-line.has-media, .footer-strip .footer-song .song-line.has-media { padding-left: 0; }
.footer-song .song-media .song-cover, .footer-strip .footer-song .song-media .song-cover { position: static; top: auto; flex: none; }
/* v122: more air between the big Robin Hickey wordmark and the weather and song strip (about double on laptops) */
.footer-strip { margin-top: calc(1.75rem + clamp(1.25rem, 2.2vw, 2rem)); }
/* v123 golf: a quiet heading band between the in-city and just-outside groups on the Cambridge golf page */
.golf-group-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.golf-group-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.4rem; }
.golf-group-head p { color: var(--text-muted); margin: 0; }

/* v124: the Toronto guide maps. City neighbourhoods are shaded by the part of the city they fall under in the guide,
   in sage and navy tones; the subway and LRT lines are muted versions of the TTC line colours. */
.tor-map { --tm-ravine: #2f5a3b; }
.tor-map .tm-outside { fill: #08140e; }
.tor-map .tm-city { fill: #0e2819; }
.tor-map .tm-deco { pointer-events: none; }
.tor-map .tm-hood path { fill: var(--tm-c, #7f9a87); fill-opacity: 0.3; stroke: #c9d8cc; stroke-opacity: 0.3; stroke-width: 0.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill-opacity 0.25s var(--ease); cursor: pointer; }
.tor-map .tm-hood:hover path, .tor-map .tm-hood:focus-visible path, .tor-map .tm-hood.is-on path { fill-opacity: 0.62; stroke-opacity: 0.85; }
.tor-detail .tm-hood.is-away path { fill-opacity: 0.06; }
.tor-detail .tm-hood.is-here path { fill-opacity: 0.3; stroke-opacity: 0.4; }
.tor-detail .tm-hood.is-away:hover path, .tor-detail .tm-hood.is-away.is-on path { fill-opacity: 0.3; }
.tm-g-downtown { --tm-c: #e3ecd8; } .tm-g-downtown-west { --tm-c: #8fb3d1; } .tm-g-central { --tm-c: #bcd3a2; } .tm-g-midtown { --tm-c: #6f9a7c; }
.tm-g-west-end { --tm-c: #5f86b0; } .tm-g-east-end { --tm-c: #a6c9b8; } .tm-g-york-east-york { --tm-c: #a2aed0; } .tm-g-north-york { --tm-c: #4f7a5c; }
.tm-g-etobicoke { --tm-c: #4a6f99; } .tm-g-scarborough { --tm-c: #86b592; }
.tor-overview .tm-hood path { fill-opacity: 0.4; }
.tor-map .tm-ravine { fill: var(--tm-ravine); fill-opacity: 0.42; }
.tor-map .tm-park { fill-opacity: 0.32; }
.tor-overview .tm-ravine { fill-opacity: 0.34; }
.tor-overview .tm-park { fill-opacity: 0.22; }
.tor-map .tm-edge { fill: none; stroke: var(--map-shore); stroke-opacity: 0.55; stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tor-map .tm-fm { fill: none; stroke: var(--map-shore); stroke-opacity: 0.38; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tor-map .tm-road2 { stroke-opacity: 0.16; stroke-width: 0.6; }
.tor-map .tm-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tor-overview .tm-line { stroke-width: 2; }
.tm-L1 { stroke: #C9B37A; --ln: #C9B37A; } .tm-L2 { stroke: #8FB59A; --ln: #8FB59A; } .tm-L4 { stroke: #A893B5; --ln: #A893B5; }
.tm-L5 { stroke: #C9966B; --ln: #C9966B; } .tm-L6 { stroke: #9AA3AE; --ln: #9AA3AE; }
.tor-map .tm-stn { fill: #0b1d14; stroke: #efe8d8; stroke-opacity: 0.85; stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.tor-map .tm-stn-label { font-size: 7.4px; fill: var(--map-muted); stroke-width: 2.6px; }
.tor-map .tm-glabel { font-family: var(--font-display); letter-spacing: 0.18em; fill: var(--map-ink); fill-opacity: 0.8; stroke-width: 3.5px; }
.tor-map .map-water-label { font-size: 10px; }
.tor-mapsec { padding: 0 0 clamp(1.25rem, 3vw, 2.25rem); }
.tor-fig-ov { margin: 0; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #0b1d14; }
.tor-fig figcaption { display: flex; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.55rem 0.8rem; font-size: 0.76rem; color: var(--text-muted); }
.tor-hero-ov { padding-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.tm-legend { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 1.1rem; font-size: 0.8rem; color: var(--text-soft); }
.tm-legend li { min-width: 0; }
.tm-key { display: inline-flex; align-items: center; gap: 0.45rem; color: inherit; text-decoration: none; }
a.tm-key:hover, a.tm-key:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tm-sw { display: inline-block; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 2px; background: var(--tm-c, #7f9a87); opacity: 0.85; vertical-align: -0.08em; margin-right: 0.45rem; }
.tm-key .tm-sw { margin-right: 0; }
.tm-sw-ravine { background: #2f5a3b; opacity: 1; }
.tm-ln { display: inline-block; flex: none; width: 1.2rem; height: 3px; border-radius: 2px; background: var(--ln); }
.tm-legend-lines { font-size: 0.76rem; color: var(--text-muted); }
.tm-keybox .tm-legend { margin-top: 1rem; flex-direction: column; gap: 0.35rem; }
.tm-city { font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 1.4rem; }
.tm-chips { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tm-chips a { display: inline-block; padding: 0.3rem 0.65rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 0.82rem; color: var(--text-soft); text-decoration: none; }
.tm-chips a:hover, .tm-chips a:focus-visible { color: #fff; border-color: var(--sage); }
.tm-more { margin-top: 1.1rem; }
.tor-group h2 a { color: inherit; text-decoration: none; }
.tor-group h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tm-anchor { position: relative; top: calc(-1 * var(--header-h, 64px)); }
.tm-all-ul { list-style: none; margin: 0.75rem 0 0; padding: 0; columns: 2 16rem; column-gap: 2rem; font-size: 0.84rem; }
.tm-all-ul li { break-inside: avoid; padding: 0.22rem 0; border-bottom: 1px solid var(--rule); }
.tm-cn { color: var(--text-soft); }
.tm-all-ul a { color: var(--text-muted); }
.tm-all-ul a::before { content: "\2192\00a0"; color: var(--sage); }
@media (max-width: 640px) {
  .tor-fig figcaption { flex-direction: column; }
  .tm-legend { gap: 0.4rem 0.9rem; font-size: 0.76rem; }
  .tor-map .tm-glabel { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tor-map .tm-hood path { transition: none; } }

/* v125: the foot strip as one composed line on laptops. Two columns, CAMBRIDGE NOW and SONG OF THE DAY, with a fine
   sage hairline between them. Letter spaced small labels, the values on one shared baseline, tabular time, icons
   harmonised at 21 to 22px. A long weather phrase or song title ends in an ellipsis rather than wrapping. Below 1024px
   the two parts stack, each label above its value. */
.footer-strip { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; min-height: 30px; padding: 0.95rem 0 0; border-top: 1px solid rgba(169, 191, 174, 0.16); font-size: 0.86rem; line-height: 1.5; color: var(--text-muted); }
.footer-strip .strip-label { flex: none; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #a9bfae; margin-right: 0.85rem; }
.footer-strip .footer-now { flex: 0 0 auto; max-width: 52%; min-width: 0; display: flex; align-items: baseline; padding-left: 0; white-space: nowrap; font-size: inherit; line-height: inherit; letter-spacing: 0.005em; }
.footer-strip .footer-now::before { content: none; }
.footer-strip .now-val { display: flex; align-items: baseline; min-width: 0; color: var(--text-soft); }
.footer-strip .now-time { flex: none; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: #f4f1ea; }
.footer-strip .now-sep { flex: none; margin: 0 0.55em; color: rgba(169, 191, 174, 0.7); }
.footer-strip .now-sep[hidden], .footer-strip .now-wx[hidden] { display: none; }
.footer-strip .now-wx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.footer-strip .now-end { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer-strip .footer-now .now-face { width: 21px; height: 21px; font-size: 17px; margin: 0 0 0 0.45em; align-self: center; vertical-align: middle; }
.footer-strip .footer-song { flex: 1 1 auto; min-width: 0; margin: 0; font-size: inherit; letter-spacing: 0.005em; }
.footer-strip .footer-now:not([hidden]) + .footer-song { margin-left: 1.6rem; padding-left: 1.6rem; border-left: 1px solid rgba(169, 191, 174, 0.42); border-top: 0; padding-top: 0; }
.footer-strip .footer-song .song-line, .footer-strip .footer-song .song-line.has-media { display: block; margin: 0 !important; padding: 0; min-height: 0; line-height: inherit; }
.footer-strip .footer-song .song-body { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.site-footer .footer-strip .footer-song .song-main { display: flex; align-items: baseline; min-width: 0; flex: 0 1 auto; }
.footer-strip .footer-song .song-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); }
.footer-strip .footer-song .song-title { color: #f4f1ea; }
.footer-strip .footer-song .song-media, .footer-strip .footer-song .song-media.at-line-start { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0 0.75rem; }
.footer-strip .footer-song .song-media .song-cover { width: 22px; height: 22px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.1); opacity: 0.95; }
.footer-strip .footer-song .spotify-btn, .footer-strip .footer-song .spotify-btn.at-line-start { width: 24px; height: 24px; margin: 0; }
.footer-strip .footer-song .spotify-icon { width: 21px; height: 21px; }
.footer-strip .footer-song .song-yday-link { flex: none; margin-left: 1rem; padding: 0; font-size: 0.76rem; line-height: inherit; color: var(--text-muted); text-decoration: underline; text-decoration-color: rgba(169, 191, 174, 0.35); text-underline-offset: 3px; }
.footer-strip .footer-song .song-yday-link:hover, .footer-strip .footer-song .song-yday-link:focus-visible { color: var(--text-soft); text-decoration-color: rgba(169, 191, 174, 0.8); }
@media (max-width: 1023.98px) {
  .footer-strip { flex-direction: column; align-items: stretch; row-gap: 0.9rem; }
  .footer-strip .footer-now { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; white-space: normal; }
  .footer-strip .strip-label { margin-right: 0; }
  .footer-strip .now-val { flex-wrap: wrap; row-gap: 0.15rem; }
  .footer-strip .footer-now:not([hidden]) + .footer-song { margin-left: 0; padding-left: 0; border-left: 0; padding-top: 0.9rem; border-top: 1px solid rgba(169, 191, 174, 0.22); }
  .footer-strip .footer-song .song-body { flex-wrap: wrap; row-gap: 0.55rem; white-space: normal; }
  .site-footer .footer-strip .footer-song .song-main { flex: 1 0 100%; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.3rem; }
  .footer-strip .footer-song .song-text { white-space: normal; overflow: visible; }
  .footer-strip .footer-song .song-media, .footer-strip .footer-song .song-media.at-line-start { margin-left: 0; }
}
@media (max-width: 1023.98px) { .footer-strip .footer-now { max-width: none; } }
@media (max-width: 1023.98px) {
  .footer-strip .now-val { display: block; }
  .footer-strip .now-val > span { display: inline; }
  .footer-strip .now-val > .now-sep[hidden], .footer-strip .now-val > .now-wx[hidden] { display: none; }
  .footer-strip .now-wx { white-space: normal; overflow: visible; }
  .footer-strip .footer-now .now-face { display: inline-flex; vertical-align: -4px; }
}

/* v126: at-a-glance panels with longer, sentence length values */
.glance { padding-top: 1.25rem; }
.glance-title { margin: 0 0 0.4rem; }
.glance dl > div { padding: 1rem 0 1.05rem; }
.glance dt { font-size: 0.68rem; letter-spacing: 0.15em; color: var(--sage); opacity: 0.9; }
.glance dd { margin: 0.4rem 0 0; font-size: 0.95rem; line-height: 1.62; color: var(--text-soft); text-wrap: wrap; overflow-wrap: break-word; hyphens: manual; max-width: 36rem; }
@media (min-width: 980px) {
  .deep-grid { grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); }
}
@media (min-width: 980px) and (max-height: 759.98px) { .part-glance { position: static; } }
@media (max-width: 979.98px) {
  .part-glance { margin-top: 0.5rem; }
  .glance dd { font-size: 1rem; line-height: 1.6; }
}
