/* ============================================
   SOFTWARE — crawler/scraper product pages
   Crawler-specific layer on top of base.css + use-case.css.
   All shared landing chrome (.uc-*, .market-example, .btn) comes from
   base.css / use-case.css; this file only adds .cw-* components.
============================================ */

/* ============================================
   HERO LAYOUT — centered single-column (software pages)
   Overrides the use-case 2-col hero (text | visual) into a centered
   Firecrawl-style stack: centered text, demo (triptych) BELOW — not beside.
   Scoped to .cw-hero so the 3 use-case landings keep their 2-col hero.
============================================ */
.uc-page-hero.cw-hero .container {
    grid-template-columns: 1fr;     /* single column → text row above, demo row below */
    gap: 0;
}
.cw-hero .uc-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;            /* centers inline-flex breadcrumb/eyebrow/curl + actions row */
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.cw-hero .uc-hero-text .lead { max-width: 660px; }   /* tighter measure when centered */
.cw-hero .uc-hero-actions { justify-content: center; }

/* ============================================
   HERO BACKGROUND — instrumented grid (Firecrawl-inspired, violet)
   Scoped to .cw-hero so the 3 use-case landings stay untouched.
   Layers: base 64px grid (radial-masked) + centred vertical rails +
   4-point "plus" markers + mono corner labels + descending violet pulses.
============================================ */
.cw-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;            /* .uc-page-hero .container is z-index:1 → content sits above */
    pointer-events: none;
    overflow: hidden;
}
/* base grid, faded outward from the upper centre */
.cw-hero-grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(var(--border-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-dark) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
    opacity: 0.6;
    -webkit-mask-image: radial-gradient(ellipse 85% 78% at 50% 26%, #000 0%, rgba(0,0,0,0.45) 52%, transparent 80%);
            mask-image: radial-gradient(ellipse 85% 78% at 50% 26%, #000 0%, rgba(0,0,0,0.45) 52%, transparent 80%);
}
/* animated canvas: grid cells / nodes light up as the crawl spreads */
.cw-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 34%, #000 0%, rgba(0,0,0,0.55) 62%, transparent 92%);
            mask-image: radial-gradient(ellipse 96% 92% at 50% 34%, #000 0%, rgba(0,0,0,0.55) 62%, transparent 92%);
}
@media (max-width: 1024px) { .cw-hero-canvas { display: none; } }

/* centred frame: two vertical rails around the content column */
.cw-hero-rails,
.cw-hero-marks {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 1240px);
}
.cw-hero-rails {
    border-left: 1px solid var(--border-dark);
    border-right: 1px solid var(--border-dark);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
/* + markers (4-point star) sitting on the rails */
.cw-hero-plus {
    position: absolute;
    width: 18px;
    height: 17px;
    transform: translate(-50%, -50%);
    color: var(--border-dark-hover);
}
.cw-hero-plus path { fill: currentColor; }
.cw-plus-tl { left: 0;    top: 15%; }
.cw-plus-tr { left: 100%; top: 15%; }
.cw-plus-bl { left: 0;    top: 85%; }
.cw-plus-br { left: 100%; top: 85%; }
.cw-plus-ml { left: 0;    top: 50%; color: var(--violet); animation: cw-plus-glow 3.2s ease-in-out infinite; }
.cw-plus-mr { left: 100%; top: 50%; color: var(--violet); animation: cw-plus-glow 3.2s ease-in-out infinite 1.6s; }
@keyframes cw-plus-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
/* mono corner labels */
.cw-hero-tag {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    white-space: nowrap;
    opacity: 0.7;
}
.cw-tag-tl { left: 0;    top: 15%; transform: translate(14px, -190%); }
.cw-tag-tr { left: 100%; top: 15%; transform: translate(calc(-100% - 14px), -190%); }
.cw-tag-bl { left: 0;    top: 85%; transform: translate(14px, 100%); }
.cw-tag-br { left: 100%; top: 85%; transform: translate(calc(-100% - 14px), 100%); }
/* violet pulse descending a rail — "the crawl walking down the site" */
.cw-hero-pulse {
    position: absolute;
    left: 0;
    width: 2px;
    height: 88px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--violet) 60%, var(--violet-light));
    box-shadow: 0 0 10px 1px var(--violet-glow);
    opacity: 0;
    animation: cw-pulse-down 5s cubic-bezier(.45, 0, .55, 1) infinite;
}
.cw-pulse-r { left: 100%; animation-delay: 2.5s; }
@keyframes cw-pulse-down {
    0%   { top: 10%; opacity: 0; }
    14%  { opacity: 1; }
    84%  { opacity: 1; }
    100% { top: 80%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cw-hero-pulse { display: none; }
    .cw-plus-ml, .cw-plus-mr { animation: none; opacity: 0.55; }
}
@media (max-width: 1024px) {
    /* keep only the base grid on narrow screens */
    .cw-hero-rails,
    .cw-hero-marks { display: none; }
}

/* ===== Hero: discovered-pages feed (inside .uc-trip-main) ===== */
.cw-trip-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.cw-trip-feed-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1;
}
.cw-trip-code {
    flex-shrink: 0;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.cw-trip-code.is-ok    { color: #047857; background: rgba(16, 185, 129, 0.12); }
.cw-trip-code.is-redir { color: #b45309; background: rgba(245, 158, 11, 0.14); }
.cw-trip-code.is-err   { color: #b91c1c; background: rgba(239, 68, 68, 0.12); }
.cw-trip-path {
    flex: 1;
    min-width: 0;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cw-trip-depth {
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--violet-tint);
    color: var(--violet-deep);
    font-size: 9.5px;
    font-weight: 600;
}

/* ===== Live example: relabel the shared code panel ===== */
/* base.css hardcodes ::before to "Sample output · Amazon UK" for the home/
   use-case market example. On the crawler page the panel shows a request body. */
#cw-live .market-example-code::before {
    content: 'Crawl request';
}

/* ============================================
   TWO MODES — enable_scraping toggle
============================================ */
.cw-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .cw-modes { grid-template-columns: 1fr; gap: 18px; }
}
.cw-mode {
    background: var(--bg-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}
.cw-mode.is-accent {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: var(--shadow-violet);
}
.cw-mode-head { margin-bottom: 14px; }
.cw-mode-flag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-3);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xs);
    padding: 5px 10px;
    margin-bottom: 14px;
}
.cw-mode-false { color: #b45309; font-weight: 600; }
.cw-mode-true  { color: var(--violet); font-weight: 600; }
.cw-mode-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.cw-mode-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.cw-mode-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    flex: 1;
}
.cw-mode-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.5;
}
.cw-mode-list code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-3);
    padding: 1px 5px;
    border-radius: 5px;
    color: var(--text);
}
.cw-tick {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--violet-tint);
    position: relative;
}
.cw-tick::after {
    content: '';
    position: absolute;
    left: 6px; top: 3px;
    width: 4px; height: 8px;
    border: solid var(--violet);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.cw-mode-foot {
    font-size: 13px;
    color: var(--text-dim);
    border-top: 1px solid var(--border-dark);
    padding-top: 16px;
}

/* ============================================
   FEATURE GRID
============================================ */
.cw-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
@media (min-width: 900px) {
    .cw-features { grid-template-columns: repeat(3, 1fr); }
}
.cw-feature {
    background: var(--bg-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cw-feature:hover {
    border-color: var(--border-dark-hover);
    box-shadow: var(--shadow-card-strong);
}
.cw-feature-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--violet-tint);
    color: var(--violet);
    margin-bottom: 16px;
}
.cw-feature-ic svg { width: 22px; height: 22px; }
.cw-feature h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.cw-feature p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}
.cw-feature code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-3);
    padding: 1px 4px;
    border-radius: 4px;
    color: var(--text);
}

/* ============================================
   PER-PAGE FLOW — numbered pipeline
============================================ */
.cw-flow {
    list-style: none;
    max-width: 760px;
    margin: 0 auto;
    counter-reset: none;
    position: relative;
}
.cw-flow-step {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    position: relative;
}
.cw-flow-step:last-child { padding-bottom: 0; }
/* connector line down the number column */
.cw-flow-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--violet-light), rgba(124, 58, 237, 0.12));
}
.cw-flow-num {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 2px solid var(--violet);
    color: var(--violet);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--bg);
}
.cw-flow-body { padding-top: 6px; }
.cw-flow-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.cw-flow-body p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
.cw-flow-body code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-3);
    padding: 1px 5px;
    border-radius: 5px;
    color: var(--text);
}

/* ============================================
   DOCS — Firecrawl-style reference layout (TOC + content)
   Scoped under .cw-docs-section; uses base.css tokens.
============================================ */
.cw-docs-section {
    padding: clamp(48px, 7vw, 88px) 0 96px;
    border-top: 1px solid var(--border-dark);
}
@media (max-width: 600px) {
    /* Top padding already clamps down; the fixed 96px bottom doesn't — trim it
       so docs sections don't end on a big void on phones. */
    .cw-docs-section { padding-bottom: 48px; }
}
.cw-docs-section .container.cw-docs {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    max-width: 1100px;    /* tighter than the 1280px global container — docs read better at ~1100 */
}

/* --- sticky TOC --- */
.cw-docs-nav {
    position: sticky;
    top: 88px;            /* clear the 68px sticky header (+ ~20px breathing room) */
    align-self: start;
}
.cw-docs-nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-dim, #9b9ba3);
    margin-bottom: 14px;
}
.cw-docs-nav-list { display: flex; flex-direction: column; }
.cw-docs-nav-list a {
    display: block;
    padding: 6px 0 6px 14px;
    border-left: 2px solid var(--border-dark);
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.cw-docs-nav-list a:hover { color: var(--text); }
.cw-docs-nav-list a.is-active {
    color: var(--violet);
    border-left-color: var(--violet);
    font-weight: 600;
}

/* --- content --- */
.cw-docs-main { min-width: 0; max-width: 760px; overflow-wrap: anywhere; }
/* Children that came from the old wide layout: keep them inside the docs column */
.cw-docs-main .cw-modes,
.cw-docs-main .cw-features,
.cw-docs-main .cw-flow { max-width: 100%; }
/* Stack mode cards in the narrower docs column — grid blew out with nowrap <code> inside.
   Plus min-width:0 on items kills the grid-blowout fallback (content min-size). */
.cw-docs-main .cw-modes { grid-template-columns: 1fr; gap: 16px; }
.cw-docs-main .cw-modes > .cw-mode { min-width: 0; }
.cw-docs-main .cw-modes code { white-space: normal; word-break: break-word; }
.cw-doc-section { scroll-margin-top: 80px; padding-top: 40px; }
.cw-doc-section:first-child { padding-top: 0; }
.cw-doc-section + .cw-doc-section { border-top: 1px solid var(--border-dark); }
.cw-doc-section h2 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 16px;
}
.cw-doc-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 30px 0 12px;
}
.cw-doc-section h2 code,
.cw-doc-section h3 code { font-size: 0.82em; }
.cw-docs-main p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.cw-docs-main p.cw-doc-lead {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 22px;
}
.cw-docs-main a {
    color: var(--violet);
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}
.cw-docs-main a:hover { border-bottom-color: var(--violet); }
.cw-docs-main :where(p, li, td, .cw-doc-meta) code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    background: var(--bg-3, #f4f4f5);
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--text);
    white-space: nowrap;
}
/* On phones, let inline code wrap — long URLs/paths (e.g. http://localhost:8001/docs)
   overflow the narrow docs column when kept nowrap. overflow-wrap:anywhere is
   inherited from .cw-docs-main, so long unbroken tokens break cleanly. */
@media (max-width: 600px) {
    .cw-docs-main :where(p, li, td, .cw-doc-meta) code { white-space: normal; }
}

/* lists */
.cw-doc-list { margin: 0 0 18px; padding: 0; list-style: none; }
.cw-doc-list li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}
.cw-doc-list li::before {
    content: '';
    position: absolute;
    left: 4px; top: 13px;
    width: 6px; height: 6px;
    border-radius: 2px;
    background: var(--violet);
}
.cw-doc-list strong { color: var(--text); font-weight: 650; }
.cw-doc-list--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-doc-list--inline li { padding: 0; }
.cw-doc-list--inline li::before { display: none; }
.cw-doc-list--inline code {
    background: var(--violet-tint, #f3effe);
    color: var(--violet-deep, #5b21b6);
}

/* key/value meta box */
.cw-doc-meta {
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 6px 16px;
    margin: 20px 0;
    background: var(--bg-2, #fafafa);
}
.cw-doc-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
}
.cw-doc-meta-row + .cw-doc-meta-row { border-top: 1px solid var(--border-dark); }
.cw-doc-meta-k {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim, #9b9ba3);
}

/* --- code blocks --- */
.cw-code {
    position: relative;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 0 0 20px;
    overflow: hidden;
}
.cw-code-lang {
    position: absolute;
    top: 10px; left: 16px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
.cw-code-copy {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, color .15s;
    z-index: 2;
}
.cw-code-copy:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cw-code-copy.copied { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.cw-code pre {
    margin: 0;
    padding: 34px 16px 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

/* --- parameter / API tables --- */
.cw-table-wrap { overflow-x: auto; margin: 0 0 22px; border-radius: 12px; border: 1px solid var(--border-dark); }
.cw-params {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 520px;
}
.cw-params thead th {
    text-align: left;
    background: var(--bg-2, #fafafa);
    color: var(--text-dim, #6b6b73);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-dark);
}
.cw-params td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-dark);
    vertical-align: top;
    line-height: 1.5;
    color: var(--text-muted);
}
.cw-params tbody tr:last-child td { border-bottom: 0; }
.cw-params td:first-child { white-space: nowrap; }
.cw-params td code { white-space: nowrap; }
.cw-req {
    font-size: 11px;
    font-weight: 700;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* API verb pills */
.cw-api-table td:first-child { width: 84px; }
.cw-verb {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}
.cw-verb--get { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.cw-verb--post { background: rgba(124, 58, 237, 0.12); color: var(--violet-deep, #6d28d9); }
.cw-verb--del { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }

/* --- callouts --- */
.cw-callout {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.6;
    border: 1px solid var(--border-dark);
    background: var(--bg-2, #fafafa);
}
.cw-callout div { color: var(--text-muted); }
.cw-callout strong { color: var(--text); }
.cw-callout-ic {
    flex: 0 0 20px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    margin-top: 1px;
}
.cw-callout--info { border-color: rgba(124, 58, 237, 0.25); background: var(--violet-tint, #f5f1fe); }
.cw-callout--info .cw-callout-ic { background: var(--violet); }
.cw-callout--note { border-color: rgba(59, 130, 246, 0.22); background: rgba(59, 130, 246, 0.06); }
.cw-callout--note .cw-callout-ic { background: #3b82f6; }
.cw-callout--warn { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); }
.cw-callout--warn .cw-callout-ic { background: #f59e0b; }

/* --- responsive --- */
@media (max-width: 900px) {
    /* Match the base selector's specificity (.cw-docs-section .container.cw-docs,
       3 classes) — a bare .cw-docs lost the cascade, so the grid kept its
       216px TOC column and the content squeezed into it once the TOC hid. */
    .cw-docs-section .container.cw-docs { grid-template-columns: 1fr; gap: 0; }
    .cw-docs-nav { display: none; }
    .cw-docs-main { max-width: none; }
}

/* ==================== MOBILE CODE-LIST FIX ====================
   `.cw-mode-list li` is display:flex, which blockifies the inline <code> chips
   into flex items that shrink and break per-character on narrow screens
   ("url" → vertical "u/r/l"). Drop to normal block flow on mobile — the tick
   hangs left via absolute positioning, and the chips wrap at word boundaries
   like inline text. Covers every cw-mode-list (all product docs, both products).
   End-of-file → wins the cascade over the base `.cw-mode-list li` rule. */
@media (max-width: 768px) {
    .cw-mode-list li { display: block; position: relative; padding-left: 28px; }
    .cw-mode-list .cw-tick { position: absolute; left: 0; top: 3px; }
    .cw-mode-list code { white-space: nowrap; }

    /* Meta rows (label + URL value) are a flex row where the <code> value gets
       squeezed and the URL wraps unevenly. Stack label over value so each value
       gets the full row width and reads as one clean line. */
    .cw-doc-meta-row { flex-direction: column; align-items: flex-start; gap: 3px; }
    /* Base rule is `flex: 0 0 110px`; in a column that becomes a 110px HEIGHT and
       crushes the label text vertically — reset it so the label sizes to content. */
    .cw-doc-meta-row .cw-doc-meta-k { flex: 0 0 auto; }
    .cw-doc-meta-row code { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
}

/* .cw-modes had no bottom margin, so a following .cw-callout sat flush against
   it. Give the modes block breathing room below (all widths). */
.cw-modes { margin-bottom: 28px; }

/* ==================== MOBILE TABLE SCROLL HINT ====================
   .cw-params has min-width:520px and scrolls inside .cw-table-wrap on phones,
   but there's no cue to scroll. Add a soft right-edge fade so it's clear there's
   more table to the right. End-of-file → wins over the base .cw-table-wrap. */
@media (max-width: 768px) {
    .cw-table-wrap { position: relative; }
    .cw-table-wrap::after {
        content: '';
        position: absolute;
        top: 1px;
        right: 1px;
        bottom: 1px;
        width: 36px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg-2, #fff) 85%);
        border-radius: 0 12px 12px 0;
        pointer-events: none;
    }
}
