/* useful.mantis.live – one stylesheet for the whole site.
   Matches the "Studio" brand (mantisbroadcast.co.uk/redesigns/studio.html):
   primary #274755, secondary #D3D800, coral #FB6F64, steel #749BB1 */

:root {
  --ink: #0d1b21;        /* page background */
  --ink-2: #10242c;      /* raised band */
  --panel: #12262f;      /* cards */
  --deep: #091419;       /* footer */
  --slate: #274755;
  --lime: #d3d800;
  --coral: #fb6f64;
  --steel: #749bb1;
  --text: #e9eef1;
  --muted: #9fb3bf;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --radius: 18px;
  --wrap: min(1240px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ---------- Eyebrow (lime triangle + caps) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0;
}
.eyebrow::before {
  content: "";
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--lime);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 27, 33, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand img { height: 32px; width: auto; }
.brand span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
  border-left: 1px solid var(--line-2);
  padding-left: 14px;
}
.brand:hover { color: #fff; }

.site-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.site-nav a {
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--lime); }
.site-nav a[aria-current="page"] { background: var(--lime); color: var(--ink); }

@media (max-width: 640px) {
  .site-header .wrap { gap: 12px; height: 60px; }
  .brand img { height: 24px; }
  .brand span { display: none; }
  .site-nav { gap: 0; min-width: 0; overflow-x: auto; }
  .site-nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; text-transform: capitalize; }
  .search kbd { display: none; }
  .hide-sm { display: none; }
}

/* ---------- Page ---------- */
main { flex: 1; padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px); }

.page-head { margin-bottom: clamp(28px, 4vw, 44px); }
.page-head h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
}
.page-head h1 span { color: var(--lime); }
.page-head p { margin: 0; max-width: 620px; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }

/* "On air" tally pill */
.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
}
.live i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral);
  animation: tally 1.8s infinite;
}
@keyframes tally {
  0% { box-shadow: 0 0 0 0 rgba(251, 111, 100, .7); }
  70% { box-shadow: 0 0 0 10px rgba(251, 111, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 111, 100, 0); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--muted); font-size: 14px; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer img { height: 22px; width: auto; }
.site-footer a { color: var(--text); border-bottom: 1px solid var(--lime); }
.site-footer a:hover { color: var(--lime); }

/* ---------- Search ---------- */
.search { display: block; position: relative; margin-bottom: clamp(36px, 5vw, 56px); }
.search input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  padding: 18px 56px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: #fff;
  transition: border-color .25s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--lime); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search svg {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--lime); pointer-events: none;
}
.search kbd {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 12px ui-monospace, Menlo, monospace;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 2px 8px;
}

/* ---------- Link sections ---------- */
.group { margin-bottom: clamp(36px, 5vw, 56px); }
.group h2 { margin-bottom: 18px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .35s, transform .35s;
}
.tile:hover { border-color: rgba(211, 216, 0, .5); transform: translateY(-4px); color: var(--text); }
.tile:hover .tile-icon { background: var(--lime); color: var(--ink); }
.tile:hover .tile-ext { color: var(--lime); }

.tile-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--slate);
  color: var(--lime);
  transition: background .25s, color .25s;
}
.tile-icon svg { width: 21px; height: 21px; }

.tile-body { min-width: 0; padding-right: 10px; }
.tile-title { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.3; color: #fff; }
.tile-desc { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.tile-meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--steel);
  border-radius: 4px;
  padding: 2px 8px;
}
.tile-ext {
  position: absolute; top: 16px; right: 16px;
  width: 15px; height: 15px; color: rgba(255, 255, 255, .25);
  transition: color .25s;
}

.empty { color: var(--muted); padding: 24px 0; display: none; }
.empty.show { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { background: #e4e93a; color: var(--ink); transform: translateY(-2px); }
.btn.secondary { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.secondary:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Video page ---------- */
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) { .player-layout { grid-template-columns: 1fr; } }

.player {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
@media (max-width: 960px) { .player { position: static; } }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.player-info { padding: 20px 22px 22px; display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.player-info h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #fff; flex: 1 1 100%; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  background: rgba(255, 255, 255, .06); color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 4px; padding: 2px 9px;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.playlist { display: flex; flex-direction: column; gap: 10px; }
.playlist button {
  display: flex; gap: 14px; align-items: center;
  width: 100%;
  padding: 8px;
  font: inherit; text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  transition: border-color .25s;
}
.playlist button:hover { border-color: rgba(211, 216, 0, .5); }
.playlist button[aria-current="true"] { border-color: var(--lime); background: #18303a; }
.playlist button[aria-current="true"] strong { color: var(--lime); }
.playlist img { width: 124px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; flex: none; background: #000; }
.playlist strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: #fff; }
.playlist small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--lime); color: var(--ink); font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Guide page ---------- */
.prose { max-width: 900px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 8px; }
.card li::marker { color: var(--lime); }
.card a { border-bottom: 1px solid rgba(211, 216, 0, .5); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col .card { margin-bottom: 0; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.two-col + .card, .card + .two-col { margin-top: 18px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.figures a { display: block; border-radius: 12px; overflow: hidden; border: 0; background: #fff; }
.figures img { transition: transform .6s; }
.figures a:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .figures { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Printing the presenter guide: plain black on white */
@media print {
  .site-header, .site-footer, .no-print { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-head h1, .card h2 { color: #000; }
  .page-head p, .card p { color: #333; }
  .eyebrow { color: #274755; }
  .eyebrow::before { border-top-color: #274755; }
  .card { background: #fff; border: 1px solid #ccc; break-inside: avoid; }
  .card a { color: #274755; }
}
