.author-page {
    --ink:#172b40; --muted:#52677e; --stroke:#dce5ee; --blue:#17529b; --paper:#fff;
    width:min(1160px,calc(100% - 36px)); margin:10px auto 50px; color:var(--ink);
    font-family:"Segoe UI",Tahoma,Arial,sans-serif; box-sizing:border-box;
}
.otm-public-page .author-page { width:min(1160px,100%); }
.author-page *, .author-page *::before, .author-page *::after { box-sizing:border-box; }
.author-page [hidden] { display:none !important; }
.author-page a { text-decoration:none; }
.author-page :focus-visible { outline:2px solid #b87526; outline-offset:3px; }
.author-page > .author-heading {
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
    gap:6px 12px; padding:0 0 9px; margin:0 0 14px;
    position:static; min-height:0; height:auto; background:transparent; border-bottom:1px solid var(--stroke);
}
.author-page > .author-breadcrumb { margin:0 0 5px; line-height:1.2; }
.author-breadcrumb a { color:var(--blue); font-size:.78rem; font-weight:640; }
.author-page .author-heading h1 {
    margin:0; font-size:clamp(1.28rem,2.3vw,1.83rem); line-height:1.12;
    letter-spacing:-.025em; font-weight:750; overflow-wrap:anywhere;
}
.author-page .author-heading p { margin:3px 0 0; color:var(--muted); font-size:.8rem; line-height:1.2; }
.author-heading > div { min-width:0; }
.author-actions { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.author-button { display:inline-flex; min-height:38px; justify-content:center; align-items:center; gap:7px; padding:6px 11px; border:1px solid transparent; border-radius:7px; font:inherit; font-size:.84rem; line-height:1.2; font-weight:700; cursor:pointer; }
.author-primary { background:#124d91; color:white; }
.author-primary:hover { background:#0d3b72; color:white; }
.author-outline { color:#1a4f84; background:#f5f9ff; border-color:#d7e5f4; }
.author-outline:hover { color:#123d70; background:#e8f2fd; }
.author-share-icon { width:13px; height:10px; position:relative; display:inline-block; border-left:1px solid currentColor; border-bottom:1px solid currentColor; border-radius:0 0 0 3px; }
.author-share-icon::before { content:""; display:block; position:absolute; top:-3px; right:0; width:7px; height:7px; border:solid currentColor; border-width:1.5px 1.5px 0 0; }
.author-share-icon::after { content:""; display:block; position:absolute; top:1px; right:0; width:10px; height:1px; background:currentColor; transform:rotate(-42deg); }

.author-content { display:grid; grid-template-columns:minmax(220px,255px) minmax(0,1fr); gap:20px; align-items:start; }
.author-page .author-sidebar { display:grid; grid-auto-rows:max-content; min-width:0; gap:14px; align-content:start; }
.author-main { min-width:0; display:grid; gap:13px; }
.author-page .author-sidebar > .author-profile-card,
.author-page .author-sidebar > .author-activity { position:relative; min-width:0; align-self:stretch; }
.author-profile-card, .author-activity, .author-stats > div, .author-entry { background:var(--paper); border:1px solid var(--stroke); border-radius:13px; }
.author-profile-card { padding:16px; text-align:center; position:relative; background:linear-gradient(180deg,#e9f2ff 0,#f8fbff 82px,#fff 135px); box-shadow:0 8px 24px #1c385509; }
.author-identity { display:grid; justify-items:center; gap:9px; }
.author-portrait { display:block; width:96px; height:96px; margin:0; border:4px solid #fff; border-radius:50%; background:#d9e7fa; object-fit:cover; box-shadow:0 5px 17px #132d4c2b; }
.author-referral { min-height:34px; }
.author-bio { margin:16px 0 0; padding-top:13px; border-top:1px solid #e6edf5; color:#3a516a; font-size:.88rem; line-height:1.58; text-align:left; overflow-wrap:anywhere; }
.author-socials { display:flex; justify-content:center; flex-wrap:wrap; gap:5px 9px; list-style:none; padding:0; margin:10px 0 0; }
.author-socials .author-social-link {
    display:inline-grid; place-items:center; width:40px; height:40px;
    border:1px solid #0001; border-radius:10px;
    /* Keep brand colors when the shared theme restyles links. */
    background:var(--author-social-background) !important;
    color:#fff !important;
    box-shadow:0 2px 6px #182d451a; transition:box-shadow .18s ease, transform .18s ease;
}
.author-socials .author-social-link:hover { transform:translateY(-2px); box-shadow:0 5px 11px #182d4533; }
.author-social-link--facebook { --author-social-background:#0866ff; }
.author-social-link--x { --author-social-background:#15171a; }
.author-social-link--instagram { --author-social-background:linear-gradient(145deg,#5944d8 3%,#ba267e 55%,#ce4c29); }
.author-social-link--tiktok { --author-social-background:#202124; }
.author-social-link--tiktok svg { filter:drop-shadow(-1px -1px #25f4ee) drop-shadow(1px 1px #fe2c55); }
@media (prefers-reduced-motion:reduce) {
    .author-socials .author-social-link { transition:none; }
    .author-socials .author-social-link:hover { transform:none; }
}
.author-activity { padding:14px 16px; }
.author-activity ul { display:grid; gap:8px; padding:0; margin:0; list-style:none; }
.author-activity li > div { display:flex; justify-content:space-between; gap:8px; color:#405973; font-size:.84rem; overflow-wrap:anywhere; }
.author-activity meter { display:block; width:100%; height:8px; margin-top:3px; accent-color:#326ca9; }
.author-activity meter::-webkit-meter-bar { background:#e6edf8; border:0; border-radius:3px; }
.author-activity meter::-webkit-meter-optimum-value { background:#3472b4; border-radius:3px; }
.author-page .author-activity h2, .author-page .author-resources h2 { margin:0 0 9px; color:var(--ink); font-size:1.15rem; line-height:1.23; font-weight:750; }

.author-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 2px; }
.author-stats > div { display:flex; position:relative; flex-direction:column; justify-content:center; align-items:flex-start; padding:10px 12px 10px 52px; min-width:0; }
.author-stats dt { color:var(--muted); font-size:.78rem; line-height:1.2; font-weight:650; overflow-wrap:anywhere; }
.author-stats dd { margin:1px 0 0; color:#183b68; font-size:1.25rem; font-weight:760; line-height:1.1; }
.author-stat-icon { width:31px; height:31px; border-radius:8px; background:#e9f2ff; border:1px solid #d9e8fa; position:absolute; top:50%; left:10px; transform:translateY(-50%); color:#2864a3; }
.author-stat-icon::before { content:""; display:block; position:absolute; inset:7px 8px; border:1.5px solid currentColor; border-radius:2px; }
.author-stat-icon::after { content:""; position:absolute; inset:11px 11px auto; height:1.5px; background:currentColor; box-shadow:0 4px currentColor; }
.author-stat-icon--lesson { color:#23736d; background:#e7f5f2; border-color:#d2ebe5; }
.author-stat-icon--people { color:#855923; background:#ffefd9; border-color:#f5e3cb; }
.author-stat-icon--people::before { inset:6px 11px auto; height:8px; border-radius:50%; }
.author-stat-icon--people::after { inset:auto 7px 6px; height:7px; background:none; border:1.5px solid currentColor; border-bottom:0; border-radius:7px 7px 0 0; box-shadow:none; }
.author-resources { padding:0; scroll-margin-top:110px; }
.author-resources h2 { margin:0 0 9px; padding:1px 0 6px; border-bottom:1px solid var(--stroke); }
.author-entry-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.author-entry { display:flex; flex-direction:column; min-width:0; padding:12px; background:linear-gradient(170deg,#f6faff,#fff 60%); }
.author-entry h3 { margin:0; color:#152c46; font-size:.96rem; font-weight:730; line-height:1.25; overflow-wrap:anywhere; }
.author-entry-subject { align-self:flex-start; margin:0 0 6px; padding:3px 6px; color:#315a8e; background:#e8f2ff; border-radius:4px; font-size:.73rem; font-weight:650; overflow-wrap:anywhere; }
.author-meta, .author-muted { margin:4px 0 8px; color:var(--muted); font-size:.83rem; overflow-wrap:anywhere; }
.author-entry-action { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:5px; margin-top:auto; padding-top:7px; border-top:1px solid #e8eff7; color:#315072; font-size:.78rem; font-weight:700; }
.author-entry-action .author-button { min-height:32px; }
.author-course { background:linear-gradient(165deg,#f0f8f6,#fff 61%); }

.author-feedback { position:fixed; z-index:20020; right:14px; bottom:84px; max-width:min(370px,calc(100% - 28px)); padding:9px 12px; margin:0; border-radius:8px; background:#1b446d; color:white; }
.author-share-dialog { box-sizing:border-box; width:min(470px,calc(100% - 26px)); max-height:calc(100dvh - 34px); padding:17px; border:1px solid #d9e4f2; border-radius:16px; background:#fff; color:#1a304d; box-shadow:0 22px 90px #10274665; }
.author-share-dialog::backdrop { background:#11254177; }
.author-share-head { display:flex; justify-content:space-between; gap:8px; align-items:center; margin-bottom:9px; }
.author-share-head h2 { margin:0; font-size:1.24rem; }
.author-close { min-width:34px; min-height:34px; padding:0 7px; background:#edf3fa; border:0; border-radius:7px; color:#253d58; cursor:pointer; font-size:1.3rem; }
.author-share-preview { display:flex; gap:10px; align-items:center; margin:0 0 12px; padding:8px 10px; border:1px solid #dee8f4; background:#f4f8fd; border-radius:9px; }
.author-share-preview img { flex:none; width:43px; height:43px; object-fit:cover; border-radius:8px; }
.author-share-preview > div { min-width:0; overflow-wrap:anywhere; }
.author-share-preview span { display:block; color:#4d657f; font-size:.78rem; }
.author-share-preview small { color:#52677e; font-size:.73rem; }
.author-share-networks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:0 0 12px; padding:0; list-style:none; }
.author-share-networks :is(a,button) { display:flex; min-height:40px; width:100%; gap:7px; align-items:center; padding:5px 7px; border:1px solid #e0eaf5; border-radius:7px; background:#fff; color:#253e5c; font:inherit; font-size:.82rem; text-align:left; font-weight:650; cursor:pointer; }
.author-share-networks :is(a,button):hover { background:#edf5ff; }
.author-share-networks span { width:24px; height:24px; flex:none; display:grid; place-items:center; border-radius:6px; background:var(--network-ink); color:#fff; font-size:.74rem; font-weight:800; }
.author-share-link { display:flex; gap:5px; flex-wrap:wrap; }
.author-share-link input, .author-copy-field { color:#23435f; min-width:0; min-height:38px; flex:1 1 155px; border:1px solid #c9d9ea; border-radius:7px; padding:5px 7px; font-size:.78rem; }
.author-copy-field { width:100%; margin-top:5px; }
.author-share-help, .author-share-status { color:#49617c; font-size:.78rem; margin:8px 0 0; line-height:1.35; }
.author-share-status { color:#145b41; font-weight:650; }
@media(max-width:990px) { .author-entry-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:710px) {
    .author-page { width:calc(100% - 24px); margin-top:12px; }
    .author-page > .author-heading { margin-bottom:9px; padding-bottom:7px; gap:7px; }
    .author-actions .author-button { min-height:32px; padding:5px 8px; font-size:.79rem; }
    .author-content { grid-template-columns:minmax(0,1fr); gap:11px; }
    .author-page .author-sidebar,.author-main { display:contents; }
    .author-profile-card { grid-row:1; padding:10px 11px; background:linear-gradient(125deg,#e9f3ff 0,#fff 55%); }
    .author-identity { gap:6px; }
    .author-portrait { width:62px; height:62px; }
    .author-socials { justify-content:flex-start; }
    .author-bio { margin-top:8px; padding-top:6px; line-height:1.45; }
    .author-stats { grid-row:2; gap:5px; }
    .author-stats > div { padding:7px 6px; gap:5px; }
    .author-stat-icon { display:none; }
    .author-page .author-sidebar > .author-activity { grid-row:5; }
    .author-entry-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
    .author-entry { padding:8px; }
    .author-entry-action .author-button { padding-inline:7px; }
}
