/* Knuckler AI public site (blog and solution pages), styled like the landing page: white canvas,
   hairline borders, near-black ink, and the logo's orange as the single accent. No framework. */
:root {
  --ink: #111111; --ink-2: #444444; --muted: #6b6b6b; --faint: #9a9a9a; --line: #ececec; --line-2: #cfcfcf; --soft: #fafafa;
  --orange: #e56c17; --orange-2: #c4560c; --orange-wash: #fef3ea;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: #fff; }
a { color: var(--orange-2); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
img, svg { max-width: 100%; }
.wrap { width: min(1152px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* announcement + header (as on the landing page) */
.announce { background: var(--orange); text-align: center; padding: 10px 16px; font-size: 13px; }
.announce a { color: rgba(255, 255, 255, .9); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { color: #fff; }
.announce b { color: #fff; font-weight: 600; white-space: nowrap; }
.announce .dot { color: rgba(255, 255, 255, .5); }
.announce .narrow-only { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand b { color: var(--orange); font-weight: 600; }
.brand .logo { width: 24px; height: 24px; object-fit: contain; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 500; font-size: 14px; text-decoration: none; border: 1px solid var(--orange); transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--orange-2); border-color: var(--orange-2); color: #fff; }
.btn svg { transition: transform .15s; }
.btn:hover svg { transform: translateX(2px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line-2); color: var(--ink); }
.btn.big { height: 50px; padding: 0 28px; font-size: 15px; }
.btn.white { background: #fff; color: var(--orange); border-color: #fff; }
.btn.white:hover { background: rgba(255, 255, 255, .9); color: var(--orange-2); }
.btn.outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.outline-white:hover { border-color: #fff; background: transparent; }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 8px; display: flex; color: var(--ink); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel { position: absolute; left: -16px; right: -16px; top: 64px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; }
.mobile-panel > a { display: block; padding: 10px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.mobile-cta { display: flex; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.mobile-cta .btn { flex: 1; }

/* heroes: soft grid and orange glow from the top, like the landing hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(229, 108, 23, .09), transparent 70%), #fff; }
.page-hero.small { padding: 64px 0 44px; }
.grid-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(to right, #f1f1f1 1px, transparent 1px), linear-gradient(to bottom, #f1f1f1 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(17, 17, 17, .04); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; color: var(--ink); line-height: 1.12; }
h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 24px auto 0; text-wrap: balance; }
.page-hero.small h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; }
.lede { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.65; color: var(--muted); margin: 20px auto 0; max-width: 640px; }
.page-hero .narrow:not(.center) .lede { margin-left: 0; }
.page-hero .meta { margin: 18px 0 0; color: var(--faint); font-size: 13px; }
.crumbs { display: flex; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--line-2); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note { margin: 20px 0 0; font-size: 13px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; font-size: 13px; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip span { color: var(--faint); margin-left: 4px; }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip.on span { color: rgba(255, 255, 255, .7); }
.section-title { font-size: clamp(26px, 3.6vw, 40px); margin: 12px 0 0; }

/* cards (the landing card style) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 40px 0 72px; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.post-card:hover { box-shadow: 0 2px 12px rgba(17, 17, 17, .06); color: var(--ink); }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.post-card .cat { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.post-card h3 { font-size: 17px; line-height: 1.35; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; flex: 1; }
.post-card .meta { color: var(--faint); font-size: 12px; }

/* article */
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 0 8px; }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc p { margin: 0 0 8px; padding-left: 14px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; }
.prose p, .prose li { color: #333; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose.solution { padding: 56px 0 8px; }
.faq { margin-top: 48px; }
.faq h2 { margin-bottom: 4px; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 15px; color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex-shrink: 0; margin-top: 3px; color: var(--faint); transition: transform .2s; }
.acc[open] summary svg { transform: rotate(180deg); }
.acc p { margin: -4px 32px 20px 0; color: var(--muted); font-size: 14.5px; }
.related { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--line); }

/* call to action card and footer (as on the landing page) */
.cta-wrap { padding: 80px 0; }
.cta-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; padding: 80px 32px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 80% 20%, #000, transparent 70%); }
.cta-card h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 0 auto; max-width: 820px; }
.cta-card p { color: rgba(255, 255, 255, .82); margin: 16px auto 0; max-width: 560px; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.cta-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 13px; color: rgba(255, 255, 255, .78); }
.cta-points li { display: inline-flex; align-items: center; gap: 6px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 0; }
.site-footer .about p { margin: 12px 0 0; max-width: 260px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.site-footer h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 20px; }
.site-footer .cols > div > a:not(.brand) { display: block; color: var(--muted); text-decoration: none; font-size: 13px; margin: 0 0 12px; }
.site-footer .cols > div > a:not(.brand):hover { color: var(--ink); }
.site-footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.site-footer .bottom p { margin: 0; }
.site-footer .top { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); text-decoration: none; }
.site-footer .top:hover { color: var(--ink); }
.site-footer .top span { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-menu { display: block; }
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .announce .wide { display: none; }
  .announce .narrow-only { display: inline; }
  .page-hero { padding: 64px 0 48px; }
  .hero-cta .btn { width: 100%; }
  .site-footer .bottom { flex-direction: column; }
  .cta-card { padding: 56px 20px; }
}
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
.sub-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.sub-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--soft); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sub-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #333; }
.sub-table tr:last-child td { border-bottom: 0; }
