/* Email Swipes page (The Obsession System). Loaded only by pages/emails.php. Brand colours are set here so the page
 * keeps its look whatever aff.css tokens are called: coral #E74D3A, deep coral #C93A29, ink #231F20, blush, cream. */
.em-page { --em-coral: #E74D3A; --em-coral-d: #C93A29; --em-ink: #231F20; --em-blush: #FBE7E4; --em-pink: #F6D3D0; --em-cream: #FFF8F4; --em-line: #F0D9D4; --em-muted: #5f5552; }
.em-page .em-how .card { margin-bottom: 18px; }
.em-how h2 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 12px; color: var(--em-ink); font-size: 1.35rem; }
.em-steps { list-style: none; margin: 0 0 18px; padding: 0; }
.em-steps li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; line-height: 1.55; }
.em-steps li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; color: var(--em-coral-d); }
.em-all { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 16px; border-top: 1px solid var(--em-line); }
.em-all-note { margin: 0; color: var(--em-muted); font-size: 1rem; }

.em-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.em-tabs[hidden], .em-group[hidden] { display: none; }
.em-tab { font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--em-line); background: #fff; color: var(--em-ink); min-height: 44px; }
.em-tab:hover { border-color: var(--em-coral); }
.em-tab[aria-selected="true"] { background: var(--em-ink); border-color: var(--em-ink); color: #fff; }
.em-tab:focus-visible { outline: 3px solid var(--em-coral); outline-offset: 2px; }
.em-count { display: inline-block; min-width: 1.6em; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--em-cream); color: var(--em-ink); font-size: 1rem; text-align: center; }
.em-tab[aria-selected="true"] .em-count { background: #fff; color: var(--em-coral-d); }

.em-group { margin-bottom: 34px; }
.em-gdesc { margin: -4px 0 18px; color: var(--em-muted); font-size: 1.05rem; line-height: 1.55; }

.em-card { padding: 24px 26px; margin-bottom: 22px; scroll-margin-top: 90px; }
.em-head h3 { font-family: "Playfair Display", Georgia, serif; margin: 4px 0 6px; color: var(--em-ink); font-size: 1.3rem; line-height: 1.3; }
.em-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--em-muted); font-size: 1rem; font-weight: 700; }
.em-num { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 999px; background: var(--em-coral); color: #fff; font-weight: 900; }
.em-dest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 1rem; color: var(--em-ink); }
.em-dest svg { width: 16px; height: 16px; color: var(--em-coral-d); }
.em-dest .mono { font-family: var(--mono); font-size: 1rem; color: var(--em-muted); }

.em-lab { margin: 16px 0 8px; font-size: 1rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--em-ink); }
.em-subs ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.em-subs li, .em-pre { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px;
  background: var(--em-cream); border: 1px solid var(--em-line); border-radius: 8px; }
.em-subs li::before { counter-increment: s; content: counter(s) "."; font-weight: 900; color: var(--em-coral-d); }
.em-s { flex: 1 1 auto; min-width: 0; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.em-subs .btn-mini, .em-pre .btn-mini { flex: 0 0 auto; }

.em-body { border: 1px solid var(--em-line); border-radius: 10px; background: #fff; padding: 20px 22px; font-size: 18px; line-height: 1.65; color: var(--em-ink); }
.em-body p { margin: 0 0 14px; }
.em-body p:last-child { margin-bottom: 0; }
.em-url { display: inline-block; max-width: 100%; font-family: var(--mono); font-size: 16px; color: #a8301f; background: var(--em-blush);
  padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; word-break: normal; }
.em-disc { color: var(--em-muted); font-style: italic; }

.em-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.em-actions .btn svg { width: 18px; height: 18px; }
.em-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 8px;
  background: var(--em-blush); border-left: 4px solid var(--em-coral); }
.em-tip svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; color: var(--em-coral-d); }
.em-tip p { margin: 0; font-size: 1rem; line-height: 1.55; }

@media (max-width: 700px) {
  .em-card { padding: 18px 16px; }
  .em-body { font-size: 17px; padding: 16px 14px; }
  .em-actions .btn { flex: 1 1 100%; justify-content: center; }
  .em-all .btn { width: 100%; justify-content: center; }
  .em-tab { flex: 1 1 auto; }
}

/* Nothing read under 16px on this page (aff.css uses 14-15.5px for small buttons and notes). */
.em-page .btn-mini, .em-page .btn-sm, .em-page .note { font-size: 16px; }
.em-page .btn-mini { min-height: 40px; }

/* Group notes and the CAN-SPAM warning (old page wording, word for word). */
.em-note { margin: 0 0 20px; }
.em-note > div { line-height: 1.55; }
.em-warn { margin: 0 0 18px; }
.em-warn > div { line-height: 1.55; font-weight: 700; }
.em-dest .mono { overflow-wrap: anywhere; }
.em-dest { flex-wrap: nowrap; align-items: flex-start; }
.em-dest > svg { flex: 0 0 16px; margin-top: 5px; }
