/* Styles for the email-subscription widget (resource/subscribe.rst, resource/subscribe_zh.rst). */
.sub-wrap { margin: 8px auto 48px; }
.sub-hero { margin-bottom: 1.6em; }
.sub-hero h2 { margin: 0 0 .5em; font-size: 1.5em; }
.sub-hero p { margin: 0; line-height: 1.7; font-size: .95em; }
.sub-step { margin-bottom: 1.4em; }
.sub-step-title { font-size: 1.02em; font-weight: 700; color: #013b57; margin: 0 0 .8em; }
.sub-newprod { border: 1px solid #e5e5ea; border-radius: 8px; padding: 11px 13px; background: #f7fbfd; }
.sub-group { border: 1px solid #e5e5ea; border-radius: 10px; padding: 1.3em 1.5em; margin-bottom: 1.3em; }
.sub-group-header {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: 8px; margin-bottom: .8em; padding-bottom: 10px; border-bottom: 2px solid #0078af;
}
.sub-group-header h3 { margin: 0; font-size: 1.12em; }
.sub-group-tag {
  display: inline-block; font-size: .72em; font-weight: 600; letter-spacing: .02em;
  padding: 2px 9px; border-radius: 10px; background: #E8F5E9; color: #2E7D32;
}
.sub-actions { display: flex; gap: 14px; margin: 6px 0 12px; }
.sub-actions a { font-size: .85em; cursor: pointer; color: #0078af; text-decoration: none; }
.sub-actions a:hover { text-decoration: underline; }
.sub-subhead {
  font-size: .8em; font-weight: 700; color: #999; letter-spacing: .03em;
  margin: 14px 0 8px; text-transform: uppercase;
}
.sub-subhead:first-child { margin-top: 0; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 16px; }
.sub-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e5e5ea;
  border-radius: 6px; font-size: .92em; transition: border-color .15s, background .15s;
}
.sub-item:hover { border-color: #0078af; background: #EAF4FA; }
.sub-item input { accent-color: #0078af; width: 16px; height: 16px; flex: none; }
/* reset the site theme's default `label { margin: 0 0 .3125em }` so the checkbox and label
   text line up on the flex row's center (align-items: center above). */
.sub-item label { flex: 1; cursor: pointer; margin: 0; }
.sub-bar { background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 1.3em 1.5em; margin-top: 1.4em; }
.sub-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sub-email { flex: 1 1 280px; padding: 10px 14px; border-radius: 20px; border: 1px solid #ddd; font-size: 1em; }
.sub-btn {
  background: #0078af; color: #fff; border: none; border-radius: 20px; padding: 10px 26px;
  font-weight: 600; cursor: pointer; font-size: 1em; white-space: nowrap;
}
.sub-btn:hover { background: #0a90cf; }
.sub-btn:disabled { background: #9ccbe0; cursor: default; }
.sub-note { font-size: .82em; color: #999; margin-top: .7em; }
.sub-status { margin-top: 12px; font-size: .92em; padding: 10px 14px; border-radius: 6px; display: none; }
.sub-status.ok { display: block; background: #E8F5E9; color: #2E7D32; }
.sub-status.err { display: block; background: #FDECEA; color: #C62828; }
.sub-status.info { display: block; background: #EAF4FA; color: #01597f; }
.sub-verify { display: none; margin-top: 12px; }
.sub-verify input { padding: 10px 14px; border-radius: 8px; border: 1px solid #ddd; font-size: 1em; letter-spacing: 4px; width: 170px; }
