* {
  box-sizing: border-box;
}
html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}
body {
  background: #f9f9f9;
  font-family: "Inter", "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #111;
}
a {
  color: #0055d4;
  text-decoration-color: #abcbfb;
}
a:hover {
  color: #111;
}
label {
  cursor: pointer;
  color: #444;
}
h1,
h2,
h3,
h4 {
  font-weight: 400;
}
.section {
  margin-bottom: 45px;
}

input[type="text"], input[type="email"], input[type="password"], select {
  padding: 10px 15px;
  border: 1px solid #888;
  border-radius: 3px;
  width: 100%;
  box-shadow: 2px 2px 0 #f3f3f3;
  border: 1px solid #ddd;
  font-size: 1em;
}
  input:focus {
    border-color: #0055d4;
  }

input:focus::placeholder {
  color: transparent;
}

input[disabled] {
  opacity: 0.5;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}
.small {
  font-size: 0.875em;
}
.error {
  color: #FF5722;
}
.button {
  background: #0055d4;
  padding: 15px 30px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #ffff;
  display: inline-block;
  min-width: 150px;
  font-size: 1.1em;
  text-align: center;
}
.button:hover {
  background: #333;
  color: #fff;
}
.button.button-outline {
  background: #fff;
  border: 1px solid #0055d4;
  color: #0055d4;
}
.button.button-outline:hover {
  border-color: #333;
  background-color: #333;
  color: #fff;
}

.container {
  margin: 60px auto 15px auto;
  max-width: 550px;  
}

.wrap {
  background: #fff;
  padding: 40px;
  box-shadow: 2px 2px 0 #f3f3f3;
  border: 1px solid #eee;
}

.header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.header .logo img {
  width: auto;
  max-width: 150px;
}

.unsub-all {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.row {
  margin-bottom: 20px;
}
.lists {
  list-style-type: none;
  padding: 0;
}
  .lists li {
    margin: 0 0 5px 0;    
  }
  .lists .description {
    margin: 0 0 15px 0;
    font-size: 0.875em;
    line-height: 1.3rem;
    color: #888;
    margin-left: 25px;
  }
  .form .nonce {
    display: none;
  }
  .form .captcha {
    margin-top: 30px;
  }

.archive {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}
  .archive .date {
    display: block;
    color: #666;
    font-size: 0.875em;
  }
  .archive li {
    margin-bottom: 15px;
  }
  .feed {
    margin-right: 15px;
  }

.home-options {
  margin-top: 30px;
}
  .home-options a {
    margin: 0 7px;
  }

.pagination {
  margin-top: 30px;
  text-align: center;
}
  .pg-page {
    display: inline-block;
    padding: 0 10px;
    text-decoration: none;
  }
  .pg-page.pg-selected {
    text-decoration: underline;
    font-weight: bold;
  }

.login .submit {
  margin-top: 20px;
}
  .login button {
    width: 100%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login button img {
    max-width: 24px;
    margin-right: 10px;
  }
  .login input[name=totp_code] {
    font-size: 2em;
    letter-spacing: 5px;
    text-align: center;
  }

footer.container {
  margin-top: 15px;
  text-align: center;
  color: #aaa;
  font-size: 0.775em;
  margin-top: 30px;
  margin-bottom: 30px;
}
  footer a {
    color: #aaa;
    text-decoration: none;
  }
  footer a:hover {
    color: #111;
  }

@media screen and (max-width: 650px) {
  .wrap {
    margin: 0;
    padding: 30px;
    max-width: none;
  }
}

/* JorgeX dark public hardening overrides. Keep at EOF so it wins over defaults. */
:root { color-scheme: dark; }
html, body {
  min-height: 100%;
  background: #050816 !important;
  color: #e5eefb !important;
}
body {
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.16), transparent 32%),
    radial-gradient(circle at 18% 18%, rgba(167, 139, 250, 0.14), transparent 28%),
    #050816 !important;
}
.container,
.container.wrap,
.wrap,
section,
.section,
.login,
.center,
.message,
.form,
form.form,
form.optin-form,
form.unsub-form,
form.manage-form,
form.data-form section,
body > div {
  background: rgba(8, 12, 24, 0.9) !important;
  color: #e5eefb !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38) !important;
}
.container.wrap,
.wrap,
section,
.section,
.login,
.center,
.message,
.form,
form.form,
form.optin-form,
form.unsub-form,
form.manage-form,
form.data-form section {
  border-radius: 28px !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}
h1, h2, h3, h4, legend, label, strong, p, li, div, span, small, .row, .lists, .archive, .pagination, .home-options, .right, .data-form {
  color: #e5eefb !important;
}
h1, h2, h3, h4, legend, label, strong { color: #f8fbff !important; }
.error, .error *, .has-text-danger, .notification.is-danger {
  color: #fecaca !important;
  background: rgba(127, 29, 29, 0.32) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}
.success, .notification.is-success {
  color: #bbf7d0 !important;
  background: rgba(20, 83, 45, 0.28) !important;
  border-color: rgba(74, 222, 128, 0.28) !important;
}
a, a:visited, .archive a, .right a, .home-options a, footer a {
  color: #67e8f9 !important;
  text-decoration-color: rgba(103, 232, 249, 0.45) !important;
}
a:hover, a:focus { color: #c4b5fd !important; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], textarea, select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  color: #f8fbff !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}
input::placeholder, textarea::placeholder, .archive .date, .lists .description, .small, footer.container { color: #94a3b8 !important; }
input[type="checkbox"], input[type="radio"] { accent-color: #22d3ee; }
.button, button, input[type="submit"] {
  background: linear-gradient(135deg, #22d3ee, #a78bfa) !important;
  color: #06101c !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.18) !important;
}
.button:hover, button:hover, input[type="submit"]:hover {
  color: #06101c !important;
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(34, 211, 238, 0.24) !important;
}
.button.button-outline, .button-outline, input.button-outline {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e5eefb !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: none !important;
}
hr, .header, .unsub-all { border-color: rgba(148, 163, 184, 0.18) !important; }
svg, img.feed { filter: brightness(1.1) contrast(1.05); }

/* JorgeX public home compact layout. */
body:has(.jx-home-card) .container.wrap {
  width: min(620px, calc(100% - 2rem)) !important;
  min-height: auto !important;
  margin: clamp(32px, 8vh, 92px) auto 16px auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body:has(.jx-home-card) .jx-home-card {
  min-height: auto !important;
  padding: clamp(28px, 5vw, 46px) !important;
  border-radius: 28px !important;
  text-align: center !important;
  gap: 0 !important;
}
.jx-home-kicker {
  margin: 0 0 12px 0 !important;
  color: #67e8f9 !important;
  font: 700 12px/1.2 "JetBrains Mono", ui-monospace, monospace !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}
.jx-home-title {
  margin: 0 !important;
  color: #f8fbff !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
}
.jx-home-copy {
  max-width: 440px !important;
  margin: 16px auto 0 auto !important;
  color: #cbd5e1 !important;
}
.jx-home-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 28px !important;
}
.jx-home-actions .button {
  min-width: 150px !important;
}
body:has(.jx-home-card) footer.container {
  margin-top: 8px !important;
}
@supports not selector(body:has(.jx-home-card)) {
  .jx-home-card {
    min-height: auto !important;
  }
  .jx-home-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 28px !important;
  }
}

/* JorgeX archive compact layout. */
body:has(.jx-archive-card) .container.wrap {
  width: min(760px, calc(100% - 2rem)) !important;
  min-height: auto !important;
  margin: clamp(32px, 8vh, 92px) auto 16px auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body:has(.jx-archive-card) .jx-archive-card {
  min-height: auto !important;
  padding: clamp(28px, 5vw, 46px) !important;
  border-radius: 28px !important;
}
.jx-archive-card h2 {
  margin-top: 0 !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 800 !important;
}
.jx-archive-card .archive {
  margin-top: 24px !important;
}
.jx-archive-card .right {
  margin-top: 28px !important;
  text-align: center !important;
}
body:has(.jx-archive-card) footer.container {
  margin-top: 8px !important;
}
@supports not selector(body:has(.jx-archive-card)) {
  .jx-archive-card {
    min-height: auto !important;
  }
}

/* JorgeX flat public background: remove top/bottom overlay filters. */
html,
body {
  background: #050816 !important;
}
body {
  background-image: none !important;
}
body::before,
body::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  opacity: 0 !important;
}

/* JorgeX compact logo inside public cards. */
.jx-card-logo {
  display: block !important;
  width: auto !important;
  height: 26px !important;
  max-width: 132px !important;
  margin: 0 auto 18px auto !important;
  object-fit: contain !important;
  filter: none !important;
}
@media (min-width: 768px) {
  .jx-card-logo {
    height: 30px !important;
    max-width: 150px !important;
  }
}
