/* ------------------------------------------------------------------
   Shopbam — single stylesheet. No framework, no web fonts, no third-party JS.
   Light and dark both defined on tokens; dark inherits the same structure.
   ------------------------------------------------------------------ */

:root {
  --ink:        #16233a;
  --ink-soft:   #4a5670;
  --line:       #e3e0dc;
  --paper:      #fffaf6;
  --card:       #ffffff;
  --brand:      #e14434;   /* shopbam coral-red */
  --brand-deep: #b32f22;
  --brand-pale: #ffece7;
  --head:       #16233a;   /* masthead band */
  --head-ink:   #ffffff;

  --c-retail:   #c2185b;
  --c-diy:      #d97706;
  --c-motoring: #2563a8;
  --c-clothing: #7a4bc4;
  --c-leisure:  #1e8a6e;
  --c-house:    #0e7490;
  --c-kitchen:  #0e7490;
  --c-bathroom: #0e7490;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(22,35,58,.06), 0 8px 24px rgba(22,35,58,.06);
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #eef1f6;
    --ink-soft:   #a7b0c2;
    --line:       #2b3345;
    --paper:      #121722;
    --card:       #1a2130;
    --brand:      #ff7a63;
    --brand-deep: #ff9c8a;
    --brand-pale: #33201d;
    --head:       #0d121c;
    --head-ink:   #ffffff;

    --c-retail:   #f06292;
    --c-diy:      #f0a63c;
    --c-motoring: #6fa8e0;
    --c-clothing: #b195ea;
    --c-leisure:  #4fc0a1;
    --c-house:    #48b6cc;
    --c-kitchen:  #48b6cc;
    --c-bathroom: #48b6cc;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--brand-deep); } }
a:hover { text-decoration: none; }

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.7rem); margin: 0 0 .5rem; letter-spacing: -.015em; }
h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); margin: 2.4rem 0 .7rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }

/* ------------------------------------------------------------ masthead */

.masthead { background: var(--head); color: var(--head-ink); border-bottom: 4px solid var(--brand); }
.masthead-inner { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--head-ink); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.brand-tag { font-size: .74rem; color: #b9c3d6; letter-spacing: .02em; }

.nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .4rem .7rem; border-radius: 999px;
  color: #dbe2ee; text-decoration: none; font-size: .93rem; font-weight: 600;
}
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }

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

.crumbs { border-bottom: 1px solid var(--line); background: var(--card); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: .55rem 0; font-size: .84rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* --------------------------------------------------------------- layout */

main { display: block; padding-bottom: 3rem; }

.page, .hub, .home { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.page { max-width: 46rem; }
.page > p, .page > ul, .page > ol { color: var(--ink); }

.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); margin: 2rem 0 .4rem; }
.standfirst { font-size: 1.14rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.byline { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .6rem 0; margin: 0 0 1.8rem; }

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

.hero { background: linear-gradient(180deg, var(--brand-pale), transparent); border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding: 2.4rem 20px 2.2rem; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { margin-bottom: .6rem; }
.hero p { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1rem; }
.hero-art img { width: 100%; border-radius: var(--radius); }
@media (max-width: 780px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { order: -1; } }

.howband { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0 0 2.4rem; box-shadow: var(--shadow); }
.howband h2 { margin-top: 0; font-size: 1.15rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.steps li { font-size: .95rem; color: var(--ink-soft); }
.steps b { display: block; color: var(--ink); font-size: 1rem; }
.steps .num { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; margin-right: .4rem; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; margin: 0 0 2rem; padding: 0; list-style: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-art { display: block; line-height: 0; background: var(--brand-pale); }
.card-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-deep); }
.card p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.card .meta { font-size: .8rem; margin-top: auto; }

.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: .18rem .5rem; border-radius: 999px; color: #fff; background: var(--ink-soft); }
.cat-retail   .tag { background: var(--c-retail); }
.cat-diy      .tag { background: var(--c-diy); }
.cat-motoring .tag { background: var(--c-motoring); }
.cat-clothing .tag { background: var(--c-clothing); }
.cat-leisure  .tag { background: var(--c-leisure); }
.cat-house    .tag { background: var(--c-house); }
.cat-kitchen  .tag { background: var(--c-kitchen); }
.cat-bathroom .tag { background: var(--c-bathroom); }

/* ----------------------------------------------------------- hub header */

.hub-head { border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.4rem; margin-bottom: 1.6rem; }
.hub-head h1 { margin-bottom: .4rem; }
.hub-head p { max-width: 46rem; color: var(--ink-soft); margin: 0; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; color: var(--ink-soft); }

/* -------------------------------------------------- review page furniture */

.verdict { background: var(--brand-pale); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.8rem 0; }
.verdict h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.verdict p:last-child { margin-bottom: 0; }

.strip-caption { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 1.6rem 0 .5rem; }
.sources-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.4rem 0 2rem; padding: 0; list-style: none; }
.sources-strip li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; font-size: .88rem; }
.sources-strip b { display: block; font-size: .95rem; }
.sources-strip span { color: var(--ink-soft); }
@media (max-width: 700px) { .sources-strip { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; margin: 1.2rem 0 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--brand-pale); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td small, th small { color: var(--ink-soft); }

.source { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 2.2rem; }
.source h2 { margin-top: 0; }
.source-meta { font-size: .85rem; color: var(--ink-soft); margin: -.3rem 0 1rem; }
.source-meta .badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; background: var(--brand-pale); color: var(--brand-deep); margin-right: .4rem; }

.video { margin: 1.3rem 0 .5rem; }
.video-label { margin: 0 0 .5rem; font-size: .95rem; font-weight: 700; color: var(--ink); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-play span { width: 70px; height: 48px; border-radius: 12px; background: rgba(225,68,52,.94); position: relative; display: block; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.video-play span::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-42%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video-play:hover span { background: #f0503d; }
.video-fallback { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); color: #fff; background: rgba(0,0,0,.6); padding: .6rem 1rem; border-radius: var(--radius); }
.video figcaption { font-size: .87rem; color: var(--ink-soft); padding-top: .5rem; }
.video-note { margin: .25rem 0; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.2rem 0 1.6rem; }
.cols > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.cols h3 { margin-top: 0; }
.cols ul { margin: 0; padding-left: 1.1rem; }
.cols li { margin-bottom: .4rem; font-size: .95rem; }
.cols .good h3 { color: var(--c-leisure); }
.cols .bad h3 { color: var(--c-retail); }
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; } }

.caveat { border: 1px solid var(--line); border-left: 5px solid var(--ink-soft); background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.8rem 0; font-size: .95rem; }
.caveat h2, .caveat h3 { margin-top: 0; font-size: 1.05rem; }
.caveat ul { margin: .4rem 0 0; padding-left: 1.1rem; }

.next { border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.2rem; }
.next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.updated { font-size: .84rem; color: var(--ink-soft); margin-top: 1.6rem; }

/* --------------------------------------------------------------- footer */

.foot { background: var(--head); color: #c8d0de; margin-top: 3rem; padding: 2rem 0 1.4rem; border-top: 4px solid var(--brand); }
.foot a { color: #ffd9d2; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.6rem; }
.foot-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 .3rem; }
.foot-head { font-weight: 700; color: #fff; margin: 0 0 .4rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .92rem; }
.foot p { margin: 0 0 .5rem; font-size: .92rem; }
.foot-note { font-size: .85rem; color: #98a3b8; max-width: 34rem; }
.copy { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #98a3b8; }
@media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- a11y bits */

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

@media print {
  .masthead, .foot, .crumbs, .video-play { display: none; }
}

/* ------------------------------------------------------ retail park pages */

.park { max-width: 52rem; }
.park-art { margin: 1.6rem 0 2rem; }
.park-art img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.park-plan { margin: 1.4rem 0 1.8rem; }
.park-plan img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.park-plan figcaption, .hours-note { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

.pull { margin: 1.8rem 0; padding: 1.1rem 1.3rem; border-left: 5px solid var(--brand); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pull p { margin: 0 0 .5rem; font-size: 1.12rem; line-height: 1.5; }
.pull footer { font-size: .87rem; color: var(--ink-soft); }

.cat-retail-parks .tag { background: var(--brand-deep); }
.region-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .4rem; }

.shoplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .35rem .8rem; list-style: none; margin: .6rem 0 1.4rem; padding: 0; font-size: .94rem; }
.shoplist li { padding-left: .9rem; position: relative; }
.shoplist li::before { content: "›"; position: absolute; left: 0; color: var(--brand); }

/* layout-preview markers — only used by drill-review-preview.php */
.slot { display: inline-block; padding: .05rem .45rem; border-radius: 4px; background: var(--brand-pale); color: var(--brand-deep); border: 1px dashed var(--brand); font-size: .9em; }
.slot-para { color: var(--ink-soft); border-left: 3px dashed var(--line); padding-left: .9rem; }

/* --- News pages ---------------------------------------------------------
   The "what happened since" block reuses .verdict (the review summary box);
   this is just the small dated line that closes it. */
.updated-inline { margin: .75rem 0 0; color: var(--ink-soft); }
.news .verdict h2 { margin-top: 0; }

/* --- Guides and retailer profiles ---------------------------------------
   Both reuse .verdict for the "short answer" box and .caveat for the
   what-we-could-not-check list. These are the only new pieces. */
.checklist { margin: 1rem 0 1.6rem; padding-left: 1.2rem; }
.checklist li { margin: .5rem 0; }
.status-banner { border-left-width: 6px; }
.status-banner h2 { margin-top: 0; color: var(--brand); }
