/* 801 Built: hand-written, mobile-first. "Workshop blueprint" design (docs/design/README.md).
   Text colours meet WCAG AA (4.5:1) on their backgrounds; ratios are noted next to the tokens. */

/* Self-hosted fonts (latin subset, SIL OFL 1.1: see static/fonts/*-OFL.txt). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-700-normal.8aaed9b7a093.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-latin-800-normal.087b5f432b02.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.f837d382a885.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.42b95430773b.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.75fb76ec3559.woff2") format("woff2");
}

:root {
  --navy: #0e2233;        /* hero, dark sections */
  --navy-deep: #0a1a28;   /* header, footer */
  --navy-raised: #16314a;
  --navy-line: #3e6080;
  --cream: #f4f1ea;       /* page */
  --white: #ffffff;
  --ink: #14212d;         /* body text: 14.5:1 on cream */
  --muted: #45525e;       /* secondary text: 7.1:1 on cream, 8.0:1 on white */
  --subtle: #5a6672;      /* small print: 5.2:1 on cream */
  --on-dark: #c9d4de;     /* text on navy: 10.8:1 */
  --on-dark-subtle: #8fa2b3; /* small print on navy-deep: 6.7:1 */
  --copper: #e8833a;      /* buttons and bands (with --copper-ink text: 4.9:1) */
  --copper-hover: #f0954f;
  --copper-ink: #16314a;  /* navy-raised blue, not black: 4.9:1 on copper, 5.8:1 on copper-hover */
  --navy-button: #1f4466; /* buttons on copper bands: white text 10.1:1 */
  --navy-button-hover: #2a5580; /* white text 7.8:1 */
  --copper-text: #a5481a; /* copper text on light: 5.3:1 on cream, 5.9:1 on white */
  --copper-text-hover: #7a3512;
  --copper-on-dark: #f0954f; /* copper text on navy: 7.0:1 */
  --line: #dcd6ca;        /* card borders (decorative) */
  --control-line: #8a8374; /* input and pill borders: 3.8:1 on white (non-text contrast) */
  --track: #efebe3;
  --error: #b42318;       /* 6.6:1 on white */
  --error-bg: #fdecea;
  --notice-bg: #fce7c8;
  --notice-ink: #6b3a08;  /* 7.8:1 on --notice-bg */
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 72rem;
  --gutter: 1rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --grid-lines:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
}

h3 {
  font-size: 1.3125rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--copper-text);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--copper-text-hover);
}

:focus-visible {
  outline: 3px solid var(--copper-text);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--copper);
  color: var(--copper-ink);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 50;
}

.skip-link:focus {
  top: 1rem;
  outline-color: var(--white);
}

/* Dark "blueprint" surfaces: navy with a faint grid. */
.bp-grid,
.hero,
.page-head,
.section-dark {
  background-color: var(--navy);
  background-image: var(--grid-lines);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  color: var(--white);
}

.hero a:not(.button),
.page-head a:not(.button),
.section-dark a:not(.button),
.site-header a:not(.button),
.site-footer a:not(.button) {
  color: var(--copper-on-dark);
}

.hero :focus-visible,
.page-head :focus-visible,
.section-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--copper-on-dark);
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-text);
}

.hero .kicker,
.page-head .kicker,
.section-dark .kicker {
  color: var(--copper-on-dark);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--copper);
  border-radius: var(--radius);
  background: var(--copper);
  color: var(--copper-ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.button:hover {
  background: var(--copper-hover);
  border-color: var(--copper-hover);
  color: var(--copper-ink);
}

.button-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.hero .button-secondary,
.page-head .button-secondary,
.section-dark .button-secondary {
  border-color: #6e8ca6;
  color: var(--white);
}

.hero .button-secondary:hover,
.page-head .button-secondary:hover,
.section-dark .button-secondary:hover {
  background: var(--navy-raised);
  border-color: var(--white);
}

.button-small {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.arrow-link {
  font-weight: 600;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--navy-deep);
  border-bottom: 1px solid #1f3a52;
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: var(--radius);
}

.brand .logo {
  display: block;
  width: min(112px, 28vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-list,
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-wide {
  display: none;
}

.nav-list a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d5dee6;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:not(.button):hover,
.nav-list a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-cta {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  white-space: nowrap;
}

/* Phone menu: a no-JS <details> disclosure. */
.nav-menu > summary {
  list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--white);
}

.nav-toggle .cross,
.nav-menu[open] .nav-toggle .bars {
  display: none;
}

.nav-menu[open] .nav-toggle .cross {
  display: inline;
}

.nav-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--navy-deep);
  border-bottom: 1px solid #1f3a52;
  box-shadow: 0 12px 24px rgba(10, 26, 40, 0.35);
}

.nav-dropdown a:not(.button) {
  width: 100%;
  font-size: 1.0625rem;
  border-bottom: 1px solid #1f3a52;
}

.nav-dropdown .nav-menu-cta {
  display: none;
  padding-top: 0.75rem;
}

.nav-dropdown .button {
  width: 100%;
}

/* Narrow phones: "Book an assessment" moves into the menu. A signed-in visitor's short
   dashboard button stays in the header, without its icon, down to 320px. */
@media (max-width: 399px) {
  .nav-cta-book {
    display: none;
  }

  .nav-cta-dash {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .nav-cta-dash .icon {
    display: none;
  }

  .nav-dropdown .nav-menu-cta {
    display: block;
  }
}

.site-nav .icon {
  flex: none;
}

.nav-cta .icon {
  margin-left: -0.15rem;
}

/* "Sign in" for signed-out visitors (wide screens; the phone menu has its own link), after a
   thin divider. Same pale colour and hover underline as the other links; copper icon. */
.nav-signin {
  display: none;
}

.site-nav a.nav-signin {
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding-left: 1.5rem;
  border-left: 1px solid #27445e;
  color: #d5dee6;
  font-weight: 500;
  text-decoration: none;
}

.nav-signin .icon {
  color: var(--copper-on-dark);
}

.site-nav a.nav-signin:hover,
.site-nav a.nav-signin[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* Phone menu, signed in: who you are, then account links and sign out. */
.nav-dropdown .nav-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.85rem 0 0.25rem;
  border-top: 1px solid var(--navy-line);
  color: var(--on-dark-subtle);
  font-size: 0.875rem;
}

.nav-who-email {
  color: var(--white);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.nav-dropdown form {
  margin: 0;
}

.nav-signout {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #d5dee6;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.nav-signout .icon {
  display: none; /* plain text like the menu's other links */
}

.nav-signout:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.acct-badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  vertical-align: 0.1em;
}

/* Account menu (wide screens): a round initial that opens a white card. A no-JS <details>;
   base.html's script closes it on Esc and on a click outside. */
.acct {
  display: none;
  position: relative;
}

.acct > summary {
  list-style: none;
}

.acct > summary::-webkit-details-marker {
  display: none;
}

.acct-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  background: var(--navy-raised);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.acct-toggle:hover,
.acct[open] > .acct-toggle {
  border-color: var(--copper-on-dark);
}

.acct[open] > .acct-toggle {
  box-shadow: 0 0 0 3px rgba(240, 149, 79, 0.22);
}

.acct-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 40;
  width: 18.5rem;
  max-width: calc(100vw - 2 * var(--gutter));
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(10, 26, 40, 0.38), 0 0 0 1px rgba(10, 26, 40, 0.08);
}

.acct-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--cream);
  transform: rotate(45deg);
}

.acct-who {
  position: relative;
  padding: 0.95rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--cream);
}

.acct-name {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-head);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.acct-email {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.acct-links {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}

.site-header .acct-links a,
.acct-signout {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9688rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-header .acct-links a:hover,
.acct-signout:hover {
  background: var(--track);
  color: var(--ink);
}

.acct-panel .icon {
  color: var(--copper-text);
}

.site-header .acct-panel :focus-visible {
  outline-color: var(--copper-text);
  outline-offset: -3px;
}

.acct-panel form {
  margin: 0;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 761px) {
  .brand .logo {
    width: 168px;
  }

  .header-inner {
    gap: 1.5rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .site-nav {
    gap: 1.75rem;
  }

  .nav-wide {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .nav-menu {
    display: none;
  }

  .nav-signin {
    display: inline-flex;
  }

  .acct {
    display: block;
    margin-left: -0.5rem;
  }

  .nav-cta {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }
}

/* Between the phone menu and a full-width header there isn't room for the links, "Sign in" and
   the button at full spacing: tighten them so nothing wraps. */
@media (min-width: 761px) and (max-width: 959px) {
  .brand .logo {
    width: 128px;
  }

  .header-inner {
    gap: 1rem;
  }

  .site-nav,
  .nav-wide {
    gap: 0.875rem;
  }

  .site-nav a.nav-signin {
    padding-left: 0.875rem;
  }

  .nav-signin .icon {
    display: none;
  }

  .nav-cta {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.nav-list a,
.nav-signin {
  white-space: nowrap;
}

/* Page sections */
.hero {
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  flex: 999 1 28rem;
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero .lead {
  margin-bottom: 2rem;
}

.hero-art {
  display: none;
  flex: 1 1 22rem;
  min-width: 0;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-head {
  padding: 2.5rem 0 2.75rem;
}

.page-head h1 {
  margin-bottom: 0.625rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero .lead,
.page-head .lead,
.section-dark .lead {
  color: var(--on-dark);
}

.page-head .lead:last-child {
  margin-bottom: 0;
}

.circuit-divider {
  display: block;
  width: 100%;
  height: 28px;
}

.section {
  padding: 3rem 0;
}

.section > .wrap > h2:first-child,
.section > .wrap > .kicker + h2 {
  margin-bottom: 1.75rem;
}

.section-alt {
  background: #ebe6db;
}

.section-dark p {
  color: var(--on-dark);
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

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

.prose li {
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.1875rem;
}

.price strong {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--copper-text);
}

/* Cards with icons */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.5rem 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.card h2,
.card h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.card p {
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.card h3 a {
  color: var(--ink);
}

.card h3 a:hover {
  color: var(--copper-text);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.125rem;
  border-radius: 8px;
  background: var(--navy);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.cards-single {
  grid-template-columns: 1fr;
}

.after-cards {
  margin: 1.5rem 0 0;
}

/* Steps on a copper line */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem 1.75rem;
  margin: 0 0 2rem;
  padding: 1.25rem 0 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--copper);
  padding-top: 1.375rem;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: -2.5rem 0 1rem;
  border-radius: 50%;
  background: var(--copper);
  color: var(--copper-ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9375rem;
}

.steps h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
}

/* Numbered headings in long-form pages (How it works). */
.step-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--copper);
  color: var(--copper-ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9375rem;
  line-height: 1;
}

/* Copper call-to-action band */
.cta {
  background: var(--copper);
  color: var(--copper-ink);
  padding: 3rem 0;
}

.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.cta-copy {
  flex: 999 1 26rem;
  min-width: 0;
}

.cta h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2rem);
}

.cta h2:last-child {
  margin: 0;
}

.cta p {
  margin: 0;
  font-size: 1.125rem;
}

.cta .button {
  background: var(--navy-button);
  border-color: var(--navy-button);
  color: var(--white);
}

.cta .button:hover {
  background: var(--navy-button-hover);
  border-color: var(--navy-button-hover);
  color: var(--white);
}

.cta :focus-visible {
  outline-color: var(--copper-ink);
}

.notice {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--notice-bg);
  color: var(--notice-ink);
  max-width: 44rem;
}

.placeholder {
  padding: 1rem;
  border: 2px dashed var(--copper-text);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-dark);
  padding: 3rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  flex: 1 1 17rem;
}

.footer-brand .logo {
  display: block;
  margin: 0 0 0.75rem -6px;
}

.footer-brand p {
  max-width: 22rem;
  margin: 0;
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-footer .footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
}

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

.site-footer .small {
  margin: 1.5rem 0 0;
  color: var(--on-dark-subtle);
}

.small {
  font-size: 0.875rem;
}

/* Larger screens */
@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }

  .hero {
    padding: 5.5rem 0 6rem;
  }

  .page-head {
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 4.5rem 0 5rem;
  }

  .cta {
    padding: 4rem 0;
  }

  .lead {
    font-size: 1.1875rem;
  }
}

@media (min-width: 48rem) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) {
  .hero-art {
    display: block;
  }
}

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

/* Case studies */
.badge {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.meta {
  color: var(--subtle);
  font-size: 0.9375rem;
}

.page-head .meta {
  color: var(--on-dark);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.metrics div {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  background: var(--white);
}

.metrics dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.metrics dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 800;
}

.case-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--copper);
  font-size: 1.125rem;
}

blockquote footer {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Contact page and form */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.75rem;
  margin-top: -1.25rem;
  padding-bottom: 3rem;
}

.contact-side {
  display: flex;
  flex: 1 1 18rem;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.contact-main {
  flex: 999 1 32rem;
  min-width: 0;
}

.panel {
  padding: 1.125rem 1.125rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.panel h2 {
  margin: 0;
  font-size: 1.1875rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.assessment-summary {
  border-top: 4px solid var(--copper);
}

.summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.625rem;
}

.summary-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--copper-text);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
}

.check-list li {
  display: flex;
  gap: 0.625rem;
}

.check-list svg {
  flex: none;
  margin-top: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.375rem 1.125rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(14, 34, 51, 0.08);
}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step > legend {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
}

.form-step .step-num {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8125rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem 1.125rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}

.field > legend {
  margin-bottom: 0.5rem;
}

.field-optional {
  font-weight: 500;
  color: var(--subtle);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="number"],
.auth-form textarea,
.chat-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--control-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem; /* 17px: stops iOS zooming on focus */
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.auth-form input:focus-visible,
.auth-form textarea:focus-visible,
.chat-form textarea:focus-visible {
  border-color: var(--copper-text);
  outline: 3px solid var(--copper-text);
  outline-offset: 1px;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.auth-form input[aria-invalid="true"],
.auth-form textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}

.field-hint {
  margin: 0;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--subtle);
}

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.errors {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--error);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--error-bg);
  color: var(--error);
}

.errors p,
.errors ul {
  margin: 0;
}

/* Radio pills: real radio inputs, styled through their label. */
.pill-group {
  display: grid;
  gap: 0.5rem;
}

.pill-group-topic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill {
  position: relative;
  display: flex;
}

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--control-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-align: center;
}

.pill:hover span {
  border-color: var(--navy);
}

.pill input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pill input:focus-visible + span {
  outline: 3px solid var(--copper-text);
  outline-offset: 2px;
}

/* Segmented control for the preferred contact method. */
.pill-group-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: var(--track);
  max-width: 24rem;
}

.pill-group-segmented .pill span {
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.pill-group-segmented .pill:hover span {
  color: var(--ink);
}

.pill-group-segmented .pill input:checked + span {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 33, 45, 0.25), inset 0 0 0 1.5px var(--navy);
}

.form-actions .button {
  width: 100%;
  min-height: 54px;
  font-weight: 700;
  font-size: 1.0625rem;
}

.thanks {
  padding: 1.5rem 1.375rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.thanks p:last-child {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .contact-layout {
    margin-top: -3.5rem;
    padding-bottom: 5rem;
  }

  .panel {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
    gap: 2rem;
  }

  .form-step > legend {
    font-size: 1.125rem;
  }

  .form-actions {
    display: flex;
    justify-content: flex-end;
  }

  .form-actions .button {
    width: auto;
    padding-left: 1.875rem;
    padding-right: 1.875rem;
  }

  .page-head-form {
    padding-bottom: 6rem;
  }
}

/* Chat assistant widget */
.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: calc(100vw - 2rem);
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--copper);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  float: right;
  box-shadow: 0 6px 18px rgba(10, 26, 40, 0.3);
}

.chat-toggle::-webkit-details-marker {
  display: none;
}

.chat-toggle:hover {
  background: var(--navy-raised);
}

.chat-widget[open] .chat-toggle {
  margin-bottom: 0.5rem;
}

.chat-panel {
  clear: both;
  width: 22rem;
  max-width: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(14, 34, 51, 0.2);
}

.chat-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.chat-disclaimer {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.chat-log {
  max-height: 40vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.chat-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--cream);
}

.chat-notice {
  background: var(--notice-bg);
  border: 1px solid var(--copper);
  color: var(--notice-ink);
}

.chat-notice a {
  color: var(--notice-ink);
}

.chat-form {
  display: grid;
  gap: 0.4rem;
}

.chat-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-form textarea {
  min-height: 0;
  padding: 0.5rem 0.625rem;
  font-size: 1rem; /* 16px: stops iOS zooming on focus */
}

.chat-form button {
  justify-self: start;
}

/* Phones: the chat toggle becomes a round icon button, and the footer gets room below it
   so the fixed button never hides the last links or buttons on the page. */
.chat-toggle-icon {
  display: none;
}

@media (max-width: 760px) {
  .chat-widget:not([open]) .chat-toggle,
  .chat-widget[open] .chat-toggle {
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
  }

  .chat-toggle-icon {
    display: block;
  }

  .chat-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body:has(.chat-widget) .site-footer {
    padding-bottom: calc(2rem + 72px);
  }
}

/* Windows High Contrast / forced colours: backgrounds and shadows are dropped, so give the
   pills real borders and mark the checked one with an outline. */
@media (forced-colors: active) {
  .acct-panel {
    border: 1px solid CanvasText;
  }

  .pill span,
  .pill-group-segmented .pill span {
    border: 2px solid CanvasText;
  }

  .pill input:checked + span,
  .pill-group-segmented .pill input:checked + span {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  .pill input:focus-visible + span {
    outline: 3px dashed Highlight;
  }

  .pill-group-segmented {
    border: 1px solid CanvasText;
  }

  /* The logo's white letters would vanish on a light system canvas: keep its navy ground. */
  .brand,
  .footer-brand .logo,
  header a .logo {
    forced-color-adjust: none;
    background: #0a1a28;
    border-radius: var(--radius);
  }
}

/* Hero rotating word: every word sits in the same grid cell, so the box is always as big as the
   longest one and nothing below it jumps when the word changes. */
.rotator {
  display: grid;
  color: #E8833A;
}

.rotator-word {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.rotator-word.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .rotator-word {
    transition: none;
  }
}

/* Pause/play control for the rotating hero word (shown only when the word moves). */
.rotator-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #C9D4DE;
  font: 500 0.85rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.rotator-toggle:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}

.rotator-toggle:focus-visible {
  outline: 3px solid #E8833A;
  outline-offset: 2px;
}

.rotator-toggle svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
}

.rotator-toggle .icon-play,
.rotator-toggle.is-paused .icon-pause {
  display: none;
}

.rotator-toggle.is-paused .icon-play {
  display: inline;
}

.rotator-toggle[hidden] {
  display: none;
}

/* Sign-in, two-step setup and staff pages (allauth renders into these; templates/allauth/). */
.account-section {
  padding: 2rem 0 3rem;
}

.account-wrap {
  max-width: 34rem;
}

.account-card {
  padding: 1.375rem 1.125rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(14, 34, 51, 0.08);
}

.account-card > :last-child {
  margin-bottom: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.auth-form .field-hint {
  text-align: left;
}

.auth-form input:disabled {
  background: var(--track);
  color: var(--muted);
}

.account-card .actions .button,
.auth-form .actions .button {
  flex: 1 1 auto;
}

.account-panel {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.account-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.account-img {
  display: block;
  width: 12rem;
  margin: 0 auto 0.5rem;
  background: var(--white);
}

.account-aside {
  margin-top: 1.25rem;
  color: var(--subtle);
}

.notices {
  margin-bottom: 1rem;
}

.notice {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--notice-bg);
  color: var(--notice-ink);
}

.notice-error {
  border-left-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

/* Messages on pages that don't show them in their own column (e.g. "You're signed out." on
   the home page). */
.site-notices {
  padding: 1rem 0 0;
  background: var(--cream);
}

.site-notices .notices {
  margin-bottom: 1rem;
}

.site-notices .notice:last-child {
  margin-bottom: 0;
}

.staff-tools {
  padding-left: 1.25rem;
}

.staff-tools li {
  margin-bottom: 0.5rem;
}

.signout-form {
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .account-section {
    padding: 3rem 0 4rem;
  }

  .account-card {
    padding: 2rem;
  }

  .account-card .actions .button,
  .auth-form .actions .button {
    flex: 0 1 auto;
  }
}

/* Checkboxes sit inline, before their label (allauth's fields and staff forms). */
.field-check {
  gap: 0.25rem;
}

.field.field-check > label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 600;
}

.field-check input[type="checkbox"],
.field-check input[type="radio"] {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: var(--copper-text);
}

.field-check .field-hint {
  padding-left: 1.875rem;
  text-align: left;
}

/* Staff: hero words table */
.page-head-compact {
  padding: 1.5rem 0 1.625rem;
}

.section-tight {
  padding: 1.25rem 0 3rem;
}

.staff-wrap {
  max-width: 46rem;
}

.hw-bar {
  margin-bottom: 0.75rem;
}

.hw-summary {
  margin: 0;
  font-weight: 600;
}

.hw-tip,
.hw-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--subtle);
}

.hw-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  font-size: 0.9375rem;
}

.hw-table th {
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--subtle);
}

.hw-table td {
  padding: 0.125rem 0.5rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.hw-table .hw-show {
  width: 3.5rem;
}

.hw-table .hw-len {
  width: 3.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--subtle);
  white-space: nowrap;
}

.hw-table .hw-del {
  width: 2.75rem;
  padding: 0;
  text-align: center;
}

.hw-row.is-off .hw-word,
.hw-row.is-off .hw-len {
  color: var(--subtle);
}

.hw-row.is-off .hw-word {
  text-decoration: line-through;
  text-decoration-color: var(--control-line);
}

.hw-row:hover,
.hw-row.is-editing {
  background: #fbf9f5;
}

.hw-table form {
  margin: 0;
}

.hw-word {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  color: var(--ink);
  text-decoration: none;
}

.hw-word:hover {
  color: var(--copper-text);
}

.hw-pencil {
  flex: none;
  opacity: 0;
  color: var(--subtle);
}

.hw-word:hover .hw-pencil,
.hw-word:focus-visible .hw-pencil {
  opacity: 1;
}

@media (hover: none) {
  .hw-pencil {
    opacity: 0.6;
  }
}

/* The show switch: a role="switch" submit button. */
.switch {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 1.5rem;
  margin: 0.5rem 0;
  padding: 0;
  border: 1.5px solid var(--control-line);
  border-radius: 999px;
  background: var(--track);
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.0625rem;
  height: 1.0625rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--control-line);
  transition: transform 0.15s ease;
}

.switch[aria-checked="true"] {
  border-color: var(--copper-text);
  background: var(--copper-text);
}

.switch[aria-checked="true"]::after {
  box-shadow: none;
  transform: translateX(1rem);
}

.switch:focus-visible {
  outline: 3px solid var(--copper-text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .switch::after {
    transition: none;
  }
}

.hw-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  color: var(--subtle);
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
}

.hw-x:hover {
  background: var(--error-bg);
  color: var(--error);
}

.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.75rem;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.hw-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.hw-btn-primary {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--copper-ink);
}

.hw-btn-primary:hover {
  border-color: var(--copper-hover);
  background: var(--copper-hover);
  color: var(--copper-ink);
}

.hw-add td {
  padding: 0.5rem;
  border-top: 0;
  background: var(--cream);
}

.hw-add-form,
.hw-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
}

.hw-table input[type="text"],
.hw-settings input[type="number"] {
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem;
  border: 1.5px solid var(--control-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px: stops iOS zooming on focus */
}

.hw-table input[type="text"] {
  flex: 1 1 12rem;
  min-width: 0;
}

.hw-table input:focus-visible,
.hw-settings input:focus-visible {
  border-color: var(--copper-text);
  outline: 3px solid var(--copper-text);
  outline-offset: 1px;
}

.hw-table input[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}

.hw-count {
  width: 3rem;
  text-align: right;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
}

.hw-edit {
  padding: 0.375rem 0;
}

.hw-edit-actions {
  display: inline-flex;
  gap: 0.375rem;
}

.hw-errors {
  flex-basis: 100%;
}

.hw-errors .errorlist {
  font-size: 0.8125rem;
}

.hw-empty {
  padding: 1rem 0.5rem;
  color: var(--subtle);
}

.hw-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.hw-setting {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.hw-setting label {
  font-weight: 600;
}

.hw-settings input[type="number"] {
  width: 4.5rem;
}

.hw-check {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hw-check input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--copper-text);
}

.hw-settings .hw-errors,
.hw-settings-note {
  flex-basis: 100%;
}

.hw-saved {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .hw-table th,
  .hw-table td {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }

  .hw-table .hw-show {
    width: 3rem;
  }

  .hw-table .hw-len {
    width: 3rem;
  }
}

/* Recovery codes page: allauth's download and new-codes buttons are secondary to Continue. */
.recovery-codes .button {
  margin: 0 0.5rem 0.75rem 0;
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.recovery-codes .button:hover {
  background: var(--navy);
  color: var(--white);
}

.account-continue {
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* "← Back" above allauth's two-step sign-in pages (accounts.templatetags.account_nav). */
.account-back {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.account-back a,
.account-back .link-button {
  font-weight: 600;
}

.account-back form {
  margin: 0;
}

.account-back-note {
  color: var(--subtle);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--copper-text);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--copper-text-hover);
}
