@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

/* Making Memories SC — travel-blog inspired (clear surfaces, strong sans, teal accents) */
:root {
  --primary: #0f172a;
  --brand: #0f766e;
  --brand-hover: #115e59;
  --accent: #0d9488;
  --accent-warm: #c2410c;
  --bg: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  /* Display / UI type — travel-mag feel */
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Source Serif 4", serif;
  --sans: var(--font);
  /* Layout spacing — use across pages for even gutters and section rhythm */
  --layout-max-width: 1140px;
  --space-gutter: 24px;
  --space-page-top: 32px;
  --space-page-bottom: 96px;
  --space-section-y: 56px;
  /* Uniform gap between stacked blocks inside a column (sections, cards, RSS, etc.) */
  --space-stack-y: 28px;
  --space-inner: 24px;
  /* Homepage full-bleed dark bands */
  --home-dark-bg: linear-gradient(168deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
  --home-dark-text: #f1f5f9;
  --home-dark-muted: #94a3b8;
  --home-dark-border: rgba(148, 163, 184, 0.22);
  --home-dark-link: #5eead4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

h1,
h2,
h3 {
  font-family: var(--font);
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 14px var(--space-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: var(--brand);
}

.logo img {
  height: 44px;
  width: auto;
  max-width: min(260px, 62vw);
  display: block;
  object-fit: contain;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.nav-main a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav-main a:hover {
  color: var(--brand);
}

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.nav-cta:hover {
  background: var(--brand-hover);
  color: #fff !important;
}

.ad-leaderboard {
  max-width: var(--layout-max-width);
  margin: 12px auto;
  padding: 0 var(--space-gutter);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

.wrap {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: var(--space-page-top) var(--space-gutter) var(--space-page-bottom);
}

/* Homepage: equal vertical rhythm between major sections */
main.page-home {
  display: flex;
  flex-direction: column;
  gap: var(--space-section-y);
}

/* Home: dark sections (same content width as .wrap; no full-bleed) */
main.page-home > section.home-section--dark {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  align-self: stretch;
  padding: clamp(2rem, 5vw, 2.75rem) 0 clamp(2.25rem, 5.5vw, 3rem);
  background: var(--home-dark-bg);
  color: var(--home-dark-text);
  box-sizing: border-box;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

main.page-home > section.home-section--dark[aria-labelledby] > h2 {
  color: var(--home-dark-text);
  border-bottom: 2px solid rgba(94, 234, 212, 0.4);
  border-left: 0;
  padding-left: 0;
  margin-top: 0;
}

main.page-home > section.home-section--dark > a.see-all {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

main.page-home > section.home-section--dark > a.see-all:hover {
  color: #0f172a;
  background: #5eead4;
  border-color: #5eead4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Dark context: nested “from the wire” RSS (e.g. Tips) */
main.page-home > section.home-section--dark .rss-block--section {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.68) 0%, rgba(30, 41, 59, 0.5) 100%);
  border-color: var(--home-dark-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 40px -8px rgba(0, 0, 0, 0.35);
}

main.page-home > section.home-section--dark .rss-block--section .rss-block__header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 41, 59, 0.25) 100%);
  border-bottom-color: var(--home-dark-border);
}

main.page-home > section.home-section--dark .rss-block--section .rss-block__eyebrow,
main.page-home > section.rss-block.home-section--dark .rss-block__eyebrow,
main.page-home > section.faq-block.home-section--dark .faq-block__eyebrow {
  color: var(--home-dark-link);
}

main.page-home > section.home-section--dark .rss-block--section .rss-block__eyebrow::before,
main.page-home > section.rss-block.home-section--dark .rss-block__eyebrow::before,
main.page-home > section.faq-block.home-section--dark .faq-block__eyebrow::before {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

main.page-home > section.home-section--dark .rss-block--section .rss-block__title {
  color: var(--home-dark-text);
}

main.page-home > section.home-section--dark .rss-block--section .rss-block__feed,
main.page-home > section.home-section--dark .rss-block--section .rss-block__feed--loading {
  background: rgba(15, 23, 42, 0.2);
}

/* Home hero RSS: section is the dark band and the block */
main.page-home > section.rss-block.rss-block--hero.home-section--dark {
  background: var(--home-dark-bg);
  border-color: var(--home-dark-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px -24px rgba(0, 0, 0, 0.45);
}

main.page-home > section.rss-block.rss-block--hero.home-section--dark .rss-block__header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(30, 41, 59, 0.2) 100%);
  border-bottom-color: var(--home-dark-border);
}

main.page-home > section.rss-block.rss-block--hero.home-section--dark .rss-block__title {
  color: var(--home-dark-text);
}

main.page-home > section.rss-block.rss-block--hero.home-section--dark .rss-block__lede {
  color: var(--home-dark-muted);
}

main.page-home > section.rss-block.rss-block--hero.home-section--dark .rss-block__feed,
main.page-home > section.rss-block.rss-block--hero.home-section--dark .rss-block__feed--loading {
  background: rgba(15, 23, 42, 0.2);
}

main.page-home > section.faq-block.home-section--dark {
  background: var(--home-dark-bg);
  border-color: var(--home-dark-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px -24px rgba(0, 0, 0, 0.4);
  margin-top: 0;
}

main.page-home > section.faq-block.home-section--dark .faq-block__header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.2) 100%);
  border-bottom-color: var(--home-dark-border);
}

main.page-home > section.faq-block.home-section--dark h2.faq-block__title {
  color: var(--home-dark-text) !important;
}

main.page-home > section.faq-block.home-section--dark .faq-block__lede {
  color: var(--home-dark-muted);
}

main.page-home > section.faq-block.home-section--dark .faq-block__list {
  background: rgba(15, 23, 42, 0.2);
}

/* Light answer panels stay readable inside dark FAQ band */
main.page-home > section.faq-block.home-section--dark .faq-block__item {
  border-color: var(--home-dark-border);
  background: #fff;
}

/* RSS feed subtext in dark home bands (feed list items stay light cards) */
main.page-home > section.home-section--dark .rss-feed__loading-hint,
main.page-home > section.rss-block.home-section--dark .rss-feed__loading-hint {
  color: var(--home-dark-muted);
}

main.page-home > section.home-section--dark .rss-feed__spinner {
  border-color: rgba(148, 163, 184, 0.3);
  border-top-color: var(--home-dark-link);
}

main.page-home > section.home-section--dark .rss-feed__meta,
main.page-home > section.rss-block.home-section--dark .rss-feed__meta {
  color: var(--home-dark-muted);
}

main.page-home > section.home-section--dark .rss-feed__date,
main.page-home > section.rss-block.home-section--dark .rss-feed__date {
  background: rgba(15, 23, 42, 0.25);
  color: var(--home-dark-text);
}

main.page-home > section.home-section--dark .rss-feed__footer,
main.page-home > section.rss-block.home-section--dark .rss-feed__footer {
  border-top-color: var(--home-dark-border);
}

main.page-home > section.home-section--dark a.rss-feed__ext--topic,
main.page-home > section.rss-block.home-section--dark a.rss-feed__ext--topic {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--home-dark-link);
}

main.page-home > section.home-section--dark .rss-feed__fallback,
main.page-home > section.rss-block.home-section--dark .rss-feed__fallback {
  background: rgba(15, 23, 42, 0.4);
  border-color: var(--home-dark-border);
  color: var(--home-dark-muted);
}

/* Single-column layouts: equal top-to-bottom spacing between main-level blocks */
main.wrap:not(.two-col):not(.prose):not(.page-home):not(.error-page),
main.wrap.prose:not(.error-page) {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-y);
}

main.wrap:not(.two-col):not(.prose):not(.page-home):not(.error-page) > * + *,
main.wrap.prose:not(.error-page) > * + * {
  margin-top: 0;
}

main.wrap.error-page > * + * {
  margin-top: var(--space-stack-y);
}

/* Category / hub primary column: same stack gap as other pages */
main.wrap.two-col.layout-hub > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-y);
}

main.wrap.two-col.layout-hub > div:first-child > * + * {
  margin-top: 0;
}

main.wrap.two-col.layout-hub > div:first-child > .rss-block--section {
  margin-top: 0;
}

main.wrap.two-col.layout-hub > div:first-child > h1 {
  margin-bottom: 0;
}

/* Prose/legal-style pages */
main.wrap.prose > h1:first-child {
  margin-top: 0;
}

main.wrap.prose:not(.error-page) > h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
}

main.wrap.prose:not(.error-page) .article-body h2 {
  margin-top: calc(var(--space-section-y) * 0.65);
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
}

.hero-block .hero-image {
  width: 100%;
  border-radius: 12px;
  margin-top: 18px;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.18);
}

/* Homepage hero — split: copy left, image right (full wrap width) */
.hero-block--wtg {
  width: 100%;
}

.hero-block--wtg .hero-block__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-block--wtg .hero-block__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 4.5vw, 52px);
  }
}

.hero-block--wtg .hero-block__content {
  text-align: left;
  min-width: 0;
}

.hero-block--wtg .hero-eyebrow {
  text-align: left;
}

.hero-eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.hero-block--wtg h1 {
  color: var(--primary);
  font-weight: 800;
  max-width: none;
  margin: 0 0 16px;
}

.hero-block--wtg .prose {
  margin: 0 0 22px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-block--wtg .hero-cta {
  margin: 0;
}

.hero-block--wtg .hero-block__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.2);
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .hero-block--wtg .hero-block__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

.hero-block--wtg .hero-block__media .hero-image {
  width: 100%;
  height: 100%;
  margin-top: 0;
  display: block;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.hero-cta {
  display: inline-block;
  margin: 0 0 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  color: #fff;
  background: var(--brand-hover);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.2rem;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding-left: 12px;
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 0.02em;
}

h3 {
  font-weight: 700;
  letter-spacing: 0.015em;
}

section[aria-labelledby] > h2 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  font-weight: 800;
  border-left: 0;
  border-bottom: 2px solid var(--primary);
  padding-left: 0;
  margin-top: 0;
}

section[aria-labelledby] > h2:first-child {
  margin-top: 0;
}

/* Long-form / article pages: section titles without the home “magazine” bar */
main.wrap.prose:not(.error-page) > h2,
main.wrap.prose:not(.error-page) .article-body h2 {
  border-left: none;
  padding-left: 0;
  text-transform: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

section[aria-labelledby]:not(.faq-home) {
  padding-bottom: var(--space-stack-y);
}

main.page-home > section[aria-labelledby]:not(.faq-home) {
  padding-bottom: 0;
}

.hero-block h1 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1.article-title {
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
  font-family: var(--font);
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.article-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .article-card {
    transition: none;
  }

  .article-card:hover {
    transform: none;
  }
}

.article-card a {
  text-decoration: none;
  color: inherit;
}

.article-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.article-card .body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-family: var(--font);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.article-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.btn-read {
  display: inline-block;
  margin-top: auto;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  font-family: var(--font);
}

/* —— RSS / wire sections —— */
.rss-block {
  position: relative;
  margin-top: 0;
  padding: 0;
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 40%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04) inset,
    0 12px 40px -8px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  font-size: 0.94rem;
}

.rss-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2dd4bf 0%, #0d9488 45%, #0f766e 100%);
  z-index: 1;
  pointer-events: none;
}

.rss-block--section {
  margin-top: var(--space-stack-y);
}

.rss-block--hero {
  margin-bottom: 0;
  margin-top: 0;
}

.rss-block__header {
  position: relative;
  padding: calc(var(--space-inner) + 4px) var(--space-inner) var(--space-inner);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.4) 100%);
}

.rss-block__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--sans);
}

.rss-block__eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.rss-block__title {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--font);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.28;
  letter-spacing: 0.04em;
  text-transform: none;
}

.rss-block--section .rss-block__title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rss-block__lede {
  margin: 10px 0 0;
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.rss-block__feed {
  padding: 16px var(--space-inner) 18px;
  min-height: 3.5rem;
  background: rgba(255, 255, 255, 0.35);
}

.rss-block__feed--loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 2rem var(--space-inner);
  gap: 0;
  background: rgba(255, 255, 255, 0.2);
}

.rss-feed__loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}

.rss-feed__loading-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

.rss-feed__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rss-spin 0.75s linear infinite;
}

@keyframes rss-spin {
  to {
    transform: rotate(360deg);
  }
}

.rss-feed {
  counter-reset: rss-item;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rss-feed__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0 0.9rem;
  align-items: start;
  margin: 0;
  padding: 14px 12px 14px 8px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.65);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rss-feed__item::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  counter-increment: rss-item;
  content: counter(rss-item, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--sans);
  line-height: 1.2;
  padding-top: 3px;
  color: #a8a29e;
  text-align: right;
  letter-spacing: 0.04em;
}

.rss-feed__item:hover,
.rss-feed__item:focus-within {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.rss-feed__item:hover::before,
.rss-feed__item:focus-within::before {
  color: var(--accent);
}

.rss-feed__item > .rss-feed__link {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.rss-feed__item > .rss-feed__meta {
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  min-width: 0;
}

.rss-feed__link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--sans);
}

@supports not (-webkit-line-clamp: 2) {
  .rss-feed__link {
    display: block;
  }
}

.rss-feed__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rss-feed__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.76rem;
  line-height: 1.3;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.rss-feed__date {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rss-feed__meta-sep {
  color: #d6d3d1;
  user-select: none;
  font-weight: 500;
  font-size: 0.85em;
}

.rss-feed__source {
  color: var(--muted);
  font-size: 0.76rem;
  word-break: break-all;
}

.rss-feed__fallback {
  margin: 8px 0 0;
  padding: 16px 18px;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: var(--sans);
}

.rss-feed__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  margin-top: 2px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.35);
  font-size: 0.8rem;
  line-height: 1.45;
}

.rss-feed__footer-sep {
  color: #c4c4c4;
  user-select: none;
  font-size: 0.85em;
}

a.rss-feed__ext {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

a.rss-feed__ext:hover {
  text-decoration: none;
  color: var(--primary);
  background: #fffbeb;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

a.rss-feed__ext--topic {
  color: var(--accent);
  background: #f1f5f9;
  border-color: rgba(13, 148, 136, 0.4);
}

a.rss-feed__ext--domain {
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .rss-feed__spinner {
    animation: none;
    border-top-color: var(--primary);
  }

  .rss-feed__item,
  .rss-feed__item:hover,
  .rss-feed__item:focus-within {
    transform: none;
  }
}

.see-all {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: var(--space-stack-y);
  margin-left: auto;
  margin-right: auto;
  padding: 11px 22px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--brand);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.see-all:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.see-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .see-all:hover {
    transform: none;
  }
}

/* FAQ — home + blog articles (details / summary) */
.faq-block {
  position: relative;
  margin: var(--space-stack-y) 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04) inset,
    0 8px 32px -6px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  max-width: 100%;
}

.faq-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2dd4bf 0%, #0d9488 50%, #0f766e 100%);
  z-index: 1;
  pointer-events: none;
}

.faq-block__header {
  padding: 22px var(--space-inner) 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.4) 100%);
}

.faq-block__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--sans);
}

.faq-block__eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.faq-block__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.25rem;
  font-family: var(--font);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
}

.faq-block__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}

.faq-block__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 10px 20px;
  margin: 0;
  background: rgba(255, 255, 255, 0.3);
}

.faq-home.faq-block {
  margin-top: 0;
}

.faq-block__item {
  margin: 0 0 10px;
  border: 1px solid rgba(226, 232, 240, 0.65);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-block__item:last-of-type {
  margin-bottom: 0;
}

.faq-block__item[open] {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.faq-block__question {
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 44px 16px 16px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font);
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: var(--primary);
  background: #f8fafc;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-block__item[open] > .faq-block__question,
.faq-block__question:hover {
  background: rgba(240, 253, 250, 0.95);
  color: var(--primary);
}

.faq-block__question::-webkit-details-marker {
  display: none;
}

.faq-block__question::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.1rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.22s ease, border-color 0.15s ease;
}

.faq-block__item[open] .faq-block__question::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--primary);
}

.faq-block__question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 1;
}

.faq-block__answer {
  padding: 0 16px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  border-top: 1px solid rgba(226, 232, 240, 0.4);
}

.faq-block__answer p {
  margin: 0 0 12px;
}
.faq-block__answer p:last-child {
  margin-bottom: 0;
}

.faq-block__answer a {
  font-weight: 600;
}

.article-body .faq-block h2.faq-block__title {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq-block__question::after,
  .faq-block__item[open] .faq-block__question::after {
    transition: none;
  }
}

.site-footer {
  position: relative;
  margin-top: 48px;
  padding: 0 0 20px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f766e 0%, #0d9488 45%, #5eead4 100%);
  pointer-events: none;
}

.site-footer .footer-inner a {
  color: #99f6e4;
}

.site-footer .footer-inner a:hover {
  color: #ccfbf1;
}

/* Brand (logo) + tagline */
.site-footer__intro {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 36px var(--space-gutter) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-footer__brand--logo {
  min-height: 48px;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: min(280px, 88vw);
  object-fit: contain;
  object-position: center;
}

@media (min-width: 640px) {
  .site-footer__logo {
    max-height: 58px;
    max-width: min(320px, 90vw);
  }
}

.site-footer__brand:hover .site-footer__logo {
  opacity: 0.9;
}

.site-footer__brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-footer__brand:focus-visible .site-footer__logo {
  opacity: 1;
}

.site-footer__tagline {
  margin: 0;
  max-width: 28rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #94a3b8;
  font-family: var(--sans);
}

/* Link columns */
.footer-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 32px var(--space-gutter) 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  box-sizing: border-box;
}

.footer-inner > div {
  padding: 20px 20px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.footer-inner > div:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.footer-inner h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #5eead4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-inner li {
  margin-bottom: 4px;
}

.footer-inner li:last-child {
  margin-bottom: 0;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: var(--sans);
  color: #cbd5e1;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-inner a::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer-inner a:hover {
  color: #fff;
  padding-left: 2px;
}

.footer-inner a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-inner a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-bottom {
  max-width: var(--layout-max-width);
  margin: 8px auto 0;
  padding: 22px var(--space-gutter) 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
  font-family: var(--sans);
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .footer-inner a,
  .footer-inner a::before,
  .site-footer__brand {
    transition: none;
  }
}

.google-news-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #4285f4;
  color: #fff;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.google-news-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.skyscraper-ad {
  display: none;
}

@media (min-width: 768px) {
  .skyscraper-ad {
    display: block;
  }
}

.sidebar-ad {
  margin-bottom: 0;
  min-height: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.sidebar-ad ins,
.sidebar-ad iframe {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.two-col {
  display: grid;
  gap: var(--space-stack-y);
}

@media (min-width: 960px) {
  .two-col.layout-hub {
    grid-template-columns: 1fr 300px;
  }

  .two-col.layout-article {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.sticky-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 20px;
}

/* Sidebar category navigation */
.sidebar-categories {
  margin-top: 0;
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.sidebar-categories .sidebar-categories__title {
  margin: 0;
  padding: 14px 18px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--accent);
  line-height: 1.3;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-categories__list {
  list-style: none;
  margin: 0;
  padding: 10px 10px 12px;
}

.sidebar-categories__list li {
  margin: 0;
}

.sidebar-categories__link {
  display: block;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--primary);
  line-height: 1.35;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.sidebar-categories__link:hover {
  background: rgba(240, 253, 250, 0.98);
  color: var(--accent);
}

.sidebar-categories__link[aria-current="page"] {
  background: linear-gradient(
    90deg,
    rgba(13, 148, 136, 0.12) 0%,
    rgba(255, 253, 251, 0.95) 38%
  );
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 700;
}

.sidebar-categories__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-stack-y) 0;
}

.category-pills a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
}

.category-pills a:hover,
.category-pills a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Breadcrumbs — left-aligned, shared on all pages */
.breadcrumb {
  width: 100%;
  text-align: left;
  margin: 0 0 var(--space-stack-y);
  padding: 11px 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 253, 251, 0.98) 0%,
    rgba(240, 253, 250, 0.88) 55%,
    rgba(254, 243, 199, 0.35) 100%
  );
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-family: var(--sans);
  line-height: 1.35;
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.65em;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 500;
  pointer-events: none;
}

a.breadcrumb__link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

a.breadcrumb__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb__current {
  color: var(--muted);
  font-weight: 600;
  max-width: 100%;
}

/* One stack gap after breadcrumb; avoid doubling with * + * rules */
main.wrap.prose > .breadcrumb + *,
main.wrap:not(.page-home):not(.two-col):not(.prose) > .breadcrumb + *,
main.wrap.two-col.layout-hub > div:first-child > .breadcrumb + * {
  margin-top: 0;
}

.error-page .breadcrumb {
  text-align: left;
  max-width: 100%;
}

.byline {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.article-body .float-ad-wrap {
  float: right;
  margin: 0 0 16px 22px;
  max-width: 300px;
}

.article-body::after {
  content: "";
  display: table;
  clear: both;
}

blockquote.pull-quote {
  margin: var(--space-stack-y) 0;
  padding: var(--space-inner);
  border-left: 4px solid var(--accent);
  background: #f1f5f9;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--primary);
}

/* “In this article” / table of contents (blog) */
.toc {
  position: relative;
  margin: var(--space-stack-y) 0;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04) inset,
    0 8px 32px -6px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  max-width: 100%;
}

.toc::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2dd4bf 0%, #0d9488 50%, #0f766e 100%);
  z-index: 1;
  pointer-events: none;
}

.toc__header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.45) 100%);
}

.toc__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--sans);
}

.toc__eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.toc__title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.2rem;
  font-family: var(--font);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
}

.article-body .toc__title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 6px 0 6px;
  counter-reset: toc;
}

.toc__item {
  margin: 0;
  counter-increment: toc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.toc__item:last-child {
  border-bottom: none;
}

.toc__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 10px 0;
  padding: 13px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.45;
  font-family: var(--sans);
  border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
}

.toc__link::before {
  content: counter(toc);
  flex-shrink: 0;
  min-width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: rgba(15, 23, 42, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 8px;
  font-family: var(--sans);
  line-height: 1;
}

.toc__link:hover {
  background: rgba(240, 253, 250, 0.95);
  color: var(--primary);
}

.toc__link:hover::before {
  background: var(--primary);
  color: #fff;
}

.toc__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: #f1f5f9;
}

/* Legacy: plain ul inside .toc (if any page omits BEM) */
.toc > ul {
  list-style: none;
  margin: 0;
  padding: 12px 8px 16px;
}

.author-bio {
  margin-top: var(--space-section-y);
  padding: var(--space-inner);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.author-bio h3 {
  margin-top: 0;
  font-family: var(--font);
}

/* Related articles — bottom of blog / article pages */
.related-articles {
  position: relative;
  margin-top: calc(var(--space-section-y) * 0.85);
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04) inset,
    0 12px 40px -8px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  max-width: 100%;
}

.related-articles::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2dd4bf 0%, #0d9488 50%, #0f766e 100%);
  pointer-events: none;
  z-index: 1;
}

.related-articles__header {
  padding: 22px var(--space-inner) 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.35) 100%);
}

.related-articles__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--sans);
}

.related-articles__eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.related-articles__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.2rem;
  font-family: var(--font);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: none;
}

.related-articles__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 50ch;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px var(--space-inner) 22px;
  margin: 0;
  background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 600px) {
  .related-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .related-articles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-articles__card {
  margin: 0;
  height: 100%;
}

.related-articles__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.related-articles__link:hover {
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.related-articles__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.related-articles__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0ebe4;
}

.related-articles__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.related-articles__link:hover .related-articles__media img {
  transform: scale(1.04);
}

.related-articles__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.related-articles__card-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.3;
  font-family: var(--font);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.related-articles__excerpt {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}

.related-articles__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--sans);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.related-articles__cta::after {
  content: "→";
  font-size: 0.9em;
  display: inline-block;
  transition: transform 0.2s ease;
}

.related-articles__link:hover .related-articles__cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.related-articles__link:hover .related-articles__cta::after {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .related-articles__link,
  .related-articles__link:hover,
  .related-articles__media img,
  .related-articles__link:hover .related-articles__media img,
  .related-articles__cta::after,
  .related-articles__link:hover .related-articles__cta::after {
    transform: none;
    transition: none;
  }
}

.related-articles + .social-share {
  margin-top: var(--space-inner);
}

main.wrap.prose:not(.error-page) .article-body .related-articles h2.related-articles__title {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.article-body .social-share h2.social-share__title {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Share this article — icon buttons (blog / article template) */
.social-share {
  margin-top: var(--space-inner);
  padding: 22px var(--space-inner) 20px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}

.article-body .social-share h2.social-share__title,
.social-share h2.social-share__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.1rem;
  font-family: var(--font);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
}

.social-share__lede {
  margin: 0 0 18px;
  font-size: 0.89rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
}

.social-share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.social-share__item {
  margin: 0;
}

.social-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--sans);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.social-share__btn:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.social-share__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-share__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
  display: block;
}

/* Brand backgrounds */
.social-share__btn--facebook {
  background: #1877f2;
  border-color: rgba(0, 0, 0, 0.08);
}
.social-share__btn--facebook:hover {
  background: #166fe5;
}

.social-share__btn--x {
  background: #000;
  border-color: #333;
}
.social-share__btn--x:hover {
  background: #1a1a1a;
}

.social-share__btn--pinterest {
  background: #e60023;
  border-color: rgba(0, 0, 0, 0.12);
}
.social-share__btn--pinterest:hover {
  background: #c9001e;
}

.social-share__btn--copy {
  background: var(--primary);
  border-color: rgba(0, 0, 0, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: var(--sans);
}
.social-share__btn--copy:hover {
  background: #2d5a40;
  color: #fff;
}
.social-share__btn--copy.is-copied {
  background: #16a34a;
  border-color: #15803d;
  transform: none;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .social-share__btn,
  .social-share__btn:hover {
    transform: none;
  }
}

form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 16px;
}

form.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

form.contact-form button:hover {
  background: var(--primary);
}

/* Contact page — full content width (same as layout max) and card form */
main.wrap.prose.contact-page {
  align-items: stretch;
}

main.wrap.prose.contact-page .breadcrumb {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

main.wrap.prose.contact-page .breadcrumb__list {
  justify-content: flex-start;
}

main.wrap.prose.contact-page h1 {
  text-align: left;
  max-width: 100%;
  width: 100%;
}

main.wrap.prose.contact-page > p {
  text-align: left;
  max-width: 62ch;
  width: 100%;
}

main.wrap.prose.contact-page form.contact-form {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: calc(var(--space-inner) + 4px) calc(var(--space-inner) + 8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

main.wrap.prose.contact-page form.contact-form input,
main.wrap.prose.contact-page form.contact-form select,
main.wrap.prose.contact-page form.contact-form textarea {
  max-width: none;
}

main.wrap.prose.contact-page form.contact-form button {
  width: 100%;
  margin-top: 4px;
}

.category-hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.prose p {
  margin: 0 0 1em;
}

.error-page {
  text-align: center;
  padding: 60px var(--space-gutter);
}

.search-404 input {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
