/* =====================================================================
   VinDevs Developer OS, headquarters design language.
   =====================================================================
   Final token layer, loaded AFTER render.css → design-system.css →
   vd-console.css. Every legacy alias (--bg-*, --accent-*, --button-*,
   --radius-*, --shadow-*) is re-pointed here, never renamed, so ~34k
   lines of page CSS across 76 routes pick the new language up without
   being touched.

   Direction (creative brief): deep charcoal canvas, slate surfaces, one
   cool gray family, a single electric-blue accent (selection, focus,
   primary actions, AI), emerald for success, amber for warnings, soft
   red for errors. Gold remains reserved for premium surfaces only.
   Calm, precise motion. The UI recedes; the work is the hero.

   Precedence map (why each selector is shaped the way it is):
   - :root beats the ":root" passes earlier in the cascade by stylesheet
     order alone.
   - render.css carries later token passes at :is(html, body) specificity
     (the "CEO pass" line ~25112, the liquid-glass pass ~24507); matching
     that selector here wins by source order.
   - data-hype-theme is ALWAYS present (runtime defaults every visitor to
     the "simplistic" theme), and each theme sets its own canvas at
     :is(body, :root)[data-hype-theme="..."] specificity. The Developer
     OS look therefore redefines the DEFAULT theme ("simplistic") only,
     user-selected premium themes keep their exact current behavior.
   ===================================================================== */

:root {
    /* ---- One gray family: cool blue-slate, hue 252 ---- */
    --ds-canvas: oklch(14.5% 0.012 252);
    --ds-canvas-raised: oklch(17.5% 0.014 252);
    --ds-surface: oklch(20% 0.015 252);
    --ds-surface-hover: oklch(23% 0.018 252);
    --ds-surface-selected: oklch(26% 0.045 258);
    --ds-border: oklch(33% 0.018 252 / 0.66);
    --ds-border-strong: oklch(47% 0.024 252 / 0.72);
    --ds-text: oklch(96% 0.005 252);
    --ds-text-muted: oklch(77% 0.012 252);
    --ds-text-subtle: oklch(65% 0.012 252);

    /* ---- Single accent: electric blue ---- */
    --ds-accent: oklch(63% 0.19 260);
    --ds-accent-hover: oklch(68% 0.185 260);
    --ds-accent-ink: oklch(98% 0.005 260);

    /* ---- Semantic colours ---- */
    --ds-success: oklch(72% 0.13 162); /* emerald */
    --ds-warning: oklch(80% 0.13 80); /* amber */
    --ds-danger: oklch(70% 0.15 24); /* soft red */

    /* ---- Typography: confident display, quiet body, mono for data ---- */
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", sans-serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco,
        Consolas, "Liberation Mono", monospace;

    /* ---- Space to breathe (between vd-console tight and legacy blob) ---- */
    --surface-padding: clamp(20px, 1.8vw, 26px);
    --surface-gap: clamp(16px, 1.5vw, 20px);
}

/* =====================================================================
   Neutral chrome tokens. Matches the specificity of render.css's later
   :is(html, body) passes so these win by source order. Canvas/gradient
   tokens are deliberately ABSENT here, those belong to the theme layer
   below, so premium hype themes keep their own backgrounds.
   ===================================================================== */
:is(html, body):not([data-focus-mode="true"]) {
    --bg-surface: oklch(19% 0.015 252 / 0.92);
    --bg-glass: oklch(16% 0.014 252 / 0.85);
    --border-soft: oklch(80% 0.015 252 / 0.14);
    --border-strong: oklch(85% 0.018 252 / 0.26);
    --glass-border: oklch(90% 0.01 252 / 0.14);
    --text-strong: oklch(97% 0.004 252);
    --text-muted: oklch(88% 0.008 252 / 0.82);
    --text-subtle: oklch(84% 0.008 252 / 0.64);
    --accent-warning: oklch(80% 0.13 80);
    --accent-danger: oklch(70% 0.15 24);
    --accent-secondary: oklch(80% 0.02 252);

    /* Primary action: electric blue, white ink, one light source. */
    --button-primary-start: oklch(63% 0.19 260);
    --button-primary-end: oklch(57% 0.19 262);
    --button-primary-ink: oklch(98% 0.005 260);
    --button-primary-border: oklch(72% 0.16 260 / 0.55);
    --button-primary-shadow: 0 10px 26px oklch(40% 0.16 260 / 0.32);
    --button-primary-shadow-hover: 0 14px 32px oklch(42% 0.17 260 / 0.4);
    --button-focus-ring: oklch(68% 0.17 260 / 0.7);
    --button-secondary-bg-a: oklch(100% 0 0 / 0.09);
    --button-secondary-bg-b: oklch(100% 0 0 / 0.05);
    --button-secondary-border: oklch(100% 0 0 / 0.18);
    --button-secondary-shadow: 0 8px 20px oklch(10% 0.015 252 / 0.28);

    /* Depth carries the canvas hue. */
    --shadow-soft: 0 1px 0 oklch(100% 0 0 / 0.03),
        0 10px 26px oklch(8% 0.02 252 / 0.3);
    --shadow-strong: 0 1px 0 oklch(100% 0 0 / 0.04),
        0 24px 60px oklch(8% 0.02 252 / 0.42);

    /* Calm ambient wash, no rainbow. */
    --glow-a: oklch(85% 0.03 252 / 0.1);
    --glow-b: oklch(70% 0.06 260 / 0.09);
    --workspace-top-glow: oklch(80% 0.05 258 / 0.16);

    --immersive-nav-primary-rgb: 84, 128, 255;
    --immersive-nav-secondary-rgb: 126, 156, 255;

    /* Some components read the shorter alias. */
    --accent: var(--ds-accent);
}

/* Chrome glass, scoped to the default theme (and themeless first paint)
   because premium themes (cmd-terminal etc.) tint their own nav chrome. */
:is(html, body):not([data-focus-mode="true"]):not([data-hype-theme]),
:is(body, :root)[data-hype-theme="simplistic"] {
    --nav-surface: oklch(16% 0.014 252 / 0.8);
    --nav-blur: oklch(13% 0.012 252 / 0.74);
    --nav-border: oklch(100% 0 0 / 0.1);
}

/* The monochrome pass hard-coded the primary CTA to literal white,
   bypassing the token pipeline. Same selector, later source order:
   primary actions run through tokens again (electric blue). */
body:not([data-focus-mode="true"]) .button-primary,
body:not([data-focus-mode="true"]) .apply-button {
    background: linear-gradient(
        180deg,
        var(--button-primary-start),
        var(--button-primary-end)
    );
    color: var(--button-primary-ink);
    border-color: var(--button-primary-border);
    box-shadow: var(--button-primary-shadow);
}
body:not([data-focus-mode="true"]) .button-primary:hover,
body:not([data-focus-mode="true"]) .apply-button:hover {
    box-shadow: var(--button-primary-shadow-hover);
}
body:not([data-focus-mode="true"]) .button-primary:disabled,
body:not([data-focus-mode="true"]) .apply-button:disabled {
    box-shadow: none;
}

/* Home is the headquarters. The rail+home pass painted it monochrome
   silver; restore the single blue accent and the shared charcoal canvas
   at the same specificity. */
body[data-nav-shell="rail"][data-page="home"] {
    --accent: var(--ds-accent);
    --accent-primary: var(--ds-accent);
    --accent-secondary: oklch(80% 0.02 252);
    --button-primary-start: oklch(63% 0.19 260);
    --button-primary-end: oklch(57% 0.19 262);
    --button-primary-ink: oklch(98% 0.005 260);
    --button-primary-border: oklch(72% 0.16 260 / 0.55);
    --button-primary-shadow: 0 10px 26px oklch(40% 0.16 260 / 0.32);
    --button-primary-shadow-hover: 0 14px 32px oklch(42% 0.17 260 / 0.4);
    --bg-gradient:
        radial-gradient(
            120% 90% at 50% -20%,
            rgba(96, 132, 255, 0.07),
            transparent 62%
        ),
        #0e1116;
}

/* Panel fill: vd-console.css sets this alias at body specificity. */
body:not([data-focus-mode="true"]) {
    --bg-panel: oklch(18% 0.015 252 / 0.9);
}

/* Canvas when no theme attribute exists yet (no-JS / first SSR paint). */
:is(html, body):not([data-focus-mode="true"]):not([data-hype-theme]) {
    --bg-primary: oklch(14.5% 0.012 252);
}

/* =====================================================================
   The DEFAULT theme, redefined. "simplistic" is what every visitor sees
   until they pick a different look; it now IS the Developer OS: deep
   charcoal, one faint top light, an electric-blue accent. Same selector
   shape as the theme blocks in render.css, later source order wins.
   User-selected themes (galaxy, cmd-terminal, …) are untouched.
   ===================================================================== */
/* The token consumers for --bg-gradient/--bg-pattern were superseded by
   hard-coded body::before passes in render.css (~24516, ~25130), so the
   canvas must be painted at the ::before level too. Scoped to the default
   theme; premium themes keep their WebGL/FX backgrounds untouched. */
body[data-hype-theme="simplistic"]:not([data-focus-mode="true"])::before,
body:not([data-hype-theme]):not([data-focus-mode="true"])::before {
    background:
        radial-gradient(
            900px 560px at 78% -16%,
            rgba(255, 255, 255, 0.05),
            transparent 62%
        ),
        radial-gradient(
            700px 480px at 50% -12%,
            rgba(96, 132, 255, 0.09),
            transparent 60%
        ),
        linear-gradient(135deg, #0d1015 0%, #12151b 52%, #0b0d12 100%);
}

:is(body, :root)[data-hype-theme="simplistic"] {
    --hype-primary-rgb: 84, 128, 255;
    --hype-secondary-rgb: 126, 156, 255;
    --hype-ambient: #0e1116;
    --bg-primary: #0e1116;
    --accent-primary: var(--theme-accent, oklch(63% 0.19 260));
    --accent-secondary: oklch(80% 0.02 252);
    --bg-gradient:
        radial-gradient(
            120% 90% at 50% -20%,
            rgba(96, 132, 255, 0.08),
            transparent 62%
        ),
        #0e1116;
    --bg-pattern:
        radial-gradient(
            900px 560px at 78% -16%,
            rgba(255, 255, 255, 0.045),
            transparent 62%
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 88px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.016) 0,
            rgba(255, 255, 255, 0.016) 1px,
            transparent 1px,
            transparent 88px
        );
}

/* =====================================================================
   One accent, everywhere. The per-category swaps in render.css painted
   each section a different colour (mint, gold, blue, red), the exact
   "rainbow dashboard" the HQ language retires. Equal specificity, later
   source order: these win. Premium surfaces keep gold below.
   ===================================================================== */
.app-shell[data-category] {
    --glow-a: oklch(85% 0.03 252 / 0.1);
    --glow-b: oklch(70% 0.06 260 / 0.09);
    --workspace-top-glow: oklch(80% 0.05 258 / 0.16);
    --button-primary-start: oklch(63% 0.19 260);
    --button-primary-end: oklch(57% 0.19 262);
    --button-primary-ink: oklch(98% 0.005 260);
    --button-primary-border: oklch(72% 0.16 260 / 0.55);
    --button-primary-shadow: 0 10px 26px oklch(40% 0.16 260 / 0.32);
    --button-primary-shadow-hover: 0 14px 32px oklch(42% 0.17 260 / 0.4);
    --button-focus-ring: oklch(68% 0.17 260 / 0.7);
}
/* Premium is the one sanctioned exception: gold signals paid surfaces. */
.app-shell[data-category="promotions"] {
    --button-primary-start: #ffd978;
    --button-primary-end: #f3b549;
    --button-primary-ink: #2c1d05;
    --button-primary-border: rgba(255, 227, 150, 0.64);
    --button-primary-shadow: 0 14px 30px rgba(130, 89, 18, 0.36);
    --button-primary-shadow-hover: 0 18px 36px rgba(138, 93, 18, 0.44);
    --button-focus-ring: rgba(255, 220, 121, 0.68);
    --workspace-top-glow: rgba(255, 223, 132, 0.18);
}

/* =====================================================================
   Interaction feel: instant, physical, quiet.
   ===================================================================== */
.apply-button,
.ghost-button {
    transition:
        transform var(--motion-duration-short) var(--motion-ease-standard),
        box-shadow var(--motion-duration-short) var(--motion-ease-standard),
        background-color var(--motion-duration-short)
            var(--motion-ease-standard),
        border-color var(--motion-duration-short) var(--motion-ease-standard);
}
.apply-button:active,
.ghost-button:active {
    transform: translateY(0.5px) scale(0.985);
}

/* Keyboard focus is electric blue, always visible, never a glow bath. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    /* Token-driven: resolves gold on premium surfaces and black under the
       white-mode enforcer instead of hard-coding blue everywhere. */
    outline: 2px solid var(--button-focus-ring, var(--ds-accent));
    outline-offset: 2px;
}

/* Headlines: balanced wrapping, no orphans. Tracking is left to the
   design-system ramp so the size hierarchy stays consistent. */
h1,
h2,
h3 {
    text-wrap: balance;
}

/* Numbers in data surfaces read as data. */
.stat-value,
.stat-number,
.metric-value,
code,
kbd,
samp {
    font-variant-numeric: tabular-nums;
}

/* =====================================================================
   Guild directory and profile. Discord artwork carries each community's
   identity while the surrounding chrome stays in the Developer OS system.
   ===================================================================== */
.guilds-directory-page .section-block,
.guild-profile-page .section-block {
    border-color: var(--ds-border);
}

.guilds-directory-page .guild-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-block-end: var(--surface-gap);
}

.guilds-directory-page .guild-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.guilds-directory-page .guild-search input {
    width: 100%;
    min-height: 46px;
}

.guilds-directory-page .guild-search [data-guild-count] {
    min-width: 5.25rem;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.guild-directory-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 20rem), 1fr)
    );
    gap: var(--surface-gap);
}

.guild-discovery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-xl, 20px);
    background: var(--ds-surface);
    box-shadow: var(--shadow-soft);
    transition:
        transform 180ms cubic-bezier(0.25, 1, 0.5, 1),
        border-color 180ms cubic-bezier(0.25, 1, 0.5, 1),
        background-color 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.guild-discovery-card:hover {
    transform: translateY(-2px);
    border-color: var(--ds-border-strong);
    background: var(--ds-surface-hover);
}

.guild-discovery-cover,
.guild-profile-cover {
    position: relative;
    overflow: hidden;
    background: var(--ds-canvas-raised);
}

.guild-discovery-cover {
    height: 132px;
}

.guild-discovery-cover > img,
.guild-profile-cover > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.guild-discovery-cover::after,
.guild-profile-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        color-mix(in oklch, var(--ds-canvas) 54%, transparent)
    );
}

.guild-discovery-cover-fallback,
.guild-profile-cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: color-mix(in oklch, var(--ds-text) 30%, transparent);
    background:
        radial-gradient(
            circle at 78% 16%,
            color-mix(in oklch, var(--ds-accent) 24%, transparent),
            transparent 46%
        ),
        linear-gradient(
            135deg,
            var(--ds-surface-selected),
            var(--ds-canvas-raised)
        );
}

.guild-discovery-cover-fallback img,
.guild-profile-cover-fallback img {
    width: 58%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(7px) saturate(0.78);
    transform: scale(1.25);
}

.guild-discovery-cover-fallback span,
.guild-profile-cover-fallback span {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    opacity: 0.34;
}

.guild-discovery-body {
    padding: 0 clamp(18px, 2vw, 22px) 20px;
}

.guild-discovery-identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
}

.guild-discovery-avatar,
.guild-profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    color: var(--ds-text);
    background: var(--ds-surface-selected);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.guild-discovery-avatar {
    width: 76px;
    height: 76px;
    margin-block-start: -38px;
    border: 5px solid var(--ds-surface);
    border-radius: 24px;
    font-size: 1.25rem;
    box-shadow: 0 12px 28px
        color-mix(in oklch, var(--ds-canvas) 62%, transparent);
}

.guild-discovery-card:hover .guild-discovery-avatar {
    border-color: var(--ds-surface-hover);
}

.guild-discovery-avatar img,
.guild-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.guild-discovery-copy {
    min-width: 0;
    margin-block-start: 14px;
}

.guild-discovery-copy h3 {
    margin: 0;
    overflow: hidden;
    color: var(--ds-text);
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-discovery-copy p {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--ds-text-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-discovery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-block-start: 18px;
    padding-block-start: 16px;
    border-top: 1px solid var(--ds-border);
}

.guild-member-count {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ds-text-subtle);
    font-size: 0.78rem;
    white-space: nowrap;
}

.guild-member-count svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.guild-member-count strong {
    color: var(--ds-text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.guild-discovery-footer .button,
.guild-profile-actions .button {
    border-radius: var(--radius-md, 10px);
}

.guild-directory-empty {
    margin: var(--surface-gap) 0 0;
    padding: 24px;
    border: 1px dashed var(--ds-border-strong);
    border-radius: var(--radius-lg, 16px);
    color: var(--ds-text-muted);
    text-align: center;
}

.guild-directory-empty[hidden] {
    display: none;
}

.guild-profile-page main .container {
    max-width: 1180px;
}

.guild-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-block-end: 14px;
    color: var(--ds-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.guild-profile-back:hover {
    color: var(--ds-text);
}

.guild-profile-back svg {
    width: 18px;
    height: 18px;
    transition: transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.guild-profile-back:hover svg {
    transform: translateX(-2px);
}

.guild-profile-hero {
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--radius-xl, 24px);
    background: var(--ds-surface);
    box-shadow: var(--shadow-strong);
}

.guild-profile-cover {
    height: 320px;
}

.guild-profile-cover-fallback img {
    width: min(34%, 340px);
}

.guild-profile-cover-fallback span {
    font-size: 7rem;
}

.guild-profile-body {
    padding: 0 clamp(22px, 3vw, 34px) clamp(24px, 3vw, 32px);
}

.guild-profile-identity {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    margin-block-start: -62px;
}

.guild-profile-avatar {
    width: 124px;
    height: 124px;
    border: 6px solid var(--ds-surface);
    border-radius: 38px;
    font-size: 2rem;
    box-shadow: 0 16px 36px
        color-mix(in oklch, var(--ds-canvas) 66%, transparent);
}

.guild-profile-copy,
.guild-profile-actions {
    padding-block-start: 78px;
}

.guild-profile-copy {
    min-width: 0;
}

.guild-profile-kicker {
    display: block;
    margin-block-end: 6px;
    color: var(--ds-text-subtle);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.guild-profile-copy h1 {
    margin: 0;
    color: var(--ds-text);
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.guild-profile-copy > p {
    max-width: 70ch;
    margin: 8px 0 0;
    color: var(--ds-text-muted);
    line-height: 1.55;
}

.guild-profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-block-end: 4px;
}

.guild-profile-facts {
    display: grid;
    grid-template-columns: minmax(8rem, auto) minmax(12rem, auto) minmax(0, 1fr);
    margin: 28px clamp(-34px, -3vw, -22px) clamp(-32px, -3vw, -24px);
    padding: 20px clamp(22px, 3vw, 34px);
    border-top: 1px solid var(--ds-border);
    background: var(--ds-canvas-raised);
}

.guild-profile-fact {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-inline-end: 30px;
}

.guild-profile-fact + .guild-profile-fact {
    padding-inline-start: 30px;
    border-inline-start: 1px solid var(--ds-border);
}

.guild-profile-fact > span {
    color: var(--ds-text-subtle);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.guild-profile-fact strong,
.guild-profile-fact code {
    min-width: 0;
    overflow: hidden;
    color: var(--ds-text);
    font-size: 0.92rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guild-profile-fact code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

@media (max-width: 760px) {
    .guilds-directory-page .guild-search {
        grid-template-columns: 1fr;
    }

    .guilds-directory-page .guild-search [data-guild-count] {
        min-width: 0;
        text-align: left;
    }

    .guild-profile-cover {
        height: 220px;
    }

    .guild-profile-identity {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 16px;
        margin-block-start: -52px;
    }

    .guild-profile-avatar {
        width: 104px;
        height: 104px;
        border-radius: 32px;
    }

    .guild-profile-copy,
    .guild-profile-actions {
        padding-block-start: 0;
    }

    .guild-profile-copy h1 {
        font-size: 1.65rem;
    }

    .guild-profile-actions {
        justify-content: flex-start;
    }

    .guild-profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-block-start: 24px;
    }

    .guild-profile-fact {
        padding-inline-end: 20px;
    }

    .guild-profile-fact + .guild-profile-fact {
        padding-inline-start: 20px;
    }

    .guild-profile-fact-id {
        grid-column: 1 / -1;
        margin-block-start: 18px;
        padding-block-start: 18px;
        padding-inline-start: 0;
        border-block-start: 1px solid var(--ds-border);
        border-inline-start: 0;
    }
}

@media (max-width: 430px) {
    .guild-discovery-cover {
        height: 116px;
    }

    .guild-discovery-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .guild-discovery-footer .button,
    .guild-profile-actions .button {
        width: 100%;
    }

    .guild-profile-actions {
        width: 100%;
    }

    .guild-profile-facts {
        grid-template-columns: 1fr;
    }

    .guild-profile-fact,
    .guild-profile-fact + .guild-profile-fact {
        padding-inline: 0;
        border-inline-start: 0;
    }

    .guild-profile-fact + .guild-profile-fact {
        margin-block-start: 16px;
        padding-block-start: 16px;
        border-block-start: 1px solid var(--ds-border);
    }

    .guild-profile-fact-id {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guild-discovery-card {
        transition: none;
    }

    .guild-discovery-card:hover {
        transform: none;
    }
}
