/* Front page: a living start point that sends each visitor where they need to go. */
body[data-view='home'] #schedule-strip {
  display: none;
}
.home {
  --h-ink: #172f2a;
  --h-muted: #56655d;
  --h-line: #d9e0da;
  --h-wash: #f1f4ec;
  --h-forest: #123c2e;
  color: var(--h-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 24px;
  min-width: 0;
  max-width: 100%;
}
.home > * {
  min-width: 0;
}
.home h2,
.home h3 {
  color: var(--h-ink);
}
.home-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.home-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.home-head p {
  margin: 0;
  color: var(--h-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 620px;
}
.home-head .text-btn {
  white-space: nowrap;
}

/* Hero */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  padding-top: clamp(8px, 3vw, 32px);
}
.home-hero-copy h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 600;
  margin: 16px 0 18px;
  text-wrap: balance;
}
.home-hero-copy > p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--h-muted);
  max-width: 600px;
  margin: 0 0 24px;
}
.home-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-strong, #b9c6b9);
  border-radius: 16px;
  background: #fff;
  color: var(--h-muted);
  box-shadow: 0 1px 0 #0000000a;
}
.home-search:focus-within {
  outline: 3px solid var(--focus, #965134);
  outline-offset: 2px;
}
.home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 500 16px/1.4 var(--font-body);
  color: var(--h-ink);
  padding: 12px 0;
}
.home-search input:focus {
  outline: none;
}
.home-search-status {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--h-muted);
}
.home-now {
  background: var(--h-forest);
  color: #e9f1ea;
  border-radius: 24px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-now-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-now .eyebrow {
  color: #cfe0d2;
}
.home-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9fb3a5;
  position: relative;
}
.home-pulse.is-live {
  background: #7ddb9f;
}
.home-pulse.is-live::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #7ddb9f;
  animation: home-pulse 2.2s ease-out infinite;
}
@keyframes home-pulse {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-pulse.is-live::after {
    animation: none;
  }
}
.home-clock {
  display: grid;
  gap: 2px;
  margin: 0 0 4px;
}
.home-clock strong {
  font: 600 40px/1.05 var(--font-heading);
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.home-clock span {
  font-size: 13px;
  color: #cbdacd;
}
.home-now ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.home-now li a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-top: 1px solid #ffffff1c;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}
.home-now li a:hover {
  background: #ffffff0f;
}
.home-now li a:focus-visible {
  outline: 3px solid var(--gold, #efd994);
  outline-offset: 0;
}
.home-now li span {
  font-size: 12px;
  color: #b9cbbd;
}
.home-now li strong {
  font: 600 14px/1.4 var(--font-body);
  color: #fff;
  overflow-wrap: anywhere;
}
.home-now li strong small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: #cbdacd;
}
.home-now li strong b {
  color: var(--gold, #efd994);
}
.home-now li svg {
  color: #b9cbbd;
}
.home-now-foot {
  margin: auto 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #b9cbbd;
}

/* Doors */
.home-door-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 18px;
  border: 1px solid var(--h-line);
  border-radius: 22px;
  background: linear-gradient(160deg, #fff, #f5f7f2);
  border-top: 5px solid var(--door, var(--green, #174737));
}
.door-operate {
  --door: #174737;
}
.door-evidence {
  --door: #2f7467;
}
.door-story {
  --door: #965134;
}
.door-money {
  --door: #a16b23;
}
.home-door-n {
  position: absolute;
  top: 16px;
  right: 18px;
  font: 700 13px/1 var(--font-heading);
  color: var(--h-muted);
}
.home-door h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
}
.home-door p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--h-muted);
}
.home-door .home-door-fact {
  font-size: 13px;
  font-weight: 600;
  color: var(--h-ink);
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--h-wash);
}
.home-door-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--door);
  color: #fff;
  font: 700 14px/1 var(--font-body);
  text-decoration: none;
}
.home-door-cta:focus-visible,
.home-door a:focus-visible,
.home a:focus-visible {
  outline: 3px solid var(--focus, #965134);
  outline-offset: 2px;
}
.home-door ul {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
}
.home-door li a {
  display: flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: var(--h-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--h-line);
}
.home-door li:last-child a {
  border-bottom: 0;
}
.home-door li a:hover {
  color: var(--door);
}

/* Today strip */
.home-lanes {
  list-style: none;
  margin: 0;
  padding: 4px 2px 10px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.home-lane {
  flex: 0 0 176px;
  scroll-snap-align: start;
}
.home-lane a {
  height: 100%;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  background: #fff;
  color: var(--h-ink);
  text-decoration: none;
}
.home-lane.is-scheduled a {
  background: transparent;
  border-style: dashed;
}
.home-lane:is(.is-done, .is-late) a {
  border-color: #b7d3bf;
  background: #f3f9f4;
}
.home-lane time {
  font: 700 13px/1 var(--font-heading);
  color: var(--h-muted);
  font-variant-numeric: tabular-nums;
}
.home-lane strong {
  font-size: 14.5px;
  line-height: 1.3;
}
.home-lane .cr-chip {
  justify-self: start;
  white-space: normal;
}
.home-now-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}
.home-now-mark span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 4px;
  border-left: 2px solid var(--copper, #965134);
  color: var(--copper, #965134);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Chips inside the home strip reuse control-room tones. */
.home .tone-good {
  --t: #206242;
  --t-soft: #e6f1e7;
}
.home .tone-warn {
  --t: #7d4e1b;
  --t-soft: #fbf0d8;
}
.home .tone-bad {
  --t: #9b3a36;
  --t-soft: #f9e7e5;
}
.home .tone-pending {
  --t: #35596b;
  --t-soft: #e5eef2;
}
.home .tone-neutral {
  --t: #56655d;
  --t-soft: #edf0ea;
}

/* Latest */
.home-latest {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
}
.home-stories,
.home-receipts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--h-line);
}
.home-stories li a {
  display: grid;
  gap: 4px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--h-line);
  color: inherit;
  text-decoration: none;
}
.home-stories li a:hover strong {
  text-decoration: underline;
}
.home-stories strong {
  font: 700 16px/1.35 var(--font-heading);
  letter-spacing: -0.01em;
}
.home-stories small {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--h-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-receipts li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--h-line);
}
.home-kind {
  align-self: start;
  justify-self: start;
  font: 700 10.5px/1.3 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--h-wash);
  color: var(--h-muted);
}
.home-receipts strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.home-receipts small {
  font-size: 12.5px;
  color: var(--h-muted);
}
.home-empty {
  padding: 14px 4px;
  color: var(--h-muted);
}
.home .health-live {
  margin: 0;
}

/* Directory */
.home-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px 18px;
}
.home-dir-group h3 {
  font: 700 11px/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin: 0 0 8px;
}
.home-dir-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.home-dir-group li a {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.home-dir-group li a:hover {
  background: var(--h-wash);
}
.home-dir-group strong {
  font-size: 14.5px;
}
.home-dir-group small {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--h-muted);
}
.home-dir-empty {
  color: var(--h-muted);
}

@media (max-width: 1180px) {
  .home-door-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .home-hero,
  .home-latest {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .home {
    gap: 34px;
  }
  .home-door-grid {
    grid-template-columns: 1fr;
  }
  .home-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-now li a {
    grid-template-columns: 92px minmax(0, 1fr) 16px;
    gap: 8px;
  }
  .home-clock strong {
    font-size: 34px;
  }
  .home-lanes {
    display: grid;
    overflow: visible;
  }
  .home-lane a {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
  }
  .home-lane .cr-chip {
    grid-column: 2;
  }
  .home-now-mark span {
    writing-mode: horizontal-tb;
    transform: none;
    border-left: 0;
    border-top: 2px solid var(--copper, #965134);
    width: 100%;
    padding: 6px 0 0;
  }
  .home-receipts li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.home-door > .eyebrow {
  padding-right: 30px;
}
