/* ============================================================================
   Choose conversions (public/google-conversions.mjs). Story design under the
   Discovery brand; plain, readable fallbacks everywhere else. Every value has a
   var() fallback so the module also works outside the Voyage theme.
   ============================================================================ */

.gcv { display: grid; gap: 18px; min-width: 0; color: var(--ink, #16130a); font-size: 15px; line-height: 1.5; }
.gcv *, .gcv *::before, .gcv *::after { box-sizing: border-box; }
.gcv p { margin: 0; }
.gcv ul, .gcv ol { margin: 0; padding: 0; list-style: none; }
.gcv .sr-only, .gcv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gcv-screen { display: grid; gap: 18px; min-width: 0; }
.gcv-head { display: grid; gap: 8px; }
.gcv-title { margin: 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.18; overflow-wrap: anywhere; }
.gcv-nowrap { white-space: nowrap; }
.gcv-title:focus { outline: none; }
.gcv-title:focus-visible { outline: 3px solid var(--ink, #16130a); outline-offset: 4px; border-radius: 6px; }
.gcv-sub { color: var(--ink-2, rgb(22 19 10 / 72%)); max-width: 62ch; }
.gcv-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3, rgb(22 19 10 / 60%)); }
.gcv-foot { font-size: 13.5px; color: var(--ink-3, rgb(22 19 10 / 60%)); }
.gcv-section { display: grid; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--line-2, rgb(22 19 10 / 18%)); }
.gcv-section:first-child { padding-top: 0; border-top: 0; }
.gcv--panel .gcv-title { font-size: clamp(20px, 2.6vw, 24px); }

/* ── Goal cards ── */
.gcv-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gcv-goal { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; min-height: 44px; border-radius: 24px; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line-2, rgb(22 19 10 / 18%)); transition: box-shadow .18s var(--ease, ease-out), transform .18s var(--spring, ease-out); }
.gcv-goal:hover { box-shadow: inset 0 0 0 2px var(--ink, #16130a); }
.gcv-goal input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gcv-goal:has(input:checked) { box-shadow: inset 0 0 0 3px var(--ink, #16130a), 6px 6px 0 var(--ink, #16130a); transform: translate(-2px, -2px); background: var(--cream, #fffbe6); }
.gcv-goal:has(input:focus-visible) { outline: 3px solid var(--ink, #16130a); outline-offset: 4px; }
.gcv-goal-art { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--sun-soft, #fff4b8); overflow: hidden; flex: none; }
.gcv-goal-art img { width: 64px; height: 64px; object-fit: cover; display: block; }
.gcv-goal-art svg { width: 34px; height: 34px; }
.gcv-goal-body { display: grid; gap: 6px; min-width: 0; }
.gcv-goal-name { font-family: var(--font-display, Anton, Impact, sans-serif); font-size: 26px; line-height: 1; text-transform: uppercase; }
.gcv-goal-text { color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gcv-goal-check { position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2, rgb(22 19 10 / 18%)); color: transparent; }
.gcv-goal:has(input:checked) .gcv-goal-check { background: var(--ink, #16130a); color: var(--sun, #ffe14a); box-shadow: none; }
.gcv-suggest { display: grid; gap: 6px; justify-items: start; }
.gcv-reason { font-size: 13.5px; font-weight: 650; }

/* ── Event picker: one card per event, by name with its ID ── */
.gcv-events { display: grid; gap: 12px; }
.gcv-event { position: relative; width: 100%; display: grid; gap: 6px; justify-items: start; text-align: left; padding: 16px 56px 16px 18px; min-height: 44px; border: 0; border-radius: 22px; background: #fff; color: inherit; font: inherit; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line-2, rgb(22 19 10 / 18%)); transition: box-shadow .18s var(--ease, ease-out), transform .18s var(--spring, ease-out); }
.gcv-event:hover { box-shadow: inset 0 0 0 2px var(--ink, #16130a); }
.gcv-event:focus-visible { outline: 3px solid var(--ink, #16130a); outline-offset: 4px; }
.gcv-event:disabled { cursor: default; opacity: .75; }
.gcv-event[aria-current='true'] { box-shadow: inset 0 0 0 3px var(--ink, #16130a), 6px 6px 0 var(--ink, #16130a); transform: translate(-2px, -2px); background: var(--cream, #fffbe6); }
.gcv-event-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.gcv-event-name { font-weight: 850; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.gcv-event-id { font-size: 12.5px; font-weight: 700; color: var(--ink-3, rgb(22 19 10 / 60%)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcv-event-source { font-size: 14px; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gcv-event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.gcv-event-check { position: absolute; top: 50%; right: 16px; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2, rgb(22 19 10 / 18%)); }
.gcv-event[aria-current='true'] .gcv-event-check { background: var(--ink, #16130a); color: var(--sun, #ffe14a); box-shadow: none; }
.gcv-event--create { background: #fffdf3; box-shadow: inset 0 0 0 2px var(--line-2, rgb(22 19 10 / 18%)); border: 0; }
.gcv-event--create .gcv-event-name { font-weight: 800; }
.gcv-create-pick { display: grid; gap: 10px; }
.gcv-chip[data-count='primary'] { background: var(--green-soft, #dcf2e4); color: var(--green, #167a43); }
.gcv-chip[data-count='secondary'] { background: #efece1; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gcv-facts { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.gcv-more { font-size: 14px; }
.gcv-link-button { border: 0; background: none; padding: 8px 0; min-height: 44px; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--sun, #ffe14a); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.gcv--sheet { gap: 14px; }

/* ── Plan ── */
.gcv-plan { display: grid; gap: 10px; counter-reset: gcv; }
.gcv-plan-row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
.gcv-plan-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: var(--sun, #ffe14a); color: var(--ink, #16130a); }
.gcv-plan-row[data-op='keep'] .gcv-plan-mark, .gcv-plan-row[data-result='ok'] .gcv-plan-mark { background: var(--green-soft, #dcf2e4); color: var(--green, #167a43); }
.gcv-plan-row[data-op='note'] .gcv-plan-mark { background: var(--sky-soft, #e4efff); color: #1d4f9c; }
.gcv-plan-row[data-result='error'] .gcv-plan-mark { background: var(--hot-soft, #ffe1ea); color: #9c1640; }
.gcv-plan-line { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.gcv-row-result { font-size: 13px; font-weight: 700; }
.gcv-row-result[data-tone='ok'] { color: var(--green, #167a43); }
.gcv-row-result[data-tone='error'] { color: #9c1640; }
.gcv-choices { display: grid; gap: 10px; }
.gcv-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; min-height: 44px; padding: 10px 12px; border-radius: 14px; background: #fffdf3; box-shadow: inset 0 0 0 1px var(--line-2, rgb(22 19 10 / 18%)); cursor: pointer; font-weight: 600; }
.gcv-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink, #16130a); }
.gcv-check--optin { background: #fff; }
.gcv-how { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--cream, #fffbe6); box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
.gcv-how li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14px; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gcv-how li::before { content: '\2713'; font-weight: 900; color: var(--green, #167a43); }
.gcv-how li[data-tone='warn']::before { content: '!'; color: #8a5a00; }

/* ── Notes and alerts ── */
.gcv-note { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 18px; background: var(--sun-soft, #fff4b8); box-shadow: inset 0 0 0 1px rgb(22 19 10 / 12%); }
.gcv-note--sky { background: var(--sky-soft, #e4efff); }
.gcv-note--hot { background: var(--hot-soft, #ffe1ea); }
.gcv-note strong { font-weight: 800; }
.gcv-note-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gcv-alert { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink, #16130a), 6px 6px 0 var(--hot, #ff5c8a); }
.gcv-alert-title { font-weight: 800; font-size: 16px; }
.gcv-alert-title:focus { outline: none; }

/* ── Buttons row ── */
.gcv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gcv-actions .btn { min-height: 44px; }
.gcv .btn[aria-busy='true'] { cursor: progress; }
.gcv-busy-glyph { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gcv-spin 800ms linear infinite; }
@keyframes gcv-spin { to { transform: rotate(360deg); } }
.gcv-hint { font-size: 13.5px; color: var(--ink-3, rgb(22 19 10 / 60%)); }
.gcv-link { color: var(--ink, #16130a); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun, #ffe14a); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ── Custom list ── */
.gcv-group { display: grid; gap: 10px; }
.gcv-group-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.gcv-rows { display: grid; gap: 10px; }
.gcv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: start; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); }
.gcv-row[data-reported='true'] { box-shadow: inset 0 0 0 2px var(--ink, #16130a); }
.gcv-row-main { display: grid; gap: 6px; min-width: 0; }
.gcv-row-name { font-weight: 800; overflow-wrap: anywhere; }
.gcv-row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gcv-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 800; background: #efece1; color: var(--ink-2, rgb(22 19 10 / 72%)); white-space: nowrap; }
.gcv-chip[data-kind='harbor'] { background: var(--ink, #16130a); color: var(--sun, #ffe14a); }
.gcv-chip[data-kind='tag'] { background: var(--sky-soft, #e4efff); color: #1d4f9c; }
.gcv-chip[data-kind='analytics'] { background: var(--grape-soft, #ece6ff); color: #5b3fe0; }
.gcv-truth { font-size: 13.5px; }
.gcv-unknown { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 999px; font-weight: 800; color: var(--ink-2, rgb(22 19 10 / 72%));
  background: repeating-linear-gradient(135deg, #efece1 0 6px, #f8f6ee 6px 12px); }
.gcv-row-controls { display: grid; gap: 8px; justify-items: end; align-content: start; }
.gcv-star { display: inline-flex; gap: 4px; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--sun, #ffe14a); color: var(--ink, #16130a); vertical-align: 2px; }
.gcv-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; border-radius: 12px; }
.gcv-switch:disabled { cursor: not-allowed; opacity: .55; }
.gcv-switch-track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #dcd8c8; box-shadow: inset 0 0 0 2px rgb(22 19 10 / 18%); transition: background .2s var(--ease, ease-out); flex: none; }
.gcv-switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 25%); transition: transform .22s var(--spring, ease-out); }
.gcv-switch[aria-checked='true'] .gcv-switch-track { background: var(--ink, #16130a); }
.gcv-switch[aria-checked='true'] .gcv-switch-thumb { transform: translateX(18px); background: var(--sun, #ffe14a); }
.gcv-switch-word { min-width: 2.2em; text-align: left; }
.gcv-save { display: inline-flex; align-items: center; gap: 8px; min-height: 20px; font-size: 13px; font-weight: 700; }
.gcv-save:empty { display: none; }
.gcv-save-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft, #dcf2e4); color: var(--green, #167a43); font-weight: 900; }
.gcv-save-tick.is-pop { animation: gcv-pop 220ms var(--spring, ease-out) both; }
@keyframes gcv-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gcv-undo { border: 0; background: none; padding: 6px 4px; min-height: 32px; font: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--sun, #ffe14a); text-decoration-thickness: 3px; text-underline-offset: 3px; cursor: pointer; color: inherit; }
.gcv-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: right; }
.gcv-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink, #16130a); flex: none; }
.gcv-radio:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.gcv-create { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #fffdf3; box-shadow: inset 0 0 0 1px var(--line-2, rgb(22 19 10 / 18%)); }
.gcv-create .gcv-actions { gap: 8px; }

/* ── Check ── */
.gcv-targets { display: grid; gap: 8px; }
.gcv-targets li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, rgb(22 19 10 / 10%)); font-weight: 650; overflow-wrap: anywhere; }
.gcv-result { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 22px; background: #fff; }
.gcv-result--pass { box-shadow: inset 0 0 0 2px var(--green, #167a43), 6px 6px 0 var(--green, #167a43); }
.gcv-result--fail { box-shadow: inset 0 0 0 2px var(--ink, #16130a), 6px 6px 0 var(--hot, #ff5c8a); }
/* Still setting up (Google's first hours for a new import event): calm, never red. */
.gcv-result--wait { background: var(--cream, #fffbe6); box-shadow: inset 0 0 0 2px var(--ink, #16130a), 6px 6px 0 var(--sun, #ffe14a); }
.gcv-result ul { display: grid; gap: 6px; width: 100%; }
.gcv-result li { font-size: 14px; overflow-wrap: anywhere; }
.gcv-result-title { font-weight: 800; font-size: 17px; }
.gcv-result-title:focus { outline: none; }
.gcv-accepted { font-size: 14px; padding: 6px 14px; }
.gcv-stamp { animation: gcv-stamp 320ms var(--spring, ease-out) both; }
@keyframes gcv-stamp { from { transform: scale(1.6) rotate(-12deg); opacity: 0; } to { transform: rotate(-2.5deg); opacity: 1; } }
.gcv-last { font-size: 13.5px; color: var(--ink-2, rgb(22 19 10 / 72%)); }
.gcv-loading { display: flex; align-items: center; gap: 10px; padding: 18px; font-weight: 700; color: var(--ink-2, rgb(22 19 10 / 72%)); }

/* ── Screen change (level mode) ── */
.gcv-in-forward { animation: gcv-in-forward 320ms var(--ease, ease-out) both; }
.gcv-in-back { animation: gcv-in-back 320ms var(--ease, ease-out) both; }
@keyframes gcv-in-forward { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gcv-in-back { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Story styling under the Discovery brand ── */
html[data-platform-brand='discovery'] .gcv-title .gcv-brush { padding: 0.04em 0.18em 0; background: var(--sun, #ffe14a); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-platform-brand='discovery'] .gcv-goal-name { letter-spacing: 0.01em; }
html:not([data-platform-brand='discovery']) .gcv-title { font-family: inherit; font-weight: 800; text-transform: none; }
html:not([data-platform-brand='discovery']) .gcv-goal-name { font-family: inherit; font-weight: 800; text-transform: none; font-size: 20px; }

@media (max-width: 600px) {
  .gcv-row { grid-template-columns: 1fr; }
  .gcv-row-controls { justify-items: start; }
  .gcv-radio { text-align: left; }
  .gcv-goal { grid-template-columns: 1fr; }
  .gcv-goal-art { width: 52px; height: 52px; }
  .gcv-goal-art img { width: 52px; height: 52px; }
  .gcv-actions .btn { flex: 1 1 100%; justify-content: center; }
  .gcv-event { padding-right: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .gcv-busy-glyph { animation: none; border-right-color: currentColor; opacity: .7; }
  .gcv-save-tick.is-pop, .gcv-stamp, .gcv-in-forward, .gcv-in-back { animation: none; }
  .gcv-goal, .gcv-event, .gcv-switch-track, .gcv-switch-thumb { transition: none; }
  .gcv-goal:has(input:checked), .gcv-event[aria-current='true'] { transform: none; }
}
