/* vavpc.de only (custom.css next to it is shared with the livelog wiki and is not loaded). */

/* Page title on one line with the logo and the content icons (Furo: h1 margin-top 1.75rem). */
article[role=main] h1 {
    margin-top: 0.5rem;
}

/* Full browser width: Furo fixes .content at 46em. */
.content {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}
.main {
    flex: 1 1 auto;
    min-width: 0;
}
.page {
    width: 100%;
}
/* the "on this page" column keeps its own width instead of being squeezed */
.toc-drawer {
    flex: 0 0 auto;
}

/* Grid cards start on the same left line as the text around them. */
article .sd-container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* CV header: date line right-aligned */
div.right.container {
    text-align: right;
}

/* Profile page: move the photo up so it sits closer to the title */
#vladislav-vorobev > figure.align-right {
    margin-top: -3em;
}

/* CV print: `.. cssclass:: pagebreak` sections start on a new page */
@media print {
    section.pagebreak,
    .pagebreak {
        break-before: page;
        page-break-before: always;
    }
}

/* Visited links keep the normal link colour (Furo paints them purple). */
body {
    --color-link--visited: var(--color-link);
    --color-link--visited--hover: var(--color-link--hover);
    --color-link-underline--visited: var(--color-link-underline);
    --color-link-underline--visited--hover: var(--color-link-underline--hover);
}

/* Left menu reads like the page text: same size (Furo makes it --font-size--small). */
body {
    --sidebar-item-font-size: var(--font-size--normal);
    --sidebar-item-line-height: 1.3rem; /* wrapped menu titles need room at the larger size */
}

/* Note pages: date from the file name, above the title. */
.note-date {
    font-size: var(--font-size--small);
    color: var(--color-foreground-muted);
    margin: 0 0 -0.5rem;
    padding-top: 1.5rem;
}

/* Notes index: the file-name date takes the place of the bullet. */
.toctree-wrapper > ul:has(> .note-list-item) {
    padding-left: 0;
}
.note-list-item {
    list-style: none;
    display: flex;
    align-items: baseline;
}
.note-list-date {
    flex: 0 0 6.5rem;
    font-size: var(--font-size--small);
    color: var(--color-foreground-muted);
    font-variant-numeric: tabular-nums;
}
/* Title and tag pills form one column; wrapped lines stay at the title's left edge. */
.note-list-body {
    flex: 1 1 auto;
    min-width: 0;
}
.note-list-body > a.needs-tag-pill {
    font-size: var(--font-size--small);
    margin-left: 0.3em;
}

/* Grey of the vav logo: the type name in the object line (blue stays for links). */
body {
    --vavpc-logo-grey: #5f6062;
}
@media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) {
        --vavpc-logo-grey: #8c8d8d;
    }
}
body[data-theme="dark"] {
    --vavpc-logo-grey: #8c8d8d;
}

/* Sphinx-Needs object under a page title: one quiet line "Type · tags", no frame.
   sphinx-needs styles `table.need.need.need > tbody > tr ...`; the extra class
   and the same child chain beat it without !important. */
.need_container:has(> table.needs_layout_vavpc_line) {
    margin: -0.5rem 0 1rem;
}
table.need.need.need.needs_layout_vavpc_line {
    --sn-color-need-bg: transparent;
    --sn-color-need-bg-head: transparent;
    --sn-color-need-border: transparent;
    --sn-width-need-border: 0;
    --sn-width-need-border-row: 0;
    width: auto;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    /* Furo: table.docutils { box-shadow: ... } */
    box-shadow: none;
}
table.need.need.need.needs_layout_vavpc_line > tbody > tr.meta,
table.need.need.need.needs_layout_vavpc_line > tbody > tr.content {
    display: none;
}
table.need.need.need.needs_layout_vavpc_line > tbody > tr.head {
    background: none;
}
table.need.need.need.needs_layout_vavpc_line > tbody > tr.head > td {
    padding: 0;
    border: 0;
    background: none;
    font-size: var(--font-size--small);
    color: var(--color-foreground-secondary);
}
table.need.need.need.needs_layout_vavpc_line .needs_head,
table.need.need.need.needs_layout_vavpc_line .needs_head .line {
    margin: 0;
    padding: 0;
}
table.needs_layout_vavpc_line .needs_type_name {
    font-weight: 600;
    color: var(--vavpc-logo-grey);
}

/* Tags in the object line: small rounded pills linking to the Tags page. */
table.needs_layout_vavpc_line .needs_tags .needs_data_container {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3em;
    vertical-align: baseline;
}
table.needs_layout_vavpc_line .needs_tags .needs_spacer {
    display: none;
}
a.needs-tag-pill {
    display: inline-block;
    padding: 0 0.6em;
    line-height: 1.5;
    border: 1px solid var(--color-background-border);
    border-radius: 1em;
    background: var(--color-background-secondary);
    color: var(--color-foreground-secondary);
    text-decoration: none;
}
a.needs-tag-pill:hover {
    border-color: var(--color-link);
    color: var(--color-link);
}
