/* Proposal layout: grouped, all-visible desktop mega-menu inspired by Stripe's scan pattern.
   Content, logo and Figma default tokens remain local and independently editable. */
.nav-trigger,.nav-direct{font-size:var(--font-size-16);font-weight:var(--font-weight-medium)}
.mega-inner--all{display:block;min-height:0;max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain;padding:var(--spacing-6) var(--spacing-10) 18px}
.mega-text-link{border:0;background:transparent;padding:0;line-height:1.5;color:var(--link);font-size:var(--font-size-14);font-weight:var(--font-weight-medium);text-align:left}
.mega-text-link:hover{text-decoration:underline;text-underline-offset:3px}
.mega-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--spacing-8);align-items:start}
.mega-columns--resources{grid-template-columns:repeat(2,minmax(0,1fr));max-width:790px;gap:42px}
.mega-column{min-width:0;display:grid;gap:22px;align-content:start}
.mega-list-group{min-width:0}
.mega-list-group h3{margin:0 0 9px;color:var(--foreground);font-size:var(--font-size-15);font-weight:var(--font-weight-semibold);line-height:1.45}
.mega-list-items{display:grid;gap:var(--spacing-px)}
.mega-list-sub{margin-top:13px;padding-top:11px;border-top:1px solid var(--border)}
.mega-list-sub h4{font-size:var(--font-size-13);font-weight:var(--font-weight-semibold);color:var(--muted-foreground);margin:0 0 var(--spacing-2-5)}
.mega-list-sub .subgroup-items{gap:var(--spacing-1-5)}
@media (width < 64rem){.mega-inner--all{padding:22px 25px 18px}.mega-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.mega-columns--resources{max-width:none}}

/* Supplementary navigation: separated from the category list. */
.nav-trigger:hover,.nav-trigger.active,.nav-direct:hover{border-bottom-color:transparent}
/* Resources: layout follows Figma node 12649:89973 (3 list columns + tinted topic panel on the right). */
.mega-resource-layout{display:grid;grid-template-columns:minmax(0,1fr) 500px;align-items:start}
.mega-resource-layout .mega-columns--resources{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none;gap:var(--spacing-6);padding-right:var(--spacing-6)}
.resource-topics{margin:calc(var(--spacing-6) * -1) calc(-1 * var(--container-padding)) -18px 0;padding:var(--spacing-8) calc(var(--container-padding) + var(--spacing-5)) var(--spacing-8) var(--spacing-5);align-self:stretch}
.resource-topics-label{margin:0 0 var(--spacing-3) var(--spacing-3);color:var(--placeholder);font-size:var(--font-size-14);font-weight:var(--font-weight-medium)}
.topic-rows{display:grid;gap:var(--spacing-2)}
.topic-row{display:grid;grid-template-columns:144px minmax(0,1fr);gap:var(--spacing-6);align-items:start;width:100%;padding:var(--spacing-3);border:0;border-radius:var(--radius-control);background:transparent;text-align:left}
.topic-row:hover{background:var(--card)}
.topic-row img,.topic-row-image{display:block;width:144px;height:var(--spacing-20);border-radius:var(--radius-control);object-fit:cover;background:var(--border)}
.topic-row-copy strong{display:block;color:var(--foreground);font-size:var(--font-size-15);font-weight:var(--font-weight-medium);line-height:1.3}
.topic-row-copy span{display:block;margin-top:var(--spacing-1-5);color:var(--body);font-size:var(--font-size-14);font-weight:var(--font-weight-regular);line-height:1.5}
.topic-row:hover strong{color:var(--link)}

@media (width >= 64rem){.mega-panel:is([data-menu="resources"],[data-menu="about"]){background:linear-gradient(to left,var(--background) calc(max(0px,(100% - var(--container-width))/2) + 500px + var(--container-padding)),var(--color-base-white) 0)}}
@media (width < 64rem){.mega-resource-layout{grid-template-columns:1fr}.mega-resource-layout .mega-columns--resources{padding-right:0}.resource-topics{margin:var(--spacing-6) 0 0;padding:var(--spacing-4) var(--spacing-2) var(--spacing-3);background:var(--background);border-radius:var(--radius-card)}}

/* Round 6: divider-only bottom row, text links with chevron, product supporting text. */
.mega-text-link{display:inline-flex;align-items:center}
.mega-text-link:hover,.mega-text-link:focus-visible{text-decoration:none;color:var(--link-hover)}
.mega-columns--products .mega-column{gap:var(--spacing-4)}
.resource-topics-label{margin:0 0 9px var(--spacing-3);color:var(--foreground);font-size:var(--font-size-15);font-weight:var(--font-weight-semibold);line-height:1.45}

/* Round 7: left-aligned bottom row (guide first), one colour for every text button. */
.mega-text-link{color:var(--link);font-size:var(--font-size-14);font-weight:var(--font-weight-medium)}
.mega-text-link:hover,.mega-text-link:focus-visible{color:var(--link);text-decoration:none}

/* Round 8: links pushed right without divider; product list readability (contrast + group rhythm). */
.mega-list-items .item-button.has-desc+.item-button.has-desc{margin-top:var(--spacing-1)}
.mega-columns--products .mega-column{gap:var(--spacing-7)}
.mega-columns--products .mega-list-group h3{margin-bottom:var(--spacing-2)}

/* Align the topic heading with the list-column headings. */
@media (width >= 64rem){.resource-topics{padding-top:var(--spacing-6)}}

/* Round 9: guide prompt reads as body copy; wider primary buttons. */

/* Round 10: section headings use the same weight as their links; colour carries the distinction. */
.mega-list-group h3,.resource-topics-label{font-weight:var(--font-weight-regular)}
.mega-columns--products .mega-list-group h3{font-weight:var(--font-weight-medium)}

/* Round 11: Products = category rail + detail (Squarespace-style). */
.product-browser{display:grid;grid-template-columns:240px minmax(0,1fr);gap:var(--spacing-10);align-items:start}
.product-rail{display:grid;gap:var(--spacing-0-5);align-content:start}
.product-detail{min-width:0;padding-top:var(--spacing-1)}
.product-detail-head{margin-bottom:var(--spacing-5)}
.product-detail-head h3{margin:0 0 var(--spacing-1-5);color:var(--foreground);font-size:var(--font-size-18);font-weight:var(--font-weight-medium);line-height:1.4}
.product-detail-head p{margin:0;color:var(--muted-foreground);font-size:var(--font-size-14);line-height:1.55}
.product-detail-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--spacing-3-5) var(--spacing-10)}
.product-detail-items .item-button.has-desc+.item-button.has-desc{margin-top:0}
@media (width < 64rem){.product-browser{grid-template-columns:200px minmax(0,1fr);gap:var(--spacing-7)}.product-detail-items{gap:var(--spacing-3) var(--spacing-7)}}
/* Light-gray section headings (text-secondary keeps readable contrast). */
.mega-list-group h3,.resource-topics-label,.mega-columns--products .mega-list-group h3{color:var(--muted-foreground);font-size:var(--font-size-14);font-weight:var(--font-weight-regular)}

/* Round 12: make the rail read as a clickable menu (divider + chevron on hover/active). */
.product-browser{gap:0}
.product-rail{padding-right:var(--spacing-5);border-right:1px solid var(--border)}
.product-detail{padding-left:var(--spacing-10)}
@media (width < 64rem){.product-detail{padding-left:var(--spacing-7)}}

/* Round 13: rail divider meets the bottom bar; category-specific links live in the detail panel. */
.product-browser{align-items:stretch}
.product-rail,.product-detail{padding-bottom:var(--spacing-6)}

/* Round 14: contextual topic card inside related product categories. */
.product-topic{margin-top:var(--spacing-6);max-width:480px}
.product-topic h4{margin:0 0 var(--spacing-2);color:var(--muted-foreground);font-size:var(--font-size-14);font-weight:var(--font-weight-regular)}
.product-topic .topic-row{background:var(--background)}
.product-topic .topic-row:hover{background:var(--secondary)}
@media (width < 55rem){.product-topic{margin-top:var(--spacing-4);max-width:none}.product-topic .topic-row{grid-template-columns:96px minmax(0,1fr);gap:var(--spacing-3-5);padding:var(--spacing-2-5)}.product-topic .topic-row img{width:var(--spacing-24);height:var(--spacing-14)}}

/* Round 15 (updated): one link style across all menus (15px / 500 / text-primary); products only add a grey description line. */

/* Round 16: Stripe-style bottom bar - prompt, then link blocks (title + short description). */
.mega-bar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--spacing-3) var(--spacing-12);margin-top:var(--spacing-6);padding-top:var(--spacing-4);border-top:1px solid var(--border)}
.mega-inner--products .mega-bar{margin-top:0}
.mega-bar-prompt{margin:0;color:var(--body);font-size:var(--font-size-14);font-weight:var(--font-weight-regular)}
.mega-bar-links{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--spacing-3) var(--spacing-12)}
.mega-bar-link{display:grid;gap:var(--spacing-0-5);border:0;background:transparent;padding:var(--spacing-1) 0;text-align:left}
.mega-bar-title{display:inline-flex;align-items:center;color:var(--link);font-size:var(--font-size-14);font-weight:var(--font-weight-medium);line-height:1.5}
.mega-bar-desc{color:var(--muted-foreground);font-size:var(--font-size-13);font-weight:var(--font-weight-regular);line-height:1.45}
@media (width < 55rem){.mega-bar{display:block;margin-top:var(--spacing-4)}.mega-bar-links{display:grid;gap:var(--spacing-2-5);margin-top:var(--spacing-2)}}

.mega-bar{justify-content:space-between}
.mega-bar-links{margin-left:auto}
@media (width < 55rem){.mega-bar-links{margin-left:0}}

/* Round 17: Products = rail | list | fixed right column (tinted like Resources, Stripe "More"-style). */
.product-browser{grid-template-columns:240px minmax(0,1fr) 300px}
.product-rail{display:flex;flex-direction:column;gap:0}
.product-rail-more{margin-top:0;padding:0}
.product-detail{padding:var(--spacing-1) var(--spacing-8) var(--spacing-6) var(--spacing-10)}
.product-detail-items{gap:var(--spacing-3) var(--spacing-8)}
.product-aside{padding:0 0 var(--spacing-6) var(--spacing-6);display:grid;gap:var(--spacing-5);align-content:start}
@media (width >= 64rem){.mega-panel:is([data-menu="products"],[data-menu="solutions"]){background:linear-gradient(to left,var(--background) calc(max(0px,(100% - var(--container-width))/2) + 300px + var(--container-padding)),var(--color-base-white) 0)}}
.feature-card h4{margin:0;color:var(--foreground);font-size:var(--font-size-15);font-weight:var(--font-weight-medium);line-height:1.45}
.feature-card p{margin:var(--spacing-1) 0 var(--spacing-1-5);color:var(--muted-foreground);font-size:var(--font-size-13);line-height:1.5}
.feature-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius-control);margin-bottom:var(--spacing-3);background:var(--border)}
.feature-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (width < 64rem){.product-browser{grid-template-columns:200px minmax(0,1fr) 240px}.product-detail{padding:var(--spacing-1) var(--spacing-6) var(--spacing-6) var(--spacing-7)}.product-detail-items{grid-template-columns:1fr}.product-aside{padding:var(--spacing-4);background:var(--background);border-radius:var(--radius-card);align-self:start}}

/* Keep the right column within the rail height so the menu does not resize while switching. */
.feature-card img{aspect-ratio:2/1}
.feature-card h4{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature-card p{-webkit-line-clamp:2}

/* Round 18: guide prompt and link on one line; other links are plain text links. */
/* ── Alignment baseline: text + link side by side → baseline ──
   Reference = Stripe's menu bottom row aligns the description text and the link on the same row by text baseline
   Change    = align-items: baseline (was center)
   Reason    = center aligns the "box center"; with different font weights (400 / 500) or line heights the two pieces of text look one high, one low;
               baseline aligns the bottom of the glyphs, and since Chinese glyphs fill the em box, an even bottom edge is what shows
               "this sentence is the description, that one is the action".                       */
.mega-bar-guide{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--spacing-1) var(--spacing-3)}
.mega-bar-guide .mega-bar-prompt{color:var(--body);font-size:var(--font-size-14);font-weight:var(--font-weight-regular)}

/* Round 19: Guide me card on light brand tint (Primary 50). */

/* Round 20: category-level links sit top-right of the detail header. */
.product-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-6)}
.product-detail-title{min-width:0}

/* Round 21: rail items fill the rail width. */
.product-rail-list{display:grid;gap:0}

/* Round 22: more air between the category intro and the list; slightly wider product columns so descriptions stay on one line. */
.product-detail-head{margin-bottom:var(--spacing-8)}
.product-detail{padding-right:var(--spacing-6)}
.product-detail-items{column-gap:var(--spacing-6)}

/* Round 23: rule under the category intro; full-height rail divider; quiet rail states (colour only). */
.product-detail-head{margin-bottom:var(--spacing-5);padding-bottom:var(--spacing-5);border-bottom:1px solid var(--border)}
@media (width >= 64rem){.mega-inner--products .product-rail{margin:calc(var(--spacing-6) * -1) 0 -18px;padding-top:var(--spacing-6);padding-bottom:42px}}

/* Round 24: card radius everywhere for cards/images; whole cards clickable; chevrons appear on hover only. */
.feature-card,.topic-row,.topic-row img,.topic-row-image,.feature-card img,.product-topic .topic-row img{border-radius:var(--radius-card)}
.feature-card{display:block;width:100%;border:0;text-align:left;cursor:pointer}
.feature-card{background:transparent;padding:0}
.card-title{display:block;color:var(--foreground);font-size:var(--font-size-15);font-weight:var(--font-weight-medium);line-height:1.45}
.card-text{display:block;margin:var(--spacing-1) 0 var(--spacing-1-5);color:var(--muted-foreground);font-size:var(--font-size-13);line-height:1.5}
.feature-card .card-title,.feature-card .card-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature-card:hover .card-title{color:var(--link)}
/* "View all" in the rail matches the category items. */
.product-rail-more{margin-top:0;padding:0}

/* Round 25: one blue accent per menu (Guide me). Other text links are neutral and turn blue on hover. */
.mega-text-link{color:var(--foreground)}
.mega-text-link:hover,.mega-text-link:focus-visible{color:var(--link)}
.mega-bar-guide .mega-text-link{color:var(--link)}
.mega-bar-guide .mega-text-link:hover{color:var(--link-hover)}

/* Round 26: one vertical card pattern; cards show a chevron on hover (no colour change); only nav links turn blue. */
@media (width >= 55rem){
  .resource-topics .topic-rows{grid-template-columns:1fr 1fr;gap:var(--spacing-5)}
  .resource-topics .topic-row{grid-template-columns:1fr;gap:var(--spacing-3);padding:0}
  .resource-topics .topic-row img{width:100%;height:auto;aspect-ratio:2/1}
  .resource-topics .topic-row-copy span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .resource-topics-label{margin-left:0}
}
.topic-row,.topic-row:hover,.resource-topics .topic-row:hover,.product-topic .topic-row:hover{background:transparent}
.product-topic .topic-row{background:var(--background)}
.product-topic .topic-row:hover{background:var(--background)}
.topic-row:hover strong,.topic-row-copy strong,.feature-card:hover .card-title{color:var(--foreground)}
.topic-row-copy strong,.card-title{display:inline}
.feature-card .card-title{display:-webkit-box}
/* Right column: featured on top, Guide me pinned to the bottom. */
.product-aside{display:flex;flex-direction:column;gap:var(--spacing-5)}
.aside-label{margin:0 0 var(--spacing-2);color:var(--muted-foreground);font-size:var(--font-size-14);font-weight:var(--font-weight-regular);line-height:1.45}
.product-aside{padding-top:var(--spacing-1)}

/* Round 27: white Guide me card with a hairline border; blue "view all industries"; chevrons nudged 1px to the text's optical centre. */
.mega-bar--solutions .mega-bar-links .mega-text-link{color:var(--link)}
.mega-bar--solutions .mega-bar-links .mega-text-link:hover{color:var(--link-hover)}

/* Round 28: label-to-content spacing matches the list columns; blue links keep their colour on hover (chevron is the cue);
   "compare" link inline after the category intro; 3:2 card images (homepage card ratio) sit better with the 16px radius. */
.products-topic .aside-label,.resource-topics-label{margin-bottom:var(--spacing-5)}
.mega-bar-guide .mega-text-link:hover,.mega-bar-guide .mega-text-link:focus-visible,.mega-bar--solutions .mega-bar-links .mega-text-link:hover,.mega-bar--solutions .mega-bar-links .mega-text-link:focus-visible{color:var(--link)}
.inline-link{display:inline-flex;vertical-align:baseline;padding:0;font-size:var(--font-size-14);line-height:1.55;color:var(--foreground)}
.inline-link:hover{color:var(--link)}
.feature-card img{aspect-ratio:3/2}
@media (width >= 55rem){.resource-topics .topic-row img{aspect-ratio:3/2}}

/* 16:10 keeps the comfortable card proportion while the right column fits the rail height. */
.feature-card img{aspect-ratio:16/10}
@media (width >= 55rem){.resource-topics .topic-row img{aspect-ratio:16/10}}

/* Round 29: roomier layout; card-title chevron centred with the title; finer 8px image corners with 16:9 images. */
.card-title,.topic-row-copy strong{display:flex;align-items:center}
.feature-card .card-title{display:flex}
.feature-card .card-title-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature-card img,.resource-topics .topic-row img,.topic-row img{border-radius:var(--radius-control)}
.feature-card img{aspect-ratio:16/9}
@media (width >= 55rem){.resource-topics .topic-row img{aspect-ratio:16/9}}
/* Space */
.mega-inner--all{padding:var(--spacing-8) var(--spacing-10) var(--spacing-7)}
@media (width >= 64rem){.mega-inner--products .product-rail{margin:calc(var(--spacing-8) * -1) 0 calc(var(--spacing-7) * -1);padding-top:var(--spacing-8);padding-bottom:52px}}
.product-detail-head{margin-bottom:var(--spacing-7);padding-bottom:var(--spacing-7)}
.product-detail-head h3{font-size:var(--font-size-24);line-height:1.35;margin-bottom:var(--spacing-2)}
.product-detail-head p{font-size:var(--font-size-15);line-height:1.6}
.inline-link{font-size:var(--font-size-15);line-height:1.6}
.product-detail-items{row-gap:var(--spacing-4)}
.mega-columns{gap:var(--spacing-10)}
.mega-column{gap:var(--spacing-7)}
.mega-bar{margin-top:var(--spacing-8);padding-top:var(--spacing-5)}
.mega-resource-layout .mega-columns--resources{gap:var(--spacing-8)}
@media (width >= 64rem){.resource-topics{margin:calc(var(--spacing-8) * -1) calc(-1 * var(--container-padding)) calc(var(--spacing-7) * -1) 0;padding-top:var(--spacing-8);padding-bottom:var(--spacing-7)}}

/* Round 30: inline "compare" is a plain blue text link (chevron on hover); Guide me listed as text (no box) aligned with the topic card. */
.inline-link{color:var(--link)}
.inline-link:hover{color:var(--link)}

/* Same bottom breathing room as Solutions (inner padding only). */
.product-detail,.product-aside{padding-bottom:0}
@media (width >= 64rem){.mega-inner--products .product-rail{padding-bottom:var(--spacing-7)}}

/* Round 31: Resources topic cards use the same card as Products; "view all topics" is a blue link with more space above. */
@media (width >= 55rem){.resource-topics .topic-rows{grid-template-columns:1fr 1fr;gap:var(--spacing-6)}}
.resource-topics .feature-card img{margin-bottom:var(--spacing-3)}

/* Shared text-link primitive: spacing belongs to the surrounding layout, never link padding. */
#mega-panel .text-link{display:inline-flex;align-items:center;justify-content:flex-start;padding:0;border:0;border-radius:0;background:transparent;min-height:0;width:auto;font-size:var(--font-size-14);font-weight:var(--font-weight-medium);line-height:1.5;letter-spacing:normal;color:var(--link);text-align:left;text-decoration:none}
#mega-panel .text-link .item-name{font:inherit;color:inherit;line-height:inherit}
#mega-panel .text-link:hover,#mega-panel .text-link:focus-visible{color:var(--link);background:transparent;text-decoration:none}

/* Topic footer owns spacing; the link itself has neither padding nor offset. */
.resource-topics-footer{margin-top:var(--spacing-6);display:flex;align-items:flex-start}
.resource-topics-footer>:is(.mega-text-link,.menu-link){margin:0;padding:0}

/* Product overview is a destination, not a category switch: permanent adjacent arrow (LinkArrow always). */
#mega-panel [data-select="瀏覽所有產品"]{justify-content:flex-start;align-items:center;gap:var(--spacing-0)}

/* Guide assistance is supporting navigation, not a clickable content card. */
.product-aside .guide-assist{margin-top:auto}
.guide-assist{display:flex;flex-direction:row;align-items:baseline;flex-wrap:wrap;gap:var(--spacing-2) var(--menu-copy-link-gap);padding:0;border:0;background:transparent}
.guide-assist-prompt{margin:0;color:var(--muted-foreground);font-size:var(--font-size-14);font-weight:var(--font-weight-regular);line-height:1.5}

/* Consistent spacing between supporting copy and its action; spacing belongs to the row. */
#mega-panel{--menu-copy-link-gap:var(--spacing-3)}
.product-detail-intro{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--spacing-2) var(--menu-copy-link-gap)}
.mega-bar-guide{column-gap:var(--menu-copy-link-gap)}
.guide-assist-prompt,.guide-assist>:is(.text-link,.menu-link),.product-detail-intro>:is(.inline-link,.menu-link){flex-shrink:0}

/* Motion viewport. Desktop layers own their backgrounds so they travel with their content. */
@media (width >= 55rem){
  #mega-panel{background:var(--card)}
  .menu-motion-layer{position:relative;width:100%;background:var(--card)}
  #mega-panel.menu-is-animating{overflow:hidden;will-change:height}
  .menu-is-animating>.menu-motion-layer{will-change:transform,opacity}
  .menu-motion-layer.menu-motion-exit{position:absolute;inset:0 0 auto;pointer-events:none;user-select:none}
}
@media (width >= 64rem){
  .menu-motion-layer:is([data-menu="products"],[data-menu="solutions"]){background:linear-gradient(to left,var(--background) calc(max(0px,(100% - var(--container-width))/2) + 300px + var(--container-padding)),var(--color-base-white) 0)}
  .menu-motion-layer:is([data-menu="resources"],[data-menu="about"]){background:linear-gradient(to left,var(--background) calc(max(0px,(100% - var(--container-width))/2) + 500px + var(--container-padding)),var(--color-base-white) 0)}
}
@media(prefers-reduced-motion:reduce){
  #mega-panel *,#header-zone .chevron{transition:none!important;animation:none!important}
}

/* Compact topic titles follow the same medium-weight clickable text rule. */
.topic-row-copy strong .card-title-text{font-weight:var(--font-weight-medium)}

/* One shared inline gutter for every page inner; vertical spacing is unchanged. */
.header-inner,.mega-inner{padding-inline:var(--container-padding)}

/* Outward arrow in menus: same line icon as the footer, inherits the link colour. */



/* Text links in the menu are the React Button (variant=link): size and color are decided by these variables; the old .text-link / .inline-link rules above are kept only as a fallback when React is absent */
#mega-panel{--button-link-size:var(--font-size-14);--button-link-lh:1.5;--button-link-arrow:var(--spacing-3-5);--button-link:var(--link);--button-link-hover:var(--link)}

/* Outward arrow baseline (moved here from the old footer.css, which is no longer loaded) */

/* Mandy navigation: paired topics and a compact company menu. */
.topic-related-links{display:flex;flex-wrap:wrap;gap:var(--spacing-3);margin-top:var(--spacing-2)}
.topic-related-links .menu-link{--button-link-size:var(--font-size-12);font-size:var(--font-size-12)}
.product-aside .products-topic+.products-topic{margin-top:var(--spacing-5)}
.product-aside .feature-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.mega-resource-layout .mega-columns--resources{grid-template-columns:repeat(2,minmax(0,1fr))}
.mega-columns--about{grid-template-columns:1fr;max-width:360px}

/* Solution recommendations use the shared blue accent surface. */

.mega-resource-layout .mega-columns--about{grid-template-columns:1fr;max-width:none}

/* The topic index is a left-aligned secondary action. */
.product-aside>.menu-link,.resource-topics>.menu-link{align-self:flex-start;justify-content:flex-start;text-align:left;width:fit-content;margin-left:0;margin-right:auto}

/* Topic index belongs to its heading; guidance remains a separate lower action. */
.topics-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-3);width:100%}
.topics-heading>h3{margin:0;font-size:var(--font-size-14);font-weight:var(--font-weight-medium);line-height:1.5}
.topics-heading>.menu-link{flex-shrink:0}
.resource-topics .topics-heading{margin-bottom:var(--spacing-5)}
.product-aside>.guide-assist,.resource-topics>.guide-assist{margin-top:var(--spacing-6);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:baseline;gap:var(--spacing-3)}

/* Keep guidance at the bottom of the recommendation column. */
.product-aside>.guide-assist{margin-top:auto;padding-top:var(--spacing-6)}

#mega-panel .topics-heading>.menu-link{margin-left:auto;margin-right:0;justify-content:flex-end}

/* Reserve a dedicated right-aligned cell for the topic index. */
#mega-panel .topics-heading{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;width:100%;min-width:0}
#mega-panel .topics-heading>.menu-link{grid-column:2;justify-self:end;width:max-content;margin:0;text-align:right;justify-content:flex-end}

/* Balance the gutters around the product/solution content and topic divider. */
@media(width >= 64rem){.product-detail{padding-inline:var(--spacing-8)}.product-aside{padding-left:var(--spacing-8)}}
