html body.mosaicglass-site {
    --polish-line: rgb(var(--mg-edge-rgb) / .22);
    --polish-wash: rgb(var(--mg-edge-rgb) / .055);
    --polish-reading: rgb(var(--mg-glass-rgb) / .97);
    font-size: 15px;
    text-rendering: optimizeLegibility;
}

:root[data-theme] body.mosaicglass-site .background-slideshow {
    background-image: linear-gradient(180deg, rgb(var(--mg-glass-rgb) / .67), rgb(var(--mg-glass-rgb) / .9) 65%, rgb(var(--mg-glass-rgb) / .97)), url("../images/site-background-20260731-211225.jpg");
}

html body.mosaicglass-site :is(h1, h2, h3) {
    text-wrap: balance;
}

html body.mosaicglass-site :is(.page-kicker, .section-kicker, .story-kicker, .aw-card-kicker, .article-section) {
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.5;
}

html body.mosaicglass-site :is(.page-lead, .aw-lead, .aw-hero p) {
    max-width: 62ch;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.7;
}

html body.mosaicglass-site .editorial-header {
    border-color: var(--polish-line);
}

html body.mosaicglass-site .editorial-header-main {
    padding-block: 12px 6px;
    gap: 12px 20px;
}

html body.mosaicglass-site .brand-copy strong {
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -.04em;
}

html body.mosaicglass-site .site-nav {
    gap: 4px;
}

html body.mosaicglass-site .site-nav .nav-link {
    min-height: 44px;
    padding: 10px 16px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--mg-muted);
    font-size: .81rem;
    letter-spacing: 0;
    --mg-crack: 0;
    --mg-edge-emission: 0;
    --mg-scan: 0;
    --mg-crack-flow: 0;
}

html body.mosaicglass-site .site-nav .nav-link:is(:hover, :focus-visible) {
    color: var(--mg-text);
    background: var(--polish-wash);
    border-color: var(--polish-line);
}

html body.mosaicglass-site .site-nav .nav-link[aria-current="page"] {
    color: var(--mg-selected);
    border-color: var(--polish-line);
    border-bottom-color: var(--mg-selected);
    background: rgb(var(--mg-edge-rgb) / .09);
    box-shadow: inset 0 -1px 0 var(--mg-selected);
}

html body.mosaicglass-site .header-links-disclosure {
    width: 100%;
    min-width: 0;
}

html body.mosaicglass-site .header-links-disclosure > summary {
    display: none;
}

html body.mosaicglass-site .editorial-utility {
    min-height: 48px;
    padding-block: 6px;
    border-color: var(--polish-line);
    gap: 16px;
}

html body.mosaicglass-site .editorial-header .menu-item {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    --mg-crack: 0;
    --mg-scan: 0;
    --mg-crack-flow: 0;
}

html body.mosaicglass-site .editorial-header .menu-item:is(:hover, :focus-visible) {
    background: var(--polish-wash);
    border-color: rgb(var(--mg-edge-rgb) / .45);
}

:root[data-theme="dark"] body.mosaicglass-site .editorial-header #x-button .icon {
    filter: invert(1);
}

html body.mosaicglass-site :is(.site-main, .aw-main) {
    padding-top: 32px;
}

html body.mosaicglass-site :is(.page-intro, .aw-hero, .aw-page-heading) {
    padding: clamp(28px, 4vw, 52px);
    border-color: rgb(var(--mg-edge-rgb) / .32);
    border-top-color: rgb(var(--mg-edge-rgb) / .6);
    margin-bottom: 28px;
}

html body.mosaicglass-site.home-page .page-intro {
    min-height: 310px;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr);
    align-items: center;
    gap: 32px;
}

html body.mosaicglass-site :is(.page-title, .aw-hero h1) {
    max-width: 16ch;
    margin-block: 12px 18px;
    font-size: clamp(38px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.045em;
}

html body.mosaicglass-site .aw-page-heading h1 {
    font-weight: 700;
    line-height: 1.15;
}

html body.mosaicglass-site.home-page .search-container {
    width: 100%;
    max-width: none;
    align-self: end;
    margin-bottom: 4px;
}

html body.mosaicglass-site #news-search {
    min-height: 52px;
    font-size: .9rem;
    border-color: rgb(var(--mg-edge-rgb) / .45);
}

html body.mosaicglass-site .home-grid {
    gap: 28px;
    padding-top: 8px;
}

html body.mosaicglass-site :is(.stream-heading, .aw-section-heading) {
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--polish-line);
    gap: 18px;
}

html body.mosaicglass-site :is(.stream-heading h2, .aw-section-heading h2) {
    margin-block: 4px 0;
    font-size: clamp(22px, 2.2vw, 29px);
    letter-spacing: -.03em;
}

html body.mosaicglass-site :is(.news-item, .aw-mod-card, .aw-post-card, .aw-comment-card, .aw-mod-comment) {
    border-color: var(--polish-line);
}

html body.mosaicglass-site:is(.home-page, .news-page) .news-item {
    padding: 24px;
    gap: 24px;
}

html body.mosaicglass-site:is(.home-page, .news-page) .news-title {
    font-weight: 680;
    letter-spacing: -.03em;
    line-height: 1.28;
}

html body.mosaicglass-site:is(.home-page, .news-page) .news-item .news-text {
    max-width: 64ch;
    line-height: 1.65;
    font-size: .9rem;
}

html body.mosaicglass-site .news-item .news-date {
    margin-block: 10px 14px;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}

html body.mosaicglass-site.home-page .news-item:first-child.has-image {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    border-top-color: rgb(var(--mg-edge-rgb) / .52);
}

html body.mosaicglass-site.home-page .news-item:first-child .news-title {
    font-size: clamp(23px, 2.2vw, 32px);
}

html body.mosaicglass-site.home-page .news-item:first-child img {
    width: 100%;
    height: auto;
    max-height: 300px;
    align-self: center;
    object-fit: contain;
}

html body.mosaicglass-site :is(.featured-story, .sidebar-card) {
    padding: 26px;
    border-color: var(--polish-line);
}

html body.mosaicglass-site .home-sidebar {
    gap: 20px;
}

html body.mosaicglass-site .home-sidebar h2 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 680;
    letter-spacing: -.035em;
}

html body.mosaicglass-site :is(.aw-section-card, .aw-form-card, .aw-auth-card, .aw-reply-card) {
    padding: clamp(20px, 3vw, 32px);
}

html body.mosaicglass-site :is(.aw-topic-row, .aw-member-row, .aw-conversation-row, .aw-notification-row, .aw-my-mod-row) {
    border-color: var(--polish-line);
    padding: 20px;
    gap: 18px;
}

html body.mosaicglass-site .aw-topic-title {
    font-size: 1.18rem;
    line-height: 1.4;
    letter-spacing: -.015em;
}

html body.mosaicglass-site :is(.aw-forum-filter-summary, .aw-workshop-results) {
    padding-block: 18px 8px;
    border-color: var(--polish-line);
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

html body.mosaicglass-site :is(.aw-form, .aw-forum-filters) label {
    line-height: 1.5;
    font-weight: 600;
    font-size: .82rem;
}

html body.mosaicglass-site :is(.aw-form, .aw-forum-filters) :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) {
    border-width: 1px;
    border-color: rgb(var(--mg-edge-rgb) / .37);
}

html body.mosaicglass-site :is(.aw-form, .aw-forum-filters) :is(input, select, textarea):focus-visible {
    border-color: var(--mg-focus);
}

html body.mosaicglass-site .aw-empty-state {
    padding: clamp(32px, 5vw, 64px) 24px;
    border-style: solid;
    border-color: var(--polish-line);
}

html body.mosaicglass-site .aw-empty-state :is(h2, h3) {
    font-size: clamp(24px, 2.4vw, 32px);
    letter-spacing: -.035em;
    margin-bottom: 12px;
}

html body.mosaicglass-site .aw-empty-state p {
    max-width: 56ch;
    margin-inline: auto;
    line-height: 1.7;
}

html body.mosaicglass-site .aw-mod-card {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 22px;
    gap: 20px;
}

html body.mosaicglass-site .aw-mod-card h2 {
    font-size: 1.25rem;
    line-height: 1.35;
}

html body.mosaicglass-site .aw-mod-card p {
    font-size: .85rem;
    line-height: 1.6;
}

html body.mosaicglass-site .aw-mod-card-stats {
    padding-top: 14px;
    border-top: 1px solid var(--polish-line);
    font-variant-numeric: tabular-nums;
}

html body.mosaicglass-site.tutorial-page .article-title {
    max-width: 26ch;
    font-size: clamp(34px, 3.7vw, 54px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.16;
    margin-block: 26px 32px;
}

html body.mosaicglass-site.tutorial-page .sidebar {
    padding: 12px;
    background: var(--polish-reading);
    border-color: var(--polish-line);
}

html body.mosaicglass-site.tutorial-page .guide-v1-toc a {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    margin-block: 4px;
    min-height: 48px;
    padding: 12px;
    font-size: .82rem;
    line-height: 1.45;
}

html body.mosaicglass-site.tutorial-page .guide-v1-toc a:is(:hover, :focus-visible, [aria-current="true"]) {
    background: var(--polish-wash);
    border-color: var(--polish-line);
    border-inline-start: 2px solid var(--mg-selected);
    color: var(--mg-text);
}

html body.mosaicglass-site .guide-v1-intro {
    padding: clamp(24px, 3vw, 36px);
    gap: 28px;
    border-top-color: rgb(var(--mg-edge-rgb) / .6);
}

html body.mosaicglass-site .guide-text-chapter {
    padding: clamp(22px, 3vw, 36px);
    margin-top: 28px;
    background: var(--polish-reading);
    border-color: var(--polish-line);
}

html body.mosaicglass-site .guide-text-chapter > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--polish-line);
    gap: 12px;
}

html body.mosaicglass-site .guide-text-chapter > header h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: clamp(25px, 2.8vw, 36px);
    font-weight: 680;
    letter-spacing: -.035em;
    line-height: 1.25;
}

html body.mosaicglass-site .guide-text-chapter > header > p {
    margin: 0;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.5;
}

html body.mosaicglass-site .guide-text-blocks {
    gap: 18px;
}

html body.mosaicglass-site :is(.guide-text-card, .guide-text-controls, .guide-text-metric, .guide-text-summary) {
    padding: 22px;
    border-color: var(--polish-line);
    background: var(--polish-wash);
}

html body.mosaicglass-site :is(.guide-text-card, .guide-text-controls) :is(p, li) {
    line-height: 1.75;
    font-size: .95rem;
}

html body.mosaicglass-site :is(.guide-text-card, .guide-text-controls, .guide-text-metric, .guide-text-summary) h3 {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.4;
}

html body.mosaicglass-site .guide-text-metric {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

html body.mosaicglass-site .guide-text-metric-value {
    max-width: 100%;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

html body.mosaicglass-site.about-page .article-title {
    max-width: 24ch;
    font-size: clamp(36px, 4vw, 58px);
    letter-spacing: -.045em;
    line-height: 1.15;
    font-weight: 700;
}

html body.mosaicglass-site.about-page .about-fact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
    margin-block: 28px 36px;
}

html body.mosaicglass-site.about-page .about-fact-list li {
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--polish-line);
    border-inline-start: 2px solid rgb(var(--mg-edge-rgb) / .55);
    background: var(--polish-wash);
    line-height: 1.7;
    font-size: 1rem;
}

html body.mosaicglass-site.about-page .about-developer-list {
    line-height: 1.85;
    font-size: 1rem;
    max-width: 80ch;
}

html body.mosaicglass-site.about-page .about-photo-series {
    margin-top: 36px;
    gap: 28px;
}

html body.mosaicglass-site.about-page .about-photo figcaption {
    padding: 20px 24px;
    line-height: 1.75;
    font-size: .92rem;
}

@media (max-width: 1000px) {
    html body.mosaicglass-site.home-page .page-intro {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    html body.mosaicglass-site.home-page .search-container { max-width: 520px; }
}

@media (max-width: 720px) {
    html body.mosaicglass-site :is(.page-intro, .aw-hero, .aw-page-heading) {
        padding: 26px;
        gap: 22px;
    }
    html body.mosaicglass-site :is(.page-title, .aw-hero h1) {
        max-width: none;
        font-size: clamp(32px, 7vw, 44px);
    }
    html body.mosaicglass-site:is(.home-page, .news-page) .news-item { padding: 20px; gap: 20px; }
    html body.mosaicglass-site.home-page .news-item:first-child.has-image { grid-template-columns: minmax(0, 1fr); }
    html body.mosaicglass-site.home-page .news-item:first-child img { max-height: 340px; }
    html body.mosaicglass-site.about-page .about-fact-list { grid-template-columns: minmax(0, 1fr); }
    html body.mosaicglass-site .aw-mod-card { grid-template-columns: 80px minmax(0, 1fr); padding: 18px; gap: 16px; }
}

@media (max-width: 600px) {
    html body.mosaicglass-site .editorial-header-main {
        grid-template-columns: minmax(0, 1fr) repeat(4, 44px);
        padding-block: 8px;
        gap: 6px;
    }
    html body.mosaicglass-site .header-contact { display: contents; }
    html body.mosaicglass-site .brand-link { grid-area: 1 / 1; width: 100%; }
    html body.mosaicglass-site .editorial-header .brand-copy { display: none; }
    html body.mosaicglass-site .editorial-header .left-logo img { width: 92px; max-width: 100%; }
    html body.mosaicglass-site .header-account {
        grid-column: 2 / 5;
        grid-row: 1;
        justify-self: end;
        max-width: 100%;
        padding: 6px 10px;
    }
    html body.mosaicglass-site .header-notifications { grid-area: 1 / 5; }
    html body.mosaicglass-site .language-picker { grid-area: 2 / 2; }
    html body.mosaicglass-site .mg-appearance { grid-area: 2 / 3; }
    html body.mosaicglass-site .mg-appearance > summary { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
    html body.mosaicglass-site .theme-toggle { grid-area: 2 / 4; }
    html body.mosaicglass-site .editorial-header .extra-button { grid-area: 2 / 5; }
    html body.mosaicglass-site .site-nav { gap: 4px; }
    html body.mosaicglass-site .site-nav .nav-link {
        padding: 8px 5px;
        min-height: 44px;
        font-size: .75rem;
        line-height: 1.3;
    }
    html body.mosaicglass-site .header-links-disclosure {
        width: var(--site-content-width);
        margin-inline: auto;
        border-top: 1px solid var(--polish-line);
    }
    html body.mosaicglass-site .header-links-disclosure > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        padding: 10px 4px;
        color: var(--mg-muted);
        font-size: .76rem;
        cursor: pointer;
        list-style: none;
    }
    html body.mosaicglass-site .header-links-disclosure > summary::-webkit-details-marker { display: none; }
    html body.mosaicglass-site .header-links-disclosure > summary svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
    }
    html body.mosaicglass-site .header-links-disclosure[open] > summary svg { transform: rotate(180deg); }
    html body.mosaicglass-site .editorial-utility { width: 100%; border: 0; padding-block: 4px 12px; }
    html body.mosaicglass-site :is(.site-main, .aw-main) { padding-top: 20px; }
    html body.mosaicglass-site :is(.page-intro, .aw-hero, .aw-page-heading) { padding: 24px; margin-bottom: 22px; }
    html body.mosaicglass-site :is(.aw-topic-row, .aw-member-row, .aw-conversation-row, .aw-notification-row, .aw-my-mod-row) { padding: 16px; }
    html body.mosaicglass-site.tutorial-page .article-title { margin-block: 22px; }
    html body.mosaicglass-site .guide-text-chapter { padding: 20px; }
    html body.mosaicglass-site :is(.guide-text-card, .guide-text-controls, .guide-text-metric, .guide-text-summary) { padding: 18px; }
}

@media (prefers-contrast: more) {
    html body.mosaicglass-site { --polish-line: rgb(var(--mg-edge-rgb) / .6); --polish-wash: rgb(var(--mg-edge-rgb) / .1); }
}

html body.mosaicglass-site .editorial-header :is(.language-picker-menu, .mg-appearance-panel, .header-notifications-panel) {
    position: fixed;
    top: var(--site-popover-top, var(--site-popover-fallback-top, 64px));
    left: var(--site-popover-left, auto);
    right: 16px;
    bottom: auto;
    margin: 0;
    width: min(340px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - var(--site-popover-top, var(--site-popover-fallback-top, 64px)) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-color: rgb(var(--mg-edge-rgb) / .45);
    background: rgb(var(--mg-glass-rgb));
    --mg-opacity: 1;
}

html body.mosaicglass-site .editorial-header :is(.language-picker-menu, .mg-appearance-panel, .header-notifications-panel)[popover]:not(:popover-open) {
    display: none;
}

html body.mosaicglass-site .editorial-header .language-picker-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    gap: 4px;
}

html body.mosaicglass-site .editorial-header .language-picker-menu a {
    min-width: 0;
    min-height: 44px;
    padding: 10px;
    font-size: .8rem;
    line-height: 1.4;
    font-weight: 550;
    overflow-wrap: anywhere;
    border: 1px solid transparent;
}

html body.mosaicglass-site .editorial-header .language-picker-menu a[aria-current="true"] {
    border-color: var(--polish-line);
    background: var(--polish-wash);
    font-weight: 700;
}

html body.mosaicglass-site .editorial-header .mg-appearance-panel {
    padding: 24px;
}

html body.mosaicglass-site .mg-appearance-title {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--polish-line);
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -.02em;
}

html body.mosaicglass-site .mg-appearance :is(legend, .mg-effects-label) {
    font-size: .8rem;
    margin-bottom: 10px;
}

html body.mosaicglass-site .mg-palette-button {
    min-height: 76px;
    padding: 12px 6px;
    gap: 10px;
    font-size: .8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

html body.mosaicglass-site .mg-palette-button[aria-pressed="true"] {
    outline: 2px solid var(--mg-selected);
    outline-offset: -2px;
    background-color: rgb(var(--mg-edge-rgb) / .13);
}

html body.mosaicglass-site .mg-palette-swatch {
    position: relative;
    width: 32px;
    height: 20px;
}

html body.mosaicglass-site .mg-palette-button[aria-pressed="true"] .mg-palette-swatch::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgb(var(--mg-swatch-edge));
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

html body.mosaicglass-site .mg-motion-label {
    min-height: 44px;
    border-top: 1px solid var(--polish-line);
    font-size: .87rem;
    cursor: pointer;
}

html body.mosaicglass-site .mg-motion-label input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--mg-selected);
}

html body.mosaicglass-site .mg-motion-note {
    margin-top: 4px;
    font-size: .76rem;
    line-height: 1.6;
}

html body.mosaicglass-site .aw-pagination {
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--polish-line);
}

html body.mosaicglass-site .aw-pagination a {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    font-variant-numeric: tabular-nums;
}

html body.mosaicglass-site .aw-pagination a:is(.is-active, [aria-current="page"]) {
    background: var(--polish-wash);
    border-color: var(--mg-selected);
    color: var(--mg-selected);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--mg-selected);
}

html body.mosaicglass-site .aw-breadcrumbs {
    min-height: 44px;
    flex-wrap: wrap;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

html body.mosaicglass-site :is(.aw-button, .aw-text-button):disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    html body.mosaicglass-site .editorial-header { --site-popover-fallback-top: 112px; }
}

@media (max-width: 400px) {
    html body.mosaicglass-site .editorial-header .language-picker-menu {
        grid-template-columns: minmax(0, 1fr);
    }
    html body.mosaicglass-site .editorial-header .mg-appearance-panel { padding: 20px; }
    html body.mosaicglass-site .mg-palettes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
