@font-face {
    font-family: 'Risthiya Brush';
    src: url('/fonts/Risthiya Brush.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Scoped to body.app-shell, set conditionally in _Layout.cshtml, so these overrides only take
   effect where that class is present. Overriding Bootstrap's own CSS variables here re-themes
   buttons/cards/forms/tables everywhere at once, without touching each page individually. */
.app-shell {
  --bs-font-sans-serif: 'Playfair Display', Georgia, serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-primary: #7a2323;
  --bs-primary-rgb: 122, 35, 35;
  --bs-link-color: #7a2323;
  --bs-link-color-rgb: 122, 35, 35;
  --bs-link-hover-color: #591a1a;
  --bs-link-hover-color-rgb: 89, 26, 26;
  --bs-border-radius: 0.6rem;
  --bs-border-radius-sm: 0.4rem;
  --bs-border-radius-lg: 0.9rem;
  background-color: #f7f3ec;
}
.app-shell h1, .app-shell h2, .app-shell h3, .app-shell h4, .app-shell h5, .app-shell h6 {
  font-weight: 600;
  color: #591a1a;
  letter-spacing: -0.01em;
}
.app-shell .btn {
  font-weight: 500;
}
.app-shell .btn-primary {
  --bs-btn-bg: #7a2323;
  --bs-btn-border-color: #7a2323;
  --bs-btn-hover-bg: #591a1a;
  --bs-btn-hover-border-color: #591a1a;
  --bs-btn-active-bg: #591a1a;
  --bs-btn-active-border-color: #591a1a;
}
.app-shell .card, .app-shell .table {
  --bs-card-border-color: #e6dccb;
  --bs-table-border-color: #e6dccb;
}
.app-navbar {
  box-shadow: 0 1px 3px rgba(89, 26, 26, 0.08) !important;
}
.app-navbar-brand {
  font-weight: 700;
  color: #7a2323 !important;
  letter-spacing: -0.01em;
}
/* Admin menu opens on hover (desktop mouse convenience) in addition to Bootstrap's normal
   click/keyboard dropdown toggle, which still works unchanged for touch and keyboard users. */
.app-nav-dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}
.app-nav-dropdown .dropdown-menu {
  border-radius: var(--bs-border-radius);
  box-shadow: 0 8px 24px rgba(89, 26, 26, 0.14);
  border-color: #e6dccb;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Shared by tag-widget.js -- every icon-click tag control renders from this one set of rules
   instead of being duplicated per surface. */
.tag-widget-icons, .tag-solo {
  display: inline-flex;
  align-items: center;
}
.tag-solo {
  gap: 2px;
}
.tag-pair, .tag-solo {
  margin-right: 8px;
  margin-bottom: 4px;
  cursor: pointer;
}
.tag-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  padding: 2px;
}
/* A paired control is a single icon whose background color IS the state -- gray/first-color/
   second-color/split/red -- set inline by tag-widget.js instead of a selected/excluded ring. The
   icon itself is a transparent silhouette (single figure for first/second, both figures for
   both/none/neither) so the background color always shows through cleanly. */
.tag-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  vertical-align: middle;
}
.tag-pair .tag-icon {
  padding: 0;
}
.tag-icon-dim {
  opacity: 0.35;
}
.tag-icon-selected {
  opacity: 1;
  box-shadow: 0 0 0 2px #0d6efd;
}
.tag-icon-excluded {
  opacity: 1;
  filter: grayscale(70%);
  box-shadow: 0 0 0 2px #dc3545;
}