/* AI Prompts list — light animated sibling of home */
body.site-body--ai-prompts {
    --site-ink: #111318;
    --site-ink-soft: #3a4150;
    --site-muted: #6b7385;
    --site-paper: #f4f5f7;
    --site-surface: #ffffff;
    --site-accent: #e11d48;
    --site-accent-soft: rgba(225, 29, 72, 0.1);
    --site-line: rgba(17, 19, 24, 0.1);
    --site-max: 1200px;
    position: relative;
    color: var(--site-ink);
    background: var(--site-paper);
    overflow-x: clip;
}

body.site-body--ai-prompts .site-main {
    position: relative;
    z-index: 1;
}

body.site-body--ai-prompts .site-header {
    background: rgba(244, 245, 247, 0.88);
    border-bottom-color: var(--site-line);
}

body.site-body--ai-prompts .site-nav__cta {
    border-color: var(--site-ink);
    color: var(--site-ink);
}

body.site-body--ai-prompts .site-nav__cta:hover {
    background: var(--site-ink);
    color: #fff;
}

body.site-body--ai-prompts .site-footer {
    background: var(--site-surface);
}

/* Ambient — home-style light motion */
.ap-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ap-ambient__grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(17, 19, 24, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
    animation: ap-grid-drift 48s linear infinite;
}

.ap-ambient__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.55;
    will-change: transform;
}

.ap-ambient__blob--a {
    width: min(42vw, 28rem);
    height: min(42vw, 28rem);
    top: -8%;
    left: -6%;
    background: rgba(225, 29, 72, 0.16);
    animation: ap-blob-a 18s ease-in-out infinite;
}

.ap-ambient__blob--b {
    width: min(38vw, 24rem);
    height: min(38vw, 24rem);
    top: 18%;
    right: -8%;
    background: rgba(17, 19, 24, 0.1);
    animation: ap-blob-b 22s ease-in-out infinite;
}

.ap-ambient__blob--c {
    width: min(34vw, 20rem);
    height: min(34vw, 20rem);
    bottom: 8%;
    left: 28%;
    background: rgba(225, 29, 72, 0.08);
    animation: ap-blob-c 26s ease-in-out infinite;
}

.ap-ambient__glow {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.12), transparent 68%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 30%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ap-ambient__glow.is-on {
    opacity: 1;
}

.ap-ambient__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ap-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    z-index: 60;
    background: linear-gradient(90deg, var(--site-accent), #fb7185);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
    pointer-events: none;
    transform-origin: left center;
}

/* Live pill */
.ap-live {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: fit-content;
}

.ap-live__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: ap-pulse 1.8s ease-out infinite;
}

/* Hero — AI-only composition */
.ap-hero {
    position: relative;
    min-height: min(88vh, 46rem);
    border-bottom: 1px solid var(--site-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ap-hero__stage {
    position: relative;
    width: min(100% - 2.5rem, var(--site-max));
    margin-inline: auto;
    padding: 5rem 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 38rem);
}

.ap-hero__neural {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.ap-hero__rings {
    position: absolute;
    left: 50%;
    top: 48%;
    width: min(78vw, 34rem);
    height: min(78vw, 34rem);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.ap-hero__rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(225, 29, 72, 0.14);
    animation: ap-ring 10s ease-in-out infinite;
}

.ap-hero__rings span:nth-child(2) {
    inset: 12%;
    border-color: rgba(17, 19, 24, 0.08);
    animation-duration: 14s;
    animation-direction: reverse;
}

.ap-hero__rings span:nth-child(3) {
    inset: 24%;
    border-color: rgba(225, 29, 72, 0.1);
    animation-duration: 18s;
}

.ap-hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
    animation: ap-in 0.9s var(--site-ease) both;
}

.ap-hero__signal {
    margin: 0;
    font-family: var(--site-font-display);
    font-weight: 700;
    font-size: clamp(5.5rem, 18vw, 9.5rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    background: linear-gradient(120deg, #111318 0%, #111318 38%, #e11d48 52%, #111318 68%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ap-shimmer 7s ease-in-out infinite;
}

.ap-hero__title {
    margin: 1.25rem 0 0;
    font-size: clamp(1.25rem, 2.6vw, 1.65rem);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--site-ink);
    max-width: 30rem;
    min-height: 2.8em;
}

.ap-hero__typed {
    color: var(--site-accent);
    display: inline;
}

.ap-hero__caret {
    display: inline-block;
    width: 0.08em;
    height: 0.95em;
    margin-left: 0.1em;
    background: var(--site-accent);
    vertical-align: -0.08em;
    animation: ap-caret 0.9s steps(1) infinite;
}

.ap-hero__lead {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--site-ink-soft);
    max-width: 32rem;
}

.ap-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2rem;
}

.ap-hero__steps {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.25rem;
    max-width: 36rem;
}

.ap-hero__steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--site-ink-soft);
}

.ap-hero__steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--site-accent);
    background: var(--site-accent-soft);
}

.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: transform 0.25s var(--site-ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.ap-btn--solid {
    background: var(--site-ink);
    color: #fff;
}

.ap-btn--solid:hover {
    background: var(--site-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.22);
}

.ap-btn--ghost {
    border-color: var(--site-line);
    color: var(--site-ink);
    background: rgba(255, 255, 255, 0.6);
}

.ap-btn--ghost:hover {
    border-color: var(--site-ink);
    transform: translateY(-1px);
}

.ap-btn--sm {
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
}

/* Ticker */
.ap-ticker {
    overflow: hidden;
    border-bottom: 1px solid var(--site-line);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
}

.ap-ticker__track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding: 0.85rem 0;
    animation: ap-ticker 40s linear infinite;
}

.ap-ticker__track span {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--site-muted);
    white-space: nowrap;
}

.ap-ticker__track span::before {
    content: "·";
    margin-right: 2.5rem;
    color: var(--site-accent);
}

/* Sections */
.ap-wrap {
    width: min(100% - 2.5rem, var(--site-max));
    margin-inline: auto;
}

.ap-section {
    position: relative;
    z-index: 1;
    padding: 3.5rem 0 5rem;
}

.ap-section--alt {
    background: rgba(255, 255, 255, 0.55);
    border-block: 1px solid var(--site-line);
}

.ap-section__head {
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.ap-section__head h2 {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ap-section__head p {
    margin: 0.7rem 0 0;
    color: var(--site-ink-soft);
    line-height: 1.6;
}

.ap-about {
    max-width: 40rem;
    display: grid;
    gap: 1rem;
}

.ap-about p {
    margin: 0;
    color: var(--site-ink-soft);
    line-height: 1.7;
}

.ap-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.ap-bar__title {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ap-bar__lead {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    color: var(--site-muted);
}

.ap-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.ap-search {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--site-surface);
}

.ap-search input {
    width: min(14rem, 55vw);
    border: 0;
    background: transparent;
    color: var(--site-ink);
    padding: 0.7rem 1rem;
    font: inherit;
}

.ap-search input:focus {
    outline: none;
}

.ap-search button {
    border: 0;
    border-left: 1px solid var(--site-line);
    background: var(--site-ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0 1.1rem;
    cursor: pointer;
}

.ap-search button:hover {
    background: var(--site-accent);
}

.ap-clear {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--site-accent);
    text-decoration: none;
}

.ap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(13rem, 0.55fr);
    gap: 1.75rem;
    align-items: start;
}

.ap-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--site-line);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, box-shadow 0.35s var(--site-ease), transform 0.35s var(--site-ease);
}

.ap-card:hover {
    border-color: rgba(225, 29, 72, 0.28);
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.08);
    transform: translateY(-2px);
}

.ap-card__media {
    display: block;
    aspect-ratio: 21 / 9;
    background: #e8eaee;
    overflow: hidden;
}

.ap-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--site-ease);
}

.ap-card:hover .ap-card__media img {
    transform: scale(1.04);
}

.ap-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.ap-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.ap-chip {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--site-accent);
    background: var(--site-accent-soft);
}

.ap-card__copies {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--site-muted);
}

.ap-card__title {
    margin: 0.7rem 0 0;
    font-family: var(--site-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ap-card__title a {
    color: inherit;
    text-decoration: none;
}

.ap-card__title a:hover {
    color: var(--site-accent);
}

.ap-card__summary {
    margin: 0.5rem 0 0;
    color: var(--site-ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

.ap-card__prompt {
    margin: 0.85rem 0 0;
    padding: 0.85rem 0.95rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--site-ink-soft);
    background: rgba(244, 245, 247, 0.9);
    border: 1px solid var(--site-line);
    border-radius: 0.65rem;
}

.ap-card__actions {
    margin-top: 1rem;
}

.ap-side {
    position: sticky;
    top: 5.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--site-line);
    backdrop-filter: blur(6px);
}

.ap-side__title {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.ap-side__lead {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--site-ink-soft);
}

.ap-side__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ap-side__link {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    color: var(--site-ink-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.ap-side__link:hover,
.ap-side__link.is-active {
    background: var(--site-accent-soft);
    color: var(--site-accent);
}

.ap-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--site-muted);
    background: rgba(255, 255, 255, 0.65);
    border: 1px dashed var(--site-line);
    border-radius: 1rem;
}

.ap-empty a {
    color: var(--site-accent);
    font-weight: 600;
}

.ap-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--site-ease), transform 0.7s var(--site-ease);
}

.ap-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ——— Detail page ——— */
.ap-detail {
    position: relative;
    z-index: 1;
}

.ap-detail__hero {
    padding: 3.5rem 0 2.75rem;
    border-bottom: 1px solid var(--site-line);
}

.ap-detail__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.ap-detail__copy {
    max-width: 38rem;
    animation: ap-in 0.85s var(--site-ease) both;
}

.ap-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ap-crumb a {
    color: var(--site-muted);
    text-decoration: none;
}

.ap-crumb a:hover {
    color: var(--site-accent);
}

.ap-crumb__sep {
    color: var(--site-line);
}

.ap-detail__hero .ap-chip {
    margin-bottom: 0.85rem;
}

.ap-detail__title {
    margin: 0;
    max-width: 40rem;
    font-family: var(--site-font-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--site-ink);
}

.ap-detail__deck {
    margin: 1rem 0 0;
    max-width: 36rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--site-ink-soft);
}

.ap-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--site-muted);
}

.ap-detail__sep {
    opacity: 0.5;
}

.ap-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.ap-detail__visual {
    position: relative;
    isolation: isolate;
    min-height: min(52vh, 22rem);
    overflow: visible;
    animation: ap-in 1s var(--site-ease) 0.08s both;
}

.ap-detail__ai-canvas {
    position: absolute;
    inset: -8% -4%;
    width: 108%;
    height: 116%;
    z-index: 0;
    pointer-events: none;
}

.ap-detail__ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
}

.ap-detail__ai-orb--a {
    width: 11rem;
    height: 11rem;
    top: 12%;
    right: 8%;
    background: rgba(225, 29, 72, 0.2);
    animation: ap-blob-a 14s ease-in-out infinite;
}

.ap-detail__ai-orb--b {
    width: 9rem;
    height: 9rem;
    bottom: 10%;
    left: 12%;
    background: rgba(17, 19, 24, 0.1);
    animation: ap-blob-b 18s ease-in-out infinite;
}

.ap-detail__ai-core {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 5.5rem;
    height: 5.5rem;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.ap-detail__ai-core span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(225, 29, 72, 0.28);
    animation: ap-ai-spin 10s linear infinite;
}

.ap-detail__ai-core span:nth-child(2) {
    inset: 18%;
    border-color: rgba(17, 19, 24, 0.18);
    border-style: dashed;
    animation-duration: 14s;
    animation-direction: reverse;
}

.ap-detail__ai-core span:nth-child(3) {
    inset: 36%;
    border-color: rgba(225, 29, 72, 0.45);
    background: radial-gradient(circle, rgba(225, 29, 72, 0.2), transparent 70%);
    animation: ap-mind-pulse 2.6s ease-out infinite;
}

.ap-crumb span[aria-current="page"] {
    color: var(--site-ink-soft);
}

.ap-cat-hero .ap-live {
    margin-bottom: 0.85rem;
}

.ap-cat-media {
    position: relative;
    align-self: center;
    width: 100%;
    overflow: hidden;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--site-line);
    animation: ap-in 1s var(--site-ease) 0.08s both;
}

.ap-cat-media img {
    width: 100%;
    height: auto;
    max-height: min(48vh, 22rem);
    object-fit: contain;
    object-position: center;
    display: block;
    margin-inline: auto;
    filter: grayscale(0.08) contrast(1.04);
    transition: transform 1.1s var(--site-ease), filter 1.1s ease;
}

.ap-cat-hero:hover .ap-cat-media img {
    transform: scale(1.02);
    filter: grayscale(0) contrast(1.04);
}

.ap-cat-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(244, 245, 247, 0.35) 0%, transparent 22%),
        linear-gradient(180deg, transparent 70%, rgba(17, 19, 24, 0.12) 100%);
    pointer-events: none;
    z-index: 1;
}

.ap-cat-media__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 28%;
    z-index: 2;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent, rgba(225, 29, 72, 0.08), transparent);
    animation: ap-scan 9s linear infinite;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.ap-detail__cover {
    margin: 2rem auto 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--site-line);
    background: #e8eaee;
}

.ap-detail__cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ap-panel {
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--site-line);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
}

.ap-panel__head {
    margin-bottom: 1.15rem;
}

.ap-panel__head h2 {
    margin: 0;
    font-family: var(--site-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ap-panel__head p {
    margin: 0.4rem 0 0;
    font-size: 0.9375rem;
    color: var(--site-muted);
    line-height: 1.5;
}

.ap-panel__desc {
    margin: 0 0 1.15rem;
    color: var(--site-ink-soft);
    line-height: 1.65;
}

.ap-prompt {
    border: 1px solid var(--site-line);
    border-radius: 0.85rem;
    overflow: hidden;
    background: #fff;
}

.ap-prompt__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--site-line);
    background: rgba(244, 245, 247, 0.9);
}

.ap-prompt__bar span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.ap-prompt__body {
    margin: 0;
    padding: 1.15rem 1.2rem 1.35rem;
    max-height: 28rem;
    overflow: auto;
    font-size: 0.9375rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--site-ink);
    background: #fff;
}

.copy-prompt-btn.is-copied {
    background: #047857;
    box-shadow: none;
}

.ap-comment-form {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ap-comment-form textarea {
    width: 100%;
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--site-ink);
    background: #fff;
    resize: vertical;
    min-height: 6rem;
}

.ap-comment-form textarea:focus {
    outline: 2px solid rgba(225, 29, 72, 0.25);
    border-color: rgba(225, 29, 72, 0.45);
}

.ap-comment-form textarea.is-invalid,
.ap-form-error {
    border-color: #e11d48;
}

.ap-form-error {
    margin: 0;
    font-size: 0.8125rem;
    color: #be123c;
    border: 0;
}

.ap-login-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
    font-size: 0.9375rem;
    color: var(--site-muted);
}

.ap-comments {
    display: grid;
    gap: 1rem;
}

.ap-comment {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--site-line);
}

.ap-comment:first-child {
    padding-top: 0;
    border-top: 0;
}

.ap-comment__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--site-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--site-accent);
}

.ap-comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.ap-comment__meta strong {
    font-size: 0.9375rem;
}

.ap-comment__meta time {
    font-size: 0.75rem;
    color: var(--site-muted);
}

.ap-comment__body p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.ap-comments__empty {
    margin: 0;
    color: var(--site-muted);
    font-size: 0.9375rem;
}

.ap-related {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--site-line);
}

.ap-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.ap-related__list a {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.8rem;
    border-radius: 0.65rem;
    text-decoration: none;
    border: 1px solid transparent;
    background: rgba(244, 245, 247, 0.7);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ap-related__list a:hover {
    border-color: rgba(225, 29, 72, 0.25);
    background: #fff;
}

.ap-related__id {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.ap-related__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--site-ink);
    line-height: 1.3;
}

.ap-related__copies {
    font-size: 0.75rem;
    color: var(--site-muted);
}

body.site-body--ai-prompts .blogs-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2.5rem;
}

body.site-body--ai-prompts .blogs-pagination a,
body.site-body--ai-prompts .blogs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--site-line);
    background: var(--site-surface);
    color: var(--site-ink-soft);
}

body.site-body--ai-prompts .blogs-pagination a:hover {
    border-color: var(--site-accent);
    color: var(--site-accent);
}

body.site-body--ai-prompts .blogs-pagination .is-active {
    background: var(--site-ink);
    border-color: var(--site-ink);
    color: #fff;
}

body.site-body--ai-prompts .blogs-pagination .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

@keyframes ap-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ap-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    }
    70% {
        box-shadow: 0 0 0 0.55rem rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes ap-shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes ap-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes ap-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.45;
    }
}

@keyframes ap-scan {
    0% {
        top: -30%;
    }
    100% {
        top: 110%;
    }
}

@keyframes ap-ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes ap-caret {
    0%, 45% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes ap-grid-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-56px, -56px, 0);
    }
}

@keyframes ap-blob-a {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(8%, 10%) scale(1.08);
    }
}

@keyframes ap-blob-b {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-10%, 6%) scale(1.05);
    }
}

@keyframes ap-blob-c {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(6%, -8%) scale(1.1);
    }
}

@keyframes ap-ai-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ap-mind-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 960px) {
    .ap-layout,
    .ap-detail__hero-grid {
        grid-template-columns: 1fr;
    }

    .ap-hero__stage {
        padding: 3.5rem 0 3rem;
        min-height: min(70vh, 34rem);
    }

    .ap-detail__visual {
        min-height: 16rem;
        order: -1;
    }

    .ap-cat-media {
        order: -1;
        min-height: 0;
    }

    .ap-cat-media img {
        max-height: min(40vh, 18rem);
    }

    .ap-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .ap-hero {
        min-height: 0;
    }

    .ap-hero__signal {
        font-size: clamp(4.5rem, 28vw, 6rem);
    }

    .ap-hero__title {
        min-height: 3.6em;
    }

    .ap-search input {
        width: min(10rem, 48vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-ambient__grid,
    .ap-ambient__blob,
    .ap-live__dot,
    .ap-hero__signal,
    .ap-hero__caret,
    .ap-hero__rings span,
    .ap-detail__ai-orb,
    .ap-detail__ai-core span,
    .ap-cat-media__scan,
    .ap-detail__visual,
    .ap-detail__copy,
    .ap-cat-media,
    .ap-ticker__track,
    .ap-hero__copy {
        animation: none !important;
    }

    .ap-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ap-card,
    .ap-card__media img {
        transition: none;
    }
}
