/*
 * Header and footer reproduce the live audioenhancement.com chrome: navy
 * #1e407b, Libre Franklin and Hind, centred logo with the nav split either
 * side. The new site design is not shipping soon, so this tracks the live
 * site. Everything below the chrome is ours.
 */

:root {
  --navy: #1e407b;
  --navy-deep: #1a3a6e;
  --blue: #0788c2;
  --link-blue: #1e5799;
  --green: #78c144;
  --ink: #22262c;
  --muted: #6b7280;
  --rule: #e2e6ea;
  --page: #ffffff;
  --sunken: #f4f6f8;
  --font: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --font-alt: "Hind", "Libre Franklin", -apple-system, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.65 var(--font);
}

a {
  color: var(--link-blue);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Main-site chrome, matching the live site */

.site-header {
  background: var(--navy);
}

/* One centred cluster, not thirds: the live nav sits 40px apart throughout. */
.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  min-height: 109px;
}

.logo {
  margin: 0 5px;
}

.logo img {
  display: block;
  height: 65px;
  width: auto;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > ul > li > a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-nav .has-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav .caret {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: -10px;
  z-index: 20;
  width: max-content;
  min-width: 105px;
  margin: 0;
  padding: 0;
  background: var(--navy);
  border-radius: 3px;
  box-shadow: 0 0 9px 1px rgba(0, 0, 0, 0.15);
  list-style: none;
  visibility: hidden;
  opacity: 0;
}

.has-menu:hover > .submenu,
.has-menu:focus-within > .submenu {
  visibility: visible;
  opacity: 1;
}

.submenu a {
  display: block;
  padding: 6px 15px;
  font-size: 14px;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */

.hero {
  padding: 42px 0 56px;
  background: var(--navy);
  color: #fff;
}

.hero-crumbs {
  margin-bottom: 26px;
  color: #b9c6dd;
  font-size: 16px;
}

.hero-crumbs a {
  color: #d8e1ef;
  text-decoration: none;
}

.hero-crumbs a:hover {
  text-decoration: underline;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.hero p {
  margin: 0;
  font-size: 19px;
  color: #dbe3ef;
}

/* Page furniture */

.product-head {
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--rule);
}

.product-head h1 {
  margin: 0 0 16px;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 52px;
  padding: 44px 0 110px;
}

/* No sidebar to sit beside, so the content takes the whole row. */
.layout.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.on-this-page .eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.on-this-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.on-this-page a {
  display: block;
  padding: 13px 18px;
  border-left: 3px solid transparent;
  color: var(--ink);
  font-size: 17px;
  text-decoration: none;
}

.on-this-page a:hover {
  color: var(--link-blue);
}

.on-this-page a[aria-current] {
  border-left-color: var(--green);
  background: var(--sunken);
  color: var(--navy);
  font-weight: 700;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.panel {
  padding: 34px 40px 40px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.panel > h2 {
  margin: 0;
  color: var(--link-blue);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.updated {
  margin: 10px 0 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.panel > .body {
  margin-top: 26px;
}

/* No date line above, so the body supplies its own rule under the heading. */
.panel > h2 + .body {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 48px 0 110px;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 28px 26px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
}

.card-name {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.card-blurb {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.card:hover {
  border-color: var(--blue);
  background: var(--sunken);
}

.history {
  padding-top: 12px;
}

.history h2.section {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.history li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.history .date {
  color: var(--muted);
  font-size: 15px;
}

.permalink {
  margin: 0;
  font-size: 15px;
}

.empty {
  margin: 44px 0 110px;
  padding: 34px;
  background: var(--sunken);
  border-radius: 8px;
  color: var(--muted);
}

/*
 * Author-written HTML from the wiki. It carries no classes we control, so
 * everything here is styled by element inside .body and nothing assumes a
 * particular set of headings or sections.
 */

.body > *:first-child {
  margin-top: 0;
}

.body > *:last-child {
  margin-bottom: 0;
}

.body h2,
.body h3,
.body h4 {
  margin: 34px 0 14px;
  color: var(--link-blue);
  line-height: 1.25;
  font-weight: 700;
}

.body h2 {
  font-size: 23px;
}

.body h3 {
  font-size: 19px;
}

.body h4 {
  font-size: 17px;
}

.body p,
.body ul,
.body ol {
  margin: 0 0 18px;
}

.body ul {
  padding-left: 0;
  list-style: none;
}

.body ul > li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.body ul > li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--navy);
}

.body ol {
  padding-left: 24px;
}

.body ol > li {
  margin-bottom: 10px;
}

.body img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.body blockquote {
  margin: 22px 0;
  padding: 14px 22px;
  border-left: 3px solid var(--blue);
  background: var(--sunken);
  color: var(--muted);
}

.body code {
  padding: 2px 6px;
  background: var(--sunken);
  border-radius: 3px;
  font-size: 0.88em;
}

.body pre {
  overflow-x: auto;
  padding: 18px;
  background: var(--sunken);
  border-radius: 6px;
}

.body pre code {
  padding: 0;
  background: none;
}

.body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.body th,
.body td {
  padding: 11px 14px;
  border: 1px solid var(--rule);
  text-align: left;
}

.body th {
  background: var(--sunken);
  font-weight: 700;
}

/* Site footer, matching the live site */

/* Fluid, like the live footer: fixed 130px gutters, no max-width. */
.site-footer {
  padding: 35px 130px 45px;
  background: var(--navy);
  color: #fff;
}

/* The live columns are not thirds: 394 / 359 / 397 inside a 1180px row. */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 394fr) minmax(0, 359fr) minmax(0, 397fr);
  gap: 15px;
  align-items: center;
  text-align: center;
}

/* The tall line box, not a margin, is what separates the heading from the icons. */
.follow h2 {
  margin: 0;
  font-family: var(--font-alt);
  font-size: 30px;
  line-height: 2.75;
  font-weight: 700;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 46px;
}

/* 50px boxes as on the live site; each glyph fits its own viewBox inside. */
.social-icons svg {
  display: block;
  width: 50px;
  height: 50px;
  fill: #fff;
}

.social-icons a:hover svg {
  fill: var(--green);
}

.social-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
  font-size: 15px;
  line-height: 30px;
}

/* 15px either side, as on the live site, so the fourth name drops to a second row. */
.social-names a {
  margin: 0 15px;
  padding: 2px 0;
}

.contact {
  padding: 10px 0;
}

.contact p {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
}

/* Three equal cells, so each link is centred over its own third of the column. */
.contact .legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 58px 0 34px;
  line-height: 24px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

/* Declared after the reset above, which would otherwise cancel it. */
.legal-links a {
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--green);
}

.hiring {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 114px;
  column-gap: 15px;
  align-items: center;
}

.hiring-head {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 44px;
  line-height: 44px;
  font-weight: 800;
  text-transform: uppercase;
}

.hiring-sub {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 17px;
  line-height: 17px;
  font-weight: 800;
}

/* White fill, navy text, and narrow enough that the label breaks over two lines. */
.site-footer .apply {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 12px 15px;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  line-height: 21.6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-footer .apply:hover {
  color: var(--green);
}

.disclaimer {
  margin: 15px 0 0;
}

.disclaimer p {
  margin: 0;
  font-family: var(--font-alt);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

  .hero h1 {
    font-size: 38px;
  }

  .panel {
    padding: 26px 22px 30px;
  }

  .header-inner {
    gap: 18px;
    padding: 18px 0;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .site-footer {
    padding-inline: 28px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
