/* NCCG admin panel */
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
/* Theme colour: --color-brand-* is printed by the page from Admin → Settings. Defaults below. */
:root {
  --color-brand-50: #F5F5F5; --color-brand-100: #E9E9EA; --color-brand-200: #CECFD0; --color-brand-300: #A9ABAE; --color-brand-500: #54565C;
  --color-brand-600: #33363D; --color-brand-700: #2B2E34; --color-brand-900: #1C1E22; --color-brand-950: #141619;
  --ink: var(--color-brand-600); --ink-2: var(--color-brand-700);
  --bg: color-mix(in srgb, var(--color-brand-50) 70%, #FFFFFF); --card: #fff; --soft: color-mix(in srgb, var(--color-brand-50) 50%, #FFFFFF);
  --line: color-mix(in srgb, var(--color-brand-200) 65%, #FFFFFF); --text: color-mix(in srgb, var(--color-brand-950) 75%, #111111);
  --muted: color-mix(in srgb, var(--color-brand-600) 55%, #5F6368);
  --red: #CE1126; --gold: #FCD116; --green: #006B3F; --accent: #B8860B; --accent-fg: #1C1E22; --r: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.5 "Source Sans 3", system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2 { margin: 0; line-height: 1.1; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.icon { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: rgba(255,255,255,.86); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 10px; font: 800 1.375rem "Big Shoulders Display", sans-serif; color: #fff; text-decoration: none; padding: 4px 8px 16px; }
.side__site { display: grid; gap: 4px; padding: 12px 8px; margin-bottom: 8px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.side__site label { font-size: .8125rem; color: rgba(255,255,255,.62); }
.side__site select { padding: 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: var(--ink-2); color: #fff; }
.side__nav { display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; text-decoration: none; }
.side__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side__nav a.is-active { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.side__h { margin: 14px 10px 4px; font-size: .8125rem; color: rgba(255,255,255,.6); }
.count { margin-left: auto; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__view { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.top__user { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top__user a { font-weight: 600; text-decoration: none; }
.top__user form { margin: 0; }
.iconbtn.menu-btn { display: none; }
.content { padding: 28px 24px 60px; max-width: 1200px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .side-open .side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.3); }
  .iconbtn.menu-btn { display: inline-grid; }
  .content { padding: 20px 14px 60px; }
  .top { padding: 0 10px; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font: 800 2.25rem/1 "Big Shoulders Display", sans-serif; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head__actions form { margin: 0; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-weight: 600; }
.eyebrow a { text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn--accent:hover { filter: brightness(1.05); border-color: var(--accent); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 32px; padding: 4px 10px; font-size: .875rem; }
.btn--block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--bg); }
.iconbtn--danger:hover { background: #FDE8EB; color: var(--red); }

.alert { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 6px; margin: 0 0 18px; font-weight: 600; }
.alert--ok { background: #E3F2EA; border-left: 4px solid var(--green); }
.alert--err { background: #FDE8EB; border-left: 4px solid var(--red); }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: grid; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; border-top: 3px solid var(--accent); }
.kpi span { color: var(--muted); font-size: .875rem; }
.kpi strong { font: 800 2.25rem/1.1 "Big Shoulders Display", sans-serif; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1000px) { .grid2 { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.grid2 .panel { margin-bottom: 0; }
.panel h2 { font: 800 1.375rem "Big Shoulders Display", sans-serif; margin-bottom: 12px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel__head h2 { margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border: 0; }
.plain a { text-decoration: none; font-weight: 600; }
.plain a:hover { text-decoration: underline; }
.plain .muted { flex: none; font-size: .875rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: middle; }
.liverow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.liverow > div { display: grid; }
.liverow form { display: flex; align-items: center; gap: 8px; margin: 0; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--muted); }
.badge--ok, .badge--published { background: #E3F2EA; color: var(--green); }
.badge--draft, .badge--scheduled { background: #FFF6D6; color: #7A5B00; }
.badge--live { background: var(--red); color: #fff; }
.badge--ended { background: var(--bg); }

.searchbar { display: flex; gap: 8px; margin-bottom: 16px; max-width: 560px; }
.searchbar input { flex: 1; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .8125rem; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--soft); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--soft); }
.table .right { text-align: right; }
.table tr.unread { font-weight: 600; }
.rowlink { font-weight: 700; text-decoration: none; }
.rowlink:hover { text-decoration: underline; }
.actions { white-space: nowrap; }
.actions > * { display: inline-flex; vertical-align: middle; }
.actions form { margin: 0; }
.td-thumb { width: 72px; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--bg); display: block; }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 3px 0; }
  .table td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8125rem; }
  .table .right { text-align: left; }
}
.pager { display: flex; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.pager__item { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--card); }
.pager__item.is-current { background: var(--ink); color: #fff; }
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty p { margin: 0; }

/* forms */
.form { display: grid; gap: 0; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel .form__grid { border: 0; padding: 0; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form__grid { grid-template-columns: 1fr; padding: 16px; } }
.field > label, .field > span { font-weight: 700; font-size: .9375rem; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.field input[type=color] { width: 80px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; }
.field textarea { resize: vertical; }
.field--check label { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; padding-top: 24px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--green); }
.req { color: var(--red); }
.help { color: var(--muted); font-size: .8125rem; }
.error { color: var(--red); font-style: normal; font-weight: 600; font-size: .875rem; }
.has-error input, .has-error select, .has-error textarea, .has-error .rte { border-color: var(--red) !important; }
.form__actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; gap: 6px; align-items: center; font-weight: 400; cursor: pointer; }
.narrow { max-width: 480px; display: grid; gap: 14px; }

.upload { display: grid; gap: 8px; }
.upload__current { display: flex; align-items: center; gap: 14px; }
.upload img[data-preview] { max-height: 140px; width: auto; border-radius: 6px; border: 1px solid var(--line); }
.upload__current a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.upload__remove { display: flex; gap: 6px; align-items: center; color: var(--red); font-weight: 600; cursor: pointer; }
.drop { position: relative; display: grid; place-items: center; text-align: center; padding: 18px; border: 2px dashed var(--line); border-radius: 8px; background: var(--soft); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #FFFBEA; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop span { display: grid; justify-items: center; gap: 4px; color: var(--muted); }
.drop strong { color: var(--text); }
.drop--big { padding: 36px 18px; margin-bottom: 8px; }
.drop--big .icon { width: 36px; height: 36px; }
.rot { transform: rotate(180deg); }

/* rich text */
.rte { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.rte__bar { border-radius: 6px 6px 0 0; }
.rte__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: var(--soft); border-bottom: 1px solid var(--line); position: sticky; top: 60px; z-index: 2; }
.rte__bar button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px; background: none; cursor: pointer; font-size: .875rem; }
.rte__bar button:hover { background: #fff; border-color: var(--line); }
.rte__bar button.is-on { background: var(--ink); color: #fff; }
.rte__area { min-height: 280px; padding: 14px 16px; outline: none; font-size: 1.0625rem; line-height: 1.6; }
.rte__area:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.rte__area h2, .rte__area h3 { font-family: "Big Shoulders Display", sans-serif; margin: 1em 0 .4em; }
.rte__area img { max-width: 100%; height: auto; border-radius: 6px; }
.rte__area blockquote { border-left: 4px solid var(--accent); margin: 1em 0; padding-left: 1em; }
.rte__src:not([hidden]) { display: block; width: 100%; min-height: 280px; border: 0; padding: 14px; font: .875rem/1.5 ui-monospace, monospace; }

/* media manager */
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mitem { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--soft); }
.mitem__img { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #000; }
.mitem__img img, .mitem__img video { width: 100%; height: 100%; object-fit: cover; }
.mitem__img .badge { position: absolute; top: 6px; left: 6px; }
.mitem input:not([type]) , .mitem input[name^=title] { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; }
.mitem__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8125rem; }
.mitem__row input[type=number] { width: 54px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 4px; }
.mitem__row label { display: flex; gap: 4px; align-items: center; }
.danger { color: var(--red); font-weight: 600; }

.meta { display: grid; gap: 8px; margin: 0 0 18px; }
.meta div { display: flex; gap: 10px; }
.meta dt { width: 90px; color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; }
.msgbody { padding: 18px; background: var(--soft); border-radius: 6px; font-size: 1.0625rem; white-space: normal; }

/* login */
.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: var(--ink); }
.login__card { width: min(420px, 100%); display: grid; gap: 14px; padding: 32px; background: #fff; border-radius: 12px; position: relative; overflow: hidden; }
.login__flag { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px; }
.login__flag span:nth-child(1) { background: var(--red); } .login__flag span:nth-child(2) { background: var(--gold); } .login__flag span:nth-child(3) { background: var(--green); }
.login h1 { font: 800 2rem "Big Shoulders Display", sans-serif; }
.login p { margin: 0; }
.login .btn { min-height: 46px; }

.chipsrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.intro { max-width: 70ch; color: var(--muted); margin: -8px 0 16px; }
/* registrations */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 150px; }
.filters .field--grow { flex: 1 1 220px; }
.badge--received { background: #FFF6D6; color: #7A5B00; }
.badge--reviewing { background: #E3EEFB; color: #1F4E8C; }
.badge--approved { background: #E3F2EA; color: var(--green); }
.badge--declined { background: #FDE8EB; color: var(--red); }
.regview { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .regview { grid-template-columns: 1fr; } }
.answers { display: grid; gap: 0; margin: 0; }
.answers div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.answers dt { color: var(--muted); }
.answers dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.answers h3 { font: 800 1.125rem "Big Shoulders Display", sans-serif; margin: 18px 0 4px; grid-column: 1 / -1; }
@media (max-width: 600px) { .answers div { grid-template-columns: 1fr; gap: 2px; } }
.regphoto { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.refline { font: 700 1.125rem ui-monospace, monospace; letter-spacing: .02em; }
.portalnote { padding: 10px 12px; background: var(--soft); border-radius: 6px; font-size: .9375rem; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line); vertical-align: middle; }
.scale { display: flex; gap: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin-top: 6px; }
.scale span { flex: 1; height: 28px; }
