/* /learn/what-is-proxy-server/ -- residual one-off styles.
   Everything else on this page comes from the shared `pxa-` article system
   (templates/proxies/partials/article_assets.html). The only thing pxa- cannot
   express is the decision aid: the "same request, three ways" SVG figure and
   the router strip beneath it. Prefix: wips- (what-is-proxy-server).
   Colours are site CSS variables only -- the site is dark-only. */

/* ---------- Figure shell ---------- */

    .wips-figure {
        margin: 1.75rem 0 2rem;
        padding: 0;
    }

    .wips-figure-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--bg-secondary);
        padding: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

    .wips-svg {
        display: block;
        width: 100%;
        min-width: 720px;
        height: auto;
        color: var(--text-primary);
    }

    .wips-figcaption {
        margin: 0.7rem 0 0;
        font-size: 0.82rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

/* ---------- Figure internals ---------- */

    .wips-endpoint {
        fill: var(--bg-tertiary);
        stroke: var(--border);
        stroke-width: 1;
    }

    .wips-endpoint-label {
        fill: var(--text-primary);
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 700;
    }

    .wips-endpoint-sub {
        fill: var(--text-secondary);
        font-family: var(--font-mono);
        font-size: 10px;
    }

    .wips-band {
        fill: none;
        stroke: var(--border);
        stroke-width: 1;
        stroke-dasharray: 4 4;
        opacity: 0.75;
    }

    .wips-lane-tag {
        fill: var(--primary);
        font-family: var(--font-heading);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    .wips-mono {
        fill: var(--text-primary);
        font-family: var(--font-mono);
        font-size: 11px;
    }

    .wips-flow {
        stroke: var(--primary);
        stroke-width: 1.5;
        fill: none;
    }

    .wips-arrowhead {
        fill: var(--primary);
    }

    .wips-node {
        fill: var(--bg-tertiary);
        stroke: var(--primary);
        stroke-width: 1.5;
    }

    .wips-glyph {
        fill: none;
        stroke: var(--text-primary);
        stroke-width: 1.4;
    }

    .wips-glyph-line {
        fill: none;
        stroke: var(--text-primary);
        stroke-width: 1.4;
        stroke-linejoin: round;
    }

    .wips-node-label {
        fill: var(--text-secondary);
        font-family: var(--font-mono);
        font-size: 10px;
    }

    .wips-chip-box {
        fill: var(--bg-tertiary);
        stroke: var(--border);
        stroke-width: 1;
    }

    .wips-chip-text {
        fill: var(--text-secondary);
        font-family: var(--font-mono);
        font-size: 10px;
    }

    .wips-strike {
        stroke: var(--warning);
        stroke-width: 1.4;
    }

    .wips-strip-note {
        fill: var(--warning);
        font-family: var(--font-heading);
        font-size: 10px;
        font-weight: 600;
    }

    .wips-opaque {
        fill: var(--bg-tertiary);
        stroke: var(--text-secondary);
        stroke-width: 1;
        stroke-dasharray: 3 3;
    }

    .wips-opaque-text {
        fill: var(--text-secondary);
        font-family: var(--font-mono);
        font-size: 10px;
    }

    .wips-caption-box {
        fill: var(--bg-tertiary);
        stroke: var(--border);
        stroke-width: 1;
    }

    .wips-caption-text {
        fill: var(--text-primary);
        font-family: var(--font-heading);
        font-size: 11px;
        font-weight: 600;
    }

/* ---------- Router strip ---------- */

    .wips-router {
        display: grid;
        gap: 0.65rem;
        margin: 1.5rem 0 2rem;
    }

    .wips-router-row {
        display: grid;
        grid-template-columns: minmax(220px, 320px) 1fr;
        gap: 0.9rem;
        align-items: start;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-left: 3px solid var(--primary);
        border-radius: 12px;
        padding: 1rem 1.1rem;
        transition: border-color 0.2s ease, transform 0.2s ease;
    }

    .wips-router-row:hover {
        border-color: var(--primary);
        transform: translateY(-1px);
    }

    .wips-router-goal {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.45;
        color: var(--text-primary);
    }

    .wips-router-goal .pxm2-icon {
        color: var(--primary);
        flex-shrink: 0;
        margin-top: 0.15rem;
    }

    .wips-router-answer {
        font-size: 0.9rem;
        line-height: 1.65;
        color: var(--text-secondary);
    }

    .wips-router-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-left: 0.15rem;
        white-space: nowrap;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
        border-bottom: 1px solid transparent;
    }

    .wips-router-link:hover {
        border-bottom-color: var(--primary);
    }

    @media (max-width: 760px) {
        .wips-router-row {
            grid-template-columns: 1fr;
            gap: 0.5rem;
        }
    }
