/* Content desk. Brand pack: Mindsheep Labs. */
:root {
  --navy: #0E1B2C;
  --navy2: #065A82;
  --teal: #1C7293;
  --panel: #F5F7FA;
  --line: #D8E1EC;
  --muted: #5F6B7A;
  --ink: #1A2332;
  --tint: #E8F3F6;
  --jade: #147D73;
  --jade-tint: #E8F5F2;
  --burgundy: #9B3A46;
  --burgundy-tint: #FBEDEF;
  --amber: #B26A00;
  --amber-tint: #FFF3D8;
  --amber-line: #D99A35;
  --serif: Cambria, "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Calibri, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 3px;
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.45; }
a { color: var(--navy2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: .35em 0; }
.muted { color: var(--muted); }
.inline { display: inline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* top bar */
.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.25rem; flex-wrap: wrap; }
.top__brand { font-family: var(--serif); font-size: 1.2rem; color: #fff; text-decoration: none; font-weight: 700; }
.top__nav { display: flex; gap: 1rem; }
.top__nav a { color: #cfdbe6; text-decoration: none; padding: .15rem 0; border-bottom: 2px solid transparent; }
.top__nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--teal); }
.top__who { margin-left: auto; display: flex; gap: .8rem; align-items: center; color: #cfdbe6; font-size: .9rem; }
.top__who .link { color: #cfdbe6; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy2); text-decoration: underline; cursor: pointer; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.foot { max-width: 1240px; margin: 0 auto; padding: 1rem 1.25rem 2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

/* needs-you strip */
.needs { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
.needs h2 { font-size: 1.1rem; }
.tasklist { list-style: none; padding: 0; margin: 0; }
.tasklist li { display: flex; gap: .55rem; align-items: baseline; padding: .35rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tasklist li:first-child { border-top: 0; }
.tasklist li.done { color: var(--muted); text-decoration: line-through; }
.tick { font: inherit; font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .05rem .5rem; cursor: pointer; color: var(--navy2); }
.tick:hover { border-color: var(--teal); color: var(--teal); }
.who { font-size: .78rem; border-radius: 999px; padding: .05rem .5rem; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.who--david { background: var(--amber-tint); border-color: var(--amber-line); color: var(--amber); }
.who--claude { background: var(--tint); border-color: #B7D8E3; color: var(--navy2); }
.due { color: var(--amber); font-size: .85rem; }
.nextlist { list-style: none; padding: 0; margin: 0; }
.nextlist li { padding: .3rem 0; border-top: 1px solid var(--line); }
.nextlist li:first-child { border-top: 0; }
.when { font-weight: 700; color: var(--amber); margin-right: .3rem; }

/* board */
.board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tablewrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font-size: .95rem; }
.grid th { text-align: left; font-family: var(--serif); font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--navy); padding: .5rem .6rem; white-space: nowrap; }
.grid td { border-bottom: 1px solid var(--line); padding: .6rem .6rem; vertical-align: top; }
.grid__video { width: 34%; min-width: 240px; }
.grid .title { color: var(--navy); text-decoration: none; font-weight: 700; font-family: var(--serif); font-size: 1.05rem; }
.grid .title:hover { color: var(--teal); }
.code { font-family: var(--serif); color: var(--teal); font-weight: 700; margin-right: .15rem; }
.meta { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.row--awaiting_approval td:first-child, .row--recording td:first-child { box-shadow: inset 3px 0 0 var(--amber-line); }
.row--live td:first-child { box-shadow: inset 3px 0 0 var(--jade); }
.state { font-size: .75rem; border-radius: 999px; padding: .05rem .5rem; margin-left: .35rem; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.state--live { background: var(--jade-tint); color: var(--jade); border-color: #BFE3DA; }
.state--approved { background: var(--tint); color: var(--navy2); border-color: #B7D8E3; }
.state--awaiting_approval, .state--recording { background: var(--amber-tint); color: var(--amber); border-color: var(--amber-line); }
.state--shelved { text-decoration: line-through; }

/* the stamps */
.stamp { display: inline-block; font-size: .82rem; line-height: 1.2; padding: .22rem .5rem; border-radius: var(--radius); border: 1px solid transparent; margin: .1rem .25rem .1rem 0; white-space: nowrap; text-decoration: none; }
.stamp--live { background: var(--jade-tint); color: var(--jade); border-color: #BFE3DA; font-weight: 700; }
a.stamp--live:hover { background: var(--jade); color: #fff; }
.stamp--scheduled { background: var(--amber-tint); color: var(--amber); border-color: var(--amber-line); font-weight: 700; }
.stamp--planned { color: var(--muted); border-style: dashed; border-color: var(--line); }
.stamp--skipped { color: var(--muted); text-decoration: line-through; border-color: var(--line); }
.stamp--approved { background: var(--tint); color: var(--navy2); border-color: #B7D8E3; font-weight: 700; }
.stamp--empty { color: var(--line); border: 1px dashed var(--line); min-width: 2rem; text-align: center; }
.stamp--empty:hover { color: var(--teal); border-color: var(--teal); }
.legend { color: var(--muted); font-size: .85rem; margin-top: .75rem; }

/* buttons and forms */
.btn { display: inline-block; font: inherit; background: var(--navy2); color: #fff; border: 1px solid var(--navy2); border-radius: var(--radius); padding: .45rem .9rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--small { padding: .25rem .65rem; font-size: .9rem; }
.btn--quiet { background: #fff; color: var(--navy2); }
.btn--quiet:hover { background: var(--panel); color: var(--navy2); border-color: var(--navy2); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: #fff; }
.card--narrow { max-width: 640px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stack label, .fields label { display: block; font-size: .85rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; }
.fields .wide { grid-column: 1 / -1; }
input[type=text], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=password], select, textarea {
  display: block; width: 100%; font: inherit; font-size: .95rem; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .5rem; margin-top: .15rem; background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 2px var(--tint); }
.checks { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; margin-top: .9rem; }
.checks legend { font-size: .85rem; color: var(--muted); padding: 0 .3rem; }
.checks label { display: inline-block; margin: .2rem 1rem .2rem 0; }
.saved { color: var(--jade); font-weight: 700; }
.error { color: var(--burgundy); background: var(--burgundy-tint); border: 1px solid #ecc9cf; padding: .4rem .6rem; border-radius: var(--radius); }
.crumb { color: var(--muted); font-size: .9rem; }

/* video page */
.vhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.rollout { border-top: 1px solid var(--line); padding: .8rem 0; }
.rollout__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.rollout--live { box-shadow: inset 3px 0 0 var(--jade); padding-left: .75rem; }
.rollout--scheduled { box-shadow: inset 3px 0 0 var(--amber-line); padding-left: .75rem; }
.addrollout { border-top: 2px solid var(--navy); padding-top: .8rem; margin-top: .5rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .4rem 0; border-top: 1px solid var(--line); display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--muted); font-size: .85rem; min-width: 11rem; }
.kind { font-size: .72rem; border-radius: 999px; padding: .02rem .45rem; border: 1px solid var(--line); color: var(--muted); text-transform: lowercase; }
.kind--live { background: var(--jade-tint); color: var(--jade); border-color: #BFE3DA; }
.kind--scheduled { background: var(--amber-tint); color: var(--amber); border-color: var(--amber-line); }
.kind--approval { background: var(--tint); color: var(--navy2); border-color: #B7D8E3; }
.kind--changes { background: var(--burgundy-tint); color: var(--burgundy); border-color: #ecc9cf; }

/* calendar */
.day { margin: 1rem 0 .25rem; color: var(--navy2); border-bottom: 1px solid var(--line); padding-bottom: .15rem; }
.daylist { list-style: none; padding: 0; margin: 0; }
.daylist li { padding: .3rem 0; }

/* plain table */
.plain { width: 100%; border-collapse: collapse; }
.plain th, .plain td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.plain th { font-family: var(--serif); color: var(--navy); border-bottom: 2px solid var(--navy); }

/* login */
body.login { background: var(--panel); display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login__card { width: 100%; max-width: 420px; }

@media (max-width: 860px) {
  .needs, .cols, .fields { grid-template-columns: 1fr; }
  .fields .wide { grid-column: auto; }
}
@media (max-width: 760px) {
  html { font-size: 16px; }
  .wrap { padding: 1rem; }
  .top { gap: .75rem 1rem; }
  .top__who { margin-left: 0; width: 100%; justify-content: space-between; }
  .grid thead { position: absolute; left: -9999px; }
  .grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; min-width: 0; }
  .grid tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .9rem; padding: .5rem .75rem; }
  .grid td { border: 0; padding: .25rem 0; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
  .grid td.grid__video { display: block; padding-bottom: .4rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
  .grid td[data-label]:not(.grid__video)::before { content: attr(data-label); color: var(--muted); font-size: .8rem; min-width: 7.5rem; }
  .row--live td:first-child, .row--awaiting_approval td:first-child, .row--recording td:first-child { box-shadow: none; }
  .row--live { box-shadow: inset 3px 0 0 var(--jade); }
  .row--awaiting_approval, .row--recording { box-shadow: inset 3px 0 0 var(--amber-line); }
  .timeline time { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .stamp, .tick { transition: background-color .12s, border-color .12s, color .12s; }
}
