/* Cards and layouts for the custom-post-type grids (Tech Stack, Tool Guides, Free Resources, Case Studies). */
.aad-page { display: block; }
.aad-container { width: 100%; max-width: var(--container, 1200px); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.aad-section { padding: 64px 0 112px; }
.aad-hero { border-bottom: 1px solid var(--border); padding: 64px 0 56px; }
.aad-gridbg { background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; }
.aad-stack4, .aad-stack6, .aad-stack8, .aad-stack10, .aad-stack24, .aad-stack28, .aad-stack32 { display: flex; flex-direction: column; }
.aad-stack4 { gap: 4px; } .aad-stack6 { gap: 6px; } .aad-stack8 { gap: 8px; } .aad-stack10 { gap: 10px; } .aad-stack24 { gap: 24px; } .aad-stack28 { gap: 28px; } .aad-stack32 { gap: 32px; }
.aad-row6, .aad-row16 { display: flex; flex-wrap: wrap; align-items: center; } .aad-row6 { gap: 6px; } .aad-row16 { gap: 16px; }
.aad-grow { flex: 1; }
.aad-center { text-align: center; }
.aad-grid { display: grid; gap: 16px; }
.aad-grid-300 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.aad-grid-260 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.aad-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aad-gap-posts { gap: 48px 24px; }

/* Type */
.aad-page, .aad-toolbar, .aad-grid, .aad-res-section, .aad-cases, .aad-jumpbar, .aad-dialog { font-family: var(--font-sans); color: var(--fg-1); }
.aad-mono, .aad-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.aad-count { font-size: 12px; letter-spacing: 0; text-transform: none; }
.aad-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.aad-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.aad-small { font-size: 13px; color: var(--fg-3); }
.aad-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: 620px; }
.aad-lead-19 { font-size: 19px; max-width: 680px; }
.aad-h1-48, .aad-h1-56, .aad-h2-28, .aad-h2-32 { margin: 0; font-weight: 600; color: var(--fg-1); text-wrap: balance; }
.aad-h1-48 { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.aad-h1-56 { font-size: 56px; line-height: 1.04; letter-spacing: -0.035em; max-width: 900px; }
.aad-h2-28 { font-size: 28px; letter-spacing: -0.02em; }
.aad-h2-32 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.aad-tool-name { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.aad-guide .aad-tool-name { font-size: 20px; }

/* Cards */
.aad-card { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-xs), var(--highlight); transition: all var(--dur, 200ms) var(--ease-out, ease); color: var(--fg-1); text-decoration: none; text-align: left; font: inherit; }
.aad-card-link { cursor: pointer; }
.aad-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md), var(--highlight); transform: translateY(-2px); }
.aad-slot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; box-sizing: border-box; background: repeating-linear-gradient(135deg, var(--bg-inset) 0 8px, var(--bg-subtle) 8px 16px); color: var(--fg-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.aad-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent-text); border: 1px solid var(--accent-border); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.aad-tag, .aad-tagpill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.aad-tagpill { border-radius: 999px; }
.aad-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.aad-more { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--fg-1); }
.aad-card:hover .aad-more { color: var(--accent-text); }

/* Filter pills */
.aad-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.aad-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.aad-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); font-family: var(--font-sans); font-size: 14px; font-weight: 500; cursor: pointer; }
.aad-pill:hover { background: var(--bg-inset); color: var(--fg-1); }
.aad-pill[aria-selected="true"] { background: var(--fg-1); color: var(--bg); border-color: transparent; }
.aad-pill-dot::before { content: ''; display: block; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--aad-c); }
.aad-pill-dot[aria-selected="true"] { background: var(--aad-c); color: var(--pop-fg); }
.aad-pill-dot[aria-selected="true"]::before { display: none; }
[data-aad-hidden] { display: none !important; }

/* Tech Stack */
.aad-tool { gap: 16px; padding: 24px; }
.aad-tool:hover { transform: translateY(-2px); }
.aad-tool-top { display: flex; justify-content: space-between; align-items: flex-start; }
.aad-logo { width: 56px; height: 56px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); padding: 4px; box-sizing: border-box; }
.aad-logo-img { width: 48px; height: 48px; border-radius: 9px; object-fit: contain; display: flex; }
.aad-tool-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-1); font-size: 14px; font-weight: 500; text-decoration: none; transition: all 120ms; }
.aad-tool:hover .aad-tool-cta { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

/* Tool guides */
.aad-guide { overflow: hidden; }
.aad-guide-band { height: 120px; display: flex; align-items: center; justify-content: center; }
.aad-guide-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: var(--surface); }
.aad-guide-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.aad-guide-body .aad-more { margin-top: 8px; }
.aad-guide-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.aad-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 14px; font-weight: 500; text-decoration: none; }
.aad-back:hover { color: var(--fg-1); }
.aad-hub-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.aad-hub-logo { width: 96px; height: 96px; border-radius: 20px; padding: 8px; box-sizing: border-box; }
.aad-hub-logo-img { width: 80px; height: 80px; border-radius: 14px; object-fit: contain; background: var(--surface); }
.aad-hub-cta { display: flex; flex-direction: column; gap: 8px; }

/* Buttons */
.aad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 120ms; }
.aad-btn:active { transform: scale(0.98); }
.aad-btn-primary { background: var(--accent); color: var(--accent-fg); }
.aad-btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.aad-btn-ghost { background: transparent; color: var(--fg-1); }
.aad-btn-ghost:hover { background: var(--bg-inset); }
.aad-btn-ink { background: #0D0F14; color: #fff; }
.aad-btn-ink:hover { background: #232733; color: #fff; }

/* Posts */
.aad-post { display: flex; flex-direction: column; gap: 16px; color: var(--fg-1); text-decoration: none; }
.aad-post-cover { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: all var(--dur, 200ms); }
.aad-post-cover img, .aad-post-cover .aad-slot { width: 100%; height: 100%; object-fit: cover; }
.aad-post:hover .aad-post-cover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.aad-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.aad-post-title { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; color: var(--fg-1); }
.aad-post:hover .aad-post-title { color: var(--accent-text); }

/* Free resources */
.aad-jumpbar { position: sticky; top: var(--nav-height, 74px); z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.admin-bar .aad-jumpbar { top: calc(var(--nav-height, 74px) + 32px); }
.aad-jump-row { display: flex; gap: 8px; padding: 12px 24px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.aad-jump-row .aad-mono { margin-right: 8px; white-space: nowrap; }
.aad-jump { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.aad-jump:hover { background: var(--bg-inset); color: var(--fg-1); }
.aad-res-section { padding: 80px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 150px; }
.aad-res-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.aad-res-title { display: flex; gap: 16px; align-items: center; }
.aad-res-bar { width: 12px; height: 44px; border-radius: 3px; flex: none; }
.aad-res { gap: 14px; padding: 22px; }
.aad-res-top { display: flex; justify-content: space-between; align-items: center; }
.aad-res-icon { width: 36px; height: 36px; border-radius: 9px; color: var(--pop-fg); display: inline-flex; align-items: center; justify-content: center; }
.aad-res-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.aad-dialog { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised); color: var(--fg-1); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.aad-dialog::backdrop { background: rgba(7, 8, 11, 0.6); backdrop-filter: blur(4px); }
.aad-dialog-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; margin: 0; }
.aad-dialog-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.aad-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.aad-input { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-1); font: inherit; font-size: 15px; }
.aad-input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 55%, transparent); border-color: var(--accent); }
.aad-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.aad-dialog-actions .aad-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.aad-toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--fg-2); }
.aad-toast strong { color: var(--fg-1); }

.aad-signup { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg), var(--highlight); padding: 28px; display: flex; flex-direction: column; gap: 16px; margin: 0; font-family: var(--font-sans); }
.aad-signup-head { display: flex; gap: 14px; align-items: center; }
.aad-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; padding: 0; }
.aad-signup-title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-1); text-wrap: balance; }
.aad-signup-head .aad-small { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--fg-2); }
.aad-signup .aad-btn { width: 100%; }

/* Case studies */
.aad-sample { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--border-strong); font-size: 13px; color: var(--fg-3); }
.aad-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.aad-case-wrap { display: contents; }
.aad-case-wrap > .aad-case-big, .aad-case-wrap.aad-first > .aad-case:not(.aad-case-big) { display: none; }
.aad-case-wrap.aad-first > .aad-case-big { display: flex; grid-column: 1 / -1; }
.aad-case { border-radius: 16px; overflow: hidden; }
.aad-case-cover { position: relative; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--border); }
.aad-case-big .aad-case-cover { aspect-ratio: 16 / 8; }
.aad-cover-img { width: 100%; height: 100%; object-fit: cover; display: flex; }
.aad-case-tag { position: absolute; top: 14px; left: 14px; background: var(--surface-raised); }
.aad-case-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.aad-case-title { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--fg-1); text-wrap: balance; transition: color 120ms; }
.aad-case-big .aad-case-title { font-size: 28px; }
.aad-case:hover .aad-case-title { color: var(--accent-text); }
.aad-case-stats { display: grid; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.aad-stat { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.aad-stat-n { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.aad-case-big .aad-stat-n { font-size: 30px; }
.aad-industry { font-size: 16px; font-weight: 600; }
.aad-case-stats-wrap { padding-top: 40px; }
.aad-bigstat { padding: 28px 24px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--border); box-shadow: var(--shadow-xs), var(--highlight); display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); font-size: 15px; }
.aad-bigstat-pop { border-color: transparent; box-shadow: none; color: var(--pop-fg); }
.aad-bigstat-n { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.035em; color: var(--fg-1); }
.aad-bigstat-pop .aad-bigstat-n { color: var(--pop-fg); }
.aad-case-hero { margin-top: 40px; aspect-ratio: 21 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.aad-case-layout { padding-top: 72px; padding-bottom: 96px; display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; }
.aad-case-aside { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.aad-aside-v { font-size: 15px; font-weight: 500; }
.aad-prose { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.75; color: var(--fg-2); }
.aad-prose > * { margin: 0; }
.aad-prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--fg-1); }
.aad-prose h6 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-top: 24px; }
.aad-case-layout .aad-prose ol { list-style: none; padding: 0; counter-reset: aad; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-raised); }
.aad-case-layout .aad-prose ol li { counter-increment: aad; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--fg-1); }
.aad-case-layout .aad-prose ol li:last-child { border-bottom: 0; }
.aad-case-layout .aad-prose ol li::before { content: '0' counter(aad); width: 28px; height: 28px; border-radius: 7px; background: var(--bg-inset); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; }
.aad-case-layout .aad-prose ol li:last-child::before { background: var(--accent); color: var(--accent-fg); }
.aad-shot { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.aad-quote { margin: 16px 0 0; padding: 32px; border-radius: 16px; color: var(--pop-fg); display: flex; flex-direction: column; gap: 20px; }
.aad-quote blockquote { margin: 0; padding: 0; border: 0; font-size: 24px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; color: inherit; }
.aad-quote figcaption { display: flex; flex-direction: column; font-size: 15px; }
.aad-quote figcaption span { font-size: 13px; opacity: 0.75; }
.aad-next { border-top: 1px solid var(--border); padding: 64px 0 0; }

/* Big violet CTA on code-rendered pages */
.aad-cta-wrap { padding: 96px 0; }
.aad-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 72px 32px; border-radius: 16px; background: var(--pop-violet); color: var(--pop-fg); }
.aad-cta h2 { margin: 0; font-size: 44px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; max-width: 640px; color: var(--pop-fg); }
.aad-cta p { margin: 0; font-size: 18px; line-height: 1.6; opacity: 0.8; max-width: 520px; }

@media (max-width: 760px) {
  .aad-hub-grid, .aad-case-layout, .aad-grid-3 { grid-template-columns: 1fr; }
  .aad-case-layout { gap: 32px; padding-top: 48px; }
  .aad-case-aside { position: static; }
  .aad-cases { grid-template-columns: 1fr; }
  .aad-h1-56 { font-size: 40px; } .aad-h1-48 { font-size: 36px; } .aad-cta h2 { font-size: 32px; }
  .aad-res-section { padding: 56px 0; }
  .aad-toast { left: 16px; right: 16px; }
}

/* Hello Elementor styles every button pink; restate ours with enough specificity to win. */
body .aad-pills .aad-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; height: 36px; font-size: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); padding: 0 14px; text-transform: none; }
body .aad-pills .aad-pill:hover, body .aad-pills .aad-pill:focus { background: var(--bg-inset); color: var(--fg-1); border-color: var(--border-strong); }
body .aad-pills .aad-pill[aria-selected="true"] { background: var(--fg-1); color: var(--bg); border-color: transparent; }
body .aad-pills .aad-pill-dot[aria-selected="true"] { background: var(--aad-c); color: var(--pop-fg); }
body .aad-grid .aad-res { display: flex; flex-direction: column; align-items: stretch; text-align: left; font-family: var(--font-sans); font-size: 15px; line-height: 1.4; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--fg-1); padding: 22px; white-space: normal; }
body .aad-grid .aad-res:hover, body .aad-grid .aad-res:focus { background: var(--surface-raised); color: var(--fg-1); border-color: var(--border-strong); }
body .aad-page .aad-btn, body .aad-dialog .aad-btn, body .aad-signup .aad-btn { border-radius: 8px; border: 1px solid transparent; padding: 0 22px; text-transform: none; }
body .aad-dialog .aad-btn-primary, body .aad-signup .aad-btn-primary, body .aad-dialog .aad-btn-primary:focus, body .aad-signup .aad-btn-primary:focus { background: var(--accent); color: var(--accent-fg); }
body .aad-dialog .aad-btn-primary:hover, body .aad-signup .aad-btn-primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
body .aad-dialog .aad-btn-ghost, body .aad-dialog .aad-btn-ghost:focus { background: transparent; color: var(--fg-1); }
body .aad-dialog .aad-btn-ghost:hover { background: var(--bg-inset); color: var(--fg-1); }
body .aad-pills .aad-pill:focus-visible, body .aad-grid .aad-res:focus-visible, body .aad-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 55%, transparent); }

/* Icon masks come from the theme snippet; the fill colour normally comes from Elementor's class CSS, which code-rendered markup doesn't get. */
:where(.aad-page, .aad-grid, .aad-res-section, .aad-cases, .aad-toolbar, .aad-dialog, .aad-jumpbar, .aad-sample) .aa-icon { display: inline-block; flex: none; background-color: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* Blog index */
.aad-page-hero { padding: 96px 0 72px; }
.aad-stack20 { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.aad-lead-18 { font-size: 18px; }
.aad-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 24px; }
.aad-post-wrap { display: contents; }
.aad-post-wrap > .aad-feature, .aad-post-wrap.aad-first > .aad-post { display: none; }
.aad-post-wrap.aad-first > .aad-feature { display: grid; grid-column: 1 / -1; }
.aad-feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--border); color: var(--fg-1); text-decoration: none; }
.aad-feature-cover { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.aad-feature-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.aad-feature-title { margin: 0; font-size: 36px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; color: var(--fg-1); text-wrap: balance; }
.aad-feature:hover .aad-feature-title { color: var(--accent-text); }
.aad-btn-secondary { background: var(--surface); color: var(--fg-1); border: 1px solid var(--border-strong); height: 44px; padding: 0 18px; font-size: 14px; }
.aad-feature:hover .aad-btn-secondary { background: var(--bg-inset); }
.aad-tagpill-sm { height: 24px; font-size: 12px; font-family: var(--font-sans); }
.aad-empty { margin-bottom: 24px; }

/* Single post */
.aad-narrow { max-width: 808px; }
.aad-post-hero { padding: 72px 0 56px; }
.aad-guide-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.aad-guide-link:hover { color: var(--fg-1); }
.aad-author { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.aad-avatar-40 { width: 40px; height: 40px; border-radius: 50%; padding: 0; flex: none; }
.aad-author-name { font-size: 14px; font-weight: 500; color: var(--fg-1); }
.aad-post-image-wrap { padding-top: 48px; }
.aad-post-image { aspect-ratio: 21 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.aad-post-layout { padding-top: 56px; padding-bottom: 96px; display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; }
.aad-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.admin-bar .aad-toc { top: 128px; }
.aad-toc .aad-mono { padding-bottom: 4px; }
.aad-toc a { font-size: 14px; line-height: 1.4; color: var(--fg-2); border-left: 2px solid var(--border); padding-left: 12px; text-decoration: none; }
.aad-toc a:hover { color: var(--fg-1); border-left-color: var(--accent); }
.aad-post-prose { font-family: var(--font-sans); color: var(--fg-2); min-width: 0; }
.aad-post-prose > :first-child { margin-top: 0; }
.aad-post-prose p { margin: 16px 0 0; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.aad-post-prose > p:first-child { font-size: 19px; color: var(--fg-1); }
.aad-post-prose h2 { margin: 48px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: var(--fg-1); scroll-margin-top: 110px; }
.aad-post-prose h3 { margin: 32px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--fg-1); }
.aad-post-prose ul, .aad-post-prose ol { margin: 16px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.75; display: flex; flex-direction: column; gap: 6px; }
.aad-post-prose a { color: var(--accent-text); }
.aad-post-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-inset); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--fg-1); }
.aad-post-prose blockquote { margin: 32px 0 0; padding: 20px 24px; border: 0; border-radius: 12px; background: var(--pop-violet); color: var(--pop-fg); }
.aad-post-prose blockquote p { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--pop-fg); }
.aad-post-prose .aa-callout { margin-top: 20px; padding: 18px 20px 18px 62px; position: relative; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-subtle); font-size: 15px; line-height: 1.6; }
.aad-post-prose .aa-callout::before { content: ''; position: absolute; left: 20px; top: 18px; width: 28px; height: 28px; border-radius: 7px; background: var(--pop-sun); }
.aad-post-prose .aa-callout::after { content: ''; position: absolute; left: 26.5px; top: 24.5px; width: 15px; height: 15px; background: var(--pop-fg); -webkit-mask: var(--aa-alert) center / contain no-repeat; mask: var(--aa-alert) center / contain no-repeat; }
.aad-post-prose details { border-bottom: 1px solid var(--border); }
.aad-post-prose details:first-of-type { border-top: 1px solid var(--border); margin-top: 20px; }
.aad-post-prose summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg-1); }
.aad-post-prose summary::-webkit-details-marker { display: none; }
.aad-post-prose summary::after { content: ''; flex: none; width: 18px; height: 18px; background-color: var(--fg-3); -webkit-mask: var(--aa-plus) center / contain no-repeat; mask: var(--aa-plus) center / contain no-repeat; transition: transform 200ms; }
.aad-post-prose details[open] summary::after { transform: rotate(45deg); }
.aad-post-prose details p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; }
.aad-post-tags { margin-top: 40px; }
.aad-nl-card { margin-top: 40px; display: grid; gap: 16px; padding: 28px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-subtle); }
.aad-nl-head { display: flex; gap: 16px; align-items: flex-start; }
.aad-nl-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--pop-pink); color: var(--pop-fg); display: inline-flex; align-items: center; justify-content: center; }
.aad-nl-title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg-1); }
.aad-nl-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 440px; margin: 0; }
.aad-nl-form .aad-input { flex: 1 1 220px; min-width: 0; }
body .aad-nl-form .aad-btn { height: 44px; border-radius: 8px; padding: 0 22px; background: var(--accent); color: var(--accent-fg); border: 0; }
body .aad-nl-form .aad-btn:hover { background: var(--accent-hover); color: var(--accent-fg); }
.aad-nl-form .aa-newsletter__status { flex-basis: 100%; margin: 0; }

@media (max-width: 760px) {
  .aad-feature { grid-template-columns: 1fr; gap: 24px; }
  .aad-feature-title { font-size: 28px; }
  .aad-post-layout { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .aad-toc { display: none; }
  .aad-page-hero { padding: 64px 0 48px; }
}

/* Book a call: HighLevel embed sits inside the design's card */
.aad-booking { min-height: 460px; }
.aad-booking iframe { width: 100%; border: 0; display: block; }
.aad-booking-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 32px; font-family: var(--font-sans); }
.aad-booking-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-subtle); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.aad-booking-title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg-1); }

/* Resource type: a solid badge on each card plus a filter, so type reads as clearly as department */
.aad-type-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-inset); color: var(--fg-1); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
body .aad-jump-row .aad-type-filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg-2); font-family: var(--font-sans); font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; }
body .aad-jump-row .aad-type-filter:hover { background: var(--bg-inset); color: var(--fg-1); }
body .aad-jump-row .aad-type-filter[aria-pressed="true"] { background: var(--fg-1); border-color: var(--fg-1); color: var(--bg); }
.aad-res[hidden], .aad-res-section[hidden], .aad-jump[hidden] { display: none !important; }
body .aad-grid a.aad-res { text-decoration: none; }
body .aad-grid a.aad-res:hover .aad-more { color: var(--accent-text); }
/* Brand marks are full-bleed; give them room inside the logo tile */
.aad-logo .aad-logo-img { padding: 10px; box-sizing: border-box; object-fit: contain; }
/* Brand logos sit on white in both themes so dark marks (OpenAI, Voicenotes) stay visible */
.aad-logo:has(.aad-logo-img) { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
