/* ===== PublicExplore — simple directory layout ===== */
:root {
    --brand: #1d4ed8;
    --brand-2: #3b82f6;
    --btn: #0b5394;
    --btn-dark: #083f72;
    --link: #1565a6;
    --ink: #2d3748;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f5f7fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin: 0 0 20px; }
h2 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); font-weight: 500; margin: 32px 0 12px; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 20px 0 6px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 32px; }

/* ----- Brand ----- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.35rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-size: 1rem; }

/* ----- Home hero ----- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 110px 20px 90px;
    background: linear-gradient(120deg, var(--brand), var(--brand-2)); overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; background: rgba(15, 23, 42, .08); transform: skewY(-5deg); }
.hero-brand { position: absolute; top: 18px; left: 22px; z-index: 2; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 720px; }
.hero h1 { color: #fff; font-weight: 700; margin-bottom: 6px; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.55rem); margin-bottom: 40px; }
.home-sec { max-width: 960px; margin: 0 auto; padding: 56px 20px; text-align: center; }
.home-sec.alt { background: var(--soft); max-width: none; }
.home-sec h2 { margin-top: 0; margin-bottom: 32px; font-weight: 600; }
.feature { display: flex; align-items: center; gap: 32px; text-align: left; max-width: 760px; margin: 0 auto 28px; }
.feature.reverse { flex-direction: row-reverse; }
.feature-art { flex: 0 0 140px; height: 120px; border-radius: 22px; background: linear-gradient(135deg, #eaf1ff, #dbe7ff); color: var(--brand); display: grid; place-items: center; font-size: 2.8rem; }
.feature p { font-size: 1.15rem; margin: 0; }
.popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.popular a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; }

/* ----- Search box + autocomplete ----- */
.search { position: relative; max-width: 1120px; margin-bottom: 28px; }
.search-row { display: flex; }
.search-field { position: relative; flex: 1; display: flex; background: #fff; border: 1px solid #cbd5e1; border-right: 0; border-radius: 4px 0 0 4px; }
.search-field:focus-within { border-color: var(--btn); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 18px 10px 18px 20px; font: inherit; font-size: 1.1rem; color: #111827; }
.search-field input::placeholder { color: #9ca3af; }
.float-label { position: absolute; top: -10px; left: 10px; padding: 0 10px; background: #fff; font-size: .78rem; color: var(--muted); line-height: 20px; pointer-events: none; }
.clear-btn { border: 0; background: none; color: var(--btn); font-size: 1.1rem; padding: 0 14px; cursor: pointer; visibility: hidden; }
.search-field.filled .clear-btn { visibility: visible; }
.search-btn { border: 0; background: var(--btn); color: #fff; font: inherit; font-size: 1.15rem; padding: 0 40px; border-radius: 0 4px 4px 0; cursor: pointer; }
.search-btn:hover { background: var(--btn-dark); }
.ac-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #d1d5db; box-shadow: 0 10px 30px rgba(15, 23, 42, .16); z-index: 50; text-align: left; }
.ac-list.open { display: block; }
.ac-list a { display: block; padding: 15px 18px; font-size: 1.05rem; color: var(--link); }
.ac-list a:hover, .ac-list a.active { background: #f1f5fb; text-decoration: none; }
.hero .search { margin: 0 auto; }
.hero .search-field { border: 0; }
.hero .search-row { box-shadow: 0 8px 26px rgba(15, 23, 42, .18); border-radius: 4px; }

/* ----- Inner layout: top bar, left nav, content, right column ----- */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.menu-btn { display: none; border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 42px; height: 42px; border-radius: 10px; font-size: 1.1rem; cursor: pointer; }
.layout { display: flex; min-height: calc(100vh - 64px); }
.leftnav { flex: 0 0 300px; padding: 36px 0 36px 52px; border-right: 1px solid var(--line); }
.leftnav a { display: block; padding: 13px 0; font-size: 1.12rem; color: var(--ink); }
.leftnav a.sub { padding-left: 18px; font-size: 1.05rem; }
.leftnav a.active { font-weight: 600; }
.leftnav a:hover { color: var(--link); text-decoration: none; }
.content { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 30px 26px 40px; }
.content.has-aside { grid-template-columns: minmax(0, 1fr) 420px; }
.right-col { padding-top: 56px; }
.right-col h2 { font-size: 1.45rem; font-weight: 500; margin: 0 0 18px; }
.right-col h2.mt { margin-top: 36px; }
.right-col > a { display: block; padding: 7px 0; font-size: 1.08rem; }
.right-col .search { margin-bottom: 0; }
.right-col .search-btn { padding: 0 18px; font-size: 1rem; }
.right-col .search-field input { padding: 12px 10px; font-size: 1rem; }

.crumb-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 18px; font-size: .95rem; }
.crumbs span { margin: 0 8px; color: var(--muted); }
.updated { color: var(--ink); }

.link-list { list-style: none; padding: 0; margin: 0 0 20px; }
.link-list li { padding: 9px 0; font-size: 1.08rem; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.letters a { min-width: 34px; text-align: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.letters a.active, .letters a:hover { background: var(--btn); border-color: var(--btn); color: #fff; text-decoration: none; }
.prose h2 { font-size: 1.3rem; }

/* ----- Company page ----- */
.company-title { margin-bottom: 0; }
.subtitle { margin-top: 2px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.demo-note { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 8px; padding: 8px 14px; font-size: .9rem; }
.phone-pill { display: inline-flex; align-items: center; gap: 12px; border: 2px solid var(--btn); border-radius: 999px; padding: 10px 30px; font-size: 1.85rem; color: var(--btn); }
.phone-pill i { font-size: 1.05rem; }
.phone-pill:hover { background: var(--btn); color: #fff; text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.tags span { background: #eceff3; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.tip { background: #f0fdf4; border: 1px solid #86efac; color: #166534; border-radius: 8px; padding: 10px 14px; }
.ivr { border-left: 3px solid #c7d6fb; padding: 2px 0 2px 16px; margin: 16px 0; }
.ivr h3 { margin-top: 0; }
.ivr blockquote { margin: 0 0 6px; font-style: italic; color: #4b5563; }
.ivr-do { font-weight: 600; color: var(--btn); margin: 0; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 520px; margin-bottom: 10px; text-align: center; }
.day .bar { height: 100px; background: #f1f3f6; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.day .bar span { display: block; width: 100%; background: #93b4f5; }
.day.low .bar span { background: #10b981; }
.day.high .bar span { background: #ef4444; }
.day b { display: block; font-size: .85rem; margin-top: 4px; }
.day small { display: block; min-height: 1.2em; font-size: .7rem; color: var(--muted); }
.day.low small { color: #047857; font-weight: 600; }
.day.high small { color: #b91c1c; font-weight: 600; }
.number { padding: 6px 0 10px; border-bottom: 1px dashed var(--line); }
.number a { font-size: 1.2rem; font-weight: 600; }
.number p { margin: 4px 0 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.why { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.why summary { cursor: pointer; font-weight: 600; color: var(--link); }
.why p { margin: 10px 0 0; color: #4b5563; }
.channel { display: flex; gap: 14px; padding: 10px 0; }
.channel > i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: #eaf1ff; color: var(--brand); display: grid; place-items: center; }
.channel h3 { margin: 0 0 2px; }
.channel p { margin: 2px 0 0; font-size: .92rem; }
.helpful { display: flex; gap: 8px; }
.helpful button { border: 1px solid #cbd5e1; background: #fff; border-radius: 6px; padding: 6px 14px; font: inherit; cursor: pointer; }
.helpful button:hover { border-color: var(--btn); color: var(--btn); }
.thanks { color: #047857; }

/* ----- Footer ----- */
.footer { background: #0f172a; color: #cbd5e1; padding: 44px 24px 22px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 80px; max-width: 1100px; margin: 0 auto; }
.footer h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer a { display: block; color: #cbd5e1; padding: 3px 0; font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer-copy { max-width: 1100px; margin: 30px auto 0; padding-top: 16px; border-top: 1px solid #1e293b; font-size: .82rem; color: #94a3b8; }

/* ----- Responsive ----- */
@media (max-width: 1199.98px) {
    .content.has-aside { grid-template-columns: minmax(0, 1fr); }
    .right-col { padding-top: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 991.98px) {
    .menu-btn { display: inline-block; }
    .layout { display: block; }
    .leftnav { display: none; padding: 8px 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .leftnav.open { display: block; }
    .content { padding: 22px 16px 32px; }
}
@media (max-width: 575.98px) {
    .search-field input { padding: 14px 8px 14px 14px; font-size: 1rem; }
    .search-btn { padding: 0 18px; font-size: 1rem; }
    .phone-pill { font-size: 1.4rem; padding: 8px 20px; }
    .feature, .feature.reverse { flex-direction: column; text-align: center; }
}

/* ----- About pages, contact form, A-Z list ----- */
.toc { margin: 0; padding-left: 20px; }
.toc li { padding: 6px 0; font-size: 1.08rem; }
.prose ul { padding-left: 22px; }
.press-item { margin-bottom: 32px; }
.press-item h2 { margin: 0 0 6px; font-size: 1.35rem; }
.press-item img { width: 150px; height: auto; border-radius: 4px; }
.member .role { text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.member .role a { margin-left: 12px; color: var(--muted); }
.member-body { display: flex; gap: 20px; align-items: flex-start; }
.member-body img { width: 230px; flex-shrink: 0; border-radius: 4px; }
.contact-form textarea, .contact-form input[type="email"] { width: 100%; border: 1px solid #cbd5e1; border-radius: 2px; padding: 18px 20px; font: inherit; font-size: 1.1rem; color: #111827; }
.contact-form textarea:focus, .contact-form input:focus { outline: 0; border-color: var(--btn); }
.contact-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.contact-form .actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin: 36px 0 24px; }
.big-btn { border: 0; background: var(--btn); color: #fff; font: inherit; font-size: 1.25rem; padding: 16px 40px; border-radius: 4px; cursor: pointer; }
.big-btn:hover { background: var(--btn-dark); }
.link-btn { border: 0; background: none; color: var(--link); font: inherit; font-size: 1.05rem; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.error { color: #b91c1c; margin: 6px 0 0; }
.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; border-radius: 6px; padding: 12px 16px; }
.letters { gap: 2px 14px; }
.letters a { border: 0; min-width: 0; padding: 2px 4px; font-size: 1.1rem; font-weight: 400; color: var(--link); }
.letters a.active { background: none; color: var(--ink); font-weight: 700; }
.letters a:hover { background: none; color: var(--link); text-decoration: underline; }
.company-list li { padding: 10px 0; }
.company-list strong { font-weight: 700; }
.pager { display: flex; gap: 24px; margin-top: 12px; }
@media (max-width: 575.98px) { .member-body { flex-direction: column; } .member-body img { width: 100%; } }

/* ----- AI-loaded company data ----- */
.loading { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: 16px 18px; margin: 20px 0; }
.source { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.source a { color: var(--muted); text-decoration: underline; }
.sources { padding-left: 20px; font-size: .92rem; word-break: break-all; }
.number .source a { font-size: inherit; font-weight: 400; }
.ac-list { max-height: 300px; overflow-y: auto; }

/* Hero: let the search dropdown overflow below the blue area (like GetHuman).
   The slanted shape is drawn with clip-path instead of overflow:hidden. */
.hero { overflow: visible; z-index: 5; }
.hero::after { left: 0; right: 0; bottom: 0; height: 45%; transform: none; clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.hero-inner { z-index: 10; }
.hero .ac-list { z-index: 100; }
