/* Editorial pages and static internal-link blocks — SEO release 2026-10-24. */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.editorial-main {
  flex: 1;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--header-h);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  flex-wrap: wrap;
}

.breadcrumbs {
  margin-bottom: var(--s-4);
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.5;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editorial-hero {
  padding: 52px 0 26px;
}

.editorial-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: var(--s-3);
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editorial-hero h1 {
  max-width: 760px;
  margin-bottom: var(--s-4);
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
}

.editorial-hero__lead {
  max-width: 67ch;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.72;
}

.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: var(--s-4);
  color: var(--text-muted);
  font-size: .78rem;
}

.editorial-meta span {
  position: relative;
}

.editorial-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
  padding: 18px 0 54px;
}

.editorial-body {
  min-width: 0;
}

.editorial-body > p {
  margin-bottom: 17px;
  color: var(--text-secondary);
  font-size: .96rem;
  line-height: 1.78;
}

.editorial-body h2 {
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
}

.editorial-body h2:first-child {
  margin-top: 0;
}

.editorial-body h3 {
  margin: 27px 0 9px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
}

.editorial-body ul,
.editorial-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: .94rem;
  line-height: 1.72;
}

.editorial-body li {
  margin-bottom: 8px;
}

.editorial-body li::marker {
  color: var(--accent);
}

.editorial-body a:not(.btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editorial-body a:not(.btn):hover {
  text-decoration: none;
}

.quick-answer {
  margin: 0 0 27px;
  padding: 23px 25px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quick-answer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .94rem;
  line-height: 1.72;
}

.quick-answer strong {
  color: var(--text);
}

.safety-note {
  margin: 26px 0;
  padding: 21px 23px;
  border: 1px solid var(--danger-border);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-md);
  background: #fff8f5;
}

.safety-note h2,
.safety-note h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 1.04rem;
}

.safety-note p,
.safety-note ul {
  margin-bottom: 0;
}

.editorial-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.editorial-aside h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.editorial-aside p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.6;
}

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

.editorial-aside__links {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.editorial-aside__links a {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.editorial-aside__links a:hover {
  text-decoration: underline;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hub-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hub-card__tag {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hub-card strong {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.4;
}

.hub-card span:last-child {
  margin-top: auto;
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.55;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.check-grid > div {
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.check-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: .9rem;
}

.check-grid span {
  color: var(--text-secondary);
  font-size: .82rem;
  line-height: 1.55;
}

.comparison-wrap {
  margin: 23px 0 30px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .84rem;
  line-height: 1.55;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--surface-2);
  color: var(--text);
  font-size: .75rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table td:first-child {
  width: 25%;
  color: var(--text);
  font-weight: 600;
}

.comparison-table td {
  color: var(--text-secondary);
}

.next-step-block {
  margin: 38px auto 0;
  padding: 28px 0 46px;
}

.next-step-block__head {
  max-width: 68ch;
  margin-bottom: 18px;
}

.next-step-block__head h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.next-step-block__head p {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.65;
}

.next-step-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.next-step-links a {
  display: flex;
  flex-direction: column;
  min-height: 82px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.next-step-links a:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.next-step-links strong {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: .88rem;
}

.next-step-links span {
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.5;
}

.editorial-related {
  padding: 0 0 58px;
}

.editorial-related h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card__tag {
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.related-card__t {
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.48;
}

.related-card__go {
  margin-top: auto;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
}

.sources {
  margin-top: 34px;
}

.sources li {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editorial-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .editorial-hero {
    padding: 36px 0 20px;
  }

  .editorial-hero__lead {
    font-size: .97rem;
  }

  .editorial-layout {
    padding-top: 8px;
  }

  .editorial-body > p,
  .editorial-body ul,
  .editorial-body ol {
    font-size: .94rem;
  }

  .hub-cards,
  .check-grid,
  .next-step-links,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: 0;
  }

  .next-step-links a,
  .editorial-aside__links a {
    min-height: 44px;
  }

  .comparison-table {
    min-width: 620px;
  }
}
