@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  --color-bg:        #F6F8F2;
  --color-dark: #45264c;
  --color-mid: #8f6f92;
  --color-accent: #a96faf;
  --color-accent-lt: #c19cc9;
  --color-white:     #FFFFFF;
  --color-border: #e5d8e6;
  --color-border-dk: #c6b5cb;
  --color-text: #3f2f43;
  --color-muted: #7a6b7c;
  --color-light-sec: #f0e5f1;

  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;

  --max-w:     1280px;
  --header-h:  72px;
  --radius:    0px;
  --shadow-sm: 0 1px 4px rgba(48,67,52,0.08);
  --shadow-md: 0 4px 16px rgba(48,67,52,0.12);
  --shadow-lg: 0 8px 32px rgba(48,67,52,0.16);

  --transition: 0.22s ease;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-lt); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: 1rem; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

/* ===========================
   LAYOUT UTILITIES
=========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1400px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 110px 0; }
.section--dark { background: var(--color-dark); }
.section--mid  { background: var(--color-mid); }
.section--white { background: var(--color-white); }
.section--light { background: var(--color-light-sec); }

.divider { border: none; border-top: 1px solid var(--color-border); margin: 0; }
.divider--dark { border-color: rgba(255,255,255,0.1); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: 1fr 2fr; gap: 3rem; }
.grid-21 { grid-template-columns: 2fr 1fr; gap: 3rem; }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-start  { align-items: flex-start; }
.flex-gap-1  { gap: 0.5rem; }
.flex-gap-2  { gap: 1rem; }
.flex-gap-3  { gap: 1.5rem; }
.flex-wrap   { flex-wrap: wrap; }
.flex-col    { flex-direction: column; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-white  { color: var(--color-white) !important; }
.text-dark   { color: var(--color-dark) !important; }
.text-small  { font-size: 0.85rem; }
.text-xs     { font-size: 0.75rem; letter-spacing: 0.05em; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.35rem; }
.font-serif  { font-family: var(--font-serif); }
.fw-300 { font-weight: 300; }
.fw-600 { font-weight: 600; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: #89698e;
  border-color: #86698e;
  color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--color-dark); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.95rem 2.5rem; font-size: 1rem; }

/* ===========================
   HEADER / NAV
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.logo-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--color-white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--color-accent);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition);
  text-decoration: none;
  font-weight: 400;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: rgba(127, 131, 174, 0.28); color: var(--color-white); }

.nav-chevron {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0.6;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}

/* ===========================
   MOBILE NAV
=========================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--color-dark);
  z-index: 99;
  overflow-y: auto;
  padding: 1.5rem 2rem 3rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--color-white); }
.mobile-nav .mobile-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(52, 39, 56, 0.98) 45%, rgba(54, 39, 56, 0.62) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 100px 0 90px;
}
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ===========================
   SECTION HEADERS
=========================== */
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.section-kicker--white { color: rgba(255,255,255,0.6); }
.section-title { margin-bottom: 0.75rem; }
.section-lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.7;
}
.section-lead--center { margin: 0 auto; }
.section-header--dark .section-title { color: var(--color-white); }
.section-header--dark .section-lead { color: rgba(255,255,255,0.6); }

/* ===========================
   CARDS
=========================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-img--tall { height: 260px; }
.card-img--short { height: 160px; }

.card-body { padding: 1.5rem; }
.card-body--lg { padding: 2rem; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  font-family: var(--font-sans);
}
.card-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--color-dark);
}
.card-excerpt {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-link::after {
  content: '→';
  transition: transform var(--transition);
}
.card-link:hover::after { transform: translateX(4px); }

/* Segment / topic cards */
.segment-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition);
}
.segment-card:hover { box-shadow: var(--shadow-md); }
.segment-icon {
  width: 44px; height: 44px;
  background: rgba(174, 127, 127, 0.12);
  border: 1px solid rgba(174, 127, 127, 0.24);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

/* ===========================
   ARTICLE / CONTENT
=========================== */
.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.article-body h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.article-body p  { margin-bottom: 1.25rem; line-height: 1.8; font-size: 1rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: revert;
}
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--color-light-sec);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-dark);
  line-height: 1.65;
}
.article-body figure { margin: 2rem 0; }
.article-body figure img { width: 100%; }
.article-body figcaption {
  font-size: 0.8rem;
  color: var(--color-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.infobox {
  background: var(--color-light-sec);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
}
.infobox strong { color: var(--color-dark); }

/* ===========================
   SIDEBAR
=========================== */
.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.sidebar-widget-head {
  padding: 0.85rem 1.25rem;
  background: var(--color-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-sans);
  border-bottom: 2px solid var(--color-accent);
}
.sidebar-widget-body { padding: 1.25rem; }
.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--color-accent); }
.sidebar-link-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ===========================
   TAGS / BADGES
=========================== */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.tag:hover,
.tag.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border-dk); }

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  background: var(--color-dark);
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168, 127, 174, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.page-hero-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  line-height: 1.7;
}

/* ===========================
   FORMS
=========================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.45rem;
}
.form-label--white { color: rgba(255,255,255,0.7); }
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border-dk);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(168, 127, 174, 0.18);
}
.form-control::placeholder { color: #878a97; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

/* Success message */
.success-msg {
  display: none;
  background: #edf5e8;
  border: 1px solid #cfb8d2;
  border-left: 3px solid #967a9a;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #513554;
  margin-top: 1rem;
}
.success-msg.visible { display: block; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #322434;
  border-top: 3px solid var(--color-accent);
}
.footer-main {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand { }
.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}
.footer-logo-mark {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--color-accent);
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-white);
  font-size: 1rem;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 1rem;
}
.footer-address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 1.25rem;
  font-style: normal;
}
.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-policy-links {
  display: flex;
  gap: 1.5rem;
}
.footer-policy-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-policy-links a:hover { color: rgba(255,255,255,0.7); }

/* ===========================
   TOPIC NAV (horizontal scroll tabs)
=========================== */
.topic-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.topic-nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.topic-nav-inner::-webkit-scrollbar { display: none; }
.topic-tab {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.topic-tab:hover { color: var(--color-dark); }
.topic-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 3rem;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.page-num:hover,
.page-num.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ===========================
   ACCORDION
=========================== */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  transition: color var(--transition);
}
.accordion-trigger:hover { color: var(--color-accent); }
.accordion-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border-dk);
  color: var(--color-muted);
  transition: transform var(--transition);
  font-size: 0.85rem;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}
.accordion-item.open .accordion-body { display: block; }

/* ===========================
   FEATURE LIST
=========================== */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1.6;
}
.feature-list li:last-child { border-bottom: none; }
.feature-check {
  width: 18px; height: 18px;
  background: rgba(127, 142, 174, 0.12);
  border: 1px solid rgba(127, 135, 174, 0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===========================
   TIMELINE
=========================== */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 0;
  width: 1px;
  background: var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 7px; height: 7px;
  background: var(--color-accent);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 1px var(--color-accent);
  transform: translateX(-3px);
}
.timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}
.timeline-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}
.timeline-text {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ===========================
   COOKIE BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--color-dark);
  border-top: 2px solid var(--color-accent);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(48,67,52,0.24);
}
.cookie-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
  min-width: 200px;
}
.cookie-text a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-12, .grid-21 { grid-template-columns: 1fr; gap: 2rem; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
.hero-inner { padding: 64px 0 56px; }
  .page-hero { padding: 48px 0 40px; }
.cookie-banner { flex-direction: column; padding: 1rem; }
}
@media (max-width: 420px) {
}

/* auto-fix structural */
.footer-col { }
.footer-col h5,.footer-col .footer-heading{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;margin-bottom:14px;opacity:.65;}
.footer-col ul{padding:0;list-style:none}.footer-col li{margin-bottom:7px}
.footer-brand { }
.footer-brand .logo-text,.footer-brand .site-name{color:#fff}
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:#2f4536;color:#fff;padding:16px 24px;z-index:9999;display:none}
.cookie-banner.visible{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* Content template shared helpers */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}
.sidebar-small-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.faq-summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.policy-summary-grid {
  align-items: stretch;
  margin-bottom: 2.5rem;
}
.policy-summary-grid .infobox h2 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.policy-summary-grid .infobox ul {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}
.policy-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.policy-section:last-child {
  border-bottom: 0;
}
.policy-section h2 {
  margin-bottom: 0.9rem;
}
