/* ==========================================================================
   market-entry-brief.css — the costed briefing on
   /uk-market-entry-turkish-brands.html. Added 2026-08-27.

   DESIGN INTENT. The reader is an operator deciding, in a few seconds and
   before reading a word, whether the writer knows London. So the money is the
   hero: figures are set in a tabular-nums column with their own scale and
   weight, and everything else — labels, prose, sourcing — is deliberately
   quieter. The look borrows from a property or valuation report rather than a
   marketing page: rules instead of boxes, one accent colour used sparingly,
   and a lot of air.

   PALETTE is the existing one. #E1B168 accent, #1F2937 dark, neutral greys.
   No new colours, no new fonts, no images, no libraries, no external origins.
   Every graphic here is CSS or inline SVG.

   MOTION. Reveals are one-shot and staged; nothing loops, nothing moves while
   text is being read. Every animated element is fully visible with no JS and
   under prefers-reduced-motion — the .is-in class is additive, and the base
   state is the visible state wherever JS is absent (see .js-stage below).
   ========================================================================== */

/* ---------- shared rhythm ---------- */

.brief {
    --ink: #1F2937;
    --ink-soft: #4b5563;
    --ink-faint: #6b7280;
    --rule: #e5e7eb;
    --accent: #E1B168;
    --accent-deep: #8a6d33;
    --paper: #ffffff;
    --paper-tint: #faf8f4;
}

.brief-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.brief-section {
    padding: 4.5rem 0;
    border-top: 1px solid var(--rule);
}

.brief-section:first-of-type {
    border-top: 0;
}

/* Question headings. Each H2 is a question a reader would type, so it is set
   larger and tighter than the answer that follows it. */
.brief-q {
    font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

/* The answer-first paragraph. Heavier than body copy on purpose: it is the
   sentence most likely to be quoted on its own. */
.brief-answer {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

.brief-body {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0 0 1rem;
}

.brief-body:last-child {
    margin-bottom: 0;
}

/* ---------- sourcing ---------- */

.brief-src {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-faint);
    margin: 1.25rem 0 0;
    padding-left: 0.9rem;
    border-left: 2px solid var(--rule);
    overflow-wrap: anywhere;
}

.brief-src a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.brief-src a:hover {
    color: var(--ink);
}

.brief-src + .brief-src {
    margin-top: 0.5rem;
}

/* A source that needs a health warning of its own. */
.brief-src--flag {
    border-left-color: var(--accent);
}

/* ---------- reconciliation callout ---------- */

.brief-callout {
    background: var(--paper-tint);
    border: 1px solid #e8e1d4;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 1.75rem;
    margin: 0 0 2.5rem;
}

.brief-callout p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0;
}

.brief-callout .brief-src {
    margin-top: 1rem;
    border-left-color: #e0d8c8;
}

/* ---------- cost card ---------- */

.cost-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0 0;
}

.cost-card-head {
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--rule);
}

.cost-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.35rem;
}

.cost-card-sub {
    font-size: 0.875rem;
    color: var(--ink-faint);
    margin: 0;
}

/* Provenance tags. Three states, one legend per card. Colour alone never
   carries the meaning — each tag is also spelled out in words. */
.cost-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.9rem 1.75rem;
    background: #fcfcfb;
    border-bottom: 1px solid var(--rule);
    font-size: 0.75rem;
    color: var(--ink-faint);
}

.cost-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
}

.tag--official {
    background: #1F2937;
    color: #fff;
}

.tag--trade {
    background: #efe7d6;
    color: #6b5427;
}

.tag--listing {
    background: #eef0f2;
    color: #4b5563;
    border: 1px solid #dfe3e7;
}

/* The line itself. Label left, money right, in a grid so every figure sits on
   the same axis and the eye can run straight down the column. */
.cost-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cost-line {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label money" "tag money";
    column-gap: 1.5rem;
    align-items: baseline;
    padding: 0.95rem 1.75rem;
    border-bottom: 1px solid #f1f2f4;
    transition: background 0.18s ease;
}

.cost-line:last-child {
    border-bottom: 0;
}

.cost-line:hover {
    background: #fbfaf7;
}

.cost-label {
    grid-area: label;
    font-size: 0.9375rem;
    color: var(--ink);
    line-height: 1.45;
}

.cost-tag {
    grid-area: tag;
    margin-top: 0.3rem;
}

/* tabular-nums is the point of this whole column: digits share a width, so
   thousands line up down the card and the ranges become comparable at a
   glance. */
.cost-money {
    grid-area: money;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* Extrapolated from source plus unit size rather than stated by the source.
   Marked in the markup and explained in the card footnote. */
.cost-money--calc::after {
    content: "†";
    font-size: 0.75em;
    vertical-align: super;
    color: var(--accent-deep);
    margin-left: 0.15em;
    font-weight: 400;
}

.cost-note {
    padding: 1.1rem 1.75rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-faint);
    background: #fcfcfb;
    border-top: 1px solid var(--rule);
}

/* The total band. Tinted, at the foot, and the caveat lives inside it — the
   cost-total-without-caveat guard fails the build if it ever does not. */
.cost-total-band {
    background: var(--paper-tint);
    border-top: 2px solid var(--accent);
    padding: 1.4rem 1.75rem 1.5rem;
}

.cost-total {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1.5rem;
    align-items: baseline;
}

.cost-total-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
}

.cost-total-money {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.625rem);
    font-weight: 700;
    color: var(--ink);
    text-align: right;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.cost-caveat {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid #e8e1d4;
}

/* ---------- zone diagram ---------- */

.zone-fig {
    margin: 2rem 0 0;
}

.zone-fig svg {
    display: block;
    width: 100%;
    height: auto;
}

.zone-fig figcaption {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--ink-faint);
    margin-top: 0.9rem;
}

/* ---------- the dark band ---------- */

.exit-band {
    background: #1F2937;
    color: #e5e7eb;
    padding: 5rem 0;
}

.exit-lead {
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    line-height: 1.65;
    color: #ffffff;
    margin: 0 0 3rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent);
}

.exit-q {
    font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
    color: #ffffff;
    margin: 0 0 2.5rem;
}

.exit-item {
    padding: 1.75rem 0;
    border-top: 1px solid #374151;
}

.exit-item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.exit-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #d1d5db;
    margin: 0;
}

.exit-item .brief-src {
    color: #9ca3af;
    border-left-color: #374151;
    margin-top: 0.9rem;
}

.exit-item .brief-src a {
    color: #d6b477;
}

.exit-item .brief-src a:hover {
    color: #ffffff;
}

.exit-close {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #9ca3af;
}

/* ---------- motion ----------

   BASE STATE IS VISIBLE. .js-stage is added to <html> by an inline script only
   when JS runs, so with JS off none of the transform/opacity rules below ever
   apply and every element renders in its final position. Under
   prefers-reduced-motion the same is true, via the media query at the end. */

.js-stage .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(.22,.61,.36,1),
                transform 0.55s cubic-bezier(.22,.61,.36,1);
}

.js-stage .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Staged: children land in sequence so the figures arrive one after another
   rather than all at once. One shot — the class is added and never removed. */
.js-stage .stagger > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.js-stage .stagger.is-in > * {
    opacity: 1;
    transform: none;
}

.js-stage .stagger.is-in > *:nth-child(1)  { transition-delay: 0.00s; }
.js-stage .stagger.is-in > *:nth-child(2)  { transition-delay: 0.06s; }
.js-stage .stagger.is-in > *:nth-child(3)  { transition-delay: 0.12s; }
.js-stage .stagger.is-in > *:nth-child(4)  { transition-delay: 0.18s; }
.js-stage .stagger.is-in > *:nth-child(5)  { transition-delay: 0.24s; }
.js-stage .stagger.is-in > *:nth-child(6)  { transition-delay: 0.30s; }
.js-stage .stagger.is-in > *:nth-child(7)  { transition-delay: 0.36s; }
.js-stage .stagger.is-in > *:nth-child(8)  { transition-delay: 0.42s; }
.js-stage .stagger.is-in > *:nth-child(9)  { transition-delay: 0.48s; }

/* The diagram draws itself once: zones widen from the shopfront outwards. */
.js-stage .zone-block {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
}

.js-stage .zone-fig.is-in .zone-block { transform: scaleX(1); }
.js-stage .zone-fig.is-in .zone-block--a { transition-delay: 0.05s; }
.js-stage .zone-fig.is-in .zone-block--b { transition-delay: 0.25s; }
.js-stage .zone-fig.is-in .zone-block--c { transition-delay: 0.45s; }

.js-stage .zone-label {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.js-stage .zone-fig.is-in .zone-label { opacity: 1; transition-delay: 0.55s; }

@media (max-width: 640px) {
    .brief-section { padding: 3rem 0; }
    .cost-card-head,
    .cost-legend,
    .cost-line,
    .cost-note,
    .cost-total-band { padding-left: 1.15rem; padding-right: 1.15rem; }

    /* Stack the money under the label so a long range never has to shrink,
       scroll sideways or clip on a narrow screen. */
    .cost-line {
        grid-template-columns: 1fr;
        grid-template-areas: "label" "money" "tag";
        row-gap: 0.3rem;
    }

    .cost-money { text-align: left; font-size: 1.125rem; }
    .cost-tag { margin-top: 0.2rem; }
    .cost-total { grid-template-columns: 1fr; row-gap: 0.25rem; }
    .cost-total-money { text-align: left; }
    .exit-band { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    .js-stage .reveal,
    .js-stage .stagger > *,
    .js-stage .zone-label {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .js-stage .zone-block {
        transform: scaleX(1) !important;
        transition: none !important;
    }
}

@media print {
    .brief-section { padding: 1.5rem 0; }
    .exit-band { background: #fff; color: #000; padding: 1.5rem 0; }
    .exit-item h3 { color: #000; }
    .exit-item p, .exit-close, .exit-lead { color: #000; }
    .cost-card { break-inside: avoid; }

    .js-stage .reveal,
    .js-stage .stagger > *,
    .js-stage .zone-label,
    .js-stage .zone-block {
        opacity: 1 !important;
        transform: none !important;
    }

    /* A printed citation with no URL is not a citation. */
    .brief-src a::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        word-break: break-all;
    }
}
