/* BusinessDasher — site styles */

:root {
  --ink: #0f1a24;
  --ink-soft: #46535f;
  --ink-muted: #6b7784;
  --line: #e3e8ee;
  --line-soft: #eef1f5;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --brand: #006ba1;
  --brand-dark: #005180;
  --brand-tint: rgba(0, 107, 161, 0.08);
  --radius: 12px;
  --wrap: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  position: relative;
}
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- buttons & shared bits ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--brand);
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; }

.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--brand-dark); border-color: var(--line); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.eyebrow a { color: inherit; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding: 22px 0 4px;
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs span[aria-hidden] { color: var(--line); }

/* ---------- home ---------- */

.hero {
  background: linear-gradient(180deg, var(--brand-tint), rgba(255, 255, 255, 0));
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 { max-width: 22ch; margin-bottom: 18px; text-wrap: balance; }
.hero-lead { max-width: 62ch; font-size: 1.08rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
.section-title { margin-bottom: 6px; }
.section-lead { color: var(--ink-soft); margin-bottom: 28px; }
.section-more { margin-top: 26px; font-weight: 600; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  text-decoration: none;
  border-color: rgba(0, 107, 161, 0.35);
  box-shadow: 0 10px 24px rgba(15, 26, 36, 0.07);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 16px; }
.card-cta { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--brand); }

/* ---------- article ---------- */

.article-head { padding: 10px 0 26px; border-bottom: 1px solid var(--line-soft); margin-bottom: 34px; }
.article-head h1 { margin-bottom: 12px; }
.article-updated { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }

.page-article, .page-simple { padding-bottom: 72px; }

.article-layout.has-toc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout.has-toc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.toc {
  min-width: 0;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: 0.88rem;
}
.toc-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 650;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin-bottom: 8px; line-height: 1.4; }
.toc a { color: var(--ink-soft); }
.toc a:hover, .toc a.active { color: var(--brand); }

@media (max-width: 900px) {
  .toc { position: static; max-height: 320px; }
}

/* ---------- prose ---------- */

.prose { max-width: 74ch; min-width: 0; overflow-wrap: break-word; }
.home-prose, .research-intro { max-width: 80ch; }

.prose > h2 { margin-top: 2em; scroll-margin-top: 90px; }
.prose > h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose li { margin-bottom: 0.5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.4em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
  position: relative;
  padding-left: 26px;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 6px; top: 0.68em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}
.prose ol > li { padding-left: 4px; }

.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line-soft); }
.prose figcaption { font-size: 0.85rem; color: var(--ink-muted); margin-top: 8px; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft);
  font-style: italic;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.93rem;
}
.prose table :is(td, th) {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.prose table tr:first-child td,
.prose table th {
  background: var(--bg-alt);
  font-weight: 650;
}
.prose table tbody tr:nth-child(even) td { background: rgba(246, 248, 250, 0.6); }

.prose table + p { margin-top: 0; }

/* Tables can be wide; let them scroll rather than break the layout. */
.table-scroll { overflow-x: auto; margin: 1.6em 0; }
.table-scroll > table { margin: 0; min-width: 460px; }

.prose details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #fff;
}
.prose details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}
.prose details[open] summary::after { content: "\2212"; }
.prose details[open] summary { margin-bottom: 10px; }

.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  margin: 1.6em 0;
}

.prose canvas { max-width: 100%; }

/* "Read more" intro blocks carried over from the WordPress content. */
.readmore-wrapper { margin: 0 0 1.6em; }
.readmore-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
}
.readmore-wrapper.is-open .readmore-text { -webkit-line-clamp: unset; overflow: visible; }
.readmore-toggle { font-size: 0.9rem; font-weight: 600; }

.video-container { margin: 1.8em 0; }
.video-container img { border-radius: var(--radius); }
.video-container iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }

/* ---------- research index ---------- */

.research-group { margin-top: 52px; }
.research-group h2 { margin-bottom: 20px; scroll-margin-top: 90px; }

/* ---------- contact form ---------- */

.bd-form { max-width: 560px; margin: 8px 0 0; }
.bd-form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.bd-form label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.bd-form :is(input, textarea) {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.bd-form :is(input, textarea):focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.bd-form-hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 52px 0 24px;
  margin-top: 40px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { font-weight: 700; margin-bottom: 8px; }
.footer-note { color: var(--ink-muted); max-width: 44ch; font-size: 0.88rem; }
.footer-heading {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 650;
  margin-bottom: 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Press / partner logo rows lifted out of the page content. */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin: 2em 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.logo-strip figure { margin: 0; }
.logo-strip img {
  max-height: 26px;
  width: auto;
  border: 0;
  border-radius: 0;
  opacity: 0.62;
  filter: grayscale(1);
}
