/* Editorial composition: distinct structures using the original theme-a palette. */
.theme-a-pages .ed-section{position:relative;width:100%!important;max-width:none!important;margin:0!important;padding:80px max(6vw,24px)!important;gap:40px!important;border-radius:0!important}
.theme-a-pages .ed-section:nth-of-type(even){background:var(--alt-bg)}
.theme-a-pages .ed-section:before{content:attr(data-editorial-index);display:block;color:var(--ink-2);font-size:12px;letter-spacing:3px;border-top:1px solid var(--line-2);padding-top:12px;align-self:stretch}
.theme-a-pages .ed-opening{padding-top:48px!important;background:var(--alt-bg)!important;min-height:380px!important}
.theme-a-pages .ed-opening h1{font-size:clamp(38px,4.7vw,76px)!important;line-height:1.12!important;letter-spacing:-2px!important}
.theme-a-pages .ed-split-hero{display:grid!important;grid-template-columns:1fr 1.15fr!important;align-items:center!important;height:auto!important;overflow:visible!important}
.theme-a-pages .ed-split-hero:before{grid-column:1/-1}
.theme-a-pages .ed-split-hero>.ed-hero-image{grid-column:2;grid-row:2/5;height:400px;width:100%;overflow:hidden;border-radius:140px 28px 28px 28px;position:relative}
.theme-a-pages .ed-hero-image>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important}
.theme-a-pages .ed-split-hero> :not(.ed-hero-image){position:relative!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;grid-column:1;z-index:1}
.theme-a-pages .ed-split-hero>div:not(.ed-hero-image):empty{display:none}
.theme-a-pages .ed-feature{display:grid!important;grid-template-columns:1.05fr 1fr!important;align-items:center!important;gap:64px!important;width:100%!important;height:auto!important}
.theme-a-pages .ed-feature>div{width:100%!important;max-width:100%!important;min-width:0!important}
.theme-a-pages .ed-feature img{border-radius:80px 20px 20px 20px!important}
.theme-a-pages .ed-timeline{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%!important;border-left:2px solid var(--accent);padding-left:30px!important}
.theme-a-pages .ed-timeline>div{width:100%!important;height:auto!important;min-height:0!important;padding:24px!important;border-radius:0 24px 24px 0!important;border-bottom:1px solid var(--line-2);display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:28px!important;background:transparent!important}
.theme-a-pages .ed-timeline>div>div{flex:1;min-width:0}
.theme-a-pages .ed-value-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;width:100%!important}
.theme-a-pages .ed-value-grid>div{width:auto!important;height:auto!important;border-top:3px solid var(--accent)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:28px 16px!important}
.theme-a-pages .ed-diagram-section{display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;align-items:center!important}
.theme-a-pages .ed-diagram-section:before{grid-column:1/-1}
.theme-a-pages .ed-diagram-intro{width:auto!important;text-align:left!important;align-items:flex-start!important}
.theme-a-pages .ed-diagram-section>div:not(.ed-diagram-intro){width:100%!important;min-width:0!important}
.theme-a-pages .ed-library,.theme-a-pages .ed-catalog{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;align-items:start!important;gap:40px!important}
.theme-a-pages .ed-catalog:before{grid-column:1/-1}
.theme-a-pages .ed-category-rail{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:12px!important;position:sticky;top:110px;padding:24px!important;border-radius:24px!important;background:var(--alt-bg)!important}
.theme-a-pages .ed-category-rail>div{width:100%!important;flex-wrap:wrap!important;gap:10px!important}
.theme-a-pages .ed-story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.theme-a-pages .ed-story-card{width:100%!important;height:auto!important;border-radius:0!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line-2)!important;padding-bottom:24px!important;box-shadow:none!important}
.theme-a-pages .ed-story-card:first-child{grid-column:1/-1;display:grid!important;grid-template-columns:1.2fr 1fr!important;gap:28px!important}
.theme-a-pages .ed-story-card>div{width:100%!important;max-width:100%!important;min-width:0!important}
.theme-a-pages .ed-story-card img{border-radius:24px!important}
.theme-a-pages .ed-product-list{display:flex!important;flex-direction:column!important;width:100%!important;gap:24px!important}
.theme-a-pages .ed-product-row{display:grid!important;grid-template-columns:minmax(150px,.8fr) 1fr!important;width:100%!important;height:auto!important;padding:24px!important;gap:28px!important;border-radius:24px!important;background:white!important}
.theme-a-pages .ed-product-row>div{width:100%!important;min-width:0!important}
.theme-a-pages .ed-article-heading{max-width:1050px!important;margin:auto!important;align-items:center!important;text-align:center}
.theme-a-pages .ed-article-layout{display:flex!important;flex-direction:column!important;align-items:center!important}
.theme-a-pages .ed-reading{width:100%!important;max-width:780px!important}
.theme-a-pages .ed-related{width:100%!important;max-width:1080px!important;position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important}
.theme-a-pages .ed-related>div{width:100%!important}
.theme-a-pages .ed-register{display:flex!important;flex-direction:column!important;align-items:center!important}
.theme-a-pages .ed-register-intro{width:100%!important;max-width:1000px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:24px!important}
.theme-a-pages .ed-register-intro>h1,.theme-a-pages .ed-register-intro>p{grid-column:1/-1}
.theme-a-pages .ed-register-form{width:100%!important;max-width:900px!important;background:white!important;padding:40px!important;border-radius:32px!important}
.theme-a-pages .ed-policy{display:flex!important;flex-direction:column!important}
.theme-a-pages .ed-policy-nav{width:100%!important;position:static!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;padding:24px!important;background:var(--alt-bg)!important}
.theme-a-pages .ed-policy>div{width:100%!important;max-width:100%!important}
.theme-a-pages .ed-faq{display:flex!important;flex-direction:column!important;align-items:stretch!important;max-width:1100px!important;margin:auto!important}
.theme-a-pages .ed-faq>div{width:100%!important}
.theme-a-pages .ed-product-detail{display:grid!important;grid-template-columns:1.2fr 1fr!important;gap:64px!important;padding:32px!important;background:var(--alt-bg)!important;border-radius:40px!important;width:100%!important}
.theme-a-pages .ed-product-detail>div{width:100%!important;min-width:0!important}
.theme-a-pages .ed-product-description{padding:56px 6vw!important;background:var(--surface)!important}
.theme-a-pages .ed-commerce{max-width:1080px!important;width:calc(100% - 48px)!important;margin:40px auto!important;border-radius:36px!important;padding:48px!important;box-shadow:0 20px 70px #173d2610!important;border-top:6px solid var(--accent)!important}
@media(max-width:900px){
.theme-a-pages .ed-section{padding:40px 20px!important;gap:28px!important}
.theme-a-pages .ed-split-hero,.theme-a-pages .ed-feature,.theme-a-pages .ed-diagram-section,.theme-a-pages .ed-library,.theme-a-pages .ed-catalog,.theme-a-pages .ed-register-intro,.theme-a-pages .ed-product-detail{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:28px!important}
.theme-a-pages .ed-split-hero>.ed-hero-image{order:2;height:280px;flex-shrink:0;border-radius:80px 20px 20px 20px}
.theme-a-pages .ed-opening h1{letter-spacing:-1px!important}
.theme-a-pages .ed-category-rail{position:static;flex-direction:row!important;flex-wrap:wrap!important;padding:16px!important}
.theme-a-pages .ed-value-grid,.theme-a-pages .ed-related,.theme-a-pages .ed-policy-nav{grid-template-columns:1fr!important}
.theme-a-pages .ed-story-grid{gap:24px;grid-template-columns:1fr}
.theme-a-pages .ed-story-card:first-child{display:flex!important;flex-direction:column!important}
.theme-a-pages .ed-product-row{grid-template-columns:1fr!important}
.theme-a-pages .ed-timeline{padding-left:12px!important}
.theme-a-pages .ed-timeline>div{flex-direction:column!important;padding:20px 12px!important;gap:12px!important}
.theme-a-pages .ed-commerce{width:calc(100% - 24px)!important;margin:16px auto!important;padding:24px 16px!important;border-radius:24px!important}
.theme-a-pages .ed-register-form{padding:24px 16px!important}
}
.theme-a-pages .ed-timeline p{width:auto!important;max-width:100%!important;min-width:0!important;white-space:normal!important}
.theme-a-pages .ed-feature *{min-width:0}
@media(max-width:900px){.theme-a-pages [data-page='lifestyle'] [data-name='Tựa đề'],.theme-a-pages [data-name='Tựa đề']{max-width:100%!important;margin-left:0!important;left:auto!important;transform:none!important}.theme-a-pages .ed-product-description [data-name='Navigation']{flex-wrap:wrap!important;overflow:visible!important;height:auto!important;gap:8px!important}.theme-a-pages .ed-product-description [data-name='Nav_Link']{flex:0 1 auto!important}}
.theme-a-pages [hidden]{display:none!important}
.theme-a-pages .ed-library{height:auto!important}
.theme-a-pages .ed-story-grid{position:relative;z-index:1}
.theme-a-pages [data-name='Phân trang']{position:relative!important;inset:auto!important;transform:none!important;clear:both;margin-top:32px!important}
.theme-a-pages .ed-feature p,.theme-a-pages .ed-feature h1,.theme-a-pages .ed-feature h2{width:100%!important;max-width:100%!important;min-width:0!important}
.theme-a-pages .ed-feature.ed-section:before{grid-column:1/-1}
@media(max-width:900px){.theme-a-pages [data-name='Tựa đề']{padding-left:0!important;padding-right:0!important;width:100%!important;max-width:100%!important}.theme-a-pages [data-name='Tựa đề']>*{width:100%!important;max-width:100%!important}.theme-a-pages [data-name='Bước thanh toán']{min-width:0!important;width:auto!important;flex:1!important}.theme-a-pages [data-name='Bước thanh toán'] p{font-size:12px!important;white-space:normal!important}.theme-a-pages [data-name='Giới thiệu và kết nối'] a{max-width:100%!important;box-sizing:border-box}}
@media(max-width:900px){.theme-a-pages .ed-section{padding-top:60px!important}.theme-a-pages .ed-section:before{position:absolute!important;left:20px;top:16px;width:32px;grid-column:auto!important}.theme-a-pages [data-node-id='123:7986'],.theme-a-pages [data-node-id='123:8109']{display:block!important}}
@media(max-width:360px){.theme-a-pages [data-name='Giới thiệu và kết nối'] [data-name='arrow-up-right']{display:none!important}}
/* Ecosystem: six photographic values, replacing the radial diagram. */
.theme-a-pages .eco-showcase.ed-section{display:grid!important;grid-template-columns:minmax(240px,.7fr) minmax(0,1.7fr)!important;align-items:start!important;gap:48px!important;background:var(--bg)!important}
.theme-a-pages .eco-showcase:before{grid-column:1/-1}
.theme-a-pages .eco-showcase .ed-diagram-intro{position:sticky;top:120px;gap:24px!important;padding-top:12px;min-width:0!important}
.theme-a-pages .eco-showcase .ed-diagram-intro>div{max-width:100%!important;min-width:0!important}
.theme-a-pages .eco-showcase .ed-diagram-intro h1,.theme-a-pages .eco-showcase .ed-diagram-intro h2,.theme-a-pages .eco-showcase .ed-diagram-intro>p{font-size:clamp(30px,3.1vw,48px)!important;line-height:1.2!important;width:100%!important;min-width:0!important;letter-spacing:-1.2px}
.theme-a-pages .eco-values{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%!important}
.theme-a-pages .eco-value{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;min-width:0;transition:transform .2s,box-shadow .2s}
.theme-a-pages .eco-value:nth-child(3n+2){transform:translateY(28px)}
.theme-a-pages .eco-value:hover{box-shadow:0 16px 32px #24482b12}
.theme-a-pages .eco-value-photo{aspect-ratio:1.15;position:relative;overflow:hidden;background:#dae6d0}
.theme-a-pages .eco-value-photo svg{display:block;width:100%;height:100%}
.theme-a-pages .eco-value-number{position:absolute;left:12px;top:12px;background:#f7faefed;color:var(--ink);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:12px;letter-spacing:1px}
.theme-a-pages .eco-value-body{padding:22px 18px 26px}
.theme-a-pages .eco-value h3{font-family:var(--font-head);font-size:21px;line-height:1.2;color:var(--head);margin:0 0 12px;font-weight:600}
.theme-a-pages .eco-value p{font-size:13px;line-height:1.75;color:var(--ink-2);margin:0}
.theme-a-pages .eco-signature{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line-2);margin-top:24px;padding-top:28px;width:100%}
.theme-a-pages .eco-signature-symbol{font-family:var(--font-head);font-size:60px;line-height:1;color:var(--accent-strong)}
.theme-a-pages .eco-signature strong{font-size:21px;font-weight:600;color:var(--head)}
.theme-a-pages .eco-signature p{font-size:13px!important;line-height:1.6!important;color:var(--ink-2);margin:8px 0 0;width:auto!important}
@media(max-width:1100px){.theme-a-pages .eco-showcase.ed-section{grid-template-columns:1fr!important}.theme-a-pages .eco-showcase .ed-diagram-intro{position:static;max-width:700px!important}.theme-a-pages .eco-signature{margin-top:0}.theme-a-pages .eco-values{padding-bottom:28px}}
@media(max-width:600px){.theme-a-pages .eco-values{grid-template-columns:1fr;gap:16px;padding-bottom:0}.theme-a-pages .eco-value:nth-child(3n+2){transform:none}.theme-a-pages .eco-value{display:grid;grid-template-columns:110px minmax(0,1fr);border-radius:16px}.theme-a-pages .eco-value-photo{height:100%;min-height:145px;aspect-ratio:auto}.theme-a-pages .eco-value-photo svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.theme-a-pages .eco-value-body{padding:24px 16px}.theme-a-pages .eco-value h3{font-size:20px}.theme-a-pages .eco-value p{font-size:12px}.theme-a-pages .eco-value-number{left:8px;top:8px;width:26px;height:26px;font-size:12px}}
.theme-a-pages .eco-showcase .ed-diagram-intro{display:flex!important;flex-direction:column!important;align-items:flex-start!important;width:100%!important}
.theme-a-pages .eco-showcase .ed-diagram-intro>p,.theme-a-pages .eco-showcase .ed-diagram-intro>h1,.theme-a-pages .eco-showcase .ed-diagram-intro>h2{flex:none!important;align-self:stretch!important;white-space:normal!important;width:100%!important;min-width:100%!important}
.theme-a-pages .eco-showcase .eco-signature{flex:none!important;max-width:100%!important}
/* Compact introductions across theme-a: keep the next section closer to the menu. */
.theme-a-pages .ed-opening.ed-section{padding:28px max(6vw,24px) 36px!important;min-height:0!important;gap:24px!important;height:auto!important}
.theme-a-pages .ed-opening h1{font-size:clamp(30px,3.2vw,48px)!important;line-height:1.16!important;letter-spacing:-1px!important}
.theme-a-pages .ed-opening.ed-split-hero>.ed-hero-image{height:240px!important;border-top-left-radius:80px}
.theme-a-pages .ed-opening.ed-feature{gap:36px!important}
.theme-a-pages .ed-opening [data-name='Hình ảnh thương hiệu'],
.theme-a-pages .ed-opening [data-name='Nature and connection collage']{height:280px!important;min-height:0!important}
.theme-a-pages .ed-opening [data-name='Hero composition']{gap:32px!important}
.theme-a-pages .ed-opening [data-name='Thông điệp']{gap:16px!important}
@media(max-width:900px){
.theme-a-pages .ed-opening.ed-section{padding:48px 20px 28px!important;gap:20px!important}
.theme-a-pages .ed-opening h1{font-size:32px!important;line-height:1.18!important}
.theme-a-pages .ed-opening.ed-split-hero>.ed-hero-image{height:180px!important;border-top-left-radius:56px}
.theme-a-pages .ed-opening [data-name='Hình ảnh thương hiệu'],
.theme-a-pages .ed-opening [data-name='Nature and connection collage']{height:210px!important}
}
/* Product catalog: compact filter bar and balanced shopping cards. */
body.theme-a-pages[data-page='products'] .ed-catalog{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:28px!important;padding-top:48px!important;padding-bottom:64px!important}
body.theme-a-pages[data-page='products'] .ed-category-rail{position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;padding:0!important;background:transparent!important;border-radius:0!important;gap:16px!important}
body.theme-a-pages[data-page='products'] .ed-category-rail>[data-filter-bar]{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;flex:1 1 400px!important;width:auto!important;max-width:100%!important;overflow:visible!important}
body.theme-a-pages[data-page='products'] [data-filter-index]{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 1 auto!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:42px!important;padding:10px 18px!important;border:1px solid var(--line-2)!important;border-radius:999px!important;background:var(--surface)!important;color:var(--ink-2)!important;transition:background .2s,color .2s,border-color .2s}
body.theme-a-pages[data-page='products'] [data-filter-index] p{font-size:13px!important;line-height:1.5!important;white-space:normal!important;min-width:0!important;width:auto!important;color:inherit!important}
body.theme-a-pages[data-page='products'] [data-filter-index][aria-pressed='true']{background:var(--brand)!important;color:var(--btn-ink)!important;border-color:var(--brand)!important}
body.theme-a-pages[data-page='products'] .ed-category-rail>p{font-size:12px!important;color:var(--ink-2)!important;width:auto!important;white-space:nowrap!important;margin-left:auto}
body.theme-a-pages[data-page='products'] .ed-product-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:24px!important;max-width:1120px!important;margin:0 auto!important}
body.theme-a-pages[data-page='products'] .ed-product-row{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;width:100%!important;min-width:0!important;border:1px solid var(--line)!important;border-radius:24px!important;overflow:hidden!important;background:var(--surface)!important;box-shadow:0 8px 24px #003c1a05!important}
body.theme-a-pages[data-page='products'] [data-name='Bao bì concept']{height:240px!important;min-height:0!important;width:100%!important;position:relative!important;overflow:hidden!important;border-radius:0!important;background:var(--field-bg)!important}
body.theme-a-pages[data-page='products'] [data-name='Bao bì concept'] img{position:absolute!important;inset:16px!important;width:calc(100% - 32px)!important;height:calc(100% - 32px)!important;object-fit:contain!important;border-radius:16px!important}
body.theme-a-pages[data-page='products'] [data-name='Thông tin sản phẩm']{display:flex!important;flex-direction:column!important;align-items:stretch!important;flex:1!important;gap:14px!important;width:100%!important;min-width:0!important;padding:24px!important}
body.theme-a-pages[data-page='products'] [data-name='Tên và giá']{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;overflow:visible!important}
body.theme-a-pages[data-page='products'] [data-name='Tên và giá']>p:first-child{font-size:22px!important;line-height:1.3!important;flex:none!important;width:100%!important}
body.theme-a-pages[data-page='products'] [data-name='Tên và giá']>p:last-child{font-size:18px!important;color:var(--brand-2)!important}
body.theme-a-pages[data-page='products'] [data-name='Thông tin sản phẩm']>p{font-size:13px!important;line-height:1.7!important;min-height:44px}
body.theme-a-pages[data-page='products'] [data-name='Mua sản phẩm']{margin-top:auto!important;padding-top:18px!important;border-top:1px solid var(--line)!important;gap:12px!important;overflow:visible!important}
body.theme-a-pages[data-page='products'] [data-quantity]{height:44px!important;gap:14px!important;padding:0 10px!important}
body.theme-a-pages[data-page='products'] [data-add-product]{height:44px!important;padding:8px 16px!important;gap:8px!important;background:var(--btn-bg)!important;color:var(--btn-ink)!important;border-radius:999px!important}
body.theme-a-pages[data-page='products'] [data-add-product] p{font-size:13px!important;line-height:1.35!important;color:var(--btn-ink)!important;text-align:center}
body.theme-a-pages[data-page='products'] [data-add-product] img{filter:brightness(0) invert(1)}
body.theme-a-pages[data-page='products'] .ed-product-row[hidden]{display:none!important}
@media(max-width:700px){body.theme-a-pages[data-page='products'] .ed-product-list{grid-template-columns:1fr!important;max-width:480px!important}body.theme-a-pages[data-page='products'] .ed-catalog{padding:52px 20px 40px!important;gap:22px!important}body.theme-a-pages[data-page='products'] .ed-category-rail{gap:10px!important}body.theme-a-pages[data-page='products'] .ed-category-rail>[data-filter-bar]{flex-basis:100%!important}body.theme-a-pages[data-page='products'] .ed-category-rail>p{margin-left:0}body.theme-a-pages[data-page='products'] [data-filter-index]{padding:8px 12px!important;min-height:38px!important}body.theme-a-pages[data-page='products'] [data-name='Thông tin sản phẩm']{padding:20px!important}body.theme-a-pages[data-page='products'] [data-name='Bao bì concept']{height:220px!important}}
@media(max-width:360px){body.theme-a-pages[data-page='products'] [data-name='Thông tin sản phẩm']{padding:16px!important}body.theme-a-pages[data-page='products'] [data-quantity]{gap:10px!important}body.theme-a-pages[data-page='products'] [data-add-product]{padding:8px 10px!important}body.theme-a-pages[data-page='products'] [data-add-product]>div{display:none!important}}
body.theme-a-pages[data-page='products'] [data-name='Bao bì concept'] img{inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 62%!important;border-radius:0!important}
body.theme-a-pages[data-page='products'] [data-product='sflora'] [data-name='Bao bì concept'] img{object-position:center 53%!important}

/* Review fixes (2026-10-15) */
/* Large hero titles: the Figma text boxes use width:min-content, which collapsed to one letter per line. */
.theme-a-pages .ed-opening [data-large-text]{align-self:stretch!important;width:auto!important;max-width:100%!important}
.theme-a-pages .ed-opening [data-large-text]>p{width:auto!important;min-width:0!important}
/* About: company journey as aligned rows (dot · years · milestone · description). */
@media (min-width:821px){
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"]{display:grid!important;grid-template-columns:12px 132px minmax(180px,250px) 1fr;align-items:center!important;column-gap:24px!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"]>*{width:auto!important;min-width:0!important;min-height:0!important;overflow:visible!important;flex:none!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"]>[data-name="Trục hành trình"]{width:12px!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"]>[data-name="Trục hành trình"]>:not(:first-child){display:none!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"]>:nth-child(2){justify-self:start;padding:6px 12px!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"] p{white-space:normal!important}
 /* Affiliate: the four steps (number · step · description). */
 .theme-a-pages .ed-timeline>[data-name="Giai đoạn"]{display:grid!important;grid-template-columns:120px minmax(180px,260px) 1fr;align-items:center!important;column-gap:28px!important;height:auto!important;overflow:visible!important}
 .theme-a-pages .ed-timeline>[data-name="Giai đoạn"]>*{width:auto!important;min-width:0!important;flex:none!important;overflow:visible!important}
 .theme-a-pages .ed-timeline>[data-name="Giai đoạn"]>[data-name="Thứ tự"]{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
 .theme-a-pages .ed-timeline>[data-name="Giai đoạn"] [data-large-text]{line-height:1.1!important;font-size:40px!important}
}
/* Ecosystem cards: the round photo crops sit on a soft panel. */
.theme-a-pages .eco-value-photo{display:grid;place-items:center}
.theme-a-pages .eco-value-photo img{width:min(74%,190px);aspect-ratio:1;border-radius:50%;object-fit:cover;box-shadow:0 0 0 6px #ffffffb3}
@media (min-width:821px){
 .theme-a-pages .ed-timeline{height:auto!important;max-height:none!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"],.theme-a-pages .ed-timeline>[data-name="Giai đoạn"]{flex:none!important;height:auto!important;min-height:0!important;padding:18px 16px!important}
 .theme-a-pages .ed-timeline>[data-name="Chặng đường"]>:nth-child(3) p{font-size:20px!important;line-height:1.25!important}
}

/* Affiliate hero actions: keep label and arrow within the padded button. */
.theme-a-pages[data-page='affiliate'] .ed-opening [data-name='Hành động']{flex-wrap:wrap;max-width:100%}
.theme-a-pages[data-page='affiliate'] .ed-opening [data-name='Hành động']>[data-name='Nút hành động']{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:100%;min-width:0;cursor:pointer}
.theme-a-pages[data-page='affiliate'] .ed-opening [data-name='Hành động']>[data-name='Nút hành động']>p{width:auto!important;min-width:0!important;flex:0 1 auto;white-space:normal;text-align:center}
.theme-a-pages[data-page='affiliate'] .ed-opening [data-name='Hành động']>[data-name='Nút hành động']>[data-name='arrow-up-right']{flex:0 0 18px;width:18px;height:18px}
/* Related articles: the grid belongs to CardContent, inside the shared card. */
.theme-a-pages .ed-related{display:block!important;margin-inline:auto!important;min-width:0!important}
.theme-a-pages .ed-related>[data-name='Card']{width:100%!important;min-width:0!important}
.theme-a-pages .ed-related [data-name='CardContent']{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;width:100%!important;min-width:0!important;align-items:stretch!important}
.theme-a-pages .ed-related [data-name='ArticleSidebar']{width:100%!important;min-width:0!important;height:auto!important}
.theme-a-pages .ed-related [data-name='ImageWithFallback']{width:100%!important;min-width:0!important}
@media(max-width:900px){.theme-a-pages .ed-related [data-name='CardContent']{grid-template-columns:1fr!important}}

body.theme-a-pages[data-page='stories'] [data-name='Kho bài viết']{background:var(--alt-bg)!important}

body.theme-a-pages[data-page='stories'] [data-name='Kho bài viết']{padding-top:24px!important}
@media(max-width:900px){body.theme-a-pages[data-page='stories'] [data-name='Kho bài viết']{padding-top:16px!important}}
