/* Module 8 / 9 staff pages — builds on tokens.css + journey.css (variables only, no raw colours) */
/* journey.css spaces stacked cards with .card + .card; inside a grid that pushes every card after the first down */
.grid > .card + .card { margin-top: 0; }
table.t td.num { white-space: nowrap; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 18px; }
.subnav a { border: 1.5px solid var(--border-strong); border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: 14px; color: var(--dept-deep); background: var(--white); }
.subnav a.on { background: var(--dept-deep); color: var(--white); border-color: var(--dept-deep); }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; background: var(--sand-deep); color: var(--ink); white-space: nowrap; }
.chip.facebook, .chip.meta, .chip.meta_ads { background: var(--sapphire-muted); color: var(--sapphire-deep); }
.chip.instagram { background: var(--ruby-muted); color: var(--ruby-dark); }
.chip.line_oa, .chip.line, .chip.line_ads { background: var(--emerald-muted); color: var(--emerald-dark); }
.chip.tiktok, .chip.tiktok_ads { background: var(--sapphire-deep); color: var(--white); }
.chip.youtube, .chip.youtube_ads { background: var(--pill-danger-bg); color: var(--pill-danger-ink); }
.chip.google_business, .chip.gbp, .chip.google, .chip.google_ads { background: var(--pill-warn-bg); color: var(--pill-warn-ink); }
.chip.website { background: var(--pill-info-bg); color: var(--pill-info-ink); }
.chip.th, .chip.en { background: var(--white); border: 1.5px solid var(--border-strong); color: var(--ink-soft); padding: 2px 8px; }

.score { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 13.5px; }
.score.good { background: var(--pill-ok-bg); color: var(--pill-ok-ink); }
.score.mid { background: var(--pill-warn-bg); color: var(--pill-warn-ink); }
.score.bad { background: var(--pill-danger-bg); color: var(--pill-danger-ink); }
.score.none { background: var(--sand-deep); color: var(--ink-soft); }

.viol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.viol li { border: 1px solid var(--border-soft); border-left: 4px solid var(--border-strong); border-radius: 6px; padding: 9px 12px; background: var(--white); font-size: 14.5px; }
.viol li.error { border-left-color: var(--ruby); }
.viol li.warning { border-left-color: var(--color-warning); }
.viol li.info { border-left-color: var(--sapphire-light); }
.viol .m { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--cream-deep); padding: 1px 6px; border-radius: 4px; }

textarea.input, label.f textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs .t { width: 150px; border: 1px solid var(--border-soft); border-radius: 6px; padding: 6px; background: var(--white); font-size: 12.5px; }
.thumbs .t .thumb { width: 100%; height: 96px; }
.vid { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; background: var(--sand); border-radius: 6px; font-weight: 700; color: var(--ink-soft); }

/* month calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; background: var(--white); }
.cal .dow { background: var(--dept-deep); color: var(--white); font-weight: 700; font-size: 13px; padding: 8px; text-align: center; }
.cal .day { min-height: 118px; border-top: 1px solid var(--border-soft); border-left: 1px solid var(--border-soft); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cal .day:nth-child(7n + 1) { border-left: 0; }
.cal .day.out { background: var(--cream-deep); }
.cal .day.out .n { opacity: .45; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal .n { font-weight: 700; font-size: 13.5px; color: var(--ink); display: flex; justify-content: space-between; }
.cal .it { font-size: 12.5px; font-weight: 600; border-radius: 4px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--sand); color: var(--ink); }
.cal .it.post { background: var(--sapphire-muted); color: var(--sapphire-deep); }
.cal .it.post.published { background: var(--pill-ok-bg); color: var(--pill-ok-ink); }
.cal .it.post.skipped, .cal .it.post.failed { background: var(--pill-warn-bg); color: var(--pill-warn-ink); }
.cal .it.plan.done { text-decoration: line-through; opacity: .7; }
.cal .camp { height: 4px; border-radius: 2px; background: var(--gold); }
@media (max-width: 900px) { .cal .day { min-height: 84px; } .cal .it { font-size: 11px; } }

.counter { font-size: 12px; font-weight: 700; margin-left: 6px; }
.counter.ok { color: var(--emerald-dark); }
.counter.bad { color: var(--ruby-dark); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 15px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; }
.box { background: var(--cream); border: 1px solid var(--border-soft); border-radius: 6px; padding: 12px 14px; }
.block-ed { border: 1px solid var(--border-soft); border-radius: 6px; padding: 12px; background: var(--cream-deep); }
.block-ed + .block-ed { margin-top: 10px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.bars { width: 100%; height: 220px; }
.sw0 { fill: var(--sapphire); background: var(--sapphire); } .sw1 { fill: var(--ruby); background: var(--ruby); } .sw2 { fill: var(--emerald); background: var(--emerald); }
.sw3 { fill: var(--gold); background: var(--gold); } .sw4 { fill: var(--sapphire-light); background: var(--sapphire-light); } .sw5 { fill: var(--ruby-light); background: var(--ruby-light); }
.sw6 { fill: var(--emerald-vivid); background: var(--emerald-vivid); } .sw7 { fill: var(--ink-soft); background: var(--ink-soft); } .sw8 { fill: var(--gray-400); background: var(--gray-400); }
.bars text { fill: var(--ink-soft); font-size: 11px; }
.bars line { stroke: var(--border-soft); }
.table-wrap { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.danger-text { color: var(--ruby-dark); font-weight: 700; }
.ok-text { color: var(--emerald-dark); font-weight: 700; }
/* website preview (sandboxed iframe, no scripts) */
.preview-frame { display: block; width: 100%; height: 70vh; border: 1px solid var(--border-soft); border-radius: 6px; background: var(--white); }
