/* Authors Manager — Frontend Styles */

/* ── Byline bar ──────────────────────────────────────────────────── */
.am-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    border-radius: 0 6px 6px 0;
    padding: 12px 18px;
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.65;
    flex-wrap: wrap;
    color: #374151;
}

.am-byline-avatar {
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.am-byline-text-line {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
}

/* Person name / title links — same color, just underlined */
.am-person-trigger {
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(55,65,81,.45);
    cursor: pointer;
}
.am-person-trigger:hover {
    color: inherit !important;
    text-decoration-color: #374151;
}

/* "Reviewed", "Verified", "Fact checked" — popup trigger, dotted underline */
.am-byline-process-link {
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-style: dotted;
}
.am-byline-process-link:hover,
.am-byline .am-byline-process-link:hover,
.am-byline-text-line .am-byline-process-link:hover {
    color: inherit !important;
    text-decoration-style: solid;
}

.am-last-updated {
    color: #555;
    font-size: 13px;
}

/* ── Author profile header (archive page) ────────────────────────── */
.am-author-profile {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px;
    margin: 0 0 32px;
}

.am-author-photo {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #e5e7eb;
}

.am-author-info { flex: 1; min-width: 0; }

.am-author-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1d2327;
}

.am-author-title {
    font-size: 15px;
    color: #555;
    margin: 6px 0 8px;
}

.am-author-bio {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 8px 0 12px;
}

.am-author-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.am-author-posts-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* ── Team grid ───────────────────────────────────────────────────── */
.am-team-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
    gap: 24px;
    margin: 24px 0;
}

.am-team-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.am-team-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }

.am-team-card-photo-link { display: block; }

.am-team-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .2s;
}

.am-team-card:hover .am-team-card-photo { transform: scale(1.03); }

.am-team-card-info { padding: 16px; }

.am-team-card-name {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    text-decoration: none;
    margin-bottom: 5px;
}

.am-team-card-name:hover { color: #2271b1; }

.am-team-card-title {
    font-size: 13px;
    color: #555;
    margin: 6px 0 8px;
}

.am-team-card-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px;
}

.am-team-card-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Social links ────────────────────────────────────────────────── */
.am-social-link {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid currentColor;
}

.am-social-twitter  { color: #1da1f2; }
.am-social-linkedin { color: #0a66c2; }
.am-social-link:hover { opacity: .75; }

/* ── Team role badge ─────────────────────────────────────────────── */
.am-team-role-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}

.am-team-role-badge.am-role-author      { background: #dbeafe; color: #1e40af; }
.am-team-role-badge.am-role-editor      { background: #d1fae5; color: #065f46; }
.am-team-role-badge.am-role-contributor { background: #fef3c7; color: #92400e; }
.am-team-role-badge.am-role-researcher  { background: #ede9fe; color: #5b21b6; }
.am-team-role-badge.am-role-reviewer    { background: #fce7f3; color: #9d174d; }

/* ══════════════════════════════════════════════════════════════════
   EDITORIAL TEAM PAGE  [am_editorial_team]
   ══════════════════════════════════════════════════════════════════ */

.am-editorial-team {
    font-family: inherit;
    color: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 48px;
}

/* ── Header ──────────────────────────────────────────────────────── */
.am-mt-header {
    text-align: center;
    padding: 48px 24px 40px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 36px;
}

.am-mt-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.2;
}

.am-mt-description {
    font-size: 16px;
    color: #4b5563;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Toolbar (filters + search) ──────────────────────────────────── */
.am-mt-toolbar {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.am-mt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.am-mt-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.am-mt-filter-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
    background: #f0f6ff;
}

.am-mt-filter-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.am-mt-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
}

.am-mt-filter-btn.active .am-mt-filter-count { background: rgba(255,255,255,.25); }

/* ── Search ──────────────────────────────────────────────────────── */
.am-mt-search-wrap {
    position: relative !important;
    display: block !important;
}

/* Force show — theme CSS often hides input[type="search"] */
input.am-mt-search,
input[type="search"].am-mt-search {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    width: 220px !important;
    padding: 9px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    color: #374151 !important;
    transition: border-color .15s;
    -webkit-appearance: none;
    appearance: none;
}

input.am-mt-search:focus,
input[type="search"].am-mt-search:focus {
    outline: none !important;
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 3px rgba(34,113,177,.12) !important;
}

/* ── Grid ────────────────────────────────────────────────────────── */
.am-mt-grid {
    display: grid;
    gap: 28px;
}

.am-mt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.am-mt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.am-mt-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Card ────────────────────────────────────────────────────────── */
.am-mt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.am-mt-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* Photo */
.am-mt-photo-link { display: block; overflow: hidden; }

.am-mt-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .3s;
}

.am-mt-card:hover .am-mt-photo { transform: scale(1.04); }

/* Card body */
.am-mt-card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Role badge */
.am-mt-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    align-self: flex-start;
}

/* Name */
.am-mt-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
    line-height: 1.3;
}

.am-mt-name:hover { color: #2271b1; }

/* Job title */
.am-mt-job-title {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* Bio */
.am-mt-bio {
    font-size: 14px;
    color: #374151;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

/* Social links */
.am-mt-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.am-mt-social-link {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #2271b1;
    border: 1px solid #c3d4e8;
    background: #f0f6ff;
    text-decoration: none;
    transition: background .15s;
}

.am-mt-social-link:hover { background: #dbeafe; }

/* View profile link */
.am-mt-profile-link {
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
}

.am-mt-profile-link:hover { text-decoration: underline; }

/* No results */
.am-mt-no-results {
    text-align: center;
    padding: 48px;
    color: #9ca3af;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* Role badge colours (reuse existing) */
.am-mt-role-badge.am-role-author      { background: #dbeafe; color: #1e40af; }
.am-mt-role-badge.am-role-editor      { background: #d1fae5; color: #065f46; }
.am-mt-role-badge.am-role-contributor { background: #fef3c7; color: #92400e; }
.am-mt-role-badge.am-role-researcher  { background: #ede9fe; color: #5b21b6; }
.am-mt-role-badge.am-role-reviewer    { background: #fce7f3; color: #9d174d; }

/* ── Fact-checked byline item ────────────────────────────────────── */
.am-fact-checked-by { border-left: 3px solid #f59e0b; padding-left: 10px; }

.am-fact-check-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #92400e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.am-fact-check-link:hover { color: #c2410c; }

/* ── Popup trigger button (looks like plain text / link) ─────────── */
.am-popup-trigger,
button.am-popup-trigger {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font: inherit !important;
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-style: dotted;
    display: inline !important;
    line-height: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.am-popup-trigger:hover,
.am-popup-trigger:focus,
.am-popup-trigger:active,
button.am-popup-trigger:hover,
button.am-popup-trigger:focus,
button.am-popup-trigger:active,
.am-byline button.am-popup-trigger:hover,
.am-byline-text-line button.am-popup-trigger:hover {
    color: inherit !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-decoration-style: solid;
}

/* ── Author card popup (click name / title in byline) ───────────── */
.am-acp-box {
    width: 260px;
    padding: 22px 20px 20px;
    text-align: center;
}

.am-acp-photo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.am-acp-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid #e5e7eb;
    display: block;
}

.am-acp-name {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
    padding-right: 0;
}

.am-acp-bio {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 14px;
    text-align: center;
}

.am-acp-read-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #111827 !important;
    text-decoration: none !important;
    border-bottom: none;
    padding-bottom: 0;
}

.am-acp-read-more:hover { color: #111827 !important; text-decoration: none !important; }

.am-acp-editorial-link {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: #374151 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-align: center;
}

.am-acp-editorial-link:hover { color: #374151 !important; }

/* ── Sidebar byline card (lives in the theme sidebar; floats right as a
      fallback when no sidebar is found) ───────────────────────────── */
.am-byline-sidebar {
    float: right !important;
    clear: right !important;
    display: block !important;
    width: 300px;
    margin: 0 0 20px 28px;
}

/* When JS relocates it into the real theme sidebar, drop the float so it
   sits as a normal block at the top of the sidebar column. */
.am-byline-sidebar.am-in-sidebar {
    float: none !important;
    width: auto !important;
    margin: 0 0 22px !important;
}

.am-byline-sidebar-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.am-byline-sidebar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
    flex-shrink: 0;
}

.am-byline-sidebar-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
}

.am-byline-sidebar-trigger {
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-style: dotted;
    color: inherit !important;
    display: inline;
}

.am-byline-sidebar-name {
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(55,65,81,.4);
    font-size: 13px;
}

.am-byline-sidebar-name:hover { color: inherit !important; text-decoration-color: #374151; }

.am-byline-sidebar-sep  { color: #374151; font-size: 13px; }
.am-byline-sidebar-date { color: #6b7280; font-size: 13px; }

.am-byline-sidebar-lines { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.am-byline-sidebar-line-thick { height: 10px; background: #1d2327; border-radius: 1px; }
.am-byline-sidebar-line-thin  { height: 10px; background: #1d2327; border-radius: 1px; }

.am-byline-sidebar-text a {
    color: #1a1a1a !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(26,26,26,.55);
}
.am-byline-sidebar-text a:hover { text-decoration-color: #1a1a1a; }
.am-byline-sidebar-text .am-byline-process-link {
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media ( max-width: 768px ) {
    .am-byline-sidebar {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px !important;
    }
}

/* ── Inline byline card (Healthline style) ───────────────────────── */
.am-byline-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
    float: right;
    width: 280px;
    margin-left: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    clear: right;
}

.am-byline-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.am-byline-card-text { flex: 1; }

.am-byline-card-trigger {
    font-size: 12px;
    font-weight: 700;
    color: #1d5fa8;
    text-underline-offset: 2px;
}

.am-byline-card-trigger:hover { color: #c2410c; }

.am-byline-card-name {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
}

.am-byline-card-name:hover { color: #1d5fa8; text-decoration: underline; }

.am-byline-card-sep  { color: #6b7280; font-size: 12px; }
.am-byline-card-written { color: #6b7280; font-size: 12px; }
.am-byline-card-date { color: #9ca3af; font-size: 12px; }

/* ── Review popup — dropdown (positions below trigger) ───────────── */

/* Transparent full-page click-catcher — no dark overlay */
.am-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 99998;
}

.am-popup-overlay.am-popup-open {
    display: block;
}

/* Popup box: absolutely positioned inside the overlay (overlay is inset:0,
   so top/left values from JS map directly to viewport coordinates) */
.am-popup {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 24px 22px 22px;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: 78vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid #e5e7eb;
    z-index: 99999;
    animation: am-popup-in .15s ease;
}

@keyframes am-popup-in {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.am-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background .15s;
    padding: 0;
}

.am-popup-close:hover { background: #e5e7eb; color: #111; }

.am-popup-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.2;
    padding-right: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.am-popup-desc {
    font-size: 13px;
    color: #111827;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* READ MORE — plain bold text with arrow, no box */
.am-popup-read-more {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #111827 !important;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 4px 0 28px;
}

.am-popup-read-more:hover {
    background: none;
    border: none;
    color: #111827 !important;
    text-decoration: none;
}

.am-popup-hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

.am-popup-team-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin: 0 0 18px;
}

.am-popup-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.am-popup-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    background: #fafafa;
}

.am-popup-person-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.am-popup-person-name { cursor: default; }

.am-popup-person-title {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}

.am-popup-person-role {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-block;
}

/* Popup role badge colours */
.am-popup-person-role.am-role-author        { background: #dbeafe; color: #1e40af; }
.am-popup-person-role.am-role-editor        { background: #d1fae5; color: #065f46; }
.am-popup-person-role.am-role-contributor   { background: #fef3c7; color: #92400e; }
.am-popup-person-role.am-role-reviewer      { background: #fce7f3; color: #9d174d; }
.am-popup-person-role.am-role-researcher    { background: #ede9fe; color: #5b21b6; }
.am-popup-person-role.am-role-fact-checker,
.am-popup-person-role.am-role-fact_checker  { background: #fff7ed; color: #c2410c; }
.am-popup-person-role.am-role-verified      { background: #dcfce7; color: #166534; }

@media ( max-width: 480px ) {
    .am-popup { padding: 28px 20px 24px; }
    .am-popup-title { font-size: 18px; }
    .am-byline-card { float: none; width: 100%; margin-left: 0; }
}

/* Role badge colours (frontend — fact checker) */
.am-role-fact-checker,
.am-ap-role-badge.am-role-fact-checker,
.am-mt-role-badge.am-role-fact-checker,
.am-ap-role-badge.am-role-fact_checker,
.am-mt-role-badge.am-role-fact_checker { background: #fff7ed; color: #c2410c; }

/* ══════════════════════════════════════════════════════════════════
   PROCESS PAGE  [am_process]
   ══════════════════════════════════════════════════════════════════ */

.am-process-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 60px;
    font-family: inherit;
}

.am-process-header {
    text-align: center;
    padding: 48px 24px 44px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 48px;
}

.am-process-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.2;
}

.am-process-description {
    font-size: 16px;
    color: #4b5563;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Steps ───────────────────────────────────────────────────────── */
.am-process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.am-process-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow .2s;
}

.am-process-step:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

.am-process-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-process-step-body { flex: 1; }

.am-process-step-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.am-process-step-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ── Team stats ──────────────────────────────────────────────────── */
.am-process-team-stats {
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
    text-align: center;
}

.am-process-stats-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 28px;
}

.am-process-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.am-process-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 32px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.am-process-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #2271b1;
    line-height: 1;
}

.am-process-stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-transform: capitalize;
}

@media ( max-width: 640px ) {
    .am-process-steps { grid-template-columns: 1fr; }
    .am-process-stat-card { min-width: 100px; padding: 18px 20px; }
    .am-process-stat-number { font-size: 32px; }
}

/* ── Author box (below post content) ────────────────────────────── */
.am-author-box {
    margin: 32px 0 0;
    font-size: 15px;
    line-height: 1.7;
}

.am-author-box-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 28px;
}

.am-author-box-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.am-author-box-photo-wrap { flex-shrink: 0; display: block; }

.am-author-box-photo {
    width: 200px;
    height: 230px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 4px;
}

.am-author-box-body { flex: 1; min-width: 0; }

.am-author-box-bio {
    font-style: italic;
    color: #1d2327;
    margin: 0 0 12px;
    line-height: 1.75;
}

.am-author-box-name {
    font-weight: 700;
    font-style: italic;
    color: #1d2327;
    text-decoration: none;
}

.am-author-box-name:hover { text-decoration: underline; }

.am-author-box-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.am-author-box-social-link {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    color: #2271b1;
    border: 1px solid #c3d4e8;
    background: #f0f6ff;
    text-decoration: none;
    transition: background .15s;
}

.am-author-box-social-link:hover { background: #dbeafe; }

.am-last-reviewed {
    margin: 20px 0 0;
    font-size: 13px;
    color: #888;
    font-style: normal;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

/* ── 900 px ──────────────────────────────────────────────────────── */
@media ( max-width: 900px ) {
    .am-mt-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .am-mt-cols-3 { grid-template-columns: repeat(2, 1fr); }

    .am-ap-posts-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ── 768 px ──────────────────────────────────────────────────────── */
@media ( max-width: 768px ) {
    /* byline inline card → full width */
    .am-byline-card {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* author profile sidebar → below main */
    .am-ap-body {
        flex-direction: column;
    }
    .am-ap-sidebar {
        width: 100%;
    }

    /* process steps → single column */
    .am-process-steps { grid-template-columns: 1fr; }

    /* author box photo shrinks */
    .am-author-box-photo { width: 120px; height: 140px; }
}

/* ── 640 px ──────────────────────────────────────────────────────── */
@media ( max-width: 640px ) {
    /* byline bar */
    .am-byline { gap: 8px; padding: 10px 14px; }
    .am-byline-text-line { font-size: 13px; }

    /* author box */
    .am-author-profile { flex-direction: column; align-items: center; text-align: center; }
    .am-author-social  { justify-content: center; }
    .am-author-box-inner { flex-direction: column; align-items: center; text-align: center; }
    .am-author-box-photo { width: 120px; height: 140px; }
    .am-author-box-links { justify-content: center; }

    /* editorial team toolbar — stack */
    .am-mt-toolbar { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    input.am-mt-search,
    input[type="search"].am-mt-search { width: 100% !important; }
    .am-mt-filters { justify-content: flex-start; }
    .am-mt-cols-2,
    .am-mt-cols-3,
    .am-mt-cols-4 { grid-template-columns: 1fr; }
    .am-mt-header { padding: 28px 16px 24px; }

    /* process stat cards */
    .am-process-stat-card { min-width: 100px; padding: 18px 16px; }
    .am-process-stat-number { font-size: 32px; }
}

/* ── 480 px ──────────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    /* popup */
    .am-popup { padding: 24px 16px 20px; }
    .am-popup-title { font-size: 18px; }
    .am-popup-team-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

    /* author profile */
    .am-ap-card { padding: 16px 14px; }
    .am-ap-header { gap: 12px; }
    .am-ap-avatar-wrap { width: 60px; height: 60px; border-radius: 10px; }
    .am-ap-avatar-initials { font-size: 18px; }
    .am-ap-meta-row { gap: 8px; }
    .am-ap-posts-section,
    .am-ap-reviewed-section { padding: 16px 14px; }
    .am-ap-posts-grid { grid-template-columns: 1fr; }

    /* editorial team cards → 1 col */
    .am-mt-cols-2 { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   AUTHOR PROFILE PAGE  (/author/slug/)
   ══════════════════════════════════════════════════════════════════ */

/* Theme integration wrappers — neutralise any stray layout the theme adds */
.am-primary-wrap  { width: 100%; }
.am-site-main     { width: 100%; }

.am-author-profile-page {
    background: #f7f8fa;
    min-height: 60vh;
    padding: 0 0 60px;
    width: 100%;
    box-sizing: border-box;
}

.am-ap-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 clamp(14px, 3.5%, 40px);
}

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.am-ap-breadcrumb {
    padding: 18px 0 16px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.am-ap-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.am-ap-breadcrumb a:hover { color: #2271b1; text-decoration: underline; }

.am-ap-bc-sep { color: #9ca3af; }

.am-ap-bc-current { color: #374151; font-weight: 500; }

/* ── Main card ───────────────────────────────────────────────────── */
.am-ap-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 32px 32px;
    margin-bottom: 24px;
}

/* ── Header row ──────────────────────────────────────────────────── */
.am-ap-header {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 22px;
}

/* Avatar */
.am-ap-avatar-wrap {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
}

.am-ap-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.am-ap-avatar-initials {
    width: 100%;
    height: 100%;
    background: #dbe9f7;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Header info */
.am-ap-header-info { flex: 1; }

.am-ap-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
}

.am-ap-role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.am-ap-role-badge.am-role-author      { background: #dbeafe; color: #1e40af; }
.am-ap-role-badge.am-role-editor      { background: #d1fae5; color: #065f46; }
.am-ap-role-badge.am-role-contributor { background: #fef3c7; color: #92400e; }
.am-ap-role-badge.am-role-reviewer    { background: #fce7f3; color: #9d174d; }
.am-ap-role-badge.am-role-researcher  { background: #ede9fe; color: #5b21b6; }

.am-ap-fact-badge,
.am-ap-reviewer-badge,
.am-ap-researcher-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.am-ap-fact-badge       { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.am-ap-reviewer-badge   { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
.am-ap-researcher-badge { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

.am-ap-name {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.2;
}

.am-ap-job-title {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 10px;
}

.am-ap-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #6b7280;
}

.am-ap-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.am-ap-meta-item svg { flex-shrink: 0; opacity: .7; }

/* Divider */
.am-ap-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 0 0 24px;
}

/* ── Body: two-column ────────────────────────────────────────────── */
.am-ap-body {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.am-ap-main { flex: 1; min-width: 0; }

.am-ap-sidebar {
    width: 210px;
    flex-shrink: 0;
}

/* ── Profile sections ────────────────────────────────────────────── */
.am-ap-section { margin-bottom: 22px; }

.am-ap-section:last-child { margin-bottom: 0; }

.am-ap-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.am-ap-section-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-ap-icon-about      { background: #dbeafe; color: #2563eb; }
.am-ap-icon-expertise  { background: #fef3c7; color: #d97706; }
.am-ap-icon-experience { background: #fde8d0; color: #c2410c; }
.am-ap-icon-education  { background: #f3f4f6; color: #374151; }
.am-ap-icon-custom     { background: #ede9fe; color: #7c3aed; }

.am-ap-section-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}

.am-ap-field-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 12px 14px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.65;
}

/* ── Sidebar widgets ─────────────────────────────────────────────── */
.am-ap-widget {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.am-ap-widget:last-child { margin-bottom: 0; }

.am-ap-widget-title {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 12px;
}

.am-ap-send-email {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid #c3d4e8;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 8px;
    transition: background .15s;
}

.am-ap-send-email:hover { background: #f0f6ff; }

.am-ap-social-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    margin: 0 4px 6px 0;
    transition: border-color .15s, color .15s;
}

.am-ap-social-btn:hover { border-color: #2271b1; color: #2271b1; }

.am-ap-stat-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #374151;
    padding: 7px 0;
    border-bottom: 1px solid #f3f4f6;
}

.am-ap-stat-row:last-child { border-bottom: none; padding-bottom: 0; }

.am-ap-stat-row svg { color: #9ca3af; flex-shrink: 0; }

.am-ap-stat-count {
    margin-left: auto;
    font-weight: 700;
    color: #111827;
    font-size: 13px;
}

/* ── Articles section ────────────────────────────────────────────── */
.am-ap-posts-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.am-ap-posts-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.am-ap-posts-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.am-ap-posts-count {
    font-size: 13px;
    color: #9ca3af;
}

.am-ap-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Post card */
.am-ap-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

.am-ap-post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.am-ap-post-thumb-link { display: block; }

.am-ap-post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.am-ap-post-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #9ca3af;
    letter-spacing: 2px;
}

.am-ap-post-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.am-ap-post-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    color: #dc2626;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.am-ap-post-cat:hover { text-decoration: underline; }

.am-ap-post-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    line-height: 1.45;
    margin-bottom: 8px;
    flex: 1;
}

.am-ap-post-title:hover { color: #2271b1; }

.am-ap-post-excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 10px;
}

.am-ap-post-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #9ca3af;
    flex-wrap: wrap;
    margin-top: auto;
}

.am-ap-post-meta-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.am-ap-post-meta-initials {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dbe9f7;
    color: #4a6fa5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.am-ap-post-meta-sep { opacity: .5; }

/* ── Reviewed & Verified section ─────────────────────────────────── */
.am-ap-reviewed-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 28px;
}

.am-ap-reviewed-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 20px;
}

.am-ap-reviewed-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-ap-reviewed-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.am-ap-reviewed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s;
}

.am-ap-reviewed-item:hover { background: #f8fafc; }

.am-ap-reviewed-item + .am-ap-reviewed-item {
    border-top: 1px solid #f3f4f6;
    border-radius: 0;
}

.am-ap-reviewed-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.am-ap-reviewed-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-ap-reviewed-item:hover .am-ap-reviewed-item-title { color: #2271b1; }

.am-ap-reviewed-item-by {
    font-size: 12px;
    color: #9ca3af;
}

.am-ap-reviewed-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}

.am-ap-reviewed-item-meta svg { color: #d1d5db; }

/* author-profile responsive handled in the shared RESPONSIVE section above */

/* ── "How we reviewed this article" section ─────────────────────── */
.am-review-section {
    margin: 28px 0 8px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}
.am-review-heading {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.am-review-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.am-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f5;
    border: 1px solid #e2e5e9;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: background .15s ease;
}
.am-review-btn:hover { background: #e6e9ed; }
.am-review-btn-icon { font-size: 15px; line-height: 1; }

/* ── Right slide-in panel (Sources / History) ───────────────────── */
.am-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 100000;
}
.am-panel-overlay.am-panel-open { opacity: 1; visibility: visible; }

.am-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 92vw;
    background: #faf6f1;
    box-shadow: -8px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.am-panel-overlay.am-panel-open .am-panel { transform: translateX(0); }

.am-panel-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 22px 24px;
    border-bottom: 1px solid #ece5dc;
}
.am-panel-title { font-size: 19px; font-weight: 800; color: #1a1a1a; }
.am-panel-close {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0 4px;
}
.am-panel-body { padding: 22px 24px; overflow-y: auto; flex: 1; }

.am-panel-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #2b2b2b;
    margin: 0 0 18px;
}
.am-panel-policy-link {
    color: #1a1a1a !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.am-panel-sources { list-style: none; margin: 0; padding: 0; }
.am-panel-source {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid #ece5dc;
}
.am-panel-source-text { font-size: 15px; line-height: 1.5; color: #2b2b2b; }
.am-panel-source-link {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid #d9d2c8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    background: #fff;
}
.am-panel-source-link:hover { background: #f0ece5; }

/* History timeline */
.am-panel-history { list-style: none; margin: 0; padding: 0; }
.am-panel-history-item {
    position: relative;
    padding: 0 0 26px 26px;
}
.am-panel-history-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: -4px;
    width: 2px;
    background: #d9d2c8;
}
.am-panel-history-item:last-child::before { display: none; }
.am-panel-history-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cfc7bb;
}
.am-panel-history-item.is-current .am-panel-history-dot { background: #0a8a8a; }
.am-panel-history-version {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.am-panel-history-line {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: #4a4a4a;
}

@media ( max-width: 600px ) {
    .am-review-heading { font-size: 18px; }
    .am-panel { width: 100%; max-width: 100%; }
}

/* ── Full-width override (team page + author profile) ───────────────
   Theme-agnostic: hides sidebars, expands the content column to full
   width, and suppresses the theme's duplicate page title. */
body.am-fullwidth-page #right-sidebar,
body.am-fullwidth-page #left-sidebar,
body.am-fullwidth-page .sidebar,
body.am-fullwidth-page aside.widget-area,
body.am-fullwidth-page .widget-area,
body.am-fullwidth-page #secondary {
    display: none !important;
}

body.am-fullwidth-page #primary,
body.am-fullwidth-page .content-area,
body.am-fullwidth-page #content,
body.am-fullwidth-page .site-content,
body.am-fullwidth-page .ast-container,
body.am-fullwidth-page .site-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Suppress the theme's own page/entry title so the shortcode heading is the
   only one (fixes the double "Meet Our Team" heading). Only on team/landing
   pages — the manual "force full width" override keeps the page title. */
body.am-hide-theme-title .entry-header .entry-title,
body.am-hide-theme-title .page-header .page-title,
body.am-hide-theme-title .entry-header > .entry-title,
body.am-hide-theme-title header.entry-header,
body.am-hide-theme-title .page-hero .entry-title {
    display: none !important;
}
