:root {
  --ink: #15304d;
  --muted: #5f748f;
  --paper: #f5fbff;
  --surface: #ffffff;
  --line: #d7e7f3;
  --brand-red: #ff5f6f;
  --brand-yellow: #ffcc4d;
  --brand-teal: #22c7b8;
  --brand-blue: #3b82f6;
  --brand-violet: #7c7cf2;
  --brand-lime: #90db4f;
  --shadow: 0 18px 48px rgba(21, 48, 77, .10);
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(34, 199, 184, .12), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 204, 77, .15), transparent 30%),
    linear-gradient(180deg, #f7fcff 0%, #f4fbff 48%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--brand-yellow);
  color: var(--ink);
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(247, 252, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 74px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 1.25rem;
}

.brand-bolt {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-blue));
  color: #fff;
  box-shadow: 6px 6px 0 rgba(21, 48, 77, .15);
}

.nav-link {
  font-weight: 700;
  color: var(--ink);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.breaking-strip {
  background: var(--ink);
  color: #fff;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.breaking-label {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-yellow));
  color: #fff;
  font-weight: 900;
  padding: .35rem .7rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: .78rem;
}

.ticker {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.ticker-wrap {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
}

.ticker-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: .75rem;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-teal));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.ticker-item a {
  color: inherit;
}

.ticker-item a:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-section {
  min-height: 680px;
  display: flex;
  align-items: end;
  padding: 7rem 0 4rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(21, 48, 77, .86), rgba(21, 48, 77, .32)),
    url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.hero-section h1 {
  max-width: 820px;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: .96;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-section .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.18rem;
}

.hero-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-card-body {
  padding: 1.25rem;
}

.hero-card h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.08;
  margin: .35rem 0 .65rem;
}

.hero-placeholder {
  height: 340px;
  border-radius: 8px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-slide {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-slider-nav {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 48, 77, .72);
  color: #fff;
  z-index: 4;
}

.hero-slider-nav.prev {
  left: .75rem;
}

.hero-slider-nav.next {
  right: .75rem;
}

.hero-slider-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  padding: .9rem 1rem 1.1rem;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #bfd9ea;
}

.hero-slider-dot.active {
  background: var(--brand-blue);
}

.section-pad {
  padding: 4.5rem 0;
}

.listing-hero {
  padding: 5rem 0 3.5rem;
  background:
    linear-gradient(90deg, rgba(21, 48, 77, .9), rgba(21, 48, 77, .42)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1800&q=82") center/cover;
  color: #fff;
}

.listing-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.listing-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}

.listing-featured-card {
  color: var(--ink);
}

.listing-featured-card h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.listing-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.listing-search-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.listing-search {
  width: min(100%, 360px);
}

.per-page-form {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.per-page-form .form-select {
  width: 110px;
}

.listing-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.listing-pagination .pagination {
  flex-wrap: wrap;
  gap: .35rem;
}

.listing-pagination .page-link {
  border-color: var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.listing-pagination .active .page-link {
  background: var(--ink);
  border-color: var(--ink);
}

.section-heading,
.library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.topic-band h2,
.library-toolbar h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.search-box {
  position: relative;
  width: min(100%, 330px);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box .form-control {
  padding-left: 2.7rem;
  min-height: 48px;
  border-radius: 8px;
  border-color: var(--line);
}

.category-pills {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding-bottom: .9rem;
  margin-bottom: .75rem;
}

.category-pills .btn {
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 800;
}

.story-card {
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-card-body {
  padding: 1rem;
}

.story-card h3 {
  margin: .45rem 0 .6rem;
  font-size: 1.16rem;
  line-height: 1.18;
  font-weight: 900;
}

.story-card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.share-row span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.share-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.share-row a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: #fff;
}

.card-share {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.card-share a {
  width: 34px;
  height: 34px;
  font-size: .95rem;
}

.badge-topic {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: .3rem .65rem;
  background: #e4f6ff;
  color: #165e8f;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card .badge-topic {
  background: #e8fbf7;
  color: #0b7a73;
}

.topic-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, #15304d, #1e5a8a);
  color: #fff;
}

.topic-band p {
  color: rgba(255, 255, 255, .75);
}

.metric-tile {
  min-height: 150px;
  padding: 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe07a, #ffb84d);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.metric-tile strong {
  display: block;
  font-size: 3rem;
  line-height: .9;
  font-weight: 950;
}

.metric-tile span {
  font-weight: 900;
  text-transform: uppercase;
}

.tile-red {
  background: linear-gradient(135deg, #ff7484, #ff5f6f);
  color: #fff;
}

.tile-teal {
  background: linear-gradient(135deg, #23cbbd, #15a7d2);
  color: #fff;
}

.ad-band {
  height: 88px;
  max-height: 88px;
  padding: .75rem 0;
  background: #eef8ff;
  overflow: hidden;
}

.ad-top {
  height: 72px;
  max-height: 72px;
  padding: .55rem 0;
  background: #eaf9ff;
}

.ad-footer {
  background: #edf7ef;
}

.ad-in-feed,
.ad-section-break,
.ad-after-article {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ad-section-break {
  height: 98px;
  max-height: 98px;
}

.ad-inline {
  height: 72px;
  max-height: 72px;
  margin: 1rem 0;
  padding: 0;
  background: transparent;
}

.ad-inline .container {
  max-width: 100%;
  padding: 0;
}

.ad-frame {
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  border: 1px dashed #b9d7e8;
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
}

.ad-top .ad-frame,
.ad-inline .ad-frame {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
}

.ad-section-break .ad-frame {
  height: 78px;
  min-height: 78px;
  max-height: 78px;
}

.ad-frame span {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-shell {
  width: 100%;
}

.ad-slot {
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.ad-slot .adsbygoogle {
  width: 100%;
  min-width: 250px;
}

.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: linear-gradient(180deg, #15304d, #0f2237);
  color: rgba(255, 255, 255, .78);
}

.site-footer h3 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  font-weight: 900;
}

.site-footer a:not(.brand-mark) {
  display: block;
  margin: .45rem 0;
  color: rgba(255, 255, 255, .76);
}

.footer-brand,
.footer-brand:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: .75rem;
}

.social-links a {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .58);
}

.go-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  color: #fff;
  box-shadow: 0 14px 30px rgba(21, 48, 77, .24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.go-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.go-top-btn:hover {
  filter: brightness(1.05);
}

.go-top-btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .28);
  outline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1045;
  display: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 36px rgba(21, 48, 77, .12);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-copy p {
  margin: 0;
}

.cookie-title {
  font-weight: 950;
  margin-bottom: .25rem !important;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.cookie-modal {
  border-radius: 8px;
}

.cookie-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.cookie-switch .form-check-input {
  float: none;
  margin: 0;
  flex: 0 0 auto;
}

.cookie-switch .form-check-label {
  flex: 1 1 auto;
  margin: 0;
  padding-right: 1rem;
}

.cookie-note {
  margin-top: .85rem;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 767.98px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

.article-hero {
  padding: 4rem 0 0;
  background: var(--paper);
}

.article-hero h1 {
  max-width: 980px;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.article-share a {
  width: 44px;
  height: 44px;
}

.article-print-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.article-print-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  border-color: transparent;
  color: #fff;
}

.article-cover {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  margin-top: 2rem;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
  font-size: 1.12rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin-top: 1.5rem;
  margin-bottom: .85rem;
  line-height: 1.2;
}

.article-body a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--brand-blue);
  background: #f5fbff;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .65rem;
  color: var(--muted);
  font-size: .85rem;
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(34, 199, 184, .12), transparent 32%),
    linear-gradient(180deg, #f7fcff 0%, #eef8ff 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  background: linear-gradient(180deg, #15304d, #1b4367);
  color: #fff;
}

.admin-nav {
  display: grid;
  gap: .5rem;
  margin-top: 2rem;
}

.admin-group {
  border-radius: 8px;
}

.admin-group > summary {
  list-style: none;
}

.admin-group > summary::-webkit-details-marker {
  display: none;
}

.admin-group-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
  cursor: pointer;
}

.admin-group-summary .bi:first-child {
  font-size: 1rem;
}

.admin-group-summary.active,
.admin-group-summary:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.admin-group-chevron {
  margin-left: auto;
  font-size: .85rem;
  transition: transform .2s ease;
}

.admin-group[open] .admin-group-chevron {
  transform: rotate(180deg);
}

.admin-submenu {
  display: grid;
  gap: .35rem;
  margin: .25rem 0 .2rem 1.25rem;
  padding-left: .8rem;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.admin-submenu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  font-weight: 700;
}

.admin-submenu a.active,
.admin-submenu a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.admin-nav > a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
}

.admin-nav > a.active,
.admin-nav > a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.dashboard-chart {
  min-height: 320px;
}

.mini-list {
  display: grid;
  gap: .85rem;
}

.mini-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.mini-list-item strong {
  display: block;
  line-height: 1.2;
}

.mini-list-item span {
  color: var(--muted);
  font-size: .88rem;
}

.mini-pill {
  flex: 0 0 auto;
  align-self: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #eef8ff;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-spark {
  display: grid;
  gap: 1rem;
}

.spark-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.spark-meta span {
  color: var(--muted);
  font-weight: 700;
}

.spark-meta strong {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.spark-bar {
  height: 14px;
  border-radius: 999px;
  background: #e6f1f8;
  overflow: hidden;
}

.spark-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-teal), var(--brand-yellow));
}

.admin-main {
  padding: 2rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-topbar h1 {
  margin: 0;
  font-weight: 950;
  line-height: 1;
}

.stat-card,
.editor-panel,
.library-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(18, 19, 26, .06);
}

.stat-card {
  min-height: 130px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 6px solid var(--brand-yellow);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  font-size: 2.8rem;
  line-height: .9;
  font-weight: 950;
}

.stat-red {
  border-top-color: var(--brand-red);
}

.stat-teal {
  border-top-color: var(--brand-teal);
}

.stat-violet {
  border-top-color: var(--brand-violet);
}

.editor-panel,
.library-panel {
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.form-label {
  font-weight: 800;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: #ddd5c8;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fcff;
}

.editor-toolbar .btn {
  min-width: 40px;
  padding-inline: .7rem;
}

.editor-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 .2rem;
}

.rich-editor {
  min-height: 320px;
  padding: 1rem 1.05rem;
  border: 1px solid #ddd5c8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.7;
  overflow: auto;
}

.rich-editor:focus {
  outline: 2px solid rgba(59, 130, 246, .25);
  border-color: var(--brand-blue);
}

.editor-hint {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.featured-switch {
  width: 100%;
  padding: .85rem 1rem .85rem 3.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-type-lock {
  display: flex;
  align-items: center;
  background: #edf8ff;
  color: var(--muted);
  font-weight: 900;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table .btn-group form {
  display: inline-flex;
}

.admin-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .08em;
}

.table-title {
  font-weight: 900;
}

.table-meta {
  color: var(--muted);
  font-size: .88rem;
}

.status-badge {
  border-radius: 999px;
  padding: .3rem .6rem;
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
}

.status-published {
  background: #e3fbf8;
  color: #0c8278;
}

.status-draft {
  background: #fff2cc;
  color: #9a6700;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(21, 48, 77, .84), rgba(34, 199, 184, .42)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-panel {
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: 8px;
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin-bottom: 1rem;
  font-weight: 950;
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .site-header,
  .breaking-strip,
  .site-footer,
  .ad-band,
  .ad-top,
  .ad-footer,
  .ad-in-feed,
  .ad-section-break,
  .ad-after-article,
  .go-top-btn,
  .cookie-banner,
  .section-pad,
  .article-share,
  .article-print-btn,
  .share-row,
  .social-links {
    display: none !important;
  }

  .article-hero {
    padding: 0 !important;
    background: #fff !important;
  }

  .article-hero h1,
  .article-body,
  .meta-row,
  .badge-topic {
    color: #000 !important;
  }

  .article-cover {
    max-height: 360px;
    margin-top: 1rem;
  }

  .article-body {
    max-width: none;
    padding: 1rem 0 0;
    font-size: 11pt;
  }

  .article-body a {
    color: #000 !important;
    text-decoration: none;
  }

  .article-body::after {
    content: "";
    display: block;
    height: 0;
    page-break-after: auto;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 5rem;
  }

  .section-heading,
  .library-toolbar,
  .listing-toolbar,
  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .per-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .per-page-form .form-select {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .listing-search-row {
    justify-content: stretch;
  }

  .listing-search {
    width: 100%;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .hero-slider-nav {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 2.55rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .admin-main {
    padding: 1rem;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }
}
