.container {
    max-width: 1040px;
    padding: 5.5rem 1.5rem 2rem;
}

.container h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: .4rem;
}

.subtitle {
    color: var(--mid);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.subtitle code {
    background: #f0f4f8;
    padding: .1rem .4rem;
    border-radius: 5px;
    color: var(--red);
}

h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    border: none;
    border-left: 4px solid var(--red);
    padding: .1rem 0 .1rem .8rem;
    margin: 3.25rem 0 1.25rem;
    scroll-margin-top: 1.5rem;
}

details.route { margin: 2.5rem 0 0; }

.endpoint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    background: #f8fafc;
    border: 1px solid #e7eef5;
    border-radius: 12px;
    padding: .85rem 1.1rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
}

.endpoint::-webkit-details-marker { display: none; }

.endpoint::after {
    content: "\25B8";
    margin-left: auto;
    color: var(--muted);
    transition: transform .15s ease;
}

details[open] .endpoint {
    border-radius: 12px 12px 0 0;
}

details[open] .endpoint::after { transform: rotate(90deg); }

.endpoint code {
    background: #f3f6f9;
    padding: .18rem .5rem;
    border-radius: 6px;
    font-size: .88rem;
    color: #0b3a5b;
    font-weight: 600;
}

.get, .post, .put, .delete, .patch {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.get    { background: #e6f4ea; color: #1a7f37; }
.post   { background: #ddf4ff; color: #0969da; }
.put    { background: #fff3cd; color: #9a6700; }
.patch  { background: #f6ecff; color: #8250df; }
.delete { background: #ffe9e7; color: #cf222e; }

.tag {
    background: #fff0f1;
    color: var(--red);
    border: 1px solid #ffd5da;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}

.screenshot {
    margin: 0 0 .25rem;
    border: 1px solid #e7eef5;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.postman-setup {
    margin: 1.5rem 0 .5rem;
    border: 1px solid #e7eef5;
    border-radius: 14px;
    overflow: hidden;
}

.screenshot img,
.postman-setup img {
    display: block;
    width: 100%;
    height: auto;
}

.docs-muted {
    margin: .5rem 0 1.75rem;
    color: var(--muted);
    font-style: italic;
    font-size: .85rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border: 1px solid #e7eef5;
    border-radius: 10px;
    overflow: hidden;
}

td {
    padding: .55rem .7rem;
    border-bottom: 1px solid #f0f4f8;
    font-size: .875rem;
}

.docs-footer {
    border-top: 1px solid #eee;
    margin-top: 3rem;
}

.docs-footer a { color: var(--red); }

@media (max-width: 768px) {
    .container { padding: 2rem 1rem; }
}
