:root {
    --bulma-primary-h: 158deg;
    --bulma-primary-s: 67%;
    --bulma-primary-l: 40%;
    --bulma-success-h: 158deg;
    --bulma-success-s: 67%;
    --bulma-success-l: 46%;
    --bulma-family-primary: Poppins,Inter,SF Pro,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Helvetica,Arial,sans-serif;
    --bulma-family-secondary: Poppins,Inter,SF Pro,Segoe UI,Roboto,Oxygen,Ubuntu,Helvetica Neue,Helvetica,Arial,sans-serif;
    --bulma-family-code: Poppins,Inconsolata,Hack,SF Mono,Roboto Mono,Source Code Pro,Ubuntu Mono,monospace;
  }


@font-face {
    font-family: 'Poppins';
    src: url("fonts/Poppins-Light.3352653dedd5.ttf") format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

.welcome {
  display: inline-table;
  position: relative;
  width: 150pt;
}

.welcome p {
  position: absolute;
  left: 65pt;
}
.welcome h2 {
  position: absolute;
  right: 18pt;
  bottom: 1pt;
}

form {
  display: inline-table;
}

strong {
  color: var(--bulma-primary) !important;
}

footer {
  font-size: 70%;
}

footer li {
  list-style-type: none;
}

footer a {
  color: var(--bulma-primary);
  text-decoration: none;
}

.subscription {
  position: relative;
  background-color: black;
  color: white;
  padding-top: 15pt;
  padding-bottom: 4rem;
}

.subscription h2 {
  font-size: 2rem;
  font-weight: 800;
}

.subscription h3 {
  /* padding: 5pt; */
  font-size: 3rem;
  font-weight: 800;
  line-height: 150%;
}

.subscription .hashtag {
  position: absolute;
  top: 5pt;
  right: 5pt;
}
.subscription ul {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.subscription li {
  list-style-type: "✓";
  margin-left: 1rem;
  padding-left: 1rem;
}

.subscription .more{
  position: absolute;
  bottom: 5pt;
  min-width: 85%;
  margin: auto;
  margin-bottom: 1rem;
  text-align: center;
}

.subscription .more a{
  min-width: 100%;
  margin: auto;
}

div .suggestion {
  cursor: pointer;
}
div .suggestion:hover {
  background-color: var(--bulma-primary);
}

.button.is-outlined[disabled] {
  background-color: transparent;
}

/* Simple Tooltip */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bulma-text-strong);
  color: var(--bulma-scheme-main);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 100;
  margin-top: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* =============================================================================
   Dark Mode — Bulma v1 CSS variable overrides
   https://bulma.io/documentation/features/dark-mode/

   Bulma v1 uses CSS custom properties for all colors. Overriding the lightness
   variables (--bulma-*-l) is enough to flip the entire theme. Composite
   variables that reference lightness vars must also be redeclared because CSS
   variables do not re-evaluate lazily when a dependency changes.
   ============================================================================= */

/* A) Manual toggle: data-theme="dark" set by JS (unauthenticated)
      or rendered server-side by Django (authenticated users with theme=dark). */
[data-theme="dark"],
.theme-dark {
  --bulma-scheme-brightness: dark;
  --bulma-scheme-main-l: 11%;
  --bulma-scheme-main-bis-l: 13%;
  --bulma-scheme-main-ter-l: 15%;
  --bulma-background-l: 14%;
  --bulma-border-weak-l: 21%;
  --bulma-border-l: 24%;
  --bulma-text-weak-l: 53%;
  --bulma-text-l: 71%;
  --bulma-text-strong-l: 93%;
  --bulma-text-title-l: 100%;
  --bulma-hover-background-l-delta: 5%;
  --bulma-active-background-l-delta: 10%;
  --bulma-hover-border-l-delta: 10%;
  --bulma-active-border-l-delta: 20%;
  --bulma-hover-color-l-delta: 5%;
  --bulma-active-color-l-delta: 10%;
  --bulma-scheme-main: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-scheme-main-l));
  --bulma-scheme-main-bis: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-scheme-main-bis-l));
  --bulma-scheme-main-ter: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-scheme-main-ter-l));
  --bulma-background: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-background-l));
  --bulma-border-weak: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-border-weak-l));
  --bulma-border: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-border-l));
  --bulma-text: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-l));
  --bulma-text-weak: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-weak-l));
  --bulma-text-strong: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-strong-l));
  --bulma-text-title: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-title-l));
}

/* B) Automatic OS preference: applied when no explicit data-theme is set
      (theme=system for authenticated users, or no localStorage entry for guests).
      Excluded when data-theme="light" to allow the user to override the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bulma-scheme-brightness: dark;
    --bulma-scheme-main-l: 11%;
    --bulma-scheme-main-bis-l: 13%;
    --bulma-scheme-main-ter-l: 15%;
    --bulma-background-l: 14%;
    --bulma-border-weak-l: 21%;
    --bulma-border-l: 24%;
    --bulma-text-weak-l: 53%;
    --bulma-text-l: 71%;
    --bulma-text-strong-l: 93%;
    --bulma-text-title-l: 100%;
    --bulma-hover-background-l-delta: 5%;
    --bulma-active-background-l-delta: 10%;
    --bulma-hover-border-l-delta: 10%;
    --bulma-active-border-l-delta: 20%;
    --bulma-hover-color-l-delta: 5%;
    --bulma-active-color-l-delta: 10%;
    --bulma-scheme-main: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-scheme-main-l));
    --bulma-scheme-main-bis: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-scheme-main-bis-l));
    --bulma-scheme-main-ter: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-scheme-main-ter-l));
    --bulma-background: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-background-l));
    --bulma-border-weak: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-border-weak-l));
    --bulma-border: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-border-l));
    --bulma-text: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-l));
    --bulma-text-weak: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-weak-l));
    --bulma-text-strong: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-strong-l));
    --bulma-text-title: hsl(var(--bulma-scheme-h) var(--bulma-scheme-s) var(--bulma-text-title-l));
  }
}

.form-row-spacer {
  display: none !important;
}
