/* Homepage-only decision workspace. Editorial fonts and palette come from style.css. */
.home-workspace {
  --home-max: 1180px;
  --home-pad: clamp(1rem, 4vw, 2.5rem);
  background: var(--cream);
  color: var(--black);
}

.home-workspace a { text-underline-offset: 0.18em; }
.home-workspace a:focus-visible,
.home-workspace button:focus-visible {
  outline: 3px solid var(--coral-text);
  outline-offset: 3px;
}

.home-skip-link {
  position: absolute;
  z-index: 10002;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--cream);
  font-weight: 700;
}
.home-skip-link:focus { transform: translateY(0); }

.home-workspace .masthead {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.home-workspace .masthead__row {
  width: calc(100% - 2 * var(--home-pad));
  max-width: var(--home-max);
  min-height: 4.25rem;
  margin-inline: auto;
  padding: 0;
  align-items: center;
}
.home-workspace .masthead__brand {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  white-space: nowrap;
}
.home-workspace .masthead__meta {
  gap: clamp(0.65rem, 1.8vw, 1.5rem);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}
.home-workspace .masthead__meta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--black-soft);
  border-bottom: 1px solid transparent;
}
.home-workspace .masthead__meta a:hover {
  color: var(--coral-text);
  border-bottom-color: var(--coral-text);
}

.home-hero {
  padding: clamp(2rem, 5vw, 4.5rem) var(--home-pad) clamp(1.75rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse at 83% 16%, color-mix(in srgb, var(--coral) 10%, transparent), transparent 34rem),
    var(--cream);
}
.home-hero__inner {
  width: min(100%, var(--home-max));
  margin-inline: auto;
}
.home-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--coral-text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 17ch;
  margin: 0;
  color: var(--black);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
}
.home-hero h1 em {
  color: var(--coral-text);
  font-weight: 400;
}
.home-hero__lede {
  max-width: 60ch;
  margin: 1rem 0 0;
  color: var(--black-soft);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(0.98rem, 1vw + 0.6rem, 1.12rem);
  line-height: 1.55;
}
.home-hero__action { margin: 1.1rem 0 0; }
.home-primary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem;
  background: var(--black);
  color: var(--cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.home-primary:hover { background: var(--coral-deep); }
.home-hero__note {
  margin: 0.55rem 0 0;
  color: var(--ink-50);
  font-size: 0.85rem;
  line-height: 1.45;
}

.home-paths,
.home-tools,
.home-resources {
  width: calc(100% - 2 * var(--home-pad));
  max-width: var(--home-max);
  margin-inline: auto;
}
.home-paths { padding: 0 0 clamp(2.5rem, 5vw, 4.25rem); }
.home-section-heading { margin-bottom: 0.8rem; }
.home-section-heading .home-eyebrow { margin-bottom: 0.3rem; }
.home-section-heading h2,
.home-tools h2,
.home-resources h2 {
  margin: 0;
  color: var(--black);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.home-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--black);
}
.home-path {
  min-width: 0;
  min-height: 10.8rem;
  display: flex;
  flex-direction: column;
  padding: clamp(0.85rem, 1.8vw, 1.35rem);
  color: var(--black);
  text-decoration: none;
  background: var(--white);
  border-right: 1px solid var(--black);
  transition: background-color 140ms ease, color 140ms ease;
}
.home-path:last-child { border-right: 0; }
.home-path:hover { background: var(--sage); }
.home-path--compare { background: var(--warm-cream); }
.home-path--compare:hover { background: var(--coral-faint); }
.home-path--evidence { background: var(--sage); }
.home-path--evidence:hover { background: #dce9dc; }
.home-path__number {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--coral-text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-path__number span { color: var(--ink-50); }
.home-path h3 {
  margin: 0.5rem 0 0.35rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.home-path p {
  margin: 0;
  color: var(--black-soft);
  font-size: 0.86rem;
  line-height: 1.42;
}
.home-path__link {
  margin-top: auto;
  padding-top: 0.65rem;
  color: var(--coral-text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.15rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--black);
  color: var(--cream);
}
.home-tools .home-eyebrow { margin-bottom: 0.35rem; color: #ffc4b3; }
.home-tools h2 { color: var(--cream); font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.home-tools p:not(.home-eyebrow) {
  max-width: 66ch;
  margin: 0.35rem 0 0;
  color: #f1e9de;
  font-size: 0.86rem;
  line-height: 1.45;
}
.home-secondary {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #f1e9de;
  color: var(--cream);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.home-secondary:hover { background: var(--cream); color: var(--black); }

.home-workspace .directory {
  width: calc(100% - 2 * var(--home-pad));
  max-width: none;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.home-workspace .directory__head { align-items: end; }
.home-workspace .directory__intro { max-width: 76ch; font-size: 1rem; }
.home-workspace .directory__grid {
  display: block;
  border: 0;
}
.home-workspace .tier-row { grid-template-columns: minmax(5rem, 7rem) minmax(0, 1fr); }
.home-workspace .tier-row__rank { top: 1rem; }
.home-workspace .tier-row__label {
  max-width: 12ch;
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
}
.home-workspace .dir-filter {
  margin: 1rem 0 1.25rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--rule);
}
.home-workspace .dir-filter__row { gap: 0.35rem; }
.home-workspace .dir-filter__btn {
  min-height: 44px;
  padding: 0.5rem 0.7rem;
}
.home-workspace .dir-cell {
  min-height: 44px;
  text-decoration: none;
}
.home-workspace .dir-cell__evidence-note {
  margin: -0.25rem 0 0.55rem;
  color: var(--coral-text);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}
.home-workspace .dir-cell:hover .dir-cell__evidence-note { color: var(--cream); }

.home-resources {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.85fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--warm-cream);
  border-top: 2px solid var(--coral);
}
.home-resources p:not(.home-eyebrow) {
  margin: 0.45rem 0 0;
  color: var(--black-soft);
  line-height: 1.5;
}
.home-resources__links { display: grid; }
.home-resources__links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--black) 25%, transparent);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}
.home-resources__links a:hover { color: var(--coral-text); }

.home-workspace .colophon { padding-top: 2rem; }
.home-workspace .colophon__inner {
  width: calc(100% - 2 * var(--home-pad));
  max-width: var(--home-max);
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 0;
}
.home-workspace .colophon__brand { display: inline-block; margin: 0 0 0.5rem; }
.home-workspace .colophon__list a { min-height: 36px; display: inline-flex; align-items: center; }

@media (max-width: 700px) {
  .home-workspace .masthead__row { min-height: 3.75rem; }
  .home-hero { padding-top: 1.5rem; padding-bottom: 1.15rem; }
  .home-hero h1 { max-width: 15ch; font-size: clamp(2.15rem, 9.1vw, 3rem); }
  .home-hero h1 br { display: none; }
  .home-hero__lede { margin-top: 0.7rem; font-size: 0.94rem; line-height: 1.45; }
  .home-hero__action { margin-top: 0.8rem; }
  .home-primary { width: 100%; min-height: 46px; }
  .home-hero__note { margin-top: 0.35rem; font-size: 0.78rem; }
  .home-paths { padding-bottom: 1.5rem; }
  .home-section-heading { margin-bottom: 0.55rem; }
  .home-section-heading h2 { font-size: 1.45rem; }
  .home-paths__grid { grid-template-columns: 1fr; }
  .home-path {
    min-height: 0;
    padding: 0.7rem 0.85rem;
    border-right: 0;
    border-bottom: 1px solid var(--black);
  }
  .home-path:last-child { border-bottom: 0; }
  .home-path__number { font-size: 0.6rem; }
  .home-path h3 { margin: 0.25rem 0 0.2rem; font-size: 1.2rem; }
  .home-path p { font-size: 0.78rem; line-height: 1.32; }
  .home-path__link { padding-top: 0.35rem; font-size: 0.61rem; }
  .home-tools { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0.9rem; margin-bottom: 2rem; }
  .home-secondary { width: 100%; }
  .home-workspace .directory { padding-bottom: 2rem; }
  .home-workspace .directory__count { font-size: 0.58rem; }
  .home-workspace .directory__intro { font-size: 0.88rem; }
  .home-workspace .tier-row,
  .home-workspace .tier-row--watch { grid-template-columns: minmax(3.5rem, 4.5rem) minmax(0, 1fr); gap: 0.5rem; }
  .home-workspace .tier-row__rank { position: static; font-size: 2.8rem; }
  .home-workspace .tier-row--watch .tier-row__rank { font-size: 1rem; }
  .home-workspace .tier-row__label { font-size: 0.5rem; }
  .home-workspace .tier-row__entries,
  .home-workspace .tier-row--watch .tier-row__entries { grid-template-columns: 1fr; }
  .home-workspace .home-resources { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; margin-bottom: 2rem; }
  .home-workspace .colophon__inner { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .home-workspace .colophon__inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .home-workspace .masthead__meta {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 0;
    transform: none;
    box-shadow: none;
  }
  .home-workspace .masthead__meta[hidden] { display: none; }
  .home-workspace .masthead__meta a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.78rem;
  }
  .home-workspace .nav-toggle { margin-left: auto; }
}

@media (max-width: 360px) {
  .home-workspace .masthead__row { width: calc(100% - 2rem); }
  .home-workspace .masthead__brand { font-size: 1rem; }
  .home-workspace .directory__head { align-items: flex-start; flex-direction: column; }
  .home-workspace .tier-row,
  .home-workspace .tier-row--watch { grid-template-columns: minmax(2.8rem, 3.4rem) minmax(0, 1fr); }
}

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

/* Local-only directory search; no network lookup or query persistence. */
.home-workspace .dir-search { margin: 1.5rem 0 1rem; }
.home-workspace .dir-search label { display: block; font-weight: 700; margin-bottom: .5rem; }
.home-workspace .dir-search input { width: min(100%, 38rem); box-sizing: border-box; min-height: 48px; padding: .75rem; border: 1px solid var(--black); border-radius: 0; background: #fff; color: var(--black); font: inherit; font-size: 16px; }
.home-workspace .dir-filter__btn { min-height: 44px; }
.home-workspace [hidden] { display: none !important; }

/* Keep the first decision compact, including when the informational cookie bar is visible. */
@media (max-width: 600px) {
  .home-hero { padding-top: 1.4rem; padding-bottom: 1.1rem; }
  .home-hero h1 { font-size: 2rem; line-height: 1.08; }
  .home-hero__lede { font-size: .95rem; line-height: 1.45; margin-top: .7rem; }
  .home-path p { display: none; }
  .home-path__link { display: none; }
  .home-path { padding: .65rem .85rem; }
  .home-path h3 { font-size: 1.25rem; }
}

.home-workspace #p1-consent { position: static; width: auto; }

/* Phone retrieval: compact native filters and full-width readable results. */
.home-workspace .dir-mobile-filters { display: none; }
@media (max-width: 700px) {
  .home-workspace .home-hero h1 em { display: block; }
  .home-workspace .home-hero__lede { font-size: 1rem; line-height: 1.5; }
  .home-workspace .home-path { position: relative; padding-right: 2.5rem; }
  .home-workspace .home-path::after { content: "→"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; }
  .home-workspace .directory__head { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .home-workspace .directory__count { font-size: .68rem; line-height: 1.5; }
  .home-workspace .directory__intro { font-size: 1rem; line-height: 1.5; }
  .home-workspace .dir-filter { display: none; }
  .home-workspace .dir-mobile-filters { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: .75rem; margin: 0 0 1.25rem; }
  .home-workspace .dir-mobile-filters label { min-width: 0; font-size: .875rem; font-weight: 600; }
  .home-workspace .dir-mobile-filters span { display: block; margin-bottom: .35rem; }
  .home-workspace .dir-mobile-filters select { width: 100%; min-width: 0; min-height: 48px; padding: .65rem .4rem; border: 1px solid var(--black); border-radius: 0; background: var(--cream); color: var(--black); font: inherit; font-size: 16px; }
  .home-workspace .dir-mobile-filters select:focus-visible { outline: 3px solid var(--coral-text); outline-offset: 3px; }
  .home-workspace .tier-row,
  .home-workspace .tier-row--watch { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-top: 1rem; }
  .home-workspace .tier-row__rank,
  .home-workspace .tier-row--watch .tier-row__rank { display: flex; align-items: center; gap: .75rem; font-size: 2rem; line-height: 1; }
  .home-workspace .tier-row__label { max-width: none; margin: 0; font-size: .68rem; line-height: 1.4; }
  .home-workspace .dir-cell { min-width: 0; padding: 1rem; }
  .home-workspace .dir-cell__name { font-size: 1.75rem; overflow-wrap: anywhere; }
  .home-workspace .dir-cell__desc { font-size: 1rem; line-height: 1.5; }
  .home-workspace .dir-cell__status,
  .home-workspace .dir-cell__evidence-note { font-size: .8125rem; line-height: 1.5; }
  .home-workspace .home-tools p:not(.home-eyebrow) { font-size: .9375rem; line-height: 1.5; }
  .home-workspace .colophon__list a { min-height: 44px; }
}
