/* Wide desktop layer (loaded last by _Layout). Everything sits behind min-width queries from 1440px,
   so phones, tablets and ordinary laptops keep the existing breakpoints untouched. Selectors start
   with .site-main where page stylesheets (news.css) are linked after this file. */

/* Quick-access column: rendered on News and footer/CMS pages, shown only from 1600px. */
.quick-access {
  display: none;
}

.quick-access__panel {
  background: rgba(10, 19, 32, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 18px 20px;
}

.quick-access__panel--play {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    rgba(10, 19, 32, 0.86);
  border-color: rgba(56, 189, 248, 0.28);
}

.quick-access__eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.quick-access__title {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.quick-access__heading {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.quick-access__text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.quick-access__cta {
  justify-content: center;
  width: 100%;
}

.quick-access__news,
.quick-access__links {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-access__news a,
.quick-access__links a {
  border-radius: 6px;
  color: var(--text);
  display: block;
  padding: 7px 8px;
  text-decoration: none;
}

.quick-access__news a {
  font-weight: 600;
  line-height: 1.35;
  padding-bottom: 2px;
}

.quick-access__news time {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  padding: 0 8px 6px;
}

.quick-access__news a:hover,
.quick-access__links a:hover,
.quick-access__more:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
}

.quick-access a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quick-access__more {
  border-radius: 6px;
  color: var(--accent);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 6px 8px;
  text-decoration: none;
}

/* ── From 1440px: wider content grid ─────────────────────────────────── */
@media (min-width: 1440px) {
  .landing,
  .inner-page,
  .footer-inner,
  .admin-page {
    max-width: 1320px;
  }

  .footer-page {
    max-width: 1360px;
  }

  .admin-page--wide {
    max-width: 1520px;
  }

  /* The CMS command center already had 1480px; the .admin-page rule above must not shrink it. */
  .cms-command {
    max-width: 1480px;
  }

  /* Admin start page: three tool cards per row instead of two. */
  .admin-launcher__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Older news posts side by side; the newest stays full width above them. */
  .site-main .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── From 1600px: side columns ────────────────────────────────────────── */
@media (min-width: 1600px) {
  .quick-access {
    align-content: start;
    display: grid;
    gap: 16px;
    position: sticky;
    top: 88px;
  }

  .inner-page--rail {
    max-width: 1480px;
  }

  .page-rail {
    align-items: start;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  /* Footer/CMS pages: quick access on the left, policy index on the right, document in the middle. */
  .footer-page {
    max-width: 1560px;
  }

  .footer-page__layout {
    grid-template-columns: 260px minmax(0, 1fr) minmax(248px, 300px);
  }

  .footer-page__layout > .quick-access {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ── From 1800px: full-HD and larger ──────────────────────────────────── */
@media (min-width: 1800px) {
  .landing,
  .inner-page,
  .footer-inner,
  .admin-page {
    max-width: 1480px;
  }

  .inner-page--rail {
    max-width: 1600px;
  }

  .footer-page {
    max-width: 1680px;
  }

  .admin-page--wide,
  .cms-command {
    max-width: 1680px;
  }

  .admin-launcher__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
