/* Askalytics extras (2 Nov 2026): screenshot zoom (hover lens + tap lightbox), rotating hero example card,
   and the card-title / list rules the 22 Oct pages expect. Served from uploads/styles/ with a ?v= query on
   the <link> in the global header, so a change needs a new ?v=, never a Cloudflare purge. */

/* ── In-page screenshots ─────────────────────────────────────────────────────── */
.ask-shot-wrap { margin: 0; }
.ask-shot-wrap .ask-shot-frame { display: block; position: relative; border-radius: var(--radius-lg, 20px); overflow: hidden; border: 1px solid var(--border, #e2e8f0); box-shadow: var(--shadow-lg, 0 8px 32px rgba(17,70,115,0.1)); background: var(--bg-alt, #f8fafc); }
img.ask-shot { display: block; width: 100%; height: auto; cursor: zoom-in; border-radius: inherit; }
img.ask-shot:focus { outline: none; }
/* Inset ring: .ask-split-image and the frame clip with overflow:hidden, which would hide an outer ring. */
img.ask-shot:focus-visible { outline: 3px solid var(--turquoise, #6EF0F2); outline-offset: -3px; }
.ask-shot-wrap figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-secondary, #475569); text-align: center; }
.ask-dash-card .ask-shot-wrap { margin: -8px -8px 18px; }
.ask-dash-card .ask-shot-wrap .ask-shot-frame { border-radius: var(--radius, 12px); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06)); }

/* The hint badge. The JS writes its words ("Click to enlarge" / "Tap to enlarge"); the old "View Larger"
   text link is gone. Absolutely positioned, so it never moves the layout. */
.ask-shot-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(10,42,69,0.82); color: #fff; font: 600 12px/1 "DM Sans", sans-serif; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 2; }
.ask-shot-hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ask-shot-frame:hover .ask-shot-hint,
.ask-shot-frame:focus-within .ask-shot-hint { opacity: 1; transform: none; }
/* Touch screens have no hover: keep the hint visible so people know they can tap. */
@media (hover: none) { .ask-shot-hint { opacity: 1; transform: none; } }

/* ── Hover lens (desktop, fine pointer only) ──────────────────────────────────── */
.ask-lens { position: fixed; left: 0; top: 0; width: 220px; height: 220px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 10px 40px rgba(10,42,69,0.35), 0 0 0 1px rgba(17,70,115,0.25); background-color: #fff; background-repeat: no-repeat; pointer-events: none; z-index: 99990; opacity: 0; transition: opacity 0.12s ease; will-change: transform; }
.ask-lens.ask-lens-on { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────────────────────────── */
html.ask-lb-lock, html.ask-lb-lock body { overflow: hidden !important; }
.ask-lb { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: rgba(10,42,69,0.97); color: #fff; font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; opacity: 0; transition: opacity 0.2s ease; }
.ask-lb[hidden] { display: none; }
.ask-lb.ask-lb-open { opacity: 1; }
.ask-lb-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; flex: 0 0 auto; position: relative; z-index: 2; }
.ask-lb-zoom { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,0.08); }
.ask-lb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: 700 18px/1 "DM Sans", sans-serif; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.ask-lb-btn:hover { background: rgba(255,255,255,0.14); }
.ask-lb-btn:focus-visible { outline: 3px solid var(--turquoise, #6EF0F2); outline-offset: 2px; }
.ask-lb-btn:disabled { opacity: 0.35; cursor: default; background: transparent; }
.ask-lb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.ask-lb-pct { min-width: 58px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.ask-lb-close { background: var(--turquoise, #6EF0F2); color: var(--slate, #114673); margin-left: 4px; }
.ask-lb-close:hover { background: #fff; color: var(--slate, #114673); }
.ask-lb-stage { position: relative; flex: 1 1 auto; overflow: hidden; touch-action: none; cursor: default; }
.ask-lb-stage.ask-lb-pannable { cursor: grab; }
.ask-lb-stage.ask-lb-dragging { cursor: grabbing; }
.ask-lb-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.45); background: #fff; }
.ask-lb-anim .ask-lb-img { transition: transform 0.18s ease; }
.ask-lb-cap { flex: 0 0 auto; margin: 0; padding: 12px 20px 18px; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.88); }
.ask-lb-cap:empty { display: none; }
.ask-lb-load { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,0.5); font-size: 12px; font-weight: 600; }
.ask-lb-load[hidden] { display: none; }
@media (max-width: 600px) {
  .ask-lb-bar { justify-content: space-between; padding: 8px; }
  .ask-lb-btn { min-width: 38px; height: 38px; padding: 0 6px; }
  .ask-lb-cap { font-size: 13px; padding: 8px 16px 14px; }
}

/* ── Rotating hero example card ──────────────────────────────────────────────── */
.hh-card[data-hh-rotate] .hh-card-body { transition: opacity 0.28s ease; }
.hh-card[data-hh-rotate] .hh-card-body.hh-fade { opacity: 0; }
.hh-next { margin-left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid #E2E8F2; border-radius: 999px; background: #fff; color: #114673; font: 700 11.5px/1 "Epilogue", sans-serif; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.hh-next:hover { background: #E1ECFF; border-color: #c7d7f5; }
.hh-next:focus-visible { outline: 3px solid var(--turquoise, #6EF0F2); outline-offset: 2px; }
.hh-next svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hh-list { list-style: none; margin: 14px 0 4px; padding: 0; display: grid; gap: 6px; }
.hh-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.4; color: #0F2037; padding: 6px 10px; background: #f4f7fc; border: 1px solid #E2E8F2; border-radius: 8px; }
.hh-list li b { font-family: "Epilogue", sans-serif; font-weight: 700; color: #114673; white-space: nowrap; }
.hh-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: #5A6B82; }
.hh-note b { color: #0F2037; font-weight: 700; }
.hh-vtxt { flex: 1 1 160px; min-width: 0; }
.hh-conf { font-size: 12px; white-space: nowrap; margin-left: auto; }
.hh-sources { margin: 8px 0 0; font-size: 11.5px; color: #5A6B82; }
/* The card sits inside .ask-hero, whose "p" rule (white, centered, 17px, 28px bottom margin) outranks the
   card's own classes; before this the answer sentence was white on white. Two-class selectors win. */
.ask-hero .hh-card { text-align: left; }
.ask-hero .hh-card p { color: #0F2037; text-align: left; max-width: none; margin: 0; font-size: 15.5px; line-height: 1.5; }
.ask-hero .hh-card .hh-answer-text { font-weight: 500; }
.ask-hero .hh-card .hh-note { font-size: 12.5px; line-height: 1.45; color: #5A6B82; margin: 10px 0 0; }
.ask-hero .hh-card .hh-sources { font-size: 11.5px; color: #5A6B82; margin: 8px 0 0; }
.ask-hero .hh-card .hh-list { margin: 14px 0 4px; padding: 0; }
.ask-hero .hh-card .hh-list li { margin: 0; color: #0F2037; font-size: 13px; }
.ask-hero .hh-card .hh-vtxt { font-size: 13px; line-height: 1.35; text-align: left; }
.ask-hero .hh-card .hh-vtxt span { color: #3f7a63; }
.ask-hero .hh-card .hh-chart-labels span { font-size: 11px; color: #5A6B82; }

/* ── Card titles that moved from <h4> to <h3> on 22 Oct, kept at their old size ── */
.ask-category-item h3 { font-size: 15px; font-weight: 700; color: var(--slate, #114673); margin: 0 0 4px; }
.ask-dash-card h3 { font-size: 17px; font-weight: 700; color: var(--slate, #114673); margin: 0 0 4px; }
.ask-highlight h3, .ask-highlight h2 { font-size: 16px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; color: var(--text, #0f172a); }
.ask-security-item h3 { font-size: 15px; font-weight: 700; color: var(--slate, #114673); margin: 0 0 6px; }
.ask-icon-feature h3 { font-size: 16px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 4px; }
.ask-numbered-item h3 { font-size: 16px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 4px; }
.ask-process-step h3 { font-size: 15px; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 4px; }
.ask-related-card h3 { font-family: "Epilogue", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--text, #0f172a); margin: 0; }
.ask-sources-list h3 { font-family: "Epilogue", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary, #475569); margin: 0 0 14px; }
.ask-persona-info .ask-persona-name { font-family: "Epilogue", sans-serif; font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0 0 2px; color: var(--text, #0f172a); }

/* ── Plain lists inside feature sections ───────────────────────────────────── */
.ask-list { margin: 12px 0 0; padding-left: 22px; }
.ask-list li { margin: 0 0 8px; line-height: 1.6; color: var(--text-secondary, #475569); }
.ask-list li strong { color: var(--text, #0f172a); }
.ask-new-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(110,240,242,0.25); color: var(--slate, #114673); font: 700 11px/1.6 "DM Sans", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }

/* ── Source grid: the Required badge on GA4, and row widths that fit the group ── */
.ask-source-required { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 999px; background: var(--slate, #114673); color: #fff; font: 700 10px/1.5 "DM Sans", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.ask-source-grid.ask-source-grid-6 { grid-template-columns: repeat(6, minmax(0, 150px)); }
.ask-source-grid.ask-source-grid-2 { grid-template-columns: repeat(2, minmax(0, 150px)); }
@media (max-width: 1023px) { .ask-source-grid.ask-source-grid-6 { grid-template-columns: repeat(3, minmax(0, 150px)); } }
@media (max-width: 640px) { .ask-source-grid.ask-source-grid-6 { grid-template-columns: repeat(2, minmax(0, 150px)); } }

/* ── Reduced motion: nothing moves or fades ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ask-lb, .ask-lb-anim .ask-lb-img, .ask-lb-btn, .ask-shot-hint, .ask-lens,
  .hh-card[data-hh-rotate] .hh-card-body, .hh-next { transition: none !important; }
}

/* ── Dark feature cards: link text (3 Nov 2026) ─────────────────────────────── */
/* The whole card is an <a>, so its "Learn More →" is a <span class="ask-link"> that the askalytics.css
   rule ".ask-feat-askai a" (white) never reaches. It fell back to the dark body link colour on slate/eggplant. */
.ask-feat-askai .ask-link, .ask-feat-insights .ask-link { color: #fff; font-weight: 700; }
