/* GFunnel - the public COMPANY PAGE (inc/gf_company_page.inc.php).
   What an organization profile shows to anybody not on its team. Tokens only;
   no rule carries a literal colour. Light by design: it sits under the
   profile's own cover band on the public site. */
.gfco {
    --gfco-accent: #F97316;
    --gfco-accent-hover: #EA6407;
    --gfco-accent-soft: rgba(249, 115, 22, .10);
    --gfco-ink: #0f1f3d;
    --gfco-slate: #475569;
    --gfco-muted: #6b7688;
    --gfco-line: #e8ebf1;
    --gfco-tint: #f5f7fa;
    --gfco-card: #ffffff;
    --gfco-radius: 14px;
    --gfco-shadow: 0 1px 2px rgba(15, 31, 61, .04), 0 4px 16px rgba(15, 31, 61, .04);
    --gfco-banner-bg: #0f1f3d;
    --gfco-banner-ink: #ffffff;
    color: var(--gfco-ink);
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 16px 96px;
}
.gfco *, .gfco *::before, .gfco *::after { box-sizing: border-box; }

.gfco-preview {
    background: var(--gfco-accent-soft);
    border: 1px solid var(--gfco-accent);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gfco-ink);
}
.gfco-preview a { color: var(--gfco-accent-hover); font-weight: 600; margin-left: 6px; }

.gfco-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.gfco-main, .gfco-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 881px) { .gfco-side { position: sticky; top: 9rem; } }
@media (max-width: 880px) { .gfco-grid { grid-template-columns: minmax(0, 1fr); } }

.gfco-card {
    background: var(--gfco-card);
    border: 1px solid var(--gfco-line);
    border-radius: var(--gfco-radius);
    box-shadow: var(--gfco-shadow);
    padding: 22px 24px;
}
.gfco-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gfco-head .gfco-h { margin: 0; }
.gfco-h { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; color: var(--gfco-ink); }
.gfco-h-sm { font-size: 16px; margin-bottom: 12px; }
.gfco-more { font-size: 13px; font-weight: 600; color: var(--gfco-accent-hover); text-decoration: none; }
.gfco-empty { color: var(--gfco-muted); margin: 0; font-size: 15px; }
.gfco-empty a { color: var(--gfco-accent-hover); font-weight: 600; }

.gfco-prose { font-size: 16px; line-height: 1.65; color: var(--gfco-slate); }
.gfco-prose p { margin: 0 0 12px; }
.gfco-prose p:last-child { margin-bottom: 0; }

/* Websites and landing pages: the page's primary way OUT. */
.gfco-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gfco-site {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--gfco-line);
    border-radius: 12px;
    background: var(--gfco-tint);
    color: var(--gfco-ink);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.gfco-site:hover { border-color: var(--gfco-accent); background: var(--gfco-accent-soft); }
.gfco-site-ico {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gfco-card); color: var(--gfco-accent);
}
.gfco-site-ico svg { width: 20px; height: 20px; }
.gfco-site-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.gfco-site-txt strong { font-size: 15px; }
.gfco-site-txt span { font-size: 13px; color: var(--gfco-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfco-site-go { flex: none; color: var(--gfco-accent); }
.gfco-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gfco-sites + .gfco-chips { margin-top: 14px; }
.gfco-chips:first-child { margin-top: 0; }
.gfco-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    border: 1px solid var(--gfco-line);
    font-size: 13px; font-weight: 600;
    color: var(--gfco-slate); text-decoration: none;
}
.gfco-chip:hover { border-color: var(--gfco-accent); color: var(--gfco-accent-hover); }

/* Content: filter chips, cards, the sign-up wall. */
.gfco-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.gfco-fbtn {
    border: 1px solid var(--gfco-line); background: var(--gfco-card);
    border-radius: 999px; padding: 6px 12px;
    font-size: 13px; font-weight: 600; color: var(--gfco-slate); cursor: pointer;
}
.gfco-fbtn.gfco-on { background: var(--gfco-ink); border-color: var(--gfco-ink); color: var(--gfco-card); }
.gfco-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gfco-item[hidden] { display: none; }
.gfco-item-link {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid var(--gfco-line); border-radius: 12px; overflow: hidden;
    background: var(--gfco-card); color: var(--gfco-ink); text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.gfco-item-link:hover { border-color: var(--gfco-accent); box-shadow: var(--gfco-shadow); }
.gfco-item-img { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--gfco-tint); }
.gfco-item-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.gfco-item-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gfco-muted); }
.gfco-type {
    padding: 2px 8px; border-radius: 999px;
    background: var(--gfco-accent-soft); color: var(--gfco-accent-hover);
    font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 11px;
}
.gfco-item-title { font-size: 16px; line-height: 1.35; }
.gfco-item-ex {
    font-size: 14px; line-height: 1.5; color: var(--gfco-slate);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gfco-items-metered { position: relative; }
.gfco-items-metered::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--gfco-card));
    pointer-events: none;
}
.gfco-wall {
    margin-top: 16px; padding: 22px; text-align: center;
    border-radius: 12px; background: var(--gfco-tint); border: 1px dashed var(--gfco-line);
}
.gfco-wall strong { display: block; font-size: 18px; margin-bottom: 6px; }
.gfco-wall p { margin: 0 0 14px; color: var(--gfco-slate); font-size: 14px; }
.gfco-wall-btns, .gfco-banner-btns { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }

.gfco-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--gfco-line); background: var(--gfco-card);
    font-size: 14px; font-weight: 700; color: var(--gfco-ink); text-decoration: none;
}
.gfco-btn:hover { border-color: var(--gfco-accent); }
.gfco-btn-solid { background: var(--gfco-accent); border-color: var(--gfco-accent); color: var(--gfco-card); }
.gfco-btn-solid:hover { background: var(--gfco-accent-hover); border-color: var(--gfco-accent-hover); }
.gfco-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--gfco-banner-ink); }

/* Side column. */
.gfco-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gfco-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.gfco-facts span { color: var(--gfco-muted); }
.gfco-team-cta p { margin: 0 0 12px; color: var(--gfco-slate); font-size: 14px; }

/* The floating sign-up banner. GUESTS only. */
.gfco-banner {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 50;
    width: min(880px, calc(100% - 32px));
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    padding: 12px 14px 12px 20px;
    border-radius: 14px;
    background: var(--gfco-banner-bg); color: var(--gfco-banner-ink);
    box-shadow: 0 10px 30px rgba(15, 31, 61, .25);
}
.gfco-banner[hidden] { display: none; }
.gfco-banner p { margin: 0; font-size: 14px; }
.gfco-banner p span { opacity: .8; }
.gfco-banner-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 0; border-radius: 999px;
    background: transparent; color: var(--gfco-banner-ink); cursor: pointer; opacity: .7;
}
.gfco-banner-x:hover { opacity: 1; }
@media (max-width: 560px) {
    .gfco-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .gfco-card { padding: 18px; }
}

/* Section hooks, named so a later PR can target one card without a new class. */
.gfco-about .gfco-prose { max-width: 72ch; }
.gfco-events .gfco-head { margin-bottom: 8px; }

/* The company page IS the profile body for a visitor. The profile page's own
   layout puts this block in its full-width top row and a second row (main +
   aside) under it, where the native Location, Products, Goals, Blogs and
   Listings blocks stack into a long column beside an empty main cell - the
   same content this page already lists. While THIS page is on screen, that
   second row is hidden; the team's workspace home is untouched because it
   carries no .gfco. The inactive-blocks row (.bx-lr-dump, Page Builder edit
   mode) is never hidden. A browser without :has() shows the rows, which is
   the safe direction. */
.bx-layout-wrapper:has(#bx-layout-cell-1 .gfco) > .bx-layout-row:not(.bx-lr-dump):not(:has(#bx-layout-cell-1)) {
    display: none;
}
.gfco-loc > :not(.gfco-h) { border-radius: 10px; overflow: hidden; }

/* ---------------------------------------------------------------------------
   The cover on the PUBLIC page keeps its shape.

   `gf_profile_band.css` caps every cover at min(31rem, 30vh), because on the
   TEAM's view the dashboard under it is the point and a 496px banner pushed it
   off the screen. On the public page the cover IS the storefront, and 30vh of
   a full-width box is a letterbox: at 1280px wide and 900px tall that is 270px,
   a 4.7:1 slice of an image uploaded at about 2.7:1, so most of it was cropped
   away. Here the box takes the cover's own proportion (2.7:1, the common
   banner shape), still never taller than upstream's 31rem and never shorter
   than 12rem. The placeholder (no cover uploaded) keeps upstream's short bar.
   Scoped by :has(.gfco), so only a page drawing the company page is affected;
   a browser without :has() keeps the budgeted height, which crops but breaks
   nothing.
   --------------------------------------------------------------------------- */
body:has(.gfco) .bx-base-pofile-cover-wrapper div.bx-base-pofile-cover-image:not(.bx-bpci-holder) {
    height: auto;
    aspect-ratio: 2.7 / 1;
    max-height: 31rem;
    min-height: 12rem;
}
