/* ==========================================
   THE HUMAN DILEMMA LAB
   Editorial homepage design
========================================== */

:root {
    --background: #f4f0e8;
    --surface: #f8f5ef;
    --text: #171713;
    --muted: #62615c;
    --olive: #626d4d;
    --olive-dark: #4e583c;
    --border: #e5ded3;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background);
    background-image:
        radial-gradient(
            ellipse at 12% 18%,
            rgba(190, 177, 143, 0.12) 0%,
            transparent 38%
        ),
        radial-gradient(
            ellipse at 88% 32%,
            rgba(111, 124, 83, 0.09) 0%,
            transparent 34%
        );
    background-attachment: fixed;
    color: var(--text);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* NAVIGATION */

.site-nav {
    min-height: 72px;
    padding: 0 8.8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(248, 245, 239, 0.94);
    border-bottom: 1px solid rgba(80, 75, 65, 0.06);
}

.logo {
    color: var(--text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-link {
    color: var(--text);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--olive);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* HERO SECTION */

.hero.hero-split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 435px;
    margin: 0;
    padding: 0;
    text-align: left;
    animation: fade-up 0.7s ease both;
    background:
        radial-gradient(
            ellipse at 76% 42%,
            rgba(151, 151, 113, 0.12) 0%,
            transparent 48%
        ),
        linear-gradient(
            115deg,
            #f4f0e8 0%,
            #f3efe6 58%,
            #eeecdf 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 55px 8% 55px 15%;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--olive);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.8px;
    line-height: 1.6;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 20px;
    color: var(--text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(44px, 5.4vw, 72px);
    font-weight: 500;
    letter-spacing: -3.5px;
    line-height: 0.99;
}

.description {
    max-width: 440px;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 25px;
    border: 0;
    border-radius: 4px;
    background: var(--olive);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.button:hover {
    background: var(--olive-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* HERO IMAGE — BLENDED INTO THE BACKGROUND */

.hero-visual {
    position: relative;
    min-width: 0;
    min-height: 435px;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;

    /* Blend the left edge into the hero background */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 8%,
        rgba(0, 0, 0, 0.65) 20%,
        black 35%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 8%,
        rgba(0, 0, 0, 0.65) 20%,
        black 35%
    );
}

.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    /* Natural, muted editorial tones */
    filter: saturate(0.78) contrast(0.96);

    /* Blend the bottom edge into the page */
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 68%,
        rgba(0, 0, 0, 0.8) 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 68%,
        rgba(0, 0, 0, 0.8) 82%,
        transparent 100%
    );
}

/* DILEMMA SECTION */

.dilemmas {
    position: relative;
    z-index: 1;
    padding: 43px 8% 27px;
    background:
        linear-gradient(
            180deg,
            rgba(248, 245, 239, 0.94) 0%,
            #f8f5ef 160px
        );
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(31px, 3.5vw, 43px);
    font-weight: 500;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-heading > p:last-child {
    max-width: 530px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

/* THREE IMAGE CARDS */

.dilemma-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.dilemma-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: 14px 18px 18px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dilemma-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(35, 33, 27, 0.07);
}

.dilemma-image-wrap {
    position: relative;
    width: 100%;
    height: 145px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 6px;
    background: #e6e0d4;
}

.dilemma-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.dilemma-card:hover .dilemma-image {
    transform: scale(1.035);
}

.card-number {
    display: block;
    margin-bottom: 5px;
    color: var(--olive);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
}

.dilemma-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 500;
    letter-spacing: -0.7px;
    line-height: 1.25;
}

.dilemma-card-content > p:not(.card-category) {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    color: var(--olive-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.card-link:hover {
    color: var(--text);
}

/* FOOTER */

.footer {
    padding: 18px 20px 12px;
    background: #eee9df;
    color: var(--muted);
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

/* ANIMATION */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TABLETS */

@media (max-width: 900px) {
    .site-nav {
        padding: 0 5%;
    }

    .hero-content {
        padding: 45px 8%;
    }

    .hero-content h1 {
        font-size: clamp(40px, 5.5vw, 56px);
        letter-spacing: -2px;
    }

    .hero-visual,
    .hero.hero-split {
        min-height: 390px;
    }

    .dilemmas {
        padding-right: 5%;
        padding-left: 5%;
    }

    .dilemma-grid {
        gap: 16px;
    }

    .dilemma-card {
        padding: 11px 12px 15px;
    }

    .dilemma-image-wrap {
        height: 125px;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    body {
        background-attachment: scroll;
    }

    .site-nav {
        min-height: 66px;
        padding: 0 20px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero.hero-split {
        grid-template-columns: 1fr;
        min-height: 0;
        background:
            radial-gradient(
                ellipse at 80% 78%,
                rgba(151, 151, 113, 0.11) 0%,
                transparent 45%
            ),
            #f4f0e8;
    }

    .hero-content {
        padding: 58px 25px 42px;
    }

    .hero-content h1 {
        font-size: clamp(43px, 11vw, 59px);
        letter-spacing: -2px;
        line-height: 1.04;
    }

    .hero-content .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .description {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 290px;

        /* Blend the image into the page at the bottom */
        -webkit-mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 82%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to bottom,
            black 0%,
            black 82%,
            transparent 100%
        );
    }

    .hero-visual img {
        object-position: center;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .dilemmas {
        padding: 48px 20px 28px;
    }

    .section-heading {
        margin-bottom: 27px;
    }

    .section-heading h2 {
        font-size: 33px;
    }

    .dilemma-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dilemma-card {
        padding: 13px 13px 18px;
    }

    .dilemma-image-wrap {
        height: 205px;
    }

    .dilemma-card h3 {
        font-size: 25px;
    }

    .dilemma-card-content > p:not(.card-category) {
        font-size: 14px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
```css
/* ==========================================
   THE HUMAN DILEMMA LAB
   LOYALTY TEST PAGE
========================================== */

.loyalty-page {
    background-color: var(--background);
    background-image:
        radial-gradient(
            ellipse at 8% 12%,
            rgba(190, 177, 143, 0.10),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 92% 42%,
            rgba(111, 124, 83, 0.07),
            transparent 35%
        );
    background-attachment: fixed;
}

/* MAIN LAYOUT */

.loyalty-main {
    width: min(100% - 48px, 820px);
    margin: 0 auto;
    padding: 74px 0 55px;
}

/* INTRODUCTION */

.loyalty-intro {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.loyalty-intro .eyebrow {
    margin-bottom: 24px;
}

.loyalty-index {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.loyalty-intro h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 8vw, 76px);
    font-weight: 500;
    letter-spacing: -3px;
    line-height: 1.08;
}

.loyalty-intro h1 em {
    color: var(--olive);
    font-weight: 400;
}

.loyalty-lead {
    max-width: 520px;
    margin: 22px auto 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(19px, 2.5vw, 24px);
    line-height: 1.6;
}

.loyalty-description {
    max-width: 510px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* EDITORIAL DIVIDER */

.loyalty-divider {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 45px 0 27px;
    color: var(--olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.divider-line {
    height: 1px;
    flex: 1;
    background: var(--border);
}

/* SCENARIO SECTION */

.loyalty-scenario {
    padding: 34px 38px 32px;
    border: 1px solid var(--border);
    background: rgba(248, 245, 239, 0.75);
}

.scenario-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.scenario-number {
    color: var(--olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.scenario-symbol {
    color: var(--olive);
    font-size: 25px;
}

.loyalty-scenario h2 {
    margin: 0 0 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(27px, 4vw, 37px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.25;
}

.loyalty-scenario > p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.scenario-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 28px 0 20px;
    padding: 23px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.question-mark {
    display: flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #e8e9dc;
    color: var(--olive-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
}

.scenario-question h3 {
    margin: 0 0 7px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.scenario-question p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.loyalty-scenario .scenario-note {
    margin-bottom: 0;
    font-size: 13px;
    font-style: italic;
}

/* RESPONSE INTRODUCTION */

.loyalty-response {
    padding: 55px 0 0;
}

.response-heading {
    margin-bottom: 28px;
}

.response-heading .eyebrow {
    margin-bottom: 10px;
}

.response-heading h2 {
    margin: 0 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 5vw, 43px);
    font-weight: 500;
    letter-spacing: -1.4px;
}

.response-heading > p:last-child {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ANSWER OPTIONS */

.choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-fieldset legend {
    margin-bottom: 17px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.loyalty-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    margin-bottom: 12px;
    padding: 17px 20px;
    border: 1px solid var(--border);
    background: rgba(248, 245, 239, 0.7);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.loyalty-choice:hover {
    border-color: #a4aa8d;
    background: #f8f6ef;
}

.loyalty-choice:has(input:checked) {
    border-color: var(--olive);
    background: #eceee3;
}

.loyalty-choice input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.loyalty-choice:has(input:focus-visible) {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

.choice-letter {
    display: flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--olive-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
}

.loyalty-choice:has(input:checked) .choice-letter {
    border-color: var(--olive);
    background: var(--olive);
    color: white;
}

.choice-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.choice-copy strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.choice-copy small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.choice-indicator {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    border: 1px solid #c7c2b6;
    border-radius: 50%;
}

.loyalty-choice:has(input:checked) .choice-indicator {
    border: 5px solid var(--olive);
    background: white;
}

/* REASONING TEXTAREA */

.reasoning-field {
    margin-top: 32px;
}

.reasoning-field > label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.reasoning-field > p {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.reasoning-field textarea {
    display: block;
    width: 100%;
    min-height: 145px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 0;
    outline: none;
    background: rgba(248, 245, 239, 0.8);
    color: var(--text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.reasoning-field textarea::placeholder {
    color: #99968c;
}

    .reasoning-field textarea:focus-visible {
        outline: 3px solid var(--olive);
        outline-offset: 3px;
        border-color: var(--olive);
    }

.character-hint {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}

/* SUBMIT BUTTON */

.loyalty-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 27px;
    padding: 16px 22px;
    border: 1px solid var(--olive);
    border-radius: 0;
    background: var(--olive);
    color: #fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.loyalty-submit span {
    font-size: 19px;
}

.loyalty-submit:hover {
    border-color: var(--olive-dark);
    background: var(--olive-dark);
}

.form-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

/* CLOSING THOUGHT */

.loyalty-closing {
    margin-top: 60px;
    padding: 28px 15px 30px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.closing-symbol {
    display: block;
    height: 35px;
    color: var(--olive);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 55px;
    line-height: 1;
}

.loyalty-closing p {
    max-width: 490px;
    margin: 15px auto 0;
    color: var(--text);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(19px, 3vw, 24px);
    font-style: italic;
    line-height: 1.65;
}

/* RETURN LINK */

.loyalty-back {
    display: inline-block;
    margin-top: 30px;
    color: var(--olive-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.loyalty-back:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.loyalty-footer {
    border-top: 1px solid var(--border);
}

/* TABLETS AND MOBILE */

@media (max-width: 650px) {
    .loyalty-page {
        background-attachment: scroll;
    }

    .loyalty-main {
        width: calc(100% - 36px);
        padding-top: 49px;
        padding-bottom: 38px;
    }

    .loyalty-intro .eyebrow {
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .loyalty-intro h1 {
        font-size: clamp(45px, 12vw, 62px);
        letter-spacing: -2px;
    }

    .loyalty-lead {
        font-size: 19px;
    }

    .loyalty-description {
        font-size: 13px;
    }

    .loyalty-divider {
        margin-top: 34px;
    }

    .loyalty-scenario {
        padding: 25px 21px;
    }

    .loyalty-scenario > p {
        font-size: 14px;
    }

    .scenario-question {
        gap: 12px;
    }

    .scenario-question h3 {
        font-size: 21px;
    }

    .loyalty-response {
        padding-top: 42px;
    }

    .loyalty-choice {
        gap: 12px;
        padding: 15px 12px;
    }

    .choice-letter {
        width: 31px;
        height: 31px;
    }

    .choice-copy strong {
        font-size: 13px;
    }

    .choice-copy small {
        font-size: 11px;
    }

    .loyalty-closing {
        margin-top: 43px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .loyalty-choice,
    .loyalty-submit {
        transition: none;
    }
}

/* ==========================================
   THE LOYALTY TEST — IMAGE STYLING
   Warm editorial / cream and olive aesthetic
========================================== */

/* Main friends image */
.loyalty-page .loyalty-hero-image {
    width: 100%;
    height: clamp(240px, 35vw, 420px);
    margin: 30px auto 22px;
    position: relative;
    overflow: hidden;
    background: #e9e3d7;
    isolation: isolate;
    
    /* Soft fade into the page background */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 8%,
        black 82%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 8%,
        black 82%,
        transparent 100%
    );
}

.loyalty-page .loyalty-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
    filter: saturate(0.78) contrast(0.96);
    transition: transform 700ms ease;
}

/* Gentle image movement on hover */
@media (hover: hover) {
    .loyalty-page .loyalty-hero-image:hover img {
        transform: scale(1.025);
    }
}

/* Small editorial caption under hero image */
.loyalty-page .image-caption {
    margin: -10px 0 46px;
    color: #777866;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
    text-align: center;
    text-transform: uppercase;
}

/* Scenario journal image */
.loyalty-page .scenario-image {
    width: 100%;
    height: clamp(190px, 27vw, 300px);
    margin: 28px 0 32px;
    overflow: hidden;
    position: relative;
    background: #e9e3d7;
}

/* Subtle fade along the lower edge */
.loyalty-page .scenario-image::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(35, 36, 27, 0.12)
    );
}

.loyalty-page .scenario-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    filter: saturate(0.76) contrast(0.97);
    transition: transform 700ms ease;
}

@media (hover: hover) {
    .loyalty-page .scenario-image:hover img {
        transform: scale(1.025);
    }
}

/* Keep images responsive on smaller screens */
@media (max-width: 650px) {
    .loyalty-page .loyalty-hero-image {
        height: 230px;
        margin: 20px auto 18px;
    }

    .loyalty-page .loyalty-hero-image img {
        object-position: center 42%;
    }

    .loyalty-page .image-caption {
        margin-bottom: 34px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .loyalty-page .scenario-image {
        height: 200px;
        margin: 22px 0 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .loyalty-page .loyalty-hero-image img,
    .loyalty-page .scenario-image img {
        transition: none;
    }
}

/* ==========================================
   THE TRUTH DILEMMA
   Editorial page styling
========================================== */

.truth-page {
    --truth-olive: #626d4d;
    --truth-olive-dark: #454d36;
    --truth-cream: #f4f0e8;
    --truth-surface: #f8f5ef;
    --truth-text: #292923;
    --truth-muted: #77756d;
    --truth-border: #e3ddd1;

    background:
        radial-gradient(
            ellipse at 50% 12%,
            rgba(226, 218, 199, 0.24),
            transparent 43%
        ),
        var(--truth-cream);
    color: var(--truth-text);
    font-family: "DM Sans", sans-serif;
}

/* Page layout */
.truth-main {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 70px;
}

/* Introduction */
.truth-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.truth-page .eyebrow {
    color: var(--truth-olive);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.4px;
    line-height: 1.8;
    text-transform: uppercase;
}

.truth-index {
    margin: 28px 0 14px;
    color: var(--truth-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.4px;
}

.truth-intro h1 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(43px, 7vw, 68px);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.12;
}

.truth-intro h1 em {
    color: var(--truth-olive);
    font-weight: 400;
}

.truth-lead {
    margin: 24px auto 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(19px, 3vw, 24px);
    line-height: 1.6;
}

.truth-description {
    max-width: 590px;
    margin: 0 auto;
    color: var(--truth-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* Editorial divider */
.truth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 0;
    color: var(--truth-olive);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.truth-divider-line {
    height: 1px;
    flex: 1;
    background: var(--truth-border);
}

/* Hero image */
.truth-hero-image {
    height: clamp(230px, 37vw, 360px);
    margin: 26px 0 0;
    overflow: hidden;
    background: #e8e1d4;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 8%,
        black 84%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 8%,
        black 84%,
        transparent 100%
    );
}

.truth-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    filter: saturate(0.78) contrast(0.97);
    transition: transform 700ms ease;
}

.truth-image-caption {
    margin: 4px 0 55px;
    color: var(--truth-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
    text-align: center;
    text-transform: uppercase;
}

/* Scenario */
.truth-scenario {
    padding: 0 0 42px;
}

.truth-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.truth-section-number {
    color: var(--truth-olive);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.truth-symbol {
    color: var(--truth-olive);
    font-size: 23px;
}

.truth-scenario h2,
.truth-response-heading h2 {
    margin: 0 0 20px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(29px, 4vw, 39px);
    font-weight: 500;
    line-height: 1.3;
}

.truth-scenario > p {
    color: #595950;
    font-size: 14px;
    line-height: 2;
    margin: 0 0 17px;
}

/* Central question */
.truth-question {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 34px 0;
    padding: 25px 0;
    border-top: 1px solid var(--truth-border);
    border-bottom: 1px solid var(--truth-border);
}

.truth-question-mark {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd0bd;
    border-radius: 50%;
    color: var(--truth-olive);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
}

.truth-question-label {
    margin: 0 0 8px;
    color: var(--truth-olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.truth-question h3 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.truth-question div > p:last-child {
    margin: 0;
    color: var(--truth-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* Reflection panel */
.truth-reflection {
    margin-top: 34px;
    padding: 30px;
    border-left: 3px solid var(--truth-olive);
    background: rgba(226, 222, 208, 0.42);
}

.truth-reflection .eyebrow {
    margin: 0 0 12px;
}

.truth-reflection h3 {
    margin: 0 0 15px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.4;
}

.truth-reflection p:not(.eyebrow) {
    color: #5f5d54;
    font-size: 13px;
    line-height: 1.9;
}

/* Response section */
.truth-response {
    margin-top: 28px;
    padding: 38px;
    border: 1px solid var(--truth-border);
    background: rgba(250, 248, 243, 0.7);
}

.truth-response-heading {
    margin-bottom: 30px;
}

.truth-response-heading .eyebrow {
    margin: 0 0 12px;
}

.truth-response-heading h2 {
    margin-bottom: 10px;
}

.truth-response-heading > p:last-child {
    color: var(--truth-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* Choice cards */
.truth-choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.truth-choice-fieldset legend {
    margin-bottom: 17px;
    color: var(--truth-olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.truth-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 19px;
    border: 1px solid var(--truth-border);
    background: var(--truth-surface);
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

.truth-choice:hover {
    border-color: #a6ad94;
}

.truth-choice:has(input:checked) {
    border-color: var(--truth-olive);
    background: #eeeee5;
}

.truth-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.truth-choice input:focus-visible + .truth-choice-letter {
    outline: 2px solid var(--truth-olive);
    outline-offset: 4px;
}

.truth-choice-letter {
    display: flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--truth-border);
    border-radius: 50%;
    color: var(--truth-olive);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 16px;
}

.truth-choice-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.truth-choice-copy strong {
    color: var(--truth-text);
    font-size: 13px;
    font-weight: 600;
}

.truth-choice-copy small {
    color: var(--truth-muted);
    font-size: 12px;
    line-height: 1.7;
}

.truth-choice-indicator {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border: 1px solid #b8b8a9;
    border-radius: 50%;
}

.truth-choice:has(input:checked) .truth-choice-indicator {
    border: 4px solid var(--truth-olive);
    background: white;
}

/* Reasoning field */
.truth-reasoning {
    margin-top: 32px;
}

.truth-reasoning > label {
    display: block;
    margin-bottom: 9px;
    color: var(--truth-olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.truth-reasoning > p {
    margin: 0 0 15px;
    color: var(--truth-muted);
    font-size: 12px;
    line-height: 1.8;
}

.truth-reasoning textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 145px;
    padding: 16px;
    border: 1px solid var(--truth-border);
    border-radius: 0;
    outline: none;
    background: #fcfaf6;
    color: var(--truth-text);
    font: inherit;
    font-size: 13px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 180ms ease;
}

.truth-reasoning textarea:focus {
    border-color: var(--truth-olive);
}

.truth-reasoning textarea::placeholder {
    color: #aaa69b;
}

.truth-character-hint {
    display: block;
    margin-top: 9px;
    color: var(--truth-muted);
    font-size: 11px;
    line-height: 1.7;
}

/* Submit button */
.truth-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding: 17px 21px;
    border: 1px solid var(--truth-text);
    background: var(--truth-text);
    color: #fffdf8;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.truth-submit:hover {
    border-color: var(--truth-olive-dark);
    background: var(--truth-olive-dark);
}

.truth-submit span {
    font-size: 19px;
}

.truth-form-note {
    margin: 15px 0 0;
    color: var(--truth-muted);
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

/* Closing thought */
.truth-closing {
    max-width: 590px;
    margin: 65px auto 40px;
    text-align: center;
}

.truth-closing-symbol {
    display: block;
    height: 42px;
    color: var(--truth-olive);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 65px;
    line-height: 1;
}

.truth-closing p {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(21px, 3vw, 27px);
    font-style: italic;
    line-height: 1.7;
}

/* Back link and footer */
.truth-back {
    display: inline-block;
    margin-top: 10px;
    color: var(--truth-olive);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.truth-back:hover {
    color: var(--truth-olive-dark);
}

.truth-footer {
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 650px) {
    .truth-main {
        width: calc(100% - 34px);
        padding-top: 35px;
        padding-bottom: 48px;
    }

    .truth-intro h1 {
        letter-spacing: -1.3px;
    }

    .truth-description {
        font-size: 13px;
    }

    .truth-divider {
        margin-top: 30px;
    }

    .truth-hero-image {
        height: 225px;
    }

    .truth-image-caption {
        margin-bottom: 38px;
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .truth-response {
        padding: 23px 18px;
    }

    .truth-reflection {
        padding: 23px;
    }

    .truth-choice {
        gap: 11px;
        padding: 15px 12px;
    }

    .truth-choice-letter {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
    }

    .truth-choice-copy small {
        font-size: 11px;
    }

    .truth-question {
        gap: 13px;
    }

    .truth-question-mark {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .truth-hero-image img,
    .truth-choice,
    .truth-submit {
        transition: none;
    }
}

/* ==========================================
   TRUTH DILEMMA — HERO IMAGE FIX
   Keep the warm editorial aesthetic
========================================== */

.truth-page .truth-hero-image {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(230px, 37vw, 360px);
    margin: 26px 0 0;
    padding: 0;
    overflow: hidden;
    background: #e8e1d4;
    isolation: isolate;
}

.truth-page .truth-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 50%;
    filter: saturate(0.82) contrast(0.97);
    transition: transform 700ms ease;
}

/* Gentle movement when hovering over the image */
@media (hover: hover) {
    .truth-page .truth-hero-image:hover img {
        transform: scale(1.025);
    }
}

/* Caption beneath the image */
.truth-page .truth-image-caption {
    margin: 8px 0 48px;
    color: #77756d;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
    text-align: center;
    text-transform: uppercase;
}

/* Mobile adjustments */
@media (max-width: 650px) {
    .truth-page .truth-hero-image {
        height: 225px;
        margin-top: 22px;
    }

    .truth-page .truth-hero-image img {
        object-position: center;
    }

    .truth-page .truth-image-caption {
        margin-bottom: 35px;
        font-size: 9px;
        letter-spacing: 1.3px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .truth-page .truth-hero-image img {
        transition: none;
    }
}

```css
/* ==========================================
   THE TROLLEY PROBLEM
   Refined editorial design
========================================== */

.trolley-page {
    --trolley-bg: #f4f0e8;
    --trolley-surface: #f9f6f0;
    --trolley-text: #292923;
    --trolley-muted: #706d64;
    --trolley-olive: #626d4d;
    --trolley-olive-dark: #4e583c;
    --trolley-border: #e2dbce;
    --trolley-soft-olive: #e9eadf;

    margin: 0;
    padding: 0;
    max-width: none;
    background:
        radial-gradient(
            ellipse at 12% 12%,
            rgba(190, 177, 143, 0.12),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 88% 45%,
            rgba(111, 124, 83, 0.07),
            transparent 35%
        ),
        var(--trolley-bg);
    background-attachment: fixed;
    color: var(--trolley-text);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

.trolley-page img {
    display: block;
    max-width: 100%;
}

.trolley-page h1,
.trolley-page h2,
.trolley-page h3,
.trolley-brand {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

/* NAVIGATION */

.trolley-nav {
    min-height: 76px;
    padding: 16px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(80, 75, 65, 0.09);
    background: rgba(248, 245, 239, 0.88);
}

.trolley-brand {
    color: var(--trolley-text);
    font-size: clamp(20px, 2.4vw, 27px);
    letter-spacing: -1px;
    text-decoration: none;
}

.trolley-home-link {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--trolley-olive);
    color: var(--trolley-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trolley-home-link:hover {
    color: var(--trolley-olive);
}

/* MAIN CONTAINER */

.trolley-main {
    width: min(1040px, calc(100% - 64px));
    margin: 0 auto;
}

/* HERO */

.trolley-hero {
    padding-top: 58px;
    text-align: center;
}

.trolley-eyebrow {
    margin: 0 0 25px;
    color: var(--trolley-olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.8px;
    line-height: 1.8;
    text-transform: uppercase;
}

.trolley-number {
    margin: 0 0 13px;
    color: var(--trolley-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.2px;
    line-height: 1.8;
}

.trolley-hero h1 {
    margin: 0;
    font-size: clamp(45px, 7vw, 76px);
    font-weight: 500;
    letter-spacing: -2.8px;
    line-height: 1.1;
}

.trolley-subtitle {
    max-width: 570px;
    margin: 19px auto 30px;
    color: var(--trolley-muted);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(18px, 2.5vw, 23px);
    font-style: italic;
    line-height: 1.7;
}

/* HERO IMAGE */

.trolley-image {
    position: relative;
    width: 100%;
    height: clamp(260px, 39vw, 410px);
    margin: 0;
    overflow: hidden;
    background: #ded5c4;
    isolation: isolate;
}

.trolley-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    filter: saturate(0.78) contrast(0.97);
    transition: transform 700ms ease;
}

/* Soft editorial fade at the bottom */

.trolley-image::after {
    position: absolute;
    inset: 55% 0 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(35, 36, 27, 0.13)
    );
}

@media (hover: hover) {
    .trolley-image:hover img {
        transform: scale(1.02);
    }
}

.trolley-image-caption {
    margin: 15px 0 51px;
    color: var(--trolley-olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.1px;
    line-height: 1.8;
    text-align: center;
}

/* SCENARIO AND REFLECTION */

.trolley-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: start;
    gap: 7%;
    padding: 0 0 48px;
}

.trolley-scenario {
    min-width: 0;
}

.trolley-section-label {
    margin: 0 0 13px;
    color: var(--trolley-olive);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.8;
}

.trolley-scenario h2,
.trolley-reflection h2,
.trolley-response h2 {
    margin: 0 0 19px;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -1.1px;
    line-height: 1.25;
}

.trolley-scenario > p:not(.trolley-section-label),
.trolley-reflection > p:not(.trolley-section-label) {
    color: #5d5a52;
    font-size: 14px;
    line-height: 1.95;
}

.trolley-scenario h3 {
    margin: 27px 0 9px;
    font-size: 27px;
    letter-spacing: -0.5px;
}

.trolley-scenario h3 + p {
    margin-top: 0;
}

/* REFLECTION PANEL */

.trolley-reflection {
    position: relative;
    min-width: 0;
    margin-top: 7px;
    padding: 32px 29px;
    border: 1px solid rgba(98, 109, 77, 0.12);
    border-top: 3px solid var(--trolley-olive);
    background: rgba(233, 234, 223, 0.7);
}

.trolley-reflection h2 {
    font-size: clamp(27px, 3.2vw, 35px);
}

.trolley-reflection > p:not(.trolley-section-label) {
    font-size: 13px;
    line-height: 1.95;
}

/* RESPONSE SECTION */

.trolley-response {
    padding: 43px 0 32px;
    border-top: 1px solid var(--trolley-border);
}

.trolley-response h2 {
    margin-bottom: 12px;
}

.trolley-form-intro {
    max-width: 590px;
    margin: 0 0 27px;
    color: var(--trolley-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* CHOICES */

.trolley-choices {
    min-width: 0;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
}

.trolley-choices legend {
    margin-bottom: 15px;
    padding: 0;
    color: var(--trolley-text);
    font-size: 12px;
    font-weight: 700;
}

.trolley-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 10px 0;
    padding: 17px 18px;
    border: 1px solid var(--trolley-border);
    background: rgba(249, 246, 240, 0.75);
    color: #514e47;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.trolley-choice:hover {
    border-color: #a8ae97;
    background: var(--trolley-surface);
}

.trolley-choice:has(input:checked) {
    border-color: var(--trolley-olive);
    background: var(--trolley-soft-olive);
}

.trolley-choice input[type="radio"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 4px 0 0;
    accent-color: var(--trolley-olive);
    cursor: pointer;
}

.trolley-choice:has(input:focus-visible) {
    outline: 2px solid var(--trolley-olive);
    outline-offset: 3px;
}

.trolley-choice span {
    font-size: 13px;
    line-height: 1.8;
}

/* REASONING FIELD */

.trolley-reasoning-label {
    display: block;
    margin-bottom: 10px;
    color: var(--trolley-text);
    font-size: 12px;
    font-weight: 700;
}

.trolley-page textarea {
    display: block;
    width: 100%;
    min-height: 145px;
    padding: 16px 17px;
    border: 1px solid var(--trolley-border);
    border-radius: 0;
    outline: none;
    background: rgba(249, 246, 240, 0.8);
    color: var(--trolley-text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.9;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.trolley-page textarea::placeholder {
    color: #9b978c;
}

.trolley-page textarea:focus {
    border-color: var(--trolley-olive);
    box-shadow: 0 0 0 2px rgba(98, 109, 77, 0.08);
}

/* SUBMIT BUTTON */

.trolley-submit {
    display: flex;
    width: 100%;
    min-height: 53px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 20px;
    border: 1px solid var(--trolley-olive);
    border-radius: 0;
    background: var(--trolley-olive);
    color: #fff;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.trolley-submit span {
    font-size: 19px;
}

.trolley-submit:hover {
    border-color: var(--trolley-olive-dark);
    background: var(--trolley-olive-dark);
}

/* BACK LINK */

.trolley-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 7px 0 40px;
    color: var(--trolley-olive);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trolley-back:hover {
    color: var(--trolley-olive-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* FOOTER */

.trolley-footer {
    padding: 21px 24px;
    border-top: 1px solid var(--trolley-border);
    background: rgba(238, 233, 223, 0.8);
    color: #77736b;
    text-align: center;
}

.trolley-footer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
}

/* TABLETS */

@media (max-width: 800px) {
    .trolley-main {
        width: min(100% - 48px, 680px);
    }

    .trolley-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .trolley-reflection {
        margin-top: 0;
        padding: 27px;
    }

    .trolley-reflection h2 {
        font-size: 32px;
    }

    .trolley-image-caption {
        margin-bottom: 40px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .trolley-page {
        background-attachment: scroll;
    }

    .trolley-nav {
        min-height: 66px;
        padding: 14px 20px;
    }

    .trolley-brand {
        max-width: 75%;
        font-size: 20px;
        letter-spacing: -0.6px;
    }

    .trolley-home-link {
        font-size: 12px;
    }

    .trolley-main {
        width: calc(100% - 36px);
    }

    .trolley-hero {
        padding-top: 41px;
    }

    .trolley-eyebrow {
        margin-bottom: 21px;
        font-size: 9px;
        letter-spacing: 1.7px;
    }

    .trolley-number {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .trolley-hero h1 {
        font-size: clamp(39px, 10.5vw, 53px);
        letter-spacing: -1.8px;
    }

    .trolley-subtitle {
        margin-top: 17px;
        margin-bottom: 24px;
        font-size: 18px;
        line-height: 1.7;
    }

    .trolley-image {
        height: 245px;
    }

    .trolley-image img {
        object-position: center;
    }

    .trolley-image-caption {
        margin: 13px 0 35px;
        font-size: 9px;
        letter-spacing: 1.25px;
    }

    .trolley-content {
        gap: 23px;
        padding-bottom: 35px;
    }

    .trolley-scenario h2,
    .trolley-response h2 {
        font-size: 32px;
    }

    .trolley-scenario > p:not(.trolley-section-label) {
        font-size: 13px;
        line-height: 1.95;
    }

    .trolley-scenario h3 {
        font-size: 25px;
    }

    .trolley-reflection {
        padding: 24px 21px;
    }

    .trolley-reflection h2 {
        font-size: 29px;
    }

    .trolley-reflection > p:not(.trolley-section-label) {
        font-size: 13px;
    }

    .trolley-response {
        padding-top: 33px;
    }

    .trolley-form-intro {
        font-size: 13px;
    }

    .trolley-choice {
        gap: 11px;
        padding: 14px 12px;
    }

    .trolley-choice span {
        font-size: 12px;
    }

    .trolley-page textarea {
        min-height: 125px;
    }

    .trolley-back {
        margin-bottom: 31px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .trolley-page *,
    .trolley-page *::before,
    .trolley-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
```css
/* ==========================================
   TROLLEY PROBLEM — BUTTON FIX
========================================== */

.trolley-page .trolley-submit,
.trolley-page button[type="submit"],
.trolley-page input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 15px 28px;

    background-color: #626d4d;
    color: #ffffff;

    border: 1px solid #626d4d;
    border-radius: 4px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.trolley-page .trolley-submit:hover,
.trolley-page button[type="submit"]:hover,
.trolley-page input[type="submit"]:hover {
    background-color: #4e583c;
    border-color: #4e583c;
    color: #ffffff;
    transform: translateY(-2px);
}

.trolley-page .trolley-submit:focus-visible,
.trolley-page button[type="submit"]:focus-visible,
.trolley-page input[type="submit"]:focus-visible {
    outline: 3px solid #a8b18f;
    outline-offset: 4px;
}

.trolley-page .trolley-submit:disabled,
.trolley-page button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
```css

/* ==========================================
   THE HUMAN DILEMMA LAB
   RESPONSE EXPLORER
========================================== */

.responses-page {
    --response-bg: #f4f0e8;
    --response-surface: #fbf9f4;
    --response-text: #292923;
    --response-muted: #77746b;
    --response-olive: #626d4d;
    --response-olive-light: #e8eadf;
    --response-brown: #98745b;
    --response-border: #e5ded2;
    --response-dark: #25271f;

    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 8% 12%, rgba(152,116,91,.07), transparent 32%),
        radial-gradient(ellipse at 92% 35%, rgba(98,109,77,.07), transparent 30%),
        var(--response-bg);
    color: var(--response-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

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

.responses-page a {
    color: inherit;
}

/* NAVIGATION */

.responses-page .responses-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 7%;
    background: var(--response-dark);
    color: #f8f5ee;
    border-bottom: 3px solid var(--response-olive);
    box-shadow: 0 5px 25px rgba(37,39,31,.08);
}

.responses-page .brand {
    color: #f8f5ee;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: bold;
    letter-spacing: -.5px;
    text-decoration: none;
    transition: color .25s ease;
}

.responses-page .brand:hover {
    color: #c5cfad;
}

.responses-page .nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
}

.responses-page .nav-links a {
    position: relative;
    color: #e5e1d8;
    font-size: 13px;
    text-decoration: none;
    transition: color .25s ease;
}

.responses-page .nav-links a:hover,
.responses-page .nav-links a.nav-active {
    color: #c5cfad;
}

.responses-page .nav-links a.nav-active {
    border-bottom: 1px solid #c5cfad;
    padding-bottom: 5px;
}

/* MAIN CONTENT */

.responses-page .responses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 30px 85px;
    animation: responsesFadeIn .6s ease both;
}

.responses-page h1,
.responses-page h2,
.responses-page h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1.3;
}

.responses-page .eyebrow {
    margin: 0 0 15px;
    color: var(--response-brown);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.responses-page .responses-header {
    max-width: 760px;
    margin-bottom: 42px;
    padding: 12px 0 20px;
}

.responses-page .responses-header .eyebrow {
    display: inline-block;
    padding: 9px 13px;
    background: rgba(232,234,223,.75);
    border: 1px solid rgba(98,109,77,.15);
    border-radius: 3px;
    letter-spacing: 2px;
}

.responses-page .responses-header h1 {
    max-width: 720px;
    margin: 12px 0 20px;
    font-size: clamp(42px, 5.5vw, 66px);
    letter-spacing: -2px;
    line-height: 1.1;
}

.responses-page .responses-header h1 span {
    position: relative;
    display: inline-block;
    color: var(--response-olive);
    font-style: italic;
}

.responses-page .responses-header h1 span::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 2px;
    background: #b7c19f;
    content: "";
}

.responses-page .responses-header > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--response-muted);
    font-size: 15px;
    line-height: 1.9;
}

/* SUMMARY CARDS */

.responses-page .responses-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.responses-page .summary-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 30px;
    background: rgba(251,249,244,.95);
    border: 1px solid var(--response-border);
    border-radius: 6px;
    box-shadow: 0 5px 18px rgba(37,39,31,.025);
    transition: transform .25s ease, box-shadow .25s ease;
}

.responses-page .summary-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--response-olive), #b7c19f);
    content: "";
}

.responses-page .summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37,39,31,.09);
}

.responses-page .summary-label {
    margin: 0 0 15px;
    color: var(--response-muted);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.responses-page .summary-card h2 {
    margin: 0 0 12px;
    color: var(--response-olive);
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.responses-page .summary-description {
    margin: 0;
    color: var(--response-muted);
    font-size: 12px;
    line-height: 1.8;
}

/* RESPONSE PANEL */

.responses-page .responses-panel {
    min-width: 0;
    margin-top: 30px;
    padding: 36px;
    background: rgba(251,249,244,.97);
    border: 1px solid var(--response-border);
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(37,39,31,.035);
}

.responses-page .responses-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e2d8;
}

.responses-page .responses-panel-header h2 {
    margin: 0 0 9px;
    font-size: clamp(28px, 3vw, 35px);
    letter-spacing: -.7px;
}

.responses-page .responses-panel-header p:last-child {
    margin: 0;
    color: var(--response-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* FILTER FORM */

.responses-page .responses-filter {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 28px;
    padding: 22px;
    background: #f3f0e8;
    border: 1px solid var(--response-border);
    border-radius: 5px;
}

.responses-page .responses-filter label {
    display: block;
    width: 100%;
    margin-bottom: -5px;
    color: var(--response-text);
    font-size: 12px;
    font-weight: bold;
}

.responses-page .responses-filter select {
    flex: 1;
    min-width: 220px;
    min-height: 45px;
    padding: 11px 13px;
    background: #fff;
    color: var(--response-text);
    border: 1px solid var(--response-border);
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.responses-page .responses-filter select:focus {
    border-color: var(--response-olive);
    box-shadow: 0 0 0 3px rgba(98,109,77,.12);
}

.responses-page .responses-filter button {
    min-height: 45px;
    padding: 11px 20px;
    background: var(--response-dark);
    color: #fff;
    border: 1px solid var(--response-dark);
    border-radius: 3px;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.responses-page .responses-filter button:hover {
    background: var(--response-olive);
    border-color: var(--response-olive);
    transform: translateY(-2px);
}

.responses-page .responses-filter .clear-filter {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: var(--response-text);
    border: 1px solid var(--response-border);
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s ease;
}

.responses-page .responses-filter .clear-filter:hover {
    background: var(--response-olive-light);
}

/* TABLE */

.responses-page .responses-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--response-surface);
    border: 1px solid var(--response-border);
    border-radius: 5px;
}

.responses-page .responses-table {
    width: 100%;
    min-width: 650px;
    margin: 0;
    border-collapse: collapse;
}

.responses-page .responses-table th,
.responses-page .responses-table td {
    padding: 18px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--response-border);
    overflow-wrap: anywhere;
}

.responses-page .responses-table th {
    background: #eae9df;
    color: #535648;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.responses-page .responses-table td {
    font-size: 13px;
    line-height: 1.8;
}

.responses-page .responses-table tbody tr {
    transition: background .2s ease;
}

.responses-page .responses-table tbody tr:hover {
    background: #f0efe6;
}

.responses-page .responses-table tbody tr:last-child td {
    border-bottom: none;
}

.responses-page .dilemma-label {
    display: inline-block;
    color: var(--response-text);
    font-weight: bold;
    line-height: 1.6;
}

.responses-page .choice-label {
    display: inline-block;
    padding: 6px 10px;
    background: var(--response-olive-light);
    color: #465139;
    border: 1px solid #dce0d0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.responses-page .reasoning-cell {
    min-width: 250px;
    max-width: 460px;
    color: #666359;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.responses-page .no-reasoning {
    color: #999487;
    font-size: 12px;
    font-style: italic;
}

/* EMPTY STATE */

.responses-page .empty-responses {
    padding: 55px 20px !important;
    text-align: center !important;
    color: var(--response-muted);
    background: #f8f6ef;
}

.responses-page .empty-responses h3 {
    margin: 0 0 10px;
    color: var(--response-text);
    font-size: 27px;
}

.responses-page .empty-responses p {
    margin: 0 0 18px;
    font-size: 13px;
}

.responses-page .empty-responses a {
    display: inline-block;
    padding: 10px 16px;
    background: var(--response-dark);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s ease;
}

.responses-page .empty-responses a:hover {
    background: var(--response-olive);
}

/* RESPONSE COUNT */

.responses-page .responses-footer {
    margin-top: 0;
    padding: 20px 3px 0;
    color: var(--response-muted);
    font-size: 11px;
    text-align: right;
}

.responses-page .responses-footer p {
    display: inline-block;
    margin: 0;
    padding: 7px 12px;
    background: #eeebe3;
    border-radius: 3px;
}

/* CLOSING NOTE */

.responses-page .responses-note {
    position: relative;
    max-width: 760px;
    margin: 75px auto 0;
    padding: 50px 35px;
    text-align: center;
    border-top: 1px solid #dfd8cc;
}

.responses-page .responses-note::before {
    position: absolute;
    top: -2px;
    left: calc(50% - 25px);
    width: 50px;
    height: 3px;
    background: #899477;
    content: "";
}

.responses-page .responses-note h2 {
    max-width: 650px;
    margin: 0 auto 18px;
    font-size: clamp(27px, 3.5vw, 38px);
    letter-spacing: -.8px;
}

.responses-page .responses-note > p:last-child {
    max-width: 600px;
    margin: 0 auto;
    color: var(--response-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* FOOTER */

.responses-page .responses-site-footer {
    padding: 36px 20px;
    background: var(--response-dark);
    color: #e5e1d8;
    text-align: center;
    border-top: 3px solid var(--response-olive);
}

.responses-page .responses-site-footer p {
    margin: 0 0 5px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.responses-page .responses-site-footer span {
    color: #bcb9ae;
    font-size: 11px;
}

/* ANIMATION */

@keyframes responsesFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .responses-page *,
    .responses-page *::before,
    .responses-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* RESPONSIVE DESIGN */

@media (max-width: 760px) {
    .responses-page .responses-nav {
        padding: 18px 22px;
    }

    .responses-page .nav-links {
        gap: 16px;
    }

    .responses-page .brand {
        font-size: 18px;
    }

    .responses-page .responses-container {
        padding: 42px 18px 55px;
    }

    .responses-page .responses-header h1 {
        font-size: clamp(36px, 8vw, 46px);
        letter-spacing: -1px;
    }

    .responses-page .responses-summary {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .responses-page .summary-card {
        padding: 24px;
    }

    .responses-page .responses-panel {
        padding: 22px 16px;
    }

    .responses-page .responses-panel-header h2 {
        font-size: 25px;
    }

    .responses-page .responses-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .responses-page .responses-filter select {
        width: 100%;
        min-width: 0;
        flex: auto;
    }

    .responses-page .responses-filter button,
    .responses-page .responses-filter .clear-filter {
        width: 100%;
    }

    .responses-page .responses-footer {
        text-align: left;
    }

    .responses-page .responses-note {
        margin-top: 50px;
        padding: 42px 10px;
    }
}

@media (max-width: 440px) {
    .responses-page .responses-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .responses-page .nav-links {
        width: 100%;
        gap: 14px;
    }

    .responses-page .nav-links a {
        font-size: 12px;
    }

    .responses-page .responses-header h1 {
        font-size: 34px;
    }

    .responses-page .responses-panel-header h2 {
        font-size: 24px;
    }

    .responses-page .responses-note h2 {
        font-size: 27px;
    }
}

/* ==========================================
   THE HUMAN DILEMMA LAB
   ADMIN DASHBOARD
========================================== */


.admin-page {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    color: #292923;
    font-family: "Segoe UI", Arial, sans-serif;
    box-sizing: border-box;
}

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


.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.admin-heading h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 8px 0;
}

.admin-heading p {
    color: #77766e;
    line-height: 1.7;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    background: #344b3b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-button:hover {
    background: #25392b;
    transform: translateY(-2px);
}

.admin-button.secondary {
    background: transparent;
    color: #344b3b;
    border: 1px solid #344b3b;
}

.admin-button.secondary:hover {
    background: #e9e7de;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin: 32px 0 44px;
}

.admin-stat {
    background: #fff;
    border: 1px solid #e7e2d8;
    border-radius: 10px;
    padding: 24px;
}

.admin-stat p {
    color: #77766e;
    margin: 0 0 12px;
}

.admin-stat strong {
    font-family: "Playfair Display", serif;
    font-size: 2.3rem;
}

.admin-section-title {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e7e2d8;
    border-radius: 10px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee9df;
    vertical-align: top;
}

.admin-table th {
    background: #f4f0e8;
    font-size: 0.85rem;
}

.admin-table td {
    line-height: 1.6;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-status.active {
    background: #e2efe3;
    color: #285b35;
}

.admin-status.expired {
    background: #f7e5df;
    color: #8b3424;
}

.admin-status.draft {
    background: #eeeae2;
    color: #615d52;
}

.admin-row-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-row-actions a {
    color: #344b3b;
    font-weight: 600;
}

.admin-row-actions a:hover {
    text-decoration: underline;
}

.admin-message {
    background: #e2efe3;
    color: #285b35;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.admin-empty {
    padding: 36px;
    text-align: center;
    color: #77766e;
}

.admin-footer {
    text-align: center;
    color: #77766e;
    padding: 28px 20px;
}

/* RESPONSIVE ADMIN DASHBOARD */

@media (max-width: 640px) {
    .admin-page {
        padding: 32px 16px 56px;
    }

    .admin-heading {
        align-items: flex-start;
    }

    .admin-actions {
        width: 100%;
    }

    .admin-button {
        text-align: center;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   THE HUMAN DILEMMA LAB
   PREMIUM ADMIN DASHBOARD
========================================================= */

.admin-page {
    --admin-ink: #252d25;
    --admin-green: #304b38;
    --admin-green-light: #e6ede3;
    --admin-muted: #85877d;
    --admin-cream: #f7f5ef;
    --admin-white: #fffefa;
    --admin-border: #e9e5da;

    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 64px 0 90px;
    color: var(--admin-ink);
    font-family: "DM Sans", sans-serif;
}

/* NAVIGATION */

.site-nav:has(+ .admin-page) {
    background: var(--admin-white);
    border-bottom: 1px solid var(--admin-border);
    padding: 22px max(32px, calc((100% - 1240px) / 2));
}

.site-nav:has(+ .admin-page) .logo {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: -0.4px;
}

.site-nav:has(+ .admin-page) .nav-link {
    color: var(--admin-green);
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity .2s ease;
}

.site-nav:has(+ .admin-page) .nav-link:hover {
    opacity: .65;
}

/* INTRODUCTION */

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    margin-bottom: 46px;
}

.admin-heading > div:first-child {
    max-width: 690px;
}

.admin-page .eyebrow {
    margin: 0 0 16px;
    color: #7a896f;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.admin-heading h1 {
    margin: 0 0 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1.08;
}

.admin-heading p:not(.eyebrow) {
    max-width: 570px;
    color: var(--admin-muted);
    font-size: .95rem;
    line-height: 1.9;
}

/* BUTTONS */

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 21px;
    border: 1px solid var(--admin-green);
    border-radius: 4px;
    background: var(--admin-green);
    color: #fff !important;
    font-family: "DM Sans", sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.admin-button:hover {
    background: #243a2b;
    border-color: #243a2b;
    box-shadow: 0 8px 20px #304b3820;
    transform: translateY(-2px);
}

.admin-button:active {
    transform: translateY(0);
}

.admin-button:focus-visible,
.admin-row-actions a:focus-visible {
    outline: 2px solid #829777;
    outline-offset: 4px;
}

/* STATISTIC CARDS */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 86px;
}

.admin-stat {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 30px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-white);
    box-shadow: 0 3px 12px #252d2505;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.admin-stat::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -55px;
    width: 135px;
    height: 135px;
    border: 1px solid #84967b22;
    border-radius: 50%;
    transition: transform .4s ease;
    pointer-events: none;
}

.admin-stat:hover {
    transform: translateY(-5px);
    border-color: #d4dccd;
    box-shadow: 0 16px 36px #252d250c;
}

.admin-stat:hover::after {
    transform: scale(1.3);
}

.admin-stat p {
    margin: 0 0 25px;
    color: #777a70;
    font-size: .82rem;
    font-weight: 500;
}

.admin-stat strong {
    display: block;
    margin-bottom: 13px;
    color: var(--admin-green);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1;
}

.admin-stat span {
    color: #96968c;
    font-size: .75rem;
    line-height: 1.7;
}

.admin-stat:nth-child(2) {
    background: #f1f4ed;
}

.admin-stat:nth-child(3) {
    background: #faf3ec;
}

.admin-stat:nth-child(3)::after {
    border-color: #c5a68c35;
}

/* CONTENT HEADING */

.admin-management {
    margin-top: 0;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-section-heading h2,
.admin-section-title {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 400;
    letter-spacing: -.8px;
}

.admin-section-heading > div > p:not(.eyebrow) {
    margin: 0;
    color: var(--admin-muted);
    font-size: .84rem;
    line-height: 1.8;
}

/* MANAGEMENT TABLE */

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-white);
    box-shadow: 0 5px 25px #252d2505;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.admin-table thead {
    background: #f0eee6;
}

.admin-table th {
    padding: 18px 21px;
    color: #74776b;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
    padding: 23px 21px;
    border-bottom: 1px solid #efede6;
    color: #65675e;
    font-size: .82rem;
    line-height: 1.7;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background .2s ease;
}

.admin-table tbody tr:hover {
    background: #f8f8f2;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-dilemma-title {
    max-width: 250px;
    color: var(--admin-ink);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.admin-dilemma-description {
    max-width: 280px;
    margin: 6px 0 0;
    color: #929187;
    font-size: .76rem;
    line-height: 1.7;
}

/* STATUS PILLS */

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.admin-status.active {
    color: #426746;
    background: #eaf1e7;
    border-color: #dce8d8;
}

.admin-status.expired {
    color: #9a5942;
    background: #f8ebe3;
    border-color: #f0ddd1;
}

.admin-status.draft {
    color: #77766b;
    background: #efeee8;
    border-color: #e4e2d9;
}

/* ROW ACTIONS */

.admin-row-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-row-actions a {
    color: var(--admin-green);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color .2s ease;
}

.admin-row-actions a:hover {
    color: #829777;
    text-decoration: underline;
}

.admin-row-actions a:last-child {
    color: #a15d4b;
}

.admin-row-actions a:last-child:hover {
    color: #793b2b;
}

/* NOTIFICATIONS */

.admin-messages {
    margin-bottom: 30px;
}

.admin-message {
    padding: 16px 20px;
    margin-bottom: 10px;
    border: 1px solid #d8e5d2;
    border-left: 3px solid #6b8a61;
    border-radius: 4px;
    background: #eef4e9;
    color: #3e6342;
    font-size: .85rem;
    line-height: 1.7;
}

/* EMPTY STATE */

.admin-empty {
    padding: 65px 25px !important;
    text-align: center;
}

.admin-empty h3 {
    margin: 0 0 12px;
    color: var(--admin-green);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.9rem;
    font-weight: 400;
}

.admin-empty p {
    max-width: 400px;
    margin: 0 auto 24px;
    color: var(--admin-muted);
    line-height: 1.8;
}

/* PUBLISHING NOTE */

.admin-note {
    margin-top: 48px;
    padding: 30px 34px;
    border: 1px solid #e5e6d9;
    border-radius: 6px;
    background: #f1f2e9;
}

.admin-note h2 {
    margin: 0 0 12px;
    color: var(--admin-green);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
}

.admin-note p {
    max-width: 820px;
    margin: 0;
    color: #74766a;
    font-size: .84rem;
    line-height: 1.95;
}

/* FOOTER */

.admin-footer {
    padding: 30px 20px;
    border-top: 1px solid var(--admin-border);
    color: #898a80;
    text-align: center;
}

.admin-footer p {
    margin: 5px 0;
    font-size: .76rem;
    line-height: 1.8;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .admin-page {
        width: calc(100% - 40px);
        padding-top: 45px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .admin-stats {
        gap: 14px;
        margin-bottom: 65px;
    }

    .admin-stat {
        padding: 22px;
    }

    .admin-stat strong {
        font-size: 2.8rem;
    }
}

@media (max-width: 600px) {
    .admin-page {
        width: calc(100% - 32px);
        padding: 35px 0 55px;
    }

    .site-nav:has(+ .admin-page) {
        padding: 18px 16px;
    }

    .site-nav:has(+ .admin-page) .admin-actions {
        gap: 10px;
    }

    .admin-heading h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .admin-heading p:not(.eyebrow) {
        font-size: .88rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 30px 0 60px;
    }

    .admin-stat {
        min-height: 150px;
    }

    .admin-stat strong {
        font-size: 3rem;
    }

    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table {
        min-width: 760px;
    }

    .admin-note {
        padding: 24px 20px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .admin-stat,
    .admin-stat::after,
    .admin-button,
    .admin-table tbody tr,
    .admin-row-actions a {
        transition: none;
    }

    .admin-stat:hover,
    .admin-button:hover {
        transform: none;
    }
}

    def clean_choices(self):
        raw_choices = self.cleaned_data["choices"]

        choices = [
            item.strip()
            for item in raw_choices.splitlines()
            if item.strip()
        ]

        if len(choices) < 2:
            raise forms.ValidationError(
                "Enter at least two choices, one per line."
            )

        if len(choices) != len(set(choices)):
            raise forms.ValidationError(
                "Each choice must be different. Remove duplicate choices."
            )

        return "\n".join(choices)

/* Dilemma create/edit form */

.dilemma-editor {
    max-width: 850px;
    padding: 32px;
    border: 1px solid #e8e0d6;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 8px 30px rgb(45 34 22 / 4%);
}

.editor-field {
    margin-bottom: 25px;
}

.editor-field label {
    display: block;
    margin-bottom: 9px;
    color: #352c26;
    font-size: 0.9rem;
    font-weight: 700;
}

.editor-field input:not([type="checkbox"]):not([type="file"]),
.editor-field textarea,
.editor-field select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ded4c8;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #29251f;
    font: inherit;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-field input[type="file"] {
    display: block;
    max-width: 100%;
    margin-top: 8px;
}

.editor-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #713d37;
    vertical-align: middle;
}

.editor-field textarea {
    resize: vertical;
    min-height: 100px;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus {
    border-color: #95654e;
    box-shadow: 0 0 0 3px rgb(149 101 78 / 12%);
}

.editor-field small {
    display: block;
    margin-top: 7px;
    color: #81776c;
    font-size: 0.8rem;
    line-height: 1.6;
}

.editor-error {
    margin: 8px 0 0;
    color: #a33e36;
    font-size: 0.85rem;
}

.editor-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee8df;
}

.editor-cancel {
    color: #713d37;
    font-weight: 600;
    text-decoration: none;
}

.editor-cancel:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .dilemma-editor {
        padding: 20px;
    }

    .editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-actions .admin-button {
        width: 100%;
    }
}


/* =====================================================
   THE HUMAN DILEMMA LAB
   GOLDEN UNICORN CREATE / EDIT EXPERIENCE
===================================================== */

.dilemma-editor-page {
    --unicorn-gold: #c7a45d;
    --unicorn-gold-light: #f1dfae;
    --unicorn-gold-dark: #92703a;
    --unicorn-lilac: #eee7fa;
    --unicorn-rose: #f8eaf0;
    --unicorn-ink: #342b35;
    --unicorn-muted: #8c8190;
    --unicorn-cream: #fffaf2;
    --unicorn-white: #ffffff;
    --unicorn-border: #eadfca;

    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--unicorn-ink);
    background:
        radial-gradient(
            ellipse at 8% 5%,
            rgb(238 231 250 / 75%),
            transparent 32%
        ),
        radial-gradient(
            ellipse at 95% 15%,
            rgb(241 223 174 / 42%),
            transparent 30%
        ),
        linear-gradient(145deg, #fffaf2, #fff 55%, #fbf5fc);
    font-family: "Segoe UI", Arial, sans-serif;
}

.dilemma-editor-page *,
.dilemma-editor-page *::before,
.dilemma-editor-page *::after {
    box-sizing: border-box;
}

/* MAIN EDITOR CARD */

.dilemma-editor-page .dilemma-editor {
    position: relative;
    width: min(850px, 92%);
    margin: 42px auto;
    padding: clamp(24px, 5vw, 52px);
    overflow: hidden;
    background: rgb(255 255 255 / 94%);
    border: 1px solid var(--unicorn-border);
    border-radius: 18px;
    box-shadow:
        0 25px 70px rgb(88 63 103 / 8%),
        0 5px 20px rgb(199 164 93 / 9%);
}

/* IRIDESCENT GOLD TOP EDGE */

.dilemma-editor-page .dilemma-editor::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #b18b45,
        #f5e4b2,
        #d8b6d0,
        #eee1b8,
        #b18b45
    );
}

/* HEADER */

.dilemma-editor-page .admin-heading {
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid #eee5d7;
    text-align: center;
}

.dilemma-editor-page .admin-heading::before {
    content: "✧  THE HUMAN DILEMMA LAB  ✧";
    display: block;
    margin-bottom: 17px;
    color: var(--unicorn-gold-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.dilemma-editor-page .admin-heading h1,
.dilemma-editor-page .admin-heading h2 {
    margin: 0 0 12px;
    color: var(--unicorn-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 400;
    letter-spacing: -1px;
}

.dilemma-editor-page .admin-heading p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--unicorn-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* FORM LAYOUT */

.dilemma-editor-page form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.dilemma-editor-page .editor-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dilemma-editor-page .editor-field label,
.dilemma-editor-page form > p > label,
.dilemma-editor-page form label {
    color: #594b5c;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.35px;
}

/* TEXT INPUTS, SELECTS AND TEXT AREAS */

.dilemma-editor-page input[type="text"],
.dilemma-editor-page input[type="email"],
.dilemma-editor-page input[type="number"],
.dilemma-editor-page input[type="url"],
.dilemma-editor-page input[type="datetime-local"],
.dilemma-editor-page input[type="date"],
.dilemma-editor-page select,
.dilemma-editor-page textarea {
    width: 100%;
    min-height: 49px;
    padding: 14px 16px;
    color: var(--unicorn-ink);
    background: linear-gradient(135deg, #fffefa, #fff);
    border: 1px solid #e7dccc;
    border-radius: 9px;
    outline: none;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.dilemma-editor-page textarea {
    min-height: 150px;
    resize: vertical;
}

.dilemma-editor-page input::placeholder,
.dilemma-editor-page textarea::placeholder {
    color: #b5a9b6;
}

.dilemma-editor-page input:focus,
.dilemma-editor-page select:focus,
.dilemma-editor-page textarea:focus {
    background: #fff;
    border-color: var(--unicorn-gold);
    box-shadow:
        0 0 0 3px rgb(199 164 93 / 13%),
        0 5px 18px rgb(238 231 250 / 55%);
}

/* CHECKBOXES AND RADIO BUTTONS */

.dilemma-editor-page input[type="checkbox"],
.dilemma-editor-page input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: var(--unicorn-gold-dark);
    cursor: pointer;
    vertical-align: middle;
}

.dilemma-editor-page .editor-field input[type="checkbox"] {
    margin-right: 8px;
}

/* DJANGO HELP TEXT AND VALIDATION */

.dilemma-editor-page .helptext,
.dilemma-editor-page .editor-help {
    color: var(--unicorn-muted);
    font-size: 12px;
    line-height: 1.7;
}

.dilemma-editor-page .errorlist {
    margin: 0;
    padding: 12px 15px;
    color: #983e53;
    background: #fff0f3;
    border: 1px solid #f0cbd5;
    border-radius: 8px;
    font-size: 12px;
    list-style: none;
}

.dilemma-editor-page input:invalid:focus,
.dilemma-editor-page textarea:invalid:focus {
    border-color: #d99aa9;
}

/* PUBLISH / SAVE BUTTONS */

.dilemma-editor-page .editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 12px;
    padding-top: 25px;
    border-top: 1px solid #eee5d7;
}

.dilemma-editor-page button,
.dilemma-editor-page input[type="submit"],
.dilemma-editor-page .btn-primary,
.dilemma-editor-page .editor-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 47px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.dilemma-editor-page button[type="submit"],
.dilemma-editor-page input[type="submit"],
.dilemma-editor-page .btn-primary {
    color: #fff;
    background: linear-gradient(
        115deg,
        #a9813e,
        #d9bb77 45%,
        #b18a47 75%,
        #94703b
    );
    border-color: #b99451;
    box-shadow: 0 7px 18px rgb(148 112 59 / 20%);
}

.dilemma-editor-page button[type="submit"]:hover,
.dilemma-editor-page input[type="submit"]:hover,
.dilemma-editor-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 25px rgb(148 112 59 / 29%);
}

.dilemma-editor-page .editor-actions a {
    color: #79677e;
    background: #f4eff9;
    border-color: #e8dff1;
}

.dilemma-editor-page .editor-actions a:hover {
    color: #55425f;
    background: var(--unicorn-lilac);
}

/* OPTIONAL SECTION DIVIDERS */

.dilemma-editor-page .form-section {
    padding: 22px;
    background: linear-gradient(135deg, #fffaf2, #fcf8ff);
    border: 1px solid #eee4d5;
    border-radius: 12px;
}

.dilemma-editor-page .form-section h3 {
    margin-top: 0;
    color: var(--unicorn-gold-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .dilemma-editor-page .dilemma-editor {
        width: 94%;
        margin: 22px auto;
        padding: 25px 19px;
        border-radius: 13px;
    }

    .dilemma-editor-page .admin-heading h1,
    .dilemma-editor-page .admin-heading h2 {
        font-size: 30px;
    }

    .dilemma-editor-page .editor-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dilemma-editor-page .editor-actions button,
    .dilemma-editor-page .editor-actions input[type="submit"],
    .dilemma-editor-page .editor-actions .btn-primary,
    .dilemma-editor-page .editor-actions a {
        width: 100%;
    }
}



/* =========================================
   THE HUMAN DILEMMA LAB
   PREMIUM GOLD ADMIN DASHBOARD
========================================= */

.admin-page {
    --gold: #c6a15b;
    --gold-light: #e8d4a3;
    --gold-dark: #94733b;
    --ink: #29231d;
    --muted: #8a8176;
    --cream: #faf7f0;
    --white: #fffefa;
    --border: #e9dfcc;

    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at top right,
        rgb(198 161 91 / 9%), transparent 36%),
        var(--cream);
    color: var(--ink);
    font-family: "Segoe UI", Georgia, serif;
}

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

/* TOP HEADER */

.admin-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 28px 6%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 5px 24px rgb(53 39 20 / 4%);
}

.admin-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 6%;
    width: 100px;
    height: 3px;
    background: linear-gradient(
        90deg, var(--gold-dark), var(--gold-light)
    );
}

.admin-brand h1 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 500;
    letter-spacing: -0.8px;
}

.admin-brand p {
    margin: 8px 0 0;
    color: var(--gold-dark);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* NAVIGATION */

.admin-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-nav .nav-link {
    padding: 11px 16px;
    color: #655c50;
    text-decoration: none;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.25s ease;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    color: var(--gold-dark);
    background: #f8f1e2;
    border-color: #e8d6b0;
}

/* MAIN CONTENT */

.admin-container {
    width: min(1220px, 88%);
    margin: 52px auto;
}

.admin-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 36px;
}

.admin-welcome .eyebrow {
    margin: 0 0 13px;
    color: var(--gold-dark);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.admin-welcome h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 400;
    letter-spacing: -1px;
}

.admin-welcome > div > p:last-child {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

/* GOLD BUTTONS */

.admin-page .btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 21px;
    background: linear-gradient(
        135deg, #b38b43, #d8bb7c 52%, #b38b43
    );
    color: #fffefa;
    border: 1px solid #b8944d;
    border-radius: 5px;
    box-shadow: 0 5px 14px rgb(148 115 59 / 17%);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.admin-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgb(148 115 59 / 25%);
}

/* STATISTIC CARDS */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 27px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 7px 25px rgb(53 39 20 / 3%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg, var(--gold-dark), var(--gold-light), transparent
    );
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgb(53 39 20 / 8%);
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat-card h3 {
    margin: 17px 0 0;
    color: var(--gold-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-weight: 400;
    letter-spacing: -1px;
}

/* DILEMMA MANAGEMENT PANEL */

.dilemma-management {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 8px 30px rgb(53 39 20 / 3%);
}

.section-heading {
    margin-bottom: 27px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--border);
}

.section-heading h2 {
    margin: 0 0 9px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

/* TABLE */

.dilemma-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.dilemma-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.dilemma-table th {
    padding: 15px 14px;
    background: #f7f1e6;
    color: #80683e;
    border-top: 1px solid #e9dfcc;
    border-bottom: 1px solid #e9dfcc;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dilemma-table th:first-child {
    border-left: 1px solid #e9dfcc;
    border-radius: 5px 0 0 5px;
}

.dilemma-table th:last-child {
    border-right: 1px solid #e9dfcc;
    border-radius: 0 5px 5px 0;
}

.dilemma-table td {
    padding: 19px 14px;
    color: #62594e;
    border-bottom: 1px solid #f0e9dc;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    vertical-align: middle;
}

.dilemma-table tbody tr {
    transition: background 0.2s ease;
}

.dilemma-table tbody tr:hover {
    background: #fcf8ef;
}

.dilemma-table td strong {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 600;
}

/* STATUS LABELS */

.status-badge {
    display: inline-block;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.status-badge.published {
    color: #416746;
    background: #edf4e9;
    border-color: #d8e7d1;
}

.status-badge.expired {
    color: #9c4540;
    background: #fbefeb;
    border-color: #f0d7d1;
}

.status-badge.draft {
    color: #896a2f;
    background: #f8f0df;
    border-color: #ebdbb6;
}

/* ACTION LINKS */

.action-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-link {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.edit-link {
    color: var(--gold-dark);
}

.edit-link:hover {
    color: #5f4621;
    text-decoration: underline;
}

.delete-link {
    color: #a64b42;
}

.delete-link:hover {
    color: #782b24;
    text-decoration: underline;
}

.muted-text {
    color: #a59b8c;
    font-size: 12px;
}

/* EMPTY STATE */

.empty-state {
    padding: 55px 25px;
    background: linear-gradient(135deg, #fcf9f1, #fffefa);
    border: 1px dashed #d9c59c;
    border-radius: 6px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.empty-state p {
    margin: 0 0 25px;
    color: var(--muted);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.8;
}

/* SUCCESS / NOTIFICATION MESSAGES */

.admin-messages {
    margin-bottom: 25px;
}

.admin-page .message {
    padding: 14px 18px;
    color: #416746;
    background: #edf4e9;
    border: 1px solid #d8e7d1;
    border-left: 4px solid #73966d;
    border-radius: 4px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}

/* FOOTER */

.admin-footer {
    margin-top: 60px;
    padding: 26px 20px;
    background: #30271e;
    border-top: 3px solid var(--gold);
    text-align: center;
}

.admin-footer p {
    margin: 0;
    color: #d8c9ad;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.6px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 800px) {
    .admin-container {
        width: 92%;
        margin: 35px auto;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 4%;
    }

    .admin-stats {
        gap: 14px;
    }

    .stat-card {
        padding: 22px 18px;
    }

    .dilemma-management {
        padding: 22px 16px;
    }
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-welcome h2 {
        font-size: 32px;
    }

    .admin-nav {
        gap: 5px;
    }

    .admin-nav .nav-link {
        padding: 9px 10px;
        font-size: 12px;
    }

    .dilemma-table th,
    .dilemma-table td {
        padding: 13px 11px;
    }

    .action-cell {
        gap: 10px;
    }
}

/* =========================================
   GOLDEN UNICORN DELETE CONFIRMATION PAGE
========================================= */

.delete-dilemma-page {
    min-height: 100vh;
    margin: 0;
    color: #342b35;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(ellipse at 10% 10%, #eee7fa 0%, transparent 35%),
        radial-gradient(ellipse at 90% 15%, #f4e6c4 0%, transparent 30%),
        #fffaf3;
}

.delete-dilemma-page *,
.delete-dilemma-page *::before,
.delete-dilemma-page *::after {
    box-sizing: border-box;
}

.delete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px 6%;
    background: rgb(255 254 250 / 90%);
    border-bottom: 1px solid #eadfca;
}

.delete-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #342b35;
    text-decoration: none;
}

.brand-symbol {
    color: #c7a45d;
    font-size: 36px;
}

.delete-brand strong,
.delete-brand small {
    display: block;
}

.delete-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 500;
}

.delete-brand small {
    margin-top: 5px;
    color: #92703a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.back-link {
    color: #92703a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: #5c4524;
}

.delete-main {
    display: flex;
    justify-content: center;
    padding: 65px 20px;
}

.delete-card {
    position: relative;
    width: min(620px, 100%);
    padding: clamp(26px, 5vw, 48px);
    overflow: hidden;
    background: #fffefa;
    border: 1px solid #e8d9b9;
    border-radius: 18px;
    box-shadow:
        0 25px 70px rgb(76 54 81 / 8%),
        0 6px 20px rgb(199 164 93 / 9%);
    text-align: center;
}

.delete-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg, #a9813e, #f1dfae, #d8b6d0, #c7a45d
    );
}

.delete-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 23px;
    color: #a9813e;
    background: linear-gradient(135deg, #fbf1d9, #f1e8f9);
    border: 1px solid #e9d7ad;
    border-radius: 50%;
    font-size: 34px;
}

.delete-eyebrow {
    margin: 0 0 12px;
    color: #92703a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.delete-card h1 {
    margin: 0 0 14px;
    color: #342b35;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 5vw, 39px);
    font-weight: 400;
    letter-spacing: -0.8px;
}

.delete-intro {
    margin: 0 auto;
    color: #8c8190;
    font-size: 14px;
    line-height: 1.8;
}

.delete-gold-line {
    width: 65px;
    height: 2px;
    margin: 26px auto;
    background: linear-gradient(90deg, #c7a45d, #e8d4a3);
}

.dilemma-preview {
    padding: 24px;
    background: linear-gradient(135deg, #fffaf0, #faf6fc);
    border: 1px solid #eee2ce;
    border-radius: 10px;
    text-align: left;
}

.preview-label {
    color: #92703a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.dilemma-preview h2 {
    margin: 12px 0;
    color: #342b35;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.dilemma-preview p {
    margin: 0;
    color: #8c8190;
    font-size: 12px;
    line-height: 1.8;
}

.delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 27px;
    padding: 16px;
    background: #fff7f3;
    border: 1px solid #f1ddd4;
    border-radius: 8px;
    text-align: left;
}

.warning-symbol {
    display: grid;
    flex: 0 0 23px;
    place-items: center;
    width: 23px;
    height: 23px;
    color: #fff;
    background: #b96f5d;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.delete-warning p {
    margin: 0;
    color: #846a63;
    font-size: 12px;
    line-height: 1.8;
}

.delete-warning strong {
    color: #9b4f43;
}

.delete-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
}

.keep-button,
.confirm-delete-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 47px;
    padding: 13px 22px;
    border-radius: 7px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.keep-button {
    color: #79677e;
    background: #f4eff9;
    border: 1px solid #e5d9ef;
}

.keep-button:hover {
    background: #eee7fa;
}

.confirm-delete-button {
    color: #fff;
    background: linear-gradient(115deg, #a9813e, #d1ae69, #a9813e);
    border: 1px solid #b99451;
    box-shadow: 0 5px 15px rgb(148 112 59 / 18%);
}

.confirm-delete-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgb(148 112 59 / 25%);
}

.delete-footer-note {
    margin: 28px 0 0;
    color: #a397a5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.8;
}

.delete-page-footer {
    padding: 22px;
    color: #9a8c77;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
}

@media (max-width: 520px) {
    .delete-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 5%;
    }

    .delete-main {
        padding: 35px 14px;
    }

    .delete-card {
        padding: 30px 20px;
    }

    .delete-actions {
        flex-direction: column;
    }

    .keep-button,
    .confirm-delete-button {
        width: 100%;
    }
}

/* =====================================================
   DYNAMIC DILEMMA DETAIL PAGE
===================================================== */

.dynamic-dilemma-page {
    background: #faf8f3;
    color: #292923;
    font-family: "DM Sans", Arial, sans-serif;
}

.dilemma-detail-container {
    width: min(900px, 90%);
    margin: 0 auto;
    padding: 65px 0 90px;
}

.dilemma-detail-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.dilemma-detail-header h1 {
    margin: 12px 0 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 500;
}

.dilemma-detail-description {
    max-width: 680px;
    margin: 0 auto;
    color: #69645c;
    font-size: 1.05rem;
    line-height: 1.8;
}

.dilemma-detail-image-wrap {
    max-width: 760px;
    margin: 0 auto 42px;
    overflow: hidden;
    border-radius: 20px;
    background: #eee8dc;
}

.dilemma-detail-image {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.dilemma-scenario,
.dilemma-response-section {
    max-width: 760px;
    margin: 0 auto 35px;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid #e8dfce;
    border-radius: 20px;
    background: #fffefa;
    box-shadow: 0 12px 35px rgba(66, 49, 25, 0.045);
}

.dilemma-scenario .eyebrow,
.dilemma-response-section .eyebrow {
    color: #99753d;
    letter-spacing: 0.13em;
    font-size: 0.75rem;
    font-weight: 700;
}

.dilemma-scenario-text {
    font-size: 1.04rem;
    line-height: 1.95;
    color: #454139;
}

.dilemma-response-section h2 {
    margin: 12px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 500;
}

.response-intro {
    margin-bottom: 28px;
    color: #69645c;
    line-height: 1.8;
}

.choice-fieldset {
    min-width: 0;
    margin: 0 0 30px;
    padding: 0;
    border: 0;
}

.choice-fieldset legend {
    margin-bottom: 14px;
    font-weight: 700;
}

.choice-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    padding: 17px 18px;
    border: 1px solid #e8dfce;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    line-height: 1.6;
    transition: border-color 0.2s ease,
                background 0.2s ease;
}

.choice-option:hover {
    border-color: #c5a263;
    background: #fcf8ef;
}

.choice-option input {
    flex-shrink: 0;
    margin-top: 5px;
    accent-color: #99753d;
}

.reasoning-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.reasoning-field label {
    font-weight: 700;
}

.reasoning-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #ded5c5;
    border-radius: 12px;
    background: #fff;
    color: #292923;
    font: inherit;
    line-height: 1.7;
    resize: vertical;
}

.reasoning-field textarea:focus {
    outline: 2px solid #c5a263;
    outline-offset: 2px;
    border-color: #99753d;
}

.response-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.back-to-dilemmas {
    max-width: 760px;
    margin: 30px auto 0;
}

@media (max-width: 600px) {
    .dilemma-detail-container {
        padding-top: 40px;
    }

    .dilemma-scenario,
    .dilemma-response-section {
        padding: 23px 18px;
        border-radius: 15px;
    }

    .dilemma-detail-image-wrap {
        border-radius: 14px;
    }

    .response-submit-button {
        width: 100%;
    }
}

/* ALMOST EXPIRING LABEL */
.expiry-label {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 0 12px;
    border-radius: 20px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.almost-expiring-label {
    background-color: #fff0d6;
    color: #925500;
    border: 1px solid #f0cf91;
}

/* ==========================================
   THE HUMAN DILEMMA LAB
   PREMIUM EDITORIAL ADMIN LOGIN
========================================== */

body.admin-login-page {
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow-x: hidden;
    background: #faf8f3 !important;
    color: #292923 !important;
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
}

/* Restrained gold accent */

body.admin-login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #344b3b 0%,
        #99753d 50%,
        #344b3b 100%
    );
}

body.admin-login-page .admin-login-container {
    width: 100% !important;
    max-width: 460px !important;
    margin: auto !important;
    position: relative;
}

/* Main card */

body.admin-login-page .admin-login-card {
    position: relative;
    padding: 48px 44px 36px !important;
    overflow: hidden;
    border: 1px solid #e8dfce !important;
    border-radius: 20px !important;
    background: #fffefa !important;
    box-shadow:
        0 24px 60px rgba(41, 41, 35, 0.07),
        0 3px 10px rgba(41, 41, 35, 0.025) !important;
    animation: editorialReveal .55s ease both;
}

/* Fine gold top detail */

body.admin-login-page .admin-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #344b3b,
        #c5a263,
        #344b3b
    );
}

/* Elegant heading */

body.admin-login-page .admin-login-card h1 {
    margin: 0 auto !important;
    max-width: 340px;
    color: #292923 !important;
    font-family: "Playfair Display", Georgia, serif !important;
    font-size: clamp(30px, 5vw, 37px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.8px !important;
    text-align: center !important;
}

/* Editorial eyebrow */

body.admin-login-page .admin-login-subtitle {
    margin: 16px 0 32px !important;
    color: #99753d !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase;
    text-align: center !important;
}

body.admin-login-page .admin-login-subtitle::after {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin: 22px auto 0;
    background: #c5a263;
}

/* Form fields */

body.admin-login-page .admin-login-field {
    margin-bottom: 22px !important;
}

body.admin-login-page .admin-login-field label {
    display: block !important;
    margin-bottom: 9px !important;
    color: #292923 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .2px;
}

body.admin-login-page .admin-login-field input {
    display: block !important;
    width: 100% !important;
    min-height: 52px;
    padding: 14px 15px !important;
    box-sizing: border-box !important;
    border: 1px solid #e8dfce !important;
    border-radius: 9px !important;
    outline: none !important;
    background: #faf8f3 !important;
    color: #292923 !important;
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
    font-size: 14px !important;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease !important;
}

body.admin-login-page .admin-login-field input:hover {
    border-color: #c5b99f !important;
}

body.admin-login-page .admin-login-field input:focus {
    border-color: #99753d !important;
    background: #fffefa !important;
    box-shadow: 0 0 0 3px rgba(197, 162, 99, .16) !important;
}

/* Forest-green button */

body.admin-login-page .admin-login-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 53px;
    margin-top: 28px !important;
    padding: 15px 20px !important;
    border: 1px solid #344b3b !important;
    border-radius: 9px !important;
    background: #344b3b !important;
    color: #fffefa !important;
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(52, 75, 59, .12);
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;
}

body.admin-login-page .admin-login-button:hover {
    transform: translateY(-2px);
    border-color: #25392b !important;
    background: #25392b !important;
    box-shadow: 0 9px 20px rgba(52, 75, 59, .19);
}

body.admin-login-page .admin-login-button:active {
    transform: translateY(0);
}

/* Error message */

body.admin-login-page .admin-login-error {
    padding: 13px 15px !important;
    margin: 0 0 22px !important;
    border: 1px solid #e8c9c1 !important;
    border-radius: 9px !important;
    background: #fbf0ed !important;
    color: #8d4537 !important;
    font-size: 12px !important;
    line-height: 1.7;
}

/* Login notice */

body.admin-login-page .admin-login-message {
    color: #69645c !important;
    font-size: 13px !important;
    line-height: 1.7;
    text-align: center;
}

/* Back link */

body.admin-login-page .admin-login-back {
    display: block !important;
    width: fit-content;
    margin: 27px auto 0 !important;
    color: #69645c !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

body.admin-login-page .admin-login-back:hover {
    color: #99753d !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* Subtle entrance */

@keyframes editorialReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media (max-width: 520px) {
    body.admin-login-page {
        padding: 22px 15px !important;
    }

    body.admin-login-page .admin-login-card {
        padding: 42px 24px 30px !important;
        border-radius: 16px !important;
    }

    body.admin-login-page .admin-login-card h1 {
        font-size: 30px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.admin-login-page .admin-login-card {
        animation: none !important;
    }

    body.admin-login-page .admin-login-button,
    body.admin-login-page .admin-login-field input {
        transition: none !important;
    }
}
/* ==========================================
   ADMIN DASHBOARD — LOGOUT BUTTON
========================================== */

.admin-logout-form {
    display: inline-flex;
    margin: 0;
}

.admin-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid #344b3b;
    border-radius: 8px;
    background: transparent;
    color: #344b3b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-logout-button:hover {
    background: #344b3b;
    color: #fffefa;
}

/* ==========================================
   DASHBOARD — EDIT & DELETE ICONS
========================================== */

.dilemma-action-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.delete-icon-form {
    display: inline-flex;
    margin: 0;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e8dfce;
    border-radius: 10px;
    background: #fffefa;
    color: #344b3b;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.action-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(41, 41, 35, 0.08);
}

/* Pencil */

.edit-icon:hover {
    border-color: #344b3b;
    background: #344b3b;
    color: #fffefa;
}

/* Trash can */

.delete-icon {
    color: #a34d43;
}

.delete-icon:hover {
    border-color: #a34d43;
    background: #a34d43;
    color: #ffffff;
}

.action-icon:focus-visible {
    outline: 3px solid #c5a263;
    outline-offset: 3px;
}

/* Subtle administrator access link */

.admin-access-link {
    display: inline-block;
    color: #99753d;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-access-link:hover {
    color: #344b3b;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --background: #f8f7f3;
    --surface: #ffffff;
    --surface-soft: #f1f0e9;
    --text: #292d26;
    --muted: #77796f;
    --green: #626d4d;
    --green-dark: #434d34;
    --green-light: #e9ede3;
    --border: #e8e6de;
    --accent: #c77c5b;
    --shadow: 0 12px 35px rgba(42, 47, 35, 0.055);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-header {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    width: min(1160px, calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.brand-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 23px;
}

.brand-name {
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green-dark);
}

.dashboard-main {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.dashboard-hero {
    padding: 78px 0 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    align-items: center;
    gap: 65px;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dashboard-hero h1,
.dashboard-bottom h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -1.3px;
    line-height: 1.15;
}

.dashboard-hero h1 {
    max-width: 700px;
    font-size: clamp(38px, 5vw, 60px);
}

.dashboard-hero h1 span {
    display: block;
    color: var(--green);
}

.hero-description {
    max-width: 570px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.hero-note {
    padding: 28px;
    border: 1px solid #e2e4d9;
    border-radius: var(--radius);
    background: var(--green-light);
}

.note-label {
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.hero-note p {
    margin: 13px 0 0;
    color: #515746;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    line-height: 1.55;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 75px;
}

.stat-card {
    padding: 25px 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.stat-number {
    margin: 10px 0 1px;
    color: var(--green-dark);
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.25;
}

.stat-description {
    color: #99998f;
    font-size: 12px;
}

.dashboard-section {
    margin-bottom: 75px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.section-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.response-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.response-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.response-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.card-index {
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.response-card h3 {
    margin: 7px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.response-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.response-total strong {
    color: var(--green);
    font-size: 22px;
    line-height: 1.3;
}

.response-total span {
    color: var(--muted);
    font-size: 10px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.response-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.response-table th {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.response-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f0efe9;
    color: #686a61;
    font-size: 12px;
    vertical-align: middle;
}

.response-table tbody tr:last-child td {
    border-bottom: none;
}

.response-table .choice-name {
    min-width: 120px;
    color: var(--text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.percentage-pill {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 20px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.empty-message {
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 55px 25px;
    border: 1px dashed #d7d7ca;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.empty-state-label {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.empty-state h3 {
    margin: 13px 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
}

.empty-state p {
    max-width: 500px;
    margin: 0 auto 23px;
    color: var(--muted);
    font-size: 13px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
    padding: 12px 20px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button {
    background: var(--green);
    color: white;
}

.primary-button:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.dashboard-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 75px;
    padding: 37px 40px;
    border-radius: var(--radius);
    background: #eeeee6;
}

.dashboard-bottom h2 {
    font-size: 32px;
}

.dashboard-bottom p:not(.eyebrow) {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.secondary-button {
    flex-shrink: 0;
    border: 1px solid #d5d7cb;
    background: white;
    color: var(--green-dark);
}

.secondary-button:hover {
    background: var(--green-light);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px max(24px, calc((100% - 1160px) / 2));
    border-top: 1px solid var(--border);
    background: #fff;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 850px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 55px;
    }

    .hero-note {
        max-width: 600px;
    }

    .response-groups {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .nav-container,
    .dashboard-main {
        width: calc(100% - 32px);
    }

    .nav-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        padding: 16px 0;
    }

    .main-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 18px;
    }

    .brand-name {
        font-size: 13px;
    }

    .dashboard-hero {
        padding-top: 42px;
    }

    .dashboard-hero h1 {
        font-size: 39px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 55px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 35px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .response-card {
        padding: 18px 14px;
    }

    .response-card h3 {
        font-size: 18px;
    }

    .response-table th,
    .response-table td {
        padding: 11px 7px;
    }

    .dashboard-bottom {
        padding: 26px 21px;
        margin-bottom: 50px;
    }

    .dashboard-bottom h2 {
        font-size: 27px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 22px 16px;
    }
}

/* ========================================
   HUMAN DILEMMA LAB — PERSPECTIVES ROOM
======================================== */

.perspectives-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 7%;
    background: #ffffff;
    border-bottom: 1px solid #e9e4f0;
}

    .perspectives-header .brand {
        color: #252b36;
        text-decoration: none;
        font-size: 19px;
        font-weight: 800;
    }

        .perspectives-header .brand span {
            color: #7957d5;
        }

    .perspectives-header .back-link {
        color: #7957d5;
        text-decoration: none;
        font-weight: 600;
    }

        .perspectives-header .back-link:hover {
            text-decoration: underline;
        }

.perspectives-container {
    min-height: 100vh;
    padding: 0 20px;
    background: #f8f5ef;
    color: #252b36;
}

.perspectives-hero {
    max-width: 850px;
    margin: 0 auto;
    padding: 70px 0 45px;
    text-align: center;
}

    .perspectives-hero .eyebrow {
        display: inline-block;
        padding: 8px 14px;
        border-radius: 30px;
        background: #f0ebff;
        color: #7957d5;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .perspectives-hero h1 {
        margin: 22px 0 16px;
        font-size: clamp(34px, 6vw, 58px);
        line-height: 1.12;
        letter-spacing: -1.8px;
    }

        .perspectives-hero h1 span {
            color: #7957d5;
        }

    .perspectives-hero > p {
        max-width: 650px;
        margin: 0 auto;
        color: #737987;
        font-size: 16px;
        line-height: 1.8;
    }

.response-count {
    margin-top: 24px;
    color: #7957d5;
    font-size: 14px;
    font-weight: 700;
}

.perspectives-list {
    max-width: 850px;
    margin: 0 auto;
    padding-bottom: 70px;
}

.perspective-card {
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid #e9e4f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(37, 43, 54, 0.04);
    animation: perspective-appear 0.5s ease both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .perspective-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 35px rgba(65, 45, 100, 0.09);
    }

.perspective-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.anonymous-label {
    color: #7957d5;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dilemma-label {
    padding: 7px 12px;
    border-radius: 30px;
    background: #f6f3fc;
    color: #625579;
    font-size: 12px;
}

.perspective-reasoning {
    margin: 0;
    color: #343947;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.perspective-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eeeaf3;
    color: #8b8498;
    font-size: 12px;
}

.empty-perspectives {
    padding: 55px 25px;
    border: 1px dashed #cfc4e7;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}

    .empty-perspectives h2 {
        margin-top: 0;
        color: #252b36;
    }

    .empty-perspectives p {
        color: #737987;
        line-height: 1.8;
    }

.explore-link {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 30px;
    background: #7957d5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .explore-link:hover {
        background: #6040b7;
        transform: translateY(-2px);
    }

@keyframes perspective-appear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .perspectives-header {
        padding: 18px 5%;
    }

        .perspectives-header .brand {
            font-size: 16px;
        }

        .perspectives-header .back-link {
            font-size: 13px;
        }

    .perspectives-container {
        padding: 0 14px;
    }

    .perspectives-hero {
        padding-top: 48px;
    }

    .perspectives-card {
        padding: 20px;
    }

    .perspective-card {
        padding: 21px;
        border-radius: 16px;
    }

    .perspective-reasoning {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .perspective-card,
    .explore-link {
        animation: none;
        transition: none;
    }

        .perspective-card:hover,
        .explore-link:hover {
            transform: none;
        }
}

/* Anonymous reflections link on homepage cards */
.reflection-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: #7957d5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

    .reflection-link:hover {
        color: #6040b7;
        gap: 11px;
        text-decoration: underline;
    }


/* ========================================
   ACCESSIBILITY BUTTON — CLEAR & ELEGANT
======================================== */

.hero-visual {
    position: relative;
}

.accessibility-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .accessibility-toggle:hover {
        background: rgba(255, 255, 255, 0.32);
        transform: scale(1.06);
    }

    .accessibility-toggle:focus-visible {
        outline: 3px solid #ffffff;
        outline-offset: 4px;
    }

@media (prefers-reduced-motion: reduce) {
    .accessibility-toggle,
    .accessibility-toggle:hover {
        transition: none;
        transform: none;
    }
}

/* ========================================
   ACCESSIBILITY SETTINGS PANEL
======================================== */

.accessibility-panel {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 1000;
    width: 290px;
    max-width: calc(100vw - 32px);
    padding: 22px;
    background: #fffdf8;
    color: #292821;
    border: 1px solid #e5dfd2;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    font-family: 'DM Sans', sans-serif;
}

    .accessibility-panel[hidden] {
        display: none;
    }

.accessibility-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .accessibility-panel-header h2 {
        margin: 0;
        font-family: 'Playfair Display', serif;
        font-size: 24px;
        font-weight: 500;
    }

#accessibility-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #eee9df;
    color: #292821;
    font-size: 24px;
    cursor: pointer;
}

.accessibility-panel > p {
    margin: 12px 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #625f56;
}

.accessibility-controls {
    display: grid;
    gap: 10px;
}

    .accessibility-controls button {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d9d2c5;
        border-radius: 9px;
        background: #ffffff;
        color: #292821;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        text-align: left;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .accessibility-controls button:hover {
            background: #f0ece3;
        }

        .accessibility-controls button:focus-visible,
        #accessibility-close:focus-visible {
            outline: 3px solid #665b45;
            outline-offset: 3px;
        }

@media (max-width: 480px) {
    .accessibility-panel {
        top: 85px;
        right: 16px;
    }
}

/* ========================================
   ACCESSIBILITY: HIGH CONTRAST
======================================== */

body.accessibility-high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

    body.accessibility-high-contrast * {
        color: #ffffff !important;
        border-color: #ffff00 !important;
    }

    body.accessibility-high-contrast a {
        color: #ffff00 !important;
        text-decoration: underline;
    }

    body.accessibility-high-contrast button {
        background: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #ffff00 !important;
    }

    body.accessibility-high-contrast img {
        outline-color: #ffff00;
    }

    body.accessibility-high-contrast .accessibility-panel {
        background: #000000 !important;
        border: 2px solid #ffff00 !important;
    }

/* ACCESSIBILITY BUTTON — ALL PAGES */
body > .accessibility-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1001;
}

/* KEEP THE BUTTON OVER THE HOMEPAGE HERO IMAGE */
.hero-visual > .accessibility-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* ACCESSIBILITY ICON ON PAGES OTHER THAN HOME */
body:not(:has(.hero-visual)) .accessibility-toggle {
    color: #29251f;
    background: rgba(255, 253, 248, 0.96);
    border: 1px solid #29251f;
}

    /* MAKE THE ICON CLEAR WHEN HOVERED */
    body:not(:has(.hero-visual)) .accessibility-toggle:hover {
        color: #000000;
        background: #ffffff;
    }

/* =========================================
   HUMAN DILEMMA LAB — AI CHAT ASSISTANT
   ========================================= */

.ai-chat-widget,
.ai-chat-widget * {
    box-sizing: border-box;
}

.ai-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    font-family: inherit;
}

/* Floating chat button */

.ai-chat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 21px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: #242820;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .ai-chat-toggle:hover {
        background: #3a4033;
        transform: translateY(-2px);
    }

.ai-chat-toggle-icon {
    color: #e8c878;
    font-size: 21px;
}

/* Chat panel */

.ai-chat-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 32px));
    height: min(540px, calc(100dvh - 120px));
    min-height: 340px;
    overflow: hidden;
    border: 1px solid #e5e1d8;
    border-radius: 20px;
    background: #fffdf8;
    color: #282820;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

    .ai-chat-panel[hidden] {
        display: none !important;
    }

/* Panel header */

.ai-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 20px 18px;
    background: #f1eee5;
    border-bottom: 1px solid #e5e1d8;
}

.ai-chat-eyebrow {
    margin: 0 0 8px;
    color: #77745f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.ai-chat-header h2 {
    margin: 0 0 7px;
    color: #292a23;
    font-family: inherit;
    font-size: 21px;
    line-height: 1.3;
}

.ai-chat-subtitle {
    margin: 0;
    color: #6d6b61;
    font-size: 12px;
    line-height: 1.6;
}

.ai-chat-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #34352e;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

    .ai-chat-close:hover {
        background: rgba(0, 0, 0, 0.07);
    }

/* Conversation area */

.ai-chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ai-chat-message {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ai-chat-message-assistant {
    align-self: flex-start;
    border: 1px solid #e9e5db;
    border-bottom-left-radius: 5px;
    background: #f4f1e9;
    color: #33342c;
}

.ai-chat-message-user {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: #30352a;
    color: #ffffff;
}

/* Message input */

.ai-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 14px;
    border-top: 1px solid #e8e4da;
    background: #ffffff;
}

    .ai-chat-form textarea {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        max-height: 110px;
        resize: vertical;
        padding: 12px;
        border: 1px solid #dcd8ce;
        border-radius: 12px;
        outline: none;
        background: #fffefa;
        color: #292a23;
        font: inherit;
        font-size: 13px;
        line-height: 1.5;
    }

        .ai-chat-form textarea:focus {
            border-color: #777d62;
            box-shadow: 0 0 0 3px rgba(119, 125, 98, 0.12);
        }

    .ai-chat-form button {
        min-height: 44px;
        padding: 0 15px;
        border: 0;
        border-radius: 12px;
        background: #30352a;
        color: #ffffff;
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

        .ai-chat-form button:hover {
            background: #454b3b;
        }

        .ai-chat-form button:disabled {
            opacity: 0.6;
            cursor: wait;
        }

.ai-chat-disclaimer {
    margin: 0;
    padding: 0 14px 12px;
    background: #ffffff;
    color: #77756c;
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.ai-chat-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;
}

/* Keyboard accessibility */

.ai-chat-widget button:focus-visible {
    outline: 3px solid #b49a56;
    outline-offset: 3px;
}

/* Small screens */

@media (max-width: 480px) {
    .ai-chat-widget {
        right: 14px;
        bottom: 14px;
    }

    .ai-chat-panel {
        position: fixed;
        right: 12px;
        bottom: 78px;
        width: calc(100vw - 24px);
        height: min(600px, calc(100dvh - 100px));
    }

    .ai-chat-toggle {
        padding: 12px 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-chat-toggle {
        transition: none;
    }
}


/* new css mark*/


/* =========================================
   HUMAN DILEMMA LAB — IMMERSIVE EDITORIAL HERO
========================================= */

.editorial-hero {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #263326;
    color: #f8f5ed;
    padding: 140px 9% 110px;
}

/* Full-screen photograph */

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 40%;
        transform: scale(1.05);
    }

/* Dark overlay for readable typography */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient( 90deg, rgba(15, 25, 18, 0.82) 0%, rgba(15, 25, 18, 0.52) 48%, rgba(15, 25, 18, 0.12) 100% ), linear-gradient( 0deg, rgba(15, 25, 18, 0.55), transparent 35% );
}

/* Editorial labels */

.hero-topline,
.hero-bottomline {
    position: absolute;
    left: 9%;
    right: 9%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-topline {
    top: 40px;
}

.hero-bottomline {
    bottom: 35px;
}

/* Main hero typography */

.editorial-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.editorial-hero .eyebrow {
    color: #d5c9a7;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 28px;
}

.editorial-hero h1 {
    color: #fbf8ef;
    font-family: 'Playfair Display', serif;
    font-size: clamp(58px, 8vw, 112px);
    line-height: 0.99;
    font-weight: 400;
    letter-spacing: -4px;
    margin: 0 0 28px;
}

    .editorial-hero h1 em {
        color: #d3d5bd;
        font-weight: 400;
    }

.editorial-hero .description {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 35px;
}

/* Editorial call to action */

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 35px;
    padding: 15px 0;
    color: #f8f5ed;
    text-decoration: none;
    border-bottom: 1px solid rgba(248, 245, 237, 0.65);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: gap 250ms ease, border-color 250ms ease;
}

    .hero-cta:hover {
        gap: 48px;
        border-color: #d5c9a7;
    }

/* Mobile layout */

@media (max-width: 768px) {

    .editorial-hero {
        min-height: 90svh;
        padding: 130px 7% 110px;
    }

    .hero-topline,
    .hero-bottomline {
        left: 7%;
        right: 7%;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero-topline {
        top: 30px;
    }

    .editorial-hero h1 {
        font-size: clamp(52px, 12vw, 78px);
        letter-spacing: -2px;
    }

    .editorial-hero .description {
        font-size: 14px;
    }

    .hero-overlay {
        background: linear-gradient( 90deg, rgba(15, 25, 18, 0.78), rgba(15, 25, 18, 0.32) ), linear-gradient( 0deg, rgba(15, 25, 18, 0.65), transparent 65% );
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta {
        transition: none;
    }
}

/* =========================================
   EDITORIAL NAVIGATION
========================================= */

.editorial-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 9%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fbf8ef;
}

.editorial-logo {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #fbf8ef;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

    .editorial-logo span {
        color: #d3d5bd;
        font-family: 'Playfair Display', serif;
        font-size: 17px;
        font-weight: 400;
        letter-spacing: 1px;
    }

.editorial-nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

    .editorial-nav-links a {
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        font-family: 'DM Sans', sans-serif;
        font-size: 12px;
        letter-spacing: 0.5px;
        transition: color 200ms ease;
    }

        .editorial-nav-links a:hover {
            color: #d3d5bd;
        }

@media (max-width: 768px) {

    .editorial-nav {
        padding: 22px 7%;
        align-items: flex-start;
    }

    .editorial-nav-links {
        gap: 14px;
    }

        .editorial-nav-links a {
            font-size: 10px;
        }
}

