:root {
  --ac-shell: 1120px;
  --ac-reading: 760px;
  --ac-gutter: clamp(16px, 3vw, 32px);
  --ac-section-space: clamp(38px, 6vw, 76px);
}

html {
  width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

img, video, svg, canvas, iframe, table {
  max-width: 100%;
}

img, video, svg, canvas {
  height: auto;
}

body .wrap {
  width: min(var(--ac-shell), calc(100% - (2 * var(--ac-gutter)))) !important;
  max-width: var(--ac-shell) !important;
  margin-inline: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body .reading {
  width: min(var(--ac-reading), calc(100% - (2 * var(--ac-gutter)))) !important;
  max-width: var(--ac-reading) !important;
  margin-inline: auto !important;
}

body nav .wrap,
body .site-nav .wrap {
  min-height: 66px;
  height: auto !important;
}

body .hero,
body .library-hero,
body .article-hero,
body .section {
  padding-left: var(--ac-gutter) !important;
  padding-right: var(--ac-gutter) !important;
}

body .hero .wrap,
body .library-hero .wrap,
body .article-hero .wrap,
body .section .wrap {
  width: min(var(--ac-shell), 100%) !important;
}

h1, h2, h3, h4, p, li, a, label, small, blockquote {
  overflow-wrap: break-word;
}

h1 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

.eyebrow-main {
  font-size: clamp(13px, 1.15vw, 15px) !important;
  padding: 6px 13px !important;
}

.hero h1,
.library-hero h1,
.article-hero h1 {
  font-size: clamp(38px, 5.25vw, 68px) !important;
}

.hero p,
.dek {
  font-size: clamp(16px, 1.55vw, 20px) !important;
}

.grid, .card-grid, .case-grid, .res-grid, .offers-grid,
.panel, .card, .case, .res, .offer, .tool-card,
input, select, textarea {
  min-width: 0;
}

.ac-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 2px solid currentColor;
  border-radius: 10px;
  background: var(--card, var(--paper, #fffdf5));
  color: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 1500px) {
  :root { --ac-shell: 1200px; }
}

@media (max-width: 760px) {
  :root { --ac-gutter: 16px; }

  body nav .wrap,
  body .site-nav .wrap {
    min-height: 62px;
  }

  body .hero,
  body .library-hero,
  body .article-hero,
  body .section {
    padding-top: clamp(32px, 9vw, 48px) !important;
    padding-bottom: clamp(32px, 9vw, 48px) !important;
  }

  .hero h1,
  .library-hero h1,
  .article-hero h1 {
    font-size: clamp(34px, 10.5vw, 50px) !important;
  }

  .hero h1 em {
    white-space: normal !important;
  }

  .hero-actions {
    gap: 12px !important;
  }

  .hero-actions a {
    min-height: 46px;
  }

  .ac-menu-toggle {
    display: inline-flex;
  }

  body > nav,
  body .site-nav {
    position: sticky;
  }

  body > nav > div:not(.wrap),
  body .calc-nav-links,
  body .site-nav .nav-links {
    display: none !important;
  }

  body > nav > div.ac-menu-open:not(.wrap),
  body .calc-nav-links.ac-menu-open,
  body .site-nav .nav-links.ac-menu-open {
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    z-index: 100;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 14px;
    border: 2px solid currentColor;
    border-radius: 0 0 14px 14px;
    background: var(--bg, var(--paper, #fffdf5));
    box-shadow: 5px 6px 0 var(--border, var(--ink, #172033));
  }

  body > nav > div.ac-menu-open a,
  body .calc-nav-links.ac-menu-open a,
  body .site-nav .nav-links.ac-menu-open a {
    position: static !important;
    display: block !important;
    width: 100%;
    padding: 11px 2px;
    border-bottom: 1px dashed currentColor;
    box-shadow: none !important;
  }

  body .nav-calc {
    margin-left: 0 !important;
  }

  .statement-table,
  .sector-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 430px) {
  :root { --ac-gutter: 14px; }

  .logo, .brand, .andchill-home {
    font-size: 17px !important;
  }

  .page-label, .tool-name {
    display: none !important;
  }

  .hero-actions a {
    width: 100%;
  }
}
