/*
 * Editorial styling for rendered Markdown on the public site.
 *
 * All article/CMS bodies are rendered to raw HTML by MarkdownRenderer and wrapped
 * in `.article-body` (and the table-of-contents in `.toc-list`). The Markdown HTML
 * carries no utility classes, so these element selectors fully own its look.
 *
 * Aesthetic goal: a calm, high-trust editorial layout in the spirit of modern news
 * and premium real-estate sites — generous rhythm, clear hierarchy, restrained use
 * of the rose brand accent. Pure CSS, no JavaScript.
 */

.article-body {
  --ab-ink: #1e293b;          /* primary text  (slate-800) */
  --ab-ink-strong: #0f172a;   /* headings      (slate-900) */
  --ab-muted: #64748b;        /* captions      (slate-500) */
  --ab-rule: #e2e8f0;         /* hairlines     (slate-200) */
  --ab-rule-soft: #f1f5f9;    /* soft fills    (slate-100) */
  --ab-surface: #f8fafc;      /* panels        (slate-50)  */
  --ab-brand: #e11d48;        /* rose-600 */
  --ab-brand-dark: #be123c;   /* rose-700 */
  --ab-brand-tint: #fff1f2;   /* rose-50  */

  color: var(--ab-ink);
  font-size: 1.0625rem;       /* 17px base for comfortable long-form reading */
  line-height: 1.85;          /* roomy leading, also helps Japanese text */
  font-feature-settings: "palt" 1;        /* tighter Japanese punctuation */
  letter-spacing: 0.003em;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Vertical rhythm ---------- */
.article-body > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}
.article-body > *:last-child {
  margin-bottom: 0;
}

/* ---------- Paragraphs ---------- */
.article-body p {
  margin: 0 0 1.35em;
}

/* Lead paragraph: slightly larger, calmer color — sets an editorial tone. */
.article-body > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;            /* slate-700 */
}

/* ---------- Headings ---------- */
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--ab-ink-strong);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 6rem;   /* clears the sticky header on anchor jumps */
}

.article-body h2 {
  margin-top: 2.6em;
  margin-bottom: 0.9em;
  padding-bottom: 0.35em;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.9rem);
  font-weight: 800;
  border-bottom: 1px solid var(--ab-rule);
}

/* Accent tick before each H2 — a quiet brand cue used by premium editorial sites. */
.article-body h2::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  border-radius: 2px;
  background: var(--ab-brand);
  vertical-align: 0.08em;
}

.article-body h3 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.45rem);
}

.article-body h4 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}

.article-body h5,
.article-body h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ab-muted);
}

.article-body h2 + *,
.article-body h3 + *,
.article-body h4 + * {
  margin-top: 0;
}

/* ---------- Inline text ---------- */
.article-body strong,
.article-body b {
  font-weight: 700;
  color: var(--ab-ink-strong);
}
.article-body em,
.article-body i {
  font-style: italic;
}
.article-body del {
  color: var(--ab-muted);
}
.article-body mark {
  background: #fef9c3;       /* amber-100 */
  color: inherit;
  padding: 0.05em 0.2em;
  border-radius: 3px;
}
.article-body small {
  font-size: 0.85em;
  color: var(--ab-muted);
}

/* ---------- Links ---------- */
.article-body a {
  color: var(--ab-brand-dark);
  text-decoration: underline;
  text-decoration-color: rgba(225, 29, 72, 0.35);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-body a:hover {
  color: var(--ab-brand);
  text-decoration-color: currentColor;
}

/* ---------- Lists ---------- */
.article-body ul,
.article-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.5em;
}
.article-body li {
  margin: 0.4em 0;
  padding-left: 0.25em;
}
.article-body li::marker {
  color: var(--ab-brand);
  font-weight: 600;
}
.article-body ul {
  list-style: none;
  padding-left: 1.35em;
}
.article-body ul > li {
  position: relative;
}
/* Custom rose bullet for unordered lists. */
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.72em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--ab-brand);
}
.article-body ol {
  list-style: decimal;
}
/* Nested lists tighten up and lose the heavy accent. */
.article-body li > ul,
.article-body li > ol {
  margin: 0.4em 0 0.4em;
}
.article-body li > ul > li::before {
  background: #94a3b8;       /* slate-400 */
}

/* ---------- Blockquote ---------- */
.article-body blockquote {
  margin: 1.8em 0;
  padding: 0.4em 1.4em;
  border-left: 4px solid var(--ab-brand);
  background: var(--ab-brand-tint);
  border-radius: 0 10px 10px 0;
  color: #334155;            /* slate-700 */
  font-style: italic;
}
.article-body blockquote p {
  margin-bottom: 0.8em;
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}
.article-body blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-size: 0.9em;
  color: var(--ab-muted);
}

/* ---------- Code ---------- */
.article-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--ab-rule-soft);
  color: #be123c;            /* rose-700 */
  padding: 0.15em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--ab-rule);
  word-break: break-word;
}
.article-body pre {
  margin: 1.8em 0;
  padding: 1.15em 1.3em;
  background: #0f172a;       /* slate-900 */
  color: #e2e8f0;            /* slate-200 */
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
.article-body pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

/* ---------- Tables ---------- */
/* Wrapping a table in a scroll container would need markup we don't control, so
   the table itself becomes a horizontally scrollable block on narrow screens. */
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.9em 0;
  overflow-x: auto;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.95rem;
  border: 1px solid var(--ab-rule);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.article-body thead {
  background: var(--ab-surface);
}
.article-body th,
.article-body td {
  padding: 0.7em 1em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ab-rule);
}
.article-body th {
  font-weight: 700;
  color: var(--ab-ink-strong);
  white-space: nowrap;
}
.article-body tbody tr:nth-child(even) {
  background: #fbfcfe;       /* faint zebra striping */
}
.article-body tbody tr:hover {
  background: var(--ab-rule-soft);
}
.article-body tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Media ---------- */
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.9em auto;
  border-radius: 12px;
  border: 1px solid var(--ab-rule);
}
.article-body figure {
  margin: 2em 0;
}
.article-body figure img {
  margin: 0 auto;
}
.article-body figcaption {
  margin-top: 0.7em;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ab-muted);
}

/* ---------- Rules ---------- */
.article-body hr {
  margin: 3em auto;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--ab-rule);
}

/* ---------- Footnotes (Redcarpet) ---------- */
.article-body sup,
.article-body .footnote-ref {
  font-size: 0.72em;
  font-weight: 600;
}
.article-body .footnotes {
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid var(--ab-rule);
  font-size: 0.9rem;
  color: var(--ab-muted);
}
.article-body .footnotes ol {
  padding-left: 1.2em;
}
.article-body .footnotes li {
  margin: 0.5em 0;
}

/* ---------- References variant (secondary, more compact) ---------- */
.article-body--references {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;            /* slate-600 */
}
.article-body--references a {
  word-break: break-all;     /* long source URLs shouldn't overflow */
}

.article-body--references a.legal-cite__source {
  word-break: normal;
}

/* ---------- Legal citation inline + modal ---------- */
.legal-cite {
  display: inline;
  white-space: normal;
}

.legal-cite__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 0.1em;
  padding: 0.15em 0.55em;
  border: 1px solid #fecdd3;       /* rose-200 */
  border-radius: 999px;
  background: #fff1f2;             /* rose-50 */
  color: #be123c;                  /* rose-700 */
  font: inherit;
  font-size: 0.92em;
  line-height: 1.4;
  vertical-align: baseline;
  cursor: pointer;
  text-align: left;
}

.legal-cite__trigger:hover {
  background: #ffe4e6;             /* rose-100 */
  border-color: #fda4af;           /* rose-300 */
}

.legal-cite__label {
  font-weight: 600;
}

.legal-cite__badge {
  flex-shrink: 0;
}

.legal-cite__type {
  flex-shrink: 0;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9f1239;                  /* rose-800 */
}

.legal-cite__source {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75em;
  color: #64748b;                  /* slate-500 */
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  vertical-align: baseline;
}

.legal-cite__source:hover {
  color: #be123c;
}

.article-body--references .legal-cite {
  display: block;
  margin: 0.5em 0;
}

.legal-cite-modal {
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #0f172a;
}

.legal-cite-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.legal-cite-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.legal-cite-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.legal-cite-modal__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}

.legal-cite-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.legal-cite-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.legal-cite-modal__meta {
  padding: 0.65rem 1.25rem 0;
  font-size: 0.82rem;
  color: #64748b;
}

.legal-cite-modal__loading,
.legal-cite-modal__error {
  margin: 0;
  padding: 1.25rem;
  font-size: 0.95rem;
  color: #475569;
}

.legal-cite-modal__error {
  color: #be123c;
}

.legal-cite-modal__body {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #334155;
}

.legal-cite-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.legal-cite-modal__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #be123c;
  text-decoration: underline;
}

.legal-cite-modal__link--secondary {
  color: #475569;
}

/* ---------- Compact variant (e.g. inside the key-takeaways box) ---------- */
.article-body--compact {
  font-size: 1rem;
  line-height: 1.7;
}
.article-body--compact > * {
  margin-bottom: 0.6em;
}
.article-body--compact > p:first-of-type {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.article-body--compact ul {
  padding-left: 1.2em;
}
.article-body--compact li {
  margin: 0.25em 0;
}

/* ---------- Lead paragraph after each H2 (item 6: scannable sections) ---------- */
.article-body h2 + p {
  font-size: 1.1rem;
  color: #334155;            /* slate-700 */
}

/* =====================================================================
 * In-body callouts and collapsible details (rendered from :::blocks)
 * ===================================================================== */
.callout {
  margin: 1.8em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--ab-rule);
  border-radius: 0 10px 10px 0;
  background: var(--ab-surface);
}
.callout__title {
  margin: 0 0 0.4em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.callout__body > *:last-child {
  margin-bottom: 0;
}
.callout__body p {
  margin: 0 0 0.6em;
}
.callout--note      { border-left-color: #0ea5e9; background: #f0f9ff; }  /* sky   */
.callout--note .callout__title { color: #0369a1; }
.callout--tip       { border-left-color: #10b981; background: #ecfdf5; }  /* emerald */
.callout--tip .callout__title { color: #047857; }
.callout--warning   { border-left-color: #f59e0b; background: #fffbeb; }  /* amber */
.callout--warning .callout__title { color: #b45309; }
.callout--important { border-left-color: #e11d48; background: #fff1f2; }  /* rose  */
.callout--important .callout__title { color: #be123c; }
.callout--example   { border-left-color: #8b5cf6; background: #f5f3ff; }  /* violet */
.callout--example .callout__title { color: #6d28d9; }

.article-details {
  margin: 1.8em 0;
  border: 1px solid var(--ab-rule);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.article-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85em 1.1em;
  font-weight: 600;
  color: var(--ab-ink-strong);
  background: var(--ab-surface);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.article-details > summary::-webkit-details-marker { display: none; }
.article-details > summary::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid var(--ab-brand);
  border-bottom: 2px solid var(--ab-brand);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.article-details[open] > summary::before {
  transform: rotate(45deg);
}
.article-details__body {
  padding: 0.4em 1.1em 1.1em;
}
.article-details__body > *:last-child { margin-bottom: 0; }

/* =====================================================================
 * Editorial chrome around the article (lead, answer box, stats, TOC, progress)
 * ===================================================================== */

/* Reading progress bar (item 11) — pure CSS scroll-driven animation.
   Degrades to invisible (scaleX 0) where animation-timeline is unsupported. */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #f43f5e, #e11d48);
}
@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: ab-reading-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes ab-reading-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Contained hero banner — top_image used as an editorial backdrop with the
   breadcrumb, title and meta overlaid (news-site style). Sized to the content
   container (not full-bleed) since source images aren't ultra-wide. */
.article-hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: clamp(280px, 34vw, 440px);
  border-radius: 0.875rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f172a;   /* slate-900 fallback while image loads */
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
/* Dark gradient anchored at the bottom so overlaid text stays legible over any
   photo, fading to near-transparent toward the top. */
.article-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.55) 30%,
      rgba(15, 23, 42, 0.15) 62%,
      rgba(15, 23, 42, 0.05) 100%
    );
}
.article-hero__inner {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 100%;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  color: #fff;
}
.article-hero__inner nav {
  margin-bottom: 0.75rem;
}
.article-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* Lead / standfirst (item 9) */
.article-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #475569;            /* slate-600 */
  font-weight: 400;
}

/* Key takeaways / answer box (item 1) */
.answer-box {
  border: 1px solid #ffe4e6;          /* rose-100 */
  background: linear-gradient(180deg, #fff5f6 0%, #ffffff 70%);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.answer-box__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #be123c;            /* rose-700 */
}

/* Stat cards (item 5) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.stat-card {
  border: 1px solid var(--ab-rule);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.stat-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #be123c;            /* rose-700 */
}
.stat-card__label {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #64748b;            /* slate-500 */
}
.stat-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #94a3b8;            /* slate-400 */
  text-decoration: none;
}
.stat-card__source:hover {
  color: #be123c;            /* rose-700 */
  text-decoration: underline;
}

/* Catalog pages: cap stat cards at 3 per row (5 items → 3+2). */
.stat-cards--catalog {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .stat-cards--catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Step-by-step list: numbering comes from the rendered badge (.article-steps__num),
   so suppress the browser's own <ol> decimal markers — otherwise each step
   renders as "1. (1)" (double numbering). */
.article-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile collapsible TOC (item 3) */
.toc-mobile {
  border: 1px solid var(--ab-rule);
  border-radius: 12px;
  background: var(--ab-surface);
  padding: 0.4rem 0.9rem;
}
.toc-mobile > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;            /* slate-700 */
}
.toc-mobile > summary::-webkit-details-marker { display: none; }

/* Desktop TOC (left column): pinned in the viewport; list scrolls on its own. */
@media (min-width: 1024px) {
  .article-toc {
    position: sticky;
    top: 6rem; /* below the sticky site header */
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 7rem);
  }

  .article-toc nav {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
  }

  .article-toc__heading {
    flex: 0 0 auto;
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
  }

  .article-toc .toc-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 9.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .article-toc .toc-list::-webkit-scrollbar {
    width: 4px;
  }

  .article-toc .toc-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
  }
}

/* =====================================================================
 * Table of contents (.toc-list) — the sidebar/box nav built from headings.
 * ===================================================================== */
.toc-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-list > ul {
  display: grid;
  gap: 0.15rem;
}
.toc-list li {
  margin: 0;
}
.toc-list a {
  display: block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: #475569;            /* slate-600 */
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.toc-list a:hover {
  color: #be123c;            /* rose-700 */
  background: #fff1f2;       /* rose-50 */
  border-left-color: #e11d48;
}
.toc-list a.is-active,
.toc-list a[aria-current="true"] {
  color: #be123c;            /* rose-700 */
  background: #fff1f2;       /* rose-50 */
  border-left-color: #e11d48;
  font-weight: 600;
}
/* Catalog region map container (Leaflet tiles styled via leaflet.css). */
.region-map {
  margin-top: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
}

.region-map__frame {
  height: 16rem;
  width: 100%;
}

/* Tailwind preflight sets img { max-width: 100% }, which breaks Leaflet tiles. */
.region-map__frame.leaflet-container img.leaflet-tile,
.region-map__frame .leaflet-tile-pane img {
  max-width: none !important;
}

.region-map__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.region-map__caption a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.region-map__caption a:hover {
  color: #be123c;
}

.observatory-map .region-map__caption a:hover {
  color: #0f766e;
}

@media (min-width: 640px) {
  .region-map__frame {
    height: 18rem;
  }
}

/* Founder-fit area scores (catalog region pages) */
.area-fit {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.area-fit__lead {
  margin: 0.35rem 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.area-fit__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.area-fit__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.area-fit__label-group {
  flex: 0 0 11.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.area-fit__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.area-fit__score {
  font-size: 0.75rem;
  font-weight: 700;
  color: #be123c;
  letter-spacing: 0.02em;
}

.area-fit__bar {
  flex: 1;
  height: 0.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.area-fit__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb7185, #e11d48);
}

.area-fit__hint {
  margin: 0.25rem 0 0 0;
  padding-left: 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.area-fit__evidence {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.area-fit__evidence-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.area-fit__evidence-text {
  color: #475569;
  flex: 1 1 12rem;
}

.area-fit__evidence-source {
  flex: 0 0 auto;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
}

.area-fit__note {
  margin: 1rem 0 0;
  font-size: 0.6875rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 639px) {
  .area-fit__row {
    flex-direction: column;
    align-items: stretch;
  }

  .area-fit__label-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex: 1 1 auto;
  }
}

/* Catalog hub index pages */
.catalog-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.catalog-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.catalog-hub-card:hover {
  border-color: #fecdd3;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.catalog-hub-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.catalog-hub-card__meta {
  font-size: 0.75rem;
  color: #64748b;
}

.catalog-hub-prefecture__summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.catalog-hub-prefecture__summary::-webkit-details-marker {
  display: none;
}

.catalog-hub-prefecture__count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.catalog-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.catalog-hub-list__link,
.catalog-related-list__link {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.875rem;
}

.catalog-hub-list__link:hover,
.catalog-related-list__link:hover {
  color: #4338ca;
}

.catalog-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/leaflet/images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/leaflet/images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/leaflet/images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
/*
 * Popular-article ranking UI: home carousel + CMS left sidebar.
 */

/* ---------- Home: infinite horizontal carousel ---------- */
.ranking-carousel__fade {
  position: relative;
}

.ranking-carousel__fade::before,
.ranking-carousel__fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 1;
  pointer-events: none;
}

.ranking-carousel__fade::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.ranking-carousel__fade::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.ranking-carousel__viewport {
  overflow: hidden;
}

.ranking-carousel__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.25rem 1rem 1rem;
  animation: ranking-scroll 50s linear infinite;
}

.ranking-carousel__track:hover {
  animation-play-state: paused;
}

.ranking-carousel.is-paused .ranking-carousel__track {
  animation-play-state: paused;
}

@keyframes ranking-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ranking-carousel__card {
  flex: 0 0 18rem;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ranking-carousel__card:hover {
  border-color: #fecdd3;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Touch devices: manual horizontal scroll instead of auto-animation */
@media (max-width: 767px), (hover: none) {
  .ranking-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ranking-carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  .ranking-carousel__track {
    animation: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ranking-carousel__card {
    scroll-snap-align: start;
  }
}

/* ---------- CMS: left navigation sidebar ---------- */
.article-sidebar__heading {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.article-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-sidebar__list > li + li {
  margin-top: 0.5rem;
}

.article-sidebar__link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-sidebar__link:hover {
  color: #be123c;
}

.article-sidebar__rank {
  flex: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e11d48;
  text-align: center;
}

.article-sidebar__title {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.observatory-sidebar .article-sidebar__link:hover {
  color: #0f766e;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
