/* Proscenium v3.0 Styles */

/* ── Typeface: Jost (self-hosted variable font) ── */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/jost-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/jost-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
        U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bs-body-font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Layout ── */
.app-layout {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

.app-main {
    flex: 1;
    padding: 2rem;
}

.app-sidebar {
    width: 30%;
    min-width: 260px;
    max-width: 400px;
    padding: 1rem;
    border-left: 1px solid #dee2e6;
    min-height: 100vh;
}

.sidebar-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85em;
    color: #666;
}

.sidebar-user a {
    color: #888;
    text-decoration: none;
}

/* ── Day view ── */
.page-welcome {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Consistent page headings across all pages: top-level title size (like the
   welcome banner) with a full-width rule under the header row. */
.app-main h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.page-header {
    border-bottom: 1px solid #cccccc;
    padding-bottom: 3px;
    margin-bottom: 1rem;
}

.day-heading {
    font-size: 1.15rem;
    font-weight: bold;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 3px;
    margin: 1rem 0 0.5rem;
}

.event-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.event-list-item {
    padding: 2px 0;
    font-size: 1rem;
}

.event-list-item a {
    text-decoration: none;
    color: #555;
}

.event-list-item.event-mine a {
    color: #2a6496;
}

/* Day view: events grouped by type */
.day-type-subhead {
    font-size: 1.1rem;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: 0.03em;
    padding-left: 1.5rem;
    margin: 0.85rem 0 0.35rem;
}

.day-type-events {
    padding-left: 3rem;
    margin-bottom: 0.75rem;
}

.day-type-events p {
    margin-bottom: 0.1rem;
}

/* Type-colored dot (v2.9-style event-type indicator), reliably centered */
.type-dot {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    margin-right: 0.35em;
}

/* ── Event detail ── */
.event-detail-block {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* One-level indent for content sitting under a page/section heading */
.body-indent {
    padding-left: 1.5rem;
}

.event-detail-title {
    margin-bottom: 0.5rem;
}

.event-cast-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

.event-motd {
    padding-left: 1.5rem;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ── Full month calendar ── */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
}

.calendar-header {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 6px;
    font-weight: bold;
    font-size: 0.85em;
}

.calendar-day {
    background-color: white;
    padding: 8px;
    min-height: 100px;
    vertical-align: top;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #6c757d;
}

.calendar-day.today {
    background-color: #e3f2fd;
}

.event-item {
    font-size: 0.8em;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-item.user-cast {
    font-weight: bold;
}

.day-number {
    font-weight: bold;
    margin-bottom: 4px;
}

/* ── Mini calendar ── */
.mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #ccc;
    border: 1px solid #ccc;
    font-size: 0.8em;
    margin-bottom: 1rem;
}

.mc-prev {
    grid-column: 1;
    background-color: #f5f5f5;
    text-align: center;
}

.mini-cal-title {
    grid-column: 2 / 7;
    background-color: #f5f5f5;
    text-align: center;
    padding: 3px 0;
    font-weight: bold;
}

.mc-next {
    grid-column: 7;
    background-color: #f5f5f5;
    text-align: center;
}

.mini-cal-nav-link {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    font-size: 0.85em;
}

.mini-cal-nav-link:hover {
    color: #000;
}

.mini-cal-cell {
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 3px 0;
    text-decoration: none;
    display: block;
}

.mini-cal-cell:hover {
    background-color: #e8e8e8;
    color: #000;
}

.mini-cal-cell.empty {
    background-color: #f9f9f9;
    pointer-events: none;
}

.mini-cal-cell.mc-today {
    font-weight: bold;
    outline: 1px solid #2a6496;
}

/* ── Sidebar nav menus ── */
.sidebar-nav {
    font-size: 0.85em;
}

.sidebar-section {
    margin-bottom: 1rem;
}

.sidebar-heading {
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 2px;
    margin-bottom: 4px;
    text-align: right;
}

.sidebar-section a {
    display: block;
    text-align: right;
    color: #2a6496;
    text-decoration: none;
    padding: 1px 0;
}

.sidebar-section a:hover {
    text-decoration: underline;
}
