.editorial-hero {
  --hero-surface: #f2e8f4;
  --hero-copy: var(--ink);
  --hero-muted: var(--muted);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(14px, 3.2vw, 44px);
  min-height: 360px;
  margin-block-end: clamp(26px, 5vw, 60px);
  padding: 12px;
  overflow: hidden;
  border: 1px solid #e3d2e8;
  border-radius: 29px;
  background:
    radial-gradient(ellipse at 92% 1%, #fadfccb0, transparent 55%),
    var(--hero-surface);
  box-shadow: var(--shadow);
}
.editorial-hero-about, .editorial-hero-faq {
  --hero-surface: #3a254c;
  --hero-copy: #fff8f4;
  --hero-muted: #f1e3f4;
  border-color: #694d7b;
  background:
    radial-gradient(ellipse at 92% 1%, #80568e, transparent 62%),
    linear-gradient(134deg, #583864, var(--hero-surface));
}
.editorial-hero-faq {
  --hero-surface: #2b1b42;
  background:
    radial-gradient(ellipse at 98% 88%, #563671, transparent 68%),
    #2b1b42;
}
.editorial-copy { padding: clamp(12px, 3.5vw, 45px); color: var(--hero-copy); }
.editorial-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #eddff4;
  color: var(--purple-deep);
}
.editorial-hero:is(.editorial-hero-about, .editorial-hero-faq) .editorial-mark {
  color: #fff7ee;
  background: #fff2;
  border: 1px solid #fff4;
}
.editorial-copy h1, .magazine-heading h1 {
  margin-block: 14px 11px;
  font-size: clamp(2.2rem, 4.65vw, 4.25rem);
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.editorial-copy p, .magazine-heading p { color: var(--hero-muted, var(--muted)); max-width: 40ch; font-size: 1.08rem; }
.editorial-copy .button { margin-block-start: 21px; }
.editorial-visual {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  display: grid;
  overflow: hidden;
  min-height: 315px;
  aspect-ratio: 1.55;
  border-radius: 19px 19px 19px 62px;
  background: #4b2d59;
}
.editorial-visual img { width: 100%; height: 100%; object-fit: cover; }
.editorial-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(145deg, #2c173735, transparent 45%, #2210392e);
}
.editorial-orbit, .editorial-spark { position: absolute; z-index: 1; pointer-events: none; }
.editorial-orbit {
  inset: 14% 7%;
  border: 1px solid #fff6;
  border-radius: 50%;
  transform: rotate(-22deg);
}
.editorial-orbit::after {
  position: absolute;
  inset: 12% auto auto 73%;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fbdaba;
  box-shadow: 0 0 14px 3px #fac6aa90;
  content: "";
}
.editorial-spark { top: 17%; left: 12%; color: #fbe1ba; filter: drop-shadow(0 0 10px #ffc490); }
.editorial-spark .icon { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.editorial-hero.is-in-view .editorial-copy { animation: editorial-in .68s ease-out both; }
.editorial-hero.is-in-view .editorial-visual img { animation: editorial-focus 1.1s cubic-bezier(.21,.68,.27,1) both; }
.editorial-hero.is-in-view .editorial-orbit { animation: editorial-orbit 3.2s ease-out both; }
.editorial-hero.is-in-view .editorial-spark { animation: editorial-spark 1.45s ease-in-out .18s 2 alternate both; }

.editorial-section { margin-block-start: clamp(29px, 5.3vw, 64px); }
.editorial-heading { margin-block-end: 18px; }
.editorial-heading h2 { font-size: clamp(1.4rem, 3vw, 2.08rem); font-weight: 880; line-height: 1.33; }
.editorial-heading p { margin-block-start: 5px; color: var(--muted); }
[data-reveal].is-in-view:not(.editorial-hero) { animation: editorial-in .64s ease-out both; }

.story-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr); align-items: start; gap: 17px; }
.story-prose { padding: clamp(20px, 3.8vw, 43px); }
.story-aside {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(155deg, #f2e7f5, #f9eae2);
}
.story-aside h2 { font-size: 1.19rem; line-height: 1.45; }
.editorial-checklist { display: grid; gap: 10px; margin-block: 15px 20px; padding: 0; list-style: none; }
.editorial-checklist li { display: flex; align-items: start; gap: 9px; padding-block: 6px; }
.editorial-checklist li .icon { color: var(--purple); margin-block-start: 3px; }
.editorial-checklist strong, .editorial-checklist span { display: block; }
.editorial-checklist span { color: var(--muted); font-size: .92rem; }

.platform-story-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 142px;
  aspect-ratio: 1.62;
  border-radius: 18px;
  background: #422750;
  color: white;
}
.platform-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.platform-story::after { position: absolute; inset: 0; background: linear-gradient(transparent 40%, #291735dc); content: ""; }
.platform-story span { position: absolute; z-index: 1; inset: auto 13px 12px auto; display: flex; align-items: center; gap: 7px; font-weight: 800; }
.platform-story:hover img { transform: scale(1.07); }

.editorial-contact { align-items: stretch; }
.editorial-contact .contact-note { background: linear-gradient(145deg, #f3ebf9, #faf1e8); }
.editorial-contact .contact-note .prose { margin-block-start: 17px; }
.editorial-contact .contact-note .prose h3 { font-size: 1.07rem; }
.editorial-contact .contact-note .prose p { font-size: .96rem; }
.editorial-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.editorial-chips[hidden], .faq-search-panel[hidden], .faq-item[hidden] { display: none; }
.editorial-chips button {
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #ded0e7;
  border-radius: 999px;
  color: var(--purple-deep);
  background: #f5edf7;
  font: inherit;
  font-size: .85rem;
  font-weight: 750;
  transition: background-color .19s ease, color .19s ease;
}
.editorial-chips button:hover { background: #ebdcf1; }
.editorial-chips button[aria-pressed="true"] { border-color: var(--purple); color: #fff; background: var(--purple); }
.resource-card {
  display: flex;
  align-items: start;
  gap: 11px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.resource-card:hover { border-color: #b69bc4; box-shadow: var(--shadow); }
.resource-card h3 { font-size: 1rem; line-height: 1.42; }
.resource-card p { margin-block-start: 5px; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.compact-resource { grid-template-columns: 1fr; margin-block-start: 16px; }

.faq-section { margin-block-start: 0; }
.faq-search-panel { display: grid; gap: 9px; margin-block-end: 12px; padding: 14px; }
.faq-search-panel > label { font-weight: 800; }
.faq-search-input {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffbf8;
}
.faq-search-input:focus-within { border-color: var(--purple); outline: 2px solid #e1caed; }
.faq-search-input .icon { width: 18px; color: var(--purple); }
.faq-search-input input { flex: 1; min-height: 37px; min-width: 0; border: 0; color: var(--ink); background: transparent; outline: none; font: inherit; }
.faq-count { color: var(--muted); font-size: .85rem; }
.faq-empty { margin-block-start: 12px; }
.faq-item[open] p { animation: editorial-answer .27s ease-out both; }
.faq-resource {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--ink);
  background: linear-gradient(150deg, #f2e7f5, #faf0e7);
}
.faq-resource img { width: 100%; height: auto; aspect-ratio: 1.83; object-fit: cover; }
.faq-resource > div { padding: 17px; }
.faq-resource h2 { font-size: 1.19rem; line-height: 1.4; }
.faq-resource p { margin-block: 5px 13px; color: var(--muted); }

.magazine-heading { display: flex; align-items: end; justify-content: space-between; gap: 13px; margin-block-end: 24px; }
.magazine-heading .button { min-height: 45px; white-space: nowrap; }
.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #ddcce6;
  border-radius: 24px;
  background: linear-gradient(155deg, #f1e8f6, #f9ede1);
  box-shadow: var(--shadow);
}
.featured-image { align-self: stretch; min-height: 320px; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-story:hover img { transform: scale(1.035); }
.featured-copy { padding: clamp(17px, 4vw, 47px); }
.featured-label { color: var(--purple); font-size: .9rem; font-weight: 800; }
.featured-copy h2 { margin-block: 8px 11px; font-size: clamp(1.6rem, 3.2vw, 2.65rem); font-weight: 900; line-height: 1.32; }
.featured-copy p { margin-block-end: 16px; color: var(--muted); }
.blog-card-copy h3 { font-size: clamp(1.02rem, 2.2vw, 1.25rem); line-height: 1.42; }
.blog-cover img { transition: transform .36s ease; }
.blog-card:hover img { transform: scale(1.06); }

.article-editorial { max-width: 1090px; }
.article-editorial .article-header { margin-inline: 0; }
.article-header > p { max-width: 56ch; }
.article-cover { max-height: 520px; }
.reading-time {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-block-start: 14px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple-deep);
  background: #f4eaf6;
  font-size: .86rem;
  font-weight: 750;
}
.reading-time .icon { width: 17px; height: 17px; }
.reading-meter {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #c64419, #81529d);
  transform: scaleX(var(--reading, 0));
  transform-origin: right;
  pointer-events: none;
}
.article-body-grid { display: grid; align-items: start; gap: 15px; }
.article-body-grid.with-outline { grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); }
.article-text { width: 100%; }
.article-outline { position: sticky; top: 19px; display: grid; gap: 9px; background: #f4eaf7; }
.article-outline a { color: var(--purple-deep); }
.article-outline a:hover { text-decoration: underline; text-underline-offset: 4px; }

@keyframes editorial-in { from { opacity: .62; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes editorial-focus { from { transform: scale(1.065); } to { transform: scale(1); } }
@keyframes editorial-orbit { from { transform: rotate(-35deg) scale(.9); opacity: .15; } to { transform: rotate(-22deg) scale(1); opacity: .85; } }
@keyframes editorial-spark { from { transform: translateY(4px) rotate(-8deg) scale(.77); opacity: .46; } to { transform: translateY(-6px) rotate(9deg) scale(1.15); opacity: 1; } }
@keyframes editorial-answer { from { transform: translateY(-4px); opacity: .55; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 800px) {
  .editorial-hero { min-height: 0; gap: 13px; }
  .editorial-copy { padding: 13px; }
  .editorial-visual { min-height: 230px; aspect-ratio: auto; }
  .story-layout, .article-body-grid.with-outline { grid-template-columns: minmax(0, 1fr); }
  .article-outline { position: static; grid-row: 1; }
  .resource-grid { gap: 9px; }
  .resource-card { flex-direction: column; gap: 7px; }
  .compact-resource .resource-card { flex-direction: row; }
}
@media (max-width: 600px) {
  .editorial-hero, .featured-story { grid-template-columns: minmax(0, 1fr); }
  .editorial-hero { border-radius: 20px; gap: 8px; padding: 7px; }
  .editorial-visual { min-height: 0; aspect-ratio: 1.53; border-radius: 14px 14px 14px 32px; }
  .editorial-visual .editorial-spark .icon { width: 23px; height: 23px; }
  .editorial-copy h1, .magazine-heading h1 { font-size: clamp(1.9rem, 9.4vw, 3.2rem); }
  .editorial-copy p, .magazine-heading p { font-size: 1rem; }
  .editorial-copy .button { margin-block-start: 14px; min-height: 43px; }
  .platform-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .platform-story { border-radius: 12px; min-height: 110px; }
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-card { flex-direction: row; }
  .magazine-heading { align-items: start; flex-direction: column; }
  .featured-image { min-height: 0; aspect-ratio: 1.62; }
  .featured-copy { padding: 16px; }
}
@media (max-width: 360px) {
  .platform-story-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .platform-story:hover img, .featured-story:hover img, .blog-card:hover img { transform: none; }
}


.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-block-start: 25px;
}
.blog-pagination .button { min-height: 44px; padding-inline: 12px; }
.blog-pagination span { color: var(--muted); font-weight: 700; }
.article-source { white-space: normal; overflow-wrap: anywhere; }

.blog-cover .cover-card-art, .featured-image .cover-card-art,
.article-cover .cover-card-art {
  object-fit: contain;
  padding: 3% 9%;
  background: radial-gradient(ellipse at 47% 67%, var(--surface-glow, #765a8a), var(--surface, #321f40));
}
