/* examples.css: the shared panels and blocks of src/examples.mjs (30 Oct 2026).
   The shell loads it on any page whose HTML carries one of them. Studio tokens
   (assets/studio.css): white panels, #e0e7f0 lines, navy ink, blue-teal accent.
   Logical properties throughout, so every block reads right to left on Arabic pages. */

.ex-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- The example frame ---------- */
.ex-panel{margin:0;min-width:0;max-width:100%;background:var(--panel,#fff);border:1px solid var(--line,#e0e7f0);border-radius:20px;box-shadow:0 22px 60px -38px #1d365b55,0 1px 2px #172d4d08;overflow:hidden;color:var(--ink,#0b1440);font-size:14px;line-height:1.55;text-align:start}
.ex-bar{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line-soft,#edf1f7);background:linear-gradient(180deg,#fbfdff,#f6f9fd)}
.ex-dots{display:inline-flex;gap:5px;flex:none}
.ex-dots i{width:8px;height:8px;border-radius:50%;background:#dbe3ee}
.ex-bar-title{font-family:var(--font-display);font-size:12px;font-weight:600;color:#4d5b75;letter-spacing:-.01em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-bar .example-pill{margin-inline-start:auto;flex:none}
.ex-body{padding:16px}
.ex-cap{margin:0;padding:11px 16px 13px;border-top:1px solid var(--line-soft,#edf1f7);background:#fbfcfe;color:var(--muted,#5c6780);font-size:12.5px;line-height:1.6}

.ex-panel p{margin:0}
.ex-panel ul,.ex-panel ol{list-style:none;margin:0;padding:0}
.ex-k{font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#5d6d87;margin-bottom:8px!important}
[dir=rtl] .ex-k,[dir=rtl] .ex-panel .ex-k{letter-spacing:0;text-transform:none;font-size:12px}
.ex-h{font-family:var(--font-display);font-size:18px;font-weight:600;letter-spacing:-.03em;line-height:1.3;color:var(--ink,#0b1440);margin-bottom:12px!important}
[dir=rtl] .ex-h{letter-spacing:0;line-height:1.6}
.ex-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#eaf6fc;color:#08729d;font-size:11px;font-weight:700;letter-spacing:0;vertical-align:1px}
.ex-card{border:1px solid var(--line,#e0e7f0);border-radius:14px;padding:12px 13px;background:#fff;min-width:0}
.ex-card-tint{background:#f3f9fd;border-color:#d7eaf5}
.ex-meta{margin-top:10px!important;color:#6a778f;font-size:12px}
.ex-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#e5f4fb,#eef0ff);color:#0b5e85;font-family:var(--font-display);font-size:13px;font-weight:600}
.ex-avatar-sq{border-radius:10px}
.ex-chip{display:inline-flex;align-items:center;padding:3px 10px;border:1px solid #d9e6f0;border-radius:999px;background:#fff;color:#33415f;font-size:12px;font-weight:550;white-space:nowrap}
.ex-chip.is-on{background:#0b1440;border-color:#0b1440;color:#fff}
.ex-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:7px;background:#f1f4f9;color:#44516d;font-size:11px;font-weight:600;white-space:nowrap}
.ex-tag-rolling{background:#e8f4fc;color:#0a6a95}
.ex-tag-open{background:#e7f6ef;color:#14704f}
.ex-tag-closed{background:#f1f2f5;color:#606a7d}
.ex-tag-network{background:#f2efff;color:#5a46b8;white-space:normal}
.ex-state{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap;background:#f1f4f9;color:#4f5b73}
.ex-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ex-state-live,.ex-state-claimed{background:#e7f6ef;color:#14704f}
.ex-state-connecting{background:#fff6e5;color:#86590c}
.ex-state-requested{background:#e8f4fc;color:#0a6a95}
.ex-state-shortlisted{background:#f2efff;color:#5a46b8}

/* Pictures of buttons: never focusable, never clickable. */
.ex-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ex-actions-tight{margin-top:0}
.ex-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 13px;border:1px solid #d5e1ec;border-radius:10px;background:#fff;color:#1f2b48;font-family:var(--font-display);font-size:12.5px;font-weight:600;white-space:nowrap;user-select:none}
.ex-btn-primary{background:var(--brand-grad-btn,linear-gradient(115deg,#0875a4,#087f8d));border-color:#087d9c;color:#fff}
.ex-btn.is-disabled{opacity:.55}
.ex-tick{display:inline-flex;align-items:center;justify-content:center;flex:none;width:17px;height:17px;margin-top:2px;border:1.5px solid #b9cadb;border-radius:5px;background:#fff}
.ex-tick svg,.ex-yes svg,.ex-clock-ico svg,.ex-offer-ico svg{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ex-tick svg{width:12px;height:12px}

/* ---------- exReply ---------- */
.ex-reply{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.5fr);gap:14px}
.ex-queue ul{display:grid;gap:6px}
.ex-queue li{display:flex;gap:9px;align-items:flex-start;padding:9px;border:1px solid transparent;border-radius:12px}
.ex-queue li.is-on{background:#f1f8fd;border-color:#cfe5f2}
.ex-q-text{display:grid;min-width:0}
.ex-q-text b{font-size:13px;font-weight:650;color:#13204a}
.ex-q-text span{font-size:12.5px;color:#3d4a66;line-height:1.4}
.ex-q-text small{font-size:11.5px;color:#6f7c93}
.ex-thread{display:grid;gap:10px;min-width:0}
.ex-msg{border:1px solid var(--line,#e0e7f0);border-radius:14px;padding:11px 13px}
.ex-msg p+p{margin-top:8px!important}
.ex-from{font-size:12px;color:#66738b;margin-bottom:5px!important}
.ex-from b{color:#13204a}
.ex-in{background:#fbfcfe}
.ex-draft{background:#fff;border-color:#a9d4ea;box-shadow:inset 3px 0 0 #0a8ab8}
[dir=rtl] .ex-draft{box-shadow:inset -3px 0 0 #0a8ab8}
.ex-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ex-chips-k{font-size:12px;color:#5d6b84;font-weight:600}

/* ---------- exDecision ---------- */
.ex-clock{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 13px;border:1px solid #f0d9a8;border-radius:14px;background:linear-gradient(120deg,#fffaf0,#fff)}
.ex-clock-ico{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:10px;background:#fff1d6;color:#8a5d0a}
.ex-clock-ico svg{width:20px;height:20px}
.ex-clock-text{display:grid;gap:2px;min-width:0}
.ex-clock-text b{font-size:13.5px;font-weight:650;color:#13204a;line-height:1.45}
.ex-clock-text small{font-size:12px;color:#6b6152}
.ex-stages{display:flex;flex-wrap:wrap;gap:6px 14px;margin:14px 0!important;counter-reset:none}
.ex-stages li{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:#68758c}
.ex-step-dot{width:10px;height:10px;border-radius:50%;border:2px solid #c3d2e1;background:#fff}
.ex-stages li.is-now{color:#08729d;font-weight:650}
.ex-stages li.is-now .ex-step-dot{border-color:#0a8ab8;background:#0a8ab8;box-shadow:0 0 0 3px #d6eef8}
.ex-dec-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px}
.ex-tasks{display:grid;gap:8px}
.ex-tasks li{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:#24314f;line-height:1.45}
.ex-tasks li.is-done{color:#6f7b90;text-decoration:line-through;text-decoration-color:#b7c3d2}
.ex-tasks li.is-done .ex-tick{background:#0a8ab8;border-color:#0a8ab8;color:#fff}
.ex-should{font-size:13px;color:#1f2b48;line-height:1.55}

/* ---------- exApply ---------- */
.ex-lanes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ex-lane{background:#f6f9fc;border:1px solid #e7edf5;border-radius:14px;padding:10px;min-width:0}
.ex-lane ul{display:grid;gap:8px}
.ex-route{display:grid;gap:6px;background:#fff;border:1px solid var(--line,#e0e7f0);border-radius:12px;padding:10px;box-shadow:0 4px 12px -10px #1d365b55}
.ex-route b{font-size:12.5px;font-weight:650;color:#13204a;line-height:1.35}
.ex-route small{font-size:11.5px;color:#66738b;line-height:1.45}
.ex-tags{display:flex;flex-wrap:wrap;gap:5px}
.ex-ask{display:grid;gap:7px;margin-top:2px;padding:9px;border-radius:10px;background:#eef8fd;border:1px dashed #9fcde4}
.ex-ask p{font-size:12px;color:#0b4f71;font-weight:600;line-height:1.45}
.ex-ask .ex-btn{min-height:28px;padding:3px 11px;font-size:12px}

/* ---------- exPerks ---------- */
.ex-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px!important}
.ex-perks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ex-perk{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:12px;border:1px solid var(--line,#e0e7f0);border-radius:14px;background:#fff;min-width:0}
.ex-perk-head{display:flex;gap:9px;align-items:flex-start;min-width:0}
.ex-perk-head>span:last-child{display:grid;min-width:0}
.ex-perk-head b{font-size:13px;font-weight:650;color:#13204a}
.ex-perk-head span span{font-size:12.5px;color:#3d4a66;line-height:1.4}
.ex-perk-how{display:grid;gap:1px;font-size:12.5px;color:#1f2b48;font-weight:600;line-height:1.4}
.ex-perk-how small{font-size:11px;color:#6f7c93;font-weight:500}
.ex-perk .ex-state{margin-top:auto}

/* ---------- exHub ---------- */
.ex-hub-tiles{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:10px}
.ex-hub-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ex-bar-chart{display:flex;gap:3px;height:10px;margin:2px 0 9px}
.ex-seg{display:block;height:10px;border-radius:4px;min-width:8px}
.ex-seg-0{background:#bfdcef}.ex-seg-1{background:#5fb3db}.ex-seg-2{background:#0a8ab8}.ex-seg-3{background:#0b1440}
.ex-legend{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11.5px;color:#4f5b73}
.ex-legend li{display:inline-flex;align-items:center;gap:5px}
.ex-legend .ex-seg{width:8px;height:8px;min-width:8px;border-radius:2px}
.ex-big{font-family:var(--font-display);font-size:28px;font-weight:600;letter-spacing:-.04em;line-height:1.1;color:var(--ink,#0b1440)}
.ex-big small{display:block;margin-top:3px;font-family:var(--font-body);font-size:12px;font-weight:500;letter-spacing:0;color:#66738b}
.ex-list{display:grid;gap:8px}
.ex-list li{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:#24314f;line-height:1.45}
.ex-list li b{display:block;font-weight:650;color:#13204a}
.ex-list li:has(b){display:grid;gap:1px}
.ex-list li:has(b) span{color:#66738b;font-size:12px}
.ex-list .ex-tick{width:14px;height:14px;margin-top:3px;border-radius:4px}

/* ---------- coverageTable ---------- */
.ex-cov{margin:0;min-width:0}
/* No overflow:hidden here: it would clip the caption at the rounded corner. The corner cells round instead. */
.ex-cov-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line,#e0e7f0);border-radius:18px;background:#fff;box-shadow:var(--shadow-card,0 14px 34px -20px #203c7133);font-size:14px;text-align:start}
.ex-cov-table thead th:first-child{border-start-start-radius:17px}
.ex-cov-table thead th:last-child{border-start-end-radius:17px}
.ex-cov-table tbody tr:last-child>:first-child{border-end-start-radius:17px}
.ex-cov-table tbody tr:last-child>:last-child{border-end-end-radius:17px}
.ex-cov-table caption{caption-side:top;text-align:start;padding:0 2px 10px;font-size:12px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-deep,#08688c)}
[dir=rtl] .ex-cov-table caption{letter-spacing:0;text-transform:none;font-size:13px}
.ex-cov-table th,.ex-cov-table td{padding:13px 16px;border-bottom:1px solid var(--line-soft,#edf1f7);text-align:start;vertical-align:middle}
.ex-cov-table thead th{background:#f6f9fc;color:#4a5872;font-size:12px;font-weight:650;line-height:1.4}
.ex-cov-table tbody tr:last-child>*{border-bottom:0}
.ex-cov-table tbody th{font-weight:600;color:var(--ink,#0b1440);white-space:nowrap}
.ex-cov-table tbody th>*{vertical-align:middle}
.ex-cov-market{display:inline-flex;align-items:center;gap:9px;margin-inline-end:10px}
.ex-cov-market .flag{width:20px;height:20px;border-radius:50%;box-shadow:0 0 0 1px #0b144014}
.ex-cov-table td{color:#33415f}
.ex-yes{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:50%;background:#e7f6ef;color:#14704f}
.ex-yes svg{width:15px;height:15px}
.ex-no{color:#a3aec0;font-weight:600}
.ex-cov-table tr.is-connecting>*{background:#fffdf8}
.ex-cov-table tr.is-connecting .flag{filter:grayscale(1);opacity:.55}
.ex-cov-wait{color:#6b6152!important;font-size:13px}
.ex-cov-join{font-weight:600;color:var(--accent,#0875a4);text-decoration:underline;text-decoration-color:#087eae55;text-underline-offset:3px;white-space:normal}
.ex-cov-join:hover{color:#065a80}
.ex-cov-note{margin:12px 2px 0;font-size:13px;line-height:1.6;color:var(--muted,#5c6780);max-width:80ch}
.ex-cov-compact .ex-cov-table{font-size:13px}
.ex-cov-compact .ex-cov-table th,.ex-cov-compact .ex-cov-table td{padding:10px 13px}

/* ---------- figureTiles ---------- */
.ex-figs-wrap{min-width:0}
.ex-figs{display:grid;grid-template-columns:repeat(var(--ex-n,4),minmax(0,1fr));gap:14px}
.ex-fig{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:20px 20px 18px;border:1px solid #e2e9f2;border-radius:20px;background:#fff;box-shadow:var(--shadow-card,0 14px 34px -20px #203c7133);color:inherit;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
a.ex-fig:hover{border-color:#bedcec;box-shadow:0 20px 50px -26px #15386444;transform:translateY(-2px)}
.ex-fig b{font-family:var(--font-display);font-weight:600;font-size:clamp(30px,3.4vw,46px);letter-spacing:-.055em;line-height:1.05;color:var(--brand-a,#087eae)}
.ex-fig .ex-plus{font-weight:500;margin-inline-start:1px}
a.ex-fig b,a.ex-fig .ex-fig-label{padding-inline-end:22px}
[dir=rtl] .ex-fig b{letter-spacing:0}
.ex-fig-label{font-family:var(--font-display);font-size:15px;font-weight:600;color:var(--ink,#0b1440);letter-spacing:-.02em;line-height:1.35}
[dir=rtl] .ex-fig-label{letter-spacing:0}
.ex-fig small{margin-top:4px;font-size:12.5px;line-height:1.6;color:#62708a}
.ex-fig-go{position:absolute;inset-block-start:16px;inset-inline-end:18px;color:#8aa3bb;font-size:15px;transition:color .2s}
a.ex-fig:hover .ex-fig-go{color:var(--accent,#0875a4)}
.ex-figs-note{margin:12px 2px 0;font-size:12.5px;color:#66738b}

/* ---------- missionSideways ---------- */
.ex-sideways{padding:28px 0 8px}
.ex-side{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ex-side a{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;min-height:64px;padding:16px 20px;border:1px solid #dce8f1;border-radius:18px;background:linear-gradient(120deg,#f6fbff,#fbfaff);color:var(--ink,#0b1440);text-decoration:none;transition:border-color .2s,background .2s}
.ex-side a:hover{border-color:#a9d4ea;background:#f1f9fe}
.ex-side-q{color:#4b5874;font-size:15px}
.ex-side-to{font-family:var(--font-display);font-weight:600;font-size:15px;color:var(--accent,#0875a4);white-space:nowrap}

/* ---------- offerTiles ---------- */
.ex-offers{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ex-offer{display:flex;flex-direction:column;gap:8px;min-width:0;padding:24px;border:1px solid #e2e9f2;border-radius:22px;background:#fff;box-shadow:var(--shadow-card,0 14px 34px -20px #203c7133)}
.ex-offer-ico{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:#eef8fd;border:1px solid #dcecf7;color:var(--brand-a,#087eae);margin-bottom:6px}
.ex-offer-ico svg{width:21px;height:21px}
.ex-offer b{font-family:var(--font-display);font-size:19px;font-weight:600;letter-spacing:-.03em;color:var(--ink,#0b1440);line-height:1.3}
[dir=rtl] .ex-offer b{letter-spacing:0}
.ex-offer p{margin:0;font-size:14px;line-height:1.75;color:var(--muted,#5c6780)}

/* ---------- Tablets and phones ---------- */
@media (max-width:1023px){
  .ex-lanes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ex-figs{grid-template-columns:repeat(min(var(--ex-n,4),2),minmax(0,1fr))}
}
@media (max-width:760px){
  .ex-body{padding:13px}
  .ex-reply,.ex-dec-grid,.ex-hub-tiles,.ex-hub-cols,.ex-perks,.ex-offers,.ex-side{grid-template-columns:minmax(0,1fr)}
  .ex-queue ul{grid-template-columns:minmax(0,1fr)}
  .ex-queue li:not(.is-on){display:none}
  .ex-clock{grid-template-columns:auto minmax(0,1fr)}
  .ex-clock .ex-actions{grid-column:1/-1}
  .ex-fig{padding:16px 15px 15px;border-radius:17px}
  .ex-fig b{font-size:30px}
  .ex-fig small{font-size:12px}
  .ex-figs{gap:10px}
  .ex-offer{padding:20px}
  /* The coverage table becomes one card per market, each cell with its label. */
  .ex-cov-table,.ex-cov-table thead,.ex-cov-table tbody,.ex-cov-table tr,.ex-cov-table th,.ex-cov-table td{display:block}
  .ex-cov-table{border:0;box-shadow:none;background:none}
  .ex-cov-table tbody tr>*{border-radius:0!important}
  .ex-cov-table caption{display:block}
  .ex-cov-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .ex-cov-table tbody{display:grid;gap:10px}
  .ex-cov-table tbody tr{border:1px solid var(--line,#e0e7f0);border-radius:16px;background:#fff;overflow:hidden}
  .ex-cov-table tbody th{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;white-space:normal;border-bottom:1px solid var(--line-soft,#edf1f7)}
  .ex-cov-table tbody tr>*{border-bottom:1px solid var(--line-soft,#edf1f7)}
  .ex-cov-table tbody tr>*:last-child{border-bottom:0}
  .ex-cov-table td[data-label]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;font-size:13px}
  .ex-cov-table td[data-label]::before{content:attr(data-label);color:#4a5872;font-size:12.5px;line-height:1.4}
  .ex-cov-table td .ex-sr{position:static!important;width:auto;height:auto;margin:0;clip:auto;overflow:visible;font-size:12px;color:#5d6b84}
  .ex-cov-table td .ex-yes,.ex-cov-table td .ex-no{display:none}
}
@media (max-width:420px){
  .ex-lanes{grid-template-columns:minmax(0,1fr)}
  .ex-bar-title{font-size:11px}
  .ex-side a{padding:14px 16px}
  .ex-side-q,.ex-side-to{font-size:14px}
  .ex-fig b{font-size:26px}
  .ex-fig{padding:14px 12px}
  .ex-fig-go{inset-inline-end:10px;inset-block-start:10px;font-size:13px}
  a.ex-fig b,a.ex-fig .ex-fig-label{padding-inline-end:16px}
}
@media (prefers-reduced-motion:reduce){
  .ex-fig,.ex-side a{transition:none}
  a.ex-fig:hover{transform:none}
}
