/* Synthsphere on the web (KAN-346): the layout both sites share, in Fluent 2's design tokens (the --color…, --spacing…,
   --font… custom properties Fluent UI sets for the theme), so every colour follows the theme: Synthsphere's own, Light
   or Dark (KAN-347). Nothing here picks a colour of its own. */

:root {
    --ss-content-width: 1120px;
    --ss-reading-width: 760px;
    --ss-gutter: 16px;
}

html {
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--colorNeutralBackground2);
    color: var(--colorNeutralForeground1);
    font-family: var(--fontFamilyBase);
    font-size: var(--fontSizeBase300);
    line-height: var(--lineHeightBase300);
}

/* WCAG 2.4.7: where the keyboard is, always visible. A page's heading and its main content take the focus after a
   navigation, for screen readers, without an outline: the keyboard isn't on them. */
:focus-visible {
    outline: 2px solid var(--colorStrokeFocus2);
    outline-offset: 2px;
}

h1:focus,
[tabindex="-1"]:focus {
    outline: none;
}

a {
    color: var(--colorBrandForegroundLink);
}

a:hover {
    color: var(--colorBrandForegroundLinkHover);
}

.ss-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--ss-content-width);
    margin-inline: auto;
    padding-inline: var(--ss-gutter);
}

.ss-reading {
    max-width: var(--ss-reading-width);
}

.ss-skip-link {
    position: absolute;
    inset-inline-start: 8px;
    top: -48px;
    z-index: 100;
    padding: 8px 12px;
    border-radius: var(--borderRadiusMedium);
    background: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    box-shadow: var(--shadow8);
}

.ss-skip-link:focus {
    top: 8px;
}

/* The mark: the round logo and the name. */
.ss-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--colorNeutralForeground1);
    text-decoration: none;
}

.ss-brand:hover {
    color: var(--colorNeutralForeground1);
}

.ss-brand-name {
    font-size: var(--fontSizeBase500);
    font-weight: var(--fontWeightSemibold);
}

/* The header both sites have: the mark, the navigation, the actions. */
.ss-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--colorNeutralBackground1);
    border-bottom: 1px solid var(--colorNeutralStroke2);
}

.ss-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    flex-wrap: wrap;
}

.ss-header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    flex: 1 1 auto;
}

.ss-header-nav a {
    color: var(--colorNeutralForeground2);
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.ss-header-nav a:hover,
.ss-header-nav a[aria-current="page"] {
    color: var(--colorNeutralForeground1);
    border-bottom-color: var(--colorBrandStroke1);
}

.ss-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

main {
    display: block;
}

.ss-page {
    padding-block: 32px 48px;
}

.ss-page h1 {
    margin: 0 0 8px;
    font-size: var(--fontSizeHero800);
    line-height: var(--lineHeightHero800);
    font-weight: var(--fontWeightSemibold);
}

.ss-page h2 {
    margin: 32px 0 8px;
    font-size: var(--fontSizeBase600);
    line-height: var(--lineHeightBase600);
    font-weight: var(--fontWeightSemibold);
}

.ss-page h3 {
    margin: 24px 0 8px;
    font-size: var(--fontSizeBase500);
    line-height: var(--lineHeightBase500);
    font-weight: var(--fontWeightSemibold);
}

.ss-lead {
    margin: 0 0 24px;
    font-size: var(--fontSizeBase400);
    line-height: var(--lineHeightBase400);
    color: var(--colorNeutralForeground2);
}

/* Cards in a grid that reflows from three across to one (WCAG 1.4.10: no sideways scrolling at 320 px). */
.ss-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.ss-card {
    box-sizing: border-box;
    padding: 20px;
    border-radius: var(--borderRadiusLarge);
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2);
    box-shadow: var(--shadow2);
}

.ss-card h2,
.ss-card h3 {
    margin-top: 0;
}

.ss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block: 16px;
}

.ss-notice {
    margin-block: 16px;
}

.ss-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 16px;
    color: var(--colorNeutralForeground2);
}

.ss-empty {
    padding: 32px 0;
}

.ss-language-links {
    display: flex;
    gap: 12px;
}

.ss-language-links [aria-current="true"] {
    font-weight: var(--fontWeightSemibold);
}

.ss-footer {
    margin-top: auto;
    background: var(--colorNeutralBackground1);
    border-top: 1px solid var(--colorNeutralStroke2);
    color: var(--colorNeutralForeground2);
}

.ss-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding-block: 24px;
}

.ss-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    flex: 1 1 auto;
}

.ss-footer-copyright {
    margin: 0;
}

.ss-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Windows' contrast themes: the browser's own colours, with the outlines Fluent's surfaces lose. */
@media (forced-colors: active) {
    .ss-card,
    .ss-header,
    .ss-footer {
        border: 1px solid CanvasText;
    }

    .ss-header-nav a[aria-current="page"] {
        border-bottom-color: Highlight;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
