.editorial-content-blocks{display:grid;gap:30px;min-width:0}.editorial-content-text{min-width:0}.editorial-content-text>h2{margin-top:0}.editorial-content-text .rich-prose,.editorial-content-text{font-family:var(--font-body);font-size:16px;line-height:1.5}.editorial-content-text p:last-child{margin-bottom:0}
/* Text blocks can contain managed inline images without loading rich-text.css.
   Cap their intrinsic width; small download buttons keep their natural size. */
.editorial-content-text img{max-width:100%;height:auto;display:block;margin:1em 0}
.editorial-content-image,.editorial-content-video{margin:0;min-width:0}.editorial-image-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:24px;overflow:hidden}.editorial-image-open img{display:block;width:100%;height:auto;max-height:none}.editorial-content-image figcaption,.editorial-content-video figcaption{font:400 14px/1.5 var(--font-body);color:var(--muted);margin-top:10px}.editorial-content-video iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:24px;background:#f3f3f3}
/* Figma 262:9749: viewport overlay, native 40/24/20px SVG controls. */
.editorial-image-dialog{inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:90px 25px;border:0;border-radius:0;background:transparent;color:#fff;overflow:auto}
.editorial-image-dialog[open]{display:grid;place-items:center}
html:has(.editorial-image-dialog[open]){overflow:hidden}
.editorial-image-dialog::backdrop{background:rgb(45 45 47 / .9)}
.editorial-gallery-stage{position:relative;max-width:min(1170px,100%);min-width:0}
.editorial-gallery-stage>[data-gallery-preview]{display:block;width:auto;height:auto;max-width:100%;max-height:min(660px,calc(100dvh - 220px));margin:auto;object-fit:contain}
.editorial-gallery-toolbar{position:absolute;inset:25px 25px auto;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.editorial-gallery-toolbar>[data-gallery-counter]{padding-top:4px;font:700 16px/1.2 var(--font-heading);letter-spacing:-.32px}
.editorial-gallery-toolbar button{display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:8px;background:#fff;color:#2d2d2f;cursor:pointer}
.editorial-gallery-footer{position:absolute;top:100%;left:0;width:100%;padding-top:20px;display:flex;flex-direction:column;align-items:center;gap:12px}
.editorial-gallery-footer>[data-gallery-caption]{max-width:100%;max-height:min(60px,10dvh);overflow:auto;margin:0;text-align:center;font:400 14px/1.5 var(--font-body);overflow-wrap:anywhere}
.editorial-gallery-footer>[data-gallery-caption]:empty{display:none}
.editorial-gallery-controls{display:flex;justify-content:center;gap:20px}
.editorial-gallery-controls button{display:grid;place-items:center;width:40px;height:40px;min-height:0;min-width:0;padding:0;border:0;background:transparent;cursor:pointer}
.editorial-gallery-arrow{display:block;position:relative;width:40px;height:40px}
.editorial-gallery-arrow>img{display:block;max-width:none}
.editorial-gallery-arrow-icon{position:absolute;left:8px;top:8px}
.editorial-gallery-controls [data-gallery-prev] .editorial-gallery-arrow{transform:rotate(180deg)}
.editorial-gallery-controls button:disabled,.editorial-work-gallery-controls button:disabled{opacity:.35;filter:grayscale(1);cursor:default}
.editorial-image-dialog button:focus-visible{outline:3px solid #fff;outline-offset:5px}
.editorial-gallery-toolbar button:focus-visible{outline-color:#ffef68}
/* Mobile Figma 262:10875 uses the full viewport width for the image. */
@media(max-width:600px){.editorial-image-dialog{padding-inline:0}.editorial-gallery-toolbar{inset:15px 15px auto}.editorial-gallery-toolbar>[data-gallery-counter]{padding-top:14px}.editorial-gallery-footer>[data-gallery-caption]{padding-inline:15px}}
.editorial-course-promo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:40px;padding:50px;background:linear-gradient(#fff,#fff498);border-radius:24px;align-items:center;position:relative;overflow:hidden}.editorial-promo-copy,.editorial-promo-card{position:relative;min-width:0}.editorial-promo-copy h2{font:700 32px/1.22 var(--font-heading);letter-spacing:-1.28px;margin:0 0 20px}.editorial-promo-copy p{font:400 16px/1.5 var(--font-body);margin:0 0 28px}.editorial-promo-copy>.button{min-width:180px;background:#2d2d2f;color:#ffef68;border:0;justify-content:center}
.editorial-course-promo-compact{display:block;padding:10px 10px 20px;background:var(--promo-category,#e1efff);border-radius:20px}.editorial-course-promo-compact .editorial-promo-cover{display:block;width:100%;height:128px;object-fit:cover;border-radius:12px}.editorial-course-promo-compact .editorial-promo-copy{padding:20px 10px 0}.editorial-course-promo-compact h2{font-size:20px;line-height:1.25;letter-spacing:-.4px;margin-bottom:12px}.editorial-course-promo-compact p{font-size:14px;margin-bottom:20px}.editorial-course-promo-compact .button{display:flex;min-width:0;width:100%;background:#ffef68;color:#2d2d2f}
.editorial-story{position:relative}.story-sidebar{position:absolute;top:120px;right:0;width:270px}.story-mobile-promo{display:none}
.editorial-share-story{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:30px;margin-top:40px;background:#ffef68;border-radius:24px}.editorial-share-story h2{font:700 32px/1.2 var(--font-heading);letter-spacing:-1.28px;margin:0 0 12px}.editorial-share-story p{font:400 16px/1.4 var(--font-body);margin:0}.editorial-share-story .button{background:#2d2d2f;color:#ffef68;border:0;flex-shrink:0}
@media(max-width:1250px){.editorial-story-has-promo>.story-author,.editorial-story-has-promo>.story-content{max-width:calc(100% - 300px)}.editorial-course-promo:not(.editorial-course-promo-compact){padding:30px;gap:25px;grid-template-columns:minmax(0,1fr) minmax(0,300px)}}
@media(max-width:1000px){.story-sidebar{display:none}.story-mobile-promo{display:block;margin-bottom:35px}.editorial-story-has-promo>.story-author,.editorial-story-has-promo>.story-content{max-width:870px}.editorial-course-promo:not(.editorial-course-promo-compact){grid-template-columns:1fr}.editorial-promo-card{max-width:360px;width:100%;margin:auto}}
@media(max-width:760px){.editorial-content-blocks{gap:24px}.editorial-content-text{font-size:14px}.editorial-image-open,.editorial-content-video iframe{border-radius:12px}.editorial-content-image figcaption,.editorial-content-video figcaption{font-size:12px}.editorial-promo-copy h2{font-size:24px;letter-spacing:-.48px}.editorial-promo-copy p{font-size:14px}.editorial-course-promo-compact h2{font-size:20px}.editorial-share-story{display:block;padding:20px;border-radius:20px}.editorial-share-story h2{font-size:24px;letter-spacing:-.48px}.editorial-share-story p{font-size:14px}.editorial-share-story .button{display:flex;margin-top:24px;justify-content:center}}
/* Original Figma ribbons retain their intrinsic aspect ratio; dynamic copy can grow the banner. */
.editorial-promo-art{position:absolute;inset:0;pointer-events:none;overflow:hidden}.editorial-promo-art picture{display:block;position:absolute;left:0;bottom:0;width:100%}.editorial-promo-art picture img{display:block;width:100%;height:auto;aspect-ratio:870/420}.editorial-promo-grid{position:absolute;inset:0;mask:url('editorial/story-promo-mask.svg') left bottom/100% auto no-repeat;-webkit-mask:url('editorial/story-promo-mask.svg') left bottom/100% auto no-repeat}.editorial-promo-grid::before{content:"";position:absolute;left:0;bottom:0;width:1930px;height:704px;background:url('editorial/story-promo-grid.png') center/cover;opacity:.15}

@media(max-width:760px){.editorial-promo-art picture img{aspect-ratio:360/633}.editorial-promo-grid{mask-image:url('editorial/story-promo-mobile-mask.svg');-webkit-mask-image:url('editorial/story-promo-mobile-mask.svg')}}

/* The shared course-card markup also appears in article recommendations and
   editorial course blocks. These compact rules are isolated from the home page. */
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-card{display:flex;flex-direction:column;position:relative;min-width:0;overflow:hidden;border:0;border-radius:24px;background:#fff;box-shadow:0 13px 28px #c8c8c81a,0 50px 50px #c8c8c817}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-free-card{border-radius:24px 24px 16px 16px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-cover{position:relative;flex:none;width:100%;height:160px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-cover>img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-labels{position:absolute;top:10px;left:10px;right:80px;display:flex;flex-wrap:wrap;gap:5px;align-items:flex-start;margin:0}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-free-card .home-course-labels{right:10px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-labels>span,:is(.editorial-promo-card,.editorial-detail-course-track) .home-discount{padding:4px 12px;border-radius:30px;background:var(--category-color);font:500 12px/1.4 var(--font-body);overflow-wrap:anywhere}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-labels>span:nth-child(2){background:#ffef68;color:#2d2d2f}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-free-card .home-course-labels>span{font-size:14px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-discount{position:absolute;top:10px;right:10px;white-space:nowrap;background:#fd4242;color:#fff}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-card[data-category="autocad"] .home-category-label{color:#bb4941}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-card[data-category="archicad"] .home-category-label{color:#ee6829}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-card[data-category="ai"] .home-category-label{color:#27ba67}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-copy{display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:15px;padding:20px;width:100%;min-width:0;background:#fff}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-free-card .home-course-copy{min-height:176px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-summary{min-width:0;width:100%}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-card h3{font:700 20px/1.2 var(--font-heading);letter-spacing:-.4px;overflow-wrap:anywhere;margin:0 0 15px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-card .card-meta{display:flex;flex-wrap:wrap;gap:8px 10px;margin:0;padding:0;font:400 12px/1.5 var(--font-body);color:#6f6f75}
:is(.editorial-promo-card,.editorial-detail-course-track) .card-meta-item{display:inline-flex;align-items:center;gap:5px;min-width:0}
:is(.editorial-promo-card,.editorial-detail-course-track) .card-meta-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none;width:12px;height:12px}
:is(.editorial-promo-card,.editorial-detail-course-track) .card-meta-symbol img{flex:none}
:is(.editorial-promo-card,.editorial-detail-course-track) .card-meta-large{display:none}
:is(.editorial-promo-card,.editorial-detail-course-track) .card-meta-small{display:block}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;min-width:0;width:100%}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-paid-card .home-course-footer{padding-top:20px;border-top:1px solid #d9d9d9}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price{min-width:0;margin:0;font:400 12px/1.5 var(--font-body)}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price .card-price{display:block;padding:0;margin:0}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price .card-price>strong{display:block;font:700 20px/1.2 var(--font-heading);letter-spacing:-.4px;margin:0 0 5px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price .card-price>strong:last-child{margin-bottom:0}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price .muted,:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price s{font:400 12px/1.5 var(--font-body);color:#6f6f75;margin:0}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-price b{font-weight:500;color:#2d2d2f}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-arrow{position:relative;display:inline-flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#2d2d2f}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-paid-card .home-course-action{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-round{display:block;position:relative;width:32px;height:32px}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-round>img{display:block}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-round>span{position:absolute;inset:20%;overflow:hidden}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-round>span>img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-free-card .home-course-arrow{width:100%;height:auto;min-height:40px;padding:10px 24px;border-radius:8px;background:#e1efff;font:500 16px/1.2 var(--font-body);text-align:center}
:is(.editorial-promo-card,.editorial-detail-course-track) .home-course-unavailable{font:400 14px/1.5 var(--font-body);color:#6f6f75;margin:0}

/* Work cards: Figma 262:9684 / mini course banner 262:9697. */
.editorial-work-heading-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important}
.editorial-work-heading-hidden:focus-within{position:static!important;width:auto!important;height:auto!important;margin:0!important;clip-path:none;white-space:normal}
.editorial-work-course{display:flex;align-items:center;gap:15px;padding:10px;min-width:0;background:#f3f3f3;border-radius:16px}
.editorial-work-course>img{display:block;width:70px;height:70px;flex:none;object-fit:cover;border-radius:10px}
.editorial-work-course>div{min-width:0}
.editorial-work-course p{margin:0 0 6px;font:700 14px/1.4 var(--font-heading);letter-spacing:-.28px}
.editorial-work-course a,.editorial-work-course span{font:400 14px/1.4 var(--font-body);overflow-wrap:anywhere}
.editorial-work-course a{text-decoration:underline;text-decoration-color:#ffef68;text-decoration-thickness:2px;text-underline-offset:4px}
.editorial-work-gallery{min-width:0}
.editorial-work-slides{display:grid;gap:24px}
.editorial-work-slides>[hidden]{display:none}
.editorial-work-slides .editorial-image-open{border-radius:16px;background:#f3f3f3}
.editorial-work-slides .editorial-image-open img{width:100%;height:auto;aspect-ratio:51/34;object-fit:contain}
.editorial-work-gallery-controls{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:20px}
.editorial-work-gallery-controls[hidden]{display:none}
.editorial-work-gallery-controls button{display:grid;place-items:center;width:40px;height:40px;padding:0;min-width:0;min-height:0;border:0;background:transparent;cursor:pointer}
.editorial-work-gallery-controls [data-work-prev] .editorial-gallery-arrow{transform:rotate(180deg)}
.editorial-work-gallery-controls [data-work-counter]{font:500 14px/1.4 var(--font-body);min-width:45px;text-align:center}
.editorial-work-gallery button:focus-visible{outline:2px solid #2d2d2f;outline-offset:4px}
@media print{.editorial-work-slides>[hidden]{display:block}.editorial-work-gallery-controls{display:none}}

a.editorial-work-course{color:inherit;text-decoration:none}
a.editorial-work-course .editorial-course-title{text-decoration:underline;text-decoration-color:#ffef68;text-decoration-thickness:2px;text-underline-offset:4px}
a.editorial-work-course:hover .editorial-course-title{text-decoration-color:var(--ink)}
a.editorial-work-course:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

.story-author-website{display:inline-flex;align-items:center;gap:5px;max-width:100%}
.story-author-website>img{flex:none}
.story-author-website>span{min-width:0;overflow-wrap:anywhere}
.story-author-website .editorial-social-external{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* Story image runs: Figma 262:10303, with the existing image dialog. */
.story-body .editorial-story-gallery{min-width:0;width:100%;margin:24px 0}
.story-body .editorial-story-gallery-preview{display:block;position:relative;width:100%;aspect-ratio:3/2;padding:0;border:1px solid #d9d9d9;border-radius:24px;overflow:hidden;background:#fff;cursor:zoom-in;box-sizing:border-box}
.story-body .editorial-story-gallery-preview>img{display:block;width:100%;height:100%;max-height:none;max-width:100%;margin:0;object-fit:contain;border-radius:0}
.editorial-story-gallery-preview::before{content:"";position:absolute;inset:0;z-index:1;background:rgb(0 0 0 / .42);opacity:0;transition:opacity .15s ease;pointer-events:none}
.story-body .story-gallery-open{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;font:600 18px/1.4 var(--font-body);text-shadow:0 1px 4px #0006;opacity:0;transition:opacity .15s ease;pointer-events:none}
.story-gallery-open::before{content:"";display:block;width:56px;height:56px;border-radius:50%;background:#fff url('icons/gallery.svg') center/24px 24px no-repeat;box-shadow:0 2px 16px #2d2d2f26}
.editorial-story-gallery-preview:is(:hover,:focus-visible)::before,.editorial-story-gallery-preview:is(:hover,:focus-visible)>.story-gallery-open{opacity:1}
.story-body .editorial-story-gallery-preview:focus-visible{outline:2px solid #2d2d2f;outline-offset:4px}
.story-body .story-gallery-count{position:absolute;z-index:3;right:16px;bottom:16px;padding:6px 12px;border-radius:20px;background:rgba(255,255,255,.94);color:#2d2d2f;font:500 14px/1.5 var(--font-body);pointer-events:none}
.story-body .editorial-story-gallery-caption{margin:10px 0 0;font:400 14px/1.5 var(--font-body);color:var(--muted)}
.editorial-story-gallery-slides[hidden],.editorial-story-gallery-originals{display:none}
@media(hover:none){.editorial-story-gallery-preview::before,.story-body .story-gallery-open{opacity:1}}
@media(max-width:760px){.story-body .story-gallery-count{right:10px;bottom:10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.editorial-story-gallery-preview::before,.story-body .story-gallery-open{transition:none}}
@media print{.story-body .editorial-story-gallery-preview,.story-body .editorial-story-gallery-caption,.editorial-story-gallery-slides{display:none}.editorial-story-gallery-originals{display:contents}.story-body .editorial-story-gallery{margin:0}}

/* Viewer examples 556:3636 / 556:3663: caption before controls. */
.editorial-gallery-footer{padding-top:12px;gap:20px}
.editorial-gallery-footer>[data-gallery-caption]{font:700 16px/1.2 var(--font-heading);letter-spacing:-.32px}
.editorial-image-dialog[data-gallery-count="1"] .editorial-gallery-controls{display:none}
@media(max-width:600px){.editorial-gallery-footer>[data-gallery-caption]{font-size:12px;letter-spacing:-.24px}}
