/* ============================================================
   Author Pages — single-sh_author.php + archive-sh_author.php
   Design mirrors spin-sparkle-site-main Lovable project.
   Colors: navy #0f1f3d | gold #ffeb3b | grey #4a5568 | muted #6b7a99
   ============================================================ */

/* ── Layout wrappers ──────────────────────────────────────── */

.author-archive-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.author-page-main {
    padding: 0 0 3rem;
    min-width: 0;
}

/* ── Author Profile Hero ─────────────────────────────────── */

.author-profile-hero {
    background: #fff;
    border: 1px solid #e8ecf4;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 16px rgba(15, 31, 61, 0.10);
    margin-bottom: 2rem;
}

.author-profile-hero__inner {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-profile-hero__avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

.author-profile-hero__avatar-fallback {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    background: #0f1f3d;
    color: #ffeb3b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    border-radius: 4px;
}

.author-profile-hero__info {
    flex: 1;
    min-width: 0;
}

.author-profile-hero__name {
    font-size: 1.875rem;
    font-weight: 800;
    color: #0f1f3d;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.author-profile-hero__role {
    color: #ffeb3b;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    text-shadow: 0 0 0 transparent;
    /* gold on white needs a dark fallback for contrast — add outline */
    -webkit-text-stroke: 0.3px #b8a200;
}

.author-profile-ukgc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #0f1f3d;
    color: #ffeb3b;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

.author-profile-ukgc-badge svg {
    flex-shrink: 0;
}

/* ── Profile Sections ────────────────────────────────────── */

.author-profile-section {
    background: #fff;
    border: 1px solid #e8ecf4;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(15, 31, 61, 0.08);
    margin-bottom: 2rem;
}

.author-profile-section__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f1f3d;
    margin: 0 0 1rem;
}

.author-profile-bio p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0 0 0.875rem;
}

.author-profile-bio p:last-child {
    margin-bottom: 0;
}

/* ── Meta + Socials ──────────────────────────────────────── */

.author-profile-connect {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.author-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-profile-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #6b7a99;
}

.author-profile-meta__item svg {
    flex-shrink: 0;
}

.author-profile-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
}

.author-profile-socials__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f1f3d;
    margin-right: 0.25rem;
}

.author-profile-social-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    border: 1px solid #e8ecf4;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f1f3d;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.author-profile-social-badge:hover {
    border-color: #ffeb3b;
    color: #0f1f3d;
}

.author-profile-social-badge__icon {
    width: 24px;
    height: 24px;
    border: 1px solid #e8ecf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #6b7a99;
    flex-shrink: 0;
}

/* ── Hero tagline + badges row ───────────────────────────── */

.author-profile-hero__tagline {
    font-size: 0.9375rem;
    color: #4a5568;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 0.625rem;
}

.author-profile-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.author-profile-hero__updated {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #6b7a99;
    line-height: 1;
}

.author-profile-hero__updated svg {
    flex-shrink: 0;
}

/* ── WYSIWYG About & Abilities content ───────────────────── */

/* The whole block is one card; h2s create internal visual separators */
.author-about-content {
    background: #fff;
    border: 1px solid #e8ecf4;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(15, 31, 61, 0.08);
    margin-bottom: 1.25rem;
}

.author-about-content h2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #0f1f3d;
    line-height: 1.3;
    margin: 2.5rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e8ecf4;
}

/* First h2 — no separator above, flush with card padding */
.author-about-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.author-about-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f1f3d;
    margin: 1.5rem 0 0.5rem;
    line-height: 1.4;
}

/* h4 = timeline year-range entry (e.g. "2015–2018") */
.author-about-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f1f3d;
    text-align: center;
    margin: 1.5rem 0 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8ecf4;
}

/* paragraph immediately after h4 = timeline description */
.author-about-content h4 + p {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.75;
    text-align: center;
    max-width: 560px;
    margin: 0.5rem auto 1.25rem;
}

.author-about-content p {
    color: #4a5568;
    line-height: 1.75;
    margin: 0 0 0.875rem;
}

.author-about-content p:last-child {
    margin-bottom: 0;
}

/* Blockquote — yellow left border callout (Lovable: bg-[#f8f9fc] border-l-4 border-[#ffeb3b]) */
.author-about-content blockquote {
    margin: 1.25rem 0;
    padding: 0.875rem 1.25rem;
    background: #f8f9fc;
    border-left: 4px solid #ffeb3b;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.author-about-content blockquote p {
    color: #4a5568;
    font-style: italic;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* Navy callout — add class="wp-block-quote is-style-plain" or use a second blockquote style */
.author-about-content blockquote.callout-navy {
    border-left-color: #0f1f3d;
}

/* Bullet lists — shield icon via ::before */
.author-about-content ul {
    list-style: none;
    padding: 0;
    margin: 0.875rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.author-about-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.65;
    padding: 0;
}

.author-about-content ul li::before {
    content: "🛡";
    flex-shrink: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    display: inline-block;
}

/* Strong / bold inside content */
.author-about-content strong {
    color: #0f1f3d;
    font-weight: 700;
}

/* Links inside content */
.author-about-content a {
    color: #0f1f3d;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.15s;
}

.author-about-content a:hover {
    color: #b8a200;
}

/* ── Connect & Verify section ────────────────────────────── */

.author-connect-verify__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.author-connect-verify__note {
    font-size: 0.875rem;
    color: #6b7a99;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* ── Verification Standards ──────────────────────────────── */

.author-verification-standards {
    background: #0f1f3d;
    color: #fff;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
}

.author-verification-standards__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffeb3b;
    margin: 0 0 0.875rem;
}

.author-verification-standards__intro {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.author-verification-standards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.author-verification-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.author-verification-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.author-verification-step__num {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffeb3b;
    width: 2rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.author-verification-step__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.author-verification-step__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.6;
    margin: 0;
}

/* ── Affiliate disclaimer ─────────────────────────────────── */

.author-page-disclaimer {
    font-size: 0.75rem;
    color: #6b7a99;
    line-height: 1.6;
    border-top: 1px solid #e8ecf4;
    padding-top: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.author-archive-hero {
    background: #0f1f3d;
    color: #fff;
    padding: 2.5rem 2.5rem 2rem;
    margin-bottom: 1.75rem;
}

.author-archive-hero__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffeb3b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.author-archive-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.author-archive-hero__subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 600px;
}

.author-archive-hero__stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.author-archive-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
}

.author-archive-hero__stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffeb3b;
    line-height: 1;
}

.author-archive-hero__stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
}

/* ── Author Grid ─────────────────────────────────────────── */

.author-archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ── Author Card ─────────────────────────────────────────── */

.author-card {
    background: #fff;
    border: 1px solid #e8ecf4;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(15, 31, 61, 0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.author-card:hover {
    box-shadow: 0 8px 24px rgba(15, 31, 61, 0.12);
    transform: translateY(-2px);
}

.author-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-card__avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 3px;
}

.author-card__avatar-fallback {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #0f1f3d;
    color: #ffeb3b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 800;
    border-radius: 3px;
}

.author-card__name-wrap {
    min-width: 0;
}

.author-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-card__role {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffeb3b;
    -webkit-text-stroke: 0.3px #b8a200;
    margin: 0;
}

.author-card__bio {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.author-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7a99;
    border-top: 1px solid #e8ecf4;
    padding-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.author-card__meta-item--ukgc {
    color: #0f1f3d;
    font-weight: 700;
}

.author-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-card__socials {
    display: flex;
    gap: 0.375rem;
}

.author-card__social {
    width: 32px;
    height: 32px;
    border: 1px solid #e8ecf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #6b7a99;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.author-card__social:hover {
    border-color: #0f1f3d;
    color: #0f1f3d;
}

.author-card__view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f1f3d;
    text-decoration: none;
    transition: color 0.15s;
}

.author-card__view-link:hover {
    color: #b8a200;
}

/* ── Author box meta row + "View full profile" link ──────── */

.author-box__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.author-box__view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f1f3d;
    text-decoration: none;
    margin-left: auto;
    transition: color 0.15s;
}

.author-box__view-link:hover {
    color: #b8a200;
}

/* ── WYSIWYG content (editorial profile, accountability) ──── */

.author-wysiwyg-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f1f3d;
    margin: 1.75rem 0 0.75rem;
    line-height: 1.3;
}

.author-wysiwyg-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f1f3d;
    margin: 1.25rem 0 0.5rem;
}

.author-wysiwyg-content p {
    color: #4a5568;
    line-height: 1.75;
    margin: 0 0 0.875rem;
}

.author-wysiwyg-content p:last-child {
    margin-bottom: 0;
}

.author-wysiwyg-content a {
    color: #0f1f3d;
    font-weight: 600;
    text-decoration: underline;
}

.author-wysiwyg-content a:hover {
    color: #b8a200;
}

.author-wysiwyg-content strong {
    color: #0f1f3d;
    font-weight: 700;
}

/* ── Section intro paragraph ─────────────────────────────── */

.author-section-intro {
    color: #4a5568;
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

/* ── Quick Facts ─────────────────────────────────────────── */

.author-quick-facts {
    display: grid;
    grid-template-columns: repeat( 2, 1fr );
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
}

.author-quick-facts__item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
    background: #f8f9fc;
    border: 1px solid #e8ecf4;
}

.author-quick-facts__label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6b7a99;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.author-quick-facts__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0;
}

/* ── Career Timeline ─────────────────────────────────────── */

.author-timeline {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.author-timeline__entry {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecf4;
}

.author-timeline__entry + .author-timeline__entry {
    margin-top: 1.5rem;
}

.author-timeline__entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.author-timeline__period {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f1f3d;
    display: block;
    margin-bottom: 0.5rem;
}

.author-timeline__description {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.65;
    max-width: 42rem;
    margin: 0 auto;
}

/* ── Highlight boxes ─────────────────────────────────────── */

.author-highlight-box {
    padding: 1rem;
    background: #f8f9fc;
    border-left: 4px solid #ffeb3b;
    margin-top: 1.5rem;
}

.author-highlight-box--navy {
    border-left-color: #0f1f3d;
}

.author-highlight-box__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f1f3d;
    margin-bottom: 0.25rem;
}

.author-highlight-box__text {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.65;
    margin: 0;
}

/* ── Review Methodology ──────────────────────────────────── */

.author-methodology-entries {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.author-methodology-entry__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.author-methodology-entry__text {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.65;
    margin: 0;
}

/* ── Specialisations ─────────────────────────────────────── */

.author-specialisations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-specialisations__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.65;
}

.author-specialisations__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #0f1f3d;
    margin-top: 0.125rem;
}

/* ── Empty state ─────────────────────────────────────────── */

.author-archive-empty {
    padding: 3rem;
    text-align: center;
    color: #6b7a99;
    background: #fff;
    border: 1px solid #e8ecf4;
}

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

@media ( min-width: 640px ) {
    .author-verification-standards__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media ( min-width: 768px ) {
    .author-archive-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

@media ( min-width: 1024px ) {
    .author-archive-grid {
        grid-template-columns: repeat( 3, 1fr );
    }

    .author-profile-hero {
        padding: 3rem;
    }

    .author-profile-section {
        padding: 2.5rem;
    }

    .author-quick-facts {
        grid-template-columns: repeat( 3, 1fr );
    }

    .author-verification-standards {
        padding: 2.5rem 3rem;
    }

    .author-verification-standards__grid {
        grid-template-columns: repeat( 3, 1fr );
    }
}

@media ( max-width: 480px ) {
    .author-quick-facts {
        grid-template-columns: 1fr;
    }

    .author-profile-hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-profile-socials {
        margin-left: 0;
    }

    .author-profile-connect {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-archive-hero__stats {
        gap: 1.5rem;
    }
}
