/* The agent page at /ai-agents/<slug>/. Shared by the handbook preview and ruxt.org.
   Site colours and fonts first; each agent's listing.theme sets --ap-accent, --ap-accent-soft, --ap-paper and --ap-ink.
   Every class starts with ap- so it sits safely beside the site's marketing.css. */
.ap-html { background: #faf8f4; }
.ap-body { margin: 0; background: #faf8f4; color: #141414; font-family: "Outfit", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ap {
  --ap-accent: #1a3d2e; --ap-accent-soft: #ebe2d0; --ap-paper: #faf8f4; --ap-ink: #141414;
  --ap-line: color-mix(in srgb, var(--ap-ink) 13%, transparent); --ap-line-2: color-mix(in srgb, var(--ap-ink) 22%, transparent);
  --ap-muted: color-mix(in srgb, var(--ap-ink) 70%, var(--ap-paper)); --ap-card: color-mix(in srgb, var(--ap-paper) 35%, white);
  --ap-dark: color-mix(in srgb, var(--ap-accent) 88%, black); --ap-gold: #e8cf9a;
  --ap-serif: "Libre Baskerville", Georgia, serif; --ap-max: min(86rem, 100% - 3rem);
  /* everything below the hero lines up with the hero frame */
  --ap-body: min(80rem, 100% - 3rem);
  color: var(--ap-ink); font-size: 1rem; line-height: 1.55; padding-bottom: 4rem;
  background: var(--ap-paper);
}
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
:where(.ap) a { color: var(--ap-accent); }
.ap a:focus-visible, .ap summary:focus-visible, .ap button:focus-visible, .ap input:focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 3px; border-radius: 4px; }
:where(.ap) :is(h1, h2, h3) { line-height: 1.2; margin: 0; }
:where(.ap) p { margin: 0; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* preview-only chrome */
.ap-banner { margin: 0; padding: .5rem 1rem; background: #141414; color: #fffefb; font: 500 .85rem/1.4 "Outfit", system-ui, sans-serif; text-align: center; }
.ap-site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem max(1.5rem, calc((100% - 86rem) / 2)); background: #fffefb; border-bottom: 1px solid #e2dbd0; }
.ap-site__brand { font: 700 1.35rem/1 "Libre Baskerville", Georgia, serif; color: #1a3d2e; text-decoration: none; }
.ap-site nav { display: flex; gap: .5rem; }
.ap-site nav a { color: #141414; text-decoration: none; font-weight: 600; font-size: .88rem; padding: .35rem .85rem; border: 1px solid #cfc7bb; border-radius: .55rem; }

/* compact search band, the same as the marketplace */
.ap-band { background: linear-gradient(#fffefb, var(--ap-paper)); border-bottom: 1px solid var(--ap-line); }
.ap-band__in { width: var(--ap-max); margin: 0 auto; padding: 1rem 0 .95rem; }
.ap-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ap-muted); margin-bottom: .65rem; }
.ap-crumbs a { color: var(--ap-muted); text-decoration: none; }
.ap-crumbs a:hover { color: var(--ap-accent); text-decoration: underline; }
.ap-crumbs span[aria-hidden] { color: var(--ap-line-2); }
.ap-band__row { display: flex; gap: .6rem; align-items: stretch; }
.ap-search { flex: 1; display: flex; align-items: center; gap: .55rem; background: #fff; border: 1.5px solid var(--ap-line-2); border-radius: .8rem; padding: .22rem .22rem .22rem .9rem; transition: border-color .15s ease; }
.ap-search:focus-within { border-color: var(--ap-accent); }
.ap-search svg { flex: none; color: var(--ap-muted); }
.ap-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .95rem; padding: .45rem 0; color: var(--ap-ink); }
.ap-search input:focus-visible { outline: none; }
.ap-search button { border: 0; border-radius: .55rem; background: var(--ap-accent); color: #fffefb; font: 600 .9rem "Outfit", system-ui, sans-serif; padding: .52rem 1.15rem; cursor: pointer; }
.ap-catbtn { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .95rem; border: 1.5px solid var(--ap-line-2); border-radius: .8rem; background: #fff; color: var(--ap-ink); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.ap-catbtn svg { color: var(--ap-accent); }
.ap-catbtn:hover { border-color: var(--ap-accent); }
.ap .ap-quick { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .85rem; font-size: .8rem; color: var(--ap-muted); }
.ap-quick a { padding: .14rem .58rem; border-radius: 999px; background: color-mix(in srgb, var(--ap-accent) 8%, transparent); color: var(--ap-accent); font-weight: 500; text-decoration: none; }
.ap-quick a:hover { background: color-mix(in srgb, var(--ap-accent) 15%, transparent); }

/* hero */
.ap-hero { position: relative; width: min(80rem, 100% - 3rem); margin: 2rem auto .6rem; padding: 2.6rem 3rem; display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3rem); align-items: center;
  border-radius: 2rem; border: 3px solid transparent;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--ap-accent) 7%, transparent), transparent 60%) padding-box,
    radial-gradient(70% 90% at 0% 100%, #fff3cf, transparent 55%) padding-box, linear-gradient(var(--ap-card), var(--ap-card)) padding-box,
    linear-gradient(135deg, var(--ap-accent), #c9a227 45%, color-mix(in srgb, var(--ap-accent) 40%, white) 70%, #c9a227) border-box;
  box-shadow: 0 40px 80px -60px rgba(20, 20, 20, .55); }
/* the frame: a dashed inner line and a gold seal on the top edge */
.ap-hero::before { content: ""; position: absolute; inset: .85rem; border: 2px dashed color-mix(in srgb, var(--ap-accent) 22%, transparent); border-radius: 1.5rem; pointer-events: none; }
.ap-hero::after { content: "✦"; position: absolute; top: -1.15rem; right: 3rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: conic-gradient(from 200deg, #c9a227, #e8cf6a, #c9a227); color: #fff; font-size: 1.05rem; box-shadow: 0 0 0 5px var(--ap-paper); }
.ap-hero > * { position: relative; }
.ap-photo { position: relative; margin: 0; border-radius: 1.6rem; overflow: hidden; aspect-ratio: 1; background: var(--ap-accent-soft); box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px color-mix(in srgb, var(--ap-accent) 30%, transparent), 0 30px 50px -36px rgba(20, 20, 20, .7); transform: rotate(-2deg); }
.ap-photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-photo__tag { position: absolute; left: .8rem; bottom: .8rem; max-width: calc(100% - 1.6rem); padding: .35rem .7rem; border-radius: .7rem; background: rgba(255, 254, 251, .94); color: #141414; font-size: .78rem; font-weight: 600; }
.ap-free { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem .3rem .35rem; border-radius: 999px; background: linear-gradient(90deg, #fff6dc, #fffefb); border: 1px solid #ecd9a3; font-size: .8rem; font-weight: 700; color: #6b4a0f; }
.ap-free i { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: conic-gradient(from 200deg, #c9a227, #e8cf6a, #c9a227); color: #fff; font-style: normal; font-size: .8rem; }
.ap-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin-top: .9rem; font-size: .95rem; }
.ap-role em { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ap-accent); }
.ap-role b { font-size: 1.12rem; }
.ap-role span { color: var(--ap-muted); }
.ap-hero h1 { font: 700 clamp(1.8rem, 3.6vw, 2.5rem)/1.15 var(--ap-serif); letter-spacing: -.015em; margin-top: .55rem; }
.ap-pitch { margin-top: .8rem; font-size: 1.06rem; line-height: 1.55; color: color-mix(in srgb, var(--ap-ink) 85%, var(--ap-paper)); }
.ap-usp { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.ap-usp li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: .65rem; background: #fff; border: 1px solid var(--ap-line); font-size: .85rem; font-weight: 600; }
.ap-get { display: flex; align-items: center; gap: 1rem 1.2rem; margin-top: 1.35rem; }
.ap-cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .82rem 1.6rem; border-radius: .9rem; background: var(--ap-accent); color: var(--ap-paper); font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap; box-shadow: 0 14px 30px -18px var(--ap-accent); transition: transform .15s ease, box-shadow .15s ease; }
.ap-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -16px var(--ap-accent); }
.ap-lic { font-size: .82rem; color: var(--ap-muted); max-width: 27rem; line-height: 1.45; }
.ap-lic b { color: var(--ap-ink); font-weight: 600; }
.ap-hero__rating { margin-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--ap-muted); font-size: .92rem; }
.ap-stars { --ap-rating: 0%; position: relative; display: inline-block; letter-spacing: .1em; color: var(--ap-line-2); }
.ap-stars::before { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: var(--ap-rating); overflow: hidden; color: var(--ap-accent); }

/* sections */
.ap-section { width: var(--ap-body); margin: 0 auto; padding: 2.8rem 0 0; }
.ap-section__head { max-width: 46rem; margin-bottom: 1.15rem; }
.ap-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-accent); }
.ap-section h2 { font: 700 clamp(1.4rem, 2.6vw, 1.65rem)/1.2 var(--ap-serif); letter-spacing: -.01em; margin-top: .3rem; }
.ap-section h3 { font-size: 1.05rem; font-weight: 600; }
.ap-lead { margin-top: .45rem; color: var(--ap-muted); }
.ap-note { margin-top: 1rem; color: var(--ap-muted); font-size: .92rem; max-width: 46rem; }
.ap-prose { max-width: 46rem; }
.ap-prose p + p, .ap-prose p + h3, .ap-prose ul + p { margin-top: 1rem; }
.ap-prose h2, .ap-prose h3 { margin: 1.5rem 0 .75rem; }

/* why people love it: one large dark card and smaller cards */
.ap-why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.ap-why--big { grid-template-columns: minmax(0, 28rem) minmax(14rem, 1fr) minmax(14rem, 1fr); }
.ap-why__card { padding: 1.15rem 1.2rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1.2rem; }
.ap-why__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: color-mix(in srgb, var(--ap-accent) 10%, white); font-size: 1.25rem; }
.ap-why__card h3 { margin-top: .7rem; }
.ap-why__card p { margin-top: .35rem; color: var(--ap-muted); font-size: .92rem; }
.ap-why--big .ap-why__card--big { grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(150deg, color-mix(in srgb, var(--ap-dark) 92%, white), var(--ap-dark)); color: #eef3ef; border: 0; }
.ap-why__card--big .ap-why__icon { background: rgba(255, 255, 255, .1); }
.ap-why__card--big h3 { font: 700 1.4rem/1.25 var(--ap-serif); color: #fffefb; margin-top: .9rem; }
.ap-why__card--big p { color: #c9d6cd; font-size: .95rem; }
.ap-why__card--big ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.ap-why__card--big li { position: relative; padding: .45rem .7rem .45rem 2.1rem; border-radius: .7rem; background: rgba(255, 255, 255, .06); font-size: .9rem; color: #eef3ef; }
.ap-why__card--big li::before { content: "✓"; position: absolute; left: .75rem; color: var(--ap-gold); font-weight: 700; }
.ap-why__more { margin-top: auto; padding-top: 1rem; color: var(--ap-gold) !important; font-weight: 700; font-size: .9rem; text-decoration: none; }
.ap-why__more:hover { text-decoration: underline; }

/* screenshots, explained */
.ap-tour { display: grid; gap: 1rem; }
.ap-st { display: grid; grid-template-columns: minmax(0, 50rem) minmax(16rem, 1fr); gap: 1.6rem; align-items: center; padding: 1rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1.3rem; }
.ap-st:nth-child(even) { grid-template-columns: minmax(16rem, 1fr) minmax(0, 50rem); }
.ap-st:nth-child(even) .ap-st__img { order: 2; }
.ap-st__img { margin: 0; min-width: 0; }
.ap-st__img .ap-zoom { border-radius: .9rem; overflow: hidden; border: 1px solid var(--ap-line); background: #fff; }
.ap-zoom { display: block; }
.ap-zoom img { display: block; width: 100%; height: auto; }
.ap-swipe { display: none; }
.ap-st__copy { padding-right: .6rem; }
.ap-st:nth-child(even) .ap-st__copy { padding: 0 0 0 .6rem; }
.ap-st__n { font: 700 .8rem var(--ap-serif); color: #b58a2a; }
.ap-st h3 { font: 700 1.25rem/1.25 var(--ap-serif); margin-top: .3rem; }
.ap-st p { margin-top: .55rem; color: var(--ap-muted); font-size: .95rem; }
.ap-ticks { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .35rem; }
.ap-ticks li { position: relative; padding-left: 1.25rem; font-size: .88rem; }
.ap-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ap-accent); font-weight: 700; }
.ap-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.ap-shots:first-child { margin-top: 0; }
.ap-shot { margin: 0; }
.ap-shot .ap-zoom { border-radius: .9rem; border: 1px solid var(--ap-line); background: #fff; overflow: hidden; }
.ap-shot figcaption { margin-top: .5rem; font-size: .88rem; color: var(--ap-muted); }
.ap-somuch { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: 1rem; padding: 1rem 1.3rem; border-radius: 1.1rem; background: #fff6dc; border: 1px solid #ecd9a3; color: #6b4a0f; font-size: .92rem; }
.ap-somuch b { font: 700 1.05rem var(--ap-serif); color: #141414; }
.ap-somuch a { font-weight: 700; white-space: nowrap; text-decoration: none; }
.ap-somuch a:hover { text-decoration: underline; }

/* every skill: the skills page screenshot, a dark summary panel, then each skill by group */
.ap-sk { display: grid; grid-template-columns: minmax(0, 51rem) minmax(16rem, 1fr); gap: 1rem; }
.ap-sk--solo { grid-template-columns: 1fr; }
.ap-sk__shot { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: .8rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1.3rem; }
.ap-sk__shot .ap-zoom { flex: 1; display: flex; flex-direction: column; min-height: 14rem; border-radius: .8rem; border: 1px solid var(--ap-line); overflow: hidden; }
.ap-sk__shot .ap-zoom img { flex: 1; height: 0; min-height: 0; object-fit: cover; object-position: top left; }
.ap-sk__shot figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ap-muted); }
.ap-sk__side { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; border-radius: 1.3rem; background: linear-gradient(150deg, color-mix(in srgb, var(--ap-dark) 92%, white), var(--ap-dark)); color: #eef3ef; }
.ap-sk__count { display: flex; align-items: baseline; gap: .6rem; }
.ap-sk__count b { font: 700 3rem/1 var(--ap-serif); color: var(--ap-gold); }
.ap-sk__count span { color: #c9d6cd; font-size: .92rem; }
.ap-sk__groups { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.ap-sk--solo .ap-sk__groups { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.ap-sk__groups li { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ap-sk__groups i { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: rgba(255, 255, 255, .1); font-style: normal; }
.ap-sk__groups div { flex: 1; min-width: 0; }
.ap-sk__groups b { display: block; font-size: .92rem; color: #fffefb; }
.ap-sk__groups span { font-size: .78rem; color: #a9bdb0; }
.ap-sk__groups em { font: 700 1rem var(--ap-serif); font-style: normal; color: var(--ap-gold); }
.ap-sk__note { margin-top: auto; padding-top: .9rem; font-size: .85rem; color: #c9d6cd; }
.ap-sk__note b { color: #fffefb; }
.ap-groups { columns: 2; column-gap: 1rem; margin-top: 1rem; }
.ap-group { break-inside: avoid; margin-bottom: 1rem; padding: .9rem 1.1rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1.2rem; }
.ap-group h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.ap-group h3 small { margin-left: auto; font-size: .75rem; color: var(--ap-muted); font-weight: 600; }
.ap-group ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.ap-group li { padding: .45rem 0; border-top: 1px solid var(--ap-line); }
.ap-group li b { display: block; font-size: .9rem; }
.ap-group li span { display: block; font-size: .82rem; color: var(--ap-muted); line-height: 1.4; }
.ap-skills { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.ap-skills li { padding: 1rem 1.15rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1rem; }
.ap-skills strong { display: block; }
.ap-skills em { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-accent); margin: .2rem 0 .3rem; }
.ap-skills p { color: var(--ap-muted); font-size: .92rem; }

/* how it works, things to ask */
.ap-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.ap-steps li { padding-top: .8rem; border-top: 3px solid var(--ap-accent); }
.ap-steps__n { font: 700 1.2rem var(--ap-serif); color: var(--ap-accent); }
.ap-steps h3 { font-size: .98rem; margin-top: .3rem; }
.ap-steps p { font-size: .88rem; color: var(--ap-muted); margin-top: .15rem; }
.ap-asks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; }
.ap-asks li { padding: .9rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1rem; }
.ap-asks__ask { display: inline-block; padding: .4rem .75rem; border-radius: .8rem .8rem .8rem .2rem; background: var(--ap-accent); color: var(--ap-paper); font-size: .88rem; font-weight: 600; }
.ap-asks__result { margin-top: .6rem; font-size: .86rem; color: var(--ap-muted); }

/* private by design + good to know */
.ap-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ap-two--one { grid-template-columns: 1fr; }
.ap-box { padding: 1.1rem 1.2rem; background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1.2rem; }
.ap-box h3 { font-size: 1rem; }
.ap-box > p { margin-top: .4rem; font-size: .9rem; color: var(--ap-muted); }
.ap-box__sub { margin-top: .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-accent); }
.ap-box > ul { margin: .35rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; color: var(--ap-muted); }
.ap-box > ul.ap-perms { list-style: none; padding: 0; margin-top: .75rem; gap: .4rem; color: var(--ap-ink); }
.ap-perms li { display: flex; align-items: baseline; gap: .55rem; font-size: .86rem; }
.ap-perms__mark { flex: none; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; }
.ap-perms__mark--ask { background: var(--ap-accent); color: var(--ap-paper); }
.ap-perms__mark--auto { background: var(--ap-accent-soft); color: var(--ap-ink); }

/* questions */
.ap-faq { background: var(--ap-card); border: 1px solid var(--ap-line); border-radius: 1.2rem; }
.ap-faq details { border-top: 1px solid var(--ap-line); }
.ap-faq details:first-child { border-top: 0; }
.ap-faq summary { cursor: pointer; list-style: none; padding: .9rem 3rem .9rem 1.2rem; font-weight: 600; font-size: .95rem; position: relative; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: .7rem; font-size: 1.3rem; color: var(--ap-muted); transition: transform .2s ease; }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq details p { padding: 0 1.2rem 1rem; color: var(--ap-muted); max-width: 48rem; font-size: .93rem; }

/* closing band */
.ap-endcta { width: var(--ap-body); margin: 2.8rem auto 0; display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.3rem; border-radius: 1.3rem; background: linear-gradient(120deg, var(--ap-card) 40%, color-mix(in srgb, var(--ap-accent) 10%, white)); border: 1px solid var(--ap-line); }
.ap-endcta img { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: cover; flex: none; }
.ap-endcta div { flex: 1; min-width: 0; }
.ap-endcta__title { font-weight: 700; font-size: 1.05rem; }
.ap-endcta div p:last-child { color: var(--ap-muted); font-size: .9rem; }

/* ruxt.org additions: monogram (no portrait), related agents */
.ap-monogram { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; background: var(--ap-accent-soft); color: var(--ap-accent); font: 700 clamp(3rem, 9vw, 7rem)/1 var(--ap-serif); }
.ap-endcta .ap-monogram, .ap-related .ap-monogram { width: 4rem; height: 4rem; flex: none; font-size: 1.6rem; border-radius: 1rem; }
.ap-related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.ap-related a { display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--ap-line); border-radius: 1.1rem; background: var(--ap-card); color: var(--ap-ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ap-related a:hover { border-color: var(--ap-accent); transform: translateY(-1px); }
.ap-related img { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: cover; flex: none; background: var(--ap-accent-soft); }
.ap-related strong { display: block; }
.ap-related em { display: block; font-style: normal; color: var(--ap-accent); font-weight: 500; font-size: .9rem; margin: .1rem 0 .3rem; }
.ap-related span span { display: block; color: var(--ap-muted); font-size: .9rem; line-height: 1.45; }

.ap-hero--plain { grid-template-columns: 1fr; padding: 3rem 2.6rem; }

/* narrow screens */
@media (max-width: 60rem) {
  .ap-why, .ap-why--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-why--big .ap-why__card--big { grid-column: 1 / -1; grid-row: auto; }
  .ap-sk { grid-template-columns: minmax(0, 1fr); }
  .ap-sk__shot .ap-zoom { flex: none; min-height: 0; }
  .ap-sk__shot .ap-zoom img { height: auto; flex: none; }
  .ap-groups { columns: 1; }
}
@media (max-width: 46rem) {
  .ap-band__in { padding: .8rem 0; }
  .ap-band__row { flex-direction: column; }
  .ap-catbtn { justify-content: center; padding: .6rem 1rem; }
  .ap-hero { grid-template-columns: 1fr; width: calc(100% - 1.5rem); margin-top: 1.2rem; padding: 1.7rem 1.4rem 1.5rem; gap: 1.1rem; border-radius: 1.5rem; border-width: 2.5px; }
  .ap-hero::before { inset: .55rem; border-radius: 1.15rem; }
  .ap-hero::after { right: 1.6rem; }
  .ap-photo { width: 9rem; border-radius: 1.2rem; }
  .ap-photo__tag { display: none; }
  .ap-get { flex-direction: column; align-items: stretch; }
  .ap-cta { width: 100%; }
  .ap-why, .ap-why--big { grid-template-columns: 1fr; }
  .ap-st, .ap-st:nth-child(even) { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .ap-st:nth-child(even) .ap-st__img { order: 0; }
  .ap-st__copy, .ap-st:nth-child(even) .ap-st__copy { padding: 0 .3rem .3rem; }
  .ap-group ul { grid-template-columns: 1fr; }
  /* screenshots keep a readable size on phones: swipe sideways inside the frame */
  .ap-zoom { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .ap-zoom img, .ap-sk__shot .ap-zoom img { width: 46rem; max-width: none; height: auto; }
  .ap-swipe { display: block; margin-top: .45rem; font-size: .78rem; font-weight: 600; color: var(--ap-muted); }
  .ap-two { grid-template-columns: 1fr; }
  .ap-somuch { flex-direction: column; align-items: flex-start; }
  .ap-endcta { flex-wrap: wrap; }
  .ap-endcta .ap-cta { width: 100%; }
  .ap-site nav a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ap-photo { transform: none; } .ap-cta, .ap-faq summary::after, .ap-related a, .ap-search { transition: none; } }
