/* Shared editorial masthead */
:root {
  --editorial-yellow: #ffd529;
  --masthead-height: 72px;
}

.site-header {
  color: #f6f5f2;
  background: #0c0e11f5;
  border-color: #30343a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root[data-theme="light"] .site-header {
  color: #191a1d;
  background: #fbfaf7;
  border-color: #deddd9;
}

.site-header .nav {
  --max: 1480px;
  height: var(--masthead-height);
  gap: clamp(12px, 2vw, 28px);
}

.site-header .brand img { filter: none; }
.site-header .brand small { color: #705618; }
.site-header .nav-links a { color: #c9cbd0; }
.site-header .nav-links a:is(:hover, [aria-current="page"]) {
  color: #fff;
  background: #1b1e23;
}
.site-header .nav-links a[aria-current="page"]::after {
  background: #b38709;
  box-shadow: none;
}

.site-header .icon-btn {
  background: #17191e;
  border-color: #30343a;
  color: #f6f5f2;
}
.site-header .icon-btn:hover { border-color: #b38709; }
.site-header :is(a, button):focus-visible { outline-color: #8f6b00; }

:root[data-theme="light"] .site-header .nav-links a { color: #454546; }
:root[data-theme="light"] .site-header .nav-links a:is(:hover, [aria-current="page"]) {
  color: #111215;
  background: #f2f0e9;
}
:root[data-theme="light"] .site-header .icon-btn {
  background: #f4f2ed;
  border-color: #e5e2d9;
  color: #212225;
}

.btn:not(.btn-round) { border-radius: 3px; min-height: 44px; }
.btn-primary {
  color: #1b1605;
  background: var(--editorial-yellow);
  box-shadow: none;
}
.btn-primary:hover { background: #ffe16a; box-shadow: none; }

/* Homepage palette and hero */
:root[data-theme="dark"] .page-index {
  --bg: #0c0e11;
  --bg-2: #15181c;
  --ink: #f6f5f2;
  --ink-2: #c1c5cc;
  --ink-3: #a4a9b1;
  --accent: var(--editorial-yellow);
  --line: #2c3036;
  --line-2: #42464d;
}
.page-index .nebula { background: var(--bg); }
.page-index #stars { display: none; }
/* شريط الأخبار: تصميم الصفحة الرئيسية موحّد في كل الصفحات */
:root[data-theme="dark"] .ticker:not([hidden]) { background: #15181c; border-bottom-color: #2c3036; }
:root[data-theme="light"] .ticker:not([hidden]) { background: var(--bg-2); }
.ticker-label {
  background: var(--editorial-yellow);
  color: #191a1c;
  border-inline-end: 0;
}
.ticker-label .dot { display: none; }

.front-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  min-height: clamp(550px, 67svh, 760px);
  background: #05070c;
  color: #fff;
}
.front-hero-image,
.front-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.front-hero-image {
  object-fit: cover;
  object-position: 36% 54%;
  z-index: -2;
}
.front-hero::after {
  content: "";
  background:
    linear-gradient(to left, #05070cea, #05070ccc 28%, #05070c23 60%, transparent 78%),
    linear-gradient(to top, #05070cf7, #05070c24 27%, transparent 48%);
  z-index: -1;
}
.front-hero-inner {
  display: grid;
  align-items: center;
  padding-block: 72px 80px;
  position: relative;
}
.front-hero-copy { width: min(100%, 500px); }
.front-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
  margin-bottom: 20px;
  color: #ecebec;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.front-hero-label::after {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--editorial-yellow);
}
.front-hero h1 {
  font-size: clamp(3.75rem, 8vw, 7.1rem);
  line-height: 1.02;
  margin-bottom: 18px;
  max-width: 7ch;
}
.front-hero h1 em { font-style: normal; }
.front-hero-copy > p {
  color: #e0e3e8;
  max-width: 445px;
  margin-bottom: 26px;
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
}
.front-hero .btn-ghost {
  border-color: #a6abb6;
  color: #fff;
  background: #05070c8c;
}
.front-hero .btn-ghost:hover { border-color: var(--editorial-yellow); }
.front-hero :is(a, button):focus-visible { outline-color: var(--editorial-yellow); }
.front-hero-explore {
  display: inline-block;
  margin-top: 20px;
  color: #fff;
  font-size: .83rem;
  text-decoration: underline var(--editorial-yellow);
  text-underline-offset: 5px;
}
.front-hero-note {
  position: absolute;
  inset-inline-start: var(--gutter);
  bottom: 21px;
  color: #b9bec8;
  margin: 0;
  font-size: .75rem;
}

/* Homepage editorial sections */
.front-section { padding-block: clamp(42px, 6.7vw, 92px); }
.front-section .section-head { margin-bottom: clamp(23px, 3vw, 39px); }
.front-section .section-head h2 {
  border-inline-start: 4px solid var(--editorial-yellow);
  padding-inline-start: 14px;
  font-size: clamp(1.95rem, 4.1vw, 3.3rem);
  line-height: 1.16;
}
.front-section .section-head .kicker { margin-bottom: 7px; font-weight: 700; }
.front-section .section-head p { margin-top: 12px; }
.front-section .section-head .link-arrow {
  border-bottom: 1px solid currentColor;
  padding-block-end: 2px;
  white-space: nowrap;
}
.front-news .news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
}
.front-news .news-card {
  min-width: 0;
  min-height: 0;
  border-radius: 3px;
  background: var(--bg-2);
}
.front-news .news-card:hover { transform: none; border-color: var(--accent); }
.front-news .news-feature { grid-column: span 2; grid-row: span 2; }
.front-news .news-card:nth-child(n+6) { grid-column: span 2; }
.front-news .news-card :is(h3, p) { overflow-wrap: anywhere; }
.front-news .news-feature h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.front-news .news-card .chip { border-radius: 2px; }
.front-news .news-card:not(.news-feature) h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.front-news .news-card:not(.news-feature) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.front-news .news-card.has-cover > :not(.cover) { margin-inline: 16px; }
.front-news .news-card.has-cover .top { margin-top: 12px; }
.front-news .news-card.has-cover .src { margin-bottom: 15px; }
.front-news .news-card .src svg { width: 15px; height: 15px; flex: none; }
.front-news .news-grid > .empty { grid-column: 1 / -1; }

.front-library, .front-mission { background: var(--bg-2); }
.front-library .books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.front-library .book,
.front-fields .field,
.front-mission .value,
.front-rights .band,
.front-stats .stats { border-radius: 3px; }
.front-library .book-cover::after,
.front-fields .field::before { display: none; }
.front-library .book:hover { box-shadow: none; }
.front-library .book-badge { max-width: calc(100% - 24px); border-radius: 3px; }
.front-fields .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.front-fields .field {
  background: var(--bg-2);
  border-inline-start: 3px solid var(--c, var(--accent));
}

.front-screen { margin-block: 0 clamp(25px, 5vw, 48px); }
.front-screen::before { display: none; }
.front-screen .screen { height: clamp(380px, 52vw, 640px); clip-path: none; }
.front-explorer details {
  border: 1px solid var(--line);
  background: var(--bg-2);
  scroll-margin-top: calc(var(--masthead-height) + 15px);
}
.front-explorer summary {
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 700;
}
.front-explorer summary::marker { color: var(--accent); }
.front-explorer summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.front-explorer .hero-explorer {
  --out: 0 !important;
  min-height: clamp(310px, 55vw, 560px);
  background: #05070c;
}
.front-explorer #globe { transform: none; }
.front-explorer .planet-label { color: #f1f2f4; }
.front-explorer .hero-fallback { inset-inline-start: 25%; }
.front-stats { padding-block: clamp(28px, 5vw, 68px); }
.front-stats .stats { background: var(--bg); backdrop-filter: none; }
.front-rights .band { background: var(--bg-2); }
.front-rights .tri-strip { display: none; }

@media (max-width: 1180px) {
  .site-header .nav-links,
  :root[data-theme="dark"] .site-header .nav-links {
    visibility: hidden;
    inset-block-start: var(--masthead-height);
    background: #0c0e11;
    border-color: #30343a;
    max-height: calc(100dvh - var(--masthead-height));
    overflow-y: auto;
  }
  .site-header .nav-links.open,
  :root[data-theme] .site-header .nav-links.open { visibility: visible; }
  .site-header .nav-links a { border-color: #deddd9; }
  :root[data-theme="dark"] .site-header .nav-links a { border-color: #30343a; }
}

@media (max-width: 1000px) {
  .front-library .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-news .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-news .news-feature { grid-row: auto; }
  .front-news .news-card:nth-child(n+6) { grid-column: auto; }
}

@media (max-width: 700px) {
  :root { --masthead-height: 62px; }
  .site-header .nav { gap: 6px; }
  .site-header .brand { gap: 7px; min-width: 0; flex-shrink: 1; }
  .site-header .brand b { white-space: normal; }
  .site-header .nav-tools { flex-shrink: 0; gap: 5px; }
  .site-header .icon-btn { width: 35px; height: 35px; }
  .front-hero { min-height: 580px; }
  .front-hero-inner { align-items: end; width: 100%; padding: 175px 16px 64px; }
  .front-hero-image { object-position: 29% 42%; }
  .front-hero::after {
    background: linear-gradient(to top, #05070c 4%, #05070cf0 22%, #05070c80 53%, #05070c0d 85%);
  }
  .front-hero-copy { width: 100%; min-width: 0; }
  .front-hero-label { max-width: 100%; margin-bottom: 13px; font-size: .6rem; overflow-wrap: anywhere; }
  .front-hero h1 { width: 100%; max-width: none; margin-bottom: 10px; font-size: clamp(2.8rem, 13vw, 4.55rem); overflow-wrap: anywhere; }
  .front-hero-copy > p { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .front-hero-copy > p { margin-bottom: 19px; }
  .front-hero .hero-actions { width: 100%; gap: 8px; }
  .front-hero .btn { flex: 1 1 125px; padding-inline: 11px; text-align: center; }
  .front-hero-explore { margin-top: 12px; }
  .front-hero-note { bottom: 17px; }
  .front-section .section-head { gap: 13px; align-items: start; }
  .front-library .books, .front-fields .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .front-library .book-body { padding: 13px 12px 16px; }
  .front-library .book-badge { inset-inline-start: 6px; top: 6px; max-width: calc(100% - 12px); padding-inline: 7px; }
  .front-library .book-body h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .front-news .news-grid { grid-template-columns: minmax(0, 1fr); }
  .front-news .news-feature { grid-column: auto; }
  .front-news .news-card.has-cover:not(.news-feature) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    column-gap: 10px;
    align-items: start;
    padding: 10px;
  }
  .front-news .news-card.has-cover:not(.news-feature) .cover {
    grid-row: 1 / span 4;
    grid-column: 2;
    width: 76px;
    align-self: start;
    aspect-ratio: 1;
  }
  .front-news .news-card.has-cover:not(.news-feature) > :not(.cover) { grid-column: 1; margin-inline: 0; }
  .front-news .news-card.has-cover:not(.news-feature) .top { margin-block: 0 5px; }
  .front-news .news-card.has-cover:not(.news-feature) .src { margin-bottom: 0; }
  .front-news .news-card:not(.news-feature) p { -webkit-line-clamp: 1; margin-bottom: 6px; }
}

/* ========================================================================
   الهوية التحريرية الداخلية — موحّدة لكل صفحات المنصة
   ======================================================================== */
body:not(.page-index) {
  --bg: #0c0e11;
  --bg-2: #111419;
  --surface: #14171c;
  --surface-2: #191d23;
  --line: #2d3138;
  --line-2: #484d56;
  --ink: #f5f4f0;
  --ink-2: #c5c8ce;
  --ink-3: #9297a0;
  --accent: var(--editorial-yellow);
  --radius: 3px;
  --radius-sm: 2px;
  background: var(--bg);
}
body:not(.page-index) .nebula {
  background:
    linear-gradient(#0c0e11f5, #0c0e11f5),
    radial-gradient(circle at 14% 18%, #ffd52916, transparent 25%),
    var(--bg);
}
body:not(.page-index) #stars { opacity: .3; }
body:not(.page-index) main { position: relative; }

.editorial-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--editorial-yellow) var(--read, 0%), transparent 0);
}

/* Page mastheads */
body:not(.page-index) .page-hero {
  min-height: clamp(330px, 42vw, 560px);
  display: grid;
  align-items: end;
  padding-block: clamp(70px, 10vw, 140px) clamp(42px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #0c0e11 0 36%, #0c0e11c9 56%, #0c0e1150 100%),
    linear-gradient(0deg, #0c0e11 0%, transparent 45%),
    url("../img/artovia-orbit.jpg") 16% 49% / cover no-repeat;
  isolation: isolate;
}
body:not(.page-index) .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(25% - 1px), #ffffff1a 25%, transparent calc(25% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), #ffffff12 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(75% - 1px), #ffffff12 75%, transparent calc(75% + 1px));
}
body:not(.page-index) .page-hero .orb { display: none; }
body:not(.page-index) .page-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr);
  align-items: end;
  column-gap: clamp(28px, 7vw, 110px);
}
body:not(.page-index) .page-hero .wrap::before {
  content: "ARTOVIA / KNOWLEDGE";
  grid-column: 1 / -1;
  direction: ltr;
  justify-self: start;
  margin-bottom: clamp(24px, 5vw, 54px);
  padding-inline-start: 42px;
  color: #e7e7e3;
  font: 700 .69rem/1.2 var(--sans);
  letter-spacing: .17em;
  background: linear-gradient(var(--editorial-yellow), var(--editorial-yellow)) left center / 30px 2px no-repeat;
}
body.page-library .page-hero .wrap::before { content: "ARTOVIA / LIBRARY"; }
body.page-news .page-hero .wrap::before { content: "ARTOVIA / SCIENCE NOW"; }
body.page-magazine .page-hero .wrap::before { content: "AL MADAR / MAGAZINE"; }
body.page-world .page-hero .wrap::before { content: "ARTOVIA / WORLD IDEAS"; }
body.page-knowledge .page-hero .wrap::before { content: "ARTOVIA / EXPLORE"; }
body.page-about .page-hero .wrap::before { content: "ACF / OUR STORY"; }
body.page-settings .page-hero .wrap::before { content: "ARTOVIA / PREFERENCES"; }
body.page-account .page-hero .wrap::before { content: "ARTOVIA / MEMBERS"; }
body.page-rawaq .page-hero .wrap::before { content: "AL RAWAQ / COMMUNITY"; }
body:not(.page-index) .page-hero .crumbs {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-bottom: 18px;
  color: #b7bbc2;
}
body:not(.page-index) .page-hero .wrap > h1 {
  grid-column: 1;
  grid-row: 3;
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 8.4vw, 7.5rem);
  line-height: 1.12;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
body:not(.page-index) .page-hero .wrap > p {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  margin: 0;
  padding: 20px 0 2px;
  border-top: 3px solid var(--editorial-yellow);
  color: #e0e2e6;
  font-size: clamp(.94rem, 1.35vw, 1.08rem);
  line-height: 1.85;
}
body:not(.page-index) .page-hero .wrap > .updated {
  grid-column: 2;
  grid-row: 4;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: #b4b8c0;
  font-size: .78rem;
}

/* Shared sections and controls */
body:not(.page-index) .section { padding-block: clamp(48px, 7vw, 92px); }
body:not(.page-index) .section::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 10% 90%, transparent);
}
body:not(.page-index) .page-hero + .section::before { display: none; }
body:not(.page-index) .section-head h2,
body:not(.page-index) .mission h2,
body:not(.page-index) .band h2 {
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--editorial-yellow);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.15;
}
body:not(.page-index) .kicker {
  color: var(--editorial-yellow);
  font-weight: 700;
  letter-spacing: .04em;
}
body:not(.page-index) :is(.search, .filter, .seg, .tabs) { border-radius: 2px; }
body:not(.page-index) .search {
  min-height: 50px;
  background: #111419e8;
  border-color: var(--line-2);
}
body:not(.page-index) .search:focus-within { border-color: var(--editorial-yellow); }
body:not(.page-index) .filter {
  min-height: 42px;
  padding-inline: 18px;
  background: #14171c;
  border-color: var(--line);
  font-size: .86rem;
}
body:not(.page-index) .filter[aria-pressed="true"] {
  color: #151205;
  background: var(--c, var(--editorial-yellow));
}
body:not(.page-index) .btn svg,
body:not(.page-index) .link-arrow svg { display: none; }
.page-library .section-head,
.page-news #news-filters,
.page-world #world-filters {
  position: sticky;
  z-index: 12;
  top: calc(var(--masthead-height) + 8px);
  padding-block: 12px;
  background: #0c0e11ed;
  backdrop-filter: blur(14px);
}
.page-news #news-filters,
.page-world #world-filters { margin-inline: calc(var(--gutter) * -0.25); padding-inline: calc(var(--gutter) * .25); }

/* Editorial cards */
body:not(.page-index) :is(.book, .news-card, .issue, .know-card, .essay-card, .article-card, .field, .src-card, .setting, .panel, .review-item, .auth-card, .profile-card) {
  --mx: 50%;
  --my: 50%;
  border-radius: 3px;
  border-color: var(--line);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), #ffd52912, transparent 42%),
    var(--surface);
  box-shadow: none;
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
body:not(.page-index) :is(.book, .news-card, .issue, .know-card, .essay-card, .article-card, .field, .src-card, .setting, .panel):hover {
  transform: translateY(-4px);
  border-color: #ffd52970;
}

/* Library */
.page-library .books { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.page-library .book-cover::after { display: none; }
.page-library .book-badge { border-radius: 2px; }
.page-library .book-body { border-top: 1px solid var(--line); }
.page-library .book:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
}
.page-library .book:first-child .book-cover { aspect-ratio: auto; min-height: 100%; background: #fdfbf6; display: flex; align-items: center; }
.page-library .book:first-child .book-cover img { aspect-ratio: 3 / 4; height: auto; object-fit: contain; }
.page-library .book:first-child .book-body { justify-content: end; padding: clamp(24px, 4vw, 48px); border-top: 0; border-inline-start: 1px solid var(--line); }
.page-library .book:first-child h3 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }

/* News and international essays */
.page-news .news-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.page-news .news-card { grid-column: span 4; min-height: 280px; border-radius: 3px; }
.page-news .news-feature { grid-column: span 8; grid-row: span 2; }
.page-news .news-feature h3 { font-size: clamp(1.8rem, 4vw, 3.25rem); line-height: 1.25; }
.page-news .news-feature .cover { aspect-ratio: 2 / 1; }
.page-news .news-card .chip { border-radius: 1px; }
.page-news .news-card .src { padding-top: 10px; border-top: 1px solid var(--line); }
.page-world .essays { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.page-world .essay-card { grid-column: span 4; }
.page-world .essay-card:first-child { grid-column: span 8; grid-row: span 2; }
.page-world .essay-card:first-child h3 { font-size: clamp(1.65rem, 3.8vw, 3rem); }
.page-world .essay-card:first-child .cover { aspect-ratio: 2 / 1; }
.page-world .essay-card .in { border-top: 1px solid var(--line); }

/* Magazine, knowledge and community */
.page-magazine .issue-feature {
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #171a1f, #0f1115);
}
.page-magazine .issue-feature .issue-cover { box-shadow: 20px 24px 0 #ffd529 !important; }
.page-magazine .issues { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.page-magazine .issue-body { border-top: 1px solid var(--line); }
.page-knowledge .know-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.page-knowledge .know-card:first-child { grid-column: span 2; grid-row: span 2; }
.page-knowledge .know-card:first-child h3 { font-size: clamp(1.8rem, 4vw, 3rem); }
.page-knowledge .know-card:first-child img { aspect-ratio: 2 / 1; }
.page-rawaq .articles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.page-rawaq .article-card:first-child { grid-column: span 2; }
.page-rawaq .article-card:first-child h3 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* About, sources and general panels */
.page-about .emblem-stage { filter: grayscale(.3); }
.page-about .fields { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.page-about .field { min-height: 280px; border: 0; border-inline-start: 3px solid var(--c); border-radius: 0; }
.page-about .field::before { display: none; }
.page-about .field h3 { margin-top: auto; font-size: 1.2rem; }
.page-about .band { border-radius: 3px; background: #15181c; border-color: var(--line-2); }
.page-sources .src-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.page-sources .src-card { border: 0; border-radius: 0; min-height: 150px; }
.page-sources .src-mark { border-radius: 2px; }
.page-sources .src-note { border-radius: 2px; }

/* Book, article and essay reading experiences */
.page-book .book-detail { position: relative; }
.page-book .cover-3d .inner { border-radius: 2px; box-shadow: 22px 26px 0 #ffd529; }
.page-book .fact { border-radius: 2px; background: #14171c; }
.page-book .toc-book li { border-radius: 2px; }
.page-article .article-hero,
.page-essay .article-hero { max-width: 1280px; border-radius: 0; box-shadow: none; }
.page-article .article-hero::after,
.page-essay .article-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, #0c0e11b8);
}
:is(.page-article, .page-essay) .reader { max-width: 820px; }
:is(.page-article, .page-essay) .reader h1 {
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 1.2;
  letter-spacing: normal;
}
:is(.page-article, .page-essay) .reader .deck {
  margin-block: 22px;
  padding-inline-start: 20px;
  border-inline-start: 4px solid var(--editorial-yellow);
  color: #d8dbe0;
  font-size: 1.18rem;
}
:is(.page-article, .page-essay, .page-rawaq) .reader .body {
  font-size: clamp(1.16rem, 2vw, 1.34rem);
  line-height: 2.15;
}
:is(.page-article, .page-essay) :is(.keyfacts, .think, .source-box) { border-radius: 2px; background: #14171c; }
:is(.page-article, .page-essay) .more-list a { border-radius: 2px; }

/* Account, settings, review and legal */
.page-account .auth-card { border-top: 4px solid var(--editorial-yellow); }
.page-account .tabs button { border-radius: 1px; }
body:not(.page-index) .form :is(input, textarea, select) { border-radius: 2px; background: #0f1216; }
.page-settings .settings { max-width: 980px; }
.page-settings .setting { min-height: 112px; border-inline-start: 3px solid transparent; }
.page-settings .setting:hover { border-inline-start-color: var(--editorial-yellow); }
.page-settings .seg button { border-radius: 1px; }
.prose-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 820px); justify-content: center; }
body:not(.page-index) .toc { top: calc(var(--masthead-height) + 24px); border-radius: 2px; border-top: 3px solid var(--editorial-yellow); background: #14171c; }
body:not(.page-index) .prose h2 {
  padding: 28px 18px 8px 0;
  border-top: 1px solid var(--line);
  border-inline-start: 3px solid var(--editorial-yellow);
}
body:not(.page-index) .note { border-radius: 2px; }
.page-404 .lost b { color: var(--editorial-yellow); text-shadow: none; }

/* Footer follows the same visual system */
body:not(.page-index) .site-footer { border-top: 1px solid var(--line); background: #090b0e; }
body:not(.page-index) .foot-grid { border-top: 4px solid var(--editorial-yellow); padding-top: 42px; }
body:not(.page-index) .site-footer h4 { color: #fff; }
body:not(.page-index) .free-seal { border-radius: 2px; }

/* Light theme retains structure without losing readability */
:root[data-theme="light"] body:not(.page-index) {
  --bg: #f4f2ec;
  --bg-2: #ebe8df;
  --surface: #fbfaf6;
  --surface-2: #fff;
  --line: #d8d4ca;
  --line-2: #b9b4a9;
  --ink: #17181b;
  --ink-2: #4d5056;
  --ink-3: #6e727a;
}
:root[data-theme="light"] body:not(.page-index) .nebula { background: #f4f2ec; }
:root[data-theme="light"] body:not(.page-index) :is(.search, .filter) { background: #fbfaf6; }
:root[data-theme="light"] .page-library .section-head,
:root[data-theme="light"] .page-news #news-filters,
:root[data-theme="light"] .page-world #world-filters { background: #f4f2ecef; }
:root[data-theme="light"] body:not(.page-index) :is(.book, .news-card, .issue, .know-card, .essay-card, .article-card, .field, .src-card, .setting, .panel, .review-item, .auth-card, .profile-card) {
  background: radial-gradient(420px circle at var(--mx) var(--my), #ffd52920, transparent 42%), var(--surface);
}
:root[data-theme="light"] body:not(.page-index) .form :is(input, textarea, select),
:root[data-theme="light"] body:not(.page-index) .toc { background: #fbfaf6; }

@media (max-width: 1050px) {
  .page-library .book:first-child { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .page-news .news-card { grid-column: span 6; }
  .page-news .news-feature { grid-column: span 12; grid-row: auto; }
  .page-world .essay-card { grid-column: span 6; }
  .page-world .essay-card:first-child { grid-column: span 12; grid-row: auto; }
  .page-magazine .issues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-about .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
}

@media (max-width: 760px) {
  body:not(.page-index) .page-hero { min-height: 470px; background-position: 37% center; }
  body:not(.page-index) .page-hero .wrap { grid-template-columns: 1fr; }
  body:not(.page-index) .page-hero .wrap::before { margin-bottom: 36px; }
  body:not(.page-index) .page-hero .wrap > h1,
  body:not(.page-index) .page-hero .wrap > p,
  body:not(.page-index) .page-hero .wrap > .updated { grid-column: 1; }
  body:not(.page-index) .page-hero .wrap > h1 { font-size: clamp(3rem, 16vw, 5.4rem); max-width: 100%; }
  body:not(.page-index) .page-hero .wrap > p { grid-row: 4; margin-top: 24px; padding-top: 14px; }
  body:not(.page-index) .page-hero .wrap > .updated { grid-row: 5; }
  .page-library .section-head,
  .page-news #news-filters,
  .page-world #world-filters { position: static; backdrop-filter: none; }
  .page-library .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-library .book:first-child { grid-template-columns: 1fr 1fr; }
  .page-library .book:first-child .book-body { padding: 20px; }
  .page-news .news-grid, .page-world .essays { gap: 12px; }
  .page-news .news-card, .page-world .essay-card { grid-column: span 12; }
  .page-magazine .issues, .page-knowledge .know-grid, .page-rawaq .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-about .fields, .page-sources .src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-about .field { min-height: 230px; }
  :is(.page-article, .page-essay) .reader h1 { font-size: clamp(2.35rem, 10vw, 4.2rem); }
}

@media (max-width: 520px) {
  body:not(.page-index) .page-hero { min-height: 520px; padding-bottom: 46px; }
  body:not(.page-index) .page-hero::after { opacity: .1; }
  body:not(.page-index) .page-hero .wrap > h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); }
  body:not(.page-index) .page-hero .wrap > p { font-size: .94rem; line-height: 1.75; }
  .page-library .book:first-child { display: flex; }
  .page-library .book:first-child .book-body { border-inline-start: 0; border-top: 1px solid var(--line); }
  .page-library .book:first-child h3 { font-size: 1.35rem; }
  .page-magazine .issues, .page-knowledge .know-grid, .page-rawaq .articles { grid-template-columns: 1fr; }
  .page-knowledge .know-card:first-child, .page-rawaq .article-card:first-child { grid-column: auto; grid-row: auto; }
  .page-about .fields, .page-sources .src-grid { grid-template-columns: 1fr; }
  .page-about .field { min-height: 190px; }
  .page-magazine .issue-feature { padding: 18px; }
  .page-magazine .issue-feature .issue-cover { box-shadow: 10px 12px 0 #ffd529 !important; }
  body:not(.page-index) .prose h2 { padding-inline-start: 12px; }
  .editorial-progress { height: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.page-index) :is(.book, .news-card, .issue, .know-card, .essay-card, .article-card, .field, .src-card, .setting, .panel) { transition: none; }
}

/* ===== تصحيحات المراجعة ===== */
/* مجلة المدار: «تصدر كل جمعة» فوق العنوان لا تحته */
body.page-magazine .page-hero .wrap > .kicker { grid-column: 1; grid-row: 3; margin-bottom: 14px; }
body.page-magazine .page-hero .wrap > h1 { grid-row: 4; align-self: start; }
body.page-magazine .page-hero .wrap > p { grid-row: 3 / span 2; }
@media (max-width: 760px) {
  body.page-magazine .page-hero .wrap > p { grid-row: 5; }
  body.page-magazine .page-hero .wrap > h1 { align-self: end; }
}
/* صفحة الكتاب: الترويسة تبقى بتخطيطها الخاص وتقرأ جيدًا في الوضع الفاتح أيضًا */
body.page-book .page-hero .wrap { display: block; }
body.page-book .page-hero .wrap::before { content: "ARTOVIA / LIBRARY"; display: block; width: max-content; }
.page-book .page-hero h1 { color: #fff; line-height: 1.15; letter-spacing: normal; }
:root[data-theme="light"] .page-book .page-hero { --ink: #f5f4f0; --ink-2: #c5c8ce; --ink-3: #9297a0; color: var(--ink); }
:root[data-theme="light"] .page-book .page-hero .fact { background: #14171c; border-color: #2d3138; }

/* ===== وضع التطبيق (يُفتح من الشاشة الرئيسية) ===== */
#app-splash { display: none; }
.app-mode:not(.splash-seen) #app-splash {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #0c0e11; color: #f6f5f2; text-align: center;
  animation: app-splash-out .5s ease-in 2.1s forwards;
}
#app-splash img { width: min(40vw, 190px); height: auto; animation: app-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
#app-splash .app-splash-ring {
  position: absolute; width: min(40vw, 190px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #ffd52999;
  top: 50%; left: 50%; translate: -50% calc(-50% - 62px); animation: app-ring 1.3s .35s ease-out both;
}
#app-splash b { margin-top: 8px; font: 700 clamp(2rem, 8.5vw, 3.2rem)/1.25 var(--serif, "Amiri"), serif; animation: app-fade .55s .55s both; }
#app-splash i { width: 44px; height: 2px; background: var(--editorial-yellow); animation: app-grow .5s .85s both; }
#app-splash small { color: #d9dbe0; font-size: clamp(.95rem, 3.8vw, 1.2rem); font-weight: 600; animation: app-fade .55s 1s both; }
@keyframes app-pop { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes app-ring { from { scale: 1; opacity: 1; } to { scale: 1.8; opacity: 0; } }
@keyframes app-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes app-grow { from { width: 0; } to { width: 44px; } }
@keyframes app-splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  #app-splash, #app-splash * { animation-duration: .01s !important; animation-delay: 0s !important; }
  .app-mode:not(.splash-seen) #app-splash { animation-delay: 1s !important; }
}

.app-tabbar { display: none; }
.app-mode .app-tabbar {
  position: fixed; z-index: 90; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #0c0e11f2; border-top: 1px solid #30343a;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.app-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: #9fa4ad; font-size: .72rem; font-weight: 700; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.app-tabbar a svg { width: 23px; height: 23px; }
.app-tabbar a[aria-current="page"] { color: var(--editorial-yellow); background: #ffd52914; }
:root[data-theme="light"].app-mode .app-tabbar { background: #fbfaf7f2; border-color: #deddd9; }
:root[data-theme="light"] .app-tabbar a { color: #5b5e64; }
:root[data-theme="light"] .app-tabbar a[aria-current="page"] { color: #8f6b00; }
.app-mode body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.app-mode .site-header { padding-top: env(safe-area-inset-top); }
.app-mode .site-footer .foot-grid > div:not(.foot-brand) { display: none; }
@media (min-width: 1000px) { .app-mode .app-tabbar { display: none; } .app-mode body { padding-bottom: 0; } }

.offline-note { max-width: 640px; text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: 40px; }
.offline-note h1 { font-size: clamp(2rem, 6vw, 3rem); }
.offline-note p { color: var(--ink-2); }

/* شريط انقطاع الاتصال ودعوة التثبيت */
.net-note { position: fixed; z-index: 95; inset: 0 0 auto; padding: calc(6px + env(safe-area-inset-top)) 14px 6px; background: #3a2d00; color: #ffe9a0; font-size: .82rem; text-align: center; transform: translateY(-100%); transition: transform .3s; }
.net-note.on { transform: none; }
.install-nudge {
  position: fixed; z-index: 92; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 10px; border: 1px solid #ffd52966; border-radius: 6px; background: #14171cf7; color: #f6f5f2;
  box-shadow: 0 18px 40px #0009; transform: translateY(140%); transition: transform .45s cubic-bezier(.2, .9, .3, 1.1);
}
.install-nudge.on { transform: none; }
.install-nudge img { border-radius: 10px; flex: none; }
.install-nudge div { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.install-nudge b { font-size: .95rem; }
.install-nudge span { color: #b9bec8; font-size: .8rem; }
.install-nudge .btn { min-height: 38px; padding: 6px 16px; }
.install-close { width: 32px; height: 32px; border: 0; background: none; color: #9fa4ad; font-size: 1.4rem; cursor: pointer; }
:root[data-theme="light"] .install-nudge { background: #fbfaf7f7; color: #191a1d; border-color: #b38709; }
@media (prefers-reduced-motion: reduce) { .install-nudge, .net-note { transition: none; } }

/* داخل التطبيق المثبّت: لا روابط ولا أزرار للتثبيت */
.app-mode a[href="app.html"],
.app-mode .install-nudge { display: none !important; }
.app-mode .site-footer li:has(> a[href="app.html"]) { display: none; }

/* المكتبة: الكتاب البارز يعرض نبذته وحقائقه وزر القراءة بدل المساحة الفارغة */
.book-extra { display: none; }
.page-library .book:first-child .book-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.page-library .book:first-child .sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.page-library .book:first-child .book-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.page-library .book:first-child .book-extra p { color: var(--ink-2); line-height: 1.9; max-width: 62ch; margin: 0; }
.page-library .book-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.page-library .book-facts li { font-size: .82rem; color: var(--ink-2); border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 2px; }
.page-library .book-cta { pointer-events: none; }
.page-library .book:first-child .book-meta { margin-top: 6px; }
@media (max-width: 700px) {
  .page-library .book:first-child .book-extra p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; }
  .page-library .book:first-child .book-facts li:last-child { display: none; }
  .page-library .book-cta { align-self: stretch; text-align: center; justify-content: center; }
}

/* ======================= قارئ الكتب ======================= */
body.page-reader { overflow: hidden; background: #0c0e11; }
body.page-reader .nebula, body.page-reader #stars, body.page-reader .app-tabbar,
body.page-reader .install-nudge { display: none !important; }
body.page-reader main { position: fixed; inset: 0; }
body.page-reader .reader { position: absolute; inset: 0; display: flex; flex-direction: column; color: #f5f4f0; }
.reader-bar {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: calc(env(safe-area-inset-top) + 8px) 10px 8px;
  background: #121519; border-bottom: 1px solid #2d3138; z-index: 3;
}
.rb-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; padding-inline: 4px; }
.rb-title b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-title small { font-size: .75rem; color: #9297a0; }
.rb-btn {
  flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid #2d3138; border-radius: 50%; background: transparent; color: inherit;
  font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s;
}
.rb-btn:hover { background: #1c2026; border-color: #484d56; }
.rb-btn:disabled { opacity: .35; cursor: default; }
.rb-btn svg { width: 20px; height: 20px; }
.rb-btn.saved { background: var(--editorial-yellow); border-color: var(--editorial-yellow); color: #191a1c; }
.rb-btn.busy { animation: r-pulse 1s ease-in-out infinite alternate; }
@keyframes r-pulse { to { opacity: .4; } }

.reader-load { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: #c5c8ce; }
.reader-load[hidden] { display: none; }
.reader-load img { animation: r-pulse 1.2s ease-in-out infinite alternate; }
.reader-load a { color: var(--editorial-yellow); text-decoration: underline; }
.reader-progress { width: min(260px, 70vw); height: 4px; background: #2d3138; border-radius: 4px; overflow: hidden; }
.reader-progress i { display: block; height: 100%; width: 4%; background: var(--editorial-yellow); transition: width .3s; }
.reader-load .gate { margin: 0; color: #f5f4f0; }

.reader-pages {
  display: none; flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 12px 8px 90px; background: #1a1d22;
}
.reader-pages.on { display: block; }
.r-page {
  position: relative; width: var(--pw); height: var(--ph); margin: 0 auto 12px;
  background: #fdfbf6; box-shadow: 0 4px 22px rgba(0,0,0,.45); border-radius: 2px; overflow: hidden;
}
.reader-pages.zoomed .r-page { margin-inline: 0; }
.r-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.r-num { position: absolute; inset: 0; display: grid; place-items: center; color: #b9b3a5; font-size: 1.4rem; }
.r-page.ready .r-num { display: none; }
.reader-pages.night .r-page { background: #1b1d21; }
.reader-pages.night canvas { filter: invert(.9) hue-rotate(180deg) brightness(.95); }

.reader-foot {
  position: absolute; bottom: calc(env(safe-area-inset-bottom) + 14px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 6px; z-index: 3;
  background: rgba(18,21,25,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #2d3138; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.reader-foot[hidden] { display: none; }
.r-jump { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: #c5c8ce; padding-inline: 4px; white-space: nowrap; }
.r-jump input {
  width: 64px; height: 34px; text-align: center; font: inherit; font-weight: 700; color: #f5f4f0;
  background: #0c0e11; border: 1px solid #484d56; border-radius: 8px; -moz-appearance: textfield;
}
.r-jump input::-webkit-inner-spin-button, .r-jump input::-webkit-outer-spin-button { -webkit-appearance: none; }

.reader-toc {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(380px, 88vw); z-index: 5;
  display: flex; flex-direction: column; background: #121519; border-inline-start: 1px solid #2d3138;
  box-shadow: -20px 0 60px rgba(0,0,0,.5); padding-top: env(safe-area-inset-top);
}
.reader-toc[hidden] { display: none; }
.rt-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #2d3138; }
.rt-head b { font-size: 1.1rem; }
.reader-toc ol { list-style: none; margin: 0; padding: 0; }
.reader-toc > ol { overflow: auto; flex: 1; padding: 8px 0 calc(env(safe-area-inset-bottom) + 20px); }
.reader-toc ol button {
  display: block; width: 100%; text-align: start; background: none; border: 0; color: #f5f4f0;
  font: inherit; font-size: .95rem; padding: 10px 18px; cursor: pointer; line-height: 1.5;
}
.reader-toc ol button:hover { background: #1c2026; color: var(--editorial-yellow); }
.reader-toc .d0 > button { font-weight: 700; border-top: 1px solid #22262c; }
.reader-toc .d1 > button { padding-inline-start: 34px; font-size: .88rem; color: #c5c8ce; }
body.page-reader .demo-ribbon { display: none; }

/* ======================= صفحة المجال ======================= */
body.page-field .page-hero .wrap::before { content: "ARTOVIA / FIELDS"; }
body.page-field .page-hero .wrap { display: block; }
.field-hero-icon { width: 72px; height: 72px; color: var(--c, var(--editorial-yellow)); margin: 18px 0 6px; }
.field-hero-icon svg { width: 100%; height: 100%; }
body.page-field .page-hero h1 { color: var(--ink); }
body.page-field .page-hero h1::after { content: ""; display: block; width: 80px; height: 4px; margin-top: 18px; background: var(--c, var(--editorial-yellow)); }
.field-switch {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 18px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.field-switch::-webkit-scrollbar { display: none; }
.field-switch a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); font-size: .9rem; white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
}
.field-switch a svg { width: 20px; height: 20px; color: var(--c); }
.field-switch a:hover { color: var(--ink); border-color: var(--c); }
.field-switch a[aria-current] { background: var(--c); border-color: var(--c); color: #111; font-weight: 700; }
.field-switch a[aria-current] svg { color: #111; }
.field-block { padding-block: clamp(28px, 5vw, 56px); }
.field-block[hidden] { display: none; }
body.page-field .books { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.field-empty { grid-column: 1 / -1; }
@media (max-width: 700px) { body.page-field .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* بطاقات المجالات في الرئيسية: إشارة أنها تفتح صفحة المجال */
.page-index .field { position: relative; }
.page-index .field::after { content: "←"; position: absolute; inset-inline-end: 16px; bottom: 14px; color: var(--c); opacity: .0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.page-index .field:hover::after { opacity: 1; transform: none; }

/* ======================= واجهة الرئيسية: مشاهد سينمائية متبدّلة ======================= */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #05070c; pointer-events: none; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  filter: saturate(.92) contrast(1.06) brightness(.82);
  transition: opacity 1.6s ease, transform 7s cubic-bezier(.2,.6,.3,1);
  will-change: opacity, transform;
}
.hero-slides img.on { opacity: 1; transform: scale(1.02); }
.hero-cap {
  position: absolute; z-index: 2; inset-inline-end: clamp(16px, 4vw, 48px); bottom: 22px;
  display: flex; flex-direction: column; align-items: flex-end; text-align: left; gap: 2px; max-width: min(40%, 420px);
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); opacity: .82; transition: opacity .3s;
}
.hero-cap:hover { opacity: 1; }
.hero-cap b { font-size: .82rem; color: var(--editorial-yellow); letter-spacing: .02em; }
.hero-cap small { font-size: .68rem; color: #d6d6d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-dots { position: absolute; z-index: 2; inset-inline-end: clamp(16px, 4vw, 48px); bottom: 8px; display: flex; gap: 4px; }
.hero-dots i { width: 10px; height: 2px; background: rgba(255,255,255,.28); transition: background .4s, width .4s; }
.hero-dots i.on { width: 22px; background: var(--editorial-yellow); }
.page-index .front-hero-note { z-index: 2; }
@media (max-width: 760px) {
  .hero-cap { top: 12px; bottom: auto; max-width: calc(100% - 32px); }
  .hero-cap small { white-space: normal; font-size: .62rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hero-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transform: none !important; transition: opacity 1.2s ease; }
}
