/* Additive Ripple blue utility; existing page styles remain untouched. */
.kete-capture { display:inline-flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; margin-top:14px; padding:8px; border:1px solid #d8e5ec; border-radius:9px; background:#fff; color:#173c63; font-family:inherit; font-size:.875rem; font-weight:600; line-height:1.4; cursor:pointer; }
.kete-capture:hover { background:#eaf3f7; }
.kete-trigger { position:fixed; right:20px; bottom:20px; z-index:45; padding:13px 18px; border:1px solid #347fac; border-radius:30px; background:#173c63; color:white; box-shadow:0 8px 25px #142a4326; font:inherit; font-size:.95rem; font-weight:650; cursor:pointer; }
.kete-trigger:focus-visible,.kete-drawer button:focus-visible,.kete-capture:focus-visible { outline:3px solid #81b9d0; outline-offset:3px; }
.kete-drawer { position:fixed; inset:0 0 0 auto; width:min(520px,100%); height:100dvh; max-height:100dvh; max-width:100%; padding:0; margin:0 0 0 auto; border:0; background:#f3f7fa; color:#142a43; font-family:inherit; box-shadow:-12px 0 45px #142a4326; }
.kete-drawer[open] { display:flex; flex-direction:column; }
.kete-drawer::backdrop { background:#142a4366; }
.kete-drawer * { box-sizing:border-box; }
.kete-head { display:flex; align-items:center; justify-content:space-between; flex:none; gap:20px; padding:22px 24px; border-bottom:1px solid #d8e5ec; background:white; }
.kete-head h2 { margin:0; font-size:1.6rem; color:#173c63; letter-spacing:-.025em; }
.kete-drawer button,.kete-drawer select { font-family:inherit; font-size:.875rem; min-height:36px; border:1px solid #d8e5ec; border-radius:8px; padding:8px 11px; background:white; color:#173c63; cursor:pointer; }
.kete-drawer button:disabled { opacity:.45; cursor:default; }
.kete-scroll { flex:1; overflow:auto; padding:20px 24px; overscroll-behavior:contain; }
.kete-device-note { margin:0 0 8px; color:#173c63; font-size:.9rem; font-weight:600; line-height:1.5; }
.kete-storage-help { margin-bottom:18px; color:#607386; font-size:.875rem; line-height:1.5; }
.kete-storage-help summary { cursor:pointer; }
.kete-storage-help p { margin:8px 0; }
.kete-storage-warning { padding:12px; border:1px solid #e0a35a; border-radius:9px; background:#fff9eb; font-size:.875rem; line-height:1.5; }
.kete-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:16px; }
.kete-item { border:1px solid #d8e5ec; border-radius:16px; padding:20px; background:#fff; }
.kete-topic { margin:0 0 7px; color:#2d7199; font-size:.875rem; font-weight:600; }
.kete-item h3 { margin:0; color:#173c63; font-size:1.15rem; line-height:1.3; }
.kete-value { margin:10px 0; color:#173c63; font-size:1.6rem; line-height:1.2; font-weight:700; }
.kete-description,.kete-context { margin:9px 0; font-size:.9rem; color:#607386; line-height:1.5; }
.kete-context { color:#173c63; font-weight:550; }
.kete-source { display:flex; flex-direction:column; gap:5px; border-top:1px solid #d8e5ec; margin-top:14px; padding-top:12px; font-size:.875rem; line-height:1.4; }
.kete-source a { color:#2d7199; text-underline-offset:3px; }
.kete-copy-row { display:flex; gap:8px; margin-top:16px; }
.kete-copy-row select { min-width:0; flex:1; }
.kete-item-controls { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.kete-item-controls button { font-size:.875rem; }
.kete-item-controls button:last-child { margin-left:auto; }
.kete-footer { flex:none; padding:16px 24px max(16px,env(safe-area-inset-bottom)); border-top:1px solid #d8e5ec; background:white; }
.kete-export-actions { display:flex; gap:10px; }
.kete-export-actions .kete-primary { flex:1; background:#173c63; color:white; border-color:#173c63; font-weight:600; min-height:44px; }
.kete-footer-bottom { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:10px; }
.kete-footer-bottom p { margin:0 0 0 auto; font-size:.875rem; color:#607386; }
.kete-empty { padding:25px 0; }
.kete-empty h3 { color:#173c63; font-size:1.2rem; }
.kete-empty p { font-size:1rem; line-height:1.6; color:#607386; }
.kete-empty a { color:#173c63; font-size:.95rem; }
.kete-toast { position:fixed; bottom:78px; right:20px; max-width:min(380px,calc(100% - 40px)); z-index:80; padding:12px 16px; border-radius:12px; background:#173c63; color:white; box-shadow:0 8px 22px #142a4333; font-size:.95rem; line-height:1.5; }
.kete-toast[hidden],.kete-drawer [hidden] { display:none !important; }
.kete-copy-fallback { width:calc(100% - 32px); min-height:150px; margin:16px; padding:12px; font:inherit; }
@media(max-width:620px) { .kete-trigger { right:14px; bottom:max(14px,env(safe-area-inset-bottom)); padding:11px 15px; } .kete-scroll { padding:18px 16px; } .kete-head { padding:18px 16px; } .kete-footer { padding-left:16px; padding-right:16px; } .kete-footer-bottom p { width:100%; margin:6px 0 0; } }
@media print { .kete-trigger,.kete-drawer,.kete-toast,.kete-capture { display:none !important; } }

.bars > .kete-capture, .table-bars > .kete-capture { justify-self:start; margin-top:3px; }

/* Shared capture placement: card footers align across each grid. */
.people-stat,.access-stat,.qual-stat,.travel-stat,.ncea-stat,.support-stat,.ei-stat,.imd-domain,.roll-card,.eqi-card { display:flex; flex-direction:column; }
.people-stat > .kete-capture,.access-stat > .kete-capture,.qual-stat > .kete-capture,.travel-stat > .kete-capture,.ncea-stat > .kete-capture,.support-stat > .kete-capture,.ei-stat > .kete-capture,.imd-domain > .kete-capture,.metric-card > .kete-capture,.roll-card > .kete-capture,.eqi-card > .kete-capture { margin-top:auto; align-self:flex-end; }
.people-stat:has(.kete-capture),.access-stat:has(.kete-capture),.qual-stat:has(.kete-capture),.travel-stat:has(.kete-capture),.ncea-stat:has(.kete-capture),.support-stat:has(.kete-capture),.ei-stat:has(.kete-capture),.imd-domain:has(.kete-capture),.metric-card:has(.kete-capture),.roll-card:has(.kete-capture),.eqi-card:has(.kete-capture) { gap:10px; }
.card > .kete-capture { display:flex; margin-left:auto; }
.compare-row > .bars,.table-bars { position:relative; }
.bars > .kete-capture,.table-bars > .kete-capture { position:absolute; right:0; top:0; margin:0; width:34px; height:34px; padding:6px; }
.bars:has(> .kete-capture),.table-bars:has(> .kete-capture) { padding-right:42px; }
.kete-capture svg { pointer-events:none; }
.kete-capture-note { margin:0 0 14px; color:#607386; font-size:.875rem; line-height:1.5; }

/* Once-per-visit introduction, shared across every Explorer entry page. */
.kete-welcome { box-sizing:border-box; position:fixed; inset:0; width:min(460px,calc(100% - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:34px; overflow:auto; border:1px solid #d8e5ec; border-radius:26px; background:radial-gradient(ellipse at top left,#e6f2f7,transparent 70%),#fff; color:#173c63; box-shadow:0 24px 80px #142a4333; font-family:inherit; text-align:left; }
.kete-welcome::backdrop { background:#102b48a6; backdrop-filter:blur(3px); }
.kete-welcome-icon { display:grid; place-items:center; width:68px; height:68px; margin-bottom:22px; border:1px solid #bed9e6; border-radius:19px; background:#fff; color:#173c63; }
.kete-welcome-label { margin:0 0 9px; font-size:.8rem; font-weight:700; letter-spacing:.065em; text-transform:uppercase; color:#2d7199; }
.kete-welcome h2 { margin:0 0 18px; padding:0; color:#173c63; font-size:clamp(1.65rem,6vw,2rem); line-height:1.15; letter-spacing:-.035em; }
.kete-welcome-description p { margin:0 0 14px; font-size:1rem; line-height:1.6; color:#405b70; }
.kete-welcome-device { margin:20px 0; font-size:.85rem; line-height:1.5; color:#607386; }
.kete-welcome button { font-family:inherit; cursor:pointer; }
.kete-welcome-done { width:100%; min-height:48px; padding:13px 18px; border:1px solid #173c63; border-radius:12px; background:#173c63; color:#fff; font-size:1rem; font-weight:650; }
.kete-welcome-done:hover { background:#24547e; }
.kete-welcome button:focus-visible { outline:3px solid #347fac; outline-offset:3px; }
body:has(.kete-welcome[open]) { overflow:hidden; }
@media(max-width:540px) { .kete-welcome { inset:auto 0 0; width:100%; max-height:calc(100dvh - 20px); margin:0; padding:30px 26px max(24px,env(safe-area-inset-bottom)); border-radius:26px 26px 0 0; border-bottom:0; } }
