/* ============================================================================
   ASYMCHEM BRAND LAYER — hand-authored, loaded AFTER css/asymchem.css.
   asymchem.css is REGENERATED by site-factory/generate-identity.js, so nothing
   here may live in that file (site-factory/SCAFFOLD-RUNBOOK.md §2 / §9.3).

   Direction: the real Asymchem mark is an open navy hexagon "C" beside a wide,
   squared industrial wordmark, printed in deep navy #040348 over near-black ink
   #231815 on white. So the site is built as a CDMO datasheet: near-neutral cool
   white grounds, navy structure lines, square corners, mono micro-labels, and a
   hexagon motif that repeats the mark. No decorative colour beyond the brand
   navy and one teal data accent.

   Contrast rule followed throughout (§9.4): tokens are only ever DARKENED on
   light grounds; nothing here changes a colour that renders on the footer ink
   ground, the sale ribbon, or a photo scrim.
   ============================================================================ */

:root {
    /* ---- Neutral correction -------------------------------------------------
       The generated ramp tints every neutral with the primary's hue at 28%
       saturation. On a hue-241 primary that reads lavender, which fights the
       brand's white/navy/ink palette. Pull the light end back to a near-neutral
       cool grey; the dark end keeps a trace of navy so ink still feels branded. */
    --white: #ffffff;
    --paper: #f2f3f6;
    --porcelain: #fafbfc;
    --gray-50: #f4f5f8;
    --gray-100: #e8e9ef;
    --gray-200: #d5d7e0;
    --gray-300: #adb0c0;
    --gray-400: #70738a;
    --gray-500: #4a4d62;
    --gray-600: #363950;
    --gray-700: #26283b;
    --gray-800: #191b2b;
    --gray-900: #121320;
    --ink: #121320;
    --surface-elevated: #fafbfc;
    --surface-sunken: #eceef3;
    --border-subtle: rgba(18, 19, 32, 0.10);
    --border-default: rgba(18, 19, 32, 0.17);
    --hairline: 1px solid rgba(18, 19, 32, 0.12);
    --grid-line: rgba(4, 3, 72, 0.05);

    /* Brand-specific extras used by the rules below. */
    --asy-navy: #040348;
    --asy-navy-2: #14136b;
    --asy-inkbrown: #231815;   /* the wordmark ink in the real logo */
    --asy-teal: #0e7c86;
    --asy-rule: 2px solid #040348;
}

/* ---- Header ---------------------------------------------------------------
   Real horizontal lockup instead of a 36px square crop nobody can read, with
   the legal name and the 凯 seal as a quiet second line. */
.asy-logo { gap: 14px; align-items: center; }
.asy-logo .asy-logo-mark {
    width: auto; height: 34px; max-width: 190px;
    border-radius: 0; box-shadow: none; object-fit: contain;
}
.asy-logo-seal {
    display: inline-flex; align-items: center;
    padding-left: 12px; border-left: 1px solid var(--border-default);
    align-self: stretch;
}
/* global.css paints .cn-seal vermillion — right for the fleet's invented brands,
   wrong beside a two-colour navy/ink lockup. Navy outline instead. */
.asy-logo-seal .cn-seal {
    background: transparent; color: var(--asy-navy);
    border: 1px solid rgba(4, 3, 72, 0.45); border-radius: 2px;
    width: 26px; height: 26px; font-size: 0.66rem; transform: none;
}
.header { border-bottom: var(--asy-rule); }

/* Below 1200px the nav needs the room the sub-lockup was using — the header is
   flex-nowrap, so anything that does not shrink pushes Cart off-screen
   (the QST header incident). Drop the sub-lockup rather than let it push. */
@media (max-width: 900px) {
    .asy-logo .asy-logo-mark { height: 26px; }
}
/* Phone: the wordmark alone. The seal + its rule cost ~40px, which is exactly
   what pushed the hamburger past the viewport edge at 390px. */
@media (max-width: 560px) {
    .asy-logo { gap: 0; }
    .asy-logo .asy-logo-mark { height: 22px; }
    .asy-logo-seal { display: none; }
}

/* ---- Squared geometry -----------------------------------------------------
   The mark is drawn from straight segments; nothing in the chrome should be
   rounder than 3px. */
.btn, .btn-primary, .btn-secondary, .btn-outline,
input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
select, textarea,
.product-card, .trending-card, .review-card, .faq-item, .info-card,
.stat-card, .contact-card, .lab-card, .payment-card {
    border-radius: 2px;
}
.btn, .btn-primary, .btn-secondary, .btn-outline {
    letter-spacing: 0.02em;
}

/* ---- Hexagon section motif ------------------------------------------------
   A small open hexagon before every section heading, echoing the mark. Drawn
   with clip-path so it costs no asset and inherits currentColor. */
.section-heading::before {
    content: "";
    display: inline-block;
    width: 0.62em; height: 0.70em;
    margin-right: 0.5em;
    vertical-align: baseline;
    background: var(--asy-navy);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.9;
}

/* ---- Hero -----------------------------------------------------------------
   A datasheet header: mono eyebrow, navy rule down the left edge, no rounded
   anything. The hero is the LCP element, so it is styling only — no animation
   (§5 of the runbook). */
.hero-section { background: var(--white); border-bottom: 1px solid var(--border-subtle); }
.asy-hero-left { position: relative; }
.asy-hero-rule {
    position: absolute; left: -26px; top: 6px; bottom: 6px;
    width: 3px; background: var(--asy-navy); opacity: 0.9;
}
.hero-title { color: var(--ink); letter-spacing: -0.02em; }
.hero-title span:not(.cn-seal) { color: var(--asy-navy); }
/* The hero seal is the brand glyph, so it takes the same navy outline as the
   header lockup rather than the template's vermillion chip. */
.hero-title .cn-seal {
    background: transparent; color: var(--asy-navy);
    border: 1px solid rgba(4, 3, 72, 0.4); border-radius: 2px;
    font-size: 0.5em; padding: 0 6px; vertical-align: middle;
}
.asy-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gray-600);
    display: inline-flex; align-items: center; gap: 8px;
}
.asy-eyebrow::after {
    content: ""; width: 46px; height: 1px; background: var(--border-default);
}

/* ---- Spec strip -----------------------------------------------------------
   Four mono facts under the hero, the way a CDMO prints capability figures. */
.asy-specs-wrap { background: var(--porcelain); }
.asy-specs {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--porcelain);
}
.asy-spec {
    padding: 18px 20px;
    border-right: 1px solid var(--border-subtle);
}
.asy-spec:last-child { border-right: 0; }
.asy-spec dt {
    font-family: var(--font-mono);
    font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gray-600); margin: 0 0 6px;
}
.asy-spec dd {
    margin: 0; font-family: var(--font-display); font-weight: 800;
    font-size: 1.32rem; color: var(--asy-navy); line-height: 1.1;
}
.asy-spec dd span { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); }
@media (max-width: 860px) {
    .asy-specs { grid-template-columns: repeat(2, 1fr); }
    .asy-spec:nth-child(2) { border-right: 0; }
    .asy-spec:nth-child(1), .asy-spec:nth-child(2) { border-bottom: 1px solid var(--border-subtle); }
}

/* ---- Capability band ------------------------------------------------------ */
.asy-band { background: var(--paper); border-top: 1px solid var(--border-subtle); }
.asy-cap-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
}
.asy-cap {
    background: var(--white); padding: 26px 24px;
}
.asy-cap h3 {
    font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
    color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em;
}
.asy-cap p { margin: 0; color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }
.asy-cap .asy-cap-no {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
    color: var(--asy-teal); display: block; margin-bottom: 10px;
}
@media (max-width: 860px) { .asy-cap-grid { grid-template-columns: 1fr; } }

/* ---- Trending / product cards --------------------------------------------- */
.trending-card, .product-card {
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.trending-card:hover, .product-card:hover {
    border-color: var(--asy-navy);
    box-shadow: 0 6px 18px -12px rgba(4, 3, 72, 0.45);
}

/* ---- Buttons --------------------------------------------------------------- */
.btn-primary { background: var(--asy-navy); border-color: var(--asy-navy); }
.btn-primary:hover { background: var(--asy-navy-2); border-color: var(--asy-navy-2); }
.btn-outline, .btn-secondary { border-color: var(--border-default); color: var(--ink); }
.btn-outline:hover, .btn-secondary:hover { border-color: var(--asy-navy); color: var(--asy-navy); }

/* ---- Links ----------------------------------------------------------------- */
a { color: var(--asy-navy); }
a:hover { color: var(--asy-navy-2); }
.footer a, .footer a:hover { color: inherit; }   /* footer sits on the ink ground */

/* ---- Tables / data --------------------------------------------------------- */
.pricelist-table th, .data-table th {
    font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---- Dark-ground contrast floor -------------------------------------------
   §9.4: the neutral correction above is keyed on the HEX, but readability is
   keyed on the GROUND. Three surfaces in this template are near-black — the
   flash bar, the footer and the photo scrims — so every token that landed on
   them had to be re-checked, not assumed. Measured with
   site-factory/contrast-audit.js; all of these now clear 4.5:1 on #121320.

   The same applies to --primary-lighter (#2623c1): it is a legible link colour
   on white and 1.84:1 on the flash bar, because this brand's primary is a very
   dark navy. On dark grounds the accent has to be light, not "lighter primary". */
.site-flash, .site-flash * { color: #e8e9f5; }
.site-flash strong, .site-flash b { color: #ffffff; }
.site-flash em, .site-flash i { color: #b9bce8; }
.site-flash a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.5); }

.footer h4, .footer h3, .footer .footer-heading { color: #d3d6e2; }
.footer p, .footer small, .footer li, .footer span, .footer address { color: #b6bacb; }
.footer a { color: #d3d6e2; }
.footer a:hover { color: #ffffff; }

/* Photo scrims and the trust bar sit on dark grounds for the same reason. */
.lab-video-label, .about-mfg-video-label, .about-trust-label { color: #eef0f6; }

/* ---- Mobile: type floor + tap targets -------------------------------------
   site-factory/mobile-audit.js enforces 11px minimum type and 44px tap
   targets at 390x844. The mono micro-labels are 0.62–0.68rem, which is right
   on a 1440 desktop and below the floor on a phone, so they step up rather
   than shrink with the layout. */
@media (max-width: 560px) {
    .asy-eyebrow { font-size: 0.76rem; }
    .asy-spec dt, .asy-cap .asy-cap-no { font-size: 0.72rem; }
    .asy-spec dd { font-size: 1.2rem; }
    /* The verified-vendor link in the hero trust row is a real tap target. */
    .hero-trust-item a {
        display: inline-flex; align-items: center;
        min-height: 44px; padding: 2px 0;
    }
    /* §9.5: the fixed messenger FABs form a ~100px column at the right edge,
       ~87% down the viewport — which on a 390x844 phone lands exactly on the
       hero trust row and cut words out of it. Both audits are blind to
       occlusion, so the row reserves that gutter and stacks instead. */
    .hero-trust-row {
        flex-direction: column; align-items: flex-start; gap: 2px;
        padding-right: 168px;
    }
}

/* ---- Footer lockup ---------------------------------------------------------
   The footer is the ink ground, so it takes the WHITE original from the brand
   folder rather than the square white-background JPEG (which rendered as a
   white tile on black). Both files are the vendor's own artwork, unaltered. */
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-logo .asy-footer-mark {
    width: auto; height: 30px; max-width: 190px;
    border-radius: 0; object-fit: contain; margin-right: 0;
}
.asy-footer-seal .cn-seal {
    background: transparent; color: #d3d6e2;
    border: 1px solid rgba(211, 214, 226, 0.5); border-radius: 2px;
    width: 24px; height: 24px; font-size: 0.62rem; transform: none;
}
