/* ============================================================
   ESPERTO SUPPORT — stylesheet
   Brandguide 1.1 (Studio Pelé): Inter · blue #3290ce · orange #f16529 ·
   black / black 10% · blue tints in 20% steps (non-marketing use) ·
   secondary green #009345 and yellow #f9ec31 for accents only.
   ============================================================ */

:root {
  --blue: #3290ce;
  --blue-80: #5ba6d8;
  --blue-60: #84bce2;
  --blue-40: #add3eb;
  --blue-20: #d6e9f5;
  --blue-10: #ebf4fa;
  --blue-dark: #2676ad;          /* hover state for links and buttons, derived */
  --orange: #f16529;
  --orange-dark: #d9541c;
  --green: #009345;
  --yellow: #f9ec31;
  --black: #111111;
  --black-70: #4d4d4d;
  --black-50: #808080;
  --black-30: #b3b3b3;
  --black-10: #e6e6e6;
  --black-5: #f3f3f3;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1160px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(17,17,17,0.06), 0 4px 14px rgba(17,17,17,0.05);
  --shadow-md: 0 6px 24px rgba(17,17,17,0.10);
  --transition: 0.18s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv05', 'ss01'; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

h1 { font-size: 2.1rem; font-weight: 600; line-height: 1.2; color: var(--blue); letter-spacing: -0.01em; margin-bottom: 0.75rem; }
h2 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; color: var(--blue); margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; color: var(--black); margin: 1.25rem 0 0.5rem; }
h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--black-70); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.page-intro { font-size: 1.1rem; color: var(--black-70); max-width: 42rem; margin-bottom: 1.5rem; }
.section-heading { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--black-50); margin: 0 0 1rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.3rem; font-size: 0.95rem; font-weight: 500; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: all var(--transition); line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-secondary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ---- Preview banner ---- */
.preview-banner { background: var(--yellow); color: var(--black); font-size: 0.85rem; font-weight: 500; text-align: center; padding: 0.45rem 1rem; }

/* ---- Header ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--black-10); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; }
.logo-link { display: flex; align-items: baseline; gap: 0.45rem; flex-shrink: 0; }
.logo { height: 26px; width: auto; }
.logo-suffix { font-size: 1.05rem; font-weight: 500; color: var(--black-50); letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 0.25rem; align-items: center; }
.main-nav a { color: var(--black-70); font-weight: 500; font-size: 0.95rem; padding: 0.45rem 0.75rem; border-radius: var(--radius-sm); transition: all var(--transition); }
.main-nav a:hover { color: var(--blue); background: var(--blue-10); }
.main-nav a.active { color: var(--blue); background: var(--blue-20); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.search-toggle, .mobile-menu-toggle { background: none; border: none; cursor: pointer; padding: 0.5rem; border-radius: var(--radius-sm); color: var(--black-70); display: flex; transition: all var(--transition); }
.search-toggle:hover, .mobile-menu-toggle:hover { color: var(--blue); background: var(--blue-10); }
.mobile-menu-toggle { display: none; }
.lang-switch select { font: inherit; font-size: 0.9rem; color: var(--black-70); border: 1px solid var(--black-10); border-radius: var(--radius-sm); padding: 0.35rem 0.5rem; background: var(--white); }

.search-overlay { display: none; background: var(--white); border-top: 1px solid var(--black-10); border-bottom: 1px solid var(--black-10); padding: 1rem 0; position: absolute; left: 0; right: 0; top: 100%; box-shadow: var(--shadow-md); }
.search-overlay.open { display: block; }
.search-form-header { display: flex; gap: 0.5rem; align-items: center; }
.search-input-header { flex: 1; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; border: 2px solid var(--black-10); border-radius: var(--radius-sm); outline: none; }
.search-input-header:focus { border-color: var(--blue); }
.search-close { background: none; border: none; font-size: 1.6rem; color: var(--black-50); cursor: pointer; padding: 0 0.5rem; }
.search-suggestions { display: none; position: relative; background: var(--white); border: 1px solid var(--black-10); border-radius: var(--radius-sm); margin-top: 0.5rem; box-shadow: var(--shadow-md); overflow: hidden; text-align: left; }
.suggestion-item { display: flex; flex-direction: column; padding: 0.7rem 1rem; border-bottom: 1px solid var(--black-5); color: var(--black); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--blue-10); }
.suggestion-item strong { font-weight: 600; color: var(--blue); }
.suggestion-item span { font-size: 0.85rem; color: var(--black-50); }

/* ---- Hero (home) ---- */
.hero { position: relative; overflow: hidden; background: var(--blue-10); border-bottom: 1px solid var(--black-10); }
.hero-inner { position: relative; padding: 4.5rem 1.5rem 3.5rem; max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 0.75rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--black-70); max-width: 38rem; margin: 0 auto 2rem; }
.hero-dots { position: absolute; right: -40px; top: -20px; width: 420px; height: 420px; opacity: 0.9; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, var(--blue-40) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 50%, var(--blue-20) 0 5px, transparent 6px);
  background-size: 64px 64px, 32px 32px;
  background-position: 16px 16px, 0 0;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 65%);
          mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 65%); }
.hero-search-wrapper { display: flex; align-items: center; background: var(--white); border: 2px solid var(--black-10); border-radius: var(--radius); padding: 0.35rem 0.35rem 0.35rem 1rem; box-shadow: var(--shadow); transition: border-color var(--transition); }
.hero-search-wrapper:focus-within { border-color: var(--blue); }
.hero-search-icon { color: var(--black-30); flex-shrink: 0; }
.hero-search-input { flex: 1; border: none; outline: none; font: inherit; font-size: 1.05rem; padding: 0.6rem 0.75rem; min-width: 0; }
.hero-suggestions { margin-top: 0.5rem; }
.hero-note { font-size: 0.9rem; color: var(--black-50); margin: 1.25rem 0 0; }

/* ---- Cards (sections) ---- */
.section-grid-wrap { padding: 3rem 0 1rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--black-10); border-radius: var(--radius); color: var(--black); transition: all var(--transition); position: relative; }
.card:hover { border-color: var(--blue-60); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--black); }
.card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-20); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.card h3 { margin: 0; color: var(--blue); font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.93rem; color: var(--black-70); flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--black-50); }

/* ---- Highlights (home) ---- */
.highlights { padding: 2rem 0; }
.highlight-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.highlight-list a { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--black-10); border-radius: var(--radius-sm); color: var(--black); transition: all var(--transition); }
.highlight-list a:hover { border-color: var(--blue-60); background: var(--blue-10); }
.highlight-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-10); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.highlight-icon svg { width: 20px; height: 20px; }
.highlight-list strong { display: block; font-weight: 600; color: var(--blue); line-height: 1.3; }
.highlight-list small { color: var(--black-50); font-size: 0.8rem; }

/* ---- Callout ---- */
.participants-callout { padding: 2rem 0 4rem; }
.callout { display: flex; gap: 1.5rem; align-items: flex-start; padding: 2rem; background: var(--blue-10); border-radius: var(--radius); border-left: 4px solid var(--blue); }
.callout-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.callout h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.callout p { color: var(--black-70); }

/* ---- Generic page ---- */
.page { padding: 2rem 1.5rem 4rem; }
.page-narrow { max-width: 820px; }
.breadcrumb { font-size: 0.85rem; color: var(--black-50); margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumb-sep { color: var(--black-30); }
.breadcrumb-current { color: var(--black-70); }
.page-header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; }
.page-header-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-20); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.2rem; }

/* ---- Section page: list of pages ---- */
.page-list { list-style: none; display: grid; gap: 0.9rem; }
.page-list-item a { display: block; padding: 1.25rem 1.5rem; border: 1px solid var(--black-10); border-radius: var(--radius); color: var(--black); transition: all var(--transition); }
.page-list-item a:hover { border-color: var(--blue-60); box-shadow: var(--shadow); }
.page-list-item h3 { margin: 0 0 0.25rem; color: var(--blue); }
.page-list-item p { margin: 0 0 0.6rem; color: var(--black-70); font-size: 0.95rem; }
.unit-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.unit-chip { font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--black-5); color: var(--black-70); }
.unit-chip-task { background: var(--blue-20); color: var(--blue-dark); }
.unit-chip-issue { background: #fde6dc; color: var(--orange-dark); }

/* ---- Article ---- */
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; }
.article-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.75rem; }
.toc-title { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--black-50); margin-bottom: 0.5rem; }
.toc-title a { color: var(--black-50); }
.toc ol { list-style: none; border-left: 2px solid var(--black-10); }
.toc li a { display: block; padding: 0.3rem 0 0.3rem 0.85rem; font-size: 0.88rem; color: var(--black-70); border-left: 2px solid transparent; margin-left: -2px; line-height: 1.35; }
.toc li a:hover, .toc li.current a { color: var(--blue); border-left-color: var(--blue); }
.toc li.current a { font-weight: 600; }
.article { max-width: 760px; min-width: 0; }
.verified-note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--green); background: #e6f4ec; padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1.5rem; }
.verified-note svg { width: 16px; height: 16px; }
.draft-note { font-size: 0.9rem; color: var(--black-70); background: #fdf9d6; border-left: 4px solid var(--yellow); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }

.article-content { font-size: 1rem; }
.article-content .unit-heading { font-size: 1.35rem; margin: 2.75rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--black-10); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.article-content .unit-heading:first-child { border-top: none; padding-top: 0; margin-top: 0.5rem; }
.article-content .unit-heading.target { background: linear-gradient(90deg, var(--blue-10), transparent); margin-left: -0.75rem; padding-left: 0.75rem; border-radius: var(--radius-sm); }
.article-content .unit-heading::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.article-content .unit-issue::before { background: var(--orange); }
.article-content .unit-concept::before { background: var(--blue-60); }
.article-content h3 { font-size: 1.05rem; }
.article-content p, .article-content ul, .article-content ol { margin-bottom: 1rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.45rem; }
.article-content ol { counter-reset: step; list-style: none; padding-left: 0; }
.article-content ol > li { counter-increment: step; position: relative; padding-left: 2.4rem; margin-bottom: 0.65rem; }
.article-content ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
/* Screen labels are written in bold (style guide); a faint tint sets them apart from emphasis */
.article-content strong { font-weight: 600; color: var(--black); background: var(--black-5); padding: 0 0.15em; margin: 0 -0.05em; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.93rem; }
.article-content th, .article-content td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--black-10); vertical-align: top; }
.article-content th { font-weight: 600; color: var(--black-70); background: var(--black-5); }
.article-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--black-5); padding: 0.1rem 0.35rem; border-radius: 3px; }
.article-content blockquote { border-left: 4px solid var(--blue-40); padding: 0.5rem 1rem; color: var(--black-70); background: var(--blue-10); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.article-content hr { border: none; border-top: 1px solid var(--black-10); margin: 1.5rem 0; }
.article-content img { border: 1px solid var(--black-10); border-radius: var(--radius-sm); margin: 0.5rem 0 1rem; }
.unit-badge { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 999px; vertical-align: middle; }
.unit-badge-draft { background: var(--yellow); color: var(--black); }

.article-video { margin: 1rem 0 1.5rem; }
.article-video__frame { position: relative; padding-top: 56.25%; background: var(--black-5); border-radius: var(--radius-sm); overflow: hidden; }
.article-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-video figcaption { font-size: 0.85rem; color: var(--black-50); margin-top: 0.4rem; }

.article-pager { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 2rem; }
.article-pager a { display: flex; flex-direction: column; padding: 0.9rem 1.1rem; border: 1px solid var(--black-10); border-radius: var(--radius-sm); max-width: 48%; font-weight: 500; transition: all var(--transition); }
.article-pager a:hover { border-color: var(--blue-60); background: var(--blue-10); }
.article-pager small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--black-50); }
.pager-next { margin-left: auto; text-align: right; }

.helpful { background: var(--black-5); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 2rem; }
.helpful h2 { margin: 0 0 0.3rem; font-size: 1.1rem; color: var(--black); }
.helpful p { color: var(--black-70); font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq-filter { margin: 0 0 1.5rem; }
.faq-filter input { width: 100%; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; border: 2px solid var(--black-10); border-radius: var(--radius-sm); outline: none; }
.faq-filter input:focus { border-color: var(--blue); }
.faq-group h2 { font-size: 1.1rem; margin-top: 1.75rem; }
.faq-list { list-style: none; }
.faq-item { border-bottom: 1px solid var(--black-10); }
.faq-item a { display: block; padding: 0.7rem 0.25rem; color: var(--black); font-weight: 500; }
.faq-item a:hover { color: var(--blue); }
.faq-item a::before { content: '→'; color: var(--orange); margin-right: 0.6rem; }

/* ---- Search page ---- */
.search-form-page { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-input-page { flex: 1; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; border: 2px solid var(--black-10); border-radius: var(--radius-sm); outline: none; }
.search-input-page:focus { border-color: var(--blue); }
.search-count { color: var(--black-50); font-size: 0.9rem; }
.search-results-list { list-style: none; display: grid; gap: 0.75rem; }
.search-result-item { display: block; padding: 1rem 1.25rem; border: 1px solid var(--black-10); border-radius: var(--radius-sm); color: var(--black); transition: all var(--transition); }
.search-result-item:hover { border-color: var(--blue-60); box-shadow: var(--shadow); }
.search-result-crumb { font-size: 0.78rem; color: var(--black-50); }
.search-result-item h3 { margin: 0.15rem 0 0.3rem; color: var(--blue); font-size: 1.05rem; }
.search-snippet { margin: 0; font-size: 0.92rem; color: var(--black-70); }
.search-no-results { padding: 2rem 0; }

/* ---- Contact ---- */
.contact-direct { display: flex; align-items: center; gap: 0.5rem; color: var(--black-70); margin-bottom: 2rem; }
.contact-direct svg { width: 18px; height: 18px; color: var(--blue); }
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: grid; gap: 0.35rem; }
.form-group label { font-weight: 500; font-size: 0.92rem; }
.required { color: var(--orange); }
.form-group input, .form-group select, .form-group textarea { font: inherit; font-size: 1rem; padding: 0.7rem 0.9rem; border: 2px solid var(--black-10); border-radius: var(--radius-sm); outline: none; background: var(--white); transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; }
.contact-suggestions { background: var(--blue-10); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.contact-suggestions h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.suggestion-results { display: grid; gap: 0.5rem; }
.suggestion-card { display: block; background: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--black-10); color: var(--black); }
.suggestion-card:hover { border-color: var(--blue-60); }
.suggestion-card strong { color: var(--blue); }
.suggestion-card p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--black-70); }
.suggestion-dismiss { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--black-50); }
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.95rem; }
.alert-error { background: #fde6dc; color: var(--orange-dark); border-left: 4px solid var(--orange); }
.contact-success { text-align: center; padding: 3rem 1rem; }
.contact-success svg { width: 56px; height: 56px; color: var(--green); margin: 0 auto 1rem; }
.contact-success h2 { margin-top: 0; }

/* ---- Videos ---- */
.videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.video-embed { position: relative; padding-top: 56.25%; background: var(--black-5); border-radius: var(--radius-sm); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; border: none; padding: 0; cursor: pointer; background: var(--black); }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--transition); }
.video-placeholder:hover img { opacity: 1; }
.video-play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.video-duration { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(17,17,17,0.75); color: var(--white); font-size: 0.75rem; padding: 0.15rem 0.45rem; border-radius: 4px; }
.video-title { font-size: 1rem; margin: 0.6rem 0 0; }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 3rem 1rem 4rem; }
.error-logo { width: 140px; margin: 0 auto 1.5rem; opacity: 0.9; }
.error-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---- Footer ---- */
.site-footer { background: var(--black-5); border-top: 1px solid var(--black-10); margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3rem 1.5rem 2rem; }
.footer-logo { width: 150px; margin-bottom: 1rem; }
.footer-tagline { color: var(--black-70); font-size: 0.93rem; max-width: 24rem; }
.footer-col a { display: block; color: var(--black-70); font-size: 0.93rem; padding: 0.2rem 0; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--black-10); padding: 1rem 1.5rem; font-size: 0.82rem; color: var(--black-50); }
.footer-bottom p { margin: 0; }

/* ---- Chat widget ---- */
#chatWidget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; font-family: var(--font); }
.chat-fab { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--blue); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: background var(--transition); }
.chat-fab:hover { background: var(--blue-dark); }
.chat-fab-close { display: none; }
#chatWidget.open .chat-fab-icon { display: none; }
#chatWidget.open .chat-fab-close { display: block; }
.chat-window { display: none; position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 2.5rem); height: 520px; max-height: calc(100vh - 7rem); background: var(--white); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(17,17,17,0.18); border: 1px solid var(--black-10); flex-direction: column; overflow: hidden; }
#chatWidget.open .chat-window { display: flex; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1rem; background: var(--blue); color: var(--white); }
.chat-header-info { display: flex; align-items: center; gap: 0.7rem; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--orange); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.chat-header-title { font-weight: 600; font-size: 0.95rem; }
.chat-header-status { font-size: 0.78rem; opacity: 0.85; }
.chat-header-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--black-5); }
.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }
.chat-bubble { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.5; background: var(--white); border: 1px solid var(--black-10); }
.chat-message.user .chat-bubble { background: var(--blue); color: var(--white); border-color: var(--blue); }
.chat-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--black-30); animation: blink 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; } .chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-input-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--black-10); background: var(--white); }
.chat-input { flex: 1; font: inherit; font-size: 0.95rem; padding: 0.6rem 0.8rem; border: 2px solid var(--black-10); border-radius: var(--radius-sm); outline: none; }
.chat-input:focus { border-color: var(--blue); }
.chat-send { width: 42px; border: none; border-radius: var(--radius-sm); background: var(--orange); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .article-aside, .article-pager, .helpful, #chatWidget, .preview-banner { display: none !important; }
  .article-layout { display: block; }
  a { color: var(--black); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 860px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--black-10); flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: 2; border-top: 1px solid var(--black-10); padding-top: 1.5rem; }
  .article { order: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-inner { padding: 3rem 1.5rem 2.5rem; }
  .hero-dots { width: 260px; height: 260px; right: -60px; }
  .callout { flex-direction: column; }
  .page-header { flex-direction: column; gap: 0.75rem; }
}
@media (max-width: 480px) {
  .hero-search-wrapper { flex-wrap: wrap; padding: 0.5rem; }
  .hero-search-icon { display: none; }
  .hero-search-input { width: 100%; }
  .hero-search-btn { width: 100%; justify-content: center; }
  .article-pager { flex-direction: column; }
  .article-pager a { max-width: 100%; }
}
