.mcf-article-meta .mcf-author-name { color: var(--mcf-green); text-decoration: underline; text-underline-offset: 3px; }
.mcf-article-meta span.mcf-author-name { color: inherit; text-decoration: none; }
.mcf-author-summary { display: grid; grid-template-columns: 80px minmax(0,1fr); align-items: start; gap: 20px; padding: 22px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); }
.mcf-author-avatar { display: block; width: 80px; height: 80px; max-width: 100%; object-fit: cover; border-radius: 1px; }
.mcf-author-summary-text { min-width: 0; }
.mcf-author-summary .mcf-author-name { font-size: 18px; font-weight: 800; color: var(--mcf-text); }
.mcf-author-short-bio { margin: 8px 0 12px; font-size: 14px; line-height: 1.65; color: var(--mcf-muted); overflow-wrap: anywhere; }
.mcf-author-short-bio p { margin: 0 0 8px; }
.mcf-author-profile-link, .mcf-author-back-link { color: var(--mcf-green); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mcf-public-author-layout { padding-top: 36px; padding-bottom: 48px; }
.mcf-public-author { max-width: 960px; margin: 0 auto; padding: clamp(20px,4vw,44px); border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); }
.mcf-public-author-header { display: grid; grid-template-columns: 144px minmax(0,1fr); gap: 28px; align-items: center; margin-bottom: 30px; }
.mcf-public-author-header .mcf-author-avatar { width: 144px; height: 144px; }
.mcf-public-author-header h1 { margin: 6px 0 10px; font-size: clamp(28px,4vw,44px); line-height: 1.15; color: var(--mcf-text); overflow-wrap: anywhere; }
.mcf-public-author-role { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mcf-muted); }
.mcf-public-author section { margin-bottom: 28px; }
.mcf-public-author h2 { margin: 0 0 14px; color: var(--mcf-text); font-size: 22px; }
.mcf-author-topics ul, .mcf-author-links ul { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.mcf-author-topics li { padding: 6px 12px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface-2); color: var(--mcf-text); font-size: 13px; }
.mcf-author-links a { display: block; padding: 8px 12px; border: 1px solid var(--mcf-border); border-radius: 1px; color: var(--mcf-green); overflow-wrap: anywhere; }
.mcf-author-team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.mcf-author-team-card { min-width: 0; padding: 22px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface-2); }
.mcf-author-team-card .mcf-author-avatar { margin-bottom: 16px; }
.mcf-author-team-card p { margin: 10px 0 16px; color: var(--mcf-muted); font-size: 14px; line-height: 1.65; }
.mcf-author-team-card h2 .mcf-author-name { color: var(--mcf-text); }
.mcf-public-author a:hover, .mcf-author-summary a:hover { color: var(--mcf-green); }
.mcf-public-author a:focus-visible, .mcf-author-summary a:focus-visible, .mcf-article-meta a.mcf-author-name:focus-visible { outline: 2px solid var(--mcf-green); outline-offset: 4px; }
@media(max-width:620px) {
  .mcf-public-author-layout { padding-top: 20px; }
  .mcf-public-author-header { grid-template-columns: 88px minmax(0,1fr); gap: 18px; }
  .mcf-public-author-header .mcf-author-avatar { width: 88px; height: 88px; }
  .mcf-author-team-grid { grid-template-columns: minmax(0,1fr); }
  .mcf-author-summary { grid-template-columns: 56px minmax(0,1fr); gap: 14px; padding: 16px; }
  .mcf-author-summary .mcf-author-avatar { width: 56px; height: 56px; }
}
/* Dedicated full-width profile. Existing article summaries and team cards keep their layout. */
.mcf-public-author--profile { max-width: none; width: 100%; padding: 0; border: 0; background: transparent; min-width: 0; }
.mcf-public-author--profile .mcf-public-author-header { width: 100%; grid-template-columns: 160px minmax(0,1fr); padding: 24px 32px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); align-items: start; }
.mcf-public-author--profile .mcf-public-author-header .mcf-author-avatar { width: 160px; height: 160px; }
.mcf-public-author-identity { min-width: 0; }
.mcf-public-author-intro { max-width: 75ch; margin-top: 14px; color: var(--mcf-muted); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.mcf-public-author-intro p { margin: 0 0 10px; }
.mcf-author-socials { margin-top: 20px; }
.mcf-author-socials ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mcf-author-socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; color: var(--mcf-text); border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface-2); font-size: 14px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.mcf-author-socials a:hover { border-color: var(--mcf-green); }
.mcf-public-author--profile svg { flex: 0 0 20px; color: var(--mcf-green); }
.mcf-public-author--profile h2 { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.mcf-author-profile-body { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 32px; margin-bottom: 36px; }
.mcf-author-profile-body > * { min-width: 0; }
.mcf-author-profile-body .mcf-author-presentation { padding: clamp(20px,3vw,32px); border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); margin: 0; }
.mcf-author-biography { font-size: 16px; line-height: 1.8; color: var(--mcf-text); overflow-wrap: anywhere; }
.mcf-author-biography p { margin: 0 0 18px; }
.mcf-author-biography > :last-child { margin-bottom: 0; }
.mcf-author-biography img { max-width: 100%; height: auto; }
.mcf-author-biography a { color: var(--mcf-green); text-decoration: underline; }
.mcf-author-details { display: flex; flex-direction: column; gap: 18px; }
.mcf-author-details section { padding: 20px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); margin: 0; }
.mcf-author-details h2 { font-size: 17px; }
.mcf-author-fact p { margin: 0; color: var(--mcf-muted); line-height: 1.6; overflow-wrap: anywhere; }
.mcf-author-recent-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.mcf-author-recent-grid > * { min-width: 0; }
.mcf-author-recent-grid .mcf-editorial-card { margin: 0; }
.mcf-author-recent { padding-top: 28px; border-top: 1px solid var(--mcf-border); }
@media(max-width:900px) {
  .mcf-author-profile-body { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .mcf-author-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mcf-author-recent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px) {
  .mcf-public-author--profile .mcf-public-author-header { grid-template-columns: 80px minmax(0,1fr); padding: 18px; gap: 16px; }
  .mcf-public-author--profile .mcf-public-author-header .mcf-author-avatar { width: 80px; height: 80px; }
  .mcf-public-author--profile .mcf-public-author-header h1 { font-size: 30px; }
  .mcf-public-author--profile .mcf-kicker { font-size: 10px; }
  .mcf-author-socials a { padding: 8px 10px; }
  .mcf-author-details, .mcf-author-recent-grid { grid-template-columns: minmax(0,1fr); }
  .mcf-public-author-intro { font-size: 14px; }
  .mcf-author-profile-body { margin-bottom: 24px; }
}
@media(max-width:380px) {
  .mcf-public-author--profile .mcf-public-author-header { grid-template-columns: minmax(0,1fr); }
}
/* Team page uses the full site content width, with no article recommendation area. */
.mcf-public-author--team { width: 100%; max-width: none; min-width: 0; padding: 0; border: 0; background: transparent; }
.mcf-team-header { padding: clamp(22px,4vw,40px); margin-bottom: 32px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); }
.mcf-team-header h1 { margin: 8px 0 18px; font-size: clamp(28px,4vw,44px); line-height: 1.2; overflow-wrap: anywhere; }
.mcf-team-intro { max-width: 85ch; font-size: 17px; line-height: 1.75; color: var(--mcf-muted); overflow-wrap: anywhere; }
.mcf-team-intro p { margin: 0 0 12px; }
.mcf-team-intro > :last-child { margin-bottom: 0; }
.mcf-team-intro img { max-width: 100%; height: auto; }
.mcf-public-author--team > section > h2 { display: flex; align-items: center; gap: 10px; }
.mcf-public-author--team svg { flex: 0 0 20px; color: var(--mcf-green); }
.mcf-public-author--team .mcf-author-team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 20px; }
.mcf-public-author--team .mcf-author-team-card { margin: 0; padding: 24px; display: flex; flex-direction: column; background: var(--mcf-surface); }
.mcf-team-card-identity { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 16px; }
.mcf-team-card-identity > div { min-width: 0; }
.mcf-team-card-identity .mcf-author-avatar { width: 72px; height: 72px; margin: 0; }
.mcf-team-card-identity h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.mcf-team-card-identity .mcf-author-name { color: var(--mcf-text); }
.mcf-team-card-identity .mcf-public-author-role { margin: 0; }
.mcf-public-author--team .mcf-author-socials { margin: 0 0 20px; }
.mcf-public-author--team .mcf-author-profile-link { margin-top: auto; padding-top: 14px; }
.mcf-team-history { padding: clamp(22px,3vw,32px); border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface); }
.mcf-team-history > p { max-width: 85ch; margin: 0 0 24px; color: var(--mcf-muted); font-size: 16px; line-height: 1.7; }
.mcf-team-contributors { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0; margin: 0; }
.mcf-team-contributors li { min-width: 0; padding: 12px 14px; border: 1px solid var(--mcf-border); border-radius: 1px; background: var(--mcf-surface-2); color: var(--mcf-text); font-weight: 600; overflow-wrap: anywhere; }
@media(max-width:1000px) {
  .mcf-public-author--team .mcf-author-team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mcf-team-contributors { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:620px) {
  .mcf-public-author--team .mcf-author-team-grid { grid-template-columns: minmax(0,1fr); }
  .mcf-team-contributors { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .mcf-team-header, .mcf-team-history { padding: 20px; }
  .mcf-team-intro { font-size: 15px; }
}

/* Author pages use the same transparent content canvas as the other native layouts. */
html body.mcf-child-theme main.mcf-shell.mcf-public-author-layout {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

.mcf-public-author--profile .mcf-public-author-header--skin {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
}
.mcf-author-skin-frame { display: flex; align-items: center; justify-content: center; width: 240px; height: 280px; max-width: 100%; overflow: hidden; }
.mcf-public-author--profile .mcf-public-author-header .mcf-author-skin-portrait {
    flex-shrink: 0;
    width: 240px;
    height: 360px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}
@media(max-width:620px) {
    .mcf-author-skin-frame { width: 110px; height: 140px; }
    .mcf-public-author--profile .mcf-public-author-header--skin {
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: start;
    }
    .mcf-public-author--profile .mcf-public-author-header .mcf-author-skin-portrait {
        width: 110px;
        height: 165px;
    }
}

@media(max-width:380px) {
    .mcf-public-author--profile .mcf-public-author-header--skin {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact authored articles and a prominent team link on author profiles only. */
.mcf-public-author--profile .mcf-author-recent { width: 100%; padding-top: 20px; }
.mcf-public-author--profile .mcf-author-recent > h2 { font-size: 18px; color: var(--mcf-muted); margin-bottom: 12px; }
.mcf-author-post { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--mcf-border); }
.mcf-author-post-image { display: block; flex: 0 0 104px; width: 104px; }
.mcf-author-post-image img { display: block; width: 104px; height: 52px; object-fit: cover; border-radius: 1px; }
.mcf-author-post-text { min-width: 0; }
.mcf-public-author--profile .mcf-author-post h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.mcf-public-author--profile .mcf-author-post h3 a { color: var(--mcf-text); text-decoration: none; }
.mcf-public-author--profile .mcf-author-post h3 a:hover { color: var(--mcf-green); }
.mcf-author-post time { color: var(--mcf-muted); font-size: 11px; }
.mcf-public-author--profile a.mcf-author-team-button { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-top: 18px; padding: 11px 15px; border: 1px solid var(--mcf-green); border-radius: 1px; background: var(--mcf-green); color: #101810; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.mcf-public-author--profile a.mcf-author-team-button svg { color: inherit; }
.mcf-public-author--profile a.mcf-author-team-button:hover { background: var(--mcf-surface-2); color: var(--mcf-green); }
@media(max-width:620px) {
    .mcf-author-recent-grid { grid-template-columns: minmax(0,1fr); }
    .mcf-public-author--profile a.mcf-author-team-button { font-size: 13px; padding: 10px 12px; }
}

/* Decorative landscape is confined to the main author presentation panel. */
.mcf-public-author--profile .mcf-public-author-header { position: relative; isolation: isolate; overflow: hidden; }
.mcf-public-author--profile .mcf-public-author-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../images/author-landscape.webp") center 58% / cover no-repeat;
    filter: grayscale(1);
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.3) 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.3) 100%);
}
.mcf-public-author--profile .mcf-public-author-header > * { position: relative; z-index: 1; }
@media(max-width:620px) {
    .mcf-public-author--profile .mcf-public-author-header::before { opacity: 0.12; }
}

/* Team introduction uses its own decorative monochrome background. */
.mcf-public-author--team .mcf-team-header { position: relative; isolation: isolate; overflow: hidden; }
.mcf-public-author--team .mcf-team-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("../images/team-villagers.webp") right 42% / cover no-repeat;
    filter: grayscale(1);
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.6) 55%, #000);
    mask-image: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.6) 55%, #000);
}
.mcf-public-author--team .mcf-team-header > * { position: relative; z-index: 1; }
@media(max-width:620px) {
    .mcf-public-author--team .mcf-team-header::before { opacity: 0.12; }
}
