/* Site-wide polish; loaded after Tailwind. Reconcile into tailwind/application.css when running tailwindcss:build. */
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 1 auto;
}

::selection {
  background-color: color-mix(in srgb, #bfdbfe 85%, transparent);
  color: #0f172a;
}

/* Primary nav: gap-6 is in the Tailwind build; this backs up spacing if utilities are purged. */
@media (min-width: 768px) {
  nav[aria-label="Primary"] {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
  }
}

.navbar-link:focus-visible,
.navbar-menu-link:focus-visible {
  outline: none;
  border-radius: 0.375rem;
  box-shadow: 0 0 0 2px #fafaf9, 0 0 0 4px #2563eb;
}

/* Primary nav — Case studies dropdown (desktop) */
.navbar-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 60;
  min-width: 13.5rem;
  padding: 0.35rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 10px 28px rgb(28 25 23 / 0.12), 0 0 0 1px rgb(28 25 23 / 0.04);
}

.navbar-dropdown__item--active {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.navbar-dropdown__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fafaf9, 0 0 0 4px #2563eb;
}

.navbar-dropdown__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fafaf9, 0 0 0 4px #2563eb;
}

/* Theme toggle (size-9 / size-5 are not in the Tailwind build) */
.theme-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #d6d3d1;
  border-radius: 9999px;
  background-color: #fff;
  color: #57534e;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.06);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.theme-toggle__icons {
  position: relative;
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.theme-toggle__icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.theme-toggle__icon--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Nav breakpoints (xl:* not always in the Tailwind build) */
@media (min-width: 1024px) {
  .navbar-desktop {
    display: flex !important;
  }

  .navbar-menu {
    display: none !important;
  }

  /* Match gap-6 between nav links when utilities are purged */
  .navbar-actions {
    column-gap: 1.5rem;
  }
}

/* Contact strip — copy to clipboard */
.contact-strip {
  position: relative;
  margin-top: 0.75rem;
}

.contact-strip__feedback {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.625rem;
  border-radius: 0.5rem;
  background-color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  box-shadow: 0 4px 12px rgb(29 78 216 / 0.28);
  transform: translateY(-110%);
  pointer-events: none;
}

.contact-strip__feedback[data-state="error"] {
  background-color: #44403c;
  box-shadow: 0 4px 12px rgb(28 25 23 / 0.2);
}

.contact-strip__feedback[hidden] {
  display: none;
}

.contact-strip__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-strip__item + .contact-strip__item {
  margin-top: 0.625rem;
}

.contact-strip__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(29 78 216 / 0.35);
  transition: color 0.15s;
}

.contact-strip__link:hover {
  color: #1e40af;
}

.contact-strip--compact .contact-strip__link {
  font-weight: 500;
  color: #44403c;
  text-decoration: none;
}

.contact-strip--compact .contact-strip__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.contact-strip__copy {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid #93c5fd;
  border-radius: 0.375rem;
  background-color: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(29 78 216 / 0.12);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.contact-strip__copy:hover {
  border-color: #2563eb;
  background-color: #dbeafe;
  color: #1e3a8a;
  box-shadow: 0 2px 8px rgb(29 78 216 / 0.2);
  transform: translateY(-1px);
}

.contact-strip__copy:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.contact-strip__copy-icon {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 2;
}

/* Footer — Since 1999 easter egg */
.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

@media (min-width: 640px) {
  .footer-copyright {
    justify-content: flex-start;
  }
}

.footer-since {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.footer-since__trigger {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #78716c;
  text-decoration: underline;
  text-decoration-color: rgb(120 113 108 / 0.45);
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.footer-since__trigger:hover {
  color: #1d4ed8;
  text-decoration-color: rgb(29 78 216 / 0.45);
}

.footer-since__trigger:focus-visible {
  outline: none;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.footer-since__quip {
  font-weight: 500;
  font-style: italic;
  color: #c2410c;
}

.footer-since__quip:not([hidden])::before {
  content: "·";
  margin-right: 0.35rem;
  font-style: normal;
  color: #d6d3d1;
}

/* Footer social links */
.social-links {
  margin-top: 1.75rem;
}

.social-links__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78716c;
}

.social-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  background-color: #fff;
  color: #57534e;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.15s;
}

.social-links__link:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.social-links__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.social-links__icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

/* Homepage sector switcher */
.sector-switcher__copy {
  transition: color 0.15s;
}

.sector-switcher__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sector-switcher__tab {
  padding: 0.5rem 1rem;
  border: 1px solid #d6d3d1;
  border-radius: 9999px;
  background-color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #57534e;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.sector-switcher__tab:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.sector-switcher__tab--active {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgb(29 78 216 / 0.28);
}

.sector-switcher__tab--active:hover {
  border-color: #1e40af;
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
  color: #fff;
}

.sector-switcher__tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.sector-switcher__count {
  margin: 0;
  white-space: nowrap;
}

/* Case studies header — same two-column track as the card grid below */
.case-studies-header {
  display: grid;
  gap: 0.75rem;
}

.case-studies-header__main {
  min-width: 0;
}

.case-studies-intro {
  margin-bottom: 0;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .case-studies-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: end;
  }

  .case-studies-header__main {
    grid-column: 1;
  }

  .case-studies-header__count {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }
}

.sector-switcher__grid {
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sector-switcher__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sector-switcher__card {
  transition: opacity 0.2s ease;
}

.sector-switcher__card[hidden] {
  display: none;
}

.case-study-card__quote {
  margin-top: 1rem;
  padding: 0.75rem 0 0.75rem 0.875rem;
  border-left: 2px solid #93c5fd;
  background: linear-gradient(90deg, rgb(239 246 255 / 0.55) 0%, transparent 100%);
}

.case-study-card__quote-text {
  margin: 0;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  color: #44403c;
}

.case-study-card__quote-attribution {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  font-style: normal;
  line-height: 1.4;
  color: #78716c;
}

/* Printable documents — discreet print / PDF actions */
.document-print-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #a8a29e;
}

.document-print-actions__btn,
.document-print-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  color: #78716c;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.document-print-actions__btn:hover,
.document-print-actions__btn:focus-visible,
.document-print-actions__link:hover,
.document-print-actions__link:focus-visible {
  color: #1d4ed8;
  outline: none;
}

.document-print-actions__btn:focus-visible,
.document-print-actions__link:focus-visible {
  border-radius: 0.2rem;
  box-shadow: 0 0 0 2px rgb(29 78 216 / 0.35);
}

.document-print-actions__icon {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.85;
}

.document-print-actions__sep {
  user-select: none;
  color: #d6d3d1;
}

/* Case study pages — vertical rhythm (mt-14, space-y-8, pb-10, pt-10, lg:gap-14 not in Tailwind build) */
body.case-study-page #main-content > div {
  padding-top: 2.5rem;
}

@media (min-width: 640px) {
  body.case-study-page #main-content > div {
    padding-top: 3.5rem;
  }
}

body.case-study-page .document-print-actions {
  margin-top: 0.75rem;
}

body.case-study-page article > header {
  padding-bottom: 2.5rem;
}

body.case-study-page .case-study-screenshots-note {
  margin: 2.5rem 0 0;
  max-width: 42rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #a8a29e;
  text-align: center;
}

@media (min-width: 640px) {
  body.case-study-page .case-study-screenshots-note {
    text-align: left;
  }
}

body.case-study-page article > section,
body.case-study-page article > .case-study-explore,
body.case-study-page article > footer {
  margin-top: 3.5rem;
}

body.case-study-page article .space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 2rem;
}

body.case-study-page article > section > .grid,
body.case-study-page article > section > div.grid {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  body.case-study-page article .lg\:grid-cols-2.lg\:gap-14 {
    gap: 3.5rem;
  }
}

/* History page — vertical rhythm (mt-12/14/16, pb-10, mt-8 not in Tailwind build) */
body.history-page #main-content > div {
  padding-top: 2.5rem;
}

@media (min-width: 640px) {
  body.history-page #main-content > div {
    padding-top: 3.5rem;
  }
}

body.history-page article > header {
  padding-bottom: 2.5rem;
}

body.history-page article > .history-trust-stats,
body.history-page article > .history-timeline,
body.history-page article > section,
body.history-page article > footer {
  margin-top: 3.5rem;
}

body.history-page .history-values__grid {
  margin-top: 2rem;
}

/* Home — approach platform note (p-5 / sm:p-6 not in the Tailwind build) */
.home-approach-platform-note {
  padding: 1.5rem 1.75rem;
}

@media (min-width: 640px) {
  .home-approach-platform-note {
    padding: 1.75rem 2.25rem;
  }
}

/* Meeting prep one-pager */
.meeting-prep__sections {
  align-items: start;
}

.meeting-prep__section {
  padding: 1.125rem 1.25rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.875rem;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
}

.meeting-prep__questions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meeting-prep__question {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #44403c;
}

.meeting-prep__question:first-child {
  margin-top: 0;
}

.meeting-prep__check {
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.2rem;
  border: 1.5px solid #d6d3d1;
  border-radius: 0.2rem;
  background: #fff;
}

/* Case study — “What we'd explore first” */
.case-study-explore__details {
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, rgb(255 247 237 / 0.55) 0%, rgb(255 255 255 / 0.98) 40%, #fafaf9 100%);
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06);
}

.case-study-explore__details[open] {
  border-color: #fdba74;
  box-shadow: 0 4px 18px rgb(194 65 12 / 0.08);
}

.case-study-explore__summary {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.case-study-explore__summary::-webkit-details-marker {
  display: none;
}

.case-study-explore__summary:hover {
  background-color: rgb(255 247 237 / 0.45);
}

.case-study-explore__summary-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #ffedd5 0%, #fff7ed 100%);
  color: #c2410c;
}

.case-study-explore__summary-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.case-study-explore__summary-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.case-study-explore__summary-label {
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1c1917;
}

.case-study-explore__summary-hint {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #78716c;
}

.case-study-explore__chevron {
  flex-shrink: 0;
  color: #c2410c;
  transition: transform 0.2s ease;
}

.case-study-explore__chevron svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.case-study-explore__details[open] .case-study-explore__chevron {
  transform: rotate(180deg);
}

.case-study-explore__panel {
  padding: 0 1.25rem 1.375rem;
  border-top: 1px solid rgb(251 146 60 / 0.2);
}

.case-study-explore__intro {
  margin: 1.125rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #57534e;
}

.case-study-explore__phases {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .case-study-explore__phases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
}

.case-study-explore__phase {
  margin: 0;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid #e7e5e4;
  background-color: rgb(255 255 255 / 0.85);
}

.case-study-explore__phase-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.case-study-explore__list {
  margin: 0.75rem 0 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #44403c;
}

.case-study-explore__list li + li {
  margin-top: 0.45rem;
}

.case-study-explore__footnote {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e7e5e4;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #78716c;
  font-style: italic;
}

/* History — trust counters */
.history-trust-stats {
  padding: 1.5rem 1.25rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgb(239 246 255 / 0.75) 0%, rgb(255 255 255 / 0.98) 45%, #fafaf9 100%);
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06), 0 10px 28px rgb(30 64 175 / 0.08);
}

@media (min-width: 640px) {
  .history-trust-stats {
    padding: 1.75rem 2rem;
  }
}

.history-trust-stats__grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

@media (min-width: 640px) {
  .history-trust-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 2rem;
  }
}

.history-trust-stats__item {
  margin: 0;
  text-align: center;
}

@media (min-width: 640px) {
  .history-trust-stats__item:not(:last-child) {
    border-right: 1px solid rgb(29 78 216 / 0.12);
    padding-right: 2rem;
  }
}

.history-trust-stats__term {
  margin: 0;
}

.history-trust-stats__number {
  display: block;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #1e3a8a;
}

.history-trust-stats__value {
  font-variant-numeric: tabular-nums;
}

.history-trust-stats__suffix {
  margin-left: 0.05em;
  color: #2563eb;
}

.history-trust-stats__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1c1917;
}

.history-trust-stats__detail {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #78716c;
}

@media (prefers-reduced-motion: reduce) {
  .history-trust-stats__value {
    transition: none;
  }
}

/* History timeline */
.history-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 48rem;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 1.1875rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(to bottom, #93c5fd, #bfdbfe 45%, #e7e5e4);
  border-radius: 1px;
}

.history-timeline__entry {
  position: relative;
  display: flex;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .history-timeline__entry {
    gap: 1.5rem;
  }

  .history-timeline::before {
    left: 1.3125rem;
  }
}

.history-timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  width: 2.5rem;
  flex-shrink: 0;
  justify-content: center;
  padding-top: 0.125rem;
}

.history-timeline__dot {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 9999px;
  border: 2px solid #2563eb;
  background-color: #fff;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.06);
}

.history-timeline__content {
  padding-top: 0.125rem;
  border-bottom: 1px solid #e7e5e4;
}

.history-timeline__entry:last-child .history-timeline__content {
  border-bottom: none;
}

.history-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 1rem;
}

.history-timeline__year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #c2410c;
  line-height: 1.25;
}

/* Plain four-digit years only—avoid uppercasing decade labels (2000s → 2000S). */
.history-timeline__year--numeric {
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.history-timeline__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgb(191 219 254 / 0.9);
  background-color: #eff6ff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e40af;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .history-timeline__meta {
    gap: 0.75rem 1.25rem;
  }

  .history-timeline__badge {
    padding: 0.5625rem 1.125rem;
  }
}

/* History — “What has not changed” value cards (p-5 is not in the Tailwind build) */
.history-values__grid {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .history-values__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.history-values__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.5rem 1.625rem;
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  background-color: rgb(255 255 255 / 0.9);
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06);
}

.history-values__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1917;
}

.history-values__card-body {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #57534e;
}

/* Blog article page */
.blog-post {
  max-width: 48rem;
  margin-top: 2rem;
}

.blog-post__header {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e7e5e4;
}

.blog-post__title {
  margin-top: 1rem;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1c1917;
}

@media (min-width: 640px) {
  .blog-post__title {
    font-size: 2.25rem;
  }
}

.blog-post__content {
  margin-top: 2.5rem;
}

.blog-post__figure {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background-color: #f5f5f4;
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06);
}

.blog-post__figure-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 18rem;
  object-fit: cover;
}

@media (min-width: 640px) {
  .blog-post__figure-image {
    max-height: 22rem;
  }
}

.blog-post__lead {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .blog-post {
    max-width: 56rem;
  }

  .blog-post__lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 2rem;
    align-items: stretch;
  }

  .blog-post__lead .blog-post__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .blog-post__lead .blog-post__figure-image {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 12rem;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .blog-post__content--with-figure:not(:has(.blog-post__lead)) {
    display: flow-root;
  }

  .blog-post__content--with-figure:not(:has(.blog-post__lead)) .blog-post__figure {
    float: right;
    width: 50%;
    margin: 0 0 1.5rem 2rem;
  }

  .blog-post__content--with-figure:not(:has(.blog-post__lead)) .blog-post__figure-image {
    max-height: none;
    object-fit: initial;
  }
}

.blog-post__footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e7e5e4;
}

/* Blog article body */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #44403c;
}

.blog-prose > * + * {
  margin-top: 1.25rem;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose h2,
.blog-prose h3 {
  margin-top: 2.25rem;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: #1c1917;
}

.blog-prose h2 {
  font-size: 1.5rem;
}

.blog-prose h3 {
  font-size: 1.25rem;
}

.blog-prose a {
  font-weight: 500;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(29 78 216 / 0.35);
}

.blog-prose a:hover {
  color: #1e40af;
}

.blog-prose ul,
.blog-prose ol {
  margin-left: 0.25rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

.blog-prose ul {
  list-style-type: disc;
}

.blog-prose ol {
  list-style-type: decimal;
}

.blog-prose li {
  padding-left: 0.25rem;
}

.blog-prose li::marker {
  color: #a8a29e;
}

.blog-prose ol li::marker {
  color: #78716c;
  font-weight: 600;
}

.blog-prose li + li {
  margin-top: 0.5rem;
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.blog-prose figure {
  margin: 1.75rem 0;
}

.blog-prose figure img {
  display: block;
  width: 100%;
  border: 1px solid #e7e5e4;
  border-radius: 0.875rem;
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06);
}

.blog-prose figcaption {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #78716c;
  text-align: center;
}

.blog-prose .blog-video {
  margin: 1.75rem 0;
}

.blog-prose .blog-video__embed {
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid #e7e5e4;
  background: #0c0a09;
  box-shadow: 0 4px 18px rgb(28 25 23 / 0.08);
  aspect-ratio: 16 / 9;
}

.blog-prose .blog-video__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-prose .blog-video--portrait .blog-video__embed {
  max-width: 22rem;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.blog-prose .blog-transcript {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e7e5e4;
}

.blog-prose .blog-transcript > h2 {
  margin-top: 0;
}

.blog-prose .blog-transcript > p {
  font-size: 1rem;
  line-height: 1.7;
  color: #57534e;
}

.blog-prose .blog-transcript--unavailable > p {
  color: #78716c;
}

.blog-post__youtube-link {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.blog-post__youtube-link a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legal pages (privacy policy, etc.) */
.legal-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #44403c;
}

.legal-prose__section + .legal-prose__section {
  margin-top: 2.5rem;
}

.legal-prose__heading {
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1c1917;
}

.legal-prose__subheading {
  margin-top: 1.75rem;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1917;
}

.legal-prose p,
.legal-prose ul {
  margin-top: 1rem;
}

.legal-prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-prose li + li {
  margin-top: 0.5rem;
}

.legal-prose__address {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  background-color: #fafaf9;
  line-height: 1.6;
  color: #44403c;
}

.legal-prose__code {
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  background-color: #f5f5f4;
  color: #44403c;
}

.legal-prose__table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.legal-prose__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-prose__table th,
.legal-prose__table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e7e5e4;
  text-align: left;
  vertical-align: top;
}

.legal-prose__table th {
  background-color: #fafaf9;
  font-weight: 600;
  color: #1c1917;
}

.legal-prose__table th[scope="row"] {
  width: 38%;
  white-space: nowrap;
}

.legal-prose__inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-prose__inline-list li + li {
  margin-top: 0.35rem;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner__inner {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 10px 40px rgb(28 25 23 / 0.12);
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.cookie-banner__heading {
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1c1917;
}

.cookie-banner__text {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #57534e;
}

.cookie-banner__link {
  font-weight: 500;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__button {
  cursor: pointer;
  border-radius: 9999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie-banner__button--primary {
  border: none;
  background-color: #1d4ed8;
  color: #fff;
}

.cookie-banner__button--primary:hover {
  background-color: #1e40af;
}

.cookie-banner__button--secondary {
  border: 1px solid #d6d3d1;
  background-color: #fff;
  color: #44403c;
}

.cookie-banner__button--secondary:hover {
  background-color: #fafaf9;
}

.cookie-banner__button:focus-visible,
.cookie-banner__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.cookie-banner__link:focus-visible {
  border-radius: 0.25rem;
}

/* YouTube embed — withheld until cookie consent */
.blog-video__embed {
  position: relative;
  background-color: #f5f5f4;
}

.youtube-embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
  padding: 1.5rem;
  text-align: center;
}

.blog-video__embed.youtube-embed--active .youtube-embed__placeholder {
  display: none;
}

.blog-video__embed.youtube-embed--active iframe {
  display: block;
}

.blog-video__embed:not(.youtube-embed--active) iframe {
  display: none;
}

.youtube-embed__placeholder-text {
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #57534e;
}

.youtube-embed__placeholder-button {
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  background-color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.youtube-embed__placeholder-button:hover {
  background-color: #1e40af;
}

.youtube-embed__placeholder-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f5f4, 0 0 0 4px #2563eb;
}

@media print {
  .cookie-banner {
    display: none !important;
  }
}

.blog-prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #93c5fd;
  color: #57534e;
  font-style: italic;
}

.blog-prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e7e5e4;
}

.blog-prose pre,
.blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.blog-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #f5f5f4;
}

html.dark .blog-prose {
  color: #d6d3d1;
}

html.dark .blog-prose h2,
html.dark .blog-prose h3 {
  color: #fafaf9;
}

html.dark .blog-prose a {
  color: #93c5fd;
}

html.dark .blog-prose li::marker {
  color: #78716c;
}

html.dark .blog-prose ol li::marker {
  color: #a8a29e;
}

html.dark .blog-prose figure img {
  border-color: #44403c;
}

html.dark .blog-prose figcaption {
  color: #a8a29e;
}

html.dark .blog-prose blockquote {
  border-left-color: #3b82f6;
  color: #a8a29e;
}

html.dark .blog-prose hr {
  border-top-color: #44403c;
}

html.dark .blog-prose pre {
  background: #292524;
}

/* —— Blog index —— */
.blog-index__intro {
  border-bottom: 1px solid #e7e5e4;
  background: linear-gradient(180deg, rgb(239 246 255 / 0.55) 0%, rgb(250 250 249 / 0) 100%);
}

.blog-index__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .blog-index__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.blog-index__header-actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .blog-index__header-actions {
    align-items: flex-end;
  }
}

.blog-index__count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #78716c;
}

.blog-index__rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #d6d3d1;
  border-radius: 9999px;
  background-color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.05);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.blog-index__rss-link:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1e40af;
}

.blog-index__rss-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #1e40af;
}

.blog-index__rss-link:hover .blog-index__rss-icon {
  color: #1d4ed8;
}

.blog-index__content {
  padding-top: 2.5rem;
}

/* Blog index filters */
.blog-index__filters-panel {
  margin-bottom: 2.5rem;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, rgb(239 246 255 / 0.65) 0%, rgb(255 255 255 / 0.98) 42%, #fafaf9 100%);
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06), 0 8px 24px rgb(30 64 175 / 0.06);
}

.blog-index__filters-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgb(29 78 216 / 0.12);
  background: rgb(239 246 255 / 0.55);
}

.blog-index__filters-status-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  color: #44403c;
}

.blog-index__filters-status-text strong {
  font-weight: 600;
  color: #1e3a8a;
}

.blog-index__filters-status-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: #2563eb;
}

.blog-index__filters-clear {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(29 78 216 / 0.35);
  white-space: nowrap;
  transition: color 0.15s;
}

.blog-index__filters-clear:hover {
  color: #1e40af;
}

.blog-index__filters-grid {
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .blog-index__filters-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.blog-index__filter-group {
  padding: 1.25rem 1.25rem 1.375rem;
}

@media (min-width: 900px) {
  .blog-index__filter-group:first-child {
    border-right: 1px solid #e7e5e4;
  }
}

@media (max-width: 899px) {
  .blog-index__filter-group + .blog-index__filter-group {
    border-top: 1px solid #e7e5e4;
  }
}

.blog-index__filter-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-index__filter-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 100%);
  color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.blog-index__filter-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.blog-index__filter-icon--category {
  background: linear-gradient(145deg, #ffedd5 0%, #fff7ed 100%);
  color: #c2410c;
}

.blog-index__filter-title {
  margin: 0;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.blog-index__filter-hint {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #78716c;
}

.blog-index__filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-index__filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  background-color: rgb(255 255 255 / 0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: #57534e;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.blog-index__filter-pill:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgb(29 78 216 / 0.12);
  transform: translateY(-1px);
}

.blog-index__filter-pill--active {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgb(29 78 216 / 0.35);
}

.blog-index__filter-pill--active:hover {
  border-color: #1e40af;
  background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
  color: #fff;
  transform: translateY(-1px);
}

.blog-index__filter-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fafaf9, 0 0 0 4px #2563eb;
}

.blog-index__filter-pill--active:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #93c5fd;
}

.blog-index__archive-nav {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.blog-index__archive-year {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.blog-index__archive-year-label {
  flex: 0 0 auto;
  min-width: 2.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #78716c;
}

.blog-index__archive-year .blog-index__filter-pills {
  flex: 1 1 auto;
}

.blog-index__count-filter {
  font-weight: 500;
  color: #78716c;
}

.blog-index__empty-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(29 78 216 / 0.35);
}

.blog-index__empty-link:hover {
  color: #1e40af;
}

.blog-index__section-label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.blog-index__featured {
  margin-bottom: 3rem;
}

.blog-index__more {
  margin-top: 0.5rem;
}

.blog-index__grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .blog-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.blog-index__empty {
  padding: 2.5rem 1.75rem;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.9);
  text-align: center;
}

.blog-index__empty-title {
  margin: 0;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1c1917;
}

.blog-index__empty-body {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #57534e;
}

.blog-index__code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: #f5f5f4;
  font-size: 0.8125rem;
}

/* Spreadsheet stress mini-check */
.spreadsheet-check__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spreadsheet-check__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.875rem;
  background-color: #fafaf9;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.spreadsheet-check__item:has(.spreadsheet-check__input:checked) {
  border-color: #93c5fd;
  background-color: #eff6ff;
  box-shadow: 0 1px 4px rgb(29 78 216 / 0.12);
}

.spreadsheet-check__item:hover {
  border-color: #bfdbfe;
}

.spreadsheet-check__list > li + li {
  margin-top: 0.5rem;
}

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

.spreadsheet-check__checkbox {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  border: 2px solid #d6d3d1;
  border-radius: 0.3rem;
  background-color: #fff;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.spreadsheet-check__input:checked + .spreadsheet-check__checkbox {
  border-color: #1d4ed8;
  background-color: #1d4ed8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2.5-2.5a1 1 0 011.414-1.414L6.5 8.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem;
}

.spreadsheet-check__input:focus-visible + .spreadsheet-check__checkbox {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.spreadsheet-check__label {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #44403c;
}

.spreadsheet-check__submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 9999px;
  background-color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgb(29 78 216 / 0.3);
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.spreadsheet-check__submit:hover:not(:disabled) {
  background-color: #1e40af;
}

.spreadsheet-check__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.spreadsheet-check__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.spreadsheet-check__result {
  margin-top: 1.5rem;
}

.spreadsheet-check__result-panel {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e7e5e4;
  background: linear-gradient(165deg, #fafaf9 0%, #eff6ff 100%);
}

.spreadsheet-check__result-panel[data-tier="high"] {
  border-color: #93c5fd;
  background: linear-gradient(165deg, #eff6ff 0%, #dbeafe 55%, #fafaf9 100%);
}

.spreadsheet-check__score {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.spreadsheet-check__meter {
  margin-top: 0.75rem;
}

.spreadsheet-check__meter-track {
  display: block;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgb(29 78 216 / 0.15);
}

.spreadsheet-check__meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #1d4ed8 100%);
  transition: width 0.35s ease;
}

.spreadsheet-check__result-title {
  margin: 1rem 0 0;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: #1c1917;
}

.spreadsheet-check__result-body {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #57534e;
}

.spreadsheet-check__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.spreadsheet-check__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  background-color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgb(29 78 216 / 0.28);
  transition: background-color 0.15s;
}

.spreadsheet-check__cta:hover {
  background-color: #1e40af;
}

.spreadsheet-check__cta--secondary {
  background-color: #fff;
  border: 1px solid #d6d3d1;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.05);
}

.spreadsheet-check__cta--secondary:hover {
  border-color: #93c5fd;
  background-color: #eff6ff;
}

.spreadsheet-check__mailto {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d4ed8;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(29 78 216 / 0.35);
}

.spreadsheet-check__mailto:hover {
  color: #1e40af;
}

.spreadsheet-check__reset {
  padding: 0.5rem;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #78716c;
  cursor: pointer;
  transition: color 0.15s;
}

.spreadsheet-check__reset:hover {
  color: #1d4ed8;
}

/* Blog cards */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.92);
  box-shadow: 0 1px 3px rgb(28 25 23 / 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgb(28 25 23 / 0.08);
  transform: translateY(-2px);
}

.blog-card--featured {
  flex-direction: column;
}

@media (min-width: 768px) {
  .blog-card--featured {
    flex-direction: row;
    align-items: stretch;
  }

  .blog-card--featured .blog-card__media {
    flex: 0 0 46%;
    max-width: 46%;
  }

  .blog-card--featured .blog-card__body {
    flex: 1;
    justify-content: center;
    padding: 2rem 2rem 2rem 1.75rem;
  }

  .blog-card--featured .blog-card__image-link,
  .blog-card--featured .blog-card__placeholder-link {
    height: 100%;
    min-height: 18rem;
    margin: 0;
    border-radius: 0;
    border-right: 1px solid #e7e5e4;
    border-bottom: none;
  }

  .blog-card--featured .blog-card__image {
    max-height: none;
    height: 100%;
    min-height: 18rem;
  }

  .blog-card--featured .blog-card__placeholder {
    min-height: 18rem;
    height: 100%;
    border-radius: 0;
  }
}

.blog-card__media {
  flex-shrink: 0;
}

.blog-card__image-link,
.blog-card__placeholder-link {
  display: block;
  overflow: hidden;
  background-color: #f5f5f4;
}

.blog-card__image-link {
  border-bottom: 1px solid #e7e5e4;
}

.blog-card__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 12.5rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.03);
}

.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #eff6ff 0%, #f5f5f4 55%, #e7e5e4 100%);
}

.blog-card__placeholder-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #93c5fd;
  opacity: 0.85;
}

.blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.375rem 1.5rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #78716c;
}

.blog-card__date {
  font-weight: 500;
}

.blog-card__reading-time::before {
  content: "·";
  margin-right: 0.75rem;
  color: #d6d3d1;
}

.blog-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-card__category {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  background-color: #f5f5f4;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #57534e;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.blog-card__category:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.blog-card__title {
  margin: 0.75rem 0 0;
  font-family: Fraunces, ui-serif, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-card__title--featured {
  font-size: 1.625rem;
}

.blog-card__title a {
  color: #1c1917;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-card__title a:hover {
  color: #1d4ed8;
}

.blog-card__excerpt {
  flex: 1;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #57534e;
}

.blog-card__cta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1.25rem 0 0;
}

.blog-card__read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(29 78 216 / 0.35);
  transition: color 0.15s;
}

.blog-card__read-more:hover {
  color: #1e40af;
}

.blog-card__read-more:focus-visible,
.blog-card__title a:focus-visible,
.blog-card__category:focus-visible {
  outline: none;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 2px #fafaf9, 0 0 0 4px #2563eb;
}

.blog-card__arrow {
  font-size: 0.875rem;
  color: #1d4ed8;
  transition: transform 0.15s;
}

.blog-card:hover .blog-card__arrow {
  transform: translateX(3px);
}
