:root {
    --bg: #F3F5F7;
    --surface: #FFFFFF;
    --border: #E2E6EB;
    --border-strong: #CBD2DA;
    --ink: #1C2430;
    --ink-soft: #5B6472;
    --ink-faint: #8992A0;

    --accent: #1F6F5C;
    --accent-soft: #E3F1EC;
    --accent-strong: #14493C;

    --gray-soft: #EAEDF1;
    --gray: #5B6472;

    --font-serif: "Fraunces", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    --radius: 10px;

    /* Column widths shared by entry rows and ticket rows so type / status /
       dates line up vertically within each list. */
    --col-type: 90px;
    --col-status: 100px;
    --col-dates: 100px;
    --col-ticket-id: 50px;
    --col-ticket-dates: 90px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}
.page {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

.page-header {
    margin-bottom: 28px;
}

.page-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
	display:none;
}

.page-title {
    margin: 0 0 8px;
    font-family:  var(--font-sans);
    font-weight: 600;
    font-size: 38px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.page-subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--ink-soft);
}

/* Filters */

.filters-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.filters-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filters-label {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-faint);
    width: 52px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter-chip:hover {
    border-color: var(--border-strong);
    color: var(--ink);
}

/* Active status chips use that status's own color (--chip-active-* custom
   properties are set inline per chip in app.js) so a given status is always
   represented by the same color. Chips without a specific color (e.g. "All",
   or type filters) fall back to the neutral accent. */
.filter-chip.active {
    background: var(--chip-active-bg, var(--accent-soft));
    color: var(--chip-active-text, var(--accent-strong));
    border-color: var(--chip-active-border, var(--accent));
}

/* Timeline */

.timeline {
    position: relative;
}

.state-message {
    padding: 20px 4px;
    color: var(--ink-soft);
    font-size: 14px;
}

.entry {
    position: relative;
    display: flex;
    gap: 16px;
}

.entry-rail {
    position: relative;
    width: 16px;
    flex: 0 0 16px;
    display: flex;
    justify-content: center;
}

.entry-rail::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: -20px;
    width: 2px;
    background: var(--border);
}

.entry:last-child .entry-rail::before {
    display: none;
}

.entry-node {
    position: relative;
    width: 11px;
    height: 11px;
    margin-top: 18px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--border-strong);
    z-index: 1;
}

.entry-body {
    flex: 1;
    min-width: 0;
    padding-bottom: 20px;
}

.entry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.entry-card:hover {
    border-color: var(--border-strong);
}

/* Version row: grid with fixed-width columns so type / status / dates align
   across every row, regardless of how long the version name is. */
.entry-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--col-type) var(--col-status) var(--col-dates) 26px;
    align-items: center;
    column-gap: 14px;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    color: var(--ink);
}

.entry-name {
    min-width: 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-type {
    font-size: 12.5px;
    color: var(--ink-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.5;
    white-space: nowrap;
}

.entry-dates .date-value {
    font-family: var(--font-mono);
    color: var(--ink-soft);
}

.entry-dates .date-hint {
    font-size: 11px;
}

.status-pill {
    justify-self: start;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

/* +/x toggle button, drawn in pure CSS (two bars that rotate 45°) */

.entry-chevron {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.25s ease;
}

.entry-chevron::before,
.entry-chevron::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--ink-soft);
    border-radius: 1px;
    transition: background 0.18s ease;
}

.entry-chevron::before {
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.entry-chevron::after {
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.entry-toggle:hover .entry-chevron {
    border-color: var(--accent);
}

.entry-toggle:hover .entry-chevron::before,
.entry-toggle:hover .entry-chevron::after {
    background: var(--accent-strong);
}

.entry-toggle[aria-expanded="true"] .entry-chevron {
    transform: rotate(45deg);
    background: var(--accent-soft);
    border-color: var(--accent);
}

.entry-toggle[aria-expanded="true"] .entry-chevron::before,
.entry-toggle[aria-expanded="true"] .entry-chevron::after {
    background: var(--accent-strong);
}

/* Detail panel (description + tickets) */

.entry-panel {
    border-top: 1px solid var(--border);
    padding: 4px 16px 14px 16px;
    background: #FAFBFC;
}

.entry-panel[hidden] { display: none; }

.version-description {
    padding: 12px 4px 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.version-description :first-child { margin-top: 0; }
.version-description :last-child { margin-bottom: 0; }

.tickets-list {
    display: flex;
    flex-direction: column;
}

/* Ticket row: same column-alignment principle as the version row above,
   with an extra id column and a link column. Name wraps onto several lines
   when needed; the other columns stay pinned to the top. */
.ticket-row {
    display: grid;
    grid-template-columns: var(--col-ticket-id) minmax(0, 1fr) var(--col-type) var(--col-status) var(--col-ticket-dates) 22px;
    align-items: start;
    column-gap: 12px;
    row-gap: 4px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.ticket-row:last-child { border-bottom: none; }

.ticket-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faint);
}

.ticket-name {
    min-width: 0;
    color: var(--ink);
    white-space: normal;
    overflow-wrap: break-word;
}

.ticket-type {
    font-size: 12px;
    color: var(--ink-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-dates {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-faint);
    white-space: nowrap;
}

/* External-link button opening the ticket on track.projeqtor.org */

.ticket-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ticket-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.panel-message {
    padding: 12px 4px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.panel-message.error {
    color: #A3372E;
}

/* Responsive */

@media (max-width: 720px) {
    .entry-toggle {
        grid-template-columns: minmax(0, 1fr) auto auto 26px;
        grid-template-areas:
            "name   name   name   chevron"
            "type   status dates  dates";
        row-gap: 8px;
    }
    .entry-name { grid-area: name; white-space: normal; }
    .entry-chevron { grid-area: chevron; }
    .entry-type { grid-area: type; }
    .status-pill { grid-area: status; }
    .entry-dates { grid-area: dates; align-items: flex-end; }

    .ticket-row {
        grid-template-columns: auto minmax(0, 1fr) 22px;
        grid-template-areas:
            "id     name   link"
            "type   type   type"
            "status dates  dates";
        row-gap: 6px;
    }
    .ticket-id { grid-area: id; }
    .ticket-name { grid-area: name; }
    .ticket-link { grid-area: link; }
    .ticket-type { grid-area: type; }
    .status-pill { grid-area: status; justify-self: start; }
    .ticket-dates { grid-area: dates; text-align: right; }
}
