/* Opt-in alignment for side-by-side hero copy and media. */
@media (min-width:769px) {
    .about .about-info.fui-about-align-center { align-items:center; }
    .about .about-info.fui-about-align-center > .section-full-intro { margin-block-end:0; }
}

/* Content cards build on .list-card. The default list stays available for catalogues. */
@media (min-width:1025px) {
    .list-card.fui-card-grid:is([data-card-count="3"],[data-card-count="6"]) {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .list-card.fui-card-grid:is([data-card-count="4"],[data-card-count="8"]) {
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

.list-card.fui-card-grid.fui-content-cards > li > h2 {
    display:block;
    overflow:visible;
    overflow-wrap:anywhere;
}
.list-card.fui-content-cards > li > .intro {
    margin:0;
    color:var(--fui-text-secondary);
    font-size:14px;
    line-height:1.65;
    overflow-wrap:anywhere;
}

.list-card.fui-related-cards { grid-auto-rows:1fr; }
.list-card.fui-related-cards > li > .intro {
    display:-webkit-box;
    margin:0;
    overflow:hidden;
    overflow-wrap:anywhere;
    color:var(--fui-text-secondary);
    font-size:14px;
    line-height:1.65;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
    line-clamp:4;
}

/* Website entries may show a domain and use an icon when no logo is available. */
.list-website.fui-website-directory .fui-website-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.list-website.fui-website-directory .fui-website-domain {
    display:block;
    margin-top:2px;
    color:var(--fui-text-secondary);
    font-size:13px;
}
.list-website.fui-website-directory .fui-website-fallback {
    display:grid;
    place-items:center;
    background:var(--fui-bg-surface-raised);
    color:var(--fui-accent-primary);
    font-size:1.25rem;
}
.list-website.fui-website-directory .list-website-icon img { object-fit:contain; }

.list-steps.fui-steps-accent > dl > dt { background:var(--fui-accent-primary); }
.list-steps.fui-steps-accent > dl > dd { min-width:0; overflow-wrap:anywhere; }

/* The same button group can be placed over a dark hero photo. */
.enterprise-hero-background .enterprise-hero-actions.button-group > .button {
    display:inline-flex;
    line-height:22px;
}
.enterprise-hero-background .enterprise-hero-actions.button-group > .button:not(.button-secondary):hover {
    background:var(--fui-accent-primary);
    border-color:var(--fui-accent-primary);
}
.enterprise-hero-background .enterprise-hero-actions.button-group > .button-secondary {
    background:transparent;
    border-color:rgba(255,255,255,.8);
    color:#fff;
}
.enterprise-hero-background .enterprise-hero-actions.button-group > .button-secondary:hover {
    background:rgba(255,255,255,.15);
    border-color:#fff;
}
.enterprise-hero-background .enterprise-hero-actions.button-group > .button:focus-visible {
    outline-color:#fff;
}

/* Expanded contact panel reuses the original phone, WeChat and QR styles. */
.contact-panel.fui-contact-expanded {
    --fui-contact-icon-size:24px;
    background:var(--fui-bg-surface);
    --fui-contact-tint:color-mix(in srgb,var(--fui-bg-surface) 96%,var(--fui-accent-primary));
    background-image:linear-gradient(110deg,var(--fui-bg-surface) 18%,var(--fui-contact-tint) 50%,var(--fui-bg-surface) 82%);
    background-size:180% 100%;
    background-position:50% 50%;
}
.main > .section-full > .contact-panel.fui-contact-expanded,
.contact-panel.fui-contact-expanded { padding-block:40px; }
@media (prefers-reduced-motion:no-preference) {
    .contact-panel.fui-contact-expanded { animation:fui-contact-background 16s ease-in-out infinite; }
}
@keyframes fui-contact-background {
    0%,100% { background-position:20% 50%; }
    50% { background-position:80% 50%; }
}
.fui-contact-expanded .contact-info {
    grid-template-columns:minmax(0,1fr) minmax(0,min(180px,24%));
    gap:32px;
    margin:0;
}
.fui-contact-expanded .contact-intro + .contact-info { margin-block-start:24px; }
.fui-contact-expanded .contact-info.fui-contact-two-codes {
    grid-template-columns:minmax(0,1fr) minmax(0,min(376px,42%));
}
.fui-contact-expanded .contact-info:is(.contact-info-text,.fui-contact-codes-only) {
    grid-template-columns:minmax(0,1fr);
    text-align:center;
}
.fui-contact-expanded .contact-info-text .contact-copy {
    width:100%;
    max-width:560px;
    justify-self:center;
}
.fui-contact-expanded .contact-name { margin:0 0 18px; }
.fui-contact-expanded .contact-name:has(+ .contact-description) { margin-bottom:8px; }
.fui-contact-expanded .contact-description { margin:0; overflow-wrap:anywhere; }
.fui-contact-expanded .contact-description + .fui-contact-methods { margin-top:18px; }
.fui-contact-methods { display:grid; gap:20px 32px; }
.fui-contact-methods-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fui-contact-method { min-width:0; }
.fui-contact-method-note {
    margin:4px 0 0;
    color:var(--fui-text-secondary);
    font-size:14px;
    line-height:1.8;
    white-space:pre-line;
    overflow-wrap:anywhere;
}
.fui-contact-expanded :is(.contact-phone,.contact-wechat) {
    max-width:100%;
    color:var(--fui-text-primary);
    font-weight:500;
}
.fui-contact-expanded .contact-wechat { width:fit-content; }
.fui-contact-expanded .contact-phone:is(:hover,:focus-visible) { color:var(--fui-accent-primary); }
.fui-contact-expanded button:is(.contact-phone,.contact-wechat) {
    padding:0;
    border:0;
    background:transparent;
    font-family:inherit;
    cursor:pointer;
    text-align:inherit;
}
.fui-contact-expanded button:is(.contact-phone,.contact-wechat):focus-visible {
    outline:2px solid var(--fui-accent-primary);
    outline-offset:4px;
}
.fui-contact-expanded .contact-info-text .contact-wechat { margin-inline:auto; }
.fui-contact-codes {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);
    align-items:start;
    gap:16px;
}
.fui-contact-expanded .contact-qrcode { min-width:0; overflow-wrap:anywhere; }
.fui-contact-expanded .contact-qrcode img { height:auto; aspect-ratio:1; }
.fui-contact-codes-only .fui-contact-codes { width:100%; max-width:220px; justify-self:center; }
.fui-contact-two-codes.fui-contact-codes-only .fui-contact-codes { max-width:384px; }
@media (max-width:768px) {
    .main > .section-full > .contact-panel.fui-contact-expanded,
    .contact-panel.fui-contact-expanded { padding-block:20px; }
    .fui-contact-expanded .contact-info,
    .fui-contact-expanded .contact-info.fui-contact-two-codes {
        grid-template-columns:minmax(0,1fr);
        gap:28px;
        text-align:center;
    }
    .fui-contact-expanded .contact-copy { width:100%; max-width:560px; justify-self:center; }
    .fui-contact-methods-pair { grid-template-columns:minmax(0,1fr); }
    .fui-contact-expanded .contact-wechat { margin-inline:auto; }
    .fui-contact-codes { width:100%; max-width:384px; justify-self:center; }
}

.main > .section-full > .fui-action-band,
.fui-action-band {
    padding-block:40px;
    background:var(--fui-bg-surface-raised);
    text-align:center;
}
.fui-action-band .main-width > p { color:var(--fui-text-secondary); }
@media (max-width:768px) {
    .main > .section-full > .fui-action-band,
    .fui-action-band { padding-block:20px; }
}
