/* Ayora Zenith – site.css (mobile-first, no build step) */
:root {
  --teal: #44ada8;
  --teal-dark: #1f7f7a;
  --teal-soft: #e8f5f4;
  --ink: #222;
  --ink-soft: #5c5c5c;
  --line: #e6e6e6;
  --panel: #f5f5f5;
  --footer: #eeeeee;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Josefin Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-weight: 400; font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 28px; }
.section-top { padding-top: 22px; padding-bottom: 56px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-lg { width: 24px; height: 24px; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 44px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.nav-toggle:hover { background: var(--panel); }
.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 8px 20px 16px; }
.primary-nav.is-open { display: block; }
.primary-nav a { display: block; padding: 12px 4px; text-decoration: none; font-size: .95rem; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.primary-nav li:last-child a { border-bottom: 0; }
.primary-nav a[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }
@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: block; border: 0; box-shadow: none; padding: 0; background: none; }
  .primary-nav ul { display: flex; gap: 44px; }
  .primary-nav a { border: 0; padding: 8px 0; position: relative; }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ------------------------------------------------------------- typography */
.display { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .01em; }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; font-weight: 300; }
.eyebrow { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; }
.eyebrow a { text-decoration: none; }
.section-heading { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 20px; }
.label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 26px 0 8px; color: var(--ink-soft); }
.label-note { font-weight: 400; letter-spacing: 0; text-transform: none; }
.page-head { margin: 8px 0 22px; }
.page-head .display { margin-bottom: 10px; }
.page-simple { padding-block: 72px; min-height: 50vh; }
.page-simple .display { margin-bottom: 16px; }
.page-simple p { max-width: 56ch; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--panel); padding: 2px 6px; border-radius: 5px; }
.note { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.tip { margin-top: 22px; font-size: .92rem; color: var(--ink-soft); background: var(--teal-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .82rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #b5b5b5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font-size: .9rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; text-decoration: none; background: none; transition: background .15s, color .15s, border-color .15s; line-height: 1.2; }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: #17635f; color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-dark); background: #fff; }
.btn-outline:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-pill { border-color: var(--teal); color: var(--teal-dark); font-weight: 400; letter-spacing: .08em; padding: 9px 30px; background: #fff; font-size: .8rem; }
.btn-pill:hover { background: var(--teal); color: #fff; }
.btn-pill-ghost { border-color: var(--line); color: var(--ink-soft); }
.btn-bucket { border-color: var(--teal); color: var(--teal-dark); background: #fff; width: 100%; }
.btn-bucket:hover { background: var(--teal-soft); }
.btn-bucket[data-in-bucket="true"] { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 6px; }
.btn-link:hover { color: var(--teal-dark); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--panel); }

/* ------------------------------------------------------------------ badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.badge { display: inline-block; font-size: .7rem; line-height: 1; padding: 5px 9px; border-radius: 999px; letter-spacing: .06em; }
.badge-code { background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .1em; }
.badge-lg { font-size: .85rem; padding: 7px 12px; vertical-align: middle; position: relative; top: -.15em; font-family: var(--font-sans); }
.badge-premium { background: #c9a227; color: #fff; }
.badge-model { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.badge-muted { background: var(--panel); color: var(--ink-soft); font-style: italic; }
.card-media .badge-code { position: absolute; top: 10px; left: 10px; }
.badge-live { background: var(--teal); color: #fff; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card-media .badge-premium { position: absolute; top: 10px; right: 10px; }
/* Detail-page LIVE pill only (listing pills unchanged): teal rounded pill, solid white play, tracked uppercase */
.badge-live-detail { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 2px 20px 0 17px; border-radius: 999px; background: #3fb6b0; color: #fff; font-family: var(--font-sans); font-size: .9rem; font-weight: 600; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.badge-live-detail .live-play { width: 16px; height: 16px; margin-top: -2px; }
@media (max-width: 759px) { .badge-live-detail { height: 34px; padding: 2px 17px 0 15px; gap: 8px; font-size: .82rem; } .badge-live-detail .live-play { width: 14px; height: 14px; } }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--teal-soft); }
.hero-img { width: 100%; height: clamp(240px, 42vw, 460px); object-fit: cover; }
.hero-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #1d2b2a; background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.15)); }
.hero-title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 5.5vw, 3.4rem); text-shadow: 0 1px 12px rgba(255,255,255,.7); max-width: 20ch; }
.hero-caption p { margin: 10px 0 0; font-size: clamp(.9rem, 2vw, 1.05rem); max-width: 52ch; text-shadow: 0 1px 10px rgba(255,255,255,.8); }

/* Home banner carousel (config 'hero_slides'): slides cross-fade; the caption stays put and switches tone per slide. */
.hero-carousel { background: #2a221d; }
.hero-slides { position: relative; height: clamp(260px, 44vw, 600px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-carousel .hero-img { height: 100%; }
.hero-carousel .hero-caption { background: none; padding: 20px 20px 48px; }
.hero-caption-inner { display: flex; flex-direction: column; align-items: center; padding: 18px 24px 20px; border-radius: var(--radius); transition: background-color .9s ease, color .9s ease, box-shadow .9s ease; }
.hero-carousel .hero-title, .hero-carousel .hero-caption p { transition: text-shadow .9s ease, color .9s ease; }
.hero-carousel .hero-caption { transition: background .9s ease; }
.hero-carousel.is-tone-dark .hero-caption-inner { color: #fbf6ee; }
.hero-carousel.is-tone-dark .hero-title { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero-carousel.is-tone-dark .hero-caption p { text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero-carousel.is-tone-light .hero-caption-inner { color: #2a2419; background: rgba(255,251,240,.82); box-shadow: 0 6px 24px rgba(80,60,20,.12); }
.hero-carousel.is-tone-light .hero-title, .hero-carousel.is-tone-light .hero-caption p { text-shadow: none; }
@media (max-width: 759px) {
  /* Phones: taller banner, caption at the bottom (below the main subject), controls under it. */
  .hero-slides { height: clamp(340px, 96vw, 440px); }
  .hero-carousel .hero-caption { justify-content: flex-end; padding: 16px 14px 54px; }
  .hero-carousel.is-tone-dark .hero-caption { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(20,14,10,.72) 100%); }
  .hero-caption-inner { padding: 12px 16px 14px; }
  .hero-carousel .hero-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-carousel .hero-caption p { font-size: .88rem; margin-top: 6px; }
}
@media (min-width: 760px) {
  /* Caption on the left, over the open space of the dark banner; same spot on every slide so it never jumps. */
  .hero-carousel .hero-caption { align-items: flex-start; text-align: left; padding: 24px max(28px, calc((100vw - 1200px) / 2 + 20px)); }
  .hero-caption-inner { align-items: flex-start; max-width: min(40%, 520px); padding: 24px 30px; }
}
.hero-controls { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.32); }
.hero-dot, .hero-pause { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.hero-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background-color .2s, transform .2s; }
.hero-dot[aria-current="true"]::before { background: #fff; transform: scale(1.2); }
.hero-pause-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-pause[aria-pressed="true"] .hero-pause-icon { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hero-dot:focus-visible, .hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-caption-inner, .hero-carousel .hero-title, .hero-carousel .hero-caption p { transition: none; } }

/* "Prompts used" credit under a banner (config 'banner_info' -> prompts_used): small wrapping code chips. */
.banner-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; color: var(--ink-soft); }
.banner-credit[hidden] { display: none; }
.banner-credit-label { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.banner-credit-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.banner-credit-code { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--panel); color: var(--teal-dark); font-size: .74rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.banner-credit-code:hover { background: var(--teal-soft); }
.banner-credit-code:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
/* Credit inside a dark banner (home caption, /prompts banner): light label, chips on a soft translucent ground. */
.hero-caption .banner-credit, .lib-hero-caption .banner-credit { margin: 14px 0 0; color: #f3ebdf; }
.hero-caption .banner-credit-label, .lib-hero-caption .banner-credit-label { color: #f3ebdf; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero-caption .banner-credit-code, .lib-hero-caption .banner-credit-code { background: rgba(250,246,238,.92); color: var(--teal-dark); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hero-caption .banner-credit-code:hover, .lib-hero-caption .banner-credit-code:hover { background: #fff; }
.hero-caption .banner-credit-code:focus-visible, .lib-hero-caption .banner-credit-code:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-carousel.is-tone-light .hero-caption .banner-credit, .hero-carousel.is-tone-light .hero-caption .banner-credit-label { color: #2a2419; text-shadow: none; }
.hero-carousel.is-tone-light .hero-caption .banner-credit-code { background: var(--panel); box-shadow: none; }
@media (max-width: 759px) {
  .hero-caption .banner-credit { justify-content: center; margin-top: 10px; gap: 5px 8px; }
  .hero-caption .banner-credit-list { justify-content: center; }
  .hero-carousel .hero-slides { height: clamp(430px, 118vw, 520px); }
}
@media (min-width: 760px) { .hero-caption .banner-credit { justify-content: flex-start; } }
@media (min-width: 760px) and (max-width: 1099px) { .hero-carousel .hero-slides { height: clamp(430px, 52vw, 560px); } }

/* /prompts banner with tagline + credit. Phones/tablets: a dark strip under the image; desktop: over the open left side. */
.lib-hero { position: relative; }
.lib-hero.lib-hero-has-caption { background: #2b221c; }
.lib-hero-caption { padding: 14px 16px 16px; color: #f3ebdf; }
.lib-hero-caption[hidden] { display: none; }
.lib-hero-tagline { margin: 0; font-size: .9rem; line-height: 1.5; }
.lib-hero-caption .banner-credit { margin-top: 10px; }
@media (min-width: 960px) {
  .lib-hero-has-caption img { aspect-ratio: 3 / 1; }
  .lib-hero-caption { position: absolute; top: 0; bottom: 0; left: 0; width: 42%; display: flex; flex-direction: column; justify-content: center;
    padding: 18px 22px 18px 26px; background: linear-gradient(90deg, rgba(30,22,17,.55), rgba(30,22,17,.25) 75%, rgba(30,22,17,0)); }
  .lib-hero-tagline { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
}

/* ------------------------------------------------------------ category tiles */
.tile-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tile { display: block; text-decoration: none; text-align: center; }
.tile img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); transition: transform .25s; }
.tile:hover img { transform: translateY(-3px); }
.tile-label { display: block; margin-top: 12px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
@media (min-width: 560px) { .tile-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tile-row { grid-template-columns: repeat(var(--tiles, 6), 1fr); gap: 22px; } }

/* ------------------------------------------------------------ feature row */
.feature { display: grid; gap: 0; grid-template-columns: 1fr; }
.feature-panel { background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 22px clamp(16px, 4vw, 40px); container-type: inline-size; min-width: 0; }
.feature-title { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 500; letter-spacing: .03em; max-width: 100%; text-align: center; overflow-wrap: normal; }
@container (max-width: 400px) { .feature-title { font-size: clamp(1.3rem, 19cqi, 2.2rem); letter-spacing: .015em; } .feature-title-long { font-size: clamp(1rem, 15.5cqi, 2.2rem); letter-spacing: .01em; } }
.feature-media { display: block; line-height: 0; }
.feature-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.feature-body { padding: 24px 4px 0; display: flex; flex-direction: column; justify-content: center; }
.feature-name { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 4px 0 14px; }
.feature-name a { text-decoration: none; }
.feature-text { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.soon-row.soon-row-single { grid-template-columns: 1fr; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: clamp(200px, 19vw, 260px) minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; }
  .feature-panel { padding: 0 clamp(16px, 4vw, 40px); }
  .feature-media { margin-left: 12px; }
  .feature-media img { height: 100%; min-height: 280px; }
  .feature-body { padding: 8px 0 8px 32px; }
}

/* ---------------------------------------------------------------- copy box */
.copybox { position: relative; border: 1px dashed var(--teal); border-radius: 10px; padding: 14px 52px 14px 16px; background: #fff; }
.copybox-text { margin: 0; font-size: .92rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.copybox-sm .copybox-text { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
.copybox-neg { border-color: #d9a8a8; background: #fffafa; }
.copy-btn { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; padding: 6px; border-radius: 8px; }
.copy-btn:hover { background: var(--teal-soft); color: var(--teal-dark); }
.copy-btn.is-done { color: var(--teal-dark); }
.copy-btn-text { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line); background: #fff; }
.copybox:has(.copy-btn-text) { padding-right: 16px; padding-bottom: 52px; }
.copybox:has(.copy-btn-text) .copy-btn { top: auto; bottom: 10px; right: 10px; }

/* ----------------------------------------------------------------- grids */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1020px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1019px) { .grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .grid { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card-media { position: relative; line-height: 0; background: var(--panel); }
.card-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.card-body { padding: 14px 16px 16px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 4px; }
.card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.2; margin-bottom: 10px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .badges { justify-content: center; margin-top: auto; }
.card .btn-bucket { position: relative; z-index: 2; }
.card .badges { position: relative; z-index: 0; }

/* ----------------------------------------------------------------- library */
.tagrow { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--ink-soft); }
.tagrow a { text-decoration: none; }
.tagrow a:hover { text-decoration: underline; color: var(--teal-dark); }
.tagrow-inline { gap: 4px 12px; }
.result-count { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------------ detail */
.detail { display: grid; gap: 28px; margin-top: 18px; }
.detail-media { display: grid; gap: 14px; align-content: start; }
.detail-fig { margin: 0; }
.detail-fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.detail-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.meta { margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.meta > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.meta dt { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.meta dd { margin: 0; font-size: .95rem; }
.meta .badges { margin: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail-actions .btn-bucket { width: auto; }
.related { margin-top: 64px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .detail-media { position: sticky; top: 88px; }
}

/* -------------------------------------------------------- "coming soon" row */
.soon-row { display: grid; gap: 16px; }
.soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--panel); border-radius: var(--radius); padding: 38px clamp(16px, 4vw, 32px); text-align: center; container-type: inline-size; text-decoration: none; transition: background .2s; }
.soon:hover { background: var(--teal-soft); }
.soon-title { font-family: var(--font-display); font-size: clamp(1.3rem, 6vw, 1.7rem); letter-spacing: .05em; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 360px) { .soon-title { letter-spacing: .02em; } }
.soon-tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-dark); }
@media (min-width: 700px) { .soon-row { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--footer); margin-top: 40px; color: #333; }
.footer-main { text-align: center; padding-block: 44px 34px; }
.footer-title { font-size: .95rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 16px; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; font-size: .85rem; margin-bottom: 20px; }
.footer-contact li { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact a { text-decoration: none; }
.footer-social { display: flex; justify-content: center; gap: 18px; }
.footer-social a { display: inline-flex; padding: 6px; color: #555; }
.footer-social a:hover { color: var(--teal-dark); }
.footer-bar { background: #fafafa; border-top: 1px solid var(--line); font-size: .78rem; color: #555; }
.footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 16px; }
.footer-bar p { margin: 0; }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ bucket */
.bucket-fab { position: fixed; right: 18px; bottom: 40px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--teal-dark); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.bucket-fab:hover { background: #17635f; transform: translateY(-2px); }
.bucket-fab.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.15); } }
.bucket-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--teal-dark); border: 2px solid var(--teal-dark); font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.bucket-fab .bucket-count[data-zero="true"] { display: none; }

.bucket-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.bucket-overlay.is-open { opacity: 1; visibility: visible; }
.bucket-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; box-shadow: -10px 0 40px rgba(0,0,0,.15); outline: none; }
.bucket-drawer.is-open { transform: none; visibility: visible; }
.bucket-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.bucket-head h2 { font-family: var(--font-display); font-size: 1.7rem; }
.bucket-head-count { font-family: var(--font-sans); font-size: 1rem; color: var(--ink-soft); }
.bucket-hint { font-size: .82rem; color: var(--ink-soft); padding: 0 20px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.bucket-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.bucket-list { display: grid; }
.bucket-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bucket-item img { width: 56px; height: 46px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.bucket-item-title { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.bucket-item-title a { text-decoration: none; }
.bucket-item-meta { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8a8a; display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.bucket-item-meta .badge-code { font-size: .65rem; padding: 3px 7px; }
.bucket-empty { text-align: center; color: var(--ink-soft); padding: 40px 10px; font-size: .92rem; }
.bucket-actions { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: stretch; background: #fff; }
.bucket-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bucket-actions .btn-link { justify-self: center; }
.bucket-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 150; max-width: calc(100% - 40px); text-align: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

body.drawer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ------------------------------------------------------------------ cookie banner (inc/cookie-banner.php) */
.az-cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 120; width: calc(100% - 24px); max-width: 640px; box-sizing: border-box; padding: 14px 18px; border-radius: var(--radius); background: rgba(34, 34, 34, .96); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.3); font-size: .92rem; line-height: 1.45; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.az-cookie[hidden] { display: none; }
.az-cookie p { margin: 0; flex: 1 1 260px; color: #fff; }
.az-cookie a, .az-cookie .cookie-settings-link { color: #9fe0dc; text-decoration: underline; }
.az-cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.az-cookie-btn { min-width: 96px; padding: 8px 16px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.az-cookie-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.az-cookie-close { margin-left: auto; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.az-cookie-notice { max-width: 520px; padding: 10px 12px 10px 18px; font-size: .86rem; flex-wrap: nowrap; }
.az-cookie button:focus-visible, .az-cookie a:focus-visible, .cookie-settings-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cookie-settings-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-bar .cookie-settings-link:hover { text-decoration: underline; }
@media (max-width: 480px) { .az-cookie { bottom: 8px; font-size: .86rem; } .az-cookie-actions { width: 100%; } .az-cookie-actions .az-cookie-btn { flex: 1; } }
@media print { .site-header, .bucket-fab, .bucket-drawer, .bucket-overlay, .toast, .az-cookie { display: none !important; } }

/* ======================================================== wallpapers gallery */
.filter-selects { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 9px 36px 9px 15px; font: inherit; font-size: .84rem; color: var(--ink); max-width: 100%; cursor: pointer; }
.select select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(68,173,168,.25); }

/* detail */
.detail-wallpaper .detail-media { position: static; }
.wp-fig img { aspect-ratio: auto; height: auto; object-fit: contain; }
.wp-fig figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.wp-fig video { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #000; max-height: 80vh; }
.wallpaper-mobile.detail-wallpaper .detail-media { grid-template-columns: 1fr; justify-items: center; }
.wallpaper-mobile.detail-wallpaper .wp-fig { width: 100%; max-width: 420px; }
.badge-res { background: var(--panel); color: var(--ink-soft); border: 1px solid var(--line); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.dl-meta { font-size: .8rem; color: var(--ink-soft); }
.licence-note { margin-top: 14px; }
.related .section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 500; margin: 0 0 18px; }
.related-more { text-align: center; margin-top: 18px; }
@media (min-width: 900px) { .detail-wallpaper { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .wallpaper-mobile.detail-wallpaper { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); } }

/* licence page */
.prose { max-width: 70ch; line-height: 1.7; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.note-review { background: #fff8e6; border: 1px solid #ecd9a0; color: #6b5300; border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; max-width: 70ch; }
@media (min-width: 520px) { .detail-wallpaper .detail-media.detail-media-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; justify-items: stretch; } .detail-wallpaper .detail-media-multi .wp-fig { max-width: none; } }
.dl-list .btn-pill.btn-primary { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.dl-list .btn-pill.btn-primary:hover { background: #17635f; color: #fff; }
.dl-list .btn-pill { padding: 10px 24px; }
@media (max-width: 519px) {
  .detail-wallpaper .detail-media.detail-media-multi { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; margin-right: -20px; padding-right: 20px; }
  .detail-wallpaper .detail-media-multi .wp-fig { flex: 0 0 74%; max-width: none; scroll-snap-align: start; }
}

/* ===================================================== shared card grid (prompts + wallpapers)
   One component: .grid-cards + .card. 2 columns on phones, 3 on tablet, 4 on desktop. */
.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1020px) { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 440px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-cards .card-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.grid-cards .card-body > .btn { margin-top: auto; }
.grid-cards .card .badges { margin-top: auto; }
.grid-cards .card .badges + .btn { margin-top: 0; }
.card-title a:hover, .card:hover .card-title a { color: var(--teal-dark); }
.btn-short { display: none; }
a.btn-bucket:hover { color: var(--teal-dark); }
/* wallpaper card: uniform 3:4 (phone-friendly) cover crop, focus on the top of the image */
.wallpaper-card .card-media img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; }
.wallpaper-card .card-body { justify-content: flex-start; }
.card-media .badge-live { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .1em; }

/* phones: compact cards */
@media (max-width: 639px) {
  .grid-cards .card-body { padding: 10px 10px 12px; }
  .grid-cards .card-cat { font-size: .6rem; letter-spacing: .1em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .grid-cards .card-title { font-size: 1rem; line-height: 1.2; margin-bottom: 8px; }
  .grid-cards .card .badges { display: none; }
  .grid-cards .card-media .badge { font-size: .6rem; padding: 4px 7px; top: 7px; left: 7px; }
  .grid-cards .card .btn-bucket { min-height: 40px; padding: 8px 10px; font-size: .8rem; gap: 6px; letter-spacing: .02em; margin-top: auto; }
  .grid-cards .card .btn-label { display: none; }
  .grid-cards .card .btn-short { display: inline; }
  .grid-cards .card-media .badge { font-size: .58rem; }
  .grid-cards .card:hover { transform: none; }
}


/* ============================================ library layout: /prompts, /wallpapers and their category pages
   Desktop: sticky sidebar (~21%) + main column (hero banner, then the shared card grid).
   Phones/tablets: the sidebar collapses to title + search + a one-row scrolling category strip above the hero. */
.layout-library .container { max-width: 1480px; }
.lib { padding-bottom: 56px; }
.lib-side { padding: 20px 0 6px; }
.lib-title { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--teal); }
.lib-search { position: relative; margin: 0 0 12px; border-bottom: 1px solid #b9b9b9; }
.lib-search:focus-within { border-bottom-color: var(--teal); box-shadow: 0 1px 0 var(--teal); }
.lib-search input { width: 100%; border: 0; background: transparent; padding: 10px 30px 10px 0; font-size: .9rem; color: var(--ink); min-height: 40px; -webkit-appearance: none; appearance: none; border-radius: 0; }
.lib-search input:focus { outline: none; }
.lib-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lib-search input::placeholder { color: #8a8a8a; }
.lib-search-icon { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6f6f6f; pointer-events: none; }
.lib-licence { display: none; font-size: .8rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; }
.lib-licence a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.lib-intro { display: none; font-size: .82rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; }
.lib-cats { list-style: none; margin: 0; padding: 0; scroll-padding-inline: 20px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
            margin: 0 -20px; padding: 2px 20px 8px; }
.lib-cats::-webkit-scrollbar { display: none; }
.lib-cats li { flex: none; scroll-snap-align: start; }
.lib-cat { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #6f6f6f; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.lib-cat:hover { color: var(--teal-dark); border-color: var(--teal); }
.lib-cat[aria-current] { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.lib-cat-n { font-size: .75rem; opacity: .75; }
.lib-main { min-width: 0; padding-top: 4px; }
.lib-hero { margin: 4px 0 18px; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.lib-hero img { display: block; width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
.lib .empty[hidden] { display: none; }
@media (min-width: 640px) { .lib-hero img { aspect-ratio: 3 / 1; } }

@media (min-width: 960px) {
  .lib { display: grid; grid-template-columns: minmax(210px, 21%) minmax(0, 1fr); column-gap: clamp(28px, 3.2vw, 56px); align-items: start; }
  .lib-side { position: sticky; top: 76px; padding: 34px 0 0; max-height: calc(100vh - 88px); overflow-y: auto; scrollbar-width: thin; }
  .lib-title { font-size: 1.05rem; margin-bottom: 18px; }
  .lib-intro { display: block; }
  .lib-licence { display: block; }
  .lib-cats { display: block; overflow: visible; margin: 0; padding: 0; scroll-padding-inline: 0; }
  .lib-cats li { border-bottom: 1px solid var(--line); }
  .lib-cats li:first-child { border-top: 1px solid var(--line); }
  .lib-cat { display: flex; justify-content: space-between; gap: 12px; min-height: 0; padding: 12px 2px; border: 0; border-radius: 0; background: none; font-size: .86rem; white-space: normal; line-height: 1.3; }
  .lib-cat:hover { background: none; color: var(--teal-dark); }
  .lib-cat[aria-current] { background: none; color: var(--teal-dark); font-weight: 600; }
  .lib-cat-n { flex: none; }
  .lib-main { padding-top: 34px; }
  .lib-hero { margin: 0 0 26px; }
  .lib-hero img { aspect-ratio: 3.5 / 1; }
}
@media (min-width: 960px) and (max-width: 1099px) { .lib .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lib .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 639px) { .lib-hero { margin-bottom: 14px; } }

/* About page */
.about-grid { display: grid; gap: 28px; margin-top: 8px; }
.about-fig { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(31, 79, 76, .14); align-self: start; max-width: 380px; }
.about-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.about .prose { max-width: 62ch; }
.about .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
  .about-fig { position: sticky; top: 88px; justify-self: end; max-width: 420px; }
}

/* Wallpaper masonry (/wallpapers and /wallpapers/category/*): image-only tiles of varied heights (see wallpaper_tile_ratio()),
   type + LIVE pills top-left, rounded corners, soft shadow, generous gaps */
.masonry { --mgap: 14px; column-count: 2; column-gap: var(--mgap); padding: 4px 2px 2px; }
.masonry.is-js { column-count: auto; display: flex; align-items: flex-start; gap: var(--mgap); }
.masonry-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--mgap); }
.wallpaper-tile { position: relative; display: block; break-inside: avoid; margin: 0 0 var(--mgap); border-radius: 16px; background: var(--panel); line-height: 0; box-shadow: 0 2px 4px rgba(30, 40, 40, .05), 0 8px 24px rgba(30, 40, 40, .10); transition: transform .25s ease, box-shadow .25s ease; }
.wallpaper-tile[hidden] { display: none; }
.is-js .wallpaper-tile { margin: 0; }
.tile-link { display: block; position: relative; overflow: hidden; border-radius: 16px; color: inherit; text-decoration: none; background: var(--panel); }
.tile-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .45s ease; }
.tile-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; line-height: 1; }
.tile-badges .badge { font-size: .72rem; padding: 6px 11px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tile-badges .badge-type { background: #fff; color: var(--ink); border: 0; }
.tile-badges .badge-live { background: var(--teal); color: #fff; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tile-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) {
  .wallpaper-tile:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(30, 40, 40, .06), 0 16px 34px rgba(30, 40, 40, .18); }
  .wallpaper-tile:hover .tile-link img { transform: scale(1.04); }
}
@media (min-width: 760px) { .masonry { --mgap: 20px; column-count: 3; } }
@media (min-width: 1100px) { .masonry { --mgap: 24px; column-count: 4; } }
@media (max-width: 759px) { .wallpaper-tile, .tile-link { border-radius: 14px; } .tile-badges { top: 8px; left: 8px; gap: 4px; } .tile-badges .badge { font-size: .62rem; padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .wallpaper-tile, .tile-link img { transition: none; } .wallpaper-tile:hover, .wallpaper-tile:hover .tile-link img { transform: none; } }
