body {
    --page-bg:
        radial-gradient(circle at top left, rgba(196, 154, 29, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(44, 95, 147, 0.14), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #fffdf8 100%);
    --page-text: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(226, 232, 240, 0.85);
    --soft-panel: #f8fafc;
    --header-bg: rgba(255, 255, 255, 0.82);
    --header-border: rgba(226, 232, 240, 0.7);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --brand-primary: #1f3f66;
    --brand-secondary: #c49a1d;
    --nav-pill-bg: #142c49;
    --nav-pill-text: #ffffff;
    --nav-muted-bg: transparent;
    --nav-muted-text: #334155;
    --nav-muted-hover: #f1f5f9;
    background: var(--page-bg);
    color: var(--page-text);
    min-height: 100vh;
}

.font-display {
    font-family: "Lora", Georgia, serif;
}

.site-shell {
    position: relative;
    overflow-x: clip;
}

.site-header {
    height: 88px;
    padding: 0 7vw;
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(80, 55, 130, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

.site-header > div:first-child {
    height: 88px;
}

.site-brand {
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.brand-art {
    width: 103px;
    height: 103px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    transform: translateY(8px);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #4b2e83;
    line-height: 1.15;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 0.84rem;
    color: #5b6170;
}

.site-mobile-nav {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.leaflet-container {
    min-height: 24rem;
    width: 100%;
    border-radius: 1.5rem;
    z-index: 1;
}

.prose-roadtrip p + p {
    margin-top: 1rem;
}

.media-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-grid img,
.media-grid video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 1rem;
}

.landing-map-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-map-frame {
    width: 100%;
}

.landing-map-image {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    border-radius: 1.25rem;
}

.theme-classic .bg-white {
    background-color: rgba(255, 255, 255, 0.94) !important;
}

.theme-classic .bg-slate-50 {
    background-color: #f8fafc !important;
}

.theme-classic .shadow-soft {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.theme-classroom {
    --page-bg:
        radial-gradient(circle at 10% 12%, rgba(255, 206, 84, 0.38), transparent 0 16%),
        radial-gradient(circle at 88% 18%, rgba(125, 211, 252, 0.32), transparent 0 17%),
        radial-gradient(circle at 18% 82%, rgba(253, 164, 175, 0.28), transparent 0 18%),
        radial-gradient(circle at 82% 76%, rgba(134, 239, 172, 0.26), transparent 0 18%),
        linear-gradient(180deg, #fffdf0 0%, #f2fbff 48%, #fff5fb 100%);
    --shadow-soft: 0 22px 45px rgba(196, 110, 0, 0.12);
    --header-bg: rgba(255, 251, 235, 0.88);
    --header-border: rgba(251, 191, 36, 0.25);
}

.theme-classroom .site-shell::before,
.theme-classroom .site-shell::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.42;
}

.theme-classroom .site-shell::before {
    top: 7rem;
    left: -2rem;
    width: 12rem;
    height: 12rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.55) 0 0.9rem, transparent 1rem),
        radial-gradient(circle at 70% 40%, rgba(96, 165, 250, 0.55) 0 0.65rem, transparent 0.8rem),
        radial-gradient(circle at 52% 72%, rgba(244, 114, 182, 0.5) 0 0.85rem, transparent 1rem);
    transform: rotate(-8deg);
}

.theme-classroom .site-shell::after {
    right: -3rem;
    bottom: 4rem;
    width: 14rem;
    height: 14rem;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(251, 191, 36, 0.14)),
        radial-gradient(circle at 25% 28%, rgba(251, 113, 133, 0.4) 0 0.7rem, transparent 0.8rem),
        radial-gradient(circle at 78% 24%, rgba(59, 130, 246, 0.36) 0 0.7rem, transparent 0.8rem),
        radial-gradient(circle at 56% 76%, rgba(250, 204, 21, 0.34) 0 0.85rem, transparent 0.95rem);
    border-radius: 2.5rem;
    transform: rotate(9deg);
}

.theme-classroom .site-header {
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.12);
}

.theme-classroom .site-brand > div:last-child > div:first-child {
    color: #7c3aed;
    letter-spacing: 0.01em;
}

.theme-classroom .site-brand > div:last-child > div:last-child {
    color: #0f766e;
}

.theme-classroom .shadow-soft {
    box-shadow: var(--shadow-soft);
}

.theme-classroom .bg-white {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 235, 0.94)) !important;
    border: 1px solid rgba(251, 191, 36, 0.18);
}

.theme-classroom .bg-slate-50 {
    background-color: #fff6d8 !important;
}

.theme-classroom .bg-slate-100 {
    background-color: #fef3c7 !important;
}

.theme-classroom .bg-slate-200 {
    background-color: #fde68a !important;
}

.theme-classroom .bg-slate-900 {
    background:
        linear-gradient(135deg, #2563eb 0%, #7c3aed 58%, #ec4899 100%) !important;
}

.theme-classroom .bg-lake-100\/70 {
    background-color: rgba(191, 219, 254, 0.78) !important;
}

.theme-classroom .bg-sunset-50 {
    background-color: #fff1f2 !important;
}

.theme-classroom .bg-sunset-100 {
    background-color: #fff3bf !important;
}

.theme-classroom .from-sunset-100 {
    --tw-gradient-from: #fff0b6 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(255 240 182 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.theme-classroom .to-lake-100 {
    --tw-gradient-to: #d7f1ff var(--tw-gradient-to-position) !important;
}

.theme-classroom .via-white {
    --tw-gradient-stops: var(--tw-gradient-from), #fffefc var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.theme-classroom .bg-pine-500,
.theme-classroom .hover\:bg-pine-700:hover {
    background-color: #7c3aed !important;
}

.theme-classroom .bg-sunset-500,
.theme-classroom .hover\:bg-sunset-700:hover {
    background-color: #f97316 !important;
}

.theme-classroom .bg-lake-700 {
    background-color: #0284c7 !important;
}

.theme-classroom .text-lake-700,
.theme-classroom .text-pine-500 {
    color: #0f766e !important;
}

.theme-classroom .text-sunset-700 {
    color: #c2410c !important;
}

.theme-classroom .rounded-\[2rem\],
.theme-classroom .rounded-\[1\.5rem\],
.theme-classroom .rounded-\[1\.75rem\] {
    position: relative;
}

.theme-classroom .rounded-\[2rem\].bg-white::after,
.theme-classroom .rounded-\[1\.5rem\].bg-white::after,
.theme-classroom .rounded-\[1\.75rem\].bg-white::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px dashed rgba(14, 165, 233, 0.16);
    border-radius: inherit;
    pointer-events: none;
}

.theme-classroom .rounded-full.bg-pine-500,
.theme-classroom .rounded-full.bg-sunset-500,
.theme-classroom .rounded-full.border {
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.theme-classroom .site-nav a.rounded-full.bg-pine-700,
.theme-classroom .site-mobile-nav a.rounded-full.bg-pine-700 {
    background-color: #7c3aed !important;
    color: #ffffff !important;
}

.theme-classroom .site-nav a.rounded-full:not(.bg-pine-700),
.theme-classroom .site-mobile-nav a.rounded-full:not(.bg-pine-700) {
    background-color: rgba(255, 255, 255, 0.78);
}

.theme-classroom .site-mobile-nav {
    background:
        linear-gradient(180deg, rgba(255, 248, 220, 0.95), rgba(255, 255, 255, 0.75));
}

.theme-classroom .leaflet-container {
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.14);
}

.theme-journey {
    --page-bg:
        radial-gradient(circle at 12% 12%, rgba(244, 197, 66, 0.28), transparent 0 18%),
        radial-gradient(circle at 87% 16%, rgba(223, 243, 255, 0.95), transparent 0 20%),
        linear-gradient(180deg, #eef7ff 0%, #fffdf7 38%, #f3eeff 100%);
    --shadow-soft: 0 22px 45px rgba(75, 46, 131, 0.12);
    --header-bg: rgba(255, 253, 247, 0.88);
    --header-border: rgba(75, 46, 131, 0.12);
}

.theme-journey .font-display {
    font-family: "Nunito Sans", "Lora", sans-serif;
    font-weight: 800;
}

.theme-journey .site-shell::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 18rem;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 231, 163, 0.9) 0 2rem, transparent 2.2rem),
        linear-gradient(180deg, rgba(223, 243, 255, 0.78), rgba(223, 243, 255, 0));
}

.theme-journey .site-shell::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: -1rem;
    height: 13rem;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 95% at 12% 100%, #8bcb88 0 42%, transparent 43%),
        radial-gradient(140% 100% at 42% 100%, #d8f2da 0 38%, transparent 39%),
        radial-gradient(125% 95% at 76% 100%, #b8e3bb 0 40%, transparent 41%),
        radial-gradient(150% 100% at 96% 100%, #7fbf7d 0 34%, transparent 35%);
    opacity: 0.7;
}

.theme-journey .site-header {
    box-shadow: 0 10px 28px rgba(47, 27, 87, 0.08);
}

.theme-journey .site-brand > div:last-child > div:first-child {
    color: #4b2e83;
    letter-spacing: 0.01em;
}

.theme-journey .site-brand > div:last-child > div:last-child {
    color: #6d5a93;
}

.theme-journey .shadow-soft {
    box-shadow: var(--shadow-soft);
}

.theme-journey .bg-white {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.96)) !important;
    border: 1px solid rgba(75, 46, 131, 0.1);
}

.theme-journey .bg-slate-50 {
    background-color: #f8f4ff !important;
}

.theme-journey .bg-slate-100 {
    background-color: #f3eeff !important;
}

.theme-journey .bg-slate-200 {
    background-color: #ece3ff !important;
}

.theme-journey .bg-slate-900 {
    background:
        linear-gradient(140deg, #2f1b57 0%, #4b2e83 60%, #6a46b8 100%) !important;
}

.theme-journey .bg-lake-100\/70 {
    background-color: rgba(223, 243, 255, 0.85) !important;
}

.theme-journey .bg-sunset-50 {
    background-color: #fff8dd !important;
}

.theme-journey .bg-sunset-100 {
    background-color: #ffe7a3 !important;
}

.theme-journey .from-sunset-100 {
    --tw-gradient-from: #ffe7a3 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(255 231 163 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.theme-journey .to-lake-100 {
    --tw-gradient-to: #dff3ff var(--tw-gradient-to-position) !important;
}

.theme-journey .via-white {
    --tw-gradient-stops: var(--tw-gradient-from), #fffef9 var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

.theme-journey .bg-pine-500,
.theme-journey .hover\:bg-pine-700:hover {
    background-color: #4b2e83 !important;
}

.theme-journey .bg-sunset-500,
.theme-journey .hover\:bg-sunset-700:hover {
    background-color: #f4c542 !important;
    color: #2f1b57 !important;
}

.theme-journey .bg-lake-700 {
    background-color: #4b2e83 !important;
}

.theme-journey .text-lake-700,
.theme-journey .text-pine-500 {
    color: #4b2e83 !important;
}

.theme-journey .text-sunset-700 {
    color: #9a6d00 !important;
}

.theme-journey .text-slate-900 {
    color: #2c2c34 !important;
}

.theme-journey .text-slate-700 {
    color: #4b5563 !important;
}

.theme-journey .text-slate-600 {
    color: #6b7280 !important;
}

.theme-journey .rounded-\[2rem\].bg-white,
.theme-journey .rounded-\[1\.5rem\].bg-white,
.theme-journey .rounded-\[1\.75rem\].bg-white {
    position: relative;
    overflow: hidden;
}

.theme-journey .rounded-\[2rem\].bg-white::before,
.theme-journey .rounded-\[1\.5rem\].bg-white::before,
.theme-journey .rounded-\[1\.75rem\].bg-white::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(90deg, #4b2e83 0%, #f4c542 45%, #8bcb88 100%);
    opacity: 0.9;
}

.theme-journey .rounded-\[2rem\].bg-white::after,
.theme-journey .rounded-\[1\.5rem\].bg-white::after,
.theme-journey .rounded-\[1\.75rem\].bg-white::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 3.6rem;
    height: 3.6rem;
    background:
        radial-gradient(circle at 32% 35%, rgba(244, 197, 66, 0.35) 0 0.55rem, transparent 0.58rem),
        radial-gradient(circle at 62% 58%, rgba(75, 46, 131, 0.18) 0 0.38rem, transparent 0.42rem),
        linear-gradient(180deg, rgba(223, 243, 255, 0.34), rgba(243, 238, 255, 0.12));
    border-radius: 999px;
    opacity: 0.7;
    pointer-events: none;
}

.theme-journey .site-nav a.rounded-full.bg-pine-700,
.theme-journey .site-mobile-nav a.rounded-full.bg-pine-700 {
    background-color: #4b2e83 !important;
    color: #ffffff !important;
}

.theme-journey .site-nav a.rounded-full:not(.bg-pine-700),
.theme-journey .site-mobile-nav a.rounded-full:not(.bg-pine-700) {
    background-color: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(75, 46, 131, 0.08);
}

.theme-journey .site-mobile-nav {
    background:
        linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(243, 238, 255, 0.74));
}

.theme-journey .leaflet-container {
    border: 4px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 26px rgba(75, 46, 131, 0.12);
}

.theme-journey .h-4.w-4.rounded-full.bg-sunset-500 {
    background-color: #4b2e83 !important;
    box-shadow: 0 0 0 6px rgba(244, 197, 66, 0.26);
}

.theme-journey .border-amber-200 {
    border-color: rgba(244, 197, 66, 0.4) !important;
}

.theme-journey .bg-amber-50 {
    background-color: #fff9dd !important;
}

.theme-journey .text-amber-900 {
    color: #6c5200 !important;
}

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

@media (max-width: 767px) {
    .site-header {
        height: 76px;
        padding: 0 20px;
        gap: 14px;
    }

    .site-header > div:first-child {
        height: 76px;
    }

    .brand {
        gap: 12px;
    }

    .brand-art {
        width: 77px;
        height: 77px;
        transform: translateY(6px);
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .site-nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .leaflet-container {
        min-height: 18rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-grid img,
    .media-grid video {
        height: 200px;
    }

    .landing-map-image {
        max-width: 100%;
    }

    .theme-classroom .site-shell::before,
    .theme-classroom .site-shell::after {
        opacity: 0.24;
        transform: scale(0.75);
    }

    .theme-journey .site-shell::before {
        height: 14rem;
    }

    .theme-journey .site-shell::after {
        height: 9rem;
        opacity: 0.55;
    }
}

@media (max-width: 479px) {
    .leaflet-container {
        min-height: 16rem;
    }

    .site-mobile-nav nav {
        flex-direction: column;
    }

    .site-mobile-nav nav a {
        width: 100%;
    }
}
