/* Help centre (/aide/) — generated pages, see scripts/build-aide.mjs */

.aide main.aide-container { max-width: 1320px; padding: 2rem 1.5rem 5rem; }

/* Search ------------------------------------------------------------------ */
.aide-search { position: relative; z-index: 5; margin: 0 auto 2rem; max-width: 760px; }
.aide .pagefind-ui {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--ink);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--line);
  --pagefind-ui-tag: var(--paper-2);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 14px;
  --pagefind-ui-font: inherit;
}
.aide .pagefind-ui__search-input { box-shadow: 0 12px 30px -18px rgba(20, 33, 61, 0.35); }
.aide .pagefind-ui__drawer {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.4rem);
  max-height: min(70vh, 640px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.25rem 1.25rem 1rem; box-shadow: 0 30px 60px -25px rgba(20, 33, 61, 0.45);
}
.aide .pagefind-ui__drawer:empty,
.aide .pagefind-ui__drawer:not(:has(.pagefind-ui__results-area)) { display: none; }
.aide .pagefind-ui__result-link { color: var(--ink); }
.aide .pagefind-ui__result-excerpt mark { background: #f3e2bf; color: inherit; padding: 0 0.1em; border-radius: 3px; }

/* Layout ------------------------------------------------------------------- */
.aide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 2.5rem;
  align-items: start;
}
.aide-sidebar, .aide-aside { position: sticky; top: calc(var(--header-height) + 2rem); max-height: calc(100vh - var(--header-height) - 3rem); overflow-y: auto; }
.aide-nav > summary { display: none; }
.aide-nav-group + .aide-nav-group { margin-top: 1.4rem; }
.aide-nav-title { font-family: inherit !important; font-size: 0.75rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal) !important; margin: 0 0 0.5rem; font-weight: 600 !important; }
/* The site styles every `nav ul` as the horizontal header menu: undo it here. */
.aide .aide-nav ul, .aide .aide-toc ul { display: block; list-style: none; margin: 0; padding: 0; }
.aide .aide-nav li, .aide .aide-toc li { display: block; }
.aide-nav li a {
  display: block; padding: 0.35rem 0.7rem; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35;
}
.aide-nav li a:hover { background: rgba(20, 33, 61, 0.06); }
.aide-nav li a[aria-current="page"] { background: var(--ink); color: #fff; }

.aide-toc { border-left: 1px solid var(--line); padding-left: 1rem; font-size: 0.86rem; }
.aide-toc-title { font-weight: 600; margin: 0 0 0.6rem; color: var(--ink); }
.aide-toc li a { display: block; padding: 0.22rem 0; color: var(--text-muted); text-decoration: none; line-height: 1.35; }
.aide-toc li.aide-toc-l3 a { padding-left: 0.8rem; font-size: 0.82rem; }
.aide-toc li a:hover, .aide-toc li a[aria-current="location"] { color: var(--teal); }

/* Article ------------------------------------------------------------------ */
.aide-article {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 2.25rem 2.75rem 2.5rem; min-width: 0;
  box-shadow: 0 30px 60px -45px rgba(20, 33, 61, 0.4);
}
.aide-breadcrumb { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.aide-breadcrumb a { color: var(--teal); text-decoration: none; }
.aide-article-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 0.6rem; }
.aide-summary { font-size: 1.12rem; color: var(--text-muted); margin: 0 0 1rem; max-width: 65ch; }
.aide-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.aide-article-header { padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.aide-platform {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600;
  padding: 0.18rem 0.6rem; border-radius: 999px; letter-spacing: 0.01em;
}
.aide-platform::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.aide-platform-desktop { background: #e6eef6; color: #1f4f80; }
.aide-platform-mobile { background: #e5f2ef; color: #0f6e5a; }
.aide-updated { font-size: 0.8rem; color: var(--text-light); margin-left: 0.25rem; }

.aide-prose { font-size: 1.02rem; line-height: 1.7; color: #1d2433; }
.aide-prose > * { max-width: 72ch; }
.aide-prose h2 { font-size: 1.55rem; margin: 2.4rem 0 0.8rem; scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.aide-prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.aide-prose p, .aide-prose ul, .aide-prose ol { margin: 0 0 1rem; }
.aide-prose li + li { margin-top: 0.3rem; }
.aide-prose a { color: var(--teal); text-underline-offset: 2px; }
.aide-prose strong { color: var(--ink); }
.aide-prose img {
  display: block; max-width: 100%; height: auto; margin: 1.5rem 0;
  border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 40px -30px rgba(20, 33, 61, 0.45);
}
.aide-prose blockquote {
  margin: 1.2rem 0; padding: 0.9rem 1.2rem; border-left: 3px solid var(--brass);
  background: #faf6ee; border-radius: 0 10px 10px 0; color: #2b3345;
}
.aide-prose blockquote p:last-child { margin-bottom: 0; }
.aide-prose pre {
  background: #f6f3ec; border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.2rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.55; white-space: pre-wrap;
}
.aide-prose :not(pre) > code { background: #f1ece2; padding: 0.08em 0.35em; border-radius: 5px; font-size: 0.9em; }
.aide-table-wrap { overflow-x: auto; margin: 1.2rem 0 1.5rem; max-width: 100% !important; }
.aide-prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.aide-prose th, .aide-prose td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.aide-prose th { background: #f6f3ec; font-weight: 600; color: var(--ink); }
.aide-video-wrap { margin: 1.5rem 0; max-width: 100% !important; }
.aide-video { width: 100%; height: auto; border-radius: 14px; background: #0b1427; box-shadow: 0 30px 60px -35px rgba(20, 33, 61, 0.55); }

/* After the article -------------------------------------------------------- */
.aide-related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.aide-related h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.aide-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.aide-related-card {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.aide-related-card:hover { border-color: var(--teal); transform: translateY(-1px); }
.aide-related-name { font-weight: 600; }
.aide-related-summary { font-size: 0.86rem; color: var(--text-muted); }
.aide-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.aide-pager a {
  display: flex; flex-direction: column; gap: 0.15rem; max-width: 48%;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.aide-pager a span { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.aide-pager-next { text-align: right; margin-left: auto; }
.aide-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: 16px;
  background: var(--ink); color: #e9edf5;
}
.aide-cta p { margin: 0; }
.aide-cta-title { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: 0.25rem !important; }
.aide-cta .btn-primary { background: var(--brass-light); color: var(--ink); }
.aide-cta .btn-primary:hover { background: #e8c98e; }

/* Landing page ------------------------------------------------------------- */
.aide-hero { text-align: center; padding-bottom: 1.5rem; }
.aide-hero .lead { margin-left: auto; margin-right: auto; }
.aide-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2.5rem; }
.aide-start-card {
  display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.4rem;
  text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s;
}
.aide-start-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.aide-start-card strong { font-family: var(--serif); font-size: 1.2rem; }
.aide-start-card span:last-child { color: var(--text-muted); font-size: 0.92rem; }
.aide-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.aide-category { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.6rem; }
.aide-category h2 { font-size: 1.35rem; margin: 0 0 1rem; }
.aide-category ul { list-style: none; margin: 0; padding: 0; }
.aide-category li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.aide-category li:first-child { border-top: 0; padding-top: 0; }
.aide-category li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.aide-category li a:hover { color: var(--teal); }
.aide-category li p { margin: 0.2rem 0 0.45rem; font-size: 0.9rem; color: var(--text-muted); }
.aide-contact { margin-top: 2rem; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .aide-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .aide-aside { display: none; }
}
@media (max-width: 960px) {
  .aide-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .aide-sidebar { position: static; max-height: none; }
  .aide-nav { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; }
  .aide-nav > summary { display: list-item; cursor: pointer; font-weight: 600; }
  .aide-nav[open] > summary { margin-bottom: 0.8rem; }
  .aide-article { padding: 1.5rem 1.25rem 2rem; border-radius: 16px; }
  .aide-start, .aide-categories { grid-template-columns: minmax(0, 1fr); }
}

/* Keyboard users must always see where they are. */
.aide a:focus-visible, .aide summary:focus-visible, .aide button:focus-visible, .aide video:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}
.aide .pagefind-ui__search-input:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }

.aide-transcript { margin-top: 0.8rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1rem; background: #fbf9f4; font-size: 0.95rem; }
.aide-transcript > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.aide-transcript[open] > summary { margin-bottom: 0.6rem; }
.aide-transcript p { margin: 0 0 0.6rem; }
