/* Coach Questions — feedback reasons, coaching card and "Bring this to Steve" form (ABD Tools) */
.co-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.co-rate { font-size: 12.5px; color: var(--as-muted, #67737f); margin: 0 6px 0 4px; order: -1; flex: 1 1 100%; padding: 0 0 2px 6px; }

/* buttons */
.co-btn.co-btn { --b: var(--as-navy, #0c2a46); display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px; background: var(--b); color: #fff; font: 700 14px/1 var(--font-body, Manrope, system-ui, sans-serif); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.co-btn svg { width: 16px; height: 16px; transition: transform .25s; }
.co-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(12,42,70,.55); }
.co-btn:hover svg { transform: translateX(3px); }
.co-btn:focus-visible, .co-link:focus-visible, .co-chip:focus-visible, .co-x:focus-visible { outline: 3px solid var(--as-sun, #f2c517); outline-offset: 2px; }
.co-btn--sm { padding: 9px 14px; font-size: 13px; }
.co-btn--lg { padding: 15px 24px; font-size: 15px; }
.co-btn.co-btn--ghost { background: transparent; color: var(--as-navy, #0c2a46); box-shadow: inset 0 0 0 1.5px currentColor; }
.co-btn.co-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.co-btn.is-busy { opacity: .7; pointer-events: none; }
.co-btn.is-busy svg { animation: co-nudge .9s ease-in-out infinite; }
@keyframes co-nudge { 50% { transform: translateX(4px); } }
.co-link.co-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--as-sky, #0079b0); font: 700 13.5px/1.3 var(--font-body, Manrope, sans-serif); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.co-link svg { width: 14px; height: 14px; }

/* feedback under an answer */
.co-fb { flex: 1 1 100%; margin: 8px 0 2px 6px; font-size: 13.5px; color: var(--as-text, #1d2a36); animation: co-rise .35s ease both; }
.co-fb--up { display: flex; align-items: center; gap: 8px; color: #2f8a5b; font-weight: 600; }
.co-fb svg { width: 16px; height: 16px; flex: none; }
.co-fb__h { margin: 0 0 8px; font-weight: 700; color: var(--as-ink, #0a1d30); }
.co-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.co-chip.co-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--as-line, rgba(10,29,48,.12)); background: #fff; color: var(--as-ink, #0a1d30); font: 600 13px/1.2 var(--font-body, Manrope, sans-serif); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.co-chip.co-chip:hover { border-color: var(--as-sky, #0079b0); color: var(--as-sky, #0079b0); }
.co-chip.co-chip.is-on { background: var(--as-navy, #0c2a46); border-color: var(--as-navy, #0c2a46); color: #fff; }
.co-note { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; max-width: 560px; }
.co-note textarea { flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid var(--as-line, rgba(10,29,48,.14)); border-radius: 12px; font: 14px/1.45 var(--font-body, Manrope, sans-serif); resize: vertical; background: #fff; color: var(--as-text, #1d2a36); }
.co-note textarea:focus { outline: none; border-color: var(--as-sky, #0079b0); box-shadow: 0 0 0 3px rgba(0,121,176,.15); }
.co-fb__thanks { display: flex; align-items: center; gap: 8px; margin: 0; color: #2f8a5b; font-weight: 600; }
.co-fb__offer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--as-soft, #f4f1ea); }
.co-fb__offer > span { color: var(--as-text, #1d2a36); }

/* coaching card (below the follow-up questions) */
.co-card { container-type: inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin: 18px 0 4px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #fffaf0 0%, #fff3c4 100%); box-shadow: inset 0 0 0 1px rgba(217,164,0,.22); animation: co-rise .45s .1s ease both; }
.co-card__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--as-navy, #0c2a46); box-shadow: 0 6px 14px -8px rgba(12,42,70,.4); }
.co-card__ico svg { width: 22px; height: 22px; }
.co-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-card__txt b { font: 700 16px/1.25 var(--font-display, Fraunces, Georgia, serif); color: var(--as-ink, #0a1d30); }
.co-card__txt span { font-size: 14px; color: var(--as-text, #1d2a36); }
@keyframes co-rise { from { opacity: 0; transform: translateY(6px); } }
/* the card sizes itself to where it sits (full page, popup or phone), not to the window */
@container (max-width: 620px) {
  .co-card .co-card__txt { flex-basis: calc(100% - 64px); }
  .co-card .co-btn.co-btn { margin-left: 60px; }
}
@container (max-width: 420px) {
  .co-card .co-btn.co-btn { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .co-note { flex-direction: column; align-items: stretch; }
}

/* dialog */
html.co-lock, html.co-lock body { overflow: hidden !important; }
.co-dlg { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; font-family: var(--font-body, Manrope, system-ui, sans-serif); color: var(--as-text, #1d2a36); }
.co-dlg__bg { position: absolute; inset: 0; background: rgba(10,29,48,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.co-dlg__panel { position: relative; width: min(640px, 100%); max-height: min(92vh, 900px); max-height: min(calc(100dvh - 32px), 900px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 34px 34px 28px; border-radius: 26px; background: #fff; box-shadow: 0 40px 90px -30px rgba(10,29,48,.6); opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .28s, transform .35s cubic-bezier(.2,.8,.2,1); }
.co-dlg.is-in .co-dlg__bg { opacity: 1; }
.co-dlg.is-in .co-dlg__panel { opacity: 1; transform: none; }
.co-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--as-soft, #f4f1ea); color: var(--as-ink, #0a1d30); cursor: pointer; transition: background .2s, transform .2s; }
.co-x:hover { background: #ebe6db; transform: rotate(90deg); }
.co-x svg { width: 18px; height: 18px; }
.co-dlg__eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 11px; border-radius: 999px; background: #fff3c4; color: #7a5c00; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.co-dlg__head h2, .co-done h2 { margin: 0 0 8px; font: 600 clamp(26px, 4vw, 32px)/1.12 var(--font-display, Fraunces, Georgia, serif); color: var(--as-ink, #0a1d30); letter-spacing: -.01em; }
.co-dlg__head p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: var(--as-muted, #67737f); }

.co-ctx { margin: 0 0 20px; border-radius: 14px; background: var(--as-soft, #f4f1ea); }
.co-ctx summary { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; cursor: pointer; list-style: none; }
.co-ctx summary::-webkit-details-marker { display: none; }
.co-ctx summary > span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--as-sky, #0079b0); }
.co-ctx summary q, .co-ctx summary q.as-u { all: unset; display: block; font: 600 14.5px/1.45 var(--font-body, Manrope, sans-serif); color: var(--as-ink, #0a1d30); text-align: left; }
.co-ctx summary q::before { content: "“"; } .co-ctx summary q::after { content: "”"; }
.co-ctx summary::after { content: "Show Coach Black’s answer"; font-size: 12.5px; color: var(--as-muted, #67737f); text-decoration: underline; text-underline-offset: 3px; }
.co-ctx[open] summary::after { content: "Hide answer"; }
.co-ctx__a { padding: 0 16px 14px; font-size: 14px; line-height: 1.55; max-height: 240px; overflow: auto; }
.co-ctx__a b { display: block; margin-bottom: 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--as-muted, #67737f); }
.co-ctx__a p { margin: 0 0 8px; }

.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.co-field label, .co-field legend { padding: 0; font-size: 14px; font-weight: 700; color: var(--as-ink, #0a1d30); }
.co-field input:not([type=radio]):not([type=checkbox]), .co-field textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #dfe3e8; border-radius: 12px; background: #fff; font: 15px/1.45 var(--font-body, Manrope, sans-serif); color: var(--as-text, #1d2a36); transition: border-color .2s, box-shadow .2s; }
.co-field textarea { resize: vertical; min-height: 104px; }
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--as-sky, #0079b0); box-shadow: 0 0 0 4px rgba(0,121,176,.13); }
.co-field [aria-invalid="true"] { border-color: #c2412d; box-shadow: 0 0 0 4px rgba(194,65,45,.12); }
.co-field ::placeholder { color: #9aa4ae; }
.co-opts { display: grid; gap: 8px; margin-top: 2px; }
.co-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 4px 0 6px; padding: 14px 16px; border-radius: 12px; background: #fff3c4; color: #5c4600; font-size: 14px; line-height: 1.5; }
.co-cap[hidden] { display: none; }
.co-cap p { margin: 0; }
.co-opt[hidden] { display: none; }
.co-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid #dfe3e8; border-radius: 12px; cursor: pointer; font-size: 14.5px; font-weight: 600; transition: border-color .2s, background .2s; }
.co-opt input { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 20px; min-width: 20px; height: 20px; margin: 0; padding: 0; border: 2px solid #b9c1ca; border-radius: 50%; background: #fff; transition: border-color .2s, background .2s; }
.co-opt input:checked { border-color: var(--as-navy, #0c2a46); background: radial-gradient(circle, var(--as-navy, #0c2a46) 0 4px, #fff 4.5px); }
.co-opt input:focus-visible { outline: 3px solid var(--as-sun, #f2c517); outline-offset: 2px; }
.co-opt:has(input:checked) { border-color: var(--as-navy, #0c2a46); background: #f6f8fb; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.co-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--as-navy, #0c2a46); }
.co-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-err { margin: 0; padding: 11px 14px; border-radius: 10px; background: #fdecea; color: #8f2a1c; font-size: 14px; font-weight: 600; }
/* Send stays in view at the bottom of the dialog on short screens (Steve, iMac, 14 Nov) */
.co-foot { position: sticky; bottom: -28px; z-index: 2; display: flex; flex-direction: column; gap: 10px; margin: 4px -34px -28px; padding: 14px 34px 24px; background: #fff; box-shadow: 0 -14px 18px -16px rgba(10,29,48,.28); }
.co-foot .co-btn { align-self: flex-start; }
.co-privacy { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--as-muted, #67737f); }
.co-privacy a { color: inherit; }

.co-done { text-align: center; padding: 18px 6px 6px; }
.co-done h2:focus { outline: none; }
.co-done__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: #e2f1e8; color: #2f8a5b; animation: co-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.co-done__ico svg { width: 30px; height: 30px; }
@keyframes co-pop { from { transform: scale(.4); opacity: 0; } }
.co-done > p { margin: 0 auto 18px; max-width: 420px; font-size: 16px; line-height: 1.55; color: var(--as-text, #1d2a36); }
.co-done__links { display: grid; gap: 8px; max-width: 420px; margin: 0 auto 22px; text-align: left; }
.co-done__links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--as-soft, #f4f1ea); color: var(--as-ink, #0a1d30); font-weight: 700; text-decoration: none; transition: background .2s; }
.co-done__links a:hover { background: #fff3c4; }
.co-done__links svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .co-dlg { padding: 0; place-items: end stretch; }
  .co-dlg__panel { width: 100%; max-height: 94dvh; padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .co-grid { grid-template-columns: 1fr; }
  .co-foot .co-btn { align-self: stretch; justify-content: center; }
  .co-foot { bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 4px -20px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .co-dlg__panel, .co-dlg__bg, .co-card, .co-fb, .co-done__ico, .co-btn, .co-btn svg, .co-x { transition: none !important; animation: none !important; }
}

/* "Reviewed by Steve" badge on answers built on Steve's own words (Phase 3) */
.co-rev { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px !important; padding: 9px 14px 9px 9px; border: 1px solid rgba(242,197,23,.55); border-radius: 14px; background: linear-gradient(135deg, #fffaf0, #fff6d6); color: var(--as-ink, #0a1d30); font: 500 13px/1.45 var(--font-body, Manrope, system-ui, sans-serif); text-align: left; }
.co-rev__seal { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--as-sun, #f2c517); color: var(--as-ink, #0a1d30); box-shadow: 0 0 0 3px rgba(242,197,23,.22); }
.co-rev__seal svg { width: 14px; height: 14px; }
.co-rev__t { padding-top: 2px; }
.co-rev__t b { font-weight: 800; }
.co-rev__t > span { color: var(--as-muted, #5d6b78); }
a.co-rev__go { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; color: var(--as-skydeep, #0079b0) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
a.co-rev__go svg { width: 13px; height: 13px; transition: transform .2s; }
a.co-rev__go:hover svg { transform: translateX(2px); }
a.co-rev__go:focus-visible { outline: 3px solid var(--as-sun, #f2c517); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { a.co-rev__go svg { transition: none; } }
