/**
 * Sonder E-E-A-T — Author profile page styles.
 *
 * Used by the author-archive shortcodes:
 *  [sonder_author_posts]
 *  [sonder_author_publications]
 *  [sonder_author_credentials]
 *  [sonder_author_experience_education]
 *  [sonder_author_sidebar]
 *  [sonder_author_socials]
 *  [sonder_author_years_experience]
 *  [sonder_author_authored_count]
 *  [sonder_author_reviewed_count]
 */

.sonder-author-eeat {
    --sonder-author-eeat-border: #dbe2ee;
    --sonder-author-eeat-surface: #ffffff;
    --sonder-author-eeat-brand-2: #4c47d7;
    --sonder-author-eeat-brand-soft: #eef1ff;
    --sonder-author-eeat-text-tertiary: #64748b;
}

.sonder-author-eeat__breadcrumb {
    font-size: 0.875rem;
    line-height: 1.4;
}

.sonder-author-eeat__breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
}

.sonder-author-eeat__breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--sonder-author-eeat-text-tertiary);
}

.sonder-author-eeat__breadcrumb-item + .sonder-author-eeat__breadcrumb-item::before {
    content: "/";
    margin: 0 8px;
    color: var(--sonder-author-eeat-text-tertiary);
    opacity: 0.6;
}

.sonder-author-eeat__breadcrumb-link {
    color: inherit;
    text-decoration: none;
}

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

.sonder-author-eeat__breadcrumb-current {
    color: #17233f;
}

.sonder-author-eeat__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sonder-author-eeat__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f5f9;
    color: #4b5563;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sonder-author-eeat__social-link:hover,
.sonder-author-eeat__social-link:focus-visible {
    background: #e7ebf3;
    color: #111827;
    transform: translateY(-1px);
    outline: none;
}

.sonder-author-eeat__social-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.sonder-author-eeat__social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sonder-author-eeat__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sonder-author-eeat__section-title {
    font-size: var(--h5);
    margin-block-end: var(--space-l);
}

.sonder-author-eeat__section {
    width: 100%;
}

.sonder-author-eeat__two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 18px;
    width: 100%;
}

.sonder-author-eeat__timeline {
    display: grid;
    gap: 22px;
}

.sonder-author-eeat__timeline-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.sonder-author-eeat__timeline-rail {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 100%;
}

.sonder-author-eeat__timeline-dot {
    position: relative;
    z-index: 2;
    width: 14px;
    height: 14px;
    margin-top: 6px;
    border-radius: 999px;
    background: #fff;
    border: 3px solid var(--sonder-author-eeat-brand-2);
    box-shadow: 0 0 0 4px var(--sonder-author-eeat-brand-soft);
    flex: 0 0 auto;
}

.sonder-author-eeat__timeline-line {
    position: absolute;
    top: 24px;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--sonder-author-eeat-border);
    border-radius: 999px;
}

.sonder-author-eeat__timeline-content {
    padding-bottom: 2px;
}

.sonder-author-eeat__timeline-title,
.sonder-author-eeat__credential-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 500;
    color: #17233f;
}

.sonder-author-eeat__publication-title {
    font-weight: 500;
}

.sonder-author-eeat__timeline-meta,
.sonder-author-eeat__credential-meta {
    margin: 4px 0 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #4f5f7c;
}

/* Subtle inline link inside the timeline meta line — inherits text colour,
   marked with a dotted underline at rest so it's discoverable without
   competing with primary CTAs; solid underline on hover/focus. */
.sonder-author-eeat__timeline-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: border-bottom-color 0.15s ease;
}

.sonder-author-eeat__timeline-link:hover,
.sonder-author-eeat__timeline-link:focus-visible {
    border-bottom-color: transparent;
    text-decoration: underline;
    outline: none;
}

.sonder-author-eeat__timeline-submeta,
.sonder-author-eeat__credential-submeta {
    margin: 6px 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--sonder-author-eeat-text-tertiary);
}

.sonder-author-eeat__credentials-list,
.sonder-author-eeat__publications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sonder-author-eeat__credential-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid var(--sonder-author-eeat-border);
    border-radius: 18px;
    background: var(--sonder-author-eeat-surface);
}

.sonder-author-eeat__credential-icon,
.sonder-author-eeat__publication-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--sonder-author-eeat-brand-soft);
    color: var(--sonder-author-eeat-brand-2);
}

.sonder-author-eeat__credential-icon svg,
.sonder-author-eeat__publication-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.sonder-author-eeat__credential-body,
.sonder-author-eeat__publication-body,
.sonder-author-eeat__post-card,
.sonder-author-eeat__sidebar {
    min-width: 0;
}

.sonder-author-eeat__publication-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--sonder-author-eeat-border);
    border-radius: 18px;
    background: var(--sonder-author-eeat-surface);
    transition: background-color 0.2s ease;
}

.sonder-author-eeat__publication-card--static {
    grid-template-columns: 44px minmax(0, 1fr);
}

/* Heading link + overlay pseudo for entire-card clickability. */
.sonder-author-eeat__publication-link {
    color: inherit;
    text-decoration: none;
}

.sonder-author-eeat__publication-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.sonder-author-eeat__publication-card:has(.sonder-author-eeat__publication-link:hover) {
    background: #fafbfe;
}

.sonder-author-eeat__publication-link:focus {
    outline: none;
}

.sonder-author-eeat__publication-link:focus-visible::after {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: inherit;
}

.sonder-author-eeat__publication-link:hover {
    text-decoration: underline;
}

.sonder-author-eeat__publication-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 500;
    color: #17233f;
}

.sonder-author-eeat__publication-meta {
    margin: 6px 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #4f5f7c;
}

.sonder-author-eeat__publication-url {
    margin: 6px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--sonder-author-eeat-text-tertiary);
    word-break: break-word;
}

.sonder-author-eeat__publication-arrow {
    width: 18px;
    height: 18px;
    color: var(--sonder-author-eeat-text-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sonder-author-eeat__publication-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sonder-author-eeat__section--posts {
    margin-top: 40px;
}

.sonder-author-eeat__tabs {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--sonder-author-eeat-border);
    margin-bottom: 28px;
}

.sonder-author-eeat__tab-button {
    position: relative;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--sonder-author-eeat-text-tertiary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0 0 16px;
    cursor: pointer;
}

.sonder-author-eeat__tab-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: transparent;
}

.sonder-author-eeat__tab-button.is-active {
    color: var(--sonder-author-eeat-brand-2);
}

.sonder-author-eeat__tab-button.is-active::after {
    background: var(--sonder-author-eeat-brand-2);
}

.sonder-author-eeat__tab-button:focus-visible {
    outline: 2px solid var(--sonder-author-eeat-brand-2);
    outline-offset: 4px;
    border-radius: 4px;
}

.sonder-author-eeat__tab-panel[hidden] {
    display: none !important;
}

.sonder-author-eeat__posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* Post card — heading link + overlay pseudo for entire-card clickability. */
.sonder-author-eeat__post-card {
    position: relative;
}

.sonder-author-eeat__post-link {
    color: inherit;
    text-decoration: none;
}

.sonder-author-eeat__post-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sonder-author-eeat__post-link:focus {
    outline: none;
}

.sonder-author-eeat__post-link:focus-visible::after {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 18px;
}

.sonder-author-eeat__post-card:has(.sonder-author-eeat__post-link:hover) {
    cursor: pointer;
}

.sonder-author-eeat__post-link:hover {
    text-decoration: underline;
}

.sonder-author-eeat__post-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #dde3ee;
}

.sonder-author-eeat__post-media--placeholder {
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(180deg, #e6ebf4 0%, #d7deea 100%);
}

.sonder-author-eeat__post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sonder-author-eeat__post-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
}

.sonder-author-eeat__post-body {
    padding-top: 14px;
}

.sonder-author-eeat__post-title {
    margin: 0;
    color: #17233f;
    font-size: 1.7rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.sonder-author-eeat__post-date {
    margin: 12px 0 0;
    color: var(--sonder-author-eeat-text-tertiary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.sonder-author-eeat__empty {
    margin: 0;
    color: var(--sonder-author-eeat-text-tertiary);
    font-size: 1rem;
    font-style: italic;
}

.sonder-author-eeat__sidebar-card {
    border: 1px solid #dbe2ee;
    border-radius: 28px;
    background: #ffffff;
    padding: 38px 48px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.sonder-author-eeat__sidebar-group + .sonder-author-eeat__sidebar-group {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e7edf5;
}

.sonder-author-eeat__sidebar-title {
    margin: 0 0 24px;
    font-size: 0.75rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sonder-author-eeat-text-tertiary);
}

.sonder-author-eeat__chip-list,
.sonder-author-eeat__language-list,
.sonder-author-eeat__award-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sonder-author-eeat__chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.sonder-author-eeat__chip-item,
.sonder-author-eeat__language-item {
    margin: 0;
}

.sonder-author-eeat__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: .5em .75em;
    border-radius: 999px;
    background: #eef1ff;
    border: 1px solid #d9defd;
    color: #4c47d7;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

.sonder-author-eeat__language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
}

.sonder-author-eeat__language-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    min-height: 26px;
    padding: .5em .75em;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d9defd;
    color: #111;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

.sonder-author-eeat__language-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #31c15b;
    flex: 0 0 auto;
}

.sonder-author-eeat__award-list {
    display: grid;
    gap: 22px;
}

.sonder-author-eeat__award-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.sonder-author-eeat__award-icon {
    width: 16px;
    height: 16px;
    color: #eab308;
    flex: 0 0 auto;
}

.sonder-author-eeat__award-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sonder-author-eeat__award-text {
    display: block;
    color: #4d5c76;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

/* ================================================================
   AUTHORS INDEX — entire-card-clickable pattern
   (different namespace: sonder-eeat-authors-index, kept here because
   this file already loads on /authors/)
   ================================================================ */

.sonder-eeat-authors-index__card {
    position: relative;
}

.sonder-eeat-authors-index__avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50vw;
    overflow: hidden;
    flex: 0 0 auto;
}

.sonder-eeat-authors-index__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sonder-eeat-authors-index__link {
    color: inherit;
    text-decoration: none;
}

.sonder-eeat-authors-index__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sonder-eeat-authors-index__link:focus {
    outline: none;
}

.sonder-eeat-authors-index__link:focus-visible::after {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: inherit;
}

/* Card-wide hover cue — works in all evergreen browsers (2023+). */
.sonder-eeat-authors-index__card:has(.sonder-eeat-authors-index__link:hover) {
    cursor: pointer;
}

.sonder-eeat-authors-index__link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .sonder-author-eeat__two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sonder-author-eeat__tabs {
        gap: 18px;
    }

    .sonder-author-eeat__posts-grid {
        grid-template-columns: 1fr;
    }

    .sonder-author-eeat__post-title {
        font-size: 1.4rem;
    }

    .sonder-author-eeat__credentials-list,
    .sonder-author-eeat__publications {
        grid-template-columns: 1fr;
    }

    .sonder-author-eeat__sidebar-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .sonder-author-eeat__sidebar-group + .sonder-author-eeat__sidebar-group {
        margin-top: 24px;
        padding-top: 24px;
    }

    .sonder-author-eeat__sidebar-title {
        margin-bottom: 18px;
    }

    .sonder-author-eeat__chip-list,
    .sonder-author-eeat__language-list {
        gap: 12px;
    }

    .sonder-author-eeat__chip,
    .sonder-author-eeat__language-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 26px;
        padding: .5em .75em;
        border-radius: 999px;
        background: #eef1ff;
        border: 1px solid #d9defd;
        color: #4c47d7;
        font-size: 12px;
        line-height: 1;
        font-weight: 500;
        white-space: nowrap;
    }

    .sonder-author-eeat__award-item {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 12px;
    }

    .sonder-author-eeat__award-icon {
        width: 24px;
        height: 24px;
    }

    .sonder-author-eeat__award-text {
        font-size: 1rem;
    }
}
