:root {
    color-scheme: light;
    --bg: #f5f7f4;
    --surface: #ffffff;
    --surface-soft: #eef5f2;
    --ink: #161b1f;
    --muted: #60717b;
    --line: #dce5df;
    --teal: #128f83;
    --teal-dark: #075f58;
    --coral: #e35f4f;
    --gold: #f2b84b;
    --plum: #75518a;
    --sky: #2f87b7;
    --shadow: 0 14px 34px rgba(28, 35, 39, 0.09);
    --shadow-strong: 0 24px 58px rgba(22, 27, 31, 0.16);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fbfdf9 0, var(--bg) 360px),
        var(--bg);
    color: var(--ink);
}

body.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

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

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

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

.site-shell {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 229, 223, 0.92);
}

.topbar-inner,
.section,
.hero-inner,
.content {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(220, 229, 223, 0.92);
    border-radius: 999px;
    background: #f6faf7;
}

.nav-menu a {
    border-radius: 999px;
    padding: 9px 13px;
    color: #47515a;
    font-weight: 800;
    font-size: 0.92rem;
}

.nav-menu a:hover {
    background: #fff;
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(22, 27, 31, 0.11);
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(22, 27, 31, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    border-color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(22, 27, 31, 0.1);
}

.button-primary {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.button-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.button-ghost {
    background: transparent;
}

.hero {
    min-height: 540px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #1d3a3c;
    background-size: cover;
    background-position: center;
    color: #fff;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 24, 29, 0.92), rgba(9, 41, 44, 0.7) 56%, rgba(9, 41, 44, 0.42)),
        linear-gradient(180deg, rgba(9, 41, 44, 0.12), rgba(5, 24, 29, 0.52));
}

.hero-inner {
    position: relative;
    padding: 64px 0 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.55fr);
    gap: 42px;
    align-items: center;
}

.search-strip {
    position: relative;
    z-index: 3;
    padding: 28px 0 30px;
    background:
        linear-gradient(135deg, #e8f5f1 0%, #f8fbf6 58%, #fff4df 100%);
    border-bottom: 1px solid var(--line);
}

.search-strip .section {
    padding: 0;
}

.search-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-card h2 {
    margin: 0;
    font-size: 1.95rem;
    line-height: 1.08;
}

.search-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.search-card .discovery-panel {
    max-width: none;
    margin-top: 0;
    border-color: var(--line);
    background: #f4f8f5;
    box-shadow: none;
}

.top-search-card {
    padding: 26px 28px 28px;
    border: 1px solid rgba(18, 143, 131, 0.16);
    border-top: 4px solid var(--teal);
    box-shadow: 0 18px 48px rgba(25, 49, 52, 0.13);
}

.top-search-card h2 {
    max-width: 860px;
    font-size: 2.35rem;
}

.top-search-card .eyebrow {
    color: var(--coral);
}

.top-search-card .discovery-panel {
    grid-template-columns: minmax(300px, 1.5fr) minmax(170px, 0.8fr) minmax(215px, 0.95fr) minmax(135px, 0.62fr) minmax(150px, auto) 92px;
    gap: 8px;
    padding: 8px;
    background: #f3f8f5;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #f5d08a;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow-dark {
    color: var(--coral);
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0;
    font-size: 3.85rem;
    line-height: 1;
    max-width: 760px;
}

.hero-copy p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-actions,
.inline-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.compact-actions {
    margin-top: 0;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-stats span {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 900;
}

.discovery-panel {
    max-width: 900px;
    margin-top: 28px;
    padding: 8px;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.85fr) minmax(170px, 0.95fr) minmax(120px, 0.7fr) auto auto;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(18, 143, 131, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow-strong);
}

.discovery-panel a,
.discovery-panel label {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
}

.discovery-panel a:hover,
.discovery-panel label:focus-within {
    border-color: rgba(18, 143, 131, 0.28);
    background: #f7fcf9;
}

.discovery-panel span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.discovery-panel strong,
.discovery-panel input,
.discovery-panel select {
    font-size: 1rem;
}

.discovery-panel input,
.discovery-panel select {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 850;
    outline: 0;
    text-overflow: ellipsis;
}

.discovery-panel input::placeholder {
    color: #9aa2a9;
}

.discovery-panel .discovery-submit {
    min-width: 142px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    display: grid;
    place-items: center;
    background: var(--teal);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.top-search-card .discovery-submit {
    min-width: 150px;
    font-size: 1rem;
}

.discovery-panel .discovery-submit:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.search-reset {
    min-width: 92px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--teal-dark);
    font-weight: 900;
}

.search-reset:hover {
    background: #e5f2ef;
}

.hero-feature {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 18px;
    background: rgba(10, 26, 31, 0.7);
    backdrop-filter: blur(12px);
}

.hero-feature h2 {
    margin: 0;
    font-size: 1.35rem;
}

.hero-feature p,
.hero-feature span {
    color: rgba(255, 255, 255, 0.84);
}

.hero-feature img {
    height: 178px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.section {
    padding: 48px 0;
}

.platform-rail {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 0;
}

.platform-rail article {
    min-height: 126px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.platform-rail span {
    color: var(--coral);
    font-weight: 900;
}

.platform-rail strong {
    display: block;
    margin-top: 8px;
    font-size: 1.08rem;
}

.platform-rail p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 2.05rem;
    line-height: 1.08;
}

.section-header-large h2 {
    font-size: 2.75rem;
    line-height: 1.08;
}

.section-header p,
.section-header span {
    margin: 6px 0 0;
    color: var(--muted);
}

.quick-grid,
.calendar-grid,
.event-grid,
.detail-grid,
.showcase-grid {
    display: grid;
    gap: 18px;
}

.quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.event-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.showcase-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
    align-items: stretch;
}

.detail-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    align-items: start;
}

.panel,
.event-card,
.calendar-card,
.adsense-slot,
.auth-panel,
.featured-event,
.spotlight-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 24px;
}

.panel h2,
.panel h3,
.calendar-card h3,
.auth-panel h1 {
    margin-top: 0;
}

.facet-list,
.tag-cloud,
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.facet-list a,
.tag-cloud a,
.alphabet-nav a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 12px;
    background: #fff;
    color: var(--teal-dark);
    font-weight: 850;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.facet-list a:hover,
.tag-cloud a:hover,
.alphabet-nav a:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-1px);
}

.event-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(21, 29, 36, 0.16);
}

.event-image {
    width: 100%;
    height: 204px;
    object-fit: cover;
    background: var(--surface-soft);
}

.featured-event {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.78fr);
    min-height: 430px;
    border: 0;
    box-shadow: var(--shadow-strong);
}

.featured-media {
    min-height: 100%;
    background: var(--surface-soft);
}

.featured-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.featured-body {
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    gap: 14px;
}

.featured-body h3 {
    margin: 0;
    font-size: 2.35rem;
    line-height: 1.03;
}

.featured-body p {
    color: var(--muted);
    line-height: 1.65;
}

.showcase-list {
    display: grid;
    gap: 14px;
}

.spotlight-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    align-items: center;
    min-height: 122px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spotlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(21, 29, 36, 0.14);
}

.spotlight-card img {
    width: 122px;
    height: 122px;
    object-fit: cover;
}

.spotlight-card div {
    padding: 14px;
}

.spotlight-card h3 {
    margin: 5px 0;
    font-size: 1.03rem;
    line-height: 1.25;
}

.spotlight-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.empty-showcase {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.event-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.event-date,
.price {
    color: var(--coral);
    font-weight: 900;
}

.event-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff2d2;
    color: #765100;
    font-size: 0.78rem;
    font-weight: 900;
}

.event-title {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.25;
}

.event-summary,
.muted,
.event-meta,
.info-list span {
    color: var(--muted);
    line-height: 1.55;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.93rem;
}

.event-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.event-actions {
    margin-top: auto;
}

.alphabet-section {
    margin-top: 28px;
}

.alphabet-title {
    color: var(--teal-dark);
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #dff2ee;
}

.calendar-card {
    padding: 18px;
}

.calendar-card ul,
.navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-card a,
.navigation-list a {
    color: var(--teal-dark);
    font-weight: 700;
}

.adsense-slot {
    min-height: 110px;
    padding: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
        repeating-linear-gradient(135deg, #fff, #fff 10px, #edf3ef 10px, #edf3ef 20px);
}

.adsense-slot strong {
    color: var(--ink);
}

.seo-copy {
    line-height: 1.7;
}

.detail-hero {
    min-height: 440px;
}

.content {
    padding: 36px 0 62px;
}

.event-description {
    white-space: pre-line;
    line-height: 1.75;
}

.info-list {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.info-item {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    display: grid;
    gap: 5px;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.app-strip {
    background: #17282d;
    color: #fff;
}

.app-strip .section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-strip p {
    color: rgba(255, 255, 255, 0.8);
}

.auth-panel {
    width: min(100%, 520px);
    padding: 30px;
}

.auth-panel .brand {
    margin-bottom: 20px;
}

.account-links {
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.account-links a {
    color: var(--teal-dark);
    font-weight: 850;
}

.account-links a:hover {
    color: var(--coral);
}

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

.form-field {
    display: grid;
    gap: 7px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    color: var(--ink);
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-help {
    font-size: 0.9rem;
    color: var(--muted);
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.alert-error {
    background: #fff1ee;
    border-color: #f0b4a3;
    color: #8d2f1f;
}

.alert-success {
    background: #eef8f1;
    border-color: #b9dec5;
    color: #245a35;
}

footer {
    padding: 34px 16px;
    text-align: center;
    color: var(--muted);
}

footer a {
    color: var(--teal-dark);
    font-weight: 700;
}

@media (max-width: 900px) {
    .topbar-inner,
    .section,
    .hero-inner,
    .content {
        width: min(760px, calc(100% - 32px));
    }

    h1 {
        font-size: 2.7rem;
    }

    .hero-inner,
    .detail-grid,
    .quick-grid,
    .platform-rail,
    .app-strip .section,
    .showcase-grid,
    .featured-event {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .discovery-panel {
        grid-template-columns: 1fr 1fr;
    }

    .top-search-card .discovery-panel {
        grid-template-columns: 1fr 1fr;
    }

    .discovery-panel .discovery-submit {
        grid-column: 1 / -1;
        min-height: 54px;
    }

    .search-reset {
        min-height: 48px;
    }

    .featured-media img {
        min-height: 300px;
    }

    .hero-feature {
        min-height: auto;
    }

    .app-strip .section {
        display: grid;
    }
}

@media (max-width: 640px) {
    body.auth-body {
        padding: 0;
    }

    .topbar-inner,
    .section,
    .hero-inner,
    .content {
        width: calc(100% - 24px);
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu {
        padding: 4px;
    }

    .nav-menu a {
        padding: 8px 11px;
        font-size: 0.88rem;
    }

    .nav-actions .button,
    .nav-actions button,
    .hero-actions .button,
    .inline-actions .button,
    .event-actions .button,
    .auth-panel .button {
        width: 100%;
    }

    h1 {
        font-size: 2.15rem;
    }

    .hero {
        min-height: 560px;
    }

    .hero-inner {
        padding: 44px 0 36px;
    }

    .discovery-panel {
        grid-template-columns: 1fr;
        padding: 6px;
    }

    .top-search-card {
        padding: 18px 16px;
    }

    .top-search-card h2 {
        font-size: 1.55rem;
    }

    .top-search-card .discovery-panel {
        grid-template-columns: 1fr;
    }

    .discovery-panel a {
        min-height: 62px;
    }

    .discovery-panel label {
        min-height: 68px;
    }

    .platform-rail {
        margin-top: -14px;
    }

    .section {
        padding: 30px 0;
    }

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

    .section-header-large h2,
    .featured-body h3 {
        font-size: 1.8rem;
    }

    .featured-body {
        padding: 22px;
    }

    .spotlight-card {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 96px;
    }

    .spotlight-card img {
        width: 96px;
        height: 96px;
    }

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

    .auth-panel {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }
}
