/* ══════════════════════════════════════════════════════════════
   Notespark — Today timeline
   Isolated file. Load after the other nota-*.css files.

   A vertical rail threading meetings, notes, comments and contact
   touchpoints into one chronological day. Meetings get cards; every
   other kind is a quiet line, so a day of note edits doesn't read as
   a wall of boxes.
   ══════════════════════════════════════════════════════════════ */

/* A timeline is a column, not a page. Left unconstrained on a wide
   monitor it strands a 400px list against 2000px of nothing, so cap the
   measure and centre it — same reasoning as prose line length. */
.tl-page {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: #fffdf9;
    padding: 22px 22px 40px;
}

.tl-inner {
    max-width: 620px;
}

/* Left-aligned on desktop rather than centred. A centred column puts the
   big date in the middle of an otherwise empty screen, which reads as an
   error state; anchored left it reads as a column with room beside it. */
.nota.desktop .tl-inner {
    margin: 0;
}

.nota.compact .tl-inner {
    margin: 0 auto;
}

.nota.compact .tl-page {
    padding: 16px 16px calc(92px + env(safe-area-inset-bottom));
}

/* ── Header ──
   Oversized date is the whole visual identity of the page. Serif would
   be nicer still, but the app ships one family, so weight and scale do
   the work instead. */
.tl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tl-dow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--n-text-4);
}

/* The day number is the one purely decorative element on the page, so it
   carries the accent rather than sitting in text-black with everything
   else. Today gets the full accent; other days a muted version, which
   also tells you at a glance that you've navigated away from today. */
.tl-daynum {
    font-size: 46px;
    font-weight: 300;
    line-height: 0.95;
    color: var(--n-accent-text);
    margin-top: 2px;
}

    .tl-daynum.past {
        color: #b58a3c;
    }

.tl-month {
    font-size: 12.5px;
    color: var(--n-text-3);
    margin-top: 5px;
}

.tl-nav {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.tl-navbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: var(--n-surface);
    border: 1px solid var(--n-border-light);
    border-radius: 11px;
    color: var(--n-text-2);
    cursor: pointer;
    transition: background var(--n-transition), color var(--n-transition);
}

    .tl-navbtn:hover:not(:disabled) {
        background: var(--n-surface-hover);
        color: var(--n-text);
    }

    .tl-navbtn:disabled {
        opacity: 0.4;
        cursor: default;
    }

.tl-today-btn {
    margin-bottom: 14px;
    padding: 5px 13px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    color: var(--n-accent-text);
    background: var(--n-accent-dim);
    border: none;
    border-radius: 999px;
    cursor: pointer;
}

/* ── The rail ── */
.tl-row {
    display: flex;
    gap: 11px;
    align-items: stretch;
}

.tl-time {
    width: 46px;
    flex-shrink: 0;
    text-align: right;
    padding-top: 10px;
}

.tl-time-main {
    font-size: 11.5px;
    font-weight: 650;
    color: var(--n-text-2);
}

.tl-time-sub {
    font-size: 10px;
    color: var(--n-text-4);
    margin-top: 1px;
}

/* The spine is a 2px line the dots sit on. Using a pseudo-element rather
   than a border means the last row's line still runs full height, which
   keeps the rail from looking severed at the bottom. */
.tl-spine {
    position: relative;
    width: 2px;
    background: var(--n-border-light);
    flex-shrink: 0;
}

.tl-dot {
    position: absolute;
    top: 12px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2.5px solid #fffdf9;
    box-sizing: content-box;
}

    .tl-dot.big {
        top: 14px;
        left: -6px;
        width: 13px;
        height: 13px;
    }

/* Upcoming items are hollow — the day hasn't happened yet, and a filled
   dot would read as done. */
.tl-row.upcoming .tl-dot {
    border-width: 2.5px;
    border-style: solid;
}

.tl-row.upcoming .tl-time-main {
    color: var(--n-accent-text);
}

.tl-body {
    flex: 1;
    min-width: 0;
    padding-bottom: 12px;
}

/* ── Meeting card ──
   --tl-accent is set inline per row from the notebook colour, so the
   card inherits the palette already used on the home grid. */
.tl-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 11px 13px;
    font-family: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid var(--n-border-light);
    border-left: 3px solid var(--tl-accent, #9c9585);
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .tl-card:hover {
        box-shadow: 0 3px 12px rgba(70,55,30,0.09);
    }

.tl-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--n-text);
    line-height: 1.25;
}

.tl-card-sub {
    font-size: 11.5px;
    color: var(--n-text-3);
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.tl-tag {
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 650;
    color: var(--n-text-3);
    background: var(--n-surface);
    border-radius: 999px;
}

/* ── Quiet line ──
   No card, no border. Most of a day is these, and boxing every one
   would bury the meetings. */
.tl-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 9px 4px;
    font-family: inherit;
    text-align: left;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

    .tl-line:hover {
        background: var(--n-surface);
    }

.tl-line-title {
    font-size: 13px;
    color: var(--n-text-2);
    line-height: 1.35;
}

    .tl-line-title strong {
        font-weight: 700;
        color: var(--n-text);
    }

.tl-line-sub {
    font-size: 10.5px;
    color: var(--n-text-4);
}

/* ── Empty ── */
.tl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 20px;
    color: var(--n-text-4);
    text-align: center;
}

.tl-empty-title {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--n-text-2);
}

.tl-empty-hint {
    margin: 0;
    font-size: 12.5px;
    max-width: 260px;
}
