@import url("site-navigation.css");

html {
    scroll-behavior: smooth;
}
/* =================================
   WANDERING WHIMS
   Brand Styles
================================= */

/* Our Brand Colors */
:root {
    --forest-green: #183D30;
    --moss-green: #315B43;
    --antique-gold: #C4A35A;
    --warm-linen: #EDE7D8;
    --earth-taupe: #A99B82;
}

/* Basic Website Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background-color: var(--warm-linen);
    color: var(--forest-green);
    line-height: 1.7;
}

/* Website Header */
header {
    background-color: var(--forest-green);
    color: var(--warm-linen);
    text-align: center;
    padding: 70px 20px;
    border-bottom: 5px solid var(--antique-gold);
}

header h1 {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--antique-gold);
}

header p {
    font-size: 18px;
    font-style: italic;
}

/* Main Welcome Section */
main {
    max-width: 1100px;
    margin: 60px auto;
    padding: 50px 30px;
    text-align: center;
    background-color: #F7F3EA;
    border: 1px solid var(--earth-taupe);
    border-radius: 12px;
}

main h2 {
    color: var(--moss-green);
    font-size: 30px;
    margin-bottom: 20px;
}

main p {
    font-size: 18px;
}

/* Website Footer */
footer {
    background-color: var(--forest-green);
    color: var(--warm-linen);
    text-align: center;
    padding: 25px;
    border-top: 3px solid var(--antique-gold);
    letter-spacing: 3px;
    font-size: 14px;
}

/* Smaller Screens */
@media (max-width: 600px) {
    header h1 {
        font-size: 30px;
    }

    main {
        margin: 30px 15px;
        padding: 35px 20px;
    }

    main h2 {
        font-size: 24px;
    }
}


/* Navigation Menu */
.main-nav {
    background-color: #EDE7D8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    padding: 22px 15px;
    border-bottom: 1px solid #C4A35A;
}

.main-nav a {
    color: #183D30;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #A7833D;
}

@media (max-width: 600px) {
    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 12px;
        letter-spacing: 2px;
    }
}


/* BUILD SECTION */

.content-section {
    max-width: 1100px;
    margin: 70px auto;
    padding: 55px 30px;
    text-align: center;
}

.section-label {
    color: #A7833D;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 15px;
}

.content-section h2 {
    color: #183D30;
    font-size: 36px;
    margin-bottom: 18px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 17px;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.inspiration-card {
    background-color: #F7F3EA;
    border: 1px solid #C4A35A;
    border-radius: 10px;
    padding: 30px 22px;
    box-shadow: 0 4px 12px rgba(24, 61, 48, 0.08);
}

.inspiration-card h3 {
    color: #315B43;
    font-size: 21px;
    margin-bottom: 15px;
}

.inspiration-card p {
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .inspiration-grid {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 28px;
    }
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #315B43;
}

/* HOMEPAGE HERO MAKEOVER */

.hero {
    max-width: 1100px;
    margin: 65px auto;
    padding: 85px 35px;
    text-align: center;
    background-color: #F7F3EA;
    border: 1px solid var(--antique-gold);
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(24, 61, 48, 0.10);
}

.hero-label {
    color: #A7833D;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.hero h2 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 25px;
}

.hero-intro {
    max-width: 680px;
    margin: 0 auto 35px;
    font-size: 17px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-button {
    display: inline-block;
    background-color: var(--forest-green);
    color: var(--warm-linen);
    padding: 14px 25px;
    border: 1px solid var(--antique-gold);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.hero-button:hover {
    background-color: var(--moss-green);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: var(--forest-green);
}

.secondary-button:hover {
    background-color: var(--warm-linen);
}

.hero-motto {
    color: #A7833D;
    font-size: 12px;
    letter-spacing: 4px;
}

@media (max-width: 600px) {
    .hero {
        margin: 30px 15px;
        padding: 55px 20px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero-intro {
        font-size: 15px;
    }

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

/* ESTATE-INSPIRED HERO BACKGROUND */

.hero {
    background-image:
        linear-gradient(
            rgba(247, 243, 234, 0.829),
            rgba(247, 243, 234, 0.733)
        ),
        url("estate-hero.jpg");

    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;

    border: 2px solid var(--antique-gold);
    outline: 1px solid var(--earth-taupe);
    outline-offset: 5px;
}
/* CATEGORY CARD IMAGES */

/* RESPONSIVE CATEGORY IMAGES */

.category-image {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    border: none;
    border-radius: 6px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .category-image {
        height: 190px;
        object-position: center;
    }
}


/* =================================
   ELEGANT CARD HOVER EFFECTS
================================= */

.inspiration-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.inspiration-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 12px 25px rgba(24, 61, 48, 0.16);

    border-color: var(--antique-gold);
}

/* Gentle image enhancement */

.category-image {
    transition: transform 0.4s ease;
}

.inspiration-card:hover .category-image {
    transform: scale(1.02);
}

/* Keyboard accessibility */

.inspiration-card:focus-within {
    outline: 2px solid var(--antique-gold);
    outline-offset: 4px;
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .inspiration-card,
    .category-image {
        transition: none;
    }

    .inspiration-card:hover {
        transform: none;
    }

    .inspiration-card:hover .category-image {
        transform: none;
    }
}


/* ELEGANT GOLD SECTION DIVIDERS */

.content-section {
    position: relative;
}

.content-section::after {
    content: "✧  ◆  ✧";
    display: block;
    color: var(--antique-gold);
    font-size: 18px;
    letter-spacing: 8px;
    margin: 55px auto 0;
    opacity: 0.85;
}


/* SIGNATURE SIMSPIRATION PLUMBOB */

.plumbob-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    color: var(--antique-gold);
}

.plumbob {
    color: #83B94B;
    font-size: 27px;
    text-shadow: 0 0 12px rgba(131, 185, 75, 0.35);
    transform: rotate(0deg) scaleX(0.75);
}


/* Extra space so the Back to Top button doesn't cover content */
body {
    padding-bottom: 85px;
}


/* Improve Back to Top button on smaller screens */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        padding: 10px 14px;
        font-size: 13px;
    }
}


/* Extra breathing room between page introductions and cards */
.content-section .inspiration-grid {
    margin-top: 40px;
}


/* Fine-tune Build Inspiration Generator spacing */
#build-generator {
    padding-top: 25px;
}

#build-generator .generator-box {
    margin-top: 40px;
}


/* BUILD GENERATOR CONTROLS */

#build-pack-filter {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 12px auto 25px;
    padding: 13px 16px;

    background-color: #EDE7D8;
    color: #183D30;

    border: 1px solid #C4A35A;
    border-radius: 6px;

    font-family: Georgia, serif;
    font-size: 16px;

    cursor: pointer;
}

#build-pack-filter:focus {
    outline: 2px solid #C4A35A;
    outline-offset: 3px;
}

/* GENERATE BUTTON */

#generate-build-prompt,
#generate-build-challenge {
    display: block;
    margin: 20px auto;
    padding: 14px 28px;

    background-color: #183D30;
    color: #EDE7D8;

    border: 1px solid #C4A35A;
    border-radius: 6px;

    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#generate-build-prompt:hover,
#generate-build-challenge:hover {
    background-color: #315B43;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(24, 61, 48, 0.2);
}

#generate-build-prompt:focus-visible,
#generate-build-challenge:focus-visible {
    outline: 2px solid #C4A35A;
    outline-offset: 4px;
}


/* BUILD GENERATOR RESULTS */

#build-prompt-result {
    max-width: 550px;
    margin: 30px auto 10px;
    padding: 25px 30px;

    background-color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.10);
    text-align: left;
}

#build-prompt-result h3 {
    color: #183D30;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 22px;
}

#build-prompt-result p {
    color: #315B43;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 10px 0;
    border-bottom: 1px solid rgba(196, 163, 90, 0.45);
}

#build-prompt-result p:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#build-prompt-result strong {
    color: #183D30;
}


/* BUILD GENERATOR BUTTON SPACING */

#generate-build-prompt,
#generate-build-challenge {
    min-width: 240px;
    margin: 15px auto;
}

#build-challenge-result {
    margin-top: 25px;
}


/* ELEGANT DELETE PROJECT BUTTONS */

.delete-saved-project {
    display: inline-block;
    background-color: #183D30;
    color: #EDE7D8;

    border: 1px solid #C4A35A;
    border-radius: 5px;

    padding: 10px 20px;
    margin-top: 18px;

    font-family: Georgia, serif;
    font-size: 14px;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.delete-saved-project:hover {
    background-color: #315B43;
    color: #FFFFFF;
    border-color: #C4A35A;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 61, 48, 0.18);
}

.delete-saved-project:focus-visible {
    outline: 2px solid #C4A35A;
    outline-offset: 4px;
}

/* My Simspiration Save Buttons */

#save-build-inspiration,
#save-build-challenge {
    display: block;
    margin: 20px auto 30px;
    padding: 13px 26px;

    background-color: #183D30;
    color: #EDE7D8;

    border: 1px solid #C4A35A;
    border-radius: 6px;

    font-family: Georgia, serif;
    font-size: 15px;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover Effect */

#save-build-inspiration:hover:not(:disabled),
#save-build-challenge:hover:not(:disabled) {
    background-color: #315B43;
    color: #FFFFFF;

    transform: translateY(-3px);

    box-shadow: 0 5px 12px rgba(24, 61, 48, 0.20);
}

/* Keyboard Focus */

#save-build-inspiration:focus-visible,
#save-build-challenge:focus-visible {
    outline: 2px solid #C4A35A;
    outline-offset: 4px;
}

/* Disabled State */

#save-build-inspiration:disabled,
#save-build-challenge:disabled {
    background-color: #A99B82;
    color: #F7F3EA;
    border-color: #A99B82;
    cursor: not-allowed;
    opacity: 0.65;
}


/* =================================
   GAMEPLAY GENERATOR DESIGN
================================= */

/* Main Generator Heading */

#gameplay-generator .gameplay-generator-title {
    color: #183D30;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #C4A35A;
}

/* Individual Generator Sections */

.gameplay-generator-section {
    background-color: #EDE7D8;
    border: 1px solid rgba(196, 163, 90, 0.65);
    border-radius: 8px;

    padding: 30px;
    margin: 30px 0;

    box-shadow: 0 3px 10px rgba(24, 61, 48, 0.06);
}

/* Section Headings */

.gameplay-generator-section h4 {
    color: #315B43;
    font-size: 21px;
    font-weight: normal;
    margin-bottom: 15px;
}

/* Section Descriptions */

.gameplay-generator-section > p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
}

/* Pack Selector Label */

.gameplay-generator-section label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Pack Selector */

#gameplay-pack-filter {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 13px 16px;

    background-color: #F7F3EA;
    color: #183D30;

    border: 1px solid #C4A35A;
    border-radius: 6px;

    font-family: Georgia, serif;
    font-size: 16px;
}

/* Gameplay Buttons */

#generate-gameplay-prompt,
#generate-gameplay-event,
#save-gameplay-inspiration,
#save-gameplay-event {
    display: block;
    margin: 20px auto;
    padding: 13px 25px;

    background-color: #183D30;
    color: #EDE7D8;

    border: 1px solid #C4A35A;
    border-radius: 6px;

    font-family: Georgia, serif;
    font-size: 14px;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: 0.3s ease;
}

/* Button Hover */

#generate-gameplay-prompt:hover,
#generate-gameplay-event:hover,
#save-gameplay-inspiration:hover:not(:disabled),
#save-gameplay-event:hover:not(:disabled) {
    background-color: #315B43;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(24, 61, 48, 0.16);
}

/* Disabled Save Buttons */

#save-gameplay-inspiration:disabled,
#save-gameplay-event:disabled {
    background-color: #A99B82;
    color: #F7F3EA;
    border-color: #A99B82;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Generator Results */

#gameplay-prompt-result,
#gameplay-event-result {
    max-width: 550px;
    margin: 25px auto;
    padding: 22px;

    background-color: #F7F3EA;
    border: 1px solid #C4A35A;
    border-radius: 7px;

    text-align: left;
    line-height: 1.8;
}

/* Mobile Spacing */

@media (max-width: 600px) {
    .gameplay-generator-section {
        padding: 22px 16px;
        margin: 22px 0;
    }

    #gameplay-generator .gameplay-generator-title {
        font-size: 24px;
    }

    .gameplay-generator-section h4 {
        font-size: 19px;
    }
}


/* CHALLENGES PAGE SPACING AND DIVIDERS */

#original-challenges {
    padding-top: 5px;
}

/* Remove extra divider between challenge sections */

#original-challenges::after,
#play::after {
    display: none;
}


#original-challenges .inspiration-card h3,
#play .inspiration-card h3 {
    margin-top: 0;
}

/* Remove the extra divider between challenge sections */

#original-challenges::after {
    display: none;
}



/* FEATURED ORIGINAL CHALLENGE — BRIARWOOD ESTATE */

.featured-challenge-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 45px;
    padding: 35px;
    margin-top: 35px;
    background-color: var(--warm-linen);
    border: 1px solid var(--antique-gold);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(24, 61, 48, 0.12);
}

.featured-challenge-card .category-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid var(--earth-taupe);
}

.featured-challenge-content {
    padding: 15px 10px;
}

.featured-challenge-content h3 {
    color: var(--forest-green);
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 1.65rem;
    line-height: 1.35;
}

.featured-challenge-content p {
    line-height: 1.9;
    margin-bottom: 20px;
}

.featured-challenge-content .hero-button {
    display: inline-block;
    margin-top: 12px;
}

/* Responsive layout for smaller screens */

@media (max-width: 768px) {

    .featured-challenge-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .featured-challenge-card .category-image {
        min-height: 240px;
        max-height: 350px;
    }

    .featured-challenge-content {
        padding: 5px;
    }

}



/* =====================================
   PLAY ALONG WITH ME
===================================== */

.play-along-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 55px 30px;
    text-align: center;

    background:
        linear-gradient(
            rgba(247, 243, 234, 0.76),
            rgba(247, 243, 234, 0.86)
        ),
        url("play-along-backdrop.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border: 1px solid var(--antique-gold);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(24, 61, 48, 0.12);
}

/* HEADING */

.play-along-heading {
    max-width: 800px;
    margin: 0 auto 50px;
}

.play-along-heading h2 {
    color: var(--forest-green);
    font-size: 2.7rem;
    margin: 12px 0 18px;
}

.play-along-heading h2::before,
.play-along-heading h2::after {
    content: "✧";
    color: var(--antique-gold);
    font-size: 1.5rem;
    margin: 0 16px;
}

.play-along-heading .section-intro {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* TWO FEATURE CARDS */

.play-along-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

/* INDIVIDUAL CARDS */

.play-along-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background-color: var(--warm-linen);
    border: 2px solid var(--antique-gold);
    border-radius: 15px;

    box-shadow: 0 5px 18px rgba(24, 61, 48, 0.13);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-along-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 24px rgba(24, 61, 48, 0.18);
}

/* CARD IMAGES */

.play-along-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* CARD TEXT */

.play-along-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;

    padding: 25px 28px 30px;
}

.play-along-card-content h3 {
    color: var(--forest-green);
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 0 0 18px;
}

.play-along-icon {
    color: var(--antique-gold);
    margin-right: 8px;
}

.play-along-card-content p {
    line-height: 1.8;
    margin: 0 0 16px;
}

.play-along-card-content .hero-button {
    margin-top: auto;
    display: inline-block;
}

/* SMALL SCREEN LAYOUT */

@media (max-width: 768px) {

    .play-along-section {
        padding: 35px 18px;
        margin: 45px 15px;
    }

    .play-along-heading h2 {
        font-size: 2rem;
    }

    .play-along-heading h2::before,
    .play-along-heading h2::after {
        margin: 0 5px;
    }

    .play-along-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .play-along-image {
        height: 220px;
    }

    .play-along-card-content {
        padding: 22px 20px 26px;
    }

}


/* =================================
   EXPLORE THE STATION CAROUSEL
================================= */

.explore-carousel {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) 45px;
    align-items: center;
    gap: 15px;
    max-width: 1100px;
    margin: 40px auto;
}

.explore-carousel-window {
    overflow: hidden;
    width: 100%;
}

.explore-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
}

.explore-carousel-track .inspiration-card {
    flex: 0 0 calc((100% - 50px) / 3);
    min-width: 0;
}

/* Carousel arrows */

.carousel-arrow {
    width: 45px;
    height: 55px;
    background-color: var(--forest-green);
    color: var(--warm-linen);
    border: 1px solid var(--antique-gold);
    border-radius: 6px;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: var(--moss-green);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Tablet: show two cards */

@media (max-width: 900px) {
    .explore-carousel-track .inspiration-card {
        flex-basis: calc((100% - 25px) / 2);
    }
}

/* Mobile: show one card */

@media (max-width: 600px) {
    .explore-carousel {
        grid-template-columns: 35px minmax(0, 1fr) 35px;
        gap: 8px;
    }

    .explore-carousel-track .inspiration-card {
        flex-basis: 100%;
    }

    .carousel-arrow {
        width: 35px;
        height: 45px;
        font-size: 18px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .explore-carousel-track {
        transition: none;
    }
}


/* ==========================================
   FRESH INSPIRATION — EDITORIAL LAYOUT
========================================== */

.fresh-inspiration-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
    align-items: stretch;
}

.fresh-inspiration-layout .inspiration-card {
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}

.fresh-featured-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.fresh-featured-card .category-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 8px;
}

.fresh-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 5px;
    text-align: center;
}

.fresh-card-content h3 {
    color: var(--forest-green);
    font-size: 1.6rem;
    margin-top: 0;
}

.fresh-card-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.fresh-inspiration-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 28px;
}

.fresh-inspiration-side .inspiration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.fresh-inspiration-side .category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.fresh-inspiration-side h3 {
    color: var(--forest-green);
    margin-bottom: 10px;
}

.fresh-inspiration-side p {
    line-height: 1.7;
}

.fresh-inspiration-side .hero-button {
    margin-top: auto;
}

/* Responsive layout */

@media (max-width: 768px) {

    .fresh-inspiration-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fresh-featured-card .category-image {
        height: 260px;
    }

    .fresh-inspiration-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

}

@media (max-width: 520px) {

    .fresh-inspiration-side {
        grid-template-columns: 1fr;
    }

    .fresh-inspiration-side .category-image {
        height: 210px;
    }

}


/* ==========================================
   COMMUNITY SPOTLIGHT — EDITORIAL LAYOUT
========================================== */

.community-spotlight-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
    align-items: stretch;
}

.community-spotlight-layout .inspiration-card {
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}

.community-featured-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.community-featured-card .category-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 8px;
}

.community-featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 5px;
    text-align: center;
}

.community-featured-content h3 {
    color: var(--forest-green);
    font-size: 1.6rem;
    margin-top: 0;
}

.community-featured-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.community-spotlight-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 28px;
}

.community-spotlight-side .inspiration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.community-spotlight-side .category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.community-spotlight-side h3 {
    color: var(--forest-green);
    margin-bottom: 10px;
    text-align: center;
}

.community-spotlight-side p {
    line-height: 1.7;
    text-align: center;
}

.community-spotlight-side .hero-button {
    margin-top: auto;
}

/* Responsive layout */

@media (max-width: 768px) {

    .community-spotlight-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .community-featured-card .category-image {
        height: 260px;
    }

    .community-spotlight-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

}

@media (max-width: 520px) {

    .community-spotlight-side {
        grid-template-columns: 1fr;
    }

    .community-spotlight-side .category-image {
        height: 210px;
    }

}


/* ==========================================
   BUILD YOUR DREAM WORLD — GALLERY LAYOUT
========================================== */

.build-gallery-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
    align-items: stretch;
}

.build-gallery-layout .inspiration-card {
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}

/* FEATURED BUILD CHALLENGE */

.build-gallery-feature {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.build-gallery-feature .category-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 8px;
}

.build-gallery-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 10px 15px;
    text-align: center;
}

.build-gallery-content h3 {
    color: var(--forest-green);
    font-size: 1.6rem;
    margin-top: 0;
}

.build-gallery-content p {
    line-height: 1.8;
    margin-bottom: 10px;
}

/* SUPPORTING BUILD CARDS */

.build-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 28px;
}

.build-gallery-side .inspiration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.build-gallery-side .category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.build-gallery-side h3 {
    color: var(--forest-green);
    margin-bottom: 10px;
    text-align: center;
}

.build-gallery-side p {
    line-height: 1.7;
    text-align: center;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 768px) {

    .build-gallery-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .build-gallery-feature .category-image {
        height: 260px;
    }

    .build-gallery-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

}

@media (max-width: 520px) {

    .build-gallery-side {
        grid-template-columns: 1fr;
    }

    .build-gallery-side .category-image {
        height: 210px;
    }

}


/* ==========================================
   STEP INTO YOUR SIM'S STORY
   ALTERNATING EDITORIAL LAYOUT
========================================== */

.story-editorial-layout {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
}

/* INDIVIDUAL STORY FEATURES */

.story-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
    padding: 25px;
    background-color: var(--warm-linen);
    border: 1px solid var(--antique-gold);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(24, 61, 48, 0.10);
}

/* REVERSE THE IMAGE AND TEXT */

.story-feature-reverse img {
    order: 2;
}

.story-feature-reverse .story-feature-content {
    order: 1;
}

/* STORY IMAGES */

.story-feature .category-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--earth-taupe);
}

/* STORY TEXT */

.story-feature-content {
    padding: 15px 20px;
}

.story-feature-content h3 {
    color: var(--forest-green);
    font-size: 1.65rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 18px;
}

.story-feature-content p {
    line-height: 1.9;
    margin-bottom: 10px;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 768px) {

    .story-feature {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .story-feature-reverse img,
    .story-feature-reverse .story-feature-content {
        order: initial;
    }

    .story-feature .category-image {
        height: 240px;
    }

    .story-feature-content {
        padding: 8px 5px;
        text-align: center;
    }

}


/* ==========================================
   CREATE A SIM, CREATE A STORY
   ALTERNATING EDITORIAL LAYOUT
========================================== */

.create-editorial-layout {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
}

/* INDIVIDUAL CHARACTER FEATURES */

.create-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
    padding: 25px;
    background-color: var(--warm-linen);
    border: 1px solid var(--antique-gold);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(24, 61, 48, 0.10);
}

/* REVERSE THE IMAGE AND TEXT */

.create-feature-reverse img {
    order: 2;
}

.create-feature-reverse .create-feature-content {
    order: 1;
}

/* CHARACTER IMAGES */

.create-feature .category-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--earth-taupe);
}

/* CHARACTER TEXT */

.create-feature-content {
    padding: 15px 20px;
}

.create-feature-content h3 {
    color: var(--forest-green);
    font-size: 1.65rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 18px;
}

.create-feature-content p {
    line-height: 1.9;
    margin-bottom: 10px;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 768px) {
    .create-feature {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .create-feature-reverse img,
    .create-feature-reverse .create-feature-content {
        order: initial;
    }

    .create-feature .category-image {
        height: 240px;
    }

    .create-feature-content {
        padding: 8px 5px;
        text-align: center;
    }
}


/* ==========================================
   DISCOVER SOMETHING NEW
   ALTERNATING EDITORIAL LAYOUT
========================================== */

.discover-editorial-layout {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
}

/* INDIVIDUAL DISCOVERY FEATURES */

.discover-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
    padding: 25px;
    background-color: var(--warm-linen);
    border: 1px solid var(--antique-gold);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(24, 61, 48, 0.10);
}

/* REVERSE THE IMAGE AND TEXT */

.discover-feature-reverse img {
    order: 2;
}

.discover-feature-reverse .discover-feature-content {
    order: 1;
}

/* DISCOVERY IMAGES */

.discover-feature .category-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--earth-taupe);
}

/* DISCOVERY TEXT */

.discover-feature-content {
    padding: 15px 20px;
}

.discover-feature-content h3 {
    color: var(--forest-green);
    font-size: 1.65rem;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 18px;
}

.discover-feature-content p {
    line-height: 1.9;
    margin-bottom: 10px;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 768px) {
    .discover-feature {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .discover-feature-reverse img,
    .discover-feature-reverse .discover-feature-content {
        order: initial;
    }

    .discover-feature .category-image {
        height: 240px;
    }

    .discover-feature-content {
        padding: 8px 5px;
        text-align: center;
    }
}

.footer-motto {
    color: var(--antique-gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* CREATE PAGE EDITORIAL LAYOUT */

.create-editorial-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 25px;
    align-items: stretch;
    max-width: 1100px;
    margin: 40px auto;
    text-align: left;
}

.create-editorial-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.create-editorial-side .inspiration-card {
    flex: 1;
}

.create-editorial-side .category-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .create-editorial-layout {
        grid-template-columns: 1fr;
    }
}

/* CREATE PAGE FEATURED CARD */

.create-feature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.create-feature > .category-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.create-feature .create-feature-content {
    padding: 65px 20px 25px;
    text-align: center;
}


/* RESOURCES PAGE EDITORIAL LAYOUT */

.discover-editorial-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
}

.discover-editorial-layout .discover-feature,
.discover-editorial-side .inspiration-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background-color: var(--warm-linen);
    border: 1px solid var(--antique-gold);
    border-radius: 12px;
    text-align: left;
}

.discover-editorial-layout .category-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.discover-feature-content {
    padding: 15px 20px;
}

.discover-editorial-side {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.discover-editorial-side .inspiration-card:nth-child(odd) .category-image {
    order: 2;
}

.discover-editorial-side .inspiration-card:nth-child(odd) .discover-feature-content {
    order: 1;
}

@media (max-width: 768px) {
    .discover-editorial-layout .discover-feature,
    .discover-editorial-side .inspiration-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .discover-editorial-layout .category-image {
        height: 240px;
    }

    .discover-editorial-side .inspiration-card:nth-child(even) .category-image,
    .discover-editorial-side .inspiration-card:nth-child(even) .discover-feature-content {
        order: initial;
    }

    .discover-feature-content {
        text-align: center;
    }
}


/* FULLY CLICKABLE HOMEPAGE CARDS */
.card-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-link:hover h3 {
    color: var(--moss-green);
}

.card-link:focus-visible {
    outline: 2px solid var(--antique-gold);
    outline-offset: 5px;
}



/* CREATE SECTION - FULL WIDTH THIRD CARD */
.create-editorial-layout > .create-feature:nth-child(3) {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.create-editorial-layout > .create-feature:nth-child(3) > .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.create-editorial-layout > .create-feature:nth-child(3) .category-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.create-editorial-layout > .create-feature:nth-child(3) .create-feature-content {
    width: 100%;
    box-sizing: border-box;
    padding: 25px;
    text-align: center;
}

/* HOMEPAGE CREATE CARD PORTRAIT POSITIONING */
.homepage-personality-image {
    object-fit: cover !important;
    object-position: center 12%;
    border-color: var(--antique-gold);
}

@media (max-width: 768px) {
    .create-editorial-layout > .create-feature:nth-child(3) > .card-link {
        grid-template-columns: 1fr;
    }

    .create-editorial-layout > .create-feature:nth-child(3) .category-image {
        height: 240px;
    }
}



/* DISCOVER SECTION - FULL-WIDTH ALTERNATING EDITORIAL CARDS */

/* Let each card use its entire row */
.discover-editorial-layout .discover-feature {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Divide the full card into image and text */
.discover-editorial-layout .discover-feature > .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Image sizing */
.discover-editorial-layout .discover-feature .category-image {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Text styling */
.discover-editorial-layout .discover-feature-content {
    width: 100%;
    box-sizing: border-box;
    padding: 25px;
    text-align: center;
}

/* Reverse the middle card: image on the right */
/* Alternate image and text positions */
.discover-editorial-layout .discover-feature > .card-link {
    grid-template-areas: "image text";
}

.discover-editorial-layout .discover-feature .category-image {
    grid-area: image;
}

.discover-editorial-layout .discover-feature-content {
    grid-area: text;
}

/* Middle card: text left, image right */
.discover-editorial-layout .discover-feature:nth-child(2) > .card-link {
    grid-template-areas: "text image";
}

/* Mobile layout */
@media (max-width: 768px) {
    .discover-editorial-layout .discover-feature > .card-link {
        grid-template-columns: 1fr;
        gap: 18px;
        direction: ltr;
    }

    .discover-editorial-layout .discover-feature .category-image {
        height: 240px;
    }

    .discover-editorial-layout .discover-feature-content {
        text-align: center;
    }
}


/* PLAY SECTION - FULL-WIDTH ALTERNATING EDITORIAL CARDS */

/* Make each card fill its row */
.story-editorial-layout .story-feature {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Place image and text side by side */
.story-editorial-layout .story-feature > .card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "image text";
    align-items: center;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Assign image and text positions */
.story-editorial-layout .story-feature .category-image {
    grid-area: image;
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.story-editorial-layout .story-feature-content {
    grid-area: text;
    width: 100%;
    box-sizing: border-box;
    padding: 25px;
    text-align: center;
}

/* Middle card: text left, image right */
.story-editorial-layout .story-feature:nth-child(2) > .card-link {
    grid-template-areas: "text image";
}

/* Mobile layout */
@media (max-width: 768px) {
    .story-editorial-layout .story-feature > .card-link {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "text";
        gap: 18px;
    }

    .story-editorial-layout .story-feature:nth-child(2) > .card-link {
        grid-template-areas:
            "image"
            "text";
    }

    .story-editorial-layout .story-feature .category-image {
        height: 240px;
    }

    .story-editorial-layout .story-feature-content {
        text-align: center;
    }
}


/* =========================================
   THE SIMSPIRATION STORY MACHINE
   STAGE 1 - GENERATOR EXTERIOR
========================================= */

/* Main generator machine */
#gameplay-generator .generator-box {
    position: relative;
    overflow: hidden;
    max-width: 850px;
    margin: 40px auto;
    padding: 45px 35px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B 0%,
        #183D30 55%,
        #10291F 100%
    );

    border: 3px solid var(--antique-gold);
    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.18),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196, 163, 90, 0.45);
}

/* Decorative top ornament */
#gameplay-generator .generator-box::before {
    content: "✧ ◆ ✧";
    display: block;
    color: var(--antique-gold);
    font-size: 27px;
    letter-spacing: 12px;
    text-align: center;
    margin-bottom: 20px;
}

/* Main machine title */
#gameplay-generator .gameplay-generator-title {
    color: #F5EBD5;
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Individual machine compartments */
#gameplay-generator .gameplay-generator-section {
    position: relative;
    margin: 25px 0;
    padding: 30px 25px;

    background: linear-gradient(
        135deg,
        #F7F3EA,
        #EDE7D8
    );

    border: 2px solid var(--antique-gold);
    border-radius: 14px;

    box-shadow:
        inset 0 0 0 3px rgba(196, 163, 90, 0.15),
        0 5px 12px rgba(0, 0, 0, 0.12);
}

/* Compartment headings */
#gameplay-generator .gameplay-generator-section h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 15px;
}

/* Compartment descriptions */
#gameplay-generator .gameplay-generator-section p {
    color: #3B4038;
    line-height: 1.7;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #gameplay-generator .generator-box {
        padding: 30px 15px;
        border-radius: 16px;
    }

    #gameplay-generator .gameplay-generator-section {
        padding: 25px 15px;
    }
}


/* =========================================
   THE SIMSPIRATION STORY MACHINE
   STAGE 2 - INTERACTIVE CONTROLS
========================================= */

/* GAME CONTENT SELECTOR */

#gameplay-generator #gameplay-pack-filter {
    display: block;
    width: min(100%, 350px);
    margin: 15px auto;
    padding: 14px 18px;

    background-color: #FFFDF7;
    color: var(--forest-green);

    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
}

#gameplay-generator #gameplay-pack-filter:focus {
    outline: 2px solid var(--moss-green);
    outline-offset: 3px;
}

/* GENERATE BUTTONS */

#gameplay-generator #generate-gameplay-prompt,
#gameplay-generator #generate-gameplay-event {
    display: block;
    width: min(100%, 330px);
    margin: 22px auto;

    padding: 16px 22px;

    background: linear-gradient(
        135deg,
        #315B43,
        #183D30
    );

    color: #FFF8E8;
    border: 2px solid var(--antique-gold);
    border-radius: 12px;

    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        0 5px 0 #10291F,
        0 8px 16px rgba(0,0,0,0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* Button hover */
#gameplay-generator #generate-gameplay-prompt:hover,
#gameplay-generator #generate-gameplay-event:hover {
    background: linear-gradient(
        135deg,
        #467B5B,
        #244C3B
    );

    transform: translateY(-2px);

    box-shadow:
        0 7px 0 #10291F,
        0 11px 20px rgba(0,0,0,0.2);
}

/* Button press */
#gameplay-generator #generate-gameplay-prompt:active,
#gameplay-generator #generate-gameplay-event:active {
    transform: translateY(3px);

    box-shadow:
        0 2px 0 #10291F,
        0 4px 8px rgba(0,0,0,0.15);
}

/* RESULT DISPLAY WINDOWS */

#gameplay-generator #gameplay-prompt-result,
#gameplay-generator #gameplay-event-result {
    margin: 25px auto;
    padding: 25px 22px;
    min-height: 90px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 12px;

    color: var(--forest-green);
    line-height: 1.7;
    text-align: center;

    box-shadow:
        inset 0 3px 10px rgba(0,0,0,0.07),
        0 3px 8px rgba(0,0,0,0.05);
}

/* Text inside result windows */
#gameplay-generator #gameplay-prompt-result p,
#gameplay-generator #gameplay-event-result p {
    color: var(--forest-green);
}

/* SAVE BUTTONS */

#gameplay-generator #save-gameplay-inspiration,
#gameplay-generator #save-gameplay-event {
    display: block;
    width: min(100%, 280px);
    margin: 20px auto 5px;
    padding: 12px 18px;

    background: transparent;
    color: var(--forest-green);

    border: 2px solid var(--antique-gold);
    border-radius: 30px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

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

/* Save button hover */
#gameplay-generator #save-gameplay-inspiration:hover:not(:disabled),
#gameplay-generator #save-gameplay-event:hover:not(:disabled) {
    background: var(--forest-green);
    color: #FFF8E8;
    transform: translateY(-2px);
}

/* Disabled save buttons */
#gameplay-generator #save-gameplay-inspiration:disabled,
#gameplay-generator #save-gameplay-event:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Keyboard accessibility */
#gameplay-generator button:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

/* Mobile refinements */
@media (max-width: 768px) {
    #gameplay-generator #gameplay-prompt-result,
    #gameplay-generator #gameplay-event-result {
        padding: 20px 15px;
    }

    #gameplay-generator #generate-gameplay-prompt,
    #gameplay-generator #generate-gameplay-event {
        font-size: 1rem;
    }
}


/* =========================================
   THE SIMSPIRATION STORY MACHINE
   STAGE 3 - MAGICAL FINISHING TOUCHES
========================================= */

/* Glowing emerald plumbob emblem */

#gameplay-generator .story-machine-emblem {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    margin: 5px auto 10px;
}

#gameplay-generator .story-machine-plumbob {
    display: block;
    width: 38px;
    height: 65px;

    background: linear-gradient(
        135deg,
        #C6FFD1 0%,
        #69E69B 25%,
        #25975B 60%,
        #0C5136 100%
    );

    clip-path: polygon(
        50% 0%,
        100% 35%,
        50% 100%,
        0% 35%
    );

    filter: drop-shadow(0 0 8px rgba(105,230,155,0.6));

    animation: storyPlumbobFloat 3.5s ease-in-out infinite;
}

/* Floating motion */

@keyframes storyPlumbobFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Decorative machine label */

#gameplay-generator .story-machine-label {
    color: var(--antique-gold);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin: 5px 0 12px;
}

/* Subtitle */

#gameplay-generator .story-machine-subtitle {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin: -10px 0 30px;
    line-height: 1.6;
}

/* Soft magical lighting on machine */

#gameplay-generator .generator-box {
    box-shadow:
        0 12px 35px rgba(0,0,0,0.18),
        0 0 22px rgba(196,163,90,0.15),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196,163,90,0.45);
}

/* Highlight compartments on hover */

#gameplay-generator .gameplay-generator-section {
    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

#gameplay-generator .gameplay-generator-section:hover {
    border-color: #D8B86C;

    box-shadow:
        0 0 16px rgba(196,163,90,0.22),
        inset 0 0 0 3px rgba(196,163,90,0.15);
}

/* Magical result reveal */

@keyframes storyReveal {
    from {
        opacity: 0.35;
        transform: translateY(8px);
    }

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

#gameplay-generator .story-reveal {
    animation: storyReveal 0.5s ease-out;
}

/* Accessibility: reduced motion */

@media (prefers-reduced-motion: reduce) {
    #gameplay-generator .story-machine-plumbob,
    #gameplay-generator .story-reveal {
        animation: none;
    }
}

/* Small-screen adjustments */

@media (max-width: 480px) {
    #gameplay-generator .story-machine-label {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    #gameplay-generator .story-machine-subtitle {
        font-size: 0.9rem;
    }
}


/* =========================================
   THE SIMSPIRATION BUILD MACHINE
   STAGE 2 - ENCHANTED MACHINE DESIGN
========================================= */

/* MAIN BUILD MACHINE */

#build-generator .build-machine {
    position: relative;
    overflow: hidden;
    max-width: 850px;
    margin: 40px auto;
    padding: 45px 35px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B 0%,
        #183D30 55%,
        #10291F 100%
    );

    border: 3px solid var(--antique-gold);
    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(0,0,0,0.18),
        0 0 22px rgba(196,163,90,0.15),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196,163,90,0.45);
}

/* DECORATIVE ORNAMENT */

#build-generator .build-machine::before {
    content: "✧ ◆ ✧";
    display: block;
    color: var(--antique-gold);
    font-size: 27px;
    letter-spacing: 12px;
    text-align: center;
    margin-bottom: 20px;
}

/* GLOWING P L U M B O B */

#build-generator .story-machine-emblem {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    margin: 5px auto 10px;
}

#build-generator .story-machine-plumbob {
    display: block;
    width: 38px;
    height: 65px;

    background: linear-gradient(
        135deg,
        #C6FFD1 0%,
        #69E69B 25%,
        #25975B 60%,
        #0C5136 100%
    );

    clip-path: polygon(
        50% 0%,
        100% 35%,
        50% 100%,
        0% 35%
    );

    filter: drop-shadow(
        0 0 8px rgba(105,230,155,0.6)
    );

    animation: storyPlumbobFloat 3.5s ease-in-out infinite;
}

/* MACHINE HEADER */

#build-generator .story-machine-label {
    color: var(--antique-gold);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin: 5px 0 12px;
}

#build-generator .gameplay-generator-title {
    color: #F5EBD5;
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#build-generator .story-machine-subtitle {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin: -10px 0 30px;
    line-height: 1.6;
}

/* MACHINE COMPARTMENTS */

#build-generator .gameplay-generator-section {
    position: relative;
    margin: 25px 0;
    padding: 30px 25px;

    background: linear-gradient(
        135deg,
        #F7F3EA,
        #EDE7D8
    );

    border: 2px solid var(--antique-gold);
    border-radius: 14px;

    box-shadow:
        inset 0 0 0 3px rgba(196,163,90,0.15),
        0 5px 12px rgba(0,0,0,0.12);

    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

#build-generator .gameplay-generator-section:hover {
    border-color: #D8B86C;

    box-shadow:
        0 0 16px rgba(196,163,90,0.22),
        inset 0 0 0 3px rgba(196,163,90,0.15);
}

/* COMPARTMENT HEADINGS */

#build-generator .gameplay-generator-section h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 15px;
}

#build-generator .gameplay-generator-section p {
    color: #3B4038;
    line-height: 1.7;
}

/* MOBILE */

@media (max-width: 768px) {
    #build-generator .build-machine {
        padding: 30px 15px;
        border-radius: 16px;
    }

    #build-generator .gameplay-generator-section {
        padding: 25px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #build-generator .story-machine-plumbob {
        animation: none;
    }
}


/* =========================================
   SIMSPIRATION BUILD MACHINE
   STAGE 3 - INTERACTIVE CONTROLS
========================================= */

/* GAME CONTENT SELECTOR */

#build-generator #build-pack-filter {
    display: block;
    width: min(100%, 350px);
    margin: 15px auto;
    padding: 14px 18px;

    background-color: #FFFDF7;
    color: var(--forest-green);

    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* GENERATE BUTTONS */

#build-generator #generate-build-prompt,
#build-generator #generate-build-challenge {
    display: block;
    width: min(100%, 330px);
    margin: 22px auto;
    padding: 16px 22px;

    background: linear-gradient(
        135deg,
        #315B43,
        #183D30
    );

    color: #FFF8E8;

    border: 2px solid var(--antique-gold);
    border-radius: 12px;

    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        0 5px 0 #10291F,
        0 8px 16px rgba(0,0,0,0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

/* GENERATE BUTTON HOVER */

#build-generator #generate-build-prompt:hover,
#build-generator #generate-build-challenge:hover {
    background: linear-gradient(
        135deg,
        #467B5B,
        #244C3B
    );

    transform: translateY(-2px);

    box-shadow:
        0 7px 0 #10291F,
        0 11px 20px rgba(0,0,0,0.2);
}

/* GENERATE BUTTON PRESS */

#build-generator #generate-build-prompt:active,
#build-generator #generate-build-challenge:active {
    transform: translateY(3px);

    box-shadow:
        0 2px 0 #10291F,
        0 4px 8px rgba(0,0,0,0.15);
}

/* RESULT DISPLAY WINDOWS */

#build-generator #build-prompt-result,
#build-generator #build-challenge-result {
    margin: 25px auto;
    padding: 25px 22px;
    min-height: 90px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 12px;

    color: var(--forest-green);
    line-height: 1.7;
    text-align: center;

    box-shadow:
        inset 0 3px 10px rgba(0,0,0,0.07),
        0 3px 8px rgba(0,0,0,0.05);
}

/* RESULT TEXT */

#build-generator #build-prompt-result p,
#build-generator #build-challenge-result p {
    color: var(--forest-green);
}

/* SAVE BUTTONS */

#build-generator #save-build-inspiration,
#build-generator #save-build-challenge {
    display: block;
    width: min(100%, 280px);
    margin: 20px auto 5px;
    padding: 12px 18px;

    background: transparent;
    color: var(--forest-green);

    border: 2px solid var(--antique-gold);
    border-radius: 30px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

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

/* SAVE BUTTON HOVER */

#build-generator #save-build-inspiration:hover:not(:disabled),
#build-generator #save-build-challenge:hover:not(:disabled) {
    background: var(--forest-green);
    color: #FFF8E8;
    transform: translateY(-2px);
}

/* DISABLED SAVE BUTTONS */

#build-generator #save-build-inspiration:disabled,
#build-generator #save-build-challenge:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* KEYBOARD ACCESSIBILITY */

#build-generator button:focus-visible,
#build-generator select:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

/* MOBILE */

@media (max-width: 768px) {
    #build-generator #build-prompt-result,
    #build-generator #build-challenge-result {
        padding: 20px 15px;
    }

    #build-generator #generate-build-prompt,
    #build-generator #generate-build-challenge {
        font-size: 1rem;
    }
}


/* BUILD MACHINE - MAGICAL RESULT ANIMATION */

#build-generator .story-reveal {
    animation: storyReveal 0.5s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    #build-generator .story-reveal {
        animation: none;
    }
}


/* =========================================
   MY SIMSPIRATION - CREATIVE ARCHIVE
   STAGE 1 - ANTIQUE DOCUMENT COLLECTION
========================================= */

/* MAIN ARCHIVE CONTAINER */

#my-simspiration .saved-projects-box {
    max-width: 1100px;
    margin: 35px auto;
    padding: 35px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B,
        #183D30 65%,
        #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.15),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196,163,90,0.35);
}

/* ARCHIVE TITLE */

#my-simspiration .saved-projects-box > h3 {
    color: #F7F3EA;
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* TWO-COLUMN ARCHIVE LAYOUT */

#saved-build-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    align-items: start;
}

/* CATEGORY FOLDERS */

#saved-build-projects .saved-project-group {
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;

    background: #EDE7D8;

    border: 2px solid var(--antique-gold);
    border-radius: 12px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

/* CATEGORY HEADINGS */

#saved-build-projects .saved-project-group h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.4;

    padding-bottom: 15px;
    margin: 0 0 20px;

    border-bottom: 1px solid var(--antique-gold);
}

/* INDIVIDUAL SAVED DOCUMENTS */

#saved-build-projects .saved-project {
    position: relative;
    min-width: 0;
    margin-bottom: 18px;
    padding: 25px 20px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F7F0DF
    );

    border: 1px solid #D5C4A0;
    border-left: 4px solid var(--antique-gold);
    border-radius: 5px;

    box-shadow:
        2px 4px 10px rgba(60,45,25,0.10);

    overflow-wrap: anywhere;
}

/* DOCUMENT TITLES */

#saved-build-projects .saved-project h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.15rem;

    margin: 0 0 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid #D8C9A8;
}

/* DOCUMENT DETAILS */

#saved-build-projects .saved-project p {
    color: #403C34;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 10px 0;
}

#saved-build-projects .saved-project strong {
    color: var(--forest-green);
}

/* ARCHIVE DATE */

#saved-build-projects .saved-project-date {
    font-style: italic;
    font-size: 0.82rem;
    color: #766C59;
    padding-top: 12px;
    border-top: 1px dashed #D5C4A0;
}

/* DELETE BUTTON - DOCUMENT STYLE */

#saved-build-projects .delete-saved-project {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 10px 15px;

    background: transparent;
    color: #7C3933;

    border: 1px solid #B68B7F;
    border-radius: 6px;

    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

#saved-build-projects .delete-saved-project:hover {
    background: #7C3933;
    color: #FFFDF7;
}

#saved-build-projects .delete-saved-project:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 3px;
}

/* EMPTY CATEGORY MESSAGES */

#saved-build-projects .saved-project-group > p {
    color: #766C59;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}

/* TABLET AND MOBILE */

@media (max-width: 768px) {

    #my-simspiration .saved-projects-box {
        padding: 25px 15px;
    }

    #saved-build-projects {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #saved-build-projects .saved-project-group {
        padding: 18px 12px;
    }

    #saved-build-projects .saved-project {
        padding: 20px 15px;
    }
}


/* =========================================
   CREATIVE ARCHIVE - COLLAPSIBLE FOLDERS
========================================= */

/* FOLDER HEADER */

#saved-build-projects .archive-folder-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 8px 5px 18px;
    margin-bottom: 0;

    border-bottom: 1px solid var(--antique-gold);

    cursor: pointer;
    list-style: none;
}

/* HIDE DEFAULT DISCLOSURE MARKER */

#saved-build-projects .archive-folder-heading::-webkit-details-marker {
    display: none;
}

#saved-build-projects .archive-folder-heading::marker {
    content: "";
}

/* CATEGORY TITLE */

#saved-build-projects .archive-folder-title {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

/* DOCUMENT COUNT */

#saved-build-projects .archive-folder-count {
    color: #786747;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* OPEN / CLOSE SYMBOL */

#saved-build-projects .archive-folder-heading::after {
    content: "−";
    color: var(--forest-green);
    font-size: 1.5rem;
    line-height: 1;
}

#saved-build-projects .saved-project-group:not([open])
.archive-folder-heading::after {
    content: "+";
}

/* FOLDER CONTENT */

#saved-build-projects .archive-folder-content {
    padding-top: 20px;
}

/* CLOSED FOLDER */

#saved-build-projects .saved-project-group:not([open])
.archive-folder-heading {
    border-bottom: none;
    padding-bottom: 8px;
}

/* KEYBOARD FOCUS */

#saved-build-projects .archive-folder-heading:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
    border-radius: 5px;
}

/* EMPTY FOLDER MESSAGE */

#saved-build-projects .archive-empty-message {
    color: #766C59;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
}


/* =========================================
   CREATIVE ARCHIVE - DOCUMENT DETAILS
========================================= */

/* DOCUMENT REFERENCE HEADER */

#saved-build-projects .archive-document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    margin-bottom: 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid #D8C9A8;
}

/* DOCUMENT REFERENCE NUMBER */

#saved-build-projects .archive-document-number {
    color: #8A7040;
    font-family: Georgia, serif;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

/* DECORATIVE SYMBOL */

#saved-build-projects .archive-document-symbol {
    color: var(--antique-gold);
    font-size: 1.5rem;
    line-height: 1;
}

/* REMOVE DUPLICATE TITLE DIVIDER */

#saved-build-projects .saved-project h4 {
    border-bottom: none;
    padding-bottom: 0;
}

/* SUBTLE DOCUMENT HOVER */

#saved-build-projects .saved-project {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

#saved-build-projects .saved-project:hover {
    transform: translateY(-2px);

    box-shadow:
        3px 7px 16px rgba(60,45,25,0.15);
}

@media (prefers-reduced-motion: reduce) {
    #saved-build-projects .saved-project {
        transition: none;
    }

    #saved-build-projects .saved-project:hover {
        transform: none;
    }
}


/* =========================================
   CREATIVE ARCHIVE - STATUS TRACKER
========================================= */

#saved-build-projects .archive-status-field {
    margin: 20px 0;
    padding: 15px;

    background: #F1E8D5;
    border: 1px solid #D5C4A0;
    border-radius: 8px;
}

#saved-build-projects .archive-status-field label {
    display: block;
    margin-bottom: 10px;

    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: bold;
}

#saved-build-projects .archive-status-select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;

    background: #FFFDF7;
    color: var(--forest-green);

    border: 2px solid var(--antique-gold);
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
}

#saved-build-projects .archive-status-select:hover {
    border-color: var(--moss-green);
}

#saved-build-projects .archive-status-select:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 3px;
}


/* =========================================
   CREATIVE ARCHIVE - STATUS COLORS
========================================= */

#saved-build-projects .archive-status-select {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

#saved-build-projects .archive-status-select[data-status="Not Started"] {
    background-color: #EAE7DF;
    border-color: #B8B0A0;
    color: #555149;
}

#saved-build-projects .archive-status-select[data-status="Planning"] {
    background-color: #E2EDF3;
    border-color: #8AACC0;
    color: #28536A;
}

#saved-build-projects .archive-status-select[data-status="In Progress"] {
    background-color: #FFF0D0;
    border-color: #D6AC57;
    color: #785313;
}

#saved-build-projects .archive-status-select[data-status="Completed"] {
    background-color: #DDEEDF;
    border-color: #7FAF83;
    color: #245B32;
}

#saved-build-projects .archive-status-select[data-status="On Hold"] {
    background-color: #F5E0DC;
    border-color: #C78E84;
    color: #823E36;
}


/* =========================================
   THE SECRETS OF BRIARWOOD ESTATE
   STAGE 1 - CHALLENGE LANDING PAGE
========================================= */

/* INTRODUCTION */

.briarwood-intro {
    text-align: center;
}

.briarwood-tagline {
    color: var(--moss-green);
    font-family: Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    line-height: 1.7;
    margin: 15px auto 35px;
}

/* ESTATE INTRODUCTION PANEL */

.briarwood-hero {
    max-width: 1000px;
    margin: 35px auto;
    padding: 45px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B,
        #183D30 65%,
        #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.15),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196,163,90,0.35);
}

.briarwood-hero-content {
    max-width: 750px;
    margin: 0 auto;
}

.briarwood-hero-content p {
    color: #F7F3EA;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.briarwood-hero-content .briarwood-opening {
    color: #E5C987;
    font-size: 1.2rem;
    font-style: italic;
}

/* OVERVIEW AND PLAYSTYLE GRIDS */

.briarwood-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;

    max-width: 1100px;
    margin: 35px auto;
}

.briarwood-overview-grid .inspiration-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 30px;
}

.briarwood-overview-grid h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    margin-bottom: 15px;
}

.briarwood-overview-grid p {
    line-height: 1.8;
}

/* MOBILE */

@media (max-width: 768px) {

    .briarwood-hero {
        padding: 30px 20px;
    }

    .briarwood-overview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .briarwood-overview-grid .inspiration-card {
        padding: 25px 20px;
    }

}


/* =========================================
   BRIARWOOD ESTATE - EXPLORE BUTTON
========================================= */

.briarwood-explore-link {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 24px;

    background: var(--forest-green);
    color: #FFF8E8;

    border: 2px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;

    box-shadow: 0 4px 10px rgba(0,0,0,0.12);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.briarwood-explore-link:hover {
    background: var(--moss-green);
    color: #FFF8E8;
    transform: translateY(-2px);
}

.briarwood-explore-link:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-explore-link {
        transition: none;
    }

    .briarwood-explore-link:hover {
        transform: none;
    }
}


/* =========================================
   BRIARWOOD - STORY ARCHIVE
========================================= */

.briarwood-story-archive {
    max-width: 1100px;
    margin: 35px auto;
    padding: 40px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B,
        #183D30 65%,
        #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.15),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196,163,90,0.35);
}

.briarwood-archive-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    line-height: 1.7;
    margin: 5px 0 30px;
}

/* TWO-COLUMN LETTER GRID */

.briarwood-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

/* INDIVIDUAL LETTERS */

.briarwood-story-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    padding: 30px 25px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    text-align: center;

    box-shadow: 0 6px 15px rgba(0,0,0,0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.briarwood-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.briarwood-letter-number {
    color: #8A7040;
    font-family: Georgia, serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-letter-symbol {
    color: #A18443;
    font-size: 2.2rem;
    margin: 15px 0;
}

.briarwood-story-card h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    margin: 5px 0 15px;
}

.briarwood-story-card p {
    color: #494337;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* OPEN LETTER BUTTON */

.briarwood-story-button {
    display: inline-block;
    width: 100%;
    max-width: 260px;
    padding: 13px 18px;

    background: var(--forest-green);
    color: #FFF8E8;

    border: 2px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.briarwood-story-button:hover {
    background: var(--moss-green);
    transform: translateY(-2px);
}

.briarwood-story-button:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

/* SELECTED STORY PANEL */

.briarwood-selected-story {
    margin-top: 30px;
    padding: 35px 30px;

    background: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.briarwood-selected-story[hidden] {
    display: none;
}

.briarwood-selected-story h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-story-archive {
        padding: 25px 15px;
    }

    .briarwood-story-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .briarwood-story-card {
        padding: 25px 20px;
    }

    .briarwood-selected-story {
        padding: 25px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-story-card,
    .briarwood-story-button {
        transition: none;
    }

    .briarwood-story-card:hover,
    .briarwood-story-button:hover {
        transform: none;
    }
}


/* =========================================
   BRIARWOOD - OPENED ARCHIVE LETTERS
========================================= */

.briarwood-open-letter {
    max-width: 750px;
    margin: 0 auto;
    padding: 35px 30px;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F3E9D4
    );

    border: 1px solid #D5C4A0;
    border-left: 5px solid var(--antique-gold);

    box-shadow: 3px 6px 18px rgba(60,45,25,0.12);
}

.briarwood-open-letter-number {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.briarwood-open-letter > h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.65rem;
    text-align: center;
    margin: 15px 0 30px;
}

.briarwood-open-letter p {
    color: #403C34;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
}

.briarwood-letter-greeting {
    font-style: italic;
    font-weight: bold;
}

.briarwood-open-letter .briarwood-letter-signature {
    color: var(--forest-green);
    font-style: italic;
    text-align: right;
    margin-top: 30px;
}

/* FIRST OBJECTIVE */

.briarwood-first-objective {
    margin-top: 35px;
    padding: 25px;

    background: #EDE7D8;
    border: 2px solid var(--antique-gold);
    border-radius: 8px;
}

.briarwood-first-objective h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.briarwood-first-objective p {
    margin-bottom: 0;
}

/* HIGHLIGHT THE SELECTED STORY */

.briarwood-story-card.briarwood-story-active {
    border-color: #E5C987;

    box-shadow:
        0 0 0 3px rgba(196,163,90,0.35),
        0 8px 20px rgba(0,0,0,0.18);
}

.briarwood-story-active .briarwood-story-button {
    background: #315B43;
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-open-letter {
        padding: 25px 18px;
    }

    .briarwood-open-letter > h4 {
        font-size: 1.35rem;
    }

    .briarwood-first-objective {
        padding: 20px 15px;
    }
}


/* =========================================
   BRIARWOOD - LETTER TEXT ALIGNMENT
========================================= */

/* Keep the letter content left-aligned */

.briarwood-open-letter {
    text-align: left;
}

/* Keep the archive number and title centered */

.briarwood-open-letter-number,
.briarwood-open-letter > h4 {
    text-align: center;
}

/* Align the greeting and letter paragraphs left */

.briarwood-open-letter .briarwood-letter-greeting,
.briarwood-open-letter > p:not(.briarwood-open-letter-number):not(.briarwood-letter-signature) {
    text-align: left;
}

/* Keep the signature on the right */

.briarwood-open-letter .briarwood-letter-signature {
    text-align: right;
}

/* Keep the objective heading and instructions left */

.briarwood-first-objective {
    text-align: left;
}


/* =========================================
   BRIARWOOD - ESTATE FUTURE PORTFOLIO
========================================= */

.briarwood-future-portfolio {
    max-width: 1100px;
    margin: 35px auto;
    padding: 40px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B,
        #183D30 65%,
        #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.15),
        inset 0 0 0 5px #183D30,
        inset 0 0 0 7px rgba(196,163,90,0.35);
}

.briarwood-future-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    line-height: 1.7;
    margin: 5px 0 30px;
}

/* TWO-COLUMN PORTFOLIO */

.briarwood-future-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

/* ESTATE PLAN CARDS */

.briarwood-future-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    padding: 30px 25px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    text-align: center;

    box-shadow: 0 6px 15px rgba(0,0,0,0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.briarwood-future-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.briarwood-future-number {
    color: #8A7040;
    font-family: Georgia, serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-future-symbol {
    color: #A18443;
    font-size: 2.2rem;
    margin: 15px 0;
}

.briarwood-future-card h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    margin: 5px 0 15px;
}

.briarwood-future-card p {
    color: #494337;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* EXPLORE BUTTONS */

.briarwood-future-button {
    width: 100%;
    max-width: 260px;
    padding: 13px 18px;

    background: var(--forest-green);
    color: #FFF8E8;

    border: 2px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.briarwood-future-button:hover {
    background: var(--moss-green);
    transform: translateY(-2px);
}

.briarwood-future-button:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

/* SELECTED RESTORATION PLAN */

.briarwood-selected-future {
    margin-top: 30px;
    padding: 35px 30px;

    background: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.briarwood-selected-future[hidden] {
    display: none;
}

.briarwood-selected-future > h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-future-portfolio {
        padding: 25px 15px;
    }

    .briarwood-future-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .briarwood-future-card {
        padding: 25px 20px;
    }

    .briarwood-selected-future {
        padding: 25px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-future-card,
    .briarwood-future-button {
        transition: none;
    }

    .briarwood-future-card:hover,
    .briarwood-future-button:hover {
        transform: none;
    }
}


/* =========================================
   BRIARWOOD - OPENED RESTORATION PLANS
========================================= */

.briarwood-open-plan {
    max-width: 750px;
    margin: 0 auto;
    padding: 35px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F3E9D4
    );

    border: 1px solid #D5C4A0;
    border-left: 5px solid var(--antique-gold);

    box-shadow: 3px 6px 18px rgba(60,45,25,0.12);
    text-align: left;
}

.briarwood-plan-number {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.briarwood-open-plan > h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.65rem;
    text-align: center;
    margin: 15px 0;
}

.briarwood-plan-premise {
    color: #8A7040;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
}

.briarwood-open-plan > p:not(.briarwood-plan-number):not(.briarwood-plan-premise) {
    color: #403C34;
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.9;
    text-align: left;
}

.briarwood-open-plan h5 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.briarwood-open-plan ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.briarwood-open-plan li {
    color: #403C34;
    line-height: 1.8;
    margin-bottom: 8px;
}

.briarwood-plan-objective,
.briarwood-plan-gameplay {
    margin-top: 25px;
    padding: 20px 25px;

    background: #EDE7D8;
    border: 1px solid var(--antique-gold);
    border-radius: 8px;
}

.briarwood-plan-objective h5,
.briarwood-plan-gameplay h5 {
    margin-top: 0;
}

.briarwood-plan-objective p,
.briarwood-plan-gameplay p {
    color: #403C34;
    line-height: 1.8;
    margin-bottom: 0;
}

/* HIGHLIGHT SELECTED ESTATE FUTURE */

.briarwood-future-card.briarwood-future-active {
    border-color: #E5C987;

    box-shadow:
        0 0 0 3px rgba(196,163,90,0.35),
        0 8px 20px rgba(0,0,0,0.18);
}

.briarwood-future-active .briarwood-future-button {
    background: #315B43;
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-open-plan {
        padding: 25px 18px;
    }

    .briarwood-open-plan > h4 {
        font-size: 1.35rem;
    }

    .briarwood-plan-objective,
    .briarwood-plan-gameplay {
        padding: 18px 15px;
    }
}


/* =========================================
   BRIARWOOD - COMBINED ESTATE PLANNER
========================================= */

.briarwood-planner {
    max-width: 1000px;
    margin: 35px auto;
    padding: 40px 30px;
    box-sizing: border-box;
    background: linear-gradient(
        145deg,
        #244C3B,
        #183D30 65%,
        #10291F
    );
    border: 3px solid var(--antique-gold);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-planner-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
}

.briarwood-planner-paper {
    padding: 35px;
    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F1E8D5
    );
    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

.briarwood-planner-paper h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.briarwood-planner-paper > p {
    color: #494337;
    line-height: 1.8;
    margin-bottom: 25px;
}

.briarwood-planner-options,
.briarwood-planner-editions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.briarwood-planner-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    color: #183D30;
    font-family: Georgia, serif;
    cursor: pointer;
}

.briarwood-planner-option input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #183D30;
    cursor: pointer;
}

.briarwood-planner-option:has(input:checked) {
    background: #DCE5D8;
    border-color: #315B43;
}

.briarwood-planner-option:focus-within {
    outline: 2px solid #315B43;
    outline-offset: 2px;
}

.briarwood-planner-divider {
    height: 1px;
    margin: 35px 0;
    background: #C4A35A;
}

.briarwood-planner-generate {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 35px auto 0;
    padding: 15px 20px;
    background: var(--forest-green);
    color: #FFF8E8;
    border: 2px solid var(--antique-gold);
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.briarwood-planner-generate:hover {
    background: var(--moss-green);
}

.briarwood-planner-generate:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

.briarwood-planner-message {
    color: #8B392B;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

.briarwood-custom-plan {
    margin-top: 30px;
    padding: 30px;
    background: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 10px;
}

.briarwood-custom-plan[hidden] {
    display: none;
}

.briarwood-custom-plan > h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .briarwood-planner {
        padding: 25px 15px;
    }

    .briarwood-planner-paper {
        padding: 25px 18px;
    }

    .briarwood-planner-options,
    .briarwood-planner-editions {
        grid-template-columns: 1fr;
    }

    .briarwood-custom-plan {
        padding: 20px 15px;
    }
}


/* =========================================
   BRIARWOOD - GENERATED ESTATE DOCUMENT
========================================= */

.briarwood-generated-document {
    max-width: 750px;
    margin: 0 auto;
    padding: 35px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F3E9D4
    );

    border: 1px solid #D5C4A0;
    border-left: 5px solid var(--antique-gold);

    box-shadow: 3px 6px 18px rgba(60,45,25,0.12);

    text-align: left;
}

.briarwood-generated-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.briarwood-generated-document > h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.65rem;
    text-align: center;
    margin: 15px 0;
}

.briarwood-generated-subtitle {
    color: #8A7040;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    line-height: 1.7;
}

.briarwood-generated-edition {
    color: #315B43;
    font-weight: bold;
    text-align: center;
    margin: 15px 0 30px;
}

.briarwood-generated-document > p:not(
    .briarwood-generated-label,
    .briarwood-generated-subtitle,
    .briarwood-generated-edition
) {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
}

.briarwood-generated-document h5 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.briarwood-generated-document ul {
    padding-left: 25px;
}

.briarwood-generated-document li {
    color: #403C34;
    line-height: 1.8;
    margin-bottom: 8px;
}

.briarwood-generated-objectives,
.briarwood-generated-edition-box {
    margin-top: 25px;
    padding: 20px 25px;

    background: #EDE7D8;
    border: 1px solid var(--antique-gold);
    border-radius: 8px;
}

.briarwood-generated-objectives h5,
.briarwood-generated-edition-box h5 {
    margin-top: 0;
}

.briarwood-generated-objectives h6 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1rem;
    margin: 20px 0 8px;
}

.briarwood-generated-objectives p,
.briarwood-generated-edition-box p {
    color: #403C34;
    line-height: 1.8;
    margin-bottom: 15px;
}

.briarwood-generated-closing {
    margin-top: 30px;
    font-style: italic;
    text-align: center;
    color: var(--forest-green);
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-generated-document {
        padding: 25px 18px;
    }

    .briarwood-generated-document > h4 {
        font-size: 1.35rem;
    }

    .briarwood-generated-objectives,
    .briarwood-generated-edition-box {
        padding: 18px 15px;
    }
}


/* =========================================
   BRIARWOOD - SAVE ESTATE PLAN
========================================= */

.briarwood-save-area {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--antique-gold);
    text-align: center;
}

.briarwood-save-button {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;

    background: var(--forest-green);
    color: #FFF8E8;

    border: 2px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;

    transition: background 0.25s ease;
}

.briarwood-save-button:hover:not(:disabled) {
    background: var(--moss-green);
}

.briarwood-save-button:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

.briarwood-save-button:disabled {
    background: #687C6D;
    cursor: default;
}

.briarwood-save-message {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 0.95rem;
    margin-top: 15px;
    line-height: 1.6;
}


/* =========================================
   CREATIVE ARCHIVE - BRIARWOOD DOCUMENTS
========================================= */

.archive-briarwood-document {
    color: #403C34;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.9;

    text-align: left;
    white-space: pre-line;

    overflow-wrap: anywhere;

    margin: 20px 0 25px;
    padding: 20px;

    background: #FFFDF7;

    border-left: 3px solid var(--antique-gold);
    border-radius: 4px;
}

/* Keep the saved document title centered */

.saved-project h4 {
    text-align: center;
}


/* =========================================
   BRIARWOOD - RESTORATION JOURNAL
========================================= */

.briarwood-journal {
    max-width: 1100px;
    margin: 35px auto;
    padding: 40px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #244C3B,
        #183D30 65%,
        #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-journal-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
}

.briarwood-journal-paper {
    padding: 35px;
    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F1E8D5
    );
    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

/* JOURNAL HEADING */

.briarwood-journal-heading {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--antique-gold);
}

.briarwood-journal-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-journal-heading h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin: 15px 0;
}

.briarwood-journal-heading p {
    color: #494337;
    line-height: 1.8;
}

/* PROGRESS TRACKER */

.briarwood-progress-section {
    margin: 35px 0;
    padding: 25px;
    background: #EDE7D8;
    border: 1px solid var(--antique-gold);
    border-radius: 8px;
}

.briarwood-progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.briarwood-progress-heading h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

#briarwood-progress-count {
    color: #8A7040;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 0.9rem;
}

.briarwood-progress-track {
    width: 100%;
    height: 14px;
    background: #D4CCBA;
    border-radius: 20px;
    overflow: hidden;
}

.briarwood-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #315B43,
        #C4A35A
    );
    border-radius: 20px;
    transition: width 0.4s ease;
}

.briarwood-progress-note {
    color: #665C4C;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
    margin-top: 15px;
}

/* RESTORATION CARDS */

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

.briarwood-restoration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    min-width: 0;

    background: #FFFDF7;
    border: 2px solid var(--antique-gold);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 12px rgba(0,0,0,0.08);
}

.briarwood-restoration-card > span {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.briarwood-restoration-card h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    margin: 15px 0;
}

.briarwood-restoration-card p {
    color: #494337;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.briarwood-zone-button {
    width: 100%;
    max-width: 280px;
    padding: 13px 15px;
    background: var(--forest-green);
    color: #FFF8E8;
    border: 2px solid var(--antique-gold);
    border-radius: 8px;
    font-family: Georgia, serif;
    font-weight: bold;
    cursor: pointer;
}

.briarwood-zone-button:hover {
    background: var(--moss-green);
}

.briarwood-zone-button:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 4px;
}

/* OPENED RESTORATION RECORD */

.briarwood-zone-record {
    margin-top: 30px;
    padding: 30px;
    background: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 10px;
}

.briarwood-zone-record[hidden] {
    display: none;
}

.briarwood-zone-record > h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 20px;
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-journal {
        padding: 25px 15px;
    }

    .briarwood-journal-paper {
        padding: 25px 15px;
    }

    .briarwood-restoration-grid {
        grid-template-columns: 1fr;
    }

    .briarwood-progress-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .briarwood-zone-record {
        padding: 20px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-progress-fill {
        transition: none;
    }
}


/* =========================================
   BRIARWOOD - INTERACTIVE RESTORATION RECORDS
========================================= */

.briarwood-restoration-document {
    max-width: 750px;
    margin: 0 auto;
    padding: 35px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg,
        #FFFDF7,
        #F3E9D4
    );

    border: 1px solid #D5C4A0;
    border-left: 5px solid var(--antique-gold);

    text-align: left;
    box-shadow: 3px 6px 18px rgba(60,45,25,0.12);
}

.briarwood-record-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.briarwood-restoration-document h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.6rem;
    text-align: center;
    margin: 15px 0 25px;
}

.briarwood-record-introduction {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin-bottom: 30px;
}

.briarwood-restoration-document h5 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.briarwood-record-task-count {
    color: #8A7040;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.briarwood-record-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.briarwood-record-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;

    background: #EDE7D8;
    border: 1px solid #D5C4A0;
    border-radius: 8px;

    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.6;

    cursor: pointer;
}

.briarwood-record-task input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #315B43;
    cursor: pointer;
}

.briarwood-record-task:has(input:checked) {
    background: #DCE5D8;
    border-color: #315B43;
}

.briarwood-record-task input:checked + span {
    text-decoration: line-through;
    color: #607262;
}

.briarwood-record-task:focus-within {
    outline: 2px solid #315B43;
    outline-offset: 2px;
}

/* COMPLETED RESTORATION AREA */

.briarwood-restoration-card.briarwood-zone-complete {
    background: #E1EBDD;
    border-color: #315B43;
}

.briarwood-zone-complete::after {
    content: "✓ Restoration Complete";
    color: #315B43;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 15px;
}

/* CURRENTLY OPENED AREA */

.briarwood-restoration-card.briarwood-zone-active {
    box-shadow:
        0 0 0 3px rgba(196,163,90,0.35),
        0 8px 20px rgba(0,0,0,0.15);
}

/* MOBILE */

@media (max-width: 768px) {
    .briarwood-restoration-document {
        padding: 25px 18px;
    }

    .briarwood-restoration-document h4 {
        font-size: 1.35rem;
    }

    .briarwood-record-task {
        padding: 12px;
    }
}


/* =========================================
   BRIARWOOD - RESTORATION DIARY
========================================= */

.briarwood-diary-section,
.briarwood-discovery-section {
    margin-top: 35px;
    padding: 25px;

    background: #EDE7D8;
    border: 1px solid var(--antique-gold);
    border-radius: 10px;

    text-align: left;
}

.briarwood-diary-section h5,
.briarwood-discovery-section h5 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.3rem;
    margin: 0 0 15px;
}

.briarwood-diary-section > p,
.briarwood-discovery-section > p {
    color: #494337;
    line-height: 1.8;
    margin-bottom: 20px;
}

.briarwood-diary-label {
    display: block;
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-weight: bold;
    margin-top: 20px;
}

.briarwood-diary-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 110px;
    margin-top: 10px;
    padding: 15px;

    background: #FFFDF7;
    color: #403C34;

    border: 1px solid #C4A35A;
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.7;

    resize: vertical;
}

.briarwood-diary-input:focus {
    outline: 2px solid #315B43;
    outline-offset: 2px;
}

.briarwood-journal-save-status {
    color: #315B43;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 10px;
}

/* =========================================
   BRIARWOOD - OPTIONAL DISCOVERIES
========================================= */

.briarwood-discovery-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;

    background: #FFF9EB;
    border: 1px solid var(--antique-gold);
    border-radius: 8px;

    color: var(--forest-green);
    font-family: Georgia, serif;
    font-weight: bold;

    cursor: pointer;
}

.briarwood-discovery-toggle input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #315B43;
}

.briarwood-discovery-content {
    margin-top: 20px;
    padding: 25px;

    background: #FFFDF7;
    border-left: 4px solid var(--antique-gold);
    border-radius: 6px;
}

.briarwood-discovery-content[hidden] {
    display: none;
}

.briarwood-discovery-content h6 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin: 0 0 15px;
}

.briarwood-discovery-content > p {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin-bottom: 15px;
}

.briarwood-discovery-question {
    font-style: italic;
}

@media (max-width: 768px) {
    .briarwood-diary-section,
    .briarwood-discovery-section {
        padding: 20px 15px;
    }

    .briarwood-discovery-content {
        padding: 20px 15px;
    }
}


/* =========================================
   BRIARWOOD - CHALLENGE SETTINGS
========================================= */

.briarwood-settings-frame {
    max-width: 1000px;
    margin: 35px auto;
    padding: 35px 30px;
    box-sizing: border-box;
    background: linear-gradient(
        145deg, #244C3B, #183D30, #10291F
    );
    border: 3px solid var(--antique-gold);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-settings-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-style: italic;
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.briarwood-settings-paper {
    padding: 35px;
    background: linear-gradient(145deg, #FFFDF7, #F1E8D5);
    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

.briarwood-settings-group {
    min-width: 0;
    margin: 0 0 30px;
    padding: 0;
    border: none;
}

.briarwood-settings-group legend {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 0;
}

.briarwood-settings-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
    padding: 18px;
    background: #FFFDF7;
    border: 1px solid #D5C4A0;
    border-radius: 9px;
    cursor: pointer;
}

.briarwood-settings-option:has(input:checked) {
    background: #E1EBDD;
    border: 2px solid var(--moss-green);
    padding: 17px;
}

.briarwood-settings-option input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--forest-green);
}

.briarwood-settings-option strong {
    display: block;
    color: var(--forest-green);
    font-family: Georgia, serif;
    margin-bottom: 7px;
}

.briarwood-settings-option small {
    display: block;
    color: #514A3F;
    font-size: 0.9rem;
    line-height: 1.7;
}

.briarwood-settings-option:focus-within {
    outline: 2px solid var(--moss-green);
    outline-offset: 2px;
}

.briarwood-settings-save {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 15px auto;
    padding: 15px 20px;
    background: var(--forest-green);
    color: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 8px;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.briarwood-settings-save:hover {
    background: var(--moss-green);
}

.briarwood-settings-message {
    color: var(--moss-green);
    font-family: Georgia, serif;
    text-align: center;
    min-height: 1.5em;
}

.briarwood-settings-summary {
    margin-top: 30px;
    padding: 25px;
    background: #EDE7D8;
    border-left: 4px solid var(--antique-gold);
    border-radius: 8px;
}

.briarwood-settings-summary[hidden] {
    display: none;
}

.briarwood-settings-summary-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.briarwood-settings-summary h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    margin: 12px 0 20px;
}

.briarwood-settings-summary-content p,
#briarwood-settings-summary-content p {
    color: #403C34;
    line-height: 1.8;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .briarwood-settings-frame {
        padding: 25px 15px;
    }

    .briarwood-settings-paper {
        padding: 25px 15px;
    }

    .briarwood-settings-option {
        padding: 15px;
    }

    .briarwood-settings-option:has(input:checked) {
        padding: 14px;
    }
}


/* =========================================
   BRIARWOOD - MILESTONE LEDGER
========================================= */

.briarwood-milestone-frame {
    max-width: 1000px;
    margin: 35px auto;
    padding: 35px 30px;
    box-sizing: border-box;
    background: linear-gradient(
        145deg, #244C3B, #183D30, #10291F
    );
    border: 3px solid var(--antique-gold);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-milestone-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 25px;
}

.briarwood-milestone-paper {
    padding: 35px;
    background: linear-gradient(145deg, #FFFDF7, #F1E8D5);
    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

.briarwood-milestone-heading {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--antique-gold);
}

.briarwood-milestone-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-milestone-heading h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.7rem;
    margin: 15px 0;
}

.briarwood-milestone-heading p {
    color: #494337;
    line-height: 1.8;
}

.briarwood-milestone-progress {
    margin: 30px 0;
    padding: 25px;
    background: #EDE7D8;
    border: 1px solid var(--antique-gold);
    border-radius: 9px;
}

.briarwood-milestone-progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.briarwood-milestone-progress-heading h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

#briarwood-milestone-count {
    color: #8A7040;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 0.9rem;
}

.briarwood-milestone-track {
    width: 100%;
    height: 14px;
    background: #D4CCBA;
    border-radius: 20px;
    overflow: hidden;
}

.briarwood-milestone-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(
        90deg, #315B43, #C4A35A
    );
    border-radius: 20px;
    transition: width 0.4s ease;
}

.briarwood-milestone-status {
    color: #665C4C;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.7;
    margin-top: 15px;
}

.briarwood-milestone-record {
    padding: 25px;
    background: #FFFDF7;
    border-left: 4px solid var(--antique-gold);
    border-radius: 8px;
}

.briarwood-milestone-record h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#briarwood-milestone-achievement {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.8;
}

.briarwood-milestone-note {
    color: #665C4C;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
    margin-top: 20px;
}

.briarwood-milestone-record.briarwood-milestone-achieved {
    background: #E1EBDD;
    border-left-color: #315B43;
}

@media (max-width: 768px) {
    .briarwood-milestone-frame {
        padding: 25px 15px;
    }

    .briarwood-milestone-paper {
        padding: 25px 15px;
    }

    .briarwood-milestone-progress {
        padding: 20px 15px;
    }

    .briarwood-milestone-progress-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .briarwood-milestone-record {
        padding: 20px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-milestone-fill {
        transition: none;
    }
}


/* =========================================
   BRIARWOOD - RESTORATION CHARTER
========================================= */

.briarwood-charter-frame {
    max-width: 1000px;
    margin: 35px auto;
    padding: 35px 30px;
    box-sizing: border-box;
    background: linear-gradient(
        145deg, #244C3B, #183D30, #10291F
    );
    border: 3px solid var(--antique-gold);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-charter-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 25px;
}

.briarwood-charter-paper {
    padding: 35px;
    background: linear-gradient(
        145deg, #FFFDF7, #F1E8D5
    );
    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

.briarwood-charter-heading {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--antique-gold);
}

.briarwood-charter-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-charter-heading h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin: 15px 0;
}

.briarwood-charter-heading p {
    color: #494337;
    line-height: 1.8;
}

.briarwood-charter-summary,
.briarwood-charter-objectives,
.briarwood-charter-rules,
.briarwood-charter-completion {
    margin-top: 25px;
    padding: 25px;
    background: #FFFDF7;
    border: 1px solid #D5C4A0;
    border-radius: 9px;
}

.briarwood-charter-summary h4,
.briarwood-charter-objectives h4,
.briarwood-charter-rules h4,
.briarwood-charter-completion h4 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.briarwood-charter-summary p,
.briarwood-charter-rules p,
.briarwood-charter-completion p {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin-bottom: 12px;
}

.briarwood-charter-objective {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E3D9C5;
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.8;
}

.briarwood-charter-objective:last-child {
    border-bottom: none;
}

.briarwood-charter-objective-symbol {
    color: #96783E;
    font-weight: bold;
    flex-shrink: 0;
}

.briarwood-charter-completion {
    background: #E1EBDD;
    border-left: 4px solid var(--moss-green);
}

@media (max-width: 768px) {
    .briarwood-charter-frame {
        padding: 25px 15px;
    }

    .briarwood-charter-paper {
        padding: 25px 15px;
    }

    .briarwood-charter-summary,
    .briarwood-charter-objectives,
    .briarwood-charter-rules,
    .briarwood-charter-completion {
        padding: 20px 15px;
    }
}

<!-- =====================================
     BRIARWOOD - LEGACY TRANSITION
===================================== -->

<div class="briarwood-journey-transition">

    <span class="briarwood-transition-symbol"
          aria-hidden="true">✧</span>

    <h3>A Legacy Worth Remembering</h3>

    <p>
        Every restored room, every discovered secret,
        and every decision has helped shape Briarwood's
        future. Whether your restoration is complete
        or your story is still unfolding, the estate's
        next chapter belongs to you.
    </p>

    <a href="#briarwood-estate-legacy"
       class="briarwood-transition-link">
        ✧ Write My Estate Legacy
    </a>

</div>


/* =========================================
   BRIARWOOD - ESTATE LEGACY RECORD
========================================= */

.briarwood-legacy-frame {
    max-width: 1000px;
    margin: 35px auto;
    padding: 35px 30px;
    box-sizing: border-box;
    background: linear-gradient(
        145deg, #244C3B, #183D30, #10291F
    );
    border: 3px solid var(--antique-gold);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-legacy-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 25px;
}

.briarwood-legacy-paper {
    padding: 35px;
    background: linear-gradient(
        145deg, #FFFDF7, #F1E8D5
    );
    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

.briarwood-legacy-heading {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--antique-gold);
}

.briarwood-legacy-label {
    color: #8A7040;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-legacy-heading h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin: 15px 0;
}

.briarwood-legacy-heading p {
    color: #494337;
    line-height: 1.8;
}

.briarwood-legacy-group {
    margin: 30px 0;
    padding: 0;
    border: none;
}

.briarwood-legacy-group legend {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.briarwood-legacy-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;

    background: #FFFDF7;
    border: 1px solid #D5C4A0;
    border-radius: 8px;

    color: #403C34;
    font-family: Georgia, serif;
    cursor: pointer;
}

.briarwood-legacy-option:has(input:checked) {
    background: #E1EBDD;
    border: 2px solid var(--moss-green);
    padding: 14px;
}

.briarwood-legacy-option input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--forest-green);
}

.briarwood-legacy-option:focus-within {
    outline: 2px solid var(--moss-green);
    outline-offset: 2px;
}

.briarwood-legacy-notes {
    margin-top: 30px;
    padding: 25px;
    background: #EDE7D8;
    border: 1px solid var(--antique-gold);
    border-radius: 9px;
}

.briarwood-legacy-notes label {
    display: block;
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: bold;
}

.briarwood-legacy-notes p {
    color: #494337;
    line-height: 1.8;
    margin: 15px 0;
}

#briarwood-legacy-story {
    width: 100%;
    box-sizing: border-box;
    min-height: 150px;
    padding: 15px;

    background: #FFFDF7;
    color: #403C34;
    border: 1px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.8;
    resize: vertical;
}

#briarwood-legacy-story:focus {
    outline: 2px solid var(--moss-green);
    outline-offset: 2px;
}

.briarwood-legacy-save {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 30px auto 15px;
    padding: 15px 20px;

    background: var(--forest-green);
    color: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.briarwood-legacy-save:hover {
    background: var(--moss-green);
}

.briarwood-legacy-message {
    min-height: 1.5em;
    color: var(--moss-green);
    font-family: Georgia, serif;
    text-align: center;
}

.briarwood-legacy-document {
    margin-top: 35px;
    padding: 30px;

    background: #FFFDF7;
    border-left: 5px solid var(--antique-gold);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.briarwood-legacy-document[hidden] {
    display: none;
}

.briarwood-legacy-document h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    margin: 15px 0 25px;
    text-align: center;
}

#briarwood-legacy-content p {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin-bottom: 15px;
    overflow-wrap: anywhere;
}

.briarwood-legacy-story-text {
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .briarwood-legacy-frame {
        padding: 25px 15px;
    }

    .briarwood-legacy-paper {
        padding: 25px 15px;
    }

    .briarwood-legacy-notes,
    .briarwood-legacy-document {
        padding: 20px 15px;
    }
}


/* =========================================
   BRIARWOOD - ESTATE NAVIGATION
========================================= */

.briarwood-estate-navigation {
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg, #244C3B, #183D30, #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    text-align: center;
}

.briarwood-navigation-label {
    color: var(--antique-gold);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.briarwood-estate-navigation h2 {
    color: #FFF9EB;
    font-family: Georgia, serif;
    font-size: 2rem;
    margin: 15px 0;
}

.briarwood-navigation-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
}

.briarwood-navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.briarwood-navigation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 25px 20px;
    min-width: 0;

    background: #FFF9EB;
    border: 2px solid var(--antique-gold);
    border-radius: 10px;

    color: var(--forest-green);
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.briarwood-navigation-symbol {
    color: #96783E;
    font-size: 1.5rem;
}

.briarwood-navigation-card strong {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.1rem;
    text-align: center;
}

.briarwood-navigation-card small {
    color: #665C4C;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

.briarwood-navigation-card:hover {
    background: #EDE7D8;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.briarwood-navigation-card:focus-visible {
    outline: 3px solid #FFF9EB;
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
}

#briarwood-beginnings,
#briarwood-future,
#briarwood-combined-planner,
#briarwood-challenge-settings,
#briarwood-restoration-charter,
#briarwood-restoration-journal,
#briarwood-milestone-ledger,
#briarwood-estate-legacy {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .briarwood-estate-navigation {
        padding: 30px 15px;
    }

    .briarwood-navigation-grid {
        grid-template-columns: 1fr;
    }

    .briarwood-navigation-card {
        padding: 20px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .briarwood-navigation-card {
        transition: none;
    }
}


/* =========================================
   BRIARWOOD - EXPANDABLE CHALLENGE GUIDE
========================================= */

.briarwood-guide-frame {
    max-width: 1000px;
    margin: 35px auto;
    padding: 35px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg, #244C3B, #183D30, #10291F
    );

    border: 3px solid var(--antique-gold);
    border-radius: 20px;

    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.briarwood-guide-intro {
    color: #EDE7D8;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 25px;
}

.briarwood-guide-paper {
    padding: 35px;

    background: linear-gradient(
        145deg, #FFFDF7, #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 12px;
}

.briarwood-guide-paper h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 20px;
}

.briarwood-guide-welcome {
    color: #494337;
    font-family: Georgia, serif;
    text-align: center;
    line-height: 1.9;
    margin-bottom: 30px;
}

.briarwood-guide-details {
    margin-bottom: 15px;
    background: #FFFDF7;
    border: 1px solid #D5C4A0;
    border-radius: 9px;
    overflow: hidden;
}

.briarwood-guide-details summary {
    padding: 20px 25px;

    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: bold;

    cursor: pointer;
    list-style-position: inside;
}

.briarwood-guide-details summary:hover {
    background: #EDE7D8;
}

.briarwood-guide-details summary:focus-visible {
    outline: 2px solid var(--moss-green);
    outline-offset: -3px;
}

.briarwood-guide-details[open] summary {
    background: #E1EBDD;
    border-bottom: 1px solid #D5C4A0;
}

.briarwood-guide-content {
    padding: 20px 25px;
}

.briarwood-guide-content p {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin-bottom: 15px;
}

.briarwood-guide-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .briarwood-guide-frame {
        padding: 25px 15px;
    }

    .briarwood-guide-paper {
        padding: 25px 15px;
    }

    .briarwood-guide-details summary {
        padding: 18px 15px;
    }

    .briarwood-guide-content {
        padding: 20px 15px;
    }
}


/* =========================================
   BRIARWOOD - RESTORATION JOURNEY TRANSITIONS
========================================= */

.briarwood-journey-transition {
    max-width: 850px;
    margin: 45px auto;
    padding: 35px 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg, #FFFDF7, #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 14px;

    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.briarwood-transition-symbol {
    display: block;
    color: #96783E;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.briarwood-journey-transition h3 {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.briarwood-journey-transition p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #494337;
    font-family: Georgia, serif;
    line-height: 1.9;
}

.briarwood-transition-link {
    display: inline-block;
    padding: 13px 24px;

    background: var(--forest-green);
    color: #FFF9EB;

    border: 1px solid var(--antique-gold);
    border-radius: 8px;

    font-family: Georgia, serif;
    font-weight: bold;
    text-decoration: none;

    transition: background 0.2s ease,
                transform 0.2s ease;
}

.briarwood-transition-link:hover {
    background: var(--moss-green);
    transform: translateY(-2px);
}

.briarwood-transition-link:focus-visible {
    outline: 3px solid var(--antique-gold);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .briarwood-journey-transition {
        padding: 28px 18px;
        margin: 30px auto;
    }

    .briarwood-transition-link {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-transition-link {
        transition: none;
    }
}


/* =========================================
   BRIARWOOD - LEGACY COMPLETION GUIDE
========================================= */

.briarwood-legacy-guide {
    max-width: 950px;
    margin: 35px auto;
    padding: 30px;
    box-sizing: border-box;

    background: linear-gradient(
        145deg, #FFFDF7, #F1E8D5
    );

    border: 2px solid var(--antique-gold);
    border-radius: 14px;

    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.briarwood-legacy-guide-heading {
    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.briarwood-legacy-guide-details {
    margin-bottom: 14px;
    background: #FFFDF7;
    border: 1px solid #D5C4A0;
    border-radius: 9px;
    overflow: hidden;
}

.briarwood-legacy-guide-details:last-child {
    margin-bottom: 0;
}

.briarwood-legacy-guide-details summary {
    padding: 18px 22px;

    color: var(--forest-green);
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: bold;

    cursor: pointer;
}

.briarwood-legacy-guide-details summary:hover {
    background: #EDE7D8;
}

.briarwood-legacy-guide-details summary:focus-visible {
    outline: 2px solid var(--moss-green);
    outline-offset: -3px;
}

.briarwood-legacy-guide-details[open] summary {
    background: #E1EBDD;
    border-bottom: 1px solid #D5C4A0;
}

.briarwood-legacy-guide-content {
    padding: 20px 25px;
}

.briarwood-legacy-guide-content p {
    color: #403C34;
    font-family: Georgia, serif;
    line-height: 1.9;
    margin-bottom: 14px;
}

.briarwood-legacy-guide-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .briarwood-legacy-guide {
        padding: 22px 15px;
    }

    .briarwood-legacy-guide-details summary {
        padding: 16px;
    }

    .briarwood-legacy-guide-content {
        padding: 18px 15px;
    }
}


/* =========================================
   BRIARWOOD - STRONGER DIVIDERS
========================================= */

.briarwood-journey-transition {
    border: 2px solid #a8873f;
}

.briarwood-guide-details,
.briarwood-legacy-guide-details {
    border-color: #b49a65;
}

.briarwood-guide-details[open] summary,
.briarwood-legacy-guide-details[open] summary {
    border-bottom: 2px solid #a8873f;
}


/* =========================================
   BRIARWOOD - LEGACY DECORATIVE HEADING
========================================= */

.briarwood-legacy-frame .briarwood-legacy-intro {
    color: #dfb952c0 !important;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 600;
    text-align: center;
    line-height: 1.7;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(173, 173, 98, 0.795);
}


/* =========================================
   BRIARWOOD - NAVIGATION POLISH
========================================= */

/* Smooth movement between challenge sections */

html {
    scroll-behavior: smooth;
}

/* Give anchored sections breathing room */

#briarwood-beginnings,
#briarwood-future,
#briarwood-combined-planner,
#briarwood-challenge-settings,
#briarwood-restoration-charter,
#briarwood-restoration-journal,
#briarwood-milestone-ledger,
#briarwood-estate-legacy {
    scroll-margin-top: 35px;
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* =========================================
   BRIARWOOD - NAVIGATION CARD INTERACTIONS
========================================= */

.briarwood-navigation-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.briarwood-navigation-card:hover {
    transform: translateY(-3px);
    border-color: #A8863F;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.briarwood-navigation-card:focus-visible {
    outline: 3px solid #A8863F;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .briarwood-navigation-card {
        transition: none;
    }

    .briarwood-navigation-card:hover {
        transform: none;
    }
}


/* =========================================
   STAGE 11C.2
   BRIARWOOD - MOBILE & TABLET POLISH
========================================= */

/* Tablet and smaller desktop screens */

@media (max-width: 900px) {

    .briarwood-navigation-grid,
    .briarwood-story-grid,
    .briarwood-future-grid,
    .briarwood-restoration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .briarwood-navigation-card,
    .briarwood-story-card,
    .briarwood-future-card,
    .briarwood-restoration-card {
        min-width: 0;
    }

    .briarwood-planner,
    .briarwood-settings-frame,
    .briarwood-charter-frame,
    .briarwood-journal,
    .briarwood-milestone-frame,
    .briarwood-legacy-frame {
        max-width: 100%;
        box-sizing: border-box;
    }

}


/* Mobile screens */

@media (max-width: 600px) {

    /* Navigation cards */

    .briarwood-navigation-grid,
    .briarwood-story-grid,
    .briarwood-future-grid,
    .briarwood-restoration-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .briarwood-navigation-card {
        padding: 20px 16px;
    }

    /* Estate documents and interactive panels */

    .briarwood-planner,
    .briarwood-settings-frame,
    .briarwood-charter-frame,
    .briarwood-journal,
    .briarwood-milestone-frame,
    .briarwood-legacy-frame {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .briarwood-planner-paper,
    .briarwood-settings-paper,
    .briarwood-charter-paper,
    .briarwood-journal-paper,
    .briarwood-milestone-paper,
    .briarwood-legacy-paper {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Long headings */

    .briarwood-intro h2,
    .briarwood-challenge-guide h2,
    .briarwood-navigation-card strong,
    .briarwood-story-card h3,
    .briarwood-future-card h3,
    .briarwood-restoration-card h4 {
        overflow-wrap: break-word;
    }

    /* Buttons and form controls */

    .briarwood-story-button,
    .briarwood-future-button,
    .briarwood-planner-generate,
    .briarwood-save-button,
    .briarwood-settings-save,
    .briarwood-zone-button,
    .briarwood-legacy-save {
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .briarwood-settings-option,
    .briarwood-legacy-option,
    .briarwood-planner-option {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .briarwood-legacy-notes textarea,
    .briarwood-zone-record textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Progress labels */

    .briarwood-progress-heading,
    .briarwood-milestone-progress-heading {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Keep navigation transitions comfortable */

    .briarwood-journey-transition {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

}


/* Very small phones */

@media (max-width: 380px) {

    .briarwood-guide-paper,
    .briarwood-legacy-guide {
        padding: 18px 12px;
    }

    .briarwood-navigation-card {
        padding: 16px 12px;
    }

    .briarwood-story-card,
    .briarwood-future-card,
    .briarwood-restoration-card {
        padding: 18px 14px;
    }

}


/* =========================================
   BRIARWOOD - EXTRA SMALL SCREEN FIX
   Stage 11C.2
========================================= */

@media (max-width: 380px) {

    /* Allow nested layouts to shrink properly */

    .briarwood-intro,
    .briarwood-challenge-guide,
    .briarwood-estate-navigation,
    .briarwood-story-archive,
    .briarwood-future-portfolio,
    .briarwood-planner,
    .briarwood-settings-frame,
    .briarwood-charter-frame,
    .briarwood-journal,
    .briarwood-milestone-frame,
    .briarwood-legacy-frame {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Reduce the space around document content */

    .briarwood-guide-frame,
    .briarwood-guide-paper,
    .briarwood-legacy-guide,
    .briarwood-planner-paper,
    .briarwood-settings-paper,
    .briarwood-charter-paper,
    .briarwood-journal-paper,
    .briarwood-milestone-paper,
    .briarwood-legacy-paper {
        padding: 16px 12px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Prevent card text from extending past borders */

    .briarwood-navigation-card,
    .briarwood-story-card,
    .briarwood-future-card,
    .briarwood-restoration-card,
    .briarwood-settings-option,
    .briarwood-legacy-option,
    .briarwood-planner-option,
    .briarwood-guide-content,
    .briarwood-legacy-guide-content {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    /* Allow long headings and labels to wrap */

    .briarwood-challenge-guide h2,
    .briarwood-navigation-card strong,
    .briarwood-story-card h3,
    .briarwood-future-card h3,
    .briarwood-restoration-card h4,
    .briarwood-guide-details summary,
    .briarwood-legacy-guide-details summary,
    .briarwood-settings-group legend,
    .briarwood-legacy-group legend {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Keep form fields within their containers */

    .briarwood-planner input,
    .briarwood-settings-frame input,
    .briarwood-legacy-frame input,
    .briarwood-legacy-frame textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Keep action buttons from overflowing */

    .briarwood-story-button,
    .briarwood-future-button,
    .briarwood-planner-generate,
    .briarwood-save-button,
    .briarwood-settings-save,
    .briarwood-zone-button,
    .briarwood-legacy-save,
    .briarwood-transition-link {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

}


/* =========================================
   BRIARWOOD - 320PX DOCUMENT LAYOUT FIX
========================================= */

@media (max-width: 380px) {

    /* Give the main sections more usable space */

    #briarwood-restoration-charter,
    #briarwood-restoration-journal,
    #briarwood-milestone-ledger,
    #briarwood-estate-legacy {
        padding-left: 10px;
        padding-right: 10px;
        min-width: 0;
    }

    /* Reduce the outer decorative frames */

    .briarwood-charter-frame,
    .briarwood-journal,
    .briarwood-milestone-frame,
    .briarwood-legacy-frame {
        width: 100%;
        max-width: 100%;
        padding: 10px 8px;
        box-sizing: border-box;
    }

    /* Reduce the inner document padding */

    .briarwood-charter-paper,
    .briarwood-journal-paper,
    .briarwood-milestone-paper,
    .briarwood-legacy-paper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 16px 10px;
        box-sizing: border-box;
    }

    /* Allow inner document sections to use full width */

    .briarwood-charter-heading,
    .briarwood-charter-summary,
    .briarwood-charter-objectives,
    .briarwood-charter-rules,
    .briarwood-charter-completion,
    .briarwood-journal-heading,
    .briarwood-progress-section,
    .briarwood-milestone-heading,
    .briarwood-milestone-progress,
    .briarwood-milestone-record,
    .briarwood-legacy-heading,
    .briarwood-legacy-group,
    .briarwood-legacy-notes,
    .briarwood-legacy-document {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Keep long titles within document borders */

    .briarwood-charter-paper h3,
    .briarwood-journal-paper h3,
    .briarwood-milestone-paper h3,
    .briarwood-legacy-paper h3,
    .briarwood-charter-paper h4,
    .briarwood-journal-paper h4,
    .briarwood-milestone-paper h4 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(1rem, 5vw, 1.35rem);
    }

    /* Improve text readability */

    .briarwood-charter-paper p,
    .briarwood-journal-paper p,
    .briarwood-milestone-paper p,
    .briarwood-legacy-paper p {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* Keep the saved legacy document inside its frame */

    #briarwood-legacy-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

}



/* =========================================
   BRIARWOOD - MOBILE BACK TO TOP FIX
========================================= */

@media (max-width: 380px) {

    a.back-to-top {
        position: fixed;
        bottom: 10px;
        right: 10px;
        left: auto;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: auto;
        min-width: 0;
        max-width: none;

        padding: 7px 10px;
        font-size: 11px;
        line-height: 1.2;

        white-space: nowrap;
        text-align: center;

        box-sizing: border-box;
        z-index: 1000;
    }

}


/* =========================================
   STAGE 11C.3
   BRIARWOOD - VISUAL CONSISTENCY
========================================= */

/* Consistent spacing between major sections */

.briarwood-page > .content-section {
    margin-bottom: 45px;
}

/* Consistent spacing around estate navigation */

.briarwood-estate-navigation {
    margin-top: 35px;
    margin-bottom: 45px;
}

/* Keep decorative headings readable */

.briarwood-guide-intro,
.briarwood-planner-intro,
.briarwood-settings-intro,
.briarwood-charter-intro,
.briarwood-journal-intro,
.briarwood-milestone-intro,
.briarwood-legacy-intro {
    line-height: 1.7;
    text-align: center;
}

/* Prevent overly wide paragraphs */

.briarwood-challenge-guide > .section-intro,
#briarwood-beginnings > .section-intro,
#briarwood-future > .section-intro,
#briarwood-combined-planner > .section-intro,
#briarwood-challenge-settings > .section-intro,
#briarwood-restoration-charter > .section-intro,
#briarwood-restoration-journal > .section-intro,
#briarwood-milestone-ledger > .section-intro,
#briarwood-estate-legacy > .section-intro {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Preserve comfortable spacing on phones */

@media (max-width: 600px) {
    .briarwood-page > .content-section {
        margin-bottom: 30px;
    }

    .briarwood-estate-navigation {
        margin-top: 25px;
        margin-bottom: 30px;
    }
}


/* =========================================
   STAGE 12A.1
   THE SIMSPIRATION RESOURCE LIBRARY
========================================= */

.resource-library {
    padding-top: 45px;
    padding-bottom: 55px;
}

.resource-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.resource-library-card {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.resource-library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(24, 61, 48, 0.15);
}

.resource-card-icon {
    display: block;
    color: #A8863E;
    font-size: 2rem;
    margin-bottom: 12px;
}

.resource-library-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #183D30;
    font-size: 1.35rem;
    margin: 0 0 15px;
}

.resource-library-card p {
    color: #315B43;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 20px;
    flex-grow: 1;
}

.resource-card-status {
    display: inline-block;
    color: #756849;
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.resource-card-link {
    display: inline-block;
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    padding: 11px 18px;

    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;

    margin-top: auto;
}

.resource-card-link:hover,
.resource-card-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.resource-card-link:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

/* TABLET */

@media (max-width: 900px) {
    .resource-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .resource-library {
        padding-top: 30px;
        padding-bottom: 35px;
    }

    .resource-library-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 25px;
    }

    .resource-library-card {
        padding: 25px 20px;
    }

    .resource-library-card h3 {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .resource-library-card {
        transition: none;
    }

    .resource-library-card:hover {
        transform: none;
    }
}


/* =========================================
   STAGE 12A.2
   GETTING STARTED GUIDE
========================================= */

.beginner-guide-page {
    max-width: 1100px;
    margin: 0 auto;
}

.beginner-guide-hero {
    text-align: center;
}

.beginner-guide-edition {
    color: #A8863E;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 25px 0;
}

.beginner-guide-contents {
    max-width: 650px;
    margin: 35px auto;
    padding: 30px;
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    text-align: left;
}

.beginner-guide-contents h3 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
}

.beginner-guide-contents li {
    margin: 12px 0;
    line-height: 1.6;
}

.beginner-guide-contents a {
    color: #183D30;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.beginner-guide-chapter {
    scroll-margin-top: 25px;
    padding: 35px;
    margin-bottom: 30px;
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
}

.beginner-guide-chapter h2 {
    color: #183D30;
}

.beginner-guide-chapter p,
.beginner-guide-chapter li {
    line-height: 1.8;
}

.beginner-guide-chapter li {
    margin-bottom: 8px;
}

.beginner-guide-tip,
.beginner-guide-challenge {
    background: #F7F2E8;
    border-left: 4px solid #C4A35A;
    padding: 20px;
    margin: 25px 0;
}

.beginner-guide-tip strong,
.beginner-guide-challenge h3 {
    color: #183D30;
}

.beginner-needs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.beginner-needs-grid > div {
    padding: 18px;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    background: #F7F2E8;
}

.beginner-needs-grid strong {
    color: #183D30;
}

.beginner-needs-grid p {
    margin-bottom: 0;
}

.beginner-guide-ending {
    text-align: center;
    padding-bottom: 50px;
}

.beginner-guide-return {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    background: #183D30;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    color: #EDE7D8;
    text-decoration: none;
}

.beginner-guide-return:hover {
    background: #315B43;
    color: #FFFFFF;
}

.beginner-guide-page a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .beginner-guide-chapter {
        padding: 22px 18px;
    }

    .beginner-guide-contents {
        padding: 20px;
    }

    .beginner-needs-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   BEGINNER GUIDE - CHAPTER LIST ALIGNMENT
========================================= */

.beginner-guide-contents ol {
    display: block;
    width: fit-content;
    max-width: 100%;

    margin: 20px auto;
    padding-left: 30px;

    list-style-type: decimal;
    list-style-position: outside;

    text-align: left;
}

.beginner-guide-contents ol li {
    display: list-item;
    text-align: left;

    padding: 0;
    margin: 10px 0;

    line-height: 1.7;
}

.beginner-guide-contents ol li a {
    display: inline;
    text-align: left;
    text-decoration: none;

    color: #183D30;
}

.beginner-guide-contents ol li a:hover {
    color: #A8863E;
    text-decoration: underline;
}

/* MOBILE */

@media (max-width: 600px) {
    .beginner-guide-contents ol {
        width: auto;
        margin: 15px 0;
        padding-left: 25px;
    }
}


/* =========================================
   BEGINNER GUIDE - CHAPTER LIST FIX
========================================= */

/* Keep instructional lists neatly grouped */

.beginner-guide-chapter ol,
.beginner-guide-chapter ul {
    display: block;
    width: fit-content;
    max-width: 100%;

    margin: 20px auto;
    padding-left: 30px;

    text-align: left;
    list-style-position: outside;
}

/* Align each instruction with its number */

.beginner-guide-chapter ol li,
.beginner-guide-chapter ul li {
    display: list-item;
    text-align: left;

    margin: 10px 0;
    padding: 0;

    line-height: 1.8;
}

/* Preserve the correct list markers */

.beginner-guide-chapter ol {
    list-style-type: decimal;
}

.beginner-guide-chapter ul {
    list-style-type: disc;
}

/* Mobile adjustments */

@media (max-width: 600px) {
    .beginner-guide-chapter ol,
    .beginner-guide-chapter ul {
        width: auto;
        margin: 20px 0;
        padding-left: 25px;
    }
}


/* =========================================
   STAGE 12A.2
   BEGINNER GUIDE EXPANDABLE CHAPTERS
========================================= */

.beginner-guide-dropdown {
    padding: 0;
    overflow: hidden;
}

.beginner-guide-dropdown-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    position: relative;
    padding: 30px 55px 30px 25px;

    cursor: pointer;
    list-style: none;
    text-align: center;
}

.beginner-guide-dropdown-heading::-webkit-details-marker {
    display: none;
}

.beginner-guide-dropdown-heading::marker {
    content: "";
}

.beginner-guide-dropdown-title {
    display: block;
    color: #183D30;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.beginner-guide-dropdown-indicator {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);

    color: #A8863E;
    font-size: 1.8rem;
    font-weight: 400;
}

.beginner-guide-dropdown[open]
.beginner-guide-dropdown-indicator {
    font-size: 0;
}

.beginner-guide-dropdown[open]
.beginner-guide-dropdown-indicator::after {
    content: "−";
    font-size: 1.8rem;
}

.beginner-guide-dropdown-heading:hover {
    background: rgba(196, 163, 90, 0.10);
}

.beginner-guide-dropdown-heading:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: -4px;
}

.beginner-guide-dropdown-content {
    padding: 0 35px 30px;
    text-align: center;
}

@media (max-width: 600px) {
    .beginner-guide-dropdown-heading {
        padding: 25px 45px 25px 15px;
    }

    .beginner-guide-dropdown-content {
        padding: 0 18px 25px;
    }

    .beginner-guide-dropdown-indicator {
        right: 15px;
    }
}


/* =========================================
   BEGINNER GUIDE - CHEVRON DROPDOWN ARROWS
========================================= */

.beginner-guide-dropdown-indicator,
.beginner-guide-dropdown[open]
.beginner-guide-dropdown-indicator {
    position: absolute;
    right: 24px;
    top: 50%;

    display: block;
    width: 11px;
    height: 11px;

    border-right: 2px solid #A8863E;
    border-bottom: 2px solid #A8863E;

    font-size: 0;

    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

/* Chevron points upward when expanded */

.beginner-guide-dropdown[open]
.beginner-guide-dropdown-indicator {
    transform: translateY(-25%) rotate(225deg);
}

/* Remove the old plus/minus character */

.beginner-guide-dropdown-indicator::after,
.beginner-guide-dropdown[open]
.beginner-guide-dropdown-indicator::after {
    content: none;
}

/* Mobile positioning */

@media (max-width: 600px) {
    .beginner-guide-dropdown-indicator,
    .beginner-guide-dropdown[open]
    .beginner-guide-dropdown-indicator {
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .beginner-guide-dropdown-indicator {
        transition: none;
    }
}


/* =========================================
   BEGINNER GUIDE - DECORATIVE CHAPTER STYLE
========================================= */

.beginner-guide-dropdown {
    border: 1px solid #C4A35A;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(24, 61, 48, 0.08);
}

.beginner-guide-dropdown-heading {
    background: linear-gradient(
        135deg,
        #EDE7D8 0%,
        #F7F2E8 55%,
        #EDE7D8 100%
    );

    padding-top: 25px;
    padding-bottom: 25px;

    gap: 8px;

    transition: background 0.25s ease;
}

.beginner-guide-dropdown-heading:hover {
    background: #E4D9C3;
}

.beginner-guide-chapter-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: #183D30;
    border: 1px solid #C4A35A;
    border-radius: 50%;

    color: #D7BA77;
    font-size: 1.5rem;

    margin-bottom: 5px;

    box-shadow: 0 3px 8px rgba(24, 61, 48, 0.15);
}

.beginner-guide-dropdown-title {
    letter-spacing: 0.3px;
}

.beginner-guide-dropdown[open] {
    box-shadow: 0 8px 22px rgba(24, 61, 48, 0.12);
}

.beginner-guide-dropdown[open]
.beginner-guide-dropdown-heading {
    border-bottom: 1px solid #C4A35A;
}

.beginner-guide-dropdown-content {
    background: #F7F2E8;
    padding-top: 25px;
}

@media (max-width: 600px) {
    .beginner-guide-chapter-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .beginner-guide-dropdown-heading {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .beginner-guide-dropdown-heading {
        transition: none;
    }
}


/* =========================================
   BEGINNER GUIDE - FINAL DROPDOWN SPACING
========================================= */

/* Hide decorative ornament on closed chapters */

.beginner-guide-page
.beginner-guide-dropdown:not([open])::after {
    display: none;
}

/* Keep ornament on expanded chapters */

.beginner-guide-page
.beginner-guide-dropdown[open]::after {
    display: block;
    margin: 10px auto 20px;
}

/* Remove unnecessary space from closed cards */

.beginner-guide-page
.beginner-guide-dropdown:not([open]) {
    min-height: 0;
    padding: 0;
}

/* Preserve comfortable spacing when expanded */

.beginner-guide-page
.beginner-guide-dropdown[open] {
    padding: 0;
}


/* =========================================
   STAGE 12A.3
   SIMS 4 DOWNLOAD & INSTALL GUIDE
========================================= */

.sims-install-guide .sims-install-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;

    padding: 35px;
    margin-bottom: 28px;

    text-align: left;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-install-guide .sims-install-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 25px;
}

.sims-install-guide .sims-install-panel .section-label {
    text-align: center;
}

.sims-install-guide .sims-install-panel p,
.sims-install-guide .sims-install-panel li {
    color: #183D30;
    line-height: 1.8;
}

.sims-install-guide .sims-install-panel ol,
.sims-install-guide .sims-install-panel ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 28px;
    list-style-position: outside;
}

.sims-install-guide .sims-install-panel ol li,
.sims-install-guide .sims-install-panel ul li {
    display: list-item;
    text-align: left;
    margin-bottom: 12px;
}

.sims-install-guide .sims-install-panel ol {
    list-style-type: decimal;
}

.sims-install-guide .sims-install-panel ul {
    list-style-type: disc;
}

.sims-install-guide .sims-install-resource-link {
    display: block;
    width: fit-content;
    max-width: 100%;

    margin: 16px auto;
    padding: 12px 18px;

    color: #EDE7D8;
    background: #183D30;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    text-align: center;
    text-decoration: none;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.sims-install-guide .sims-install-resource-link:hover,
.sims-install-guide .sims-install-resource-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-install-guide a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-install-guide .sims-install-sources {
    background: #F7F2E8;
}

@media (max-width: 600px) {
    .sims-install-guide .sims-install-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }
}


/* =========================================
   STAGE 12A.4
   SIMS 4 INTERFACE & CONTROLS GUIDE
========================================= */

.sims-controls-guide .sims-controls-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-controls-guide .sims-controls-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-controls-guide .sims-controls-panel h3 {
    color: #183D30;
    font-family: Georgia, serif;
    margin-top: 25px;
}

.sims-controls-guide .sims-controls-panel .section-label {
    text-align: center;
}

.sims-controls-guide .sims-controls-panel p,
.sims-controls-guide .sims-controls-panel li,
.sims-controls-guide .sims-controls-panel dd {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-controls-guide .sims-controls-panel ol,
.sims-controls-guide .sims-controls-panel ul {
    display: block;
    list-style-position: outside;
    padding-left: 28px;
    margin: 20px 0;
    text-align: left;
}

.sims-controls-guide .sims-controls-panel ol {
    list-style-type: decimal;
}

.sims-controls-guide .sims-controls-panel li {
    display: list-item;
    margin-bottom: 10px;
}

/* Three game mode cards */

.sims-controls-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-controls-mode {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
}

.sims-controls-mode span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 15px;

    background: #183D30;
    color: #D7BA77;
    border: 1px solid #C4A35A;
    border-radius: 50%;
    font-size: 1.3rem;
}

.sims-controls-mode h3 {
    text-align: center;
    margin: 0 0 12px !important;
}

.sims-controls-guide .sims-controls-mode p {
    text-align: center;
    margin-bottom: 0;
}

/* Main menu glossary */

.sims-controls-definitions {
    max-width: 700px;
    margin: 25px auto;
}

.sims-controls-definitions dt {
    color: #183D30;
    font-weight: 700;
    margin-top: 18px;
}

.sims-controls-definitions dd {
    margin: 5px 0 15px 0;
    padding-left: 16px;
    border-left: 2px solid #C4A35A;
}

/* Live Mode information cards */

.sims-controls-reference {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-controls-reference > div {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 20px;
}

.sims-controls-reference strong {
    color: #183D30;
}

.sims-controls-reference p {
    margin: 8px 0 0;
}

/* Keyboard shortcut tables */

.sims-controls-table-wrap {
    overflow-x: auto;
    margin: 25px 0;
}

.sims-controls-table {
    width: 100%;
    border-collapse: collapse;
    background: #F7F2E8;
    color: #183D30;
    text-align: left;
}

.sims-controls-table th {
    background: #183D30;
    color: #EDE7D8;
    font-weight: 600;
    text-align: left;
    padding: 14px;
    border: 1px solid #C4A35A;
}

.sims-controls-table td {
    border: 1px solid #C4A35A;
    padding: 12px 14px;
    text-align: left;
    line-height: 1.6;
}

.sims-controls-table td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

/* Official source links */

.sims-controls-source-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto;
    padding: 12px 18px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sims-controls-source-link:hover,
.sims-controls-source-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-controls-guide a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-controls-sources {
    background: #F7F2E8 !important;
}

.sims-controls-guide .sims-controls-review-note {
    margin-top: 25px;
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

/* Introductory note */

.sims-controls-note {
    max-width: 720px;
    margin: 25px auto;
    padding: 18px 24px;

    background: #F7F2E8;
    border-left: 4px solid #C4A35A;
    text-align: left;
}

.sims-controls-note strong {
    color: #183D30;
}

.sims-controls-note p {
    color: #183D30;
    line-height: 1.7;
    text-align: left;
    margin: 8px 0 0;
}

/* Responsive layouts */

@media (max-width: 900px) {
    .sims-controls-mode-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sims-controls-guide .sims-controls-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-controls-reference {
        grid-template-columns: 1fr;
    }

    .sims-controls-table th,
    .sims-controls-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .sims-controls-note {
        padding: 16px;
    }
}


/* =========================================
   STAGE 12A.5
   CREATE-A-SIM BEGINNER GUIDE
========================================= */

.sims-cas-guide .sims-cas-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-cas-guide .sims-cas-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-cas-guide .sims-cas-panel h3,
.sims-cas-guide .sims-cas-panel h4 {
    color: #183D30;
    font-family: Georgia, serif;
    margin-top: 24px;
}

.sims-cas-guide .sims-cas-panel .section-label {
    text-align: center;
}

.sims-cas-guide .sims-cas-panel p,
.sims-cas-guide .sims-cas-panel li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-cas-guide .sims-cas-panel ol,
.sims-cas-guide .sims-cas-panel ul {
    display: block;
    margin: 20px 0;
    padding-left: 28px;
    list-style-position: outside;
    text-align: left;
}

.sims-cas-guide .sims-cas-panel ol {
    list-style-type: decimal;
}

.sims-cas-guide .sims-cas-panel ul {
    list-style-type: disc;
}

.sims-cas-guide .sims-cas-panel li {
    display: list-item;
    text-align: left;
    margin-bottom: 10px;
}

/* Decorative feature cards */

.sims-cas-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-cas-feature {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
}

.sims-cas-feature > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border: 1px solid #C4A35A;
    border-radius: 50%;
    background: #183D30;
    color: #D7BA77;
    font-size: 1.3rem;
}

.sims-cas-feature h3 {
    text-align: center;
    margin: 0 0 12px !important;
}

.sims-cas-guide .sims-cas-feature p {
    text-align: center;
    margin-bottom: 0;
}

/* Trait example cards */

.sims-cas-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-cas-example-grid > div {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 20px;
}

.sims-cas-example-grid strong {
    color: #183D30;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.sims-cas-example-grid p {
    margin: 10px 0 0;
}

/* Storytelling activity */

.sims-cas-story-card {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-left: 4px solid #183D30;
    border-radius: 6px;
    padding: 25px;
    margin: 25px 0;
}

.sims-cas-story-card h3 {
    margin-top: 0 !important;
}

/* Official research links */

.sims-cas-source-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto;
    padding: 12px 18px;
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sims-cas-source-link:hover,
.sims-cas-source-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-cas-guide a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-cas-guide .sims-cas-sources {
    background: #F7F2E8;
}

.sims-cas-guide .sims-cas-review-note {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center !important;
    margin-top: 25px;
}

/* Tablet */

@media (max-width: 900px) {
    .sims-cas-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sims-cas-guide .sims-cas-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-cas-example-grid {
        grid-template-columns: 1fr;
    }

    .sims-cas-story-card {
        padding: 18px;
    }
}


/* =========================================
   STAGE 12A.6
   FIRST HOME & WORLDS GUIDE
========================================= */

/* Main guide sections */

.sims-home-guide .sims-home-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-home-guide .sims-home-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-home-guide .sims-home-panel h3,
.sims-home-guide .sims-home-panel h4 {
    color: #183D30;
    font-family: Georgia, serif;
    margin-top: 25px;
}

.sims-home-guide .sims-home-panel .section-label {
    text-align: center;
}

.sims-home-guide .sims-home-panel p,
.sims-home-guide .sims-home-panel li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-home-guide .sims-home-panel ol,
.sims-home-guide .sims-home-panel ul {
    display: block;
    margin: 20px 0;
    padding-left: 28px;
    list-style-position: outside;
    text-align: left;
}

.sims-home-guide .sims-home-panel ol {
    list-style-type: decimal;
}

.sims-home-guide .sims-home-panel ul {
    list-style-type: disc;
}

.sims-home-guide .sims-home-panel li {
    display: list-item;
    margin-bottom: 10px;
    text-align: left;
}

/* World, neighborhood, lot definitions */

.sims-home-definition-grid,
.sims-home-world-grid,
.sims-home-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-home-definition,
.sims-home-world,
.sims-home-choice {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
}

.sims-home-definition > span,
.sims-home-world-symbol {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 1px solid #C4A35A;
    border-radius: 50%;
    background: #183D30;
    color: #D7BA77;
    font-size: 1.4rem;
}

.sims-home-definition h3,
.sims-home-world h3,
.sims-home-choice h3 {
    margin: 0 0 12px !important;
    text-align: center;
}

.sims-home-guide .sims-home-definition p,
.sims-home-guide .sims-home-world p,
.sims-home-guide .sims-home-choice p {
    text-align: center;
}

.sims-home-guide .sims-home-world-subtitle {
    color: #876C35;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

/* Starter home essentials */

.sims-home-essentials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-home-essentials > div {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 20px;
}

.sims-home-essentials strong {
    color: #183D30;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.sims-home-essentials p {
    margin: 10px 0 0;
}

/* First home challenge */

.sims-home-story-card {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-left: 4px solid #183D30;
    border-radius: 6px;
    padding: 25px;
    margin: 25px 0;
}

.sims-home-story-card h3 {
    margin-top: 0 !important;
}

/* Research and official links */

.sims-home-source-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto;
    padding: 12px 18px;
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sims-home-source-link:hover,
.sims-home-source-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-home-guide a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-home-guide .sims-home-sources {
    background: #F7F2E8;
}

.sims-home-guide .sims-home-review-note {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center !important;
    margin-top: 25px;
}

/* Tablet */

@media (max-width: 900px) {
    .sims-home-definition-grid,
    .sims-home-world-grid,
    .sims-home-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sims-home-guide .sims-home-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-home-essentials {
        grid-template-columns: 1fr;
    }

    .sims-home-story-card {
        padding: 18px;
    }
}


/* =========================================
   STAGE 12A.7
   NEEDS, MOODS & EMOTIONS GUIDE
========================================= */

.sims-needs-guide .sims-needs-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-needs-guide .sims-needs-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-needs-guide .sims-needs-panel h3,
.sims-needs-guide .sims-needs-panel h4 {
    color: #183D30;
    font-family: Georgia, serif;
    margin-top: 24px;
}

.sims-needs-guide .sims-needs-panel .section-label {
    text-align: center;
}

.sims-needs-guide .sims-needs-panel p,
.sims-needs-guide .sims-needs-panel li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-needs-guide .sims-needs-panel ol,
.sims-needs-guide .sims-needs-panel ul {
    display: block;
    padding-left: 28px;
    margin: 20px 0;
    list-style-position: outside;
    text-align: left;
}

.sims-needs-guide .sims-needs-panel ol {
    list-style-type: decimal;
}

.sims-needs-guide .sims-needs-panel ul {
    list-style-type: disc;
}

.sims-needs-guide .sims-needs-panel li {
    display: list-item;
    margin-bottom: 10px;
}

/* Six Needs */

.sims-needs-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-needs-card {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px;
    text-align: center;
}

.sims-needs-card > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    background: #183D30;
    color: #D7BA77;
    border: 1px solid #C4A35A;
    border-radius: 50%;
    font-size: 1.3rem;
}

.sims-needs-card h3 {
    margin: 0 0 12px !important;
    text-align: center;
}

.sims-needs-guide .sims-needs-card p {
    text-align: center;
}

/* Needs status indicators */

.sims-needs-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-needs-status {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.sims-needs-status-icon {
    display: block;
    width: 42px;
    height: 12px;
    border-radius: 20px;
    margin: 0 auto 14px;
}

.sims-needs-status-good {
    background: #4D9558;
}

.sims-needs-status-warning {
    background: #D9B345;
}

.sims-needs-status-urgent {
    background: #B84D45;
}

.sims-needs-status strong {
    color: #183D30;
}

.sims-needs-guide .sims-needs-status p {
    text-align: center;
    margin: 10px 0 0;
}

/* Needs reference table */

.sims-needs-table-wrap {
    overflow-x: auto;
    margin: 25px 0;
}

.sims-needs-table {
    width: 100%;
    border-collapse: collapse;
    background: #F7F2E8;
}

.sims-needs-table th {
    background: #183D30;
    color: #EDE7D8;
    padding: 14px;
    text-align: left;
    border: 1px solid #C4A35A;
}

.sims-needs-table td {
    color: #183D30;
    padding: 12px 14px;
    border: 1px solid #C4A35A;
    line-height: 1.6;
    text-align: left;
}

.sims-needs-table td:first-child {
    font-weight: 700;
}

/* Emotion examples */

.sims-emotions-grid,
.sims-needs-routine,
.sims-needs-special-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sims-emotions-grid > div,
.sims-needs-routine > article,
.sims-needs-special-grid > div {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 20px;
}

.sims-emotions-grid strong,
.sims-needs-special-grid strong {
    color: #183D30;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.sims-needs-guide .sims-emotions-grid p,
.sims-needs-guide .sims-needs-special-grid p {
    margin: 10px 0 0;
}

.sims-needs-routine h3 {
    margin-top: 0 !important;
}

/* Beginner activity */

.sims-needs-story-card {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-left: 4px solid #183D30;
    border-radius: 6px;
    padding: 25px;
    margin: 25px 0;
}

.sims-needs-story-card h3 {
    margin-top: 0 !important;
}

/* Official research links */

.sims-needs-source-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto;
    padding: 12px 18px;
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sims-needs-source-link:hover,
.sims-needs-source-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-needs-guide a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-needs-guide .sims-needs-sources {
    background: #F7F2E8;
}

.sims-needs-guide .sims-needs-review-note {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 25px;
    text-align: center !important;
}

/* Tablet */

@media (max-width: 900px) {
    .sims-needs-status-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sims-needs-guide .sims-needs-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-needs-card-grid,
    .sims-emotions-grid,
    .sims-needs-routine,
    .sims-needs-special-grid {
        grid-template-columns: 1fr;
    }

    .sims-needs-story-card {
        padding: 18px;
    }

    .sims-needs-table th,
    .sims-needs-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}


/* =========================================
   STAGE 12A.8
   EXPLORING EVERYDAY LIFE GUIDE
========================================= */

/* Main guide sections */

.sims-everyday-guide .sims-everyday-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-everyday-guide .sims-everyday-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-everyday-guide .sims-everyday-panel h3,
.sims-everyday-guide .sims-everyday-panel h4 {
    color: #183D30;
    font-family: Georgia, serif;
    margin-top: 24px;
}

.sims-everyday-guide .sims-everyday-panel .section-label {
    text-align: center;
}

.sims-everyday-guide .sims-everyday-panel p,
.sims-everyday-guide .sims-everyday-panel li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-everyday-guide .sims-everyday-panel ol,
.sims-everyday-guide .sims-everyday-panel ul {
    display: block;
    margin: 20px 0;
    padding-left: 28px;
    list-style-position: outside;
    text-align: left;
}

.sims-everyday-guide .sims-everyday-panel ol {
    list-style-type: decimal;
}

.sims-everyday-guide .sims-everyday-panel ul {
    list-style-type: disc;
}

.sims-everyday-guide .sims-everyday-panel li {
    display: list-item;
    margin-bottom: 10px;
    text-align: left;
}

/* Main introductory feature cards */

.sims-everyday-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-everyday-feature {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
}

.sims-everyday-feature > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    background: #183D30;
    color: #D7BA77;
    border: 1px solid #C4A35A;
    border-radius: 50%;
    font-size: 1.3rem;
}

.sims-everyday-feature h3 {
    margin: 0 0 12px !important;
    text-align: center;
}

.sims-everyday-guide .sims-everyday-feature p {
    text-align: center;
    margin-bottom: 0;
}

/* Skills, hobbies, income and venues */

.sims-everyday-skill-grid,
.sims-everyday-place-grid,
.sims-everyday-income-grid,
.sims-everyday-playstyle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-everyday-skill-grid > div,
.sims-everyday-place-grid > div,
.sims-everyday-income-grid > div,
.sims-everyday-playstyle-grid > article {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px;
}

.sims-everyday-skill-grid h3,
.sims-everyday-playstyle-grid h3 {
    margin-top: 0 !important;
}

.sims-everyday-place-grid strong,
.sims-everyday-income-grid strong {
    color: #183D30;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.sims-everyday-skill-grid p,
.sims-everyday-place-grid p,
.sims-everyday-income-grid p,
.sims-everyday-playstyle-grid p {
    margin-bottom: 0;
}

/* Seven-day beginner challenge */

.sims-everyday-story-card {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-left: 4px solid #183D30;
    border-radius: 6px;
    padding: 25px;
    margin: 25px 0;
}

.sims-everyday-story-card h3 {
    margin-top: 0 !important;
}

/* Official research links */

.sims-everyday-source-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto;
    padding: 12px 18px;
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sims-everyday-source-link:hover,
.sims-everyday-source-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-everyday-guide a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-everyday-guide .sims-everyday-sources {
    background: #F7F2E8;
}

.sims-everyday-guide .sims-everyday-review-note {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center !important;
    margin-top: 25px;
}

/* Tablet */

@media (max-width: 900px) {
    .sims-everyday-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sims-everyday-guide .sims-everyday-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-everyday-skill-grid,
    .sims-everyday-place-grid,
    .sims-everyday-income-grid,
    .sims-everyday-playstyle-grid {
        grid-template-columns: 1fr;
    }

    .sims-everyday-story-card {
        padding: 18px;
    }
}


/* =========================================
   STAGE 12A.9
   FIRST SIM ADVENTURE GUIDE
========================================= */

.sims-adventure-guide .sims-adventure-panel {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-adventure-guide .sims-adventure-panel h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-adventure-guide .sims-adventure-panel h3,
.sims-adventure-guide .sims-adventure-panel h4 {
    color: #183D30;
    font-family: Georgia, serif;
    margin-top: 20px;
}

.sims-adventure-guide .sims-adventure-panel .section-label {
    text-align: center;
}

.sims-adventure-guide .sims-adventure-panel p,
.sims-adventure-guide .sims-adventure-panel li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-adventure-guide .sims-adventure-panel ol,
.sims-adventure-guide .sims-adventure-panel ul {
    display: block;
    margin: 20px 0;
    padding-left: 28px;
    list-style-position: outside;
    text-align: left;
}

.sims-adventure-guide .sims-adventure-panel ol {
    list-style-type: decimal;
}

.sims-adventure-guide .sims-adventure-panel li {
    display: list-item;
    margin-bottom: 10px;
}

/* Opening story */

.sims-adventure-story {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-left: 4px solid #183D30;
    border-radius: 6px;
    padding: 28px;
    margin: 25px 0;
}

.sims-adventure-story h3 {
    text-align: center;
    margin-top: 0 !important;
}

/* Three adventure routes */

.sims-adventure-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-adventure-route {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
}

.sims-adventure-route-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border: 1px solid #C4A35A;
    border-radius: 50%;
    background: #183D30;
    color: #D7BA77;
    font-size: 1.4rem;
}

.sims-adventure-route h3 {
    text-align: center;
    margin: 0 0 10px !important;
}

.sims-adventure-guide .sims-adventure-route p {
    text-align: center;
}

.sims-adventure-guide .sims-adventure-route-subtitle {
    color: #876C35;
    font-style: italic;
    font-size: 0.9rem;
}

/* Interactive-looking mission checklists */

.sims-adventure-checklist {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 25px;
    margin: 20px 0;
}

.sims-adventure-checklist h3 {
    margin: 0 0 18px !important;
}

.sims-adventure-guide .sims-adventure-checklist label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 12px 0;
    cursor: pointer;
    color: #183D30;
    font-weight: normal;
    line-height: 1.6;
    text-align: left;
}

.sims-adventure-checklist input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 4px 0 0;
    accent-color: #315B43;
    cursor: pointer;
}

.sims-adventure-checklist label span {
    flex: 1;
}

.sims-adventure-checklist input:checked + span {
    color: #607B67;
    text-decoration: line-through;
}

.sims-adventure-guide .sims-adventure-small-note {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

/* Optional surprise dropdowns */

.sims-adventure-event-list {
    display: grid;
    gap: 14px;
    margin: 25px 0;
}

.sims-adventure-event {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    overflow: hidden;
}

.sims-adventure-event summary {
    display: list-item;
    cursor: pointer;
    padding: 18px 22px;
    color: #183D30;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
}

.sims-adventure-event[open] summary {
    border-bottom: 1px solid #C4A35A;
}

.sims-adventure-event p {
    padding: 0 22px;
    margin: 16px 0;
}

.sims-adventure-event p:last-child {
    padding-bottom: 8px;
}

/* Multiple possible endings */

.sims-adventure-ending-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-adventure-ending-grid article {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px;
}

.sims-adventure-ending-grid h3 {
    margin-top: 0 !important;
}

.sims-adventure-ending-grid p {
    margin-bottom: 0;
}

/* Adventure journal */

.sims-adventure-journal {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-left: 4px solid #183D30;
    border-radius: 6px;
    padding: 25px;
    margin: 25px 0;
}

.sims-adventure-journal h3 {
    margin-top: 0 !important;
}

/* Next adventure links */

.sims-adventure-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-adventure-next-grid article {
    display: flex;
    flex-direction: column;
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px;
}

.sims-adventure-next-grid h3 {
    margin-top: 0 !important;
}


/* Part Eight — Next Adventure Buttons */

.sims-adventure-next-grid a {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding: 12px 14px;
    min-height: 48px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition: background 0.2s ease;
}

.sims-adventure-next-grid a:hover,
.sims-adventure-next-grid a:focus-visible {
    background: #315B43;
    color: #FFFFFF;
    text-decoration: none;
}


/* Research links */

.sims-adventure-source-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto;
    padding: 12px 18px;
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sims-adventure-source-link:hover,
.sims-adventure-source-link:focus-visible {
    background: #315B43;
    color: #FFFFFF;
}

.sims-adventure-guide a:focus-visible,
.sims-adventure-guide summary:focus-visible,
.sims-adventure-guide input:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-adventure-guide .sims-adventure-sources {
    background: #F7F2E8;
}

.sims-adventure-guide .sims-adventure-review-note {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center !important;
    margin-top: 25px;
}

/* Tablet */

@media (max-width: 900px) {

    .sims-adventure-route-grid,
    .sims-adventure-next-grid {
        grid-template-columns: 1fr;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .sims-adventure-guide .sims-adventure-panel {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-adventure-ending-grid {
        grid-template-columns: 1fr;
    }

    .sims-adventure-story,
    .sims-adventure-journal,
    .sims-adventure-checklist {
        padding: 18px;
    }

    .sims-adventure-event summary {
        padding: 16px;
    }

}


/* =========================================
   STAGE 12B.1
   CHEATS & TROUBLESHOOTING LIBRARY
========================================= */

/* Main content panels */

.sims-cheats-library .sims-cheats-section,
.sims-cheats-guide .sims-cheats-section {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-cheats-library .sims-cheats-section h2,
.sims-cheats-guide .sims-cheats-section h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-cheats-library .sims-cheats-section h3,
.sims-cheats-guide .sims-cheats-section h3 {
    color: #183D30;
    font-family: Georgia, serif;
    margin: 20px 0 12px;
}

.sims-cheats-library .sims-cheats-section .section-label,
.sims-cheats-guide .sims-cheats-section .section-label {
    text-align: center;
}

.sims-cheats-library .sims-cheats-section p,
.sims-cheats-guide .sims-cheats-section p,
.sims-cheats-guide .sims-cheats-section li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-cheats-guide .sims-cheats-section ol,
.sims-cheats-guide .sims-cheats-section ul {
    display: block;
    margin: 20px 0;
    padding-left: 28px;
    list-style-position: outside;
    text-align: left;
}

.sims-cheats-guide .sims-cheats-section ol {
    list-style-type: decimal;
}

.sims-cheats-guide .sims-cheats-section ul {
    list-style-type: disc;
}

.sims-cheats-guide .sims-cheats-section li {
    display: list-item;
    margin-bottom: 10px;
}

/* Featured cheat guide */

.sims-cheats-feature {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 20px;
    align-items: start;

    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;

    padding: 25px;
    margin: 25px 0;
}

.sims-cheats-feature h3 {
    margin-top: 0 !important;
}

.sims-cheats-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    background: #183D30;
    color: #D7BA77;
    border: 1px solid #C4A35A;
    border-radius: 50%;

    font-size: 1.5rem;
}

/* Information cards */

.sims-cheats-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-cheats-guide .sims-cheats-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sims-cheats-info-grid article {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 20px;
}

.sims-cheats-info-grid h3 {
    margin-top: 0 !important;
}

/* Reference tables */

.sims-cheats-table-wrap {
    overflow-x: auto;
    margin: 25px 0;
}

.sims-cheats-table {
    width: 100%;
    border-collapse: collapse;
    background: #F7F2E8;
}

.sims-cheats-table th {
    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    padding: 14px;
    text-align: left;
}

.sims-cheats-table td {
    color: #183D30;
    border: 1px solid #C4A35A;
    padding: 12px 14px;
    line-height: 1.6;
    text-align: left;
}

.sims-cheats-table td:first-child {
    font-weight: bold;
}

/* Copy-friendly cheat commands */

.sims-cheats-command {
    max-width: 650px;
    margin: 18px auto;
    padding: 18px 22px;

    background: #183D30;
    border: 1px solid #C4A35A;
    border-radius: 6px;

    text-align: center;
    overflow-x: auto;
}

.sims-cheats-command code {
    color: #F3DEAA;
    font-family: Consolas, monospace;
    font-size: 1rem;
    white-space: nowrap;
}

/* Troubleshooting dropdowns */

.sims-cheats-faq {
    display: grid;
    gap: 14px;
    margin: 25px 0;
}

.sims-cheats-faq details {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    overflow: hidden;
}

.sims-cheats-faq summary {
    display: list-item;
    padding: 18px 22px;
    cursor: pointer;
    color: #183D30;
    font-family: Georgia, serif;
    font-weight: bold;
}

.sims-cheats-faq details[open] summary {
    border-bottom: 1px solid #C4A35A;
}

.sims-cheats-faq details p {
    padding: 0 22px;
    margin: 16px 0;
}

/* Forest-green buttons */

.sims-cheats-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin: 16px auto;
    padding: 12px 18px;
    min-height: 46px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sims-cheats-feature .sims-cheats-button {
    margin-left: 0;
}

.sims-cheats-button:hover,
.sims-cheats-button:focus-visible {
    background: #315B43;
    color: #FFFFFF;
    text-decoration: none;
}

.sims-cheats-library a:focus-visible,
.sims-cheats-guide a:focus-visible,
.sims-cheats-guide summary:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

/* Sources and review date */

.sims-cheats-library .sims-cheats-sources,
.sims-cheats-guide .sims-cheats-sources {
    background: #F7F2E8;
}

.sims-cheats-library .sims-cheats-review,
.sims-cheats-guide .sims-cheats-review {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center !important;
    margin-top: 25px;
}

/* Responsive layout */

@media (max-width: 900px) {
    .sims-cheats-info-grid,
    .sims-cheats-guide .sims-cheats-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sims-cheats-library .sims-cheats-section,
    .sims-cheats-guide .sims-cheats-section {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-cheats-feature {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .sims-cheats-feature-icon {
        margin: 0 auto;
    }

    .sims-cheats-feature h3 {
        text-align: center;
    }

    .sims-cheats-feature .sims-cheats-button {
        margin-left: auto;
    }

    .sims-cheats-table th,
    .sims-cheats-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .sims-cheats-command {
        padding: 16px 12px;
    }

    .sims-cheats-command code {
        font-size: 0.9rem;
    }
}


/* =========================================
   STAGE 12B.2
   COMPLETE SIMS 4 CHEAT REFERENCE
========================================= */

.sims-all-cheats .sims-cheats-section {
    scroll-margin-top: 25px;
}

.sims-cheat-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.sims-cheat-index a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 12px;
    min-height: 52px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;

    transition: background 0.2s ease;
}

.sims-cheat-index a:hover,
.sims-cheat-index a:focus-visible {
    background: #315B43;
    color: #FFFFFF;
    text-decoration: none;
}

.sims-cheat-index a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

.sims-all-cheats .sims-cheat-index-note {
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

.sims-all-cheats .sims-cheats-table td code {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Tablet */

@media (max-width: 900px) {
    .sims-cheat-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sims-cheat-index {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   STAGE 12C.1
   PACKS & WORLDS RESOURCE LIBRARY
========================================= */

/* Main content sections */

.sims-packs-library .sims-packs-section {
    background: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 8px;
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(24, 61, 48, 0.08);
}

.sims-packs-library .sims-packs-section h2 {
    color: #183D30;
    font-family: Georgia, serif;
    text-align: center;
    margin-bottom: 24px;
}

.sims-packs-library .sims-packs-section h3 {
    color: #183D30;
    font-family: Georgia, serif;
    margin: 0 0 14px;
}

.sims-packs-library .sims-packs-section .section-label {
    text-align: center;
}

.sims-packs-library .sims-packs-section p,
.sims-packs-library .sims-packs-section li {
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

/* Category navigation */

.sims-packs-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.sims-packs-index a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 13px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sims-packs-index a:hover,
.sims-packs-index a:focus-visible {
    background: #315B43;
    color: #FFFFFF;
    text-decoration: none;
}

/* Category cards */

.sims-packs-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.sims-packs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 24px;

    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 7px;
    padding: 28px 24px;
    text-align: center;
}

.sims-packs-card-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin-bottom: 17px;

    background: #183D30;
    color: #D7BA77;
    border: 1px solid #C4A35A;
    border-radius: 50%;

    font-size: 1.5rem;
}

.sims-packs-library .sims-packs-category-label {
    color: #876C35;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center !important;
    margin-bottom: 10px;
}

.sims-packs-card h3 {
    font-size: 1.45rem;
    text-align: center;
}

.sims-packs-library .sims-packs-card p {
    text-align: center;
}

.sims-packs-world-card {
    grid-column: 1 / -1;
}

/* Forest green buttons */

.sims-packs-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    margin: 16px auto;
    padding: 12px 18px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 5px;

    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: background 0.2s ease;
}

.sims-packs-card .sims-packs-button {
    width: 100%;
    max-width: 320px;
    margin-top: auto;
    margin-bottom: 0;
}

.sims-packs-button:hover,
.sims-packs-button:focus-visible {
    background: #315B43;
    color: #FFFFFF;
    text-decoration: none;
}

.sims-packs-library a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

/* Compatibility information */

.sims-packs-label-grid,
.sims-packs-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-packs-label-grid article,
.sims-packs-reference-grid > div {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px;
}

.sims-packs-label-grid h3,
.sims-packs-reference-grid h3 {
    text-align: center;
}

.sims-packs-reference-grid ul {
    display: block;
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 25px;
    margin: 15px 0 0;
}

.sims-packs-reference-grid li {
    display: list-item;
    margin-bottom: 9px;
}

/* Inspiration cards */

.sims-packs-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.sims-packs-inspiration-grid article {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 6px;
    padding: 22px;
}

.sims-packs-inspiration-grid h3 {
    text-align: center;
}

.sims-packs-library .sims-packs-inspiration-grid p {
    text-align: center;
    margin-bottom: 0;
}

/* Official resources */

.sims-packs-library .sims-packs-sources {
    background: #F7F2E8;
}

.sims-packs-library .sims-packs-review {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 25px;
    text-align: center !important;
}

/* Tablet */

@media (max-width: 900px) {
    .sims-packs-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sims-packs-inspiration-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .sims-packs-library .sims-packs-section {
        padding: 24px 18px;
        margin-bottom: 20px;
    }

    .sims-packs-index,
    .sims-packs-category-grid,
    .sims-packs-label-grid,
    .sims-packs-reference-grid {
        grid-template-columns: 1fr;
    }

    .sims-packs-card {
        padding: 24px 18px;
    }

    .sims-packs-world-card {
        grid-column: auto;
    }

    .sims-packs-button {
        width: 100%;
    }
}


/* =========================================
   STAGE 12C.2
   EXPANSION PACK REFERENCE LIBRARY
========================================= */

.sims-expansion-guide .sims-packs-section {
    scroll-margin-top: 24px;
}

/* Collection of expandable entries */

.sims-expansion-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.sims-expansion-entry {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 7px;
    overflow: hidden;
}

.sims-expansion-entry[open] {
    border-color: #A8863E;
}

/* Expandable pack heading */

.sims-expansion-entry summary {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 15px;

    padding: 19px 22px;
    color: #183D30;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
}

.sims-expansion-entry summary::-webkit-details-marker {
    display: none;
}

.sims-expansion-entry summary::after {
    content: "⌄";
    color: #876C35;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.sims-expansion-entry[open] summary::after {
    transform: rotate(180deg);
}

.sims-expansion-entry summary:hover {
    background: #F1E8D8;
}

.sims-expansion-entry summary:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: -4px;
}

/* Pack number, name and year */

.sims-expansion-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;

    background: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 4px;

    font-size: 0.82rem;
    font-weight: bold;
}

.sims-expansion-name {
    min-width: 0;
    color: #183D30;
    font-family: Georgia, serif;
    font-size: 1.18rem;
    font-weight: bold;
    line-height: 1.45;
}

.sims-expansion-year {
    color: #876C35;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Expanded content */

.sims-expansion-body {
    border-top: 1px solid #C4A35A;
    padding: 22px 27px 26px;
    background: #FBF8F1;
}

.sims-expansion-guide .sims-expansion-body p {
    margin: 0 0 16px;
    color: #183D30;
    line-height: 1.8;
    text-align: left;
}

.sims-expansion-body strong {
    color: #183D30;
}

.sims-expansion-guide .sims-expansion-meta {
    padding-bottom: 13px;
    border-bottom: 1px solid #DED0B0;
    font-size: 0.94rem;
}

.sims-expansion-meta span {
    padding: 0 8px;
    color: #A8863E;
}

/* Base Game alternatives */

.sims-expansion-guide .sims-expansion-alternative {
    margin: 22px 0 0;
    padding: 15px 18px;

    background: #EDE7D8;
    border-left: 4px solid #C4A35A;
    border-radius: 4px;

    line-height: 1.7;
}

/* Introduction hint */

.sims-expansion-guide .sims-expansion-hint {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: #536B59;
}

/* Tablet */

@media (max-width: 900px) {

    .sims-expansion-entry summary {
        gap: 10px;
        padding: 17px;
    }

    .sims-expansion-body {
        padding: 20px;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .sims-expansion-entry summary {
        grid-template-columns: 50px minmax(0, 1fr) 18px;
        gap: 8px;
        padding: 15px 12px;
    }

    .sims-expansion-name {
        font-size: 1rem;
    }

    .sims-expansion-year {
        display: none;
    }

    .sims-expansion-body {
        padding: 18px 15px;
    }

    .sims-expansion-meta span {
        display: none;
    }

    .sims-expansion-meta strong {
        display: inline;
    }

    .sims-expansion-guide .sims-expansion-meta {
        line-height: 1.8;
    }
}


/* =========================================
   STAGE 12C.5
   KITS LIBRARY BADGE ADJUSTMENT
========================================= */

.sims-kits-guide .sims-expansion-number {
    font-size: 0.75rem;
    padding: 7px 5px;
}


/* =========================================
   WORLDS LIBRARY
   JUMP TO SPECIFIC WORLD BUTTONS
========================================= */

/* Main expandable directory */

.sims-worlds-guide .sims-worlds-directory {
    max-width: 1040px;
    margin: 24px auto;
    padding: 15px 17px;

    background: #FCF9F2;
    border: 1px solid #C4A35A;
    border-radius: 8px;
}

/* Directory heading */

.sims-worlds-guide .sims-worlds-directory summary {
    color: #183D30;
    font-weight: bold;
    cursor: pointer;
}

/* World links container */

.sims-worlds-guide .sims-worlds-quicklist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 16px;
    padding: 0;
    border-top: none;
}

/* Individual world buttons */

.sims-worlds-guide .sims-worlds-quicklist a {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    background: transparent;
    color: #183D30;

    border: 1px solid #D7C497;
    border-radius: 4px;

    font-size: 0.9rem;
    font-weight: normal;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

/* Hover effect */

.sims-worlds-guide .sims-worlds-quicklist a:hover {
    background: #EDE7D8;
    border-color: #C4A35A;
    text-decoration: none;
}

/* Keyboard accessibility */

.sims-worlds-guide .sims-worlds-quicklist a:focus-visible {
    outline: 3px solid #A8863E;
    outline-offset: 3px;
}

/* Mobile layout */

@media (max-width: 600px) {

    .sims-worlds-guide .sims-worlds-quicklist {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sims-worlds-guide .sims-worlds-quicklist a {
        font-size: 0.85rem;
        padding: 7px 9px;
    }
}


/* ==========================================
   FEATURED BUILDING & DESIGN HUB SHORTCUT
========================================== */

.featured-nav-shortcut {
    display: flex;
    justify-content: center;
    padding: 18px 15px;
}

.featured-nav-shortcut a {
    display: inline-block;
    padding: 12px 26px;
    background-color: #183D30;
    color: #EDE7D8;
    border: 1px solid #C4A35A;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.featured-nav-shortcut a:hover,
.featured-nav-shortcut a:focus-visible {
    background-color: #C4A35A;
    color: #183D30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 61, 48, 0.18);
}

@media (max-width: 480px) {
    .featured-nav-shortcut a {
        padding: 11px 18px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}


/* ==========================================
   RESOURCES - EDITORIAL SIDE CARD FIX
========================================== */

#discover .discover-editorial-side > .inspiration-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 30px !important;
    padding: 25px !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    box-sizing: border-box;
}

/* Photograph */

#discover .discover-editorial-side
.inspiration-card > img.category-image {
    display: block !important;
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: none !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px;
    margin: 0 !important;
    position: static !important;
}

/* Text beside photograph */

#discover .discover-editorial-side
.inspiration-card > .discover-feature-content {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    text-align: left !important;
}

#discover .discover-editorial-side
.inspiration-card h3 {
    margin: 0 0 12px !important;
}

#discover .discover-editorial-side
.inspiration-card p {
    margin: 0 !important;
    line-height: 1.7;
}

/* Mobile layout */

@media (max-width: 700px) {

    #discover .discover-editorial-side
    > .inspiration-card {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    #discover .discover-editorial-side
    .inspiration-card > img.category-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
    }

    #discover .discover-editorial-side
    .inspiration-card > .discover-feature-content {
        width: 100% !important;
        text-align: center !important;
    }

}


/* ==========================================
   MY SIMSPIRATION JOURNEY - STORY CARDS
========================================== */

#journey .journey-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 45px auto 35px;
    max-width: 1200px;
}

#journey .journey-story-card {
    background: #F7F2E8;
    border: 1px solid #C4A35A;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(24, 61, 48, 0.08);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

#journey .journey-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(24, 61, 48, 0.15);
}

/* Card photographs */

#journey .journey-story-image {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

/* Card content */

#journey .journey-story-content {
    padding: 28px 25px 34px;
    text-align: center;
}

#journey .journey-chapter-label {
    display: block;
    color: #927236;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

#journey .journey-story-content h3 {
    color: #183D30;
    font-family: Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 18px;
}

#journey .journey-story-content p {
    color: #445449;
    line-height: 1.8;
    margin: 0;
}

/* Tablet */

@media (max-width: 950px) {
    #journey .journey-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 650px) {
    #journey .journey-story-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #journey .journey-story-image {
        height: 230px;
    }

    #journey .journey-story-content {
        padding: 24px 22px 30px;
    }
}


/* ==========================================
   ORIGINAL CHALLENGES - LIST ALIGNMENT FIX
========================================== */

/* Features to Explore - balanced two-column list */

.oc-app .oc-panel > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
    max-width: 820px;
    margin: 20px auto;
    padding-left: 25px;
    text-align: left;
    list-style-position: outside;
}

.oc-app .oc-panel > ul li {
    text-align: left;
    padding-left: 5px;
}

/* Challenge Archives - properly aligned bullet lists */

.oc-app .oc-archive-card .oc-archive-content ul {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 12px auto 18px;
    padding-left: 25px;
    text-align: left;
    list-style-position: outside;
}

.oc-app .oc-archive-card .oc-archive-content li {
    text-align: left;
    padding-left: 5px;
    margin-bottom: 5px;
}

/* Smaller screens */

@media (max-width: 700px) {

    .oc-app .oc-panel > ul {
        grid-template-columns: 1fr;
        max-width: 440px;
        gap: 8px;
    }

}

/* ============================================
   WANDERING WHIMS - BREADCRUMBS
   Add this block ONCE to the bottom of style.css.
============================================ */
nav.ss-breadcrumbs {
    box-sizing: border-box;
    display: block;
    width: min(100% - 36px, 1120px);
    margin: 2px auto 25px;
    padding: 9px 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: left;
    font-family: Georgia, serif;
}
nav.ss-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
nav.ss-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: .85rem;
    line-height: 1.55;
}
nav.ss-breadcrumbs li + li::before {
    content: '›';
    color: #a78849;
    font-size: 1.15rem;
}
nav.ss-breadcrumbs a {
    color: #315b43;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
nav.ss-breadcrumbs a:hover,
nav.ss-breadcrumbs a:focus-visible {
    color: #85631f;
    border-bottom-color: currentColor;
}
nav.ss-breadcrumbs [aria-current='page'] {
    color: #6b5632;
    font-weight: bold;
}
@media (max-width: 600px) {
    nav.ss-breadcrumbs { width: calc(100% - 28px); margin-bottom: 18px; }
    nav.ss-breadcrumbs li { font-size: .78rem; }
}

/* ==========================================
   CHALLENGE DISCOVERY LIBRARY - CARD ALIGNMENT
========================================== */

#challenge-discovery-library .cd-card,
.cdl-card,
.challenge-discovery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Main card body */
#challenge-discovery-library .cd-card-body,
.cdl-card-body,
.challenge-discovery-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 1.25rem 1.5rem;
}

/* Keep titles/intros centered */
#challenge-discovery-library .cd-card h3,
#challenge-discovery-library .cd-card > p,
.cdl-card h3,
.cdl-card > p,
.challenge-discovery-card h3,
.challenge-discovery-card > p {
    text-align: center;
}

/* Left-align the steps/details area */
#challenge-discovery-library .cd-card-details,
#challenge-discovery-library .cd-card-details ol,
#challenge-discovery-library .cd-card-details ul,
.cdl-card-details,
.cdl-card-details ol,
.cdl-card-details ul,
.challenge-discovery-card-details,
.challenge-discovery-card-details ol,
.challenge-discovery-card-details ul {
    text-align: left;
    margin-left: 0;
    padding-left: 1.4rem;
}

/* Tighter, cleaner list spacing */
#challenge-discovery-library .cd-card-details li,
.cdl-card-details li,
.challenge-discovery-card-details li {
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

/* Optional packs text */
#challenge-discovery-library .cd-card-details .optional-packs,
.cdl-card-details .optional-packs,
.challenge-discovery-card-details .optional-packs {
    text-align: left;
    margin-top: 0.9rem;
    line-height: 1.6;
}

/* Push button area to bottom */
#challenge-discovery-library .cd-card-actions,
.cdl-card-actions,
.challenge-discovery-card-actions {
    margin-top: auto;
    padding-top: 1.1rem;
}

/* Make buttons fill nicely and align consistently */
#challenge-discovery-library .cd-card-actions .ss-card-button,
#challenge-discovery-library .cd-card-actions button,
.cdl-card-actions .ss-card-button,
.cdl-card-actions button,
.challenge-discovery-card-actions .ss-card-button,
.challenge-discovery-card-actions button {
    width: 100%;
    max-width: 100%;
}

/* ============================================================
   PHASE 2C — SMALL SCREEN & KEYBOARD ACCESSIBILITY
   Tested with the current Simspiration Station site structure.
   Keep the heritage palette; improve text/target contrast and
   focus navigation without rewriting existing resource tools.
============================================================ */

/* On light cream/linen surfaces, small antique-gold text needs
   a darker bronze tone. Decorative borders retain their gold. */
.section-label,
.hero-label,
.hero-motto,
.beginner-guide-edition,
#journey .journey-chapter-label {
    color: #79571F;
}

/* Keyboard focus is visible on light AND dark surfaces.
   :where() preserves higher-specificity existing focus effects. */
:where(a, button, input, select, textarea, summary, [role="button"]):focus-visible {
    outline: 3px solid #183D30;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #FFF8E8;
}

/* Shared top navigation: comfortable touch targets, existing layout. */
.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 6px;
}
.featured-nav-shortcut a { min-height: 44px; }

/* Appears only when reached by Tab; added by script.js.
   Also applies to the standalone Creator Spotlights page. */
.ss-skip-link {
    position: fixed;
    z-index: 10050;
    top: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
    padding: 12px 18px;
    border: 2px solid #C4A35A;
    border-radius: 9px;
    background: #183D30;
    color: #FFF8E8 !important;
    font: 700 15px/1.4 Georgia, serif;
    text-decoration: none;
    transform: translateY(-180%);
    opacity: 0;
    pointer-events: none;
}
.ss-skip-link:focus,
.ss-skip-link:focus-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    outline: 3px solid #FFF8E8;
    outline-offset: 2px;
}

/* Restrain media without overriding intentional card image crops. */
img, video { max-width: 100%; }
pre { max-width: 100%; overflow-x: auto; }

@media (max-width: 600px) {
    .main-nav {
        column-gap: 12px;
        row-gap: 6px;
        padding: 11px 9px;
    }
    .main-nav a {
        min-height: 40px;
        padding: 8px 5px;
        font-size: 12px;
        letter-spacing: 1.25px;
    }
    .featured-nav-shortcut { padding: 13px 10px; }
    .featured-nav-shortcut a {
        max-width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .78rem;
        letter-spacing: .07em;
    }
}

/* Narrow-phone finishing touches (the deferred 320px pass). */
@media (max-width: 380px) {
    header { padding: 44px 14px; }
    header h1 { font-size: 1.75rem; line-height: 1.24; }
    header p { font-size: 1rem; line-height: 1.55; }
    main { margin: 27px 13px; padding: 30px 17px; }
    .hero {
        margin: 25px 13px;
        padding: 45px 18px;
        outline-offset: 3px;
    }
    .hero-label, .hero-motto { letter-spacing: .17em; }
    .content-section { margin: 38px auto; padding: 37px 17px; }
    .back-to-top {
        right: 10px;
        bottom: 10px;
        padding: 9px 12px;
        font-size: 12px;
        letter-spacing: .3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    :where(.inspiration-card, .hero-button, .back-to-top, .featured-nav-shortcut a, .ss-skip-link) {
        transition: none !important;
    }
}


/* ============================================================
   Phase 2L — Accessible, clickable Simspiration site logo
   Applies only after the shared header logo has been installed.
   ============================================================ */
header.ss-brand-header {
  padding: 22px 18px 24px !important;
  background-color: #183D30;
  border-bottom: 5px solid #C4A35A;
}
header.ss-brand-header .ss-brand-link,
header.ss-brand-header .ss-brand-link:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 8px;
  color: #FFF6DF !important;
  text-decoration: none !important;
  border-radius: 14px;
}
header.ss-brand-header .ss-brand-link:focus-visible {
  outline: 3px solid #F6D78D !important;
  outline-offset: 6px;
}
header.ss-brand-header .ss-brand-link:hover .ss-brand-words h1 {
  color: #FFE5A8 !important;
}
header.ss-brand-header .ss-brand-emblem {
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 108px;
  width:108px;
  min-width:108px;
  height:138px;
  background: radial-gradient(ellipse at center, rgba(246,239,216,.26) 0%, rgba(246,239,216,.12) 40%, transparent 73%);
}
header.ss-brand-header .ss-brand-image {
  display:block;
  width:108px;
  height:138px;
  object-fit:contain;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.21));
}
header.ss-brand-header .ss-brand-words {
  display:block;
  text-align:left;
  min-width:0;
}
header.ss-brand-header .ss-brand-words h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem) !important;
  line-height: 1.16;
  letter-spacing: .01em;
  color: #E9C981 !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  text-shadow: 0 2px 2px rgba(0,0,0,.13);
}
header.ss-brand-header .ss-brand-words p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(.85rem,1.65vw,1.1rem) !important;
  font-style: italic;
  color: #F1E8D6 !important;
  line-height: 1.42;
  margin: 0 !important;
}
header.ss-brand-header .plumbob-divider,
header.ss-brand-header .gem { display:none !important; }
@media (max-width: 500px) {
  header.ss-brand-header { padding: 18px 8px 18px !important; }
  header.ss-brand-header .ss-brand-link { gap: 9px; padding: 0 2px; }
  header.ss-brand-header .ss-brand-emblem {
    flex-basis: 75px; width:75px; min-width:75px; height:96px;
  }
  header.ss-brand-header .ss-brand-image { width:75px; height:96px; }
  header.ss-brand-header .ss-brand-words h1 {
    font-size: clamp(1.27rem, 6.1vw, 1.8rem) !important;
    margin-bottom: 4px !important;
  }
  header.ss-brand-header .ss-brand-words p {font-size:.81rem !important;}
}
@media (max-width: 350px) {
  header.ss-brand-header .ss-brand-emblem {flex-basis:66px;width:66px;min-width:66px;height:87px;}
  header.ss-brand-header .ss-brand-image {width:66px;height:87px;}
  header.ss-brand-header .ss-brand-words h1 {font-size:1.23rem !important;}
  header.ss-brand-header .ss-brand-words p {font-size:.74rem !important;}
}


/* ============================================================
   PHASE 2M — UNIFIED SITE FOOTER
   Scoped to the footer only. Retains the heritage green/gold/linen
   palette, and keeps the existing header and page styles untouched.
============================================================ */
footer.ss-unified-footer {
  box-sizing: border-box;
  width: 100%;
  background: #183D30 !important;
  color: #EDE7D8 !important;
  border-top: 3px solid #C4A35A;
  padding: clamp(32px, 4vw, 54px) 20px 26px !important;
  text-align: center;
  letter-spacing: normal !important;
  font: 400 14px/1.6 Georgia, 'Times New Roman', serif !important;
}
footer.ss-unified-footer *,
footer.ss-unified-footer *::before,
footer.ss-unified-footer *::after { box-sizing: border-box; }
footer.ss-unified-footer .ss-footer-inner {
  max-width: 1050px;
  margin: 0 auto;
}
footer.ss-unified-footer .ss-footer-brand {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(196,163,90,.55);
}
footer.ss-unified-footer .ss-footer-brand-name {
  color: #F7EDDA !important;
  margin: 0 0 8px !important;
  font: 500 clamp(23px, 3vw, 30px)/1.2 Georgia, 'Times New Roman', serif !important;
  letter-spacing: .02em !important;
}
footer.ss-unified-footer .ss-footer-motto {
  margin: 0 0 6px !important;
  color: #E8CB8D !important;
  letter-spacing: .18em !important;
  font: 700 12px/1.7 Arial, sans-serif !important;
}
footer.ss-unified-footer .ss-footer-tagline {
  margin: 0 !important;
  color: #F0E5D1 !important;
  font: italic 15px/1.5 Georgia, 'Times New Roman', serif !important;
  letter-spacing: .01em !important;
}
footer.ss-unified-footer .ss-footer-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 34px;
  max-width: 940px;
  padding: 28px 0 30px;
  margin: 0 auto;
  text-align: left;
}
footer.ss-unified-footer .ss-footer-group-title {
  color: #E8CB8D !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font: 700 16px/1.45 Georgia, 'Times New Roman', serif !important;
  letter-spacing: .04em !important;
}
footer.ss-unified-footer .ss-footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
footer.ss-unified-footer .ss-footer-link-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
footer.ss-unified-footer .ss-footer-link,
footer.ss-unified-footer .ss-footer-link:visited {
  display: inline-block;
  padding: 5px 1px;
  min-height: 30px;
  color: #F2E9D8 !important;
  background: transparent !important;
  text-decoration: none !important;
  font: 400 14px/1.55 Arial, sans-serif !important;
  letter-spacing: .005em !important;
  overflow-wrap: anywhere;
}
footer.ss-unified-footer .ss-footer-link:hover,
footer.ss-unified-footer .ss-footer-link:focus-visible {
  color: #FFE1A0 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
footer.ss-unified-footer .ss-footer-link:focus-visible {
  outline: 2px solid #F5D48A !important;
  outline-offset: 3px;
  border-radius: 2px;
}
footer.ss-unified-footer .ss-footer-link[aria-current="page"] {
  color: #FFE1A0 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
footer.ss-unified-footer .ss-footer-legal {
  border-top: 1px solid rgba(196,163,90,.55);
  padding-top: 19px;
  color: #EDE7D8;
}
footer.ss-unified-footer .ss-footer-copyright {
  margin: 0 0 5px !important;
  color: #F2E9D8 !important;
  font: 400 13px/1.5 Arial, sans-serif !important;
  letter-spacing: .02em !important;
}
footer.ss-unified-footer .ss-footer-disclaimer {
  margin: 0 auto !important;
  max-width: 750px;
  color: #EDE7D8 !important;
  font: 400 12px/1.65 Arial, sans-serif !important;
  letter-spacing: .01em !important;
}
@media (max-width: 680px) {
  footer.ss-unified-footer .ss-footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 23px;
  }
  footer.ss-unified-footer .ss-footer-navigation .ss-footer-group:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 430px) {
  footer.ss-unified-footer { padding: 31px 18px 22px !important; }
  footer.ss-unified-footer .ss-footer-navigation {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 23px;
  }
  footer.ss-unified-footer .ss-footer-navigation .ss-footer-group:last-child { grid-column: auto; }
  footer.ss-unified-footer .ss-footer-group { text-align: center; }
  footer.ss-unified-footer .ss-footer-brand-name { font-size: 23px !important; }
  footer.ss-unified-footer .ss-footer-motto { font-size: 11px !important; letter-spacing: .12em !important; }
}


/* Screenshot illustration galleries — beginner guide integration (Nov 2026) */
.ss-guide-shots, .ss-guide-shots * , .ss-guide-visual-path, .ss-guide-visual-path * { box-sizing:border-box; }
.ss-guide-shots {
 display:grid;
 grid-template-columns:repeat(auto-fit, minmax(min(100%, 295px), 1fr));
 gap:20px; width:100%; margin:23px auto 28px;
 align-items:stretch;
}
.ss-guide-shot {
 margin:0; min-width:0; overflow:hidden;
 border:1px solid rgba(196,163,90,.6); border-radius:14px;
 background:#fffdf8; box-shadow:0 6px 20px rgba(24,61,48,.07);
 text-align:left;
}
.ss-guide-shot-link {
 display:block; padding:11px;
 background:#f2ecdf; border-bottom:1px solid rgba(196,163,90,.35);
}
.ss-guide-shot-link img {
 display:block; width:100%; height:auto; max-height:540px;
 object-fit:contain; object-position:center; border-radius:8px;
 background:#f8f5ee;
}
.ss-guide-shot figcaption {display:grid;gap:7px;padding:13px 16px 16px;color:#183d30;line-height:1.5;}
.ss-guide-shot figcaption strong {font-size:1.01rem; font-weight:700;}
.ss-guide-shot figcaption span {font-size:.93rem;}
.ss-guide-shot figcaption small {color:#5e6457; font-size:.81rem; line-height:1.5;}
.ss-guide-full-link {font-family:Georgia,serif;color:#183d30;text-underline-offset:3px;width:max-content;max-width:100%;font-size:.86rem;font-weight:700;}
.ss-guide-shot-link:focus-visible,.ss-guide-full-link:focus-visible,.ss-guide-path-card:focus-visible {outline:3px solid #c4a35a;outline-offset:3px;}
.ss-guide-visual-path {border:1px solid rgba(196,163,90,.5);border-radius:16px; padding:clamp(18px,3vw,30px);margin:26px 0 30px;background:#fcf8ef;text-align:center;}
.ss-guide-visual-path h2 {color:#183d30;margin:.1em 0 .45em;}
.ss-guide-visual-path > p:not(.section-label){max-width:720px;margin:0 auto 20px;}
.ss-guide-path-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.ss-guide-path-card {display:flex;flex-direction:column;gap:8px;min-width:0;text-decoration:none;background:#fffdf8;border:1px solid rgba(196,163,90,.55);border-radius:12px;padding:12px;color:#183d30;}
.ss-guide-path-card:hover {border-color:#b4934b; box-shadow:0 4px 15px rgba(24,61,48,.13);}
.ss-guide-path-card img{display:block;width:100%;height:155px;object-fit:contain;object-position:center;background:#f2ecdf;border-radius:8px;}
.ss-guide-path-card strong{font:700 1rem/1.4 Georgia,serif;}
.ss-guide-path-card span{font-size:.85rem;line-height:1.35;}
@media (max-width:760px){.ss-guide-path-grid {grid-template-columns:minmax(0,1fr);} .ss-guide-path-card img{height:auto;max-height:250px;} .ss-guide-shots {grid-template-columns:minmax(0,1fr);} .ss-guide-shot-link img{max-height:none;}}


/* F7: shared photographic-reference entry cards and CTA buttons.
   These links also occur on Resources, which does not load the interior-gallery stylesheet. */
.ss-f6-entry {
  background:#FAF6ED; border:1px solid #C4A35A; border-radius:12px;
  box-shadow:0 4px 12px rgba(24,61,48,.06);
  padding:1.2rem; margin:1.3rem auto; text-align:center;
  max-width:1000px; color:#183D30;
}
.ss-f6-entry h3 { margin:.1rem 0 .6rem; font-size:clamp(1.2rem,2.5vw,1.6rem); }
.ss-f6-entry p { margin:.4rem auto .9rem; max-width:760px; line-height:1.6; }
.ss-f6-entry .ss-f6-entry-link {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; max-width:100%; padding:.7rem 1rem;
  background:#183D30; color:#FFFAEF!important; border:1px solid #C4A35A;
  border-radius:10px; text-decoration:none!important; font-size:.93rem;
  font-weight:700; line-height:1.4; overflow-wrap:anywhere;
}
.ss-f6-entry .ss-f6-entry-link:hover,
.ss-f6-entry .ss-f6-entry-link:focus-visible { background:#315B43; color:#fff!important; }
.ss-f6-entry:focus-within { outline:2px solid #C4A35A; outline-offset:2px; }

/* F8 — shared finishing details for intentionally custom breadcrumb layouts.
   Keeps their existing placement and trail, with common typography and focus state. */
nav.crumb[aria-label="Breadcrumb"],
nav.csg-breadcrumb[aria-label="Breadcrumb"],
nav.sp-breadcrumb[aria-label="Breadcrumb"]{font-family:Georgia,serif;font-size:.85rem;line-height:1.55;color:#6b5632;max-width:100%;overflow-wrap:break-word}
nav.crumb[aria-label="Breadcrumb"] a,
nav.csg-breadcrumb[aria-label="Breadcrumb"] a,
nav.sp-breadcrumb[aria-label="Breadcrumb"] a{color:#315b43;text-underline-offset:3px}
nav[aria-label="Breadcrumb"] a:focus-visible{outline:2px solid #c4a35a;outline-offset:3px;border-radius:2px}

/* ============================================================
   F9 — NARROW PHONE & ACCESSIBILITY FINISHING
   A restrained 320px pass. Keep full-size layouts unchanged;
   let long text and controls wrap rather than clipping.
   Intentional horizontal photo galleries and tile-based design
   editors are not altered.
============================================================ */
@media (max-width: 380px) {
    /* Recover breathing room on a 320px device without losing
       the cream card border or the original forest/gold palette. */
    main { margin: 22px 8px; padding: 24px 12px; }
    .content-section { margin: 30px auto; padding: 27px 12px; }
    .main-nav { column-gap: 8px; row-gap: 4px; padding: 10px 6px; }
    .main-nav a {
        min-height: 44px;
        padding: 10px 5px;
        font-size: 11px;
        letter-spacing: .65px;
        line-height: 1.25;
    }
    .featured-nav-shortcut a {
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
    nav.ss-breadcrumbs { width: calc(100% - 18px); }
    nav.ss-breadcrumbs ol { column-gap: 5px; row-gap: 4px; }
    nav.ss-breadcrumbs li {
        min-width: 0;
        max-width: 100%;
        font-size: .76rem;
        overflow-wrap: anywhere;
    }
    /* Long tool names, credits and project filenames must remain
       readable rather than making the entire page pan sideways. */
    main :where(h1, h2, h3, h4, p, li, figcaption, a, code) {
        overflow-wrap: anywhere;
    }
    main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, button) {
        max-width: 100%;
        min-width: 0;
    }
    main :where(.inspiration-card, .resource-card, .ss-f3-feature, .ss-f3-text) {
        min-width: 0;
    }
    .back-to-top {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 44px;
        right: 9px;
        bottom: max(9px, env(safe-area-inset-bottom));
    }
}

/* Honor OS reduced-motion preference for the many page-specific
   transitions as well as the shared smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto !important; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
