:root {
  --editorial-navy: #061a33;
  --editorial-navy-2: #0c2549;
  --editorial-ink: #0e1e37;
  --editorial-copy: #3d4f69;
  --editorial-muted: #607189;
  --editorial-blue: #146af5;
  --editorial-blue-dark: #0957d8;
  --editorial-blue-soft: #eef5ff;
  --editorial-blue-wash: #f6f9ff;
  --editorial-line: #dbe5f2;
  --editorial-shell: 1180px;
  --editorial-radius: 10px;
}

body.public-shell:has(.editorial-page) {
  background: #fff;
}

body.public-shell:has(.editorial-page) #main-content {
  max-width: none;
  padding: 0;
  width: 100%;
}

body.public-shell:has(.editorial-page) #main-content > .messages {
  margin-inline: auto;
  width: min(calc(100% - 96px), var(--editorial-shell));
}

.editorial-page {
  background: #fff;
  color: var(--editorial-copy);
  overflow: clip;
}

.editorial-page a {
  text-underline-offset: 0.18em;
}

.editorial-shell {
  margin-inline: auto;
  width: min(calc(100% - 96px), var(--editorial-shell));
}

.editorial-breadcrumb {
  align-items: center;
  color: var(--editorial-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 0.55rem;
  line-height: 1.5;
  margin: 0;
  padding-block: 1.15rem;
}

.editorial-breadcrumb a {
  color: var(--editorial-blue-dark);
  font-weight: 750;
}

.editorial-breadcrumb [aria-current="page"] {
  min-width: 0;
}

.editorial-hero,
.editorial-reading-hero,
.editorial-profile-hero {
  background: #fff;
  border-bottom: 1px solid var(--editorial-line);
}

.editorial-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.editorial-reading-hero .editorial-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  padding-block: clamp(2.4rem, 5vw, 4.8rem);
}

.editorial-kicker {
  color: var(--editorial-blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.editorial-title {
  color: var(--editorial-ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.65rem, 5vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  max-width: 19ch;
  text-wrap: balance;
}

.editorial-reading-hero .editorial-title {
  font-size: clamp(2.45rem, 4.35vw, 3.75rem);
}

.editorial-lead {
  color: var(--editorial-copy);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.72;
  margin: 1.2rem 0 0;
  max-width: 64ch;
}

.editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.editorial-actions .btn {
  min-height: 48px;
}

.editorial-hero-media,
.editorial-featured {
  background: var(--editorial-navy);
  border-radius: var(--editorial-radius);
  margin: 0;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.editorial-hero-media img,
.editorial-featured img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.editorial-featured::after {
  background: linear-gradient(180deg, rgba(6, 26, 51, 0.12) 25%, rgba(6, 26, 51, 0.94) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.editorial-featured-content {
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 1.5rem;
  position: absolute;
  right: 0;
  z-index: 1;
}

.editorial-featured-content span {
  color: #c7d8f1;
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.editorial-featured-content strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.editorial-featured-link {
  color: #fff !important;
}

.editorial-featured-link:focus-visible {
  border-radius: var(--editorial-radius);
  outline: 3px solid rgba(20, 106, 245, 0.48);
  outline-offset: 4px;
}

.editorial-hero-points,
.editorial-trust-list {
  list-style: none;
  margin: 1.55rem 0 0;
  padding: 0;
}

.editorial-hero-points {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-hero-points li,
.editorial-trust-list li {
  align-items: center;
  color: var(--editorial-copy);
  display: flex;
  gap: 0.65rem;
}

.editorial-hero-points i,
.editorial-trust-list i {
  color: var(--editorial-blue);
  flex: 0 0 auto;
  font-size: 1.25rem;
}

.editorial-meta {
  align-items: center;
  color: var(--editorial-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 0.55rem 1.1rem;
  margin-top: 1.35rem;
}

.editorial-meta span {
  align-items: center;
  display: inline-flex;
  gap: 0.38rem;
}

.editorial-meta i {
  color: var(--editorial-blue);
  font-size: 1.05rem;
}

.editorial-meta a {
  font-weight: 800;
}

.editorial-review-copy {
  color: var(--editorial-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  max-width: 66ch;
}

.editorial-review-copy strong {
  color: var(--editorial-ink);
}

.editorial-learning {
  background: var(--editorial-blue-wash);
  border-bottom: 1px solid var(--editorial-line);
}

.editorial-learning-inner {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  padding-block: 1.6rem;
}

.editorial-learning-heading {
  color: var(--editorial-ink);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.editorial-learning-heading span {
  color: var(--editorial-blue-dark);
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.editorial-learning-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.editorial-learning-list a,
.editorial-learning-list span {
  align-items: flex-start;
  color: var(--editorial-ink);
  display: flex;
  font-size: 0.84rem;
  font-weight: 750;
  gap: 0.6rem;
  line-height: 1.45;
  text-decoration: none;
}

.editorial-learning-number {
  align-items: center;
  background: var(--editorial-blue);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.editorial-collection-main,
.editorial-related-section {
  background: var(--editorial-blue-wash);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.editorial-sequence-nav {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.editorial-sequence-nav a {
  background: #fff;
  border: 1px solid var(--editorial-line);
  color: var(--editorial-ink);
  display: grid;
  gap: 0.35rem;
  min-height: 112px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
}

.editorial-sequence-nav a:last-child {
  text-align: right;
}

.editorial-sequence-nav span {
  color: var(--editorial-blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-sequence-nav strong {
  font-family: "Lora", Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

.editorial-sequence-nav a:hover {
  border-color: var(--editorial-blue);
  color: var(--editorial-blue-dark);
}

.editorial-section-heading {
  margin-bottom: 1.8rem;
  max-width: 720px;
}

.editorial-section-heading span {
  color: var(--editorial-blue-dark);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.editorial-section-heading h2 {
  color: var(--editorial-ink);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
}

.editorial-section-heading p {
  color: var(--editorial-muted);
  line-height: 1.65;
  margin: 0.65rem 0 0;
}

.editorial-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.7rem;
}

.editorial-filter-bar .blog-chip {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding-inline: 1rem;
}

.editorial-filter-form {
  background: #fff;
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.7rem;
  padding: 1rem;
}

.editorial-filter-form label {
  color: var(--editorial-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.editorial-filter-controls {
  display: flex;
  gap: 0.65rem;
}

.editorial-filter-controls select {
  min-height: 46px;
  min-width: 260px;
}

.public-shell .editorial-card-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-card {
  background: #fff;
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 0 !important;
  position: relative;
  transition: border-color 180ms ease, transform 180ms ease;
}

.editorial-card:hover,
.editorial-card:focus-within {
  border-color: rgba(20, 106, 245, 0.5);
  transform: translateY(-3px);
}

.editorial-card-media,
.editorial-card-fallback {
  aspect-ratio: 16 / 9;
  background: var(--editorial-blue-soft);
  margin: 0;
  overflow: hidden;
}

.editorial-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
  width: 100%;
}

.editorial-card:hover .editorial-card-media img {
  transform: scale(1.025);
}

.editorial-card-fallback {
  align-items: center;
  color: var(--editorial-blue);
  display: flex;
  font-size: 3rem;
  justify-content: center;
}

.editorial-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.3rem;
}

.public-shell .editorial-card > .editorial-card-body {
  margin: 0 !important;
}

.editorial-card-meta {
  color: var(--editorial-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.editorial-card h3 {
  color: var(--editorial-ink);
  display: -webkit-box;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.editorial-card-copy {
  color: var(--editorial-muted);
  display: -webkit-box;
  font-size: 0.86rem;
  line-height: 1.62;
  margin: 0.75rem 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.editorial-card-cta {
  align-items: center;
  color: var(--editorial-blue-dark);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  text-decoration: none;
}

.editorial-card-cta::after {
  content: "→";
}

.editorial-card-cta:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(20, 106, 245, 0.3);
  outline-offset: 4px;
}

.editorial-pagination {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.editorial-reading-main {
  background: #fff;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.editorial-reading-grid {
  align-items: start;
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 760px) minmax(250px, 290px);
  justify-content: space-between;
}

.editorial-reading-grid.is-single-column {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.editorial-prose {
  color: var(--editorial-copy);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.82;
  min-width: 0;
}

.editorial-prose > :first-child {
  margin-top: 0;
}

.editorial-prose > * {
  max-width: 68ch;
}

.editorial-prose h2,
.editorial-prose h3,
.editorial-prose h4 {
  color: var(--editorial-ink);
  font-family: "Manrope", system-ui, sans-serif;
  scroll-margin-top: 96px;
  text-wrap: balance;
}

.editorial-prose h2 {
  border-top: 1px solid var(--editorial-line);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 3.25rem 0 1rem;
  padding-top: 2rem;
}

.editorial-prose h3 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 2.2rem 0 0.75rem;
}

.editorial-prose p,
.editorial-prose ul,
.editorial-prose ol {
  margin-block: 1rem;
}

.editorial-prose li + li {
  margin-top: 0.42rem;
}

.editorial-prose a {
  font-weight: 700;
}

.editorial-prose blockquote {
  background: var(--editorial-blue-soft);
  border: 0;
  border-left: 4px solid var(--editorial-blue);
  border-radius: 0 var(--editorial-radius) var(--editorial-radius) 0;
  color: var(--editorial-ink);
  margin: 1.75rem 0;
  padding: 1.15rem 1.3rem;
}

.editorial-prose img {
  border-radius: var(--editorial-radius);
  display: block;
  height: auto;
  margin-block: 1.8rem;
  max-width: 100%;
}

.editorial-prose table {
  border-collapse: collapse;
  display: block;
  margin-block: 1.8rem;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

.editorial-prose th,
.editorial-prose td {
  border: 1px solid var(--editorial-line);
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.editorial-prose th {
  background: var(--editorial-blue-soft);
  color: var(--editorial-ink);
}

.editorial-sidebar {
  min-width: 0;
  position: sticky;
  top: 84px;
}

.editorial-outline {
  background: var(--editorial-blue-wash);
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  padding: 1rem;
}

.editorial-outline summary {
  color: var(--editorial-ink);
  cursor: pointer;
  display: none;
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
}

.editorial-outline summary::-webkit-details-marker {
  display: none;
}

.editorial-outline-title {
  color: var(--editorial-ink);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
}

.editorial-outline nav {
  display: grid;
  gap: 0.15rem;
}

.editorial-outline a {
  border-left: 2px solid transparent;
  color: var(--editorial-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.48rem 0.5rem 0.48rem 0.7rem;
  text-decoration: none;
}

.editorial-outline a[data-outline-level="3"] {
  padding-left: 1.35rem;
}

.editorial-outline a:hover,
.editorial-outline a[aria-current="location"] {
  border-left-color: var(--editorial-blue);
  color: var(--editorial-blue-dark);
}

.editorial-outline a[aria-current="location"] {
  background: #fff;
  font-weight: 800;
}

.editorial-sidebar-note {
  color: var(--editorial-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0.9rem 0 0;
  padding-inline: 0.25rem;
}

.editorial-cta-section {
  background: #fff;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.editorial-cta {
  align-items: center;
  background: var(--editorial-navy);
  border-radius: var(--editorial-radius);
  color: #fff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(1.6rem, 4vw, 2.5rem);
}

.editorial-cta h2,
.editorial-cta h3 {
  color: #fff;
  margin: 0;
}

.editorial-cta p {
  color: #c7d8ec;
  line-height: 1.65;
  margin: 0.55rem 0 0;
  max-width: 68ch;
}

.editorial-cta .editorial-actions {
  margin: 0;
}

.editorial-facets {
  border-top: 1px solid var(--editorial-line);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.editorial-facets h2 {
  color: var(--editorial-ink);
  font-size: 1rem;
  margin: 0 0 0.8rem;
}

.editorial-empty {
  background: #fff;
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  padding: 1.4rem;
}

.editorial-preview {
  padding-top: 1.5rem;
}

.editorial-preview .notice {
  margin: 0;
}

.editorial-profile-hero .editorial-hero-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.62fr);
}

.editorial-profile-card {
  background: var(--editorial-blue-wash);
  border: 1px solid var(--editorial-line);
  border-radius: var(--editorial-radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.editorial-profile-card h2 {
  color: var(--editorial-ink);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.editorial-profile-grid {
  background: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.editorial-profile-section {
  border-top: 1px solid var(--editorial-line);
  padding: 2rem clamp(1rem, 4vw, 3rem) 0;
}

.editorial-profile-section h2 {
  color: var(--editorial-ink);
  font-size: 1.55rem;
  margin-top: 0;
}

.editorial-reading-progress {
  background: rgba(219, 229, 242, 0.72);
  display: none;
  height: 3px;
  left: 0;
  position: fixed;
  right: 0;
  top: 64px;
  z-index: 90;
}

.editorial-reading-progress.is-active {
  display: block;
}

.editorial-reading-progress span {
  background: var(--editorial-blue);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}

@media (max-width: 980px) {
  .editorial-hero-grid,
  .editorial-reading-hero .editorial-hero-grid,
  .editorial-profile-hero .editorial-hero-grid {
    grid-template-columns: 1fr;
  }

  .editorial-hero-media,
  .editorial-featured {
    min-height: 380px;
  }

  .public-shell .editorial-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-reading-grid {
    grid-template-columns: 1fr;
  }

  .editorial-sidebar {
    grid-row: 1;
    position: static;
  }

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

  .editorial-outline a[data-outline-level="3"] {
    padding-left: 0.7rem;
  }
}

@media (max-width: 720px) {
  .editorial-learning-inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .editorial-learning-list {
    grid-template-columns: 1fr;
  }

  .editorial-hero-points {
    grid-template-columns: 1fr;
  }

  .editorial-cta {
    grid-template-columns: 1fr;
  }

  .editorial-cta .editorial-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body.public-shell:has(.editorial-page) #main-content > .messages,
  .editorial-shell {
    width: min(calc(100% - 32px), var(--editorial-shell));
  }

  .editorial-breadcrumb {
    font-size: 0.82rem;
    flex-wrap: nowrap;
  }

  .editorial-breadcrumb [aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .editorial-hero-grid,
  .editorial-reading-hero .editorial-hero-grid {
    gap: 2rem;
    padding-block: 2.8rem;
  }

  .editorial-title,
  .editorial-reading-hero .editorial-title {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
    max-width: 100%;
  }

  .editorial-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .editorial-hero-media,
  .editorial-featured {
    min-height: 260px;
  }

  .public-shell .editorial-card-grid,
  .editorial-profile-grid {
    grid-template-columns: 1fr;
  }

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

  .editorial-sequence-nav a:last-child {
    text-align: left;
  }

  .editorial-filter-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .editorial-filter-controls select,
  .editorial-filter-controls .btn {
    min-width: 0;
    width: 100%;
  }

  .editorial-outline {
    padding: 0;
  }

  .editorial-outline summary {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
    padding: 0.8rem 1rem;
  }

  .editorial-outline summary::after {
    content: "+";
    font-size: 1.25rem;
  }

  .editorial-outline[open] summary::after {
    content: "−";
  }

  .editorial-outline-title {
    display: none;
  }

  .editorial-outline nav {
    border-top: 1px solid var(--editorial-line);
    grid-template-columns: 1fr;
    max-height: 54vh;
    overflow-y: auto;
    padding: 0.65rem;
  }

  .editorial-outline a {
    align-items: center;
    display: flex;
    min-height: 44px;
  }

  .editorial-prose {
    font-size: 1rem;
  }

  .editorial-prose h2 {
    margin-top: 2.6rem;
  }

  .editorial-pagination {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .editorial-pagination .btn {
    width: 100%;
  }

  .editorial-profile-section {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-card,
  .editorial-card-media img,
  .editorial-reading-progress span {
    transition: none !important;
  }
}
