/* Color mode is scoped to the archive and story. The category component uses its own light surface. */
.asi144-themed {
  color-scheme: dark;
  --fx-ink: #f3f4f9;
  --fx-muted: #bac1d0;
  --fx-line: #343640;
  --fx-surface: #191b23;
  --fx-control: #20232c;
  --fx-tint: #322331;
  --fx-label: #efb6cf;
  --fx-tab: #252832;
  --fx-hover: #282a35;
  --fx-caption: #1c1d26;
  --fx-header: linear-gradient(115deg, #15151c, #252028 44%, #13151e 78%, #13151a);
  --fx-backdrop: radial-gradient(ellipse at 70% -14%, #321e2a, transparent 39rem), linear-gradient(150deg, #111217, #131820);
  --fx-next: linear-gradient(100deg, #271c2a, #20202a 72%, #262129);
  --fx-docked: #25222ded;
  background: var(--fx-backdrop);
  color: var(--fx-ink);
}
html[data-foto-fokus-mode="light"] .asi144-themed,
html:not([data-foto-fokus-mode]) .asi144-themed[data-fx-default="light"] {
  color-scheme: light;
  --fx-ink: #1d2838;
  --fx-muted: #546174;
  --fx-line: #e2e4eb;
  --fx-surface: #fff;
  --fx-control: #fcfcfd;
  --fx-tint: #f4e8ef;
  --fx-label: #863953;
  --fx-tab: #ebedf2;
  --fx-hover: #f3f2f7;
  --fx-caption: #f9f4f7;
  --fx-header: linear-gradient(115deg, #f1eaf0, #faf8fb 50%, #eef0f8);
  --fx-backdrop: radial-gradient(ellipse at 75% -8%, #efe3ed, transparent 35rem), linear-gradient(145deg, #f7f7fa, #f4f6f9);
  --fx-next: linear-gradient(100deg, #f0e2eb, #f8eff1 72%, #f9f0e7);
  --fx-docked: #f8eef2f5;
}
.asi144-themed :is(.asi142-card, .asi142-empty, .asi142-feature-rail, .asi142-frame) {
  background: var(--fx-surface); border-color: var(--fx-line);
}
.asi144-themed :is(.asi142-card-meta span, .asi142-card-arrow, .asi142-related-link, .asi142-empty a, .asi142-article-body a) {
  color: var(--fx-label);
}
.asi144-themed .asi142-feature-rail li { background: transparent; }
.asi144-themed .asi142-feature-rail li:hover { background: var(--fx-hover); }
.asi144-themed .asi142-feature-rail li.is-active { background: var(--fx-tint); border-color: var(--fx-line); }
.asi144-themed .asi142-feature-rail button { background: var(--fx-tab); }
.asi144-themed .asi142-feature-rail button[aria-pressed="true"] { background: var(--fx-accent); }
.asi144-themed :is(.asi142-feature-arrows button, .asi142-more) { background: var(--fx-control); border-color: var(--fx-line); }
.asi144-themed .asi142-more { color: var(--fx-label) !important; }
.asi144-themed :is(.asi142-feature-arrows button, .asi142-more, .asi142-pages a):hover { color: var(--fx-label); background: var(--fx-hover); }
.asi144-themed .asi142-pages .is-current { color: var(--fx-label); }
.asi144-themed .asi143-next-slot { background: var(--fx-next); border-color: var(--fx-line); }
.asi144-themed .asi143-next-link { color: var(--fx-ink); }
.asi144-themed :is(.asi143-next-copy small, .asi143-next-arrow) { color: var(--fx-label); }
.asi144-themed .asi143-next-arrow { background: var(--fx-control); }
.asi144-themed .asi143-next-link:hover .asi143-next-arrow { background: var(--fx-hover); }
.asi144-themed .asi143-next-link.is-docked { background: var(--fx-docked); border-color: var(--fx-line); }
.asi144-themed.asi143-detail .asi142-frame figcaption { background: linear-gradient(120deg, var(--fx-surface), var(--fx-caption)); }
.asi144-themed.asi143-detail .asi142-frame-number { color: var(--fx-label); background: var(--fx-tint); }
.asi144-themed.asi143-detail .asi142-frame-number small { color: var(--fx-muted); }
.asi144-themed .asi142-article-body { color: var(--fx-ink); }

.asi144-themed.asi143-archive { padding-top: 0; }
.asi144-archive-header {
  position: relative; background: var(--fx-header); border-bottom: 1px solid var(--fx-line);
  margin-bottom: clamp(16px, 2.5vw, 32px);
}
.asi144-archive-nav { display: grid; grid-template-columns: minmax(112px,1fr) minmax(0,auto) minmax(112px,1fr); gap: 9px 13px; align-items: center; padding-block: 14px; }
.asi144-archive-nav .asi144-topic-menu {
  grid-column: 2; min-width: 0; max-width: 100%;
  justify-content: safe center; margin: 0; padding: 4px; scrollbar-width: thin;
}
.asi144-archive-nav .asi144-topic-menu a {
  padding-inline: 15px; min-height: 41px; border-color: var(--fx-line); background: var(--fx-control); color: var(--fx-ink);
}
.asi144-archive-nav .asi144-topic-menu a:hover { background: var(--fx-hover); }
.asi144-archive-nav .asi144-topic-menu a[aria-current="page"] { background: var(--fx-tint); color: var(--fx-label) !important; border-color: var(--fx-label); }
.asi144-archive-nav .asi144-mode-toggle { grid-column: 3; justify-self: end; }
.asi144-themed .asi142-feature-arrows { justify-content: center; margin: 12px auto 0; }
.asi144-mode-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; padding: 0 10px;
  min-height: 44px; border-radius: 12px; border: 1px solid var(--fx-line); background: var(--fx-control); color: var(--fx-ink);
  cursor: pointer; font-weight: 700; font-size: .77rem !important;
}
.asi144-mode-toggle svg { flex: none; color: var(--fx-label); }
.asi144-mode-toggle:hover { background: var(--fx-hover); }
.asi144-cover-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.asi144-cover-top .asi144-mode-toggle { background: #172635da; border-color: #ffffff62; color: white; }
.asi144-cover-top .asi144-mode-toggle svg { color: #f6c9d7; }
.asi144-cover-top .asi144-mode-toggle:hover { background: #283d53; }

/* Centered mode picker, thumbnail strip and the separate slide controls. */
.asi144-themed .asi142-reader-bar { flex-direction: column; justify-content: center; gap: 8px; margin: 0 auto 15px; }
.asi144-themed .asi142-reader-modes { background: var(--fx-tab); border: 1px solid var(--fx-line); }
.asi144-themed .asi142-reader-modes button { min-height: 41px; padding-inline: 13px; }
.asi144-themed .asi142-reader-modes button[aria-pressed="true"] { background: var(--fx-surface); color: var(--fx-label); }
.asi144-thumbline {
  display: flex; justify-content: center; align-items: center; gap: clamp(5px, 1vw, 10px);
  max-width: min(100%, 728px); min-width: 0;
}
.asi144-thumbline .asi142-thumbs { min-width: 0; margin: 0; padding: 4px; scrollbar-color: var(--fx-line) transparent; }
.asi144-thumbline .asi142-thumbs a { flex-basis: clamp(49px, 7vw, 80px); }
.asi144-thumbline .asi142-thumbs [aria-current] { border-color: var(--fx-label); }
.asi144-reader-arrow, .asi144-slide-arrows button {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--fx-line); color: var(--fx-ink); background: var(--fx-control); cursor: pointer;
}
.asi144-reader-arrow:hover { color: var(--fx-label); background: var(--fx-hover); }
.asi144-reader-index { color: var(--fx-muted); font-size: .75rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.asi144-slide-stage { position: relative; }
.asi144-slide-arrows {
  position: absolute; z-index: 2; inset: 0 0 auto; aspect-ratio: 16 / 9; display: flex; justify-content: space-between;
  align-items: center; padding-inline: clamp(8px, 1.7vw, 21px); pointer-events: none;
}
.asi144-slide-arrows button {
  pointer-events: auto; width: clamp(44px, 5vw, 55px); height: clamp(44px, 5vw, 55px);
  color: #fff; background: #121b2bc9; border-color: #ffffff67; backdrop-filter: blur(8px);
  box-shadow: 0 4px 17px #10182440;
}
.asi144-slide-arrows button:hover { background: #1b2c44ec; }

/* The main placement takes the full row; the compact placement stays within its column. */
.asi70-layout .asi144-gallery-band { grid-column: 1 / -1; position: relative; isolation: isolate; padding-block: clamp(15px, 2vw, 23px); }
.asi144-gallery-band::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); background: #fff;
}
.asi143-carousel { color-scheme: light; background: #fff; border-color: #e9e9ee; }
.asi144-gallery-band .asi143-carousel { border: 0; box-shadow: none; padding: 0; }
.asi143-carousel-head { position: relative; border-bottom: 1px solid #dfe3ea; padding-bottom: 10px; margin-bottom: 16px; }
.asi143-carousel-head::after {
  content: ""; position: absolute; inset: auto auto -1px 0; height: 3px; width: min(124px, 48%);
  border-radius: 3px; background: var(--fx-accent, #ad354e);
}

@media (max-width: 740px) {
  .asi144-archive-nav { grid-template-columns: minmax(0,1fr); padding-block: 7px 11px; }
  .asi144-archive-nav .asi144-topic-menu, .asi144-archive-nav .asi144-mode-toggle { grid-column: 1; }
  .asi144-archive-nav .asi144-mode-toggle { justify-self: center; }
}
@media (max-width: 365px) {
  .asi142-archive .asi142-shell.hp7-frame { padding-inline: 10px; }
}
