/* ==========================================================================
   CRIC SQUAD — Static / company pages + UI Kit
   about · contact · faq · privacy-policy · terms · notifications · ui-kit
   Loaded AFTER style.css + responsive.css on those pages only.
   Uses design tokens from style.css — no new colours introduced.
   ========================================================================== */

/* ---------- Shared: icon tile, section intro ---------- */
.icon-tile {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary-light); font-size: 22px; border: 1px solid rgba(34, 197, 94, .2);
}
.icon-tile.sm { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
.section-intro { max-width: 640px; margin-bottom: 32px; }
.section-intro h2 { margin-top: 6px; }
.section-intro p { color: var(--muted); margin: 0; }
.section-intro.center { margin-inline: auto; text-align: center; }

/* ---------- ABOUT ---------- */
.about-hero { padding: 72px 0 64px; }
.about-hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.about-hero h1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0; line-height: .95; font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 14px 0 18px; }
.about-hero h1 em { font-style: normal; color: var(--primary-light); }
.about-hero .lead { margin-bottom: 0; }
.mission-card { margin: 0; padding: 28px; display: grid; gap: 18px; background: linear-gradient(160deg, var(--surface) 50%, rgba(22, 163, 74, .1)); }
.mission-card blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; color: var(--heading); font-weight: 600; }
.mission-card blockquote::before { content: "\201C"; display: block; font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--primary-light); margin-bottom: 6px; }
.mission-card .mc-sign { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }

.feature-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.feature-card h3 { margin: 0; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-card .link { margin-top: auto; font-size: 14px; }

.numbers-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.numbers-band > div { padding: 28px 24px; border-right: 1px solid var(--border); }
.numbers-band > div:last-child { border-right: 0; }
.numbers-band .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--heading); font-variant-numeric: tabular-nums; }
.numbers-band .v small { color: var(--primary-light); font-size: .6em; margin-left: 2px; }
.numbers-band .l { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--primary-light); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.value-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.value-item h3 { margin: 0 0 4px; }
.value-item p { margin: 0; color: var(--muted); font-size: 14px; }

.member-card { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.member-card h3 { margin: 0; font-size: 1.02rem; }
.member-card .role { font-size: 13px; color: var(--primary-light); font-weight: 600; }
.member-card p { margin: 0; color: var(--muted); font-size: 13px; }
.initials {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
    font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}
.initials.alt { background: linear-gradient(135deg, #1C241F, #050505); color: var(--primary-light); border: 1px solid var(--border-strong); }
.initials.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }

.role-list { display: grid; }
.role-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.role-row:last-child { border-bottom: 0; }
.role-row .rr-main { flex: 1; min-width: 220px; }
.role-row h3 { margin: 0 0 4px; font-size: 1rem; }
.role-row .rr-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.role-row .rr-meta i { margin-right: 4px; color: var(--subtle); }

/* ---------- CONTACT ---------- */
.contact-card { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.contact-card h3 { margin: 0 0 2px; font-size: 1rem; }
.contact-card p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.contact-card a, .contact-card button.link { font-weight: 700; color: var(--heading); word-break: break-word; }
.contact-card a:hover, .contact-card button.link:hover { color: var(--primary-light); }
.hours-list { display: grid; }
.hours-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.hours-list > div:last-child { border-bottom: 0; }
.hours-list span { color: var(--muted); }
.hours-list b { color: var(--heading); font-weight: 600; text-align: right; }
.map-placeholder .map-label {
    position: absolute; left: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-md); background: rgba(5, 5, 5, .78); backdrop-filter: blur(8px); color: #E5E7EB; font-size: 13px;
    border: 1px solid #26312A; max-width: calc(100% - 32px);
}
.map-placeholder .map-label b { color: #fff; display: block; }

/* ---------- FAQ ---------- */
.faq-search { max-width: 640px; margin-top: 22px; }
.faq-search .input { height: 54px; font-size: 16px; border-radius: var(--radius-md); }
.faq-search .input-action { width: 40px; height: 40px; }
.faq-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-light); display: block; margin-bottom: 2px; }
.accordion-trigger .q { display: flex; flex-direction: column; min-width: 0; }
.accordion-panel p:last-child { margin-bottom: 0; }
.accordion-panel a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
mark.hit { background: rgba(34, 197, 94, .25); color: var(--heading); border-radius: 3px; padding: 0 2px; }
.help-card { padding: 24px; display: grid; gap: 14px; }

/* ---------- LEGAL ---------- */
.toc { padding: 18px; }
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 500; border-left: 2px solid transparent; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--subtle); }
.toc a:hover { color: var(--heading); background: var(--surface-2); }
.toc a.is-active { color: var(--primary-light); background: var(--primary-soft); border-left-color: var(--primary-light); }
.toc a.is-active::before { color: var(--primary-light); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legal-meta i { color: var(--primary-light); margin-right: 6px; }
.prose section { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose section:first-of-type h2 { margin-top: 0; }
.prose .table-wrap { margin: 1em 0 1.4em; font-size: 14px; }
.prose .table { min-width: 480px; }
.prose .table td { white-space: normal; }

/* ---------- NOTIFICATIONS ---------- */
.notif-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.notif-group + .notif-group { border-top: 1px solid var(--border); }
.notif-group h2 { margin: 0; padding: 14px 22px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.notif-page .notif-item { padding: 16px 22px; align-items: center; }
.notif-page .notif-item .ni-body { flex: 1; min-width: 0; }
.notif-page .notif-item .notif-text { padding-right: 0; display: block; }
.notif-page .notif-item.unread::after { right: auto; left: 7px; top: 50%; margin-top: -4px; width: 7px; height: 7px; }
.notif-page .notif-item .ni-actions { display: flex; gap: 4px; flex-shrink: 0; position: relative; z-index: 2; }
.notif-page .notif-item .ni-actions .icon-btn { width: 34px; height: 34px; font-size: 15px; color: var(--muted); }
.notif-page .notif-item .ni-actions .icon-btn:hover { color: var(--heading); }
.notif-page .notif-item .ni-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin-left: 8px; }
.notif-page .notif-item.is-removing { animation: notif-out .25s var(--ease) forwards; }
@keyframes notif-out { to { opacity: 0; transform: translateX(16px); } }
.settings-list { display: grid; }
.settings-list .switch { justify-content: space-between; flex-direction: row-reverse; padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; }
.settings-list .switch:last-child { border-bottom: 0; }
.settings-list .switch span { flex: 1; }
.settings-list .switch small { display: block; color: var(--muted); font-size: 12px; }
.settings-list .switch b { color: var(--heading); font-weight: 600; }

/* ---------- UI KIT ---------- */
.kit-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.kit-nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.kit-nav h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--subtle); margin: 0 0 10px 10px; }
.kit-nav ul { display: grid; gap: 1px; }
.kit-nav a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); border-left: 2px solid transparent; }
.kit-nav a:hover { color: var(--heading); background: var(--surface-2); }
.kit-nav a.is-active { color: var(--primary-light); background: var(--primary-soft); border-left-color: var(--primary-light); }
.kit-section { padding: 48px 0; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 12px); }
.kit-section:first-child { padding-top: 0; }
.kit-section:last-child { border-bottom: 0; }
.kit-section > header { margin-bottom: 24px; }
.kit-section > header h2 { margin: 6px 0 4px; }
.kit-section > header p { color: var(--muted); margin: 0; max-width: 64ch; }
.kit-block { margin-top: 26px; }
.kit-block > h3 { font-size: .95rem; margin-bottom: 4px; }
.kit-label { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.kit-label code, code.k {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; padding: 2px 7px; border-radius: 6px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--primary-light); white-space: nowrap;
}
.kit-demo { padding: 22px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-alt); }
.kit-demo.flush { padding: 0; overflow: hidden; }
.kit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kit-row + .kit-row { margin-top: 14px; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.swatch { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.swatch .sw-live { height: 74px; border-bottom: 1px solid var(--border); position: relative; }
.swatch .sw-body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.swatch .sw-name { font-weight: 700; color: var(--heading); font-size: 13px; }
.swatch .sw-vals { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.swatch .sw-vals span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.swatch .sw-dot { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--border-strong); flex-shrink: 0; }
.swatch .sw-vals em { font-style: normal; color: var(--subtle); width: 34px; flex-shrink: 0; }
.token-row { display: flex; flex-wrap: wrap; gap: 16px; }
.token-box { width: 120px; height: 80px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--muted); text-align: center; }
.token-box.r-sm { border-radius: var(--radius-sm); } .token-box.r-md { border-radius: var(--radius-md); } .token-box.r-lg { border-radius: var(--radius-lg); } .token-box.r-pill { border-radius: var(--radius-pill); }
.token-box.s-sm { box-shadow: var(--shadow-sm); border-radius: var(--radius-md); } .token-box.s-md { box-shadow: var(--shadow-md); border-radius: var(--radius-md); }
.token-box.s-lg { box-shadow: var(--shadow-lg); border-radius: var(--radius-md); } .token-box.s-glow { box-shadow: var(--shadow-glow); border-radius: var(--radius-md); }

.type-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--border); }
.type-row:last-child { border-bottom: 0; }
.type-row .tr-spec { font-size: 12px; color: var(--subtle); line-height: 1.5; }
.type-row .tr-spec b { display: block; color: var(--heading); font-size: 13px; }
.type-row > :last-child { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.t-h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; }
.t-h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; }
.t-h3 { font-size: 1.15rem; font-weight: 800; color: var(--heading); line-height: 1.15; }
.t-h4 { font-size: 1rem; font-weight: 800; color: var(--heading); line-height: 1.15; }
.t-display { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--heading); }
.t-display em { font-style: normal; color: var(--primary-light); }
.t-num { font-size: 3rem; color: var(--heading); line-height: 1; }

.mini-board { padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #0d1510, #050505); border: 1px solid #26312A; color: #E5E7EB; --heading: #fff; --muted: #9CA3AF; --border: #26312A; --surface-3: #1C241F; --border-strong: #34433A; --text: #E5E7EB; }

.sk-match { padding: 18px; display: grid; gap: 14px; }
.sk-match .sk-team { display: flex; align-items: center; gap: 12px; }
.sk-match .sk-team .sk-line { margin: 0; flex: 1; }
.sk-match .sk-line { margin-bottom: 0; }
.sk-row td .sk-line { margin: 0; }
.sk-stat { padding: 20px; }
.sk-stat .sk-line.xl { height: 34px; width: 55%; margin: 12px 0 10px; }
.sk-tour-banner { height: 92px; border-radius: 0; }
.sk-tour-logo { width: 64px; height: 64px; border-radius: 16px; margin: -32px 0 0 18px; border: 4px solid var(--surface); }
.state-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.state-switch button { padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.state-switch button:hover { color: var(--heading); }
.state-switch button.is-active { background: var(--primary); color: #fff; }

/* Static modal preview (not fixed) */
.modal-preview { position: relative; max-width: 460px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.dropdown-menu.is-static { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: var(--shadow-md); width: 240px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .about-hero .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .numbers-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .numbers-band > div:nth-child(2) { border-right: 0; }
    .numbers-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .kit-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .kit-nav { position: sticky; top: var(--header-h); z-index: 20; max-height: none; overflow-x: auto; overflow-y: hidden; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); scrollbar-width: none; }
    .kit-nav::-webkit-scrollbar { display: none; }
    .kit-nav h2 { display: none; }
    .kit-nav ul { display: flex; gap: 4px; }
    .kit-nav a { white-space: nowrap; border-left: 0; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); }
    .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .about-hero { padding: 48px 0 44px; }
    .type-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .kit-demo { padding: 16px; }
    .notif-page .notif-item { padding: 14px 16px 14px 20px; }
    .toc ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 576px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .numbers-band > div { padding: 20px 16px; }
    .role-row .btn { width: 100%; }
    .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .notif-group h2 { padding-inline: 16px; }
}

/* ---------- Small helpers used on these pages ---------- */
.section.pt-0 { padding-top: 0; }
.h-sm { font-size: 1.05rem; margin-bottom: 6px; }
address.not-italic { font-style: normal; }
button.link { padding: 0; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.border-0 { border: 0 !important; }
fieldset { min-width: 0; }
.w-20 { width: 20%; } .w-36 { width: 36%; } .w-64 { width: 64%; } .w-80 { width: 80%; } .w-94 { width: 94%; }
.kit-label code { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
