/* Shared visual and accessibility foundation, loaded after all theme styles. */
:root {
  --ss-ink: #172453;
  --ss-muted: #4d596b;
  --ss-brand: #1a2779;
  --ss-surface: #fff;
  --ss-bg: #f5f7fb;
  --ss-line: #c5cedb;
  --ss-accent: #92dce5;
  --ss-focus: #126181;
}
html {
  scroll-padding-top: 6rem;
}
body {
  background: var(--ss-bg);
  color: var(--ss-ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
main {
  min-width: 0;
}
.container,
.container-xxl {
  width: 100%;
  max-width: 1440px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
main > .container,
main > .container-xxl {
  margin-block: clamp(1.5rem, 4vw, 3rem);
}
.layout-page,
.content-wrapper,
.layout-container {
  min-width: 0;
}
.layout-navbar-full .layout-page {
  padding-top: 0 !important;
}
/* Template layout retained separately from the upstream Bootstrap distribution. */
.layout-wrapper,
.layout-container {
  display: flex;
  width: 100%;
  flex: 1 1 auto;
  align-items: stretch;
}
.layout-container {
  min-height: 100vh;
  flex-direction: column;
}
.layout-page {
  display: flex;
  flex: 1 1 auto;
  padding: 0;
}
.content-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
}
.content-backdrop,
.layout-overlay,
.drag-target {
  display: none;
}
.app-brand,
.app-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
}
.h-px-200 {
  height: 200px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ss-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
}
h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
p,
li,
td,
th {
  overflow-wrap: anywhere;
}
a {
  color: var(--ss-brand);
  text-underline-offset: 0.2em;
}
main p a,
footer a {
  text-decoration: underline;
}
.text-muted,
.text-body,
.form-text {
  color: var(--ss-muted) !important;
}
.text-danger,
.invalid-feedback {
  color: #a42030 !important;
}
.card {
  border: 1px solid var(--ss-line);
  border-radius: 1rem;
  box-shadow: 0 4px 18px #1724530b;
  overflow: visible;
}
.card-body,
.card-header,
.card-footer {
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid #e1e6ed;
}
.card-body .card-header {
  padding-inline: 0;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: normal;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.btn-primary,
.custom-login-register-btn,
.pricing-btn,
.custom-link-generate-btn {
  background: var(--ss-brand) !important;
  border-color: var(--ss-brand) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: #101a58 !important;
}
.btn-outline-secondary {
  color: #35435a;
  border-color: #66758a;
}
.btn-primary-custom {
  color: #142453 !important;
}
.btn-danger-custom {
  background: #f4ce6d !important;
  color: #292000 !important;
}
.btn-danger {
  background: #aa2534;
  border-color: #aa2534;
  color: #fff;
}
.form-control,
.form-select {
  min-height: 48px;
  font-size: 1rem;
  color: #172453;
  border-color: #7c899d;
  max-width: 100%;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ss-focus);
  box-shadow: 0 0 0 3px #12618125;
}
.form-control::placeholder {
  color: #596579;
  opacity: 1;
}
.form-floating > label,
.form-label,
.form-check-label {
  color: #35435a !important;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0;
  min-height: 44px;
}
.form-check .form-check-input {
  float: none;
  margin: 0;
  flex: none;
  min-width: 1.25rem;
  min-height: 1.25rem;
}
.form-check-label {
  padding-block: 0.4rem;
}
.form-password-toggle .input-group-text {
  min-width: 44px;
  min-height: 44px;
}
textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}
img,
video,
svg {
  max-width: 100%;
}
img {
  object-fit: contain;
}
:focus-visible {
  outline: 3px solid var(--ss-focus) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff !important;
}
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 1rem;
  z-index: 11000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #172453;
  border: 2px solid currentColor;
  border-radius: 0.5rem;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: relative;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--ss-line);
}
.site-header .navbar {
  min-height: 80px;
  gap: 0.75rem;
  padding-block: 0.75rem;
}
.site-header .navbar-brand {
  margin: 0 auto 0 0;
}
.site-header .navbar-brand img {
  width: auto;
  height: 52px;
  max-width: 180px;
}
.site-header .nav-link {
  color: var(--ss-brand);
  padding: 0.65rem 0.85rem !important;
  font-weight: 600;
  min-height: 44px;
  text-decoration: none;
}
.site-header .nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}
.site-header .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #7c899d;
  color: var(--ss-brand);
}
.site-header .dropdown-toggle {
  background: transparent;
}
.site-header .account-menu {
  margin-inline-start: auto;
}
.account-menu > summary {
  display: flex;
  cursor: pointer;
  list-style: none;
}
.account-menu > summary::-webkit-details-marker {
  display: none;
}
.account-menu-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 12rem;
  max-width: calc(100vw - 2rem);
  margin: 0.4rem 0 0;
  padding: 0.375rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ss-line);
  border-radius: 0.625rem;
  box-shadow: 0 0.5rem 1.5rem rgba(23, 36, 83, 0.12);
}
.account-menu-options form {
  margin: 0;
}
.account-menu-options li + li {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid #e5e9f0;
}
.account-menu-options .dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ss-ink);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.account-menu-options .dropdown-item:hover,
.account-menu-options .dropdown-item:focus-visible {
  background: #eef1fa;
  color: var(--ss-brand);
}
.account-menu[open] > .account-menu-options {
  display: block;
}
.account-nav {
  background: #fff;
  border-bottom: 1px solid var(--ss-line);
}
.account-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding-block: 0.65rem;
}
.account-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  color: var(--ss-brand);
  border-radius: 0.5rem;
  text-decoration: none;
}
.account-nav a[aria-current="page"] {
  background: var(--ss-brand);
  color: white;
}
.authentication-wrapper {
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 3rem) !important;
}
.authentication-wrapper .authentication-inner {
  width: 100%;
  max-width: 32rem !important;
}
.authentication-wrapper .d-flex.justify-content-between {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-py {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) !important;
}
.landing-hero {
  padding-block: clamp(1.5rem, 3vw, 2rem) !important;
}
.landing-hero-custom {
  max-width: 60rem;
  margin: auto;
}
.hero-title {
  line-height: 1.2;
}
.custom-hero-title {
  color: #64500e !important;
}
.custom-footer,
.custom-footer h1,
.custom-footer h2,
.custom-footer h3,
.custom-footer h4,
.custom-footer h5,
.custom-footer h6 {
  color: white !important;
}
.custom-footer a,
.custom-footer-link {
  color: #f4d47d !important;
}
.landing-footer .footer-bottom {
  background-color: var(--ss-brand) !important;
}
.landing-footer .custom-footer-link {
  font-weight: 800;
}
.custom-footer p {
  color: white;
}
.table-responsive {
  overflow-x: auto;
  max-width: 100%;
  border-radius: 0.5rem;
}
.table-responsive:focus-visible {
  outline-offset: -3px;
}
table {
  width: 100%;
}
.table-responsive table {
  min-width: 36rem;
}
.pricing-table {
  margin-top: 1.5rem;
}
.pricing-table th {
  color: #fff !important;
}
.pricing-table td,
.pricing-table th {
  padding: clamp(0.65rem, 1.5vw, 1rem);
}
.modal-dialog {
  margin: 1rem auto;
  width: calc(100% - 2rem);
  max-width: 36rem;
}
.modal-content {
  border-radius: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}
.modal-header,
.modal-footer {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.modal.show.custom-url-hidden {
  display: block;
}
.btn-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  background-size: 14px;
}
.error-summary,
.site-feedback {
  margin: 1rem auto;
  max-width: 85rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ss-line);
  border-radius: 0.75rem;
  background: #fff;
}
.error-summary {
  border-left: 5px solid #a42030;
}
.error-summary h2 {
  font-size: 1.2rem;
}
.status-message {
  min-height: 1.5em;
}
.misc-wrapper {
  padding: clamp(1rem, 5vw, 3rem);
  min-height: 100svh;
  text-align: center;
}
.misc-wrapper .misc-bg,
.misc-wrapper .misc-object {
  pointer-events: none;
}
.error-custom {
  font-size: clamp(3rem, 12vw, 6rem);
}
@media (max-width: 767.98px) {
  .card .row {
    margin-inline: 0;
  }
  .card .row > [class*="col-"] {
    min-width: 0;
  }
  .row {
    --bs-gutter-x: 1.25rem;
  }
  .content-wrapper {
    padding-inline: 0 !important;
  }
  .site-header .navbar-collapse {
    flex-basis: 100%;
  }
  .account-nav a {
    padding: 0.5rem 0.6rem;
  }
  .modal-footer > .btn {
    flex: 1;
  }
  .dataTables_wrapper .row {
    gap: 0.5rem;
  }
  .dataTables_length,
  .dataTables_filter {
    text-align: left !important;
  }
  .nav-pills {
    flex-wrap: wrap;
  }
  .card-header.d-flex {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  input,
  textarea,
  select {
    scroll-margin-block: 5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html.light-style body {
  color: var(--ss-ink);
  background: var(--ss-bg);
}
html.light-style .custom-footer .footer-theme-link,
html.light-style .custom-footer a {
  color: #f4d47d !important;
}
html.light-style label {
  color: #35435a;
}
.table-scroll-hint {
  color: var(--ss-muted);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}
.landing-footer .list-unstyled {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}
@media (max-width: 767.98px) {
  .landing-footer .list-unstyled {
    justify-content: flex-start;
  }
}
.card,
.modal-content,
.content-footer {
  color: var(--ss-ink);
}
#toast-container > .toast {
  opacity: 1;
  color: #fff;
  background-color: #172453;
}
#toast-container > .toast-success {
  background-color: #145638;
}
#toast-container > .toast-error {
  background-color: #8e1f2c;
}
#toast-container .toast-close-button {
  color: white;
  min-width: 32px;
  min-height: 32px;
}
.site-header .btn-outline-secondary {
  color: #35435a !important;
}
.form-control-plaintext,
.table td,
.dataTables_info,
.dataTables_length,
.dataTables_filter {
  color: var(--ss-ink) !important;
}
.content-footer a {
  color: var(--ss-brand);
}
.alert-warning {
  background: #fff3cf;
  color: #664600;
  border-color: #a58023;
}
.alert-danger {
  background: #fff0f1;
  color: #8e1f2c;
  border-color: #b03c4b;
}
.alert-info {
  background: #e9f4fb;
  color: #164e70;
  border-color: #39708e;
}
.alert-success {
  background: #eaf5ec;
  color: #235736;
  border-color: #457a54;
}
.landing-footer .footer-text,
.landing-footer .footer-link {
  opacity: 1 !important;
}
html.light-style .content-wrapper,
html.light-style .card,
html.light-style .card-body,
html.light-style .content-footer,
html.light-style .footer-container {
  color: var(--ss-ink) !important;
}
html.light-style .text-muted,
html.light-style .form-text {
  color: var(--ss-muted) !important;
  opacity: 1 !important;
}
html.light-style .alert-primary {
  background: #eceefa;
  color: #25336b;
  border-color: #6775a0;
}
.dataTables_wrapper .row > [class*="col"] {
  min-width: 0;
}
.dataTables_filter label {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.dataTables_filter input {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100%;
}

/* Balance the homepage hero between navigation and the message composer. */
.landing-hero .hero-title { margin-top: 0; }
.landing-hero .hero-description { margin: 1rem 0 0; }
.landing-hero + .landing-features { padding-top: 0 !important; }
.message-hero {
  padding-block: 1.25rem 0.875rem !important;
}
.message-hero .hero-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0;
}
.message-hero .hero-text-box {
  max-width: 56rem;
}
.message-compose-shell {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-block: 1.25rem;
}
.message-compose-guest {
  padding-top: 0;
  padding-bottom: 0;
}
.message-composer {
  overflow: hidden;
  border: 1px solid var(--ss-line);
  border-radius: 0.875rem;
  box-shadow: 0 0.4rem 1.75rem rgba(23, 36, 83, 0.06);
}
.message-composer-heading {
  padding: 1.25rem 1.5rem 0;
}
.message-composer-heading h1,
.message-composer-heading h2 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.message-composer-heading p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 0.9375rem;
}
.message-composer .card-body {
  padding: 1rem 1.5rem 1.25rem;
}
.message-composer .message-compose-form {
  margin-inline: calc(-0.5 * var(--bs-gutter-x));
}
.message-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}
.message-label-row small {
  color: var(--ss-muted);
  font-size: 0.8125rem;
}
.message-compose-form .form-label {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.message-label-row .form-label {
  margin-bottom: 0;
}
.message-compose-form .form-control {
  padding: 0.625rem 0.75rem;
}
.message-compose-form .message-text {
  min-height: 7rem;
  resize: vertical;
}
.message-compose-form #image_description {
  min-height: 4.5rem;
}
.message-compose-form .form-text {
  display: block;
  margin-top: 0.3rem;
  margin-bottom: 0;
  font-size: 0.8125rem;
}
.message-optional {
  color: var(--ss-muted);
  font-weight: 400;
}
.message-attachment {
  border: 1px solid var(--ss-line);
  border-radius: 0.5rem;
  background: #f7f9fd;
}
.message-attachment > summary {
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  color: var(--ss-ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.message-attachment summary small {
  margin-left: 0.5rem;
  color: var(--ss-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.message-attachment-fields {
  padding: 0.25rem 0.875rem 0.875rem;
}
.message-image-preview img {
  max-width: 100%;
  max-height: 10rem;
  margin-right: 0.5rem;
  border-radius: 0.375rem;
}
.message-link-options {
  display: flex;
  gap: 0.5rem;
}
.message-link-option {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--ss-line);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.message-link-option .form-check-input {
  flex-shrink: 0;
  float: none;
  margin: 0;
}
.message-link-option input:checked + span {
  color: var(--ss-brand);
  font-weight: 700;
}
.message-link-option:focus-within {
  outline: 2px solid var(--ss-focus);
  outline-offset: 2px;
}
.message-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.message-support-link {
  font-size: 0.875rem;
}
.message-introduction {
  max-width: 48rem;
  margin: 1rem auto 0;
  color: var(--ss-muted);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (max-width: 575.98px) {
  .message-composer-heading { padding: 1rem 1rem 0; }
  .message-composer .card-body { padding: 0.875rem 1rem 1rem; }
  .message-attachment summary small { display: block; margin: 0.25rem 0 0; }
  .message-actions { flex-wrap: wrap; }
  .message-actions > .btn { width: 100%; }
}
.secret-link-content { display: flex; flex-direction: column; gap: 1rem; }
.secret-link-content > p { margin: 0; }
.secret-link-help { padding-top: .5rem; }

/* Keep populated records readable inside their horizontal scroll region. */
.datatables-ajax-loader th,
.datatables-ajax-loader td { min-width: 8rem; overflow-wrap: normal; white-space: normal; }
.datatables-ajax-loader th:last-child,
.datatables-ajax-loader td:last-child { min-width: 12rem; }
.datatables-ajax-loader .message-click { min-width: 10rem; word-break: normal; overflow-wrap: normal; }
