
.af-course{background:linear-gradient(135deg,#fffdf6,#fff)!important;border:1px solid #dfd4b0}

/* Wider workspace and isolated, compact contact layout. */
.af-platform .af-platform-layout{width:calc(100% - 40px)!important;max-width:1760px!important;display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:28px!important;margin-inline:auto!important}
.af-platform-sidebar{width:auto!important;min-width:0;padding:20px 14px!important;align-self:start}
.af-platform-main{min-width:0!important;width:100%}
.af-platform-sidebar>img{max-width:150px!important}
.af-platform-section{padding:24px!important}
.af-folder-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:18px;margin-bottom:24px}
.af-folder-card{display:grid;gap:12px;border:1px solid #ded5bd;background:#fffdf5;border-radius:16px;padding:24px;color:#181818!important;text-decoration:none;min-height:156px}
.af-folder-card>span{font-size:12px;color:#7b6325}.af-folder-card strong{font-size:20px}.af-folder-card:hover{border-color:#a3822d;background:#f5eed9}
.af-page .af-profile-hero{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;align-items:start!important;gap:32px!important}
.af-page .af-profile-photo{width:220px!important;max-width:100%;height:220px!important}
.af-page .af-profile-hero>div{min-width:0}
.af-page .af-profile-hero h1{font-size:clamp(26px,3vw,38px)!important;line-height:1.18}
.af-directory-card .af-partner-card__photo{width:80px!important;height:80px!important}
.af-directory-card .af-partner-contacts .af-contact-cell>span,.af-profile-hero .af-contact-cell>span{position:static!important;inset:auto!important;transform:none!important;display:block!important;width:auto!important;height:auto!important}
.af-directory-card .af-partner-contacts{grid-template-columns:1fr;gap:12px}
.af-partner-contacts .af-contact-cell{position:relative;min-width:0;overflow-wrap:anywhere}
.af-service-links img{width:100%;height:105px;object-fit:cover;border-radius:9px}
.af-property-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center}
.af-property-hero img{width:100%;max-height:420px;object-fit:contain;border-radius:24px}
.af-property-hero h1{font-size:clamp(32px,4vw,54px);line-height:1.1}
@media(max-width:900px){.af-platform .af-platform-layout{grid-template-columns:180px minmax(0,1fr)!important;gap:16px!important}.af-property-hero{grid-template-columns:1fr}.af-page .af-profile-hero{grid-template-columns:160px minmax(0,1fr)!important}.af-page .af-profile-photo{width:160px!important;height:160px!important}}
@media(max-width:640px){.af-platform .af-platform-layout{width:calc(100% - 24px)!important;grid-template-columns:1fr!important}.af-platform-sidebar{position:static!important;display:flex!important;flex-wrap:wrap;gap:6px;padding:10px!important}.af-platform-sidebar>img{display:none}.af-platform-sidebar a{margin:0!important;padding:10px!important;font-size:13px}.af-platform-section{padding:18px!important}.af-page .af-profile-hero{grid-template-columns:1fr!important;gap:20px!important}.af-page .af-profile-photo{width:144px!important;height:144px!important}.af-profile-hero .af-partner-contacts{grid-template-columns:1fr}.af-service-links{grid-template-columns:1fr}.af-property-hero img{max-height:260px}}

.af-partner-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:20px 0;overflow-wrap:anywhere;width:100%}.af-contact-address{grid-column:1/-1}.af-contact-cell{min-width:0;display:grid;align-content:start;gap:6px}.af-contact-cell>span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7}.af-contact-cell>a,.af-contact-cell>address{margin:0;line-height:1.5}.af-directory-card{grid-template-columns:88px minmax(0,1fr)!important}.af-directory-card .af-partner-card__body{width:100%}@media(max-width:480px){.af-directory-card{grid-template-columns:1fr!important}.af-partner-contacts{gap:14px}.af-contact-cell>a{font-size:13px}}.af-partner-contacts address{font-style:normal;line-height:1.5}.af-directory-card{align-items:start!important}.af-directory-card a{color:inherit}.af-directory-card .af-inline-actions{gap:8px}.af-directory-card .af-btn{font-size:12px!important;white-space:normal}.af-directory-card .af-btn--gold{color:#151515!important}.af-profile-link{display:inline-block;margin-top:16px;font-weight:700;color:#ddc46b!important}.af-directory-card .af-partner-card__photo{margin-top:6px}
.af-resource-dialog{width:min(1100px,94vw);max-height:94dvh;border:0;border-radius:20px;padding:24px;color:#161616;background:#fff}.af-resource-dialog::backdrop{background:#0009}.af-viewer-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center}.af-viewer-content iframe{width:100%;height:65dvh;border:0}.af-viewer-content video,.af-viewer-content img{display:block;width:100%;max-height:65dvh;object-fit:contain}.af-viewer-content audio{width:100%}.af-material-admin{padding:0 14px 14px}.af-archive-row{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #ddd}.af-course>button[hidden]{display:none!important}@media(max-width:600px){.af-viewer-toolbar{align-items:stretch;flex-direction:column}.af-resource-dialog{padding:16px}}
.af-service-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.af-service-links>a{display:grid;gap:8px;padding:16px;border:1px solid #ddd3b6;border-radius:14px;color:inherit}.af-service-links span{font-size:13px;line-height:1.5}.af-partner-services{margin:24px 0}.af-partner-services h2{font-size:24px}.af-product-explainer{margin:16px 0}.af-product-explainer summary{cursor:pointer;min-height:44px;font-weight:700}.af-product-explainer small{display:block;color:#666}@media(max-width:700px){.af-service-links{grid-template-columns:1fr}}
.af-course h2{max-width:24ch;letter-spacing:-.025em;font-size:clamp(25px,3vw,36px)}
.af-course-module{border:1px solid #e5dfcb;border-radius:16px;margin:14px 0;background:#fff;overflow:hidden}
.af-course-module>summary{background:#f4f0e4;padding:20px;font-weight:700;font-size:18px;cursor:pointer;list-style-position:inside}
.af-course summary span{display:block;padding-left:22px;font-weight:400;font-size:12px;line-height:1.8;color:#625b49}
.af-course-lesson{margin:0 18px;border-bottom:1px solid #ece8df}
.af-course-lesson:last-child{border-bottom:0}
.af-course-lesson>summary{padding:17px 0;cursor:pointer;font-size:15px;font-weight:600}
.af-course-lesson .af-resource-grid{padding:4px 0 20px}
.af-course-empty{color:#6e6859;font-size:14px;padding:10px 0}
.af-course-manage{border-top:1px solid #dfd4b0;margin-top:28px;padding-top:20px}
.af-course-manage>summary,.af-password-panel>summary{cursor:pointer;min-height:44px;font-weight:700}
.af-password-panel{margin-top:12px;min-width:200px;max-width:360px;white-space:normal}
.af-password-panel .af-form{padding:16px;background:#faf7ed;border:1px solid #ded4b4;border-radius:12px}
.af-password-panel input{width:100%;min-width:0;font-size:16px}
.af-course video{height:auto!important;max-height:440px;aspect-ratio:16/9;object-fit:contain!important}
@media(max-width:600px){.af-course-module>summary{padding:16px;font-size:16px}.af-course-lesson{margin:0 12px}.af-course{padding:18px!important}}
