:root {
  --brand-primary: #5b48d9;
  --brand-primary-dark: #4433b7;
  --brand-accent: #047d73;
  --surface: #ffffff;
  --surface-soft: #f6f5ff;
  --text: #202033;
  --text-muted: #5d5d70;
  --border: #dcd9ef;
  --shadow: 0 14px 36px rgba(40, 33, 93, .10);
  --radius: 1rem;
  --shell: 72rem;
  --font-size-xs: .875rem;
  --font-size-sm: .9375rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-body, body.public-page { margin: 0; color: var(--text); background: #fbfbfe; font-family: Arial, sans-serif; font-size: var(--font-size-base); line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-primary-dark); text-underline-offset: .18em; }
a:hover { color: var(--brand-primary); }
:focus-visible { outline: 3px solid #04a997; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: .5rem; padding: .7rem 1rem; border-radius: .5rem; background: var(--text); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 50; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border); }
.site-nav { max-width: var(--shell); min-height: 5.25rem; margin: auto; padding: .5rem clamp(1rem, 3vw, 2rem); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; margin-right: auto; flex: 0 0 auto; color: var(--text); font-size: 1.35rem; font-weight: 900; letter-spacing: -.055em; text-decoration: none; }
.brand__dot, .footer-brand__dot { width: .68rem; height: .68rem; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #04d9c4; box-shadow: 0 0 0 .28rem rgba(4,217,196,.13); }
.nav-links { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.35rem); }
.nav-links > a { color: var(--text); font-size: var(--font-size-base); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-links > a[aria-current="page"] { color: var(--brand-primary); box-shadow: inset 0 -3px 0 var(--brand-primary); }
.nav-links .button-primary { color: #fff; }
.nav-toggle { display: none; min-width: 3rem; min-height: 3rem; border: 1px solid var(--border); border-radius: .7rem; background: #fff; color: var(--text); font-size: var(--font-size-base); font-weight: 700; }
.public-main { min-height: 52vh; }
.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 1rem 2rem; background: linear-gradient(145deg, var(--surface-soft), #fff); text-align: center; }
.page-hero__inner, .content-shell { width: min(var(--shell), calc(100% - 2rem)); margin-inline: auto; }
.page-hero__inner { max-width: 48rem; }
.page-hero h1 { margin: 0 0 1rem; color: var(--text); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; }
.page-hero p { margin: 0 auto; color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.content-shell { padding-block: clamp(2rem, 5vw, 4rem); }
.content-shell--narrow { max-width: 48rem; }
.surface-card { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.breadcrumb { margin: 0 0 1.5rem; color: var(--text-muted); font-size: .95rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #9292a4; }
.question-list { display: grid; gap: 1rem; }
.question-list details { overflow: clip; border: 1px solid var(--border); border-radius: .9rem; background: #fff; box-shadow: 0 5px 18px rgba(40, 33, 93, .055); }
.question-list details[open] { border-color: #c7c1ed; box-shadow: 0 10px 24px rgba(40, 33, 93, .09); }
.question-list summary { min-height: 3.5rem; padding: 1rem 3rem 1rem 1.25rem; cursor: pointer; color: var(--brand-primary-dark); font-weight: 750; }
.question-list summary h2, .question-list summary h3 { display: inline; margin: 0; font-size: 1.08rem; }
.question-list details > p { max-width: 68ch; margin: 0; padding: 0 1.25rem 1.35rem; color: var(--text); text-align: left; white-space: pre-line; overflow-wrap: anywhere; }
.questions-page main { max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.questions-shell { max-width: 60rem; }
.questions-page .questions-intro { max-width: 68ch; margin: 0 auto; padding: 1.25rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-soft); text-align: left; }
.questions-page .button-wrapper { margin: 1.25rem 0 2.5rem; text-align: center; }
.questions-page .button-wrapper .button-primary { display: inline-flex; max-width: 100%; justify-content: center; white-space: normal; text-align: center; }
.questions-page .faq-title { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.question-tools { margin-bottom: 1.5rem; padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid var(--border); border-radius: .9rem; background: #fff; }
.question-tools label { display: block; margin-bottom: .5rem; font-size: var(--font-size-base); font-weight: 750; }
.question-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.question-search-row input { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid #aaa5c5; border-radius: .65rem; color: var(--text); font: inherit; font-size: var(--font-size-base); }
.question-search-row button { min-height: 3rem; }
.question-results-status { min-height: 1.5em; margin: .65rem 0 0; color: var(--text-muted); font-size: .95rem; }
.question-empty-state { margin: 1.5rem 0 0; padding: 1.25rem; border: 1px dashed #aaa5c5; border-radius: .8rem; background: var(--surface-soft); text-align: center; }
.article-page main, main.article-page { width: min(52rem, calc(100% - 2rem)); margin: 2rem auto; padding: clamp(1.2rem, 4vw, 2.6rem); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.article-title { max-width: 24ch; margin-inline: auto; color: var(--text); font-size: clamp(2rem, 4.8vw, 3.15rem); line-height: 1.12; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.article-page article h2, main.article-page h2 { color: var(--brand-primary-dark); margin-top: 2rem; }
.article-page .breadcrumb-nav { width: min(52rem, calc(100% - 2rem)); margin: 1.5rem auto 0; padding: .8rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem; border-radius: .7rem; background: var(--surface-soft); color: var(--text-muted); }
.article-page .breadcrumb-nav a { color: var(--brand-primary-dark); }
.article-page article > img, .article-page .full-width-image, .article-page .full-width-image-inside { width: 100%; max-height: 32rem; object-fit: cover; border-radius: .8rem; }
.article-page .faq-section { margin-top: 2.5rem; }
.article-page .faq-item { margin-bottom: .8rem; padding: 1rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--surface-soft); }
.article-page .faq-item summary { cursor: pointer; color: var(--brand-primary-dark); font-weight: 700; }
.articles-index-page main { width: min(var(--shell), calc(100% - 2rem)); margin: auto; padding-block: clamp(2rem, 5vw, 4rem); }
.articles-index-page main > h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3rem); text-align: center; }
.articles-index-page main > p { text-align: center; }
.articles-index-page .flex { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1.5rem 0 2rem; }
.articles-index-page .filter-button { min-height: 2.75rem; padding: .55rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: var(--font-size-base); font-weight: 700; cursor: pointer; }
.articles-index-page .filter-button.active { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }
.articles-index-page .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.articles-index-page .article-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.articles-index-page .article-card > a { display: block; height: 100%; color: var(--text); text-decoration: none; }
.articles-index-page .article-card img { width: 100%; height: 14rem; object-fit: cover; }
.articles-index-page .article-card div { padding: 1.25rem; }
.articles-index-page .article-card h2, .article-card__title { margin: 0 0 .6rem; color: var(--brand-primary-dark); font-size: 1.2rem; line-height: 1.35; text-wrap: balance; overflow-wrap: anywhere; }
.articles-index-page .article-card p { margin: 0; color: var(--text-muted); }
.site-footer { margin-top: 4rem; background: #26233b; color: #f7f6ff; }
.footer-shell { width: min(var(--shell), calc(100% - 2rem)); margin: auto; padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.footer-brand strong { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-size: 1.3rem; letter-spacing: -.035em; }
.footer-shell p { margin: .35rem 0 0; color: #d7d4e8; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.footer-group h2 { margin: 0 0 .55rem; color: #fff; font-size: 1rem; line-height: 1.35; }
.footer-shell a { min-height: 2.75rem; display: inline-flex; align-items: center; color: #fff; }
.footer-social a { gap: .5rem; }
.footer-social svg { flex: 0 0 auto; }
.footer-copyright { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2); }
.status-card { text-align: center; }
.status-code { color: var(--brand-primary); font-weight: 800; }
.faq-more { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.faq-more p { margin: 0 0 1rem; color: var(--text-muted); }
.faq-more .button-secondary { display: inline-flex; max-width: 100%; justify-content: center; white-space: normal; text-align: center; }

@media (max-width: 60.99rem) {
  .site-header--interactive .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header--interactive .nav-links { display: none; position: absolute; inset: 100% 1rem auto; padding: 1rem; flex-direction: column; align-items: stretch; gap: .2rem; border: 1px solid var(--border); border-radius: .8rem; background: #fff; box-shadow: var(--shadow); }
  .site-header--interactive.site-header--menu-open .nav-links { display: flex; }
  .nav-links > a { padding: .75rem; white-space: normal; }
  .nav-links > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand-primary); }
  body.nav-open { overflow: hidden; }
  .footer-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-copyright { grid-column: 1 / -1; }
  .articles-index-page .grid { grid-template-columns: 1fr; }
}
@media (max-width: 39.99rem) {
  .page-hero__inner, .content-shell, .articles-index-page main, .article-page main, main.article-page { width: min(100% - 1.5rem, var(--shell)); }
  .question-search-row { grid-template-columns: 1fr; }
  .question-search-row .button-secondary { width: 100%; }
  .question-list summary { padding-inline: 1rem 2.5rem; }
  .question-list details > p { padding-inline: 1rem; }
  .footer-shell { grid-template-columns: 1fr; width: min(100% - 2rem, var(--shell)); }
  .footer-brand, .footer-copyright { grid-column: auto; }
  .footer-group { padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.16); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
