/**
 * GANReach Experience, UI & Search Intelligence Contract
 * Version 1.0.0
 * Marker: GANREACH_EXPERIENCE_UI_SEARCH_INTELLIGENCE_V1_0_0_20260805
 *
 * Shared, role-safe typography, spacing, logo, overflow and responsive rules.
 * Public marketing pages retain a larger editorial scale. Authenticated workspaces
 * use the compact operational scale below.
 */

:root {
    --grei-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --grei-admin-page-title: 20px;
    --grei-admin-section-title: 19px;
    --grei-admin-card-title: 16px;
    --grei-admin-subtitle: 13px;
    --grei-admin-body: 13px;
    --grei-admin-helper: 12px;
    --grei-content-x: 18px;
    --grei-content-top: 14px;
    --grei-content-bottom: 24px;
    --grei-panel-padding: 16px;
    --grei-panel-gap: 12px;
    --grei-panel-radius: 14px;
    --grei-line: #dbe4ef;
    --grei-ink: #0f172a;
    --grei-muted: #64748b;
    --grei-panel: #ffffff;
    --grei-bg: #f5f7fb;
}

/* Authenticated Admin / Client / Partner / Agency workspace contract. */
.grw-shell,
.grw-shell button,
.grw-shell input,
.grw-shell select,
.grw-shell textarea,
.grbs-layout,
.grbs-layout button,
.grbs-layout input,
.grbs-layout select,
.grbs-layout textarea {
    font-family: var(--grei-font) !important;
}

.grw-shell,
.grbs-layout {
    color: var(--grei-ink);
    font-size: var(--grei-admin-body);
    line-height: 1.45;
}

.grw-content-stage,
.gos-main > .grw-content-stage,
.vendor-content.grw-content-stage,
.customer-content.grw-content-stage,
.agency-content.grw-content-stage,
.grbs-content {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: var(--grei-content-top) var(--grei-content-x) var(--grei-content-bottom) !important;
}

.gos-top,
.vendor-top,
.customer-top,
.agency-top,
.grbs-topbar {
    min-width: 0;
}

.gos-top h1,
.vendor-top h1,
.customer-top h1,
.agency-top h1,
.grbs-page-title,
.grw-content-stage > h1:first-child,
.grw-content-stage .page-heading h1,
.grw-content-stage .top h1 {
    margin-top: 0 !important;
    font-size: var(--grei-admin-page-title) !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

.gos-top p,
.vendor-top p,
.customer-top p,
.agency-top p,
.grbs-page-subtitle {
    font-size: var(--grei-admin-subtitle) !important;
    line-height: 1.45 !important;
}

.grw-content-stage h2,
.grbs-content h2,
.gos-panel h2,
.gos-hero h2,
.vendor-panel h2,
.customer-panel h2,
.agency-panel h2 {
    font-size: var(--grei-admin-section-title) !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
}

.grw-content-stage h3,
.grbs-content h3,
.gos-card h3,
.vendor-card h3,
.customer-card h3,
.agency-card h3 {
    font-size: var(--grei-admin-card-title) !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
}

.grw-content-stage h4,
.grbs-content h4 {
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.grw-content-stage p,
.grw-content-stage li,
.grw-content-stage td,
.grw-content-stage th,
.grw-content-stage label,
.grw-content-stage input,
.grw-content-stage select,
.grw-content-stage textarea,
.grbs-content p,
.grbs-content li,
.grbs-content td,
.grbs-content th,
.grbs-content label,
.grbs-content input,
.grbs-content select,
.grbs-content textarea {
    font-size: var(--grei-admin-body) !important;
    line-height: 1.45 !important;
}

.grw-content-stage small,
.grw-content-stage .muted,
.grw-content-stage .hint,
.grw-content-stage .helper,
.grbs-content small,
.grbs-content .muted {
    font-size: var(--grei-admin-helper) !important;
    line-height: 1.4 !important;
}

.grw-content-stage .gos-panel,
.grw-content-stage .panel,
.grw-content-stage .card,
.grw-content-stage .vendor-panel,
.grw-content-stage .customer-panel,
.grw-content-stage .agency-panel,
.grbs-content .panel,
.grbs-content .card {
    border-radius: var(--grei-panel-radius) !important;
    padding: var(--grei-panel-padding) !important;
    margin-top: 0 !important;
    margin-bottom: var(--grei-panel-gap) !important;
    max-width: 100% !important;
}

.grw-content-stage .grid,
.grw-content-stage .gos-cards,
.grw-content-stage .gos-metrics,
.grw-content-stage .vendor-metrics,
.grw-content-stage .customer-metrics,
.grw-content-stage .agency-metrics {
    gap: 12px !important;
}

.grw-content-stage table,
.grbs-content table {
    max-width: 100%;
}

.grw-content-stage .table-wrap,
.grw-content-stage .gos-table-wrap,
.grw-content-stage .vendor-table-wrap,
.grw-content-stage .customer-table-wrap,
.grw-content-stage .agency-table-wrap,
.grbs-content .table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.grw-content-stage td,
.grw-content-stage th,
.grbs-content td,
.grbs-content th {
    overflow-wrap: anywhere;
    word-break: normal;
}

.grw-content-stage pre,
.grw-content-stage code,
.grbs-content pre,
.grbs-content code {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* Brand logo protection across shared and legacy shells. */
.gos-brand-logo,
.vendor-brand img,
.customer-brand img,
.agency-brand img,
.grbs-brand img,
.brand-logo {
    display: block !important;
    width: min(214px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

/* AI Production Studios integrated program. */
.grei-program-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.grei-program-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--grei-line);
    border-radius: 9px;
    background: #fff;
    color: #173f70;
    font-weight: 800;
    text-decoration: none;
}
.grei-program-nav a.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.grei-status-grid,
.grei-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.grei-status-card,
.grei-source-card {
    border: 1px solid var(--grei-line);
    border-radius: 13px;
    background: #fff;
    padding: 14px;
}
.grei-status-card strong,
.grei-source-card strong {
    display: block;
    margin-bottom: 5px;
}
.grei-metric {
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    color: #173f70;
}
.grei-ok { color: #087f5b !important; font-weight: 800; }
.grei-warn { color: #b54708 !important; font-weight: 800; }
.grei-bad { color: #b42318 !important; font-weight: 800; }

/* Public marketing/editorial contract. */
body.grei-public {
    font-family: var(--grei-font);
}
body.grei-public .hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.04;
}
body.grei-public .section h2,
body.grei-public .cta h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    line-height: 1.12;
}
body.grei-public .card h3,
body.grei-public .step h3 {
    font-size: 20px;
    line-height: 1.25;
}
body.grei-public p,
body.grei-public li {
    line-height: 1.6;
}

@media (max-width: 820px) {
    :root {
        --grei-content-x: 12px;
        --grei-content-top: 12px;
        --grei-content-bottom: 18px;
    }
    .grei-program-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grei-program-nav a {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .grei-program-nav {
        grid-template-columns: 1fr;
    }
    .grei-status-grid,
    .grei-source-grid {
        grid-template-columns: 1fr;
    }
}

/* GANREACH_UI_NAVIGATION_ACCESSIBILITY_SEO_RELEASE_GATE_V1_0_12_20260807
 * Final Consolidated Installer 1 shared visual/accessibility contract.
 * Keeps operational workspaces compact while preserving public editorial scale.
 */
:root{
    --gr-release-focus:#2563eb;
    --gr-release-focus-soft:rgba(37,99,235,.18);
    --gr-release-control-h:34px;
}
html{scrollbar-gutter:stable}
body{min-width:0;max-width:100%}
.grw-shell,.grw-content-stage,.grbs-layout,.grbs-content{min-width:0;max-width:100%}
.grw-shell :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.grbs-layout :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.app-zone-admin :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.app-zone-customer :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.app-zone-vendor :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.app-zone-agency :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
body.grei-public :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
    outline:3px solid var(--gr-release-focus)!important;
    outline-offset:2px!important;
    box-shadow:0 0 0 3px var(--gr-release-focus-soft);
}
.grw-shell :where(button,input:not([type="checkbox"]):not([type="radio"]),select),
.grbs-layout :where(button,input:not([type="checkbox"]):not([type="radio"]),select){
    min-height:var(--gr-release-control-h);
}
.grw-content-stage :where(.table-wrap,.gos-table-wrap,.vendor-table-wrap,.customer-table-wrap,.agency-table-wrap),
.grbs-content :where(.table-wrap){
    scrollbar-gutter:stable both-edges;
    overscroll-behavior:contain;
}
.grw-content-stage table,.grbs-content table{font-variant-numeric:tabular-nums}
.grw-content-stage th,.grbs-content th{white-space:nowrap}
.grw-content-stage :where(.empty,.empty-state,.no-results,.vendor-empty,.gos-empty),
.grbs-content :where(.empty,.empty-state,.no-results){
    border:1px dashed var(--grei-line);
    border-radius:12px;
    background:#f8fafc;
    color:#64748b;
    padding:18px;
}
.grw-skip-link{
    position:fixed;left:12px;top:-72px;z-index:9999;
    background:#071426;color:#fff;padding:9px 12px;border-radius:8px;
    text-decoration:none;font-weight:850;transition:top .15s;
}
.grw-skip-link:focus{top:12px}
.grw-sr-only{
    position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
    margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;border:0!important;
}
.grw-state{
    border:1px solid var(--grei-line);border-radius:12px;padding:13px 14px;
    background:#fff;color:#334155;
}
.grw-state[data-state="loading"]{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}
.grw-state[data-state="error"]{background:#fff1f2;border-color:#fecdd3;color:#9f1239}
.grw-state[data-state="success"]{background:#ecfdf5;border-color:#a7f3d0;color:#166534}
@media(max-width:820px){
    .grw-content-stage,.grbs-content{overflow-x:hidden}
    .grw-content-stage :where(.table-wrap,.gos-table-wrap,.vendor-table-wrap,.customer-table-wrap,.agency-table-wrap),
    .grbs-content :where(.table-wrap){max-width:100vw}
}
@media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto!important}
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

