/* opentracking.org, post 960 "Do You Actually Need a Cookie Banner?" — frames K1, K3, K2 and screenshot blocks S1, S2.
   Prefix ot-cb. Site look: indigo #6366f1 / #4f46e5, pink accent #f472b6, DM Sans for every word inside a frame,
   the indigo-to-pink stripe of the site's boxes on top. Light only: own backgrounds and colours, so the theme's
   dark mode cannot touch them. On the site: theme file ot-cb-960.css, enqueued by functions.php on posts that use it. */
.ot-cb, .ot-cb-shot { color-scheme: only light; }
.article-content figure.ot-cb {
  --cb-ink: #1e293b; --cb-text: #334155; --cb-muted: #556372; --cb-line: #e2e8f0;
  --cb-indigo: #4f46e5; --cb-indigo-50: #eef2ff; --cb-pink: #be185d; --cb-pink-50: #fdf2f8; --cb-pink-200: #fbcfe8;
  position: relative; margin: 2.25em 0; padding: 26px 22px 20px; background: #fff; color: var(--cb-text);
  border: 1px solid var(--cb-line); border-radius: 14px; box-shadow: 0 10px 28px -18px rgba(30, 41, 59, .35);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif; line-height: 1.35; overflow: hidden; container-type: inline-size;
}
.article-content figure.ot-cb::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #6366f1, #f472b6); }
.article-content .ot-cb p { margin-bottom: 0; }
.ot-cb-t { margin: 0 0 20px; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--cb-ink); letter-spacing: -.01em; text-wrap: balance; }
.ot-cb-src { margin: 20px 0 0; padding-top: 12px; border-top: 1px solid var(--cb-line); font-size: 14px; line-height: 1.4; color: var(--cb-muted); }

/* ---------- K1: three test pages, what stayed in the browser ---------- */
.ot-cb-k1-g { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 8px; text-align: center; }
.ot-cb-k1-hl { grid-column: 2; grid-row: 1 / span 3; background: var(--cb-pink-50); border: 2px solid var(--cb-pink-200); border-radius: 12px; margin: -8px -2px -6px; }
.ot-cb-k1-h { grid-row: 1; padding: 0 2px 6px; font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--cb-ink); align-self: end; position: relative; }
.ot-cb-nb { white-space: nowrap; }
.ot-cb-k1-c { position: relative; padding: 12px 0 6px; }
.ot-cb-k1-c[style*="grid-row:3"] { border-top: 1px dashed #cbd5e1; padding-top: 14px; }
.ot-cb-k1-v { display: block; font-size: 40px; font-weight: 700; line-height: 1.05; color: var(--cb-indigo); font-variant-numeric: tabular-nums; }
.ot-cb-k1-v.is-zero { color: #64748b; font-weight: 500; }
.ot-cb-k1-v.is-hit { color: var(--cb-pink); }
.ot-cb-k1-dots { display: flex; justify-content: center; gap: 4px; height: 10px; margin-top: 6px; }
.ot-cb-k1-dots i { width: 10px; height: 10px; border-radius: 50%; background: #6366f1; }
.ot-cb-k1-dots.is-store i { border-radius: 3px; background: #f472b6; }
.ot-cb-k1-u { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; color: var(--cb-muted); }
.ot-cb-k1-g + .ot-cb-src { margin-top: 26px; }

/* ---------- K3: the visitor's device and five ways to touch it ---------- */
.ot-cb-k3-dev { position: relative; margin: 14px 2px 0; padding: 26px 12px 12px; border: 3px solid #334155; border-radius: 16px 16px 10px 10px; background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.ot-cb-k3-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 12px; border-radius: 999px; background: #334155; color: #fff; font-size: 16px; font-weight: 600; }
.ot-cb-k3-base { height: 10px; margin: 0 -14px; background: #334155; border-radius: 0 0 14px 14px; clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); }
.ot-cb-k3-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ot-cb-k3-i { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; gap: 8px; background: #fff; border: 1px solid #c7d2fe; border-radius: 10px; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--cb-ink); }
.ot-cb-k3-i svg { flex: none; width: 24px; height: 24px; }
.ot-cb-k3-i span { min-width: 0; }
.ot-cb-k3-i:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
.ot-cb-k3-rule { margin: 16px 0 0; font-size: 17px; line-height: 1.4; color: var(--cb-ink); }
.ot-cb-k3-rule b { color: var(--cb-pink); font-weight: 700; }
@container (min-width: 560px) { .ot-cb-k3-g { grid-template-columns: repeat(3, 1fr); } .ot-cb-k3-i:last-child:nth-child(odd) { grid-column: auto; justify-content: flex-start; } .ot-cb-k3-dev { margin: 14px 40px 0; } .ot-cb-k3-base { margin: 0 -54px; } }

/* ---------- K2: four questions, top to bottom ---------- */
.ot-cb-k2-l { list-style: none; margin: 0; padding: 0; position: relative; }
.ot-cb-k2-l::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 30px; width: 2px; background: linear-gradient(180deg, #a5b4fc, #f9a8d4); }
.article-content .ot-cb-k2-s { position: relative; margin: 0 0 14px; padding: 0 0 0 28px; border: 0; }
.ot-cb-k2-s:last-child { margin-bottom: 0; }
.ot-cb-k2-s::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #6366f1; box-sizing: border-box; }
.ot-cb-k2-s:last-child::before { border-color: #ec4899; background: #ec4899; }
.ot-cb-k2-q { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: var(--cb-ink); }
.ot-cb-k2-o { display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 8px; margin-top: 6px; }
.ot-cb-k2-a { flex: none; padding-top: 4px; }
.ot-cb-k2-a { font-size: 16px; font-weight: 700; color: var(--cb-muted); }
.ot-cb-k2-a::after { content: ' \2192'; font-weight: 400; }
.ot-cb-k2-r { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.ot-cb-k2-r.is-1 { background: #d1fae5; color: #065f46; }
.ot-cb-k2-r.is-2 { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ot-cb-k2-r.is-3 { background: #fef3c7; color: #78350f; }
.ot-cb-k2-r.is-4 { background: #be185d; color: #fff; }
@container (min-width: 560px) {
  .ot-cb-k2-s { display: grid; grid-template-columns: 1fr 250px; gap: 4px 20px; align-items: center; }
  .ot-cb-k2-o { margin-top: 0; }
}

/* ---------- screenshot blocks S1, S2: a cut of the real page, the whole page on tap ---------- */
.article-content figure.ot-cb-shot { margin: 2.25em 0; }
.ot-cb-shot > a { position: relative; display: block; max-width: 560px; margin: 0 auto; border-radius: 10px; overflow: hidden; border: 1px solid #cbd5e1; box-shadow: 0 16px 30px -22px rgba(30, 41, 59, .55); background: #fff; }
.ot-cb-shot > a::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 92%); pointer-events: none; }
.article-content .ot-cb-shot img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.article-content .ot-cb-shot figcaption a.ot-cb-shot-open { display: inline-block; padding: 10px 0; color: #4f46e5; font-weight: 600; }
.article-content .ot-cb-shot figcaption { max-width: 560px; margin: 12px auto 0; font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; line-height: 1.45; color: #556372; text-align: left; }

/* ---------- reference fold (author's test notes), theme colours so the dark mode stays readable ---------- */
.ot-cb-ref { margin: 2.5em 0 0; border: 1px solid var(--ot-border, #e2e8f0); border-radius: 12px; background: var(--ot-bg-alt, #f8fafc); }
.ot-cb-ref > summary { cursor: pointer; padding: 14px 18px; min-height: 48px; font-family: var(--ot-font-heading); font-weight: 600; font-size: 1rem; color: var(--ot-primary-dark, #4f46e5); list-style-position: inside; }
.ot-cb-ref-b { padding: 0 18px 8px; background: var(--ot-bg, #fff); border-top: 1px solid var(--ot-border, #e2e8f0); border-radius: 0 0 12px 12px; }
.ot-cb-ref-b h3 { margin-top: 1.25em; }
.ot-cb-ref-b td, .ot-cb-ref-b th { font-size: .95rem; }
