/* ============================================================
   index.css — styles for the main MatService homepage
   Page-specific only. Shared tokens/components live in matservice.css.
   ============================================================ */

/* ── Visibility utility ── */
[hidden] { display: none !important; }

/* ── Header — overrides shared .ms-header padding for this page ── */
.ms-header {
  padding: 0.45rem clamp(20px, 5vw, 40px);
  gap: 0.5rem;
}

.ms-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.ms-header .ms-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

/* ── Loading state ── */
.ms-loading {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--tx2);
  padding: 4rem clamp(20px, 5vw, 56px);
}

/* ══════════════════════════════════════════
   4×2 DAY GRID
══════════════════════════════════════════ */
.day-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.day-cell {
  border-right: 1px solid var(--ui3);
  border-bottom: 1px solid var(--ui3);
}
.day-cell:nth-child(4n)        { border-right: none; }
.day-cell:nth-last-child(-n+4) { border-bottom: none; }

.day-cell-btn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.6rem 0.5rem;
  background: var(--bg2);
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 4.8rem;
  transition: background 0.15s;
  position: relative;
}

.day-cell-btn:active { opacity: 0.7; }

.day-cell-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: var(--cyan);
}

.day-cell-name {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--tx2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.day-cell-btn.is-active .day-cell-name { color: var(--cyan); font-weight: 500; }
.day-cell-btn.is-today  .day-cell-name { font-weight: 700; color: var(--tx); }

.day-cell-icon { line-height: 1; font-size: 1.25rem; }

.day-cell-hi {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--tx);
  line-height: 1;
}

/* ── About cell ── */
.about-cell-btn {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 0.5rem;
  background: var(--cyan);
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 4.8rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.about-cell-btn:hover    { opacity: 0.85; }
.about-cell-icon         { font-size: 1.2rem; line-height: 1; }
.about-cell-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════ */
.ms-content-pad {
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ── Hero block ── */
.hero {
  padding: 1.4rem clamp(20px, 5vw, 40px) 1.2rem;
  border-bottom: 1px solid var(--ui);
  transition: background 0.4s;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--tx2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.hero-main {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.hero-temp {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 14vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--tx);
}

.hero-icon { padding-bottom: 0.25rem; flex-shrink: 0; }

.hero-verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--orange);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--tx2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
}

.hero-kit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ui);
}

.hero-kit-pill {
  font-family: var(--mono);
  font-size: 0.71rem;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--ui2);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: var(--tx2);
  white-space: nowrap;
}

/* ── Section label ── */
.ms-section-label {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--tx2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 0 0.5rem;
}

/* ── Hour list ── */
.hours-list {
  border-top: 1px solid var(--ui);
  border-bottom: 1px solid var(--ui);
}

.hour-row {
  display: grid;
  grid-template-columns: 3.2rem 1.5rem 3.8rem 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem clamp(20px, 5vw, 40px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.hour-row:last-child { border-bottom: none; }
.hour-row.is-now {
  border-left: 2px solid var(--cyan);
  padding-left: calc(clamp(20px, 5vw, 40px) - 2px);
}

.hour-time { font-family: var(--mono); font-size: 0.72rem; color: var(--tx2); }
.hour-row.is-now .hour-time { color: var(--cyan); font-weight: 500; }
.hour-temp { font-family: var(--serif); font-size: 1rem; color: var(--tx); }
.hour-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Activities ── */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
@media (min-width: 600px) { .activities-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 360px) { .activities-grid { grid-template-columns: repeat(2, 1fr); } }

.act-card {
  border: 1px solid var(--ui);
  border-radius: var(--rad);
  padding: 0.7rem 0.65rem;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.act-card.go    { border-color: #5a9e50; background: rgba(90,158,80,0.06); }
.act-card.maybe { border-color: #c4960a; background: rgba(196,150,10,0.06); }
.act-card.nope  { opacity: 0.5; }

.act-icon { font-size: 1.2rem; line-height: 1; }
.act-name { font-family: var(--mono); font-size: 0.62rem; color: var(--tx2); text-transform: uppercase; letter-spacing: 0.05em; }
.act-why  { font-family: var(--mono); font-size: 0.72rem; color: var(--tx2); line-height: 1.3; }
.act-card.go    .act-why { color: #5a9e50; }
.act-card.maybe .act-why { color: #c4960a; }

.act-gear { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.3rem; }
.act-gear-item {
  font-family: var(--mono);
  font-size: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--ui2);
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  color: var(--tx2);
}

/* ── Spacer ── */
.ms-spacer { height: 2.5rem; }
