/* AI Prompts Market — theme carried over from the original "basic" template:
   dark navy canvas, purple base, coral + sky accents, Titillium Web / Archivo. */

:root {
    --heading-font: "Titillium Web", sans-serif;
    --body-font: "Archivo", sans-serif;
    --mono-font: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --base: 285 67% 58%;        /* #b84cdc */
    --base-two: 10 96% 69%;     /* #fc7d64 */
    --base-three: 199 89% 48%;  /* #0da2e7 */

    --body-bg: 225 40% 10%;
    --card-bg: 217 33% 17%;
    --card-bg-two: 217 27% 22%;
    --footer-bg: 222 47% 11%;
    --border: 217 27% 22%;
    --border-two: 215 19% 35%;
    --text: 216 12% 76%;
    --text-soft: 216 12% 60%;
    --heading: 0 0% 100%;

    --success: 152 60% 48%;
    --warning: 40 96% 58%;
    --danger: 0 84% 64%;
    --info: 199 89% 48%;

    --gradient: linear-gradient(134deg, hsl(var(--base-two)) -2.56%, hsl(var(--base)) 49.75%, hsl(var(--base-three)) 100%);
    --gradient-reverse: linear-gradient(100deg, hsl(var(--base-three)) -2.56%, hsl(var(--base)) 49.75%, hsl(var(--base-two)) 134%);

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 20px 60px -20px hsl(0 0% 0% / .6);
    --header-h: 84px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--body-bg));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}
/* Soft brand-colour glows behind the content (stands in for the old body-thumb.png artwork). */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42vw 36vw at 8% 4%, hsl(var(--base-two) / .16), transparent 70%),
        radial-gradient(46vw 40vw at 92% 12%, hsl(var(--base) / .20), transparent 70%),
        radial-gradient(50vw 44vw at 80% 92%, hsl(var(--base-three) / .14), transparent 70%),
        radial-gradient(40vw 40vw at 12% 80%, hsl(var(--base) / .12), transparent 70%);
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: hsl(var(--heading));
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: hsl(var(--base)); text-decoration: none; transition: color .2s; }
a:hover { color: hsl(var(--base-two)); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 1.5rem 0; }
::selection { background: hsl(var(--base) / .5); color: #fff; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.text--gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-soft { color: hsl(var(--text-soft)); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Buttons ---------- */
.btn {
    --pad-y: .7rem; --pad-x: 1.35rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: var(--pad-y) var(--pad-x);
    font: 600 .95rem/1.2 var(--body-font);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background-position .4s, opacity .2s, color .2s, border-color .2s;
    white-space: nowrap;
    color: #fff;
    background: transparent;
    text-decoration: none;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn--base {
    background-image: var(--gradient);
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: 0 10px 30px -10px hsl(var(--base) / .7);
}
.btn--base:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px hsl(var(--base) / .9); }
.btn-outline--base {
    border: 1px solid transparent;
    background: linear-gradient(hsl(var(--body-bg)), hsl(var(--body-bg))) padding-box, var(--gradient) border-box;
}
.btn-outline--base:hover { background: linear-gradient(hsl(var(--card-bg)), hsl(var(--card-bg))) padding-box, var(--gradient) border-box; }
.btn--ghost { background: hsl(var(--card-bg-two) / .7); border-color: hsl(var(--border-two) / .6); color: hsl(var(--text)); }
.btn--ghost:hover { background: hsl(var(--card-bg-two)); color: #fff; }
.btn--success { background: hsl(var(--success) / .15); border-color: hsl(var(--success) / .5); color: hsl(var(--success)); }
.btn--success:hover { background: hsl(var(--success)); color: #06281a; }
.btn--danger { background: hsl(var(--danger) / .12); border-color: hsl(var(--danger) / .45); color: hsl(var(--danger)); }
.btn--danger:hover { background: hsl(var(--danger)); color: #fff; }
.btn--warning { background: hsl(var(--warning) / .12); border-color: hsl(var(--warning) / .45); color: hsl(var(--warning)); }
.btn--warning:hover { background: hsl(var(--warning)); color: #2b1d00; }
.btn--sm { --pad-y: .45rem; --pad-x: .85rem; font-size: .85rem; }
.btn--xs { --pad-y: .3rem; --pad-x: .6rem; font-size: .78rem; border-radius: 6px; }
.btn--lg { --pad-y: .95rem; --pad-x: 1.8rem; font-size: 1.05rem; }
.btn--icon { --pad-x: .6rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: hsl(var(--base)); cursor: pointer; }
.link-btn:hover { color: hsl(var(--base-two)); }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: hsl(var(--body-bg) / .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid hsl(var(--border) / .7);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { flex-shrink: 0; }
.logo img { height: 50px; width: auto; }
@media (max-width: 575px) { .logo img { height: 42px; } }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a:not(.btn) {
    color: hsl(var(--text)); font-weight: 500; padding: .5rem .8rem; border-radius: var(--radius-sm);
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; background: hsl(var(--card-bg) / .7); }
.nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: .75rem; }
.header-search { position: relative; flex: 0 1 300px; }
.header-search input { padding-left: 2.4rem; height: 42px; background: hsl(var(--card-bg) / .7); }
.header-search .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: hsl(var(--text-soft)); }
.nav-toggle { display: none; margin-left: auto; }

@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; }
    .header-search { display: none; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: .25rem;
        padding: 1rem 20px 1.5rem;
        background: hsl(var(--body-bg));
        border-bottom: 1px solid hsl(var(--border));
        box-shadow: 0 24px 40px -12px hsl(0 0% 0% / .7);
        transform: translateY(-120%); opacity: 0; pointer-events: none;
        transition: transform .25s ease, opacity .2s;
    }
    .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .nav__actions { margin: .5rem 0 0; flex-direction: column; align-items: stretch; }
    .nav .mobile-search { display: block !important; position: relative; margin-bottom: .5rem; }
}
.mobile-search { display: none; }
.mobile-search .icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: hsl(var(--text-soft)); }
.mobile-search input { padding-left: 2.4rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-weight: 600; color: hsl(var(--heading)); margin-bottom: .4rem; font-size: .92rem; }
.form-label .req { color: hsl(var(--base-two)); }
.form-hint { font-size: .8rem; color: hsl(var(--text-soft)); margin-top: .35rem; }
.form-control, select.form-control, textarea.form-control {
    width: 100%;
    padding: .72rem .95rem;
    font: 400 .95rem/1.5 var(--body-font);
    color: hsl(var(--heading));
    background: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border-two) / .6);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.4rem;
}
textarea.form-control { min-height: 120px; resize: vertical; }
textarea.form-control.mono { font-family: var(--mono-font); font-size: .88rem; }
.form-control::placeholder { color: hsl(var(--text-soft) / .8); }
.form-control:focus { outline: none; border-color: hsl(var(--base)); box-shadow: 0 0 0 3px hsl(var(--base) / .25); }
input[type=file].form-control { padding: .55rem; }
input[type=file].form-control::file-selector-button {
    font: 600 .82rem var(--body-font); color: #fff; background: hsl(var(--card-bg-two)); border: 1px solid hsl(var(--border-two));
    border-radius: 6px; padding: .4rem .8rem; margin-right: .8rem; cursor: pointer;
}
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: hsl(var(--base)); flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
:focus-visible { outline: 2px solid hsl(var(--base-three)); outline-offset: 2px; }

/* ---------- Cards ---------- */
.card {
    background: hsl(var(--card-bg) / .85);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}
.card--glass { background: hsl(var(--card-bg) / .6); backdrop-filter: blur(8px); }
.card__title { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- Badges & chips ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4;
    border: 1px solid transparent; white-space: nowrap;
}
.badge--success { color: hsl(var(--success)); background: hsl(var(--success) / .12); border-color: hsl(var(--success) / .3); }
.badge--warning { color: hsl(var(--warning)); background: hsl(var(--warning) / .12); border-color: hsl(var(--warning) / .3); }
.badge--danger  { color: hsl(var(--danger));  background: hsl(var(--danger) / .12);  border-color: hsl(var(--danger) / .3); }
.badge--muted   { color: hsl(var(--text));    background: hsl(var(--card-bg-two));   border-color: hsl(var(--border-two) / .5); }
.badge--base    { color: #fff; background-image: var(--gradient); }
.badge--tool    { color: hsl(var(--base-three)); background: hsl(var(--base-three) / .12); border-color: hsl(var(--base-three) / .3); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .95rem; border-radius: 999px;
    font-size: .88rem; font-weight: 500; color: hsl(var(--text));
    background: hsl(var(--card-bg) / .8); border: 1px solid hsl(var(--border-two) / .5);
    transition: all .2s;
}
.chip:hover { color: #fff; border-color: hsl(var(--base)); }
.chip.is-active { color: #fff; border-color: transparent; background-image: var(--gradient); }
.chip__count { font-size: .75rem; opacity: .7; }

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4rem; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; margin-bottom: 1.25rem;
    border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
    background: hsl(var(--card-bg) / .8); border: 1px solid hsl(var(--border-two) / .6);
}
.hero__eyebrow .icon { color: hsl(var(--base-two)); }
.hero h1 { margin-bottom: 1rem; }
.hero__desc { font-size: 1.15rem; max-width: 560px; margin-bottom: 1.75rem; }
.hero-search {
    display: flex; gap: .5rem; padding: .45rem; max-width: 580px;
    background: hsl(var(--card-bg) / .85); border: 1px solid hsl(var(--border-two) / .6);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow);
}
.hero-search .icon { margin: 0 .2rem 0 .7rem; align-self: center; color: hsl(var(--text-soft)); width: 1.25em; height: 1.25em; }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 400 1rem var(--body-font); }
.hero-search input:focus { outline: none; }
.hero__popular { margin-top: 1.1rem; font-size: .88rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.hero__popular a { color: hsl(var(--text)); border-bottom: 1px dashed hsl(var(--border-two)); }
.hero__popular a:hover { color: #fff; }
.hero__stats { display: flex; gap: 2.25rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero__stat strong { display: block; font-family: var(--heading-font); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero__stat span { font-size: .85rem; color: hsl(var(--text-soft)); }

/* Original banner artwork: floating prompt cards for DALL·E, Midjourney and Stable Diffusion. */
.hero-visual { position: relative; }
.hero-visual__art {
    position: relative; z-index: 1; width: 100%; max-width: 635px; margin-left: auto;
    filter: drop-shadow(0 30px 50px hsl(0 0% 0% / .55));
    animation: hero-float 7s ease-in-out infinite;
}
.hero-visual__glow {
    position: absolute; inset: 12% 8%; filter: blur(80px); opacity: .55; z-index: 0;
    background: var(--gradient); border-radius: 50%;
}
.hero-visual__chip {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
    background: hsl(var(--card-bg) / .9); border: 1px solid hsl(var(--border-two) / .7);
    backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.hero-visual__chip .icon { color: hsl(var(--base-two)); }
.hero-visual__chip--a { left: -4%; bottom: 14%; animation: hero-float 6s ease-in-out infinite reverse; }
.hero-visual__chip--b { right: 2%; top: -4%; animation: hero-float 8s ease-in-out infinite; }
.hero-visual__chip--b .icon { color: hsl(var(--base-three)); }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991px) {
    .hero { padding: 3rem 0 2rem; }
    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .hero-visual__chip--a { left: 0; }
}
@media (max-width: 575px) { .hero-visual__chip { font-size: .75rem; padding: .4rem .7rem; } }

/* ---------- Sections ---------- */
.section { padding: 3.75rem 0; }
.section--tight { padding: 2.5rem 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-heading__subtitle {
    display: block; font-family: var(--heading-font); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    font-size: .8rem; margin-bottom: .35rem;
}
.section-heading__title { margin: 0; }
.section-heading--center { flex-direction: column; align-items: center; text-align: center; }

.page-hero { padding: 3rem 0 1.5rem; }
.breadcrumb { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .88rem; margin-bottom: .75rem; color: hsl(var(--text-soft)); }
.breadcrumb a { color: hsl(var(--text)); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: hsl(var(--base)); }

/* ---------- Prompt cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1199px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.prompt-card {
    position: relative; display: flex; flex-direction: column;
    background: hsl(var(--card-bg) / .9);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.prompt-card:hover { transform: translateY(-4px); border-color: hsl(var(--base) / .6); box-shadow: 0 18px 40px -18px hsl(var(--base) / .55); }
.prompt-card__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: hsl(var(--card-bg-two)); }
.prompt-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prompt-card:hover .prompt-card__thumb img { transform: scale(1.05); }
.prompt-card__thumb--text {
    padding: 3rem 1.1rem 0; display: flex;
    background:
        radial-gradient(120% 90% at 0% 0%, hsl(var(--base) / .28), transparent 60%),
        radial-gradient(90% 90% at 100% 100%, hsl(var(--base-three) / .22), transparent 60%),
        hsl(var(--card-bg-two));
}
.prompt-card__thumb--text p {
    font-family: var(--mono-font); font-size: .78rem; line-height: 1.6; color: hsl(var(--heading) / .78); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
    mask-image: linear-gradient(180deg, #000 60%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.prompt-card__tags { position: absolute; top: .75rem; left: .75rem; right: .75rem; display: flex; justify-content: space-between; gap: .4rem; }
.prompt-card__tags .badge--tool { background: hsl(var(--body-bg) / .85); backdrop-filter: blur(6px); }
.prompt-card__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.prompt-card__cat { font-size: .78rem; color: hsl(var(--text-soft)); margin-bottom: .3rem; }
.prompt-card__title { font-size: 1.08rem; margin: 0 0 .5rem; line-height: 1.3; }
.prompt-card__title a { color: #fff; }
.prompt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.prompt-card__desc { font-size: .87rem; color: hsl(var(--text-soft)); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prompt-card__foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; padding-top: .85rem; border-top: 1px solid hsl(var(--border)); }
.prompt-card__author { display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .85rem; color: hsl(var(--text)); position: relative; z-index: 2; }
.prompt-card__author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-card__author:hover { color: #fff; }
.prompt-card__meta { margin-left: auto; display: flex; gap: .75rem; font-size: .8rem; color: hsl(var(--text-soft)); }
.prompt-card__meta span { display: inline-flex; align-items: center; gap: .25rem; }
.prompt-card .copy-btn { position: relative; z-index: 2; }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--xs { width: 24px; height: 24px; font-size: .62rem; }
.avatar--sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar--md { width: 44px; height: 44px; font-size: .95rem; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar--xl { width: 104px; height: 104px; font-size: 2rem; }
.avatar--initials {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--heading-font); font-weight: 700; color: #fff; background-image: var(--gradient);
}

/* ---------- Categories ---------- */
.cat-card {
    display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem;
    background: hsl(var(--card-bg) / .85); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    color: hsl(var(--text)); transition: all .25s;
}
.cat-card:hover { border-color: hsl(var(--base) / .6); transform: translateY(-3px); color: hsl(var(--text)); }
.cat-card__icon {
    width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: .5rem;
    background: hsl(var(--base) / .15); color: hsl(var(--base));
}
.cat-card:nth-child(3n+2) .cat-card__icon { background: hsl(var(--base-two) / .15); color: hsl(var(--base-two)); }
.cat-card:nth-child(3n+3) .cat-card__icon { background: hsl(var(--base-three) / .15); color: hsl(var(--base-three)); }
.cat-card h3 { font-size: 1.05rem; margin: 0; }
.cat-card p { font-size: .85rem; margin: 0; color: hsl(var(--text-soft)); }
.cat-card small { margin-top: auto; padding-top: .5rem; font-size: .8rem; color: hsl(var(--base)); font-weight: 600; }

/* ---------- Authors ---------- */
.author-card {
    display: flex; align-items: center; gap: .9rem; padding: 1.1rem;
    background: hsl(var(--card-bg) / .85); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
    color: hsl(var(--text)); transition: all .25s;
}
.author-card:hover { border-color: hsl(var(--base) / .6); color: hsl(var(--text)); transform: translateY(-3px); }
.author-card__rank { font-family: var(--heading-font); font-weight: 700; font-size: 1.1rem; width: 1.6rem; text-align: center; }
.author-card h3 { font-size: 1rem; margin: 0; }
.author-card p { font-size: .82rem; margin: 0; color: hsl(var(--text-soft)); }

.profile-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-head__stats { display: flex; gap: 2rem; margin-left: auto; }
.profile-head__stats strong { display: block; font-family: var(--heading-font); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.profile-head__stats span { font-size: .82rem; color: hsl(var(--text-soft)); }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden;
    border-radius: 20px; padding: 3.25rem;
    background: url("../img/cta-bg.png") center / cover no-repeat, hsl(var(--card-bg));
    border: 1px solid hsl(var(--border-two) / .5);
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.cta h2 { margin-bottom: .6rem; }
.cta p { color: hsl(var(--heading) / .82); font-size: 1.05rem; margin: 0; }
.cta__art { width: 100%; max-width: 440px; margin-left: auto; filter: drop-shadow(0 20px 40px hsl(0 0% 0% / .45)); }
.cta__steps { display: grid; gap: .6rem; margin-top: 1.5rem; max-width: 460px; }
.cta__step { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 10px; background: hsl(var(--body-bg) / .55); color: #fff; font-weight: 500; }
.cta__step b {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background-image: var(--gradient); font-family: var(--heading-font);
}
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 2rem; } .cta__art { margin: 0 auto; max-width: 320px; } }

/* ---------- Prompt detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 991px) { .detail { grid-template-columns: 1fr; } }
.detail__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; font-size: .9rem; color: hsl(var(--text-soft)); margin-bottom: 1.5rem; }
.detail__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.detail__image { border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); margin-bottom: 1.5rem; background: hsl(var(--card-bg-two)); }
.detail__image img { width: 100%; }

.prompt-box {
    position: relative; border-radius: var(--radius); padding: 1px;
    background: var(--gradient); margin-bottom: 1.5rem;
}
.prompt-box__inner { background: hsl(var(--card-bg)); border-radius: calc(var(--radius) - 1px); overflow: hidden; }
.prompt-box__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .75rem 1rem .75rem 1.25rem; border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--card-bg-two) / .5);
}
.prompt-box__head h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.prompt-box pre {
    margin: 0; padding: 1.25rem; white-space: pre-wrap; word-break: break-word;
    font-family: var(--mono-font); font-size: .92rem; line-height: 1.7; color: hsl(var(--heading) / .92);
    max-height: 560px; overflow: auto;
}
.prompt-box .placeholder-var { color: hsl(var(--base-two)); font-weight: 600; }
.output-box pre { font-family: var(--body-font); font-size: .95rem; }

.side-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.side-card dl { display: grid; grid-template-columns: auto 1fr; gap: .65rem 1rem; margin: 0; font-size: .9rem; }
.side-card dt { color: hsl(var(--text-soft)); }
.side-card dd { margin: 0; text-align: right; color: #fff; }

.prose { color: hsl(var(--text)); font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 1fr 200px 200px 170px auto; gap: .75rem; margin-bottom: 1.25rem; }
@media (max-width: 991px) { .filters { grid-template-columns: 1fr 1fr; } .filters > :first-child { grid-column: 1 / -1; } }
@media (max-width: 575px) { .filters { grid-template-columns: 1fr; } }
.result-count { font-size: .9rem; color: hsl(var(--text-soft)); margin-bottom: 1.25rem; }

/* ---------- Empty state ---------- */
.empty {
    text-align: center; padding: 3.5rem 1.5rem;
    background: hsl(var(--card-bg) / .7); border: 1px dashed hsl(var(--border-two) / .7); border-radius: var(--radius);
}
.empty .icon { width: 44px; height: 44px; color: hsl(var(--base)); margin: 0 auto 1rem; display: block; }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: hsl(var(--text-soft)); max-width: 440px; margin: 0 auto 1.25rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.25rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 .75rem;
    border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
    background: hsl(var(--card-bg)); border: 1px solid hsl(var(--border)); color: hsl(var(--text));
}
.pagination a:hover { color: #fff; border-color: hsl(var(--base)); }
.pagination .is-current { background-image: var(--gradient); color: #fff; border-color: transparent; }
.pagination .is-gap { background: none; border: 0; }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 100; display: grid; gap: .6rem; width: min(400px, calc(100vw - 32px)); }
.flash {
    display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem;
    border-radius: 10px; font-size: .92rem; color: #fff;
    background: hsl(var(--card-bg)); border: 1px solid hsl(var(--border-two)); border-left-width: 4px;
    box-shadow: var(--shadow); animation: flash-in .3s ease;
}
.flash--success { border-left-color: hsl(var(--success)); }
.flash--error   { border-left-color: hsl(var(--danger)); }
.flash--info    { border-left-color: hsl(var(--info)); }
.flash p { margin: 0; flex: 1; }
.flash button { background: none; border: 0; color: hsl(var(--text-soft)); cursor: pointer; padding: 0; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

.alert { padding: .9rem 1.1rem; border-radius: 10px; font-size: .92rem; border: 1px solid; margin-bottom: 1.25rem; display: flex; gap: .7rem; align-items: flex-start; }
.alert .icon { margin-top: .15rem; }
.alert--warning { color: hsl(var(--warning)); background: hsl(var(--warning) / .08); border-color: hsl(var(--warning) / .3); }
.alert--danger  { color: hsl(var(--danger));  background: hsl(var(--danger) / .08);  border-color: hsl(var(--danger) / .3); }
.alert--info    { color: hsl(var(--info));    background: hsl(var(--info) / .08);    border-color: hsl(var(--info) / .3); }
.alert--success { color: hsl(var(--success)); background: hsl(var(--success) / .08); border-color: hsl(var(--success) / .3); }
.alert p { margin: 0; color: hsl(var(--text)); }
.alert strong { color: inherit; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: 4rem; background: hsl(var(--footer-bg) / .92); border-top: 1px solid hsl(var(--border)); overflow: hidden; }
.footer__shape { position: absolute; pointer-events: none; opacity: .6; }
.footer__shape--left { left: 0; bottom: 0; width: 160px; }
.footer__shape--right { right: 0; top: 0; width: 130px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; position: relative; }
.footer__about p { font-size: .92rem; margin: 1rem 0 0; max-width: 360px; }
.footer h4 { font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer ul a { color: hsl(var(--text)); font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid hsl(var(--border)); padding: 1.25rem 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: relative; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side {
    position: relative; overflow: hidden; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(70% 60% at 10% 10%, hsl(var(--base-two) / .35), transparent 60%),
        radial-gradient(70% 60% at 90% 90%, hsl(var(--base-three) / .35), transparent 60%),
        linear-gradient(160deg, hsl(var(--base) / .45), hsl(var(--body-bg)) 75%);
    border-right: 1px solid hsl(var(--border));
}
.auth__side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 460px; }
.auth__side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.auth__side li { display: flex; gap: .7rem; align-items: center; color: hsl(var(--heading) / .9); }
.auth__side li .icon { color: hsl(var(--base-two)); }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth__box { width: 100%; max-width: 420px; }
.auth__box h1 { font-size: 2rem; }
.auth__alt { margin-top: 1.5rem; text-align: center; font-size: .92rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__side { display: none; } }

/* ---------- Panel (author dashboard + admin) ---------- */
.panel { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.panel__side {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: hsl(var(--footer-bg) / .96); border-right: 1px solid hsl(var(--border));
    padding: 1.25rem 1rem; display: flex; flex-direction: column;
}
.panel__logo { padding: .25rem .5rem 1.25rem; display: flex; align-items: center; gap: .6rem; }
.panel__logo img { height: 40px; width: auto; }
.panel__role { white-space: nowrap; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; background-image: var(--gradient); color: #fff; }
.panel__nav { display: grid; gap: .2rem; }
.panel__nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--text-soft)); padding: 1rem .75rem .4rem; font-weight: 600; }
.panel__nav a {
    display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: var(--radius-sm);
    color: hsl(var(--text)); font-weight: 500; font-size: .93rem;
}
.panel__nav a:hover { color: #fff; background: hsl(var(--card-bg) / .7); }
.panel__nav a.is-active { color: #fff; background: hsl(var(--base) / .18); box-shadow: inset 3px 0 0 hsl(var(--base)); }
.panel__nav .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: hsl(var(--base-two)); color: #2a0e07; }
.panel__user { margin-top: auto; padding-top: 1rem; border-top: 1px solid hsl(var(--border)); display: flex; align-items: center; gap: .65rem; }
.panel__user div { min-width: 0; flex: 1; }
.panel__user strong { display: block; color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel__user span { font-size: .78rem; color: hsl(var(--text-soft)); }
.panel__main { padding: 2rem 2.25rem 3rem; min-width: 0; background: hsl(var(--body-bg) / .55); }
.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.panel__top h1 { font-size: 1.75rem; margin: 0; }
.panel__top p { margin: .25rem 0 0; color: hsl(var(--text-soft)); font-size: .92rem; }
.panel__mobilebar { display: none; }
@media (max-width: 991px) {
    .panel { grid-template-columns: 1fr; }
    .panel__side { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
    .panel__side.is-open { transform: none; box-shadow: var(--shadow); }
    .panel__mobilebar {
        display: flex; align-items: center; justify-content: space-between; padding: .75rem 16px;
        background: hsl(var(--footer-bg)); border-bottom: 1px solid hsl(var(--border)); position: sticky; top: 0; z-index: 40;
    }
    .panel__mobilebar img { height: 38px; }
    .panel__main { padding: 1.5rem 16px 3rem; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
    padding: 1.2rem 1.25rem; border-radius: var(--radius);
    background: hsl(var(--card-bg) / .9); border: 1px solid hsl(var(--border));
    display: flex; gap: .9rem; align-items: center; color: hsl(var(--text));
}
a.stat:hover { border-color: hsl(var(--base) / .6); color: hsl(var(--text)); }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat__icon .icon { width: 22px; height: 22px; }
.stat__icon--base { background: hsl(var(--base) / .15); color: hsl(var(--base)); }
.stat__icon--two { background: hsl(var(--base-two) / .15); color: hsl(var(--base-two)); }
.stat__icon--three { background: hsl(var(--base-three) / .15); color: hsl(var(--base-three)); }
.stat__icon--success { background: hsl(var(--success) / .15); color: hsl(var(--success)); }
.stat__icon--warning { background: hsl(var(--warning) / .15); color: hsl(var(--warning)); }
.stat strong { display: block; font-family: var(--heading-font); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .84rem; color: hsl(var(--text-soft)); }

.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card-bg) / .85); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
    text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
    color: hsl(var(--text-soft)); padding: .85rem 1rem; background: hsl(var(--card-bg-two) / .5); border-bottom: 1px solid hsl(var(--border));
    white-space: nowrap;
}
.table td { padding: .85rem 1rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: hsl(var(--card-bg-two) / .35); }
.table .title-cell { min-width: 240px; }
.table .title-cell a { color: #fff; font-weight: 600; }
.table .title-cell a:hover { color: hsl(var(--base)); }
.table .title-cell small { display: block; color: hsl(var(--text-soft)); font-size: .8rem; margin-top: .15rem; }
.table .actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table input[type=checkbox] { width: 16px; height: 16px; accent-color: hsl(var(--base)); }
.unread td { font-weight: 600; color: #fff; }

.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs a {
    padding: .5rem .95rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: hsl(var(--text));
    background: hsl(var(--card-bg) / .7); border: 1px solid hsl(var(--border));
}
.tabs a:hover { color: #fff; }
.tabs a.is-active { color: #fff; background-image: var(--gradient); border-color: transparent; }
.tabs a small { opacity: .75; margin-left: .25rem; }

.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .form-control { width: auto; min-width: 200px; flex: 1; }
.toolbar select.form-control { flex: 0 0 auto; min-width: 160px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid hsl(var(--border)); }
.list li:last-child { border-bottom: 0; }
.list li > div { min-width: 0; flex: 1; }
.list strong, .list a.title { color: #fff; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list small { color: hsl(var(--text-soft)); font-size: .8rem; }

dialog.modal {
    width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid hsl(var(--border-two)); border-radius: var(--radius);
    background: hsl(var(--card-bg)); color: hsl(var(--text)); box-shadow: var(--shadow);
}
dialog.modal::backdrop { background: hsl(var(--body-bg) / .75); backdrop-filter: blur(3px); }
.modal__head { padding: 1.1rem 1.25rem; border-bottom: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; align-items: center; }
.modal__head h3 { margin: 0; font-size: 1.1rem; }
.modal__body { padding: 1.25rem; }
.modal__foot { padding: 1rem 1.25rem; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: flex-end; gap: .5rem; }

.inline-form { display: inline; }
.preview-thumb { width: 64px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid hsl(var(--border)); }
.current-image { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.current-image img { width: 140px; border-radius: 8px; border: 1px solid hsl(var(--border)); }

.error-page { text-align: center; padding: 6rem 0 4rem; }
.error-page__code { font-family: var(--heading-font); font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; line-height: 1; margin-bottom: .5rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list a { font-size: .8rem; padding: .2rem .6rem; border-radius: 6px; background: hsl(var(--card-bg-two)); color: hsl(var(--text)); }
.tag-list a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hero prompt count ---------- */
.hero__count {
    font-weight: 700; color: #fc7d64; letter-spacing: .01em;
}

/* ---------- Articles ---------- */
.article-card {
    position: relative; display: flex; flex-direction: column;
    background: hsl(var(--card-bg) / .9); border: 1px solid hsl(var(--border));
    border-radius: var(--radius); overflow: hidden;
    transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-4px); border-color: hsl(var(--base) / .6); box-shadow: 0 18px 40px -18px hsl(var(--base) / .55); }
.article-card__thumb {
    aspect-ratio: 16 / 9; overflow: hidden;
    background:
        radial-gradient(120% 90% at 0% 0%, hsl(var(--base) / .3), transparent 60%),
        radial-gradient(90% 90% at 100% 100%, hsl(var(--base-three) / .25), transparent 60%),
        hsl(var(--card-bg-two));
}
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card__thumb img { transform: scale(1.05); }
.article-card__body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { display: flex; gap: 1rem; font-size: .8rem; color: hsl(var(--text-soft)); margin-bottom: .5rem; }
.article-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.article-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .55rem; }
.article-card__title a { color: #fff; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card__excerpt { font-size: .9rem; color: hsl(var(--text-soft)); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__more { margin-top: auto; font-size: .88rem; font-weight: 600; color: hsl(var(--base)); display: inline-flex; align-items: center; gap: .35rem; }
.article-card:hover .article-card__more { color: hsl(var(--base-two)); }

.article__title { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.article__image { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); }
.article__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { font-size: 1.07rem; line-height: 1.8; }
.article__body p { margin-bottom: 1.25em; }
.article__body h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.article__body h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.article__body li { margin-bottom: .55rem; }
.article__body strong { color: #fff; }
.article__body blockquote {
    margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid hsl(var(--base));
    background: hsl(var(--card-bg) / .7); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: hsl(var(--heading) / .9);
}
.article__body code {
    font-family: var(--mono-font); font-size: .9em; padding: .1em .4em; border-radius: 5px;
    background: hsl(var(--card-bg-two)); color: hsl(var(--base-two));
}
.article__body pre {
    font-family: var(--mono-font); font-size: .9rem; line-height: 1.65; white-space: pre-wrap;
    padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); margin: 1.25rem 0 1.5rem;
    background: hsl(var(--card-bg)); border: 1px solid hsl(var(--border)); color: hsl(var(--heading) / .9);
}
.article__body pre code { background: none; padding: 0; color: inherit; }
.article__cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
    margin: 2.5rem 0 1rem; padding: 1.5rem; border-radius: var(--radius);
    background:
        radial-gradient(80% 140% at 0% 0%, hsl(var(--base-two) / .25), transparent 55%),
        radial-gradient(80% 140% at 100% 100%, hsl(var(--base-three) / .25), transparent 55%),
        hsl(var(--card-bg));
    border: 1px solid hsl(var(--border-two) / .5);
}
.article__cta h3 { margin: 0 0 .25rem; }
.article__cta p { margin: 0; color: hsl(var(--text)); }

/* Category grid: 10 categories as two even rows of 5 on desktop */
.grid--cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 991px) { .grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .grid--cats { grid-template-columns: 1fr; } }
