/* Road Trips HQ: the website's colours and type, calmer, for a page people work in. */
@font-face { font-family: "Lilita One"; src: url(/fonts/LilitaOne-Regular.ttf); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(/fonts/Fredoka.ttf); font-weight: 300 700; font-display: swap; }
:root { --blue: #2f55c8; --navy: #2b3358; --gold: #ffc53d; --orange: #f08a2c; --red: #c8402f; --green: #2e8b57;
  --paper: #fbf6ea; --paper-2: #f2e9d6; --ink: #2b3358; --ink-2: #5b6079; --line: rgba(43, 51, 88, .14); }
* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.45 "Fredoka", system-ui, sans-serif; color: var(--ink); background: var(--paper-2); }
h1, h2 { font-family: "Lilita One", "Fredoka", sans-serif; font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: 34px; margin-bottom: 18px; }
h2 { font-size: 21px; margin-bottom: 12px; }
ul { list-style: none; margin: 0; padding: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
button, .btn { font: 400 16px/1 "Lilita One", sans-serif; padding: 11px 16px; border: 0; border-bottom: 3px solid var(--orange); border-radius: 11px;
  background: var(--gold); color: var(--navy); cursor: pointer; text-decoration: none; display: inline-block; }
button.quiet { background: none; border: 1px solid var(--line); color: var(--ink-2); font: 500 14px "Fredoka", sans-serif; padding: 6px 10px; }
input, select, textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }

.hq { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
aside { background: var(--navy); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { position: relative; display: block; }
.brand img { width: 150px; height: auto; display: block; }
.brand span { position: absolute; left: 156px; bottom: 8px; font: 400 18px "Lilita One"; color: var(--gold); }
aside nav { display: grid; gap: 4px; }
aside nav a { color: #fff; text-decoration: none; padding: 9px 12px; border-radius: 10px; }
aside nav a:hover { background: rgba(255, 255, 255, .1); }
aside nav a[aria-current] { background: var(--blue); }
.me { margin-top: auto; display: grid; gap: 8px; font-size: 15px; }
.me a { color: #fff; }
.me button { background: none; border: 0; color: #cfd4ea; font: 400 15px "Fredoka"; padding: 0; text-decoration: underline; }
main { padding: 28px clamp(16px, 4vw, 40px); max-width: 1000px; width: 100%; min-width: 0; }

section { background: var(--paper); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
section.flush { padding: 0; overflow-x: auto; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--paper); border-radius: 16px; padding: 14px 16px; }
.tile:first-child { background: var(--blue); color: #fff; }
.tile:first-child span { color: #dbe3fb; }
.tile b { display: block; font: 400 38px/1 "Lilita One", sans-serif; }
.tile span { font-size: 14px; color: var(--ink-2); }
.cockpit { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-bottom: 16px; }
.big { position: relative; color: #fff; border-radius: 20px; padding: 20px 24px 14px; overflow: hidden; background: linear-gradient(90deg, rgba(31,37,71,.92), rgba(31,37,71,.55)), url(/img/hero.jpg) center / cover; }
.big span { font: 400 18px "Lilita One"; color: var(--gold); }
.big > b { display: block; font: 400 84px/1 "Lilita One", sans-serif; }
.big small { font-size: 13px; opacity: .8; }
.big .bars { height: 62px; border-color: rgba(255,255,255,.3); margin-top: 8px; }
.big .bars i { background: var(--gold); }
.cockpit .tiles { grid-template-columns: 1fr; margin: 0; gap: 10px; }
.cockpit .tile, .cockpit .tile:first-child { background: var(--paper); color: var(--ink); display: flex; align-items: center; gap: 14px; }
.cockpit .tile:first-child span { color: var(--ink-2); }
.cockpit .tile b { font-size: 32px; min-width: 44px; }
.launch { background: #7fb765; padding-bottom: 10px; }
.launch h2 { color: #fff; text-shadow: 0 2px 0 rgba(31,37,71,.45); }
.road { width: 100%; height: auto; display: block; }
.road .tar { fill: none; stroke: #3f4150; stroke-width: 24; stroke-linecap: round; }
.road .dash { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 16 14; }
.road circle { stroke: #fff; stroke-width: 4; }
.road .stop { fill: var(--navy); }
.road .hit { fill: var(--gold); }
.road text { font: 400 15px "Lilita One", sans-serif; fill: var(--navy); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; border-bottom: 2px solid var(--line); }
.bars i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two section { margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.list li:first-child { border: 0; }
.list span { color: var(--ink-2); font-size: 15px; text-align: right; }
.list .ok span { color: var(--green); font-weight: 500; }
.list .bad span { color: var(--red); font-weight: 500; }
.checks li { padding: 5px 0 5px 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); }
.checks .ok { color: var(--ink-2); text-decoration: line-through; }
.checks .ok::before { background: var(--green); border-color: var(--green); }

.bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.bar form { flex: 1; min-width: 180px; max-width: 340px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-2); padding: 10px 16px; }
td { padding: 9px 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
td:last-child { text-align: right; width: 1%; }
td button { white-space: nowrap; }
td:nth-child(2) { white-space: nowrap; }
.empty { color: var(--ink-2); padding: 18px 20px; margin: 0; }
.hint { color: var(--ink-2); margin: 0 0 14px; }

.new { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.new label { font-size: 14px; color: var(--ink-2); display: grid; gap: 3px; }
.new .wide { grid-column: 1 / -1; }
.new button { justify-self: start; }
.posts { display: grid; gap: 10px; }
.post { background: var(--paper); border-radius: 14px; padding: 14px 16px; border-left: 6px solid var(--ink-2); }
.post.approved { border-left-color: var(--green); }
.post p { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.meta { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.meta b { color: var(--ink); }
.meta em { margin-left: auto; font-style: normal; }
.acts { display: flex; gap: 8px; align-items: center; }

.gate { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--blue); }
.gate form { background: var(--paper); border-radius: 20px; padding: 26px; width: min(360px, 100%); display: grid; gap: 12px; }
.gate img { width: 170px; height: auto; margin: 0 auto; }
.gate h1 { text-align: center; margin: 0; font-size: 24px; }
.gate label { display: grid; gap: 3px; font-size: 15px; }
.err { color: var(--red); margin: 0; }

@media (max-width: 760px) {
  .hq { grid-template-columns: 1fr; }
  aside { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; }
  .brand img { width: 84px; }
  .brand span { left: 90px; bottom: 2px; }
  aside nav { display: flex; order: 3; width: 100%; }
  aside nav a { padding: 7px 10px; }
  .me { margin: 0 0 0 auto; grid-auto-flow: column; }
  .me a { display: none; }
  main { padding: 18px 16px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  th, td { padding-inline: 12px; }
  h1 { font-size: 28px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .cockpit { grid-template-columns: 1fr; }
  .road text { font-size: 19px; }
  .two, .new { grid-template-columns: 1fr; }
}

/* the social media manager */
.note { background: var(--paper); border-left: 6px solid var(--ink-2); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; }
.note.ok { border-left-color: var(--green); }
.note.bad { border-left-color: var(--red); }
.post:has(> img) { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.post > img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; }
.post .err { color: var(--red); font-size: 15px; margin: 4px 0; }
.post small { color: var(--ink-2); }
.where em, .meta em { font-style: normal; font-size: 13px; padding: 3px 8px; border-radius: 99px; background: #0000000f; color: var(--ink-2); margin-right: 4px; }
.where em.on, .meta em.on { background: var(--green); color: #fff; }
.bars.tall { height: 130px; }
.tick { display: inline-flex; gap: 6px; margin-right: 14px; align-items: center; }
.stack li { display: block; }
.stack span { display: block; text-align: left; }
details { margin-bottom: 10px; }
.post > video { width: 110px; height: 195px; object-fit: cover; border-radius: 10px; background: #000; }
.post:has(> video) { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.clip { background: var(--paper); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.clip video { width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; }
.clip small { color: var(--ink-2); }
.meter { height: 12px; border-radius: 99px; background: #0000001a; overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; background: var(--green); }
.step { background: var(--paper); border-radius: 14px; margin-bottom: 10px; }
.step summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.step summary i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; }
.step.done summary i { background: var(--green); }
.step summary span { margin-left: auto; color: var(--ink-2); font-size: 15px; }
.step > div { padding: 0 18px 16px; }
.step h3 { margin: 14px 0 6px; font-size: 17px; }
.copy { list-style: none; padding: 0; margin: 0; }
.copy li { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #0000001a; }
.copy code { overflow-wrap: anywhere; font-size: 14px; }
.step .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 700px) { .copy li { grid-template-columns: 1fr; } }
.help { margin-top: 10px; }
.help summary { cursor: pointer; color: var(--ink-2); }

/* the cockpit: three questions, in order. What needs me? What's going out? Is it working? */
:root { --paper: #fffdf7; --paper-2: #f3eee2; --line: rgba(43, 51, 88, .12); --shadow: 0 1px 2px rgba(43,51,88,.06), 0 6px 18px rgba(43,51,88,.05); }
main { max-width: 1240px; padding-top: 16px; }
h1 { font-size: 32px; margin: 18px 0 14px; }
section, .kpis > div, .step, .post, .clip, .note { box-shadow: var(--shadow); border: 1px solid var(--line); }
section .post { box-shadow: none; }
aside { padding: 14px 12px; gap: 12px; overflow-y: auto; }
aside nav { gap: 1px; }
aside nav h4 { margin: 12px 12px 3px; font: 500 12px "Fredoka"; letter-spacing: .6px; text-transform: uppercase; color: #a9b0d0; }
aside nav a { padding: 7px 12px; font-size: 16px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.strip a { background: var(--paper); padding: 9px 14px; text-decoration: none; color: var(--ink); display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.strip a:hover { background: #fff; }
.strip b { font-weight: 600; font-size: 16px; grid-column: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip b:first-child { grid-column: 1 / -1; }
.strip .dot + b { grid-column: 2; }
.strip span { font-size: 13px; color: var(--ink-2); grid-column: 1 / -1; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); display: inline-block; flex: none; }
.dot.ok { background: var(--green); } .dot.bad { background: var(--red); } .dot.warn { background: var(--orange); } .dot.info { background: var(--blue); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis > div { background: var(--paper); border-radius: 14px; padding: 12px 16px; }
.kpis span { display: block; font-size: 14px; color: var(--ink-2); }
.kpis b { display: block; font: 400 36px/1.1 "Lilita One", sans-serif; margin: 2px 0; }
.kpis small { color: var(--ink-2); }
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.grid section, .two section { margin-bottom: 16px; }
.two { align-items: start; }
.needs li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.needs li:first-child { border: 0; }
.needs span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.needs a { font-weight: 600; color: var(--blue); }
.nextup { display: flex; gap: 14px; }
.nextup video, .nextup img { width: 92px; height: 164px; object-fit: cover; border-radius: 10px; background: var(--navy); flex: none; }
.nextup small { display: block; color: var(--ink-2); }
.nextup p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.chart { margin: 0; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart figcaption b { font: 400 21px "Lilita One"; }
.chart figcaption span { font-size: 14px; color: var(--ink-2); }
.chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.chart path { fill: var(--blue); }
.chart .hit { fill: transparent; }
.chart g:hover path { fill: var(--navy); }
.chart g:hover .hit { fill: rgba(43,51,88,.05); }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .base { stroke: rgba(43,51,88,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.chart details { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.chart summary { cursor: pointer; }
.chart td { padding: 4px 8px; }
.nochart { color: var(--ink-2); }
.nochart b { font: 400 21px "Lilita One"; color: var(--ink); }
.nochart p { margin: 6px 0 0; }
#tip { position: fixed; z-index: 20; background: var(--navy); color: #fff; font-size: 14px; padding: 5px 9px; border-radius: 7px; pointer-events: none; white-space: nowrap; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.hbars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars i { display: block; height: 12px; width: var(--w); min-width: 3px; background: var(--blue); border-radius: 0 4px 4px 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .hint { margin: 0; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--paper-2); border-radius: 12px; padding: 9px; min-height: 160px; }
.day.today { outline: 2px solid var(--gold); }
.day h3 { font: 400 17px "Lilita One"; margin: 0 0 7px; display: flex; justify-content: space-between; align-items: baseline; }
.day h3 small { font: 400 13px "Fredoka"; color: var(--ink-2); }
.day ul { display: grid; gap: 6px; }
.day li { background: var(--paper); border-radius: 8px; padding: 6px 8px; border-left: 4px solid var(--ink-2); font-size: 13px; line-height: 1.25; }
.day li.clip { border-left-color: var(--blue); box-shadow: none; border-top: 0; border-right: 0; border-bottom: 0; display: block; }
.day li.none { background: none; border: 0; color: var(--ink-2); padding: 0; }
.day time { color: var(--ink-2); display: block; }
.day b { display: block; font-weight: 600; }
.day span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
section details summary h2 { display: inline; }
section details summary { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font: 500 14px "Fredoka", sans-serif; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.clips { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.clip[hidden] { display: none; }
.clip b { display: flex; gap: 7px; align-items: center; font-weight: 600; line-height: 1.2; }
.clip em { font: 400 14px "Lilita One"; background: var(--gold); color: var(--navy); border-radius: 6px; padding: 2px 6px; flex: none; }
.clip span { font-size: 15px; line-height: 1.3; }
.leaders li { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.leaders li:first-child { border: 0; }
.leaders span { color: var(--ink-2); }
.leaders .sure { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--blue) var(--w), rgba(43,51,88,.1) 0); }
.leaders small { color: var(--ink-2); }
.launch { background: #7fb765; border: 0; }
.strip + h1 { margin-top: 18px; }
@media (max-width: 1100px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  aside nav { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  aside nav h4 { display: none; }
  aside nav a { white-space: nowrap; }
  .strip { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr 1fr; }
  .leaders li { grid-template-columns: 1fr 1fr; }
}
