@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  /* Primary (brand / text) */
  --lmp-primary:         #002b41;
  --lmp-primary-600:     #2f5169;
  --lmp-primary-700:     #186396;

  /* Secondary (action) */
  --lmp-secondary:       #ef4050;
  --lmp-secondary-hover: #f35d6c;

  /* Neutrals */
  --lmp-text:            #002b41;
  --lmp-text-muted:      #6390af;
  --lmp-text-faint:      #b0b0b0;
  --lmp-border:          #808080;
  --lmp-border-light:    #f0f0f0;
  --lmp-bg:              #fff;
  --lmp-bg-page:         #fafdff;   /* soft brand-tinted page */
  --lmp-bg-disabled:     #f5f5f5;

  /* Status */
  --lmp-error:           #ec3a49;
  --lmp-success:         #188b38;
  --lmp-warning:         #ff9900;

  /* Geometry */
  --lmp-radius:          8px;
  --lmp-radius-lg:       10px;
  --lmp-input-h:         48px;
  --lmp-btn-h:           44px;
}

/* ---------- Base ---------- */
html, body {
  min-width: 320px;
}
body {
  background: var(--lmp-bg-page);
  color: var(--lmp-text);
  font-family: "Open Sans", "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--lmp-primary);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
}
h1 { font-size: 1.675rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

/* ---------- Links ---------- */
a {
  color: var(--lmp-secondary);
  text-decoration: none;
  text-decoration-color: transparent;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover {
  color: var(--lmp-secondary-hover);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

label {
  color: var(--lmp-primary);
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Page shell ---------- */
.container {
  max-width: 560px;
  margin: 48px auto 16px;
}
.wrap {
  background: var(--lmp-bg);
  border: 1px solid var(--lmp-border-light);
  border-radius: var(--lmp-radius-lg);
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 43, 65, .06);
}

/* ---------- Header / logo ---------- */
.header {
  border-bottom: 1px solid var(--lmp-border-light);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.header .logo img { max-width: 160px; height: auto; }

/* ---------- Form controls ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: var(--lmp-input-h);
  padding: 10px 12px;
  border: 1px solid var(--lmp-border);
  border-radius: var(--lmp-radius);
  background: var(--lmp-bg);
  color: var(--lmp-text);
  font: inherit;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:hover,
select:hover,
textarea:hover { border-color: var(--lmp-primary-700); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lmp-primary-700);
  box-shadow: 0 0 6px var(--lmp-primary-700);
}
input:focus::placeholder { color: transparent; }

input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 1;
  color: var(--lmp-text-faint);
  border-color: var(--lmp-text-faint);
  background: var(--lmp-bg-disabled);
  cursor: not-allowed;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  min-width: 150px;
  min-height: var(--lmp-btn-h);
  padding: 10px 20px;
  border: 1px solid var(--lmp-secondary);
  border-radius: var(--lmp-radius);
  background: var(--lmp-secondary);
  background-clip: padding-box;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: background-color .1s ease, border-color .1s ease, color .1s ease;
}

.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(239, 64, 80, .35);
}
.button:hover,
.button:focus {
  background: var(--lmp-secondary-hover);
  border-color: var(--lmp-secondary-hover);
  color: #fff;
  text-decoration: none;
}
.button[disabled],
.button.is-disabled {
  background: var(--lmp-text-faint);
  border-color: var(--lmp-text-faint);
  cursor: not-allowed;
}

.button.button-outline {
  background: var(--lmp-bg);
  border-color: var(--lmp-secondary);
  color: var(--lmp-secondary);
}
.button.button-outline:hover,
.button.button-outline:focus {
  background: var(--lmp-secondary-hover);
  border-color: var(--lmp-secondary-hover);
  color: #fff;
}

/* ---------- Utilities ---------- */
.section { margin-bottom: 40px; }
.center  { text-align: center; }
.right   { text-align: right; }
.small   { font-size: .875em; color: var(--lmp-text-muted); }
.error   { color: var(--lmp-error); font-weight: 600; }

/* ---------- Lists (subscription lists) ---------- */
.lists { list-style: none; padding: 0; margin: 0; }
.lists li { margin: 0 0 10px; }
.lists .description {
  margin: 2px 0 18px 28px;
  font-size: .875em;
  line-height: 1.4;
  color: var(--lmp-text-muted);
}

/* ---------- Unsubscribe-all divider ---------- */
.unsub-all {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--lmp-border-light);
}

/* ---------- Archive / home ---------- */
.row { margin-bottom: 20px; }
.archive { list-style: none; padding: 0; margin: 24px 0 0; }
.archive li { margin-bottom: 16px; }
.archive .date { display: block; color: var(--lmp-text-muted); font-size: .875em; }
.feed { margin-right: 12px; }
.home-options { margin-top: 28px; }
.home-options a { margin: 0 8px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 28px; text-align: center; }
.pg-page {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--lmp-radius);
  text-decoration: none;
  color: var(--lmp-primary-700);
}
.pg-page:hover { background: var(--lmp-border-light); text-decoration: none; }
.pg-page.pg-selected {
  background: var(--lmp-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Login / 2FA ---------- */
.login .submit { margin-top: 20px; }
.login button,
section.center > .button {
  width: 100%;
  min-height: var(--lmp-btn-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login button img { max-width: 22px; margin-right: 10px; }
.login input[name="totp_code"] {
  font-size: 2em;
  letter-spacing: 8px;
  text-align: center;
  font-weight: 600;
}

/* ---------- Footer ---------- */
footer.container { display: none; }

/* ---------- Responsive ---------- */
@media screen and (max-width: 650px) {
  .container { margin: 16px auto; }
  .wrap { padding: 24px; border-radius: var(--lmp-radius); }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.325rem; }
}
@media screen and (min-width: 1600px) {
  :root {
    --lmp-input-h: 54px;
    --lmp-btn-h: 50px;
    --lmp-radius: 10px;
  }
  body { font-size: 17px; }
  .container { max-width: 620px; }
  .wrap { padding: 48px; }
}