/* =====================================================================
   G.F. Baker & Co. - site-wide styles (shared by every page)
   Tokens, typography, page shell, utility bar, navigation, mobile menu,
   breadcrumbs, section headings, disclosures, footer.
   ===================================================================== */
:root {
  --page-width: 1200px;

  /* Color system (built around #2B303A) */
  /* Burgundy - Heritage Claret: identity, CTAs, active/hover states (~5%) */
  --burgundy: #661C29;
  --burgundy-dark: #4A121C;   /* hover / pressed */
  --burgundy-tint: #F7EFF1;   /* callout box fill */

  /* Navy - Capital Midnight: analysis, structure, secondary nav (~10%) */
  --navy: #162B45;
  --steel-blue: #3B5B82;      /* chart series */
  --ice-slate: #7A93B0;       /* chart series */

  /* Slate ramp (220 deg hue family) (~20%) */
  --text: #2B303A;            /* Slate Charcoal: headlines, body text */
  --pewter: #555E6E;          /* subheadings, labels, captions */
  --mist: #848E9F;            /* footnotes, disclaimers, inactive UI */

  /* Neutrals (~65%) */
  --hairline: #D5DAE2;        /* borders, gridlines, dividers */
  --alabaster: #F2F4F7;       /* zebra rows, sidebars */
  --limestone: #F7F6F2;       /* executive summary / firm bio sections */
  --white: #FFFFFF;

  --font-heading: Optima, Candara, "Noto Sans", "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale - every text style on the page uses one of these */
  --fs-xs: 11px;     /* disclosures, chart axes/labels/legend, captions, badges */
  --fs-sm: 12px;     /* table cells & headers, stat labels */
  --fs-base: 13px;   /* UI text: breadcrumbs, sidebar rows, links, buttons, lists */
  --fs-md: 14px;     /* body paragraphs, sidebar headings, names */
  --fs-lg: 16px;     /* main section headings */
  --fs-xl: 18px;     /* stat values */
  --fs-title: 28px;  /* offering name */

  --lh-tight: 1.25;  /* headings, stat values */
  --lh-ui: 1.5;      /* UI text, tables, disclosures */
  --lh-body: 1.6;    /* paragraphs and bullet lists */

  --gap-actions: 24px; /* space between icon links (Print/PDF/Bookmark, sponsor links) */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-ui);
  color: var(--text);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: var(--lh-tight);
  color: var(--text);
  margin: 0;
}

.subnav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.subnav-divider {
  width: 1px;
  height: 16px;
  background: var(--hairline);
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--pewter);
  text-decoration: none;
  cursor: pointer;
}

.action svg {
  width: 16px;
  height: 16px;
}

.action:hover {
  color: var(--burgundy);
}

/* Page title (H1) used by standard pages */
.page-title {
  font-size: var(--fs-title);
  line-height: var(--lh-tight);
  padding-bottom: 16px;
  border-bottom: 4px solid var(--mist);
}

@media (max-width: 640px) {
  .page-title {
    font-size: 22px;
    letter-spacing: 0.06em;
  }
}

/* View switch (segmented control): Chart/Table, Cards/List, etc. */
.view-switch {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
}

.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0;
  background: var(--white);
  font: inherit;
  font-size: var(--fs-base);
  color: var(--pewter);
  cursor: pointer;
}

.view-switch button + button {
  border-left: 1px solid var(--hairline);
}

.view-switch button svg {
  width: 14px;
  height: 14px;
}

.view-switch button:hover {
  color: var(--burgundy);
}

.view-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
  cursor: default;
}

/* Fixed 1200px page column, outlined (nav + content + footer) */
.page {
  width: var(--page-width);
  margin: 24px auto;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(43, 48, 58, 0.06), 0 8px 24px rgba(43, 48, 58, 0.08);
}

/* Placeholder blocks */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alabaster);
  border: 1px dashed var(--hairline);
  color: var(--mist);
  font-size: var(--fs-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 40px;
  border-bottom: 3px solid var(--burgundy);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: auto;
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 40px;
  padding: 12px 0; /* was ~9px top/bottom; +30% */
  border-bottom: 1px solid var(--hairline);
}

.utility-message {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  color: var(--burgundy);
}

.utility-links {
  display: flex;
  gap: var(--gap-actions);
  font-size: var(--fs-sm);
}

.utility-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--pewter);
  text-decoration: none;
}

.util-chev {
  width: 12px;
  height: 12px;
  color: var(--burgundy);
}

.utility-links a:hover {
  color: var(--burgundy);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: var(--fs-md);
}

.nav-links a {
  color: var(--pewter);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--burgundy);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.placeholder-text-inline {
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Breadcrumb bar (below nav) */
.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 40px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-base);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--pewter);
  text-decoration: none;
}

.breadcrumbs .home-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumbs .home-icon {
  width: 14px;
  height: 14px;
}

.breadcrumbs a:hover {
  color: var(--burgundy);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

.breadcrumbs .sep {
  width: 14px;
  height: 14px;
  color: var(--mist);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  text-decoration: none;
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.back-link:hover {
  color: var(--burgundy);
}

.back-link:hover svg {
  transform: translateX(-3px);
}


/* Disclosures and notes - one style everywhere */
.disclosure,
.gallery-disclaimer,
.detail-note {
  margin: 12px 0 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-ui);
  font-weight: 400;
  font-style: normal;
  color: var(--mist);
}

/* Main column sections */
.content-section {
  margin-top: 60px;
}

.section-title {
  font-size: var(--fs-lg);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mist);
}

.section-body > .detail-note,
.content-section > .detail-note {
  margin-top: 16px;
}

.section-body {
  padding-top: 16px;
  font-size: var(--fs-md);
  line-height: var(--lh-ui);
}

.section-body p {
  margin: 0 0 1em;
}


/* Reading text gets the looser paragraph spacing */
.section-body p:not(.detail-note):not(.disclosure):not(.sponsor-name),
.highlights li {
  line-height: var(--lh-body);
}

.highlights {
  margin: 0;
  padding-left: 20px;
}

.highlights li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.highlights li::marker {
  color: var(--mist);
}

.highlights strong {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.placeholder-text {
  color: var(--mist);
  font-style: italic;
}

/* Outlined content area */
.content {
  min-height: 900px;
  padding: 40px;
}

.site-footer {
  padding: 40px;
  border-top: 3px solid var(--burgundy);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px var(--gap-actions);
  font-size: var(--fs-sm);
}

.footer-about {
  max-width: 520px;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-ui);
  color: var(--pewter);
}

.legal-links a {
  color: var(--pewter);
  text-decoration: none;
}

.legal-links a:hover,
.legal-note a:hover {
  color: var(--burgundy);
}

.footer-brand {
  flex-shrink: 0;
}

.copyright {
  white-space: nowrap;
  margin: 12px 0 0;
  font-size: var(--fs-xs);
  color: var(--mist);
}

.legal-disclosure {
  margin-top: 40px;
}

.legal-note {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-ui);
  color: var(--mist);
}

.legal-note + .legal-note {
  margin-top: 8px;
}

.legal-note a {
  color: inherit;
}



/* ---------- Mobile menu ---------- */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

/* hamburger -> X */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(43, 48, 58, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(340px, 85vw);
  padding: 88px 28px 28px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -8px 0 24px rgba(43, 48, 58, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-main {
  border-top: 3px solid var(--burgundy);
}

.mm-main li {
  border-bottom: 1px solid var(--hairline);
}

.mm-main a {
  display: block;
  padding: 14px 0;
  font-size: var(--fs-lg);
  color: var(--text);
  text-decoration: none;
}

.mm-main a[aria-current="page"] {
  font-weight: 600;
}

.mm-utility {
  display: grid;
  gap: 12px;
  margin-top: 24px !important;
}

.mm-utility a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-md);
  color: var(--pewter);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--burgundy);
}

.mm-message {
  margin: auto 0 0;
  font-family: var(--font-heading);
  padding-top: 24px;
  font-size: var(--fs-base);
  color: var(--burgundy);
}

@media (max-width: 960px) {
  .page {
    width: auto;
    margin: 0;
    box-shadow: none;
  }

  .utility-bar,
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    height: 72px;
    padding: 0 20px;
  }

  .site-nav .brand img {
    width: 204px;
    height: 32px;
  }
}




/* Horizontal scroll areas with an always-visible scroll bar (small screens) */
.h-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* hide native bar; a visible custom bar is drawn below */
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.hbar {
  position: relative;
  height: 6px;
  margin: 8px 0 4px;
  background: var(--alabaster);
  touch-action: none;
  cursor: pointer;
}

.hbar[hidden] {
  display: none;
}

.hbar-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--mist);
  cursor: grab;
}

.hbar-thumb:active {
  cursor: grabbing;
  background: var(--pewter);
}

.hbar-hint {
  margin: 0 0 4px;
  font-size: var(--fs-xs);
  color: var(--mist);
}

/* =================== Responsive: tablet (<=960px) =================== */
@media (max-width: 960px) {
  .utility-bar { margin: 0 32px; }
  .subnav { margin: 0 32px; }
  .content { padding: 32px; min-height: 0; }
  .site-footer { padding: 32px; }
  .legal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; }

  .content-section { margin-top: 48px; }
}


/* =================== Responsive: phone (<=640px) =================== */
/* Phones hide breadcrumbs; drop the bar entirely when nothing else is in it */
@media (max-width: 640px) {
  .subnav:not(:has(.back-link)) {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-nav { padding: 0 20px; }
  .subnav { margin: 0 20px; padding: 12px 0; }
  .content { padding: 24px 20px; }
  .site-footer { padding: 28px 20px; }
  .footer-top { flex-wrap: wrap; gap: 16px; }
  .legal-links { grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
  .footer-about { max-width: none; }
  .copyright { white-space: normal; }

  /* Breadcrumbs: just the back link on phones */
  .breadcrumbs { display: none; }

  .content-section { margin-top: 40px; }
}


@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .menu-overlay,
  .mobile-menu {
    transition: none;
  }
}
