/*
 * China Kanta — the words pages.
 *
 * Hand-written for the same reason every other `ck-*` sheet exists: the production host has no node, so
 * `public/build` is a committed Tailwind bundle that cannot gain a utility class here. Anything this file
 * needs is namespaced `ckseo-` and lives on disk, where an editor can read it.
 *
 * The pages it serves are the five sourcing doors (`/buy-from-china-in-ghana` and its four neighbours),
 * the blog, and the paragraph of plain English that now sits under the home page's first rail. All three
 * are text, so the sheet is mostly measure, rhythm and link affordance — and deliberately light: these are
 * the pages a first-time visitor reaches from a Google result, which is the worst possible moment to be
 * downloading a stylesheet the catalogue already has.
 */

.ckseo-page {
    min-height: 100vh;
    background: #f7f8fa;
    color: #111827;
}

.ckseo-shell {
    max-width: 46rem;
    margin: 0 auto;
    padding: 0 20px;
}

.ckseo-shell--wide {
    max-width: 72rem;
}

/* ---------- hero ---------- */

.ckseo-hero {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 28px 0 36px;
}

.ckseo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ckseo-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #e31e24;
}

.ckseo-h1 {
    margin: 18px 0 0;
    font-size: 30px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0b1220;
}

.ckseo-lede {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 600;
    color: #374151;
}

.ckseo-prose p {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.78;
    color: #4b5563;
}

.ckseo-prose p strong {
    color: #111827;
}

/* ---------- breadcrumbs ---------- */

.ckseo-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #6b7280;
}

.ckseo-crumbs a {
    color: #6b7280;
    text-decoration: none;
}

.ckseo-crumbs a:hover {
    color: #e31e24;
    text-decoration: underline;
}

.ckseo-crumbs span[aria-current] {
    color: #111827;
    font-weight: 600;
}

/* ---------- sections ---------- */

.ckseo-body {
    padding: 8px 0 40px;
}

.ckseo-section {
    margin-top: 36px;
}

.ckseo-h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0b1220;
}

.ckseo-h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0b1220;
}

.ckseo-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ckseo-list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.ckseo-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #e31e24;
    border-bottom: 2px solid #e31e24;
    transform: rotate(-45deg);
}

/* ---------- link groups ---------- */

.ckseo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ckseo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.ckseo-pill:hover {
    border-color: #e31e24;
    color: #b91c1c;
    background: #fff5f5;
}

.ckseo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.ckseo-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}

.ckseo-card small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.ckseo-card:hover {
    border-color: #fca5a5;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .07);
}

/* ---------- questions ---------- */

.ckseo-faq {
    margin-top: 36px;
    border-top: 1px solid #e5e7eb;
}

.ckseo-q {
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
}

.ckseo-q > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0b1220;
}

.ckseo-q > summary::-webkit-details-marker {
    display: none;
}

.ckseo-q > summary::after {
    content: "+";
    flex: none;
    font-size: 20px;
    line-height: 1;
    color: #e31e24;
    transform: translateY(-1px);
}

.ckseo-q[open] > summary::after {
    content: "\2212";
}

.ckseo-a {
    padding: 0 2px 18px;
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
}

/* ---------- calls to action ---------- */

.ckseo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ckseo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}

.ckseo-btn--primary {
    background: #e31e24;
    color: #fff;
}

.ckseo-btn--primary:hover {
    background: #c2161c;
    color: #fff;
}

.ckseo-btn--ghost {
    border-color: #d1d5db;
    background: #fff;
    color: #1f2937;
}

.ckseo-btn--ghost:hover {
    background: #f3f4f6;
}

.ckseo-band {
    margin-top: 40px;
    border-radius: 18px;
    background: #0b1220;
    color: #fff;
    padding: 26px 22px;
}

.ckseo-band h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.ckseo-band p {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #cbd5e1;
}

.ckseo-band .ckseo-btn--ghost {
    border-color: #334155;
    background: transparent;
    color: #e2e8f0;
}

.ckseo-band .ckseo-btn--ghost:hover {
    background: #111c33;
}

/* ---------- home page introduction ---------- */

/*
 * The paragraph the front page never had. It sits under the first rail, in the page's own grey, and it is
 * the only block of prose a crawler sees on `/` — which is why it is real content rather than a heading
 * styled to look like one, and why it is `font-size: 15px` and not the 11px a decorative strip would use.
 */
.ckseo-home {
    margin: 26px 0 6px;
    padding: 22px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.ckseo-home h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0b1220;
}

.ckseo-home p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
}

.ckseo-home p:last-of-type {
    margin-bottom: 0;
}

.ckseo-home a {
    color: #b91c1c;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #fecaca;
    text-underline-offset: 2px;
}

.ckseo-home a:hover {
    color: #e31e24;
    text-decoration-color: currentColor;
}

/*
 * The front page's one h1. The rails' own .ck-head-title runs 16-18px on a phone and 19-23px on a
 * desktop, so this sits one step above that and takes nothing else: plain text on the page's own
 * background, using the gutter variable .ck-home already defines (with a fallback for the day it is
 * read somewhere that does not). It is not a hero and it must never grow into one.
 */
.ckseo-home-h1 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px var(--ck-gutter, 14px) 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.015em;
    color: #0b1220;
}

@media (min-width: 768px) {
    .ckseo-home-h1 {
        padding-top: 20px;
        font-size: 26px;
    }
}

/* ---------- blog ---------- */

.ckseo-post {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 20px;
    margin-top: 18px;
}

.ckseo-meta {
    font-size: 12.5px;
    color: #6b7280;
}

/* ---------- widths ---------- */

@media (min-width: 640px) {
    .ckseo-h1 {
        font-size: 38px;
    }

    .ckseo-band {
        padding: 30px 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 26px;
    }

    .ckseo-band > div {
        flex: 1 1 auto;
    }

    .ckseo-band .ckseo-cta-row {
        margin-top: 0;
        flex: none;
    }
}

@media (min-width: 1024px) {
    .ckseo-hero {
        padding: 44px 0 52px;
    }

    .ckseo-h1 {
        font-size: 44px;
    }

    .ckseo-h2 {
        font-size: 26px;
    }

    .ckseo-prose p,
    .ckseo-a {
        font-size: 16px;
    }
}

/*
 * Motion follows the shop's own switch, the same contract every other layer obeys: `<html data-ckm>` says
 * how much movement the store is allowing, and the hover lifts above are the only movement here.
 */
html[data-ckm="off"] .ckseo-card,
html[data-ckm="off"] .ckseo-pill {
    transition: none;
}
