/* Cavmir video publishing. Brand: burgundy #6B214B, copper accents, Ubuntu + Cormorant Garamond. No italics, no gold. */
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ubuntu-400.woff2) format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ubuntu-500.woff2) format('woff2'); }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ubuntu-700.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/cormorant-garamond.woff2) format('woff2'); }

:root {
  --burg: #6B214B; --burg-deep: #4a1636; --copper: #C26A3F; --ink: #1f1419; --muted: #5b4852;
  --line: #e6dbe1; --paper: #F8F5F0; --white: #ffffff; --ok: #1d6a39; --warn: #8a4b0f; --bad: #9b1c1c; --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; font-style: normal; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 'Ubuntu', system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--burg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: var(--r); z-index: 10; }
.skip:focus { left: 8px; }

.bar { background: var(--burg); color: #fff; border-bottom: 3px solid var(--copper); }
.bar .in { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bar .brand { display: block; line-height: 0; }
.bar .brand img { height: 22px; width: auto; display: block; }
.bar .label { font-weight: 500; letter-spacing: .02em; color: #f3e6ec; }
.bar nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: #fff; text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: #f6c9a9; text-decoration: underline; }

.banner { padding: 12px 24px; text-align: center; font-weight: 500; font-size: 15px; }
.banner.warn { background: #f8ecdf; color: #5c3108; }
.banner.bad { background: #f8e3e3; color: #6e1414; }
.banner.info { background: #efe6eb; color: var(--burg-deep); }

main { max-width: 780px; margin: 0 auto; padding: 48px 24px 72px; }
main.wide { max-width: 1240px; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--burg); line-height: 1.12; margin: 0 0 .45em; }
h1 { font-size: clamp(38px, 5.4vw, 56px); }
h2 { font-size: 31px; margin-top: 1.5em; }
h3 { font-size: 24px; margin-top: 1.1em; }
p { margin: 0 0 1em; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
ul.list { padding-left: 1.2em; margin: 0 0 1em; }
ul.list li { margin: .35em 0; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.err { color: var(--bad); font-weight: 500; }
.okc { color: var(--ok); font-weight: 500; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin: 22px 0; box-shadow: 0 1px 2px rgba(74, 22, 54, .06); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.notice { border-left: 4px solid var(--copper); background: #fff; padding: 14px 18px; border-radius: var(--r); margin: 20px 0; box-shadow: 0 1px 2px rgba(74, 22, 54, .05); }
.notice.ok { border-color: var(--ok); }
.notice.bad { border-color: var(--bad); }
.notice.warn { border-color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; margin: 20px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--burg); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; font-weight: 500; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; border-radius: 999px; border: 2px solid var(--burg); background: var(--burg); color: #fff; font: 500 16px/1.2 'Ubuntu', system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--burg-deep); border-color: var(--burg-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--burg); }
.btn.ghost:hover { background: var(--burg); color: #fff; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

label { display: block; font-weight: 500; margin: 16px 0 6px; }
input[type=text], input[type=url], input[type=password], input[type=datetime-local], input[type=number], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid #cdbcc6; border-radius: var(--r); font: 400 16px/1.45 'Ubuntu', system-ui, sans-serif; background: #fff; color: var(--ink);
}
textarea { min-height: 170px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 18px 0; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--burg); }
.counter { display: block; text-align: right; font-size: 13px; color: var(--muted); margin-top: 4px; }

video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--r); display: block; }
.ai-note { background: #f5eef2; border-radius: var(--r); padding: 12px 14px; font-size: 15px; color: var(--burg-deep); margin: 16px 0; }
.when { font-weight: 500; margin: 14px 0 0; }
.channel-line { margin: 0 0 1em; }

.yt-credit { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.yt-credit.text { display: inline-block; }
.yt-credit img { display: block; height: 36px; width: auto; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: #efe6eb; color: var(--burg); white-space: nowrap; }
.pill.ok { background: #e3f1e8; color: var(--ok); }
.pill.bad { background: #f8e3e3; color: var(--bad); }
.pill.warn { background: #f8ecdf; color: var(--warn); }
.mono { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }

footer.site { border-top: 1px solid var(--line); background: #fff; }
footer.site .in { max-width: 1120px; margin: 0 auto; padding: 28px 24px 34px; font-size: 15px; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
footer.site p { margin: 0; }

/* staff page */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 24px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 15px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.tabs button { min-height: 40px; }
.tabs button[aria-selected=true] { background: var(--burg); color: #fff; }
pre.log { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 13px; max-height: 360px; overflow: auto; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 32px 18px 56px; }
  .card { padding: 18px; }
  .bar .in { padding: 14px 18px; }
}
