/* Brand system */
:root {
    --brand-ink: #122023;
    --brand-primary: #e76f51;
    --brand-primary-dark: #cb5a3e;
    --brand-secondary: #0f766e;
    --brand-accent: #f3c96b;
    --brand-surface: rgba(255, 249, 243, 0.8);
    --brand-surface-strong: #fffdf9;
    --brand-border: rgba(18, 32, 35, 0.08);
    --brand-muted: #5d6c70;
    --brand-bg: #f8efe6;
    --brand-bg-deep: #f1e6dc;
    --brand-shadow: 0 24px 60px rgba(18, 32, 35, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--brand-ink);
    background:
        radial-gradient(circle at top left, rgba(243, 201, 107, 0.33), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 24%),
        linear-gradient(180deg, #fffaf4 0%, var(--brand-bg) 52%, #fffaf4 100%);
    min-height: 100vh;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.section-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

img {
    max-width: 100%;
    height: auto;
}

p,
a,
button,
input,
textarea,
label,
small,
span {
    font-family: 'Inter', system-ui, sans-serif;
}

.page-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.page-glow-one {
    width: 280px;
    height: 280px;
    background: rgba(231, 111, 81, 0.22);
    top: 4rem;
    left: -4rem;
}

.page-glow-two {
    width: 360px;
    height: 360px;
    background: rgba(15, 118, 110, 0.15);
    right: -5rem;
    top: 18rem;
}

.site-header,
.site-footer,
.hero-section,
.section-shell {
    position: relative;
    z-index: 1;
}

.site-header {
    padding-top: 1.25rem;
}

.navbar {
    background: rgba(255, 253, 249, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    box-shadow: 0 16px 40px rgba(18, 32, 35, 0.08);
    backdrop-filter: blur(18px);
}

.brand-mark {
    color: var(--brand-ink);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
}

.brand-mark span {
    color: var(--brand-primary);
}

.nav-link {
    color: var(--brand-ink);
    font-weight: 600;
    opacity: 0.88;
}

.nav-link:hover,
.nav-link:focus,
.footer-links a:hover,
.footer-links a:focus,
.text-link:hover,
.text-link:focus {
    color: var(--brand-secondary);
}

.calendar-toggler {
    border: 0;
    box-shadow: none !important;
}

.message-stack {
    margin-top: 1rem;
}

.hero-section {
    padding: 2rem 0 1rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(18, 32, 35, 0.95), rgba(18, 32, 35, 0.82));
    color: #fff8f1;
    border-radius: calc(var(--radius-lg) + 6px);
    padding: clamp(2rem, 4vw, 4rem);
    min-height: 620px;
    box-shadow: var(--brand-shadow);
    display: grid;
    gap: 2rem;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: auto auto -80px -60px;
    width: 220px;
    height: 220px;
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(231, 111, 81, 0.35), rgba(243, 201, 107, 0.12));
    transform: rotate(18deg);
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 100px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 0.97;
    margin: 1.2rem 0 1.2rem;
    max-width: 10ch;
}

.hero-lead,
.section-copy,
.footer-copy,
.event-summary,
.detail-body p,
.form-help {
    color: rgba(18, 32, 35, 0.74);
    line-height: 1.7;
}

.hero-lead {
    color: rgba(255, 248, 241, 0.82);
    font-size: 1.08rem;
    max-width: 50ch;
}

.hero-actions,
.compact-actions,
.dashboard-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.7rem;
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.25rem;
    border-width: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(18, 32, 35, 0.12);
}

.btn-primary-brand {
    background: linear-gradient(135deg, var(--brand-primary), #f08f5b);
    color: #fff;
    border-color: transparent;
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    color: #fff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.68);
    color: var(--brand-ink);
    border-color: rgba(18, 32, 35, 0.08);
    backdrop-filter: blur(14px);
}

.hero-card .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff8f1;
    border-color: rgba(255, 255, 255, 0.18);
}

.card-surface,
.calendar-card,
.embed-shell-card,
.detail-card,
.dashboard-banner,
.table-card,
.form-card,
.empty-state,
.event-card {
    background: rgba(255, 253, 249, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--brand-shadow);
    backdrop-filter: blur(18px);
}

.hero-stats {
    margin-top: 2rem;
}

.stat-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card strong,
.mini-event-list strong,
.event-card h2,
.event-card h3,
.detail-card strong {
    font-weight: 800;
}

.stat-card span,
.mini-event-list small,
.event-meta,
.toolbar-label,
.modal-label,
.footer-title,
.status-pill,
.form-label {
    color: rgba(255, 248, 241, 0.72);
}

.hero-panel {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-widget {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 1.6rem;
    background: rgba(255, 253, 249, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.mini-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 248, 241, 0.65);
    margin-bottom: 1rem;
}

.mini-event-list {
    display: grid;
    gap: 0.9rem;
}

.mini-event-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
}

.mini-event-list span {
    min-width: 52px;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff8f1;
    font-weight: 700;
}

.empty-note {
    color: rgba(255, 248, 241, 0.76);
    line-height: 1.6;
}

.floating-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.85;
}

.orb-one {
    width: 118px;
    height: 118px;
    background: linear-gradient(145deg, rgba(243, 201, 107, 0.95), rgba(231, 111, 81, 0.6));
    right: 12px;
    top: 12px;
}

.orb-two {
    width: 78px;
    height: 78px;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.9), rgba(255, 255, 255, 0.2));
    left: -18px;
    bottom: 44px;
}

.section-shell,
.embed-section {
    padding: 1.5rem 0 3.2rem;
}

.page-top-space {
    padding-top: 2rem;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(243, 201, 107, 0.06));
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3.1rem);
    color: var(--brand-ink);
    margin-top: 0.9rem;
    margin-bottom: 0.7rem;
}

.section-copy,
.footer-copy,
.event-summary,
.form-help,
.field-error,
.text-link {
    color: var(--brand-muted);
}

.calendar-card {
    padding: 1.35rem;
}

.calendar-toolbar {
    margin-bottom: 1.2rem;
}

.calendar-title {
    font-size: 1.9rem;
    color: var(--brand-ink);
}

.toolbar-label,
.modal-label,
.event-meta,
.footer-title,
.form-label,
.detail-meta-grid span {
    color: var(--brand-muted);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.85rem;
}

.calendar-weekdays {
    margin-bottom: 0.85rem;
}

.calendar-weekdays span {
    text-align: center;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brand-muted);
}

.calendar-day {
    min-height: 124px;
    border-radius: 22px;
    border: 1px solid rgba(18, 32, 35, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 241, 233, 0.9));
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    gap: 0.75rem;
    color: var(--brand-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.calendar-day:hover,
.calendar-day:focus {
    border-color: rgba(231, 111, 81, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 244, 235, 1));
    outline: none;
}

.calendar-day-number {
    font-family: 'Manrope', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.calendar-day.is-muted {
    opacity: 0.5;
}

.calendar-day.is-today {
    border-color: rgba(15, 118, 110, 0.3);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.calendar-day.has-events {
    background: linear-gradient(180deg, rgba(255, 245, 238, 1), rgba(255, 251, 244, 1));
}

.calendar-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(231, 111, 81, 0.12);
    color: var(--brand-primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.calendar-badge-empty {
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-secondary);
}

.event-modal {
    border: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 239, 230, 0.96));
    box-shadow: 0 40px 90px rgba(18, 32, 35, 0.2);
}

.event-modal .modal-body {
    padding-bottom: 1.6rem;
}

.modal-event-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(18, 32, 35, 0.06);
    border-radius: 22px;
    padding: 1.15rem;
    margin-bottom: 0.9rem;
}

.modal-event-card:last-child {
    margin-bottom: 0;
}

.modal-event-card h4 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
}

.modal-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--brand-muted);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
}

.embed-section-wide {
    padding: 0.3rem 0 0.85rem;
}

.embed-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-inline: clamp(0.35rem, 1vw, 0.85rem);
}

.embed-shell-card {
    padding: clamp(0.6rem, 1vw, 0.95rem);
    margin: 0;
    max-width: none;
}

.embed-section .calendar-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.calendar-embed .calendar-toolbar {
    margin-bottom: 0.7rem;
}

.calendar-embed .calendar-weekdays,
.calendar-embed .calendar-grid {
    gap: 0.5rem;
}

.calendar-embed .calendar-day {
    min-height: 96px;
    padding: 0.7rem;
    gap: 0.45rem;
}

.calendar-embed .calendar-day-number {
    font-size: 1.22rem;
}

.calendar-embed .calendar-badge {
    padding: 0.34rem 0.58rem;
    font-size: 0.78rem;
}

.calendar-embed .calendar-title {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.calendar-embed .toolbar-label {
    font-size: 0.82rem;
    margin-bottom: 0.2rem !important;
}

.event-card,
.detail-card,
.form-card,
.dashboard-banner,
.table-card,
.embed-copy-card,
.code-card,
.empty-state {
    padding: 1.5rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.event-date-chip,
.status-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.event-date-chip {
    background: rgba(243, 201, 107, 0.24);
    color: #8c6423;
}

.status-live {
    background: rgba(15, 118, 110, 0.12);
    color: var(--brand-secondary);
}

.status-draft {
    background: rgba(93, 108, 112, 0.14);
    color: var(--brand-muted);
}

.detail-meta-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 1.5rem 0;
}

.detail-meta-grid strong {
    display: block;
    color: var(--brand-ink);
    margin-top: 0.35rem;
}

.code-card {
    background: linear-gradient(180deg, rgba(18, 32, 35, 0.96), rgba(18, 32, 35, 0.88));
    color: #fff8f1;
}

.code-card-header strong {
    color: #fff8f1;
}

.code-card .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff8f1;
    border-color: rgba(255, 255, 255, 0.12);
}

.code-snippet {
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 1rem;
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff2df;
}

.embed-settings-card {
    padding: 1.5rem;
}

.embed-settings-form .form-label {
    font-weight: 700;
    color: var(--brand-ink);
}

.embed-output-stack {
    display: grid;
    gap: 1rem;
}

.embed-shell-card-compact {
    padding-top: 0.8rem;
}

.dashboard-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.dashboard-table th {
    color: var(--brand-muted);
    font-weight: 700;
}

.dashboard-table td,
.dashboard-table th {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(18, 32, 35, 0.06);
    background: transparent;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="month"],
input[type="number"],
input[type="datetime-local"],
textarea,
.form-control,
.form-select,
.form-check-input {
    border-radius: 16px;
    border-color: rgba(18, 32, 35, 0.12);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.94);
}

.form-control:focus,
.form-check-input:focus,
.btn:focus,
.nav-link:focus,
.text-link:focus {
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.14);
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
}

.card-check {
    background: rgba(243, 201, 107, 0.08);
    border: 1px solid rgba(243, 201, 107, 0.32);
    border-radius: 18px;
    padding: 1rem;
}

.form-check-label {
    margin-left: 0.45rem;
    font-weight: 700;
}

.field-error {
    margin-top: 0.4rem;
    color: #b6412b;
    font-size: 0.92rem;
    font-weight: 600;
}

.text-link {
    text-decoration: none;
    font-weight: 700;
}

.site-footer {
    padding: 0.4rem 0 2rem;
}

.footer-title {
    color: var(--brand-ink);
    font-weight: 800;
}

.footer-links a {
    color: var(--brand-muted);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dashboard-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 0.55rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        border-radius: 28px;
    }

    .hero-copy h1,
    .section-title {
        max-width: none;
    }

    .calendar-weekdays {
        display: none;
    }

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

    .calendar-day {
        min-height: 112px;
    }

    .hero-section,
    .section-shell,
    .embed-section {
        padding-bottom: 2.3rem;
    }

    .embed-container {
        padding-inline: 0.4rem;
    }

    .embed-shell-card {
        margin-top: 0;
        padding: 0.55rem;
    }

    .calendar-embed .calendar-day {
        min-height: 92px;
        padding: 0.62rem;
    }
}
