/* Lewis resource home — a calm editorial library with the brand's red as its signal. */
.resource-tracking-error:not([hidden]) {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 1100;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--red);
  background: var(--ink);
  font-size: 0.85rem;
}
#step-home.active {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: 8px clamp(20px, 5vw, 76px) 36px;
}

#step-home #home-content {
  width: min(100%, 1180px);
  margin: 0 auto;
}

#step-home .home-shell {
  color: var(--white);
  animation: home-arrive 0.52s cubic-bezier(.2,.7,.2,1) both;
}

#step-home .home-top-nav {
  display: flex;
  min-height: 42px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 8px;
}
#step-home .home-office-hours-nav {
  padding: 7px 12px;
  border: 1px solid rgba(255,44,63,0.45);
  background: var(--white);
  color: var(--charcoal);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
#step-home .home-office-hours-nav:hover {
  border-color: var(--red);
  background: #fff4f4;
  color: var(--red-press);
}
#step-home .home-office-hours-nav:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@keyframes home-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#step-home .home-hero {
  min-height: 238px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 34px clamp(22px, 5vw, 64px) 38px;
  background:
    linear-gradient(112deg, rgba(255,44,63,0.12), transparent 52%),
    #201f21;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 3px;
}

#step-home .home-hero-copy { max-width: 710px; }
#step-home .home-kicker,
#step-home .home-section-label {
  margin: 0 0 15px;
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}
#step-home .home-title {
  max-width: 760px;
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.99;
}
#step-home .home-intro {
  max-width: 570px;
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.98rem;
  line-height: 1.6;
}
#step-home .home-hero-mark {
  flex: 0 0 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}
#step-home .home-mark-rule { width: 100%; height: 1px; background: var(--red); }
#step-home .home-mark-word {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

#step-home .home-journey {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 26px 0 58px;
  padding: 26px 2px 27px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
#step-home .home-journey-copy { max-width: 690px; }
#step-home .home-journey h2,
#step-home .home-section-heading h2,
#step-home .home-governance h2,
#step-home .home-participation h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
#step-home .home-muted {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}
#step-home .home-primary {
  min-width: 196px;
  padding: 14px 24px;
}
#step-home .home-complete-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255,44,63,0.55);
  color: #ff9aa3;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

#step-home .home-library { padding-bottom: 2px; }
#step-home .home-start { margin: 32px 0 8px; }
#step-home .home-resource-list.home-single-resource { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#step-home .home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
#step-home .home-heading-note { max-width: 360px; padding-bottom: 5px; text-align: right; }
#step-home .home-library-group { margin: 0 0 38px; }
#step-home .home-group-title {
  margin: 0 0 13px;
  color: rgba(255,255,255,0.48);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
#step-home .home-resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.15);
}
#step-home .home-resource {
  width: 100%;
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 16px 17px 0;
  color: var(--white);
  text-align: left;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.18s ease, background-color 0.18s ease;
}
#step-home .home-resource:nth-child(odd) { padding-right: 24px; }
#step-home .home-resource:nth-child(even) { padding-left: 24px; }
#step-home .home-resource:hover:not(:disabled) {
  color: #ff7a85;
  background: rgba(255,255,255,0.025);
}
#step-home .home-resource-copy,
#step-home .home-resource-meta { display: flex; flex-direction: column; gap: 6px; }
#step-home .home-resource-copy { min-width: 0; }
#step-home .home-resource-title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }
#step-home .home-resource-detail { color: rgba(255,255,255,0.55); font-size: 0.77rem; line-height: 1.35; }
#step-home .home-resource-meta { flex: 0 0 auto; align-items: flex-end; gap: 9px; }
#step-home .home-resource-kind {
  color: rgba(255,255,255,0.44);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
#step-home .home-guide-completed {
  color: #ff7a85;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#step-home .home-status {
  display: inline-block;
  color: rgba(255,255,255,0.67);
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
}
#step-home .home-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: var(--charcoal-50);
}
#step-home .home-status-completed { color: #f0b2b6; }
#step-home .home-status-completed::before { background: var(--red); }
#step-home .home-status-in_progress { color: rgba(255,255,255,0.9); }
#step-home .home-status-in_progress::before { background: #f3c27a; }
#step-home .home-status-unavailable { color: rgba(255,255,255,0.45); }

#step-home .home-video-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#step-home .home-resource-compact {
  min-height: 84px;
  justify-content: flex-start;
  gap: 17px;
}
#step-home .home-video-number {
  flex: 0 0 35px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
}
#step-home .home-video-list .home-resource-copy { flex: 1; }
#step-home .home-video-list .home-resource-meta { margin-left: auto; }

#step-home .home-governance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 10px 0 58px;
  padding: 30px clamp(20px, 3vw, 38px);
  background: #292729;
  border-left: 2px solid var(--red);
}
#step-home .home-governance-copy { max-width: 610px; }
#step-home .home-governance h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
#step-home .home-governance-action {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
#step-home .home-governance-action > .home-resource {
  min-height: unset;
  padding: 0;
  border: 0;
}
#step-home .home-governance-action > .home-resource .home-resource-detail,
#step-home .home-governance-action > .home-resource .home-resource-kind { display: none; }
#step-home .home-governance-action > .home-resource .home-resource-title {
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
}

#step-home .home-participation {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(220px, 0.65fr) minmax(390px, 1.2fr);
  align-items: start;
  gap: 30px;
  padding: 38px 0 44px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
#step-home .home-participation h2 { max-width: 350px; }
#step-home .home-participation-notes { padding-top: 26px; }
#step-home .home-branch-status {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
#step-home .home-choice-list { border-top: 1px solid rgba(255,255,255,0.14); }
#step-home .home-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--white);
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  text-align: left;
  transition: color 0.18s ease;
}
#step-home .home-choice:hover:not(:disabled) { color: #ff7a85; background: transparent; }
#step-home .home-choice-index { color: var(--red); font-size: 0.66rem; letter-spacing: 0.08em; }
#step-home .home-choice-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; }
#step-home .home-choice-title { font-family: var(--font-display); font-size: 1.4rem; }
#step-home .home-choice-description { color: rgba(255,255,255,0.55); font-size: 0.73rem; }
#step-home .home-choice-arrow { font-size: 1.1rem; }
#step-home .home-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 4px;
  color: rgba(255,255,255,0.35);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
}
body.home-stage-active .session-actions {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100vw - clamp(40px, 10vw, 152px)));
  display: flex;
  justify-content: flex-end;
}

#home-error:empty { display: none; }
#step-home #home-error {
  width: min(100%, 1180px);
  margin: 12px auto 0;
  color: #ff9aa3;
  font-size: 0.9rem;
}

.home-admin-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.home-admin-entry .home-section-label { margin: 0 0 5px; }
.home-admin-entry h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 300;
}
.home-admin-button {
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-size: .82rem;
}
.home-admin-button:hover { background: var(--red); border-color: var(--red); }

#resource-home[hidden] { display: none !important; }
#resource-home:not([hidden]) {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 30;
  padding: 10px 16px;
  color: rgba(255,255,255,0.94);
  background: rgba(28,27,29,0.92);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}
#resource-home:not([hidden]):hover { background: var(--red-press); }

#step-home button:focus-visible,
#resource-home:focus-visible {
  outline: 2px solid #ff9aa3;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  #step-home.active { padding: 0 18px 26px; }
  body.home-stage-active .session-actions { width: calc(100vw - 36px); }
  #step-home .home-hero { min-height: auto; padding: 28px 24px 30px; }
  #step-home .home-hero-mark { flex-basis: 76px; }
  #step-home .home-mark-word { font-size: 1.55rem; }
  #step-home .home-journey { align-items: flex-start; flex-direction: column; margin: 22px 0 42px; }
  #step-home .home-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  #step-home .home-heading-note { text-align: left; }
  #step-home .home-participation { grid-template-columns: 1fr; gap: 14px; }
  #step-home .home-participation-notes { padding-top: 0; }
  #step-home .home-choice-list { margin-top: 8px; }
  #step-home .home-governance { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 44px; }
  #step-home .home-governance-action { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

@media (max-width: 540px) {
  #step-home.active { margin-left: calc(50% - 50vw); }
  #step-home .home-hero { padding: 26px 20px; }
  #step-home .home-hero-mark { display: none; }
  #step-home .home-title { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  #step-home .home-resource-list,
  #step-home .home-video-list { grid-template-columns: 1fr; }
  #step-home .home-resource-list.home-single-resource { grid-template-columns: 1fr; }
  #step-home .home-resource:nth-child(even),
  #step-home .home-resource:nth-child(odd) { padding-left: 0; padding-right: 0; }
  #step-home .home-resource { min-height: 82px; gap: 12px; }
  #step-home .home-resource-title { font-size: 1.3rem; }
  #step-home .home-resource-meta { align-items: flex-end; }
  #step-home .home-resource-detail { max-width: 220px; }
  #step-home .home-video-number { flex-basis: 30px; }
  #resource-home:not([hidden]) { top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); }
}

@media (prefers-reduced-motion: reduce) {
  #step-home .home-shell { animation: none; }
  #step-home .home-resource,
  #step-home .home-choice { transition: none; }
}
