/* CodeToFun — HTML entity tutorial pages (e.g. XOR) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body.entity-tutorial-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
code {
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.9em;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  line-height: 1.4;
}
a.btn-primary,
.btn-primary {
  background: #2563eb;
  color: #fff;
}
a.btn-primary:hover,
.btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Header / footer — match tool pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  background: #2563eb;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}
.logo-tagline {
  font-size: 0.75rem;
  color: #64748b;
}
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
.desktop-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  font-size: 0.938rem;
  transition: color 0.2s;
}
.desktop-nav a:not(.btn):hover {
  color: #2563eb;
}
.desktop-nav .btn-primary,
.mobile-nav .btn-primary {
  background: #2563eb;
  color: #fff;
}
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  color: #475569;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  font-size: 0.938rem;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}
.footer-brand .logo-name {
  color: #fff;
}
.footer-brand .logo-tagline {
  color: #94a3b8;
}
.follow-heading {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.social-links a {
  background: #1e293b;
  padding: 0.625rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links a:hover {
  background: #334155;
}
.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #334155;
}
.trusted-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
}
.footer-links-col h4 {
  color: #fff;
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links-col a {
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links-col a:hover {
  color: #60a5fa;
}
.footer-all-links ul {
  columns: 2;
  column-gap: 1.5rem;
}
.footer-all-links li {
  break-inside: avoid;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: #94a3b8;
}
.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}
.footer-legal-links a:hover {
  color: #60a5fa;
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #cbd5e1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}
.cookie-notice p {
  font-size: 0.813rem;
  text-align: center;
}
.cookie-notice a:not(.btn) {
  color: #60a5fa;
  text-decoration: underline;
}
.cookie-notice .btn-primary {
  background: #2563eb;
  color: #fff;
}

/* ---------- Doc layout: left nav | article | right TOC ---------- */
.doc-main {
  padding: 2rem 0 3.5rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.doc-layout > .doc-article {
  min-width: 0;
}

.doc-article {
  max-width: 48rem;
  width: 100%;
  margin: 0 auto;
}

.doc-sidebar {
  min-width: 0;
}

.doc-sidebar-inner {
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 1rem 0.9rem;
}

.doc-sidebar--left .doc-sidebar-inner,
.doc-sidebar--right .doc-sidebar-inner {
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.doc-sidebar-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.doc-sidebar-track {
  color: #2563eb;
  transition: color 0.15s;
}
.doc-sidebar-track:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-sidebar-track-sep {
  color: #cbd5e1;
  font-weight: 500;
}

.doc-sidebar-section {
  color: #64748b;
  transition: color 0.15s;
}
.doc-sidebar-section:hover {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-sidebar-current {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.doc-sidebar-pager {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.doc-pager {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}
.doc-pager:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.doc-pager-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.doc-pager-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1d4ed8;
  line-height: 1.3;
}

.doc-sidebar-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.doc-sidebar-list,
.doc-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.doc-sidebar-list a,
.doc-toc-link {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.doc-sidebar-list a:hover,
.doc-toc-link:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.doc-sidebar-list a.is-current {
  background: #eff6ff;
  color: #1d4ed8;
  border-left-color: #2563eb;
  font-weight: 600;
}

.doc-toc-link.is-active {
  background: #f1f5f9;
  color: #0f172a;
  border-left-color: #6366f1;
  font-weight: 600;
}

.doc-sidebar-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.55;
}

.doc-sidebar-card strong {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.doc-sidebar-card code {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.4rem;
  background: #f1f5f9;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #6b21a8;
}

/* Optional: reference / tools left rail (flat list + brand), e.g. ASCII Table */
.doc-sidebar-brand-panel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 0.5rem;
}
.doc-sidebar-brand-panel .doc-sidebar-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #0891b2;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-sidebar-brand-panel .doc-sidebar-brand-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}
.doc-sidebar-brand-panel .doc-sidebar-brand-sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.2;
}
.doc-flat-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.doc-flat-divider {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding: 1rem 0.5rem 0.5rem;
}
.doc-flat-link {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.doc-flat-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.doc-flat-link.is-current {
  background: #cffafe;
  color: #0e7490;
  border-left-color: #0e7490;
  font-weight: 600;
}

/* Grouped right TOC + optional title block */
.doc-toc-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 0.5rem;
}
.doc-toc-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #0891b2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-toc-brand-icon svg {
  width: 1rem;
  height: 1rem;
}
.doc-toc-brand-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}
.doc-toc-brand-sub {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.2;
  margin: 0.15rem 0 0;
}
.doc-toc-group {
  margin-bottom: 1rem;
}
.doc-toc-group:last-of-type {
  margin-bottom: 0;
}
.doc-toc-group .doc-sidebar-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.doc-lead {
  margin-bottom: 2rem;
}
.doc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid #bfdbfe;
}
.doc-kicker svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.doc-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.doc-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.section-text:last-child {
  margin-bottom: 0;
}
.mb-6 {
  margin-bottom: 1.5rem;
}

.doc-article > h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.doc-article > h2:first-of-type {
  margin-top: 0;
}

.entity-section {
  margin: 2rem 0;
}
.entity-section:first-of-type {
  margin-top: 1.5rem;
}

.section-card {
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.section-card-purple {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 40%, #fff 100%);
  border-color: #e9d5ff;
}
.section-card-output {
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
  border-color: #bbf7d0;
}
.section-card-orange {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 50%);
  border-color: #fed7aa;
}
.section-card-white {
  background: #fff;
}
.section-card-tips {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 45%);
  border-color: #bfdbfe;
}
.section-card-faq {
  background: #fff;
  border-color: #e2e8f0;
}
.section-card-next {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border: none;
  color: #e2e8f0;
}
.section-card-next .section-title,
.section-card-next .section-text {
  color: #e2e8f0;
}
.section-card-next .section-title-gradient {
  background: linear-gradient(90deg, #93c5fd, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-card-next a.link-blue {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-card-next a.link-blue:hover {
  color: #bfdbfe;
}
.section-card-next a.link-purple {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-card-next a.link-purple:hover {
  color: #ddd6fe;
}

.section-header {
  margin-bottom: 1rem;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ref-table th,
.ref-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.ref-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ref-table tr:last-child td {
  border-bottom: none;
}
.ref-table td code {
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.8125rem;
  color: #7c3aed;
}

.code-inline {
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.85em;
}
.code-purple {
  background: #f3e8ff;
  color: #6b21a8;
}
.code-orange {
  background: #ffedd5;
  color: #9a3412;
}

/* Code block panel */
.code-panel {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: #0f172a;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  margin: 1.25rem 0;
}
.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.code-panel-filename {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}
.code-panel-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  background: #334155;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.code-panel-copy:hover {
  background: #475569;
}
.code-panel-copy.is-copied {
  background: #15803d;
}
.code-panel-body {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  max-height: 24rem;
}
.code-panel-body code {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre;
  display: block;
}

.try-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
a.try-btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.output-header {
  margin-bottom: 0.5rem;
}
.output-header-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}
.output-intro-text {
  margin-bottom: 1rem;
}

.browser-mockup {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.browser-dots {
  display: flex;
  gap: 0.35rem;
}
.browser-dots .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}
.dot.red {
  background: #f87171;
}
.dot.yellow {
  background: #fbbf24;
}
.dot.green {
  background: #4ade80;
}
.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.browser-content {
  padding: 1.25rem 1.5rem;
}
.output-item {
  padding: 0.5rem 0;
  font-size: 0.938rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.output-item:last-child {
  border-bottom: none;
}

/* How it works — steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-number.step-note {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  font-size: 1rem;
}
.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.step-text {
  font-size: 0.938rem;
  color: #475569;
  line-height: 1.65;
}

/* Use cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.use-case-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.use-case-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.use-case-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.use-case-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.use-case-content p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
}

/* Tips */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.tip-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}
.tip-check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.tip-content p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.938rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.faq-question:hover {
  background: #f1f5f9;
}
.faq-chevron {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s ease;
}
.faq-answer {
  display: none;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-answer code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.related-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}
.related-icon {
  font-size: 1.25rem;
}
.related-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1d4ed8;
}
.related-card p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* Conclusion */
.conclusion-section {
  margin: 2.5rem 0;
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.conclusion-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.conclusion-text {
  font-size: 0.938rem;
  color: #475569;
  line-height: 1.7;
}
.conclusion-text a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.conclusion-text a:hover {
  color: #1d4ed8;
}
.conclusion-text code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.next-steps-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.btn-gradient {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.btn-gradient:hover {
  filter: brightness(1.08);
  color: #fff;
}
.btn-outline-purple {
  border: 1px solid #c4b5fd;
  color: #e9d5ff;
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
}
.btn-outline-purple:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.entity-facts {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
}
.entity-facts a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .doc-main {
    padding: 2.5rem 0 4rem;
  }
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .cookie-notice {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

/* Three-column doc layout (large screens) */
@media (min-width: 1200px) {
  .doc-layout {
    grid-template-columns: 14rem minmax(0, 1fr) 12.5rem;
    gap: 2rem 1.75rem;
    padding: 0 1.25rem;
  }

  .doc-layout > .doc-article {
    max-width: none;
    margin: 0;
  }

}

@media (max-width: 1199px) {
  .doc-layout {
    display: grid;
  }

  .doc-article {
    order: 1;
  }

  .doc-sidebar--left {
    order: 2;
  }

  .doc-sidebar--right {
    order: 3;
  }

  .doc-sidebar--left .doc-sidebar-inner,
  .doc-sidebar--right .doc-sidebar-inner {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
