/*
Theme Name: DocsWP
Theme URI: https://docswp.com/
Description: A focused Ollie child theme for searchable WordPress documentation.
Author: DocsWP
Template: ollie
Version: 1.0.0
Text Domain: docswp-ollie
*/

:root {
    --docswp-blue: #3858e9;
    --docswp-blue-dark: #2145d8;
    --docswp-ink: #1e1e1e;
    --docswp-muted: #5f6570;
    --docswp-line: #dcdcde;
    --docswp-soft: #f6f7f7;
    --docswp-panel: #ffffff;
    --docswp-radius: 12px;
    --docswp-shadow: 0 16px 40px rgba(30, 30, 30, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--docswp-panel);
    color: var(--docswp-ink);
}

a {
    color: var(--docswp-blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--docswp-blue);
    outline-offset: 3px;
}

.docswp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--docswp-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.docswp-header__inner,
.docswp-footer__inner,
.docswp-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.docswp-header__inner {
    min-height: 70px;
}

.docswp-brand,
.docswp-brand a {
    color: var(--docswp-ink);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.docswp-header .wp-block-navigation a {
    color: var(--docswp-ink);
    font-weight: 600;
    text-decoration: none;
}

.docswp-header .wp-block-navigation a:hover {
    color: var(--docswp-blue);
}

.docswp-main {
    min-height: 65vh;
}

.docswp-hero {
    padding: clamp(72px, 10vw, 126px) 20px;
    border-bottom: 1px solid var(--docswp-line);
    background:
        radial-gradient(circle at 78% 10%, rgba(56, 88, 233, 0.15), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
}

.docswp-hero__inner {
    width: min(900px, 100%);
    margin-inline: auto;
    text-align: center;
}

.docswp-kicker {
    margin-bottom: 14px;
    color: var(--docswp-blue-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.docswp-hero h1 {
    max-width: 850px;
    margin: 0 auto 18px;
    font-size: clamp(2.65rem, 7vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.docswp-lede {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--docswp-muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.6;
}

.docswp-search {
    max-width: 720px;
    margin-inline: auto;
}

.docswp-search .wp-block-search__inside-wrapper {
    padding: 7px;
    border: 1px solid #b8bdc7;
    border-radius: var(--docswp-radius);
    background: var(--docswp-panel);
    box-shadow: var(--docswp-shadow);
}

.docswp-search .wp-block-search__input {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    font-size: 1.05rem;
}

.docswp-search .wp-block-search__button,
.docswp-button .wp-block-button__link {
    border-radius: 8px;
    background: var(--docswp-blue);
    color: #ffffff;
    font-weight: 700;
}

.docswp-search .wp-block-search__button:hover,
.docswp-button .wp-block-button__link:hover {
    background: var(--docswp-blue-dark);
}

.docswp-section {
    padding: clamp(56px, 7vw, 92px) 0;
}

.docswp-section--soft {
    border-block: 1px solid var(--docswp-line);
    background: var(--docswp-soft);
}

.docswp-section__heading {
    max-width: 700px;
    margin-bottom: 34px;
}

.docswp-section__heading h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.045em;
}

.docswp-section__heading p {
    color: var(--docswp-muted);
    font-size: 1.08rem;
}

.docswp-card-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.docswp-card-grid .wp-block-post {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--docswp-line);
    border-radius: var(--docswp-radius);
    background: var(--docswp-panel);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.docswp-card-grid .wp-block-post:hover {
    border-color: rgba(56, 88, 233, 0.45);
    box-shadow: var(--docswp-shadow);
    transform: translateY(-2px);
}

.docswp-card-grid .wp-block-post-title {
    margin: 0 0 12px;
    font-size: 1.22rem;
    line-height: 1.3;
}

.docswp-card-grid .wp-block-post-title a {
    color: var(--docswp-ink);
    text-decoration: none;
}

.docswp-card-grid .wp-block-post-excerpt {
    margin-top: auto;
    color: var(--docswp-muted);
    line-height: 1.55;
}

.docswp-ai-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 18px;
    background: #1e1e1e;
    color: #ffffff;
}

.docswp-ai-callout h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.docswp-ai-callout p {
    max-width: 680px;
    margin: 0;
    color: #c9ccd3;
}

.docswp-page-header {
    padding: clamp(52px, 7vw, 82px) 0 32px;
    border-bottom: 1px solid var(--docswp-line);
}

.docswp-page-header h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    letter-spacing: -0.055em;
}

.docswp-content-area {
    padding-block: 46px 86px;
}

.docswp-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(190px, 260px);
    gap: clamp(40px, 7vw, 90px);
    align-items: start;
}

.docswp-article {
    min-width: 0;
}

.docswp-article .wp-block-post-title {
    margin-top: 0;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.docswp-article .wp-block-post-content {
    font-size: 1.08rem;
    line-height: 1.72;
}

.docswp-article .wp-block-post-content h2,
.docswp-article .wp-block-post-content h3 {
    scroll-margin-top: 100px;
    letter-spacing: -0.03em;
}

.docswp-article .wp-block-post-content pre {
    overflow-x: auto;
    padding: 20px;
    border-radius: 8px;
    background: #1e1e1e;
    color: #f0f0f1;
}

.docswp-article .wp-block-post-content img {
    height: auto;
    border: 1px solid var(--docswp-line);
    border-radius: 8px;
}

.docswp-article-meta {
    position: sticky;
    top: 104px;
    padding: 20px;
    border: 1px solid var(--docswp-line);
    border-radius: var(--docswp-radius);
    background: var(--docswp-soft);
    color: var(--docswp-muted);
    font-size: 0.92rem;
}

.docswp-article-meta h2 {
    margin-top: 0;
    color: var(--docswp-ink);
    font-size: 1rem;
}

.docswp-source-link a {
    font-weight: 700;
}

.docswp-pagination {
    margin-top: 38px;
}

.docswp-footer {
    padding: 46px 0;
    border-top: 1px solid var(--docswp-line);
    background: var(--docswp-soft);
}

.docswp-footer__inner {
    color: var(--docswp-muted);
}

.docswp-footer__inner a {
    font-weight: 600;
}

@media (max-width: 860px) {
    .docswp-card-grid .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docswp-article-layout {
        grid-template-columns: 1fr;
    }

    .docswp-article-meta {
        position: static;
        order: -1;
    }
}

@media (max-width: 620px) {
    .docswp-header__inner,
    .docswp-footer__inner,
    .docswp-shell {
        width: min(100% - 28px, 1180px);
    }

    .docswp-header__inner {
        min-height: 62px;
    }

    .docswp-card-grid .wp-block-post-template,
    .docswp-ai-callout {
        grid-template-columns: 1fr;
    }

    .docswp-search .wp-block-search__inside-wrapper {
        display: block;
    }

    .docswp-search .wp-block-search__button {
        width: 100%;
        margin: 7px 0 0;
    }
}
