/* Doc 591-I / 591-H — /examples hub and the /examples/<slug> how-to pages. Self-contained (.exq). */
.exq { --ink: #0B1220; --muted: #64748B; --line: #E2E8F0; --soft: #F8FAFC; --blue: #2563EB; --blue2: #1D4ED8; --bsoft: #EFF6FF; --green: #16A34A; color: var(--ink); }
.exq * { box-sizing: border-box; }
.ex-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.ex-hero { padding: 40px 0 8px; }
.ex-crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ex-crumb a { color: var(--muted); text-decoration: none; }
.exq h1 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; line-height: 1.08; margin: 0 0 12px; }
.ex-lead { font-size: 18px; color: #334155; line-height: 1.55; max-width: 760px; margin: 0; }
.ex-list-sec { padding: 22px 0 50px; }
.ex-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ex-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: #334155; }
.ex-tab i { font-style: normal; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
.ex-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ex-tab.on i { color: #CBD5E1; }
.ex-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); background: #fff; max-width: 520px; }
.ex-search input { border: 0; outline: 0; font: inherit; font-size: 16px; padding: 11px 0; flex: 1; min-width: 0; color: var(--ink); background: transparent; }
.ex-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--bsoft); }
.ex-rows { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ex-row { display: grid; grid-template-columns: 140px 1fr auto auto; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.ex-row:first-child { border-top: 0; }
.ex-row[hidden] { display: none; }
.ex-row:hover { background: #FAFCFF; }
.ex-kind { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; justify-self: start; white-space: nowrap; }
.ex-k-booking { background: #EFF6FF; color: #1D4ED8; }
.ex-k-event { background: #FDF4FF; color: #A21CAF; }
.ex-k-product { background: #ECFDF5; color: #047857; }
.ex-title { color: var(--ink); text-decoration: none; font-weight: 600; }
.ex-title:hover { text-decoration: underline; }
.ex-open { color: var(--muted); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.ex-how { color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
[dir=rtl] .ex-arr { display: inline-block; transform: scaleX(-1); }
/* Photo cards (the default view) — the same items as the rows; .ex-ph shows only here. */
.ex-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ex-bar .ex-search { flex: 1 1 320px; }
.ex-view { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: #fff; }
.ex-view[hidden] { display: none; }
.ex-view button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.ex-view button.on { background: var(--ink); color: #fff; }
.ex-ph { display: none; }
.ex-rows.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; border: 0; border-radius: 0; overflow: visible; }
.ex-rows.is-grid .ex-row { grid-template-columns: 1fr auto; align-content: start; gap: 8px 12px; padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
.ex-rows.is-grid .ex-row:hover { background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.ex-rows.is-grid .ex-row[hidden] { display: none; }
.ex-rows.is-grid .ex-ph { display: block; grid-column: 1 / -1; margin: 0 -14px 4px; aspect-ratio: 3 / 2; }   /* no photo: the kind's tint (.ex-k-*) */
.ex-rows.is-grid .ex-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-rows.is-grid .ex-kind { grid-column: 1 / -1; }
.ex-rows.is-grid .ex-title { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.35; min-height: 2.7em; }
.ex-rows.is-grid .ex-open { justify-self: start; }
.ex-rows.is-grid .ex-how { justify-self: end; }
.ex-empty { padding: 20px; color: var(--muted); font-size: 14px; }
.ex-count { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ex-cta { background: var(--soft); border-top: 1px solid var(--line); padding: 44px 0; text-align: center; }
.ex-cta h2 { font-size: 26px; margin: 0 0 8px; }
.ex-cta p { color: #475569; margin: 0 0 18px; }
.ex-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px; }
.ex-btn:hover { background: var(--blue2); }
.ex-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 760px) {
    .ex-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
    .ex-kind { grid-column: 1 / -1; }
    .ex-title { grid-column: 1 / -1; }
}

/* ── 591-H how-to page ─────────────────────────────────────────────── */
.hx-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.hx-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hx-body { padding: 26px 0 60px; }
.hx-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.hx-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.hx-rcpt { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.hx-rcpt h2 { font-size: 15px; margin: 0 0 10px; }
.hx-rcpt dl { margin: 0; }
.hx-rcpt dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 13.5px; }
.hx-rcpt dt { color: var(--muted); }
.hx-rcpt dd { margin: 0; font-weight: 600; text-align: end; }
.hx-addr { display: flex; align-items: center; gap: 6px; word-break: break-all; font-size: 12.5px; }
.hx-checked { font-size: 12px; color: var(--green); margin: 10px 0 0; }
.hx-prog { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #334155; }
.hx-prog svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.hx-prog circle { fill: none; stroke-width: 3.6; }
.hx-prog .bg { stroke: #E2E8F0; }
.hx-prog .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dasharray .3s; }
.hx-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hx-st { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; }
.hx-st.is-done { border-color: #BBF7D0; background: #FCFFFD; }
.hx-st header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hx-st h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.hx-done { position: relative; cursor: pointer; }
.hx-done input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hx-done span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bsoft); color: var(--blue2); font-weight: 800; font-size: 14px; }
.hx-st.is-done .hx-done span { background: var(--green); color: #fff; font-size: 0; }
.hx-st.is-done .hx-done span::after { content: '✓'; font-size: 15px; }
.hx-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.hx-wl { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hx-url { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.hx-url code { font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.hx-url a { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hx-fv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.hx-fvh { background: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #475569; padding: 8px 12px; }
.hx-row { display: grid; grid-template-columns: 240px 1fr; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.hx-fvh + .hx-row, .hx-fv > .hx-row:first-child { border-top: 0; }
.hx-l { color: var(--muted); }
.hx-v { display: flex; align-items: flex-start; gap: 6px; font-weight: 600; min-width: 0; word-break: break-word; }
.hx-cp { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: #475569; border-radius: 7px; width: 26px; height: 26px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.hx-cp.ok { background: var(--green); border-color: var(--green); color: #fff; }
.hx-note { font-size: 13.5px; color: #475569; margin: 8px 0 0; }
.hx-press { font-size: 14px; margin: 12px 0 0; }
.hx-kbd { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; border-radius: 8px; padding: 3px 10px; font-size: 13px; }
.hx-phs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.hx-phs figure { margin: 0; position: relative; }
.hx-phs img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.hx-phs figcaption { position: absolute; top: 6px; inset-inline-start: 6px; background: rgba(11, 18, 32, .7); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.hx-ltabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.hx-lt { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.hx-lt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hx-lp[hidden] { display: none; }
.hx-tf { margin-bottom: 12px; }
.hx-tl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: #475569; margin-bottom: 6px; }
.hx-tv { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.55; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 340px; overflow: auto; margin: 0; }
.hx-yours { background: linear-gradient(135deg, #EFF6FF, #F0FDF4); }
.hx-yours p { color: #334155; }
.hx-yours .ex-btn { margin: 6px 8px 0 0; }
@media (max-width: 900px) {
    .hx-grid { grid-template-columns: 1fr; }
    .hx-side { position: static; }
    .hx-row { grid-template-columns: 1fr; gap: 2px; }
    .hx-phs { grid-template-columns: repeat(2, 1fr); }
}
