/* Teams landing page only: Home/About's welcoming visual language, with existing theme tokens. */
.teams-discovery {
    --teams-hub-line: color-mix(in srgb, var(--ink) 15%, transparent);
    --teams-hub-soft: color-mix(in srgb, var(--brand) 6%, var(--panel-strong));
    --teams-hub-accent: color-mix(in srgb, var(--brand) 50%, var(--ink));
    display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); width: 100%; max-width: 1280px;
    margin-inline: auto; padding-block: .25rem 1rem; color: var(--ink);
}
.teams-discovery *, .teams-discovery *::before, .teams-discovery *::after { box-sizing: border-box; }
.teams-discovery :where(h1, h2, h3, p) { margin: 0; }
.teams-discovery :where(section, article, aside, div, span, form) { min-width: 0; }
.teams-discovery [hidden] { display: none !important; }
.teams-discovery a { color: inherit; text-decoration: none; }
.teams-discovery :where(a, button, summary) { -webkit-tap-highlight-color: transparent; }
.teams-discovery :where(a, button, summary):focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.teams-discovery :where([id^="teams-hub-"]) { scroll-margin-block-start: 8rem; }
.teams-discovery .teams-hub-icon { width: 1.2rem; height: 1.2rem; flex: 0 0 1.2rem; }
.teams-discovery .teams-hub-kicker { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .73rem; line-height: 1.5; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-brand { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; border-radius: .75rem; font-size: .85rem; font-weight: 900; letter-spacing: -.05em; color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 32%, var(--panel-strong)), color-mix(in srgb, var(--brand-2) 32%, var(--panel-strong))); }
.teams-discovery .teams-hub-hero {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); align-items: center;
    gap: clamp(1.5rem, 3.5vw, 3.5rem); padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--teams-hub-line); border-radius: clamp(1.25rem, 2.2vw, 1.9rem);
    background: var(--panel);
    background: radial-gradient(ellipse at 3% 0%, color-mix(in srgb, var(--brand-2) 11%, transparent), transparent 65%), var(--panel);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 5%, transparent);
}
.teams-discovery .teams-hub-hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -.055em; font-weight: 850; margin-block: 1rem 1.1rem; text-wrap: balance; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-hero h1 > span { display: block; color: var(--teams-hub-accent); }
.teams-discovery .teams-hub-intro { max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.7; }
.teams-discovery .teams-hub-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-block-start: 1.4rem; }
.teams-discovery .teams-hub-action {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 44px; max-width: 100%; padding: .7rem 1rem;
    border: 1px solid var(--teams-hub-line); border-radius: .85rem; background: var(--panel-strong); color: var(--ink);
    font-family: inherit; font-size: .87rem; font-weight: 750; line-height: 1.4; text-align: center;
    text-decoration: none; overflow-wrap: anywhere; box-shadow: none; cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}
html[data-theme] .teams-discovery a.teams-hub-action.teams-hub-action-primary,
html[data-theme] .teams-discovery button.teams-hub-action.teams-hub-action-primary,
.teams-discovery .teams-hub-action.teams-hub-action-primary { background: var(--ink); color: var(--panel-strong); border-color: var(--ink); }
.teams-discovery .teams-hub-action-secondary { background: transparent; }
.teams-discovery .teams-hub-hero-note { display: flex; align-items: center; gap: .5rem; margin-block-start: 1rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.teams-discovery .teams-hub-access { display: grid; align-content: start; gap: .8rem; padding: clamp(1.1rem, 2vw, 1.65rem); border: 1px solid var(--teams-hub-line); border-radius: 1.3rem; background: var(--teams-hub-soft); }
.teams-discovery .teams-hub-tile { display: inline-grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 3rem; border: 1px solid var(--teams-hub-line); border-radius: .95rem; background: var(--teams-hub-soft); color: var(--teams-hub-accent); }
.teams-discovery .teams-hub-tile .teams-hub-icon { width: 1.4rem; height: 1.4rem; }
.teams-discovery .teams-hub-access > .teams-hub-tile { background: var(--panel-strong); }
.teams-discovery .teams-hub-access h2 { max-width: 23ch; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; letter-spacing: -.035em; font-weight: 800; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-access > p:not(.teams-hub-kicker) { font-size: .87rem; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.teams-discovery .teams-hub-access-actions { display: grid; gap: .55rem; margin-block-start: .25rem; }
.teams-discovery .teams-hub-access-links { display: grid; padding-block-start: .5rem; border-block-start: 1px solid var(--teams-hub-line); }
.teams-discovery .teams-hub-access-links .teams-hub-text-link { justify-content: space-between; }
.teams-discovery .teams-hub-slot-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; }
.teams-discovery .teams-hub-slot-summary > span { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.teams-discovery .teams-hub-slot-summary > strong { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.teams-discovery .teams-hub-slot-summary small { color: var(--muted); font-size: .9rem; font-weight: 650; }
.teams-discovery .teams-hub-slot-track { height: .45rem; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.teams-discovery .teams-hub-slot-track > span { display: block; height: 100%; border-radius: inherit; background: var(--teams-hub-accent); }
.teams-discovery .teams-hub-slot-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.teams-discovery .teams-hub-slot-facts strong { color: var(--ink); font-weight: 750; }
.teams-discovery .teams-hub-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1rem; margin-block-end: 1rem; }
.teams-discovery .teams-hub-section-heading .teams-hub-kicker { margin-block-end: .35rem; }
.teams-discovery .teams-hub-section-heading h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.teams-discovery .teams-hub-section-heading > p, .teams-discovery .teams-hub-section-heading h2 + p { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.teams-discovery .teams-hub-section-heading h2 + p { margin-block-start: .35rem; }
.teams-discovery .teams-hub-feature-grid, .teams-discovery .teams-hub-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.teams-discovery .teams-hub-feature, .teams-discovery .teams-hub-card { display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.1rem, 2vw, 1.5rem); border: 1px solid var(--teams-hub-line); border-radius: 1.25rem; background: var(--panel); box-shadow: 0 4px 16px color-mix(in srgb, var(--ink) 3%, transparent); }
.teams-discovery .teams-hub-feature h3, .teams-discovery .teams-hub-card h3 { font-size: 1.06rem; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-feature > p, .teams-discovery .teams-hub-card-note { max-width: 70ch; color: var(--muted); font-size: .87rem; line-height: 1.7; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.teams-discovery .teams-hub-card-title > p { margin-block-start: .25rem; color: var(--muted); font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: auto; padding-block-start: 1rem; border-block-start: 1px solid var(--teams-hub-line); }
.teams-discovery .teams-hub-card-actions .teams-hub-action { font-size: .79rem; padding: .55rem .75rem; }
.teams-discovery .teams-hub-inline-form { display: inline-flex; margin: 0; max-width: 100%; }
.teams-discovery .teams-hub-team-grid > :only-child { grid-column: 1 / -1; }
.teams-discovery .teams-hub-badge { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; max-width: 100%; padding: .35rem .65rem; border: 1px solid var(--teams-hub-line); border-radius: 999px; color: var(--muted); background: var(--panel-strong); font-size: .71rem; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-badge:is(.is-active, .is-suspended)::before { content: ""; width: .4rem; height: .4rem; flex: 0 0 .4rem; border-radius: 50%; background: currentColor; }
.teams-discovery .teams-hub-badge.is-active { color: var(--ink); background: color-mix(in srgb, var(--success) 12%, var(--panel-strong)); }
.teams-discovery .teams-hub-badge.is-active::before { background: color-mix(in srgb, var(--success) 55%, var(--ink)); }
.teams-discovery .teams-hub-badge.is-suspended { color: var(--ink); background: color-mix(in srgb, var(--warning) 14%, var(--panel-strong)); }
.teams-discovery .teams-hub-badge.is-suspended::before { background: color-mix(in srgb, var(--warning) 55%, var(--ink)); }
.teams-discovery .teams-hub-empty { display: flex; align-items: center; gap: 1.15rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--teams-hub-line); border-radius: 1.25rem; background: var(--teams-hub-soft); }
.teams-discovery .teams-hub-empty > div { flex: 1; }
.teams-discovery .teams-hub-empty > .teams-hub-tile { background: var(--panel-strong); }
.teams-discovery .teams-hub-empty h3 { font-size: 1.08rem; line-height: 1.4; letter-spacing: -.02em; font-weight: 800; }
.teams-discovery .teams-hub-empty p { max-width: 70ch; margin-block-start: .4rem; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.teams-discovery .teams-hub-warning { display: grid; gap: .65rem; border: 1px solid color-mix(in srgb, var(--warning) 50%, var(--ink)); border-radius: 1.25rem; padding: 1.25rem; background: color-mix(in srgb, var(--warning) 10%, var(--panel-strong)); }
.teams-discovery .teams-hub-warning h2 { font-size: 1.1rem; line-height: 1.4; }
.teams-discovery .teams-hub-warning p { color: var(--muted); font-size: .87rem; line-height: 1.65; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.teams-discovery .teams-hub-start-card { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; padding: clamp(1.15rem, 2.5vw, 1.75rem); border: 1px solid var(--teams-hub-line); border-radius: 1.25rem; background: var(--teams-hub-soft); }
.teams-discovery .teams-hub-start-card > .teams-hub-tile { background: var(--panel-strong); }
.teams-discovery .teams-hub-start-card h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }
.teams-discovery .teams-hub-start-card > p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.teams-discovery .teams-hub-start-card > .teams-hub-text-link { margin-block-start: auto; }
.teams-discovery .teams-hub-plan-row { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; }
.teams-discovery .teams-hub-plan-row > span { display: grid; gap: .2rem; flex: 1 1 6rem; padding: .65rem .75rem; background: var(--panel-strong); border: 1px solid var(--teams-hub-line); border-radius: .85rem; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.teams-discovery .teams-hub-plan-row strong { font-size: .8rem; color: var(--ink); }
.teams-discovery .teams-hub-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .85rem; }
.teams-discovery .teams-hub-more-link { display: flex; align-items: center; gap: .75rem; min-height: 92px; padding: 1rem; border: 1px solid var(--teams-hub-line); border-radius: 1rem; background: var(--panel); }
.teams-discovery .teams-hub-more-link .teams-hub-tile { width: 2.4rem; height: 2.4rem; flex-basis: 2.4rem; border: 0; border-radius: .75rem; }
.teams-discovery .teams-hub-more-link .teams-hub-tile .teams-hub-icon { width: 1.2rem; height: 1.2rem; }
.teams-discovery .teams-hub-more-link > span:nth-child(2) { flex: 1; }
.teams-discovery .teams-hub-more-link strong { display: block; font-size: .9rem; line-height: 1.45; font-weight: 750; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-more-link small { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .76rem; line-height: 1.6; margin-block-start: .1rem; }
.teams-discovery .teams-hub-more-link > .teams-hub-icon { width: 1rem; height: 1rem; }
.teams-discovery .teams-hub-help { border: 1px solid var(--teams-hub-line); border-radius: 1.1rem; background: var(--panel); }
.teams-discovery .teams-hub-help > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 60px; padding: 1rem 1.25rem; border-radius: 1.1rem; cursor: pointer; font-weight: 750; font-size: .95rem; list-style: none; }
.teams-discovery .teams-hub-help > summary::-webkit-details-marker { display: none; }
.teams-discovery .teams-hub-help > summary > .teams-hub-icon { transition: transform .16s ease; }
.teams-discovery .teams-hub-help[open] > summary > .teams-hub-icon { transform: rotate(180deg); }
.teams-discovery .teams-hub-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; padding: .25rem 1.25rem 1.25rem; }
.teams-discovery .teams-hub-help-grid h2 { margin-block-end: .45rem; font-size: .95rem; line-height: 1.4; font-weight: 750; }
.teams-discovery .teams-hub-help-grid p { color: var(--muted); font-size: .85rem; line-height: 1.75; }
.teams-discovery .teams-hub-text-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .82rem; line-height: 1.4; font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; }
.teams-discovery .teams-hub-note, .teams-discovery .teams-hub-access > .teams-hub-note { color: var(--muted); font-size: .76rem; line-height: 1.65; }
.teams-discovery .teams-hub-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Preserve the existing invite popup and form contracts; keep the panel scrollable on small screens. */
.teams-discovery .teams-hub-invite-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(5, 8, 18, .62); backdrop-filter: blur(6px); padding: 1rem; }
.teams-discovery .teams-hub-invite { display: grid; gap: 1rem; width: min(560px, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid var(--teams-hub-line); border-radius: 1.5rem; background: var(--panel-strong); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .38); }
.teams-discovery .teams-hub-invite h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
.teams-discovery .teams-hub-invite > p:not(.teams-hub-kicker), .teams-discovery .teams-hub-invite-message { font-size: .9rem; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.teams-discovery .teams-hub-invite-message { padding: .75rem 1rem; background: var(--teams-hub-soft); border-inline-start: 3px solid var(--teams-hub-accent); border-radius: .75rem; }
.teams-discovery .teams-hub-invite .teams-hub-actions { margin-block-start: .25rem; }
@media (hover: hover) {
    .teams-discovery .teams-hub-action:hover { transform: translateY(-2px); border-color: var(--ink); }
    .teams-discovery .teams-hub-action-primary:hover { opacity: .92; }
    .teams-discovery .teams-hub-more-link:hover { border-color: var(--ink); }
    .teams-discovery .teams-hub-help > summary:hover { background: var(--teams-hub-soft); }
    .teams-discovery .teams-hub-text-link:hover { text-decoration-color: currentColor; }
}
@media (min-width: 961px) {
    .teams-discovery .teams-hub-team-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .teams-discovery .teams-hub-hero { gap: 1.5rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .teams-discovery .teams-hub-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.4rem); }
    .teams-discovery .teams-hub-feature-grid, .teams-discovery .teams-hub-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teams-discovery .teams-hub-more-grid { grid-template-columns: 1fr; }
    .teams-discovery .teams-hub-more-link { min-height: 82px; }
    .teams-discovery .teams-hub-empty { flex-wrap: wrap; }
}
@media (max-width: 720px) {
    .teams-discovery .teams-hub-hero { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; gap: 1.5rem; }
    .teams-discovery .teams-hub-hero h1 { max-width: 22ch; font-size: clamp(2.2rem, 7.7vw, 3.4rem); }
    .teams-discovery .teams-hub-intro { max-width: 58ch; }
    .teams-discovery .teams-hub-access h2 { max-width: none; }
    .teams-discovery .teams-hub-start-grid, .teams-discovery .teams-hub-help-grid { grid-template-columns: 1fr; }
    .teams-discovery .teams-hub-help-grid { gap: 1.25rem; }
}
@media (max-width: 540px) {
    .teams-discovery { gap: 1.6rem; }
    .teams-discovery .teams-hub-feature-grid, .teams-discovery .teams-hub-team-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
    .teams-discovery .teams-hub-hero { padding: 1.1rem; }
    .teams-discovery .teams-hub-hero-copy > .teams-hub-kicker { font-size: .65rem; }
    .teams-discovery .teams-hub-actions .teams-hub-action { flex: 1 1 auto; }
    .teams-discovery .teams-hub-feature, .teams-discovery .teams-hub-card { padding: 1.15rem; }
    .teams-discovery .teams-hub-section-heading > p { font-size: .8rem; }
    .teams-discovery .teams-hub-empty { flex-direction: column; align-items: flex-start; }
    .teams-discovery .teams-hub-empty > .teams-hub-action { width: 100%; }
}
@media (max-width: 360px) {
    .teams-discovery .teams-hub-hero { padding: 1rem; }
    .teams-discovery .teams-hub-hero h1 { font-size: 2.1rem; }
    .teams-discovery .teams-hub-actions { flex-direction: column; }
}
html[dir="rtl"] .teams-discovery :is(.teams-hub-more-link, .teams-hub-text-link, .teams-hub-action-primary) > .teams-hub-icon { transform: scaleX(-1); }
html[data-contrast-preference="boost"] .teams-discovery { --teams-hub-line: color-mix(in srgb, var(--ink) 45%, transparent); --teams-hub-accent: var(--ink); }
html[data-contrast-preference="boost"] .teams-discovery :is(p, small, .teams-hub-badge) { color: var(--ink); }
html[data-motion-preference="reduce"] .teams-discovery :is(.teams-hub-action, summary > .teams-hub-icon),
body.accessibility-motion-reduce .teams-discovery :is(.teams-hub-action, summary > .teams-hub-icon) { transition: none !important; }
html[data-motion-preference="reduce"] .teams-discovery .teams-hub-action:hover,
body.accessibility-motion-reduce .teams-discovery .teams-hub-action:hover { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
    .teams-discovery :is(.teams-hub-action, summary > .teams-hub-icon) { transition: none !important; }
    .teams-discovery .teams-hub-action:hover { transform: none !important; }
}
@media (forced-colors: active) {
    .teams-discovery :is(.teams-hub-hero, .teams-hub-access, .teams-hub-feature, .teams-hub-card, .teams-hub-start-card, .teams-hub-empty, .teams-hub-more-link, .teams-hub-help, .teams-hub-tile, .teams-hub-brand, .teams-hub-warning, .teams-hub-invite) { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
    .teams-discovery :is(.teams-hub-card-actions, .teams-hub-access-links) { border-color: CanvasText; }
    html[data-theme] .teams-discovery a.teams-hub-action.teams-hub-action-primary,
html[data-theme] .teams-discovery button.teams-hub-action.teams-hub-action-primary,
    .teams-discovery .teams-hub-action { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
    .teams-discovery .teams-hub-text-link { color: LinkText; text-decoration: underline; }
    .teams-discovery .teams-hub-badge { border-color: CanvasText; }
}
