﻿:root {
  /* Classic GetMyLinks blues */
  --gml-blue: #27A3FF;
  --gml-blue-dark: #1a7ec9;
  --gml-blue-deep: #2461BF;
  --gml-blue-light: #7EC8F0;
  --gml-sky: #EFF3FB;
  --gml-row-alt: #E3F2FC;
  --gml-cream: #F5FAFF;
  --gml-border: #A8D4F0;
  --gml-link: #0b5ed7;

  /* Aliases so older green token names still resolve to blue */
  --gml-green: var(--gml-blue);
  --gml-green-dark: var(--gml-blue-dark);
  --gml-lime: var(--gml-blue-light);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  margin-bottom: 0;
  background: linear-gradient(180deg, #fff 0%, var(--gml-cream) 220px, #fff 420px);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.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 rgba(39, 163, 255, 0.4);
}

.site-header {
  padding-top: 0.75rem;
}

.site-logo-bar {
  margin-bottom: 0.55rem;
}

.site-logo-link {
  display: inline-block;
  line-height: 0;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.site-logo {
  display: block;
  height: auto;
  width: min(380px, 42vw);
  max-height: 68px;
  object-fit: contain;
}

/* Tablet: hamburger range (< xl) â€” smaller wordmark */
@media (max-width: 1199.98px) {
  .site-logo {
    width: min(240px, 55vw);
    max-height: 48px;
  }
  .site-logo-bar {
    margin-bottom: 0.35rem;
  }
}

/* Phone */
@media (max-width: 575.98px) {
  .site-logo {
    width: min(180px, 52vw);
    max-height: 36px;
  }
  .site-logo-bar {
    margin-bottom: 0.25rem;
  }
}

.site-logo-dark { display: none; }
[data-bs-theme="dark"] .site-logo-light { display: none; }
[data-bs-theme="dark"] .site-logo-dark { display: block; }

.site-header-profile .site-logo-bar {
  margin-bottom: 0.25rem;
}

.navbar-gml {
  background: transparent !important;
  border-bottom: 1px solid var(--gml-border, rgba(0, 0, 0, 0.08));
  padding-top: 0.35rem;
  padding-bottom: 0.65rem;
}

.navbar-gml .nav-link.nav-btn,
.navbar-gml .btn-link.nav-btn {
  font-family: "Fredoka", system-ui, sans-serif;
  color: #fff !important;
  background: var(--gml-blue, #27a3ff);
  border: 1.5px solid var(--gml-blue-dark, #1b86d6);
  border-radius: 0.375rem;
  padding: 0.375rem 0.85rem !important;
  margin: 0.15rem 0;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 1px 2px rgba(10, 90, 156, 0.18);
}

.navbar-gml .nav-link.nav-btn:hover,
.navbar-gml .btn-link.nav-btn:hover {
  color: #fff !important;
  background: var(--gml-blue-deep, #0a5a9c);
  border-color: var(--gml-blue-deep, #0a5a9c);
}

.navbar-gml .navbar-toggler {
  border-color: var(--gml-blue, #27a3ff);
}

.navbar-gml .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2327A3FF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-gml-primary {
  background: linear-gradient(180deg, var(--gml-blue-light), var(--gml-blue));
  border: 1px solid var(--gml-blue-dark);
  color: #fff;
  font-weight: 600;
}

.btn-gml-primary:hover {
  background: linear-gradient(180deg, var(--gml-blue), var(--gml-blue-deep));
  color: #fff;
  border-color: var(--gml-blue-deep);
}

.btn-outline-primary {
  color: var(--gml-blue-dark);
  border-color: var(--gml-blue);
}

.btn-outline-primary:hover {
  background: var(--gml-blue);
  border-color: var(--gml-blue-dark);
  color: #fff;
}

.gml-hero {
  background: linear-gradient(135deg, #b3e0ff, var(--gml-blue));
  border: 1px solid var(--gml-border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 24px rgba(26, 126, 201, 0.18);
  color: #06365c;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--gml-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.stat-label {
  color: #667;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gml-blue-deep);
}

.profile-card {
  background: #fff;
  border: 1px solid var(--gml-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  overflow: visible;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.profile-card .link-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.profile-card .link-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #e8f4fc;
  border: 1px solid #c5dff0;
  text-decoration: none;
  color: var(--gml-link);
  font-weight: 600;
}

.profile-card .link-row:hover {
  background: #d7eefc;
  color: #084298;
  text-decoration: underline;
}

.profile-card .link-favicon,
.profile-card .link-favicon-spacer {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.profile-card .link-label {
  text-decoration: underline;
  word-break: break-word;
}

.link-favicon-inline {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.site-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 1.5rem;
}

.site-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 1.5rem;
}

.footer {
  position: relative !important;
  bottom: auto !important;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 0;
  padding: 1.25rem 0 1.5rem;
  line-height: 1.45;
  white-space: normal !important;
  background: #fff;
  color: #6c757d;
  border-top: 1px solid var(--gml-border);
  z-index: 1;
}

.bio-html {
  line-height: 1.45;
  overflow-x: hidden;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bio-html p { margin-bottom: 0.35rem; }

.bio-html img,
.bio-html video,
.bio-html iframe,
.bio-html table {
  max-width: 100% !important;
  height: auto !important;
}

.bio-html img {
  display: block;
  width: auto;
  margin: 0.75rem auto;
  border-radius: 8px;
}

/* Quill bio image size presets (saved on the <img> class) */
.bio-html img.bio-img-sm,
#bio-editor img.bio-img-sm { width: 25% !important; max-width: 180px !important; }
.bio-html img.bio-img-md,
#bio-editor img.bio-img-md { width: 50% !important; max-width: 320px !important; }
.bio-html img.bio-img-lg,
#bio-editor img.bio-img-lg { width: 75% !important; max-width: 480px !important; }
.bio-html img.bio-img-full,
#bio-editor img.bio-img-full { width: 100% !important; max-width: 100% !important; }

.bio-img-size-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--gml-border, #cfe3f5);
  border-radius: 0.5rem;
}
.bio-img-size-bar.is-visible { display: flex; }
.bio-img-size-bar .bio-img-size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #06365c;
  margin-right: 0.25rem;
}
.bio-img-size-bar button {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #27a3ff;
  background: #fff;
  color: #0a5a9c;
  padding: 0.2rem 0.55rem;
}
.bio-img-size-bar button.is-active,
.bio-img-size-bar button:hover {
  background: #27a3ff;
  color: #fff;
}
#bio-editor img.bio-img-selected {
  outline: 2px solid #27a3ff;
  outline-offset: 2px;
}

.profile-card .profile-photo-full {
  max-width: min(100%, 320px);
  width: auto;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--gml-border, #dee2e6);
  background: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Browse zebra helpers (also set inline on the page) */
.browse-list .list-group-item:nth-child(odd) {
  background-color: var(--gml-sky);
}
.browse-list .list-group-item:nth-child(even) {
  background-color: #fff;
}

/* ---------- Dark mode (Bootstrap 5.3 data-bs-theme) ---------- */
[data-bs-theme="dark"] {
  --gml-blue: #4db3ff;
  --gml-blue-dark: #2b8fd9;
  --gml-blue-deep: #7ec8f0;
  --gml-blue-light: #1a5f8f;
  --gml-sky: #1a2332;
  --gml-row-alt: #15202b;
  --gml-cream: #0f1620;
  --gml-border: #2f4a63;
  --gml-link: #6ec1ff;
  --gml-green: var(--gml-blue);
  --gml-green-dark: var(--gml-blue-dark);
  --gml-lime: var(--gml-blue-light);
  color-scheme: dark;
}

[data-bs-theme="dark"] body {
  background: linear-gradient(180deg, #0f141c 0%, #15202b 220px, #0f141c 420px);
  color: #e7eef7;
}

[data-bs-theme="dark"] .navbar-gml {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .navbar-gml .nav-link.nav-btn,
[data-bs-theme="dark"] .navbar-gml .btn-link.nav-btn {
  color: #0a2d48 !important;
  background: #7ecfff;
  border-color: #4db8ff;
}

[data-bs-theme="dark"] .navbar-gml .nav-link.nav-btn:hover,
[data-bs-theme="dark"] .navbar-gml .btn-link.nav-btn:hover {
  color: #031825 !important;
  background: #a8e0ff;
  border-color: #a8e0ff;
}

[data-bs-theme="dark"] .btn-gml-primary {
  background: linear-gradient(180deg, #3aa0e8, #1f78c2);
  border-color: #15609a;
  color: #fff;
}

[data-bs-theme="dark"] .btn-gml-primary:hover {
  background: linear-gradient(180deg, #4db3ff, #1a6fb3);
  color: #fff;
}

[data-bs-theme="dark"] .gml-hero {
  background: linear-gradient(135deg, #1a3a55, #155a94);
  border-color: var(--gml-border);
  color: #e7eef7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .stat-card,
[data-bs-theme="dark"] .profile-card {
  background: #15202b;
  border-color: var(--gml-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .stat-value {
  color: var(--gml-blue-deep);
}

[data-bs-theme="dark"] .profile-card .link-row {
  background: #1a2c3d;
  border-color: #2f4a63;
  color: var(--gml-link);
}

[data-bs-theme="dark"] .profile-card .link-row:hover {
  background: #22384d;
  color: #9ad0ff;
}

[data-bs-theme="dark"] .site-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 1.5rem;
}

[data-bs-theme="dark"] .footer {
  background: #0f141c !important;
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #c5d0dc !important;
}

[data-bs-theme="dark"] .profile-card .profile-photo-full {
  border-color: var(--gml-border);
  background: #0f141c;
}

[data-bs-theme="dark"] .list-group-item {
  background-color: #15202b;
  border-color: var(--gml-border);
  color: #e7eef7;
}

[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e7eef7;
  --bs-table-border-color: var(--gml-border);
  --bs-table-striped-bg: #1a2332;
  --bs-table-hover-bg: #1f2d3d;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #0f141c;
  border-color: var(--gml-border);
  color: #e7eef7;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #0f141c;
  border-color: var(--gml-blue);
  color: #e7eef7;
}
[data-bs-theme="dark"] {
  --bs-form-check-bg: #0f141c;
}
[data-bs-theme="dark"] .form-check-input {
  --bs-form-check-bg: #0f141c;
  background-color: #0f141c !important;
  border-color: var(--gml-border) !important;
}
[data-bs-theme="dark"] .form-check-input:focus {
  background-color: #0f141c !important;
  border-color: var(--gml-blue) !important;
  box-shadow: 0 0 0 0.1rem #0f141c, 0 0 0 0.25rem rgba(77, 179, 255, 0.35);
}
[data-bs-theme="dark"] .form-check-input:checked {
  background-color: var(--gml-blue) !important;
  border-color: var(--gml-blue-dark) !important;
}



/* Browse page dark overrides (inline light colors on the page) */
[data-bs-theme="dark"] .browse-username {
  color: #6ec1ff;
}
[data-bs-theme="dark"] .browse-username:hover,
[data-bs-theme="dark"] .browse-username:focus-visible {
  color: #9ad0ff;
  background: rgba(77, 179, 255, 0.12);
}
[data-bs-theme="dark"] .browse-bio {
  color: #9aa8b8;
}
[data-bs-theme="dark"] .browse-link {
  color: #6ec1ff;
  background: rgba(77, 179, 255, 0.1);
}
[data-bs-theme="dark"] .browse-link:hover,
[data-bs-theme="dark"] .browse-link:focus-visible {
  color: #9ad0ff;
  background: rgba(77, 179, 255, 0.18);
}
[data-bs-theme="dark"] .browse-list .list-group-item {
  border-color: #2f4a63;
}
[data-bs-theme="dark"] .browse-list .list-group-item:nth-child(odd) {
  background-color: #1a2332;
}
[data-bs-theme="dark"] .browse-list .list-group-item:nth-child(even) {
  background-color: #121a24;
}
[data-bs-theme="dark"] .browse-list .list-group-item.browse-list-header {
  background: #1a6fb3 !important;
  border-color: #155a94;
}
[data-bs-theme="dark"] .profile-avatar,
[data-bs-theme="dark"] .profile-avatar-fallback {
  background: #1a2332;
  box-shadow: 0 0 0 1px #2f4a63;
  border-color: #15202b;
}
[data-bs-theme="dark"] .profile-avatar-fallback {
  color: #6ec1ff;
}
[data-bs-theme="dark"] .roloLink {
  color: #6ec1ff;
}
[data-bs-theme="dark"] .roloLink:hover {
  color: #fff;
  background-color: #1a6fb3;
}
[data-bs-theme="dark"] .roloLink.active {
  background: #155a94;
  color: #fff;
}

/* Quill editor on Edit Profile */
[data-bs-theme="dark"] #bio-editor,
[data-bs-theme="dark"] #bio-editor .ql-editor {
  background: #0f141c;
  color: #e7eef7;
}
[data-bs-theme="dark"] .ql-toolbar.ql-snow,
[data-bs-theme="dark"] .ql-container.ql-snow {
  border-color: var(--gml-border);
}
[data-bs-theme="dark"] .ql-snow .ql-stroke {
  stroke: #c5d4e4;
}
[data-bs-theme="dark"] .ql-snow .ql-fill {
  fill: #c5d4e4;
}
[data-bs-theme="dark"] .ql-snow .ql-picker {
  color: #c5d4e4;
}

/* Theme toggle â€” icon only, matches compact toolbar control */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0 !important;
  border: 1.5px solid var(--gml-blue-dark, #1b86d6);
  border-radius: 999px;
  background: var(--gml-blue, #27a3ff);
  box-shadow: 0 1px 2px rgba(10, 90, 156, 0.18);
  line-height: 0;
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--gml-blue-deep, #0a5a9c);
  border-color: var(--gml-blue-deep, #0a5a9c);
}
/* Dark mode: deep button so the yellow sun pops */
[data-bs-theme="dark"] .theme-toggle {
  background: #0b1522;
  border-color: #3d4f66;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] .theme-toggle:hover {
  background: #142033;
  border-color: #5a7a9a;
}
.theme-toggle .theme-toggle-moon { filter: none; }
[data-bs-theme="dark"] .theme-toggle .theme-toggle-sun {
  filter: drop-shadow(0 0 2px rgba(245, 197, 24, 0.55));
}
.theme-toggle-img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Mask Google reCAPTCHA white iframe chrome in dark mode (esp. bottom edge) */
.recaptcha-wrap {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

[data-bs-theme="dark"] .recaptcha-wrap {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 74px;
  border-radius: 3px;
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px #3c4043;
  /* Hard-clip any white bleed from the iframe */
  clip-path: inset(0 round 3px);
}

[data-bs-theme="dark"] .recaptcha-wrap .g-recaptcha {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 308px;
  transform: scale(1.04);
  transform-origin: top left;
}

[data-bs-theme="dark"] .recaptcha-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #1f1f1f;
  pointer-events: none;
  z-index: 2;
}

[data-bs-theme="dark"] .recaptcha-wrap iframe {
  background: #1f1f1f !important;
}

/* Brand logo in navbar */
@media (min-width: 576px) {
  }

/* Home three-column layout (classic-inspired) */
.home-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
}
.home-col {
  flex: 1 1 280px;
  min-width: 0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.home-col-signup {
  background: linear-gradient(160deg, var(--gml-blue-light), var(--gml-blue));
  color: #06365c;
  border: 1px solid var(--gml-border);
}
.home-col-signup h2 { color: inherit; }
.home-col-signup .btn-light,
.home-col-signup .btn-outline-light {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  color: #06365c !important;
  background: #fff;
  border-color: #fff;
}
.home-col-signup .btn-outline-light {
  background: transparent;
  color: #06365c !important;
  border-color: rgba(6, 54, 92, 0.45);
}
[data-bs-theme="dark"] .home-col-signup .btn-light {
  color: #0a2d48 !important;
  background: #fff !important;
  border-color: #fff;
}
[data-bs-theme="dark"] .home-col-signup .btn-outline-light {
  color: #e7eef7 !important;
  border-color: rgba(231, 238, 247, 0.55);
  background: transparent;
}
.home-col-copy {
  background: #fff;
  border: 1px solid var(--gml-border);
}
.home-col-copy h2 {
  color: var(--gml-blue-deep);
  font-size: 1.15rem;
  font-weight: 700;
}
.home-col-featured {
  background: linear-gradient(180deg, #e8f4fc, #f5faff);
  border: 1px solid var(--gml-border);
  text-align: center;
}
.home-col-featured .featured-photo-link {
  display: block;
  margin: 0 auto 0.75rem;
  max-width: 250px;
}
.home-col-featured .featured-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--gml-border, #dee2e6);
  background: #fff;
}
.home-col-featured .featured-fallback {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #d7eefc;
  color: var(--gml-blue-dark);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-col-featured .featured-card-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #fff;
}
.home-col-featured .featured-username-wrap,
.home-col-featured .small,
.home-col-featured p {
  position: relative;
  z-index: 2;
}
.home-stats {
  font-size: 0.95rem;
  opacity: 0.95;
}

[data-bs-theme="dark"] .home-col-copy {
  background: #15202b;
  border-color: var(--gml-border);
  color: #e7eef7;
}
[data-bs-theme="dark"] .home-col-copy h2 {
  color: var(--gml-blue-deep);
}
[data-bs-theme="dark"] .home-col-featured {
  background: linear-gradient(180deg, #1a2c3d, #15202b);
  border-color: var(--gml-border);
}
[data-bs-theme="dark"] .home-col-signup {
  color: #e7eef7;
}

.home-col-signup .form-label { font-weight: 600; }
.home-col-signup .form-control {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.65);
}
.home-col-signup .form-text,
.home-col-signup .form-text a { color: #06365c !important; }
[data-bs-theme="dark"] .home-col-signup .form-text,
[data-bs-theme="dark"] .home-col-signup .form-text a { color: #e7eef7 !important; }
[data-bs-theme="dark"] .home-col-signup .form-control {
  background: #0f141c;
  border-color: var(--gml-border);
  color: #e7eef7;
}

/* Keep reCAPTCHA fully visible inside narrow home signup column */
.home-col-signup {
  overflow: visible;
}
.home-col-signup .recaptcha-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  line-height: 0;
}
.home-col-signup .g-recaptcha {
  transform: scale(0.92);
  transform-origin: top left;
  margin-bottom: -6px; /* reclaim unused scale space slightly */
}
@media (max-width: 360px) {
  .home-col-signup .g-recaptcha {
    transform: scale(0.82);
  }
}
/* Light mode: never apply dark clip box */
.recaptcha-wrap:not([data-force-dark]) {
  min-height: 78px;
}

/* Even spacing for all nav pills (left + theme + auth) */
.navbar-gml .site-nav-list {
  gap: 0.5rem !important;
  align-items: center;
}
.navbar-gml .site-nav-list .nav-item {
  margin: 0 !important;
}
.navbar-gml .nav-link.nav-btn,
.navbar-gml .btn-link.nav-btn {
  margin: 0 !important;
  text-decoration: none !important;
}
.navbar-gml .site-nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Username styled to complement the bubble wordmark logo */
.profile-username {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--gml-blue, #27A3FF);
  margin: 0;
  word-break: break-word;
}

[data-bs-theme="dark"] .profile-username {
  color: #4db3ff;
}

.browse-username {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gml-blue-deep, #2461BF) !important;
  text-decoration: none !important;
}

.browse-username:hover,
.browse-username:focus-visible {
  color: var(--gml-blue, #27A3FF) !important;
  text-decoration: underline !important;
}

[data-bs-theme="dark"] .browse-username {
  color: #7ecfff !important;
}

[data-bs-theme="dark"] .browse-username:hover,
[data-bs-theme="dark"] .browse-username:focus-visible {
  color: #a8e0ff !important;
}

.home-col-featured .featured-username {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--gml-blue, #27A3FF) !important;
  text-decoration: none !important;
}
.home-col-featured .featured-username:hover,
.home-col-featured .featured-username:focus-visible {
  color: var(--gml-blue-deep, #0a5a9c) !important;
  text-decoration: underline !important;
}
[data-bs-theme="dark"] .home-col-featured .featured-username {
  color: #4db3ff !important;
}
[data-bs-theme="dark"] .home-col-featured .featured-username:hover,
[data-bs-theme="dark"] .home-col-featured .featured-username:focus-visible {
  color: #7ecfff !important;
}

.page-title,
.home-tagline.page-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gml-blue-deep, #2461BF);
}

[data-bs-theme="dark"] .page-title,
[data-bs-theme="dark"] .home-tagline.page-title {
  color: #9fd6ff;
}

.site-content {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 1.5rem;
}

.footer {
  text-align: center;
}

.footer-link {
  color: var(--gml-blue-deep, #2461BF);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover {
  text-decoration: underline;
  color: var(--gml-blue, #27A3FF);
}

[data-bs-theme="dark"] .footer-link {
  color: #7ecfff;
}

.privacy-doc {
  max-width: 46rem;
}

.privacy-doc h2 {
  color: var(--gml-blue-deep, #2461BF);
}

[data-bs-theme="dark"] .privacy-doc h2 {
  color: #9fd6ff;
}

.home-col-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Collapse to hamburger below xl so filled nav buttons never wrap */
@media (max-width: 1199.98px) {
  .navbar-gml .navbar-collapse {
    padding-top: 0.65rem;
  }
  .navbar-gml .site-nav-list {
    width: 100%;
    gap: 0.4rem !important;
  }
  .navbar-gml .site-nav-list .nav-item {
    width: 100%;
  }
  .navbar-gml .nav-link.nav-btn,
  .navbar-gml .btn-link.nav-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .navbar-gml .site-nav-actions {
    width: 100%;
    justify-content: stretch !important;
    margin-top: 0.35rem;
  }
  .navbar-gml .site-nav-actions .theme-toggle {
    margin: 0.25rem auto !important;
  }
}

main[role="main"] {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}


/* Bio tables from Quill table-better â€” centered by default (Medium) */
.bio-html table,
#bio-editor table {
  border-collapse: collapse;
  display: table;
  width: 60%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.bio-html th,
.bio-html td,
#bio-editor th,
#bio-editor td {
  border: 1px solid var(--gml-border, #cfe3f5);
  padding: 0.4rem 0.55rem;
  vertical-align: top;
}
.bio-html th {
  background: rgba(39, 163, 255, 0.12);
  font-weight: 600;
}

/* Quill bio table width presets (saved on the <table> class) */
.bio-html table.bio-table-sm,
#bio-editor table.bio-table-sm { width: 40% !important; max-width: 280px !important; }
.bio-html table.bio-table-md,
#bio-editor table.bio-table-md { width: 60% !important; max-width: 420px !important; }
.bio-html table.bio-table-lg,
#bio-editor table.bio-table-lg { width: 80% !important; max-width: 560px !important; }
.bio-html table.bio-table-full,
#bio-editor table.bio-table-full { width: 100% !important; max-width: 100% !important; }

.bio-table-size-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--gml-border, #cfe3f5);
  border-radius: 0.5rem;
}
.bio-table-size-bar.is-visible { display: flex; }
.bio-table-size-bar .bio-table-size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #06365c;
  margin-right: 0.25rem;
}
.bio-table-size-bar button {
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #27a3ff;
  background: #fff;
  color: #0a5a9c;
  padding: 0.2rem 0.55rem;
}
.bio-table-size-bar button.is-active,
.bio-table-size-bar button:hover {
  background: #27a3ff;
  color: #fff;
}
#bio-editor table.bio-table-selected {
  outline: 2px solid #27a3ff;
  outline-offset: 2px;
}
.bio-html img.bio-img-broken {
  display: none !important;
}

/* Classic-style delete-account confirmation panel (inline, not browser popup) */
.delete-account-panel-inner {
  background: linear-gradient(180deg, #ffe8ec 0%, #fff5f6 100%);
  border: 2px solid #e89aa8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 14px rgba(180, 40, 70, 0.12);
}
.delete-account-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #a11a32;
  margin: 0 0 0.75rem;
}
.delete-account-lead {
  color: #8b1e30;
  margin-bottom: 0.75rem;
}
.delete-account-list {
  color: #8b1e30;
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.delete-account-list li {
  margin-bottom: 0.35rem;
}
.delete-account-note {
  color: #a11a32;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-delete-confirm {
  background: #b33a3a;
  border-color: #9c2f2f;
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  padding: 0.45rem 1.1rem;
}
.btn-delete-confirm:hover,
.btn-delete-confirm:focus-visible {
  background: #9c2f2f;
  border-color: #822626;
  color: #fff;
}
.btn-delete-cancel {
  background: #2e9e57;
  border-color: #278a4b;
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  padding: 0.45rem 1.1rem;
}
.btn-delete-cancel:hover,
.btn-delete-cancel:focus-visible {
  background: #278a4b;
  border-color: #1f7040;
  color: #fff;
}
[data-bs-theme="dark"] .delete-account-panel-inner {
  background: linear-gradient(180deg, #3a1a22 0%, #2a1520 100%);
  border-color: #c45a6e;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
[data-bs-theme="dark"] .delete-account-title,
[data-bs-theme="dark"] .delete-account-note {
  color: #ff8fa3;
}
[data-bs-theme="dark"] .delete-account-lead,
[data-bs-theme="dark"] .delete-account-list {
  color: #f0b8c2;
}

/* Hide/Show account confirmation panels (classic-style inline) */
.hide-account-panel-inner {
  background: linear-gradient(180deg, #fff4e0 0%, #fffaf0 100%);
  border: 2px solid #e0b35c;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 14px rgba(160, 100, 20, 0.12);
}
.hide-account-panel-show {
  background: linear-gradient(180deg, #e6f7ed 0%, #f3fcf6 100%);
  border-color: #6fbf88;
  box-shadow: 0 4px 14px rgba(40, 120, 70, 0.12);
}
.hide-account-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #9a5b00;
  margin: 0 0 0.75rem;
}
.hide-account-panel-show .hide-account-title {
  color: #1f7a45;
}
.hide-account-lead,
.hide-account-list {
  color: #7a4a10;
  margin-bottom: 0.75rem;
}
.hide-account-panel-show .hide-account-lead {
  color: #1f5c36;
}
.hide-account-list {
  padding-left: 1.25rem;
}
.hide-account-list li { margin-bottom: 0.35rem; }
.hide-account-note {
  color: #9a5b00;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-hide-confirm {
  background: #d97706;
  border-color: #b45309;
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  padding: 0.45rem 1.1rem;
}
.btn-hide-confirm:hover,
.btn-hide-confirm:focus-visible {
  background: #b45309;
  border-color: #92400e;
  color: #fff;
}
.btn-hide-confirm-show {
  background: #2e9e57;
  border-color: #278a4b;
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  padding: 0.45rem 1.1rem;
}
.btn-hide-confirm-show:hover,
.btn-hide-confirm-show:focus-visible {
  background: #278a4b;
  border-color: #1f7040;
  color: #fff;
}
.btn-hide-cancel {
  background: #6c757d;
  border-color: #5c636a;
  color: #fff;
  font-weight: 600;
  border-radius: 0.375rem;
  padding: 0.45rem 1.1rem;
}
.btn-hide-cancel:hover,
.btn-hide-cancel:focus-visible {
  background: #5c636a;
  border-color: #565e64;
  color: #fff;
}
[data-bs-theme="dark"] .hide-account-panel-inner {
  background: linear-gradient(180deg, #3a2a12 0%, #2a2010 100%);
  border-color: #c4923a;
}
[data-bs-theme="dark"] .hide-account-panel-show {
  background: linear-gradient(180deg, #163224 0%, #12281d 100%);
  border-color: #3d9a64;
}
[data-bs-theme="dark"] .hide-account-title { color: #ffc56e; }
[data-bs-theme="dark"] .hide-account-panel-show .hide-account-title { color: #7dffb0; }
[data-bs-theme="dark"] .hide-account-lead,
[data-bs-theme="dark"] .hide-account-list,
[data-bs-theme="dark"] .hide-account-note { color: #f0d2a0; }
[data-bs-theme="dark"] .hide-account-panel-show .hide-account-lead { color: #b6f0cc; }

/* Shared blue form panel (Contact / Login / Register) â€” matches Home signup column */
.auth-form-panel {
  background: linear-gradient(160deg, var(--gml-blue-light), var(--gml-blue));
  color: #06365c;
  border: 1px solid var(--gml-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem 1.5rem;
  max-width: 32rem;
}
.auth-form-panel-title {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: inherit;
  margin: 0 0 1rem;
}
.auth-form-panel .form-label {
  font-weight: 600;
  color: #06365c;
}
.auth-form-panel .form-control,
.auth-form-panel .form-select,
.auth-form-panel textarea.form-control {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  color: #212529;
}
.auth-form-panel .form-control:focus {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}
.auth-form-panel .form-check-label {
  color: #06365c;
}
.auth-form-panel .form-text,
.auth-form-panel .form-text a,
.auth-form-panel-links a {
  color: #06365c !important;
  font-weight: 600;
}
.auth-form-panel .btn-light {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  color: #06365c !important;
  background: #fff;
  border-color: #fff;
}
.auth-form-panel .btn-light:hover,
.auth-form-panel .btn-light:focus-visible {
  background: #f3f8fc;
  border-color: #f3f8fc;
  color: #06365c !important;
}
.auth-form-panel .recaptcha-wrap {
  display: block;
  max-width: 100%;
  overflow: visible;
  line-height: 0;
}
.auth-form-panel .text-danger,
.auth-form-panel .field-validation-error,
.auth-form-panel .validation-summary-errors {
  color: #9b1229 !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
}
/* Hide unused validator placeholders (empty spans look like pink blobs). */
.auth-form-panel span.text-danger:empty,
.auth-form-panel .field-validation-valid,
.auth-form-panel .validation-summary-valid {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.auth-form-panel span.text-danger:not(:empty),
.auth-form-panel .field-validation-error:not(:empty) {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #ffe8ec;
  border: 1px solid #e89aa8;
  border-radius: 0.5rem;
  box-shadow: 0 1px 0 rgba(155, 18, 41, 0.08);
}
.auth-form-panel .validation-summary-errors {
  background: #ffe8ec;
  border: 1px solid #e89aa8;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}
.auth-form-panel .validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Success / info status chips (username available, etc.) */
.auth-form-panel .text-success,
.auth-form-panel #username-status.text-success,
.home-col-signup .text-success,
.home-col-signup #username-status.text-success {
  color: #0d5c32 !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
}
.auth-form-panel #username-status.text-success:not(:empty),
.auth-form-panel span.text-success:not(:empty),
.home-col-signup #username-status.text-success:not(:empty) {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #e8f8ee;
  border: 1px solid #8fd4a8;
  border-radius: 0.5rem;
  box-shadow: 0 1px 0 rgba(13, 92, 50, 0.08);
}
.auth-form-panel #username-status.text-muted:not(:empty),
.home-col-signup #username-status.text-muted:not(:empty) {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 54, 92, 0.25);
  border-radius: 0.5rem;
  color: #06365c !important;
  font-weight: 600;
}
.auth-form-panel #username-status.text-danger:not(:empty),
.home-col-signup #username-status.text-danger:not(:empty) {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #ffe8ec;
  border: 1px solid #e89aa8;
  border-radius: 0.5rem;
  color: #9b1229 !important;
  font-weight: 700;
}
.auth-form-panel #username-status:empty,
.home-col-signup #username-status:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

[data-bs-theme="dark"] .auth-form-panel .text-success,
[data-bs-theme="dark"] .auth-form-panel #username-status.text-success,
[data-bs-theme="dark"] .home-col-signup .text-success,
[data-bs-theme="dark"] .home-col-signup #username-status.text-success {
  color: #b8f0cc !important;
}
[data-bs-theme="dark"] .auth-form-panel #username-status.text-success:not(:empty),
[data-bs-theme="dark"] .home-col-signup #username-status.text-success:not(:empty) {
  background: rgba(13, 92, 50, 0.45);
  border-color: #8fd4a8;
}
[data-bs-theme="dark"] .auth-form-panel #username-status.text-muted:not(:empty),
[data-bs-theme="dark"] .home-col-signup #username-status.text-muted:not(:empty) {
  background: rgba(15, 20, 28, 0.75);
  border-color: rgba(231, 238, 247, 0.35);
  color: #e7eef7 !important;
}
[data-bs-theme="dark"] .auth-form-panel #username-status.text-danger:not(:empty),
[data-bs-theme="dark"] .home-col-signup #username-status.text-danger:not(:empty) {
  background: rgba(155, 18, 41, 0.45);
  border-color: #ff8fa3;
  color: #ffd0d8 !important;
}

/* Site-wide alerts stronger for readability */
.alert {
  font-weight: 600;
}
.alert-success {
  background-color: #e8f8ee;
  border-color: #8fd4a8;
  color: #0d5c32;
}
.alert-danger {
  background-color: #ffe8ec;
  border-color: #e89aa8;
  color: #9b1229;
}
.alert-warning {
  background-color: #fff6e5;
  border-color: #f0c36a;
  color: #7a4e00;
}
[data-bs-theme="dark"] .alert-success {
  background-color: rgba(13, 92, 50, 0.4);
  border-color: #8fd4a8;
  color: #b8f0cc;
}
[data-bs-theme="dark"] .alert-danger {
  background-color: rgba(155, 18, 41, 0.45);
  border-color: #ff8fa3;
  color: #ffd0d8;
}
[data-bs-theme="dark"] .alert-warning {
  background-color: rgba(122, 78, 0, 0.35);
  border-color: #f0c36a;
  color: #ffe6b0;
}

[data-bs-theme="dark"] .auth-form-panel {
  color: #e7eef7;
  background: linear-gradient(160deg, #1a3a55, #155a94);
  border-color: var(--gml-border);
}
[data-bs-theme="dark"] .auth-form-panel .form-label,
[data-bs-theme="dark"] .auth-form-panel .form-check-label {
  color: #e7eef7;
}
[data-bs-theme="dark"] .auth-form-panel .form-control,
[data-bs-theme="dark"] .auth-form-panel textarea.form-control {
  background: #0f141c;
  border-color: var(--gml-border);
  color: #e7eef7;
}
[data-bs-theme="dark"] .auth-form-panel .form-text,
[data-bs-theme="dark"] .auth-form-panel .form-text a,
[data-bs-theme="dark"] .auth-form-panel-links a {
  color: #e7eef7 !important;
}
[data-bs-theme="dark"] .auth-form-panel .btn-light {
  color: #0a2d48 !important;
  background: #fff !important;
  border-color: #fff;
}
[data-bs-theme="dark"] .auth-form-panel .text-danger,
[data-bs-theme="dark"] .auth-form-panel .field-validation-error,
[data-bs-theme="dark"] .auth-form-panel .validation-summary-errors {
  color: #ffd0d8 !important;
}
[data-bs-theme="dark"] .auth-form-panel span.text-danger:not(:empty),
[data-bs-theme="dark"] .auth-form-panel .field-validation-error:not(:empty),
[data-bs-theme="dark"] .auth-form-panel .validation-summary-errors {
  background: rgba(155, 18, 41, 0.45);
  border-color: #ff8fa3;
}

.auth-form-panel-wide {
  max-width: 52rem;
}
.auth-form-panel .ql-toolbar.ql-snow,
.auth-form-panel .ql-container.ql-snow {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.auth-form-panel .ql-toolbar.ql-snow {
  border-radius: 0.375rem 0.375rem 0 0;
}
.auth-form-panel .ql-container.ql-snow {
  border-radius: 0 0 0.375rem 0.375rem;
}
.auth-form-panel .btn-outline-warning,
.auth-form-panel .btn-outline-success,
.auth-form-panel .btn-outline-danger {
  background: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}
/* Hide account: solid amber â€” pale outline was hard to read on the blue panel */
.auth-form-panel .btn-outline-warning {
  color: #fff !important;
  background: #d97706 !important;
  border-color: #b45309 !important;
}
.auth-form-panel .btn-outline-warning:hover,
.auth-form-panel .btn-outline-warning:focus-visible {
  color: #fff !important;
  background: #b45309 !important;
  border-color: #92400e !important;
}
.auth-form-panel .btn-outline-success {
  color: #146c43 !important;
  border-color: #198754 !important;
  border-width: 2px;
}
.auth-form-panel .btn-outline-danger {
  color: #b02a37 !important;
  border-color: #dc3545 !important;
  border-width: 2px;
}
[data-bs-theme="dark"] .auth-form-panel .btn-outline-warning {
  color: #fff !important;
  background: #f59e0b !important;
  border-color: #d97706 !important;
}
[data-bs-theme="dark"] .auth-form-panel .btn-outline-warning:hover,
[data-bs-theme="dark"] .auth-form-panel .btn-outline-warning:focus-visible {
  background: #d97706 !important;
  border-color: #b45309 !important;
}
[data-bs-theme="dark"] .auth-form-panel .btn-outline-success {
  color: #b8f0cc !important;
  border-color: #8fd4a8 !important;
  background: rgba(13, 92, 50, 0.35) !important;
}
[data-bs-theme="dark"] .auth-form-panel .btn-outline-danger {
  color: #ffd0d8 !important;
  border-color: #ff8fa3 !important;
  background: rgba(155, 18, 41, 0.35) !important;
}
.auth-form-panel .form-select {
  background-color: #fff;
}
.auth-form-panel .small.text-muted,
.auth-form-panel .text-muted {
  color: #06365c !important;
  opacity: 0.85;
}
[data-bs-theme="dark"] .auth-form-panel .ql-toolbar.ql-snow,
[data-bs-theme="dark"] .auth-form-panel .ql-container.ql-snow {
  background: #0f141c;
  border-color: var(--gml-border);
  color: #e7eef7;
}
[data-bs-theme="dark"] .auth-form-panel .small.text-muted,
[data-bs-theme="dark"] .auth-form-panel .text-muted {
  color: #e7eef7 !important;
}

.dashboard-activity li:last-child {
  margin-bottom: 0 !important;
}
.stat-card .dashboard-activity {
  max-height: 14rem;
  overflow-y: auto;
}

/* Bio HTML: default readable colors; inline near-black is fixed in site.js for dark mode */
[data-bs-theme="dark"] .bio-html {
  color: #e7eef7;
}
[data-bs-theme="dark"] .bio-html a {
  color: #6ec1ff;
}
