
nav.entry_nav {
    display: flex;
    gap: 5px;
    margin: 10px 0;   /* 10px above and below; was 20px above until 2026-11-21 */
}
nav.entry_nav a,
nav.entry_nav span.entry_nav_disabled {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 5px;   /* was 8px like the cards; on a button this short that looked rounder than the cards (2026-11-21) */
    font-size: 16px;
    text-decoration: none;
    background: var(--panel-2);
    color: var(--fg-soft);
}
nav.entry_nav a:hover,
nav.entry_nav a:active {
    color: var(--fg-strong);
    background-color: var(--line);
}
nav.entry_nav span.entry_nav_disabled {
    opacity: 0.4;
}
div.catalog_main_labels {
    padding: 8px 15px;
    background: var(--panel-2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid var(--line);
}
main.catalog_main {
    background: var(--panel);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 5px 15px;
}
div.catalog_entry_labels {
	display: block;
    overflow:auto;
    height:100%;
    padding: 15px 20px;
    background: var(--panel-2);
    border-radius: 8px;
    margin-bottom: 20px;
}

div.catalog_entry:before {
    content: "";
    clear: both;
    display: block;
}


td.entry_title {
	overflow:hidden;
	word-break:normal;
    font-family: arial;
    font-size: 22px;
}
td.entry_number {
	overflow:hidden;
	word-break:normal;
    font-family: arial;
    margin-top: -12px;
    font-size: 60px;
    text-align: right;
    overflow:hidden;
}
td.entry_date {
	overflow:hidden;
	word-break:normal;
	margin-top:5px;
    font-family: arial;
    font-size: 19px;
}


.filter_text_field {
    width: 19%;
    height: 20px;
    margin-bottom: 5px;
    width: 100px;
}

p.collections_summary {
    color: var(--muted);
    margin: 4px 0 0;   /* sits below the filters since 2026-11-20 */
}
h2.period_heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 14px;
    font-weight: normal;
    margin: 0 0 4px;
}
span.period_letter {
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
}
span.period_range {
    font-size: 16px;
    color: var(--muted);
}
p.period_description {
    color: var(--fg-soft);
    margin: 0 0 16px;
}
div.collection_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
a.collection_card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    text-decoration: none;
    color: var(--fg-soft);
    transition: border-color 0.15s;
}
a.collection_card:hover {
    border-color: var(--line-strong);
}
span.collection_name {
    font-size: 18px;
}
span.collection_numeral {
    font-weight: bold;
}
span.collection_meta {
    font-size: 13.5px;
    white-space: nowrap;
    color: var(--muted);
}
span.collection_years {
    white-space: nowrap;
}
/* ---- filter form (restyled 2026-11-20) ---- */
#box_catalog_filter .filter_intro {
    margin: 10px 0 18px;
    /* max-width: 90ch;   removed 2026-11-21: the text stopped well short of the fields below it */
    color: var(--fg-soft);
}
#box_catalog_filter #form {
    text-align: left;
}
#box_catalog_filter .filter_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 10px 36px;
}
#box_catalog_filter .filter_element {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    overflow: visible;
    font-size: 15px;
    min-height: 32px;
}
#box_catalog_filter .filter_element > label:first-child {
    flex: 0 0 122px;
    color: var(--fg-soft);
}
#box_catalog_filter .filter_hint,
#box_catalog_filter .filter_to {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}
#box_catalog_filter input[type="text"],
#box_catalog_filter select {
    height: 30px;
    margin: 0;
    padding: 0 8px;
    font: inherit;
    font-size: 15px;
    color: var(--fg-strong);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
}
#box_catalog_filter input[type="text"]:focus,
#box_catalog_filter select:focus {
    outline: none;
    border-color: var(--link);
}
#box_catalog_filter .filter_text_field { width: 120px; }
#box_catalog_filter .filter_num { width: 62px; }
#box_catalog_filter .filter_short { width: 40px; text-align: center; }
#box_catalog_filter select { width: 150px; }
#box_catalog_filter .filter_radio {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
    cursor: pointer;
}
#box_catalog_filter .filter_radio input {
    accent-color: var(--link);
    margin: 0;
}
#box_catalog_filter .filter_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
#box_catalog_filter .filter_button {
    height: 34px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    color: var(--fg-soft);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
#box_catalog_filter .filter_button:hover {
    color: var(--fg-strong);
    border-color: var(--fg-soft);
}
#box_catalog_filter .filter_button_main {
    color: var(--bg);
    background: var(--link);
    border-color: var(--link);
}
#box_catalog_filter .filter_button_main:hover {
    color: var(--bg);
    background: var(--link-hover);
    border-color: var(--link-hover);
}
#box_catalog_filter .filter_note {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
}
@media only screen and (max-width: 760px) {
    #box_catalog_filter .filter_grid { grid-template-columns: 1fr; }
    #box_catalog_filter .filter_note { margin-left: 0; flex-basis: 100%; }
}
details#box_catalog_filter summary {
    cursor: pointer;
}
details#box_catalog_filter summary h2 {
    display: inline;
}
div.catalog_results_heading {
    margin-bottom: 15px;
}
div.catalog_results_heading h2 {
    font-size: 24px;
    margin-top: 8px;
}
details.related_group {
    margin-bottom: 10px;
}
details.related_group summary {
    cursor: pointer;
    margin-bottom: 4px;
}
form.entry_goto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}
form.entry_goto input[type="text"] {
    width: 80px;
    height: 30px;
    font-size: 15px;
}
#go_button {
    height: 34px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--fg-soft);
}

a.headon:link,
a.headon:visited,
a.headon:active {
    text-decoration: none;
    color: var(--fg-strong);
    font-size: 14px;
    font-weight: bold;
}
a.headon:hover {
    text-decoration: none;
    color: var(--muted);
}
a.head:link,
a.head:visited,
a.head:active {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: bold;
}
a.head:hover {
    text-decoration: none;
    color: var(--fg-soft);
}
a.e:link,
a.e:visited,
a.e:active {
    text-decoration: none;
    color: var(--fg-soft);
    font-size: 14px;
}
a.e:hover {
    text-decoration: none;
    color: var(--fg-strong);
}
a.cat_link:link {
    text-decoration: none;
    color: var(--link);
    white-space: nowrap;
}
a.cat_link:visited {
    text-decoration: none;
    color: var(--link);
    white-space: nowrap;
}
a.cat_link:active {
    text-decoration: none;
    color: var(--link);
    white-space: nowrap;
}
a.cat_link:hover {
    text-decoration: none;
    color: var(--red);
    white-space: nowrap;
}
div.cat_row {
	white-space: nowrap;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
}
div.cat_row:last-child {
	border-bottom: none;
}
div.cat_row:hover {
	background: var(--panel-2);
}

div.t {

	display: inline-block;
    text-align: left;
    margin-left: 5px;
    margin-right: 8px;
    font-size: 14px;
    width: 225px;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
div.d {

	display: inline-block;
    text-align: left;
    margin-left: 0px;
    margin-right: 8px;
    font-size: 14px;
    width: 79px;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
div.i {

    display: inline-block;
    text-align: left;
    margin-left: 0px;
    margin-right: 8px;
    font-size: 14px;
    width: 147px;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
div.l {

	display: inline-block;
    text-align: left;
    margin-left: 0px;
	margin-right: 5px;
    font-size: 14px;
    width: 82px;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


@media only screen and (min-width: 1059px) and (max-width: 1200px) {

    td.entry_title {
        font-size: 1.833vw;
    }
    td.entry_number {
        margin-top: -1.0vw;
        font-size: 5.0vw;
    }
    td.entry_date {
        font-size: 1.5833vw;
    }
    div.t {
        width: 16.20vw;
    }
    div.d {
        width: 6.91vw;
    }
    div.i {
        width: 12.5167vw;
    }
    div.l {
        width: 8.083vw;
    }
}
@media only screen and (min-width: 917px) and (max-width: 1058px) {

    td.entry_title {
        font-size: 2.033vw;
    }
    td.entry_number {
        margin-top: -0.8vw;
        font-size: 5.5vw;
    }
    td.entry_date {
        font-size: 1.7833vw;
    }
    .filter_text_field {
        width: 70px;
    }
    div.t {
        width: 19.3vw;
    }
    div.d {
        width: 8.067vw;
    }
    div.i {
        width: 14.0vw;
    }
    div.l {
        display: none;
    }
}
@media only screen and (min-width: 841px) and (max-width: 916px) {

    td.entry_title {
        font-size: 2.333vw;
    }
    td.entry_number {
        margin-top: -0.06vw;
        font-size: 6.0vw;
    }
    td.entry_date {
        font-size: 2.0833vw;
    }
    .filter_text_field {
        width: 45px;
    }
    div.t {
        width: 33.2vw;
    }
    div.d {
        width: 8.667vw;
    }
    div.i {
        display: none;
    }
    div.l {
        display: none;
    }
}
@media only screen and (min-width: 769px) and (max-width: 840px) {

    td.entry_title {
        font-size: 2.403vw;
    }
    td.entry_number {
        margin-top: 0.46vw;
        font-size: 7.0vw;
    }
    td.entry_date {
        font-size: 2.1033vw;
    }
    .filter_text_field {
        width: 30px;
    }
    div.t {
        width: 32.2vw;
    }
    div.d {
        width: 9.267vw;
    }
    div.i {
        display: none;
    }
    div.l {
        display: none;
    }
}
@media only screen and (max-width: 768px) {

	#box_composer_profile {
		margin-top:0px !important;

	}

    div.filter {
        margin-bottom: 5px;
        height: 100%;
    }
    #form {
        text-align: center;
    }
    main.catalog_main {
        height: 100% !important;
    }
    div.catalog_main_labels {
    
    }
    div.catalog_entry_labels {
  
    }
    div.t {
        width: 34%;
    }
    div.d {
        width: 20%;
    }
    div.i {
        width: 25%;
    }
    div.l {
        width: 14%;
    }
}
@media only screen and (max-width: 600px) {
    td.entry_title {
        font-size: 4.233vw;
    }
    td.entry_number {
        margin-top: -0.06vw;
        font-size: 12.0vw;
    }
    td.entry_date {
        font-size: 3.9833vw;
    }
    div.l {
        display: none;
    }
    div.i {
        width: 38%;
    }
}
@media only screen and (max-width: 500px) {
    td.entry_number {
        margin-top: 0.16vw;
    }
}

/* statistics panel under the filters (module/box_statistics.php) */
#box_statistics {
    margin-top: 20px;
}
div.stat_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.stat_tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 12px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    text-decoration: none;
    color: var(--fg-soft);
}
a.stat_tile {
    transition: border-color 0.15s;
}
a.stat_tile:hover {
    border-color: var(--line-strong);
}
span.stat_figure {
    font-size: 26px;
    line-height: 1.2;
    color: var(--fg);
    white-space: nowrap;
}
span.stat_figure sup {
    font-size: 0.6em;
}
span.stat_label {
    font-size: 15px;
}
span.stat_note {
    font-size: 13.5px;
    color: var(--muted);
}
@media only screen and (max-width: 1000px) {
    div.stat_grid { grid-template-columns: repeat(3, 1fr); }
}
@media only screen and (max-width: 700px) {
    div.stat_grid { grid-template-columns: repeat(2, 1fr); }
    span.stat_figure { font-size: 22px; }
}

/* works list (script/box_catalog_main.php), wide layout since 2026-11-21.
   Seven columns: no., title, date, location, tuning, instrumentation, duration. The title takes the room that is left.
   Columns drop away as the window narrows: instrumentation first, then tuning, location, number, and last duration.
   These rules come after the older div.t / div.d / div.i / div.l rules above and override them inside .works_list. */
.works_list .cat_row.works_head,
.works_list a.e {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 88px 175px 120px 130px 90px;
    column-gap: 16px;
    align-items: baseline;
    padding: 0 5px;
}
.works_list .cat_row > a.e > div,
.works_list .works_head > div {
    display: block;
    width: auto;
    margin: 0;
    font-size: 14px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.works_list div.n { color: var(--muted); }
.works_list sup { font-size: 0.7em; line-height: 0; }

@media only screen and (max-width: 1150px) {
    .works_list .cat_row > a.e > div.i, .works_list .works_head > div.i { display: none; }
    .works_list .cat_row.works_head, .works_list a.e { grid-template-columns: 58px minmax(0, 1fr) 88px 190px 140px 96px; }
}
@media only screen and (max-width: 940px) {
    .works_list .cat_row > a.e > div.u, .works_list .works_head > div.u { display: none; }
    .works_list .cat_row.works_head, .works_list a.e { grid-template-columns: 58px minmax(0, 1fr) 88px 180px 96px; }
}
@media only screen and (max-width: 760px) {
    .works_list .cat_row > a.e > div.p, .works_list .works_head > div.p { display: none; }
    .works_list .cat_row.works_head, .works_list a.e { grid-template-columns: 54px minmax(0, 1fr) 84px 84px; column-gap: 10px; }
}
@media only screen and (max-width: 520px) {
    .works_list .cat_row > a.e > div.n, .works_list .works_head > div.n { display: none; }
    .works_list .cat_row.works_head, .works_list a.e { grid-template-columns: minmax(0, 1fr) 84px 76px; }
}
@media only screen and (max-width: 400px) {
    .works_list .cat_row > a.e > div.l, .works_list .works_head > div.l { display: none; }
    .works_list .cat_row.works_head, .works_list a.e { grid-template-columns: minmax(0, 1fr) 84px; }
}

/* work page: the heading (title, date, number) and the details are one card since 2026-11-21.
   They are still two elements in the markup; these rules join them: same ground, no gap, one thin line between.
   To separate them again, delete this block. */
#box_catalog_entry_labels {
    margin-bottom: 0;
    background: var(--panel);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 18px 20px 14px;
}
#box_catalog_entry {
    border-radius: 0 0 8px 8px;
}
#box_catalog_entry_labels table { border-collapse: collapse; }
#box_catalog_entry_labels td { padding: 0; }
#box_catalog_entry_labels td.entry_date { padding-top: 10px; }

/* the sentence at the top of the catalog overview */
p.catalog_intro {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--fg);
}


/* a catalog entry's player for the work's main recording (script/box_catalog_entry.php) */
div.entry_player {
	margin:4px 0 16px 0;
}
div.entry_player audio {
	width:100%;
	max-width:640px;
	height:40px;
	display:block;
}
div.entry_player video {
	width:100%;
	max-width:640px;
	display:block;
	background:#000;
}
