:root {
    color-scheme: light;
    --bg: #ede6da;
    --bg-alt: #f7f1e7;
    --panel: rgba(255, 250, 243, 0.94);
    --panel-strong: #fffdf9;
    --panel-soft: #e8ddce;
    --border: #1c1712;
    --border-soft: rgba(28, 23, 18, 0.16);
    --text: #17120e;
    --muted: #59524a;
    --soft: #7b7269;
    --accent: #c95d1e;
    --accent-strong: #8a3211;
    --accent-cool: #255b75;
    --accent-soft: rgba(201, 93, 30, 0.12);
    --success: #1f8a58;
    --success-soft: rgba(31, 138, 88, 0.12);
    --danger: #bc4350;
    --danger-soft: rgba(188, 67, 80, 0.12);
    --shadow: 8px 8px 0 rgba(28, 23, 18, 0.08);
    --shadow-strong: 12px 12px 0 rgba(28, 23, 18, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --background-media-opacity: 0.12;
    --line: rgba(28, 23, 18, 0.08);
}

html.theme-dark {
    color-scheme: dark;
    --bg: #0f1114;
    --bg-alt: #171a1e;
    --panel: rgba(23, 26, 30, 0.94);
    --panel-strong: #1d2126;
    --panel-soft: #252b31;
    --border: #efe6d8;
    --border-soft: rgba(239, 230, 216, 0.16);
    --text: #f3ebdf;
    --muted: #c0b5a8;
    --soft: #9b9083;
    --accent: #ff8c42;
    --accent-strong: #ffb378;
    --accent-cool: #74b8d4;
    --accent-soft: rgba(255, 140, 66, 0.14);
    --success: #5ed29a;
    --success-soft: rgba(94, 210, 154, 0.14);
    --danger: #ff7984;
    --danger-soft: rgba(255, 121, 132, 0.14);
    --shadow: 8px 8px 0 rgba(0, 0, 0, 0.26);
    --shadow-strong: 12px 12px 0 rgba(0, 0, 0, 0.34);
    --background-media-opacity: 0.16;
    --line: rgba(255, 255, 255, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(201, 93, 30, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 18%),
        var(--bg);
    color: var(--text);
}

html.theme-dark body {
    background:
        radial-gradient(circle at top left, rgba(255, 140, 66, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 14%),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    z-index: -4;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
.brand-copy strong,
.stat-value,
.rank-chip,
.score-chip {
    font-family: "Space Grotesk", sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jb-app-body,
#app-root,
.jb-app {
    min-height: 100vh;
}

.noscript-warning {
    position: fixed;
    inset: auto 16px 16px 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--danger);
    color: #fff;
    text-align: center;
    z-index: 100;
}

.jb-app {
    position: relative;
    isolation: isolate;
    color: var(--text);
}

.app-overlay {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -3;
    pointer-events: none;
}

.background-poster,
.background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(0.78) contrast(1.04) grayscale(0.18);
}

.background-poster {
    opacity: calc(var(--background-media-opacity) + 0.04);
}

.background-poster.is-video-ready {
    opacity: 0;
    transition: opacity 180ms ease;
}

.background-video {
    opacity: 0;
    transition: opacity 180ms ease;
}

.background-video.is-ready {
    opacity: var(--background-media-opacity);
}

.background-layer,
.background-glow {
    position: absolute;
    inset: 0;
}

.background-layer.is-base {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(237, 230, 218, 0.4), rgba(237, 230, 218, 0.92) 82%);
}

html.theme-dark .background-layer.is-base {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(15, 17, 20, 0.26), rgba(15, 17, 20, 0.94) 78%);
}

.background-layer.is-grid {
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.04) 48% 50%, transparent 50% 100%);
    background-size: 72px 72px;
    opacity: 0.22;
}

.background-glow.glow-a {
    background: radial-gradient(circle at 20% 18%, rgba(201, 93, 30, 0.18), transparent 24%);
}

.background-glow.glow-b {
    background: radial-gradient(circle at 78% 12%, rgba(37, 91, 117, 0.14), transparent 22%);
}

.shell-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0 0;
}

.header-row,
.hero-card,
.surface-panel,
.compose-card,
.feed-card,
.feature-card,
.timeline-card,
.policy-card,
.member-card,
.leader-card,
.agreement-card,
.review-card,
.empty-card,
.stat-card,
.inline-message,
.section-toolbar,
.footer-grid,
.mobile-drawer-inner,
.modal-card,
.app-loader-panel {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.header-row::before,
.hero-card::before,
.surface-panel::before,
.compose-card::before,
.feed-card::before,
.feature-card::before,
.timeline-card::before,
.policy-card::before,
.member-card::before,
.leader-card::before,
.agreement-card::before,
.review-card::before,
.empty-card::before,
.section-toolbar::before,
.footer-grid::before,
.modal-card::before,
.app-loader-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
}

.hero-card::after,
.surface-panel::after,
.compose-card::after,
.feed-card::after,
.feature-card::after,
.timeline-card::after,
.policy-card::after,
.member-card::after,
.leader-card::after,
.agreement-card::after,
.review-card::after,
.empty-card::after,
.section-toolbar::after,
.footer-grid::after,
.modal-card::after,
.app-loader-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-left: 1.5px solid var(--border-soft);
    border-bottom: 1.5px solid var(--border-soft);
    border-bottom-left-radius: 12px;
    background: var(--bg-alt);
}

html.theme-dark .hero-card::after,
html.theme-dark .surface-panel::after,
html.theme-dark .compose-card::after,
html.theme-dark .feed-card::after,
html.theme-dark .feature-card::after,
html.theme-dark .timeline-card::after,
html.theme-dark .policy-card::after,
html.theme-dark .member-card::after,
html.theme-dark .leader-card::after,
html.theme-dark .agreement-card::after,
html.theme-dark .review-card::after,
html.theme-dark .empty-card::after,
html.theme-dark .section-toolbar::after,
html.theme-dark .footer-grid::after,
html.theme-dark .modal-card::after,
html.theme-dark .app-loader-panel::after {
    background: var(--bg);
}

.header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    overflow: visible;
}

.brand-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.brand-badge {
    align-self: flex-start;
    padding: 7px 11px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.86rem;
}

.desktop-nav,
.header-actions,
.hero-actions,
.signal-ribbon,
.tab-row,
.meta-pill-row,
.agreement-actions,
.chip-row,
.card-toolbar,
.footer-links,
.toolbar-controls,
.compose-footer,
.rating-row,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.desktop-nav {
    justify-content: center;
}

.nav-link,
.dropdown-link,
.mobile-link,
.ui-button,
.icon-button,
.toolbar-button,
.tab-pill,
.rating-pill {
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-link,
.dropdown-link,
.mobile-link {
    border: 1.5px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    background: transparent;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-link.is-active,
.mobile-link.is-active {
    color: var(--text);
    background: var(--panel-strong);
    border-color: var(--border-soft);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.05);
}

.nav-button {
    border-color: transparent;
}

.nav-dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 4;
    min-width: 220px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    border: 1.5px solid var(--border-soft);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown.is-open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-link,
.mobile-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 14px;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.chevron.is-open {
    transform: rotate(180deg);
}

.ui-button,
.icon-button,
.toolbar-button,
.tab-pill,
.rating-pill {
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.ui-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.ui-button:hover,
.icon-button:hover,
.toolbar-button:hover,
.tab-pill:hover,
.rating-pill:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);
}

.ui-button.is-primary {
    background: var(--accent);
    border-color: rgba(0, 0, 0, 0.08);
    color: #fff;
}

.ui-button.is-secondary {
    background: var(--panel-strong);
    color: var(--text);
}

.ui-button.is-ghost {
    background: transparent;
    color: var(--text);
}

.ui-button.is-block,
.is-mobile-block {
    width: 100%;
}

.icon-button,
.toolbar-button {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    background: var(--panel-strong);
    cursor: pointer;
}

.toolbar-button.is-success {
    background: var(--success-soft);
    color: var(--success);
}

.toolbar-button.is-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.icon-svg {
    width: 18px;
    height: 18px;
}

.icon-button:disabled,
.toolbar-button:disabled,
.ui-button:disabled,
.tab-pill:disabled,
.rating-pill:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.session-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 14px 8px 8px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
}

.session-chip span,
.mini-label,
.section-kicker,
.tiny-copy,
.mobile-group-label,
.stat-label,
.policy-kicker,
.timeline-kicker {
    color: var(--soft);
}

.session-chip span,
.mini-label,
.tiny-copy {
    font-size: 0.78rem;
}

.session-chip strong {
    display: block;
    font-size: 0.92rem;
}

.menu-toggle,
.mobile-drawer {
    display: none;
}

.mobile-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 220ms ease, opacity 220ms ease;
}

.mobile-drawer.is-open {
    max-height: 720px;
    opacity: 1;
}

.mobile-drawer-inner {
    margin-top: 12px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.mobile-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
}

.mobile-group-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.avatar-shell {
    width: 68px;
    height: 68px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    padding: 4px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
}

.avatar-shell.is-compact {
    width: 48px;
    height: 48px;
}

.avatar-shell.is-square {
    border-radius: 10px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.site-main {
    padding: 26px 0 84px;
}

.page-shell {
    display: grid;
    gap: 28px;
}

.content-section,
.surface-section,
.side-column,
.review-body {
    display: grid;
    gap: 18px;
}

.hero-grid,
.reviews-grid,
.contract-grid,
.feature-grid,
.timeline-grid,
.policy-grid,
.member-grid,
.leaderboard-grid,
.agreement-grid,
.review-list,
.stack-list,
.stat-grid,
.form-row {
    display: grid;
    gap: 16px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.92fr);
}

.hero-grid-home {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
}

.reviews-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.contract-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
}

.feature-grid,
.timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leaderboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agreement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.home-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

.home-summary-grid .stat-card {
    min-height: 132px;
}

.form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card,
.surface-panel,
.compose-card,
.feed-card,
.feature-card,
.timeline-card,
.policy-card,
.member-card,
.leader-card,
.agreement-card,
.review-card,
.empty-card,
.section-toolbar,
.footer-grid {
    padding: 28px;
}

.hero-card-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 18%),
        linear-gradient(145deg, rgba(201, 93, 30, 0.06), transparent 45%),
        var(--panel);
}

html.theme-dark .hero-card-spotlight {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(145deg, rgba(255, 140, 66, 0.08), transparent 45%),
        var(--panel);
}

.hero-card-spotlight.is-home {
    min-height: 460px;
}

.hero-card-stack {
    display: grid;
    align-content: start;
    gap: 18px;
}

.hero-copy,
.section-head {
    max-width: 56rem;
}

.hero-copy-home {
    display: grid;
    gap: 26px;
    max-width: none;
}

.hero-copy h1,
.section-head h2,
.stack-head h2,
.feature-card h3,
.timeline-card h3,
.policy-card h2,
.member-card h2,
.leader-card h2,
.agreement-card h3,
.review-card h3,
.empty-card h3,
.footer-brand h2,
.modal-head h2,
.person-panel h3 {
    margin: 0;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    max-width: 10ch;
}

.section-head h2,
.stack-head h2,
.footer-brand h2,
.modal-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.feature-card h3,
.timeline-card h3,
.policy-card h2,
.member-card h2,
.leader-card h2,
.agreement-card h3,
.review-card h3,
.empty-card h3,
.person-panel h3 {
    font-size: 1.2rem;
}

.hero-lede,
.section-head p,
.stack-head p,
.feature-card p,
.timeline-card p,
.policy-card p,
.member-card p,
.leader-card p,
.agreement-card p,
.review-card p,
.empty-card p,
.footer-brand p,
.inline-message {
    color: var(--muted);
}

.hero-lede {
    margin: 14px 0 0;
    max-width: 42ch;
    font-size: 1rem;
    line-height: 1.7;
}

.section-kicker,
.policy-kicker,
.timeline-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border: 1.5px solid var(--border-soft);
    border-radius: 999px;
    background: var(--panel-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stack-head,
.section-head {
    display: grid;
    gap: 8px;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    border: 1.5px solid var(--border-soft);
}

.stat-card.is-inline {
    height: 100%;
}

.stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.15rem, 2.3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.scramble-value {
    display: inline-block;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stat-value.is-success {
    color: var(--success);
}

.stat-caption {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.feature-card,
.timeline-card,
.policy-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
}

.feature-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-cool));
}

.signal-ribbon,
.meta-pill-row {
    align-items: stretch;
}

.signal-ribbon span,
.meta-pill,
.role-chip,
.score-chip,
.rank-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1.5px solid var(--border-soft);
    border-radius: 999px;
    background: var(--panel-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.signal-ribbon span,
.meta-pill {
    color: var(--text);
}

.meta-pill.is-success,
.role-chip.is-primary,
.rank-chip,
.score-chip {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.meta-pill.is-success {
    background: var(--success-soft);
    color: var(--success);
}

.policy-card.is-warning {
    background:
        linear-gradient(180deg, rgba(188, 67, 80, 0.05), transparent 34%),
        var(--panel);
}

.policy-card.is-warning::before {
    background: linear-gradient(90deg, var(--danger), var(--accent));
}

.member-head,
.leader-head,
.review-head,
.agreement-top,
.agreement-footer,
.identity-strip,
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.leader-person,
.agreement-person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.leader-person {
    align-items: flex-start;
}

.identity-strip,
.review-body,
.person-panel,
.contract-main {
    padding: 16px 18px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
}

.chip-row {
    align-items: flex-start;
}

.role-chip {
    color: var(--muted);
}

.role-chip.is-primary {
    color: var(--accent-strong);
}

.leader-card .stat-grid.is-tight,
.agreement-value-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agreement-card.is-complete {
    background:
        linear-gradient(180deg, rgba(31, 138, 88, 0.05), transparent 30%),
        var(--panel);
}

.agreement-card.is-complete::before {
    background: linear-gradient(90deg, var(--success), var(--accent));
}

.agreement-card.is-misc {
    background:
        linear-gradient(180deg, rgba(37, 91, 117, 0.06), transparent 30%),
        var(--panel);
}

.agreement-person.is-support {
    align-items: center;
}

.agreement-actions,
.card-toolbar,
.hero-actions,
.compose-footer,
.toolbar-controls {
    justify-content: flex-start;
}

.card-toolbar {
    margin-top: 18px;
}

.review-head {
    align-items: center;
}

.review-body h3,
.review-body p {
    margin: 0;
}

.score-chip,
.rank-chip {
    min-width: 62px;
    font-size: 0.95rem;
}

.rank-chip {
    letter-spacing: -0.04em;
}

.section-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.toolbar-controls {
    justify-content: flex-end;
}

.tab-pill,
.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    background: var(--panel-strong);
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.tab-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 0.8rem;
}

.tab-pill.is-active,
.rating-pill.is-active {
    background: var(--accent);
    color: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

.tab-pill.is-active span,
.rating-pill.is-active {
    background: var(--accent);
    color: #fff;
}

.search-shell,
.field-shell {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
}

.search-shell {
    min-width: min(320px, 100%);
}

.search-input,
.field-shell input,
.field-shell textarea,
.field-shell select {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: 0;
}

.search-input::placeholder,
.field-shell input::placeholder,
.field-shell textarea::placeholder {
    color: var(--soft);
}

.field-shell span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
}

.field-shell textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.search-shell:focus-within,
.field-shell:focus-within {
    border-color: rgba(201, 93, 30, 0.34);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.inline-message {
    padding: 14px 16px;
    font-weight: 700;
    line-height: 1.55;
}

.inline-message.is-success {
    background: var(--success-soft);
    color: var(--success);
}

.inline-message.is-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 10, 8, 0.44);
    backdrop-filter: blur(4px);
    z-index: 40;
}

.modal-card {
    width: min(760px, 100%);
    padding: 26px;
}

.modal-head {
    margin-bottom: 18px;
}

.modal-actions {
    justify-content: flex-end;
    margin-top: 6px;
}

.person-panel {
    display: grid;
    gap: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto auto;
    gap: 24px;
    align-items: end;
}

.site-footer {
    padding-top: 4px;
}

.footer-brand {
    display: grid;
    gap: 8px;
}

.footer-links a,
.footer-meta a {
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover,
.footer-meta a:hover {
    color: var(--text);
}

.footer-meta {
    display: grid;
    gap: 6px;
    color: var(--soft);
    text-align: right;
    font-size: 0.88rem;
}

.route-loader,
.app-boot-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%),
        var(--bg);
    position: relative;
}

.route-loader {
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: 1;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.jb-app.is-ready .route-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.jb-app.is-routing .route-loader {
    opacity: 1;
    visibility: visible;
}

.app-loader-panel,
.route-loader-card {
    width: min(100%, 380px);
    padding: 28px;
    text-align: center;
}

.route-loader-card {
    display: grid;
    gap: 14px;
}

.app-boot-mark {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border-soft);
    border-radius: 20px;
    background: var(--panel-strong);
}

.app-boot-logo,
.route-loader-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.app-loader-chip,
.app-boot-kicker,
.app-boot-title,
.app-loader-copy {
    margin: 0;
}

.app-loader-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
    padding: 0 12px;
    min-height: 30px;
    border: 1.5px solid var(--border-soft);
    border-radius: 999px;
    background: var(--panel-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.app-boot-kicker {
    color: var(--soft);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-boot-title {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    letter-spacing: -0.05em;
}

.route-loader-title {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.app-loader-copy {
    color: var(--muted);
    line-height: 1.6;
}

.app-loader-progress {
    width: 100%;
    height: 10px;
    padding: 2px;
    border-radius: 999px;
    background: var(--panel-soft);
    overflow: hidden;
}

.app-loader-progress-bar {
    display: block;
    width: 36%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-cool));
    animation: loader-progress 1.15s linear infinite;
}

.app-loader-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-inline: auto;
    padding: 10px 12px;
    border: 1.5px solid var(--border-soft);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.app-loader-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
}

@keyframes loader-progress {
    0% {
        transform: translateX(-10%);
    }

    100% {
        transform: translateX(220%);
    }
}

@keyframes page-enter {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-row,
.hero-card,
.surface-panel,
.compose-card,
.feed-card,
.feature-card,
.timeline-card,
.policy-card,
.member-card,
.leader-card,
.agreement-card,
.review-card,
.empty-card,
.stat-card,
.inline-message,
.section-toolbar,
.footer-grid {
    opacity: 0;
    transform: translateY(20px);
}

.jb-app.is-ready .header-row,
.jb-app.is-ready .hero-card,
.jb-app.is-ready .surface-panel,
.jb-app.is-ready .compose-card,
.jb-app.is-ready .feed-card,
.jb-app.is-ready .feature-card,
.jb-app.is-ready .timeline-card,
.jb-app.is-ready .policy-card,
.jb-app.is-ready .member-card,
.jb-app.is-ready .leader-card,
.jb-app.is-ready .agreement-card,
.jb-app.is-ready .review-card,
.jb-app.is-ready .empty-card,
.jb-app.is-ready .stat-card,
.jb-app.is-ready .inline-message,
.jb-app.is-ready .section-toolbar,
.jb-app.is-ready .footer-grid {
    animation: page-enter 320ms ease forwards;
}

.jb-app.is-routing .header-row,
.jb-app.is-routing .hero-card,
.jb-app.is-routing .surface-panel,
.jb-app.is-routing .compose-card,
.jb-app.is-routing .feed-card,
.jb-app.is-routing .feature-card,
.jb-app.is-routing .timeline-card,
.jb-app.is-routing .policy-card,
.jb-app.is-routing .member-card,
.jb-app.is-routing .leader-card,
.jb-app.is-routing .agreement-card,
.jb-app.is-routing .review-card,
.jb-app.is-routing .empty-card,
.jb-app.is-routing .stat-card,
.jb-app.is-routing .inline-message,
.jb-app.is-routing .section-toolbar,
.jb-app.is-routing .footer-grid {
    opacity: 0;
    transform: translateY(12px);
    animation: none;
}

.hero-grid > :nth-child(2),
.reviews-grid > :nth-child(2),
.contract-grid > :nth-child(2),
.feature-grid > :nth-child(2),
.timeline-grid > :nth-child(2),
.policy-grid > :nth-child(2),
.member-grid > :nth-child(2),
.leaderboard-grid > :nth-child(2),
.agreement-grid > :nth-child(2),
.review-list > :nth-child(2),
.stack-list > :nth-child(2),
.stat-grid > :nth-child(2) {
    animation-delay: 70ms;
}

.hero-grid > :nth-child(3),
.reviews-grid > :nth-child(3),
.contract-grid > :nth-child(3),
.feature-grid > :nth-child(3),
.timeline-grid > :nth-child(3),
.policy-grid > :nth-child(3),
.member-grid > :nth-child(3),
.leaderboard-grid > :nth-child(3),
.agreement-grid > :nth-child(3),
.review-list > :nth-child(3),
.stack-list > :nth-child(3),
.stat-grid > :nth-child(3) {
    animation-delay: 120ms;
}

.hero-grid > :nth-child(4),
.reviews-grid > :nth-child(4),
.contract-grid > :nth-child(4),
.feature-grid > :nth-child(4),
.timeline-grid > :nth-child(4),
.policy-grid > :nth-child(4),
.member-grid > :nth-child(4),
.leaderboard-grid > :nth-child(4),
.agreement-grid > :nth-child(4),
.review-list > :nth-child(4),
.stack-list > :nth-child(4),
.stat-grid > :nth-child(4) {
    animation-delay: 170ms;
}

.footer-grid {
    animation-delay: 180ms;
}

@media (max-width: 1320px) {
    .agreement-grid,
    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .header-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .desktop-nav,
    .is-desktop-only {
        display: none;
    }

    .menu-toggle,
    .mobile-drawer {
        display: block;
    }

    .toolbar-controls,
    .section-toolbar,
    .footer-grid {
        display: grid;
    }

    .toolbar-controls {
        justify-content: stretch;
    }

    .hero-grid,
    .hero-grid-home,
    .reviews-grid,
    .contract-grid,
    .policy-grid,
    .leaderboard-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 820px) {
    .shell-container {
        width: min(100%, calc(100% - 20px));
    }

    .site-header {
        padding-top: 10px;
    }

    .header-row,
    .hero-card,
    .surface-panel,
    .compose-card,
    .feed-card,
    .feature-card,
    .timeline-card,
    .policy-card,
    .member-card,
    .leader-card,
    .agreement-card,
    .review-card,
    .empty-card,
    .section-toolbar,
    .footer-grid,
    .modal-card,
    .app-loader-panel,
    .route-loader-card {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 11vw, 3.4rem);
    }

    .feature-grid,
    .timeline-grid,
    .agreement-grid,
    .member-grid,
    .leaderboard-grid,
    .form-row,
    .leader-card .stat-grid.is-tight,
    .agreement-value-row {
        grid-template-columns: 1fr;
    }

    .home-summary-grid {
        grid-template-columns: 1fr;
    }

    .review-head,
    .agreement-top,
    .agreement-footer,
    .member-head,
    .leader-head,
    .identity-strip,
    .modal-head {
        flex-direction: column;
        align-items: stretch;
    }

    .leader-person,
    .agreement-person,
    .brand-link {
        align-items: flex-start;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .search-shell {
        min-width: 0;
    }

    .background-glow {
        display: none;
    }
}

@media (max-width: 560px) {
    .brand-link {
        gap: 12px;
    }

    .brand-badge {
        display: none;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .brand-copy small {
        font-size: 0.78rem;
    }

    .ui-button,
    .icon-button,
    .toolbar-button {
        min-height: 46px;
    }

    .hero-actions,
    .agreement-actions,
    .card-toolbar,
    .compose-footer,
    .tab-row {
        display: grid;
        width: 100%;
    }

    .hero-actions .ui-button,
    .agreement-actions .ui-button,
    .compose-footer .ui-button {
        width: 100%;
    }

    .app-loader-progress {
        height: 8px;
    }
}

@media (max-width: 820px), (pointer: coarse) {
    .background-video,
    .background-poster {
        transform: scale(1.01);
    }

    .background-layer.is-grid {
        opacity: 0.12;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .header-row,
    .hero-card,
    .surface-panel,
    .compose-card,
    .feed-card,
    .feature-card,
    .timeline-card,
    .policy-card,
    .member-card,
    .leader-card,
    .agreement-card,
    .review-card,
    .empty-card,
    .stat-card,
    .inline-message,
    .section-toolbar,
    .footer-grid {
        opacity: 1;
        transform: none;
    }
}
