/* Stations (section cards), item cards, status tags, candidate metadata,
 * family board, timeline rows, artifact detail. Status tag color classes
 * mirror services/brand.py STATUS_COLOR — color is state, and every tag
 * carries its word (color alone never carries meaning). */
/* night repaint (operator: "decks more integrated"): stations are no
 * longer floating cards — they are SECTIONS of the glass pane, divided
 * by hairline bronze rules. One surface per screen. */
.station {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.main-column > .station + .station,
.side-column > .station + .station {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(138, 106, 63, .30);
}

.station-lit {
  background: radial-gradient(circle at top left, rgba(255, 232, 174, .35), transparent 12rem);
}

.station-header {
  padding: 6px 2px 9px;
  background: none;
  border-bottom: 1px solid rgba(138, 106, 63, .26);
}

.station-label {
  margin: 0 0 4px;
  color: var(--bronze);
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.station-label::before {
  content: "❧ ";
  color: var(--bronze);
  letter-spacing: 0;
}

.station-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.station-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
}

.station-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.count-badge {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: .76rem;
  font-weight: 900;
}

.station-body {
  display: grid;
  gap: 10px;
  padding: 12px 2px;
}

.item-card {
  background: rgba(255, 252, 243, .72);
  border: 1px solid rgba(27, 32, 43, .14);
  border-radius: var(--radius-md);
  padding: 11px 12px;
}

.item-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.item-title a {
  text-decoration: none;
}

.item-title a:hover {
  text-decoration: underline;
}

.item-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.item-body {
  margin: 10px 0 0;
  color: #342f27;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

/* Status tags: word + state color. st-* classes mirror brand STATUS_COLOR. */
.status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.st-green     { color: var(--green);  background: rgba(47, 74, 60, .12); }
.st-red       { color: var(--red);    background: rgba(158, 61, 50, .11); }
.st-teal      { color: var(--teal);   background: rgba(62, 92, 84, .13); }
.st-amber     { color: #8a4f07;       background: rgba(214, 162, 58, .18); }
.st-gold      { color: var(--bronze); background: rgba(195, 154, 70, .18); }
.st-bronze    { color: var(--bronze); background: rgba(138, 106, 63, .13); }
.st-limestone { color: #4A3E28;       background: var(--stone); }
.st-black     { color: var(--paper);  background: var(--ink); border-color: var(--ink); }

/* Candidate card extras */
.candidate-meta {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 10px;
  background: rgba(241, 232, 208, .65);
  border: 1px solid rgba(23, 23, 23, .16);
  border-radius: var(--radius-sm);
}

.candidate-meta div {
  display: grid;
  gap: 2px;
}

.candidate-meta dt {
  color: var(--bronze);
  font-family: var(--font-label);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.candidate-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.contradiction-warning {
  margin-top: 10px;
  padding: 10px;
  color: #5f261f;
  background: rgba(158, 61, 50, .10);
  border: 1px solid rgba(158, 61, 50, .34);
  border-left-width: 5px;
  border-radius: var(--radius-sm);
}

.contradiction-warning strong {
  display: block;
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.contradiction-warning p {
  margin: 5px 0 0;
  font-size: .9rem;
}

/* Ask sidebar */
.ask .station-label {
  margin: 0 0 8px;
}

.ask-body {
  padding: 14px;
}

.ask-question {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.34;
}

/* Timeline rows (calendar) */
.time-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: var(--paper-bright);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
}

.time {
  color: var(--bronze);
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.time-main {
  min-width: 0;
}

/* Family board (existing matrix data: level word, points, freshness, log) */
.family-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--paper-bright);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
}

.family-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.family-topline h3 {
  margin: 0;
  font-size: 1.05rem;
}

.family-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

/* Plain rows (work window manifest reads, clarify list) */
.item-row {
  padding: 10px 12px;
  background: var(--paper-bright);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.item-row .status-tag {
  margin-left: 8px;
}

/* Artifact detail */
.artifact-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.artifact-detail .station-title {
  font-size: 1.35rem;
}

.artifact-section {
  padding: 12px;
  background: var(--paper-bright);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
}

.artifact-section h2 {
  margin: 0 0 8px;
  color: var(--bronze);
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.artifact-section p {
  margin: 0;
  overflow-wrap: anywhere;
}

.record-meta {
  display: grid;
  gap: 9px;
  margin: 0;
}

.record-meta div {
  display: grid;
  gap: 2px;
}

.record-meta dt {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.record-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.back-link {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: .74rem;
}

.empty-state {
  padding: 22px 14px;
  color: var(--muted);
  text-align: center;
}

.empty-state::before {
  content: "❧";
  display: block;
  margin-bottom: 6px;
  color: var(--bronze);
  font-size: 1.45rem;
}

/* ---- the actual calendar (operator-ruled 2026-07-09): month grid with
 * counts + the current week expanded. Days with items carry a numeral —
 * color alone is never the signal. ---- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-dow {
  padding: 2px 0 6px;
  color: var(--muted);
  font-family: var(--font-control);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.cal-cell {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 232, .55);
  border: 1px solid rgba(23, 23, 23, .14);
  border-radius: 10px;
}

.cal-cell.is-blank {
  background: transparent;
  border-color: transparent;
}

.cal-cell b {
  font-family: var(--font-control);
  font-size: .82rem;
  font-weight: 600;
}

.cal-cell.is-today {
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .35);
}

.cal-cell.has-items {
  background: var(--paper-bright);
}

.cal-count {
  position: absolute;
  right: 3px;
  top: 3px;
  min-width: 16px;
  padding: 1px 3px;
  color: var(--paper);
  background: var(--bronze);
  border-radius: 999px;
  font-family: var(--font-control);
  font-size: .58rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.week-day {
  padding: 8px 0 2px;
  border-top: 1px solid var(--rule-soft);
}

.week-day:first-child {
  border-top: 0;
}

.week-day h4 {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-family: var(--font-control);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.week-day.is-today {
  padding: 8px 10px 6px;
  background: rgba(255, 248, 232, .6);
  border: 1px solid rgba(195, 154, 70, .5);
  border-radius: 12px;
}

.week-day.is-today h4 {
  color: var(--bronze);
}

.week-none {
  margin: 0 0 6px;
  color: var(--muted);
}

.cal-add-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
