* {
  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;
  }
}

/* ==========================================================================
   馬克雷達品牌主題（2026-07-18 追加於檔尾，覆蓋上方 listmonk 預設）
   色票同 frontend-astro tokens：ground #142141 / panel #222e4c /
   ink #e7e9ed / mute #a1a6b3 / pop 冰藍 #c4d8e7（其上文字 #363737）
   ========================================================================== */
body {
  background:
    repeating-radial-gradient(circle at 88% -12%, transparent 0 52px, rgba(196, 216, 231, 0.045) 52px 54px),
    radial-gradient(circle at 88% -12%, rgba(196, 216, 231, 0.12), transparent 46%),
    #142141;
  color: #e7e9ed;
  font-family: 'Noto Sans TC', 'PingFang TC', 'Inter', 'Helvetica Neue', sans-serif;
}
a {
  color: #c4d8e7;
  text-decoration-color: rgba(196, 216, 231, 0.5);
}
a:hover {
  color: #ffffff;
}
label,
p,
li {
  color: #e7e9ed;
}
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wrap {
  background: #222e4c;
  border: 1px solid #343f5b;
  border-top: 4px solid #c4d8e7;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.header {
  border-bottom: 1px solid #343f5b;
}
.button {
  background: #c4d8e7;
  color: #363737;
  font-weight: 700;
  border-radius: 6px;
}
.button:hover {
  background: #dbe9f3;
  color: #363737;
}
.button.button-outline {
  background: transparent;
  border: 1px solid #c4d8e7;
  color: #c4d8e7;
}
.button.button-outline:hover {
  background: #c4d8e7;
  border-color: #c4d8e7;
  color: #363737;
}
input[type='text'],
input[type='email'],
input[type='password'],
select,
textarea {
  background: rgba(196, 216, 231, 0.08);
  border: 1px solid #343f5b;
  color: #e7e9ed;
  box-shadow: none;
  border-radius: 6px;
}
input:focus {
  border-color: #c4d8e7;
}
input::placeholder {
  color: #a1a6b3;
}
.lists li {
  padding-left: 14px;
  position: relative;
  list-style: none;
}
.lists li::before {
  content: '●';
  color: #c4d8e7;
  font-size: 9px;
  position: absolute;
  left: 0;
  top: 1px;
}
/* optin 頁的清單（optin-form 內是普通 ul） */
.optin-form ul {
  list-style: none;
  padding: 0;
}
.optin-form li {
  padding-left: 14px;
  position: relative;
}
.optin-form li::before {
  content: '●';
  color: #c4d8e7;
  font-size: 9px;
  position: absolute;
  left: 0;
  top: 1px;
}
.small,
footer.container,
footer.container a {
  color: #a1a6b3;
}
.error {
  color: #e39a9a;
}
.unsub-all {
  border-top: 1px solid #343f5b;
}

/* 手機版：預設 listmonk 在 ≤650px 讓卡片貼滿版（margin:0），
   深色主題下卡片貼頂顯得擁擠——恢復四周留白與圓角 */
@media screen and (max-width: 650px) {
  .container {
    margin: 0;
  }
  .wrap {
    margin: 20px 14px;
    padding: 28px 22px;
    border-radius: 10px;
    max-width: none;
  }
  footer.container {
    margin: 4px 14px 24px;
  }
}
