/* Public profiles are independent of catalog/checkout cards. */
html body .kacc-public-profile{max-width:1120px;width:calc(100% - 48px);margin:40px auto 88px;color:var(--ka-text);font-family:inherit}
html body .kacc-profile-hero{overflow:hidden;border:1px solid var(--ka-line);border-radius:24px;background:var(--ka-panel);margin:0 0 40px}
html body .kacc-profile-cover{height:150px;background:linear-gradient(110deg,#183b54,#172133 60%,#704622);overflow:hidden}
html body .kacc-profile-cover img{width:100%;height:100%;object-fit:cover;object-position:center 45%;opacity:.72}
html body .kacc-profile-identity{display:flex;align-items:center;gap:24px;padding:28px 32px}
html body img.kacc-profile-avatar{width:112px;height:112px;flex:0 0 112px;object-fit:cover;border-radius:24px;border:3px solid var(--ka-panel-soft);margin:0}
html body .kacc-profile-name{min-width:0}
html body .kacc-profile-role{font:600 11px/1.5 Arial,sans-serif;letter-spacing:.08em;color:var(--ka-muted);text-transform:uppercase}
html body .kacc-profile-name h1{font-size:clamp(26px,3vw,38px);line-height:1.2;letter-spacing:-.035em;margin:8px 0 16px!important;color:var(--ka-text);overflow-wrap:anywhere}
html body .kacc-profile-stats{display:flex;flex-wrap:wrap;gap:12px 24px;color:var(--ka-muted);font:500 14px/1.5 Arial,sans-serif}
html body .kacc-profile-stats>span{display:flex;align-items:center;gap:8px}
html body .kacc-profile-socials{display:flex;flex-wrap:wrap;gap:10px;padding:0 32px 28px}
html body .kacc-profile-socials a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border-radius:10px;background:var(--ka-panel-soft);color:var(--ka-text);font-size:13px;text-decoration:none}
html body .kacc-profile-socials svg{width:15px;height:15px}
html body .kacc-profile-bio{display:grid;grid-template-columns:220px 1fr;gap:32px;margin:0 0 44px;line-height:1.8;color:var(--ka-muted)}
html body .kacc-profile-bio p:first-child{margin-top:0}
html body .kacc-public-profile h2{font-size:24px;line-height:1.3;margin:0!important;letter-spacing:-.025em;color:var(--ka-text)}
html body .kacc-profile-section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 24px}
html body .kacc-profile-section-heading h2{margin-top:8px!important}
html body .kacc-profile-section-heading>a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--ka-text);font-size:14px;text-decoration:none;min-height:44px}
html body .kacc-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
html body .kacc-profile-course{min-width:0;display:flex;flex-direction:column;border:1px solid var(--ka-line);border-radius:20px;background:var(--ka-panel);overflow:hidden}
html body .kacc-profile-course-image{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--ka-panel-soft)}
html body .kacc-profile-course-image img{display:block;width:100%;height:100%;object-fit:cover;margin:0;transition:transform .25s}
@media(hover:hover){html body .kacc-profile-course-image:hover img{transform:scale(1.025)}}
html body .kacc-profile-course-content{padding:24px;display:flex;flex-direction:column;flex:1;gap:14px}
html body .kacc-profile-course-labels{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html body .kacc-profile-course-labels .kacc-owned-badge{margin:0!important}
html body .kacc-profile-course h3{font-size:22px;line-height:1.35;letter-spacing:-.025em;margin:0!important}
html body .kacc-profile-course h3 a{color:var(--ka-text);text-decoration:none}
html body .kacc-profile-course-content>p{font:400 15px/1.75 Arial,sans-serif;color:var(--ka-muted);margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
html body .kacc-profile-course .kacc-facts{margin-top:auto!important;padding-top:6px}
html body .kacc-profile-details{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;min-height:48px;border-radius:11px;color:var(--ka-text)!important;background:var(--ka-panel-soft);text-decoration:none!important;font:600 14px/1.4 Arial,sans-serif;border:1px solid var(--ka-line)}
html body .kacc-profile-details:hover{border-color:var(--ka-accent);background:var(--ka-panel)}
html body .kacc-public-profile a:focus-visible{outline:2px solid var(--ka-accent);outline-offset:3px}
@media(max-width:700px){html body .kacc-public-profile{width:calc(100% - 32px);margin:24px auto 56px}html body .kacc-profile-cover{height:100px}html body .kacc-profile-identity{padding:20px;gap:16px;align-items:flex-start}html body img.kacc-profile-avatar{width:76px;height:76px;flex-basis:76px;border-radius:20px}html body .kacc-profile-name h1{font-size:25px;margin:6px 0 12px!important}html body .kacc-profile-role{font-size:10px}html body .kacc-profile-stats{font-size:12px;gap:8px 16px}html body .kacc-profile-socials{padding:0 20px 20px}html body .kacc-profile-bio{grid-template-columns:1fr;gap:16px;margin-bottom:32px}html body .kacc-profile-grid{grid-template-columns:1fr;gap:20px}html body .kacc-profile-section-heading{align-items:start}html body .kacc-public-profile h2{font-size:21px}html body .kacc-profile-section-heading>a{font-size:12px}html body .kacc-profile-course-content{padding:20px}html body .kacc-profile-course h3{font-size:21px}html body .kacc-profile-hero{margin-bottom:32px}}
/* Semantic actions: purchase orange, learning blue, completion green, restart violet. */
html:root body :is([data-kacc-action="learn"],.kacc-owned-action),html:root body .tutor-course-card.kacc-owned .tutor-card-footer :is(a.tutor-btn,.kacc-owned-action):not([data-kacc-action="restart"]),html:root body .tutor-sidebar-card.kacc-owned a.tutor-btn:not([data-kacc-action="restart"]){background:#235eaa!important;color:#fff!important;border-color:#235eaa!important;text-decoration:none!important}
html:root body :is([data-kacc-action="complete"],.kacc-complete-course,.tutor-mark-as-complete-button:not(.completed)){background:#176f4b!important;color:#fff!important;border-color:#176f4b!important}
html:root body :is(.tutor-mark-as-complete-button.completed,[data-kacc-action="complete"]):disabled{background:#e0f3e9!important;color:#17633e!important;border-color:#a5d6bd!important;opacity:1!important}
html:root body :is([data-kacc-action="restart"],.tutor-course-retake-button){background:#6546a6!important;color:#fff!important;border-color:#6546a6!important}
html:root body :is([data-kacc-action],.kacc-owned-action,.kacc-complete-course):hover{filter:brightness(.93);text-decoration:none!important}
html:root body :is([data-kacc-action],.kacc-owned-action,.kacc-complete-course):focus-visible{outline:2px solid var(--ka-text);outline-offset:3px}
html:root body [data-kacc-action="complete"]:disabled{cursor:not-allowed;filter:none}
@media(prefers-reduced-motion:reduce){html body .kacc-profile-course-image img{transition:none}}

html:root body .ka-course-action:is([data-ka-native-course-state="start"],[data-ka-native-course-state="progress"]) .tutor-btn{background:#235eaa!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#235eaa!important}
html:root body .ka-course-action[data-ka-native-course-state="completed"] .tutor-btn{background:#176f4b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#176f4b!important}
html:root body .tutor-course-card.kacc-owned .tutor-card-footer [data-kacc-action="restart"],html:root body .tutor-sidebar-card.kacc-owned [data-kacc-action="restart"]{background:#6546a6!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#6546a6!important}
html:root body .tutor-learning-page button[\@click*="tutor-course-complete-modal"],html:root body .tutor-learning-page button[\@click*="handleCourseComplete"]{background:#176f4b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#176f4b!important}
html:root body .tutor-learning-page button[\@click*="tutor-course-retake-modal"]{background:#6546a6!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#6546a6!important}
html:root body .tutor-learning-page :is(button[\@click*="tutor-course-complete-modal"],button[\@click*="handleCourseComplete"]):disabled{background:var(--ka-panel-soft)!important;color:var(--ka-muted)!important;-webkit-text-fill-color:var(--ka-muted)!important;opacity:1!important;cursor:not-allowed}
/* The legacy primary-button rule includes an ID in :is(). Override its tokens,
   not its specificity, so theme and hover keep the same semantic state. */
html body [data-kacc-action="learn"],html body .ka-course-action:is([data-ka-native-course-state="start"],[data-ka-native-course-state="progress"]),html body .kacc-owned-action{--ka-action:#235eaa;--ka-action-hover:#1b4c8b;--ka-action-text:#fff}
html body [data-kacc-action="complete"],html body .ka-course-action[data-ka-native-course-state="completed"],html body .kacc-complete-course{--ka-action:#176f4b;--ka-action-hover:#10583a;--ka-action-text:#fff}
html body [data-kacc-action="restart"],html body .tutor-course-retake-button{--ka-action:#6546a6;--ka-action-hover:#52358e;--ka-action-text:#fff}
html:root body .tutor-mark-as-complete-button.completed:disabled{background:#176f4b!important;color:#fff!important;border-color:#176f4b!important}
html:root body .tutor-mark-as-complete-button.completed :is(span,svg){color:inherit!important;-webkit-text-fill-color:inherit!important}
