/*
 * Best Law Firm — shared static inner-page system
 * Load after styles.css. All rules are additive and scoped to .inner-page.
 */

.inner-page {
  --inner-content: 780px;
  --inner-aside: 340px;
  --inner-gap: clamp(42px, 6vw, 88px);
  --inner-text-xs: var(--font-body-min, 0.875rem);
  --inner-text-sm: 0.9375rem;
  --inner-text-md: 1.0625rem;
  --inner-line: rgba(17, 24, 49, 0.13);
  --inner-line-dark: rgba(255, 255, 255, 0.16);
  background: var(--paper);
}

.inner-main {
  overflow: clip;
}

/* Compact page hero ------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(430px, 49vw, 650px);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--inner-line);
  background:
    radial-gradient(circle at 82% 20%, rgba(140, 167, 206, 0.26), transparent 28%),
    linear-gradient(135deg, var(--paper), var(--mineral));
  color: var(--ink);
}

.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 65, 103, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 65, 103, 0.055) 1px, transparent 1px);
  background-size: 110px 110px;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 62%, transparent);
  mask-image: linear-gradient(90deg, transparent 10%, #000 62%, transparent);
  pointer-events: none;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  right: clamp(-210px, -11vw, -80px);
  bottom: clamp(-300px, -16vw, -160px);
  width: clamp(420px, 47vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(47, 65, 103, 0.1);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 85px rgba(47, 65, 103, 0.026),
    inset 0 0 0 170px rgba(47, 65, 103, 0.022);
  content: "";
  pointer-events: none;
}

.page-hero--compact {
  min-height: clamp(360px, 39vw, 530px);
}

.page-hero--dark,
.page-hero--image {
  border-bottom-color: var(--inner-line-dark);
  background: var(--ink);
  color: var(--white);
}

.page-hero--dark::before,
.page-hero--image::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

.page-hero--dark::after,
.page-hero--image::after {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 0 0 85px rgba(255, 255, 255, 0.018),
    inset 0 0 0 170px rgba(255, 255, 255, 0.014);
}

.page-hero__media,
.page-hero__veil {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 17, 40, 0.95) 0%, rgba(9, 17, 40, 0.82) 46%, rgba(9, 17, 40, 0.36) 100%),
    linear-gradient(0deg, rgba(9, 17, 40, 0.44), transparent 65%);
}

.page-hero__inner {
  display: grid;
  width: min(calc(100% - 48px), var(--shell));
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 105px);
  padding-block: clamp(70px, 9vw, 118px);
}

@media (max-width: 720px) {
  .page-hero__inner {
    width: min(calc(100% - 36px), var(--shell));
  }
}

.page-hero--split .page-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.42fr);
}

.page-hero__copy {
  width: min(100%, 940px);
}

.page-hero__copy .eyebrow {
  margin-bottom: 22px;
}

.page-hero--dark .eyebrow,
.page-hero--image .eyebrow {
  color: #f39b88;
}

.page-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.1vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

.page-hero--compact h1 {
  font-size: clamp(3.2rem, 6.1vw, 5.6rem);
}

.page-hero h1 em {
  color: var(--coral);
  font-weight: 400;
}

.page-hero__lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: #4f5b73;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.page-hero--dark .page-hero__lede,
.page-hero--image .page-hero__lede {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.page-hero__aside {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.74);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.page-hero--dark .page-hero__aside,
.page-hero--image .page-hero__aside {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(4, 9, 24, 0.24);
}

.page-hero__aside > :last-child {
  margin-bottom: 0;
}

.page-hero__aside small,
.page-hero__aside .page-hero__aside-label {
  display: block;
  margin-bottom: 10px;
  color: var(--coral-dark);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.page-hero--dark .page-hero__aside small,
.page-hero--image .page-hero__aside small,
.page-hero--dark .page-hero__aside-label,
.page-hero--image .page-hero__aside-label {
  color: #f3a08e;
}

.page-hero__aside strong {
  display: block;
  margin-bottom: 10px;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.page-hero__aside p,
.page-hero__aside li {
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

.page-hero--dark .page-hero__aside p,
.page-hero--dark .page-hero__aside li,
.page-hero--image .page-hero__aside p,
.page-hero--image .page-hero__aside li {
  color: rgba(255, 255, 255, 0.66);
}

/* Breadcrumbs ------------------------------------------------------------- */

.breadcrumbs {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  font-weight: 600;
  line-height: 1.5;
}

.page-hero--dark .breadcrumbs,
.page-hero--image .breadcrumbs {
  color: rgba(255, 255, 255, 0.62);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.breadcrumbs li + li::before {
  color: var(--coral);
  content: "/";
  font-weight: 500;
}

.breadcrumbs a {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.breadcrumbs a:hover {
  color: var(--coral-dark);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.page-hero--dark .breadcrumbs a:hover,
.page-hero--image .breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.page-hero--dark .breadcrumbs [aria-current="page"],
.page-hero--image .breadcrumbs [aria-current="page"] {
  color: var(--white);
}

/* Editorial content ------------------------------------------------------- */

.content-section {
  position: relative;
  padding-block: var(--section);
  background: var(--paper);
}

.content-section--mineral {
  background: var(--mineral);
}

.content-section--alabaster {
  background: var(--alabaster);
}

.content-section--tight {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--inner-content)) minmax(290px, var(--inner-aside));
  justify-content: space-between;
  align-items: start;
  gap: var(--inner-gap);
}

.content-layout--wide {
  grid-template-columns: minmax(0, 1fr) minmax(300px, var(--inner-aside));
}

.content-layout--single {
  display: block;
}

.content-layout--single .prose {
  margin-inline: auto;
}

.prose {
  width: 100%;
  max-width: var(--inner-content);
  color: #3f4a61;
  font-size: var(--inner-text-md);
  line-height: 1.88;
}

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

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

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose table,
.prose figure,
.prose blockquote,
.prose .callout {
  margin-top: 0;
  margin-bottom: 1.55em;
}

.prose .lead,
.prose > p:first-child.lead {
  color: var(--ink-3);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.55;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.prose h2 {
  margin: 1.55em 0 0.55em;
  font-size: clamp(2.25rem, 4.4vw, 3.8rem);
  line-height: 1.02;
}

.prose h3 {
  margin: 1.45em 0 0.5em;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.prose h4 {
  margin: 1.35em 0 0.45em;
  font-size: 1.35rem;
  line-height: 1.25;
}

.prose h5,
.prose h6 {
  margin: 1.3em 0 0.55em;
  color: var(--coral-dark);
  font-family: var(--sans);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.prose a:not(.button) {
  color: var(--coral-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(189, 79, 64, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.prose a:not(.button):hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.prose p > a:not(.button) + a:not(.button) {
  margin-left: 0.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.58em;
  padding-left: 0.25em;
}

.prose li::marker {
  color: var(--coral);
  font-weight: 700;
}

.prose blockquote {
  position: relative;
  margin-inline: 0;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4.5vw, 52px);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--alabaster);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.45;
}

.prose blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--inner-text-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.prose hr {
  height: 1px;
  margin: clamp(42px, 7vw, 72px) 0;
  border: 0;
  background: var(--inner-line);
}

.prose figure {
  margin-inline: 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.prose figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  line-height: 1.6;
}

.prose .callout,
.editorial-callout {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(216, 98, 81, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(216, 98, 81, 0.11), transparent 42%),
    var(--paper);
  box-shadow: var(--shadow-sm);
}

.prose .callout > :last-child,
.editorial-callout > :last-child {
  margin-bottom: 0;
}

.callout__label {
  display: block;
  margin-bottom: 10px;
  color: var(--coral-dark);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.key-points {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-block: clamp(34px, 5vw, 54px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--inner-line);
}

.key-point {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--paper);
}

.key-point > span {
  color: var(--coral-dark);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.key-point h3 {
  margin: 0 0 5px;
  font-size: 1.35rem;
}

.key-point p {
  margin: 0;
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

/* Sticky aside and consultation card ------------------------------------- */

.content-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 22px;
}

.consult-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 3.5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(140, 167, 206, 0.28), transparent 42%),
    var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.consult-card::after {
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -130px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 56px rgba(255, 255, 255, 0.018);
  content: "";
}

.consult-card__label {
  display: block;
  margin-bottom: 16px;
  color: #f3a08e;
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.consult-card h2,
.consult-card h3 {
  margin: 0 0 16px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.03;
}

.consult-card p,
.consult-card li {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--inner-text-sm);
  line-height: 1.72;
}

.consult-card ul {
  margin: 0 0 24px;
  padding-left: 1.2em;
}

.consult-card li::marker {
  color: #f3a08e;
}

.consult-card .button {
  width: 100%;
  margin-top: 10px;
}

.consult-card__phone {
  display: block;
  margin-top: 18px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.aside-card {
  padding: 28px;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--alabaster);
}

.aside-card h2,
.aside-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
}

.aside-card p,
.aside-card li {
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

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

/* Related content cards --------------------------------------------------- */

.related-section {
  position: relative;
  padding-block: var(--section);
  border-top: 1px solid var(--inner-line);
  background: var(--alabaster);
}

.related-section__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: end;
  gap: 50px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.related-section__heading .display-title {
  margin-bottom: 0;
}

.related-section__heading > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-md);
  line-height: 1.75;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: clamp(28px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(23, 32, 60, 0.055);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.related-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(47, 65, 103, 0.08);
  border-radius: 50%;
  content: "";
  transition: transform 300ms ease;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 98, 81, 0.34);
  box-shadow: var(--shadow-sm);
}

.related-card:hover::after {
  transform: scale(1.12);
}

.related-card__kicker,
.related-card__number {
  display: block;
  margin-bottom: 30px;
  color: var(--coral-dark);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-card h2,
.related-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.related-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.72;
}

.related-card .arrow-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.related-card--featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.related-card--featured h2,
.related-card--featured h3 {
  color: var(--white);
}

.related-card--featured p {
  color: rgba(255, 255, 255, 0.64);
}

.related-card--featured .arrow-link,
.related-card--featured .related-card__kicker,
.related-card--featured .related-card__number {
  color: #f3a08e;
}

/* Shared conversion CTA --------------------------------------------------- */

.shared-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background: var(--paper);
}

.shared-cta__inner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(38px, 7vw, 100px);
  overflow: hidden;
  padding: clamp(42px, 6vw, 76px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 12%, rgba(140, 167, 206, 0.3), transparent 31%),
    var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.shared-cta__inner::after {
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -230px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 85px rgba(255, 255, 255, 0.014),
    inset 0 0 0 170px rgba(255, 255, 255, 0.012);
  content: "";
}

.shared-cta__copy {
  max-width: 800px;
}

.shared-cta .eyebrow {
  color: #f3a08e;
}

.shared-cta h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.6vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.shared-cta__copy > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--inner-text-md);
  line-height: 1.75;
}

.shared-cta__actions {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 230px;
  gap: 12px;
}

.shared-cta__actions .button {
  width: 100%;
}

.shared-cta__phone {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* Prototype-only notices -------------------------------------------------- */

.prototype-notice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(205, 163, 85, 0.38);
  border-radius: var(--radius-sm);
  background: #fff9e9;
  color: #5c4a25;
  font-size: var(--inner-text-xs);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.prototype-notice::before {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(205, 163, 85, 0.2);
  content: "i";
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.prototype-notice strong {
  color: var(--ink);
}

.prototype-notice__dismiss {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: var(--inner-text-xs);
  font-weight: 700;
}

.prototype-notice--fixed {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100% - 36px));
}

/* Tables ------------------------------------------------------------------ */

.data-table-wrap {
  overflow-x: auto;
  margin-block: 32px;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--text);
  font-size: var(--inner-text-sm);
  line-height: 1.6;
  text-align: left;
}

.data-table caption {
  padding: 20px 22px 14px;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--inner-line);
  vertical-align: top;
}

.data-table th {
  background: var(--ink);
  color: var(--white);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(223, 232, 241, 0.32);
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.data-table a {
  color: var(--coral-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-note {
  margin: -16px 2px 32px;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  line-height: 1.65;
}

/* Forms ------------------------------------------------------------------- */

.prose form[data-static-form] {
  display: grid;
  gap: 20px;
  margin-block: clamp(32px, 5vw, 58px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--alabaster);
  box-shadow: var(--shadow-sm);
}

.prose form[data-static-form] label,
.prose form[data-static-form] legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.prose form[data-static-form] input:not([type="hidden"]),
.prose form[data-static-form] select,
.prose form[data-static-form] textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(17, 24, 49, 0.2);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.prose form[data-static-form] textarea {
  min-height: 130px;
  resize: vertical;
}

.prose form[data-static-form] input:not([type="hidden"]):focus,
.prose form[data-static-form] select:focus,
.prose form[data-static-form] textarea:focus {
  border-color: var(--coral);
  outline: 3px solid rgba(216, 98, 81, 0.14);
  outline-offset: 1px;
}

.prose form[data-static-form] button,
.prose form[data-static-form] input[type="submit"] {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--coral-dark);
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--inner-text-xs);
  font-weight: 700;
}

.prose form[data-static-form] input[type="hidden"] {
  display: none;
}

.form-shell {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.form-shell__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--inner-line);
}

.form-shell__heading h2,
.form-shell__heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.02;
}

.form-shell__heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label,
.form-field > span:first-child,
.form-legend {
  color: #4e586d;
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.45;
  text-transform: uppercase;
}

.form-field label em,
.form-field > span:first-child em,
.form-legend em {
  color: var(--coral);
  font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 24, 49, 0.2);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 24px,
    calc(100% - 14px) 24px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(216, 98, 81, 0.11);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--coral-dark);
}

.form-field__help,
.form-field__error {
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  line-height: 1.5;
}

.form-field__error {
  color: var(--coral-dark);
  font-weight: 700;
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 0;
  border: 0;
}

.form-option {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: var(--inner-text-sm);
  line-height: 1.55;
}

.form-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--coral);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--inner-line);
}

.form-actions__note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  line-height: 1.6;
}

/* Calculator and interactive shells -------------------------------------- */

.calculator-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(17, 24, 49, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(140, 167, 206, 0.3), transparent 36%),
    var(--mineral);
  box-shadow: var(--shadow);
}

.calculator-shell::after {
  position: absolute;
  z-index: -1;
  right: -220px;
  bottom: -300px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(47, 65, 103, 0.09);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 100px rgba(47, 65, 103, 0.018),
    inset 0 0 0 200px rgba(47, 65, 103, 0.014);
  content: "";
}

.calculator-shell__heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.calculator-shell__heading h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.calculator-shell__heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-md);
  line-height: 1.75;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.calculator-panel,
.calculator-result {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(17, 24, 49, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.calculator-panel h3,
.calculator-result h3 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
}

.calculator-panel .form-field + .form-field {
  margin-top: 20px;
}

.calculator-result {
  position: sticky;
  top: 104px;
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: var(--white);
}

.calculator-result h3 {
  color: var(--white);
}

.calculator-result__label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.calculator-result__value {
  display: block;
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.calculator-result p,
.calculator-result li {
  color: rgba(255, 255, 255, 0.64);
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

.calculator-note,
.calculator-disclaimer {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  line-height: 1.65;
}

.calculator-result .calculator-note,
.calculator-result .calculator-disclaimer {
  color: rgba(255, 255, 255, 0.52);
}

.calculator-panel input[type="range"] {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--coral);
}

.range-output {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--inner-text-xs);
}

.range-output output {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

/* FAQ and authorship ------------------------------------------------------ */

.faq-list {
  display: grid;
  gap: 12px;
  margin-block: 34px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.faq-item summary {
  position: relative;
  padding: 22px 58px 22px 24px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 98, 81, 0.34);
  border-radius: 50%;
  transform: translateY(-50%);
  color: var(--coral-dark);
  content: "+";
  font-family: var(--sans);
  font-size: 1.1rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--coral);
  color: var(--white);
}

.faq-item__answer {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: var(--inner-text-md);
  line-height: 1.8;
}

.faq-item__answer > :last-child {
  margin-bottom: 0;
}

.author-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: clamp(42px, 7vw, 72px);
  padding: 28px;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--alabaster);
}

.author-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card__label {
  display: block;
  margin-bottom: 5px;
  color: var(--coral-dark);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-card h2,
.author-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
}

.author-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1180px) {
  .page-hero--split .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  }

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

  .related-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .page-hero--split .page-hero__inner {
    grid-template-columns: 1fr;
  }

  .page-hero__aside {
    width: min(100%, 720px);
  }

  .content-layout,
  .content-layout--wide {
    grid-template-columns: 1fr;
  }

  .prose {
    max-width: 820px;
  }

  .content-aside {
    position: static;
    width: min(100%, 820px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-aside > :only-child {
    grid-column: 1 / -1;
  }

  .related-section__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shared-cta__inner {
    grid-template-columns: 1fr;
  }

  .shared-cta__actions {
    width: min(100%, 420px);
  }

  .form-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .calculator-result {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-hero,
  .page-hero--compact {
    min-height: 0;
  }

  .page-hero__inner {
    padding-block: 64px;
  }

  .page-hero h1,
  .page-hero--compact h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
    line-height: 0.96;
  }

  .page-hero__lede {
    margin-top: 22px;
  }

  .page-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-hero__actions .button {
    width: 100%;
  }

  .page-hero__aside {
    padding: 26px;
  }

  .breadcrumbs {
    margin-bottom: 22px;
  }

  .content-section,
  .related-section {
    padding-block: clamp(4.5rem, 16vw, 6.5rem);
  }

  .content-aside {
    grid-template-columns: 1fr;
  }

  .key-point {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 22px 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card,
  .related-card:last-child:nth-child(odd) {
    min-height: 280px;
    grid-column: auto;
  }

  .shared-cta {
    padding-block: 4.5rem;
  }

  .shared-cta__inner {
    padding: 38px 24px;
    border-radius: var(--radius);
  }

  .shared-cta__actions {
    width: 100%;
  }

  .prototype-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .prototype-notice__dismiss {
    grid-column: 2;
    justify-self: start;
  }

  .prototype-notice--fixed {
    right: 12px;
    bottom: 74px;
    width: calc(100% - 24px);
  }

  .data-table th,
  .data-table td {
    padding: 16px;
  }

  .form-shell {
    padding: 28px 22px;
    border-radius: var(--radius);
  }

  .form-shell__heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .form-grid,
  .form-grid--three {
    grid-template-columns: 1fr;
  }

  .form-field--full {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .calculator-shell {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  .calculator-panel,
  .calculator-result {
    padding: 26px 22px;
  }

  .author-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }

  .author-card img {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 400px) {
  .page-hero h1,
  .page-hero--compact h1 {
    font-size: 2.9rem;
  }

  .page-hero__inner {
    padding-block: 54px;
  }

  .prose h2 {
    font-size: 2.2rem;
  }

  .prose h3 {
    font-size: 1.65rem;
  }

  .author-card {
    grid-template-columns: 1fr;
  }
}

/* Motion and print -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .inner-page *,
  .inner-page *::before,
  .inner-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .related-card:hover,
  .related-card:hover::after {
    transform: none;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  .inner-page {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
  }

  .inner-page .utility-bar,
  .inner-page .site-header,
  .inner-page .mobile-menu,
  .inner-page .page-progress,
  .inner-page .mobile-cta,
  .inner-page .prototype-notice,
  .inner-page .shared-cta,
  .inner-page .consult-card,
  .inner-page .form-shell,
  .inner-page .calculator-shell,
  .inner-page .button {
    display: none !important;
  }

  .inner-main {
    overflow: visible;
  }

  .page-hero,
  .page-hero--dark,
  .page-hero--image,
  .content-section,
  .related-section {
    min-height: 0;
    padding-block: 24pt;
    border: 0;
    background: #fff !important;
    color: #111 !important;
  }

  .page-hero::before,
  .page-hero::after,
  .page-hero__media,
  .page-hero__veil {
    display: none !important;
  }

  .page-hero__inner,
  .page-hero--split .page-hero__inner,
  .content-layout,
  .content-layout--wide,
  .related-grid,
  .related-section__heading {
    display: block;
    padding-block: 0;
  }

  .page-hero h1,
  .page-hero--compact h1 {
    color: #111 !important;
    font-size: 34pt;
  }

  .page-hero__lede,
  .page-hero--dark .page-hero__lede,
  .page-hero--image .page-hero__lede,
  .breadcrumbs,
  .page-hero--dark .breadcrumbs,
  .page-hero--image .breadcrumbs {
    color: #333 !important;
  }

  .content-aside {
    position: static;
    display: block;
  }

  .aside-card,
  .related-card,
  .author-card,
  .prose blockquote,
  .prose .callout,
  .editorial-callout {
    break-inside: avoid;
    border: 1px solid #bbb;
    background: #fff !important;
    box-shadow: none;
  }

  .related-card {
    min-height: 0;
    margin-bottom: 14pt;
  }

  .prose,
  .prose p,
  .prose li,
  .related-card p,
  .aside-card p {
    color: #222 !important;
  }

  .prose a[href^="http"]::after {
    color: #555;
    content: " (" attr(href) ")";
    font-size: 10.5pt;
    font-weight: 400;
    word-break: break-all;
  }

  .data-table-wrap {
    overflow: visible;
    border: 1px solid #aaa;
    box-shadow: none;
  }

  .data-table {
    min-width: 0;
    font-size: 10.5pt;
  }

  .data-table th {
    background: #eee !important;
    color: #111 !important;
  }

  .inner-page .site-footer {
    padding: 20pt 0 0;
    border-top: 1px solid #aaa;
    background: #fff !important;
    color: #111 !important;
  }

  .inner-page .footer-top,
  .inner-page .office-grid,
  .inner-page .footer-contact {
    display: none;
  }

  .inner-page .footer-bottom,
  .inner-page .footer-bottom p,
  .inner-page .footer-bottom .legal {
    color: #444 !important;
    font-size: 10.5pt;
  }
}

/* Explicit readability floor for all inner-page microcopy. */
.inner-page :where(
  small,
  label,
  input,
  select,
  textarea,
  button,
  figcaption,
  caption,
  th,
  td,
  summary,
  .breadcrumbs,
  .page-hero__aside-label,
  .callout__label,
  .consult-card__label,
  .related-card__kicker,
  .related-card__number,
  .prototype-notice,
  .table-note,
  .form-field__help,
  .form-field__error,
  .form-actions__note,
  .calculator-note,
  .calculator-disclaimer,
  .calculator-result__label,
  .author-card__label
) {
  font-size: var(--inner-text-xs);
}

/* Static prototype directory --------------------------------------------- */

.prototype-directory {
  background: var(--alabaster);
}

.prototype-directory .page-hero {
  min-height: clamp(410px, 42vw, 570px);
  border-bottom-color: var(--inner-line-dark);
  background: var(--ink);
  color: var(--white);
}

.prototype-directory .page-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

.prototype-directory .page-hero::after {
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 0 0 85px rgba(255, 255, 255, 0.018),
    inset 0 0 0 170px rgba(255, 255, 255, 0.014);
}

.prototype-directory .page-hero h1 {
  max-width: 940px;
  color: var(--white);
}

.prototype-directory .page-hero__lede {
  color: rgba(255, 255, 255, 0.72);
}

.prototype-directory__content {
  position: relative;
  padding: 0 0 var(--section);
  background:
    radial-gradient(circle at 86% 10%, rgba(140, 167, 206, 0.18), transparent 22%),
    var(--alabaster);
}

.prototype-directory__content::before {
  position: absolute;
  top: 5%;
  right: -220px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(47, 65, 103, 0.06);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 100px rgba(47, 65, 103, 0.014),
    inset 0 0 0 200px rgba(47, 65, 103, 0.012);
  content: "";
  pointer-events: none;
}

.prototype-directory__content > .shell {
  position: relative;
  z-index: 1;
}

.prototype-directory__summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(125px, 1fr) auto minmax(125px, 1fr) auto minmax(125px, 1fr);
  align-items: stretch;
  overflow: hidden;
  margin: -55px 0 clamp(58px, 7vw, 90px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.prototype-directory__summary strong,
.prototype-directory__summary span {
  display: flex;
  min-height: 108px;
  align-items: center;
}

.prototype-directory__summary strong {
  padding: 24px 8px 24px 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.prototype-directory__summary span {
  padding: 24px 28px 24px 12px;
  border-right: 1px solid var(--inner-line);
  color: var(--muted);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.5;
  text-transform: uppercase;
}

.prototype-directory__summary span:last-child {
  border-right: 0;
}

.prototype-directory__content > .shell > section {
  margin-top: clamp(54px, 7vw, 88px);
  scroll-margin-top: 110px;
}

.prototype-directory__content > .shell > section:first-of-type {
  margin-top: 0;
}

.prototype-directory__content section > h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 25px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.prototype-directory__content section > h2::before {
  width: 32px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--coral);
  content: "";
}

.prototype-directory__content section > h2 span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(216, 98, 81, 0.28);
  border-radius: 999px;
  background: rgba(216, 98, 81, 0.08);
  color: var(--coral-dark);
  font-family: var(--sans);
  font-size: var(--inner-text-xs);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.prototype-directory__content section > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--inner-line);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.prototype-directory__content section > ul > li {
  display: grid;
  min-width: 0;
  min-height: 120px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 249, 0.98);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.prototype-directory__content section > ul > li:hover {
  position: relative;
  z-index: 1;
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--coral);
}

.prototype-directory__content section li > a {
  display: grid;
  min-width: 0;
  align-self: stretch;
  align-content: center;
  gap: 7px;
  padding: 22px 0 22px 25px;
}

.prototype-directory__content section li > a:focus-visible {
  border-radius: 7px;
  outline-offset: -5px;
}

.prototype-directory__content section li > a strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-wrap: balance;
}

.prototype-directory__content section li > a span {
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: var(--inner-text-xs);
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.prototype-directory__content section li > a strong,
.prototype-directory__content section li > a span {
  transition: color 180ms ease;
}

.prototype-directory__content section li > a:hover strong {
  color: var(--coral-dark);
}

.prototype-directory__content section li > em {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-right: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(140, 167, 206, 0.38);
  border-radius: 999px;
  background: rgba(223, 232, 241, 0.48);
  color: var(--ink-3);
  font-size: var(--inner-text-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .prototype-directory__summary {
    grid-template-columns: auto minmax(100px, 1fr) auto minmax(100px, 1fr) auto minmax(100px, 1fr);
  }

  .prototype-directory__summary strong {
    padding-left: 22px;
  }

  .prototype-directory__summary span {
    padding-right: 20px;
  }

  .prototype-directory__content section > ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .prototype-directory .page-hero,
  .prototype-directory .page-hero--compact {
    min-height: 0;
  }

  .prototype-directory .page-hero__inner {
    padding-top: 64px;
    padding-bottom: 92px;
  }

  .prototype-directory__content {
    padding-bottom: clamp(4.5rem, 16vw, 6.5rem);
  }

  .prototype-directory__content::before {
    display: none;
  }

  .prototype-directory__summary {
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: -46px;
    margin-bottom: 60px;
  }

  .prototype-directory__summary strong,
  .prototype-directory__summary span {
    min-height: 82px;
    border-top: 1px solid var(--inner-line);
  }

  .prototype-directory__summary strong:first-child,
  .prototype-directory__summary strong:first-child + span {
    border-top: 0;
  }

  .prototype-directory__summary strong {
    min-width: 92px;
    justify-content: flex-end;
    padding: 18px 8px 18px 20px;
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .prototype-directory__summary span {
    padding: 18px 20px 18px 12px;
    border-right: 0;
  }

  .prototype-directory__content > .shell > section {
    margin-top: 58px;
  }

  .prototype-directory__content section > h2 {
    align-items: flex-start;
    gap: 11px;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .prototype-directory__content section > h2::before {
    margin-top: 0.52em;
  }

  .prototype-directory__content section > h2 span {
    min-width: 34px;
    min-height: 34px;
  }

  .prototype-directory__content section > ul > li {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .prototype-directory__content section li > a {
    padding: 22px 20px 12px;
  }

  .prototype-directory__content section li > a strong {
    font-size: 1.3rem;
  }

  .prototype-directory__content section li > em {
    justify-self: start;
    margin: 0 20px 20px;
  }
}

@media (max-width: 400px) {
  .prototype-directory .page-hero h1 {
    font-size: 2.75rem;
  }

  .prototype-directory__content section > h2 {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .prototype-directory__content section > h2::before {
    width: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prototype-directory__content section > ul > li,
  .prototype-directory__content section li > a strong,
  .prototype-directory__content section li > a span {
    transition: none;
  }
}

@media print {
  .prototype-directory,
  .prototype-directory__content {
    background: #fff !important;
  }

  .prototype-directory .page-hero {
    min-height: 0;
    color: #111 !important;
  }

  .prototype-directory__content {
    padding: 0;
  }

  .prototype-directory__content::before {
    display: none;
  }

  .prototype-directory__summary {
    grid-template-columns: auto 1fr auto 1fr auto 1fr;
    margin: 18pt 0 28pt;
    border: 1px solid #aaa;
    border-radius: 0;
    box-shadow: none;
  }

  .prototype-directory__summary strong,
  .prototype-directory__summary span {
    min-height: 0;
    padding-top: 10pt;
    padding-bottom: 10pt;
  }

  .prototype-directory__summary strong {
    padding-right: 4pt;
    padding-left: 10pt;
    color: #111;
    font-size: 22pt;
  }

  .prototype-directory__summary span {
    padding-right: 10pt;
    padding-left: 4pt;
    color: #333;
    font-size: 10.5pt;
  }

  .prototype-directory__content > .shell > section,
  .prototype-directory__content > .shell > section:first-of-type {
    margin-top: 24pt;
  }

  .prototype-directory__content section > h2 {
    break-after: avoid;
    margin-bottom: 10pt;
    color: #111;
    font-size: 20pt;
  }

  .prototype-directory__content section > h2::before {
    background: #555;
  }

  .prototype-directory__content section > h2 span {
    min-width: 0;
    min-height: 0;
    padding: 2pt 5pt;
    border-color: #aaa;
    background: #fff;
    color: #111;
    font-size: 10.5pt;
  }

  .prototype-directory__content section > ul {
    display: block;
    overflow: visible;
    padding: 0;
    border: 1px solid #aaa;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .prototype-directory__content section > ul > li {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    break-inside: avoid;
    border-bottom: 1px solid #bbb;
    background: #fff !important;
    box-shadow: none !important;
  }

  .prototype-directory__content section > ul > li:last-child {
    border-bottom: 0;
  }

  .prototype-directory__content section li > a {
    padding: 8pt 10pt;
  }

  .prototype-directory__content section li > a strong {
    color: #111;
    font-size: 11pt;
  }

  .prototype-directory__content section li > a span {
    color: #444;
    font-size: 10.5pt;
  }

  .prototype-directory__content section li > em {
    align-self: center;
    min-height: 0;
    margin: 0 10pt;
    padding: 2pt 5pt;
    border-color: #aaa;
    background: #fff;
    color: #111;
    font-size: 10.5pt;
  }
}

/* Directory microcopy also respects the project-wide 14px minimum. */
.prototype-directory :where(
  .prototype-directory__summary span,
  .prototype-directory__content section > h2 span,
  .prototype-directory__content section li > a span,
  .prototype-directory__content section li > em
) {
  font-size: var(--inner-text-xs);
}

/* Full-sitemap content archetypes ---------------------------------------- */

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--inner-text-xs);
  font-weight: 650;
  letter-spacing: 0.035em;
}

.entry-meta > * {
  position: relative;
}

.entry-meta > * + *::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--coral-light);
  content: "";
}

.inner-page--post .prose,
.inner-page--coach-book .prose,
.inner-page--legal-definition .prose,
.inner-page--faq-item .prose {
  font-size: var(--inner-text-md);
}

.inner-page--legal-definition .content-body > .article-section:first-child,
.inner-page--faq-item .content-body > .article-section:first-child {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 94% 0%, rgba(140, 167, 206, 0.22), transparent 34%),
    var(--white);
  box-shadow: var(--shadow-sm);
}

.inner-page--legal-definition .content-body > .article-section:first-child::before,
.inner-page--faq-item .content-body > .article-section:first-child::before {
  display: block;
  margin-bottom: 20px;
  color: var(--coral-dark);
  content: "Plain-language guidance";
  font-family: var(--sans);
  font-size: var(--inner-text-xs);
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.inner-page--faq-item .content-body > .article-section:first-child::before {
  content: "Answer";
}

.inner-page--checklist .prose input[type="checkbox"],
.inner-page--checklist .prose input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0 10px 0 0;
  padding: 0;
  accent-color: var(--coral);
  box-shadow: none;
  vertical-align: -3px;
}

.inner-page--checklist .prose li:has(input[type="checkbox"]),
.inner-page--checklist .prose li:has(input[type="radio"]) {
  margin: 8px 0;
  padding: 14px 16px;
  border: 1px solid var(--inner-line);
  border-radius: 12px;
  background: var(--white);
  list-style: none;
}

.local-checklist-progress {
  position: sticky;
  z-index: 3;
  top: 96px;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 32px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 49, 0.96);
  color: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.local-checklist-progress div {
  display: grid;
  gap: 2px;
}

.local-checklist-progress span,
.local-checklist-progress strong,
.local-checklist-progress button {
  font-size: var(--inner-text-xs);
}

.local-checklist-progress span {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.local-checklist-progress strong {
  color: var(--white);
}

.local-checklist-progress i {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.local-checklist-progress b {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.local-checklist-progress button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.archive-collection > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-collection li {
  min-width: 0;
}

.archive-collection a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.archive-collection a:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 98, 81, 0.35);
  box-shadow: var(--shadow);
}

.archive-collection a > span {
  margin-bottom: 13px;
  color: var(--coral-dark);
  font-size: var(--inner-text-xs);
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-collection h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.archive-collection p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.7;
}

.archive-collection strong {
  margin-top: auto;
  color: var(--ink);
  font-size: var(--inner-text-xs);
}

.media-attachment {
  display: grid;
  align-items: start;
  gap: clamp(28px, 5vw, 52px);
}

.media-attachment figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-attachment figure img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: linear-gradient(135deg, var(--alabaster), var(--mineral));
}

.media-attachment figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--inner-line);
  color: var(--muted);
  font-size: var(--inner-text-xs);
}

.media-attachment code,
.template-card code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: var(--inner-text-xs);
}

/* Full route directory controls ----------------------------------------- */

.prototype-directory__filter {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(42px, 6vw, 70px);
  padding: 18px 20px;
  border: 1px solid var(--inner-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-sm);
}

.prototype-directory__filter label {
  color: var(--ink);
  font-weight: 750;
}

.prototype-directory__filter input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(17, 24, 49, 0.18);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--inner-text-sm);
}

.prototype-directory__filter p {
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-xs);
  font-weight: 650;
  white-space: nowrap;
}

.prototype-directory__content [data-route-groups] > section {
  margin-top: clamp(54px, 7vw, 88px);
  scroll-margin-top: 110px;
}

.prototype-directory__content [data-route-groups] > section:first-child {
  margin-top: 0;
}

.prototype-directory__content [data-route-groups] > section[hidden],
.prototype-directory__content [data-route-groups] li[hidden] {
  display: none;
}

.prototype-directory__content [data-route-groups] section > h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 25px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.prototype-directory__content [data-route-groups] section > h2::before {
  width: 32px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--coral);
  content: "";
}

.prototype-directory__content [data-route-groups] section > h2 span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(216, 98, 81, 0.28);
  border-radius: 999px;
  background: rgba(216, 98, 81, 0.08);
  color: var(--coral-dark);
  font-family: var(--sans);
  font-size: var(--inner-text-xs);
}

.prototype-directory__content [data-route-groups] section > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--inner-line);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

/* WordPress template blueprint ------------------------------------------ */

.template-map-content {
  padding: 0 0 var(--section);
  background:
    radial-gradient(circle at 90% 4%, rgba(140, 167, 206, 0.16), transparent 25%),
    var(--alabaster);
}

.template-map-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: end;
  margin: 0 0 clamp(42px, 7vw, 76px);
}

.template-map-intro h2 {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.template-map-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--inner-text-md);
  line-height: 1.8;
}

.template-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.template-card {
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--inner-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.template-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
}

.template-card__top span,
.template-card__top em {
  color: var(--coral-dark);
  font-size: var(--inner-text-xs);
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.template-card__top em {
  color: var(--muted);
  text-align: right;
}

.template-card h2 {
  margin: 0 0 15px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.template-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: var(--inner-text-sm);
  line-height: 1.6;
}

.template-card > a {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--inner-line);
}

.template-card > a strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.2;
}

.template-card > a span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: var(--inner-text-xs);
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .template-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-directory__content [data-route-groups] section > ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .archive-collection > ul,
  .template-map-intro,
  .template-card-grid {
    grid-template-columns: 1fr;
  }

  .prototype-directory__filter {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .prototype-directory__filter p {
    white-space: normal;
  }

  .prototype-directory__content [data-route-groups] section > h2 {
    align-items: flex-start;
    gap: 11px;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .template-card {
    min-height: 0;
  }

  .local-checklist-progress {
    position: relative;
    top: auto;
    grid-template-columns: 1fr auto;
  }

  .local-checklist-progress i {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .archive-collection a {
    transition: none;
  }

  .local-checklist-progress b {
    transition: none;
  }
}
