/* ============================================================
   Cuisly help center
   Direction: quiet, editorial support UI inspired by modern
   product help centers: white canvas, compact navigation,
   generous reading rhythm, subtle borders and green accents.
   ============================================================ */

:root {
  --creme: #ffffff;
  --papier: #ffffff;
  --beurre: #f5f5f2;
  --encre: #111111;
  --encre-doux: #6d706a;
  --bleu: #10a37f;
  --bleu-fonce: #0a7f63;
  --bleu-pale: #edf8f4;
  --safran: #897560;
  --safran-pale: #f7f1ea;
  --vert: #0a7f63;
  --vert-pale: #edf8f4;
  --or: #8f6c2d;
  --or-pale: #fbf7ed;
  --ligne: #e8e8e3;

  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);

  --ombre: 0 18px 50px rgba(17, 17, 17, 0.08);
  --ombre-sm: 0 10px 30px rgba(17, 17, 17, 0.06);
  --ombre-hover: 0 22px 60px rgba(17, 17, 17, 0.11);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--bleu);
  color: #fff;
}

a {
  color: var(--encre);
  text-decoration: none;
}

a:hover {
  color: var(--bleu-fonce);
}

img,
svg {
  display: block;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--encre);
  text-decoration: none !important;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #111;
  color: #fff;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.brand-name {
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--ligne);
  color: var(--encre-doux);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

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

.main-nav a {
  border-radius: 999px;
  color: var(--encre-doux);
  font-size: 14px;
  font-weight: 540;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none !important;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background: #f4f4f1;
  color: var(--encre);
}

.main-nav a.active {
  background: #f1f1ee;
  color: var(--encre);
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: #fff;
  color: var(--encre-doux);
  cursor: pointer;
  font-size: 14px;
  font-weight: 540;
  padding: 9px 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.search-trigger:hover {
  border-color: #cdcdc7;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
  color: var(--encre);
}

.search-trigger svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.search-trigger kbd {
  min-width: 20px;
  border: 1px solid var(--ligne);
  border-radius: 5px;
  background: #f7f7f4;
  color: #777a74;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.4;
  padding: 0 5px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ligne);
  border-radius: 10px;
  background: #fff;
  color: var(--encre);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Search overlay */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 11vh 20px 24px;
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-overlay.open {
  display: flex;
}

.search-panel {
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(17, 17, 17, 0.22);
  animation: panelIn 0.18s ease-out;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ligne);
  background: #fff;
}

.search-input-row svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: var(--encre-doux);
}

.search-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--encre);
  font-size: 17px;
  outline: 0;
}

.search-input-row input::placeholder {
  color: #9a9c96;
}

.search-close {
  border: 1px solid var(--ligne);
  border-radius: 7px;
  background: #f7f7f4;
  color: var(--encre-doux);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 4px 8px;
}

.search-results {
  max-height: 52vh;
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: block;
  border-radius: 13px;
  padding: 13px 14px;
  text-decoration: none !important;
  transition: background 0.14s ease;
}

.search-result:hover,
.search-result.selected {
  background: #f6f6f3;
}

.search-result .sr-title {
  display: block;
  color: var(--encre);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.search-result .sr-desc {
  display: block;
  margin-top: 2px;
  color: var(--encre-doux);
  font-size: 13.5px;
  line-height: 1.45;
}

.search-result .sr-page {
  display: inline-block;
  margin-top: 5px;
  color: var(--bleu-fonce);
  font-size: 12px;
  font-weight: 620;
}

.search-empty {
  padding: 28px;
  color: var(--encre-doux);
  font-size: 15px;
  text-align: center;
}

/* Home hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 24px 78px;
  border-bottom: 1px solid var(--ligne);
  background:
    linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(900px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.12), transparent);
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--encre-doux);
  font-size: 14px;
  font-weight: 560;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--encre);
  font-style: normal;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--encre-doux);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  min-height: 64px;
  margin: 0 auto;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--ombre-sm);
  cursor: text;
  padding: 10px 12px 10px 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hero-search:hover {
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: var(--ombre-hover);
  transform: translateY(-1px);
}

.hero-search svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--encre-doux);
}

.hero-search span {
  flex: 1;
  color: #888b85;
  font-size: 16px;
  text-align: left;
}

.hero-search .go {
  border: 0;
  border-radius: 11px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 620;
  padding: 11px 18px;
  transition: background 0.16s ease, transform 0.16s ease;
}

.hero-search .go:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.hero-chips a {
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--encre-doux);
  font-size: 13.5px;
  font-weight: 520;
  padding: 7px 13px;
  text-decoration: none !important;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hero-chips a:hover {
  border-color: #d2d2cc;
  background: #fff;
  color: var(--encre);
}

/* Sections and grids */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 32px;
}

.section-num {
  color: var(--encre-doux);
  font-size: 13px;
  font-weight: 600;
}

.section-head h2 {
  color: var(--encre);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-head .sub {
  max-width: 680px;
  color: var(--encre-doux);
  font-size: 16.5px;
  line-height: 1.62;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.topic-card {
  position: relative;
  display: block;
  min-height: 198px;
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  background: #fff;
  color: var(--encre);
  overflow: hidden;
  padding: 24px;
  text-decoration: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.topic-card:hover {
  border-color: #ccccc6;
  box-shadow: var(--ombre-sm);
  transform: translateY(-2px);
}

.topic-card .tc-icon,
.cat-hero .cat-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--ligne);
  border-radius: 12px !important;
  background: #f7f7f4;
  box-shadow: none;
  color: var(--encre);
  font-size: 21px !important;
}

.topic-card .tc-icon svg {
  width: 22px;
  height: 22px;
}

.tc-icon.bleu,
.tc-icon.safran,
.tc-icon.vert,
.tc-icon.or,
.tc-icon.beurre {
  background: #f7f7f4;
}

.topic-card h3 {
  margin-bottom: 8px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.topic-card p {
  margin-bottom: 18px;
  color: var(--encre-doux);
  font-size: 14.5px;
  line-height: 1.55;
}

.topic-card .tc-count {
  color: var(--bleu-fonce);
  font-size: 13px;
  font-weight: 600;
}

.popular-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.popular-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: #fff;
  color: var(--encre);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.35;
  padding: 14px 16px;
  text-decoration: none !important;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.popular-list a:hover {
  border-color: #ccccc6;
  background: #fbfbfa;
  transform: translateY(-1px);
}

.popular-list a .arrow,
.article-list .al-chev {
  margin-left: auto;
  color: #a0a29c;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.16s ease, transform 0.16s ease;
}

.popular-list a:hover .arrow,
.article-list a:hover .al-chev {
  color: var(--bleu-fonce);
  transform: translateX(3px);
}

.popular-list a .q-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f5f5f2;
  font-size: 15px;
}

/* Contact band */

.contact-band {
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  background: #f7f7f4;
  color: var(--encre);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 44px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 58px 24px;
}

.contact-inner h2 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.contact-inner p {
  max-width: 520px;
  color: var(--encre-doux);
  font-size: 16px;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-actions a {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--ligne);
  border-radius: 14px;
  background: #fff;
  color: var(--encre);
  font-size: 15px;
  font-weight: 610;
  padding: 15px 16px;
  text-decoration: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.contact-actions a:hover {
  border-color: #ccccc6;
  box-shadow: var(--ombre-sm);
  transform: translateY(-1px);
}

.contact-actions a small {
  display: block;
  margin-top: 2px;
  color: var(--encre-doux);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.35;
}

.contact-actions .ca-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f7f7f4;
  font-size: 18px;
}

/* Breadcrumbs and article layouts */

.breadcrumbs {
  max-width: 940px;
  margin: 0 auto;
  padding: 28px 24px 0;
  color: var(--encre-doux);
  font-size: 13.5px;
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--encre-doux);
}

.breadcrumbs a:hover {
  color: var(--encre);
}

.breadcrumbs span.sep {
  margin: 0 8px;
  color: #b5b7b0;
}

.breadcrumbs .current {
  color: var(--encre);
}

.article-hero {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 24px 12px;
}

.article-hero .kicker {
  margin-bottom: 12px;
  color: var(--encre-doux);
  font-size: 13px;
  font-weight: 600;
}

.article-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.article-hero .lede {
  max-width: 700px;
  color: var(--encre-doux);
  font-size: 18px;
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 38px 24px 80px;
}

.toc {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--ligne);
  padding: 4px 0 4px 16px;
}

.toc .toc-title {
  margin-bottom: 10px;
  color: var(--encre);
  font-size: 12px;
  font-weight: 650;
}

.toc a {
  display: block;
  border-left: 2px solid transparent;
  color: var(--encre-doux);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin-left: -17px;
  padding: 6px 0 6px 15px;
  text-decoration: none !important;
  transition: border-color 0.14s ease, color 0.14s ease;
}

.toc a:hover,
.toc a.active {
  border-left-color: var(--bleu);
  color: var(--encre);
}

.toc .toc-back {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ligne);
}

.toc .toc-back a {
  border-left: 0;
  color: var(--encre);
  font-size: 13.5px;
  margin-left: 0;
  padding: 2px 0;
}

.article-content {
  min-width: 0;
  max-width: 720px;
}

.article-content section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.article-content h2,
.art-body h2 {
  margin: 34px 0 14px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.article-content h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ligne);
}

.article-content h2 .h-num {
  color: var(--encre-doux);
  font-size: 15px;
  font-weight: 550;
}

.article-content h3,
.art-body h3 {
  margin: 28px 0 10px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.article-content p,
.art-body p {
  margin-bottom: 15px;
  color: #2b2c29;
}

.article-content p.muted,
.art-body p.muted {
  color: var(--encre-doux);
}

.article-content ul,
.article-content ol,
.art-body ul,
.art-body ol:not(.steps) {
  margin: 0 0 18px 22px;
}

.article-content li,
.art-body li {
  margin-bottom: 8px;
}

.article-content li::marker,
.art-body li::marker {
  color: var(--bleu-fonce);
  font-weight: 650;
}

/* Steps */

.steps {
  list-style: none;
  margin: 26px 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 0;
  padding: 0 0 26px 50px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  bottom: 5px;
  left: 15px;
  width: 1px;
  background: var(--ligne);
}

.steps li strong.step-title {
  display: block;
  margin-bottom: 4px;
  color: var(--encre);
  font-size: 16px;
  font-weight: 650;
}

.steps li p {
  margin: 0;
  color: var(--encre-doux);
  font-size: 15px;
  line-height: 1.55;
}

/* Callouts, badges, tables, FAQ */

.callout {
  display: flex;
  gap: 13px;
  margin: 24px 0;
  border: 1px solid var(--ligne);
  border-radius: var(--radius-sm);
  background: #f7f7f4;
  padding: 16px 18px;
  color: #2b2c29;
  font-size: 15px;
  line-height: 1.55;
}

.callout .co-ico {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.5;
}

.callout p {
  margin: 0;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
  color: var(--encre);
}

.callout.info,
.callout.tip {
  border-color: #cfe8df;
  background: var(--bleu-pale);
}

.callout.warn {
  border-color: #ead8c7;
  background: var(--safran-pale);
}

.callout.plan {
  border-color: #eee0b8;
  background: var(--or-pale);
}

.plan-badge,
.status-badge {
  display: inline-block;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: #f7f7f4;
  color: var(--encre-doux);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  margin-left: 6px;
  padding: 5px 9px;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
}

.plan-badge.basics,
.plan-badge.plus,
.status-badge.wip {
  background: var(--bleu-pale);
  border-color: #cfe8df;
  color: var(--bleu-fonce);
}

.plan-badge.premium {
  background: #111;
  border-color: #111;
  color: #fff;
}

.plan-badge.free,
.status-badge.ios {
  background: #f7f7f4;
  color: var(--encre-doux);
}

.status-badge.no-fix {
  background: var(--safran-pale);
  border-color: #ead8c7;
  color: #8b5b2b;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--ligne);
  border-radius: var(--radius-sm);
  background: #fff;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}

thead th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ligne);
  background: #f7f7f4;
  color: var(--encre);
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

tbody td {
  border-top: 1px solid #f0f0ed;
  padding: 12px 16px;
  vertical-align: top;
}

tbody tr:first-child td {
  border-top: 0;
}

tbody tr:nth-child(even) {
  background: #fcfcfb;
}

tbody td:first-child {
  font-weight: 600;
}

td .oui {
  color: var(--vert);
  font-weight: 700;
}

td .non {
  color: #9fa19b;
  font-weight: 650;
}

.faq-item {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--ligne);
  border-radius: var(--radius-sm);
  background: #fff;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  font-size: 16px;
  font-weight: 620;
  padding: 17px 18px;
  text-align: left;
}

.faq-q .faq-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
  background: #f7f7f4;
  color: var(--encre-doux);
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-arrow {
  background: #111;
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-a-inner {
  padding: 0 18px 18px;
  color: var(--encre-doux);
  font-size: 15px;
}

.faq-a-inner p {
  margin-bottom: 10px;
}

.faq-a-inner ul {
  margin-left: 20px;
}

code {
  border: 1px solid var(--ligne);
  border-radius: 6px;
  background: #f7f7f4;
  color: #2b2c29;
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Helpful, article pager and footer */

.helpful {
  margin-top: 56px;
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  background: #fafaf8;
  padding: 24px;
  text-align: center;
}

.helpful p {
  margin-bottom: 14px;
  color: var(--encre);
  font-size: 15.5px;
  font-weight: 620;
}

.helpful button {
  margin: 4px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  background: #fff;
  color: var(--encre);
  cursor: pointer;
  font-size: 14px;
  font-weight: 560;
  padding: 9px 18px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.helpful button:hover {
  border-color: #ccccc6;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
  transform: translateY(-1px);
}

.helpful .thanks {
  display: none;
  color: var(--vert);
  font-weight: 620;
}

.article-pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

.article-pager a {
  flex: 1;
  border: 1px solid var(--ligne);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 16px 18px;
  text-decoration: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.article-pager a:hover {
  border-color: #ccccc6;
  box-shadow: var(--ombre-sm);
  transform: translateY(-1px);
}

.article-pager a small {
  display: block;
  margin-bottom: 4px;
  color: var(--encre-doux);
  font-size: 12px;
  font-weight: 600;
}

.article-pager a span {
  color: var(--encre);
  font-size: 15px;
  font-weight: 620;
}

.article-pager a.next {
  text-align: right;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 24px 34px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.footer-col h4 {
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 620;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  padding: 4px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

/* Category pages */

.cat-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 8px;
}

.cat-hero .cat-ico {
  flex-shrink: 0;
  margin: 3px 0 0;
}

.cat-hero h1 {
  margin-bottom: 8px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.cat-hero .cat-desc {
  max-width: 650px;
  color: var(--encre-doux);
  font-size: 16.5px;
  line-height: 1.58;
}

.cat-hero .cat-meta {
  margin-top: 12px;
  color: var(--encre-doux);
  font-size: 13px;
  font-weight: 560;
}

.cat-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 30px 24px 72px;
}

.sub-section {
  margin-bottom: 42px;
}

.sub-section > h2 {
  margin-bottom: 5px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.sub-section > .sub-desc {
  margin-bottom: 16px;
  color: var(--encre-doux);
  font-size: 15px;
}

.article-list {
  overflow: hidden;
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  background: #fff;
}

.article-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ligne);
  color: var(--encre);
  padding: 17px 20px;
  text-decoration: none !important;
  transition: background 0.14s ease;
}

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

.article-list a:hover {
  background: #fafaf8;
}

.article-list .al-text {
  flex: 1;
  min-width: 0;
}

.article-list .al-title {
  display: block;
  color: var(--encre);
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.35;
}

.article-list .al-desc {
  display: block;
  margin-top: 2px;
  color: var(--encre-doux);
  font-size: 13.5px;
  line-height: 1.45;
}

/* Article pages generated as single-column documents */

.article-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 24px 72px;
}

.article-single .art-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--encre-doux);
  font-size: 13.5px;
  font-weight: 560;
  text-decoration: none !important;
}

.article-single .art-cat:hover {
  color: var(--encre);
}

.article-single h1 {
  margin-bottom: 12px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.article-single .art-lede {
  margin-bottom: 10px;
  color: var(--encre-doux);
  font-size: 18px;
  line-height: 1.55;
}

.article-single .art-updated {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ligne);
  color: var(--encre-doux);
  font-size: 13.5px;
}

.art-body {
  color: #2b2c29;
}

.related {
  margin-top: 48px;
}

.related h2 {
  margin-bottom: 14px;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

/* Known issues */

.issue-card {
  margin-bottom: 16px;
  border: 1px solid var(--ligne);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 20px;
}

.issue-card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 8px !important;
  color: var(--encre);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 620;
}

.issue-card p {
  margin-bottom: 8px;
  color: #2b2c29;
  font-size: 15px;
}

.issue-card .workaround {
  color: var(--encre-doux);
  font-size: 14.5px;
}

.issue-card .workaround strong {
  color: var(--vert);
}

.escalate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  border: 1px solid #ead8c7;
  border-radius: var(--radius-sm);
  background: var(--safran-pale);
  color: #4d4036;
  font-size: 15px;
  line-height: 1.5;
  padding: 16px 18px;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc {
    position: static;
    border-left: 0;
    border-bottom: 1px solid var(--ligne);
    padding: 0 0 18px;
  }

  .toc a {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .contact-inner,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--ligne);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--ombre-sm);
    padding: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .search-trigger {
    margin-left: auto;
  }

  .search-trigger kbd,
  .brand-sub {
    display: none;
  }

  .popular-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 64px 20px 58px;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15.5px;
  }

  .header-inner,
  .section,
  .contact-inner,
  .breadcrumbs,
  .article-hero,
  .article-layout,
  .cat-hero,
  .cat-body,
  .article-single,
  .footer-inner,
  .footer-bottom {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-search {
    min-height: 58px;
    border-radius: 15px;
    padding-left: 16px;
  }

  .hero-search .go {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .article-pager {
    flex-direction: column;
  }

  .article-pager a.next {
    text-align: left;
  }

  .cat-hero {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 18px;
  }

  .search-trigger {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .search-trigger::after {
    content: none;
  }

  .search-trigger {
    font-size: 0;
  }

  .search-trigger svg {
    width: 17px;
    height: 17px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-search span {
    font-size: 14.5px;
  }

  .helpful {
    text-align: left;
  }
}
