/* Deliberately hand-rolled and small. No Bootstrap: this page does not use
   Odoo's frontend layout, so pulling a framework in for four components
   would be more weight than the whole module. */
:root {
  /* Defaults. The help centre record overrides any of these in a <style>
     block on the page, so a brand refresh is a settings change. Anything
     not overridden falls back to what is here rather than to nothing. */
  --brand: #1B17F5;
  --header: #101014;
  --hero-text: #ffffff;
  --ink: #14141a;
  --muted: #6b6b76;
  --line: #e3e3e8;
  --band: #f4f4f6;
}
* { box-sizing: border-box; }
body {
  /* The footer sits at the foot of the SCREEN when the content is short,
     and after the content when it is long. Without this a help centre
     with three tiles leaves the footer floating mid-page above a band of
     nothing. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.hc-header {
  background: var(--header); padding: 18px 32px;
  display: flex; align-items: center;
}
.hc-brand {
  color: #fff; font-weight: 700; font-size: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hc-brand:hover { text-decoration: none; }
.hc-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand); display: inline-block;
}

/* Hero */
.hc-hero {
  background: var(--header); color: var(--hero-text);
  padding: 72px 24px 96px; text-align: center;
}
.hc-hero h1 { font-size: 40px; margin: 0 0 28px; font-weight: 800; }

/* Search */
.hc-search { display: flex; max-width: 620px; margin: 0 auto; }
.hc-search input {
  flex: 1; padding: 13px 16px; font-size: 15px;
  border: 1px solid var(--line); border-right: 0;
  border-radius: 4px 0 0 4px; outline: none; min-width: 0;
}
.hc-search button {
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 13px 26px; font-size: 15px; border-radius: 0 4px 4px 0;
}

/* Breadcrumb band */
.hc-crumbs { background: var(--band); border-bottom: 1px solid var(--line); }
.hc-crumbs-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.hc-crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; font-size: 14px; flex: 1;
}
.hc-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.hc-crumbs li span { color: var(--muted); }
.hc-crumbs .hc-search { margin: 0; max-width: 300px; }
.hc-crumbs .hc-search input { padding: 7px 12px; font-size: 14px; }
.hc-crumbs .hc-search button { padding: 7px 16px; font-size: 14px; }

/* Layout */
.hc-main {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px 72px;
  width: 100%; flex: 1 0 auto;
}
.hc-hero { flex: 0 0 auto; }
.hc-footer { flex: 0 0 auto; margin-top: auto; }
.hc-title { font-size: 32px; margin: 0 0 24px; font-weight: 800; }
.hc-empty { color: var(--muted); }

/* Home tiles */
.hc-tiles {
  display: grid; gap: 24px; margin-top: -56px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.hc-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 40px 20px 26px; text-align: center; color: var(--ink);
  position: relative; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.hc-tile:hover { text-decoration: none; border-color: var(--brand); }
.hc-tile-icon {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hc-icon { width: 22px; height: 22px; display: block; }
.hc-tile-name { font-weight: 700; font-size: 18px; }

/* Lists */
.hc-list { list-style: none; margin: 0; padding: 0; }
.hc-list li { border-bottom: 1px solid var(--line); }
.hc-list a {
  display: flex; align-items: center; gap: 12px; padding: 16px 4px;
  color: var(--ink);
}
.hc-list a:hover { color: var(--brand); text-decoration: none; }
/* A page, not a checkbox. A plain bordered rectangle at this size reads
   as an empty tick box, which put a checkbox beside every article title.
   The clipped corner is what makes it a document at 14px. */
.hc-doc {
  width: 14px; height: 17px; flex: none; border: 1.5px solid var(--muted);
  border-radius: 2px; position: relative; background: transparent;
}
.hc-doc::after {
  content: ""; position: absolute; top: -1.5px; right: -1.5px;
  width: 6px; height: 6px; background: var(--bg, #fff);
  border-left: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  border-bottom-left-radius: 2px;
}

/* Sections on a category page: a heading with its own articles beneath,
   flowing into as many columns as the width allows. minmax keeps a column
   readable rather than letting two long titles share 300px. */
.hc-sections {
  display: grid; gap: 8px 56px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.hc-section { min-width: 0; }
.hc-section-title {
  font-size: 20px; font-weight: 800; margin: 24px 0 4px;
}
.hc-section-title a { color: var(--ink); }
.hc-section-title a:hover { color: var(--brand); text-decoration: none; }
.hc-loose { margin-top: 40px; }

/* Article */
.hc-with-aside { display: grid; grid-template-columns: 250px 1fr; gap: 48px; }
.hc-aside h2 {
  font-size: 15px; margin: 0 0 14px; font-weight: 700;
}
.hc-aside ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hc-aside li { margin-bottom: 4px; }
.hc-aside li a {
  display: block; padding: 8px 12px; border-radius: 4px; color: var(--ink);
}
.hc-aside li a:hover { background: var(--band); text-decoration: none; }
.hc-aside .hc-current a { background: var(--band); font-weight: 600; }
.hc-article h1 { font-size: 34px; margin: 0 0 8px; font-weight: 800; }
.hc-meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.hc-body img { max-width: 100%; height: auto; }
.hc-body table { max-width: 100%; border-collapse: collapse; }
.hc-body td, .hc-body th { border: 1px solid var(--line); padding: 8px; }
.hc-body pre { background: var(--band); padding: 14px; overflow-x: auto; }

/* Footer */
.hc-footer {
  background: var(--header); color: #9a9aa5; text-align: center;
  padding: 28px; font-size: 14px;
}

@media (max-width: 820px) {
  .hc-with-aside { grid-template-columns: 1fr; gap: 28px; }
  .hc-crumbs-inner { flex-direction: column; align-items: stretch; }
  .hc-crumbs .hc-search { max-width: none; }
  .hc-hero h1 { font-size: 30px; }
}

/* ── Header: brand on the left, languages on the right ──────────────── */
.hc-header {
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hc-brand { gap: 12px; }
.hc-logo {
  height: 30px; width: auto; max-width: 150px; display: block;
}

/* ── Language selector ──────────────────────────────────────────────── */
.hc-langs {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 3px;
}
.hc-lang {
  color: #c3c3cc; font-size: 13.5px; line-height: 1;
  padding: 7px 14px; border-radius: 4px; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.hc-lang:hover { color: #fff; background: rgba(255, 255, 255, .10);
                 text-decoration: none; }
.hc-lang-on {
  color: #101014; background: #fff; font-weight: 600;
}
.hc-lang-on:hover { color: #101014; background: #fff; }

@media (max-width: 560px) {
  .hc-header { padding: 14px 18px; }
  .hc-lang { padding: 6px 10px; font-size: 13px; }
}

/* ── Submit a request ───────────────────────────────────────────────── */
/* A panel rather than a lone button: on a page of white cards a bare
   rectangle reads as another tile, and the one thing here that is not
   navigation should not look like navigation. */
.hc-cta {
  margin: 64px auto 0; max-width: 720px; text-align: center;
  padding: 34px 28px; border-radius: 14px;
  background: linear-gradient(135deg, var(--header) 0%, #23233a 100%);
  color: #fff;
}
.hc-cta-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.hc-cta-sub { color: #a9a9bb; font-size: 14.5px; margin: 0 0 20px; }
.hc-button {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 14px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hc-button:hover {
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 0, 0, .34);
}
.hc-button:active { transform: translateY(0); box-shadow: none; }
.hc-button svg { width: 17px; height: 17px; }
[dir="rtl"] .hc-button svg { transform: scaleX(-1); }
.hc-narrow { max-width: 620px; }
.hc-form { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
.hc-form label { font-weight: 600; font-size: 14px; margin-top: 12px; }
.hc-form input, .hc-form textarea {
  padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 4px; width: 100%;
}
.hc-form input:focus, .hc-form textarea:focus {
  outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent;
}
.hc-form button {
  align-self: flex-start; margin-top: 20px; background: var(--brand);
  color: #fff; border: 0; padding: 14px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 18px rgba(27, 23, 245, .22);
}
.hc-form button:hover { transform: translateY(-1px); }
/* Offered to bots, never shown to people. */
.hc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.hc-error {
  background: #fdecea; border: 1px solid #f5c2bd; color: #8a2318;
  padding: 11px 14px; border-radius: 4px;
}
.hc-sent {
  background: #eaf7ee; border: 1px solid #b9e2c6; color: #1c6b34;
  padding: 14px 16px; border-radius: 4px;
}

/* Right-to-left: flip what is directional, leave the rest alone. */
[dir="rtl"] .hc-with-aside { direction: rtl; }
[dir="rtl"] .hc-crumbs li + li::before { content: "‹"; }
[dir="rtl"] .hc-search input {
  border-radius: 0 4px 4px 0; border-right: 1px solid var(--line);
  border-left: 0;
}
[dir="rtl"] .hc-search button { border-radius: 4px 0 0 4px; }
[dir="rtl"] .hc-form button { align-self: flex-end; }

/* ── Was this helpful ───────────────────────────────────────────────── */
.hc-vote {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  text-align: center;
}
.hc-vote-q { font-weight: 700; margin: 0 0 14px; }
.hc-vote form { display: flex; gap: 10px; justify-content: center; }
.hc-vote-btn {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 30px; font-size: 15px; cursor: pointer;
  font-family: inherit; min-width: 96px;
}
.hc-vote-btn:hover { border-color: var(--brand); color: var(--brand); }
.hc-vote-thanks { font-weight: 600; margin: 0; }
.hc-vote-count { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
