/* Swipe copy pages (emails, hooks, social, newsletter). Loaded after aff.css; uses its colour variables. */

/* Jump chips under the hoplink bar */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.jump a:hover { border-color: var(--orange); background: var(--tint); }
.jump a small { color: var(--muted); font-size: 16px; }

/* Quick-start strip */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: howto; }
.howto li { position: relative; padding: 18px 20px 18px 62px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 17px; line-height: 1.55; counter-increment: howto; }
.howto li::before { content: counter(howto); position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--dark); color: var(--cream); font-weight: 900; font-size: 16px; }
.howto b { color: var(--ink); }

/* Sequence / section header card */
.seq { margin: 56px 0 16px; padding: 24px 26px; border-radius: 16px; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: #dfe8f7; }
.seq:first-child { margin-top: 0; }
.seq h2 { margin: 0 0 8px; color: #fff; font-size: 26px; line-height: 1.25; }
.seq h2 small { display: block; margin-bottom: 6px; color: var(--cream); font: 700 16px Montserrat, Roboto, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.seq p { margin: 0 0 10px; font-size: 17px; }
.seq p:last-child { margin-bottom: 0; }
.seq b { color: #fff; }
.seq .timing { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(240, 194, 106, .35); }
.seq .timing .ico { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--cream); }

/* Small labels */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: #0b3a63; font-size: 16px; line-height: 1.3; }
.chip.gold { background: #fff3d6; color: #6b4a00; }
.chip.navy { background: var(--dark); color: #fff; }
.chip .ico { width: 15px; height: 15px; }
.acc summary .t .chip { margin-left: 6px; vertical-align: 2px; font-weight: 500; }

/* Inside a swipe */
.swipe .fill { background: #fff1c9; color: #5a4200; padding: 1px 4px; border-radius: 4px; }
.swipe .lnk { color: var(--orange-d); font-weight: 700; overflow-wrap: anywhere; }
.swipe .disc { color: var(--muted); font-size: 16px; }
.swipe.pre { white-space: pre-wrap; }
.preheader { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #f7faff; border: 1px solid var(--line); font-size: 17px; }
.preheader span { color: var(--muted); margin-right: 6px; }

/* Hook / angle cards */
.angles { display: grid; gap: 22px; }
.angle { padding: 26px 28px; }
.angle-h { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.angle-h .n { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--cream); font: 800 18px Montserrat, Roboto, sans-serif; }
.angle-h h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.3; }
.angle .why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.angle .why > div { padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.angle .why b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.hooks { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.hooks li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: #f7faff; border: 1px dashed #b9cbe3; }
.hooks li p { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.5; }
.linkrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.linkrow label { flex: 1 0 100%; margin: 0; color: var(--muted); font-size: 16px; }
.linkrow .input { flex: 1; min-width: 0; font-size: 16px; }

/* Post cards (social, newsletter) */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.posts.one { grid-template-columns: 1fr; }
.post { display: flex; flex-direction: column; padding: 22px; min-width: 0; }
.post h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
.post .swipe { flex: 1; margin-bottom: 14px; }
.post .actions { margin-top: auto; }
.post .field { margin-bottom: 12px; }
.post .field > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 16px; }
.tip { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #e9f6ee; border: 1px solid #bfe2cb; color: #1d4d2a; font-size: 17px; }
.tip .ico { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.tip b { color: inherit; }

/* Spoken video scripts */
.script { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 17px; }
.script th { text-align: left; padding: 8px 10px; background: var(--dark); color: #fff; font: 700 16px Montserrat, Roboto, sans-serif; }
.script th:first-child { border-radius: 10px 0 0 0; }
.script th:last-child { border-radius: 0 10px 0 0; }
.script td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.script td:first-child { width: 72px; color: var(--muted); font-size: 16px; white-space: nowrap; }
.script td.scr { width: 32%; color: #0b3a63; font-weight: 700; }

/* Newsletter text ads */
.textad { padding: 18px 20px; border-radius: 12px; background: #fff; border: 2px solid var(--dark); font: 16.5px/1.6 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 14px; }
.classifieds { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.classifieds li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 18px; }
.classifieds li .swipe { flex: 1; padding: 0; border: 0; background: none; }

@media (max-width: 960px) {
  .howto { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .seq { margin-top: 44px; padding: 20px 18px; }
  .seq h2 { font-size: 22px; }
  .subject { gap: 6px 10px; }
  .subject span { flex-basis: 100%; font-size: 16px; }
  .subject b { min-width: 0; flex-basis: 100%; }
  .angle { padding: 20px 18px; }
  .angle-h h2 { font-size: 21px; }
  .angle .why { grid-template-columns: 1fr; }
  .hooks li, .classifieds li { flex-direction: column; align-items: stretch; }
  .hooks li .btn-mini, .classifieds li .btn-mini { align-self: flex-start; }
  .post { padding: 18px 16px; }
  .script td:first-child { width: 56px; }
  .script, .script tbody, .script tr, .script td { font-size: 16.5px; }
  .script thead { display: none; }
  .script tr { display: grid; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--line); }
  .script td { border: 0; padding: 8px 6px; }
  .script td.scr { grid-column: 2; width: auto; padding-top: 0; }
  .script td.scr::before { content: "On screen: "; color: var(--muted); font-weight: 400; }
}
/* Phase 2 design-check fix: number above the text so the three cards are not narrow columns */
@media (min-width: 761px) { .howto li { padding: 20px 22px; } .howto li::before { position: static; margin-bottom: 10px; } }
