/* Status pages. Built on the tokens in /styles.css. */

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.st-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.st-narrow { max-width: 760px; padding-top: 32px; gap: 40px; }
.st-main article { display: flex; flex-direction: column; gap: 40px; }

.st-head { display: flex; flex-direction: column; gap: 18px; }
.st-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.st-narrow .st-head h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; }
.st-head > p { font-size: 19px; color: var(--text-2); max-width: 36em; }

.st-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Badges and tags */

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
}
.st-badge-large { gap: 8px; padding: 5px 14px 5px 11px; font-size: 15px; }
.st-confirmed, .st-in_development { --c: var(--status-confirmed); background: var(--status-confirmed-bg); }
.st-planned { --c: var(--status-planned); background: var(--status-planned-bg); }
.st-done { --c: var(--status-done); background: var(--status-done-bg); }
.st-declined { --c: var(--status-declined); background: var(--status-declined-bg); }
.st-badge .s { stroke: var(--c); }
.st-badge .f { fill: var(--c); }
.st-badge .check { stroke: var(--bg); }

.st-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-kind {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 1px 7px;
  line-height: 1.5;
}
.st-app { font-family: var(--mono); font-size: 13px; color: var(--text-4); }

/* Legend and filters */

.st-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.st-legend dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 14px 32px;
}
.st-legend dl > div { display: flex; gap: 14px; align-items: baseline; }
.st-legend dt { flex: none; width: 116px; }
.st-legend dd { margin: 0; font-size: 15px; color: var(--text-2); }

.st-filters { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.st-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-filter-label { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.st-seg {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.st-seg a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--text-3);
}
.st-seg a:hover { color: var(--text); }
.st-seg a.on {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  font-weight: 500;
  color: var(--text);
}

/* Groups and rows */

.st-group { display: flex; flex-direction: column; gap: 6px; }
.st-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-bottom: 12px;
}
.st-group-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.st-group-head span { font-family: var(--mono); font-size: 14px; color: var(--text-4); }
.st-group-head p { flex-basis: 100%; font-size: 15px; color: var(--text-3); }
.st-none { color: var(--text-2); font-size: 16px; }

.st-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.st-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "meta badge" "title date" "body .";
  column-gap: 20px;
  row-gap: 8px;
  align-items: start;
}
.st-row .st-meta { grid-area: meta; }
.st-row .st-title { grid-area: title; }
.st-row .st-body { grid-area: body; display: flex; flex-direction: column; gap: 12px; }
.st-row .st-badge-slot { grid-area: badge; justify-self: end; }
.st-row .st-date {
  grid-area: date;
  justify-self: end;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-4);
}
.st-title { font-size: 19px; line-height: 1.35; font-weight: 600; }
.st-title a { color: var(--text); }
.st-title a:hover { color: var(--accent); }
.st-body:empty { display: none; }
.st-body p { color: var(--text-2); font-size: 16px; max-width: 36em; }
.st-body .st-why { font-size: 15px; }
.st-why span { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.st-more { font-size: 15px; font-weight: 500; align-self: flex-start; }

.st-foot { font-size: 16px; color: var(--text-2); }

@media (max-width: 600px) {
  .st-main { padding-top: 24px; gap: 36px; }
  .st-head > p { font-size: 17px; }
  .st-legend { padding: 18px; border-radius: 14px; }
  .st-legend dl > div { flex-direction: column; gap: 4px; }
  .st-legend dt { width: auto; }
  .st-group-head h2 { font-size: 24px; }
  .st-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "meta badge" "title title" "body body" "date date";
    padding: 16px 0;
  }
  .st-row .st-date { justify-self: start; }
  .st-more { min-height: 44px; display: flex; align-items: center; }
}

/* Empty states */

.st-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-2);
}
.st-empty svg { color: var(--text-4); }
.st-empty h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.st-empty p { max-width: 36em; }
.st-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.st-button:hover { color: var(--text); border-color: var(--text-4); }

/* Item page */

.st-back {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
}
.st-state { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-state > span:last-child { font-family: var(--mono); font-size: 14px; color: var(--text-3); }

.st-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.st-panel > p { flex: 1 1 280px; font-size: 16px; color: var(--text-2); }
.st-panel-done { background: var(--status-done-bg); }
.st-panel-declined { background: var(--status-declined-bg); flex-direction: column; align-items: stretch; gap: 8px; }
.st-panel-declined > p { color: var(--text); flex: none; }
.st-panel > div { display: flex; flex-direction: column; gap: 2px; }
.st-version { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }

.st-steps { margin: 0; padding: 0; list-style: none; flex-basis: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-steps li { display: flex; align-items: center; gap: 10px; }
.st-steps .st-dash {
  flex: 1 1 40px;
  min-width: 40px;
  max-width: 160px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 11px);
}
.st-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--c);
}
.st-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: block; }
.st-dot.st-next { box-shadow: inset 0 0 0 1.5px var(--dash); background: none; }
.st-dim { color: var(--text-3); }
.st-aside { font-family: var(--mono); font-size: 12px; color: var(--text-4); }

.st-notes { display: flex; flex-direction: column; gap: 22px; }
.st-notes .st-group-head { padding-bottom: 0; }
.st-notes ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.st-notes li {
  position: relative;
  padding: 0 0 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-notes li:last-child { padding-bottom: 0; }
.st-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--border-strong);
}
.st-notes li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
}
.st-notes li.latest::before { box-shadow: inset 0 0 0 2px var(--accent); }
.st-notes time { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.st-notes p { color: var(--text-2); }
.st-notes li.latest p { color: var(--text); }

.st-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.st-contact p { font-size: 16px; color: var(--text-2); }
.st-contact > a { font-size: 16px; font-weight: 500; align-self: flex-start; min-height: 44px; display: flex; align-items: center; }
