/* Windows 95: details of the Windows desktop that no shared token
   expresses, keyed on the data-theme attribute painting sets on <html>. The
   bevels themselves are the shared [data-edge="bevel"] rules in
   theme-structure.css, which this sheet is linked after so its rules win at
   the same specificity. */

/* A dialog's header is its title bar: solid navy (98 added the gradient)
   with the title in bold white, and the close button a small raised grey
   box at the far right, where X's layout puts it at the far left. Other
   header buttons stay ordinary raised buttons. Settings has one header per
   pane, so both turn navy and read as one bar, and its close button is
   lifted out of the menu pane to the window's corner. The split post panel
   is a second window beside the feed, so its header is a title bar too. */
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) {
    min-height: 30px;
    padding: 3px 4px 3px 8px;
    border-bottom: 0;
    background: #000080;
    color: #ffffff;
}
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) :is(h1, h2, h3, .nook-demo-badge) {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
}
/* Everything else in the bar is set in white too, such as a switch's label;
   grey text vanishes into the navy. Buttons keep their own colours. */
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) :not(.nook-button, .nook-button *, .nook-icon-button, .nook-icon-button *) {
    color: #ffffff;
}
/* A button in the bar is a thin strip like the close box, so the bar stays
   a title bar rather than growing into a toolbar. */
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) .nook-button {
    gap: 4px;
    min-width: 0;
    height: 20px;
    min-height: 20px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 14px;
}
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) .nook-button :is(svg, .nook-refresh-icon) {
    width: 14px;
    height: 14px;
}
[data-theme="windows-95"] :is(.stats-modal-header, .setup-modal-header) :is(.nook-stats-heading > span, .setup-modal-step) {
    color: #dfdfdf;
}
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) .nook-icon-button {
    color: #ffffff;
}
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) .nook-icon-button:hover:not(:disabled) {
    background: transparent;
    box-shadow: none;
}
[data-theme="windows-95"] :is(.stats-modal-header .nook-icon-button[aria-label^="Close"], .nook-td-head .nook-icon-button[aria-label="Close"], .nook-panel-header .nook-icon-button[aria-label="Close"], .setup-modal-close, .nook-settings-close) {
    order: 99;
    width: 20px;
    height: 18px;
    margin-left: auto;
    padding: 0;
    border: 1px solid;
    border-color: var(--bevel-raised);
    border-radius: 0;
    background: var(--bg-secondary);
    box-shadow: var(--bevel-raised-inner);
    color: #000000;
}
[data-theme="windows-95"] :is(.stats-modal-header .nook-icon-button[aria-label^="Close"], .nook-td-head .nook-icon-button[aria-label="Close"], .nook-panel-header .nook-icon-button[aria-label="Close"], .setup-modal-close, .nook-settings-close):hover:not(:disabled) {
    background: var(--bg-secondary);
}
[data-theme="windows-95"] :is(.stats-modal-header .nook-icon-button[aria-label^="Close"], .nook-td-head .nook-icon-button[aria-label="Close"], .nook-panel-header .nook-icon-button[aria-label="Close"], .setup-modal-close, .nook-settings-close):active {
    border-color: var(--bevel-sunken);
    box-shadow: var(--bevel-sunken-inner);
}
[data-theme="windows-95"] :is(.stats-modal-header .nook-icon-button[aria-label^="Close"], .nook-td-head .nook-icon-button[aria-label="Close"], .nook-panel-header .nook-icon-button[aria-label="Close"], .setup-modal-close, .nook-settings-close) svg {
    width: 14px;
    height: 14px;
}
/* The dotted focus rectangle is black, which the navy bar hides. */
[data-theme="windows-95"] :is(.stats-modal-header, .nook-td-head, .nook-sheet-header, .setup-modal-header, .nook-settings-header, .nook-panel-header) .nook-icon-button:focus-visible {
    background: transparent;
    box-shadow: none;
    outline-color: #ffffff;
}
/* Setup centres its title and pins the close button to the bar's left end;
   a title bar reads from the left and ends in the close box, with the step
   count before it. */
[data-theme="windows-95"] .setup-modal-header {
    justify-content: flex-start;
}
[data-theme="windows-95"] .setup-modal-header > .setup-modal-close {
    top: 6px;
    right: 5px;
    left: auto;
}
[data-theme="windows-95"] .setup-modal-header > .setup-modal-step {
    right: 32px;
}
/* The panel's header is laid out with utility classes for a tall bar; its
   icons take their colour from the bar rather than the page's icon colour. */
[data-theme="windows-95"] .nook-panel-header {
    backdrop-filter: none;
}
[data-theme="windows-95"] .nook-panel-header .nook-icon-button {
    width: 20px;
    height: 20px;
    margin-left: 0;
}
[data-theme="windows-95"] .nook-panel-header .nook-icon-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
[data-theme="windows-95"] .nook-settings-shell {
    position: relative;
}
/* The two Settings bars share one height so they line up, and the detail
   bar leaves room at its end for the lifted close box. */
[data-theme="windows-95"] .nook-settings-header {
    height: 30px;
}
[data-theme="windows-95"] .nook-detail-header {
    padding-right: 32px;
}
[data-theme="windows-95"] .nook-settings-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}
[data-theme="windows-95"] .nook-master-header .nook-demo-badge {
    margin-left: -4px;
}

/* A count badge is navy, which vanishes into the navy selection behind the
   current Settings page; there it inverts, like selected text. Phones mark
   no current page. */
@media (min-width: 800px) {
    [data-theme="windows-95"] .nook-settings-nav[aria-current="page"] .nook-nav-count {
        background: #ffffff;
        color: #000080;
    }
}

/* The default button carries an extra black frame outside its bevel. */
[data-theme="windows-95"] .nook-button.is-primary:not(:disabled) {
    box-shadow: 0 0 0 1px #000000, var(--bevel-raised-inner);
}
[data-theme="windows-95"] .nook-button.is-primary:active:not(:disabled) {
    box-shadow: 0 0 0 1px #000000, var(--bevel-sunken-inner);
}

/* Radios are small white wells, sunken like a field, with a black dot. */
[data-theme="windows-95"] .nook-radio,
[data-theme="windows-95"] [aria-checked="true"] > .nook-radio,
[data-theme="windows-95"] input:checked + .nook-radio {
    width: 13px;
    height: 13px;
    border: 1px solid;
    border-color: var(--bevel-sunken);
    background: var(--field-bg);
    box-shadow: var(--bevel-sunken-inner);
}
[data-theme="windows-95"] .nook-radio::after {
    inset: 3px;
    background: #000000;
}
[data-theme="windows-95"] :focus-visible > .nook-radio {
    outline: 1px dotted #000000;
    outline-offset: 2px;
}

/* Slider thumbs are raised grey blocks in a sunken white channel. */
[data-theme="windows-95"] .nook-font-slider input::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--field-bg);
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff, inset 2px 2px 0 #000000, inset -2px -2px 0 #c0c0c0;
}
[data-theme="windows-95"] .nook-font-slider input::-moz-range-track,
[data-theme="windows-95"] .nook-font-slider input::-moz-range-progress {
    height: 4px;
    background: var(--field-bg);
    box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #ffffff, inset 2px 2px 0 #000000, inset -2px -2px 0 #c0c0c0;
}
[data-theme="windows-95"] .nook-font-slider input::-webkit-slider-thumb {
    width: 11px;
    height: 21px;
    margin-top: -8.5px;
    background: var(--bg-secondary);
    box-shadow: inset -1px -1px 0 #000000, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080;
}
[data-theme="windows-95"] .nook-font-slider input::-moz-range-thumb {
    width: 11px;
    height: 21px;
    border: 0;
    background: var(--bg-secondary);
    box-shadow: inset -1px -1px 0 #000000, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080;
}
@media (min-width: 641px) and (pointer: fine) {
    [data-theme="windows-95"] .video-seek::-webkit-slider-thumb {
        width: 10px;
        height: 20px;
        margin-top: -8px;
        background: var(--bg-secondary);
        box-shadow: inset -1px -1px 0 #000000, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080;
    }
    [data-theme="windows-95"] .video-seek::-moz-range-thumb {
        width: 10px;
        height: 20px;
        border: 0;
        background: var(--bg-secondary);
        box-shadow: inset -1px -1px 0 #000000, inset 1px 1px 0 #ffffff, inset -2px -2px 0 #808080;
    }
}

/* Separators are etched grooves: the grey line with a white one beside it,
   below a horizontal rule and to the right of a vertical one. */
[data-theme="windows-95"] :is(.nook-setting-section, .nook-schedule-master, .nook-select-search) {
    box-shadow: 0 1px 0 var(--edge-light);
}
[data-theme="windows-95"] :is(.cs-menu, .cs-jobs, .setup-modal-footer, .nook-selection-bar, .nook-rows-card > * + * > .nook-row, .nook-rows-card > .nook-row + .nook-row) {
    box-shadow: inset 0 1px 0 var(--edge-light);
}
[data-theme="windows-95"] .nook-settings-detail {
    box-shadow: inset 1px 0 0 var(--edge-light);
}

/* Tooltips are the pale yellow note with a thin black frame. */
[data-theme="windows-95"] .nook-tip {
    padding: 2px 4px;
    border: 1px solid #000000;
    border-radius: 0;
    background: #ffffe1;
    color: #000000;
    font-size: 12px;
    font-weight: 400;
}

/* Lists are white wells sunk into the grey face, as list boxes and
   Explorer's details view are, rather than rows printed on the face. A
   ranked list's title becomes the column header button above the rows. The
   rows lose their dividers, which the details view never drew, and the
   chosen or keyboard-focused row is the navy selection. */
[data-theme="windows-95"] .nook-stats :is(.nook-list-card, .nook-rows-card),
[data-theme="windows-95"] .nook-stats :is(.nook-list-card, .nook-rows-card):hover,
[data-theme="windows-95"] .nook-tag-list {
    border: 1px solid;
    border-color: var(--bevel-sunken);
    background: var(--field-bg);
    box-shadow: var(--bevel-sunken-inner);
}
[data-theme="windows-95"] .nook-stats .nook-list-card {
    padding: 2px 2px 8px;
}
[data-theme="windows-95"] .nook-stats .nook-rows-card {
    padding: 2px;
}
[data-theme="windows-95"] .nook-list-title {
    margin-bottom: 4px;
    padding: 3px 18px;
    border: 1px solid;
    border-color: var(--bevel-raised);
    background: var(--button-bg);
    box-shadow: var(--bevel-raised-inner);
}
[data-theme="windows-95"] :is(.nook-rows-card > * + * > .nook-row, .nook-rows-card > .nook-row + .nook-row) {
    border-top: 0;
    box-shadow: none;
}
[data-theme="windows-95"] .nook-tag-list {
    margin: 0;
}
[data-theme="windows-95"] .nook-tag-row {
    border-bottom: 0;
}
[data-theme="windows-95"] :is(button.nook-rank-row:hover:not(:disabled), .nook-tag-row:hover) {
    background: transparent;
}
[data-theme="windows-95"] :is(button.nook-rank-row:focus-visible, .nook-row.is-active, .storage-row.is-active, .nook-tag-row.is-selected) {
    outline: 0;
    background: #000080;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-color: #ffffff;
    color: #ffffff;
}
