/* ==========================================================================
   app.css — shared components for ShelfTap sub-pages
   (login, search, directory, company profile, blog, contact, top-buyers)
   Builds on theme.css tokens. Loaded after theme/shared/page css.
   ========================================================================== */

/* ---- Page shell -------------------------------------------------------- */
.page-main { padding-top: 5.5rem; position: relative; z-index: 5; }
.page-hero {
    position: relative;
    padding: clamp(3rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 3.5rem);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.page-hero.tinted { background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 10%, var(--paper)) 0%, var(--paper) 100%); }
.page-hero .h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1.2rem; max-width: 58ch; }

/* Breadcrumbs (SEO + orientation) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1.4rem; font-weight: 500; }
.crumbs a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.crumbs [aria-current] { color: var(--ink); }

/* Generic section spacing on sub-pages */
.subsection { padding-block: clamp(3rem, 8vh, 6rem); }

/* ---- Chips / tags / badges -------------------------------------------- */
.chipset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.85rem; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft); cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip-tag:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip-tag.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem; border-radius: 100px;
}
.pill-verified { background: rgba(30,94,58,0.1); color: var(--verified); border: 1px solid rgba(30,94,58,0.25); }
.pill-golden { background: rgba(159,227,184,0.25); color: var(--verified); border: 1px solid var(--glow); }
.pill-channel { background: rgba(90,87,78,0.1); color: var(--ink-soft); border: 1px solid var(--line); }
.pill-likely { background: rgba(199,64,43,0.08); color: var(--signal); border: 1px solid rgba(199,64,43,0.2); }
.pill-neutral { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); }
.input, .textarea, .select {
    width: 100%; padding: 0.9rem 1rem; font-size: 1rem; font-family: inherit;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 55%, transparent); }
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--verified);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 45%, transparent);
}
.textarea { resize: vertical; min-height: 140px; }
.input-icon { position: relative; }
.input-icon .input { padding-left: 2.85rem; }
.input-icon svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }

.btn-block { width: 100%; justify-content: center; }
.btn-solid {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 1.6rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
    background: var(--ink); color: var(--paper); border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3); transition: background 0.3s, transform 0.2s;
}
.btn-solid:hover { background: var(--verified); transform: translateY(-2px); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 1.6rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
    background: #fff; color: var(--ink); border: 1px solid var(--line); cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.divider-or { display: flex; align-items: center; gap: 1rem; color: var(--ink-soft); font-size: 0.82rem; margin: 1.4rem 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.oauth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; width: 100%;
    padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff;
    font-weight: 500; font-size: 0.95rem; color: var(--ink); cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.oauth-btn:hover { border-color: var(--ink-soft); background: var(--paper); }

/* ---- Auth split layout ------------------------------------------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 5.5rem); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 2rem; }
.auth-aside { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(2.5rem, 5vw, 4rem); }
.auth-aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(159,227,184,0.18), transparent 60%); pointer-events: none; }
.auth-aside .brand { position: absolute; top: clamp(2.5rem, 5vw, 4rem); left: clamp(2.5rem, 5vw, 4rem); z-index: 2; }
.auth-aside .quote { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.2; font-weight: 400; position: relative; z-index: 2; text-align: center; max-width: 18em; margin: 0; }
.auth-aside .quote em { font-style: italic; color: var(--glow); }
.auth-stat { position: relative; z-index: 2; }
.auth-stat .n { font-family: var(--font-display); font-size: 3rem; color: var(--glow); line-height: 1; }
.auth-stat .l { color: #b9b5a8; font-size: 0.95rem; margin-top: 0.4rem; }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 1.2rem; }
.form-row a { color: var(--verified); text-decoration: none; font-weight: 500; }
.form-row a:hover { text-decoration: underline; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--verified); }

/* ---- Auth single-column pages (login sub-flows) ------------------------ */
.auth-single {
    max-width: 460px; margin: 0 auto;
    display: flex; align-items: center;
    min-height: calc(100vh - 5.5rem);
    padding: 2rem 1.25rem 4rem;
}
.auth-single > .auth-card { width: 100%; }
.auth-error { margin-bottom: 1.2rem; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.85rem; background: rgba(199,64,43,0.08); border: 1px solid rgba(199,64,43,0.25); color: var(--signal); }
.auth-note { margin-bottom: 1.2rem; padding: 0.8rem 1rem; border-radius: 12px; font-size: 0.85rem; background: color-mix(in srgb, var(--glow) 22%, #fff); border: 1px solid rgba(30,94,58,0.25); color: var(--verified); }
.field-error { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--signal); }

/* Email verification code entry */
.code-email { font-weight: 600; color: var(--verified); word-break: break-all; }
.code-spam-hint { display: inline-block; margin-top: 0.65rem; font-size: 0.85rem; color: var(--ink-soft); }
.code-input {
    width: 100%; text-align: center; font-size: 1.9rem; font-weight: 700;
    letter-spacing: 0.55rem; padding: 0.85rem 0.5rem; caret-color: var(--verified);
    font-variant-numeric: tabular-nums;
}
.code-resend { display: inline; }
.code-resend button {
    background: none; border: none; padding: 0; margin-top: 1rem;
    color: var(--verified); font: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline;
}

/* ---- Toolbar / filter bar --------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.toolbar .grow { flex: 1 1 320px; }
.search-lg { position: relative; }
.search-lg .input { padding: 1.1rem 1rem 1.1rem 3.2rem; font-size: 1.05rem; border-radius: 100px; }
.search-lg svg { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-soft); }
.seg { display: inline-flex; padding: 0.3rem; border: 1px solid var(--line); border-radius: 100px; background: #fff; }
.seg button { padding: 0.55rem 1.1rem; border-radius: 100px; border: none; background: none; font-family: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all 0.3s var(--ease); }
.seg button.active { background: var(--ink); color: var(--paper); }

/* ---- Directory: search band + results header -------------------------- */
.dir-searchbar {
    display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 0.75rem 0.85rem; box-shadow: 0 12px 30px -24px rgba(14,14,12,0.4);
}
.dir-searchbar .search-lg { flex: 1 1 320px; }
.dir-searchbar .search-lg .input { border: 1px solid transparent; background: var(--paper); }
.dir-searchbar .search-lg .input:focus { background: #fff; }
.dir-searchbar .btn-solid { flex: none; }
@media (max-width: 560px) { .dir-searchbar { padding: 0.7rem; } .dir-searchbar .btn-solid { width: 100%; } }

.results-head { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.results-head .count { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; }
.results-head .count span { color: var(--ink-soft); font-family: var(--font-body); font-size: 0.95rem; }

/* ---- Company cards / directory ---------------------------------------- */
/* Two roomy cards per row on desktop, one on narrow screens. */
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 620px) { .co-grid { grid-template-columns: 1fr; } }
.co-card {
    display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem;
    min-height: 216px;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    text-decoration: none; color: inherit;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.co-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -35px rgba(14,14,12,0.28); border-color: var(--ink-soft); }
/* Roomier styling for the directory grid (scoped so account-page .co-card is untouched) */
.co-grid .co-card { min-height: 0; gap: 1rem; padding: 1.65rem 1.75rem; }
.co-top { display: flex; align-items: center; gap: 0.95rem; }
.co-top > div:last-child { min-width: 0; }
.co-logo { width: 48px; height: 48px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.25rem; color: var(--paper); background: var(--verified); }
.co-grid .co-logo { width: 54px; height: 54px; font-size: 1.4rem; }
.co-logo.alt { background: var(--ink); }
.co-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Wider cards leave room for the full name to wrap to two lines instead of clipping */
.co-grid .co-name { font-size: 1.32rem; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.co-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; }
.co-desc {
    font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 4.3em;
}
.co-foot { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; padding-top: 0.75rem; }

/* Sidebar filter (directory / search) */
.with-aside {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
        "filters search"
        "filters results";
    gap: 2rem;
    align-items: start;
}
.with-aside > * { min-width: 0; }
.dir-search { grid-area: search; }
.filter-aside { grid-area: filters; }
.dir-results { grid-area: results; }
@media (max-width: 900px) {
    .with-aside {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .dir-search { order: 1; }
    .filter-aside { order: 2; position: static !important; align-self: stretch; }
    .dir-results { order: 3; }
}
@media (min-width: 901px) {
    .filter-details > .filter-card { display: block !important; }
    .filter-details > summary { display: none !important; }
}
.filter-aside { position: sticky; top: 6rem; }
/* No card chrome — filters sit directly in the sidebar and expand full width. */
.filter-card { background: transparent; border: none; border-radius: 0; padding: 0; }
.filter-card > form { display: flex; flex-direction: column; gap: 1.5rem; }
.filter-scroll { display: flex; flex-direction: column; gap: 1.5rem; }
.filter-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.filter-group h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 0.75rem; }
.filter-group label { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; font-size: 0.92rem; color: var(--ink); cursor: pointer; }
.filter-group input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--verified); }
/* Collapse filters into a native disclosure on small screens */
.filter-details > summary { display: none; }
@media (max-width: 900px) {
    .filter-details > summary {
        display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none;
        font-weight: 600; padding: 0.9rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    }
    .filter-details > summary::-webkit-details-marker { display: none; }
    .filter-details > summary::after { content: '+'; font-size: 1.3rem; color: var(--ink-soft); }
    .filter-details[open] > summary { border-radius: 14px 14px 0 0; }
    .filter-details[open] > summary::after { content: '\2212'; }
    /* On mobile the expanded panel is a real card again (desktop is chrome-less) */
    .filter-details > .filter-card { background: #fff; border: 1px solid var(--line); border-top: none; border-radius: 0 0 14px 14px; padding: 1.25rem; }
    .filter-details:not([open]) > .filter-card { display: none !important; }
    .filter-details:not([open]) { height: auto; }
}

/* ---- Company profile --------------------------------------------------- */
.profile-head { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-identity { display: flex; flex-wrap: wrap; gap: 1.25rem 1.6rem; align-items: flex-start; width: 100%; }
.profile-identity-body { flex: 1; min-width: 0; }
.profile-logo-wrap { position: relative; flex: none; }
.profile-logo { width: 84px; height: 84px; border-radius: 20px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem; color: var(--paper); background: var(--verified); box-shadow: 0 12px 30px -12px rgba(30,94,58,0.5); }
.profile-verify-badge {
    position: absolute; right: -0.35rem; bottom: -0.35rem;
    width: 2rem; height: 2rem; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; border: 2px solid #fff;
    box-shadow: 0 6px 16px -8px rgba(14,14,12,0.45);
}
.profile-verify-badge.is-verified { background: var(--verified); color: var(--paper); }
.profile-logo-wrap.is-unverified .profile-logo {
    background: color-mix(in srgb, var(--ink-soft) 55%, var(--ink));
    box-shadow: 0 12px 30px -12px rgba(14,14,12,0.35);
}
.profile-verify-badge.is-unverified {
    background: linear-gradient(135deg, #f3f1ea 0%, #e8e4d8 100%);
    color: var(--ink-soft); border-color: #fff;
}
.profile-verify-badge.is-unverified i { opacity: 0.72; }
.profile-verify-badge.is-unverified::after {
    content: ''; position: absolute; left: 22%; right: 22%; top: 46%;
    border-top: 2px solid color-mix(in srgb, var(--ink-soft) 70%, transparent);
    transform: rotate(-38deg); pointer-events: none;
}
.profile-head h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
.profile-sub { color: var(--ink-soft); margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.92rem; }
.profile-sub span { display: inline-flex; align-items: center; gap: 0.35rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; margin-top: 0; align-items: start; }
.profile-stack { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; }
.profile-stack > .card { width: 100%; margin: 0; }
.profile-main { grid-column: 1; grid-row: 1; }
.profile-listings { grid-column: 1 / -1; }
.profile-listings + .profile-listings { margin-top: 0; }
.profile-aside { grid-column: 2; grid-row: 1; position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 940px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-main, .profile-listings, .profile-aside { grid-column: 1; grid-row: auto; }
    .profile-aside { position: static !important; }
}
@media (max-width: 640px) {
    .profile-logo { width: 72px; height: 72px; border-radius: 18px; font-size: 1.65rem; }
    .profile-verify-badge { width: 1.75rem; height: 1.75rem; font-size: 0.82rem; right: -0.25rem; bottom: -0.25rem; }
    .profile-identity { gap: 1rem; }
    .profile-head { gap: 1.1rem; }
    .profile-stack > .card { padding: 1.35rem 1.25rem; border-radius: 16px; }
    .page-hero.tinted { padding-bottom: 1.5rem; }
}

/* Sidebar info rows: contacts, locations, details */
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.info-row:last-child { border-bottom: none; }
.info-row:first-child { padding-top: 0; }
a.info-row:hover .iv { color: var(--verified); }
.info-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; background: color-mix(in srgb, var(--glow) 20%, #fff); color: var(--verified); border: 1px solid rgba(30,94,58,0.2); }
.info-txt { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.info-txt .il { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.info-txt .iv { font-size: 0.94rem; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; transition: color 0.2s; }
.detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row .dk { color: var(--ink-soft); }
.detail-row .dv { font-weight: 600; text-align: right; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem;
}
.card + .card { margin-top: 1.6rem; }
.card h2, .card h3 { font-family: var(--font-display); font-weight: 400; }
.card h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-soft); }
.kv .v { font-weight: 500; text-align: right; }
.deal-list { display: flex; flex-direction: column; gap: 0.75rem; }
.deal-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.deal-item svg { flex: none; }

/* Profile: at-a-glance facts + section headers with count */
.profile-facts { display: flex; flex-wrap: wrap; gap: 0.65rem; width: 100%; }
.fact {
    display: inline-flex; align-items: center; gap: 0.5rem; flex: 1 1 12rem;
    min-width: 0; padding: 0.65rem 1rem; border-radius: 14px;
    background: #fff; border: 1px solid var(--line); font-size: 0.86rem; color: var(--ink);
}
.fact i { color: var(--verified); font-size: 0.85rem; flex: none; }
.fact .fl { color: var(--ink-soft); }
@media (max-width: 640px) {
    .profile-facts { flex-direction: column; gap: 0.55rem; }
    .profile-facts .fact { flex: 1 1 auto; width: 100%; }
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }
.card-head h2 { margin: 0; }
.card-head .tag-count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }

/* Profile: product listing cards — full-width rows */
.listing-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.listing-card {
    display: flex; flex-direction: column; gap: 0.55rem; padding: 1.25rem 1.35rem;
    border: 1px solid var(--line); border-radius: 16px; background: #fff;
    transition: border-color 0.25s var(--ease), box-shadow 0.4s var(--ease), transform 0.25s var(--ease);
}
.listing-card:hover { border-color: var(--ink-soft); box-shadow: 0 22px 45px -32px rgba(14,14,12,0.32); transform: translateY(-2px); }
.listing-card .lc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.listing-card .lc-name { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; }
.listing-card .lc-cat {
    display: inline-flex; align-self: flex-start; align-items: center;
    font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line);
    padding: 0.22rem 0.6rem; border-radius: 100px;
}
.listing-card .lc-desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; margin-top: 0.1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gate {
    position: relative; border: 1px dashed var(--verified); border-radius: 14px; padding: 1.4rem; text-align: center;
    background: color-mix(in srgb, var(--glow) 8%, #fff);
}
.gate .blur { filter: blur(5px); user-select: none; color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.04em; }
.gate .lock { margin-top: 0.9rem; }

/* ---- Data table (top-buyers / results) -------------------------------- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 1rem 1.15rem; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); background: var(--paper); font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--glow) 6%, #fff); }
.data-table .co-cell { display: flex; align-items: center; gap: 0.75rem; }
.data-table .mini-logo { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.9rem; color: var(--paper); background: var(--ink); }
.data-table .locked td { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.data-table .locked .co-cell { filter: blur(4px); }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.stat-box .n { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; }
.stat-box .n.green { color: var(--verified); }
.stat-box .l { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.45rem; }

/* ---- Blog -------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -35px rgba(14,14,12,0.28); }
.post-thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.post-thumb .glyph { position: absolute; inset: 0; opacity: 0.5; }
.post-thumb .cat { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.2; }
.post-body p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.post-metaline { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); margin-top: auto; padding-top: 0.5rem; }
.post-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (max-width: 820px) { .post-feature { grid-template-columns: 1fr; } }
.post-feature .pf-thumb { min-height: 320px; background: var(--ink); position: relative; overflow: hidden; }
.post-feature .pf-body { padding: clamp(1.75rem, 4vw, 3rem); }

/* Article body (blog post reading view) */
.blog-post-hero-wrap,
.blog-post-wrap { max-width: 760px; }
.blog-post-title { margin-top: 1rem; max-width: 22ch; }
.blog-post-hero .post-metaline { margin-top: 1.25rem; }
.blog-post-cover { margin: 0; }
.blog-post-cover img { width: 100%; height: auto; display: block; border-radius: 18px; }
.blog-post-footer-links { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.crumbs .crumb-current {
    display: inline-block;
    max-width: min(42ch, 100%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.prose { max-width: 68ch; margin-inline: auto; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; margin-top: 2.5rem; letter-spacing: -0.02em; }
.prose h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.prose blockquote { border-left: 3px solid var(--verified); padding-left: 1.4rem; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--ink); }
.prose a { color: var(--verified); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 18px; }
.prose .versus { margin-top: 2rem; }
.prose .vs-card { min-width: 0; }
.prose .vs-card .name { flex-wrap: wrap; gap: 0.5rem; }
.prose .feat-grid { margin-top: 1.5rem; }
.prose .cta-band { margin-top: 2rem; }

@media (max-width: 640px) {
    .blog-post-hero {
        padding-top: clamp(2rem, 6vh, 3rem);
        padding-bottom: 1.25rem;
    }
    .blog-post-title {
        max-width: none;
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.08;
    }
    .blog-post-hero .lead { font-size: 1.05rem; }
    .blog-post-body { padding-block: clamp(1.5rem, 5vh, 2.5rem); }
    .crumbs { font-size: 0.78rem; gap: 0.35rem; margin-bottom: 1rem; }
    .crumbs .crumb-current { max-width: min(48vw, 11rem); }
    .prose p, .prose li { font-size: 1rem; line-height: 1.7; }
    .prose h2 { font-size: 1.45rem; margin-top: 2rem; }
    .prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
    .prose blockquote { font-size: 1.1rem; padding-left: 1rem; }
    .prose .versus { gap: 1rem; margin-top: 1.5rem; }
    .prose .vs-card { padding: 1.25rem; border-radius: 16px; }
    .prose .vs-card .name { font-size: 1.05rem; }
    .prose .bignum { font-size: clamp(2.4rem, 12vw, 3.25rem); margin-top: 1rem; }
    .prose .bignum-label { font-size: 0.88rem; }
    .prose .feat-grid { grid-template-columns: 1fr; gap: 1rem; }
    .prose .feat { padding: 1.35rem; }
    .prose .cta-band { border-radius: 16px; padding: 2rem 1.25rem; }
    .prose .cta-band h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
    .blog-post-cover img { border-radius: 14px; }
    .blog-post-footer-links { font-size: 0.95rem; }
}

/* ---- Contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-method { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: none; }
.contact-method .ci { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--glow) 20%, #fff); color: var(--verified); border: 1px solid rgba(30,94,58,0.2); }
.contact-method h4 { font-weight: 600; margin-bottom: 0.2rem; }
.contact-method p, .contact-method a { color: var(--ink-soft); font-size: 0.95rem; text-decoration: none; }
.contact-method a:hover { color: var(--verified); }

/* ---- Pagination -------------------------------------------------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2.5rem; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 0.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: border-color 0.2s, background 0.2s; }
.pager a:hover { border-color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: none; background: none; }

/* ---- CTA band (reused across sub-pages) -------------------------------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 0%, rgba(159,227,184,0.16), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; max-width: 20ch; margin-inline: auto; }
.cta-band h2 em { font-style: italic; color: var(--glow); }
.cta-band p { color: #b9b5a8; margin: 1rem auto 2rem; max-width: 52ch; }
.cta-band .btn-glow { background: var(--glow); color: var(--ink); display: inline-flex; align-items: center; gap: 0.6rem; padding: 1rem 2rem; border-radius: 100px; font-weight: 600; text-decoration: none; transition: transform 0.3s, background 0.3s; }
.cta-band .btn-glow:hover { background: #fff; transform: translateY(-2px); }

/* ---- HS Code Finder results -------------------------------------------- */
.hs-results-panel {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--line);
}
.hs-results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}
.hs-results-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}
.hs-results-count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}
.hs-results-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.hs-result-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.hs-result-row:last-child { border-bottom: none; }
.hs-result-code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    background: color-mix(in srgb, var(--glow) 18%, #fff);
    border: 1px solid color-mix(in srgb, var(--glow) 45%, var(--line));
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.hs-result-body { min-width: 0; }
.hs-result-desc {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hs-result-desc .hs-match { font-weight: 700; color: var(--ink); }
.hs-result-cat {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hs-result-cta { flex-shrink: 0; }
.hs-result-actions { display: flex; gap: 0.5rem; align-items: center; }
.hs-result-actions--split { display: none; }
.hs-action-btn { white-space: nowrap; min-width: 6.5rem; justify-content: center; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.1rem; border-radius: 100px; font-weight: 600; font-size: 0.85rem;
    background: #fff; color: var(--ink); border: 1px solid var(--line);
    cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--ink); background: var(--paper); }

/* Split button (narrow screens) */
.hs-split-btn {
    display: inline-flex;
    align-items: stretch;
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}
.hs-split-main {
    border-radius: 100px 0 0 100px;
    box-shadow: none;
}
.hs-split-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    border: none;
    border-left: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.hs-split-toggle:hover { background: var(--paper); }
.hs-split-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 10rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 30px -18px rgba(14,14,12,0.35);
    z-index: 20;
    overflow: hidden;
}
.hs-split-menu a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}
.hs-split-menu a:hover { background: var(--paper); }
.hs-result-actions--split { position: relative; }

.hs-expand-row {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.25rem;
}
.hs-expand-btn {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--verified);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hs-expand-btn:hover { color: var(--ink); }

/* Loading skeleton */
.hs-result-row--skeleton { pointer-events: none; }
.hs-skel {
    background: linear-gradient(90deg, var(--paper-2) 25%, color-mix(in srgb, var(--line) 40%, #fff) 50%, var(--paper-2) 75%);
    background-size: 200% 100%;
    animation: hsShimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}
.hs-skel-code { width: 5.5rem; height: 2.1rem; }
.hs-skel-desc { height: 1rem; width: 72%; margin-bottom: 0.45rem; }
.hs-skel-cat { height: 0.7rem; width: 42%; }
.hs-skel-actions { width: 11rem; height: 2.2rem; }
@keyframes hsShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.hs-empty-state { padding: 2rem 0 0.5rem; }
.hs-empty-inner { text-align: center; max-width: 52rem; margin-inline: auto; }
.hs-empty-msg { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.hs-empty-hint { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.85rem; }
.hs-suggest-chips { justify-content: center; }

@media (max-width: 720px) {
    .hs-result-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
    }
    .hs-result-cta {
        grid-column: 1 / -1;
        justify-self: end;
    }
    .hs-result-actions--pair { display: none; }
    .hs-result-actions--split { display: flex; }
}

@media (max-width: 480px) {
    .hs-result-row { padding: 0.9rem 1rem; gap: 0.75rem; }
    .hs-result-code { font-size: 0.88rem; padding: 0.45rem 0.7rem; }
}

/* Reduced motion respects existing .reveal rules in shared.css */
