/* SerenSoothe — purple banner · soft lavender canvas */

:root {
  --hero-gradient: linear-gradient(135deg, #a855f7 0%, #9333ea 28%, #7e22ce 58%, #5b21b6 100%);
  --hero-gradient-deep: linear-gradient(135deg, #7c3aed 0%, #6d28d9 45%, #4c1d95 100%);
  --bg: #ebe6f3;
  --bg-soft: #f3eff8;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #faf8fd;
  --surface-glass: rgba(255, 255, 255, 0.12);
  --text: #171717;
  --text-soft: #404040;
  --muted: #6b6478;
  --line: rgba(91, 33, 182, 0.1);
  --line-strong: rgba(91, 33, 182, 0.16);
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-soft: rgba(124, 58, 237, 0.1);
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --wellness: #0d9488;
  --wellness-soft: rgba(13, 148, 136, 0.1);
  --shadow-sm: 0 2px 14px rgba(91, 33, 182, 0.08);
  --shadow-md: 0 16px 40px rgba(91, 33, 182, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-sans: "Inter", system-ui, sans-serif;
  --header-h: 76px;
  --content-width: min(1280px, 92%);
  --content-width-wide: min(1360px, 90%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(167, 139, 250, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(124, 58, 237, 0.15);
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--accent-hover); }

.container {
  width: var(--content-width);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.site-main { min-height: 50vh; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

body.has-banner .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

body.has-banner .site-header:not(.is-solid).is-scrolled {
  box-shadow: none;
}

body.has-banner .site-header.is-solid,
body.has-banner.nav-open .site-header {
  position: fixed;
  background: var(--hero-gradient-deep);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 24px rgba(91, 33, 182, 0.28);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

body.has-banner .site-header .brand-text strong {
  color: #ffffff;
}

body.has-banner .site-header .brand-text small {
  color: rgba(255, 255, 255, 0.78);
}

body.has-banner .site-header .brand-mark {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 36px;
}

.brand-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
}

.brand-text small {
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link { text-decoration: none; }

.nav-link:hover,
.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.nav-link.is-active,
.nav-dropdown.is-active .nav-dropdown-btn {
  color: var(--purple-dark);
  background: var(--purple-soft);
}

body.has-banner .site-header .nav-link,
body.has-banner .site-header .nav-dropdown-btn {
  color: rgba(255, 255, 255, 0.92);
}

body.has-banner .site-header .nav-link:hover,
body.has-banner .site-header .nav-dropdown-btn:hover,
body.has-banner .site-header .nav-dropdown.is-open .nav-dropdown-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
}

body.has-banner .site-header .nav-link.is-active,
body.has-banner .site-header .nav-dropdown.is-active .nav-dropdown-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
}

.nav-dropdown-chevron {
  opacity: 0.75;
  transform: translateY(1px);
}

.nav-dropdown { position: relative; }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-dropdown-item:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.nav-dropdown-item.is-active {
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

body.has-banner .site-header .nav-toggle {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 1px;
}

body.has-banner .site-header .nav-toggle span {
  background: #ffffff;
}

/* ── Banner hero ── */
.banner-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 72px) 0 72px;
  background: var(--hero-gradient);
  color: #ffffff;
  text-align: center;
}

.banner-hero--home {
  min-height: 420px;
}

.banner-hero--page {
  min-height: 320px;
  padding-bottom: 64px;
}

.banner-hero--article {
  min-height: 280px;
  padding-bottom: 56px;
}

.banner-hero-inner {
  max-width: min(880px, 100%);
}

.banner-hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.banner-hero-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin: 28px auto;
  background: rgba(255, 255, 255, 0.85);
}

.banner-hero-subtitle {
  margin: 0 auto;
  max-width: min(58ch, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

.reveal {
  animation: fadeUp 0.8s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sections ── */
.section {
  padding: 56px 0 64px;
  background: transparent;
}

.home-section + .home-section {
  padding-top: 0;
}

.home-section + .home-section > .container {
  padding-top: 0;
  border-top: none;
}

.home-section + .home-section > .container::before {
  content: '';
  display: block;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-head--home {
  align-items: flex-start;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.07) 0%, #ffffff 28%);
  box-shadow: var(--shadow-sm);
}

.section-head-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-head--home .section-head-main {
  flex: 1;
  min-width: 0;
}

.section-head--related {
  margin-bottom: 28px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.07) 0%, #ffffff 28%);
  box-shadow: var(--shadow-sm);
}

.section-head-main {
  min-width: 0;
}

.section-eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}

.section-head--home h2 {
  text-transform: capitalize;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--purple-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.section-link::after {
  content: "→";
  font-size: 0.875rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.section-link:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--purple-dark);
  background: var(--purple-soft);
  box-shadow: var(--shadow-sm);
}

.section-link:hover::after {
  transform: translateX(3px);
}

/* ── Article cards ── */
.article-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card { height: 100%; }

.article-card-link {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-card-body {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.article-card-link:hover .article-card-body {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: var(--shadow-md);
}

.article-card-tag {
  display: inline-flex;
  align-self: start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--wellness-soft);
  color: var(--wellness);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.article-card-link:hover .article-card-title {
  color: var(--purple-dark);
}

.article-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.article-card-more {
  margin-top: auto;
  padding-top: 4px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb [aria-hidden="true"] { display: none; }

.breadcrumb a,
.breadcrumb-current {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.breadcrumb a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.breadcrumb-current {
  color: var(--purple-dark);
  border-color: rgba(124, 58, 237, 0.22);
  background: var(--purple-soft);
}

.breadcrumb--inline {
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  overflow: hidden;
}

.breadcrumb--inline > *:not(:first-child)::before {
  content: "/";
  margin: 0 10px;
  color: var(--muted);
  font-weight: 400;
}

.breadcrumb--inline a,
.breadcrumb--inline .breadcrumb-current {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  line-height: 1.4;
  font-size: 0.875rem;
}

.breadcrumb--inline a {
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.breadcrumb--inline a:hover {
  color: var(--purple-dark);
}

.breadcrumb--inline .breadcrumb-current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}

.list-toolbar {
  margin-bottom: 28px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.list-breadcrumb {
  margin: 0;
}

.article-breadcrumb {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ── Article detail ── */
.detail-body.section {
  padding-top: 40px;
  padding-bottom: 16px;
  background: transparent;
}

.list-page { background: transparent; }

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.article-content.prose {
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.article-content.prose,
.article-content.prose * {
  font-family: var(--font-sans) !important;
}

.article-content.prose h1,
.article-content.prose h2,
.article-content.prose h3,
.article-content.prose h4,
.article-content.prose h5,
.article-content.prose h6 {
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--text) !important;
}

.article-content.prose h2 {
  margin-top: 1.75em;
  font-size: 1.45rem !important;
  padding-left: 14px;
  border-left: 3px solid var(--purple);
}

.article-content.prose p,
.article-content.prose ul,
.article-content.prose ol,
.article-content.prose li {
  margin: 0 0 1em;
  color: var(--text-soft) !important;
}

.article-content.prose a:not(.btn) {
  color: var(--accent) !important;
}

.article-content.prose strong,
.article-content.prose b {
  color: var(--text) !important;
}

.article-content.prose img {
  border-radius: var(--radius);
  margin: 1.25em 0;
  border: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2em 0 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

.article-tags .btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.article-tags .btn-ghost {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--purple-dark);
}

.article-tags .btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: #ffffff !important;
  transform: none;
  box-shadow: none;
}

.taglist-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 0 16px;
}

.taglist-tags .btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.taglist-tags .btn-ghost {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--purple-dark);
}

.taglist-tags .btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: #ffffff !important;
  transform: none;
  box-shadow: none;
}

.section.related-articles {
  padding-top: 8px;
  padding-bottom: 56px;
  background: transparent;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--hero-gradient-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.32);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--purple-dark);
  background: var(--purple-soft);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.page-link-nav {
  min-height: 42px;
  padding: 8px 16px;
}

.page-link-current {
  border-color: var(--purple);
  color: #ffffff;
  background: var(--purple);
  cursor: default;
}

.page-ellipsis {
  min-width: 24px;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 42px;
  text-align: center;
}

.page-link:hover {
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--purple-dark);
  box-shadow: var(--shadow-sm);
}

.page-status {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Empty state ── */
.empty-state {
  padding: 56px 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
}

/* ── Footer ── */
.site-footer {
  margin-top: 0;
  padding: 56px 0 max(32px, env(safe-area-inset-bottom));
  background: var(--hero-gradient-deep);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-text strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #ffffff;
}

.footer-brand-text small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-brand p,
.footer-about {
  margin: 18px 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.footer-links h4 {
  margin: 4px 0 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.footer-topic-list {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li { margin-top: 0; }

.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-transform: capitalize;
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-friends {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-friends h4 {
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.footer-friend-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-friend-list li {
  display: inline-flex;
  align-items: center;
}

.footer-friend-list li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.28);
}

.footer-friend-list a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-transform: capitalize;
  transition: color 0.2s, transform 0.2s;
}

.footer-friend-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
}

.footer-bottom-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-bottom-nav a:hover {
  color: #ffffff;
}

.about-page {
  padding-top: 40px;
  padding-bottom: 64px;
  background: transparent;
}

.about-content ul {
  padding-left: 1.25em;
}

.about-signoff {
  margin-top: 1.75em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.sitemap-content .sitemap-block + .sitemap-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.sitemap-content .sitemap-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.sitemap-content .sitemap-block h2 a {
  color: var(--text);
  text-decoration: none;
}

.sitemap-content .sitemap-block h2 a:hover {
  color: var(--accent);
}

.sitemap-list {
  margin: 0;
  padding-left: 1.25em;
}

.sitemap-list li + li {
  margin-top: 0.45rem;
}

.sitemap-empty {
  margin: 0;
  color: var(--muted);
}

/* ── Responsive ── */
@media (min-width: 1440px) {
  .container {
    width: var(--content-width-wide);
  }

  .article-grid--cols-2 {
    gap: 22px;
  }
}

@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taglist-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-topic-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid var(--line);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .main-nav { display: flex; }

  body.has-banner .main-nav {
    background: #ffffff;
  }

  body.has-banner .main-nav .nav-link,
  body.has-banner .main-nav .nav-dropdown-btn {
    color: var(--text-soft);
  }

  .nav-link,
  .nav-dropdown-btn {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .brand-text strong {
    font-size: 0.8125rem;
  }

  .brand-text small {
    display: none;
  }

  .container {
    width: min(var(--content-width), calc(100% - 24px));
  }

  .section-head--related,
  .section-head--home {
    padding: 18px 20px;
  }

  .nav-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    margin-top: 4px;
  }

  .nav-dropdown.is-open .nav-dropdown-panel { display: block; }

  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-link {
    align-self: flex-start;
  }

  .banner-hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }

  .banner-hero--home {
    min-height: 340px;
  }

  .banner-hero--page,
  .banner-hero--article {
    min-height: 260px;
  }

  .article-content.prose {
    padding: 24px 20px;
  }

  .list-toolbar {
    padding: 14px 18px;
  }

  .breadcrumb--inline {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .breadcrumb--inline .breadcrumb-current {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex: 1 1 100%;
  }

  .article-card-body { padding: 22px; }
}
