/* Brand Review Hub Factory — "Trading Clarity" bespoke design (brand-hub-template-uk).
   THIRD hub design. Deliberately diverges in structure, not just color, from
   the two existing hubs:
     - trading-avise-fr (_master/brand-hub-template): navy/cream/gold, podium
       top-3 layout, serif display type, rounded cards + pill buttons.
     - trading-consapevole-it (_master/brand-hub-template-it): dark
       green/terracotta/parchment, "Featured" band + stat-aside masthead,
       bold grotesque display + monospace uppercase labels, still rounded.
   This design ("financial terminal / print dossier"):
     - Palette: ink black (#14171c) / paper white (#fbfbf9) / a single vivid
       cobalt accent (#1d4ed8) — a clean break from both hubs' warm/earth
       gold+terracotta accents.
     - No podium, no featured-band-with-aside. The ranking is a flat,
       leaderboard/ledger-style list of rows with hairline dividers and a
       bold OUTLINED (not filled/circular) rank numeral — see .rank-badge.
     - Sharp corners throughout: --radius is 0. No pill buttons, no rounded
       cards, no circular medals. Also flat (no drop shadows) — panels are
       separated by 1px hairlines, not elevation, reinforcing the ledger/
       dossier feel instead of the other two hubs' soft card shadows.
     - Typography: a tall/condensed sans for headlines (font-stretch:
       condensed on a system Helvetica/Arial stack) paired with a plain
       non-monospace sans for body/labels — not FR's serif, not IT's bold
       grotesque + mono-label combo.
     - Masthead: a compact dark ticker strip (2-3 inline stats) directly
       above the headline, with the leaderboard immediately below — not a
       tall centered hero (FR) and not a two-column hero+stat-aside (IT). No
       dominant single CTA button (no lead form on this product line, see
       CLAUDE.md's Brand Review Hub Factory section) — just small text links.
   This file only contains rules for classes actually used by this
   template's pages/components — the dead offer-lander-derived CSS
   (lead-form/access-pass/testimonial-grid/dashboard/sidebar-layout/etc.
   inherited by the original template but never rendered by any brand-hub
   page) has been dropped rather than retinted. See CLAUDE.md's Brand Review
   Hub Factory section and LegalPage.astro's comment for the header/footer
   top-nav rule this template still follows unchanged. */
:root {
  --ink: #14171c;
  --ink-soft: #1e222a;
  --paper: #fbfbf9;
  --paper-alt: #f1f0ea;
  --surface: #ffffff;
  --line: #dcdbd2;
  --text: #14171c;
  --muted: #5c616a;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --link: #1d4ed8;
  --good: #157a4c;
  --bad: #b3261e;
  --shadow: none;
  --radius: 0;
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, Geneva, "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}
main { flex: 1 0 auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.container { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 36px)); }
.section { padding: 72px 0; }
.section.tight { padding-top: 40px; }
.alt { background: var(--paper-alt); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 19px; }
.eyebrow { display: block; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; margin: 0 0 12px; }
.eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); vertical-align: middle; }
.section-head { max-width: 700px; }
.section-head.centered { margin: 0 auto 32px; text-align: center; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link { position: absolute; top: -48px; left: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 700; transition: top .15s ease; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------------
 * Header / nav
 * ------------------------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110; background: transparent; }
.scroll-progress-fill { height: 100%; width: 0%; background: var(--accent); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,249,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-stretch: condensed; font-weight: 800; text-decoration: none; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: var(--accent); }
.nav-links { display: flex; gap: 20px; color: var(--text); font-weight: 600; font-size: 14px; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-icon { flex-shrink: 0; opacity: .65; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; padding: 8px; border: 1px solid var(--line); background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(20,23,28,.4); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------------
 * Buttons — sharp rectangles, no pill shape, no shadow.
 * ------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--accent); color: var(--accent-ink); padding: 13px 20px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: var(--ink); }
.btn:active { background: var(--ink-soft); }
.btn-small { padding: 10px 15px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--paper-alt); }

/* ---------------------------------------------------------------------
 * Masthead — compact dark ticker strip + headline, leaderboard immediately
 * below. No podium, no two-column hero+aside, no floating decoration, no
 * dominant CTA button (there's no lead form on this product line).
 * ------------------------------------------------------------------- */
.masthead { background: var(--ink); color: var(--paper); padding: 34px 0 32px; border-bottom: 3px solid var(--accent); }
.ticker-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.ticker-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(251,251,249,.28); padding: 7px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(251,251,249,.92); }
.ticker-chip strong { color: #fff; }
.masthead h1 { color: #fff; margin-bottom: 12px; }
.masthead .eyebrow { display: none; }
.masthead-lead { font-size: 17px; color: rgba(251,251,249,.78); max-width: 660px; margin: 0; }
.masthead-links { display: flex; gap: 24px; flex-wrap: wrap; margin: 20px 0 0; }
.masthead-links a { color: var(--paper); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(251,251,249,.4); padding-bottom: 2px; font-size: 14px; }
.masthead-links a:hover { border-color: var(--paper); }

/* ---------------------------------------------------------------------
 * Rank badge — bold OUTLINED numeral, financial-ledger style. Replaces
 * both the FR hub's filled circular gold/silver/bronze medal and the IT
 * hub's plain tile: no fill, no circle, no gradient. Rank 1-3 get the
 * accent outline/text color; rank 4+ get a neutral outline. Shared by the
 * leaderboard rows, the review-page verdict card, and the head-to-head /
 * comparison-slider panels, so the same indicator reads consistently
 * everywhere on the site.
 * ------------------------------------------------------------------- */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 6px; flex-shrink: 0;
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800; font-size: 19px; line-height: 1;
  background: transparent; border: 2px solid var(--ink); color: var(--ink);
}
.rank-badge.rank-1 { border-color: var(--accent); color: var(--accent); border-width: 3px; }
.rank-badge.rank-2 { border-color: var(--ink); color: var(--ink); }
.rank-badge.rank-3 { border-color: var(--ink); color: var(--ink); opacity: .82; }
.rank-badge.rank-default { border-color: var(--line); color: var(--muted); }

/* ---------------------------------------------------------------------
 * Leaderboard — the ranking IS the homepage's primary visual: a flat,
 * dense list of rows (not elevated shadow cards in a grid), separated by
 * hairline dividers, with the outlined rank numeral to the left. This is
 * the structural replacement for both the FR hub's podium and the IT
 * hub's "Featured" band + stat-aside — see CLAUDE.md's Brand Review Hub
 * Factory section and this file's top comment.
 * ------------------------------------------------------------------- */
.ranking-grid { display: flex; flex-direction: column; margin-top: 4px; border-top: 1px solid var(--line); }
.brand-card {
  display: grid; grid-template-columns: 54px 1.6fr 1fr auto; gap: 20px 28px; align-items: start;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
  padding: 24px 6px; transition: background .12s ease;
}
.brand-card:hover { background: rgba(29,78,216,.045); transform: none; box-shadow: none; }
.brand-card-rank { flex-shrink: 0; }
.brand-card-main h3 { margin: 0 0 6px; font-size: 19px; }
.brand-card-main h3 a { text-decoration: none; }
.brand-card-main h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.brand-card-main p { color: var(--muted); margin: 0 0 12px; font-size: 14.5px; }
.brand-card-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; }
.brand-card-facts li { display: flex; align-items: baseline; gap: 6px; padding: 0 14px 0 0; margin: 0 14px 6px 0; border-right: 1px solid var(--line); }
.brand-card-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.brand-card-facts span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.brand-card-facts span:last-child { font-weight: 700; }
.brand-card-pros-cons { display: grid; gap: 10px; }
.brand-card-pros-cons h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.brand-card-pros-cons ul { margin: 0; padding-left: 16px; font-size: 13px; }
.brand-card-pros-cons ul li { margin-bottom: 4px; }
.brand-card-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-self: end; min-width: 150px; }
.brand-card-actions .btn { text-align: center; white-space: nowrap; }
.guide-placeholder-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------------------------------------------------------------------
 * Comparison table (homepage full N-brand grid) — horizontal scroll on
 * narrow viewports, sharp hairline borders instead of a rounded shadowed
 * panel.
 * ------------------------------------------------------------------- */
.comparison-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 0; }
.comparison-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); }
.comparison-table th, .comparison-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.comparison-table thead th { background: var(--ink); color: var(--paper); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.comparison-table thead th a { color: var(--paper); text-decoration: none; font-weight: 800; text-transform: none; letter-spacing: normal; font-size: 14px; }
.comparison-table thead th a:hover { text-decoration: underline; }
.comparison-table tbody th { color: var(--muted); font-weight: 700; white-space: normal; background: var(--paper-alt); }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table .comparison-cta-row td { padding-top: 15px; padding-bottom: 15px; }
.comparison-table .btn-small { white-space: nowrap; }

/* ---------------------------------------------------------------------
 * Trust block (homepage, below the compare carousel)
 * ------------------------------------------------------------------- */
.trust-block { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 0; padding: 24px; margin-top: 24px; }
.trust-block p { margin: 0 0 10px; }
.trust-block p:last-child { margin-bottom: 0; }
.trust-block a { color: var(--link); font-weight: 700; text-decoration: none; }
.trust-block a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
 * Guides index grid
 * ------------------------------------------------------------------- */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 8px; background: var(--line); border: 1px solid var(--line); }
.guide-card { text-decoration: none; color: inherit; display: block; background: var(--surface); padding: 24px; transition: background .12s ease; }
.guide-card:hover { background: var(--paper-alt); transform: none; box-shadow: none; }
.guide-card h3 { margin: 10px 0 8px; }
.guide-card p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------------------------------------------------------------------
 * Legal / trust page shell (LegalPage.astro) — plain top-nav layout, same
 * Header/Footer as every other page (no sidebar chrome — see CLAUDE.md's
 * explicit instruction not to reuse the sidebar-based trust-page layout).
 * ------------------------------------------------------------------- */
.legal-page { min-height: 60vh; }
.legal-hero { padding-bottom: 8px; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.legal-intro { font-size: 17px; color: var(--muted); margin: 0 0 4px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .5; }
.reading-time { color: var(--muted); font-size: 13px; margin: -8px 0 20px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legal-toc a { font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: 7px 12px; transition: border-color .15s ease, color .15s ease; }
.legal-toc a:hover { border-color: var(--accent); color: var(--accent); }
.legal-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.legal-section-card { background: var(--surface); border: 0; border-radius: 0; padding: 26px; box-shadow: none; scroll-margin-top: 84px; }
.legal-section-card h2 { font-size: 18px; margin: 2px 0 10px; }
.legal-section-card p { color: var(--muted); margin: 0 0 10px; font-size: 14.5px; }
.legal-section-card p:last-child { margin-bottom: 0; }
.legal-section-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.legal-section-card ul li { margin-bottom: 6px; }
.legal-contact-card { background: var(--paper-alt); border: 1px solid var(--line); padding: 24px; }
.legal-contact-card p { margin: 0 0 10px; }
.legal-contact-card p:last-child { margin-bottom: 0; }
.updated-note { color: var(--muted); font-size: 13px; }
.legal-back { margin-top: 22px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); padding: 24px; margin-top: 26px; }
.check-list { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
.check-list li { margin-bottom: 6px; }
.related-links { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.related-links h2 { font-size: 17px; margin-bottom: 10px; }
.related-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-links a { color: var(--link); text-decoration: none; font-weight: 600; }
.related-links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .legal-sections { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
 * Review page — verdict card + "compare with" / "legit or scam?" links.
 * ------------------------------------------------------------------- */
.verdict-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--ink); border-radius: 0; padding: 22px 24px; margin: 22px 0 8px; box-shadow: none; }
.verdict-card-medal.rank-badge { width: 50px; height: 50px; }
.verdict-card-body { flex: 1 1 220px; min-width: 0; }
.verdict-card-body h2 { margin: 0 0 4px; font-size: 18px; }
.verdict-card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.verdict-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.compare-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; }
.compare-links a { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; }
.compare-links a:hover { border-color: var(--accent); color: var(--accent); }
.scam-check-link { font-size: 13px; font-weight: 700; color: var(--link); text-decoration: none; }
.scam-check-link:hover { text-decoration: underline; }
.scam-check-note { color: var(--muted); font-size: 13px; }
.scam-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0; }
.scam-check-grid .legal-section-card { margin: 0; }
.scam-check-howto { margin: 0 0 24px; }
@media (max-width: 900px) { .scam-check-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
 * HeadToHead — 1-vs-1 layout for /compare/<a>-vs-<b>/. Two panels in a
 * 3-column grid (panel / vs-badge / panel) on desktop; the same DOM order
 * stacks to a single column on mobile so the VS mark naturally lands
 * between the two panels — a real reflow, never a horizontally-scrolling
 * table, for a 2-item comparison.
 * ------------------------------------------------------------------- */
.head-to-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 24px; align-items: start; margin: 8px 0; }
.h2h-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 26px 24px; box-shadow: none; min-width: 0; }
.h2h-rank.rank-badge { margin-bottom: 14px; }
.h2h-panel h2, .h2h-panel h3 { font-size: 21px; margin: 0 0 8px; }
.h2h-panel h2 a, .h2h-panel h3 a { text-decoration: none; }
.h2h-panel h2 a:hover, .h2h-panel h3 a:hover { text-decoration: underline; }
.h2h-summary { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.h2h-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; }
.h2h-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.h2h-facts li:last-child { border-bottom: 0; }
.h2h-facts .nav-icon { color: var(--accent); }
.h2h-fact-label { color: var(--muted); flex: 1 1 auto; }
.h2h-fact-value { font-weight: 700; text-align: right; }
.h2h-list { margin: 0 0 16px; }
.h2h-list h3, .h2h-list h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.h2h-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.h2h-list li { display: flex; align-items: flex-start; gap: 8px; }
.h2h-list li .nav-icon { flex-shrink: 0; margin-top: 2px; opacity: 1; }
.h2h-list-good li .nav-icon { color: var(--good); }
.h2h-list-bad li .nav-icon { color: var(--bad); }
.h2h-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.h2h-vs { align-self: center; justify-self: center; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 800; font-size: 13px; letter-spacing: .04em; z-index: 2; }
@media (max-width: 900px) {
  .head-to-head { grid-template-columns: 1fr; gap: 18px; }
  .h2h-vs { margin: -18px auto 0; }
}

/* ---------------------------------------------------------------------
 * TrustSlider — homepage "why trust this ranking?" click/autoplay
 * carousel (see TrustSlider.astro + public/assets/js/main.js's
 * [data-trust-slider] handler, reused as-is — same
 * .trust-slide/.trust-slider-dot/-prev/-next class contract).
 * ------------------------------------------------------------------- */
.trust-slider-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-slider { max-width: 620px; margin: 0 auto; }
.trust-slider-track { position: relative; min-height: 190px; }
.trust-slide { display: none; text-align: center; padding: 4px 8px 0; }
.trust-slide.active { display: block; animation: trustFadeIn .4s ease; }
@keyframes trustFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.trust-slide-icon { display: flex; justify-content: center; margin-bottom: 6px; }
.trust-slide h3 { font-size: 18px; margin: 0 0 10px; }
.trust-slide p { color: var(--muted); max-width: 480px; margin: 0 auto; font-size: 14.5px; }
.trust-slide a { display: inline-block; margin-top: 12px; color: var(--link); font-weight: 700; text-decoration: none; }
.trust-slide a:hover { text-decoration: underline; }
.trust-slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.trust-slider-prev, .trust-slider-next { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--ink); background: var(--surface); cursor: pointer; color: var(--ink); flex-shrink: 0; padding: 0; transition: background .15s ease, border-color .15s ease; }
.trust-slider-prev:hover, .trust-slider-next:hover { background: var(--paper-alt); border-color: var(--accent); }
.trust-slider-prev svg { transform: rotate(180deg); }
.trust-slider-dots { display: flex; gap: 8px; }
.trust-slider-dot { width: 8px; height: 8px; border-radius: 0; border: 1px solid var(--ink); padding: 0; background: transparent; cursor: pointer; }
.trust-slider-dot.active { background: var(--accent); border-color: var(--accent); }

/* Homepage brand-comparison carousel (ComparisonSlider.astro) — reuses the
 * .trust-slider/.trust-slide/.trust-slider-* contract above; each slide is
 * a full .h2h-panel. */
.comparison-slider { max-width: 640px; }
.comparison-slider-track { min-height: 340px; }
.comparison-slide { text-align: left; padding: 0; }
.comparison-slide .h2h-panel h3 { font-size: 21px; margin: 0 0 8px; }
.comparison-slide .h2h-panel p { max-width: none; margin: 0 0 18px; }
@media (max-width: 900px) { .trust-slider-track { min-height: 220px; } }

/* ---------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 32px 0; flex-shrink: 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.footer-grid p { color: #9aa0ab; margin: 4px 0 0; }
.footer-grid nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-grid a { color: var(--paper); text-decoration: none; font-size: 13.5px; }
.footer-grid a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
 * Cookie banner
 * ------------------------------------------------------------------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 0; padding: 18px 20px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13px; color: #c8cdd6; flex: 1 1 260px; }
.cookie-banner a { color: var(--paper); text-decoration: underline; }

/* ---------------------------------------------------------------------
 * Reveal-on-scroll (IntersectionObserver, see main.js) + reduced motion
 * ------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .trust-slide.active { animation: none; }
  * { scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .skip-link, .btn { display: none !important; }
  main { padding: 0 !important; }
  body { background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ---------------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: flex; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border: 1px solid var(--line); border-top: 0; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; z-index: 80; }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 10px; font-size: 15px; }
  .nav-links a:hover { background: var(--paper-alt); }
  .nav-toggle { display: flex; }
  .nav { height: auto; padding: 12px 0; gap: 10px; position: relative; }
  .brand { font-size: 15px; gap: 8px; min-width: 0; flex-shrink: 1; }
  .brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .section { padding: 48px 0; }
  .masthead { padding: 28px 0 26px; }
  .ticker-row { gap: 8px; }
  .brand-card { grid-template-columns: 1fr; gap: 14px; padding: 20px 4px; }
  .brand-card-actions { justify-self: stretch; min-width: 0; flex-direction: row; flex-wrap: wrap; }
  .brand-card-actions .btn, .brand-card-actions .btn-ghost { flex: 1 1 auto; }
  .guides-grid { grid-template-columns: 1fr; }
  .comparison-table { min-width: 480px; }
  .footer-grid { flex-direction: column; }
  .footer-grid nav { justify-content: flex-start; }
}

/* RTL layer — kept for parity with the other hub templates even though
   this hub is English-only; harmless if unused. */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .skip-link { left: auto; right: 12px; }
html[dir="rtl"] .nav-icon { transform: scaleX(-1); }
