/* Yukon Host / PR Services branding for listmonk public + login pages.
   Matches access.yukonhost.com and yh-mailadmin (mailadmin.*.org). */

@import url("/branding/fonts.css");

:root {
  --yh-magenta: #C43B7A;
  --yh-magenta-dark: #8B1E4E;
  --yh-bg: #FDF4F8;
  --yh-ink: #1C1220;
  --yh-body: #5E4D56;
  --yh-card: #FFFCFD;
  --yh-soft: #F8E7EF;
  --yh-line: #EAD5DE;
  --yh-line-strong: #F4C6D8;
  --yh-muted: #8a7380;
}

* { box-sizing: border-box; }

html, body {
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 100%;
}

body {
  background: var(--yh-bg) !important;
  color: var(--yh-body) !important;
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--yh-magenta); text-decoration: none; }
a:hover { color: var(--yh-magenta-dark); text-decoration: underline; }

label {
  display: block;
  font-weight: 600;
  margin: 14px 0 5px;
  color: var(--yh-ink);
  font-size: 15px;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--yh-ink);
  letter-spacing: -0.01em;
}

h2 { font-size: 22px; margin: 0 0 12px; }

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--yh-line);
  border-radius: 4px;
  font: inherit;
  background: var(--yh-card);
  color: var(--yh-ink);
  box-shadow: none;
  font-size: 1em;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--yh-magenta);
  outline-offset: 1px;
  border-color: var(--yh-magenta);
}
input[readonly], input:disabled {
  background: var(--yh-soft);
  color: var(--yh-body);
  cursor: not-allowed;
  opacity: 1;
}

.button,
button.button,
a.button {
  background: var(--yh-magenta) !important;
  color: #FFFCFD !important;
  border: 0 !important;
  border-radius: 3px !important;
  padding: 12px 22px !important;
  font: inherit !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none !important;
  min-width: 0;
  box-shadow: none;
}
.button:hover,
button.button:hover,
a.button:hover {
  background: var(--yh-magenta-dark) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.button.button-outline {
  background: var(--yh-card) !important;
  color: var(--yh-magenta) !important;
  border: 1px solid var(--yh-magenta) !important;
}
.button.button-outline:hover {
  background: var(--yh-soft) !important;
  color: var(--yh-magenta-dark) !important;
}

/* Default listmonk chrome — restyle, then hide when JS injects the brand header/footer */
.container {
  margin: 20px auto 40px auto;
  max-width: 840px;
  width: 100%;
  padding: 0 16px;
}

.wrap {
  background: var(--yh-card);
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(28, 18, 32, 0.04);
  border: 1px solid var(--yh-line);
  border-radius: 10px;
  max-width: 840px;
}

.header {
  border-bottom: 1px solid var(--yh-line);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.header .logo img {
  width: auto;
  max-width: 90px;
  height: 56px;
}

footer.container {
  margin-top: auto;
  margin-bottom: 28px;
  text-align: center;
  color: var(--yh-muted);
  font-size: 13px;
}
footer.container a { color: var(--yh-magenta); }
footer.container a:hover { color: var(--yh-magenta-dark); }

.login .submit { margin-top: 8px; }
.login button {
  width: auto !important;
  min-width: 0;
  display: inline-flex !important;
}
.small { font-size: 14px; color: var(--yh-muted); }
.center { text-align: center; }
.error { color: #b91c1c; }

.lists { list-style: none; padding: 0; margin: 12px 0 18px; }
.lists h2 { font-size: 19px; margin: 16px 0 10px; }
.lists li { margin: 0 0 8px; }
.lists .description { color: var(--yh-muted); font-size: 14px; margin-left: 25px; }

.archive { list-style: none; margin: 16px 0 0; padding: 0; }
.archive li { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--yh-line-strong); }
.archive .date { display: block; color: var(--yh-muted); font-size: 14px; }

.home-options { margin-top: 24px; }
.home-options a { margin: 0 8px; }

/* ===== Brand chrome (injected by public.js) ===== */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 4px; }

.site-header {
  background: rgba(255, 252, 253, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--yh-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  background: #FFFCFD;
  border-radius: 4px;
  padding: 6px 8px;
  line-height: 0;
}
.brand:hover { background: var(--yh-soft); text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.nav a.nav-link { color: var(--yh-body); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a.nav-link:hover { color: var(--yh-magenta); text-decoration: none; }
.nav .btn-talk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yh-magenta);
  color: #FFFCFD !important;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  border: 0;
  line-height: 1;
}
.nav .btn-talk:hover { background: var(--yh-magenta-dark); color: #fff !important; text-decoration: none; }

.page-banner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px 0;
}
.page-banner .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--yh-magenta-dark);
  background: var(--yh-soft);
  border: 1px solid var(--yh-line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.page-banner .eyebrow .dot {
  display: inline-block;
  flex: 0 0 7px;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  margin: 0 8px 0 0;
  border-radius: 50%;
  background: var(--yh-magenta);
  position: relative;
  box-sizing: border-box;
}
.page-banner .eyebrow .dot + span {
  display: inline-block;
  padding-left: 2px;
}
.page-banner h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  color: var(--yh-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.page-banner p.lead {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 17px;
  color: var(--yh-body);
}

.site-footer {
  background: #1C1220;
  color: var(--yh-soft);
  margin-top: auto;
  padding: 48px 20px 28px;
  border-top: 1px solid #1C1220;
}
.site-footer .inner { max-width: 1120px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 36px; }
.footer-brand img { width: 90px; height: auto; background: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--yh-line-strong); max-width: 220px; }
.site-footer h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yh-line-strong);
  font-weight: 600;
}
.site-footer a { color: #FFFCFD; font-size: 15px; display: block; margin: 0 0 6px; text-decoration: none; }
.site-footer a:hover { color: var(--yh-line-strong); text-decoration: underline; }
.site-footer .addr { font-size: 15px; color: #FFFCFD; line-height: 1.5; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  align-items: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(234, 213, 222, 0.15);
  font-size: 13px;
  color: var(--yh-muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-bottom a { color: var(--yh-line-strong); font-size: 13px; display: inline; margin: 0; }
.footer-bottom a:hover { color: #fff; }

/* When brand chrome is present, hide the default logo header + "powered by" footer
   and match mailadmin: 960px column, 460px login/subscribe card left-aligned in it. */
body.yh-branded .wrap > .header,
body.yh-branded footer.container { display: none; }
body.yh-branded .wrap > section > h2.yh-moved,
body.yh-branded section.login > h2.yh-moved,
body.yh-branded section > h2.yh-moved { display: none; }

body.yh-branded .page-banner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 16px 0;
}
body.yh-branded .container,
body.yh-branded .container.wrap,
body.yh-branded .wrap {
  max-width: 960px;
  margin: 20px auto 40px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.yh-branded .wrap > section {
  background: var(--yh-card);
  border: 1px solid var(--yh-line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(28, 18, 32, 0.04);
  padding: 22px 24px;
  max-width: 460px;
}
body.yh-branded .wrap > section:has(.archive),
body.yh-branded .wrap > section:has(ul.archive) {
  max-width: 640px;
}

body.yh-branded .login .center.small,
body.yh-branded .wrap .center.small {
  text-align: left;
  margin-top: 14px;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--yh-magenta);
  width: 16px;
  height: 16px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand img { height: 48px; }
}
@media (max-width: 650px) {
  .wrap { margin: 0 auto; padding: 18px 16px; max-width: none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .inner { padding: 8px 14px; }
  .nav { width: 100%; gap: 10px 16px; }
}
