/* Additive Smartyfy polish. Load after existing theme and lesson styles. */
:root{--smartyfy-paper:#fbf9f4;--smartyfy-surface:#fffefa;--smartyfy-ink:#213d35;--smartyfy-muted:#52645b;--smartyfy-line:#dce2d9;--smartyfy-green:#155b46}
body{background:var(--smartyfy-paper)}
.slc-header{background:#fffefa!important;border-bottom:1px solid var(--smartyfy-line)!important;backdrop-filter:none}
.slc-header .slc-nav{gap:24px;min-height:80px}
.slc-header .slc-menu{list-style:none;padding-left:0;gap:22px;flex-wrap:wrap}
.slc-header .slc-menu a{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.slc-header .slc-logo{background:var(--smartyfy-green)!important;box-shadow:none!important;border-radius:10px}
.slc-header .slc-btn-primary{background:var(--smartyfy-green)!important;box-shadow:none!important}
.slc-header .slc-brand{color:var(--smartyfy-ink);min-width:0}
.slc-header .slc-brand>span:last-child{overflow-wrap:anywhere;white-space:normal}
.slc-header :is(a,button):focus-visible,.smartyfy-lesson-toolbar button:focus-visible{outline:3px solid #65508d!important;outline-offset:4px}
.slc-mobile-toggle{width:46px;min-height:46px;flex-shrink:0;cursor:pointer;color:var(--smartyfy-green)!important;background:#fffefa!important;border:1px solid var(--smartyfy-line)!important;border-radius:10px!important}
.smartyfy-skip-link{position:fixed;top:10px;left:14px;z-index:99999;padding:12px 18px;background:#155b46;color:#fff;transform:translateY(-160%);border-radius:8px;font-weight:700}
.smartyfy-skip-link:focus{transform:translateY(0);outline:3px solid #65508d;outline-offset:3px}
.slc-courses{gap:24px!important;grid-template-columns:repeat(3,minmax(0,1fr))}
.slc-course{border:1px solid var(--smartyfy-line)!important;border-radius:18px!important;box-shadow:0 4px 18px #213d3507!important;display:flex;flex-direction:column;min-width:0}
.slc-course-body{padding:24px!important;flex:1;display:flex;flex-direction:column;align-items:stretch}
.slc-course h3{font-size:23px!important;line-height:1.3!important;letter-spacing:-.025em!important;margin:12px 0!important;overflow-wrap:anywhere}
.slc-course p,.slc-course .slc-meta{color:var(--smartyfy-muted);line-height:1.6}
.slc-course .slc-price{margin-top:auto;padding-top:18px!important;gap:12px;flex-wrap:wrap}
.slc-course .slc-btn{min-height:46px;line-height:1.4;text-align:center}
body #smfy-v3 .sm-course-grid{gap:24px}
body #smfy-v3 .sm-card{border-radius:16px;min-width:0}
body #smfy-v3 .sm-card h3{line-height:1.14}
body #smfy-v3 .sm-card a{min-height:44px;display:inline-flex;align-items:center}
body:has(.sc-layout) main.slc-section{background:var(--smartyfy-paper)!important;padding-top:28px!important}
body:has(.sc-layout) main.slc-section>div>article{background:transparent!important;padding:0!important;border:0!important;box-shadow:none!important}
body .sf-polished .sc-topbar,.sc-topbar{background:#edf3ed!important;color:var(--smartyfy-ink)!important;border:1px solid var(--smartyfy-line);border-radius:14px!important;box-shadow:none!important;padding:20px 24px!important;gap:16px}
.sc-topbar a{color:var(--smartyfy-green)!important}
.smartyfy-lesson-toolbar{display:flex;align-items:center;gap:14px;margin:20px 0 18px;color:var(--smartyfy-muted);font-size:14px}
.smartyfy-lesson-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 16px;border:1px solid #b9c8bc;border-radius:10px;background:var(--smartyfy-surface);color:var(--smartyfy-green);font:inherit;font-weight:750;cursor:pointer;flex-shrink:0}
.smartyfy-lesson-toggle .smartyfy-hamburger{font-size:21px;line-height:1}
.smartyfy-lesson-toolbar p{margin:0}
.sc-layout.smartyfy-sidebar-ready{display:grid!important;grid-template-columns:268px minmax(0,1fr)!important;gap:28px!important;align-items:start}
.sc-layout.smartyfy-sidebar-closed{grid-template-columns:minmax(0,1fr)!important}
.sc-layout.smartyfy-sidebar-ready>.sc-sidebar[hidden]{display:none!important}
.sc-layout.smartyfy-sidebar-ready>.sc-sidebar{min-width:0;width:auto!important;background:#fffefa!important;border:1px solid var(--smartyfy-line)!important;border-radius:14px!important;padding:20px!important;top:100px}
.sc-sidebar details>summary{color:var(--smartyfy-green);font-size:16px;min-height:44px;cursor:pointer}
.sc-sidebar :is(input[type=search],input[type=text]){width:100%;min-height:46px;border:1px solid #becabf;border-radius:8px;padding:10px 12px;font:inherit;font-size:14px}
.sc-sidebar .sc-lesson-list{max-height:calc(100dvh - 365px);min-height:180px;overscroll-behavior:contain}
.sc-sidebar .sc-lesson-list a{font-size:14px!important;line-height:1.5!important;min-height:44px;padding:12px!important;border-radius:6px}
.sc-sidebar a[aria-current=page]{background:#e7f1e9!important;border-left:3px solid var(--smartyfy-green)!important;color:#124b3a!important;font-weight:750}
.sc-main{min-width:0;width:100%!important}
body .sf-polished .sc-main>header,.sc-main>header{background:#edf5ee!important;border:1px solid #d3e2d5!important;border-radius:16px!important;padding:32px!important;color:var(--smartyfy-ink)!important}
body .sf-polished .sc-main>header h1{font-size:clamp(28px,3.2vw,42px)!important;line-height:1.18!important;letter-spacing:-.035em!important;max-width:26ch}
body .sf-polished .sc-main>.sc-reading,.sc-main>.sc-reading{background-image:none!important}
body .sf-polished .sc-reading section,body .sf-polished .sc-card{background:#fffefa!important;border:1px solid var(--smartyfy-line)!important;border-radius:14px!important;box-shadow:none!important;padding:28px!important;margin:22px 0!important}
body .sf-polished .sc-reading :is(p,li){max-width:76ch;color:#30463c}
body .sf-polished .sc-reading section h2{color:var(--smartyfy-ink)}
body .sf-polished .sc-small{color:var(--smartyfy-muted)!important}
body .sf-polished .sc-toc{background:#fffefa!important;border:1px solid var(--smartyfy-line);border-radius:12px;padding:18px 22px}
body .sf-polished .sc-reading pre{max-width:100%;overflow-x:auto!important}
body .sf-polished :is(button,a,input,summary):focus-visible{outline:3px solid #65508d!important;outline-offset:4px!important}
.smartyfy-local-course-heading{color:var(--smartyfy-ink);font-size:clamp(32px,4vw,48px);letter-spacing:-.04em;line-height:1.15;margin:0 auto 28px;width:calc(100% - 40px)}
body.post-type-archive-slc_course main.slc-section>.slc-wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
body.post-type-archive-slc_course main.slc-section>.slc-wrap>article{min-width:0;padding:26px!important;margin:0!important;border:1px solid var(--smartyfy-line)!important;border-radius:16px!important;background:#fffefa!important}
body.post-type-archive-slc_course main.slc-section>.slc-wrap>article h2{font-size:25px;line-height:1.25;letter-spacing:-.03em;margin:0 0 14px;overflow-wrap:anywhere}
body.post-type-archive-slc_course main.slc-section>.slc-wrap>article p{font-size:15px;color:var(--smartyfy-muted)}
body.post-type-archive-slc_course main.slc-section>.slc-wrap>article a:focus-visible{outline:3px solid #65508d;outline-offset:4px}
@media(max-width:980px){body.post-type-archive-slc_course main.slc-section>.slc-wrap{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.post-type-archive-slc_course main.slc-section>.slc-wrap{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1100px){.slc-header .slc-nav{gap:14px}.slc-header .slc-brand{font-size:17px}.slc-header .slc-menu{gap:14px}}
@media(max-width:980px){
 .slc-header .slc-nav{position:relative;flex-wrap:wrap;gap:0;min-height:72px;padding-block:12px}
 .slc-header .slc-brand{max-width:calc(100% - 65px);font-size:18px;gap:10px}
 .slc-header .slc-mobile-toggle{display:block!important;margin-left:auto}
 .slc-header .slc-menu,.slc-header .slc-actions{display:none!important}
 .slc-header.smartyfy-navigation-open .slc-menu{display:flex!important;position:static!important;inset:auto!important;flex-direction:column!important;align-items:stretch!important;flex-basis:100%;width:100%;gap:0!important;margin:14px 0 0!important;padding:8px!important;background:#fffefa!important;border:1px solid var(--smartyfy-line)!important;border-radius:10px!important;box-shadow:none!important}
 .slc-header.smartyfy-navigation-open .slc-menu a{display:flex;min-height:46px;padding:9px 12px}
 .slc-header.smartyfy-navigation-open .slc-actions{display:flex!important;flex-basis:100%;margin-top:12px;gap:10px}
 .slc-header.smartyfy-navigation-open .slc-actions>*{flex:1}
 .slc-courses{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:981px){.slc-header .slc-menu{display:flex!important;position:static!important;flex-direction:row!important;margin-block:0!important;padding:0!important;box-shadow:none!important;background:transparent!important}.slc-header .slc-actions{display:flex!important}}
@media(max-width:900px){
 .sc-layout.smartyfy-sidebar-ready{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .sc-layout.smartyfy-sidebar-ready>.sc-sidebar{position:static!important;max-width:100%!important}
 .sc-sidebar .sc-lesson-list{min-height:0;max-height:320px}
 .smartyfy-lesson-toolbar p{font-size:13px}
}
@media(max-width:600px){
 .slc-header .slc-wrap{width:calc(100% - 32px)}
 .slc-header .slc-brand{font-size:15px;max-width:calc(100% - 60px)}
 .slc-header .slc-logo{height:36px;width:36px;flex-shrink:0}
 .slc-courses{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 .slc-course-body{padding:22px!important}
 .slc-course-cover{height:160px}
 body #smfy-v3 .sm-course-grid{gap:20px}
 .smartyfy-lesson-toolbar{align-items:flex-start;gap:10px;margin-top:16px}
 .smartyfy-lesson-toolbar p{padding-top:3px;max-width:22ch}
 .smartyfy-lesson-toggle{padding-inline:12px}
 body .sf-polished .sc-topbar,.sc-topbar{padding:18px!important;flex-wrap:wrap;border-radius:12px!important}
 body .sf-polished .sc-main>header,.sc-main>header{padding:22px!important}
 body .sf-polished .sc-main>header h1{font-size:30px!important}
 body .sf-polished .sc-reading section,body .sf-polished .sc-card{padding:20px!important;margin:18px 0!important}
 body:has(.sc-layout) main.slc-section{padding-top:18px!important}
 body:has(.sc-layout) main.slc-section>.slc-wrap{width:calc(100% - 24px)}
 body .sf-polished .sc-reading h2{font-size:24px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.slc-course,.smartyfy-skip-link{transition:none!important}}
/* Requested catalogue rhythm: three desktop cards, two mobile cards. */
body #smfy-v3 .sm-course-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important}
body #smfy-v3 .sm-course-grid>.sm-card{grid-column:auto!important;display:flex!important;flex-direction:column!important;min-height:0!important}
body #smfy-v3 .sm-course-grid>.sm-card[hidden]{display:none!important}
body #smfy-v3 .sm-course-grid>.sm-card::after{display:none!important}
body #smfy-v3 .sm-course-grid>.sm-card>img{position:static!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:16/10;object-fit:cover!important;object-position:center!important;grid-column:auto!important;grid-row:auto!important}
body #smfy-v3 .sm-course-grid>.sm-card .sm-card-body{width:100%!important;max-width:none!important;padding:20px!important;grid-column:auto!important;grid-row:auto!important;flex:1}
body #smfy-v3 .sm-course-grid>.sm-card h3{font-size:28px!important;line-height:1.17!important;margin:12px 0!important;overflow-wrap:anywhere;max-width:none!important}
body #smfy-v3 .sm-course-grid>.sm-card p{font-size:14px!important;max-width:none!important;margin-bottom:20px!important}
body #smfy-v3 .sm-course-grid>.sm-card .sm-card-link{width:100%;max-width:none!important;margin-top:auto!important;min-height:46px!important;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:900px){
 body #smfy-v3 .sm-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
 body #smfy-v3 .sm-course-grid>.sm-card h3{font-size:24px!important}
}
@media(max-width:480px){
 body #smfy-v3 .sm-catalog.sm-wrap{width:calc(100% - 24px)!important}
 body #smfy-v3 .sm-course-grid{gap:12px!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-card-body{padding:12px!important}
 body #smfy-v3 .sm-course-grid>.sm-card h3{font-size:20px!important;letter-spacing:-.035em!important;line-height:1.2!important;margin:10px 0!important}
 body #smfy-v3 .sm-course-grid>.sm-card p{font-size:12px!important;line-height:1.5!important;margin-bottom:14px!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-tag{font-size:10px!important;line-height:1.4!important;white-space:normal!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-card-link{font-size:11px!important;gap:5px!important;min-height:44px!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-card-link span{font-size:17px!important}
}
/* Compact phone course tiles: natural height keeps titles readable at text zoom. */
body #smfy-v3 .smartyfy-card-meta-compact{display:none}
@media(max-width:600px){
 body #smfy-v3 .sm-course-grid>.sm-card{position:relative!important;border-radius:14px!important}
 body #smfy-v3 .sm-course-grid>.sm-card>img{position:absolute!important;inset:12px 12px auto auto!important;width:44px!important;height:44px!important;aspect-ratio:1!important;object-fit:cover!important;border-radius:10px!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-card-body{padding:12px!important;gap:0!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-tag{display:flex!important;align-items:center;min-height:44px;max-width:calc(100% - 54px);padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;font-size:11px!important;line-height:1.35!important;white-space:normal!important}
 body #smfy-v3 .sm-course-grid>.sm-card .smartyfy-card-meta-full{display:none}
 body #smfy-v3 .sm-course-grid>.sm-card .smartyfy-card-meta-compact{display:inline}
 body #smfy-v3 .sm-course-grid>.sm-card h3{font-size:17px!important;line-height:1.2!important;letter-spacing:-.025em!important;margin:8px 0 2px!important}
 body #smfy-v3 .sm-course-grid>.sm-card p{display:none!important}
 body #smfy-v3 .sm-course-grid>.sm-card .sm-card-link{font-size:12px!important;line-height:1.4!important;gap:5px!important;min-height:44px!important;padding-block:6px!important}
}

