/* Feather Help Centre (help.voxo360.com) — DollyXLIFF palette, light and dark */
:root {
  color-scheme: light;
  --bg: #f7f2f5;
  --surface: #fffdfe;
  --surface-alt: #f3e9f0;
  --surface-muted: #faf6f9;
  --surface-soft: #f2e8f0;
  --line: #dfd6de;
  --line-dark: #cebeca;
  --text: #302931;
  --muted: #685866;
  --faint: #968a94;
  --accent: #b66d92;
  --accent-hover: #c882a5;
  --accent-strong: #96496f;
  --accent-soft: #f4e3ec;
  --accent-line: #dcb7cb;
  --on-accent: #fcf4f9;
  --btn-bg: #9c4f79;
  --btn-bg-hover: #b66d92;
  --good: #188056;
  --good-soft: #e3f2eb;
  --good-line: #a5d2bd;
  --warn: #8a6212;
  --warn-soft: #fbf0d4;
  --warn-line: #dcc27e;
  --focus: rgba(182, 109, 146, .35);
  --radius: 3px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1f1a22;
  --surface: #26202b;
  --surface-alt: #352c3c;
  --surface-muted: #2b2430;
  --surface-soft: #392f40;
  --line: #463d4e;
  --line-dark: #54485c;
  --text: #ece2ea;
  --muted: #ceb6c6;
  --faint: #9d8f9e;
  --accent: #b07c9b;
  --accent-hover: #c492af;
  --accent-strong: #e6bcd2;
  --accent-soft: #45343f;
  --accent-line: #76566a;
  --on-accent: #fcf4f9;
  --btn-bg: #8f5a7a;
  --btn-bg-hover: #a46285;
  --good: #60d0a0;
  --good-soft: #1d362c;
  --good-line: #2e5d4a;
  --warn: #e6c078;
  --warn-soft: #3a301a;
  --warn-line: #6b5627;
  --focus: rgba(176, 124, 155, .42);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: var(--radius);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 28px;
  height: 28px;
  background: var(--btn-bg);
  color: var(--on-accent);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.brand__tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 2px 7px;
  border-radius: var(--radius);
}

.header-search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--focus);
  background: var(--surface);
}
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  max-height: 360px;
  overflow-y: auto;
  z-index: 30;
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--surface-soft); text-decoration: none; }
.search-results strong { display: block; font-size: 14px; color: var(--accent-strong); }
.search-results span { display: block; font-size: 12px; color: var(--muted); }
.search-results .search-empty { padding: 12px; font-size: 13px; color: var(--muted); }

.theme-btn {
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Hero (index page) */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 40px 24px 36px;
}
.hero__inner { max-width: 920px; margin: 0 auto; text-align: center; }
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-strong);
}
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
.hero p.lead { margin: 0 auto 22px; max-width: 640px; color: var(--muted); font-size: 16px; }
.hero-search { max-width: 520px; margin: 0 auto; position: relative; }
.hero-search input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); background: var(--surface); }

/* Card grid (index page) */
.home-wrap { max-width: 1120px; margin: 0 auto; padding: 30px 24px 56px; flex: 1; width: 100%; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.topic-card:hover { border-color: var(--accent); background: var(--surface-muted); text-decoration: none; }
.topic-card__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent-strong);
  margin-bottom: 4px;
}
.topic-card h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.topic-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; flex: 1; }
.topic-card__links { font-size: 12px; color: var(--faint); }

/* Article layout */
.doc-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 56px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  flex: 1;
  width: 100%;
}
.doc-sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 14px;
}
.doc-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0 8px;
}
.doc-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.doc-sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
}
.doc-sidebar a:hover { background: var(--surface-soft); text-decoration: none; }
.doc-sidebar a.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 7px;
}

.doc-article {
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 38px 40px;
  min-width: 0;
}
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.doc-article h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; letter-spacing: -0.015em; }
.doc-article .lead { font-size: 16px; color: var(--muted); margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.doc-article h2 { margin: 30px 0 10px; font-size: 20px; line-height: 1.3; padding-top: 8px; border-top: 1px solid var(--line); }
.doc-article h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 10px; }
.doc-article h3 { margin: 20px 0 6px; font-size: 16px; color: var(--accent-strong); }
.doc-article p { margin: 0 0 12px; }
.doc-article ul, .doc-article ol { margin: 0 0 14px; padding-left: 22px; }
.doc-article li { margin-bottom: 5px; }

.toc-box {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
}
.toc-box strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.toc-box ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.toc-box li { font-size: 14px; margin-bottom: 3px; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.callout--tip {
  background: var(--good-soft);
  border-color: var(--good-line);
  border-left-color: var(--good);
}
.callout--note {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  border-left-color: var(--warn);
}
.callout strong { display: inline; }

.help-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 14px;
}
.help-table th, .help-table td {
  text-align: left;
  padding: 9px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.help-table th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
}
.help-table tr:nth-child(even) td { background: var(--surface-muted); }

.doc-pager {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.doc-pager a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.doc-pager a:hover { border-color: var(--accent); color: var(--accent-strong); text-decoration: none; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 24px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; padding: 18px 14px 40px; }
  .doc-sidebar { position: static; }
  .doc-article { padding: 22px 18px 28px; }
  .toc-box ul { columns: 1; }
  .site-header__inner { flex-wrap: wrap; padding: 10px 14px; }
  .header-search { order: 3; max-width: none; width: 100%; margin-left: 0; }
}
