.hiw-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}
.hiw-intro {
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* ── Accordion stage (details/summary) ── */
details.hiw-stage {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

summary.hiw-stage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: #f9fafb;
    list-style: none;
    transition: background 0.15s;
}
summary.hiw-stage-header::-webkit-details-marker { display: none; }
summary.hiw-stage-header::marker { display: none; }
summary.hiw-stage-header:hover { background: #f3f4f6; }

.hiw-stage-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hiw-stage-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.hiw-stage-arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s;
    flex-shrink: 0;
}
details.hiw-stage[open] .hiw-stage-arrow {
    transform: rotate(180deg);
}

.hiw-stage-body {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

details.hiw-stage[open] > .hiw-stage-body {
    animation: hiwFadeIn 0.2s ease;
}
.hiw-stage-body p,
.hiw-stage-body li {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}
.hiw-stage-body ul {
    padding-left: 20px;
    margin: 8px 0;
}
.hiw-stage-body code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 13px;
}
.hiw-stage-body a {
    color: #4f46e5;
    text-decoration: underline;
}

/* ── FAQ ── */
.hiw-faq-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
}

details.hiw-faq {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 8px;
}

summary.hiw-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
    list-style: none;
    transition: background 0.15s;
    gap: 12px;
}
summary.hiw-faq-q::-webkit-details-marker { display: none; }
summary.hiw-faq-q::marker { display: none; }
summary.hiw-faq-q:hover { background: #f3f4f6; }

.hiw-faq-icon {
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
}
details.hiw-faq[open] .hiw-faq-icon {
    transform: rotate(45deg);
}

.hiw-faq-a {
    padding: 12px 18px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    border-top: 1px solid #e5e7eb;
}

details.hiw-faq[open] > .hiw-faq-a {
    animation: hiwFadeIn 0.2s ease;
}

@keyframes hiwFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* CSS-only radio tabs (ApiReference) */
.hiw-tab-radio { display: none; }

.hiw-tabs-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.hiw-tabs-bar {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.hiw-tab-lbl {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.hiw-tab-lbl:hover { color: #374151; }

.hiw-tab-panel {
    display: none;
    background: #fff;
}

/* Show active tab panel */
#tab-swagger:checked ~ .hiw-tabs-bar label[for="tab-swagger"],
#tab-ref:checked ~ .hiw-tabs-bar label[for="tab-ref"] {
    color: #1f2937;
    border-bottom-color: #4f46e5;
    background: #fff;
}

#tab-swagger:checked ~ .hiw-tab-swagger { display: block; }
#tab-ref:checked ~ .hiw-tab-ref { display: block; }

/* 4-tab code-samples panel selectors */
#cs-curl:checked ~ .hiw-tabs-bar label[for="cs-curl"],
#cs-csharp:checked ~ .hiw-tabs-bar label[for="cs-csharp"],
#cs-python:checked ~ .hiw-tabs-bar label[for="cs-python"],
#cs-nodejs:checked ~ .hiw-tabs-bar label[for="cs-nodejs"] {
    color: #1f2937;
    border-bottom-color: #4f46e5;
    background: #fff;
}
#cs-curl:checked ~ .cs-tab-curl { display: block; }
#cs-csharp:checked ~ .cs-tab-csharp { display: block; }
#cs-python:checked ~ .cs-tab-python { display: block; }
#cs-nodejs:checked ~ .cs-tab-nodejs { display: block; }
