:root {
    --bs-heading-color: #3a424c;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #faf6f0;
    color: #262d35;
}

a, .btn-link {
    color: #ef7d3c;
}

.btn-primary {
    color: #262d35;
    background-color: #f2954f;
    border-color: #d9723a;
}

/* ---- Yooseum content styles ---- */

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.timeline-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fdece0;
    color: #d9723a;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #f5c9a4;
    border-radius: 1rem;
    padding: 0.2rem 0.65rem;
    cursor: pointer;
}

.filter-chip:hover {
    background: #fbe0cc;
}

.filter-chip span {
    opacity: 0.7;
}

.filter-panel {
    max-width: none;
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-row label {
    flex: 1 1 12rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.event-card {
    position: relative;
    display: flex;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(16, 24, 32, 0.06);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.event-card:hover {
    box-shadow: 0 10px 28px rgba(16, 24, 32, 0.1);
    transform: translateY(-2px);
}

.event-card-new {
    border-left: 4px solid #05c3dd;
    padding-left: calc(1.5rem - 3px);
}

/* .event-card is also used, in its plain horizontal (photo | when | body) form, by
   LocationTimeline.razor and PersonDetail.razor's simpler event lists — .event-card-hero-layout only
   applies here on Home.razor's richer card, so those other pages are unaffected. */
.event-card.event-card-hero-layout {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.event-card.event-card-hero-layout.event-card-new {
    padding-left: 0;
    border-left-width: 4px;
}

.event-card-hero {
    position: relative;
    height: 220px;
    background: #262d35;
}

.event-card-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 32, 0) 45%, rgba(16, 24, 32, 0.78) 100%);
}

.event-card-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.5rem;
    color: #ffffff;
}

.event-card-hero-when {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f1ede4;
}

.event-card-hero-location {
    color: inherit;
    margin-left: 0.5rem;
    text-decoration: underline;
}

.event-card-hero-text h2 {
    margin: 0.15rem 0 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    color: #ffffff;
}

.event-card-hero-layout .event-card-body {
    padding: 1rem 1.5rem 1.25rem;
}

.event-card-skeleton {
    height: 5rem;
    background: linear-gradient(90deg, #ececea 25%, #f5f5f3 37%, #ececea 63%);
    background-size: 400% 100%;
    animation: event-card-skeleton-shimmer 1.4s ease infinite;
}

@keyframes event-card-skeleton-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.event-card-when {
    flex-shrink: 0;
    width: 6rem;
    font-weight: 600;
    color: #ef7d3c;
}

.event-card-location {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b6f74;
}

.event-card-body h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.event-card-visibility {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4b4f54;
}

.event-card-media-strip {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.event-card-media-strip-item-wrap {
    position: relative;
    flex-shrink: 0;
}

.event-card-media-strip-item {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.65rem;
    object-fit: cover;
}

.event-card-media-strip-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(16, 24, 32, 0.25);
    border-radius: 0.65rem;
    pointer-events: none;
}

.event-card-media-strip-play svg {
    width: 1.1rem;
    height: 1.1rem;
}

.event-card-media-strip-more {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: #f1ede4;
    color: #3a424c;
    font-weight: 700;
    font-size: 0.85rem;
}

.event-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.event-card-tag {
    background: #f4f1ea;
    color: #6b6f74;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.2rem 0.55rem;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f1ede4;
}

.contributor-avatars {
    display: flex;
}

.contributor-avatars .avatar {
    margin-right: 0;
    margin-left: -0.5rem;
    border: 2px solid #ffffff;
}

.contributor-avatars .avatar:first-child {
    margin-left: 0;
}

.contributor-avatars-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin-left: -0.5rem;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #f1ede4;
    color: #4b4f54;
    font-size: 0.65rem;
    font-weight: 700;
}

.event-card-comment-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #4b4f54;
    font-weight: 600;
    white-space: nowrap;
}

.event-card-comment-count svg {
    width: 0.9rem;
    height: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #4b4f54;
}

.error-log-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-log-item {
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.error-log-when {
    font-weight: 600;
    color: #ef7d3c;
    margin-bottom: 0.35rem;
}

.error-log-body h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-family: monospace;
}

.error-log-request {
    font-family: monospace;
    font-size: 0.85rem;
    color: #4b4f54;
}

.error-log-body pre {
    white-space: pre-wrap;
    font-size: 0.8rem;
    background: #f5f5f3;
    padding: 0.75rem;
    border-radius: 0.35rem;
    max-height: 20rem;
    overflow-y: auto;
}

.usage-metrics-hint {
    color: #4b4f54;
    max-width: 40rem;
}

.usage-metrics-table-wrap {
    overflow-x: auto;
}

.usage-metrics-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 40rem;
}

.usage-metrics-table th,
.usage-metrics-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #d9d9d6;
    font-variant-numeric: tabular-nums;
}

.usage-metrics-table th {
    font-weight: 600;
    color: #4b4f54;
}

.event-form, .auth-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 32rem;
}

.event-form-card {
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 1.25rem;
    max-width: 48rem;
    box-shadow: 0 2px 10px rgba(16, 24, 32, 0.05);
    overflow: hidden;
    margin-bottom: 1rem;
}

.event-form-section {
    padding: 1.6rem 2rem;
    border-bottom: 1px solid #f1ede4;
}

    .event-form-section:last-child {
        border-bottom: none;
    }

    .event-form-section .event-form {
        max-width: none;
        gap: 1rem;
    }

.event-form-section-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d9723a;
    margin-bottom: 1rem;
}

.event-form-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.6rem;
}

.event-form-tab {
    appearance: none;
    background: none;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    color: #8a8f96;
    cursor: pointer;
}

    .event-form-tab.active {
        background: #f4f1ea;
        color: #262d35;
    }

.event-form-actions-sticky {
    position: sticky;
    bottom: 0;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid #e7e2d8;
    padding: 1rem 0;
    max-width: 48rem;
}

.event-form label, .auth-page label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.event-form input, .event-form select, .event-form textarea,
.auth-page input, .auth-page select {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    background: #ffffff;
}

.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
}

.date-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.date-editor-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.date-editor-label {
    font-weight: 600;
}

.year-input {
    width: 5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.form-error {
    color: #b3261e;
}

.upgrade-prompt {
    background: #fffaf5;
    border: 1px solid #d9d9d6;
    border-left: 4px solid #f2954f;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
}

.upgrade-prompt h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.upgrade-prompt p {
    margin: 0 0 0.75rem;
    color: #565d64;
}

.btn-danger {
    color: #fff;
    background-color: #a4343a;
    border: none;
    border-radius: 0.35rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
}

.btn-secondary {
    color: #262d35;
    background-color: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
}

.btn-primary {
    border: none;
    border-radius: 0.35rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-upgrade {
    background: #fdece0;
    color: #d9723a;
    border: 1px solid #f5c9a4;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.upgrade-page {
    max-width: 48rem;
    margin: 2.5rem auto;
    text-align: center;
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.pricing-card {
    max-width: 22rem;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #d9d9d6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: #ffffff;
}

.pricing-card h2 {
    margin: 0 0 0.5rem;
}

.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #5a6470;
}

.price-original {
    font-size: 1.5rem;
    font-weight: 400;
    color: #9a9a97;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.pricing-badge {
    display: inline-block;
    background: #f2954f;
    color: #262d35;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.pricing-scarcity {
    color: #a4343a;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-savings {
    color: #2c7a4b;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-billing-note {
    margin-top: 0.75rem;
    color: #6b6f75;
    font-size: 0.8rem;
}

.signup-summary {
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
    color: #4b4f54;
    font-size: 0.9rem;
}

.signup-summary li {
    margin-bottom: 0.25rem;
}

.signup-summary-links {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ---- Legal pages & footer ---- */

.legal-page {
    max-width: 42rem;
}

.legal-page h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
}

.legal-draft-notice {
    background: #fdf0e6;
    border-radius: 0.35rem;
    padding: 0.75rem 1rem;
    color: #4b4f54;
    font-style: italic;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #d9d9d6;
    text-align: center;
    color: #5a6470;
    font-size: 0.85rem;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.site-footer-copyright {
    margin: 0;
}

.mention-pill {
    display: inline-block;
    background: #f0ede7;
    font-weight: 600;
    padding: 0.05rem 0.5rem;
    border-radius: 1rem;
}

.mention-pill-unconnected {
    color: #d9723a;
}

.mention-pill-connected {
    color: #0592a8;
}

.mention-textarea-wrap {
    position: relative;
}

.mention-suggestions {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0.25rem 0 0;
    padding: 0.25rem;
    list-style: none;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
    max-height: 12rem;
    overflow-y: auto;
}

.mention-suggestions li button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0.25rem;
    padding: 0.4rem 0.6rem;
    font: inherit;
    font-weight: normal;
    cursor: pointer;
}

.mention-suggestions li button:hover,
.mention-suggestions li button:focus,
.mention-suggestions li.highlighted button {
    background: #f5f5f3;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
}

.photo-grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.photo-grid-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.35rem;
    border: 1px solid #d9d9d6;
    cursor: pointer;
}

.photo-grid-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 0.35rem;
    border: 1px solid #d9d9d6;
    background: #000;
}

.photo-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem 1rem;
    border: 2px dashed #d9d9d6;
    border-radius: 0.5rem;
    text-align: center;
    color: #4a5058;
    transition: border-color 0.15s, background-color 0.15s;
}

.photo-dropzone.dragover {
    border-color: #ef7d3c;
    background-color: rgba(239, 125, 60, 0.08);
}

.photo-dropzone-hint {
    font-size: 0.85rem;
    color: #7a828c;
}

.photo-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.pending-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.pending-upload {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pending-upload-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.35rem;
    border: 1px solid #d9d9d6;
    background: #f2f2f0;
    overflow: hidden;
}

.pending-upload-thumb img,
.pending-upload-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pending-upload-status {
    font-size: 0.85rem;
    color: #4a5058;
}

.pending-upload-status.uploading {
    color: #ef7d3c;
}

.pending-upload-status.failed {
    color: #b3261e;
}

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 32, 0.9);
    display: flex;
    align-items: stretch;
    z-index: 2000;
}

.lightbox-image {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.35rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.event-card-photo {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.65rem;
    cursor: pointer;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin-right: 0.35rem;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.avatar-initials {
    background: #ef7d3c;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.avatar-lg {
    width: 6rem;
    height: 6rem;
    font-size: 2rem;
}

/* Several list rows (.tag-item, .people-list li) give their first child `flex-grow: 1` to fill the
   row for a name label — <Avatar> renders as a plain <span> when falling back to initials, so it can
   land on that selector too and get stretched into an oval. Pin it back down wherever it might appear
   first, regardless of source order (three class-level selectors here to outrank that two-class rule). */
.tag-item .avatar:first-child,
.people-list .avatar:first-child,
.link-suggestion-card .avatar:first-child {
    flex-grow: 0;
}

.profile-picture-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-picture-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.profile-picture-upload-label {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.profile-picture-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.avatar-position-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 32, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.avatar-position-modal {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 22rem;
    width: 90vw;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.avatar-position-hint {
    color: #5a6470;
    font-size: 0.9rem;
    margin-top: -0.25rem;
}

.avatar-position-stage {
    position: relative;
    width: 17.5rem;
    height: 17.5rem;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.35rem;
    background: #10181f;
}

.avatar-position-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: grab;
    user-select: none;
}

.avatar-position-mask {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(16, 24, 32, 0.55);
    pointer-events: none;
}

.avatar-position-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.event-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ede7;
    color: #c7c2b8;
    cursor: default;
}

.edit-icon-btn {
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    color: #262d35;
}

.event-card .edit-icon-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.edit-icon-btn:hover {
    background: #f4f5f6;
}

.post-page {
    min-height: calc(100vh - 3.5rem);
}

.post-page-inner {
    max-width: 36rem;
    margin: 0 auto;
}

.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.75rem;
    background: none;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #262d35;
    cursor: pointer;
}

.back-arrow:hover {
    background: #ffffff;
}

.post-card {
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 32, 0.08);
    cursor: default;
}

.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.post-header-text h1 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #4b4f54;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-meta-dot {
    margin: 0 0.35rem;
}

.post-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.post-tag-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef7d3c;
    background: #fdf0e6;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
}

.post-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #101820;
}

.post-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.post-photo video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-photo-nav {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
}

.post-photo-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
}

.post-photo-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.post-photo-dot.active {
    background: #ffffff;
}

.post-body {
    padding: 1rem 1.25rem;
}

.post-private-note {
    color: #4b4f54;
    font-size: 0.9rem;
    font-style: italic;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
}

.lightbox-photo-area {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-comments-panel {
    flex: 0 0 22rem;
    max-width: 90vw;
    height: 100%;
    background: #faf6f0;
    color: #262d35;
    overflow-y: auto;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.35);
}

.lightbox-comments-panel .photo-comments {
    padding: 1.5rem 1.25rem;
}

.photo-comments {
    padding: 0 1.25rem 1.25rem;
}

.photo-comments-loading,
.photo-comments-empty {
    color: #4b4f54;
    font-size: 0.9rem;
}

.photo-comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.photo-comment {
    border-bottom: 1px solid #e5e1da;
    padding-bottom: 0.75rem;
}

.photo-comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.photo-comment-author {
    font-weight: 600;
}

.photo-comment-time {
    font-size: 0.75rem;
    color: #4b4f54;
}

.photo-comment-body {
    margin: 0.25rem 0 0.35rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.photo-comment-actions {
    display: flex;
    gap: 0.75rem;
}

.photo-comment-actions button {
    background: none;
    border: none;
    padding: 0;
    color: #ef7d3c;
    font-size: 0.8rem;
    cursor: pointer;
}

.photo-comment-edit {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    margin-bottom: 0.5rem;
    resize: vertical;
}

.photo-comment-composer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.photo-comment-composer textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    resize: vertical;
}

.photo-comment-composer .btn-primary {
    align-self: flex-end;
}

.people-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.people-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    padding: 0.6rem 1rem;
}

.people-list li :first-child {
    font-weight: 600;
    flex-grow: 1;
}

.tag-add-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.link-suggestion-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-suggestion-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    padding: 0.85rem 1rem;
}

.link-suggestion-card h3 {
    margin: 0;
    font-size: 1rem;
}

.link-suggestion-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.link-suggestion-row select,
.link-suggestion-row input {
    flex: 1 1 12rem;
    min-width: 0;
}

.link-suggestion-row button {
    flex-shrink: 0;
    white-space: nowrap;
}

.tag-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    padding: 0.6rem 1rem;
}

.tag-item span:first-child {
    font-weight: 600;
    flex-grow: 1;
}

.tag-status {
    font-size: 0.85rem;
    color: #4a5058;
}

.tag-status.pending {
    color: #ef7d3c;
}

.tag-status.declined {
    color: #b3261e;
}

.nav-link-button {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #05c3dd;
}

.content {
    padding-top: 1.1rem;
}

.badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 1rem;
    background: #ef7d3c;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
}

.notification-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.35rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.notification-item.unread {
    border-left: 3px solid #ef7d3c;
    font-weight: 600;
}

.notification-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 400;
    color: #4a5058;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---- Landing page (/welcome) ---- */

.landing-hero {
    max-width: 42rem;
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.landing-hero-wordmark {
    display: block;
    width: 100%;
    max-width: 380px;
    height: 130px;
    margin: 0 auto 1.5rem;
    background-color: #05c3dd;
    -webkit-mask: url('wordmark.svg') no-repeat center / contain;
    mask: url('wordmark.svg') no-repeat center / contain;
}

.landing-hero h1 {
    font-family: 'Parisienne', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.landing-hero p {
    font-size: 1.15rem;
    color: #4b4f54;
    margin-bottom: 2rem;
}

.landing-hero-actions .btn-primary {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.landing-feature {
    background: #ffffff;
    border: 1px solid #d9d9d6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.landing-feature h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.landing-feature p {
    color: #4b4f54;
    margin: 0;
}

.landing-closing-cta {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
}

.landing-closing-cta h2 {
    margin-bottom: 1.5rem;
}

.landing-closing-cta .btn-primary {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}
