:root {
  --ed-bg: #020617;
  --ed-card: rgba(15, 23, 42, 0.9);
  --ed-border: rgba(255, 255, 255, 0.08);
  --ed-cyan: #22d3ee;
  --ed-text: #fff;
  --ed-muted: rgba(255, 255, 255, 0.65);
}

.editorial-page {
  padding-top: var(--nav-height, 80px);
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.editorial-hero,
.editorial-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.editorial-hero {
  padding: 72px 24px 56px;
  background:
    radial-gradient(circle at 50% -12%, rgba(34, 211, 238, 0.18), transparent 35%),
    radial-gradient(circle at 78% 10%, rgba(168, 85, 247, 0.12), transparent 32%),
    #020617;
}

.editorial-hero::before,
.editorial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 86%);
  pointer-events: none;
}

.editorial-wrap {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.editorial-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 760;
}

.editorial-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ed-cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.85);
}

.editorial-hero h1 {
  max-width: 900px;
  margin: 22px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 10%, rgba(255, 255, 255, 0.78));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.editorial-hero p.lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ed-muted);
  font-size: 17px;
  line-height: 1.7;
}

.editorial-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.editorial-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.editorial-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font: inherit;
  outline: none;
}

.editorial-search input:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.editorial-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  background: linear-gradient(135deg, #67e8f9, #22d3ee 48%, #38bdf8);
  border-color: transparent;
  color: #001018;
}

.editorial-section {
  padding: 56px 24px 88px;
  background: #020617;
}

.editorial-section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.editorial-section .sub {
  margin: 12px 0 0;
  color: var(--ed-muted);
  font-size: 16px;
  line-height: 1.7;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.featured-side {
  display: grid;
  gap: 18px;
}

.post-card,
.partner-card,
.empty-board {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ed-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--ed-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 70px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: inherit;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.post-card {
  padding: 24px;
  min-height: 220px;
}

.post-card.featured {
  min-height: 360px;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(12, 30, 50, 0.96);
}

.post-card:hover,
.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42), 0 0 54px rgba(34, 211, 238, 0.11);
}

.post-cat {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 760;
}

.post-card h3 {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-card.featured h3 {
  font-size: clamp(28px, 3vw, 38px);
}

.post-card p {
  margin: 12px 0 0;
  color: var(--ed-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.post-card .read {
  margin-top: auto;
  padding-top: 18px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 760;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.editorial-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.load-more,
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 1), rgba(56, 189, 248, 0.92));
  color: #001018;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ed-btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.partner-card {
  padding: 24px;
  min-height: 180px;
}

.partner-card img {
  width: auto;
  height: 56px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 10px;
}

.partner-card h3 {
  margin: 0;
  font-size: 18px;
}

.partner-offer {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  color: #9cecff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.partner-card p {
  margin: 8px 0 0;
  color: var(--ed-muted);
  font-size: 14px;
  line-height: 1.6;
}

.load-more {
  margin: 32px auto 0;
  display: flex;
}

.empty-copy {
  text-align: center;
  color: var(--ed-muted);
  padding: 12px 0 8px;
}

.partner-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.empty-board {
  min-height: 180px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-style: dashed;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 650;
}

.empty-board.apply {
  border-style: solid;
  border-color: rgba(34, 211, 238, 0.4);
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 50%),
    var(--ed-card);
}

.empty-board.apply strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.step-card {
  padding: 24px;
  border: 1px solid var(--ed-border);
  border-radius: 24px;
  background: var(--ed-card);
}

.step-card span {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin: 12px 0 0;
  font-size: 20px;
}

.step-card p {
  margin: 10px 0 0;
  color: var(--ed-muted);
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .featured-grid,
  .post-grid,
  .partner-board,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .editorial-hero,
  .editorial-section {
    padding-inline: 16px;
  }
  .featured-grid,
  .post-grid,
  .partner-board,
  .steps,
  .featured-side {
    grid-template-columns: 1fr;
  }
}
