/* ==========================================================================
   XNTOU — Apple / macOS / WorkBuddy Design System
   CRAP Principles: Contrast · Repetition · Alignment · Proximity
   Don't Make Me Think: Visual Clarity, Calm Whitespace, Interactive Canvas
   ========================================================================== */

.xw {
  --xw-ink: #1d1d1f;
  --xw-ink-soft: #424245;
  --xw-muted: #6e6e73;
  --xw-subtle: #86868b;
  --xw-brand: #0f766e;
  --xw-brand-deep: #0b5d56;
  --xw-brand-soft: #eefaf8;
  --xw-gold: #b45309;
  --xw-canvas: #f5f5f7;
  --xw-surface: #ffffff;
  --xw-line: rgba(0, 0, 0, 0.08);
  --xw-line-strong: rgba(0, 0, 0, 0.15);
  --xw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
  --xw-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --xw-shadow-mac: 0 32px 80px rgba(0, 0, 0, 0.11), 0 4px 16px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: var(--xw-ink);
  font-family: var(--font-sans);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

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

.xw a {
  color: var(--xw-brand);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.xw a:hover { color: var(--xw-brand-deep); }

.xw-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 96px;
}

.xw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--xw-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.xw h1, .xw h2, .xw h3, .xw h4 {
  font-family: inherit;
  color: var(--xw-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 12px;
}

.xw h1 { font-size: clamp(32px, 3.6vw, 44px); }
.xw h2 { font-size: clamp(24px, 2.5vw, 32px); }
.xw h3 { font-size: 18px; letter-spacing: -0.015em; }
.xw p { margin: 0 0 12px; }
.xw ul, .xw ol { margin: 0 0 14px; padding-left: 1.25em; }
.xw li { margin-bottom: 6px; }

.xw-lead {
  font-size: 17px;
  color: var(--xw-muted);
  line-height: 1.65;
  max-width: 66ch;
}

.xw-muted, .xw-note {
  color: var(--xw-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   APPLE EDITORIAL HERO + INTERACTIVE WORKBUDDY macOS 3-PANE WINDOW
   ========================================================================== */
.wb-hero {
  position: relative;
  background:
    radial-gradient(840px 420px at 50% -6%, rgba(15, 118, 110, 0.11), transparent 68%),
    radial-gradient(560px 320px at 84% 26%, rgba(217, 119, 6, 0.07), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  padding: 58px 24px 64px;
  border-bottom: 1px solid var(--xw-line);
}

.wb-hero-copy {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.wb-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--xw-ink-soft);
  margin-bottom: 20px;
}

.wb-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.wb-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #1d1d1f;
  margin: 0 0 18px;
}

.wb-hero h1 .wb-grad {
  background: linear-gradient(125deg, #0f766e 0%, #0d9488 55%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wb-hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #6e6e73;
  line-height: 1.62;
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}

.wb-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-btn-dark {
  background: #1d1d1f;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.apple-btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff !important;
}

.apple-btn-emerald {
  background: #0f766e;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.22);
}

.apple-btn-emerald:hover {
  background: #0d6962;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.apple-btn-glass {
  background: rgba(255, 255, 255, 0.88);
  color: #1d1d1f !important;
  border-color: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.apple-btn-glass:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  color: #1d1d1f !important;
}

.wb-hero-footnote {
  margin-top: 16px;
  font-size: 12.5px;
  color: #86868b;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Interactive WorkBuddy macOS 3-Pane Desktop Window */
.wb-mac-stage {
  max-width: 1180px;
  margin: 0 auto;
}

.wb-mac-window {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--xw-shadow-mac);
}

.wb-mac-titlebar {
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f5 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wb-traffic {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 68px;
}

.wb-traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.wb-traffic i:nth-child(1) { background: #ff5f57; border: 0.5px solid rgba(0, 0, 0, 0.14); }
.wb-traffic i:nth-child(2) { background: #febc2e; border: 0.5px solid rgba(0, 0, 0, 0.14); }
.wb-traffic i:nth-child(3) { background: #28c840; border: 0.5px solid rgba(0, 0, 0, 0.14); }

.wb-titlebar-center {
  font-size: 12.5px;
  font-weight: 600;
  color: #424245;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wb-titlebar-right {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: #0f766e;
  background: rgba(15, 118, 110, 0.09);
  padding: 3px 9px;
  border-radius: 980px;
  font-weight: 600;
}

.wb-panes {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: 520px;
}

/* Pane 1: WorkBuddy Frosted Sidebar */
.wb-sidebar {
  background: #f5f5f7;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wb-side-label {
  font-size: 11px;
  font-weight: 700;
  color: #86868b;
  letter-spacing: 0.06em;
  padding: 4px 10px 2px;
}

.wb-side-list {
  display: grid;
  gap: 3px;
}

.wb-expert-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1d1d1f;
  font: 500 13.5px/1.3 inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.wb-expert-btn:hover {
  background: rgba(0, 0, 0, 0.045);
}

.wb-expert-btn.is-active {
  background: #ffffff;
  color: #0f766e;
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wb-expert-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wb-expert-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(15, 118, 110, 0.09);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wb-expert-btn.is-active .wb-expert-ico {
  background: #0f766e;
  color: #ffffff;
}

.wb-expert-cost {
  font-size: 11px;
  color: #86868b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wb-side-footer {
  margin-top: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: #6e6e73;
}

.wb-side-footer strong {
  display: block;
  color: #1d1d1f;
  margin-bottom: 2px;
  font-size: 12.5px;
}

/* Pane 2: Center WorkBuddy Agent Thread + Command Bar */
.wb-thread {
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wb-thread-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wb-thread-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1d1d1f;
}

.wb-thread-mod {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 980px;
  background: #eefaf8;
  color: #0f766e;
}

.wb-thread-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wb-user-msg {
  align-self: flex-end;
  max-width: 92%;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 11px 14px;
  border-radius: 16px 16px 4px 16px;
  font-size: 13.5px;
  line-height: 1.55;
}

.wb-agent-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.wb-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #6e6e73;
  font-weight: 600;
}

.wb-agent-head span:first-child {
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wb-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #424245;
  margin: 0;
}

.wb-step-ok {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wb-agent-summary {
  font-size: 13px;
  color: #424245;
  line-height: 1.6;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wb-composer {
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.wb-composer-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 5px 5px 5px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.wb-composer-form:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.wb-composer-form input {
  border: 0 !important;
  background: transparent !important;
  min-height: 34px !important;
  padding: 0 !important;
  font-size: 13px !important;
  box-shadow: none !important;
  flex: 1;
}

.wb-composer-submit {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wb-composer-submit:hover {
  background: #0f766e;
}

/* Pane 3: Right WorkBuddy Live Multimodal Canvas */
.wb-canvas {
  background: #fafafa;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wb-canvas-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wb-canvas-label {
  font-size: 12.5px;
  font-weight: 650;
  color: #424245;
}

.wb-canvas-cta {
  font-size: 12.5px;
  font-weight: 650;
  color: #0f766e !important;
  padding: 4px 10px;
  border-radius: 980px;
  background: #eefaf8;
}

.wb-canvas-cta:hover {
  background: #ccfbf1;
}

.wb-canvas-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wb-canvas-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #111315;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.wb-canvas-media img,
.wb-canvas-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wb-canvas-audio {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.wb-canvas-audio audio {
  width: 100%;
  height: 36px;
  display: block;
}

.wb-canvas-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wb-canvas-kpi {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 11px 13px;
}

.wb-canvas-kpi span {
  display: block;
  font-size: 11.5px;
  color: #86868b;
  margin-bottom: 2px;
}

.wb-canvas-kpi strong {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}

.wb-canvas-wm {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #86868b;
}

/* ==========================================================================
   APPLE BENTO GRID (Asymmetric Feature Architecture)
   ========================================================================== */
.bento-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px 0;
}

.bento-header {
  max-width: 680px;
  margin-bottom: 32px;
}

.bento-header h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--xw-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--xw-shadow-md);
  border-color: rgba(15, 118, 110, 0.24);
}

.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }

.bento-card-dark {
  background: linear-gradient(155deg, #121518 0%, #172726 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
}

.bento-card-dark h3 { color: #ffffff; }
.bento-card-dark p { color: #a1a1a6; }

.bento-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111315;
  margin-top: 6px;
}

.bento-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   macOS SEGMENTED EXPLORER (Calm Zero-Fatigue Directory)
   ========================================================================== */
.seg-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.055);
  border-radius: 12px;
  margin-bottom: 24px;
}

.seg-btn {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 9px;
  font: 600 13.5px/1.2 inherit;
  color: #424245;
  cursor: pointer;
  transition: all 0.16s ease;
}

.seg-btn:hover { color: #1d1d1f; }

.seg-btn.is-active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.seg-pane[hidden] { display: none !important; }

/* ==========================================================================
   Unified Shared Subpage Components (Buttons, Cards, Grids, Tables, Calculators)
   ========================================================================== */
.xw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.xw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.xw-btn-primary {
  background: #1d1d1f;
  color: #ffffff !important;
}

.xw-btn-primary:hover {
  background: #0f766e;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.xw-btn-gold {
  background: #0f766e;
  color: #ffffff !important;
}

.xw-btn-gold:hover {
  background: #0b5d56;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.xw-btn-ghost {
  background: #ffffff;
  color: var(--xw-ink) !important;
  border-color: var(--xw-line-strong);
}

.xw-btn-ghost:hover {
  background: #f5f5f7;
  color: var(--xw-ink) !important;
}

.xw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.xw-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 980px;
  background: #f5f5f7;
  border: 1px solid transparent;
  color: var(--xw-ink-soft) !important;
  font-size: 13px;
  font-weight: 500;
}

.xw-pill:hover {
  background: #eefaf8;
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--xw-brand-deep) !important;
}

.xw-pill.is-active {
  background: #1d1d1f;
  color: #ffffff !important;
}

.xw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.xw-tab {
  border: 1px solid var(--xw-line);
  background: #ffffff;
  border-radius: 980px;
  padding: 7px 14px;
  cursor: pointer;
  font: 500 13.5px/1.2 inherit;
  color: var(--xw-ink-soft);
  transition: all 0.16s ease;
}

.xw-tab:hover { background: #f5f5f7; color: var(--xw-ink); }
.xw-tab.is-active { background: #1d1d1f; border-color: #1d1d1f; color: #ffffff; }
.xw-show.is-hidden { display: none !important; }

.xw-section { margin-top: 64px; }

.xw-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.xw-head > a {
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #1d1d1f;
}

.xw-head > a:hover { background: #e8e8ed; color: #000000; }

.xw-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.xw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.xw-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xw-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.xw-card {
  background: var(--xw-surface);
  border: 1px solid var(--xw-line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--xw-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.xw-card:hover {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--xw-shadow-md);
}

.xw-card-interactive:hover { transform: translateY(-2px); }

/* Showcase Cards */
.xw-demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.xw-demo-card {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--xw-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.xw-demo-card:hover { transform: translateY(-3px); box-shadow: var(--xw-shadow-md); }

.xw-demo-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111315;
  overflow: hidden;
}

.xw-demo-media img, .xw-demo-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.xw-demo-top-badges {
  position: absolute;
  top: 10px; left: 10px; right: 10px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}

.xw-demo-mod-pill {
  padding: 3px 10px; border-radius: 980px;
  background: rgba(29, 29, 31, 0.78);
  color: #ffffff; font-size: 11.5px; font-weight: 600;
  backdrop-filter: blur(8px);
}

.xw-demo-wm-pill {
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1f; font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px);
}

.xw-demo-audio-bar { padding: 10px 14px; background: #f5f5f7; border-bottom: 1px solid var(--xw-line); }
.xw-demo-audio-bar audio { width: 100%; height: 34px; display: block; }

.xw-demo-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.xw-demo-cat { font-size: 11.5px; font-weight: 600; color: var(--xw-brand); margin-bottom: 4px; }
.xw-demo-body h3 { font-size: 16.5px; margin: 0 0 8px; }
.xw-demo-body h3 a { color: var(--xw-ink); }
.xw-demo-body h3 a:hover { color: var(--xw-brand); }
.xw-demo-excerpt { font-size: 13.5px; color: var(--xw-muted); line-height: 1.58; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.xw-demo-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.xw-demo-link { font-size: 13px; font-weight: 600; color: #1d1d1f !important; padding: 5px 12px; border-radius: 980px; background: #f5f5f7; }
.xw-demo-link:hover { background: #1d1d1f; color: #ffffff !important; }

/* Tables, Forms, Calculators */
.xw-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 16px;
  box-shadow: var(--xw-shadow-sm);
  margin: 12px 0 18px;
}

.xw-table-wrap table, .xw-table { width: 100%; border-collapse: collapse; background: #ffffff; }
.xw-table-wrap th, .xw-table-wrap td, .xw-table th, .xw-table td { padding: 13px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); text-align: left; font-size: 14px; vertical-align: top; }
.xw-table-wrap th, .xw-table th { background: #fafafa; color: #6e6e73; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.xw-table-wrap tbody tr:hover td, .xw-table tbody tr:hover td { background: #fafafa; }
.xw-table-wrap tr:last-child td, .xw-table tr:last-child td { border-bottom: 0; }

.xw-step { background: #ffffff; border: 1px solid var(--xw-line); border-radius: 16px; padding: 20px 18px; box-shadow: var(--xw-shadow-sm); }
.xw-step em { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #f5f5f7; color: #1d1d1f; font-style: normal; font-weight: 700; font-size: 12px; margin-bottom: 10px; }

.xw-form, .xw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xw-form label, .xw-form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--xw-ink-soft); }

.xw input, .xw select, .xw textarea {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 11px;
  background: #fafafa; color: var(--xw-ink); font: inherit;
  transition: all 0.16s ease;
}

.xw input:focus, .xw select:focus, .xw textarea:focus {
  outline: none; background: #ffffff;
  border-color: var(--xw-brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.xw textarea { min-height: 112px; resize: vertical; }

.xw-result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--xw-line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xw-stat { background: #f5f5f7; border-radius: 14px; padding: 14px 16px; }
.xw-stat b { display: block; font-size: 22px; font-weight: 700; color: #1d1d1f; font-variant-numeric: tabular-nums; line-height: 1.2; margin-bottom: 3px; }
.xw-stat span { display: block; font-size: 12px; color: #6e6e73; }
.xw-span { grid-column: 1 / -1; margin: 4px 0 0; }
.xw-ok { color: #059669 !important; }
.xw-warn { color: #d97706 !important; }
.xw-risk { color: #dc2626 !important; }

.xw-filters, .xw-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.xw-filters input, .xw-filter input { flex: 1 1 260px; }
.xw-filters select, .xw-filter select { flex: 0 0 200px; }
tr.is-hidden { display: none; }

.xw-city-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.xw-tier-badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: #f5f5f7; color: #424245; }
.xw-city-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.xw-city-kpi { background: #f5f5f7; border-radius: 12px; padding: 10px 12px; }
.xw-city-kpi span { display: block; font-size: 11.5px; color: #6e6e73; }
.xw-city-kpi strong { font-size: 16px; font-weight: 700; color: #1d1d1f; font-variant-numeric: tabular-nums; }

.xw-industry { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 !important; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, 0.06); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.xw-industry span { background: #f5f5f7; color: #424245; padding: 3px 9px; border-radius: 980px; font-weight: 600; }

/* Realistic Apple Mobile Frames */
.xw-phone { background: #1d1d1f; border-radius: 30px; padding: 10px; box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14); }
.xw-phone .screen { background: #ffffff; border-radius: 22px; overflow: hidden; min-height: 330px; display: flex; flex-direction: column; }
.xw-phone-status { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 6px; background: #111315; color: #d1d5db; font-size: 11px; font-weight: 600; }
.xw-phone-notch { width: 56px; height: 12px; border-radius: 980px; background: #000000; }
.xw-phone-thumb { height: 106px; background: #111315; overflow: hidden; }
.xw-phone-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xw-phone-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.xw-phone-body h3 { font-size: 16px; margin: 0; }
.xw-phone .bar { height: 6px; border-radius: 980px; background: #e8e8ed; overflow: hidden; }
.xw-phone .bar span { display: block; height: 100%; border-radius: 980px; background: #0f766e; }
.xw-chip { display: inline-flex; padding: 3px 9px; border-radius: 980px; background: #eefaf8; color: #0f766e; font-size: 12px; font-weight: 600; }

/* API Portal */
.api-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  border-bottom: 1px solid var(--xw-line);
  padding: 46px 24px;
}

.api-hero-inner { max-width: 1180px; margin: 0 auto; }
.api-hero h1 { color: #1d1d1f; font-size: clamp(28px, 3.2vw, 40px); margin: 10px 0 10px; }
.api-hero p { color: #6e6e73; max-width: 68ch; margin: 0; }
.api-hero .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 980px; background: #ffffff; border: 1px solid var(--xw-line); font-size: 12px; font-weight: 600; color: #0f766e; }
.api-hero .hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.api-hero .hero-btn-primary { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 980px; background: #1d1d1f; color: #ffffff !important; font-size: 14px; font-weight: 600; }
.api-hero .hero-btn-gold { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 980px; background: #0f766e; color: #ffffff !important; font-size: 14px; font-weight: 600; }

.api-endpoint-card { background: #ffffff; border: 1px solid var(--xw-line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--xw-shadow-sm); }
.api-endpoint-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.api-endpoint-path { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14.5px; font-weight: 700; color: #1d1d1f; }
.api-method { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.api-method-GET { background: #eefaf8; color: #0f766e; }
.api-method-POST { background: #fffbeb; color: #b45309; }
.api-method-DELETE { background: #fef2f2; color: #dc2626; }
.api-code-wrap { position: relative; margin-top: 10px; }
.api-code-wrap pre { margin: 0; background: #1d1d1f; color: #f5f5f7; padding: 14px 76px 14px 16px; border-radius: 12px; overflow-x: auto; font: 12.5px/1.6 var(--font-mono); }
.api-copy-btn { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #f5f5f7; font-size: 12px; cursor: pointer; }
.api-copy-btn:hover { background: rgba(255, 255, 255, 0.2); }

.xw-callout { background: #eefaf8; border-radius: 12px; padding: 13px 16px; font-size: 13.5px; color: #0b5d56; margin: 14px 0; }
.xw-callout-warn { background: #fffbeb; color: #92400e; }
.xw-report { margin: 10px 0 0; padding: 12px 14px; background: #f5f5f7; border-left: 3px solid var(--xw-brand); border-radius: 0 12px 12px 0; font-size: 13.5px; color: var(--xw-ink-soft); }

/* ==========================================================================
   SITE-WIDE APPLE / WORKBUDDY SUBPAGE HERO & SPECIALIZED LAYOUTS
   ========================================================================== */
.wb-page-hero {
  background:
    radial-gradient(760px 320px at 80% -10%, rgba(15, 118, 110, 0.09), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  border-bottom: 1px solid var(--xw-line);
  padding: 28px 24px 40px;
}

.wb-page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.wb-page-hero .breadcrumb {
  padding: 0 0 14px;
}

.wb-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: end;
}

.wb-page-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 740;
  letter-spacing: -0.032em;
  line-height: 1.18;
  color: #1d1d1f;
  margin: 10px 0 12px;
  text-wrap: balance;
}

.wb-page-hero .xw-lead {
  font-size: 16.5px;
  color: #6e6e73;
  max-width: 62ch;
  margin: 0;
}

.wb-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wb-hero-metric {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wb-hero-metric span {
  display: block;
  font-size: 11.5px;
  color: #86868b;
  margin-bottom: 3px;
}

.wb-hero-metric strong {
  display: block;
  font-size: 20px;
  font-weight: 720;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.wb-hero-metric small {
  display: block;
  font-size: 11.5px;
  color: #6e6e73;
  margin-top: 2px;
}

/* Anchor Pills Bar */
.wb-anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.wb-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #424245 !important;
  font-size: 13px;
  font-weight: 550;
}

.wb-anchor-pill:hover,
.wb-anchor-pill.is-active {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff !important;
}

/* Scenarios Split Showcase Blocks */
.wb-scenario-block {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 22px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--xw-shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.wb-scenario-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wb-scenario-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.wb-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 18px !important;
}

.wb-deliverables-grid li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #f5f5f7;
  font-size: 13px;
  color: #1d1d1f;
  margin: 0 !important;
  line-height: 1.45;
}

.wb-deliverables-grid li::before {
  content: "✓";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

.wb-scenario-media-col {
  display: grid;
  gap: 14px;
}

/* Copyable Prompt Card */
.wb-prompt-card {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--xw-shadow-sm);
}

.wb-prompt-text {
  margin: 0;
  padding: 13px 15px;
  background: #f5f5f7;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #1d1d1f;
  white-space: pre-wrap;
}

/* Rent Ratio Visual Gauge */
.wb-risk-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.wb-risk-band {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
}

.wb-risk-band b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.wb-risk-band span {
  display: block;
  font-size: 12px;
  color: #6e6e73;
}

.wb-risk-band.is-ok { background: #ecfdf5; border-color: #a7f3d0; }
.wb-risk-band.is-ok b { color: #047857; }
.wb-risk-band.is-warn { background: #fffbeb; border-color: #fde68a; }
.wb-risk-band.is-warn b { color: #b45309; }
.wb-risk-band.is-risk { background: #fef2f2; border-color: #fecaca; }
.wb-risk-band.is-risk b { color: #b91c1c; }

/* Traffic Index Mini Bar in City Table */
.wb-traffic-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.wb-traffic-track {
  width: 64px;
  height: 6px;
  border-radius: 999px;
  background: #e8e8ed;
  overflow: hidden;
}

.wb-traffic-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #10b981);
}

/* Fast-Recruit Red Flags Numbered Cards */
.wb-redflag-list {
  display: grid;
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 18px !important;
}

.wb-redflag-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13.5px;
  color: #424245;
  margin: 0 !important;
  line-height: 1.5;
}

.wb-redflag-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 750;
  flex: none;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* Apple Newsroom Guides Layout */
.wb-news-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: var(--xw-shadow-md);
  margin-bottom: 22px;
  align-items: center;
}

.wb-news-lead h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 8px 0 12px;
}

.wb-news-lead-side {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 18px 20px;
}

.wb-news-lead-side ul {
  margin: 8px 0 0 !important;
  padding-left: 1.15em !important;
  font-size: 13.5px;
  color: #424245;
}

.wb-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wb-news-card {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--xw-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wb-news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--xw-shadow-md);
  border-color: rgba(15, 118, 110, 0.22);
}

.wb-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #86868b;
}

.wb-news-cat {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 980px;
  background: #eefaf8;
  color: #0f766e;
  font-weight: 650;
  font-size: 11.5px;
}

.wb-news-card h2 {
  font-size: 19px;
  line-height: 1.32;
  margin: 0 0 10px;
}

.wb-news-card h2 a { color: #1d1d1f; }
.wb-news-card h2 a:hover { color: #0f766e; }

.wb-news-excerpt {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.62;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wb-news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12.5px;
  color: #86868b;
}

/* Article Detail Sticky macOS TOC Layout */
.wb-doc-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.wb-toc-card {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--xw-shadow-sm);
}

.wb-toc-card h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
  margin: 0 0 10px;
}

.wb-toc-card ol {
  margin: 0 !important;
  padding-left: 1.1em !important;
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.wb-toc-card li { margin: 0 !important; }
.wb-toc-card li a { color: #424245; }
.wb-toc-card li a:hover { color: #0f766e; }
.wb-toc-card li.lv3 { margin-left: 12px !important; font-size: 12.5px; color: #6e6e73; }

.wb-article-paper {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: var(--xw-shadow-sm);
}

/* Apple Hardware-Spec Card Grid for Algorithm Filing */
.wb-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.wb-spec-item {
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--xw-shadow-sm);
}

.wb-spec-item.is-wide { grid-column: 1 / -1; }
.wb-spec-item span { display: block; font-size: 11.5px; font-weight: 600; color: #86868b; margin-bottom: 5px; letter-spacing: 0.04em; }
.wb-spec-item strong { display: block; font-size: 16px; font-weight: 680; color: #1d1d1f; line-height: 1.45; }

/* Model Score Badge */
.wb-model-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wb-score-pill {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 5px 11px;
  border-radius: 12px;
  background: #eefaf8;
  color: #0f766e;
  font-variant-numeric: tabular-nums;
}

.wb-score-pill b { font-size: 18px; font-weight: 760; line-height: 1; }
.wb-score-pill small { font-size: 11px; font-weight: 600; opacity: 0.8; }

.wb-prohibit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 0 !important;
}

.wb-prohibit-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--xw-line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: #1d1d1f;
  margin: 0 !important;
}

.wb-prohibit-grid li::before {
  content: "!";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .wb-panes, .wb-page-hero-grid, .wb-scenario-block, .wb-news-lead, .wb-doc-layout { grid-template-columns: 1fr; }
  .wb-toc-card { position: static; }
  .wb-sidebar { border-right: 0; border-bottom: 1px solid var(--xw-line); }
  .wb-side-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .wb-thread { border-right: 0; border-bottom: 1px solid var(--xw-line); }
  .bento-span-6, .bento-span-4 { grid-column: span 12; }
  .xw-demo-grid, .xw-grid-3, .wb-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xw-grid-4, .xw-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wb-hero, .wb-page-hero { padding: 28px 16px 32px; }
  .xw-wrap, .bento-section { padding-left: 16px; padding-right: 16px; }
  .wb-article-paper, .wb-scenario-block, .wb-news-lead { padding: 20px 18px; }
  .xw-demo-grid, .xw-grid-2, .xw-grid-3, .xw-grid-4, .xw-grid-5, .xw-form, .xw-form-grid, .xw-result, .wb-news-grid, .wb-spec-grid, .wb-deliverables-grid, .wb-risk-scale, .wb-prohibit-grid, .wb-hero-metrics { grid-template-columns: 1fr; }
}
