html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ---- Themeable colors (overridable from appsettings App:Colors) ----------
   Same variable names as the Ticket app so the look stays consistent across
   the estate. Status badges reuse Ticket's solved/open colours. */
:root {
  --app-primary: #0d6efd;
  --status-open:    #0d6efd;
  --status-solved:  #198754;
}

.badge.status-open   { background-color: var(--status-open);   color: #fff; }
.badge.status-solved { background-color: var(--status-solved); color: #fff; }

/* ---- Nav / footer: same shape as VikingWeb's gradient bar, recoloured.
   Change these three hues to rebrand the chrome. ---- */
.bc-navbar {
    background: linear-gradient(180deg, #1b6ec2 0%, #1861ac 55%, #12497f 100%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
    border-bottom: 3px solid #0e3a64;
}
.bc-navbar .navbar-brand img { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.bc-navbar .nav-link,
.bc-navbar .navbar-brand { text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); }
.bc-navbar .nav-link {
    border-radius: 6px;
    padding-left: 12px;
    padding-right: 12px;
    transition: background-color 0.15s ease;
}
.bc-navbar .nav-link:hover { background-color: rgba(255, 255, 255, 0.14); }
.navbar a:hover { color: lightskyblue !important; }

.bc-footer {
    background: linear-gradient(180deg, #12497f 0%, #1861ac 60%);
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.25);
    border-top: 3px solid #0e3a64;
    color: #fff;
    -webkit-text-fill-color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}
.footer { padding: 0 10px; }
a.footer:link { text-decoration: none; }
.underline-part:hover { text-decoration: underline !important; }

/* Footer sibling-site links */
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    justify-content: space-between;
    align-items: center;
}
.footer-links { white-space: nowrap; }
.bc-footer .footer-link,
.bc-footer .footer-link:link,
.bc-footer .footer-link:visited {
    color: #cfe4ff;
    -webkit-text-fill-color: #cfe4ff;
    text-decoration: none;
}
.bc-footer .footer-link:hover { color: #fff; -webkit-text-fill-color: #fff; text-decoration: underline; }

header { margin: 0; padding: 0; }
footer { margin: 0; padding: 0; }

/* No horizontal scrollbars anywhere: clip overflow instead of scrolling. */
html, body { overflow-x: hidden; }
main { overflow-x: hidden; }
.row { margin-left: 0; margin-right: 0; }
[class*="col-"] { min-width: 0; }

/* Home hero: subtle themed band, readable in light and dark. */
.bc-hero {
    background: var(--bs-primary-bg-subtle);
    border-radius: .5rem;
}

/* ---- Content editor (/admin, CmsKit): its pages use these names ---- */
.cms-admin {
  --muted: var(--bs-secondary-color);
  --border: var(--bs-border-color);
  --bg: var(--bs-body-bg);
  --fg: var(--bs-body-color);
  --accent: #6ea8fe;
  --accent-dim: #6ea8fe;
  --bad: #ea868f;
}
.cms-admin .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.cms-admin .card { padding: 1rem; }
.cms-admin .section-sub, .cms-admin .hint { color: var(--muted); }
.cms-admin .btn { background: var(--app-primary); color: #fff; }
.gate { display: flex; justify-content: center; padding: 60px 10px; }
.gate-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: .75rem; }
.gate-card h1 { font-size: 1.5rem; }
.gate-sub { color: var(--muted); margin: 0; }
.gate-bad { color: var(--bad); margin: 0; }
.gate-card input[type="password"] { padding: .6rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); }
.gate-card button { padding: .6rem; border-radius: 8px; border: 0; background: var(--app-primary); color: #fff; }

/* Sign out buttons that look like links, and the content editor (CmsKit) */
.cms-inline { display: inline; margin: 0; }
.cms-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}
.nav-links .cms-inline { margin-left: 1.5rem; }
.nav-links .cms-link { font-size: 0.95rem; color: var(--accent-dim); }
.nav-links .cms-link:hover, .cms-link:hover { color: var(--accent); }
.cms-bar { margin-bottom: 1rem; color: var(--muted); }
.cms-bar a { color: var(--accent); }
.cms-ok { color: var(--accent); margin-bottom: 1rem; }
.cms-form { max-width: 720px; }
.cms-field { margin-bottom: 1rem; }
.cms-field label { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.3rem; }
.cms-field input, .cms-field textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
