/* /author/{slug} — author profile.
   Three bands: a dark hero (same #0f1a14 / green pairing as the blog CTA boxes),
   a white about/method section, and the guides grid, which reuses .guides-grid /
   .guide-card from components/blog.css (already in site.min.css).
   .main-container centres text sitewide; this page is editorial, so it is
   left-aligned throughout. */

.author-page {
    --author-dark: #0f1a14;
    --author-dark-2: #16261d;
    --author-green: var(--primary-green, #00B96B);
    --author-green-deep: var(--primary-green-hover, #00A859);
    text-align: left;
}

.author-page .main-container {
    text-align: left;
}

.author-h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 var(--spacing-md);
    color: var(--text-dark);
    font-weight: var(--font-weight-bold);
}

.author-h2-sm {
    font-size: 20px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.author-hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(0, 185, 107, 0.22), transparent 60%),
        linear-gradient(180deg, var(--author-dark-2), var(--author-dark));
    color: #ffffff;
    padding: var(--spacing-lg) 0 56px;
}

.author-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.author-crumbs a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.author-crumbs a:hover,
.author-crumbs a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.author-crumbs [aria-current] {
    color: #ffffff;
}

.author-hero-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: center;
}

.author-portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--author-green), rgba(0, 185, 107, 0.15));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
}

.author-portrait img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid var(--author-dark);
}

.author-portrait-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--author-dark-2);
    border: 4px solid var(--author-dark);
    display: grid;
    place-items: center;
    font-size: 64px;
    font-weight: var(--font-weight-bold);
    color: var(--author-green);
    letter-spacing: 0.04em;
}

.author-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--author-green);
    font-weight: var(--font-weight-bold);
}

.author-name {
    margin: 0 0 6px;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #ffffff;
    font-weight: var(--font-weight-bold);
}

.author-role {
    margin: 0 0 var(--spacing-lg);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.78);
}

.author-facts {
    list-style: none;
    margin: 0 0 var(--spacing-lg);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.author-facts li {
    display: flex;
    flex-direction: column;
    padding: 0 28px 0 0;
    margin-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.author-facts li:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}

.author-facts strong {
    font-size: 22px;
    line-height: 1.1;
    color: #ffffff;
}

.author-facts span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 4px;
}

.author-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.author-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.author-btn-primary {
    background: var(--author-green);
    color: var(--author-dark);
}

.author-btn-primary:hover,
.author-btn-primary:focus-visible {
    background: var(--author-green-deep);
    color: #ffffff;
}

.author-btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.author-btn-ghost:hover,
.author-btn-ghost:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── About + method ───────────────────────────────────────────────────── */

.author-about {
    padding: 56px 0 40px;
    background: var(--bg-white);
}

.author-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 48px;
    align-items: start;
}

.author-bio {
    margin: 0 0 var(--spacing-lg);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    max-width: 66ch;
}

.author-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-topic {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #eaf8f1;
    color: #0b6b40;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
}

.author-method {
    background: var(--bg-gray, #F5F5F5);
    border-radius: var(--radius-lg, 16px);
    padding: 28px;
}

.author-method-list {
    list-style: none;
    margin: 0 0 var(--spacing-md);
    padding: 0;
    display: grid;
    gap: 14px;
}

.author-method-list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-dark);
}

.author-method-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--author-green);
    box-shadow: 0 0 0 4px rgba(0, 185, 107, 0.18);
}

.author-method-list strong {
    display: block;
    margin-bottom: 2px;
}

.author-method a,
.author-empty a {
    color: var(--author-green-deep);
    font-weight: var(--font-weight-medium);
}

.author-links {
    list-style: none;
    margin: 0;
    padding: var(--spacing-md) 0 0;
    border-top: 1px solid var(--border-light);
    display: grid;
    gap: 6px;
}

.author-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin: 0 -10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: var(--font-weight-regular);
    transition: background-color 0.15s ease;
}

.author-links a:hover,
.author-links a:focus-visible {
    background: #ffffff;
}

.author-link-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--author-dark);
    color: var(--author-green);
}

.author-link-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.author-link-text strong {
    font-size: 15px;
    color: var(--text-dark);
}

.author-link-text small {
    font-size: 12.5px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* ── Guides ───────────────────────────────────────────────────────────── */

.author-posts {
    padding: 24px 0 72px;
}

.author-posts-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.author-posts-head .author-h2 {
    margin: 0;
}

.author-all-link {
    color: var(--author-green-deep);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    white-space: nowrap;
}

.author-all-link:hover,
.author-all-link:focus-visible {
    text-decoration: underline;
}

.author-grid {
    margin-bottom: 0;
}

.author-post-date {
    display: block;
    margin-top: 6px;
    padding: 0 0 12px;
    font-size: 13px;
    color: var(--text-gray);
}

.author-empty {
    color: var(--text-gray);
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .author-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .author-hero {
        padding-bottom: 40px;
    }

    .author-crumbs {
        margin-bottom: 28px;
    }

    .author-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-items: center;
        text-align: center;
    }

    .author-portrait {
        width: 148px;
        height: 148px;
    }

    .author-portrait-initials {
        font-size: 48px;
    }

    .author-name {
        font-size: 32px;
    }

    .author-role {
        font-size: 16px;
    }

    .author-facts {
        justify-content: center;
    }

    .author-facts li {
        padding: 0 16px 0 0;
        margin-right: 16px;
    }

    .author-actions {
        justify-content: center;
    }

    .author-about {
        padding: 40px 0 24px;
    }

    .author-h2 {
        font-size: 24px;
    }

    .author-bio {
        font-size: 16px;
    }

    .author-method {
        padding: 20px;
    }

    .author-posts-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
