:root {
  --navy: #12302a;
  --navy-2: #1b4036;
  --ink: #1a2420;
  --muted: #5d665f;
  --line: #e4ddcf;
  --tint: #f4efe6;
  --green: #1d6b55;
  --green-soft: #e1eee8;
  --gold: #c8552d;
  --gold-dark: #a8431f;
  --accent: "Aref Ruqaa", "Noto Kufi Arabic", serif;
  --heading: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* Moroccan eight-point star tile */
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0L13 13M88 0L75 13M0 88L13 75M88 88L75 75'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: #fffdf9;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(18px, 1.1vw + 11px, 24px);
  line-height: 1.8;
}

h1, h2, h3 { margin: 0; font-family: var(--heading); font-weight: 700; line-height: 1.5; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; }

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
}
.eyebrow.dark { color: var(--green); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn-sm { padding: 6px 16px; font-size: 0.93rem; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.cta .btn-gold:hover { background: #e0693f; }

/* Menu bar: floating glass pill under the banner */

.menubar {
  position: sticky;
  top: 76px;
  z-index: 9;
  margin: -26px 0 18px;
  pointer-events: none;
}
.menubar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 24px);
  margin-inline: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 34px rgba(18, 48, 42, 0.18), inset 0 0 0 1px rgba(18, 48, 42, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}
.menubar-row::-webkit-scrollbar { display: none; }
.menubar a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.menubar a::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s;
}
.menubar a:hover { background: rgba(18, 48, 42, 0.07); transform: translateY(-1px); }
.menubar a:hover::before { transform: rotate(45deg) scale(1); }
.menubar a.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 48, 42, 0.3);
}
.menubar a.active::before { transform: rotate(45deg) scale(1); }
@media (max-width: 640px) { .menubar a { padding: 8px 14px; font-size: 0.88rem; } }

/* Navigation: slim floating bar */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: min(1480px, calc(100% - 24px));
  height: 52px;
  margin: 12px auto 0;
  border: 1px solid rgba(26, 36, 32, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(18, 48, 42, 0.08);
}

.nav .container { max-width: none; padding-inline: 14px 8px; }

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--heading);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 14px;
  height: 14px;
  background: var(--gold);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.85;
  transform: rotate(45deg);
  mix-blend-mode: multiply;
}

.nav nav { display: flex; align-items: center; gap: 28px; font-size: 1rem; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--navy); }
.nav .btn-gold { border-radius: 999px; padding: 8px 24px; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(48px, 5vw, 64px) 0 clamp(36px, 4vw, 56px);
  background: var(--tint);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}

.hero .eyebrow {
  display: inline-block;
  padding: 2px 14px;
  border: 1px solid rgba(200, 85, 45, 0.35);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 0.85rem;
}

.hero h1 {
  margin-top: 14px;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.45;
}
.hero h1 em {
  position: relative;
  color: var(--gold);
  font-family: var(--accent);
  font-size: 1.15em;
  font-style: normal;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: -4px;
  bottom: 2px;
  height: 7px;
  background: var(--gold);
  opacity: 0.22;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}

.lead {
  font-size: 1.2rem;
  max-width: 31em;
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art .ring { fill: none; stroke: var(--navy); stroke-opacity: 0.22; }
.hero-art .ring.r2 { stroke: var(--gold); stroke-opacity: 0.6; stroke-dasharray: 3 7; }
.hero-art .star { fill: var(--navy); stroke: var(--navy); stroke-linejoin: round; }
.hero-art .core { fill: var(--tint); stroke: var(--gold); stroke-width: 3; }
.hero-art .ring { transform-origin: 200px 200px; animation: turn 90s linear infinite; }
.hero-art .ring.r2 { animation-direction: reverse; animation-duration: 120s; }

@keyframes turn { to { transform: rotate(360deg); } }

.stamp {
  font-size: 1.05rem;
  position: absolute;
  padding: 4px 16px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--navy);
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--navy);
}
.stamp.s1 { top: 8%; inset-inline-start: -6%; transform: rotate(-5deg); }
.stamp.s2 { top: 46%; inset-inline-end: -10%; background: var(--gold); color: #fff; transform: rotate(4deg); }
.stamp.s3 { bottom: 8%; inset-inline-start: 4%; transform: rotate(3deg); }

/* Sections */

.section { padding: clamp(36px, 5vw, 64px) 0; }
#news, #online { padding: clamp(28px, 3.5vw, 44px) 0; }
.tinted { background: var(--tint); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.search input {
  width: 260px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }

.filter {
  padding: 5px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: 500 0.95rem/1.7 var(--body);
  cursor: pointer;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.25s, border-color 0.2s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 18px 40px rgba(18, 48, 42, 0.16); }
.card.clickable { cursor: pointer; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-body h3 { margin: 2px 0 0; }

/* Image cover */
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .cover img { transform: scale(1.06); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 33, 28, 0.35), transparent 45%); pointer-events: none; }
.cover .chip {
  position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px;
  padding: 2px 14px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.92); backdrop-filter: blur(6px);
  color: var(--navy); font-size: 0.82rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* No image: patterned gradient with the icon */
.cover-fallback { display: grid; place-items: center; background: var(--zellige), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.cover-fallback.tone-1 { background: var(--zellige), linear-gradient(135deg, #1d6b55, #12302a); }
.cover-fallback.tone-2 { background: var(--zellige), linear-gradient(135deg, #a8431f, #c8552d); }
.cover-fallback.tone-3 { background: var(--zellige), linear-gradient(135deg, #2c5a73, #12302a); }
.cover-fallback .icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.cover-fallback .icon svg { width: 30px; height: 30px; }
.cover-fallback::after { display: none; }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
}
.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price { font-weight: 600; }

.card .category { color: var(--muted); font-size: 0.85rem; }

.card p { flex: 1; margin: 6px 0 16px; color: var(--muted); font-size: 0.97rem; }

.card-link { color: var(--green); font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.soon { color: var(--gold-dark); font-size: 0.92rem; font-weight: 600; }

.empty { color: var(--muted); }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 28px;
  border-top: 3px solid var(--gold);
  background: #fffdf9;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  color: var(--green);
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 800;
}
.steps p { margin: 4px 0 0; color: var(--muted); }

/* About and questions */

.about, .faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 64px);
}
.about > p { margin: 0; align-self: end; color: var(--muted); }

details { border-bottom: 1px solid #d9dde1; padding: 12px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 8px 0 4px; color: var(--muted); }

/* Call to action and footer */

.cta {
  padding: clamp(36px, 5vw, 56px) 0;
  background: var(--zellige), var(--navy);
  color: #fff;
  text-align: center;
}
.cta p { margin: 6px 0 22px; color: #cfdcd6; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: start;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px;
  background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(6px);
  color: #fff; text-decoration: none; transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.contact-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.13); border-color: var(--gold); }
.contact-card .ci { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--gold); }
.contact-card svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card small { display: block; color: #a9b8b2; font-size: 0.8rem; line-height: 1.4; }
.contact-card strong { display: block; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.cta .owner { margin: 26px 0 0; font-family: var(--heading); font-size: 0.95rem; color: #fff; }
.cta .owner span { color: #a9b8b2; font-family: var(--body); }
.footer a { color: inherit; }

.footer { background: #0c211c; color: #a9b8b2; font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* Smaller screens */

@media (max-width: 900px) {
  .hero-grid, .about, .faq { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 280px); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .brand { font-size: 0.95rem; }
  .grid { grid-template-columns: 1fr; }
  .search, .search input { width: 100%; }
  .section-head > div { width: 100%; }
  .roles-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .ring { animation: none; }
  html { scroll-behavior: auto; }
}

@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* App details page */

.menubar.solo { margin: 14px 0 0; }

.detail { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 90px); background: var(--tint); }
.detail .back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.detail .back:hover { color: var(--gold); }
.detail-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.detail-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 22px rgba(18, 48, 42, 0.18); }
.detail-head > div:nth-child(2) { flex: 1; min-width: 240px; }
.detail-head h1 { margin: 0; font-family: var(--heading); color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.4; }
.detail-meta { display: flex; gap: 8px; margin: 0 0 4px; font-size: 0.8rem; }
.detail-meta span { padding: 1px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.detail-tagline { margin: 4px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 32px; }
.shot { padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 6px 18px rgba(18, 48, 42, 0.08); }
.shot:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 48, 42, 0.16); }
.shot img { display: block; width: 100%; height: auto; }

.detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.detail-box { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; }
.detail-box h2 { margin: 0 0 12px; font-family: var(--heading); font-size: 1.15rem; color: var(--navy); }
.detail-box p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.ticks, .steps-list { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; line-height: 1.8; }
.ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.7em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.steps-list { counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding-inline-start: 38px; margin-bottom: 10px; }
.steps-list li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.8rem; font-weight: 700; }

.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(12, 33, 28, 0.88); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1280px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

/* Ads */
.ad-slot { position: relative; margin: 20px auto; padding: 22px 12px 12px; max-width: 970px; min-height: 120px; border: 1px dashed var(--line); border-radius: 14px; background: #faf7f0; text-align: center; overflow: hidden; }
.ad-slot::before { content: "إعلان"; position: absolute; top: 4px; inset-inline-start: 12px; color: #9aa39d; font-size: 0.7rem; letter-spacing: 0.04em; }
.ad-slot[hidden] { display: none; }

/* Privacy page */
.prose { max-width: 760px; margin: 0 auto; padding-block: clamp(32px, 5vw, 64px); font-size: 1rem; line-height: 2; }
.prose h1 { font-family: var(--heading); color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose h2 { font-family: var(--heading); color: var(--navy); font-size: 1.2rem; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--green); }

/* About card */
.about-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 900px; }
.about-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(18, 48, 42, 0.2); }
.about-card h2 { margin: 4px 0 0; font-family: var(--heading); color: var(--navy); }
.about-role { margin: 2px 0 12px; color: var(--gold-dark); font-weight: 600; }
.about-card p:not(.eyebrow):not(.about-role) { margin: 0 0 18px; color: var(--muted); }
.about-card p a:not(.btn) { color: var(--green); }
@media (max-width: 700px) { .about-card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Article page (مستجدات) */
.article-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 44px); align-items: center; margin-bottom: 22px; }
.article-copy h1 { margin: 6px 0 0; font-family: var(--heading); color: var(--navy); font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.5; }
.article-copy .detail-tagline { margin: 12px 0 18px; font-size: 1rem; line-height: 1.9; }
.detail-meta .date-chip { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.article-cover { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 22px 50px rgba(18, 48, 42, 0.25); }

.countdown { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding: 14px 22px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 12px 28px rgba(200, 85, 45, 0.3); }
.countdown.closed { background: linear-gradient(135deg, #6b766f, #4c5751); box-shadow: none; }
.countdown strong { font-family: var(--heading); font-size: 2.6rem; line-height: 1; min-width: 56px; text-align: center; }
.countdown span { font-size: 1rem; line-height: 1.6; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; transition: transform 0.2s, box-shadow 0.2s; }
.fact:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 48, 42, 0.12); }
.fact-ic, .h-ic { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.fact-ic svg, .h-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.fact strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.5; }
.fact em { display: block; margin-top: 2px; color: var(--muted); font-size: 0.82rem; font-style: normal; }

.detail-box h2 .h-ic { display: inline-grid; width: 34px; height: 34px; margin-inline-end: 10px; vertical-align: middle; border-radius: 10px; }
.detail-box h2 .h-ic svg { width: 18px; height: 18px; }
.tl-box { margin-bottom: 20px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 20px 18px 16px; border-top: 3px solid var(--gold); border-radius: 4px 4px 12px 12px; background: var(--tint); }
.timeline li::before { content: ""; position: absolute; top: -9px; inset-inline-start: 18px; width: 15px; height: 15px; background: var(--gold); transform: rotate(45deg); border: 3px solid #fffdf9; }
.tl-date { display: block; margin-bottom: 4px; color: var(--gold-dark); font-weight: 700; font-size: 0.9rem; }
.timeline strong { color: var(--navy); }
.timeline p { margin: 4px 0 0; font-size: 0.92rem; }

.article-cta { margin-top: 26px; padding: 32px 24px; border-radius: 20px; text-align: center; color: #fff; background: var(--zellige), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.article-cta h2 { margin: 0; font-family: var(--heading); font-size: 1.4rem; }
.article-cta p { margin: 6px 0 18px; color: #cfdcd6; }
.source { margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

@media (max-width: 800px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-cover { order: -1; }
  .countdown { flex-direction: column; text-align: center; gap: 4px; }
}

.btn.is-soon { cursor: default; opacity: 0.75; border-style: dashed; pointer-events: none; }

/* Download countdown page */
.dl-page { min-height: 70vh; }
.dl-card { max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: #fffdf9; box-shadow: 0 22px 50px rgba(18, 48, 42, 0.12); text-align: center; }
.dl-head { display: flex; align-items: center; gap: 16px; justify-content: center; text-align: start; margin-bottom: 18px; }
.dl-head h1 { margin: 0; font-family: var(--heading); color: var(--navy); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; }
.dl-file { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.ring-wrap { position: relative; width: 170px; height: 170px; margin: 18px auto 8px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--heading); font-size: 3.6rem; color: var(--navy); }
.dl-msg { margin: 8px 0 14px; color: var(--ink); font-weight: 600; }
.dl-btn { margin-bottom: 8px; }
.dl-btn[hidden] { display: none; }
.dl-note { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.dl-warn { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #8a5200; font-size: 0.85rem; line-height: 1.8; text-align: start; }
.dl-card .back { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.dl-card .back:hover { color: var(--gold); }
.dl-card .ad-slot { margin: 18px auto; }

/* Social links */
.follow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; color: #cfdcd6; }
.follow-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.follow-btn:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.15); border-color: var(--gold); }
.follow-btn svg, .soc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.follow-btn .fill, .soc .fill { fill: currentColor; stroke: none; }
.follow-btn b { font-weight: 600; font-size: 0.95rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.soc { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #cfdcd6; transition: background 0.2s, color 0.2s, transform 0.2s; }
.soc:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* Social icons in the top bar */
.soc-top { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--navy); text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.2s; }
.soc-top:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.soc-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-top .fill { fill: currentColor; stroke: none; }
.nav nav { gap: 10px; }
@media (max-width: 640px) { .nav nav a.soc-top { display: inline-grid; width: 34px; height: 34px; } }

@media (max-width: 480px) { .nav nav .btn { display: none; } .brand { font-size: 0.9rem; } }

/* Video */
.video-box { max-width: 900px; margin: 0 auto 32px; }
.video-box h2 { margin: 0 0 12px; font-family: var(--heading); font-size: 1.15rem; color: var(--navy); }
.video-player, .video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #000; box-shadow: 0 22px 50px rgba(18, 48, 42, 0.25); }
.video-player { position: relative; padding: 0; overflow: hidden; cursor: pointer; }
.video-player img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.video-player:hover img { transform: scale(1.04); }
.video-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 33, 28, 0.45), transparent 55%); }
.video-player .play { position: absolute; z-index: 1; inset: 0; margin: auto; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.2s; }
.video-player:hover .play { transform: scale(1.1); }
.video-player .play svg { width: 36px; height: 36px; fill: #fff; margin-inline-start: -4px; }

.video-fallback { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.video-fallback:hover { color: var(--gold); }
