.project-hub-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.documentation-page {
    --documentation-title-size: clamp(2rem, 2.8vw, 2.5rem);
}

@media (hover: none) {
    .documentation-page .nav-item a:active,
    .documentation-page .section-toggle:active,
    .documentation-page .btn:active {
        opacity: 0.7;
    }
}

.documentation-page main > h1,
.documentation-page .project-hub-heading h1,
.documentation-page .doc-collection > h1,
.documentation-page .doc-article > h1 {
    font-size: var(--documentation-title-size);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.documentation-page .doc-article {
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.documentation-page .doc-article > h1 {
    margin-bottom: 1.5rem;
}

.documentation-page .doc-article h2::before,
.documentation-page .doc-section-intro h2::before {
    content: none;
}

.documentation-page .page-stats {
    display: none;
}

.documentation-page .page-actions {
    justify-content: flex-start;
}

.doc-collection {
    max-width: var(--prose-width);
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.doc-collection > h1 {
    margin: 0 0 1.5rem;
}

.doc-section-intro {
    margin-bottom: 1.75rem;
}

.doc-subsections {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.doc-subsections a {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.doc-subsections a:hover {
    color: var(--accent-color);
    border-color: var(--accent-border);
}

.doc-page-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.doc-page-list li {
    min-width: 0;
}

.doc-page-list a {
    display: block;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: border-color 0.15s ease;
}

.doc-page-list a:hover {
    border-color: var(--accent-border);
}

.doc-page-list a > span {
    font-weight: 550;
    font-size: 0.95rem;
    line-height: 1.5;
}

.doc-page-list p {
    margin: 0.6rem 0 0;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.doc-empty {
    padding: 1rem 0;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .doc-page-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.project-hub-heading h1 {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0 0 0.85rem;
}

.project-hub-heading p {
    max-width: 58ch;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
}

.hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: none;
}

.hub-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 550;
    line-height: 1.35;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hub-action:hover {
    border-color: var(--accent-border);
    background: var(--bg-hover);
    color: var(--text-primary);
}

.hub-action-primary,
.hub-action-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--accent-ink);
}

.hub-action-primary:hover {
    background: var(--accent-light);
}

.hub-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hub-feature {
    min-width: 0;
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.hub-feature-webhooks {
    border-color: var(--accent-border);
}

.hub-feature-wide {
    grid-column: 1 / -1;
}

.hub-feature-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hub-feature-document {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hub-feature-points {
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-left: 1px solid var(--border-color);
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.hub-feature-points li {
    padding: 0.55rem 0;
}

.hub-feature-points li + li {
    border-top: 1px solid var(--border-color);
}

.hub-feature-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.hub-feature h2 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
}

.hub-tag {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.hub-feature-sdk .hub-tag {
    font-family: var(--font-mono);
}

.hub-feature p {
    margin: 0 0 1.25rem;
    font-size: 0.86rem;
    line-height: 1.7;
    max-width: 60ch;
}

.hub-feature pre {
    position: relative;
    min-width: 0;
    margin: 0 0 1.25rem;
    padding: 0.9rem 2.8rem 0.9rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--code-bg);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    line-height: 1.6;
}

.hub-feature pre code {
    font: inherit;
    color: var(--text-primary);
}

.hub-feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.2rem;
    margin-top: auto;
    font-size: 0.79rem;
    line-height: 1.5;
}

.hub-feature-links a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hub-directory > h2 {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.hub-groups {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.hub-group {
    min-width: 0;
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.hub-groups-single {
    grid-template-columns: minmax(0, 1fr);
}

.hub-groups-balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-group-with-children {
    grid-row: span 2;
}

.hub-group h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.45;
}

.hub-group h3 a {
    color: var(--text-primary);
}

.hub-group h3 a:hover {
    color: var(--accent-color);
}

.hub-group > p {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    line-height: 1.6;
}

.hub-pages,
.hub-subsections {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-pages-columns,
.hub-subsections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.hub-pages a {
    display: block;
    padding: 0.34rem 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.hub-pages a:hover {
    color: var(--accent-color);
}

.hub-subsections {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    gap: 0.55rem;
}

.hub-subsections a {
    display: flex;
    align-items: center;
    min-height: 40px;
    height: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.hub-subsections a:hover {
    color: var(--accent-color);
    border-color: var(--accent-border);
}

.hub-empty {
    padding: 1.25rem 0;
}

@media (max-width: 1180px) {
    .project-hub-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.1rem;
    }
}

@media (max-width: 760px) {
    .hub-featured,
    .hub-groups,
    .hub-feature-document {
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-group-with-children {
        grid-row: auto;
    }

    .hub-feature-document {
        gap: 1.25rem;
    }

    .hub-feature-points {
        border-left: 0;
        border-top: 1px solid var(--border-color);
        padding: 0.75rem 0 0;
    }
}

@media (max-width: 480px) {
    .project-hub-heading {
        margin-bottom: 1.5rem;
    }

    .hub-feature,
    .hub-group {
        padding: 1.1rem;
    }

    .hub-featured {
        margin-bottom: 2rem;
    }

    .hub-subsections,
    .hub-pages-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

