/* Self-hosted Inter and JetBrains Mono (variable weight, latin + latin-ext; SIL Open Font License).
   Downloaded from Google Fonts so pages don't depend on, or send visitor IPs to, a third party. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/lib/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/lib/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/lib/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/lib/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* CodeSmith Tools design system: tokens, base, components.
   Started from Design/redesign-mockup/site/styles.css; this file is now the source of truth. */
:root {
  --brand: #f4811e;
  --brand-600: #e06c0a;
  --brand-700: #b85507;
  --brand-text: #b45309; /* orange for text and icons: 5:1 on white (WCAG AA) */
  --brand-50: #fff6ee;
  --brand-100: #ffe8d4;

  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6475;
  --muted-2: #667085;
  --line: #e6e8ee;
  --line-2: #eef0f4;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;

  --dark: #0b0f17;
  --dark-2: #121826;
  --dark-line: rgba(255, 255, 255, 0.08);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, 0.18), 0 2px 6px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(16, 24, 40, 0.35), 0 12px 24px -12px rgba(16, 24, 40, 0.12);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  /* Footer stays at the bottom of short pages */
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.btn-primary:hover { background: var(--brand-600); }
.btn:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.btn-secondary:hover { border-color: #cfd4dd; background: var(--bg-soft); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f1f2f5; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; height: 68px; gap: 32px; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 12px; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li.open > button { background: var(--bg-soft); color: var(--ink); }
.nav-links .chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s; }
.nav-links li.open .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.cart-btn:hover { background: var(--bg-soft); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn .badge { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

.menu {
  position: absolute; top: calc(100% + 10px); left: -12px;
  width: 520px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.menu.narrow { width: 260px; grid-template-columns: 1fr; }
li.open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: 12px; padding: 12px; border-radius: 10px; }
.menu a:hover { background: var(--bg-soft); }
.menu .mi-icon { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); }
.menu .mi-icon svg { width: 18px; height: 18px; }
.menu .mi-icon.mi-green { background: #ecfdf3; color: #16a34a; }
.menu .mi-icon.mi-indigo { background: #eef2ff; color: #4f46e5; }
.menu .mi-icon.mi-slate { background: #f1f5f9; color: #334155; }
.menu a:focus-visible { background: var(--bg-soft); }
.menu strong .ext { display: inline; font-size: inherit; font-weight: 500; color: var(--muted-2); margin-left: 2px; }
.menu strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.menu span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close, body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }
.nav-actions .nav-account { flex: none; }
.menu.menu-right { left: auto; right: -12px; }
.nav-links .show-sm { display: none; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.skip-link:focus { left: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(244,129,30,.14), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(244,129,30,.06), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; margin: 24px 0 20px; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: #16a34a; }

/* ---------- Code window ---------- */
.codegen { position: relative; }
.window {
  background: #0d1117; color: #c9d1d9;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-lg);
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.window-bar { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 40px; background: #161b22; border-bottom: 1px solid rgba(255,255,255,.06); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #30363d; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.tabs { display: flex; gap: 2px; height: 100%; }
.tabs span { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 12px; color: #8b949e; border-bottom: 2px solid transparent; }
.tabs span.active { color: #e6edf3; border-bottom-color: var(--brand); }
.tabs .ext { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.tabs .ext.cs { background: #3fb950; }
.window pre { margin: 0; padding: 18px 20px; overflow-x: auto; white-space: pre; }
.ln { display: inline-block; width: 22px; color: #484f58; user-select: none; }
.t-k { color: #ff7b72; } .t-t { color: #79c0ff; } .t-s { color: #a5d6ff; } .t-c { color: #8b949e; font-style: italic; }
.t-d { color: #ffa657; } .t-f { color: #d2a8ff; } .t-x { color: var(--brand); background: rgba(244,129,30,.12); border-radius: 3px; }

.codegen .window { font-size: 12.5px; }
.codegen .window.template { width: 100%; }
.codegen .out-wrap { width: 82%; margin: 20px 0 0 auto; position: relative; z-index: 2; }

/* ---------- Sections ---------- */
section { position: relative; }
/* In-page anchors: sections have 80-104px of top padding, so this lands the heading just below the sticky header + subnav */
:where(section[id]) { scroll-margin-top: 40px; }
.section { padding: 104px 0; }
.section.py-0 { padding-top: 0; padding-bottom: 0; }
.section.pb-0 { padding-bottom: 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.eyebrow-green { color: #15803d; }
/* Product name above a page headline, inside the <h1> */
.eyebrow.h1-kicker { display: block; margin: 0 0 14px; font-size: 13px; line-height: 1.4; letter-spacing: .08em; }
.section-head p + p { margin-top: 12px; }
.why-title { font-size: 20px; margin: 0 0 20px; }
.split .more { margin-top: 20px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dde1e8; }
/* The card's link covers the whole card, so the hover lift means "clickable" */
.product-card .p-foot .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product-card .p-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; }
.product-card .p-icon svg { width: 24px; height: 24px; }
.p-gen .p-icon { background: var(--brand-50); color: var(--brand-text); }
.p-exc .p-icon { background: #ecfdf3; color: #16a34a; }
.p-fra .p-icon { background: #eef2ff; color: #4f46e5; }
.product-card .p-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.product-card h3 { font-size: 24px; margin: 4px 0 10px; }
.product-card > p { color: var(--muted); font-size: 15.5px; }
.checks { margin: 22px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.p-exc .checks svg { color: #16a34a; }
.p-fra .checks svg { color: #4f46e5; }
.product-card .p-foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2, .support-band h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.split .lead, .support-band .lead { font-size: 18px; color: var(--muted); margin-top: 16px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 36px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .fi { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); }
.feature-list .fi svg { width: 18px; height: 18px; }
.feature-list strong { display: block; font-size: 15px; font-weight: 600; }
.feature-list span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.split .actions, .support-band .actions { display: flex; align-items: center; gap: 12px 20px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Dark band (Generator features) ---------- */
.dark { background: var(--dark); color: #e6e9ef; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 15% 0%, rgba(244,129,30,.16), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(244,129,30,.08), transparent 70%);
}
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #9aa3b2; }
.dark .eyebrow { color: #ff9d47; }
.bento { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .cell {
  padding: 28px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--dark-line);
}
.bento .cell.span-2 { grid-column: span 2; }
.bento .cell .ci { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(244,129,30,.12); color: #ff9d47; margin-bottom: 18px; }
.bento .cell .ci svg { width: 20px; height: 20px; }
.bento h3 { font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.bento p { color: #9aa3b2; font-size: 15px; margin-top: 8px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.langs span { font-family: var(--mono); font-size: 12.5px; padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line); color: #c9d1d9; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote.feature { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
.quote.more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; background: var(--brand-50); border-color: var(--brand-100); }
.quote.more strong { font-size: 18px; letter-spacing: -0.01em; }
.quote.more p { color: var(--muted); font-size: 15px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; margin: 0;
  padding: 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); letter-spacing: -0.005em; }
.quote.feature { background: var(--ink); border-color: var(--ink); }
.quote.feature blockquote { color: #fff; font-size: 23px; line-height: 1.5; font-weight: 500; letter-spacing: -0.015em; }
.quote.feature figcaption strong { color: #fff; }
.quote.feature figcaption span { color: #9aa3b2; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote figcaption img, .quote .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.quote .avatar { display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: 14px; }
.quote figcaption strong { display: block; font-size: 14.5px; font-weight: 600; }
.quote figcaption span { display: block; font-size: 13.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 64px;
  background: linear-gradient(135deg, #f4811e 0%, #e5650a 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 360px; height: 360px;
  background: url("/lib/images/brand/codesmith-icon.svg") no-repeat center / contain;
  opacity: .1; filter: brightness(0) invert(1); transform: rotate(-12deg);
}
.cta h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { margin-top: 14px; font-size: 18px; color: rgba(255,255,255,.88); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9aa3b2; padding: 72px 0 36px; margin-top: 104px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 300px; }
.site-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--dark-line); font-size: 13.5px; }

/* =========================================================
   Product page
   ========================================================= */
.page-hero { padding: 72px 0 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 50% 0%, rgba(244,129,30,.13), transparent 70%);
}
.page-hero .center { text-align: center; max-width: 820px; margin: 0 auto; }
.page-hero .p-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-hero .p-logo img { width: 36px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-top: 22px; }
.page-hero h1 .accent { color: var(--brand); }
.page-hero .lead { font-size: 20px; color: var(--muted); margin: 20px auto 0; max-width: 680px; }
.page-hero .hero-ctas { justify-content: center; }
.page-hero .hero-meta { justify-content: center; }
.showcase { margin-top: 64px; position: relative; }

.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; align-items: center; gap: 4px; height: 56px; overflow-x: auto; }
.subnav a:not(.btn) { padding: 7px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.subnav a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.subnav a:not(.btn).active { color: var(--ink); background: var(--bg-soft); }
.subnav .spacer { flex: 1; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why li { padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.why .n { font-family: var(--mono); font-size: 13px; color: var(--brand-text); font-weight: 600; }
.why strong { display: block; margin-top: 10px; font-size: 17px; letter-spacing: -0.01em; }
.why span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feat-grid > div { background: #fff; padding: 30px; }
.feat-grid .fi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-text); margin-bottom: 16px; }
.feat-grid .fi svg { width: 19px; height: 19px; }
.feat-grid h3 { font-size: 17px; letter-spacing: -0.01em; }
.feat-grid p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.plan.popular { border: 2px solid var(--brand); box-shadow: 0 20px 50px -20px rgba(244,129,30,.45); }
.plan .ribbon { position: absolute; top: -12px; left: 30px; padding: 3px 10px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.plan h3 { font-size: 18px; }
.plan .desc { font-size: 14.5px; color: var(--muted); margin-top: 6px; min-height: 46px; }
.plan .price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; }
.plan .price small { color: var(--muted); font-size: 14px; }
.plan .sub { font-size: 13px; color: var(--muted); }
.plan .sub a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.plan .btn { margin: 24px 0; width: 100%; }
.plan .checks { margin: 0; }
.plan .checks li { font-size: 14.5px; }

.more-plans { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.more-plans > div { background: #fff; padding: 22px 24px; display: flex; flex-direction: column; }
.more-plans .k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.more-plans strong { font-size: 16px; margin-top: 6px; }
.more-plans .pp { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; color: var(--ink); flex: none; }
.more-plans span { font-size: 13.5px; color: var(--muted); margin-top: 6px; flex: 1; }
.more-plans a { margin-top: 14px; font-size: 14px; }

.info-row { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 26px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line-2); }
.info-card h4 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.info-card h4 svg { width: 18px; height: 18px; color: var(--brand-text); }
.info-card p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.tiers { margin-top: 14px; display: grid; gap: 8px; }
.tiers div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line-2); }
.tiers b { color: #15803d; }
.tiers b.price { color: var(--ink); }
.card-link { margin-top: 14px; }
.more-plans .pp small { font-size: 14px; font-weight: 500; color: var(--muted); }

/* Comparison */
.compare-scroll { overflow-x: auto; border-radius: 16px; }
.compare-scroll:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
/* Fade at the right edge while there is more table to scroll to */
.compare-scroll { background: linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right / 40px 100% no-repeat local, linear-gradient(to left, rgba(16,24,40,.12), rgba(16,24,40,0)) right / 16px 100% no-repeat scroll; }
.compare-scroll .compare { background: transparent; }
.compare thead small { font-weight: 500; color: var(--muted); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14.5px; background: #fff; }
.compare th, .compare td { padding: 14px 20px; text-align: center; border-top: 1px solid var(--line-2); }
.compare thead th { border-top: 0; background: var(--bg-soft); font-size: 14px; font-weight: 600; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare td:first-child strong { display: block; font-weight: 600; }
.compare td:first-child span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.compare tr.group td { background: #fcfcfd; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); padding: 10px 20px; }
.compare .y svg { width: 18px; height: 18px; color: var(--brand); margin: 0 auto; }
.compare .n { color: #c4c9d2; }

/* Support band */
.support-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.support-card { padding: 36px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.support-card h3 { font-size: 18px; }
.support-card .checks { margin: 0; }
.support-card .price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 20px; }
.support-card .price b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.support-card .price small { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; max-width: 720px; }

/* Template sets */
.templates-block { margin-top: 72px; }
.templates-title { font-size: 20px; margin-bottom: 20px; }
.templates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.templates a { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.templates a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.templates strong { display: block; font-size: 15.5px; }
.templates span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* Single-column split (no illustration beside the copy) */
.split.single { grid-template-columns: 1fr; }
.split.single > * { max-width: 760px; }

/* Template -> output pair under the product page hero */
.showcase .pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.showcase .pair .window { border-radius: 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.showcase .pair > * { min-width: 0; }
@media (max-width: 1080px) { .showcase .pair { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.reveal-armed .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal-armed .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-armed .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .split, .support-band { grid-template-columns: 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 0; }
  .products, .pricing { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .why { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .more-plans, .info-row { grid-template-columns: 1fr 1fr; }
  .templates { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 48px; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .nav-links, .nav-actions .hide-sm { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  body.nav-open .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; padding: 16px 24px;
    background: #fff; overflow-y: auto; gap: 2px;
  }
  body.nav-open .nav-links > li > a, body.nav-open .nav-links > li > button { height: 48px; width: 100%; font-size: 17px; }
  body.nav-open .menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; display: none; }
  body.nav-open li.open > .menu { display: grid; }
  body.nav-open .nav-links .show-sm { display: list-item; }
  body.nav-open .nav-links .nav-sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
  body.nav-open .nav-links .nav-cta { margin-top: 16px; }
  body.nav-open .nav-links > li > a.btn-primary { justify-content: center; background: var(--brand); color: #fff; font-weight: 600; }
  body.nav-open .nav-actions .nav-account { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .bento, .feature-list, .why, .feat-grid, .more-plans, .info-row { grid-template-columns: 1fr; }
  .bento .cell.span-2 { grid-column: auto; }
  .quotes { grid-template-columns: 1fr; }
  .quote.feature { grid-row: auto; }
  .templates { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 36px 28px; }
  .codegen .window.template, .codegen .out-wrap { width: 100%; }
  .codegen .out-wrap { margin-top: 16px; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare td:first-child span { display: none; }
}

/* Grid children must be allowed to shrink below their code blocks' min-content width */
.hero-grid > *, .split > *, .support-band > *, .cta > * { min-width: 0; }
@media (max-width: 820px) {
  .window pre { overflow-x: auto; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- Focus ---------- */
/* One focus ring everywhere (links, nav, cards, summary), matching the buttons */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

/* ---------- Print ---------- */
@media print {
  .site-header, .subnav, .fw-nav, .site-footer, .skip-link, .nav-toggle, .hero-ctas, .cta, .showcase { display: none !important; }
  .reveal, .reveal-armed .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section { padding: 32px 0; }
  .section-soft { background: none; border: 0; }
  /* Browsers drop backgrounds when printing, so dark bands print as dark text on white */
  .dark, .quote.feature { background: none !important; color: var(--ink) !important; }
  .dark h2, .dark h3, .dark p, .quote.feature blockquote, .quote.feature figcaption strong { color: var(--ink) !important; }
  .btn-primary { background: none; color: var(--ink); border-color: var(--line); }
  a[href^="http"]:not(.btn)::after { content: " (" attr(href) ")"; font-size: 12px; color: var(--muted); word-break: break-all; }
}
/* CodeSmith Tools — app pages
 *
 * Restyles the markup the app already renders (views and CMS HTML from the database) with the
 * tokens in site.css, so every page changes without editing views or CMS content.
 *   1. Base layer: plain HTML inside #content (headings, text, lists, tables, code, forms).
 *   2. Legacy class names: .rounded-box, .form-field, .actions, .action-button, .button,
 *      .rounded-button, .download-button, .product-table, .shopping-cart, message boxes.
 * Button rule: the last .action-button in an .actions row is the orange primary, any earlier
 * ones are white secondary, and plain links stay links.
 */

/* ---------- Page frame ---------- */
#content { padding: 56px 0 0; }
#content > .inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
#text::after { content: ""; display: table; clear: both; }
.hide { display: none; } /* toggled by the app scripts (tabs, payment form) */

/* ---------- 1. Base layer ---------- */
:where(#content) { font-size: 16px; line-height: 1.65; color: var(--ink-2); overflow-wrap: break-word; }
:where(#content) h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 16px; }
:where(#content) h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 40px 0 12px; }
:where(#content) h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 28px 0 8px; }
:where(#content) h4, :where(#content) h5, :where(#content) h6 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 20px 0 6px; }
:where(#content) h1 + p { font-size: 18px; color: var(--muted); }
:where(#content) p { margin: 0 0 14px; }
:where(#content) a { color: var(--brand-text); text-decoration: underline; text-decoration-color: rgba(180, 83, 9, .35); text-underline-offset: 3px; }
:where(#content) a:hover { text-decoration-color: currentColor; }
:where(#content) ul, :where(#content) ol { margin: 0 0 16px; padding-left: 22px; }
:where(#content) ul { list-style: disc; }
:where(#content) ol { list-style: decimal; }
:where(#content) li { margin: 4px 0; }
:where(#content) li::marker { color: var(--muted-2); }
:where(#content) img { max-width: 100%; height: auto; display: inline-block; }
:where(#content) hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:where(#content) blockquote { margin: 0 0 16px; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-100); color: var(--muted); }
:where(#content) code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line-2); }
:where(#content) pre { margin: 0 0 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: #0d1117; color: #c9d1d9; font-size: 13px; line-height: 1.7; overflow-x: auto; }
:where(#content) pre code { padding: 0; border: 0; background: none; color: inherit; }
:where(#content) table { border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
:where(#content) th, :where(#content) td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
:where(#content) th { font-size: 13px; font-weight: 600; color: var(--muted); }
:where(#content) em { font-style: italic; }
:where(#content) strong, :where(#content) b { font-weight: 600; color: var(--ink); }

/* Form fields */
:where(#content) input[type=text], :where(#content) input[type=password], :where(#content) input[type=email], :where(#content) input[type=tel],
:where(#content) input:not([type]), :where(#content) select, :where(#content) textarea {
  width: 100%; max-width: 440px; height: 44px; padding: 0 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #d5dae2; border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .15s, box-shadow .15s;
}
:where(#content) textarea { height: auto; min-height: 120px; padding: 10px 14px; max-width: 100%; line-height: 1.5; }
:where(#content) select { padding-right: 36px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6475' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
:where(#content) input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):focus, :where(#content) select:focus, :where(#content) textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 129, 30, .18); }
:where(#content) input[type=checkbox], :where(#content) input[type=radio] { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -2px; accent-color: var(--brand); }
:where(#content) fieldset { border: 0; margin: 0; padding: 0; }
:where(#content) fieldset + fieldset { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
:where(#content) fieldset h3 { font-size: 15px; margin: 18px 0 12px; }

/* ---------- 2. Legacy class names ---------- */

/* Panels: .rounded-box (with or without the old orange title bar) */
.rounded-box { margin: 0 0 32px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
#content .rounded-box > h2:first-child { margin: -4px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); font-size: 18px; }
.rounded-box > :last-child { margin-bottom: 0; }
.rounded-box.small { max-width: 620px; }
.rounded-box.small.left, .rounded-box.small.right { width: calc(50% - 12px); max-width: none; }
.rounded-box.left { float: left; }
.rounded-box.right { float: right; }
.vertical-line { display: none; }
.rounded-box table { width: 100%; }

/* Form rows */
.form-field { margin: 0 0 18px; }
#content .form-field > label:first-child, #content .form-field > label[for] { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
#content .form-field input[type=checkbox] + label, #content .form-field input[type=checkbox] + input + label { display: inline; margin: 0 16px 0 0; font-weight: 500; }
.form-field label em { font-style: normal; color: var(--brand-text); }
.form-field > em, .form-field .small { display: block; margin-top: 6px; font-size: 13.5px; font-style: normal; color: var(--muted); }
.field-validation-error, .form-field .help-inline:not(input), #content form .error { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: #b42318; }
label .field-validation-error, label .field-validation-error div { display: inline; margin: 0 0 0 6px; }
.form-field.error input, input.input-validation-error { border-color: #f04438 !important; }

/* Action rows */
/* Scoped to #content: the marketing pages' own .actions rows (.cta, .split) are styled in site.css */
:where(#content) .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.rounded-box .actions { padding-top: 20px; border-top: 1px solid var(--line-2); }
:where(#content) .actions > a:not([class*=button]):not(.btn):not(.link-arrow) { font-size: 15px; font-weight: 500; }

/* Buttons: every legacy class maps onto the new primary / secondary */
.action-button, .rounded-button, .download-button, a.button, .button,
#content .action-button, #content .rounded-button, #content .download-button, #content a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--brand); background-image: none; color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  transition: background .15s, border-color .15s;
}
.action-button:hover, .rounded-button:hover, .download-button:hover, .button:hover,
#content .action-button:hover, #content .rounded-button:hover, #content .download-button:hover, #content a.button:hover { background: var(--brand-600); color: #fff; }
.action-button.disabled, .action-button[disabled], .button.disabled, .button[disabled] { opacity: .55; pointer-events: none; box-shadow: none; }
.action-button:focus-visible, .rounded-button:focus-visible, .download-button:focus-visible, .button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.action-button span, .rounded-button span, .button span { background: none !important; padding: 0 !important; }
/* Secondary: earlier buttons in a row, and the old gray variants */
.actions > .action-button:not(:last-child), .button.grey, .rounded-button.grey, a.button.grey,
#content .actions > .action-button:not(:last-child), #content .button.grey, #content .rounded-button.grey,
#content .feature-tour-navigation a.button {
  background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.actions > .action-button:not(:last-child):hover, .button.grey:hover, .rounded-button.grey:hover, #content .feature-tour-navigation a.button:hover,
#content .actions > .action-button:not(:last-child):hover, #content .button.grey:hover, #content .rounded-button.grey:hover { background: var(--bg-soft); border-color: #cfd4dd; color: var(--ink); }

/* Message boxes */
.info-box, .error-box, .message-box { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; }
.info-box, .message-box .message-box-info { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.error-box, .message-box .message-box-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.info-box:empty, .error-box:empty { display: none; }

/* Store product tables */
.product-table table { width: 100%; margin: 0; }
.product-table td { padding: 18px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.product-table tr:last-child td { border-bottom: 0; }
.product-table tr:first-child td { padding-top: 4px; }
.product-table .product-name { width: 34%; padding-right: 24px; font-weight: 600; color: var(--ink); }
.product-table .product-description, .product-table .product-description-wide { color: var(--muted); font-size: 15px; padding-right: 24px; }
.product-table .product-quantity { width: 80px; }
#content .product-table .product-quantity input { width: 64px; height: 38px; padding: 0 10px; text-align: center; }
.product-table .product-price { width: 1%; white-space: nowrap; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.product-table .product-price br { display: none; }
#content .product-table .product-price a {
  display: inline-flex; align-items: center; height: 36px; margin-left: 14px; padding: 0 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
#content .product-table .product-price a:hover { background: var(--bg-soft); border-color: #cfd4dd; }

/* Shopping cart */
#content table.shopping-cart { width: 100%; margin: 0; }
.shopping-cart th { white-space: nowrap; }
.shopping-cart td { vertical-align: middle; }
.shopping-cart .cart-delete { width: 36px; }
.shopping-cart .cart-quantity { width: 90px; }
#content .shopping-cart .cart-quantity input { width: 64px; height: 38px; text-align: center; }
.shopping-cart .cart-product { font-weight: 600; color: var(--ink); }
.shopping-cart .cart-price, .shopping-cart .cart-line-discount, .shopping-cart .cart-line-total,
.shopping-cart tfoot td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
#content .shopping-cart tfoot th { text-align: right; color: var(--ink-2); font-size: 14px; border-bottom: 0; }
.shopping-cart tfoot td { border-bottom: 0; }
.shopping-cart .cart-total td, .shopping-cart .cart-total th { font-size: 17px; font-weight: 700; color: var(--ink); }
.shopping-cart .cart-coupon label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#content .shopping-cart .coupon-code-input { width: 200px; height: 38px; margin-right: 8px; }

/* Store FAQ (CMS: dl > dt question / dd answer). The mockup's own .faq component is reset here. */
#content .faq { max-width: none; margin: 40px 0 0; }
#content .faq dt { margin: 22px 0 6px; font-weight: 600; color: var(--ink); }
#content .faq dd { margin: 0; color: var(--ink-2); }
#content .faq dd > em:first-child { font-style: normal; font-weight: 600; color: var(--muted); }

/* CMS feature tours */
.feature-tour-navigation { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 24px; }

/* Frameworks page: one section per framework, CMS body + CMS sidebar card */
.fw-head { max-width: 720px; }
#content .fw-head h1 { margin-bottom: 14px; }
#content .fw-head p { font-size: 18px; color: var(--muted); }
.fw-nav { position: sticky; top: 68px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; margin: 32px -24px 0; padding: 10px 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
#content .fw-nav a { flex: none; padding: 7px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
#content .fw-nav a:hover, #content .fw-nav a.active { color: var(--ink); background: var(--bg-soft); }
.fw-section { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 130px; }
.fw-section:last-child { border-bottom: 0; }
.fw-main > p:first-child img { max-height: 56px; width: auto; }
.fw-main > p:first-child i { display: block; margin-top: 10px; font-size: 20px; font-style: normal; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.fw-side { position: sticky; top: 140px; padding: 24px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 16px; }
#content .fw-side .buttons { display: grid; gap: 10px; margin-bottom: 8px; }
#content .fw-side .buttons a { width: 100%; }
#content .fw-side h2 { margin: 22px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
#content .fw-side p { margin: 0; font-size: 15px; line-height: 2; }


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .fw-section { grid-template-columns: 1fr; gap: 28px; }
  .fw-side { position: static; }
}
@media (max-width: 820px) {
  #content { padding-top: 36px; }
  .rounded-box { padding: 20px; border-radius: 14px; }
  .rounded-box.small.left, .rounded-box.small.right { float: none; width: auto; }
  .actions .action-button { flex: 1 1 auto; }
  .product-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .product-table tr:last-child { border-bottom: 0; }
  .product-table td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; }
  .product-table .product-name { grid-column: 1 / -1; }
  .product-table .product-description, .product-table .product-description-wide { grid-column: 1 / -1; }
  .product-table .product-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; text-align: left; }
  .product-table .product-quantity { grid-row: 3; grid-column: 1; }
  .product-table tr:has(.product-quantity) .product-price { grid-column: 2; grid-row: 3; margin-top: 0; }
  #content .shopping-cart .cart-line-discount, #content .shopping-cart .cart-price { display: none; }
  #content .shopping-cart th, #content .shopping-cart td { padding: 10px 6px; }
  #content .shopping-cart .cart-coupon { display: block; }
  /* Without JS (layout.js wraps wide tables in .table-scroll otherwise) */
  html:not(.js) #content table { display: block; overflow-x: auto; }
  #content .product-table table, .product-table tbody { display: block; }
  #content table.shopping-cart { display: table; }
}

/* Store, cart, checkout and the site-wide jQuery UI dialogs. Loaded after site.css and app.css.
 *
 *   1. Store / cart link row (CMS STORE_INTRODUCTION and SHOPPING_CART blocks)
 *   2. Store product tables
 *   3. Premier Support offer
 *   4. Shopping cart (_CartDisplay), desktop and mobile
 *   5. Checkout steps: login, select user, contact, payment, summary, result, pay invoice
 *   6. jQuery UI dialogs (#error-modal, #info-modal, quote / invoice number, confirmations)
 */

/* ---------- 1. Store / cart shortcuts (_StoreActions) ---------- */
#content .store-lead { max-width: 720px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 32px; }
#content .store-action {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
#content .store-action svg { width: 17px; height: 17px; flex: none; color: var(--brand-text); }
#content .store-action:hover { border-color: #cfd4dd; background: var(--bg-soft); color: var(--ink); }
#content .store-action:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 2. Store product tables ---------- */
#content .product-table .product-price { text-align: right; }
.product-table .product-price > span { display: inline-block; min-width: 96px; }
.product-table .volume-discount { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: #067647; }
#content .product-table td { border-bottom-color: var(--line-2); }
#content .product-table tr:last-child td { border-bottom: 0; }

/* ---------- 3. Premier Support offer ---------- */
.premier-support-description h3 { margin-top: 0 !important; }
.premier-support-description ul { margin-bottom: 20px !important; padding-left: 0 !important; list-style: none !important; }
.premier-support-description li { position: relative; padding-left: 28px; }
.premier-support-description li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e06c0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.premier-support .price { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.premier-support .price b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }

/* ---------- 4. Shopping cart ---------- */
#content .cart-display th { white-space: nowrap; }
#content .cart-display .cart-price, #content .cart-display .cart-line-discount, #content .cart-display .cart-line-total,
#content .cart-display tfoot td, #content .cart-display tfoot th { text-align: right; font-variant-numeric: tabular-nums; }
#content .cart-display thead .cart-price, #content .cart-display thead .cart-line-discount, #content .cart-display thead .cart-line-total { width: 140px; }
#content .cart-display td.cart-delete, #content .cart-display th.cart-delete { width: 44px; padding-left: 4px; padding-right: 4px; }
#content .cart-display .cart-quantity { width: 96px; }
#content .cart-display .cart-delete a {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  color: var(--muted-2); text-decoration: none; transition: background .15s, color .15s;
}
#content .cart-display .cart-delete a:hover { background: #fef3f2; color: #b42318; }
.cart-display .cart-delete svg { width: 16px; height: 16px; }
.cart-display .cart-subtitle { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; font-style: normal; color: #067647; }
.cart-display .cart-sub-item .cart-product { padding-left: 30px; font-weight: 500; color: var(--ink-2); position: relative; }
.cart-display .cart-sub-item .cart-product::before { content: ""; position: absolute; left: 14px; top: 10px; width: 8px; height: 12px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); border-bottom-left-radius: 3px; }

/* Totals */
#content .cart-display tfoot td, #content .cart-display tfoot th { padding-top: 8px; padding-bottom: 8px; border-bottom: 0; }
#content .cart-display tfoot tr:first-child > *, #content .cart-display tfoot tr.cart-subtotal > * { padding-top: 20px; }
#content .cart-display tfoot tr:first-child:not([style*="none"]) ~ tr.cart-subtotal > * { padding-top: 8px; }
#content .cart-display tfoot th { padding-left: 24px; font-weight: 500; color: var(--muted); white-space: nowrap; }
#content .cart-display tfoot td { white-space: nowrap; font-weight: 600; color: var(--ink); }
#content .cart-display tr.cart-total:last-child > th, #content .cart-display tr.cart-total:last-child > td:last-child { padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); }
#content .cart-display #discount-amount { color: #067647; }

/* Coupon */
#content .cart-display td.cart-coupon { width: auto; text-align: left; white-space: normal; vertical-align: top; font-weight: 400; }
#content .cart-display .cart-coupon label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
#content .cart-display .coupon-code-input { width: 220px; height: 40px; margin: 0 8px 0 0; vertical-align: middle; }
#content #apply-coupon-link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; vertical-align: middle;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
#content #apply-coupon-link:hover { background: var(--bg-soft); border-color: #cfd4dd; }
#content #coupon-error:empty { display: none; }

/* Cart action row: back link on the left, Quote / Checkout on the right */
.rounded-box:has(> .cart-display) > .actions > a:first-child:not(.action-button) { margin-right: auto; }
.cart-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.cart-empty p { margin: 0 !important; }
#content .cart-note, #content .secure-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
/* cart.js writes coupon / cart messages ("Could not find coupon ...") into #infobox: neutral, not success-green. */
#content .store-actions ~ #infobox { background: var(--brand-50); border-color: var(--brand-100); color: var(--ink-2); }

/* app.css's input:focus glow also hits auto-focused submit inputs (Summary's lone "Submit Order"); buttons keep the outline ring. */
#content input.action-button:focus { border-color: transparent; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }

/* ---------- 5. Checkout ---------- */
.admin-only {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-left: 10px; border-radius: 99px; vertical-align: middle;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50);
}
#content .form-field p { margin-bottom: 6px; }

/* Payment */
#payment-form .hide { display: none; }
#card-element {
  width: 100%; max-width: 440px; min-height: 44px; padding: 12px 14px;
  background: #fff; border: 1px solid #d5dae2; border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s;
}
#card-element.StripeElement--focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 129, 30, .18); }
#card-element.StripeElement--invalid { border-color: #f04438; }
#card-errors { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: #fef3f2; border: 1px solid #fecdca; color: #b42318; font-size: 14.5px; }
#card-errors:empty { display: none; }
#content .po-note { display: block; max-width: 440px; margin-top: 10px; font-size: 13.5px; font-style: normal; color: var(--muted); }
#content .po-note + .po-note { margin-top: 6px; }
#content .invoice-info table, #checkout-summary table { width: auto; margin: 0 0 8px; font-size: 15px; }
#content .invoice-info th, #content .invoice-info td, #checkout-summary table th, #checkout-summary table td { padding: 6px 0; border: 0; }
#content .invoice-info th, #checkout-summary table th[scope=row] { width: 1%; padding-right: 24px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
#content .invoice-info tr:last-child td { font-size: 17px; font-weight: 700; color: var(--ink); }

/* Summary */
#checkout-summary .summary-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 28px; }
#checkout-summary .summary-details > div { min-width: 0; padding: 20px 22px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line-2); }
#content #checkout-summary .summary-details h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 15px; }
#content #checkout-summary .summary-details h3 a { font-size: 14px; font-weight: 600; }
#checkout-summary .summary-details table { margin: 0; }
#checkout-summary .summary-details td { color: var(--ink); overflow-wrap: anywhere; }
#checkout-summary #payment-type-none, #checkout-summary #po-number { font-size: 15px; color: var(--ink-2); }
#checkout-summary #po-number strong { margin-right: 6px; }

/* Result and paid invoice */
#checkout-result { max-width: 720px; text-align: left; }
#checkout-result .result-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 20px; border-radius: 50%; background: #ecfdf3; color: #067647; }
#checkout-result .result-icon svg { width: 24px; height: 24px; }
#content #checkout-result h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 22px; }
#content #checkout-result .order-number { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
#content #checkout-result .order-number strong { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 6. jQuery UI dialogs (theme CSS is not loaded; this is the whole look) ---------- */
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); }
.ui-widget-overlay { position: fixed; inset: 0; background: rgba(11, 18, 32, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.ui-dialog {
  position: absolute; max-width: calc(100vw - 32px); padding: 0; overflow: hidden; outline: 0;
  font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.ui-dialog .ui-dialog-titlebar { position: relative; display: flex; align-items: center; min-height: 56px; padding: 0 56px 0 22px; border-bottom: 1px solid var(--line-2); }
.ui-dialog.ui-draggable .ui-dialog-titlebar { cursor: move; }
.ui-dialog .ui-dialog-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.ui-dialog .ui-dialog-titlebar-close {
  position: absolute; top: 50%; right: 12px; width: 32px; height: 32px; margin-top: -16px; border-radius: 8px;
  display: grid; place-items: center; color: var(--muted); text-decoration: none;
}
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close.ui-state-hover { background: var(--bg-soft); color: var(--ink); }
.ui-dialog .ui-dialog-titlebar-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ui-dialog .ui-dialog-titlebar-close .ui-icon {
  display: block; width: 16px; height: 16px; overflow: hidden; text-indent: -9999px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ui-dialog.no-titlebar .ui-dialog-titlebar { display: none; }
.ui-dialog .ui-dialog-content { position: relative; padding: 20px 22px; overflow: auto; background: none; border: 0; }
.ui-dialog .ui-dialog-content p { margin: 0 0 12px; }
.ui-dialog .ui-dialog-content p:last-child { margin-bottom: 0; }
.ui-dialog .ui-dialog-content input[type=text] {
  width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #d5dae2; border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.ui-dialog .ui-dialog-content input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 129, 30, .18); }
.ui-dialog .ui-dialog-buttonpane { padding: 14px 22px; border-top: 1px solid var(--line-2); background: var(--bg-soft); }
/* jQuery UI renders buttons in declaration order (OK, Cancel / Yes, No): show the first one last, as the primary. */
.ui-dialog .ui-dialog-buttonset { display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.ui-dialog .ui-dialog-buttonset .ui-button {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 84px; padding: 0 18px; margin: 0;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: background .15s, border-color .15s;
}
.ui-dialog .ui-dialog-buttonset .ui-button:hover { background: #fff; border-color: #cfd4dd; }
.ui-dialog .ui-dialog-buttonset .ui-button:first-child { color: #fff; background: var(--brand); border-color: transparent; }
.ui-dialog .ui-dialog-buttonset .ui-button:first-child:hover { background: var(--brand-600); }
.ui-dialog .ui-dialog-buttonset .ui-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ui-dialog .ui-button-text { padding: 0; }
.ui-dialog .ui-resizable-handle { position: absolute; display: block; font-size: .1px; }
.ui-dialog .ui-resizable-se { right: 0; bottom: 0; width: 14px; height: 14px; cursor: se-resize; }
.ui-dialog .ui-resizable-e { right: 0; top: 0; width: 6px; height: 100%; cursor: e-resize; }
.ui-dialog .ui-resizable-s { bottom: 0; left: 0; width: 100%; height: 6px; cursor: s-resize; }
.ui-dialog .ui-resizable-n, .ui-dialog .ui-resizable-w, .ui-dialog .ui-resizable-ne,
.ui-dialog .ui-resizable-nw, .ui-dialog .ui-resizable-sw { display: none; }
#error-modal, #info-modal, #confirmation-modal { font-size: 15px; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  /* Two even columns of shortcuts on phones */
  .store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
  #content .store-action { height: auto; min-height: 44px; padding: 8px 12px; white-space: normal; line-height: 1.25; font-size: 14px; }

  .product-table .product-price > span { min-width: 0; }
  #content .product-table .product-price { text-align: left; }

  /* Cart: each line becomes a stacked row (product + remove / qty + total); totals become label-value rows. */
  #content table.cart-display, #content .cart-display tbody, #content .cart-display tfoot { display: block; width: 100%; }
  #content .cart-display thead { display: none; }
  #content .cart-display tbody tr {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px;
    padding: 16px 0; border-bottom: 1px solid var(--line-2);
  }
  #content .cart-display tbody td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; text-align: left; }
  #content .cart-display tbody .cart-product { grid-column: 1 / 3; grid-row: 1; }
  #content .cart-display tbody .cart-delete { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; margin: -4px -6px 0 0; }
  #content .cart-display tbody tr > td:first-child:not([class]) { display: none; }
  #content .cart-display tbody .cart-quantity { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
  #content .cart-display tbody .cart-quantity::before { content: "Qty"; font-size: 13px; font-weight: 600; color: var(--muted); }
  #content .cart-display tbody .cart-quantity input { width: 64px; height: 38px; }
  #content .cart-display tbody .cart-line-total { grid-column: 3; grid-row: 2; text-align: right; font-weight: 600; color: var(--ink); }
  #content .cart-display .cart-sub-item .cart-product { padding-left: 22px !important; }
  #content .cart-display .cart-sub-item .cart-product::before { left: 4px; top: 4px; }

  #content .cart-display tfoot tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; padding: 6px 0; }
  #content .cart-display tfoot tr[style*="none"] { display: none; }
  #content .cart-display tfoot td, #content .cart-display tfoot th { display: block; width: auto; padding: 0 !important; border: 0 !important; }
  #content .cart-display tfoot td:not([id]):not(.cart-coupon), #content .cart-display tfoot td[colspan]:not(.cart-coupon) { display: none; }
  #content .cart-display tfoot th { padding-left: 0; }
  #content .cart-display td.cart-coupon { flex: 1 0 100%; margin: 4px 0 16px; padding: 16px 0 !important; border-bottom: 1px solid var(--line-2) !important; }
  #content .cart-display .cart-coupon { display: block; }
  #content .cart-display .coupon-code-input { width: calc(100% - 92px); max-width: none; }
  #content .cart-display tr.cart-total:last-child { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
  #content .cart-display tr.cart-total:last-child > th, #content .cart-display tr.cart-total:last-child > td:last-child { padding-top: 0 !important; border-top: 0 !important; }

  .rounded-box:has(> .cart-display) > .actions > a:first-child:not(.action-button) { flex: 1 0 100%; order: 3; margin: 0; text-align: center; }

  #checkout-summary .summary-details { grid-template-columns: 1fr; }
  #checkout-summary .summary-details > div { padding: 16px 18px; }
  .admin-only { margin: 8px 0 0; }
}

/* Account, downloads, trials, upgrade and support renewal pages. Loaded after site.css and app.css. */

/* ---------- Shared bits ---------- */
.success-box { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#content .table-scroll > table { margin: 0; }
#content .table-scroll.auto { margin: 0 0 20px; }
#content .notice-box > p:last-child, #content .step-box > p:last-child { margin-bottom: 0; }

/* Small "Recommended" tag next to an option label */
#content .option-field .tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: 1px;
}
/* Checkbox options: hint text lines up with the label text, not the box */
.option-field > em { padding-left: 24px; }

/* Middle initial: .small on an input, not the hint text app.css styles */
#content .form-field input.small { display: inline-block; width: 72px; margin-top: 0; font-size: 15px; color: var(--ink); text-align: center; }

/* ---------- Account: tabs, profile grid ---------- */
.account-tabs { display: flex; gap: 4px; margin: 4px 0 32px; border-bottom: 1px solid var(--line); overflow-x: auto; }
#content .account-tabs a {
  flex: none; margin-bottom: -1px; padding: 10px 14px; border-bottom: 2px solid transparent;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap;
}
#content .account-tabs a:hover { color: var(--ink); }
#content .account-tabs a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }

.account-grid { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 360px); gap: 24px; justify-content: start; align-items: start; }
.account-grid > form > .rounded-box.small { max-width: none; margin-bottom: 0; }

/* ---------- Orders and quotes tables ---------- */
#content .order-list-intro { margin: -6px 0 16px; font-size: 15px; color: var(--muted); }
#content table.account-table { width: 100%; margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
#content .account-table th { padding: 0 14px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
#content .account-table td { padding: 14px; vertical-align: middle; }
#content .account-table th:first-child, #content .account-table td:first-child { padding-left: 0; }
#content .account-table th:last-child, #content .account-table td:last-child { padding-right: 0; }
#content .account-table tbody tr:last-child td { border-bottom: 0; }
#content .account-table .right { text-align: right; }
#content .account-table .col-id a { font-weight: 600; }
#content .account-table .col-date { color: var(--muted); white-space: nowrap; }
#content .account-table .col-total { font-weight: 600; color: var(--ink); white-space: nowrap; }
#content .account-table .col-action { white-space: nowrap; font-size: 14px; }
#content .account-table .col-action a:not(.link-arrow) { color: var(--ink-2); text-decoration-color: var(--line); }
#content .account-table .col-action a:not(.link-arrow):hover { color: var(--brand-text); text-decoration-color: currentColor; }
#content .account-table .col-action .link-arrow { text-decoration: none; font-size: 14px; }
#content .account-table tr.empty td { padding: 28px 0; color: var(--muted); text-align: center; }
#content .expiration-table .col-keys { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
#content .expiration-table th { white-space: normal; }
.expiration-table .count-label { display: none; }
.step-box .table-scroll { margin-bottom: 24px; }

/* MvcPaging: span.disabled / span.current / a */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.pager > a, .pager > span {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--line);
}
#content .pager > a { color: var(--ink-2); text-decoration: none; background: #fff; }
#content .pager > a:hover { background: var(--bg-soft); border-color: #cfd4dd; }
.pager > span.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager > span.disabled { color: #c4c9d2; border-color: var(--line-2); }

/* ---------- Downloads ---------- */
.download-list { display: grid; gap: 16px; margin-top: 8px; }
.download-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 0; padding: 24px 28px; }
.download-item.recommended { border-color: #f9c79a; box-shadow: 0 0 0 3px var(--brand-50), var(--shadow-sm); }
.download-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line-2); }
.download-item.recommended .download-icon { background: var(--brand-50); color: var(--brand-text); border-color: var(--brand-100); }
.download-icon svg { width: 22px; height: 22px; }
#content .download-description h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 2px; padding: 0; border: 0; font-size: 18px; }
#content .download-description h2 a { color: var(--ink); text-decoration: none; }
#content .download-description h2 a:hover { color: var(--brand-text); }
.download-kind { font-size: 14px; font-weight: 500; color: var(--muted); }
.download-badge { padding: 2px 9px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 600; letter-spacing: 0; }
#content .download-description p, #content .download-text { margin: 0; color: var(--muted); font-size: 15px; }
#content .download-description .download-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.download-meta span + span::before { content: "·"; margin-right: 14px; color: var(--line); font-family: var(--font); }
.download-action .btn { min-width: 132px; }

/* ---------- Upgrade and support renewal ---------- */
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.purchase-main .rounded-box { margin-bottom: 0; }
.purchase-side { padding: 24px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 16px; }
#content .purchase-side h2 { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
/* The side panel stacks the same shortcut buttons as the store (_StoreActions) */
.purchase-side .store-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
#content .purchase-side .store-action { justify-content: flex-start; width: 100%; }

#content textarea.serial-input { min-height: 156px; font-family: var(--mono); font-size: 14px; line-height: 1.7; resize: vertical; }

.step-box { max-width: 860px; }
#content .step-box > p { color: var(--ink-2); }
.associated-keys { margin: 0 0 20px; }
.associated-keys-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.associatedkeys { display: flex; flex-wrap: wrap; gap: 8px; }
.key-chip { padding: 3px 10px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }

/* Confirmation tables (app.css styles .shopping-cart) */
#content .confirm-table .col-qty { width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
#content .confirm-table .cart-price, #content .confirm-table .cart-line-total, #content .confirm-table tfoot td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#content .confirm-table tfoot th, #content .confirm-table tfoot td { border-bottom: 0; }

.confirm-table .item-subtitle { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: #067647; }
#content .confirm-table .cart-sub-item td { padding-top: 6px; color: var(--muted); font-size: 14.5px; }
#content .confirm-table .cart-sub-item .cart-product { padding-left: 32px; font-weight: 500; color: var(--ink-2); }
#content .confirm-table tbody tr:has(+ .cart-sub-item) td { border-bottom: 0; }
#content .confirm-table tfoot th, #content .confirm-table tfoot td { padding-top: 16px; }

/* FAQ under the upgrade and renewal forms (view markup on /upgrade, CMS GENERATOR_SUPPORT_FAQ on /supportrenewal) */
#content .purchase-faq { max-width: 820px; margin: 72px 0 0; scroll-margin-top: 96px; }
#content .purchase-faq h2 { margin: 0 0 16px; font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
#content .purchase-faq dl { margin: 0; }
#content .purchase-faq dt { margin: 0; padding: 20px 0 6px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink); }
#content .purchase-faq dt:first-child { border-top: 0; padding-top: 4px; }
#content .purchase-faq dd { margin: 0 0 16px; color: var(--ink-2); }
#content .purchase-faq dd > :last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .purchase-layout { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-grid > form > .rounded-box.small { max-width: 660px; }
}
@media (max-width: 820px) {
  #content table.account-table { display: table; overflow: visible; }
  #content .table-scroll > table.shopping-cart { min-width: 0; }
  .download-item { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .download-icon { width: 44px; height: 44px; }
  .download-action { grid-column: 1 / -1; }
  .download-action .btn { width: 100%; }
  #content .purchase-faq { margin-top: 48px; }
  #content .purchase-faq h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  /* Orders and quotes: each row becomes a compact two-line card */
  #content .order-list .account-table, #content .order-list .account-table tbody { display: block; }
  #content .order-list .account-table thead { display: none; }
  #content .order-list .account-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  #content .order-list .account-table tr:last-child { border-bottom: 0; }
  #content .order-list .account-table td { display: block; padding: 0 !important; border: 0; }
  #content .order-list .account-table .col-id { grid-column: 1; grid-row: 1; }
  #content .order-list .account-table .col-total { grid-column: 2; grid-row: 1; }
  #content .order-list .account-table .col-date { grid-column: 1; grid-row: 2; font-size: 14px; }
  #content .order-list .account-table .col-name { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #content .order-list .account-table .col-action { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; text-align: left; }
  #content .order-list .account-table tr.empty { display: block; }
  #content .confirm-table .col-qty { width: 40px; }
  /* Expiration dates: date and count on one line, keys below */
  #content .expiration-table, #content .expiration-table tbody { display: block; }
  #content .expiration-table thead { display: none; }
  #content .expiration-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  #content .expiration-table td { display: block; padding: 0 !important; border: 0; }
  #content .expiration-table .col-date { color: var(--ink); font-weight: 600; }
  #content .expiration-table .col-count { color: var(--muted); font-size: 14px; }
  #content .expiration-table .col-keys { grid-column: 1 / -1; }
  .expiration-table .count-label { display: inline; }
  #content .confirm-table .cart-sub-item .cart-product { padding-left: 16px; }
}

/* Hints under fields are upright (app.css intends this; #content em wins on specificity) */
#content .purchase-main .form-field > em, #content .step-box .form-field > em { font-style: normal; }

/* Content pages, CMS pages and error pages. Loaded after site.css and app.css.
 *   1. CMS pages (cst_DynamicPage via Views/DynamicPage) and the PLINQO feature tour
 *   2. CMS admin: inline "Edit" controls, the page editor and jQuery UI (dialogs, tabs)
 *   3. About, Contact, Our Customers, Testimonials, Search
 *   4. Status pages: 404, error, error report sent, retired video page
 */

/* Links styled as .btn / .link-arrow inside #content lose the base #content a underline and colour */
#content .status-page a.btn, #content .testimonials-page a.link-arrow, #content .status-page a.link-arrow { text-decoration: none; }
#content .status-page a.btn-primary, #content .status-page a.btn-primary:hover { color: #fff; }
#content .status-page a.link-arrow, #content .testimonials-page a.link-arrow { color: var(--brand-text); }

/* ---------- 1. CMS pages ---------- */
.cms-page { max-width: 860px; min-width: 0; }
.cms-page > :first-child, .cms-page > .managewrapper > :nth-child(2) { margin-top: 0; }
#content .cms-page h1 + h2 { margin-top: 24px; }

/* Legacy inline formatting in old CMS HTML (justified legal text, centred titles, fixed widths) */
#content .cms-page [style*="TEXT-ALIGN: justify" i], #content .cms-page [style*="text-align: justify" i] { text-align: left !important; }
#content .cms-page h1[align], #content .cms-page h1[style*="center" i] { text-align: left !important; }
#content .cms-page h1 + h1 { margin-top: -6px; font-size: 20px; letter-spacing: -0.01em; color: var(--muted); }
#content .cms-page h1 b { font-weight: inherit; color: inherit; }
#content .cms-page img[style*="WIDTH" i] { width: auto !important; height: auto !important; }
#content .cms-page iframe { max-width: 100%; border: 0; }

/* Tutorial download link */
#content .cms-page .downloadbox { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line-2); font-size: 15px; color: var(--muted); }
#content .cms-page .downloadbox::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0 5-5m-5 5-5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0 5-5m-5 5-5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--brand-text); }
#content .cms-page .downloadbox a { font-weight: 600; }

/* Cards, check lists and quotes used by CMS landing pages (/plinqo) */
.cms-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.cms-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
#content .cms-card p { font-size: 15px; color: var(--muted); }
#content .cms-card .cms-card-logo { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
#content .cms-card .cms-card-logo img { display: block; width: 100%; max-width: 220px; }
#content .cms-card .cms-card-link { margin: auto 0 0; }
#content .cms-card .cms-card-link a, #content .cms-card .cms-card-link a:hover { font-weight: 600; text-decoration: none; }
#content .cms-card .cms-card-link a::after, #content .tour-group a::after { content: " \2192"; }

#content ul.cms-checks { list-style: none; padding: 0; display: grid; gap: 14px; }
#content ul.cms-checks li { position: relative; margin: 0; padding-left: 30px; }
#content ul.cms-checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e06c0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 12px;
}

.cms-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
#content .cms-quotes blockquote { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: var(--ink-2); }
#content .cms-quotes blockquote p { margin: 0; font-size: 16px; line-height: 1.6; }
#content .cms-quotes blockquote .cite { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
#content .cms-quotes blockquote .cite::before { content: "\2014\00a0"; }

/* Awards (/product/generator/awards) */
#content ul.award-list { list-style: none; padding: 0; display: grid; gap: 12px; }
#content ul.award-list li { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
#content ul.award-list strong { display: block; }
#content ul.award-list span { display: block; font-size: 15px; color: var(--muted); }

/* PLINQO feature tour */
#content .tour-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#content .tour-eyebrow a { color: var(--brand-text); text-decoration: none; }
#content .tour-eyebrow a:hover { text-decoration: underline; }
#content .tour-eyebrow + h1 { margin-bottom: 20px; }
#content .feature-tour-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin: 0 0 28px; }
#content .feature-tour-navigation.bottom { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
#content .feature-tour-navigation a.index { margin-right: auto; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
#content .feature-tour-navigation a.index:hover { color: var(--ink); }
#content .feature-tour-navigation a.index::before { content: "\2190\00a0"; }
#content .feature-tour-navigation a.button { height: 40px; padding: 0 16px; font-size: 14.5px; }
#content .feature-tour-navigation a.button.previous::before { content: "\2190"; }
#content .feature-tour-navigation a.button.next::after { content: "\2192"; }
#content .feature-tour-navigation a.button.start { height: 44px; padding: 0 20px; font-size: 15px; background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
#content .feature-tour-navigation a.button.start:hover { background: var(--brand-600); color: #fff; }
#content .feature-tour-navigation a.button.previous:only-of-type { margin-left: 0; }
/* Each feature links to its recording on YouTube (the old Flash player no longer runs) */
#content .tour-video { margin: 0 0 24px; }
/* A pill button with a play icon, so it reads as an action rather than a sentence */
#content .tour-video a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 18px 5px 6px;
  border: 1px solid var(--line); border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color .15s, background .15s;
}
#content .tour-video a:hover { border-color: #cfd4dd; background: var(--bg-soft); }
#content .tour-video a::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e06c0a'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") no-repeat 55% center / 14px; border: 1px solid var(--brand-100); }
#content .tour-video a:hover { color: var(--brand-text); }
#content #feature-tour img { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.tour-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tour-group { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
#content .tour-group h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#content .tour-group ul { list-style: none; padding: 0; margin: 0; }
#content .tour-group li { margin: 0; border-top: 1px solid var(--line-2); }
#content .tour-group li:first-child { border-top: 0; }
#content .tour-group a { display: block; padding: 9px 0; font-weight: 600; color: var(--ink); text-decoration: none; }
#content .tour-group a:hover { color: var(--brand-text); }
#content .tour-group a::after { color: var(--muted-2); }

/* Two-column CMS layout (LayoutType 2) */
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.two-column #sidebar { padding: 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line-2); font-size: 15px; }
#content .two-column #sidebar h2 { margin-top: 0; font-size: 17px; }
.two-column #sidebar > :last-child { margin-bottom: 0; }

/* ---------- 2. CMS admin ---------- */
/* Inline "Edit" control rendered around every DynamicContent block and CMS page for admins */
.managewrapper { position: relative; margin: 0 -12px 8px; padding: 12px; border-radius: var(--radius-sm); outline: 1px dashed transparent; transition: outline-color .15s, background .15s; }
.managewrapper:hover { outline-color: #f6b77d; background: rgba(255, 246, 238, .45); }
.managewrapper .managewrapper { margin: 0; padding: 0; }
.manage { position: absolute; top: 8px; right: 8px; z-index: 5; }
#content .manage a, .manage a {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; line-height: 1; text-decoration: none; color: var(--brand-700);
  background: #fff; border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm);
  opacity: .75; transition: opacity .15s, background .15s;
}
.manage a::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.managewrapper:hover > .manage a, .manage a:focus-visible { opacity: 1; }
#content .manage a:hover, .manage a:hover { background: var(--brand-50); }
/* Empty CMS blocks ("Edit Me" placeholders) keep a usable target */
.managewrapper:has(> .manage:only-child) { min-height: 48px; }

/* Page editor (/<path>?edit=true) */
.cms-edit-page { max-width: 960px; }
.cms-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
#content .cms-edit-page .form-field input, #content .cms-edit-page .form-field select { max-width: none; }

/* CMS editor dialog (#dynamic-modal, built by dynamic-content.js). The general jQuery UI dialog look
   (overlay, title bar, buttons, text inputs) is in app-store.css; these rules only add what the editor needs. */
.ui-dialog .edit-content select {
  width: 100%; height: 44px; padding: 0 36px 0 14px; font: inherit; font-size: 15px; color: var(--ink); appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%235b6475%27 stroke-width=%272%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid #d5dae2; border-radius: var(--radius-sm);
}
.ui-dialog .edit-content select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 129, 30, .18); }
/* dynamic-content.js sizes CKEditor to the dialog height minus 140px (80px for blocks), so Title and
   Layout share a row to stay within that */
.ui-dialog .edit-content { display: grid; grid-template-columns: minmax(0, 1fr) 200px; column-gap: 12px; }
.ui-dialog .edit-content .form-field { margin: 0 0 10px; }
.ui-dialog .edit-content .form-field:last-child,
.ui-dialog .edit-content:has(#dynamic-layout-div[style*="none"]) .form-field { grid-column: 1 / -1; }
.ui-dialog .edit-content label { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
#dynamic-modal.ui-dialog-content { padding-top: 14px; padding-bottom: 0; }
/* CKEditor 3 (kama skin) predates the global border-box rule */
.cke_skin_kama, .cke_skin_kama *, .cke_skin_kama *::before, .cke_skin_kama *::after { box-sizing: content-box; }
/* ...and lays its UI out in tables, which the #content table/td/textarea base styles would restyle */
#content .cke_skin_kama table { display: table; margin: 0; font-size: inherit; }
#content .cke_skin_kama td, #content .cke_skin_kama th { padding: 0; border: 0; vertical-align: top; }
#content .cke_contents textarea { max-width: none; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
/* Tabs (About Us) */
.ui-tabs .ui-tabs-hide { display: none !important; }

/* ---------- 3. Content pages ---------- */
/* About Us: intro + jQuery UI tabs (aboutus.js) */
.about-intro { max-width: 820px; }
#content .about-intro h1 + p { font-size: 19px; }
#content .about-tabs .tabs {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 36px 0 32px; overflow-x: auto; scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--line);
}
#content .about-tabs .tabs::-webkit-scrollbar { display: none; }
#content .about-tabs .tabs li { flex: none; margin: 0; }
#content .about-tabs .tabs a { display: block; padding: 10px 14px 12px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
#content .about-tabs .tabs a:hover { color: var(--ink); }
#content .about-tabs .tabs .ui-tabs-selected a, #content .about-tabs .tabs .ui-state-active a { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
#content .about-tabs .tabs a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 6px; }
.about-tabs .panel { max-width: 760px; }
/* Before aboutus.js runs (or without JS) the panels stack, so give each one room */
.about-tabs:not(.ui-tabs) .panel + .panel { margin-top: 40px; }
/* With JS, only the first panel shows until the tabs are set up (no flash of every panel) */
.js .about-tabs:not(.ui-tabs) .panel + .panel { display: none; }
#content .about-tabs .panel h2, #content .about-tabs .panel h3 { font-size: 22px; letter-spacing: -0.02em; }
#content .about-tabs .panel h2:first-child, #content .about-tabs .panel h3:first-child,
#content .about-tabs .panel .managewrapper > .manage + h3 { margin-top: 0; }
#content .about-tabs address { font-style: normal; line-height: 1.7; padding: 16px 20px; border-left: 3px solid var(--brand-100); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Contact Us (CONTACT_US_INTRODUCTION) */
.contact-page { max-width: 1000px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
#content .contact-card a[href^="mailto:"] { white-space: nowrap; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
#content .contact-card h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#content .contact-card p { margin: 0; line-height: 1.75; }
#content .contact-card ul { list-style: none; padding: 0; margin: 0; }
#content .contact-card li { margin: 0 0 6px; }
#content .contact-card li a { cursor: pointer; }

/* Our Customers (cst_CustomerShowcase) */
.customers-page > .managewrapper, .customers-page > h1, .customers-page > p { max-width: 820px; }
#content ul.customer-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
#content .customer-grid li { margin: 0; }
#content .customer-grid .customer-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; padding: 22px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.customer-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; }
#content .customer-logo img { display: block; width: auto; height: auto; max-width: 150px; max-height: 72px; object-fit: contain; }
.customer-name { margin-top: auto; font-size: 13.5px; font-weight: 500; line-height: 1.35; text-align: center; color: var(--ink-2); }

/* Testimonials */
.testimonials-head { max-width: 760px; margin-bottom: 36px; }
#content .testimonials-head p { margin-bottom: 12px; }
.testimonial-list { columns: 3 300px; column-gap: 18px; }
.testimonial {
  break-inside: avoid; margin: 0 0 18px; padding: 24px; display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
#content .testimonial blockquote { margin: 0; padding: 0; border: 0; color: var(--ink-2); }
#content .testimonial .testimonial-summary { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.5; letter-spacing: -0.005em; color: var(--ink); }
#content .testimonial .testimonial-body { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.testimonial figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 1.4; }
.testimonial figcaption strong { display: block; font-weight: 600; color: var(--ink); }
.testimonial figcaption span { display: block; margin-top: 2px; color: var(--muted); }

/* Submit a testimonial */
.form-page { max-width: 640px; }
#content .form-page .form-field input, #content .form-page .form-field textarea { max-width: none; }
#content .form-page #SummaryQuote { min-height: 76px; }
#content .form-page .form-field > em { font-style: normal; }

/* Search */
.search-page { max-width: 680px; }
.search-form { display: flex; gap: 10px; margin: 28px 0 20px; }
#content .search-form input[type=search] {
  flex: 1 1 auto; min-width: 0; width: 100%; max-width: none; height: 48px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d5dae2; border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); -webkit-appearance: none; appearance: none;
}
#content .search-form input[type=search]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 129, 30, .18); }
#content .search-form .action-button { height: 48px; }
#content .search-alt { font-size: 15px; color: var(--muted); }

/* ---------- 4. Status pages (404, error, report sent, retired videos) ---------- */
.status-page { max-width: 600px; min-height: 42vh; margin: 0 auto; padding: 40px 0 16px; text-align: center; }
#content .status-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
#content .status-page h1 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 48px); }
#content .status-page > p:not(.status-eyebrow) { font-size: 18px; color: var(--muted); }
#content .status-page code { font-size: .85em; word-break: break-all; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 32px; }
.status-actions .link-arrow svg { width: 16px; height: 16px; }
#content ul.status-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-2); font-size: 15px; }
#content ul.status-links li { margin: 0; }
#content ul.status-links a { color: var(--muted); text-decoration: none; }
#content ul.status-links a:hover { color: var(--ink); }
.status-form { margin-top: 28px; text-align: left; }
#content .status-form .form-field input, #content .status-form .form-field textarea { max-width: none; }
#content .status-form label .optional { font-weight: 400; color: var(--muted); }
.testimonials-head .link-arrow svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .two-column { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 820px) {
  .cms-cards, .cms-quotes, .contact-grid, .tour-index, .cms-edit-row { grid-template-columns: minmax(0, 1fr); }
  .cms-cards { gap: 12px; }
  #content .cms-card .cms-card-logo img { max-width: 180px; }
  #content .feature-tour-navigation a.index { flex-basis: 100%; }
  #content .feature-tour-navigation .button { flex: 1 1 0; }
  #content .about-tabs .tabs { margin: 28px -24px 24px; padding: 0 24px; }
  #content .about-tabs .tabs a { padding: 10px 10px 12px; }
  #content ul.customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  #content .customer-grid .customer-card { padding: 16px 10px 12px; gap: 10px; }
  .customer-logo { height: 56px; }
  #content .customer-logo img { max-width: 120px; max-height: 56px; }
  .status-page { padding-top: 16px; }
  .status-actions { flex-direction: column; }
  .status-actions .btn { width: 100%; }
  .search-form { flex-direction: column; }
  .managewrapper { margin-left: 0; margin-right: 0; padding: 8px 0; }
  .ui-dialog:has(#dynamic-modal) { left: 12px !important; width: calc(100vw - 24px) !important; }
}

/* Documentation (/docs): three-column layout, sidebar navigation, search, article typography and code. */

.docs { border-top: 1px solid var(--line-2); }
.docs-layout {
  display: grid; grid-template-columns: 272px minmax(0, 1fr) 220px; gap: 56px;
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
}
.docs-mobilebar { display: none; }

/* ---------- Sidebar ---------- */
.docs-sidebar {
  position: sticky; z-index: 5; top: 68px; align-self: start; height: calc(100vh - 68px); overflow-y: auto;
  padding: 28px 16px 40px 0; border-right: 1px solid var(--line-2); scrollbar-width: thin;
}
.docs-search { position: relative; margin: 0 0 20px; }
.docs-search > svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted-2); pointer-events: none; }
.docs-search input {
  width: 100%; height: 40px; padding: 0 36px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  font: inherit; font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.docs-search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(244, 129, 30, .18); }
.docs-search kbd { position: absolute; right: 10px; top: 50%; margin-top: -11px; height: 22px; min-width: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 600 12px/20px var(--font); color: var(--muted); text-align: center; }
.docs-search input:focus + kbd { display: none; }
.docs-search-results {
  position: fixed; z-index: 60; left: 0; top: 0; width: 520px; max-height: 70vh; overflow-y: auto;
  padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.docs-search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.docs-search-results a:hover, .docs-search-results a.active { background: var(--bg-soft); }
.docs-search-results small { display: block; font-size: 12px; color: var(--muted); }
.docs-search-results strong { display: block; font-size: 14.5px; font-weight: 600; }
.docs-search-results span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.docs-search-results mark { background: var(--brand-50); color: var(--brand-text); border-radius: 3px; padding: 0 1px; }
.docs-search-results .empty { padding: 14px 12px; font-size: 14px; color: var(--muted); }

.docs-nav, .docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav > li { margin-bottom: 2px; }
.docs-nav > li.has-children { margin-top: 18px; }
.docs-nav > li.has-children > .docs-nav-row > a, .docs-nav > li.has-children > .docs-nav-row > span {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2);
}
.docs-nav > li.has-children > .docs-nav-row .docs-nav-toggle { display: none; }
.docs-nav a, .docs-nav-row > span { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.docs-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.docs-nav a.active { background: var(--brand-50); color: var(--brand-text); font-weight: 600; }
.docs-nav-row { display: flex; align-items: center; gap: 2px; }
.docs-nav-row > a, .docs-nav-row > span { flex: 1; min-width: 0; }
.docs-nav-toggle { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted-2); cursor: pointer; }
.docs-nav-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.docs-nav-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.docs-nav li.open > .docs-nav-row .docs-nav-toggle svg { transform: rotate(90deg); }
.docs-nav li li.has-children > ul { display: none; }
.docs-nav li li.has-children.open > ul { display: block; }
.docs-nav ul ul { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 1px solid var(--line-2); }
.docs-nav-home { font-weight: 600; }

/* ---------- Article ---------- */
.docs-article { min-width: 0; padding: 36px 0 80px; overflow-wrap: break-word; }
.docs-article h1, .docs-prose h2, .docs-prose h3 { overflow-wrap: anywhere; }
.docs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.docs-crumbs a { color: var(--muted); }
.docs-crumbs a:hover { color: var(--brand-text); }
.docs-crumbs .sep { color: var(--line); }
.docs-crumbs .sep:last-child { display: none; }
.docs-article > h1 { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 20px; }
.docs-lead { font-size: 19px; color: var(--muted); max-width: 760px; margin: -6px 0 24px; }

.docs-prose { font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 820px; overflow-wrap: break-word; }
.docs-prose > :first-child { margin-top: 0; }
/* Headings link to themselves (Lume toc plugin); they should still look like headings. */
.docs-prose .header-anchor { color: inherit; text-decoration: none; }
.docs-prose .header-anchor:hover { text-decoration: none; }
.docs-prose .header-anchor::after { content: "#"; margin-left: 8px; color: var(--muted); opacity: 0; font-weight: 500; }
.docs-prose .header-anchor:hover::after, .docs-prose .header-anchor:focus-visible::after { opacity: 1; }
.docs-prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 88px; }
.docs-prose h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 32px 0 10px; scroll-margin-top: 88px; }
.docs-prose h4, .docs-prose h5, .docs-prose h6 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; scroll-margin-top: 88px; }
.docs-prose p { margin: 0 0 16px; }
.docs-prose a { color: var(--brand-text); text-decoration: underline; text-decoration-color: rgba(180, 83, 9, .35); text-underline-offset: 3px; }
.docs-prose a:hover { text-decoration-color: currentColor; }
.docs-prose ul, .docs-prose ol { margin: 0 0 18px; padding-left: 24px; }
.docs-prose ul { list-style: disc; }
.docs-prose ol { list-style: decimal; }
.docs-prose li { margin: 6px 0; }
.docs-prose li::marker { color: var(--muted-2); }
.docs-prose li > p { margin-bottom: 8px; }
.docs-prose strong { font-weight: 600; color: var(--ink); }
.docs-prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.docs-prose img { max-width: 100%; height: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.docs-prose blockquote { margin: 0 0 18px; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.docs-prose kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 600 13px/1.5 var(--font); text-align: center; }
.docs-prose :not(pre) > code { font-size: .875em; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink); }

/* Tables (wrapped in .table-scroll by docs.js when too wide) */
.docs-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; }
.docs-prose th, .docs-prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-prose thead th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.docs-prose td code { white-space: nowrap; }
.docs-prose .table-scroll { overflow-x: auto; margin: 0 0 22px; }
.docs-prose .table-scroll > table { margin: 0; }

/* Code blocks */
.docs-prose pre {
  position: relative; margin: 0 0 22px; padding: 16px 18px; border-radius: 12px; background: #0d1117; color: #c9d1d9;
  font-size: 13.5px; line-height: 1.65; overflow-x: auto; tab-size: 4;
}
.docs-prose pre code { font-family: var(--mono); background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.docs-codeblock { position: relative; margin: 0 0 22px; }
.docs-codeblock > pre { margin: 0; padding-top: 40px; }
.docs-codeblock-bar { position: absolute; z-index: 1; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 8px 0 16px; border-bottom: 1px solid rgba(255,255,255,.06); color: #8b949e; font: 600 11.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; }
.docs-copy { height: 24px; padding: 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: transparent; color: #c9d1d9; font: 500 12px var(--font); letter-spacing: 0; text-transform: none; cursor: pointer; }
.docs-copy:hover { background: rgba(255,255,255,.08); }
.docs-copy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Syntax highlighting (Prism tokens) */
.docs-prose .token.comment, .docs-prose .token.prolog, .docs-prose .token.doctype, .docs-prose .token.cdata { color: #8b949e; font-style: italic; }
.docs-prose .token.keyword, .docs-prose .token.important, .docs-prose .token.atrule { color: #ff7b72; }
.docs-prose .token.string, .docs-prose .token.char, .docs-prose .token.attr-value, .docs-prose .token.regex { color: #a5d6ff; }
.docs-prose .token.class-name, .docs-prose .token.builtin, .docs-prose .token.number, .docs-prose .token.boolean, .docs-prose .token.constant, .docs-prose .token.attr-name { color: #79c0ff; }
.docs-prose .token.function { color: #d2a8ff; }
.docs-prose .token.tag, .docs-prose .token.selector { color: #7ee787; }
.docs-prose .token.directive, .docs-prose .token.directive-name, .docs-prose .token.asp, .docs-prose .token.page-directive { color: #ffa657; }
.docs-prose .token.punctuation, .docs-prose .token.operator { color: #c9d1d9; }

/* Callouts (GitHub alert syntax) */
.docs-prose .markdown-alert { margin: 0 0 20px; padding: 14px 18px; border: 1px solid; border-left-width: 4px; border-radius: 10px; font-size: 15px; }
.docs-prose .markdown-alert > :last-child { margin-bottom: 0; }
.docs-prose .markdown-alert-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.docs-prose .markdown-alert-title svg { width: 16px; height: 16px; fill: currentColor; }
.docs-prose .markdown-alert-note { background: #eff6ff; border-color: #bfdbfe; border-left-color: #3b82f6; }
.docs-prose .markdown-alert-note .markdown-alert-title { color: #1d4ed8; }
.docs-prose .markdown-alert-tip { background: #ecfdf3; border-color: #abefc6; border-left-color: #16a34a; }
.docs-prose .markdown-alert-tip .markdown-alert-title { color: #067647; }
.docs-prose .markdown-alert-important { background: #f5f3ff; border-color: #ddd6fe; border-left-color: #7c3aed; }
.docs-prose .markdown-alert-important .markdown-alert-title { color: #6d28d9; }
.docs-prose .markdown-alert-warning { background: var(--brand-50); border-color: var(--brand-100); border-left-color: var(--brand); }
.docs-prose .markdown-alert-warning .markdown-alert-title { color: var(--brand-text); }
.docs-prose .markdown-alert-caution { background: #fef3f2; border-color: #fecdca; border-left-color: #f04438; }
.docs-prose .markdown-alert-caution .markdown-alert-title { color: #b42318; }

/* ---------- Docs home cards ---------- */
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 32px 0 8px; max-width: 980px; }
.docs-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.docs-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.docs-card small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.docs-card strong { font-size: 16.5px; color: var(--ink); }
.docs-card span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Previous / next ---------- */
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 820px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.docs-pager a:hover { border-color: var(--brand); }
.docs-pager .next { text-align: right; grid-column: 2; }
.docs-pager span { font-size: 13px; color: var(--muted); }
.docs-pager strong { font-size: 15px; color: var(--ink); }

/* ---------- On this page ---------- */
.docs-toc { position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto; padding: 36px 0 40px; font-size: 13.5px; }
.docs-toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.docs-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.docs-toc li.lvl3 a { padding-left: 26px; font-size: 13px; }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { color: var(--brand-text); border-left-color: var(--brand); font-weight: 600; }

.docs-is-home .docs-toc { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .docs-layout { grid-template-columns: 256px minmax(0, 1fr); gap: 40px; }
  .docs-toc { display: none; }
}
@media (max-width: 900px) {
  .docs-layout { display: block; padding: 0 20px; }
  .docs-mobilebar { display: block; position: sticky; top: 68px; z-index: 20; padding: 10px 20px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line-2); }
  .docs-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 500 14.5px var(--font); color: var(--ink-2); cursor: pointer; }
  .docs-menu-btn svg { width: 18px; height: 18px; }
  .docs-sidebar {
    /* Above the sticky site header (z-index 50), so the search box at its top can be tapped. */
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); height: auto; overflow-y: auto;
    padding: 20px; background: #fff; border-right: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateX(-105%); transition: transform .2s ease; visibility: hidden;
  }
  body.docs-nav-open .docs-sidebar { transform: none; visibility: visible; }
  body.docs-nav-open::after { content: ""; position: fixed; z-index: 59; inset: 0; background: rgba(11, 18, 32, .35); }
  .docs-article { padding-top: 24px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager .next { grid-column: auto; }
  .docs-prose pre { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .docs-sidebar { transition: none; } }
@media print {
  .docs-sidebar, .docs-toc, .docs-mobilebar, .docs-pager, .docs-copy { display: none !important; }
  .docs-layout { display: block; }
}

