/* ========================================================================
   ZENSAI TRUST CENTER
   Brand layer inherited from the Zensai Success Portal design system.
   Scoped to a clean, content-first security / privacy / compliance
   repository: no support-journey cards, no ticket deflection, no gating.
   ======================================================================== */

:root {
  /* Brand colors — driven by theme settings (Guide > Customize > Settings) */
  --z-orange: #FF7A45;
  --z-gradient-start: #FF7A45;
  --z-gradient-end: #E65A20;
  --z-brown: #1a1a1a;
  --z-ink: #14181C;
  --z-sand: #F8F9FA;
  --z-offwhite: #F8F8F8;
  --z-text: #1a1a1a;
  --z-white: #FFFFFF;
  --z-link: #1f73b7;
  --z-link-hover: #174a7c;
  --z-link-visited: #1f73b7;
  --z-bg: #FFFFFF;

  /* Typography — driven by theme settings */
  --z-heading-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --z-body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --z-mono-font: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Neutrals */
  --z-border: rgba(21, 21, 21, 0.10);
  --z-border-soft: rgba(21, 21, 21, 0.06);
  --z-muted: #5b6570;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* Elevation & radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(20, 24, 28, 0.08);
  --shadow-lg: 0 10px 30px rgba(20, 24, 28, 0.12);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(255, 122, 69, 0.35);

  /* Layout */
  --z-max: 1200px;
  --z-reading: 76ch;
  --z-header-h: 64px;
}

/* ============================== BASE ============================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--z-header-h) + var(--space-3));
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--z-body-font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--z-text);
  background: var(--z-bg);
}

body > .footer { margin-top: auto; }

[hidden] { display: none !important; }

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

a:hover { color: var(--z-gradient-end); text-decoration: underline; }

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 3px;
}

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

hr { border: 0; border-top: 1px solid var(--z-border-soft); margin: var(--space-4) 0; }

/* ============================ TYPOGRAPHY ============================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--z-heading-font);
  font-weight: 600;
  color: var(--z-brown);
  line-height: 1.3;
  margin: 0 0 var(--space-2);
}

h1, .h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; }
h2, .h2 { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.015em; }
h3, .h3 { font-size: 1.1875rem; font-weight: 600; }
h4, .h4 { font-size: 1.0625rem; font-weight: 600; }
h5, .h5 { font-size: 1rem; font-weight: 600; }
h6, .h6 { font-size: 0.9375rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); }

.eyebrow {
  display: block;
  font-family: var(--z-mono-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--z-orange);
  margin: 0 0 var(--space-2);
}

.text-center { text-align: center; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ========================= LAYOUT PRIMITIVES ========================= */

.container {
  width: 100%;
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-inner { width: 100%; }

.page {
  flex: 1 0 auto;
  padding: var(--space-5) 0 var(--space-6);
}

.page--narrow { max-width: 900px; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--space-2) * -1);
}

.column { padding: 0 var(--space-2); width: 100%; }

.column--sm-3 { width: 100%; }
.column--sm-4 { width: 100%; }
.column--sm-6 { width: 100%; }
.column--sm-8 { width: 100%; }
.column--sm-9 { width: 100%; }
.column--sm-12 { width: 100%; }

@media (min-width: 768px) {
  .column--sm-3 { width: 25%; }
  .column--sm-4 { width: 33.3333%; }
  .column--sm-6 { width: 50%; }
  .column--sm-8 { width: 66.6667%; }
  .column--sm-9 { width: 75%; }
  .column--md-4 { width: 33.3333%; }
}

/* ========================== ACCESSIBILITY ========================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--z-orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
  text-decoration: none;
}

:focus-visible { outline: 2px solid var(--z-orange); outline-offset: 2px; }

/* ============================== HEADER ============================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--z-border-soft);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--z-ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}

.header-top-inner {
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 7px var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.header-top-brand {
  font-family: var(--z-mono-font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.header-top-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.header-top-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.header-top-links a:hover { color: #fff; text-decoration: underline; }

.header-inner {
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
  min-height: var(--z-header-h);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-section { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo { display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo img { height: 30px; width: auto; max-width: 160px; display: block; }

.logo-divider {
  width: 1px;
  height: 24px;
  background: var(--z-border);
}

.logo-text {
  font-family: var(--z-heading-font);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--z-brown);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-link,
.nav a {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--z-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav a:hover {
  background: var(--z-sand);
  color: var(--z-orange);
  text-decoration: none;
}

.nav-link:focus-visible,
.nav a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.nav-link-strong { font-weight: 600; }

.nav-cta {
  background: var(--z-orange);
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover { background: var(--z-gradient-end); color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--z-text);
  cursor: pointer;
}

.nav-toggle__icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

/* User menu */
.user-menu { position: relative; display: inline-flex; align-items: center; }

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--z-sand);
  border: 1px solid var(--z-border);
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
}

.user-menu-trigger img,
.user-menu-avatar-image { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.user-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: var(--space-1);
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
}

.user-menu.is-open .user-menu-panel { display: block; }

.user-menu-item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--z-text);
}

.user-menu-item:hover { background: var(--z-sand); color: var(--z-orange); text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: var(--space-1);
    border-top: 1px solid var(--z-border-soft);
  }
  .header.is-nav-open .nav { display: flex; }
  .nav-link, .nav a { padding: 12px 10px; }
  .nav-cta { text-align: center; }
  .user-menu { align-self: flex-start; padding: 8px 10px; }
}

/* =============================== HERO =============================== */

.trust-hero {
  position: relative;
  overflow: hidden;
  background: var(--z-ink);
  color: #fff;
  padding: var(--space-6) 0 var(--space-6);
}

.trust-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(255, 122, 69, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%);
  pointer-events: none;
}

.hero-swoosh {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 360px;
  max-width: 48%;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.trust-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.trust-hero .eyebrow { color: var(--z-orange); }

.trust-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.85rem);
  max-width: 20ch;
  margin-bottom: var(--space-2);
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin-bottom: var(--space-4);
}

.hero-search { max-width: 640px; }

.hero-search-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--space-1);
}

/* ============================== SEARCH ============================== */

.search-form,
form.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search input[type="search"],
.search-form input[type="search"],
input.search-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-3) 0 44px;
  font-family: var(--z-body-font);
  font-size: 1rem;
  color: var(--z-text);
  background: #fff
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235b6570' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 16px center;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.search input[type="search"]::placeholder { color: var(--z-muted); }

.search input[type="search"]:focus {
  outline: none;
  border-color: var(--z-orange);
  box-shadow: var(--focus-ring);
}

.hero-search .search input[type="search"] { height: 54px; border-color: transparent; }

.search input[type="submit"],
.search button[type="submit"] {
  position: absolute;
  right: 6px;
  height: 36px;
  padding: 0 18px;
  background: var(--z-orange);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.search input[type="submit"]:hover,
.search button[type="submit"]:hover { background: var(--z-gradient-end); }

/* Instant search dropdown */
.search-results-dropdown,
.instant-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1400;
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.search-results-dropdown a,
.instant-search__results a {
  display: block;
  padding: 11px var(--space-2);
  color: var(--z-text);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--z-border-soft);
}

.search-results-dropdown a:hover,
.instant-search__results a:hover { background: var(--z-sand); color: var(--z-orange); text-decoration: none; }

/* =========================== TRUST SIGNALS =========================== */

.trust-signals {
  background: var(--z-sand);
  border-bottom: 1px solid var(--z-border-soft);
  padding: var(--space-4) 0;
}

.trust-signals-grid {
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  list-style: none;
}

.trust-signal {
  position: relative;
  padding-left: var(--space-3);
  border-left: 3px solid var(--z-orange);
}

.trust-signal__label {
  display: block;
  font-family: var(--z-mono-font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--z-orange);
  margin-bottom: 4px;
}

.trust-signal__text {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--z-text);
}

/* ============================= SECTIONS ============================= */

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--sand { background: var(--z-sand); }

.section-inner {
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section-heading { margin-bottom: var(--space-4); max-width: 72ch; }

.section-heading h2 { position: relative; padding-bottom: var(--space-2); }

.section-heading h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--z-gradient-start), var(--z-gradient-end));
}

.section-heading p { color: var(--z-muted); margin: var(--space-2) 0 0; }

/* Intro note (preserved Trust Center `intro_text` setting) */
.trust-intro {
  max-width: var(--z-max);
  margin: 0 auto var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-left: 4px solid var(--z-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--z-text);
}

.trust-intro p:last-child { margin-bottom: 0; }

/* ======================= TRUST LIBRARY INDEX =======================
   Rendered by Vue from the ApiData cache (assets/apidata-min.js).
   This is the Trust Center's core repository view — kept, restyled. */

.trust-index { position: relative; min-height: 120px; }

.trust-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-index-section {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trust-index-section:hover {
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--z-border-soft);
}

.section__title-link { color: var(--z-brown); }
.section__title-link:hover { color: var(--z-orange); text-decoration: none; }

/* Sub-sections rendered inside a library card by script.js */
.section__title--child {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  font-weight: 600;
  padding-bottom: 6px;
}

.section__title--child .section__title-link { color: var(--z-muted); }
.section__title--child .section__title-link:hover { color: var(--z-orange); }

.article-list { list-style: none; padding: 0; margin: 0; }

.article-list-item {
  position: relative;
  border-bottom: 1px solid var(--z-border-soft);
}

.article-list-item:last-child { border-bottom: 0; }

.article-list-item__link {
  display: block;
  padding: 10px 0 10px 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--z-text);
}

.article-list-item__link::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--z-border);
  transition: background 0.2s ease;
}

.article-list-item__link:hover { color: var(--z-orange); text-decoration: none; }
.article-list-item__link:hover::before { background: var(--z-orange); }

.article-list-item--is-promoted .article-list-item__link { font-weight: 600; }

.trust-index-empty {
  padding: var(--space-2) 0;
  font-size: 0.9375rem;
  color: var(--z-muted);
  margin: 0;
}

.trust-index > .trust-index-empty {
  padding: var(--space-4);
  text-align: center;
  background: #fff;
  border: 1px dashed var(--z-border);
  border-radius: var(--radius-md);
}

.see-all-articles {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--z-orange);
}

/* ========================== RESOURCE CARDS ==========================
   Deliberately limited to policy / agreement / status destinations —
   no product-support or service-catalog cards. */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-left: 3px solid var(--z-orange);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--z-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--z-text);
}

.resource-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--z-brown);
  margin: 0 0 var(--space-1);
}

.resource-card__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--z-muted);
  margin: 0 0 var(--space-2);
  flex: 1 1 auto;
}

.resource-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--z-orange);
}

/* ============================== BUTTONS ============================== */

.btn,
button.btn,
a.btn,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--z-body-font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: var(--z-orange);
  border: 1px solid var(--z-orange);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--z-gradient-end);
  border-color: var(--z-gradient-end);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible,
input[type="submit"]:focus-visible,
button[type="submit"]:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--default,
.btn-secondary {
  background: #fff;
  color: var(--z-text);
  border-color: var(--z-border);
}

.btn--default:hover,
.btn-secondary:hover {
  background: var(--z-sand);
  color: var(--z-orange);
  border-color: var(--z-orange);
}

.btn[disabled], input[type="submit"][disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* =========================== BREADCRUMBS =========================== */

.breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li { display: inline-flex; align-items: center; color: var(--z-muted); }

.breadcrumbs li + li::before {
  content: '/';
  margin: 0 10px;
  color: var(--z-border);
}

.breadcrumbs a { color: var(--z-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--z-orange); }
.breadcrumbs li:last-child { color: var(--z-text); font-weight: 600; }

/* =========================== PAGE HEADERS =========================== */

.page-header { margin-bottom: var(--space-4); }

.page-header--with-border {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--z-border-soft);
}

.page-header h1 { margin-bottom: var(--space-1); }

.page-description {
  font-size: 1.0625rem;
  color: var(--z-muted);
  max-width: var(--z-reading);
  margin: 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.section-header__col--main { flex: 1 1 320px; min-width: 0; }
.section-header__col--button { flex: 0 0 auto; }

/* ============================ CATEGORY / SECTION ============================ */

.section-tree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.section-tree .section,
.section-tree > .column {
  width: auto;
  padding: var(--space-3);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.section-tree .section:hover,
.section-tree > .column:hover {
  border-color: rgba(255, 122, 69, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section-page .article-list,
.section-direct-articles .article-list {
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.section-page .article-list-item,
.section-direct-articles .article-list-item { border-bottom: 1px solid var(--z-border-soft); }

.section-page .article-list-item:last-child,
.section-direct-articles .article-list-item:last-child { border-bottom: 0; }

.section-page .article-list-item__link,
.section-direct-articles .article-list-item__link {
  padding: 16px var(--space-3) 16px 40px;
  font-size: 1rem;
  font-weight: 500;
}

.section-page .article-list-item__link::before,
.section-direct-articles .article-list-item__link::before { left: var(--space-3); top: 24px; }

.section-page .article-list-item:hover,
.section-direct-articles .article-list-item:hover { background: var(--z-sand); }

/* ============================== ARTICLE ============================== */

.article-page .article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

/* Collapse the sidebar column whenever no table of contents is present —
   either because settings.show_article_toc is off (rendered server-side
   via .article-layout--no-toc) or because the article has no headings to
   list, in which case script.js hides the aside and applies the same
   modifier class. Article content then expands to its intended reading
   width and centers instead of being stranded in the narrow first column.
   Selector specificity must meet or exceed ".article-page .article-layout"
   (0,2,0) above, otherwise the two-column grid wins and the lone
   .article-main child collapses into the narrow first track instead of
   spanning the full row. */
.article-page .article-layout.article-layout--no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.article-layout--no-toc .article-main {
  max-width: var(--z-reading);
  margin: 0 auto;
}

@media (max-width: 991px) {
  .article-page .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .article-layout--no-toc .article-main { max-width: none; margin: 0; }
}

.article-header { margin-bottom: var(--space-4); }

.article__title {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.article-meta,
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--z-muted);
}

.article-meta__item { display: inline-flex; align-items: center; gap: 8px; }

.article-avatar img,
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.article-updated::before {
  content: 'Last updated ';
  color: var(--z-muted);
}

.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--z-text);
  max-width: var(--z-reading);
}

.article-body > *:first-child { margin-top: 0; }

.article-body h2 {
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  font-size: 1.4375rem;
  scroll-margin-top: calc(var(--z-header-h) + var(--space-3));
}

.article-body h3 {
  margin-top: var(--space-4);
  font-size: 1.1875rem;
  scroll-margin-top: calc(var(--z-header-h) + var(--space-3));
}

.article-body a { color: var(--z-link); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--z-link-hover); }
.article-body a:visited { color: var(--z-link-visited); }

.article-body ul, .article-body ol { padding-left: var(--space-3); margin: 0 0 var(--space-2); }
.article-body li { margin-bottom: 6px; }

.article-body img { border-radius: var(--radius-sm); border: 1px solid var(--z-border-soft); }

.article-body blockquote {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  border-left: 4px solid var(--z-orange);
  background: var(--z-sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--z-text);
}

.article-body code,
.article-body kbd {
  font-family: var(--z-mono-font);
  font-size: 0.875em;
  padding: 2px 6px;
  background: var(--z-sand);
  border: 1px solid var(--z-border-soft);
  border-radius: 4px;
}

.article-body pre {
  padding: var(--space-3);
  background: var(--z-ink);
  color: #f2f4f6;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--z-mono-font);
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-body pre code { background: none; border: 0; padding: 0; color: inherit; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
  font-size: 0.9375rem;
}

.article-body th,
.article-body td {
  padding: 12px var(--space-2);
  border: 1px solid var(--z-border-soft);
  text-align: left;
  vertical-align: top;
}

.article-body th { background: var(--z-sand); font-weight: 600; color: var(--z-brown); }
.article-body tbody tr:nth-child(even) { background: rgba(248, 249, 250, 0.55); }

/* Table of contents */
.article-toc,
[data-toc] {
  position: sticky;
  top: calc(var(--z-header-h) + var(--space-2));
  padding: var(--space-3);
  background: var(--z-sand);
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  max-height: calc(100vh - var(--z-header-h) - var(--space-4));
  overflow-y: auto;
}

.article-toc__title,
[data-toc] .toc-title {
  font-family: var(--z-mono-font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--z-muted);
  margin: 0 0 var(--space-2);
}

.article-toc__list { list-style: none; padding: 0; margin: 0; }

.article-toc__item { border-left: 2px solid var(--z-border-soft); }
.article-toc__item--h3 { padding-left: var(--space-2); }

.article-toc__item a {
  display: block;
  padding: 6px 12px;
  color: var(--z-muted);
  line-height: 1.45;
}

.article-toc__item a:hover { color: var(--z-orange); text-decoration: none; }
.article-toc__item.is-active { border-left-color: var(--z-orange); }
.article-toc__item.is-active > a { color: var(--z-orange); font-weight: 600; }

/* Attachments */
.attachment-list {
  margin: var(--space-4) 0 0;
  padding: var(--space-2) var(--space-3);
  background: var(--z-sand);
  border-radius: var(--radius-md);
  max-width: var(--z-reading);
}

.attachment-list li { padding: 6px 0; font-size: 0.9375rem; }
.attachment-list li span:last-child { color: var(--z-muted); font-size: 0.8125rem; }

/* Article footer / voting */
.article-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--z-border-soft);
  max-width: var(--z-reading);
}

.article-footer.is-hidden { display: none; }

.article-vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--z-sand);
  border-radius: var(--radius-md);
}

.article-vote-question { font-weight: 600; color: var(--z-brown); }

.article-vote-controls { display: inline-flex; gap: var(--space-1); }

.article-vote-controls__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-sm);
  color: var(--z-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-vote-controls__item:hover {
  border-color: var(--z-orange);
  color: var(--z-orange);
  text-decoration: none;
}

.article-vote-controls__item--voted {
  background: var(--z-orange);
  border-color: var(--z-orange);
  color: #fff;
}

.article-vote-count { color: var(--z-muted); font-size: 0.8125rem; }

.article-share { margin-top: var(--space-3); }
.article-share ul { display: flex; gap: var(--space-1); list-style: none; padding: 0; margin: 0; }
.article-share a { color: var(--z-muted); padding: 6px; }
.article-share a:hover { color: var(--z-orange); }

.article-relatives { margin-top: var(--space-5); }

/* Subscribe (used by the section page "Follow this section" control) */
.subscribe {
  display: inline-block;
}

.subscribe a,
.subscribe button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-sm);
  color: var(--z-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscribe a:hover,
.subscribe button:hover {
  border-color: var(--z-orange);
  color: var(--z-orange);
  text-decoration: none;
}

/* ========================== SEARCH RESULTS ========================== */

.search-results-count {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--z-border-soft);
}

.search-results-list { list-style: none; padding: 0; margin: 0; }

.search-result {
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-result:hover { border-color: rgba(255, 122, 69, 0.45); box-shadow: var(--shadow-sm); }

.search-result__title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 6px; }
.search-result-link { color: var(--z-brown); }
.search-result-link:hover { color: var(--z-orange); }

.search-results-page .hero-search { max-width: 640px; margin-top: var(--space-2); }

.search-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--z-muted);
  margin-top: var(--space-1);
}

.search-result__meta a { color: var(--z-muted); }

/* Breadcrumb trail inside a single search result — tighter than the
   page-level breadcrumbs, and never picks up their bottom margin. */
.search-result__path { margin: 0 0 6px; }

.search-result-breadcrumbs {
  margin: 0;
  font-size: 0.8125rem;
}

.search-result-breadcrumbs li { color: var(--z-muted); }
.search-result-breadcrumbs a { color: var(--z-muted); font-weight: 400; }
.search-result-breadcrumbs a:hover { color: var(--z-orange); }

.search-result__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--z-text);
  margin: 0;
}

.search-result__description em,
.search-result__title em {
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 122, 69, 0.16);
  padding: 0 2px;
  border-radius: 2px;
}

.search-results-subheading__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--z-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.search-empty {
  padding: var(--space-5);
  text-align: center;
  background: var(--z-sand);
  border-radius: var(--radius-lg);
}

/* ============================ PAGINATION ============================ */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
}

.pagination li { display: inline-flex; }

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--z-text);
  background: #fff;
}

.pagination a:hover {
  border-color: var(--z-orange);
  color: var(--z-orange);
  text-decoration: none;
}

.pagination .is-current,
.pagination [aria-current="page"] {
  background: var(--z-orange);
  border-color: var(--z-orange);
  color: #fff;
}

.pagination-page-ellipsis { border: 0; color: var(--z-muted); }

/* ============================== FORMS ============================== */

.form,
.new-request-form { max-width: 760px; }

label,
.form-field > label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--z-brown);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--z-body-font);
  font-size: 0.9375rem;
  color: var(--z-text);
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea { min-height: 140px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--z-orange);
  box-shadow: var(--focus-ring);
}

.form-field { margin-bottom: var(--space-3); }

.form-field .nesty-input { border-radius: var(--radius-sm); border-color: var(--z-border); }

.form-field p.error,
.error-message {
  color: #b42318;
  font-size: 0.875rem;
  margin-top: 6px;
}

.form-field input[type="checkbox"],
.form-field input[type="radio"] { width: auto; margin-right: 8px; }

.upload-dropzone {
  padding: var(--space-3);
  border: 2px dashed var(--z-border);
  border-radius: var(--radius-md);
  background: var(--z-sand);
  text-align: center;
  color: var(--z-muted);
}

/* ======================= REQUESTS / MY ACTIVITIES ======================= */

.my-activities-header { margin-bottom: var(--space-3); }

.my-activities-menu { margin-bottom: var(--space-4); border-bottom: 1px solid var(--z-border-soft); }

.my-activities-menu__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.my-activities-menu__item a,
.my-activities-menu__item span {
  display: inline-block;
  padding: 10px 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--z-muted);
  border-bottom: 2px solid transparent;
}

.my-activities-menu__item a:hover { color: var(--z-orange); text-decoration: none; }

.my-activities-menu__item.is-active span,
.my-activities-menu__item.is-active a {
  color: var(--z-orange);
  border-bottom-color: var(--z-orange);
}

.my-activities-items {
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.my-activities-items__head { background: var(--z-sand); font-weight: 600; font-size: 0.875rem; }

.my-activities-items__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 14px var(--space-3);
  border-bottom: 1px solid var(--z-border-soft);
}

.my-activities-items__row:last-child { border-bottom: 0; }
.my-activities-items__col { flex: 1 1 160px; min-width: 0; }
.my-activities-item__meta { color: var(--z-muted); font-size: 0.875rem; }

.contributions-container { display: grid; gap: var(--space-2); }

.contribution-item {
  padding: var(--space-3);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.contribution-item:hover { border-color: rgba(255, 122, 69, 0.45); }

.contribution-title { font-size: 1.0625rem; margin: 0 0 4px; }
.contribution-meta,
.contribution-excerpt { color: var(--z-muted); font-size: 0.875rem; }

.contribution-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--z-muted);
}

.request-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--z-sand);
  color: var(--z-muted);
}

.request-status--open { background: rgba(255, 122, 69, 0.14); color: #b3421a; }
.request-status--pending { background: rgba(31, 115, 183, 0.12); color: #1f73b7; }
.request-status--solved,
.request-status--closed { background: rgba(23, 138, 90, 0.12); color: #178a5a; }

.request-sidebar {
  padding: var(--space-3);
  background: var(--z-sand);
  border-radius: var(--radius-md);
}

.request-details dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--z-muted);
  margin-top: var(--space-2);
}

.request-details dd { margin: 4px 0 0; font-size: 0.9375rem; }

.request-subject { margin-bottom: var(--space-1); }
.request-id { font-size: 0.8125rem; color: var(--z-muted); margin-bottom: var(--space-1); }

/* ============================= COMMENTS ============================= */

.comment-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); }

.comment {
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-md);
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
}

.comment__author { font-weight: 600; color: var(--z-brown); }
.comment__body { font-size: 0.9375rem; line-height: 1.7; }

.avatar img { width: 34px; height: 34px; border-radius: 50%; }

.comment-form {
  padding: var(--space-3);
  background: var(--z-sand);
  border-radius: var(--radius-md);
}

.comment-form__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.comment-form__mark-as-solved { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.comment-form__mark-as-solved label { margin: 0; font-weight: 500; }

/* ========================== COMMUNITY (minimal) ========================== */

.community-nav__items,
.topic-list { list-style: none; padding: 0; margin: 0; }

.community-nav__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--z-border-soft);
}

.community-nav__item a,
.community-nav__item span { font-weight: 600; font-size: 0.9375rem; color: var(--z-muted); }
.community-nav__item.is-active span { color: var(--z-orange); }
.community-nav__item--button { margin-left: auto; }

.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-2); }

.topic-list-item__box,
.post-list-item {
  padding: var(--space-3);
  background: #fff;
  border: 1px solid var(--z-border-soft);
  border-radius: var(--radius-md);
}

.topic-list-item__title { font-size: 1.0625rem; margin: 0 0 6px; }
.topic-list-item__meta { font-size: 0.8125rem; color: var(--z-muted); }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }

/* ========================== PROFILE / ERROR ========================== */

.profile-header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--z-sand);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.profile-header-card__avatar img { width: 72px; height: 72px; border-radius: 50%; }
.profile-header-card__content h1 { margin-bottom: 4px; }
.profile-header-card__actions { margin-left: auto; }

.error-page { text-align: center; padding: var(--space-7) 0; }
.error-page__title { font-size: 2.5rem; margin-bottom: var(--space-2); }

.empty-state {
  padding: var(--space-5);
  text-align: center;
  color: var(--z-muted);
  background: var(--z-sand);
  border-radius: var(--radius-lg);
}

/* ============================== NOTICES ============================== */

.notification,
.notice,
.alert {
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--z-orange);
  background: var(--z-sand);
  font-size: 0.9375rem;
}

.notification-error,
.alert-error { border-left-color: #b42318; background: rgba(180, 35, 24, 0.06); }

.notification-success { border-left-color: #178a5a; background: rgba(23, 138, 90, 0.06); }

/* ============================== FOOTER ============================== */

.footer {
  background: var(--z-ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  padding: var(--space-6) 0 0;
}

.footer-inner {
  max-width: var(--z-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-heading {
  font-family: var(--z-mono-font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--space-2);
}

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }

.footer-list a,
.footer-social a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
}

.footer-list a:hover,
.footer-social a:hover { color: #fff; text-decoration: underline; }

.footer-social { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal a { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }
.footer-legal a:hover { color: #fff; }

.footer-copy { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }

/* ========================== ZENDESK OVERRIDES ==========================
   Markup emitted by Zendesk helpers that the theme cannot restructure. */

.form-field .nesty-input:focus { border-color: var(--z-orange); }

.share { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-1); }

.recent-articles,
.collapsible-nav,
.collapsible-sidebar { font-size: 0.9375rem; }

.dropdown-toggle { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }

.icon-agent::after { content: 'Zensai'; font-size: 0.6875rem; }

/* Zendesk flash notifications container */
[data-flash-notifications] { max-width: var(--z-max); margin: var(--space-2) auto 0; padding: 0 var(--space-3); }

/* =========================== MOTION & PRINT =========================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .trust-index-section:hover,
  .section-tree .section:hover,
  .resource-card:hover,
  .btn:hover { transform: none; }
}

@media (forced-colors: active) {
  .trust-index-section,
  .resource-card,
  .search-result,
  .section-tree .section { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
}

@media print {
  .header, .footer, .article-toc, [data-toc], .article-footer,
  .article-share, .breadcrumbs, .d-print-none, .trust-signals { display: none !important; }
  body { background: #fff; }
  .article-body { max-width: none; font-size: 11pt; }
  .article-body a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 767px) {
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.375rem; }
  .section { padding: var(--space-5) 0; }
  .trust-hero { padding: var(--space-5) 0; }
  .hero-swoosh { display: none; }
  .trust-intro { padding: var(--space-3); }
  .header-top-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .profile-header-card__actions { margin-left: 0; }
  .my-activities-items__head { display: none; }
  .my-activities-items__row { flex-direction: column; gap: 4px; }
}
