/* ============================================================
   Esperto Developers Support — stylesheet
   Brand: Inter / Arial · orange #f16529 · blue #3290ce
   ============================================================ */

:root {
  --orange: #f16529;
  --orange-dark: #d8511c;
  --blue: #3290ce;
  --blue-dark: #2179bf;
  --green: #009345;
  --yellow: #f9ec31;
  --ink: #1a1d21;
  --body: #2b3036;
  --muted: #6b747d;
  --line: #e4e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-code: #f4f6f8;
  --radius: 10px;
  --maxw: 1180px;
  --font: 'Inter', Arial, Helvetica, sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
}
.topbar__logo { display: flex; align-items: center; gap: 10px; }
.topbar__logo:hover { text-decoration: none; }
.topbar__sub {
  font-weight: 600; font-size: 13px; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 10px; letter-spacing: .02em;
}
.topbar__search { position: relative; flex: 1; max-width: 420px; }
.topbar__search input {
  width: 100%; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 999px; font: inherit; font-size: 14px; background: var(--bg-soft);
}
.topbar__search input:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(50,144,206,.15);
}
.topbar__suggest {
  position: absolute; top: 110%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(20,30,40,.14); overflow: hidden; z-index: 120;
}
.topbar__suggest a {
  display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--body);
}
.topbar__suggest a:last-child { border-bottom: none; }
.topbar__suggest a:hover { background: var(--bg-soft); text-decoration: none; }
.topbar__suggest strong { display: block; color: var(--ink); font-size: 14px; }
.topbar__suggest span { display: block; font-size: 12px; color: var(--muted); }
.topbar__nav { display: flex; align-items: center; gap: 18px; }
.topbar__nav a { font-size: 14px; font-weight: 500; color: var(--ink); }
.topbar__toggle {
  display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink);
}

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--orange); color: #fff !important; }
.btn--primary:hover { background: var(--orange-dark); text-decoration: none; }

/* ---------- Layout ---------- */
.layout {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 250px 1fr; gap: 40px;
  padding: 0 24px;
}
.layout--wide { display: block; padding: 0; max-width: none; }

.sidebar { padding: 32px 0; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar__group { margin-bottom: 26px; }
.sidebar__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 0 0 8px;
}
.sidebar__nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar__nav li { margin: 0; }
.sidebar__nav a {
  display: block; padding: 6px 12px; border-radius: 7px; color: var(--body);
  font-size: 14.5px; border-left: 2px solid transparent;
}
.sidebar__nav a:hover { background: var(--bg-soft); text-decoration: none; }
.sidebar__nav a.is-active {
  color: var(--orange-dark); font-weight: 600; background: #fff5f0; border-left-color: var(--orange);
}

/* ---------- Content / article ---------- */
.content { padding: 36px 0 64px; min-width: 0; }
.article { max-width: 760px; }
.article__body { font-size: 16px; }
.article__body--center { text-align: center; padding: 40px 0; }

.article__body h1 {
  font-size: 34px; line-height: 1.2; color: var(--ink); font-weight: 700;
  margin: 0 0 18px; letter-spacing: -.01em;
}
.article__body h2 {
  font-size: 23px; color: var(--ink); font-weight: 700; margin: 38px 0 12px;
  padding-top: 8px; letter-spacing: -.01em;
}
.article__body h3 { font-size: 18px; color: var(--ink); font-weight: 600; margin: 28px 0 10px; }
.article__body p { margin: 0 0 16px; }
.article__body ul, .article__body ol { margin: 0 0 16px; padding-left: 22px; }
.article__body li { margin: 6px 0; }
.article__body strong { color: var(--ink); }
.article__body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

.article__body blockquote {
  margin: 0 0 20px; padding: 14px 18px; background: var(--bg-soft);
  border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; color: var(--body);
}
.article__body blockquote p:last-child { margin: 0; }

/* code */
.article__body code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-code); padding: 2px 6px; border-radius: 5px; color: #b5440f;
}
.article__body pre {
  background: var(--ink); color: #e8edf2; padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; margin: 0 0 20px; font-size: 13.5px; line-height: 1.6;
}
.article__body pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; }

/* tables */
.article__body table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.article__body th {
  text-align: left; background: var(--bg-soft); color: var(--ink); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.article__body td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article__body tr:last-child td { border-bottom: none; }
.article__body td code, .article__body th code { white-space: nowrap; }

.article__foot {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(50,144,206,.12), transparent 60%),
    radial-gradient(700px 360px at 5% 0%, rgba(241,101,41,.10), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 60px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600;
  color: var(--blue-dark); margin: 0 0 14px;
}
.hero__title {
  font-size: 48px; line-height: 1.08; color: var(--ink); font-weight: 700;
  margin: 0 0 18px; letter-spacing: -.02em;
}
.hero__title span { color: var(--orange); }
.hero__lead { font-size: 18px; color: var(--body); max-width: 560px; margin: 0 0 28px; }
.hero__search { display: flex; gap: 10px; max-width: 520px; }
.hero__search input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 15px; background: #fff;
}
.hero__search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,144,206,.15); }
.hero__search button {
  padding: 13px 26px; border: none; border-radius: 999px; background: var(--orange);
  color: #fff; font-weight: 600; font: inherit; font-size: 15px; cursor: pointer;
}
.hero__search button:hover { background: var(--orange-dark); }
.hero__quick { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.hero__quick a { color: var(--muted); font-weight: 500; }

/* ---------- Cards ---------- */
.cards {
  max-width: var(--maxw); margin: 56px auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.card {
  display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 12px 30px rgba(20,30,40,.08); transform: translateY(-2px); }
.card__icon {
  display: inline-block; width: 38px; height: 38px; border-radius: 9px; margin-bottom: 12px;
  background: #fff5f0; position: relative;
}
.card__icon::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  background: var(--orange); -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.card__title { display: block; font-weight: 600; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }
.card__desc { display: block; color: var(--muted); font-size: 14px; }

/* simple geometric glyphs via CSS, no external icons */
.card__icon--compass::after { border-radius: 50%; -webkit-mask: none; mask: none; background: var(--orange); box-shadow: inset 0 0 0 3px #fff5f0, inset 0 0 0 5px var(--orange); }
.card__icon--key::after { width: 16px; height: 16px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 4px var(--orange); }
.card__icon--list::after { width: 18px; height: 14px; background: none; border-top: 3px solid var(--orange); border-bottom: 3px solid var(--orange); }
.card__icon--plug::after { width: 14px; height: 18px; border-radius: 4px; background: none; box-shadow: inset 0 0 0 3px var(--orange); }
.card__icon--rocket::after { width: 0; height: 0; background: none; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--orange); }
.card__icon--help::after { width: 18px; height: 18px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 3px var(--orange); }

/* ---------- Two paths section ---------- */
.paths {
  max-width: var(--maxw); margin: 0 auto 72px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.paths__col { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.paths__col h2 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.paths__col > p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.paths__col ol { margin: 0; padding-left: 20px; }
.paths__col li { margin: 8px 0; }

/* ---------- Contact form ---------- */
.contactform { margin-top: 24px; max-width: 560px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field label span { color: var(--orange); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,144,206,.15); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert--error { background: #fff0ed; border: 1px solid #f6c4b4; color: #b5440f; }

/* ---------- Search results ---------- */
.search-meta { color: var(--muted); }
.search-list { list-style: none; margin: 24px 0 0; padding: 0; }
.search-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-list a { font-size: 17px; font-weight: 600; color: var(--ink); }
.search-list p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Thanks / 404 marks ---------- */
.thanks-mark {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 32px; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
}
.thanks-mark--muted { background: var(--bg-soft); color: var(--muted); font-size: 22px; width: auto; padding: 0 22px; border-radius: 999px; }

/* ---------- Footer ---------- */
.sitefooter { background: var(--ink); color: #c4ccd4; margin-top: 40px; }
.sitefooter__inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; text-align: center; }
.sitefooter__tag { color: #fff; font-weight: 500; margin: 14px 0 18px; }
.sitefooter__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.sitefooter__links a { color: #c4ccd4; font-size: 14px; }
.sitefooter__links a:hover { color: #fff; }
.sitefooter__copy { font-size: 12.5px; color: #8a939c; margin: 0; }

/* ---------- Chat widget ---------- */
/* The [hidden] attribute must win over the display rules below, otherwise the
   panel/fab can't be toggled shut. */
.chat-fab[hidden], .chat-panel[hidden] { display: none !important; }
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 130;
  background: var(--orange); color: #fff; border: none; border-radius: 999px;
  padding: 13px 20px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(241,101,41,.4); display: flex; align-items: center; gap: 9px;
}
.chat-fab:hover { background: var(--orange-dark); }
.chat-fab__dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 131; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 44px); background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,30,40,.28); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line);
}
.chat-panel__head {
  background: var(--ink); color: #fff; padding: 14px 16px; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-panel__head button { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.chat-panel__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.chat-msg { padding: 10px 13px; border-radius: 12px; font-size: 14px; max-width: 85%; white-space: pre-wrap; line-height: 1.5; }
.chat-msg--bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-panel__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-panel__form input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; }
.chat-panel__form input:focus { outline: none; border-color: var(--blue); }
.chat-panel__form button { width: 40px; border: none; border-radius: 50%; background: var(--orange); color: #fff; font-size: 18px; cursor: pointer; }
.chat-panel__form button:hover { background: var(--orange-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .sidebar {
    position: fixed; top: 57px; left: 0; bottom: 0; width: 260px; background: #fff;
    border-right: 1px solid var(--line); padding: 24px; height: auto;
    transform: translateX(-100%); transition: transform .2s; z-index: 90;
  }
  .sidebar.is-open { transform: translateX(0); box-shadow: 0 20px 40px rgba(20,30,40,.2); }
  .content { padding: 28px 0 48px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr; }
  .topbar__toggle { display: block; }
  .topbar__nav a:not(.btn) { display: none; }
  .hero__title { font-size: 36px; }
}
@media (max-width: 560px) {
  .topbar__search { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero__inner { padding: 48px 24px 40px; }
  .hero__search { flex-direction: column; }
  .hero__search button { width: 100%; }
}
