/* AITrium Assistant Library
 * Layout and design language cloned from atlassian.com/software/rovo/use-cases.
 * Values below were measured off the live page (Aug 12, 2026):
 *   body  Charlie Text 16/24  #091E42
 *   h1    Charlie Display 64/83.2 700  #111213   (detail pages 48/56)
 *   h2    Charlie Display 24 600
 *   link  #0052CC
 *   sunken band #F8F8F8
 *   lozenge 11px/500, 0.3px tracking, 1px 4px, radius 3px
 *   prompt boxes Courier 16 centered on a sunken field
 * Charlie is Atlassian-licensed, so it is declared first and falls back.
 */

:root {
  --font-display: 'Charlie Display', 'Figtree', 'Inter', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-text: 'Charlie Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Noto Sans', 'Helvetica Neue', sans-serif;
  --font-code: Courier, 'Courier New', monospace;

  --text: #091e42;
  --text-heading: #111213;
  --text-subtle: #44546f;
  --text-subtlest: #626f86;
  --link: #0052cc;
  --link-hover: #0065ff;

  --surface: #ffffff;
  --surface-sunken: #f8f8f8;
  --surface-field: #f4f5f7;
  --border: #dfe1e6;
  --border-subtle: #ebecf0;

  --blue-bold: #0052cc;
  --blue-bolder: #0747a6;

  --container: 1160px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-heading); margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ============ product nav ============ */
.product-nav {
  position: relative; z-index: 20;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}
/* The bar spans the viewport: logo flush left, tabs optically centred, status right.
   Three equal columns keep the tabs on the true centre line regardless of how wide
   the left and right clusters get. */
.product-nav .nav-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; min-height: 64px; padding-inline: 24px;
}
.product-nav .brand {
  display: inline-flex; align-items: center; color: var(--text-heading);
  justify-self: start;
}
.product-nav .brand img { display: block; width: 103px; height: 20px; }
.product-nav .brand:hover { text-decoration: none; }
.product-nav nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.product-nav nav a { color: var(--text); font-size: 15px; white-space: nowrap; }
.product-nav nav a[aria-current='page'] { color: var(--link); }
.product-nav .right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.product-nav .right .env {
  font-size: 11px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase;
  color: #ae2a19; background: #ffebe5; padding: 2px 7px; border-radius: 3px;
}
.freshness {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-subtle);
  border: 1px solid var(--border); border-radius: 3px; padding: 3px 9px; background: var(--surface);
}
.freshness .dot { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; flex: none; }
.freshness.is-aging { color: #7f5f01; border-color: #f5cd47; background: #fff7d6; }
.freshness.is-aging .dot { background: #e7a13c; }
.freshness.is-stale { color: #ae2a19; border-color: #f0cdc7; background: #ffebe5; }
.freshness.is-stale .dot { background: #c9372c; }

/* ============ hero ============ */
.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero-inner { padding: 72px 0 88px; text-align: center; position: relative; z-index: 2; }
.hero h1 {
  font-size: 64px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px;
  max-width: 15ch; margin: 0 auto;
}
.hero p {
  margin: 20px auto 0; max-width: 54ch; font-size: 18px; line-height: 28px; color: var(--text);
}
.hero-art { position: absolute; top: 0; bottom: 0; width: 300px; pointer-events: none; opacity: .95; }
.hero-art.left { left: 0; }
.hero-art.right { right: 0; }
@media (max-width: 1100px) { .hero-art { display: none; } }

/* ============ sunken band ============ */
.band { background: var(--surface-sunken); }
.band-label {
  text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-subtle);
  padding-top: 44px;
}

/* ============ featured cards ============ */
.featured {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding: 22px 0 64px;
}
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.fcard {
  background: var(--surface); border-radius: 4px;
  box-shadow: 0 1px 1px rgba(9,30,66,.13), 0 0 1px rgba(9,30,66,.13);
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
a.fcard:hover { text-decoration: none; box-shadow: 0 8px 16px -4px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31); transform: translateY(-2px); }
.fcard-art { height: 128px; display: grid; place-items: center; }
.fcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fcard .kicker {
  font-size: 12px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-subtle);
}
.fcard h3 { font-size: 24px; line-height: 30px; font-weight: 700; }
.fcard p { margin: 0; font-size: 16px; line-height: 24px; color: var(--text); }
.fcard .go { margin-top: auto; padding-top: 8px; color: var(--link); font-size: 16px; }

/* ============ lozenges ============ */
.loz {
  display: inline-block; font-family: var(--font-text);
  font-size: 11px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase;
  padding: 1px 4px; border-radius: 3px; white-space: nowrap;
}
.loz-red     { color: #ae2a19; background: #ffebe5; }
.loz-green   { color: #4c6b1f; background: #d3f1a7; }
.loz-orange  { color: #101214; background: #fca700; }
.loz-blue    { color: #0055cc; background: #e9f2ff; }
.loz-purple  { color: #5e4db2; background: #f3f0ff; }
.loz-teal    { color: #206a83; background: #e7f9ff; }
.loz-magenta { color: #943d73; background: #ffecf8; }
.loz-yellow  { color: #7f5f01; background: #fff7d6; }
.loz-gray    { color: #44546f; background: #f1f2f4; }
.lozrow { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============ filter + results ============ */
.results-section { padding: 56px 0 72px; }
.results-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .results-layout { grid-template-columns: 1fr; } }

.filter-head {
  font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-heading); padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.filter-head button {
  font: inherit; text-transform: uppercase; letter-spacing: .4px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--link); text-decoration: underline; text-underline-offset: 2px;
}
.fgroup { border-bottom: 1px solid var(--border); }
.fgroup > button.fgroup-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer; padding: 18px 0;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-heading);
  text-align: left;
}
.fgroup-toggle svg { transition: transform .18s ease; flex: none; }
.fgroup[data-open='false'] .fgroup-toggle svg { transform: rotate(-90deg); }
.fgroup[data-open='false'] .fgroup-body { display: none; }
.fgroup-body { padding: 0 0 18px 18px; display: grid; gap: 10px; }
.fgroup-body button {
  font: inherit; font-size: 16px; text-align: left; background: none; border: 0; padding: 0;
  cursor: pointer; color: var(--link); line-height: 20px;
}
.fgroup-body button:hover { text-decoration: underline; }
.fgroup-body button[aria-pressed='true'] { color: var(--text-heading); font-weight: 700; }
/* the reference page marks the active option with a bullet in the left margin */
.fgroup-body button { position: relative; }
.fgroup-body button[aria-pressed='true']::before {
  content: '•'; position: absolute; left: -13px; color: var(--text-heading);
}

.breadcrumb { font-size: 16px; color: var(--text); margin-bottom: 22px; }
.breadcrumb span { color: var(--text-subtlest); }
.result-count { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--text-subtle); }
.result-count b { font-family: var(--font-display); font-size: 13px; color: var(--text-heading); }

.searchfield { position: relative; display: flex; align-items: center; margin: 8px 0 28px; }
.searchfield svg.mag { position: absolute; left: 2px; color: var(--text-subtle); }
.searchfield input {
  flex: 1; font: inherit; font-size: 18px; color: var(--text-heading);
  border: 0; border-bottom: 1px solid var(--border); background: transparent;
  padding: 8px 40px 10px 30px;
}
.searchfield input::placeholder { color: var(--text-subtlest); }
.searchfield input:focus { outline: none; border-bottom-color: var(--link); }
.searchfield .clear {
  position: absolute; right: 0; width: 30px; height: 30px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center; border-radius: 2px;
}

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.ucard {
  border: 1px solid var(--border); background: var(--surface); border-radius: 4px;
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; color: inherit;
  transition: box-shadow .15s ease, border-color .15s ease;
}
a.ucard:hover { text-decoration: none; border-color: #c1c7d0; box-shadow: 0 8px 16px -6px rgba(9,30,66,.2); }
.ucard .glyph { margin-bottom: 4px; }
.ucard .kicker {
  font-size: 12px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-subtle);
}
.ucard h3 { font-size: 20px; line-height: 26px; font-weight: 700; }
.ucard p { margin: 0; font-size: 16px; line-height: 24px; color: var(--text); }
.ucard .go { margin-top: auto; padding-top: 10px; color: var(--link); }
.ucard.is-concept { border-style: dashed; background: #fcfcfd; }

.no-results { padding: 48px 0; color: var(--text-subtle); }

/* ============ detail page ============ */
.detail-hero { background: var(--surface-sunken); position: relative; }
.detail-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.detail-hero .container { position: relative; z-index: 2; padding-top: 30px; padding-bottom: 26px; }
.backlink { display: inline-block; font-size: 16px; margin-bottom: 26px; }
.detail-head { text-align: center; }
.detail-head .glyph { margin-bottom: 12px; }
.detail-head .kicker {
  font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-subtle); display: block; margin-bottom: 10px;
}
.detail-head h1 { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -.4px; }
.detail-lede {
  max-width: 68ch; margin: 18px auto 0; font-size: 17px; line-height: 27px; color: var(--text);
}
.sec-lede { max-width: 76ch; margin: 0 0 22px; font-size: 16px; line-height: 24px; color: var(--text-subtle); }
.summary-panel {
  max-width: 640px; margin: 34px auto 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px; padding: 24px 28px;
}
.summary-panel p { margin: 0 0 12px; font-size: 16px; line-height: 26px; }
.summary-panel p:last-child { margin-bottom: 0; }

.detail-body { padding: 56px 0 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

h2.sec { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 14px; }
h3.sub { font-size: 20px; line-height: 26px; font-weight: 600; margin: 30px 0 12px; }
.detail-body section { margin-bottom: 46px; }

ul.bul { margin: 0; padding-left: 20px; }
ul.bul li { font-size: 16px; line-height: 24px; margin-bottom: 12px; }
ul.bul li::marker { color: var(--text-subtle); }

.applist { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.applist span { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; }
.applist .sq {
  width: 18px; height: 18px; border-radius: 3px; flex: none; display: grid; place-items: center;
  background: var(--blue-bold); color: #fff; font-size: 9px; font-weight: 700;
  font-family: var(--font-display);
}
.applist .sq.alt { background: #5e4db2; }
.applist .sq.dim { background: #8993a4; }

.factlist { display: grid; gap: 0; }
.factlist div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 15px;
}
.factlist div:last-child { border-bottom: 0; }
.factlist dt, .factlist .k { color: var(--text-subtle); }
.factlist .v { color: var(--text-heading); font-weight: 600; text-align: right; }

/* prompts */
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .prompt-grid { grid-template-columns: 1fr; } }
.prompt {
  background: var(--surface-field); border-radius: 3px; padding: 26px 24px;
  display: grid; place-items: center; min-height: 74px;
}
.prompt p {
  margin: 0; font-family: var(--font-code); font-size: 16px; line-height: 22px;
  text-align: center; color: var(--text-heading);
}
.prompt .basis {
  font-family: var(--font-text); font-size: 13px; line-height: 19px; color: var(--text-subtle);
  text-align: center; margin-top: 12px;
}
.prompt .basis a { font-size: 13px; }

/* evidence */
.ev { border-top: 1px solid var(--border); }
.ev-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px 20px; padding: 20px 0; border-bottom: 1px solid var(--border-subtle); }
@media (max-width: 700px) { .ev-row { grid-template-columns: 1fr; } }
/* Two type sizes only, on the Atlassian scale: 16px carries the claim and the
   quoted evidence, 12px carries every kind of supporting metadata. 1.33 apart. */
.ev-row .claim { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-heading); }
.ev-row blockquote {
  margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--border);
  font-size: 16px; line-height: 24px; color: var(--text);
}
.ev-row .meta, .ev-row .why, .ev-row .cite {
  font-size: 12px; line-height: 18px; color: var(--text-subtle);
}
.ev-row .meta { margin-top: 8px; }
.ev-row .meta strong { color: var(--text-heading); font-weight: 700; }
.ev-row .why { margin: 10px 0 0; }
.ev-row .cite { margin-top: 10px; }
.ev-row .cite a, .ev-row .why a { font-size: 12px; }
.ev-row.is-concept blockquote { border-left-style: dashed; font-style: italic; color: var(--text-subtle); }

/* callout — Atlassian section message */
.msg {
  border-radius: 4px; padding: 16px 18px; margin-bottom: 16px;
  background: #e9f2ff; display: grid; grid-template-columns: 20px 1fr; gap: 12px;
}
.msg.warn { background: #fff7d6; }
.msg.danger { background: #ffebe5; }
.msg.neutral { background: #f1f2f4; }
.msg h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-text); }
.msg p { margin: 0; font-size: 15px; line-height: 22px; color: var(--text); }
.msg p + p { margin-top: 8px; }
.msg .ico { width: 20px; height: 20px; }

/* related */
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .rel-grid { grid-template-columns: 1fr; } }

/* rails page: sticky contents rail */
.rail-toc { position: sticky; top: 20px; }
.toc-inner {
  border: 1px solid var(--border); border-radius: 4px; padding: 20px 22px; background: var(--surface);
}
.toc-inner h4 { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 12px; }
.toc-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc-inner li { font-size: 15px; line-height: 21px; display: flex; gap: 10px; justify-content: space-between; }
.toc-count {
  font-size: 12px; color: var(--text-subtle); background: var(--surface-field);
  border-radius: 3px; padding: 1px 6px; flex: none; align-self: flex-start; font-weight: 500;
}
h3.sub .toc-count { vertical-align: middle; margin-left: 6px; }

/* evidence page: state legend */
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .state-grid { grid-template-columns: 1fr; } }
.statecard {
  border: 1px solid var(--border); border-radius: 4px; padding: 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.statecard .rule, .statecard .example, .statecard .tallyline { align-self: stretch; }
.statecard .rule { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-heading); }
.statecard .example {
  margin: 0; font-size: 12px; line-height: 18px; color: var(--text-subtle);
  border-top: 1px solid var(--border-subtle); padding-top: 12px;
}
.statecard .tallyline { margin: auto 0 0; font-size: 12px; color: var(--text-subtle); }
.statecard .tallyline strong { color: var(--text-heading); font-size: 16px; }

/* ============ CTA band ============ */
.cta {
  position: relative; background: var(--blue-bold); color: #fff; overflow: hidden;
  margin-top: 64px;
}
.cta svg.facets { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta .container { position: relative; z-index: 2; padding-block: 64px; text-align: center; }
.cta h2 { color: #fff; font-size: 40px; line-height: 48px; font-weight: 700; }
.cta p { margin: 14px auto 24px; max-width: 60ch; font-size: 17px; line-height: 26px; color: #deebff; }
.btn {
  display: inline-block; background: #fff; color: var(--blue-bolder);
  font-size: 16px; font-weight: 600; padding: 11px 22px; border-radius: 3px;
}
.btn:hover { background: #deebff; text-decoration: none; color: var(--blue-bolder); }

/* ============ footer ============ */
footer.site { background: #ffffff; border-top: 1px solid var(--border); padding: 44px 0 56px; }
footer.site .container { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
@media (max-width: 760px) { footer.site .container { grid-template-columns: 1fr; } }
footer.site h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
footer.site p { margin: 0 0 10px; font-size: 15px; line-height: 23px; color: var(--text-subtle); max-width: 62ch; }
footer.site .stamp { font-size: 13px; line-height: 21px; color: var(--text-subtlest); }

/* ============ small screens ============ */
@media (max-width: 760px) {
  /* Too narrow to centre anything — stack the tabs onto their own row. */
  .product-nav .nav-row {
    display: flex; flex-wrap: wrap; gap: 10px 18px;
    padding-block: 12px; padding-inline: 20px;
  }
  .product-nav nav { gap: 18px; width: 100%; order: 3; justify-content: flex-start; }
  .product-nav .right { margin-left: auto; gap: 8px; }
  .freshness { font-size: 11px; padding: 2px 7px; }
  .product-nav nav a { font-size: 14px; }
  .product-nav .right { margin-left: auto; }

  .hero-inner { padding: 44px 0 52px; }
  .hero h1 { font-size: 36px; line-height: 1.18; max-width: none; }
  .hero p { font-size: 17px; line-height: 26px; }

  .detail-head h1 { font-size: 32px; line-height: 40px; }
  .detail-hero .container { padding-top: 22px; }
  .summary-panel { padding: 20px; }

  h2.sec { font-size: 22px; line-height: 28px; }
  .fcard h3 { font-size: 21px; line-height: 27px; }
  .cta h2 { font-size: 28px; line-height: 36px; }
  .cta .container { padding-block: 44px; }
  .prompt { padding: 20px 16px; }
  .prompt p { font-size: 15px; }

  /* filter links are text links on desktop (as on the reference page); on touch
     they get real tap height without changing how they read */
  .fgroup-body { gap: 2px; }
  .fgroup-body button { min-height: 44px; display: flex; align-items: center; }
  .searchfield .clear { width: 44px; height: 44px; }
  .searchfield input { padding-right: 52px; }
}

/* ============ landing page ============ */
.lp-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }
.lp-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-subtle); margin: 0 0 18px;
}
.lp-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.6px; max-width: 19ch; margin: 0;
}
.lp-lede { max-width: 66ch; margin: 22px 0 0; font-size: 18px; line-height: 29px; color: var(--text); }
.lp-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 940px) { .lp-hero-grid { grid-template-columns: 1fr; } }

.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.btn--ghost { display: inline-flex; align-items: center; gap: 9px; }

/* Hero art — one real evidence row, rendered the way the site renders it.
   Showing the artifact beats describing it. */
.lp-art { display: grid; place-items: center; }
@media (max-width: 940px) { .lp-art { display: none; } }
.lp-art-stack { position: relative; width: 100%; max-width: 420px; }
.lp-art-back {
  position: absolute; left: 0; right: 0; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
}
.lp-art-back-1 { top: -12px; left: 14px; right: 14px; height: 40px; opacity: .9; }
.lp-art-back-2 { top: -24px; left: 28px; right: 28px; height: 40px; opacity: .55; }
.lp-art-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px 22px;
  box-shadow: 0 18px 32px -14px rgba(9,30,66,.28), 0 0 1px rgba(9,30,66,.2);
}
.lp-art-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-art-ref { font-size: 11.5px; color: var(--text-subtlest); }
.lp-art-claim {
  margin: 14px 0 0; font-size: 16px; line-height: 23px; font-weight: 600; color: var(--text-heading);
}
.lp-art-quote {
  margin: 9px 0 0; padding-left: 13px; border-left: 2px solid var(--border);
  font-size: 15px; line-height: 23px; color: var(--text);
}
.lp-art-cite { margin-top: 12px; font-size: 11.5px; color: var(--text-subtle); }
.lp-art-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 9px;
  box-shadow: 0 6px 14px -6px rgba(9,30,66,.3);
}
/* Corners, so they read as "other states exist" without covering the claim. */
.lp-art-chip-a { right: -20px; top: -10px; }
.lp-art-chip-b { left: -20px; bottom: -12px; }
.btn--primary { background: var(--blue-bold); color: #fff; }
.btn--primary:hover { background: #0065ff; color: #fff; }
.btn--ghost {
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--text-heading);
  border: 1px solid var(--border); border-radius: 3px; padding: 11px 22px;
}
.btn--ghost:hover { border-color: var(--text-subtle); }

.lp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px; margin-top: clamp(40px, 6vw, 64px);
  background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: 4px;
  overflow: hidden;
}
.lp-stats > div { background: var(--surface); padding: 18px 20px 20px; }
.lp-stats .n {
  display: block; font-family: var(--font-display); font-size: 32px; line-height: 1;
  font-weight: 700; color: var(--text-heading); letter-spacing: -.5px;
}
.lp-stats .k { display: block; margin-top: 8px; font-size: 13px; line-height: 19px; color: var(--text-subtle); }

.lp-section { padding-block: clamp(48px, 7vw, 76px); }
.lp-body { max-width: 60ch; font-size: 16px; line-height: 26px; margin: 0 0 14px; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); }
@media (max-width: 860px) { .lp-split { grid-template-columns: 1fr; } }

.lp-states { display: grid; gap: 10px; align-content: start; }
.lp-state {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px;
}
.lp-state-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-state-n { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-heading); }
.lp-state p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--text-subtle); }

.lp-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1040px) { .lp-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-how { grid-template-columns: 1fr; } }
.lp-card {
  display: flex; flex-direction: column; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 0; color: inherit; font: inherit; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lp-card:hover {
  text-decoration: none; border-color: #c1c7d0; transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(9,30,66,.2);
}
.lp-art-top { height: 104px; display: grid; place-items: center; }
.lp-art-top svg { width: 120px; height: 68px; }
.lp-art-top--ivy { background: var(--primary-bg); }
.lp-art-top--ivy img { width: 40px; height: 44px; object-fit: contain; }
.lp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.lp-num {
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .5px;
  color: var(--blue-bold);
}
.lp-card h3 { font-size: 19px; line-height: 25px; font-weight: 700; }
.lp-card p { margin: 0; font-size: 15px; line-height: 23px; color: var(--text); }
.lp-card .go { margin-top: auto; padding-top: 8px; color: var(--link); font-size: 15px; }

.lp-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lp-person {
  display: flex; gap: 13px; align-items: flex-start; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 16px 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.lp-person:hover { text-decoration: none; border-color: #c1c7d0; transform: translateY(-1px); }
.lp-person-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-person b { font-size: 16px; font-weight: 700; color: var(--text-heading); }
.lp-person small { font-size: 13.5px; color: var(--text-subtle); line-height: 19px; }
.lp-person .lozrow { margin-top: 4px; }

/* ============ Ask panel ============ */
.ask-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--blue-bold); color: #fff; border: 0;
  padding: 12px 18px; border-radius: 24px;
  box-shadow: 0 8px 16px -4px rgba(9,30,66,.3), 0 0 1px rgba(9,30,66,.31);
  transition: background .15s ease, transform .15s ease;
}
.ask-fab:hover { background: #0065ff; transform: translateY(-1px); }

.ask-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 61;
  width: min(420px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 44px));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 20px 32px -8px rgba(9,30,66,.25), 0 0 1px rgba(9,30,66,.31);
}
.ask-panel[hidden] { display: none; }
.ivy-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; }
.ivy-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* On the blue FAB the blue sprig needs a light ground to read against. */
.ivy-mark--fab {
  width: 26px; height: 26px; border-radius: 7px; background: #fff; padding: 4px;
}
.ivy-mark--sm { width: 20px; height: 20px; margin-top: 2px; }
.ivy-mark--lg { width: 44px; height: 44px; }

.ask-panel > header {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--border-subtle);
}
.ask-disclosure {
  margin: 0; padding: 9px 18px; background: var(--surface-field);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px; line-height: 18px; color: var(--text-subtle);
}
.ask-disclosure a { font-size: 12px; }
.ask-panel > header strong {
  font-family: var(--font-display); font-size: 16px; color: var(--text-heading); display: block;
}
.ask-panel > header span { font-size: 12.5px; line-height: 18px; color: var(--text-subtle); display: block; margin-top: 3px; }
.ask-panel > header button {
  flex: none; width: 28px; height: 28px; border-radius: 3px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: grid; place-items: center;
}
.ask-panel > header button:hover { border-color: var(--text-subtle); background: var(--surface-field); }
.ask-panel > header #ask-expand { margin-left: auto; }
.ask-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 12px; align-content: start; }
.ask-msg { font-size: 14.5px; line-height: 22px; white-space: pre-wrap; }
.ask-user {
  justify-self: end; max-width: 88%; background: var(--primary-bg); color: var(--primary-text);
  padding: 9px 13px; border-radius: 12px 12px 2px 12px;
}
.ask-bot {
  justify-self: start; max-width: 94%; color: var(--text);
  display: flex; gap: 10px; align-items: flex-start;
}
.ask-bot .ask-body {
  background: var(--surface-field); padding: 11px 14px; border-radius: 12px 12px 12px 2px;
  min-width: 0;
}
.ask-bot.is-pending .ask-body { color: var(--text-subtle); font-style: italic; }
.ask-bot.is-warn .ask-body { background: #fff7d6; color: #7f5f01; }
.ask-starters { display: grid; gap: 6px; margin-top: 12px; }
.ask-starters button {
  font: inherit; font-size: 13px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px 12px; color: var(--link);
}
.ask-starters button:hover { border-color: var(--link); }
.ask-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--border-subtle); }
.ask-form textarea {
  flex: 1; font: inherit; font-size: 14.5px; resize: none;
  border: 1px solid var(--border); border-radius: 4px; padding: 9px 11px; color: var(--text-heading);
}
.ask-form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.ask-form button {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; align-self: stretch;
  background: var(--blue-bold); color: #fff; border: 0; border-radius: 4px; padding: 0 18px;
}
.ask-form button:hover:not(:disabled) { background: #0065ff; }
.ask-form button:disabled { background: #a5adba; cursor: default; }

/* Expanded — a reading surface, not just a bigger box. The message column is capped
   so a long answer doesn't run to a 1400px measure. */
.ask-panel.is-expanded {
  inset: 20px; width: auto; max-height: none; border-radius: 10px;
}
.ask-panel.is-expanded .ask-log {
  grid-template-columns: minmax(0, 74ch); justify-content: center; padding: 26px 24px;
}
.ask-panel.is-expanded .ask-form {
  width: 100%; max-width: calc(74ch + 48px); margin-inline: auto; padding: 14px 24px 18px;
}
.ask-panel.is-expanded .ask-form textarea { min-height: 62px; }
.ask-panel.is-expanded .ask-disclosure { text-align: center; }

@media (max-width: 560px) {
  .ask-fab { right: 14px; bottom: 14px; font-size: 14px; padding: 11px 15px; }
  .ask-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 20px); }
  /* Already near-fullscreen at this size — the control would toggle nothing. */
  .ask-panel > header #ask-expand { display: none; }
  .ask-panel > header #ask-close { margin-left: auto; }
  .ask-panel.is-expanded { inset: 8px; }
}

@media print {
  .ask-fab, .ask-panel { display: none !important; }
  .cta, .product-nav, .filter-head, .fgroup, .searchfield, .rail-toc { display: none; }
  .ucard, .fcard, .ev-row { break-inside: avoid; }
}

/* ============================================================================
   Architecture explorer (Overview page)
   The page's one signature element. Built from real <button>s rather than an SVG
   with click handlers so it is keyboard-operable and works on touch — hover-only
   would strand every phone and every keyboard user.
   Geometry note: the three UX bands are a FRAME, the Brain sits outside and below
   as a consulted substrate, and evaluation is a side rail. Deliberately not a ladder.
   ========================================================================= */
.arch { display: grid; gap: 0; }
.arch-frame {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface);
}
.arch-band { padding: 16px 18px; border-top: 1px solid var(--border-subtle); }
.arch-band:first-child { border-top: 0; }
.arch-band--mid { background: #fbfcfe; padding-bottom: 20px; }

/* Tier label doubles as the band's select target. */
.arch-tier {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; padding: 4px 6px; margin: -4px -6px 0; border-radius: 4px;
  font: inherit; color: inherit; cursor: pointer;
}
.arch-tier:hover { background: var(--surface-field); }
.arch-tier .t {
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--text-subtlest); flex: none;
}
.arch-tier .n { font-size: 17px; font-weight: 600; color: var(--text-heading); }
.arch-tier .q { font-size: 14px; line-height: 20px; color: var(--text-subtle); margin-left: auto; text-align: right; }
@media (max-width: 720px) {
  .arch-tier { flex-wrap: wrap; }
  .arch-tier .q { margin-left: 0; text-align: left; width: 100%; }
}

/* Agents live inside the middle band — one role row, not a hierarchy of tiers. */
.arch-agents { display: flex; align-items: stretch; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.arch-node {
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
  padding: 10px 13px; font: inherit; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 3px; min-width: 108px;
}
.arch-node:hover { border-color: var(--link); }
.arch-node b { font-size: 15px; font-weight: 600; color: var(--text-heading); }
.arch-node small { font-size: 12px; line-height: 16px; color: var(--text-subtlest); }
.arch-node--lead { border-width: 2px; border-color: var(--text-heading); min-width: 132px; }
.arch-node--concept { border-style: dashed; border-color: #a5adba; background: #fafbfc; }
.arch-rule {
  align-self: center; flex: none; width: 26px; height: 1px; background: var(--border); position: relative;
}
.arch-rule::after {
  content: ''; position: absolute; right: 0; top: -3px;
  border-left: 6px solid var(--border); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
@media (max-width: 720px) { .arch-rule { display: none; } }
.arch-specialists { display: flex; gap: 8px; flex-wrap: wrap; }

/* The substrate, and the side rail. */
.arch-under { display: grid; grid-template-columns: 1fr 280px; gap: 12px; }
@media (max-width: 860px) { .arch-under { grid-template-columns: 1fr; } }
.arch-consults { text-align: center; font-size: 12px; color: var(--text-subtlest); padding: 7px 0 9px; }
.arch-slab {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px; padding: 15px 18px; background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.arch-slab:hover { border-color: var(--link); }
.arch-slab--brain { background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%); }
.arch-slab .k {
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--text-subtlest);
}
.arch-slab b { font-size: 17px; font-weight: 600; color: var(--text-heading); }
.arch-slab p { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-subtle); }

/* Selection + focus. aria-pressed carries the state; this only paints it. */
.arch [aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--link); border-color: var(--link); }
.arch-tier[aria-pressed="true"] { background: #e9f2ff; box-shadow: none; }
.arch :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Detail panel driven by the selection. */
.arch-detail {
  margin-top: 16px; border: 1px solid var(--border); border-left: 3px solid var(--link);
  border-radius: 4px; padding: 20px 22px; background: var(--surface-sunken);
}
.arch-detail h3 { font-size: 20px; font-weight: 600; color: var(--text-heading); margin: 0 0 4px; }
.arch-detail .meta { font-size: 12px; color: var(--text-subtlest); margin: 0 0 12px; }
.arch-detail blockquote {
  margin: 0 0 12px; padding-left: 14px; border-left: 2px solid var(--border);
  font-size: 16px; line-height: 24px; color: var(--text-heading);
}
.arch-detail p { margin: 0 0 10px; font-size: 15px; line-height: 23px; color: var(--text-subtle); }
.arch-detail p:last-child { margin-bottom: 0; }

/* ---- Vyne Brain: two lanes, six content types, four data jobs ---- */
.brain-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .brain-lanes { grid-template-columns: 1fr; } }
.brain-lane { border-top: 2px solid var(--text-heading); padding-top: 12px; }
.brain-lane h4 { margin: 0 0 2px; font-size: 17px; font-weight: 600; color: var(--text-heading); }
.brain-lane .sub { font-size: 12px; color: var(--text-subtlest); font-family: var(--font-code); }
.brain-lane p { margin: 8px 0 0; font-size: 15px; line-height: 23px; color: var(--text-subtle); }
.brain-lane .best { display: block; margin-top: 8px; font-size: 13px; color: var(--text-subtlest); }
.brain-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 720px) { .brain-types { grid-template-columns: 1fr; } }
.brain-types li {
  padding: 11px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 15px; line-height: 22px; color: var(--text); display: flex; gap: 11px;
}
.brain-types li .i {
  flex: none; font-family: var(--font-code); font-size: 12px; color: var(--text-subtlest); padding-top: 3px;
}
.brain-jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .brain-jobs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .brain-jobs { grid-template-columns: 1fr; } }
.brain-job { border-top: 3px solid var(--border); padding-top: 11px; }
.brain-job.is-now { border-top-color: #216e4e; }
.brain-job.is-next { border-top-color: #b38600; }
.brain-job.is-not { border-top-color: #c9372c; }
.brain-job .w {
  font-size: 11px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; color: var(--text-subtlest);
}
.brain-job b { display: block; font-size: 16px; font-weight: 600; color: var(--text-heading); margin: 2px 0 4px; }
.brain-job p { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-subtle); }

/* ---- Director model: an editorial list, not three cards ---- */
.model-list { display: grid; gap: 0; }
.model-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 620px) { .model-row { grid-template-columns: 1fr; gap: 6px; } }
.model-row:last-child { border-bottom: 0; }
.model-row .name { font-size: 26px; font-weight: 700; letter-spacing: -.4px; color: var(--text-heading); }
.model-row.is-rejected .name { color: #8993a4; text-decoration: line-through; text-decoration-thickness: 2px; }
.model-row .said { font-size: 17px; line-height: 26px; color: var(--text); }
.model-row.is-rejected .said { color: var(--text-subtlest); }
.model-row .verdict { display: block; margin-top: 7px; }

/* ---- roadmap: borderless rows on a rail ---- */
.rm { display: grid; gap: 0; }
.rm-row {
  display: grid; grid-template-columns: 92px 24px 1fr 128px; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 780px) {
  .rm-row { grid-template-columns: 78px 20px 1fr; }
  .rm-row .rm-state { grid-column: 3; margin-top: 2px; }
}
.rm-row:last-child { border-bottom: 0; }
.rm-beta { font-family: var(--font-code); font-size: 13px; color: var(--text-subtle); padding-top: 3px; }
.rm-dot { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.rm-dot::before { content: ''; position: absolute; top: 0; bottom: -17px; width: 1px; background: var(--border); }
.rm-row:last-child .rm-dot::before { bottom: auto; height: 8px; }
.rm-dot i {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border); z-index: 1;
}
.rm-row.is-here .rm-dot i { border-color: var(--link); background: var(--link); box-shadow: 0 0 0 3px #e9f2ff; }
.rm-body b { font-size: 16px; font-weight: 600; color: var(--text-heading); }
.rm-body p { margin: 3px 0 0; font-size: 14px; line-height: 21px; color: var(--text-subtle); }
.rm-body .note { margin-top: 7px; font-size: 13px; line-height: 20px; color: var(--text-subtlest); }
.rm-row.is-here .rm-body b::after {
  content: 'you are here'; margin-left: 9px; font-size: 10px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase; color: var(--link); vertical-align: 1px;
}

/* ---- architecture explorer: refinements after looking at it ---- */
/* Tier label must not wrap mid-phrase; the quote reads left-aligned in a right-hand
   column rather than right-aligned, which was producing ragged two-line edges. */
.arch-tier .n { white-space: nowrap; }
.arch-tier .q { text-align: left; max-width: 46ch; }

/* Agents area: an explicit two-row grid instead of one wrapping flex row, so the
   documented roster and the concept entry can never blur into each other. */
.arch-agents { display: grid; gap: 0; margin-top: 14px; }
.arch-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.arch-node--lead { min-width: 150px; background: #f7f9fd; }
.arch-concept-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border);
}
.arch-concept-label { font-size: 12px; line-height: 17px; color: var(--text-subtlest); }

/* The consults line sits above the two slabs; keep it clear of the Ask Ivy button. */
.arch-consults { padding: 9px 0 11px; }
@media (max-width: 900px) { .arch-consults { text-align: left; padding-right: 150px; } }
