/* InkGen Showcase — structure & visual (Phase S3A + visual-fix round)
 * Reuses the site's dark-glass + gold design language (see
 * assassin-homepage-raw-html.html for the source tokens).
 * The root container stays fully transparent: the WordPress theme's own
 * page background must remain visible behind this page. No page-level
 * opaque background, no full-page color wash, no fixed page-wide glow.
 */

/* ------------------------------------------------------------------------
 * Showcase-only: hide the theme's own page-title block.
 * Scoped strictly to body.inkgen-showcase-page (added via the body_class
 * filter in ai-concepts.php, only on pages whose content actually contains
 * the Showcase shortcode) — this can never affect any other page.
 * Confirmed via live DOM inspection: Twenty Twenty-Four renders the page
 * title as an .wp-block-post-title <h1> inside its own
 * .wp-block-group.has-global-padding.is-layout-constrained wrapper (plus
 * two .wp-block-spacer siblings and nothing else in that wrapper), so
 * hiding that specific wrapper removes the title AND the blank space its
 * spacers reserve, without a blanket rule hiding every entry-title on the site.
 * :has() is required for the wrapper-level rule; the direct-element rule
 * below is a fallback for browsers without :has() support (title text
 * disappears either way, only the extra spacer gap wouldn't collapse).
 */
body.inkgen-showcase-page .wp-block-post-title {
    display: none !important;
}
body.inkgen-showcase-page .wp-block-group:has(> .wp-block-post-title) {
    display: none !important;
}

/* Scoped to the Showcase root only — never a bare global .sr-only rule that
   could collide with another module's own .sr-only definition. */
.inkgen-showcase-root .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * Allow only the page-content Bootstrap container that owns Showcase
 * to reach the viewport width. The gallery itself remains capped by
 * #inkgen-concepts-wrapper, and other theme containers stay untouched.
 */
body.inkgen-showcase-page .container:has(#inkgen-concepts-wrapper) {
    max-width: none;
}

#inkgen-concepts-wrapper {
    --ic-bone: #e8e2d9;
    --ic-dim: #aaa198;
    --ic-gold: #c8a96e;
    --ic-gold-bright: #dfc184;
    /* Phase S3A-C1: deeper gold for the Hero kicker only — the plain --ic-gold
       is too light to read reliably on a white/light theme background. Used
       ONLY for the small kicker accent, never for body copy. Lightbox gold
       (buttons/borders/focus) is untouched and keeps using --ic-gold(-bright). */
    --ic-gold-deep: #8a6a2f;
    --ic-line: rgba(232, 226, 217, .14);
    --ic-glass-border: rgba(255, 255, 255, .14);
    --ic-glass-bg: rgba(13, 11, 8, .42);
    --ic-glow-cool: 45, 120, 255;
    --ic-glow-warm: 255, 92, 36;
    --ic-radius: 14px;
    --ic-ease: cubic-bezier(.16, 1, .3, 1);

    background-color: transparent;
    /* Phase S3A-C1: inherit the surrounding WordPress theme's real text
       color instead of hardcoding the dark-theme-only --ic-bone. On a dark
       theme the theme itself already supplies a light, readable color; on a
       light theme (e.g. Twenty Twenty-Four) this now resolves to the
       theme's own dark body text instead of near-invisible off-white.
       Elements that must stay a fixed dark-glass color regardless of the
       page theme (the Lightbox, and the card hover caption, which both sit
       on their own always-dark local background) keep their own explicit
       var(--ic-bone)/var(--ic-dim) declarations below and are unaffected. */
    color: inherit;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
#inkgen-concepts-wrapper,
#inkgen-concepts-wrapper * ,
#inkgen-concepts-wrapper *::before,
#inkgen-concepts-wrapper *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.inkgen-hero {
    padding: 44px 0 36px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    background: transparent;
}
.inkgen-hero-kicker {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 15px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ic-gold-deep); /* deep enough to read on a light theme, still gold on dark */
}
.inkgen-hero-heading {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-weight: 400;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: .01em;
    line-height: 1.05;
    color: currentColor; /* was var(--ic-bone) — follow the theme's real text color */
}
.inkgen-hero-desc {
    margin: 16px auto 0;
    max-width: 620px;
    color: #767676; /* static fallback for browsers without color-mix() */
    color: color-mix(in srgb, currentColor 68%, transparent);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
}
.inkgen-hero-ctas {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 12px; margin-top: 24px;
}

/* ---------------------------------------------------------------------- */
/* Buttons (shared: hero / section / bottom CTA / load more / retry)      */
/* Natural content width — never full-bleed/block on desktop.             */
/* ---------------------------------------------------------------------- */
.inkgen-cta-btn {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
    width: auto; min-height: 46px; padding: 12px 22px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
    border-radius: 4px; border: 1px solid transparent;
    cursor: pointer; background-clip: padding-box;
    transition: transform .22s var(--ic-ease), background-color .22s ease, color .22s ease, border-color .22s ease;
}
.inkgen-cta-btn:hover { transform: translateY(-2px); }
.inkgen-cta-btn--primary { background: var(--ic-gold); color: #0b0907; border-color: var(--ic-gold); }
.inkgen-cta-btn--primary:hover { background: transparent; color: var(--ic-gold-bright); border-color: var(--ic-gold-bright); }
.inkgen-cta-btn--secondary {
    background: rgba(255, 255, 255, .05);
    color: inherit; /* was var(--ic-bone) — inside the Lightbox this still resolves to bone via .inkgen-modal-info's explicit color; on the page it follows the theme */
    border-color: rgba(120, 110, 95, .4); /* static fallback for browsers without color-mix() */
    border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.inkgen-cta-btn--secondary:hover { color: var(--ic-gold-bright); border-color: var(--ic-gold); background: rgba(255, 255, 255, .08); }
.inkgen-cta-btn:focus-visible { outline: 2px solid var(--ic-gold); outline-offset: 2px; }

@media (max-width: 480px) {
    .inkgen-hero-ctas { flex-direction: column; align-items: stretch; }
    .inkgen-hero-ctas .inkgen-cta-btn { width: 100%; }
}

/* ---------------------------------------------------------------------- */
/* Approved / Community Concepts section                                  */
/* ---------------------------------------------------------------------- */
.inkgen-approved-section { padding: 20px 0 20px; background: transparent; }
.inkgen-section-head {
    text-align: center;
    max-width: 1460px;
    margin: 0 auto 34px;
}
.inkgen-section-heading {
    margin: 0; font-family: "Bebas Neue", sans-serif; font-weight: 400;
    font-size: clamp(24px, 3vw, 32px); letter-spacing: .04em;
    color: currentColor; /* was var(--ic-bone) — follow the theme's real text color */
    text-align: center;
}
.inkgen-section-sub {
    margin: 8px 0 0; font-size: 14px; text-align: center;
    color: #767676; /* static fallback for browsers without color-mix() */
    color: color-mix(in srgb, currentColor 68%, transparent);
}

/* ---------------------------------------------------------------------- */
/* Phase C1-D: Tab (All/Featured/Latest) + Style filter bar                */
/* ---------------------------------------------------------------------- */
.inkgen-filters-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 12px 20px;
    max-width: 1460px; margin: 0 auto 28px; padding: 0 4px;
}
.inkgen-tablist {
    display: inline-flex; flex-wrap: wrap; gap: 6px;
    padding: 4px; border-radius: 999px;
    border: 1px solid rgba(120, 110, 95, .35);
    background: rgba(255, 255, 255, .03);
}
.inkgen-tab {
    appearance: none; -webkit-appearance: none; border: none; background: transparent;
    cursor: pointer; min-height: 40px; padding: 9px 18px;
    border-radius: 999px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: inherit; opacity: .68;
    transition: background-color .2s ease, opacity .2s ease, color .2s ease;
}
.inkgen-tab:hover { opacity: 1; }
.inkgen-tab.is-active { background: var(--ic-gold); color: #0b0907; opacity: 1; }
.inkgen-tab:focus-visible { outline: 2px solid var(--ic-gold); outline-offset: 2px; }

.inkgen-style-filter-wrap { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.inkgen-style-filter-label {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: inherit; opacity: .7; white-space: nowrap;
}
.inkgen-style-select {
    min-height: 40px; max-width: 220px;
    padding: 8px 30px 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 110, 95, .4);
    background-color: rgba(255, 255, 255, .03);
    color: inherit;
    font-family: "DM Sans", sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
    cursor: pointer;
}
.inkgen-style-select:focus-visible { outline: 2px solid var(--ic-gold); outline-offset: 2px; }
/* Phase C1-D-F1: the native <select> dropdown POPUP (Windows Chrome
   confirmed) renders with its own OS-controlled white background
   regardless of .inkgen-style-select's own dark translucent background —
   but no <option> color/background was ever declared, so option text
   inherited the closed-state's near-white `color: inherit`, making every
   unselected/unhovered option invisible against that white popup (only
   the OS's own blue hover/keyboard-focus highlight made one momentarily
   readable). Scoped strictly to this one control's own popup — never a
   bare `select option` rule that would repaint every other <select> on
   the site. The closed-state select itself (dark bg/white text) is
   untouched by this rule.  */
#inkgen-style-filter option {
    color: #111;
    background-color: #fff;
}

@media (max-width: 480px) {
    .inkgen-filters-bar { flex-direction: column; align-items: stretch; }
    .inkgen-tablist { justify-content: center; }
    .inkgen-style-filter-wrap { justify-content: center; }
    .inkgen-style-select { max-width: none; width: 100%; }
}

/* ---------------------------------------------------------------------- */
/* Grid — responsive column counts, shares the section's visual center    */
/* ---------------------------------------------------------------------- */
.inkgen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 1460px;
    margin: 0 auto;
}
@media (min-width: 768px)  { .inkgen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .inkgen-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1600px) { .inkgen-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */
.inkgen-card {
    position: relative; min-width: 0;
    border-radius: var(--ic-radius); overflow: hidden;
    /* Phase S3A-C1: var(--ic-glass-border) (near-white, 14% alpha) is
       effectively invisible against a white/light theme background. A
       neutral warm-gray border plus a very light shadow gives a visible
       edge on both light and dark themes without turning the card into a
       heavy dark panel — the hover state below still fully replaces this
       with its existing gold-glow box-shadow. */
    border: 1px solid rgba(120, 110, 95, .35);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .03);
    aspect-ratio: 4 / 5;
    isolation: isolate;
    opacity: 0; animation: inkgenCardIn .5s var(--ic-ease) forwards;
    transition: transform .32s var(--ic-ease), border-color .3s ease, box-shadow .3s ease;
}
@keyframes inkgenCardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.inkgen-card .inkgen-trigger { display: block; width: 100%; height: 100%; }
.inkgen-card img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    background: rgba(255, 255, 255, .02);
    display: block;
    transition: transform .5s var(--ic-ease);
}
@media (hover: hover) and (pointer: fine) {
    .inkgen-card:hover,
    .inkgen-card:focus-within {
        transform: translateY(-3px);
        border-color: rgba(200, 169, 110, .32);
        box-shadow:
            0 14px 32px rgba(0, 0, 0, .35),
            0 0 22px rgba(var(--ic-glow-cool), .08),
            0 0 22px rgba(var(--ic-glow-warm), .06);
    }
    .inkgen-card:hover img,
    .inkgen-card:focus-within img { transform: scale(1.02); }
}
.inkgen-card-meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(9, 8, 6, .92) 0%, rgba(9, 8, 6, 0) 100%);
    transform: translateY(100%);
    transition: transform .3s var(--ic-ease);
}
.inkgen-card:hover .inkgen-card-meta,
.inkgen-card:focus-within .inkgen-card-meta { transform: translateY(0); }
.inkgen-card-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
    margin: 0; font-size: 11px; font-weight: 500; line-height: 1.4; color: var(--ic-bone);
}
/* Touch devices: no hover, so the caption stays visible — the full prompt
   is one tap away in the Lightbox regardless. */
@media (hover: none), (pointer: coarse) {
    .inkgen-card-meta { transform: translateY(0); background: linear-gradient(to top, rgba(9, 8, 6, .88) 0%, rgba(9, 8, 6, 0) 100%); }
}

/* ---------------------------------------------------------------------- */
/* Skeleton loading state                                                  */
/* ---------------------------------------------------------------------- */
.inkgen-skeleton-card {
    aspect-ratio: 4 / 5;
    border-radius: var(--ic-radius);
    border: 1px solid var(--ic-glass-border);
    background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%);
    background-size: 200% 100%;
    animation: inkgenShimmer 1.8s ease-in-out infinite;
}
@keyframes inkgenShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------------------------------------------------------------- */
/* Empty / Error states                                                    */
/* ---------------------------------------------------------------------- */
.inkgen-empty-state, .inkgen-error-state {
    text-align: center; padding: 48px 20px; color: var(--ic-dim); font-size: 14px;
}
.inkgen-empty-state p, .inkgen-error-state p { margin: 0 0 18px; }

/* ---------------------------------------------------------------------- */
/* Load More                                                               */
/* ---------------------------------------------------------------------- */
.inkgen-pagination-wrap { text-align: center; margin-top: 40px; }
.inkgen-load-more-btn {
    min-height: 46px; padding: 12px 28px;
    background: transparent;
    color: inherit; /* was var(--ic-bone) — same secondary-CTA-style contrast fix */
    border-radius: 4px;
    border: 1px solid rgba(120, 110, 95, .4); /* static fallback for browsers without color-mix() */
    border-color: color-mix(in srgb, currentColor 35%, transparent);
    font-family: "DM Sans", sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.inkgen-load-more-btn:hover:not(:disabled) { border-color: var(--ic-gold); color: var(--ic-gold-bright); }
.inkgen-load-more-btn:disabled { opacity: .5; cursor: default; }
.inkgen-load-more-btn:focus-visible { outline: 2px solid var(--ic-gold); outline-offset: 2px; }

/* ---------------------------------------------------------------------- */
/* Bottom CTA — Homepage-style glass strip, not a page-wide band.          */
/* Outer section stays transparent; only the inner card is a local glass  */
/* surface (matches .ath-cta-strip / .ath-card token language).           */
/* ---------------------------------------------------------------------- */
.inkgen-bottom-cta { padding: 44px 0; margin-top: 12px; background: transparent; }
.inkgen-bottom-cta-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 28px 32px;
    background: var(--ic-glass-bg);
    border: 1px solid var(--ic-glass-border);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.inkgen-bottom-cta-copy h2 {
    margin: 0; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(20px, 2.6vw, 27px);
    color: currentColor; /* was var(--ic-bone) — the glass card behind it is only ~42% opaque, not dark enough on its own for bone text on a light theme */
}
.inkgen-bottom-cta-copy p {
    margin: 6px 0 0;
    color: #767676; /* static fallback for browsers without color-mix() */
    color: color-mix(in srgb, currentColor 68%, transparent);
}
.inkgen-bottom-cta-inner .inkgen-cta-btn { flex: 0 0 auto; }

@media (max-width: 640px) {
    .inkgen-bottom-cta-inner { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
    .inkgen-bottom-cta-inner .inkgen-cta-btn { width: 100%; }
}

.inkgen-disclaimer {
    text-align: center; padding: 24px 20px 44px;
    font-size: 11px; letter-spacing: .02em; line-height: 1.6;
    background: transparent;
    color: #767676; /* static fallback for browsers without color-mix() */
    color: color-mix(in srgb, currentColor 68%, transparent);
}

/* ---------------------------------------------------------------------- */
/* Lightbox                                                                */
/* ---------------------------------------------------------------------- */
#inkgen-modal {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(5, 4, 3, .92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; opacity: 0;
    align-items: center; justify-content: center;
    padding: 20px;
    transition: opacity .25s ease;
}
#inkgen-modal.active { display: flex; opacity: 1; }
.inkgen-modal-content {
    position: relative;
    width: 100%; max-width: 1080px; max-height: 90vh;
    display: flex; flex-direction: column;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .015) 20%, rgba(10, 9, 8, .94) 55%, rgba(10, 9, 8, .96) 100%);
    border: 1px solid var(--ic-glass-border, rgba(255, 255, 255, .14));
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    overflow: hidden;
}
@media (min-width: 768px) {
    .inkgen-modal-content { flex-direction: row; min-height: 460px; }
    .inkgen-modal-img-box { flex: 3; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; padding: 24px; }
    .inkgen-modal-info { flex: 2; border-left: 1px solid var(--ic-glass-border, rgba(255, 255, 255, .12)); }
}
@media (max-width: 767px) {
    /* P1 fix: the whole panel must NOT be the scroll container on mobile —
       only .inkgen-modal-info scrolls internally, so Close/Prev/Next (which
       live outside .inkgen-modal-info) never move with a long Prompt. */
    .inkgen-modal-content { max-height: 92vh; overflow: hidden; }
    .inkgen-modal-img-box {
        flex: 0 0 auto; max-height: 38vh;
        padding: 16px; background: rgba(0, 0, 0, .3);
        display: flex; align-items: center; justify-content: center;
    }
    .inkgen-modal-info { flex: 1 1 auto; padding: 22px; }
}
.inkgen-modal-img-box {
    position: relative; /* positioning context for prev/next — NOT the whole modal */
}
.inkgen-modal-img-box img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}
/* Phase S4-F: this mobile override MUST come after the base
   .inkgen-modal-img-box img rule above — equal-specificity selectors
   resolve by source order, not by which @media condition currently
   matches. The old mobile-first placement of this same override (before
   the base rule) was silently losing the cascade tie to the base rule's
   max-height:78vh at every viewport width, letting a tall/portrait image
   render up to 78vh tall on mobile — well past its own .inkgen-modal-img-box
   parent's 38vh cap (which has no overflow:hidden of its own) — and visually
   overlapping the Prompt in .inkgen-modal-info below it. Root-cause fix:
   give the mobile image the SAME 38vh cap as its own parent box, declared
   late enough to actually win. */
@media (max-width: 767px) {
    .inkgen-modal-img-box { max-height: 38vh; }
    .inkgen-modal-img-box img { max-height: 38vh; }
}
.inkgen-modal-info {
    padding: 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth momentum scrolling for this container on iOS Safari */
    overscroll-behavior: contain;
    min-height: 0; /* required so overflow-y:auto actually clips inside a flex column on mobile */
    max-height: 90vh;
    color: var(--ic-bone, #e8e2d9);
    display: flex; flex-direction: column;
}
.inkgen-modal-title {
    font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500;
    text-transform: none; /* never force the raw Tattoo Idea to uppercase */
    font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15;
    margin: 0 0 14px; color: var(--ic-bone, #e8e2d9);
    white-space: pre-wrap; word-break: break-word;
}

.inkgen-modal-tags { display: flex; flex-wrap: wrap; }
.inkgen-glass-tag {
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px; font-weight: 500;
    color: rgba(232, 226, 217, .85);
    display: inline-flex; align-items: center; gap: 6px;
    margin-right: 8px; margin-bottom: 12px;
}

.inkgen-modal-desc { color: var(--ic-dim, #aaa198); font-size: .9rem; line-height: 1.6; margin-bottom: 20px; }
.inkgen-modal-tip { color: rgba(170, 161, 152, .7); font-size: .78rem; line-height: 1.5; margin: -10px 0 20px; }

.inkgen-cta-btn--primary { margin-bottom: 10px; }

/* Close: glass circle, top-right of the whole modal panel. */
.inkgen-close {
    position: absolute; top: 14px; right: 14px; z-index: 6;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.inkgen-close:hover { background: rgba(0, 0, 0, .6); border-color: var(--ic-gold, #c8a96e); }
.inkgen-close:focus-visible { outline: 2px solid var(--ic-gold, #c8a96e); outline-offset: 2px; }

/* Prev/Next: small floating glass circles anchored to the IMAGE box only —
   never a full-height strip, never squeezing the image's own width. */
.inkgen-modal-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.inkgen-modal-nav-btn--prev { left: 18px; }
.inkgen-modal-nav-btn--next { right: 18px; }
.inkgen-modal-nav-btn:hover:not(:disabled) { background: rgba(0, 0, 0, .65); border-color: var(--ic-gold, #c8a96e); color: var(--ic-gold-bright, #dfc184); }
.inkgen-modal-nav-btn:focus-visible { outline: 2px solid var(--ic-gold, #c8a96e); outline-offset: 2px; }
.inkgen-modal-nav-btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 767px) {
    .inkgen-modal-nav-btn { width: 40px; height: 40px; font-size: 20px; }
    .inkgen-modal-nav-btn--prev { left: 8px; }
    .inkgen-modal-nav-btn--next { right: 8px; }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                          */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    #inkgen-concepts-wrapper *,
    #inkgen-concepts-wrapper *::before,
    #inkgen-concepts-wrapper *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .inkgen-card { opacity: 1; transform: none; animation: none; }
    .inkgen-skeleton-card { animation: none; background-position: 0 0; }
}
