/**
 * Ethos Markets landing page
 * Date: July 30, 2026
 *
 * Deliberately scoped to .ethos-markets-page. The embedded coverage map keeps
 * ownership of its internal presentation and interaction styles.
 */

.ethos-markets-page {
  --ethos-markets-black: var(--ink);
  --ethos-markets-paper: var(--paper-2);
  --ethos-markets-white: var(--paper);
  --ethos-markets-gold: var(--gold);
  --ethos-markets-gold-text: var(--text-secondary);
  --ethos-markets-dark-rule: rgba(255, 255, 255, 0.22);
  --ethos-markets-light-rule: rgba(8, 8, 8, 0.2);
  --ethos-markets-page-gutter: clamp(24px, 5vw, 76px);
  --ethos-markets-content-width: 1440px;
  background: var(--ethos-markets-paper);
  color: var(--ethos-markets-black);
  font-family: var(--font-sans);
  overflow: clip;
}

.ethos-markets-page > :not(.ethos-markets-map),
.ethos-markets-page > :not(.ethos-markets-map) *,
.ethos-markets-page > :not(.ethos-markets-map) *::before,
.ethos-markets-page > :not(.ethos-markets-map) *::after,
.ethos-markets-map,
.ethos-markets-map__fallback,
.ethos-markets-map__fallback *,
.ethos-markets-map__fallback *::before,
.ethos-markets-map__fallback *::after {
  box-sizing: border-box;
}

.ethos-markets-explorer [hidden] {
  display: none !important;
}

.ethos-markets-page > section,
.ethos-markets-page > nav {
  scroll-margin-top: 96px;
}

.ethos-markets-hero h1,
.ethos-markets-explorer h2,
.ethos-markets-explorer h3,
.ethos-markets-directory h2,
.ethos-markets-method h2,
.ethos-markets-closing h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

.ethos-markets-explorer h2,
.ethos-markets-directory h2,
.ethos-markets-method h2,
.ethos-markets-closing h2 {
  font-size: clamp(2.65rem, 4.4vw, 4.75rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.ethos-markets-page :is(
    .ethos-markets-hero,
    .ethos-markets-paths,
    .ethos-markets-explorer,
    .ethos-markets-directory,
    .ethos-markets-method,
    .ethos-markets-closing
  )
  p {
  margin-top: 0;
}

.ethos-markets-page :is(
    .ethos-markets-hero,
    .ethos-markets-paths,
    .ethos-markets-explorer,
    .ethos-markets-directory,
    .ethos-markets-method,
    .ethos-markets-closing
  )
  a {
  color: inherit;
}

.ethos-markets-page :is(
    .ethos-markets-hero,
    .ethos-markets-explorer,
    .ethos-markets-directory,
    .ethos-markets-map__fallback,
    .ethos-markets-closing
  )
  .button {
  display: inline-flex;
  width: auto;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 1px solid var(--ethos-markets-gold);
  border-radius: 0;
  background: var(--ethos-markets-gold);
  color: var(--ethos-markets-black);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.ethos-markets-page :is(
    .ethos-markets-hero,
    .ethos-markets-explorer,
    .ethos-markets-directory,
    .ethos-markets-map__fallback,
    .ethos-markets-closing
  )
  .button--outline {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--ethos-markets-white);
}

.ethos-markets-page :is(
    .ethos-markets-hero__actions,
    .ethos-markets-explorer__actions,
    .ethos-markets-map__fallback,
    .ethos-markets-closing
  )
  .button:focus-visible,
.ethos-markets-page :is(
    .ethos-markets-hero__actions,
    .ethos-markets-explorer__actions,
    .ethos-markets-map__fallback,
    .ethos-markets-closing
  )
  .ethos-markets-text-link:focus-visible,
.ethos-markets-page :is(
    .ethos-markets-paths a,
    .ethos-markets-explorer__states button,
    .ethos-markets-explorer__list button,
    .ethos-markets-advisor-link a,
    .ethos-markets-directory__select,
    .ethos-markets-directory__actions a,
    .ethos-markets-method__links a
  ):focus-visible {
  outline: 2px solid var(--ethos-markets-gold);
  outline-offset: 4px;
}

.ethos-markets-eyebrow {
  margin-bottom: 20px;
  color: var(--ethos-markets-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ethos-markets-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  color: var(--ethos-markets-gold) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(196, 162, 87, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.ethos-markets-text-link svg,
.ethos-markets-paths svg,
.ethos-markets-explorer__list svg,
.ethos-markets-directory__select svg {
  width: 28px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

/* Hero */
.ethos-markets-hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--ethos-markets-black);
  color: var(--ethos-markets-white);
}

.ethos-markets-hero__media,
.ethos-markets-hero__shade {
  position: absolute;
  inset: 0;
}

.ethos-markets-hero__media {
  z-index: -2;
  display: block;
  margin: 0;
}

.ethos-markets-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ethos-markets-hero__shade {
  z-index: -1;
  background: rgba(8, 8, 8, 0.18);
  box-shadow:
    inset 62vw 0 28vw -16vw rgba(8, 8, 8, 0.92),
    inset 0 -210px 155px -105px rgba(8, 8, 8, 0.86),
    inset 0 150px 120px -105px rgba(8, 8, 8, 0.42);
  pointer-events: none;
}

.ethos-markets-hero__content {
  width: min(100%, 980px);
  padding:
    calc(var(--header-height, 112px) + clamp(68px, 10vh, 128px))
    var(--ethos-markets-page-gutter)
    clamp(74px, 10vh, 120px);
}

.ethos-markets-hero__content > .ethos-markets-eyebrow,
.ethos-markets-hero__caption {
  display: none;
}

.ethos-markets-hero h1 {
  max-width: 900px;
  font-size: clamp(3.5rem, 5.2vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.ethos-markets-hero__content > p:not(.ethos-markets-eyebrow) {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

.ethos-markets-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 36px;
  gap: 14px;
}

.ethos-markets-hero__actions .button {
  min-width: 202px;
}

.ethos-markets-hero__actions .ethos-markets-text-link {
  flex-basis: 100%;
  margin-top: 4px;
}

/* Intent rail */
.ethos-markets-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ethos-markets-dark-rule);
  border-bottom: 1px solid var(--ethos-markets-dark-rule);
  background: var(--ethos-markets-black);
  color: var(--ethos-markets-white);
}

.ethos-markets-paths > a {
  position: relative;
  display: grid;
  min-height: 190px;
  align-content: center;
  padding: 34px var(--ethos-markets-page-gutter);
  gap: 8px;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.ethos-markets-paths > a + a {
  border-left: 1px solid var(--ethos-markets-dark-rule);
}

.ethos-markets-paths > a > span {
  color: var(--ethos-markets-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.ethos-markets-paths strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.25vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.ethos-markets-paths small {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.ethos-markets-paths svg {
  position: absolute;
  right: var(--ethos-markets-page-gutter);
  bottom: 37px;
  color: var(--ethos-markets-gold);
}

/* County explorer */
.ethos-markets-explorer {
  padding: clamp(94px, 10vw, 150px) var(--ethos-markets-page-gutter);
  background: var(--ethos-markets-black);
  color: var(--ethos-markets-white);
}

.ethos-markets-explorer__header,
.ethos-markets-explorer__states,
.ethos-markets-explorer__interface {
  width: min(100%, var(--ethos-markets-content-width));
  margin-inline: auto;
}

.ethos-markets-explorer__header {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: clamp(42px, 8vw, 140px);
}

.ethos-markets-explorer__header > p {
  max-width: 630px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.ethos-markets-explorer__states {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 62px;
}

.ethos-markets-explorer__states button {
  min-height: 56px;
  padding: 12px 24px;
  border: 1px solid var(--ethos-markets-dark-rule);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.ethos-markets-explorer__states button + button {
  border-left: 0;
}

.ethos-markets-explorer__states button[aria-selected="true"] {
  border-color: var(--ethos-markets-gold);
  background: var(--ethos-markets-gold);
  color: var(--ethos-markets-black);
}

.ethos-markets-explorer__interface {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  margin-top: 36px;
  border-top: 1px solid var(--ethos-markets-dark-rule);
  border-bottom: 1px solid var(--ethos-markets-dark-rule);
}

.ethos-markets-explorer__list button {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border: 0;
  border-bottom: 1px solid var(--ethos-markets-dark-rule);
  border-radius: 0;
  background: transparent;
  color: var(--ethos-markets-white);
  font-family: var(--font-sans);
  text-align: left;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.ethos-markets-explorer__list button:last-child {
  border-bottom: 0;
}

.ethos-markets-explorer__list button > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.ethos-markets-explorer__list strong {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.ethos-markets-explorer__list small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ethos-markets-explorer__list button[aria-pressed="true"] {
  background: rgba(196, 162, 87, 0.09);
  box-shadow: inset 3px 0 0 var(--ethos-markets-gold);
  color: var(--ethos-markets-gold);
}

.ethos-markets-explorer__detail {
  min-width: 0;
  padding: clamp(36px, 5vw, 72px);
  border-left: 1px solid var(--ethos-markets-dark-rule);
}

.ethos-markets-explorer__detail-head {
  max-width: 760px;
}

.ethos-markets-explorer__detail h3 {
  font-size: clamp(2.7rem, 4.1vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.ethos-markets-explorer__detail-head > p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.68;
}

.ethos-markets-snapshot {
  margin-top: 46px;
  padding: 24px 0 26px;
  border-top: 1px solid var(--ethos-markets-dark-rule);
  border-bottom: 1px solid var(--ethos-markets-dark-rule);
}

.ethos-markets-snapshot > p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ethos-markets-snapshot > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.ethos-markets-snapshot > div > p {
  display: grid;
  margin-bottom: 0;
  gap: 8px;
}

.ethos-markets-snapshot > div > p + p {
  padding-left: 28px;
  border-left: 1px solid var(--ethos-markets-dark-rule);
}

.ethos-markets-snapshot strong {
  color: var(--ethos-markets-gold);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ethos-markets-snapshot span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ethos-markets-snapshot > a {
  display: inline-block;
  min-height: 44px;
  margin-top: 20px;
  padding-top: 12px;
  color: var(--ethos-markets-gold);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ethos-markets-explorer__coverage,
.ethos-markets-explorer__advisors {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  padding: 26px 0;
  border-bottom: 1px solid var(--ethos-markets-dark-rule);
  gap: 28px;
}

.ethos-markets-explorer__coverage h4,
.ethos-markets-explorer__advisors h4 {
  margin: 0;
  color: var(--ethos-markets-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ethos-markets-explorer__coverage p,
.ethos-markets-explorer__advisors p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

.ethos-markets-advisor-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ethos-markets-dark-rule);
  gap: 18px;
}

.ethos-markets-advisor-link:last-child {
  border-bottom: 0;
}

.ethos-markets-advisor-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 5px;
}

.ethos-markets-advisor-link a:last-child {
  color: var(--ethos-markets-gold);
}

.ethos-markets-explorer__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  gap: 12px;
}

/* Existing map plugin: only the outer page band is styled here. */
.ethos-markets-map {
  position: relative;
  border-top: 1px solid var(--ethos-markets-gold);
  border-bottom: 1px solid var(--ethos-markets-gold);
  background: var(--ethos-markets-black);
  isolation: isolate;
}

.ethos-markets-map__fallback {
  display: grid;
  min-height: 620px;
  place-items: center;
  align-content: center;
  padding: clamp(90px, 11vw, 160px) var(--ethos-markets-page-gutter);
  color: var(--ethos-markets-white);
  text-align: center;
}

.ethos-markets-map__fallback h2 {
  max-width: 900px;
  margin: 0 0 34px;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 4.4vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* Market directories */
.ethos-markets-directory {
  padding: clamp(94px, 10vw, 150px) var(--ethos-markets-page-gutter);
}

.ethos-markets-directory__intro,
.ethos-markets-directory__rows {
  width: min(100%, var(--ethos-markets-content-width));
  margin-inline: auto;
}

.ethos-markets-directory__intro {
  display: grid;
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
}

.ethos-markets-directory__intro > div > p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.ethos-markets-directory figure {
  margin: 0;
}

.ethos-markets-directory figure img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.ethos-markets-directory figcaption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ethos-markets-directory__rows {
  margin-top: clamp(58px, 7vw, 98px);
  border-top: 1px solid currentColor;
}

.ethos-markets-directory__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  border-bottom: 1px solid currentColor;
}

.ethos-markets-directory__select {
  display: grid;
  width: 100%;
  min-height: 118px;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  align-items: center;
  padding: 22px 28px 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  text-align: left;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.ethos-markets-directory__number {
  color: var(--ethos-markets-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.ethos-markets-directory__select > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.ethos-markets-directory__select strong {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.ethos-markets-directory__select small {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.68;
}

.ethos-markets-directory__select svg {
  justify-self: end;
  color: var(--ethos-markets-gold);
}

.ethos-markets-directory__actions {
  display: grid;
  align-content: center;
  padding: 18px 0 18px 30px;
  border-left: 1px solid currentColor;
  gap: 4px;
}

.ethos-markets-directory__actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.ethos-markets-directory--california {
  background: var(--ethos-markets-paper);
  color: var(--ethos-markets-black);
}

.ethos-markets-directory--california .ethos-markets-eyebrow,
.ethos-markets-directory--california .ethos-markets-directory__number,
.ethos-markets-method .ethos-markets-eyebrow {
  color: var(--ethos-markets-gold-text);
}

.ethos-markets-directory--california .ethos-markets-directory__intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
}

.ethos-markets-directory--california figure {
  justify-self: end;
  width: min(100%, 520px);
}

.ethos-markets-directory--california figure img {
  aspect-ratio: 4 / 5;
}

.ethos-markets-directory--california figcaption,
.ethos-markets-directory--california .ethos-markets-directory__intro > div > p:last-child {
  color: rgba(8, 8, 8, 0.68);
}

.ethos-markets-directory--california .ethos-markets-directory__rows,
.ethos-markets-directory--california .ethos-markets-directory__row,
.ethos-markets-directory--california .ethos-markets-directory__actions {
  border-color: var(--ethos-markets-light-rule);
}

.ethos-markets-directory--alabama {
  background: var(--ethos-markets-black);
  color: var(--ethos-markets-white);
}

.ethos-markets-directory--alabama .ethos-markets-directory__intro {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.ethos-markets-directory--alabama figure img {
  aspect-ratio: 1718 / 916;
}

.ethos-markets-directory--alabama figcaption,
.ethos-markets-directory--alabama .ethos-markets-directory__intro > div > p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.ethos-markets-directory--alabama .ethos-markets-directory__rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: var(--ethos-markets-dark-rule);
}

.ethos-markets-directory--alabama .ethos-markets-directory__row {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  border-color: var(--ethos-markets-dark-rule);
}

.ethos-markets-directory--alabama .ethos-markets-directory__row + .ethos-markets-directory__row {
  border-left: 1px solid var(--ethos-markets-dark-rule);
}

.ethos-markets-directory--alabama .ethos-markets-directory__select {
  min-height: 190px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  padding: 30px;
}

.ethos-markets-directory--alabama .ethos-markets-directory__select svg {
  grid-column: 2;
  margin-top: 24px;
  justify-self: start;
}

.ethos-markets-directory--alabama .ethos-markets-directory__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 30px;
  border-top: 1px solid var(--ethos-markets-dark-rule);
  border-left: 0;
}

.ethos-markets-directory--alabama .ethos-markets-directory__actions a {
  align-items: flex-start;
}

/* Research disclosure */
.ethos-markets-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  padding: clamp(82px, 9vw, 132px) var(--ethos-markets-page-gutter);
  border-top: 1px solid var(--ethos-markets-light-rule);
  border-bottom: 1px solid var(--ethos-markets-light-rule);
  background: var(--ethos-markets-paper);
  gap: clamp(48px, 9vw, 150px);
}

.ethos-markets-method > div {
  width: 100%;
  max-width: 690px;
}

.ethos-markets-method > div:first-child {
  justify-self: end;
}

.ethos-markets-method > div:last-child {
  justify-self: start;
  padding-top: 9px;
}

.ethos-markets-method > div:last-child > p {
  margin-bottom: 20px;
  color: rgba(8, 8, 8, 0.72);
  font-size: 16px;
  line-height: 1.72;
}

.ethos-markets-method__links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 8px 26px;
}

.ethos-markets-method__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ethos-markets-black);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--ethos-markets-gold);
  text-underline-offset: 6px;
}

/* Closing actions */
.ethos-markets-closing {
  display: grid;
  min-height: 580px;
  place-items: center;
  align-content: center;
  padding: clamp(94px, 11vw, 168px) var(--ethos-markets-page-gutter);
  background: var(--ethos-markets-black);
  color: var(--ethos-markets-white);
  text-align: center;
}

.ethos-markets-closing h2 {
  max-width: 1000px;
}

.ethos-markets-closing > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 38px;
  gap: 14px;
}

.ethos-markets-closing > p:last-child {
  max-width: 720px;
  margin: 42px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

@media (hover: hover) {
  .ethos-markets-page :is(
      .ethos-markets-hero,
      .ethos-markets-explorer,
      .ethos-markets-map__fallback,
      .ethos-markets-closing
    )
    .button:hover {
    border-color: var(--ethos-markets-white);
    background: var(--ethos-markets-white);
    color: var(--ethos-markets-black);
  }

  .ethos-markets-page :is(
      .ethos-markets-hero,
      .ethos-markets-explorer,
      .ethos-markets-map__fallback,
      .ethos-markets-closing
    )
    .button--outline:hover {
    border-color: var(--ethos-markets-gold);
    background: var(--ethos-markets-gold);
    color: var(--ethos-markets-black);
  }

  .ethos-markets-text-link:hover svg,
  .ethos-markets-paths > a:hover svg,
  .ethos-markets-explorer__list button:hover svg,
  .ethos-markets-directory__select:hover svg {
    transform: translateX(5px);
  }

  .ethos-markets-paths > a:hover {
    background: rgba(255, 255, 255, 0.045);
  }

  .ethos-markets-explorer__states button:hover:not([aria-selected="true"]),
  .ethos-markets-explorer__list button:hover:not([aria-pressed="true"]) {
    background: rgba(255, 255, 255, 0.055);
    color: var(--ethos-markets-white);
  }

  .ethos-markets-advisor-link a:hover,
  .ethos-markets-directory__actions a:hover,
  .ethos-markets-method__links a:hover {
    color: var(--ethos-markets-gold);
  }

  .ethos-markets-directory--california .ethos-markets-directory__select:hover {
    background: rgba(196, 162, 87, 0.08);
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__select:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--ethos-markets-gold);
  }
}

@media (max-width: 1120px) {
  .ethos-markets-explorer__header {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.82fr);
    gap: 48px;
  }

  .ethos-markets-directory--california .ethos-markets-directory__intro,
  .ethos-markets-directory--alabama .ethos-markets-directory__intro {
    gap: 56px;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .ethos-markets-paths {
    grid-template-columns: 1fr;
  }

  .ethos-markets-paths > a {
    min-height: 150px;
  }

  .ethos-markets-paths > a + a {
    border-top: 1px solid var(--ethos-markets-dark-rule);
    border-left: 0;
  }

  .ethos-markets-explorer__header,
  .ethos-markets-explorer__interface,
  .ethos-markets-directory--california .ethos-markets-directory__intro,
  .ethos-markets-directory--alabama .ethos-markets-directory__intro,
  .ethos-markets-method {
    grid-template-columns: 1fr;
  }

  .ethos-markets-explorer__header {
    align-items: start;
    gap: 30px;
  }

  .ethos-markets-explorer__interface {
    border-bottom: 0;
  }

  .ethos-markets-explorer__list button:last-child {
    border-bottom: 1px solid var(--ethos-markets-dark-rule);
  }

  .ethos-markets-explorer__detail {
    padding-inline: 0;
    border-left: 0;
  }

  .ethos-markets-directory--california figure {
    justify-self: start;
    width: min(78vw, 580px);
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__intro figure {
    order: 2;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__intro > div {
    order: 1;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__rows {
    grid-template-columns: 1fr;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__row + .ethos-markets-directory__row {
    border-left: 0;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__select {
    min-height: 146px;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ethos-markets-method > div:first-child,
  .ethos-markets-method > div:last-child {
    max-width: 780px;
    justify-self: start;
  }

  .ethos-markets-method > div:last-child {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .ethos-markets-page {
    --ethos-markets-page-gutter: 20px;
  }

  .ethos-markets-page > section,
  .ethos-markets-page > nav {
    scroll-margin-top: 78px;
  }

  .ethos-markets-explorer h2,
  .ethos-markets-directory h2,
  .ethos-markets-method h2,
  .ethos-markets-closing h2 {
    font-size: clamp(2.6rem, 12.2vw, 3.85rem);
  }

  .ethos-markets-hero {
    min-height: max(820px, 100svh);
  }

  .ethos-markets-hero__media img {
    object-position: center center;
  }

  .ethos-markets-hero__shade {
    background: rgba(8, 8, 8, 0.28);
    box-shadow:
      inset 0 -620px 280px -260px rgba(8, 8, 8, 0.94),
      inset 0 210px 150px -120px rgba(8, 8, 8, 0.5);
  }

  .ethos-markets-hero__content {
    width: 100%;
    padding:
      calc(var(--header-height, 88px) + 74px)
      var(--ethos-markets-page-gutter)
      56px;
  }

  .ethos-markets-hero h1 {
    max-width: 680px;
    font-size: clamp(3.35rem, 14.8vw, 4.65rem);
    line-height: 0.99;
  }

  .ethos-markets-hero__content > p:not(.ethos-markets-eyebrow) {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.58;
  }

  .ethos-markets-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 12px;
  }

  .ethos-markets-hero__actions .button {
    width: 100%;
    min-width: 0;
  }

  .ethos-markets-hero__actions .ethos-markets-text-link {
    margin-top: 4px;
  }

  .ethos-markets-paths > a {
    min-height: 142px;
    padding: 28px var(--ethos-markets-page-gutter);
  }

  .ethos-markets-paths strong {
    font-size: 1.9rem;
  }

  .ethos-markets-paths svg {
    right: var(--ethos-markets-page-gutter);
    bottom: 29px;
  }

  .ethos-markets-explorer,
  .ethos-markets-directory {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .ethos-markets-explorer__header > p,
  .ethos-markets-directory__intro > div > p:last-child {
    font-size: 16px;
    line-height: 1.65;
  }

  .ethos-markets-explorer__states {
    margin-top: 42px;
  }

  .ethos-markets-explorer__states button {
    min-height: 52px;
    padding-inline: 12px;
  }

  .ethos-markets-explorer__interface {
    margin-top: 24px;
  }

  .ethos-markets-explorer__list button {
    min-height: 78px;
    padding: 16px 18px;
  }

  .ethos-markets-explorer__list small {
    max-width: min(68vw, 420px);
  }

  .ethos-markets-explorer__detail {
    padding-top: 42px;
    padding-bottom: 0;
  }

  .ethos-markets-explorer__detail h3 {
    font-size: clamp(2.65rem, 12.7vw, 3.65rem);
  }

  .ethos-markets-explorer__detail-head > p:last-child {
    font-size: 16px;
  }

  .ethos-markets-snapshot {
    margin-top: 34px;
  }

  .ethos-markets-snapshot > div {
    gap: 18px;
  }

  .ethos-markets-snapshot > div > p + p {
    padding-left: 18px;
  }

  .ethos-markets-snapshot strong {
    font-size: clamp(2.15rem, 10.5vw, 3.2rem);
  }

  .ethos-markets-explorer__coverage,
  .ethos-markets-explorer__advisors {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ethos-markets-advisor-link {
    align-items: flex-start;
  }

  .ethos-markets-explorer__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ethos-markets-explorer__actions .button {
    width: 100%;
  }

  .ethos-markets-map__fallback {
    min-height: 500px;
  }

  .ethos-markets-directory__intro {
    gap: 38px;
  }

  .ethos-markets-directory--california figure {
    width: 100%;
  }

  .ethos-markets-directory__rows {
    margin-top: 54px;
  }

  .ethos-markets-directory__row {
    grid-template-columns: 1fr;
  }

  .ethos-markets-directory__select {
    min-height: 108px;
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    padding: 20px 0;
  }

  .ethos-markets-directory__select strong {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }

  .ethos-markets-directory__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 0 12px;
    border-top: 1px solid currentColor;
    border-left: 0;
    column-gap: 18px;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__intro figure {
    order: 2;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__select {
    min-height: 136px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 24px 0;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__select svg {
    margin-top: 18px;
  }

  .ethos-markets-directory--alabama .ethos-markets-directory__actions {
    padding: 10px 0 12px;
  }

  .ethos-markets-method {
    padding: 78px var(--ethos-markets-page-gutter);
    gap: 38px;
  }

  .ethos-markets-method__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ethos-markets-closing {
    min-height: 540px;
    padding: 90px var(--ethos-markets-page-gutter);
  }

  .ethos-markets-closing > div {
    display: grid;
    width: 100%;
    max-width: 540px;
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .ethos-markets-closing .button {
    width: 100%;
  }

  .ethos-markets-closing .ethos-markets-text-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ethos-markets-hero {
    min-height: max(780px, 100svh);
  }

  .ethos-markets-hero__content {
    padding-top: calc(var(--header-height, 88px) + 52px);
    padding-bottom: 42px;
  }

  .ethos-markets-hero h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .ethos-markets-paths small {
    max-width: calc(100% - 42px);
  }

  .ethos-markets-snapshot > div {
    grid-template-columns: 1fr;
  }

  .ethos-markets-snapshot > div > p + p {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--ethos-markets-dark-rule);
    border-left: 0;
  }

  .ethos-markets-advisor-link {
    display: grid;
    justify-content: start;
    padding-block: 4px;
    gap: 0;
  }

  .ethos-markets-directory__actions,
  .ethos-markets-directory--alabama .ethos-markets-directory__actions {
    grid-template-columns: 1fr;
  }

  .ethos-markets-method__links a {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ethos-markets-page {
    scroll-behavior: auto;
  }

  .ethos-markets-page :is(
      .ethos-markets-hero,
      .ethos-markets-paths,
      .ethos-markets-explorer,
      .ethos-markets-directory,
      .ethos-markets-method,
      .ethos-markets-closing
    )
    *,
  .ethos-markets-page :is(
      .ethos-markets-hero,
      .ethos-markets-paths,
      .ethos-markets-explorer,
      .ethos-markets-directory,
      .ethos-markets-method,
      .ethos-markets-closing
    )
    *::before,
  .ethos-markets-page :is(
      .ethos-markets-hero,
      .ethos-markets-paths,
      .ethos-markets-explorer,
      .ethos-markets-directory,
      .ethos-markets-method,
      .ethos-markets-closing
    )
    *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@supports not (overflow: clip) {
  .ethos-markets-page {
    overflow: hidden;
  }
}
