/* Exact component layer ported from the york0731 agent landing pages. */
@font-face {
  font-family: 'York Agent Inter';
  src: url('/landing/agent-pages/inter-v20-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'York Agent Inter';
  src: url('/landing/agent-pages/inter-v20-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'York Agent Inter';
  src: url('/landing/agent-pages/inter-v20-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'York Agent Inter';
  src: url('/landing/agent-pages/inter-v20-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* — Tokens — */
.landing-page {
  --lp-orange: #EA7C1D;
  --lp-orange-hover: #d56d14;
  /* prod v11: EB Garamond headings, near-black CTA pill that turns orange on hover */
  --lp-heading: 'EB Garamond', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --lp-cta: #191818;
  --lp-text: #261208;
  --lp-text-secondary: #5B4C43;
  --lp-bg: #FBF9F6;
  --lp-bg-alt: #F2F0ED;
  --lp-line: #EFEEE7;
  --lp-line-strong: #E6DED5;
  --lp-bg-dark: #191818;
  --lp-white: #ffffff;
  --lp-radius: 14px;
  --lp-radius-sm: 8px;
  --lp-radius-pill: 100px;
}
.landing-page {
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.084px;
  text-size-adjust: auto;
  -webkit-font-smoothing: antialiased;
}
:where(.landing-page) h1 {
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: wrap;
}
:where(.landing-page) h2 {
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: wrap;
}
:where(.landing-page) h3 {
  line-height: 1.2;
  letter-spacing: inherit;
  text-wrap: wrap;
}
:where(.landing-page) h4,
:where(.landing-page) h5,
:where(.landing-page) h6 {
  line-height: normal;
  letter-spacing: inherit;
  text-wrap: wrap;
}
:where(.landing-page) p {
  margin-top: 0;
  margin-bottom: 1em;
}
/* ── Landing v11 restore: EB Garamond headings, Inter body, dark CTA pills (matches dev) ── */
.landing-page { font-family: 'York Agent Inter', 'Manrope', ui-sans-serif, system-ui, sans-serif; }
.landing-page h1, .landing-page h2, .landing-page h3,
.landing-page .landing-stat strong { font-family: var(--lp-heading); }
.lv-faq-item { border-bottom: 1px solid var(--lp-line, #EFEEE7); padding-bottom: 12px; }
.lv-faq-item:last-child { border-bottom: none; }
.lv-faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.lv-faq-item summary::-webkit-details-marker { display: none; }
.lv-faq-item summary span { flex: 1; min-width: 0; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--lp-text); }
.lv-faq-item summary img { width: 24px; height: 24px; flex: none; }
.lv-faq-minus { display: none; }
.lv-faq-item[open] .lv-faq-plus { display: none; }
.lv-faq-item[open] .lv-faq-minus { display: block; }
.lv-faq-item p { font-size: 16px; line-height: 24px; color: var(--lp-text-secondary); margin: 0; padding-bottom: 16px; }
.lv-eyebrow { font-family: 'York Agent Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--lp-orange); margin-bottom: 14px; }
/* ════════════════ X Agent page — premium redesign v2 (ax-) ════════════════ */
/* Shared shell */
.ax-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border: none; border-radius: 100px; background: var(--lp-cta, #191818); color: #fff; font-family: 'York Agent Inter', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .18s; }
.ax-btn { transition: background .18s ease, transform .18s ease; }
.ax-btn:hover { background: #000; transform: translateY(-1px); }
.ax-btn:active { transform: translateY(0); }
.ax-input { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--lp-line, #EFEEE7); border-radius: 100px; padding: 6px 6px 6px 24px; box-shadow: 0 8px 30px rgba(38,18,8,0.07); }
.ax-input input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 15px; font-family: 'York Agent Inter', sans-serif; color: var(--lp-text); }
.ax-input input::placeholder { color: var(--lp-text-secondary); }
.ax-input-dark { box-shadow: none; }

.ax-band { padding: 120px 0; background: var(--lp-bg); }
.ax-band-alt { background: var(--lp-bg-alt); }
.ax-band-white { background: var(--lp-white); }
.ax-wrap { max-width: 1296px; margin: 0 auto; padding: 0 48px; }
.ax-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-orange); flex: none; }

/* Section head */
.ax-head { margin-bottom: 60px; }
.ax-head.ax-center { text-align: center; }
.ax-hero-head .lv-eyebrow, .ax-head .lv-eyebrow { display: block; margin-bottom: 0; }
.ax-h2 { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; color: var(--lp-text); margin: 14px 0 0; max-width: 680px; letter-spacing: -0.012em; }
.ax-head.ax-center .ax-h2, .ax-head.ax-center .ax-lead { margin-left: auto; margin-right: auto; }
@media (min-width: 1280px) {
  #agentDetail .ax-head.ax-center:has(+ .ax-loop) .ax-h2 { max-width: 1100px; }
}
.ax-lead { font-size: 18px; line-height: 29px; color: var(--lp-text-secondary); max-width: 660px; margin: 20px 0 0; }
.ax-card { background: #fff; border: 1px solid var(--lp-line, #EFEEE7); border-radius: 16px; }

/* 1 — Hero (centered) */
.ax-hero { background: var(--lp-bg); padding: 84px 0 100px; }
.ax-hero-head { max-width: 820px; margin: 0 auto; padding: 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.ax-hero-title { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(46px, 6.2vw, 86px); line-height: 1.0; letter-spacing: -0.022em; color: var(--lp-text); margin: 18px 0 0; }
.ax-hero-sub { font-size: 19px; line-height: 30px; color: var(--lp-text-secondary); margin: 26px auto 0; max-width: 640px; }
.ax-hero-cta { margin-top: 34px; display: flex; justify-content: center; width: 100%; }
.ax-hero-note { font-size: 13px; color: var(--lp-text-secondary); margin-top: 15px; }

/* York chat — faithful to the real product UI (hero signature visual) */
.ax-chat-wrap { max-width: 1296px; margin: 62px auto 0; padding: 0 48px; }
.ax-chat { max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid var(--line, #e6ded5); border-radius: 20px; overflow: hidden; box-shadow: 0 48px 90px -46px rgba(38,18,8,0.30), 0 14px 36px rgba(38,18,8,0.06); }
.ax-app { display: grid; grid-template-columns: 258px 1fr; min-height: 528px; }
.ax-app-side { border-right: 1px solid var(--line, #e6ded5); background: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.ax-app-logo { width: 58px; height: 20px; object-fit: contain; margin: 2px 8px 12px; }
.ax-app-me { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; margin-bottom: 4px; }
.ax-app-me-av { width: 26px; height: 26px; border-radius: 50%; background: #ffe7d7; color: #dd6500; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-app-me > span:last-child { font-size: 14px; font-weight: 600; color: var(--lp-text); }
.ax-app-new { display: flex; align-items: center; gap: 9px; background: rgba(255,133,10,0.10); color: #dd6500; font-family: 'York Agent Inter', sans-serif; font-size: 14px; font-weight: 600; border: none; border-radius: 10px; padding: 11px 14px; cursor: pointer; margin-bottom: 8px; }
.ax-app-new span { font-size: 17px; line-height: 1; font-weight: 500; }
.ax-app-nav { display: flex; flex-direction: column; gap: 1px; }
.ax-app-navi { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 500; color: var(--lp-text-secondary); padding: 9px 12px; border-radius: 9px; }
.ax-app-navi svg { width: 16px; height: 16px; stroke-width: 1.5px; flex: none; }
.ax-app-navi b { margin-left: auto; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px; background: var(--lp-bg-alt); color: var(--lp-text-secondary); display: flex; align-items: center; justify-content: center; }
.ax-app-navi b.on { background: rgba(255,133,10,0.14); color: #dd6500; }
.ax-app-recents { font-size: 12px; font-weight: 600; color: var(--lp-text-secondary); padding: 10px 12px 4px; }
.ax-app-chats { display: flex; flex-direction: column; gap: 1px; }
.ax-app-chat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--lp-text-secondary); padding: 9px 12px; border-radius: 9px; white-space: nowrap; overflow: hidden; }
.ax-app-chat i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.45; flex: none; }
.ax-app-chat.is-active { background: rgba(255,133,10,0.10); color: #dd6500; font-weight: 600; }
.ax-app-chat.is-active i { background: #ff850a; opacity: 1; }
.ax-app-main { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.ax-app-scroll { flex: 1; padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.ax-app-msg { display: flex; gap: 12px; }
.ax-app-yav { width: 30px; height: 30px; border-radius: 9px; background: #e05a3d; color: #fff; font-family: var(--lp-heading); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-app-msgbody { min-width: 0; }
.ax-app-yhead { font-size: 13px; font-weight: 700; color: var(--lp-text); margin-bottom: 7px; }
.ax-app-yhead span { font-weight: 500; font-size: 12px; color: var(--lp-text-secondary); margin-left: 9px; }
.ax-app-bubble { background: var(--lp-bg-alt); border-radius: 4px 13px 13px 13px; padding: 12px 15px; font-size: 14px; line-height: 21px; color: var(--lp-text); max-width: 560px; }
.ax-app-card { margin-left: 42px; border: 1px solid var(--line, #e6ded5); border-radius: 14px; padding: 18px 20px; box-shadow: 0 12px 32px -22px rgba(38,18,8,0.16); }
.ax-app-card-date { font-size: 12px; color: var(--lp-text-secondary); margin-bottom: 8px; }
.ax-app-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--lp-text); margin-bottom: 14px; }
.ax-app-draftlabel { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.7px; color: var(--lp-text-secondary); margin-bottom: 11px; }
.ax-pchip { width: 18px; height: 18px; border-radius: 50%; font-size: 8.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; }
.ax-pchip.x { background: #191818; }
.ax-pchip.inn { background: #0a66c2; font-size: 8px; }
.ax-app-post { border: 1px solid var(--line, #e6ded5); border-radius: 12px; padding: 15px 16px; }
.ax-app-post-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.ax-app-post-av { width: 30px; height: 30px; border-radius: 50%; background: #191818; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-app-post-name { font-size: 13.5px; font-weight: 700; color: var(--lp-text); }
.ax-app-post-x { width: 15px; height: 15px; margin-left: auto; color: var(--lp-text); flex: none; }
.ax-app-post-handle { font-size: 13px; color: var(--lp-text-secondary); }
.ax-app-post-text { font-size: 14px; line-height: 21px; color: var(--lp-text); margin: 0; }
.ax-app-post-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ax-app-btn { font-size: 13px; font-weight: 600; color: var(--lp-text); background: #fff; border: 1px solid var(--line, #e6ded5); border-radius: 9px; padding: 8px 15px; cursor: pointer; transition: background .15s, border-color .15s; }
.ax-app-btn:hover { border-color: var(--lp-text-secondary); }
.ax-app-btn.is-primary { background: #ff850a; border-color: #ff850a; color: #fff; }
.ax-app-btn.is-primary:hover { background: #dd6500; border-color: #dd6500; }
.ax-app-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 28px 16px; }
.ax-app-chips span { font-size: 12.5px; color: var(--lp-text-secondary); background: var(--lp-bg); border: 1px solid var(--line, #e6ded5); border-radius: 100px; padding: 7px 14px; }
.ax-app-composer { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line, #e6ded5); }
.ax-app-plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, #e6ded5); color: var(--lp-text-secondary); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.ax-app-input { flex: 1; font-size: 14px; color: var(--lp-text-secondary); }
.ax-app-send { width: 40px; height: 40px; border-radius: 12px; background: #ff850a; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-app-send svg { width: 18px; height: 18px; }

/* 2 — Problem (left editorial split) */
.ax-problem { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.ax-problem-l .ax-h2 { max-width: 480px; }
.ax-problem-l .ax-lead { margin-top: 22px; }
.ax-problem-list { list-style: none; margin: 0; padding: 0; }
.ax-problem-list li { display: flex; align-items: center; gap: 15px; font-size: 17px; font-weight: 500; color: var(--lp-text); padding: 19px 2px; border-bottom: 1px solid var(--lp-line-strong, #E6DED5); }
.ax-problem-list li:first-child { border-top: 1px solid var(--lp-line-strong, #E6DED5); }

/* 3 — Operating loop (connected timeline) */
.ax-loop { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ax-loop::before { content: ''; position: absolute; top: 17px; left: calc(12.5% - 10.5px); right: calc(12.5% - 10.5px); height: 2px; background: var(--lp-line-strong, #E6DED5); z-index: 0; }
.ax-loop-step { position: relative; z-index: 1; text-align: center; }
.ax-loop-node { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--lp-orange); color: var(--lp-orange); font-family: var(--lp-heading); font-weight: 700; font-size: 15px; margin: 0 auto 20px; }
.ax-loop-step h3 { font-family: var(--lp-heading); font-size: 23px; font-weight: 700; color: var(--lp-text); margin: 0 0 9px; }
.ax-loop-step p { font-size: 15.5px; line-height: 1.6; color: var(--lp-text-secondary); margin: 0; }
.ax-loop-note { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; margin: 46px auto 0; font-size: 14px; font-weight: 500; color: var(--lp-text-secondary); }

/* 4 — Capabilities (3 large blocks) */
.ax-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ax-cap { padding: 34px 30px; display: flex; flex-direction: column; background: #fff; }
.ax-cap h3 { font-family: var(--lp-heading); font-size: 25px; font-weight: 700; color: var(--lp-text); margin: 0 0 12px; }
.ax-cap > p { font-size: 15.5px; line-height: 1.6; color: var(--lp-text-secondary); margin: 0 0 20px; }
.ax-cap ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--lp-line-strong, #E6DED5); display: flex; flex-direction: column; gap: 13px; }
.ax-cap li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--lp-text); }
.ax-cap li .ax-dot { margin-top: 8px; }

/* 5 — Control (white approval card on tint, homepage-aligned) */
.ax-approve { max-width: 660px; margin: 52px auto 0; background: #fff; border: 1px solid var(--lp-line, #EFEEE7); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -30px rgba(38,18,8,0.20), 0 8px 24px rgba(38,18,8,0.05); }
.ax-approve-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--lp-text-secondary); }
.ax-approve-draft { font-size: 17px; line-height: 26px; color: var(--lp-text); margin: 15px 0 20px; }
.ax-approve-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ax-approve-tags span { font-size: 12px; font-weight: 600; color: var(--lp-text-secondary); background: var(--lp-bg-alt); border-radius: 100px; padding: 5px 13px; }
.ax-approve-btns { display: flex; gap: 10px; }
.ax-ab { flex: 1; height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--lp-line, #EFEEE7); background: #fff; color: var(--lp-text); transition: background .15s, border-color .15s; }
.ax-ab-approve { background: var(--lp-cta, #191818); color: #fff; border-color: var(--lp-cta, #191818); }
.ax-ab-approve:hover { background: var(--lp-orange); border-color: var(--lp-orange); }
.ax-ab-edit:hover, .ax-ab-skip:hover { border-color: var(--lp-text-secondary); }

/* 6 — Why X (minimal principles) */
.ax-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.ax-why-item { position: relative; border-top: 1px solid var(--lp-line-strong, #E6DED5); padding-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.ax-why-item::before { content: ''; position: absolute; top: -1px; left: 0; width: 26px; height: 2px; background: var(--lp-orange); }
.ax-why-item strong { font-family: var(--lp-heading); font-size: 22px; font-weight: 700; color: var(--lp-text); }
.ax-why-item span { font-size: 15px; line-height: 1.55; color: var(--lp-text-secondary); }

/* 7 — Outcomes */
.ax-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ax-sig { padding: 32px 30px; }
.ax-sig h3 { font-family: var(--lp-heading); font-size: 21px; font-weight: 700; color: var(--lp-text); margin: 0 0 9px; }
.ax-sig p { font-size: 15px; line-height: 22px; color: var(--lp-text-secondary); margin: 0; }

/* 8 — FAQ */
.ax-wrap-faq { max-width: 780px; }
.ax-wrap-faq .ax-head { margin-bottom: 44px; }
.ax-faq { background: var(--lp-white); border: 1px solid var(--lp-line, #EFEEE7); border-radius: 20px; padding: 6px 32px; box-shadow: 0 26px 54px -36px rgba(38,18,8,0.18); }
.ax-faq .lv-faq-item { border-bottom: 1px solid var(--lp-line, #EFEEE7); }
.ax-faq .lv-faq-item:last-child { border-bottom: none; }
.ax-faq .lv-faq-item summary { padding: 22px 0; }

/* 9 — Final CTA */
.ax-cta { padding: 120px 48px; background: var(--lp-bg); display: flex; justify-content: center; }
.ax-cta-panel { background: #191818; border-radius: 32px; padding: 104px 56px; max-width: 1200px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ax-cta-h { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; color: #fff; margin: 0; letter-spacing: -0.015em; }
.ax-cta-sub { font-size: 17px; line-height: 26px; color: rgba(255,255,255,0.72); margin: 20px 0 32px; max-width: 580px; }
.ax-cta-micro { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 16px; letter-spacing: 0.3px; }

/* Responsive */
@media (max-width: 980px) {
  .ax-problem { grid-template-columns: 1fr; gap: 40px; }
  .ax-problem-l .ax-h2 { max-width: 560px; }
  .ax-loop { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .ax-loop::before { display: none; }
  .ax-caps { grid-template-columns: 1fr; }
  .ax-why { grid-template-columns: 1fr 1fr; }
  .ax-signals { grid-template-columns: 1fr; }
  .ax-app { grid-template-columns: 1fr; }
  .ax-app-side { display: none; }
  .ax-control2 { grid-template-columns: 1fr; gap: 40px; }
  .ax-faq2 { grid-template-columns: 1fr; gap: 28px; }
  .ax-cta-panel.ax-cta2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .ax-band { padding: 80px 0; }
  .ax-wrap, .ax-chat-wrap { padding: 0 24px; }
  .ax-hero { padding: 56px 0 72px; }
  .ax-cta { padding: 80px 24px; }
  .ax-head { margin-bottom: 40px; }
  .ax-loop { grid-template-columns: 1fr; gap: 0; }
  .ax-loop::before { display: block; top: 0; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; }
  .ax-loop-step:last-child::after { content: ''; position: absolute; left: 12px; top: 52px; bottom: 0; width: 12px; background: var(--lp-bg-alt); }
  .ax-loop-step { display: flex; gap: 18px; padding: 16px 0; text-align: left; }
  .ax-loop-node { margin: 0; flex: none; }
  .ax-why { grid-template-columns: 1fr; }
  .ax-app-scroll { padding: 20px 18px; }
  .ax-app-card { margin-left: 0; }
  .ax-cta-panel { padding: 52px 28px; }
  .ax-cta-panel.ax-cta2 { padding: 44px 28px; }
  .ax-cta2-r .ax-input { max-width: 100%; }
}
#agentDetail .pn-chan-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  flex: 0 1 510px;
  width: 100%;
  max-width: 510px;
  gap: 14px 0;
}
#agentDetail .pn-chan-row li {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 545px) {
  #agentDetail .pn-chan-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-basis: 420px;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
    gap: 18px 12px;
  }
}

/* — LinkedIn agent page additions (ax-) — */
.ax-in-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ax-in-av { width: 40px; height: 40px; border-radius: 50%; background: #e9f1f9; color: #0a66c2; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-in-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ax-in-name { font-size: 13.5px; font-weight: 700; color: var(--lp-text); line-height: 1.2; }
.ax-in-meta { font-size: 11.5px; color: var(--lp-text-secondary); line-height: 1.3; }
.ax-app-post-in { margin-left: auto; width: 16px; height: 16px; border-radius: 3px; background: #0a66c2; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-app-post-text.is-fold { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ax-app-see { display: inline-block; font-size: 13px; color: var(--lp-text-secondary); margin-top: 4px; cursor: pointer; }
.ax-app-quote { border-left: 2px solid var(--line, #e6ded5); padding: 3px 0 3px 12px; font-size: 13px; line-height: 1.5; color: var(--lp-text-secondary); margin-bottom: 10px; }
.ax-app-why { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--lp-text-secondary); margin-top: 10px; }
.ax-app-why .ax-dot { flex: none; }
.ax-approve-see { color: var(--lp-text-secondary); font-size: 15px; }

/* — Instagram agent page additions (ax-) — */
.ax-pchip.ig { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 26%, #d62976 54%, #962fbf 78%, #4f5bd5 100%); font-size: 0; }
.ax-pchip.ig svg { width: 11px; height: 11px; }
.ax-ig-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.ax-ig-av { width: 32px; height: 32px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #feda75, #fa7e1e 28%, #d62976 58%, #962fbf 82%, #4f5bd5); flex: none; }
.ax-ig-av span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; color: var(--lp-text); font-weight: 700; font-size: 12px; }
.ax-ig-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ax-ig-name { font-size: 13px; font-weight: 700; color: var(--lp-text); line-height: 1.2; }
.ax-ig-sub { font-size: 11.5px; color: var(--lp-text-secondary); line-height: 1.2; }
.ax-ig-glyph { margin-left: auto; width: 17px; height: 17px; color: var(--lp-text); flex: none; }
.ax-app-post.ig { overflow: hidden; max-width: 380px; }
.ax-ig-media { position: relative; aspect-ratio: 1 / 1; margin: 0 -16px 12px; overflow: hidden; background: linear-gradient(155deg, #f4ede1 0%, #e7d2b8 45%, #d8b995 74%, #cdaa84 100%); }
.ax-ig-media::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 82% at 22% 16%, rgba(255,255,255,0.16), rgba(255,255,255,0) 58%); z-index: 1; }
.ax-ig-media .ax-ig-art { display: none; }
.ax-ig-media > img.ax-ig-art { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-ig-media.ax-ig-media-show { width: 260px; margin: 0 auto 14px; border-radius: 12px; }
.ax-ig-media.ax-ig-media-sm { width: 84px; margin: 0 0 12px; border-radius: 8px; }
.ax-ig-art-eyebrow { font-family: 'York Agent Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; fill: #8A6A4F; }
.ax-ig-art-word { font-family: var(--lp-heading); font-size: 30px; font-weight: 600; fill: #3B2A1F; letter-spacing: 0.4px; }
.ax-ig-art-rule { stroke: #8A6A4F; stroke-width: 1.4; opacity: 0.6; }
.ax-focus .ax-ig-head { margin-bottom: 11px; }
.ax-focus .ax-ig-glyph { color: var(--lp-text-secondary); }
.ax-focus.ax-ig-focus { max-width: 480px; padding: 22px 22px 18px; }
/* Hero-only: inset the media to a compact centered square instead of a full-bleed post-width image,
   so the focus card's total height stays in line with the shared X/TikTok hero card rhythm. */
.ax-focus .ax-ig-media { width: 300px; max-width: 100%; margin: 0 auto 12px; }
.ax-focus .ax-app-post-text.is-fold { -webkit-line-clamp: 2; }
.ax-ig-prepared { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #dd6500; margin-bottom: 12px; }
.ax-ig-prepared .ax-dot { flex: none; }
.ax-ig-tags { font-size: 13px; color: #dd6500; margin: 8px 0 0; }
.ax-ig-actions { display: flex; align-items: center; gap: 14px; margin-top: 11px; color: var(--lp-text-secondary); }
.ax-ig-actions svg { width: 18px; height: 18px; }
.ax-ig-actions .ax-ig-save { margin-left: auto; }
.ax-ig-split { display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 30px; align-items: start; }
@media (min-width: 981px) {
  .axl-in.ax-ig-order { grid-template-columns: minmax(0, 3fr) minmax(230px, 2fr); }
  .axl-in.ax-ig-order .axl-stage { order: 1; }
  .axl-in.ax-ig-order .axl-nav { order: 2; }
  .axl-in.ax-ig-order .axl-navitem { padding: 22px 22px 22px 0; }
  .axl-in.ax-ig-order .axl-navitem::before { left: auto; right: 0; }
}
@media (max-width: 640px) {
  .ax-ig-split { grid-template-columns: 1fr; gap: 18px; }
  .ax-ig-media.ax-ig-media-show { width: 100%; max-width: 260px; }
}

/* ═══════════ X hero v3 — focused product moment (ax-hero2) ═══════════ */
.ax-hero2 { padding: 72px 0 104px; overflow: hidden; }
.ax-hero2-inner { max-width: 1296px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 72px; align-items: center; }
.ax-hero2-left { display: flex; flex-direction: column; align-items: flex-start; }
.ax-hero2-left .lv-eyebrow { margin-bottom: 0; }
.ax-hero2-title { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(40px, 4.1vw, 60px); line-height: 1.03; letter-spacing: -0.018em; color: var(--lp-text); margin: 18px 0 0; }
.ax-hero2-sub { font-size: 18px; line-height: 29px; color: var(--lp-text-secondary); margin: 22px 0 30px; max-width: 470px; }
.ax-hero2-left .ax-input { margin: 0; }
.ax-hero2-notes { width: 100%; max-width: 480px; text-align: left; padding-left: 25px; margin-top: 14px; }
.ax-hero2-notes .ax-hero-note { margin-top: 0; }
.ax-hero2-see { border: none; background: none; padding: 0; font-family: 'York Agent Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--lp-text); cursor: pointer; transition: color .15s; }
.ax-hero2-see:hover { color: var(--lp-orange); }

/* Scene: blurred real product behind one dominant card */
.ax-hero2-scene { position: relative; min-height: 600px; display: flex; align-items: center; }
.ax-scene-bg { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; pointer-events: none; user-select: none; }
.ax-scene-bg .ax-chat { max-width: none; width: 1040px; margin: -10px 0 0 -70px; box-shadow: none; filter: blur(5px) saturate(.92); opacity: .22; }
.ax-scene-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 95% at 56% 40%, rgba(251,249,246,0.06) 0%, rgba(251,249,246,0.50) 60%, rgba(251,249,246,0.94) 100%); }
.ax-focus { position: relative; z-index: 2; width: 100%; max-width: 460px; margin: 0 auto; background: #FFFDFB; border: 1px solid var(--line, #e6ded5); border-radius: 22px; padding: 24px 24px 22px; box-shadow: 0 40px 84px -46px rgba(38,18,8,0.22), 0 10px 30px rgba(38,18,8,0.05); }
.ax-focus-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ax-focus-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--lp-text); }
.ax-focus-time { font-size: 12px; font-weight: 500; color: var(--lp-text-secondary); opacity: 0.82; white-space: nowrap; }
.ax-focus-insight { display: flex; gap: 10px; background: rgba(234,124,29,0.05); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; }
.ax-focus-idot { width: 6px; height: 6px; border-radius: 50%; background: var(--lp-orange); margin-top: 5px; flex: none; }
.ax-focus-ilabel { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0; color: #dd6500; margin-bottom: 2px; }
.ax-focus-insight p { font-size: 13.5px; line-height: 19px; color: var(--lp-text); margin: 0; }
.ax-focus-post { border: 1px solid var(--line, #e6ded5); border-radius: 14px; padding: 14px 15px; background: #fff; }
.ax-focus-post .ax-app-post-text + .ax-app-post-text { margin-top: 9px; }
.ax-focus-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line, #e6ded5); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.ax-focus-av img { width: 30px; height: 11px; object-fit: contain; }
.ax-focus-idblock { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ax-focus-nameline { display: inline-flex; align-items: center; gap: 3px; }
.ax-focus-idblock .ax-app-post-name { font-size: 14px; }
.ax-focus-idblock .ax-app-post-handle { font-size: 12.5px; }
.ax-verified { width: 15px; height: 15px; flex: none; }
.ax-focus-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 15px 2px; }
.ax-focus-check { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--lp-text-secondary); }
.ax-focus-tick { width: 12px; height: 12px; flex: none; stroke: #dd6500; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ax-focus-foot { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.ax-focus-hint { font-size: 12.5px; line-height: 1.4; color: var(--lp-text-secondary); }
.ax-focus-approve { flex: none; height: 42px; padding: 0 26px; border: none; border-radius: 100px; background: var(--lp-cta, #191818); color: #fff; font-family: 'York Agent Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s; }
.ax-focus-approve:hover { background: #000; }
.ax-focus-askbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--lp-bg); border: 1px solid #F0EBE3; border-radius: 100px; padding: 5px 5px 5px 15px; cursor: pointer; }
.ax-focus-askbar > span:first-child { flex: 1; min-width: 0; font-size: 12.5px; color: var(--lp-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-focus-asksend { width: 30px; height: 30px; border-radius: 50%; background: var(--lp-cta, #191818); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-focus-asksend svg { width: 13px; height: 13px; }
.ax-focus-try { font-size: 12px; color: var(--lp-text-secondary); margin: 12px 2px 0; }
.ax-focus-try span { color: var(--lp-text); font-weight: 500; }

@media (max-width: 1080px) {
  .ax-hero2-inner { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .ax-hero2-left, .ax-hero2-scene { min-width: 0; }
  .ax-hero2-scene { min-height: 0; }
  .ax-scene-bg, .ax-float { display: none; }
  .ax-focus { margin: 0 auto; max-width: 480px; }
}
@media (max-width: 720px) {
  .ax-hero2 { padding: 52px 0 72px; }
  .ax-hero2-inner { padding: 0 24px; }
  .ax-focus { max-width: 100%; }
  .ax-focus-foot { flex-direction: column; align-items: stretch; }
  .ax-focus-approve { width: 100%; }
}

/* Control card: single Approve + secondary hint (no fake Edit/Skip) */
.ax-approve-btns { align-items: center; }
.ax-approve-btns .ax-ab-approve { flex: none; padding: 0 30px; }
.ax-approve-hint { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--lp-text-secondary); }

/* ═══════════ X page layout refinement v2 (a210): Control / FAQ / CTA editorial layouts ═══════════ */
/* Control — full-width editorial two-column, three-step sequence */
.ax-control2 { display: grid; grid-template-columns: 38% 62%; gap: 72px; align-items: start; }
.ax-control2-h { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; color: var(--lp-text); margin: 14px 0 0; }
.ax-control2-l .ax-lead { margin-top: 20px; max-width: 360px; }
.ax-control2-r { display: flex; flex-direction: column; }
.ax-ctrl-step { display: flex; gap: 24px; padding: 32px 0; align-items: flex-start; }
.ax-ctrl-step + .ax-ctrl-step { border-top: 1px solid var(--lp-line-strong, #E6DED5); }
.ax-ctrl-n { font-family: var(--lp-heading); font-size: 15px; font-weight: 700; color: var(--lp-text-secondary); flex: none; width: 34px; padding-top: 2px; }
.ax-ctrl-t h3 { font-family: var(--lp-heading); font-size: 22px; font-weight: 700; color: var(--lp-text); margin: 0 0 7px; }
.ax-ctrl-t p { font-size: 15.5px; line-height: 1.6; color: var(--lp-text-secondary); margin: 0; }
.ax-ctrl-step.is-key .ax-ctrl-n { color: var(--lp-orange); }
.ax-ctrl-step.is-key .ax-ctrl-n::after { content: ''; display: block; width: 18px; height: 2px; background: var(--lp-orange); margin-top: 7px; }
.ax-ctrl-step.is-key .ax-ctrl-t h3 { font-weight: 700; font-size: 23px; }
.ax-ctrl-step.is-key .ax-ctrl-t p { color: var(--lp-text); }
.ax-ctrl-step.is-key .ax-ctrl-t strong { font-weight: 700; color: var(--lp-text); }
/* FAQ — asymmetric two-column, plain accordion (no card) */
.ax-faq2 { display: grid; grid-template-columns: 38% 62%; gap: 56px; align-items: start; }
.ax-faq2-l .ax-h2 { margin-top: 14px; }
.ax-faq2-r .lv-faq-item { border-bottom: 1px solid var(--lp-line, #EFEEE7); padding-bottom: 0; }
.ax-faq2-r .lv-faq-item:last-child { border-bottom: none; }
.ax-faq2-r .lv-faq-item summary { padding: 20px 0; }
/* Final CTA — premium horizontal dark two-column */
.ax-cta-panel.ax-cta2 { display: grid; grid-template-columns: 0.85fr 1fr; gap: 60px; align-items: center; text-align: left; padding: 64px 64px; background: #1E1712; border-radius: 24px; max-width: 1200px; }
.ax-cta2 .ax-cta-h { text-align: left; font-size: clamp(40px, 4.8vw, 58px); line-height: 1.05; margin: 0; }
.ax-cta2 .ax-cta-sub { text-align: left; margin: 22px 0 0; max-width: 420px; }
.ax-cta2-r { display: flex; flex-direction: column; align-items: flex-start; }
.ax-cta2-r .ax-input { margin: 0; width: 100%; max-width: 480px; background: #FFFDFB; }
.ax-cta2 .ax-cta-micro { margin-top: 16px; color: rgba(255,255,255,0.72); }
.ax-cta-process { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 8px; letter-spacing: 0.3px; }

/* a210 fix: mobile overrides for new ax layout classes must come AFTER their base rules to win the cascade */
@media (max-width: 980px) {
  .ax-control2 { grid-template-columns: 1fr; gap: 40px; }
  .ax-faq2 { grid-template-columns: 1fr; gap: 30px; }
  .ax-cta-panel.ax-cta2 { grid-template-columns: 1fr; gap: 32px; text-align: left; }
}
@media (max-width: 720px) {
  .ax-cta-panel.ax-cta2 { padding: 44px 28px; }
  .ax-cta2 .ax-cta-sub { max-width: none; }
  .ax-cta2-r { width: 100%; }
  .ax-cta2-r .ax-input { max-width: 100%; }
}

/* a212 fix: prevent CTA grid blowout on mobile (1fr min-width:auto + input min-content) */
.ax-cta2-l, .ax-cta2-r { min-width: 0; }
@media (max-width: 980px) {
  .ax-cta-panel.ax-cta2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ax-cta2-r .ax-input { width: 100%; max-width: 100%; }
}

/* a213: Control emphasis + FAQ centered editorial + CTA form polish */
.ax-ctrl-step:first-child { padding-top: 4px; }
.ax-ctrl-step.is-key { padding: 38px 0; }
.ax-faq3 { max-width: 820px; margin: 0 auto; }
.ax-faq3 .ax-head { margin-bottom: 36px; }
.ax-faq3-sub { font-size: 15px; line-height: 1.5; color: var(--lp-text-secondary); margin: 14px auto 0; max-width: 480px; }
.ax-faq3-list .lv-faq-item { border-bottom: 1px solid var(--lp-line-strong, #E6DED5); padding-bottom: 0; }
.ax-faq3-list .lv-faq-item:last-child { border-bottom: none; }
.ax-faq3-list .lv-faq-item summary { padding: 26px 0; }
.ax-faq3-list .lv-faq-item summary span { font-size: 19px; font-weight: 600; line-height: 1.4; }
.ax-faq3-list .lv-faq-item p { font-size: 15.5px; line-height: 1.6; color: var(--lp-text-secondary); padding-bottom: 24px; }
.ax-faq-band { padding-bottom: 72px; }
.ax-cta2-r .ax-btn { padding: 0 32px; }
.ax-cta2-r .ax-input:focus-within { border-color: var(--lp-text); }

/* ═══════════ a214: Final CTA — light editorial ending (replaces dark ax-cta2 for X) ═══════════ */
.ax-cta3 { background: var(--lp-bg); border-top: 1px solid var(--lp-line-strong, #E6DED5); border-bottom: 1px solid var(--lp-line-strong, #E6DED5); padding: 100px 0 96px; }
.ax-cta3-in { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ax-cta3-accent { width: 34px; height: 2px; background: var(--lp-orange); margin-bottom: 26px; }
.ax-cta3-in .lv-eyebrow { margin-bottom: 0; }
.ax-cta3-h { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(42px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.018em; color: var(--lp-text); margin: 18px 0 0; max-width: 820px; }
.ax-cta3-sub { font-size: 18px; line-height: 1.6; color: var(--lp-text-secondary); margin: 24px auto 0; max-width: 640px; }
.ax-cta3-form { width: 100%; max-width: 780px; margin-top: 34px; display: flex; justify-content: center; }
.ax-cta3-form .ax-input { max-width: 780px; padding: 7px 7px 7px 26px; }
.ax-cta3-form .ax-input input { font-size: 16px; }
.ax-cta3-form .ax-input:focus-within { border-color: rgba(234,124,29,0.55); box-shadow: 0 0 0 3px rgba(234,124,29,0.10), 0 8px 30px rgba(38,18,8,0.07); }
.ax-cta3-form .ax-btn { padding: 0 34px; }
.ax-cta3-micro { font-size: 14px; color: var(--lp-text-secondary); margin-top: 16px; }
.ax-cta3-process { font-size: 12.5px; color: var(--lp-text-secondary); opacity: 0.66; margin-top: 8px; letter-spacing: 0.3px; }
@media (max-width: 720px) {
  .ax-cta3 { padding: 76px 0 72px; }
  .ax-cta3-form .ax-input { flex-direction: column; align-items: stretch; padding: 8px; gap: 8px; border-radius: 22px; }
  .ax-cta3-form .ax-input input { padding: 10px 14px; }
  .ax-cta3-form .ax-btn { width: 100%; }
}

/* a215: unified email-capture focus state (hero + final CTA share .ax-input) */
.ax-input:focus-within { border-color: rgba(234,124,29,0.55); box-shadow: 0 0 0 3px rgba(234,124,29,0.10), 0 8px 30px rgba(38,18,8,0.07); }

/* a219: X-page footer presence (scoped to #agentDetail; homepage .lv-footer unchanged) */
#agentDetail .lv-footer { height: auto; padding: 30px 48px; }
#agentDetail .lv-footer-links { gap: 26px; }
@media (max-width: 720px) { #agentDetail .lv-footer { padding: 22px 24px; } }

/* ═══════════════ a224: restrained motion system (X agent page) ═══════════════ */
#agentDetail.mo-ready { --mo-ease: cubic-bezier(0.22, 1, 0.36, 1); }

/* generic block reveal (headers, single blocks) */
#agentDetail.mo-ready [data-mo] { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--mo-ease), transform .55s var(--mo-ease); }
#agentDetail.mo-ready [data-mo].is-rev { opacity: 1; transform: none; }

/* staggered children reveal (rows, cards, steps, columns) */
#agentDetail.mo-ready [data-mo-list] > * { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--mo-ease), transform .5s var(--mo-ease); }
#agentDetail.mo-ready [data-mo-list].is-rev > * { opacity: 1; transform: none; }
#agentDetail.mo-ready [data-mo-list].is-rev > *:nth-child(2) { transition-delay: .07s; }
#agentDetail.mo-ready [data-mo-list].is-rev > *:nth-child(3) { transition-delay: .14s; }
#agentDetail.mo-ready [data-mo-list].is-rev > *:nth-child(4) { transition-delay: .21s; }
#agentDetail.mo-ready [data-mo-list].is-rev > *:nth-child(5) { transition-delay: .28s; }
#agentDetail.mo-ready [data-mo-list].is-rev > *:nth-child(6) { transition-delay: .35s; }

/* Hero one-time load sequence */
#agentDetail.mo-ready .ax-hero2 .ax-hero2-left > * { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--mo-ease), transform .55s var(--mo-ease); }
#agentDetail.mo-ready .ax-hero2 .ax-scene-bg { opacity: 0; transition: opacity .7s var(--mo-ease); }
#agentDetail.mo-ready .ax-hero2 .ax-focus { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--mo-ease), transform .6s var(--mo-ease); }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-hero2-left > * { opacity: 1; transform: none; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-hero2-left > *:nth-child(2) { transition-delay: .08s; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-hero2-left > *:nth-child(3) { transition-delay: .16s; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-hero2-left > *:nth-child(4) { transition-delay: .26s; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-hero2-left > *:nth-child(5) { transition-delay: .36s; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-scene-bg { opacity: 1; transition-delay: .12s; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-focus { opacity: 1; transform: none; transition-delay: .28s; }
#agentDetail.mo-ready .ax-hero2.mo-in .ax-focus-approve { animation: moApprove .5s var(--mo-ease) 1.25s both; }
@keyframes moApprove { 0% { background: #241f1d; } 100% { background: var(--lp-cta, #191818); } }

/* How York Works: connecting line draws L->R, nodes activate neutral->orange */
#agentDetail.mo-ready .ax-loop::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--mo-ease); }
#agentDetail.mo-ready .ax-loop.is-rev::before { transform: scaleX(1); }
#agentDetail.mo-ready .ax-loop .ax-loop-node { border-color: var(--lp-line-strong, #E6DED5); color: var(--lp-text-secondary); transition: color .45s var(--mo-ease), border-color .45s var(--mo-ease); }
#agentDetail.mo-ready .ax-loop.is-rev .ax-loop-node { border-color: var(--lp-orange); color: var(--lp-orange); transition-delay: .35s; }

/* Control: "You decide" orange marker draws in */
#agentDetail.mo-ready .ax-ctrl-step.is-key .ax-ctrl-n::after { transform: scaleX(0); transform-origin: left; transition: transform .45s var(--mo-ease) .25s; }
#agentDetail.mo-ready .ax-control2-r.is-rev .ax-ctrl-step.is-key .ax-ctrl-n::after { transform: scaleX(1); }

/* Why X: orange accent rules draw in */
#agentDetail.mo-ready .ax-why-item::before { transform: scaleX(0); transform-origin: left; transition: transform .4s var(--mo-ease); }
#agentDetail.mo-ready .ax-why.is-rev .ax-why-item::before { transform: scaleX(1); }
#agentDetail.mo-ready .ax-why.is-rev .ax-why-item:nth-child(2)::before { transition-delay: .07s; }
#agentDetail.mo-ready .ax-why.is-rev .ax-why-item:nth-child(3)::before { transition-delay: .14s; }
#agentDetail.mo-ready .ax-why.is-rev .ax-why-item:nth-child(4)::before { transition-delay: .21s; }

/* Final CTA: accent line expands from center */
#agentDetail.mo-ready .ax-cta3-in .ax-cta3-accent { transform: scaleX(0); transform-origin: center; transition: transform .45s var(--mo-ease), opacity .45s var(--mo-ease); }
#agentDetail.mo-ready .ax-cta3-in.is-rev .ax-cta3-accent { transform: scaleX(1); }

/* FAQ: soften answer reveal on open (interaction feedback) */
@keyframes moFaqAnswer { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#agentDetail.mo-ready .ax-faq3-list details[open] > p { animation: moFaqAnswer .22s var(--mo-ease); }

/* Feedback: What York Handles card hover (hover-capable devices only) */
@media (hover: hover) {
  .ax-cap { transition: transform .2s cubic-bezier(0.22,1,0.36,1), border-color .2s ease; }
  .ax-cap:hover { transform: translateY(-2px); border-color: var(--lp-line-strong, #E6DED5); }
  .ax-cap:hover li .ax-dot { background: var(--lp-orange); }
}

/* smooth anchor scrolling (nav) */
html { scroll-behavior: smooth; }

/* reduced-motion: honor fully */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #agentDetail *, #agentDetail *::before, #agentDetail *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Calendar v3: full-width week and scalable month overflow. */
.workspace-mode .main-panel:has(> .calendar-screen.active) {
  padding-right: 20px;
  padding-left: 20px;
}

.calendar-screen.workspace-screen:not(.chat-screen) {
  width: 100%;
  max-width: none;
}

.calendar-week-grid {
  position: relative;          /* hosts the full-width now rule */
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  min-width: 0;
}

.calendar-time-label {
  right: 8px;
}

.calendar-item {
  right: 5px;
  left: 5px;
  padding-right: 8px;
  padding-left: 9px;
}

.month-day {
  min-height: 106px;
  max-height: 106px;
  gap: 3px;
  padding: 5px;
}

.month-date-button,
.month-day > span {
  min-width: 20px;
  min-height: 20px;
}

.month-mini-item {
  height: 21px;
  min-height: 21px;
}

.month-more-button {
  width: 100%;
  min-height: 17px;
  padding: 0 4px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #646a73;
  font-size: 9px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.month-more-button:hover,
.month-more-button:focus-visible {
  background: #f2f3f5;
  color: #1456f0;
  outline: none;
}

.calendar-month-more-popover {
  position: fixed;
  z-index: 240;
  width: min(300px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 35, 41, 0.16);
}

.calendar-month-more-heading {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px 8px;
  border-bottom: 1px solid #e5e8eb;
}

.calendar-month-more-heading strong {
  color: #1f2329;
  font-size: 12px;
}

.calendar-month-more-close {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #646a73;
  cursor: pointer;
}

.calendar-month-more-close:hover {
  background: #f2f3f5;
  color: #1f2329;
}

.calendar-month-more-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.calendar-month-more-list {
  display: grid;
  gap: 5px;
}

.calendar-month-more-list .month-mini-item {
  height: 30px;
  min-height: 30px;
  grid-template-columns: 18px 36px minmax(0, 1fr) auto;
}

.calendar-month-more-list .month-mini-item strong {
  font-size: 10px;
}

.cal-today-btn.is-current {
  color: #1456f0;
  background: #f5f8ff;
}

.cal-today-btn.is-returned {
  box-shadow: inset 0 0 0 2px rgba(20, 86, 240, 0.28);
}

@media (max-width: 1100px) {
  .calendar-week-grid {
    grid-template-columns: 64px repeat(7, 140px);
    min-width: 1044px;
  }
}

@media (max-width: 640px) {
  .workspace-mode .main-panel:has(> .calendar-screen.active) {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Calendar v4 final overrides: keep after all legacy calendar rules. */
.workspace-mode .main-panel:has(> .calendar-screen.active) {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 16px;
}

.calendar-screen.workspace-screen.active {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  /* 11px puts the page head's centre on the sidebar logo's centre line, so the two
     sides of the header read as one row instead of two staggered ones. */
  padding-top: 11px;
}

.calendar-page-head {
  flex: 0 0 auto;
}

.calendar-shell {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
}

.calendar-time-rail-head,
.calendar-day-button {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #fff;
  box-shadow: 0 1px 0 #e5e8eb;
}

.calendar-day-column.is-today .calendar-day-button {
  position: sticky;
  top: 0;
}

.calendar-time-rail {
  z-index: 14;
}

.calendar-time-rail-head {
  z-index: 15;
}

.calendar-screen .calendar-platform {
  overflow: hidden;
  padding: 0;
  border-radius: 4px;
  background: #fff;
  color: transparent;
}

.calendar-screen .calendar-platform img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calendar-item .calendar-platform {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.month-mini-item .calendar-platform {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
}

/* Calendar v4: one scroll container, sticky dates, shared native platform assets. */
.workspace-mode .main-panel:has(> .calendar-screen.active) {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 16px;
}

.calendar-screen.workspace-screen.active {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  /* 11px puts the page head's centre on the sidebar logo's centre line, so the two
     sides of the header read as one row instead of two staggered ones. */
  padding-top: 11px;
}

.calendar-page-head {
  flex: 0 0 auto;
}

.calendar-shell {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
}

.calendar-time-rail-head,
.calendar-day-button {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #fff;
  box-shadow: 0 1px 0 #e5e8eb;
}

.calendar-time-rail {
  z-index: 14;
}

.calendar-time-rail-head {
  z-index: 15;
}

.calendar-screen .calendar-platform {
  overflow: hidden;
  padding: 0;
  border-radius: 4px;
  background: #fff;
  color: transparent;
}

.calendar-screen .calendar-platform img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.calendar-item .calendar-platform {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.month-mini-item .calendar-platform {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
}

/* — TikTok agent page additions (ax-) — */
.ax-pchip.tt { background: #010101; font-size: 0; }
.ax-pchip.tt svg { width: 11px; height: 11px; }
.ax-app-post.tt { max-width: 380px; }
.ax-tt-row { display: flex; gap: 14px; align-items: center; }
.ax-tt-thumb { position: relative; width: 108px; aspect-ratio: 9 / 16; border-radius: 12px; flex: none; overflow: hidden; background: linear-gradient(150deg, #ff9d4d, #ff5e62); display: flex; align-items: center; justify-content: center; }
.ax-tt-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.34) 100%); }
.ax-tt-play { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.26); display: flex; align-items: center; justify-content: center; color: #fff; }
.ax-tt-play svg { width: 13px; height: 13px; margin-left: 2px; }
.ax-tt-hook { position: absolute; z-index: 1; left: 9px; right: 9px; bottom: 9px; font-size: 11px; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.55); }
.ax-tt-cap { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ax-tt-meta { font-size: 12px; color: var(--lp-text-secondary); margin-top: 9px; }
.ax-app-post-head .ax-pchip { margin-left: auto; }
.axl-post.is-src { background: var(--lp-bg); }
.ax-show-rhythm { display: flex; flex-direction: column; }
.ax-show-row { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--lp-line, #EFEEE7); }
.ax-show-row:last-of-type { border-bottom: none; }
.ax-show-tag { flex: none; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; letter-spacing: 0.02em; }
.ax-show-tag.is-draft { background: #F2F0ED; color: var(--lp-text-secondary); }
.ax-show-tag.is-sched { background: rgba(234,124,29,0.10); color: #dd6500; }
.ax-show-tag.is-pub { background: var(--lp-bg); color: var(--lp-text); border: 1px solid var(--lp-line-strong, #E6DED5); }
.ax-tt-bgstatus { font-size: 12px; font-weight: 600; color: var(--lp-text-secondary); }
.ax-show-row-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--lp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-show-row-m { flex: none; font-size: 12.5px; color: var(--lp-text-secondary); }
.ax-show-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lp-line-strong, #E6DED5); font-size: 13.5px; line-height: 1.5; color: var(--lp-text-secondary); }
.ax-show-note .ax-dot { margin-top: 6px; flex: none; }

/* — TikTok video canvas (reused: Hero focus card + "Video drafts" showcase panel) — */
.ax-tt-canvas { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background:
    radial-gradient(120% 90% at 50% 16%, rgba(255,255,255,0.16), rgba(255,255,255,0) 48%),
    radial-gradient(150% 110% at 12% 100%, rgba(255,157,77,0.55), rgba(255,157,77,0) 58%),
    linear-gradient(165deg, #241a16 0%, #4a2f22 42%, #a3552c 76%, #e07a3a 100%); }
.ax-tt-canvas::before { content: ''; position: absolute; width: 52%; aspect-ratio: 4 / 3; left: 24%; top: 26%; background: radial-gradient(closest-side, rgba(255,255,255,0.20), rgba(255,255,255,0) 72%); filter: blur(2px); pointer-events: none; }
.ax-tt-canvas::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, rgba(0,0,0,0.03) 2px 4px); mix-blend-mode: overlay; pointer-events: none; }
.ax-tt-canvas-mark { position: absolute; z-index: 1; top: 12px; right: 12px; width: 18px; height: 18px; color: rgba(255,255,255,0.92); }
.ax-tt-canvas-mark svg { width: 100%; height: 100%; }
.ax-tt-canvas-hook { position: absolute; z-index: 1; top: 12px; left: 12px; right: 38px; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.ax-tt-canvas-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; color: #fff; }
.ax-tt-canvas-play svg { width: 16px; height: 16px; margin-left: 2px; }
.ax-tt-canvas-rail { position: absolute; z-index: 1; right: 9px; bottom: 68px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.ax-tt-canvas-rail svg { width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
.ax-tt-canvas-bottom { position: absolute; z-index: 1; left: 11px; right: 46px; bottom: 11px; }
.ax-tt-canvas-id { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ax-tt-canvas-av { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #191818; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ax-tt-canvas-id span:last-child { font-size: 11.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.ax-tt-canvas-cap { font-size: 11px; line-height: 1.4; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ax-tt-canvas-tags { font-size: 10.5px; color: rgba(255,255,255,0.85); text-shadow: 0 1px 3px rgba(0,0,0,0.5); margin: 0; }
.ax-tt-canvas.is-compact .ax-tt-canvas-play { width: 30px; height: 30px; }
.ax-tt-canvas.is-compact .ax-tt-canvas-play svg { width: 12px; height: 12px; }
.ax-tt-canvas.is-compact .ax-tt-canvas-mark { width: 14px; height: 14px; top: 8px; right: 8px; }
.ax-tt-canvas.is-compact .ax-tt-canvas-bottom { left: 8px; right: 8px; bottom: 8px; }
.ax-tt-canvas.is-compact .ax-tt-canvas-id span:last-child { font-size: 10px; }

/* — Hero: one horizontal review panel (video canvas + review details), no card-in-card — */
.ax-focus-tt .ax-focus-ttgrid { display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: center; margin-top: 4px; }
.ax-focus-ttcanvas { width: 232px; }
.ax-focus-ttdetail { display: flex; flex-direction: column; }
.ax-focus-tthook { font-family: var(--lp-heading); font-size: 19px; font-weight: 600; line-height: 1.32; color: var(--lp-text); margin: 0 0 10px; }
.ax-focus-ttmeta { font-size: 13px; color: var(--lp-text-secondary); margin: 0; }
.ax-ttfield-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--lp-text-secondary); opacity: 0.75; margin-bottom: 4px; }
.ax-ttfield-lead { font-size: 14.5px; line-height: 1.5; color: var(--lp-text); margin: 0 0 14px; }
.ax-ttfield { padding: 10px 0; border-top: 1px solid var(--lp-line, #EFEEE7); }
.ax-ttfield-v { font-size: 13.5px; line-height: 1.55; color: var(--lp-text); margin: 0; }
@media (min-width: 1081px) { .ax-hero2-tt .ax-focus { max-width: 640px; } }
@media (max-width: 640px) {
  .ax-focus-tt .ax-focus-ttgrid { grid-template-columns: minmax(0, 1fr); }
  .ax-focus-ttcanvas { width: 168px; margin: 0 auto; }
  .ax-focus-tthook { text-align: center; }
  .ax-focus-ttmeta { text-align: center; }
}

/* — What York handles: shared grid/column helpers reused across the three sequential chapters — */
.ax-ttshow-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.ax-ttshow-grid-comment { grid-template-columns: 1fr 1fr; }
.ax-ttshow-canvas { width: 220px; }
.ax-ttshow-detail, .ax-ttshow-replycol { display: flex; flex-direction: column; }
.ax-ttshow-status { font-size: 13px; color: var(--lp-text-secondary); margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--lp-line-strong, #E6DED5); }
.ax-ttshow-commentcol { display: flex; flex-direction: column; gap: 12px; }
.ax-tt-mini { width: 90px; }
.ax-tt-commentrow { display: flex; align-items: flex-start; gap: 10px; }
.ax-tt-commentav { width: 22px; height: 22px; border-radius: 50%; background: #F2F0ED; color: var(--lp-text-secondary); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; text-transform: uppercase; }
.ax-tt-commentname { display: block; font-size: 12.5px; font-weight: 700; color: var(--lp-text); margin-bottom: 2px; }
.ax-tt-commenttext { font-size: 13.5px; line-height: 1.5; color: var(--lp-text-secondary); margin: 0; }
@media (max-width: 760px) {
  .ax-ttshow-grid, .ax-ttshow-grid-comment { grid-template-columns: minmax(0, 1fr); }
  .ax-ttshow-canvas { width: 168px; margin: 0 auto; }
}

/* — Chapter 01: Video drafts. The one deliberate dark product moment, besides the final CTA. — */
.ax-vdchapter { background: var(--lp-cta, #191818); }
.ax-vdchapter .ax-h2, .ax-vdchapter h3 { color: rgba(255,255,255,0.94); }
.ax-vdchapter .ax-lead { color: rgba(255,255,255,0.62); }
.ax-vdchapter .ax-ttfield-lead, .ax-vdchapter .ax-ttfield-v { color: rgba(255,255,255,0.88); }
.ax-vdchapter .ax-ttfield-k { color: rgba(255,255,255,0.5); }
.ax-vdchapter .ax-ttfield { border-top-color: rgba(255,255,255,0.14); }
.ax-vdchapter .ax-ttshow-status { color: rgba(255,255,255,0.62); border-top-color: rgba(255,255,255,0.14); }
.ax-vdchapter-grid { grid-template-columns: 320px 1fr; }
.ax-vdchapter-canvas { width: 320px; }
.ax-vdscene { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; }
.ax-vdscene-n { flex: none; font-family: var(--lp-heading); font-size: 13px; font-weight: 700; color: var(--lp-orange); width: 18px; }
.ax-vdscene-t { font-size: 13.5px; color: rgba(255,255,255,0.88); }
@media (max-width: 760px) {
  .ax-vdchapter-grid { grid-template-columns: minmax(0, 1fr); }
  .ax-vdchapter-canvas { width: 220px; margin: 0 auto; }
}

/* ============ LinkedIn agent page: hero enrichment + capability showcase (axl-) ============ */
/* Hero focus card widened further (was 516px) to make room for the compact native media preview */
@media (min-width: 1081px) { .ax-hero2-li .ax-focus { max-width: 568px; } }
.ax-focus-vis { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--lp-text-secondary); opacity: 0.72; }
.ax-focus-vis svg { width: 13px; height: 13px; }
.ax-app-post-more { color: var(--lp-text-secondary); cursor: default; }

/* York-branded post avatar (coral disc + white initial), matching York's product message avatar */
.ax-in-av.is-york { background: #e05a3d; color: #fff; }

/* LinkedIn-native "Anyone" visibility globe: solid disc with white meridians (overrides global svg{fill:none}) */
.ax-globe .g-disk { fill: currentColor; stroke: none; }
.ax-globe .g-grid { fill: none; stroke: #fff; stroke-width: 0.85; stroke-linecap: round; }

/* Hero-only compact landscape media preview (distinct from TikTok's 9:16 .ax-focus-media).
   Bleeds to the post card's full edges (negative margin cancels .ax-focus-post's 15px side
   padding) — matches how LinkedIn actually renders an attached image: flush, not inset in a
   bordered frame. Parent padding value is coupled to this rule; keep them in sync. */
.ax-li-media { margin: 12px -15px 0; width: auto; height: 140px; position: relative; background: linear-gradient(158deg, #2c2318 0%, #4c3b2b 100%); }
.ax-li-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 140% at 82% 12%, rgba(234, 124, 29, 0.24), transparent 60%); }
.ax-li-media-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.ax-li-media-cap span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: 5px; }
.ax-li-media-cap strong { display: block; font-family: var(--lp-heading); font-size: 18px; line-height: 1.2; font-weight: 600; color: #fff; }
@media (max-width: 720px) { .ax-li-media { height: 120px; } }

/* LinkedIn-native interaction row (subdued reference; used in hero + showcase; no engagement counts) */
.ax-in-actions { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--lp-line, #EFEEE7); }
.ax-in-act { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--lp-text-secondary); opacity: 0.78; white-space: nowrap; }
.ax-in-act svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Showcase shell: left vertical capability nav + right LinkedIn product scene */
.axl { margin-top: 46px; }
.axl-in { display: grid; grid-template-columns: minmax(0, 32%) 1fr; gap: 44px; align-items: start; }

.axl-nav { display: flex; flex-direction: column; border-top: 1px solid var(--lp-line-strong, #E6DED5); }
.axl-navitem { position: relative; appearance: none; background: none; border: 0; border-bottom: 1px solid var(--lp-line, #EFEEE7); margin: 0; padding: 22px 0 22px 22px; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.axl-navitem::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px; background: var(--lp-orange); transform: scaleY(0); transform-origin: top; transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1); }
.axl-navitem.is-active::before { transform: scaleY(1); }
.axl-navitem h3 { font-family: var(--lp-heading); font-size: 21px; font-weight: 700; color: var(--lp-text-secondary); margin: 0 0 5px; transition: color .25s ease; }
.axl-navitem.is-active h3 { color: var(--lp-text); }
.axl-navitem:hover h3 { color: var(--lp-text); }
.axl-navitem p { font-size: 13.5px; line-height: 1.5; color: var(--lp-text-secondary); margin: 0; opacity: 0.82; }
.axl-navitem:focus-visible { outline: 2px solid var(--lp-orange); outline-offset: 3px; border-radius: 4px; }

.axl-stage { display: grid; background: #FFFDFB; border: 1px solid var(--lp-line, #EFEEE7); border-radius: 20px; box-shadow: 0 24px 56px -46px rgba(38, 18, 8, 0.14); overflow: hidden; }
.axl-panel { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; padding: 34px 34px 32px; opacity: 1; transform: none; visibility: visible; transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1), transform .32s cubic-bezier(0.22, 1, 0.36, 1); }
.axl-panel:not(.is-active) { opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1), transform .32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s .32s; }
.axl-panel:focus-visible { outline: 2px solid var(--lp-orange); outline-offset: -2px; border-radius: 20px; }

/* York framing strip */
.axl-ctx { margin-bottom: 20px; }
.axl-ctx-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #dd6500; margin-bottom: 13px; }
.axl-ctx-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lp-orange); flex: none; }
.axl-ctx-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 9px 0; }
.axl-ctx-row + .axl-ctx-row { border-top: 1px solid var(--lp-line, #EFEEE7); }
.axl-ctx-k { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--lp-text-secondary); opacity: 0.72; padding-top: 2px; }
.axl-ctx-v { font-size: 14.5px; line-height: 1.55; color: var(--lp-text); margin: 0; }

/* LinkedIn post preview inside the stage */
.axl-post { background: #fff; border: 1px solid var(--line, #e6ded5); border-radius: 14px; padding: 16px 18px; }
.axl-post .ax-app-post-text { font-size: 14.5px; line-height: 22px; }
.axl-post .ax-app-post-text + .ax-app-post-text { margin-top: 9px; }
.axl-replylabel { display: flex; align-items: center; gap: 10px; margin: 15px 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #dd6500; }
.axl-replylabel::after { content: ""; flex: 1; height: 1px; background: var(--lp-line-strong, #E6DED5); }
.axl-post.is-reply { margin-left: 26px; }

/* compact landscape image, bled to the post card's full edges (negative margin cancels .axl-post's
   18px side padding) — a single verified LinkedIn media type; no document/carousel claim. */
.axl-media { margin: 13px -18px 0; width: auto; height: 190px; position: relative; background: linear-gradient(158deg, #f0e7db 0%, #e4d5c4 52%, #d8c3ad 100%); }
.axl-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 120% at 80% 15%, rgba(234, 124, 29, 0.18), transparent 60%); }
.axl-media-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.axl-media-cap span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8A6A4F; margin-bottom: 6px; }
.axl-media-cap strong { display: block; font-family: var(--lp-heading); font-size: 23px; line-height: 1.18; font-weight: 600; color: #3a2a1c; }
@media (max-width: 720px) { .axl-media { height: 160px; } }

/* status line */
.axl-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--lp-text-secondary); }
.axl-status strong { font-weight: 650; color: var(--lp-text); }
.axl-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-orange); flex: none; }
.axl-status-sep { opacity: 0.5; }

@media (max-width: 980px) {
  .axl-in { grid-template-columns: 1fr; gap: 28px; }
  .axl-nav { flex-direction: row; border-top: 0; border-bottom: 1px solid var(--lp-line-strong, #E6DED5); gap: 30px; overflow-x: auto; scrollbar-width: none; }
  .axl-nav::-webkit-scrollbar { display: none; }
  .axl-navitem { border-bottom: 0; padding: 0 0 14px; width: auto; flex: none; white-space: nowrap; }
  .axl-navitem::before { left: 0; right: 0; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); transform-origin: center; }
  .axl-navitem.is-active::before { transform: scaleX(1); }
  .axl-navitem h3 { font-size: 17px; margin: 0; }
  .axl-navitem p { display: none; }
}
@media (max-width: 720px) {
  .axl { margin-top: 34px; }
  .axl-stage { border-radius: 16px; }
  .axl-panel { padding: 22px 18px; }
  .axl-panel:not(.is-active) { display: none; }
  .axl-ctx-row { grid-template-columns: 1fr; gap: 3px; }
  .axl-post.is-reply { margin-left: 12px; }
}

/* ============ LinkedIn "What York handles" — unified "York Workbench" (axw-*, LinkedIn-only) ============ */
/* One fixed shell (constant size across tabs); each tab swaps only the left brief + right product card. */
.axw-sub { max-width: 620px; margin: 14px auto 0; font-size: 16px; line-height: 1.6; color: var(--lp-text-secondary); }
.axw { margin-top: 30px; }

/* editorial tabs: underline = selected (no box); light divider under the row; keyboard focus = soft ring only */
.axw-tabs { display: flex; justify-content: center; gap: 0 40px; border-bottom: 1px solid var(--lp-line, #EFEEE7); }
.axw-tab { position: relative; appearance: none; background: none; border: 0; margin: 0; padding: 0 2px 14px; font-family: var(--lp-heading); font-size: 18px; font-weight: 600; color: var(--lp-text-secondary); cursor: pointer; white-space: nowrap; transition: color .2s ease; }
.axw-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lp-orange); transform: scaleX(0); transform-origin: center; transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1); }
.axw-tab:hover { color: var(--lp-text); }
.axw-tab.is-active { color: var(--lp-text); font-weight: 700; }
.axw-tab.is-active::after { transform: scaleX(1); }
.axw-tab:focus-visible { outline: 2px solid rgba(234, 124, 29, 0.5); outline-offset: 5px; border-radius: 2px; }

/* fixed workbench shell: grid-stack + min-height keeps size constant across tabs; open warm frame */
.axw-stage { margin-top: 40px; display: grid; background: #FFFDFB; border: 1px solid var(--lp-line, #EFEEE7); border-radius: 20px; box-shadow: 0 24px 56px -46px rgba(38, 18, 8, 0.14); padding: 38px 40px; min-height: 520px; }
.axw-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 35%) minmax(0, 65%); gap: 64px; align-items: center; }
.axw-panel:not(.is-active) { opacity: 0; visibility: hidden; pointer-events: none; }
.axw-panel.is-active { opacity: 1; }
.axw-panel.is-active .axw-left { animation: axwLeftIn .2s ease both; }
.axw-panel.is-active .axw-right { animation: axwRightIn .2s ease both; }
@keyframes axwLeftIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes axwRightIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* left column: 01 signal -> 02 york's angle, editorial (no cards) */
.axw-left { min-width: 0; }
.axw-step + .axw-step { margin-top: 22px; }
.axw-step.is-angle { border-left: 2px solid rgba(234, 124, 29, 0.4); padding-left: 18px; }
.axw-n { display: block; font-size: 13px; font-weight: 700; color: #e8935a; letter-spacing: 0.02em; }
.axw-lab { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--lp-text-secondary); margin: 5px 0 9px; }
.axw-body { font-size: 15px; line-height: 1.62; color: var(--lp-text); margin: 0; }
.axw-quote { font-size: 15.5px; line-height: 1.6; color: var(--lp-text); margin: 0; font-style: italic; }

/* right column: one York product card (the focal object) */
.axw-right { min-width: 0; }
.axw-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e6ded5); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px -28px rgba(38, 18, 8, 0.2); }
.axw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--lp-line, #EFEEE7); }
.axw-toplabel { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--lp-text); }
.axw-topmeta { font-size: 12.5px; color: var(--lp-text-secondary); white-space: nowrap; }
.axw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-orange); flex: none; }
.axw-preview { padding: 17px 18px 18px; }
.axw-author { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.axw-av { width: 32px; height: 32px; border-radius: 50%; background: #e05a3d; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.axw-auname { font-size: 14px; font-weight: 700; color: var(--lp-text); }
.axw-preview .ax-app-post-in { margin-left: 0; }
.axw-ptext { font-size: 15px; line-height: 1.62; color: var(--lp-text); margin: 0; }
.axw-ptext + .axw-ptext { margin-top: 9px; }
.axw-more { color: var(--lp-text-secondary); }
.axw-media { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; margin-top: 14px; height: 132px; padding: 0 22px; border-radius: 10px; overflow: hidden; border: 1px solid var(--lp-line, #EFEEE7); background: linear-gradient(150deg, #FDFBF8 0%, #F6EBDD 60%, #EFDDC7 100%); }
.axw-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(78% 92% at 84% 14%, rgba(234, 124, 29, 0.2), transparent 60%); }
.axw-media-logo { position: relative; width: 56px; height: 21px; object-fit: contain; margin-bottom: 8px; }
.axw-media-tag { position: relative; font-family: var(--lp-heading); font-size: 24px; font-weight: 600; line-height: 1.05; color: var(--lp-text); }
.axw-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--lp-line, #EFEEE7); }
.axw-micro { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.4; color: var(--lp-text-secondary); }
.axw-actions { display: inline-flex; gap: 8px; flex: none; }
.axw-btn { appearance: none; font-family: 'York Agent Inter', sans-serif; font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 100px; border: 1px solid var(--lp-line-strong, #E6DED5); background: #fff; color: var(--lp-text); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.axw-btn:hover { border-color: var(--lp-text-secondary); }
.axw-btn.is-primary { background: var(--lp-cta, #191818); color: #fff; border-color: transparent; }
.axw-btn.is-primary:hover { background: #000; }

@media (max-width: 980px) {
  .axw-panel { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .axw-stage { min-height: 0; padding: 30px 28px; }
}
@media (max-width: 720px) {
  .axw { margin-top: 24px; }
  .axw-tabs { justify-content: flex-start; gap: 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 2px; }
  .axw-tabs::-webkit-scrollbar { display: none; }
  .axw-tab { font-size: 16px; padding-bottom: 12px; }
  .axw-stage { margin-top: 26px; padding: 22px 18px; border-radius: 16px; }
  .axw-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .axw-actions { width: 100%; }
}

/* ============ LinkedIn Agent page — elegance pass (frontend-design skill) ============ */
/* Brand palette + typefaces are LOCKED to York; gains come from execution precision + restraint,
   and from letting the "Ready for review" product card be the signature. Scoped to #agentDetail.is-li
   so X / TikTok / Instagram / Generic pages are untouched. */

/* Type: a more confident, editorial serif hierarchy — tighter leading + optical tracking */
#agentDetail.is-li .ax-h2 { line-height: 1.04; letter-spacing: -0.021em; }
#agentDetail.is-li .ax-hero2-title { line-height: 1.0; letter-spacing: -0.024em; }
#agentDetail.is-li .ax-control2-h { line-height: 1.05; letter-spacing: -0.02em; }
/* Body/lead: quieter and more measured, so the display type leads */
#agentDetail.is-li .ax-lead { font-size: 17px; line-height: 1.64; }
#agentDetail.is-li .ax-hero2-sub { font-size: 17px; line-height: 1.62; }
#agentDetail.is-li .ax-faq3-sub { font-size: 15px; }

/* Restraint: quieter section eyebrows — brand orange kept, but smaller + less shouty tracking */
#agentDetail.is-li .lv-eyebrow { font-size: 11.5px; letter-spacing: 1.7px; font-weight: 600; }

/* Rhythm: a touch more air above each section headline, calmer cadence */
#agentDetail.is-li .ax-head { margin-bottom: 54px; }

/* Signature surfaces — the review/approval product cards are the one thing to remember.
   Softer, deeper, more premium elevation; everything else stays flat and quiet. */
#agentDetail.is-li .ax-focus { box-shadow: 0 54px 110px -64px rgba(38, 18, 8, 0.26), 0 14px 36px -24px rgba(38, 18, 8, 0.07); }
#agentDetail.is-li .axw-stage { box-shadow: 0 44px 96px -66px rgba(38, 18, 8, 0.17); }
#agentDetail.is-li .axw-card { box-shadow: 0 20px 44px -32px rgba(38, 18, 8, 0.22); }

/* Discipline the orange: the loose status/list dots are softened a hair so orange reads as
   intentional signal, not confetti (the card's primary action keeps full-strength orange/dark). */
#agentDetail.is-li .ax-why-item strong { letter-spacing: -0.01em; }

/* ===== LinkedIn "Why LinkedIn" SIGNATURE — one oversized editorial statement, everything else quiet ===== */
.axsig-head { max-width: 900px; }
.axsig-statement { font-family: var(--lp-heading); font-weight: 500; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.0; letter-spacing: -0.028em; color: var(--lp-text); margin: 16px 0 0; max-width: 15ch; }
.axsig-statement em { font-style: italic; color: var(--lp-orange); }
.axsig-lead { font-size: 17px; line-height: 1.64; color: var(--lp-text-secondary); max-width: 560px; margin: 26px 0 0; }
/* four reasons demoted to a taut hairline rail beneath the statement */
.axsig-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--lp-line-strong, #E6DED5); }
.axsig-facet { padding: 22px 26px 0 0; border-right: 1px solid var(--lp-line, #EFEEE7); }
.axsig-facet:last-child { border-right: 0; }
.axsig-facet strong { display: block; font-size: 14.5px; font-weight: 650; color: var(--lp-text); letter-spacing: -0.01em; margin-bottom: 8px; }
.axsig-facet span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--lp-text-secondary); }
@media (max-width: 900px) {
  .axsig-rail { grid-template-columns: 1fr 1fr; gap: 0; }
  .axsig-facet { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--lp-line, #EFEEE7); }
  .axsig-facet:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .axsig-rail { grid-template-columns: 1fr; }
  .axsig-facet { border-right: 0; padding: 18px 0; }
}

/* ============ LinkedIn — "York Editorial" transformation (experiment, scoped .is-li) ============ */
/* SIGNATURE — "the edited word": exactly one EB Garamond italic, orange word per display headline,
   page-wide. York edits your words; the page itself reads as an edited publication. Orange becomes
   rare and precious: it lives in the edited word, live-status dots, and primary actions — nowhere else. */
#agentDetail.is-li .ax-hero2-title em,
#agentDetail.is-li .ax-h2 em,
#agentDetail.is-li .ax-control2-h em,
#agentDetail.is-li .ax-cta3-h em { font-style: italic; color: var(--lp-orange); letter-spacing: -0.01em; padding-right: 0.04em; }

/* Editorial eyebrows: quiet warm-ink small caps; centered ones sit between hairlines. */
#agentDetail.is-li .lv-eyebrow { color: var(--lp-text-secondary); font-size: 11px; letter-spacing: 2.4px; font-weight: 600; }
#agentDetail.is-li .ax-head.ax-center .lv-eyebrow,
#agentDetail.is-li .ax-cta3-in .lv-eyebrow { display: inline-flex; align-items: center; gap: 18px; }
#agentDetail.is-li .ax-head.ax-center .lv-eyebrow::before,
#agentDetail.is-li .ax-head.ax-center .lv-eyebrow::after,
#agentDetail.is-li .ax-cta3-in .lv-eyebrow::before,
#agentDetail.is-li .ax-cta3-in .lv-eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--lp-line-strong, #E6DED5); }

/* Display scale: bigger, tighter, more confident (serif carries the page). */
#agentDetail.is-li .ax-hero2-title { font-size: clamp(44px, 4.9vw, 70px); line-height: 0.99; letter-spacing: -0.026em; }
#agentDetail.is-li .ax-hero2-sub { max-width: 440px; }
#agentDetail.is-li .ax-h2 { font-size: clamp(33px, 3.8vw, 50px); }
#agentDetail.is-li .ax-control2-h { font-size: clamp(34px, 4vw, 54px); }

/* Dot discipline: orange dots mean LIVE STATUS only (review/waiting states in the product cards).
   Editorial lists lose their dots — hairlines carry the structure. */
#agentDetail.is-li .ax-problem-list .ax-dot,
#agentDetail.is-li .ax-loop-note .ax-dot { display: none; }
#agentDetail.is-li .ax-problem-list li { gap: 0; font-weight: 450; }

/* Loop footnote becomes a true editorial aside: serif italic, centered. */
#agentDetail.is-li .ax-loop-note { font-family: var(--lp-heading); font-style: italic; font-size: 18px; font-weight: 500; color: var(--lp-text-secondary); }

/* CTA: the edited word now carries the orange — retire the accent bar (one signal, not two). */
#agentDetail.is-li .ax-cta3-accent { display: none; }

/* Micro-delight: brand-tinted text selection. */
#agentDetail.is-li ::selection { background: rgba(234, 124, 29, 0.22); }

/* ===== LinkedIn HERO card — Open UI Scout (editorial refs: spotlight / cruip / leerob) + refactoring-ui polish ===== */
/* DEPTH (refactoring-ui/depth): warm, layered elevation + light-from-above so the review card
   reads as the one crafted object floating on the page. Scoped .is-li (X hero keeps its own shadow). */
#agentDetail.is-li .ax-focus {
  box-shadow:
    0 1px 2px rgba(38, 18, 8, 0.05),
    0 10px 22px -14px rgba(38, 18, 8, 0.13),
    0 46px 84px -46px rgba(38, 18, 8, 0.24);
  border-top-color: #FFFFFF;
}
/* HIERARCHY (de-emphasize to emphasize): the peach filled "insight" box competed with the post.
   Turn it into a quiet editorial left-rule annotation (matches the page's left-rule language);
   the POST becomes the clear focal content. */
#agentDetail.is-li .ax-focus-insight { background: none; border-radius: 0; padding: 1px 0 1px 15px; border-left: 2px solid var(--lp-orange); gap: 0; margin: 2px 0 17px; }
#agentDetail.is-li .ax-focus-idot { display: none; }
#agentDetail.is-li .ax-focus-ilabel { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; }
#agentDetail.is-li .ax-focus-insight p { color: var(--lp-text-secondary); font-size: 13px; }
/* Recede the reference chrome (draft-visibility line + native action row) to tertiary, so the
   drafted post is unmistakably the focus. */
#agentDetail.is-li .ax-focus-vis { opacity: 0.55; }
#agentDetail.is-li .ax-in-actions { opacity: 0.6; }
/* Lift the focal content: slightly larger, more generous post body inside the review card. */
#agentDetail.is-li .ax-focus-post .ax-app-post-text { font-size: 14.5px; line-height: 1.62; }

/* ===== LinkedIn "What York handles" — Open UI Scout (feature-showcase refs) + design-system focal-weight ===== */
/* Feature-showcase composition rule: the product preview is the focal object and should dominate;
   the explanatory text is a quiet caption aligned to the TOP of the visual (not floating centered
   in dead space). Rebalance weight to the card (focal-right ~68) and top-align the columns. */
#agentDetail.is-li .axw-panel { grid-template-columns: minmax(0, 31%) minmax(0, 69%); gap: 56px; align-items: start; }
#agentDetail.is-li .axw-left { align-self: start; padding-top: 4px; }
/* The left caption sits top; a hairline top-rule ties it to the section as an editorial annotation. */
#agentDetail.is-li .axw-left .axw-step:first-child { padding-top: 14px; border-top: 1px solid var(--lp-line-strong, #E6DED5); }
/* Slightly less forced height so the top-aligned content doesn't leave an oversized void below. */
#agentDetail.is-li .axw-stage { min-height: 468px; align-items: start; padding: 34px 38px; }

/* ===== What York handles — content-driven tab height (fix: short tabs no longer forced to the
   tallest tab's height). Each tab hugs its own content; only the active panel is in flow. ===== */
#agentDetail.is-li .axw-stage { display: block; min-height: 0; }
#agentDetail.is-li .axw-panel { grid-area: auto; }
#agentDetail.is-li .axw-panel:not(.is-active) { display: none; }

/* ===== Agent pages — York × agent/platform brand lockup ===== */
#agentDetail .agent-brandlock {
  min-height: 28px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  white-space: nowrap;
}
#agentDetail .agent-brandlock__york {
  width: 80px;
  height: 28px;
  display: block;
  flex: none;
  object-fit: contain;
}
#agentDetail .agent-brandlock__times {
  color: #B3A599;
  font-family: 'York Agent Inter', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
}
#agentDetail .agent-brandlock__mark {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
  object-fit: contain;
}
#agentDetail .agent-brandlock + .lv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-top: 0;
  margin: 0 0 28px !important;
  color: #A8500C;
  font-family: 'York Agent Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}
#agentDetail .agent-brandlock + .lv-eyebrow::before {
  content: '';
  position: static;
  width: 32px;
  height: 2px;
  flex: none;
  background: #DD6500;
  border-radius: 2px;
}
#agentDetail .agent-brandlock + .lv-eyebrow + h2 {
  margin-top: 0;
}

/* Bring the proof strip into the first-screen story without crowding the hero composition. */
@media (min-width: 901px) {
  #agentDetail .ax-hero2 { padding-bottom: 48px; }
  #agentDetail .ax-hero.wr { min-height: min(calc(84vh - 56px), 714px); }
  #agentDetail .ax-hero.cr,
  #agentDetail .ax-hero.eg,
  #agentDetail .ax-hero.rs { min-height: min(calc(84vh - 56px), 724px); }
  #agentDetail .ax-hero.an { min-height: min(calc(84vh - 56px), 754px); }
}

/* ===== Agent Hero titles — resilient wrapping after copy updates =====
   Balance short display headlines so added keywords do not leave a one-word
   orphan on the final line. Page-specific scale and composition stay intact. */
#agentDetail .ax-hero2-title,
#agentDetail .wr-h1,
#agentDetail .cr-h1,
#agentDetail .eg-h1,
#agentDetail .rs-h1,
#agentDetail .an-h1 {
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

/* Recent-post cards: a quiet editorial hover with a frosted inner rim. */
#agentDetail .pn-wk {
  position: relative;
  isolation: isolate;
  transition:
    transform 480ms cubic-bezier(.22, 1, .36, 1),
    border-color 300ms ease,
    box-shadow 480ms cubic-bezier(.22, 1, .36, 1);
}

#agentDetail .pn-wk::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    inset 0 -1px 0 rgba(38, 18, 8, .05);
  opacity: 0;
  transition: opacity 300ms ease;
}

#agentDetail .pn-wk img {
  transform: scale(1.001);
  transform-origin: center;
  transition:
    transform 560ms cubic-bezier(.22, 1, .36, 1),
    filter 420ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #agentDetail .pn-wk:hover {
    z-index: 1;
    transform: translateY(-4px) scale(1.006);
    border-color: rgba(255, 255, 255, .76);
    box-shadow:
      0 2px 5px rgba(38, 18, 8, .05),
      0 20px 42px -24px rgba(38, 18, 8, .28),
      0 0 0 1px rgba(221, 101, 0, .07);
  }

  #agentDetail .pn-wk:hover::after { opacity: 1; }
  #agentDetail .pn-wk:hover img {
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  #agentDetail .pn-wk,
  #agentDetail .pn-wk img,
  #agentDetail .pn-wk::after { transition: none; }
  #agentDetail .pn-wk:hover,
  #agentDetail .pn-wk:hover img { transform: none; }
}

/* Anchor hero mascots to their card so grid-column width cannot move them away. */
#agentDetail .pn-hero-card { position: relative; }
#agentDetail .pn-hero-card > .york-guy-hero {
  left: -78px;
  bottom: 0;
}
