:root {
  /* Brand CTAs — explicit semantic tokens */
  --cta-buy:        #9b0047;        /* Kaufen / Acheter / اقتناء — red */
  --cta-buy-dark:   #7a0038;
  --cta-mandate:    #ffc83d;        /* Studie beauftragen — yellow */
  --cta-mandate-dk: #e8b524;
  --cta-read:       #233e50;        /* Studie lesen — slate */
  --cta-read-dark:  #2d4a60;

  /* Brand neutrals */
  --ink:         #233e50;            /* primary text / brand dark */
  --ink-2:       #2d4a60;            /* body strong */
  --ink-3:       #8499a7;            /* muted text */
  --ink-4:       #b5c0cb;            /* lightest muted */
  --blue-ink:    #233e50;            /* legacy alias — used by brand wordmark */
  --bg:          #ffffff;

  /* Legacy --blue tokens kept so any rule using them flips to the new accent (read-slate) automatically */
  --blue:        #233e50;
  --blue-dark:   #2d4a60;
  --blue-50:     #f4f6f8;
  --blue-100:    #e7ecf0;
  --blue-200:    #cdd6de;

  --yellow:      #ffc83d;            /* accent */
  --yellow-soft: #fff4d1;

  --border:      #e3ddd2;
  --border-soft: #efeae0;
  --green:       #0d9d6b;
  --green-soft:  #e3f6ee;

  --shadow-sm:   0 1px 2px rgba(35,62,80,0.05);
  --shadow-md:   0 4px 18px rgba(35,62,80,0.10);
  --shadow-lg:   0 10px 40px rgba(35,62,80,0.14);
  --shadow-blue: 0 8px 28px rgba(35,62,80,0.18);
  --shadow-buy:  0 8px 28px rgba(155,0,71,0.28);
  --shadow-mand: 0 8px 28px rgba(255,200,61,0.36);

  /* Type — IBM Plex Sans: modern, refined, bilingual (Latin + Arabic share one design family) */
  --font:        "IBM Plex Sans", "IBM Plex Sans Arabic", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-ar:     "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  --serif:       "Instrument Serif", "Times New Roman", Georgia, serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-feature-settings: "cv11", "ss01";
}
html[dir="rtl"] body { font-family: var(--font-ar); }
button { font-family: inherit; }

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.brand-stack { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font);
  direction: ltr;            /* lock LTR even in RTL mode — brand is a visual mark */
  white-space: nowrap;
}
.brand-ubc {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-pipe {
  display: inline-block;
  width: 2px;
  height: 24px;
  background: var(--cta-buy);
  margin: 0 6px;
  transform: translateY(2px);
}
.brand-g {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cta-buy);
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-inline-end: 10px;
}
.brand-research {
  font-family: var(--font);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
html[dir="rtl"] .brand-sub { letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 500; }
/* Hide the now-unused old square brand-mark if it still appears anywhere */
.brand-mark { display: none; }

.nav-links { display: flex; gap: 28px; list-style: none; flex: 1; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 0; cursor: pointer; position: relative; transition: color 0.15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: var(--blue); border-radius: 2px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; background: var(--blue-50); border-radius: var(--r-pill); padding: 3px; }
.lang-toggle button { border: 0; background: transparent; padding: 6px 14px; font-size: 12px; font-weight: 700; color: var(--ink-3); border-radius: var(--r-pill); cursor: pointer; transition: all 0.2s; }
.lang-toggle button.active { background: var(--bg); color: var(--blue); box-shadow: var(--shadow-sm); }

/* ---------- CTA BUTTONS ---------- */
/* Semantic CTA system:
   .btn-buy     — Acheter / Kaufen        → red  #9b0047
   .btn-mandate — Étude sur mesure / Beauftragen → yellow #ffc83d (dark text)
   .btn-read    — Lire l'étude / Lesen     → slate #233e50
*/
.btn-buy, .btn-mandate, .btn-read, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; padding: 11px 20px; font-size: 14px; font-weight: 700;
  font-family: inherit; letter-spacing: 0.01em;
  border-radius: var(--r-sm); cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-sm); text-decoration: none; white-space: nowrap;
  line-height: 1.2;
}
.btn-buy.lg, .btn-mandate.lg, .btn-read.lg, .btn-primary.lg {
  padding: 16px 28px; font-size: 15px; border-radius: var(--r-md);
}

/* Kaufen / Acheter — primary red */
.btn-buy, .btn-primary { background: var(--cta-buy); color: #fff; }
.btn-buy:hover, .btn-primary:hover {
  background: var(--cta-buy-dark); transform: translateY(-1px);
  box-shadow: var(--shadow-buy);
}

/* Beauftragen / Étude sur mesure — yellow with dark text */
.btn-mandate { background: var(--cta-mandate); color: var(--ink); }
.btn-mandate:hover {
  background: var(--cta-mandate-dk); transform: translateY(-1px);
  box-shadow: var(--shadow-mand);
}

/* Lesen / Lire — slate dark */
.btn-read { background: var(--cta-read); color: #fff; }
.btn-read:hover {
  background: var(--cta-read-dark); transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

/* Secondary CTA — slate outlined (for browse catalog actions next to a primary CTA) */
.btn-cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 9.5px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-cta-secondary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- MAIN ---------- */
main { position: relative; z-index: 2; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- HERO ---------- */
.hero {
  padding: 72px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1100px 520px at 50% -10%, var(--cta-50) 0%, transparent 62%),
    radial-gradient(ellipse 500px 300px at 85% 120%, var(--yellow-soft) 0%, transparent 70%),
    var(--bg);
}
.hero-inner { max-width: 920px; margin: 0 auto; position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 7px 14px 7px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(13, 157, 107, 0.18); }

.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cta-buy);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 1.05em;
  letter-spacing: -0.01em;
  margin-inline-end: 0.05em;
}
.hero h1 em::after { display: none; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
html[dir="rtl"] .hero h1 em::after { bottom: -2px; }

.hero-lede { font-size: 19px; color: var(--ink-2); max-width: 620px; margin: 0 auto 40px; line-height: 1.55; }

/* ---------- HERO SEARCH ---------- */
.search-hero {
  max-width: 780px; margin: 0 auto;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center;
  padding: 8px 8px 8px 24px; gap: 8px;
  border: 1px solid var(--border-soft);
  transition: box-shadow 0.2s; position: relative;
}
.search-hero:focus-within { box-shadow: 0 0 0 4px rgba(35, 62, 80, 0.12), var(--shadow-lg); border-color: var(--blue-200); }
.search-hero svg { width: 22px; height: 22px; stroke: var(--cta-buy); fill: none; flex-shrink: 0; }
.search-hero input { flex: 1; border: 0; background: transparent; padding: 20px 8px; font-family: inherit; font-size: 17px; color: var(--ink); outline: none; font-weight: 500; }
html[dir="rtl"] .search-hero input { font-family: var(--font-ar); }
.search-hero input::placeholder { color: var(--ink-4); font-weight: 400; }
.search-hero .btn-search { background: var(--blue); color: white; border: 0; padding: 16px 28px; border-radius: var(--r-md); font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.search-hero .btn-search:hover { background: var(--blue-dark); }

.search-suggest { max-width: 780px; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.search-suggest-label { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-right: 4px; }
html[dir="rtl"] .search-suggest-label { margin-right: 0; margin-left: 4px; }
.suggest-chip { background: var(--bg); border: 1px solid var(--border); padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all 0.15s; }
.suggest-chip:hover { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }

/* ---------- STATS BAND ---------- */
.stats-band {
  max-width: 1100px; margin: 72px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-card { background: var(--bg); padding: 28px 28px; text-align: center; transition: background 0.2s; }
.stat-card:hover { background: var(--blue-50); }
.stat-n { font-size: 42px; font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 8px; }

/* ---------- SECTION HEAD ---------- */
.section { padding: 80px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.section-head p { color: var(--ink-3); font-size: 15px; margin-top: 6px; }
.section-head a { color: var(--blue); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-sm); transition: background 0.15s; }
.section-head a:hover { background: var(--blue-50); }

/* ---------- CATEGORY CARDS ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* Cards are anchor tags (real URLs) — reset browser-default link underline + color */
a.study-card, a.cat-card, a.shop-card { text-decoration: none; color: inherit; }
a.study-card:hover, a.cat-card:hover, a.shop-card:hover { text-decoration: none; }

.cat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; cursor: pointer; transition: all 0.2s; display: flex; align-items: flex-start; gap: 18px; position: relative; overflow: hidden; }
.cat-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--blue-50); }
.cat-card:nth-child(2) .cat-icon { background: var(--yellow-soft); }
.cat-card:nth-child(4) .cat-icon { background: var(--yellow-soft); }
.cat-card:nth-child(6) .cat-icon { background: var(--green-soft); }
.cat-body { flex: 1; }
.cat-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cat-card p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.cat-count { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue); }
.cat-count .arrow { transition: transform 0.2s; }
.cat-card:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .cat-card:hover .arrow { transform: translateX(-3px); }

/* ---------- FEATURED ---------- */
.section-featured { background: var(--blue-50); padding: 80px 0; margin-top: 80px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-featured .section { padding-top: 0; }

.studies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.study-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 26px 22px; cursor: pointer; display: flex; flex-direction: column; gap: 14px; transition: all 0.2s; min-height: 320px; position: relative; }
.study-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.study-card-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.chip { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.chip-cat { background: var(--blue-50); color: var(--blue); }
.chip-new { background: var(--yellow-soft); color: #8A5A00; }
.chip-ubcg { background: var(--blue); color: white; }
.study-card .year { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.study-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }
html[dir="rtl"] .study-card h3 { letter-spacing: 0; line-height: 1.4; }
.study-card p { font-size: 14px; color: var(--ink-3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.study-card-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; }
.study-card-foot .author { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.study-card-foot .price { font-size: 18px; font-weight: 800; color: var(--cta-buy); font-variant-numeric: tabular-nums; }
.study-card-foot .free { color: var(--green); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.study-card-foot .free::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- LIBRARY ---------- */
.library-head { padding: 60px 0 24px; }
.library-head h1 { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
html[dir="rtl"] .library-head h1 { letter-spacing: 0; line-height: 1.3; }
.library-head p { color: var(--ink-3); font-size: 17px; max-width: 60ch; margin-top: 10px; }

.library-search { margin-top: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: flex; align-items: center; padding: 6px 8px 6px 22px; gap: 8px; transition: all 0.2s; }
.library-search:focus-within { border-color: var(--blue-200); box-shadow: 0 0 0 4px rgba(35, 62, 80, 0.1); }
.library-search svg { width: 20px; height: 20px; stroke: var(--cta-buy); fill: none; flex-shrink: 0; }
.library-search input { border: 0; background: transparent; padding: 16px 8px; font-family: inherit; font-size: 16px; color: var(--ink); flex: 1; outline: none; }
html[dir="rtl"] .library-search input { font-family: var(--font-ar); }
.library-search input::placeholder { color: var(--ink-4); }
.library-search .btn-search { background: var(--blue); color: white; border: 0; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.library-search .btn-search:hover { background: var(--blue-dark); }

.filter-row { display: flex; gap: 8px; padding: 24px 0 20px; flex-wrap: wrap; border-bottom: 1px solid var(--border-soft); }
@media (max-width: 760px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 18px 20px 16px;
    margin: 0 -20px;
    border-bottom: 0;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; white-space: nowrap; }
}
.filter-chip { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--bg); color: var(--ink-2); transition: all 0.15s; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); color: white; border-color: var(--blue); }

.study-list-meta { display: flex; justify-content: space-between; padding: 18px 0; color: var(--ink-3); font-size: 14px; }
.study-list-meta strong { color: var(--ink); }

.study-row { display: grid; grid-template-columns: 48px 1fr 180px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-soft); cursor: pointer; transition: all 0.2s; }
.study-row:hover { background: var(--blue-50); padding-inline-start: 16px; margin-inline-start: -16px; padding-inline-end: 16px; margin-inline-end: -16px; border-radius: var(--r-md); }
.study-row-num { font-size: 14px; font-weight: 600; color: var(--ink-4); font-variant-numeric: tabular-nums; padding-top: 4px; }
.study-row-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
html[dir="rtl"] .study-row-body h3 { letter-spacing: 0; line-height: 1.5; }
.study-row-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.study-row-meta .dot { color: var(--ink-4); }
.study-row-abstract { font-size: 14px; color: var(--ink-2); max-width: 72ch; line-height: 1.6; }
.study-row-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; justify-content: center; }
html[dir="rtl"] .study-row-cta { align-items: flex-start; }

/* ---------- LIBRARY GRID + LOAD-MORE ---------- */
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.library-more-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}
.btn-more {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-more:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
.btn-more .count { color: var(--ink-3); font-weight: 600; }
.btn-more:hover .count { color: rgba(255,255,255,0.65); }
.library-sentinel { grid-column: 1 / -1; height: 1px; pointer-events: none; }
.price-big { font-size: 24px; font-weight: 800; color: var(--cta-buy); line-height: 1; }
.btn-row { background: var(--cta-buy); color: white; border: 0; padding: 10px 18px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-row:hover { background: var(--cta-buy-dark); }
.btn-row.ghost { background: var(--bg); color: var(--cta-read); border: 1px solid var(--cta-read); }
.btn-row.ghost:hover { background: var(--cta-read); color: white; }

.badge-free { background: var(--green-soft); color: var(--green); padding: 5px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px; }
.badge-free::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.empty-state { padding: 100px 20px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ---------- SHOP ---------- */
.shop-intro { padding: 60px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; }
.shop-intro h1 { font-size: clamp(40px, 4.5vw, 60px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
html[dir="rtl"] .shop-intro h1 { letter-spacing: 0; line-height: 1.3; }
.shop-intro h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cta-buy); font-size: 1.05em; }
.shop-intro h1 em::after { display: none; }
.shop-intro p { font-size: 16px; color: var(--ink-3); max-width: 48ch; line-height: 1.65; }

.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 80px; }
.shop-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; cursor: pointer; display: flex; flex-direction: column; gap: 16px; min-height: 400px; transition: all 0.2s; position: relative; }
.shop-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-card-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-card h3 { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
html[dir="rtl"] .shop-card h3 { letter-spacing: 0; line-height: 1.4; }
.shop-card p { color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.shop-card-specs { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 16px; background: var(--blue-50); border-radius: var(--r-md); font-size: 12px; color: var(--ink-2); font-weight: 600; }
.shop-card-specs > span { display: inline-flex; align-items: center; gap: 6px; }
.shop-card-specs > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.shop-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 10px; }
.shop-price { font-size: 32px; font-weight: 800; color: var(--cta-buy); line-height: 1; font-variant-numeric: tabular-nums; }
.shop-price small { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ---------- ABOUT ---------- */
.about-grid { padding: 50px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.about-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.about-col-label { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
html[dir="rtl"] .about-col-label { letter-spacing: 0; text-transform: none; font-size: 13px; }
.about-col h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.about-col p { font-size: 14px; line-height: 1.65; color: var(--ink-2); }

/* ---------- DETAIL MODAL ---------- */
.detail-overlay { position: fixed; inset: 0; background: rgba(10, 24, 48, 0.55); backdrop-filter: blur(8px); z-index: 200; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 60px 20px; }
.detail-overlay.open { display: flex; animation: fadeIn 0.25s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.detail { background: var(--bg); max-width: 820px; width: 100%; padding: 48px; border-radius: var(--r-lg); position: relative; animation: slideUp 0.4s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.detail-close { position: absolute; top: 20px; inset-inline-end: 20px; width: 36px; height: 36px; border: 1px solid var(--border); background: var(--bg); border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 20px; color: var(--ink-2); transition: all 0.15s; }
.detail-close:hover { background: var(--ink); color: white; border-color: var(--ink); }
.detail-chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.detail h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
html[dir="rtl"] .detail h2 { letter-spacing: 0; line-height: 1.4; }
.detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px; background: var(--blue-50); border-radius: var(--r-md); margin-bottom: 24px; }
.detail-meta-item .l { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }
html[dir="rtl"] .detail-meta-item .l { letter-spacing: 0; text-transform: none; font-size: 13px; }
.detail-meta-item .v { font-size: 15px; color: var(--ink); margin-top: 4px; font-weight: 600; }
.detail-abstract { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin-bottom: 24px; }
.detail-toc { padding: 22px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 24px; }
.detail-toc h4 { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
html[dir="rtl"] .detail-toc h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.detail-toc ul { list-style: none; }
.detail-toc li { padding: 10px 0; color: var(--ink); font-size: 14px; display: flex; gap: 14px; border-bottom: 1px solid var(--border-soft); font-weight: 500; }
.detail-toc li:last-child { border-bottom: 0; }
.detail-toc li span { color: var(--blue); font-weight: 700; min-width: 20px; font-variant-numeric: tabular-nums; }
.detail-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; background: var(--blue-50); border-radius: var(--r-md); flex-wrap: wrap; }
.detail-price-line { font-size: 32px; font-weight: 800; color: var(--cta-buy); line-height: 1; }
.detail-price-line small { font-size: 12px; color: var(--ink-3); display: block; margin-top: 8px; font-weight: 500; max-width: 30ch; line-height: 1.5; }

/* ---------- FOOTER ---------- */
footer { margin-top: 80px; background: var(--blue-ink); color: #B8C7E8; padding: 60px 0 28px; }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; margin-bottom: 14px; }
.footer-brand .brand-ubc,
.footer-brand .brand-research { color: #fff; }
.footer-brand .brand-pipe { background: var(--yellow); }
.footer-brand .brand-g { color: var(--yellow); }
.footer-brand + p { max-width: 38ch; font-size: 14px; line-height: 1.65; }
.footer-parent {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 8px 14px 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
}
.footer-parent:hover { color: #fff; transform: translateX(2px); }
html[dir="rtl"] .footer-parent:hover { transform: translateX(-2px); }
.footer-parent svg { flex-shrink: 0; opacity: 0.9; }
footer h4 { font-size: 12px; font-weight: 700; margin-bottom: 16px; color: white; letter-spacing: 0.08em; text-transform: uppercase; }
html[dir="rtl"] footer h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a { color: #B8C7E8; text-decoration: none; font-size: 14px; cursor: pointer; transition: color 0.15s; }
footer a:hover { color: white; }
.footer-bottom { max-width: 1320px; margin: 40px auto 0; padding: 24px 40px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; font-size: 12px; color: #8393B8; flex-wrap: wrap; gap: 12px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .studies-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .shop-intro { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 14px 20px; gap: 18px; }
  .nav-links { display: none; }
  .brand span small { display: none; }
  .container { padding: 0 20px; }
  .hero { padding: 56px 20px 48px; }
  .search-hero { flex-direction: column; padding: 12px; align-items: stretch; }
  .search-hero input { padding: 14px 12px; font-size: 16px; }
  .search-hero .btn-search { width: 100%; padding: 14px; }
  .search-hero svg { display: none; }
  .search-suggest {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 6px;
    margin: 22px -20px 0;
    justify-content: flex-start;
    align-items: center;
  }
  .search-suggest::-webkit-scrollbar { display: none; }
  .search-suggest > * { flex: 0 0 auto; white-space: nowrap; }

  /* Horizontal-scroll card rails on mobile (Featured / Latest / Categories / Shop) */
  .studies-grid,
  .cat-grid,
  .shop-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 20px;
    gap: 14px;
    padding: 4px 20px 20px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .studies-grid::-webkit-scrollbar,
  .cat-grid::-webkit-scrollbar,
  .shop-grid::-webkit-scrollbar { display: none; }
  .studies-grid > *,
  .cat-grid > *,
  .shop-grid > * {
    flex: 0 0 82%;
    max-width: 320px;
    scroll-snap-align: start;
  }
  /* Hint of next card peeking on the right edge */
  .studies-grid > *:last-child,
  .cat-grid > *:last-child,
  .shop-grid > *:last-child { margin-inline-end: 8px; }

  /* Library grid stays VERTICAL on mobile (auto-load via IntersectionObserver instead of carousel) */
  .library-grid { grid-template-columns: 1fr; gap: 14px; }
  .library-more-row { padding: 24px 0 8px; }
  .btn-more { width: 100%; justify-content: center; }

  .stats-band { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .stat-n { font-size: 32px; }
  .study-row { grid-template-columns: 1fr; gap: 12px; }
  .study-row:hover { padding-inline-start: 0; margin-inline-start: 0; padding-inline-end: 0; margin-inline-end: 0; background: transparent; }
  .study-row-cta { align-items: flex-start; flex-direction: row; justify-content: space-between; }
  .study-row-num { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail { padding: 32px 24px; }
  .detail-meta { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .shop-card { padding: 24px; min-height: auto; }
  .section-featured { padding: 56px 0; margin-top: 56px; }
  .section { padding-top: 56px; }
}
/* ---------- DARK CTA SECTION ("Beauftragen") ---------- */
.dark-cta {
  background:
    radial-gradient(ellipse 700px 320px at 12% 110%, rgba(27,79,230,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 520px 260px at 92% -10%, rgba(255,200,61,0.16) 0%, transparent 70%),
    var(--ink);
  color: #fff;
  padding: 96px 40px 104px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}
.dark-cta-inner { max-width: 900px; margin: 0 auto; position: relative; }
.dark-cta-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 32px;
}
.dark-cta-kicker::before { content: "— "; }
html[dir="rtl"] .dark-cta-kicker { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }
.dark-cta h2 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.dark-cta h2 em { font-style: normal; color: var(--yellow); position: relative; }
html[dir="rtl"] .dark-cta h2 { letter-spacing: 0; line-height: 1.25; }
.dark-cta-lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 40px;
}
.btn-light {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  color: var(--ink);
  border: 0;
  padding: 17px 34px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.btn-light:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.32);
}

/* ---------- REFINED EDITORIAL ABOUT COLUMNS (image-3 style) ---------- */
.about-col { background: transparent; border: 0; padding: 0; }
.about-col-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cta-buy);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
}
.about-col-label::before { content: "— "; }
html[dir="rtl"] .about-col-label { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; }
.about-col h3 { font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.2; }
html[dir="rtl"] .about-col h3 { line-height: 1.4; }
.about-col p { font-size: 15px; line-height: 1.7; color: var(--ink-3); }

/* ---------- MOBILE BOTTOM APP NAVIGATION ---------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(35,62,80,0.07);
  }
  .bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px 12px;
    color: var(--ink-3);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item svg {
    width: 24px; height: 24px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s, stroke-width 0.2s;
  }
  .bottom-nav-item.active { color: var(--cta-buy); }
  .bottom-nav-item.active svg { stroke-width: 2; transform: scale(1.08); }
  .bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 3px;
    background: var(--cta-buy);
    border-radius: 0 0 3px 3px;
  }
  /* Push body content above the fixed bottom nav */
  body { padding-bottom: 76px; }
  /* Hide the topbar in-line CTAs on mobile (redundant with bottom nav tabs) */
  .nav-actions .btn-mandate,
  .nav-actions .btn-buy,
  .nav-actions .btn-cta-secondary { display: none; }
  /* Dark CTA padding tuning for mobile */
  .dark-cta { padding: 64px 20px 72px; margin-top: 48px; }
  .dark-cta-lede { font-size: 16px; margin-bottom: 32px; }
  .btn-light { padding: 15px 28px; font-size: 14px; }
}
/* ---------- CONSULTATION DIALOG ---------- */
.consult-overlay {
  position: fixed; inset: 0;
  background: rgba(35, 62, 80, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.consult-overlay.open { display: flex; }
.consult-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  padding: 48px 52px 44px;
  position: relative;
  box-shadow: 0 30px 80px rgba(10,15,25,0.34);
  animation: consultUp 0.3s cubic-bezier(.16,1,.3,1);
  max-height: none;
}
@keyframes consultUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.consult-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  cursor: pointer;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.consult-close:hover { background: var(--bg-soft); color: var(--ink); }
html[dir="rtl"] .consult-close { right: auto; left: 22px; }

.consult-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cta-buy);
  margin-bottom: 18px;
}
.consult-kicker::before { content: "— "; }
html[dir="rtl"] .consult-kicker { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }

.consult-modal h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 32px;
}
html[dir="rtl"] .consult-modal h2 { letter-spacing: 0; line-height: 1.3; }

.consult-form { display: flex; flex-direction: column; gap: 22px; }
.consult-field { display: flex; flex-direction: column; gap: 8px; }
.consult-field label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.consult-field .req { color: var(--cta-buy); margin-inline-start: 3px; }
.consult-field input,
.consult-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  resize: vertical;
}
.consult-field input::placeholder,
.consult-field textarea::placeholder { color: var(--ink-4); }
.consult-field input:focus,
.consult-field textarea:focus {
  outline: none;
  border-color: var(--cta-buy);
  box-shadow: 0 0 0 3px var(--cta-50);
}
.consult-field textarea { min-height: 100px; }

.consult-file {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.consult-file:hover { border-color: var(--cta-buy); background: var(--cta-50); color: var(--ink); }
.consult-file input[type="file"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.consult-file svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.8; }
.consult-file.has-file { color: var(--ink); border-color: var(--cta-buy); background: var(--cta-50); }

.consult-submit {
  background: var(--cta-buy);
  color: white;
  border: 0;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.01em;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  width: 100%;
  box-shadow: var(--shadow-buy);
}
.consult-submit:hover { background: var(--cta-buy-dark); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(155,0,71,0.38); }

.consult-success {
  text-align: center;
  padding: 36px 0 20px;
}
.consult-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.consult-success-icon svg { width: 32px; height: 32px; stroke-width: 2; }
.consult-success h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.consult-success p { color: var(--ink-3); font-size: 15px; line-height: 1.55; max-width: 36ch; margin: 0 auto; }

@media (max-width: 600px) {
  .consult-overlay { padding: 0; align-items: stretch; }
  .consult-modal { padding: 56px 22px 28px; border-radius: 0; min-height: 100vh; max-width: 100%; }
  .consult-modal h2 { font-size: 26px; margin-bottom: 24px; }
  .consult-close { top: 14px; right: 14px; }
  html[dir="rtl"] .consult-close { right: auto; left: 14px; }
}
/* ---------- STANDALONE PAGES (Mission / Contact / Legal) ---------- */
.page-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cta-buy);
  margin-bottom: 18px;
}
.page-kicker::before { content: "— "; }
html[dir="rtl"] .page-kicker { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }

.content-block { max-width: 64ch; margin-top: 32px; }
.content-block p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block p em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cta-buy);
  font-size: 1.05em;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.2s;
}
.contact-card:hover { border-color: var(--cta-buy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--cta-buy);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.contact-card-label::before { content: "— "; }
html[dir="rtl"] .contact-card-label { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; }
.contact-card-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
a.contact-card-value { transition: color 0.15s; }
a.contact-card-value:hover { color: var(--cta-buy); }
.contact-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}

.content-cta {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.content-cta p { font-size: 16px; font-weight: 500; color: var(--ink); margin: 0; max-width: 40ch; }

.legal-content { max-width: 72ch; margin-top: 24px; }
.legal-section { margin-top: 36px; }
.legal-section:first-child { margin-top: 0; }
.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
html[dir="rtl"] .legal-section h2 { letter-spacing: 0; }
.legal-section p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
}
.legal-section p a { color: var(--cta-buy); text-decoration: none; font-weight: 600; }
.legal-section p a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .contact-card { padding: 22px; }
  .contact-card-value { font-size: 19px; }
  .content-cta { padding: 22px; flex-direction: column; align-items: flex-start; }
  .content-cta .btn-mandate { width: 100%; justify-content: center; }
  .content-block p { font-size: 16px; }
  .legal-section h2 { font-size: 18px; }
}

/* ---------- DETAIL PAGE (standalone, replaces the SPA overlay) ---------- */
.detail-page-wrap { padding: 40px 0 80px; }
.detail-page-wrap .detail {
  /* drop the floating-card shadow on a real page; let it sit naturally in the container */
  background: var(--bg);
  box-shadow: none;
  padding: 8px 0 0;
  border-radius: 0;
  max-width: 820px;
  margin: 0 auto;
  animation: none;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.15s, transform 0.15s;
}
.detail-back:hover { color: var(--cta-buy); transform: translateX(-2px); }
html[dir="rtl"] .detail-back:hover { transform: translateX(2px); }
.detail-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
html[dir="rtl"] .detail-title { letter-spacing: 0; line-height: 1.3; }
