/* =============================================================================
      COLORS: the main palette of the site, change them here to experiment
      Contrast rule: white text on every color, except gold (--color-warning),
      which always gets dark text. Keep white on a color at 4.5:1 or more.
      ========================================================================== */
:root {
  --color-accent:       #19838a;  /* blue: top bar, footer, selected menu item, buttons, record title border */
  --color-accent-light: #00b9c5;  /* light blue: links, hover, focus */
  --color-panel:        #484848;  /* gray: menu buttons, borders */
  --color-page:         #282828;  /* dark background */
  --color-muted:        #adadad;  /* gray text (light enough for the record rows) */
  --color-text:         #ffffff;  /* white text */
  --color-error:        #cd0000;  /* red: error boxes, top message for guests, bad dumps, .status-error, recent/edited cells */
  --color-unread:       #b95757;  /* soft red for unread cells */
  --color-ok:           #398517;  /* green: .status-ok, verified dumps */
  --color-info:         #547c8f;  /* status blue: trusted dumps, other search results */
  --color-section:      #0a1626;  /* dark navy: record page table titles */
  --color-row1:         #2a3a4e;  /* record page: data cells and the indent column of the file rows */
  --color-row2:         #3a4f69;  /* record page: file rows, first color; title badge */
  --color-row3:         #4f647e;  /* record page: file rows, second color */
  --color-magenta:      #8b008b;  /* no dump: .status-nodump and dump status */
  --color-warning:      #dda621;  /* gold: .status-warning, untrusted dumps, deleted cells in the log */
  --color-table-alt1:   #1c5a5c;  /* info-table odd rows */
  --color-table-alt2:   #26797a;  /* info-table even rows */
  --color-table-title:  #0a2c2d;  /* info-table title rows */
  --color-table-grey:   #597b7b;  /* info-table note rows (.row-note) and locked cells */
  --color-table-highlight: #4a6d96;  /* info-table highlighted rows: selected item, rows by the logged-in user */
  --color-footer-line:  #b3eef2;  /* light lines in the footer */
  --color-dark:         #1b1b1b;  /* darkest background (under bg.jpg), thin dark borders */
}

* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
  color: var(--color-accent-light); /*#00bac6*/
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/**
 * Correct `inline-block` display not defined in IE 8/9.
 */

audio,
canvas,
video {
  display: inline-block;
}

/* ==========================================================================
   Base
   ========================================================================== */

/**
 * 1. Prevent system color scheme's background color being used in Firefox, IE,
 *    and Opera.
 * 2. Prevent system color scheme's text color being used in Firefox, IE, and
 *    Opera.
 * 3. Set default font family to sans-serif.
 * 4. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 3 */
  -webkit-text-size-adjust: 100%; /* 4 */
  overflow-x: hidden;
  width: 100%;
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

/* ==========================================================================
   Links
   ========================================================================== */

/**
 * Show a branded focus ring for keyboard navigation only.
 */

a:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari 5, and Chrome.
 */

h1 {
  font-size: 2em;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 100%;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * Correct font family set oddly in Safari 5 and Chrome.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}

/**
 * Improve readability of pre-formatted text in all browsers.
 */

pre {
  white-space: pre-wrap;
}

/* ==========================================================================
   Forms
   ========================================================================== */

/**
 * 1. Correct font family not being inherited in all browsers.
 * 2. Correct font size not being inherited in all browsers.
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
 */

button,
input,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 2 */
  margin: 0; /* 3 */
/*  max-width: 200px; */
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */

button,
select {
  text-transform: none;
}

/* Normalize button appearance and curso across browsers */

button,
input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove Firefox's native inner border/padding on buttons (::-moz-focus-inner)
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0px;
  padding: 0;
}

/**
 * 1. Remove default vertical scrollbar in IE 8/9.
 * 2. Improve readability and alignment in all browsers.
 */

textarea {
  overflow: auto; /* 1 */
  vertical-align: top; /* 2 */
}

/* ==========================================================================
   Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== Primary Styles ========================================================
   Author: Fredy Munevar
   ========================================================================== */

html,
body {
  background-color: var(--color-dark);
  color: var(--color-text);
}

body {
  background: var(--color-dark) url("bg.jpg");
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75em;
}

.center {
  max-width: 1280px;
  height: 100%;
  background: var(--color-page) url("bg.jpg"); /* tiled pattern also behind the site */
  margin: 0 auto;
  box-shadow: 0 7px 16px 2px rgba(0, 0, 0, 0.46);
}

/* =============================================================================
      HEADER
      ========================================================================== */
header#site-header #site-banner {
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.95);
  height: 120px;
  margin-bottom: 17px;
}

header#site-header #site-banner > a > img {
  height: 120px;
}

header#site-header nav#site-nav {
  border: none; /* no separator line between the main menu and the submenu */
  margin: 0 auto;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  border-top: none;
  border-right: none;
  border-left: none;
  padding: 6px 0;
}

header#site-header nav#site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

header#site-header nav#site-nav ul li {
  vertical-align: top;
  margin: 2px;
}

header#site-header nav#site-nav ul li a {
  display: block;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 1px rgba(255, 255, 255, 0.16);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 1.167em;
  padding: 7px 12px;
  width: 90px;
}

/* dark text on the light blue hover, white would be hard to read */
header#site-header nav#site-nav ul li a:hover {
  background: var(--color-accent-light);
  color: var(--color-dark);
}

header#site-header nav#site-nav ul li .nav-selected {
  background: var(--color-accent);
}

/* =============================================================================
      FOOTER
      ========================================================================== */
footer#site-foot {
  box-shadow: inset 0 5px 5px rgba(0, 74, 79, 0.75);
  background: var(--color-accent);
}

footer#site-foot section ul {
  display: inline-block;
  vertical-align: top;
  width: 45%;
  /* fixed top/bottom space (a % padding is computed from the page width, so it grew on wide screens) */
  padding: 6px 2%;
  list-style: none;
}

footer#site-foot section ul li {
  color: var(--color-text);
  border-bottom: 1px dashed var(--color-footer-line);
  padding: 10px 0;
}

/* the dashed line only between the lines, not after the last one */
footer#site-foot section ul li:last-child {
  border-bottom: none;
}

footer#site-foot section ul li a {
  color: var(--color-text);
}

footer#site-foot section ul:first-child {
  border-right: 1px dashed var(--color-footer-line);
}

/* =============================================================================
      CONTENT
      ========================================================================== */

/* the content area of every page (the <article> in index.tpl): free text in grey, links in white;
   a class and not the id, so the tables and status cells inside keep their own text colors */
.page-content {
  color: var(--color-muted);
}

.page-content a {
  color: var(--color-text);
}

section#content-wrap {
  padding: 15px 27px 0 27px;
  display: grid;
  grid-template-columns: 200px 1fr;
  /* rows 1-2 (the two sidebars) as tall as their content, row 3 takes the rest of the main box height */
  grid-template-rows: auto auto 1fr;
  /* space only between the columns; between the sidebar widgets their margin-bottom is enough */
  column-gap: 10px;
  row-gap: 0;
}

article#content, aside.sidebar {
  min-width: 0;
}

/* the sidebars don't stretch to fill their grid row */
aside.sidebar {
  align-self: start;
}

article#content {
  border: 2px groove var(--color-panel);
  flex-shrink: 1;
  grid-row: span 3 / span 3;  margin-top: 0px;
  margin-bottom: 10px; /* new value 20260725 */
}

aside.sidebar .widget {
  border: 2px groove var(--color-panel);
  margin-bottom: 10px;
}

aside.sidebar .widget h1 {
  border: 2px groove var(--color-panel);
  color: var(--color-accent-light);
  text-align: center;
  text-transform: uppercase;
  font-size: 1.583em;
  line-height: 24px; /* fixed height, same as .system-selection-area td */
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 11px 0;
}

aside.sidebar .widget p {
  color: var(--color-muted);
  border-bottom: 1px dashed var(--color-panel);
  padding: 8px;
}

/* inner space also for the shout header lines ("nickname » date") and the form areas,
   like the <p> lines (the shout text below a header line is a <p>, so no bottom space here) */
aside.sidebar .widget > div:not([class]) {
  padding: 8px 8px 0 8px;
}

aside.sidebar .widget > div[align="center"] {
  padding: 8px;
}

aside.sidebar .widget p:last-child {
  border: none;
}

aside.sidebar .widget p a,
aside.sidebar .widget p span {
  color: var(--color-text);
  display: block;
}

aside.sidebar .widget p a:hover {
  text-decoration: underline;
}

/* shoutbox feedback: a colored box, same colors as the ticket title badges */
aside.sidebar .shout-error,
aside.sidebar .shout-ok {
  margin: 0 8px 8px;
  padding: 6px 8px;
  border-radius: 3px;
  font-weight: bold;
}

aside.sidebar .shout-error {
  background: var(--color-error);
  color: var(--color-text);
}

aside.sidebar .shout-ok {
  background: var(--color-ok);
  color: var(--color-text);
}

/* shoutbox: nickname of staff members */
.shout-staff {
  color: var(--color-accent-light);
}

.subtitle-area {
  border-bottom: 1px solid var(--color-panel);
  border-top: none;
  border-right: none;
  border-left: none;
}

/* no separator line under the submenu in the header (the page label in the main box keeps its line) */
header#site-header .subtitle-area {
  border-bottom: none;
}

.subtitle-area tr td {
  color: var(--color-accent-light);
  text-align: center;
  font-size: 1.583em;
  font-weight: bold;
  padding: 11px 0;
}

.subtitle-area tr td a {
  color: var(--color-text);
  font-size: 0.583em;
}

.subtitle-area form {
  color: var(--color-text);
  font-size: 0.583em;
}

.system-selection-area {
  min-width: 100%;
  border-bottom: 2px groove var(--color-panel); /* same as the sidebar widget titles */
  border-top: none;
  border-right: none;
  border-left: none;
}

.system-selection-area tr td {
  color: var(--color-accent-light);
  text-align: center;
  padding: 11px 0;
  height: 24px; /* same content height as the sidebar widget titles */
}

.system-selection-area form {
  color: var(--color-accent-light);
  text-align: center;
  font-size: 0.583em;
  font-weight: bold;
  padding: 11px 0;
}

@media (max-width: 600px) {
  .system-selection-area select {
    width: 60%;
  }
}

.info-table {
  min-width: 100%;
  border: none;
  border-collapse: collapse;
}

.info-table tr td {
  border: 1px solid var(--color-page);
  color: var(--color-text);
  padding: 4px;
}

.info-table tr.row-alt-1 {
  background-color: var(--color-table-alt1);
}

.info-table tr.row-alt-2 {
  background-color: var(--color-table-alt2);
}

.info-table tr.row-note {
  background-color: var(--color-table-grey);
}

/* a data row that stands out from the alternating rows: the selected item, or rows by the logged-in user */
.info-table tr.row-selected,
.info-table tr.row-own {
  background-color: var(--color-table-highlight);
}

.info-table tr.table-title {
  font-weight: bold;
  background-color: var(--color-table-title);
  color: var(--color-text);
}

/* a title row that divides the page into parts: used together with .table-title, only bigger */
.info-table tr.section-title {
  font-size: 19px;
}

.info-table tr.section-title td {
  padding-top: 8px;
  padding-bottom: 1em;
}

.info-table tr td a {
  color: var(--color-text);
}

.info-table tr td a:hover {
  text-decoration: underline;
}

.info-table tr td.unread {
  background-color: var(--color-unread);
  color: var(--color-text);
}

/* download lists: a system updated recently */
.info-table tr td.recent {
  background-color: var(--color-error);
  color: var(--color-text);
}

/* log of changes: the operation cell of edited and deleted items */
.info-table tr td.log-edited {
  background-color: var(--color-error);
  color: var(--color-text);
}

.info-table tr td.log-deleted,
.info-table tr td.log-deleted a {
  background-color: var(--color-warning);
  color: var(--color-dark);
}

/* daily pack contents: one class per note of the pack index */
.info-table tr td.daily-missing {
  background-color: var(--color-error);
  color: var(--color-text);
}

.info-table tr td.daily-locked {
  background-color: var(--color-table-grey);
  color: var(--color-text);
}

.info-table tr td.daily-outdated {
  background-color: var(--color-warning);
  color: var(--color-dark);
}

/* record form: the row of flag dropdowns, without cell borders, aligned on the left
   like the other rows (the outer cell already has its padding) and with space between the dropdowns */
.info-table .flags-table td {
  border-color: transparent;
  padding: 0 12px 0 0;
}

/* record form: language checkboxes in aligned columns, alphabetical top to bottom */
.lang-list {
  columns: 10em;
  margin-top: 4px;
}

.lang-list label {
  display: block;
  break-inside: avoid;
  padding: 2px 0;
}

/* =============================================================================
      HOME
      ========================================================================== */

form {
  display: inline;
}

/* 
 * ========================================
 * style elements
 * ========================================
 */

.record-table-wrap {
  /*width: 542px;*/
  width: 100%;
  word-wrap: break-word;
  table-layout: fixed;
  text-align: left;
  border: 0px;
  border-collapse: collapse;
}

.record-table-wrap tr td {
  border: 0px;
  border-collapse: collapse;
}

.record-table {
  width: 100%;
}

.record-table td {
  word-wrap: break-word;
}

.record-table-title {
  font-weight: bold;
  padding-top: 10px;
  background-color: var(--color-section);
  color: var(--color-text);
}

.record-table-data {
  background-color: var(--color-row1);
}

/* state of a row, cell or box: ok, error, warning, no dump */
.status-ok {
  background-color: var(--color-ok);
  color: var(--color-text);
}

.status-error {
  background-color: var(--color-error);
  color: var(--color-text);
}

.status-warning {
  background-color: var(--color-warning);
  color: var(--color-dark);
}

.status-nodump {
  background-color: var(--color-magenta);
  color: var(--color-text);
}

/* dark text on gold also for links and inside info-tables (they set white text on cells and links) */
.status-warning a,
.info-table tr.status-warning td,
.info-table tr.status-warning td a,
.info-table tr td.status-warning,
.info-table tr td.status-warning a {
  color: var(--color-dark);
}

.search-item-title a {
  font-weight: bold;
}

/* a choice the user still has to make before the page can go on */
.field-required {
  background-color: var(--color-error);
  color: var(--color-text);
}

/* dump status colors: one class per status key from get_dumpstatus(),
   text color chosen for contrast (white, dark only on gold) */
.dump-status-nodump {
  background-color: var(--color-magenta);
  color: var(--color-text);
}

.dump-status-missing,
.dump-status-bad {
  background-color: var(--color-error);
  color: var(--color-text);
}

.dump-status-undatted,
.dump-status-unverified,
.dump-status-unknown {
  background-color: var(--color-warning);
  color: var(--color-dark);
}

.dump-status-trusted {
  background-color: var(--color-info);
  color: var(--color-text);
}

.dump-status-verified {
  background-color: var(--color-ok);
  color: var(--color-text);
}

/* record page: the file rows; the table background fills the 1px gaps that collapsed borders
   leave next to the white line of a new format, with the color of the indent column */
.file-list {
  background-color: var(--color-row1);
}

.file-alt-1 {
  background-color: var(--color-row3);
}

.file-alt-2 {
  background-color: var(--color-row2);
}

.first-file-alt-1 {
  background-color: var(--color-row3);
  border-top: 1px solid var(--color-text);
}

.first-file-alt-2 {
  background-color: var(--color-row2);
  border-top: 1px solid var(--color-text);
}

/* Errors */

.errors {
  background-color: var(--color-text);
  background-position: 100% 63%;
  position: relative;
  width: 100%;
  border: 1px solid var(--color-error);
  color: var(--color-error);
  font-weight: bold;
  margin-bottom: 10px;
}

.errors h2 {
  width: 100%;
  position: relative;
  background-color: var(--color-error);
  color: var(--color-text);
  text-align: left;
  margin-bottom: 5px;
  font-size: 2em;
  font-weight: bold;
}

/* Show record */

/* record page: the top area, from the warnings to the icon bar, separated by a line like the search form */
.record-head {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px groove var(--color-panel);
}

/* record page: the title, centered in a badge (long titles wrap inside it) */
.record-title {
  width: fit-content;
  max-width: 90%;
  margin: 16px auto;
  padding: 8px 16px;
  border-radius: 3px;
  background: var(--color-row2);
  color: var(--color-text);
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Tickets */

/* ticket titles in the lists: a colored badge per ticket status,
   so the text is readable on both teal row colors.
   The status rules name both classes so they win over ".info-table tr td a" */
.ticket-title a {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13pt;
  font-weight: bold;
  word-break: break-all;
}

.ticket-title.ticket-title-open a {
  background: var(--color-warning);
  color: var(--color-dark);
}

.ticket-title.ticket-title-accepted a {
  background: var(--color-ok);
  color: var(--color-text);
}

.ticket-title.ticket-title-rejected a {
  background: var(--color-error);
  color: var(--color-text);
}

#tickets-message {
  word-break: break-all;
}

#tickets-detail {
  font-size: 8pt;
  color: var(--color-text);
  font-weight: bold;
}

/* Show courier text */

#pre {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: "Courier New";
  color: var(--color-text);
}

/* sort */

.sort-button-asc {
  border: 0px;
  background: url("../media/icons/keyboard_arrow_up_16dp_FFFFFF_FILL0_wght400_GRAD0_opsz20.svg");
  cursor: pointer;
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0);
}

.sort-button-desc {
  border: 0px;
  background: url("../media/icons/keyboard_arrow_down_16dp_FFFFFF_FILL0_wght400_GRAD0_opsz20.svg");
  cursor: pointer;
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0);
}

/* tiny shoutbox buttons */

input.tiny-delete {
  border: none;
  cursor: pointer;
  display: inline-block;
  text-indent: -3000px;
  background: url("../media/icons/close_12dp_EA3323_FILL0_wght400_GRAD0_opsz20.svg") no-repeat 50% 50%;
  width: 12px;
  height: 12px;
}

input.tiny-ok {
  border: none;
  cursor: pointer;
  display: inline-block;
  text-indent: -3000px;
  background: url("../media/icons/check_12dp_75FB4C_FILL0_wght400_GRAD0_opsz20.svg") no-repeat 50% 50%;
  width: 12px;
  height: 12px;
}

input.tiny-ban {
  border: none;
  cursor: pointer;
  display: inline-block;
  text-indent: -3000px;
  background: url("../media/icons/block_12dp_EA3323_FILL0_wght400_GRAD0_opsz20.svg") no-repeat 50% 50%;
  width: 12px;
  height: 12px;
}

/* thumb button */

input.thumb {
  border: none;
  cursor: pointer;
  display: inline-block;
  text-indent: -3000px;
  background: url("../media/icons/thumb_up_off_FILL1_wght400_GRAD0_opsz48.svg") no-repeat 50% 50%;
  width: 14px;
  height: 14px;
}

/* red warning bar: guest message at the top of the site, set locked / in maintenance in the pages */
.warning-bar {
  background: var(--color-error);
  padding: 6px;
  margin: 0; /* flat bar like the others */
  width: auto;
  text-align: center;
  color: var(--color-text);
  font-weight: bold;
}

/* feedback boxes: same status colors as the ticket badges and the shoutbox */
.message-error,
.message-ok,
.message-warning,
.message-info {
  padding: 6px 8px;
}

.message-error {
  background: var(--color-error);
  color: var(--color-text);
}

.message-ok {
  background: var(--color-ok);
  color: var(--color-text);
}

.message-warning {
  background: var(--color-warning);
  color: var(--color-dark);
}

.message-info {
  background: var(--color-info);
  color: var(--color-text);
}

.linkbar {
  color: var(--color-text);
  text-align: center;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  padding: 0 27px; /* same side space as the header and the content */
}

.linkbar a {
  color: var(--color-text);
}

/* links on the left, login/user box on the right */
.linkbar-links {
  width: 50%;
  text-align: left;
}

.linkbar-links + .linkbar-links {
  text-align: right;
}

/* showrecord: scrollbar area for file list */

.scroll-file-list {
  max-height: 300px;
  overflow-y: scroll;
}

/* search: dump status tag next to the title (color from the .dump-status-<key> classes) */

.dump-status-tag {
  border: 1px dotted var(--color-dark);
}

.info-table-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media screen and (min-width: 1280px) {
  .info-table tr td {
    padding: 6px 10px;
  }
}

@media screen and (max-width: 750px) {
  section#content-wrap {
    gap: 11px;
    grid-template-columns: 1fr;
    grid-template-rows: none; /* one column, normal rows */
    padding: 15px 15px 0 15px;
  }

  .linkbar {
    color: var(--color-text);
    text-align: center;
    background: var(--color-accent);
    flex-direction: column;
  }

  .linkbar-links {
    flex-basis: 100%;
    width: 100%;
    margin: 8px 0;
  }

  /* on small screens both parts stay centered */
  .linkbar {
    padding: 0 15px;
  }

  .linkbar-links,
  .linkbar-links + .linkbar-links {
    text-align: center;
  }

  .linkbar-links a {
    font-size: 14px;
    margin: 0 4px;
  }

  .mobile-scroll {
    overflow-x: scroll;
    max-width: 100vw;
  }

  .record-table-wrap {
    table-layout: auto;
  }
}

/* =============================================================================
      HEADER LAYOUT: logo on the left (sidebar width), main menu + submenu on its right
      (wide screens only; on screens up to 750px the header stays stacked)
      ========================================================================== */
@media screen and (min-width: 751px) {
  header#site-header {
    display: grid;
    grid-template-columns: 200px 1fr; /* same columns as section#content-wrap */
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 15px 27px 0 27px; /* same side padding as section#content-wrap: the logo is above the sidebar */
  }

  header#site-header #site-banner {
    grid-column: 1;
    grid-row: 1 / span 2;
    height: auto;
    margin-bottom: 0;
    box-shadow: none;
  }

  header#site-header #site-banner > a > img {
    display: block;
    width: 100%;
    height: auto;
  }

  header#site-header nav#site-nav {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  header#site-header .subtitle-area {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  /* pages without a submenu: the main menu is vertically centered next to the logo */
  header#site-header:not(:has(.subtitle-area)) nav#site-nav {
    grid-row: 1 / span 2;
    align-self: center;
  }
}
