/* Beauty Navigator portal refresh
   Shared public/member visual layer. The independently themed Admin Center is intentionally excluded. */

:root {
    --bp-primary: #003faa;
    --bp-primary-deep: #002f82;
    --bp-primary-soft: #edf4ff;
    --bp-teal: #409dc1;
    --bp-teal-bright: #409dc1;
    --bp-teal-soft: #eaf6fb;
    --bp-sky: #27a6df;
    --bp-accent: #409dc1;
    --bp-background: #f3f6fa;
    --bp-surface: #ffffff;
    --bp-surface-soft: #f8fafd;
    --bp-border: #dce5f0;
    --bp-border-strong: #c8d5e5;
    --bp-text: #15253b;
    --bp-muted: #66778d;
    --bp-shadow-card: 0 5px 18px rgba(17, 43, 78, .055);
    --bp-shadow-raised: 0 14px 34px rgba(17, 43, 78, .12);
    --bp-font-system: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --bp-font-heading: 'Hurme Geometric Sans 3', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bp-background); color: var(--bp-text); font-family: var(--bp-font-system); font-weight: 400; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.bp-shell { font-size: 15px; }
.bp-shell :is(p, li, td, th, label, input, select, textarea, button) { text-underline-offset: .14em; }
.bp-shell { min-height: 100vh; background: linear-gradient(180deg, #f7f9fc 0, #f3f6fa 420px, #f3f6fa 100%); }
.bp-shell > .bn-main-content {
    background-color: var(--bp-background);
    background-image:
        linear-gradient(90deg, rgba(55, 76, 103, .025) 1px, transparent 1px),
        linear-gradient(rgba(55, 76, 103, .025) 1px, transparent 1px);
    background-size: 24px 24px;
}
.bp-shell h1, .bp-shell h2, .bp-shell h3, .bp-shell h4, .bp-shell h5, .bp-shell h6 { font-family: var(--bp-font-heading); }

/* One platform palette. Section attributes remain routing hooks, never color themes. */
.bp-shell,
body:has(.bp-shell) {
    --module-accent: #003faa;
    --module-accent-dark: #002f82;
    --module-accent-rgb: 0,63,170;
    --module-soft: #eaf6fb;
    --bp-section-accent: #409dc1;
}

/* Header and navigation */
.bp-site-header { border-bottom: 0; background: rgba(255,255,255,.98); box-shadow: 0 2px 16px rgba(18,44,78,.08); }
/* Keep mobile fixed search suggestions relative to the viewport, not a filtered header. */
.bp-utility-header { grid-template-columns: minmax(180px,1fr) minmax(0,980px) minmax(max-content,1fr); min-height: 76px; gap: clamp(14px,2vw,28px); padding: 10px clamp(22px,3.4vw,58px); }
.bp-header-brand-zone { display: flex; align-items: center; min-width: 0; }
.bp-brand img { height: 46px; max-width: 275px; }
.bp-account-area { gap: 8px; }
.bp-header-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cbd9ea;
    border-radius: 9px;
    background: #f6f9fe;
    color: var(--bp-primary);
    font-size: .875rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.bp-header-admin:hover { border-color: #9bb7dd; background: var(--bp-primary-soft); box-shadow: 0 4px 12px rgba(0,63,170,.1); text-decoration: none; }
.bp-header-admin .bn-icon { width: 19px; height: 19px; }
.bp-site-header .notif-bell {
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #cbd9ea;
    border-radius: 9px;
    background: #f6f9fe;
    color: var(--bp-primary);
    cursor: pointer;
    text-decoration: none;
}
.bp-site-header .notif-bell:hover { border-color: #9bb7dd; background: var(--bp-primary-soft); }
.bp-site-header .notif-bell:focus-visible { outline: 3px solid rgba(53,168,224,.3); outline-offset: 2px; }
.bp-site-header .notif-bell .bn-icon { width: 21px; height: 21px; }
.bp-header-link, .bp-header-register { min-height: 38px; padding: 9px 15px; border-radius: 9px; font-size: .875rem; }
.bp-header-link { color: #30445f; }
.bp-header-register { background: linear-gradient(135deg, var(--bp-primary-deep), var(--bp-primary)); box-shadow: 0 5px 13px rgba(0,63,170,.2); }
.bp-account-menu > summary { border-left-color: #e2e8f0; }
.bp-account-copy { font-size: .875rem; }
.bp-membership-badge { background: var(--bp-teal-soft); color: var(--bp-primary-deep); }
.bp-primary-nav { min-height: 48px; background: linear-gradient(90deg, #003b9f, #0049bd 58%, #003faa); box-shadow: inset 0 1px rgba(255,255,255,.1); }
.bp-primary-nav-inner { min-height: 48px; padding: 0 clamp(22px,3.4vw,58px); }
.bp-primary-nav a, .bp-primary-nav summary { min-height: 48px; padding: 0 17px; border-radius: 0; font-size: .875rem; font-weight: 650; letter-spacing: .005em; }
.bp-primary-nav a:hover, .bp-primary-nav summary:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.bp-primary-nav .active { background: rgba(255,255,255,.16); font-weight: 750; }
.bp-primary-nav .active::after { content: none; }
.bp-menu-panel { top: calc(100% + 8px); min-width: 245px; padding: 8px; border-color: #d8e1ec; border-radius: 13px; box-shadow: 0 18px 42px rgba(16,37,67,.17); }
.bp-menu-panel a, .bp-menu-panel button { padding: 10px 12px; border-radius: 8px; color: #283a52; }
.bp-menu-panel a:hover, .bp-menu-panel button:hover { background: #edf4ff; }
.bp-mobile-menu, .bp-mobile-dock { display: none; }

/* Shared list-workspace controls: one tab, filter, and table language across member modules. */
.bp-module-tabs {
    width: 100%;
    margin-bottom: .75rem;
    overflow: visible;
    border: 1px solid var(--bp-border);
    border-radius: .75rem;
    background: #fff;
}

/* Shared operational editor grammar. Complex forms use one connected surface,
   clear internal sections, and one action row instead of a stack of cards. */
.bp-editor-surface {
    overflow: hidden;
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 1rem;
    box-shadow: var(--bp-shadow-card);
}
.bp-editor-sections { display: grid; }
.bp-editor-section {
    min-width: 0;
    padding: clamp(1rem, 1.6vw, 1.5rem);
    background: var(--bp-surface);
    border-bottom: 1px solid var(--bp-border);
}
.bp-editor-section:last-child { border-bottom: 0; }
.bp-editor-section > :last-child { margin-bottom: 0; }
.bp-editor-subsection {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bp-surface-soft);
    border: 1px solid var(--bp-border);
    border-radius: .8rem;
}
.bp-editor-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem clamp(1rem, 1.6vw, 1.5rem);
    background: #f7fafe;
    border-top: 1px solid var(--bp-border);
}
.bp-editor-actions > .bp-editor-actions-spacer { flex: 1 1 auto; }
.bp-inline-editor {
    margin: 1rem 0;
    padding: clamp(1rem, 1.6vw, 1.4rem);
    background: #f7fbfd;
    border: 1px solid #9fcfe0;
    border-radius: .85rem;
}

@media (max-width: 700px) {
    .bp-editor-actions {
        position: sticky;
        z-index: 5;
        bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
        flex-wrap: wrap;
        box-shadow: 0 -8px 24px rgba(17,43,78,.12);
    }
    .bp-editor-actions > .bp-editor-actions-spacer { flex-basis: 100%; }
    .bp-editor-actions .bn-button { flex: 1 1 calc(50% - .65rem); }
}

/* Native portal presentation. */
.bp-navigation-tabs {
    display: flex;
    align-items: stretch;
    gap: .3rem;
    padding: .35rem;
    overflow-x: auto;
    background: color-mix(in srgb,var(--module-soft) 58%,#fff);
    scrollbar-width: thin;
}
.bp-navigation-tabs .bp-tab-link {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    min-height: 2.7rem;
    padding: .65rem 1rem;
    border: 1px solid color-mix(in srgb,var(--module-accent) 24%,var(--bp-border));
    border-radius: .55rem;
    background: rgba(255,255,255,.82);
    color: var(--bp-muted);
    font-size: .875rem;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.bp-navigation-tabs .bp-tab-link:hover {
    border-color: color-mix(in srgb,var(--module-accent) 58%,var(--bp-border));
    background: var(--module-soft);
    color: var(--module-accent-dark,var(--bp-text));
    text-decoration: none;
}
.bp-navigation-tabs .bp-tab-link.active,
.bp-navigation-tabs .bp-tab-link.active:hover {
    border-color: var(--module-accent);
    background: var(--module-accent);
    color: #fff;
    box-shadow: 0 4px 11px rgba(var(--module-accent-rgb,64,157,193),.16);
}
.bp-navigation-tabs .bp-tab-link:focus-visible {
    outline: 3px solid rgba(var(--module-accent-rgb,64,157,193),.25);
    outline-offset: 2px;
}

.bp-module-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-bottom: .85rem;
    padding: .65rem;
    border: 1px solid var(--bp-border);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 3px 12px rgba(22,52,91,.035);
}
.bp-manager-workspace { display: grid; gap: 1rem; }
.bp-manager-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bp-border);
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23,38,59,.045);
}
.bp-manager-section-heading {
    display: flex;
    min-height: 4.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--bp-border);
    background: #f7fafc;
}
.bp-manager-section-heading .bn-text-h6 { color: var(--bp-text); font-size: 1rem; font-weight: 750; }
.bp-manager-section-count {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0 .55rem;
    border: 1px solid #a7d5e5;
    border-radius: 999px;
    background: var(--bp-teal-soft);
    color: var(--bp-primary);
    font-size: .875rem;
    font-weight: 800;
}
.bp-manager-section > .bp-module-table { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.bp-manager-section > .bp-empty-state { margin: 0; border: 0; border-radius: 0; }
.bp-manager-list-surface { display: grid; gap: .75rem; }
.bp-manager-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: .7rem;
    border: 1px solid var(--bp-border);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 3px 12px rgba(22,52,91,.035);
}
.bp-manager-list-content { min-width: 0; }
.bp-module-tabbar {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    gap: .75rem;
    margin-bottom: .85rem;
    padding: .4rem;
    border: 1px solid var(--bp-border);
    border-radius: .75rem;
    background: color-mix(in srgb,var(--module-soft) 58%,#fff);
}
.bp-module-tabbar .bp-module-tabs-embedded {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border: 0;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}
.bp-module-tabbar-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .65rem;
    min-height: 3rem;
    padding: 0 .15rem;
}
.bp-module-tabbar-attached .bp-module-tabbar-controls { padding-right: .35rem; }
.bp-module-status-select { width: 190px; }
.bp-shell .portal-shell-center .bp-module-tabs,
.bp-shell .portal-shell-center .bp-module-tabbar .bp-module-tabs-embedded { overflow: visible; }
.bp-shell .portal-shell-center .bp-module-tabbar .bp-module-tabs-embedded {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.bp-module-table {
    overflow: hidden;
    border: 1px solid var(--bp-border) !important;
    border-radius: .85rem !important;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23,38,59,.045) !important;
}
.bp-module-table .bn-table-head { background: color-mix(in srgb,var(--module-soft) 45%,#fff); }
.bp-module-table .bn-table-cell { border-color: var(--bp-border); }
.bp-module-table .bn-table-pager {
    min-height: 3.25rem;
    padding: .45rem .75rem;
    border-top: 1px solid var(--bp-border);
    background: #fff;
}
.bp-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
}

/* Shell and rails */
.bp-page-container { padding: 20px clamp(18px,2vw,32px) 38px; }
.portal-shell-grid { grid-template-columns: 238px minmax(0,1fr) 264px; gap: clamp(15px,1.35vw,22px); }
.portal-shell-left, .portal-shell-right { position: sticky; top: 144px; }
.portal-rail { gap: 16px; }
.bp-card { border: 1px solid var(--bp-border); border-radius: 15px; background: var(--bp-surface); box-shadow: var(--bp-shadow-card); }
.portal-rail-card { padding: 18px; }
.portal-rail-heading { margin-bottom: 14px; color: var(--bp-primary); font-size: .875rem; letter-spacing: .12em; }
.portal-rail-heading .bn-icon { width: 19px; height: 19px; color: var(--bp-teal); }
.portal-directory-counts a { min-height: 45px; padding: 10px 3px; border-bottom-color: #e7edf4; font-size: .875rem; }
.portal-directory-counts a:hover { padding-left: 6px; color: var(--bp-primary); }
.portal-directory-counts .bn-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: #edf4ff; color: var(--bp-primary); }
.portal-directory-counts strong { color: #17283e; font-weight: 750; }
.portal-directory-actions a { min-height: 54px; padding: 10px 3px; border-bottom-color: #e7edf4; }
.portal-directory-actions a:hover { padding-left: 6px; }
.portal-directory-actions .bn-icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: #edf4ff; }
.portal-directory-actions strong { color: #17283e; font-weight: 750; }
.portal-rail-text-link, .portal-signin-link { font-size: .875rem; }
.portal-insights { overflow: hidden; background: linear-gradient(155deg,#fff 55%,#f1f6ff); }
.portal-insights p, .portal-help-card p, .portal-benefits p { color: #6d7d91; font-size: .875rem; line-height: 1.55; }
.portal-public-reach strong { color: var(--bp-primary); font-size: 1.45rem; }
.portal-rail-link-stack a { font-size: .875rem; }
.portal-tool-list a { min-height: 40px; padding: 9px 2px; border-bottom-color: #e7edf4; color: #31445d; font-size: .875rem; }
.portal-tool-list a:hover { padding-left: 5px; color: var(--bp-primary); text-decoration: none; }
.portal-tool-list .bn-icon { width: 27px; height: 27px; padding: 5px; border-radius: 7px; background: #eef4fc; }
.portal-tool-list a.is-active { margin: 2px -7px; padding: 9px 8px; border-bottom-color: transparent; border-radius: 9px; background: var(--module-soft,#edf4fd); box-shadow: inset 3px 0 0 var(--module-accent,var(--bp-primary)); color: var(--module-accent-dark,var(--module-accent,var(--bp-primary))); font-weight: 750; }
.portal-tool-list a.is-active:hover { padding-left: 8px; }
.portal-tool-list a.is-active .bn-icon { background: var(--module-accent,var(--bp-primary)); color: #fff; }
.portal-account-list a.account-tone-account { --account-accent: var(--bp-teal); --account-accent-dark: #287d9d; --account-soft: var(--bp-teal-soft); }
.portal-account-list a.account-tone-actions { --account-accent: #003faa; --account-accent-dark: #002f82; --account-soft: #eaf6fb; }
.portal-account-list a.is-active {
    margin: 2px -7px;
    padding: 9px 8px;
    border-bottom-color: transparent;
    border-radius: 9px;
    background: var(--account-soft,var(--bp-teal-soft));
    box-shadow: inset 3px 0 0 var(--account-accent,var(--bp-teal));
    color: var(--account-accent-dark,var(--bp-teal));
    font-weight: 750;
}
.portal-account-list a.is-active:hover { padding-left: 8px; }
.portal-account-list a.is-active .bn-icon { background: var(--account-accent,var(--bp-teal)); color: #fff; }
.portal-member-promo { margin-top: 17px; padding-top: 17px; }
.portal-benefits h2 { color: #192b42; font-size: 1.13rem; line-height: 1.25; }
.portal-register-cta { padding: 11px 16px; border-radius: 9px; background: linear-gradient(135deg,var(--bp-primary-deep),var(--bp-primary)); box-shadow: 0 5px 13px rgba(0,63,170,.18); }
.bp-shell .bn-card { overflow: hidden; border: 1px solid var(--bp-border); border-radius: 14px; background: #fff; box-shadow: var(--bp-shadow-card); }
.bp-shell .bn-card-header { padding: 18px 19px 9px; }
.bp-shell .bn-card-content { padding: 17px 19px 19px; }
.bp-shell .bn-card-actions { padding: 10px 18px 17px; }
.bp-shell .bn-hover-lift { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.bp-shell .bn-hover-lift:hover { border-color: #b4c8e3; box-shadow: var(--bp-shadow-raised); transform: translateY(-3px); }
.bp-shell .bn-tabs { overflow: hidden; border: 1px solid var(--bp-border); border-radius: 13px; background: #fff; box-shadow: var(--bp-shadow-card); }
.bp-shell .bn-table { overflow: hidden; border: 1px solid var(--bp-border); border-radius: 13px; background: #fff; }
.bp-shell .portal-shell-center .bn-table-head { background: color-mix(in srgb,var(--module-soft) 68%,#fff); }
.bp-shell .bn-table-head .bn-table-cell { color: #607289; font-size: .875rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.bp-shell .portal-shell-center .bn-table-body .bn-table-row:hover { background: color-mix(in srgb,var(--module-soft) 52%,#fff); }
.bp-shell .bn-chip { font-weight: 650; }
.bp-shared-page-header { position: relative; min-height: 0; padding: 16px 18px !important; overflow: hidden; border: 1px solid var(--bp-border) !important; border-left: 4px solid var(--module-accent,var(--bp-primary)) !important; margin-bottom: 16px !important; background: #fff !important; box-shadow: var(--bp-shadow-card) !important; }
.bp-shared-page-header::after { display: none; }
.bp-shared-page-header .bp-title { color: #17283e !important; font-size: clamp(1.55rem,2vw,1.95rem) !important; letter-spacing: -.025em; }
.bp-shared-page-header .bn-text-body2 { max-width: 740px; color: #65778d !important; }
.bp-empty-state { margin: 10px 0; border: 1px dashed #c8d5e5; border-radius: 13px; background: #fff; }
.bp-shell .portal-shell-center .bp-empty-state { border-color: color-mix(in srgb,var(--module-accent) 24%,#dce5f0); background: #fff; }
.portal-page-header { position: relative; padding-bottom: 18px; border-bottom: 0; }
.portal-page-header::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: linear-gradient(90deg,var(--bp-primary) 0 70px,#dfe7f1 70px 100%); content: ""; }

/* Shared branded data language. Status colors remain semantic. */
.bp-shell[data-portal-section="auctions"] .bn-card { border-top: 3px solid var(--bp-primary); }
.bp-shell[data-portal-section="auctions"] .bn-card-media { background-color: var(--bp-teal-soft); }
.bp-shell[data-portal-section="auctions"] .countdown-ending { color: var(--bp-error,#b42318); font-weight: 700; }
.bp-shell[data-portal-section="reverse-auctions"] .bn-card { border-top: 3px solid var(--module-accent); }
.bp-shell[data-portal-section="reverse-auctions"] .bn-card-media { background-color: var(--module-soft); }
.bp-shell[data-portal-section="reverse-auctions"] .countdown-ending { color: var(--bp-error,#b42318); font-weight: 700; }
.bp-shell[data-portal-section="catalogs"] .bn-card { border-top: 3px solid var(--bp-primary); }
.bp-shell[data-portal-section="spbook"] .bn-card { border-left: 4px solid var(--bp-primary); background: #fff; }
.bp-shell[data-portal-section="marketing"] .bn-table-head, .bp-shell[data-portal-section="marketing"] .bn-table-header { background: var(--bp-teal-soft); }

/* Directory */
.public-directory { width: 100%; max-width: none; padding: 0; }
.directory-active-filters { margin: 14px 0 -2px; }
.directory-active-filters a { padding: 7px 11px; border-color: #d4dfed; background: #fff; box-shadow: 0 2px 7px rgba(20,47,83,.04); font-size: .875rem; }
.portal-module-tools-host:has(.directory-filter-bar) { margin-bottom: 10px; }
.directory-results-heading { margin-bottom: 16px; }
.directory-results-heading > div > span { color: #718198; font-size: .875rem; }
.directory-results-heading h2 { margin-top: 5px; color: #17283e; font-size: 1.35rem; letter-spacing: -.015em; }
.directory-result-count { padding: 6px 10px; border-radius: 999px; background: #edf3fb; color: #51657e; font-size: .875rem; }
.directory-card { position: relative; overflow: hidden; background: #fff; }
.directory-card:hover, .directory-card:focus-within { background: #fff; }
.directory-card-monogram { background: linear-gradient(145deg,#edf4fd,#f8faff); }
.directory-card-monogram.has-logo { background: #fff; }
.directory-card-footer a { box-shadow: none; }
.directory-pagination-page, .directory-pagination-nav { border-color: #d6e0ed; box-shadow: 0 2px 7px rgba(20,47,83,.04); }
.directory-rail-filters { gap: 14px; }
.directory-rail-filters label { gap: 6px; color: #53667e; font-size: .875rem; }
.directory-rail-filters select { height: 42px; padding: 0 11px; border-color: #cbd7e5; border-radius: 9px; background-color: #fff; color: #273a52; }
.directory-rail-filters button { height: 42px; border-radius: 9px; background: linear-gradient(135deg,#003faa,#1263bd); box-shadow: 0 5px 13px rgba(0,63,170,.17); }
.directory-rail-query { padding: 11px; border: 1px solid #d7e3f1; border-radius: 9px; background: #f0f6ff; }

/* Company profiles */
.public-company-profile-band { margin-bottom: 18px; }
.public-company-header { position: relative; padding: clamp(22px,3vw,30px); overflow: hidden; border: 1px solid #d7e2ef; border-radius: 16px; background: linear-gradient(135deg,#fff 0%,#f2f7ff 100%); box-shadow: 0 9px 26px rgba(18,45,81,.08); }
.public-company-header::after { position: absolute; top: -90px; right: -50px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle,rgba(43,159,217,.12),transparent 68%); content: ""; pointer-events: none; }
.public-company-logo, .public-company-initials { position: relative; z-index: 1; border-color: #cedbea; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(19,49,88,.08); }
.public-company-heading { position: relative; z-index: 1; }
.public-company-heading h1 { color: #14263d; font-size: clamp(1.8rem,3vw,2.5rem); letter-spacing: -.03em; }
.public-company-category-chips a, .public-company-category-chips span { border-color: #ceddf0; background: rgba(255,255,255,.86); font-size: .875rem; }
.public-company-action-hub { margin-bottom: 20px; border-radius: 15px; box-shadow: var(--bp-shadow-card); }
.public-company-action-heading { padding: 17px 19px 2px; }
.public-company-action-toolbar { padding: 9px 14px 0; }
.public-company-action-toolbar button { padding: 11px 14px 12px; }
.public-company-action-icon { background: #eaf2ff; }
.public-company-tab-list { top: 142px; margin-bottom: 18px; padding: 6px; border-radius: 14px; box-shadow: 0 7px 20px rgba(19,47,83,.08); }
.public-company-tab-list label { padding: 10px 16px; border-radius: 9px; }
.public-company-workspace > .public-company-tab-control:nth-of-type(1):checked ~ .public-company-tab-list label:nth-child(1),
.public-company-workspace > .public-company-tab-control:nth-of-type(2):checked ~ .public-company-tab-list label:nth-child(2),
.public-company-workspace > .public-company-tab-control:nth-of-type(3):checked ~ .public-company-tab-list label:nth-child(3),
.public-company-workspace > .public-company-tab-control:nth-of-type(4):checked ~ .public-company-tab-list label:nth-child(4) { background: linear-gradient(135deg,#003faa,#1263bd); box-shadow: 0 4px 10px rgba(0,63,170,.18); }
.public-company-section, .public-company-quick-facts { margin-bottom: 18px; padding: clamp(20px,2.6vw,27px); border-color: #dce5f0; border-radius: 15px; box-shadow: var(--bp-shadow-card); }
.public-company-section > h2 { padding-bottom: 15px; border-color: #e3eaf2; color: #182a42; font-size: 1.08rem; }
.public-company-description { color: #40536b; font-size: .92rem; line-height: 1.78; }
.public-company-stat-grid div { padding: 14px 10px; border-color: #dbe6f2; border-radius: 10px; background: linear-gradient(145deg,#f7faff,#fff); }
.public-company-location-card, .public-company-contact-card { border-color: #dce5f0; border-radius: 11px; background: #f9fbfe; }
.public-company-contact-card:hover { border-color: #b7cbe5; background: #f4f8ff; }
.public-company-primary-links a { padding: 11px 12px; border-radius: 9px; }

/* News and editorial/content */
.news-public { width: 100%; max-width: none; }
.news-hero { margin-bottom: 24px; padding: 12px 2px 22px; }
.news-hero h1 { margin: 4px 0 5px; color: #14263d; font-size: clamp(2rem,4vw,3.1rem); letter-spacing: -.035em; }
.news-hero > p:last-child { color: #65778d; }
.news-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.news-card { overflow: hidden; border-color: #dce5ef; border-radius: 14px; box-shadow: var(--bp-shadow-card); }
.news-card:hover { border-color: #b6cae5; box-shadow: var(--bp-shadow-raised); transform: translateY(-3px); }
.news-card-media { background: linear-gradient(135deg,#e8f1ff,#f4f8ff); }
.news-card-body { padding: 19px; }
.news-card h2 { color: #1a2c43; font-size: 1.15rem; line-height: 1.32; }
.news-taxonomy a { border-color: #cedef1; background: #f3f7fd; color: #325f9d; }
.news-active-filter, .news-empty { border-color: #dce5f0; border-radius: 13px; background: #fff; box-shadow: var(--bp-shadow-card); }
.news-detail { margin: 0 auto; }
.news-detail > article { padding: clamp(20px,3vw,34px); border: 1px solid var(--bp-border); border-radius: 16px; background: #fff; box-shadow: var(--bp-shadow-card); }
.news-body { color: #354a63; line-height: 1.82; }
.news-body img { border-radius: 12px; }
.bp-shell .acct-form .form-control { min-height: 50px; border-color: #cbd7e5; border-radius: 10px; background-color: rgba(255,255,255,.9); }
.bp-shell .acct-btn-primary { min-height: 45px; border-radius: 10px; background: linear-gradient(135deg,#003faa,#1263bd); box-shadow: 0 6px 15px rgba(0,63,170,.2); }
.bp-shell .acct-btn-link { border-radius: 10px; }

/* Responsive portal composition */
@media (min-width: 1600px) {
    .portal-shell-grid { grid-template-columns: 250px minmax(0,1fr) 280px; }
    .bp-page-container { padding-right: 38px; padding-left: 38px; }
}

@media (max-width: 1250px) {
    .portal-shell-grid { grid-template-areas: "left center" "right center"; grid-template-columns: 220px minmax(0,1fr); }
    .portal-shell-right { grid-area: right; position: static; }
    .portal-shell-left { grid-area: left; }
    .portal-shell-center { grid-area: center; }
    .portal-rail-card { padding: 16px; }
    .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    body { padding-bottom: 68px; }
    .bp-utility-header { grid-template-columns: minmax(0,1fr) auto; min-height: 66px; padding: 8px 14px; }
    .bp-header-brand-zone { gap: 8px; }
    .bp-brand img { height: 39px; max-width: 210px; }
    .bp-primary-nav { display: none; }
    .bp-mobile-menu { display: block; }
    .bp-mobile-menu > summary { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d6e1ee; border-radius: 10px; background: #fff; color: var(--bp-primary); cursor: pointer; list-style: none; }
    .bp-mobile-menu > summary::-webkit-details-marker { display: none; }
    .bp-mobile-menu-panel { position: fixed; z-index: 1800; top: 72px; bottom: 76px; left: 12px; display: grid; align-content: start; width: min(310px,calc(100vw - 24px)); padding: 13px; overflow-y: auto; border: 1px solid #d8e2ee; border-radius: 15px; background: #fff; box-shadow: 0 22px 60px rgba(15,35,62,.24); }
    .bp-mobile-menu-title { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 7px 13px; border-bottom: 1px solid #e6ecf3; }
    .bp-mobile-menu-title span { color: #1a2c43; font-weight: 750; }
    .bp-mobile-menu-title small { color: #75869a; font-size: .875rem; }
    .bp-mobile-menu-panel > a { padding: 10px 9px; border-radius: 8px; color: #2b3e56; font-size: .875rem; font-weight: 600; text-decoration: none; }
    .bp-mobile-menu-panel > a:hover { background: #edf4ff; color: var(--bp-primary); }
    .bp-mobile-menu-group { margin-top: 7px; padding: 10px 9px 4px; color: #7a899b; font-size: .875rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
    .bp-mobile-dock { position: fixed; z-index: 1600; right: 0; bottom: 0; left: 0; display: flex; align-items: stretch; justify-content: space-around; min-height: 64px; padding: 5px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border-top: 1px solid #dbe4ef; background: rgba(255,255,255,.97); box-shadow: 0 -8px 25px rgba(17,43,78,.09); backdrop-filter: blur(14px); }
    .bp-mobile-dock a { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; max-width: 90px; border-radius: 10px; color: #6a7b90; font-size: .875rem; font-weight: 650; text-decoration: none; }
    .bp-mobile-dock a .bn-icon { width: 23px; height: 23px; }
    .bp-mobile-dock a.active { background: #edf4ff; color: var(--bp-primary); }
    .bp-account-area { gap: 2px; }
    .bp-header-admin span { display: none; }
    .bp-header-admin { width: 38px; padding: 8px; justify-content: center; }
    .bp-header-link, .bp-header-register { padding: 8px 9px; font-size: .875rem; }
    .bp-page-container { padding: 16px 14px 26px; }
    .portal-shell-grid { grid-template-areas: "center" "left" "right"; grid-template-columns: minmax(0,1fr); gap: 16px; }
    .portal-shell-left, .portal-shell-right { position: static; }
    .portal-member-tools .portal-tool-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 15px; }
    .public-company-tab-list { top: 0; }
    .bp-module-tabs { width: 100%; overflow-x: auto; }
}

@media (max-width: 620px) {
    .bp-brand img { height: 34px; max-width: 175px; }
    .bp-account-copy { display: none; }
    .bp-header-register { background: var(--bp-primary); box-shadow: none; }
    .portal-rail-card { padding: 17px; }
    .portal-member-tools .portal-tool-list { grid-template-columns: 1fr; }
    .bp-module-tabbar { align-items: stretch; flex-direction: column; }
    .bp-module-tabbar-controls { width: 100%; padding: 0; }
    .bp-module-status-select { width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .directory-results-heading { align-items: flex-start; }
    .directory-card { min-height: 0; }
    .public-company-header { padding: 19px; }
    .public-company-action-toolbar { padding-right: 7px; padding-left: 7px; }
    .bp-shared-page-header { align-items: flex-start !important; }
}

@media (max-width: 430px) {
    .bp-account-area .bp-header-register { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Company profile rebuild: dense business information with capability-aware tools. */
.company-page { padding: 0; }
.public-company-detail { display: grid; gap: 10px; }
.public-company-profile-command {
    display: grid;
    grid-template-columns: minmax(0,7fr) minmax(280px,3fr);
    gap: 10px;
    align-items: stretch;
}
.public-company-profile-band {
    margin: 0;
    padding: 17px 19px;
    overflow: hidden;
    border: 1px solid #d8e2ee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(17,43,78,.045);
}
.public-company-profile-band::before { width: 4px; }
.public-company-profile-band .public-company-header {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.public-company-profile-band .public-company-header::after { display: none; }
.public-company-profile-band .public-company-logo,
.public-company-profile-band .public-company-initials {
    flex-basis: 74px;
    width: 74px;
    height: 74px;
    border-radius: 12px;
    box-shadow: none;
}
.public-company-profile-band .public-company-logo { max-width: 74px; max-height: 74px; }
.public-company-profile-band .public-company-heading h1 {
    margin-bottom: 7px;
    font-size: clamp(1.5rem,2.4vw,2rem);
    letter-spacing: -.025em;
}
.public-company-profile-band .public-company-category-chips a,
.public-company-profile-band .public-company-category-chips span {
    padding: 4px 8px;
    background: #f3f7fc;
    font-size: .875rem;
}
.public-company-profile-band .public-company-location-line { margin-top: 7px; font-size: .875rem; }

.public-company-action-hub {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(17,43,78,.04);
}
.public-company-action-toolbar {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    padding: 8px;
    border-bottom: 0;
    overflow: visible;
}
.public-company-action-toolbar button {
    justify-content: flex-start;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #dce6f2;
    border-radius: 8px;
    background: #f8fafd;
}
.public-company-action-toolbar button:hover { border-color: #b9cde6; background: #f0f6ff; }
.public-company-action-toolbar button.active,
.public-company-action-toolbar button.is-favorite {
    border-color: #a9c4e8;
    background: #eaf2ff;
}
.public-company-action-toolbar button.is-favorite {
    border-color: #E3A21A;
    background: #FFF3CC;
    color: #754900;
    box-shadow: inset 0 0 0 1px rgba(227,162,26,.08);
}
.public-company-action-toolbar button.is-favorite .public-company-action-icon {
    background: #F4A51C;
    color: #fff;
}
.public-company-action-toolbar.has-claim > button:last-child { grid-column: 1 / -1; }
.public-company-action-icon { width: 22px; height: 22px; border-radius: 6px; font-size: .875rem; }
.public-company-action-modal .public-company-action-panel { padding: 4px 20px 20px; border-top: 0; }

.public-company-workspace { display: grid; gap: 10px; }
.public-company-tab-list {
    top: 64px;
    margin: 0;
    padding: 3px;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(17,43,78,.045);
}
.public-company-tab-list label { padding: 8px 12px; border-radius: 7px; font-size: .875rem; }
.public-company-tab-list label strong { min-width: 19px; height: 19px; font-size: .875rem; }
.public-company-tab-panels { min-width: 0; }
.public-company-section,
.public-company-quick-facts {
    margin: 0;
    padding: 17px 18px;
    border-color: #dce5ef;
    border-radius: 11px;
    box-shadow: 0 2px 9px rgba(17,43,78,.035);
}
.public-company-section > h2 {
    margin-bottom: 13px;
    padding-bottom: 11px;
    font-size: .98rem;
}
.public-company-information-grid {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(250px,.8fr);
    gap: 10px;
    align-items: start;
}
.public-company-summary-section { min-width: 0; }
.public-company-description { font-size: .88rem; line-height: 1.65; }
.public-company-data-list { display: grid; margin: 15px 0 0; border-top: 1px solid #e3eaf2; }
.public-company-data-list > div {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e8edf3;
}
.public-company-data-list dt { color: #718096; font-size: .875rem; font-weight: 700; }
.public-company-data-list dd { min-width: 0; margin: 0; color: #273a52; font-size: .875rem; overflow-wrap: anywhere; }
.public-company-data-list a { color: var(--bp-primary); font-weight: 700; text-decoration: none; }
.public-company-data-list a:hover { text-decoration: underline; }
.public-company-capability-group + .public-company-capability-group {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #e4ebf3;
}
.public-company-capability-group h3 { margin: 0 0 8px; color: #697b91; font-size: .875rem; letter-spacing: .07em; text-transform: uppercase; }
.public-company-detail-chips { gap: 5px; }
.public-company-detail-chips a,
.public-company-detail-chips span { padding: 5px 7px; font-size: .875rem; }
.public-company-locations-section { margin-top: 10px; }
.public-company-location-list { display: grid; }
.public-company-location-row {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr);
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid #e7edf4;
}
.public-company-location-row:last-child { padding-bottom: 0; border-bottom: 0; }
.public-company-location-row > span {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eaf2fd;
}
.public-company-location-row > span::before {
    position: absolute;
    top: 5px;
    left: 7px;
    width: 7px;
    height: 9px;
    border: 2px solid var(--bp-primary);
    border-radius: 7px 7px 8px 8px;
    content: "";
}
.public-company-location-row h3 { margin: 0 0 2px; color: #253950; font-size: .875rem; }
.public-company-location-row p { margin: 0; color: #66788d; font-size: .875rem; line-height: 1.45; }
.public-company-contacts-section,
.public-company-catalogs-section,
.public-company-gallery-card { margin: 0; }

@media (max-width: 760px) {
    .public-company-profile-command { grid-template-columns: 1fr; }
    .public-company-profile-band { padding: 14px; }
    .public-company-profile-band .public-company-header { align-items: flex-start; padding: 0; }
    .public-company-profile-band .public-company-logo,
    .public-company-profile-band .public-company-initials { flex-basis: 58px; width: 58px; height: 58px; }
    .public-company-profile-band .public-company-logo { max-width: 58px; max-height: 58px; }
    .public-company-information-grid { grid-template-columns: 1fr; }
    .public-company-data-list > div { grid-template-columns: 82px minmax(0,1fr); }
    .public-company-section { padding: 15px; }
    .public-company-tab-list { top: 0; }
    .public-company-action-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Company profile reference layout: persistent facts beside scalable company content. */
.public-company-detail-topline {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
}
.public-company-detail-topline nav { display: flex; gap: 8px; align-items: center; color: #738398; font-size: .875rem; }
.public-company-detail-topline a { color: var(--bp-primary); font-weight: 750; text-decoration: none; }
.public-company-detail-topline a:hover { text-decoration: underline; }
.public-company-detail-topline strong { color: #263950; }
.public-company-reference-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    gap: 12px;
    align-items: start;
}
.public-company-reference-layout.single-column { grid-template-columns: minmax(0, 1fr); }
.public-company-profile-card,
.public-company-activity-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(17,43,78,.045);
}
.public-company-profile-card { border-top: 4px solid #409dc1; }
.public-company-profile-card .public-company-profile-band {
    margin: 0;
    padding: 17px 18px 15px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #e3eaf2;
    box-shadow: none;
}
.public-company-profile-card .public-company-profile-band::before { display: none; }
.public-company-profile-card .public-company-action-hub {
    margin: 0;
    border: 0;
    border-bottom: 1px solid #e3eaf2;
    border-radius: 0;
    box-shadow: none;
}
.public-company-profile-card .public-company-action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
}
.public-company-profile-card .public-company-action-toolbar.has-claim > button:last-child { grid-column: auto; }
.public-company-profile-card .public-company-action-toolbar button {
    justify-content: center;
    flex: 1 0 auto;
    width: auto;
    min-height: 44px;
    padding: 8px 12px;
    white-space: nowrap;
    background: #fff;
}
.public-company-profile-card .public-company-action-toolbar strong { font-size: .875rem; }
.public-company-profile-overview > .public-company-section {
    margin: 0;
    padding: 17px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.public-company-profile-overview > .public-company-section + .public-company-section { border-top: 1px solid #e3eaf2; }
.public-company-profile-overview .public-company-section > h2 {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    color: #1d3048;
    font-size: .96rem;
}
.public-company-profile-overview .public-company-description { margin-bottom: 14px; font-size: .875rem; line-height: 1.58; }
.public-company-primary-location {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 11px;
    align-items: start;
    padding: 13px;
    border: 1px solid #dfe7f0;
    border-radius: 9px;
    background: #fbfcfe;
}
.public-company-primary-location div,
.public-company-method-tile div { display: grid; min-width: 0; gap: 2px; }
.public-company-primary-location small,
.public-company-method-tile small { color: #718197; font-size: .875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.public-company-primary-location strong { color: #2c3e54; font-size: .875rem; }
.public-company-primary-location p { margin: 1px 0 0; color: #596b80; font-size: .875rem; line-height: 1.4; }
.public-company-info-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f5fa;
    color: #1685a9;
    font-size: .9rem;
    font-weight: 800;
}
.public-company-info-icon.phone::before { content: "☎"; }
.public-company-info-icon.email::before { content: "✉"; }
.public-company-info-icon.website::before { content: "◎"; }
.public-company-info-icon.presence::before { content: "▤"; }
.public-company-info-icon.email { background: #fff4df; color: #c97b00; }
.public-company-info-icon.phone { background: #eaf8ef; color: #238a4d; }
.public-company-info-icon.presence { background: #eef1f5; color: #607086; }
.public-company-method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.public-company-method-tile {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr);
    gap: 10px;
    min-width: 0;
    align-items: center;
    padding: 11px;
    border: 1px solid #e1e8f1;
    border-radius: 9px;
    background: #fff;
}
.public-company-method-tile a,
.public-company-method-tile strong { min-width: 0; color: #2e4158; font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; text-decoration: none; }
.public-company-method-tile a:hover { color: var(--bp-primary); text-decoration: underline; }
.public-company-profile-overview .public-company-capability-section { padding-top: 15px; padding-bottom: 15px; }
.public-company-profile-overview .public-company-detail-chips a,
.public-company-profile-overview .public-company-detail-chips span { border: 1px solid #dce7f4; background: #f5f8fc; }
.public-company-activity-card { min-height: 0; }
.public-company-activity-card .public-company-workspace { gap: 0; }
.public-company-activity-card .public-company-tab-list {
    position: static;
    gap: 20px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid #dfe7f0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.public-company-activity-card .public-company-tab-list label {
    gap: 7px;
    min-height: 47px;
    padding: 0 1px;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #5d6f84;
    font-size: .875rem;
}
.public-company-activity-card .public-company-tab-list label:hover { background: transparent; }
.public-company-activity-card .public-company-tab-list label strong { min-width: auto; height: auto; padding: 0; background: transparent; font-size: .875rem; }
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(1):checked ~ .public-company-tab-list label:nth-child(1),
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(2):checked ~ .public-company-tab-list label:nth-child(2),
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(3):checked ~ .public-company-tab-list label:nth-child(3),
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(4):checked ~ .public-company-tab-list label:nth-child(4) {
    border-bottom-color: #409dc1;
    background: transparent;
    color: #126c89;
    box-shadow: none;
}
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(1):checked ~ .public-company-tab-list label:nth-child(1) strong,
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(2):checked ~ .public-company-tab-list label:nth-child(2) strong,
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(3):checked ~ .public-company-tab-list label:nth-child(3) strong,
.public-company-activity-card .public-company-workspace > .public-company-tab-control:nth-of-type(4):checked ~ .public-company-tab-list label:nth-child(4) strong { background: transparent; color: #126c89; }
.public-company-activity-card .public-company-tab-panels { padding: 12px; }
.public-company-activity-card .public-company-section {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.public-company-activity-card .public-company-section > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.public-company-activity-card .public-company-contact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); max-height: 680px; gap: 12px; }
.public-company-activity-card .public-company-contact-card {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 112px;
    padding: 12px;
    border-color: #e1e8f0;
    background: #f8fafc;
}
.public-company-activity-card .public-company-contact-avatar { display: none; }
.public-company-contact-card > div { min-width: 0; overflow-wrap: anywhere; padding-right: 40px; }
.public-company-contact-card { position: relative; }
.public-company-contact-card .public-contact-action { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--bp-primary, #003FAA); text-decoration: none; }
.public-company-contact-card .public-contact-action:hover { background: #edf4ff; }
.public-contact-action svg { flex: 0 0 18px; width: 18px; height: 18px; }
.public-company-activity-card .public-company-contact-card h3 { font-size: .875rem; }
.public-company-activity-card .public-company-contact-card p[data-contact-email]::before { margin-right: 7px; color: #2395b8; content: "✉"; }
.public-company-activity-card .public-company-contact-card p[data-contact-phone]::before { margin-right: 7px; color: #2395b8; content: "☎"; }
.public-company-activity-card .public-company-catalog-columns,
.public-company-activity-card .public-company-catalog-row { grid-template-columns: minmax(150px,1fr) minmax(72px,.45fr) minmax(82px,.5fr) 20px; gap: 9px; }

/* Module tabs belong to the content surface below; they are not a separate colored card. */
.bp-module-tabbed-surface {
    --bp-module-tab-rail-bg: #f7f9fc;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bp-border);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23,38,59,.045);
}
.bp-shell .portal-shell-center .bp-module-tabs-attached {
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.bp-module-tabbed-content { min-height: 10rem; background: #fff; }
.bp-module-tabbed-message { margin: 1rem 1.25rem 0 !important; }
.bp-module-tabbed-content > .bp-empty-state {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}
.bp-module-tabbed-content > .bp-module-table {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.bp-module-tabbar-attached {
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--bp-border);
    border-radius: 0;
    background: var(--bp-module-tab-rail-bg,#f7f9fc);
}
.bp-module-tabbar-attached .bp-module-tabbar-controls {
    min-height: 0;
    align-self: stretch;
    padding: 0 .75rem;
    background: var(--bp-module-tab-rail-bg,#f7f9fc);
}

@media (max-width: 760px) {
    .bp-module-tabbar-attached { align-items: stretch; flex-direction: column; }
    .bp-module-tabbar-attached .bp-module-tabbar-controls { padding: .45rem .75rem .65rem; }
    .bp-module-tabbed-message { margin: .8rem .8rem 0 !important; }
    .bp-row-actions { justify-content: flex-start; }
}

@media (max-width: 1120px) {
    .public-company-reference-layout { grid-template-columns: 1fr; }
    .public-company-profile-card .public-company-action-toolbar { grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); }
}
@media (max-width: 600px) {
    .public-company-detail-topline { min-height: 28px; }
    .public-company-profile-card .public-company-action-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .public-company-method-grid,
    .public-company-activity-card .public-company-contact-grid { grid-template-columns: 1fr; }
    .public-company-activity-card .public-company-tab-list { gap: 14px; padding: 0 12px; overflow-x: auto; }
    .public-company-activity-card .public-company-tab-panels { padding: 9px; }
}

@media (pointer: coarse) { .public-company-contact-card .public-contact-action { width: 44px; height: 44px; top: 4px; right: 4px; } }

.bp-header-messages[aria-expanded="true"] { background: #edf4ff; border-color: #003FAA; }
