/* Schedule page chrome: week header, connected controls, position chips.
   Editorial look — mono for numbers and labels, ink fill for the active item. */

/* ---------- week header ---------- */
.wk-head {
  display: flex; flex-direction: column; gap: 9px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.wk-kicker {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.wk-title {
  margin: 0; font-size: clamp(24px, 5vw, 34px); font-weight: 600;
  line-height: 1; letter-spacing: -.03em; color: var(--text);
}
.wk-meta { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.wk-meta b { color: var(--text); font-weight: 500; }

/* ---------- controls row ---------- */
.sched-chrome { display: flex; flex-direction: column; gap: 0; margin-bottom: 6px; }
.sched-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 16px 0 12px;
}
.ctl-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
/* the toolbar is only a grouping wrapper — its children lay out in .ctl-right */
.toolbar { display: contents; }

/* shared "connected group" shell */
.week-bar, .segmented, .search-box, .btn-line {
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); overflow: hidden;
}

/* ---------- week strip ---------- */
.week-bar {
  display: flex; align-items: center; margin: 0;
  max-width: min(620px, 100%);   /* leave room for search and the mode switch */
}
.wb-arrow {
  flex: none; padding: 8px 11px; border: none; background: transparent;
  color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer;
}
.wb-arrow:first-child { border-right: 1px solid var(--border-soft); }
.wb-arrow:last-child { border-left: 1px solid var(--border-soft); }
.wb-arrow:hover { color: var(--text); background: var(--surface-2); }

.week-strip {
  display: flex; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.week-strip::-webkit-scrollbar { display: none; }

.week-chip {
  flex: none; padding: 8px 13px; border: none;
  border-right: 1px solid var(--border-soft);
  background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  line-height: 1; white-space: nowrap; cursor: pointer;
}
.week-chip:last-child { border-right: none; }
.week-chip:hover { background: var(--surface-2); color: var(--text); }
.week-chip.active {
  background: var(--ink); color: var(--ink-on); font-weight: 600;
}
/* the coloured week states stay as a hairline under the label */
.week-chip.green { box-shadow: inset 0 -2px 0 var(--green); }
.week-chip.purple { box-shadow: inset 0 -2px 0 var(--purple); }
.week-chip.yellow { box-shadow: inset 0 -2px 0 var(--yellow); }
.week-chip.active.green,
.week-chip.active.purple,
.week-chip.active.yellow { box-shadow: none; }

/* ---------- search ---------- */
.search-box {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; width: 230px; max-width: 100%;
}
.search-box .sb-icon { color: var(--faint); flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-ui); font-size: 13px; color: var(--text);
}
.search-box input::placeholder { color: var(--faint); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box:focus-within { border-color: var(--muted); }

/* ---------- mode switch ---------- */
.segmented { display: flex; height: 34px; }
.segmented button {
  display: flex; align-items: center; padding: 0 13px;
  border: none; border-right: 1px solid var(--border-soft);
  background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background .12s, color .12s;
}
.segmented button:last-child { border-right: none; }
.segmented button:hover { background: var(--surface-2); color: var(--text); }
.segmented button.active { background: var(--ink); color: var(--ink-on); font-weight: 600; }

/* ---------- outlined button ---------- */
.btn-line {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.btn-line:hover { background: var(--surface-2); color: var(--text); }

/* ---------- position chips ---------- */
.pos-bar {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; flex-wrap: wrap;
}
.pos-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; line-height: 1;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding-right: 2px;
}
.pos-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.pos-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; transition: border-color .12s, background .12s;
}
.pos-chip:hover { border-color: var(--muted); }
.pos-chip.active { background: var(--ink); border-color: var(--ink); color: var(--ink-on); }
.pos-swatch { width: 7px; height: 7px; border-radius: 2px; flex: none; }

/* ---------- day strip keeps the same language ---------- */
.day-strip { padding-bottom: 14px; }
