:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --ink: var(--slate-900);
  --ink-muted: var(--slate-500);
  --ink-soft: var(--slate-400);
  --bg: var(--slate-50);
  --panel: #ffffff;
  --line: var(--slate-200);
  --accent: var(--primary-600);
  --accent-strong: var(--primary-700);
  --radius: 12px;
  --header-h: 64px;
  --sidebar-w: 280px;
  --focus-ring: 0 0 0 3px rgb(14 165 233 / 16%);
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgb(224 242 254 / 75%), transparent 26rem),
    linear-gradient(135deg, #f8fafc, #eff6ff 55%, #eef2ff);
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(14 165 233 / 35%);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 0 0 10px;
  background: var(--primary-700);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 28px);
  border-bottom: 1px solid rgb(226 232 240 / 90%);
  background: rgb(255 255 255 / 90%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
  position: relative;
  display: none;
}

@media (min-width: 720px) {
  .search-wrap {
    display: block;
  }
}

.search-wrap input {
  width: min(280px, 36vw);
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}

.search-wrap::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--slate-400);
  border-radius: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}

.search-wrap::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 58%;
  width: 7px;
  height: 2px;
  background: var(--slate-400);
  transform: rotate(45deg);
  pointer-events: none;
}

.lang-toggle,
.menu-button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--slate-700);
}

.nav-cta {
  background: var(--primary-600);
  color: #fff;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--primary-700);
  text-decoration: none;
}

.menu-button {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--panel);
}

@media (min-width: 980px) {
  .menu-button {
    display: none;
  }
}

.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-h));
}

@media (min-width: 980px) {
  .shell {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }
}

.sidebar {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 32px;
  border-right: 1px solid rgb(226 232 240 / 80%);
  background: rgb(255 255 255 / 72%);
}

.sidebar.open {
  display: flex;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 30;
  overflow: auto;
  background: rgb(248 250 252 / 98%);
  backdrop-filter: blur(10px);
}

@media (min-width: 980px) {
  .sidebar,
  .sidebar.open {
    display: flex;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow: auto;
  }
}

.nav-group {
  margin: 0 0 14px;
}

.nav-group h2 {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--slate-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.nav-group a:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  text-decoration: none;
}

.nav-group a.active {
  background: var(--primary-100);
  color: var(--primary-700);
  font-weight: 700;
}

.content {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 48px) 64px;
}

.article {
  max-width: 880px;
}

.article-meta {
  margin: 0 0 10px;
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article h1 {
  margin: 0 0 12px;
  color: var(--slate-900);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article .lead {
  margin: 0 0 28px;
  color: var(--slate-600);
  font-size: 1.05rem;
}

.article h2 {
  margin: 2rem 0 0.75rem;
  color: var(--slate-900);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.article h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--slate-800);
  font-size: 1.05rem;
  font-weight: 700;
}

.article p,
.article li {
  color: var(--slate-700);
}

.article p {
  margin: 0 0 1rem;
}

.article ul,
.article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.article li + li {
  margin-top: 0.35rem;
}

.article code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-800);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.article pre {
  overflow: auto;
  margin: 0 0 1.25rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f172a;
  color: #e2e8f0;
}

.article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
}

.article table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article th,
.article td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--slate-100);
  color: var(--slate-800);
  font-weight: 700;
}

.article blockquote {
  margin: 0 0 1.25rem;
  padding: 12px 16px;
  border-left: 3px solid var(--primary-500);
  border-radius: 0 10px 10px 0;
  background: var(--primary-50);
  color: var(--slate-700);
}

.article hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.callout {
  margin: 0 0 1.25rem;
  padding: 14px 16px;
  border: 1px solid rgb(14 165 233 / 25%);
  border-radius: var(--radius);
  background: rgb(240 249 255 / 90%);
}

.callout strong {
  color: var(--primary-700);
}

.figure {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgb(15 23 42 / 6%);
}

.figure img {
  width: 100%;
  height: auto;
  background:
    radial-gradient(circle at 20% 0%, rgb(224 242 254 / 80%), transparent 40%),
    linear-gradient(180deg, #f8fafc, #eff6ff);
}

.figure figcaption {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 1.75rem;
}

@media (min-width: 860px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery .figure {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 1.75rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 10px 24px rgb(15 23 42 / 4%);
}

.guide-card .eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.guide-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 1.75rem;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 88%);
}

.brand-strip img {
  height: 28px;
  width: auto;
  opacity: 0.92;
  filter: grayscale(0.15);
}

.brand-strip span {
  color: var(--slate-400);
  font-size: 12px;
  font-weight: 650;
}

.hero-panel {
  margin: 0 0 1.75rem;
  padding: 22px 22px 8px;
  border: 1px solid rgb(14 165 233 / 22%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgb(186 230 253 / 55%), transparent 40%),
    linear-gradient(135deg, #ffffff, #f0f9ff 70%);
}

.hero-panel .kicker {
  margin: 0 0 8px;
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0 0 10px;
}

.shot-frame {
  position: relative;
}

.shot-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(transparent, rgb(248 250 252 / 35%));
  border-radius: 0 0 16px 16px;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pager a {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--slate-700);
  text-decoration: none;
}

.pager a:hover {
  border-color: rgb(14 165 233 / 40%);
  background: var(--primary-50);
  text-decoration: none;
}

.pager span {
  color: var(--slate-400);
  font-size: 12px;
  font-weight: 650;
}

.pager strong {
  color: var(--slate-900);
  font-size: 14px;
}

.pager .next {
  margin-left: auto;
  text-align: right;
}

.footer-note {
  margin-top: 48px;
  color: var(--slate-400);
  font-size: 13px;
}

.error-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.brand-version {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
}

.article {
  max-width: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (min-width: 1180px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}

.article-body {
  max-width: 880px;
}

.toc {
  display: none;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 12px 0 12px 16px;
  border-left: 1px solid var(--line);
}

@media (min-width: 1180px) {
  .toc {
    display: block;
  }
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--slate-400);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 8px;
}

.toc a {
  color: var(--slate-500);
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  line-height: 1.35;
}

.toc a:hover {
  color: var(--primary-700);
  text-decoration: none;
}

.step-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: mii-step;
}

.step-list li {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 92%);
}

.step-list li::before {
  counter-increment: mii-step;
  content: counter(mii-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-list p {
  margin: 6px 0 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

/* v3 theme — matches makeitintelligent.com (logo palette, Red Hat type) */
:root{--primary-50:#F2F8FE;--primary-100:#E3F0FC;--primary-500:#1E88E5;--primary-600:#1E88E5;--primary-700:#155FA8;
--slate-900:#1F2A37;--slate-800:#2B3846;--slate-700:#3A4756;--slate-600:#4A5868;--slate-500:#6B7887;--slate-200:#DDE3EA;--slate-50:#F5F7FA;
--accent:#155FA8;--accent-strong:#3730A3;--focus-ring:0 0 0 3px rgb(30 136 229 / 22%);
font-family:"Red Hat Text",ui-sans-serif,system-ui,sans-serif}
body{background:#F5F7FA}
.article h1,.article h2,.article h3,.brand-mark{font-family:"Red Hat Display",ui-sans-serif,system-ui,sans-serif;letter-spacing:-.015em}
.article h1{font-weight:700}
code,pre,kbd{font-family:"Red Hat Mono",ui-monospace,monospace}
.site-header{background:rgba(245,247,250,.92);backdrop-filter:blur(12px)}
.brand img{height:28px;width:auto}
.nav-cta,.lang-toggle,.menu-button{white-space:nowrap}
