:root {
  --bg: #fffdf2;
  --surface: #ffffff;
  --surface-2: #fff7cc;
  --text: #222018;
  --muted: #625b45;
  --line: #f0de93;
  --primary: #f7df1e;
  --primary-2: #f0c300;
  --accent: #ff9f1c;
  --ok: #16a34a;
  --header-height: 72px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(131, 102, 0, 0.14);
  --grad-soft: linear-gradient(135deg, #fffdf3 0%, #fff6d6 100%);
  --grad-panel: linear-gradient(145deg, #ffffff 0%, #fff8df 100%);
  --grad-accent: linear-gradient(90deg, rgba(247, 223, 30, 0.35) 0%, rgba(240, 195, 0, 0.16) 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(247, 223, 30, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 191, 73, 0.16), transparent 30%),
    linear-gradient(180deg, #fffef8 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  flex: 1;
}

.container {
  width: min(1360px, 94vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 250, 233, 0.9));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #1a1a1a;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  transition: all 0.2s ease;
}

.nav-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.nav-icon svg {
  width: 14px;
  height: 14px;
}

.main-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.main-nav a.active {
  color: #1a1a1a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.hero {
  padding: 3.75rem 0 2.25rem;
  background: linear-gradient(180deg, rgba(255, 250, 229, 0.76) 0%, rgba(255, 250, 229, 0) 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6b00;
  font-weight: 700;
  font-size: 0.78rem;
}

.hero h1 {
  line-height: 1.15;
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.lead {
  color: var(--muted);
  max-width: 72ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}

.button.primary .button-icon {
  background: rgba(26, 26, 26, 0.12);
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary .button-icon {
  background: linear-gradient(135deg, #ffe169, #ff9f1c);
  color: #1a1a1a;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.card {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
}

.faq-callout {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 2rem;
}

.clickbox {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0.6rem 0.8rem;
  margin: 0.7rem 0;
}

.clickbox summary {
  cursor: pointer;
  font-weight: 600;
}

.content-page {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #4e3b00;
  border-color: #d1b347;
}

.prose {
  background: linear-gradient(180deg, #ffffff 0%, #fff9e8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.75rem);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.25;
  margin-top: 1.2em;
  margin-bottom: 0.45em;
  scroll-margin-top: calc(var(--header-height) + 14px);
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.prose h1 {
  margin-top: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #3f2f00;
  padding-bottom: 0.35rem;
}

.prose h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 55%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7df1e, #f0c300);
}

.prose h2,
.prose h3,
.prose h4 {
  color: #4e3b00;
}

.prose h2 {
  padding: 0.35rem 0.55rem;
  margin-left: -0.35rem;
  border-left: 4px solid #f0c300;
  background: var(--grad-accent);
  border-radius: 8px;
}

.prose h3 {
  padding-bottom: 0.25rem;
  border-bottom: 1px dashed #e5d086;
}

.prose h4 {
  font-weight: 700;
}

.prose h1:hover,
.prose h2:hover,
.prose h3:hover,
.prose h4:hover {
  color: #2f2400;
  transform: translateX(2px);
}

.prose a {
  color: #846100;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.prose a:hover {
  color: #5f4700;
  background: #fff3bf;
  text-decoration-thickness: 2px;
}

.prose pre {
  border-radius: 10px;
  border: 1px solid #eadfae;
  background: #fff8df;
  color: #2f2608;
  position: relative;
  overflow: auto;
  padding: 1rem 1rem 1rem;
}

.prose pre code {
  display: block;
  padding: 0.15rem 0.1rem;
}

.copy-code {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  border: 1px solid #ddcf95;
  border-radius: 7px;
  background: #fffaf0;
  color: #4a3800;
  font-size: 0.8rem;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
}

.copy-code:hover {
  background: #fff1c8;
}

.prose :not(pre) > code {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.95em;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #fff1ab;
}

/* Prism token palette aligned with the yellow/dark code block theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8c7a42;
}

.token.punctuation {
  color: #5f4f1a;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #a9441b;
}

.token.boolean,
.token.number {
  color: #9c5f00;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #2f7a18;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #6b5210;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #005f8f;
}

.token.function,
.token.class-name {
  color: #7f4b00;
}

.token.regex,
.token.important,
.token.variable {
  color: #8d2b47;
}

/* FAQ structure (injected by site.js) */
.faq-item {
  border: 1px solid var(--line);
  background: #fff9de;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin: 0.75rem 0;
}

.faq-question {
  margin: 0;
  font-weight: 700;
  color: #4e3b00;
}

.faq-answer {
  margin: 0.5rem 0 0;
}

.prose ul.task-list {
  padding-left: 0;
  list-style: none;
}

.prose .task-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.35rem 0;
}

.prose .task-list-item input[type="checkbox"] {
  margin-top: 0.24rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  background: linear-gradient(180deg, #fffdf6 0%, #fff5ce 100%);
}

.footer-grid {
  min-height: 72px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 0.7rem 0;
}

.footer-grid a {
  text-decoration: none;
}

@media (max-width: 820px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 0.2rem;
  }

  .main-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
  }
}



