:root {
    --bg-page: #f6f1e6;
    --bg-main: #ffffff;
    --bg-soft: #eeeeee; /* #eeeeee; */
    --bg-highlight: #f6f1e6; /* #fffbdc; */
    --text: #222222;
    --text-muted: #666666;
    --text-light: #888888;
    --border: #d8d8d8;
    --border-soft: #e5dcc8;
    --link: #1155cc;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);

    --content-max: 1080px;
    --gap: 20px;
    --gap-small: 12px;
    --radius: 4px;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --line-height: 1.5;
}

/* ---------- base ---------- */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px 12px;
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font-family);
    line-height: var(--line-height);
    overflow-x: hidden;
}

#main {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px 20px 28px;
    background: var(--bg-main);
    box-shadow: 0 0 0 1px var(--border-soft), var(--shadow);
}

/* ---------- typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
    text-wrap: balance;
	width: 100%;
}

h1 {
    margin: 0;
    color: #555555;
    font-size: 1.8rem;
}

h2 {
    margin: 0 0 0.3rem 0;
    color: #555555;
    font-size: 1.4rem;
}

p {
    margin: 0.75rem 0;
}

ol,
ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding: 0;
}

li {
    padding: 0.15rem 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.link {
    color: var(--link);
}

small {
    color: var(--text-light);
}

/* ---------- general images ---------- */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.flag {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

a img.flag {
    opacity: 0.5;
}

a img.flag:hover {
    opacity: 1;
}

#social-media {
	margin-top: 12px;
}
.sm_icon {
    width: 32px;
    height: 32px;
    /* filter: saturate(0.45) brightness(0.95); */
	/* filter: grayscale(0.45) saturate(0.6); */
	filter: grayscale(1);
    transition: filter 0.2s ease;
}

/* show icons clearly when hovering over them */
a:hover .sm_icon,
a:focus .sm_icon {
    filter: none;
}

/* ---------- top area ---------- */

#page_heading {
    width: auto;
    color: var(--text-muted);
    font-variant: small-caps;
}

#lang {
    display: none;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0 0;
    padding: 0;
}

#subtitle {
    display: block;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.2rem;
    font-variant: small-caps;
}

#subtitle p {
    margin: 0.6rem 0 0 0;
}

/* ---------- work blocks ---------- */

.work {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.8rem 20px;
    width: 100%;
    margin: 0 0 1.75rem 0;
}

.work > h2 {
    flex: 0 0 100%;
    margin: 0;
}

.work_movements {
	width: 100%;
}

.work_summary {
    flex: 1 1 460px;
    max-width: 460px;
    min-width: 0;
}
.work_summary p {
	margin-top: 0;
}

.rec_description {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 520px;
    max-width: 520px;
    min-width: 0;
    padding: 10px;
    background: var(--bg-highlight);
    border-radius: var(--radius);
}

.col_left {
    flex: 0 0 auto;
}

.col_right {
    flex: 1 1 0;
    min-width: 0;
}

.rec_description .col_left img {
    width: 150px;
    height: auto;
}

/* ---------- contact ---------- */

.contact {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin: 24px 0 36px 0;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.contact > .col_left {
    flex: 0 0 auto;
}

.contact > .col_right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 120px;
    min-width: 0;
}

.figure {
    margin: 0;
}

.figcaption {
    /* margin-top: 0.45rem; */
	margin: 0.45rem 0 0 0.45rem;
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: left;
}

#portrait {
    width: 144px;
    height: auto;
	margin: 0 0.45rem;
}

.contact_info,
.social_media_info {
    line-height: 1.8;
}

.emaillink {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
	letter-spacing: -0.06em;
    word-break: break-word;
}

.social_media_info a {
    display: inline-block;
    margin: 0 8px 8px 0;
    vertical-align: middle;
}

/* ------ special for pages with <body class="stacked-works">  -------- */
/* These pages don't use a two-column layout but simply stack the divs. */

.stacked-works .work {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.stacked-works .work > * {
    width: 100%;
    max-width: 100%;
}

.stacked-works .music_example,
.stacked-works .videoframe {
    width: 100%;
    max-width: 560px;
}

.stacked-works .videoframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.duration p {
	margin: 0;
	padding: 0;
}

/* ---------- misc retained ---------- */

#print_header {
    display: none;
}

.printview {
    color: #888888;
}

.footer {
    margin: 12px;
}

.error,
.warning {
    color: red;
}

/* music example / optional retained elements */

.paragraph {
    display: block;
}

.score_prev {
    width: 140px;
	margin-left: 18px;
	margin-right: 24px;
}

.p_top {
    margin-top: 0;
}

.formatted_text {
    text-indent: 30px;
}

.quotation {
    background-color: #f6f1e6;
    padding: 10px 20px;
    border: 1px dotted gray;
}

.cover_art {
    width: 280px;
    height: auto;
}

.streaming {
	width: 100%;
    /* max-width: 560px; */
    padding: 0 10px 0 18px;
}
.streaming img {
	display: inline;
	vertical-align: middle;
}
.stream {
	margin-top: 12px;
}
#streaming-mvt-1 {
	/* display: none; */
}

.cover {
	width: 100%;
    max-width: 560px;
    margin-bottom: 24px;
}

#dropdown {
   margin: 18px 0 0 18px;
}

#dropdown label {
	margin-right: 18px;
}

#dropdown select {
    height: 28px;
    width: 160px;
}

.stream,
iframe.stream {
    display: none;
}

.announcement {
    max-width: 560px;
}

.music_example {
    margin: 12px 0 24px 0;
}

.music_example img {
    display: block;
    width: 100%;
    max-width: 556px;
    height: auto;
}

li.stream {
    margin-top: 8px;
    list-style-type: none;
}

.player_icon {
    width: 30px;
    height: 30px;
    margin: 0 8px 0 8px;
}

.player_icon_left {
    width: 30px;
    height: 30px;
    margin: 0 8px 0 0;
}

.videoframe {
    border: 0;
}

.recording-description {
	margin-top: 24px;
}

#web_stat {
    font-size: 9pt;
}

#web_stat th {
    border-bottom: 1px solid black;
    border-left: 1px solid grey;
}

#web_stat td {
    text-align: left;
    border-left: 1px solid grey;
    overflow: hidden;
    text-overflow: ellipsis;
}

#web_stat #pg_col {
    border-right: 1px solid grey;
}

#web_stat #ua_col,
#web_stat td.ua_col,
.textOverflow {
    width: 400px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.header_link {
    font-weight: bold;
    color: #009;
}

.bot,
.bot a {
    color: #736;
}

.button-60 {
    align-items: center;
    background-color: #f6ffe6; /* #fff; */
    border: 1px solid #dbdbdb;
    border-radius: 0.375em;
    box-shadow: none;
    box-sizing: border-box;
    color: #363636;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    line-height: 1.5;
    padding: calc(0.3em - 1px) 1em;
    position: relative;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
}

.button-60:active {
    border-color: #4a4a4a;
    outline: 0;
}

.button-60:focus {
    border-color: #485fc7;
    outline: 0;
}

.button-60:hover {
    border-color: #b5b5b5;
}

.button-60:focus:not(:active) {
    box-shadow: rgba(72, 95, 199, 0.25) 0 0 0 0.125em;
}


/* ---------- medium screens ---------- */

@media (max-width: 1106px) {
    .work {
        flex-direction: column;
        gap: 0.8rem;
    }

    .work > h2,
    .work_summary,
    .rec_description {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 620px) {
    body {
        padding: 16px 10px;
    }

    #main {
        padding: 16px 14px 22px;
    }

	.streaming,
	.cover {
		max-width: 100%;
	}

    .contact {
        flex-direction: column;
        gap: 14px;
    }

    .contact > .col_right {
        width: 100%;
        min-width: 0;
    }
}

/* ---------- small screens ---------- */

@media (max-width: 460px) {
    html,
    body {
		font-size: 90%; /* Reduces global font size by 20% */
   }

    body {
        padding: 8px;
    }

    #main {
        width: 100%;
        min-width: 0;
        padding: 12px 10px 18px;
    }

    .work,
    .work_summary,
    .rec_description,
    .contact,
    .contact > .col_left,
    .contact > .col_right,
    .col_left,
    .col_right {
        min-width: 0;
        max-width: 100%;
    }

    .rec_description {
        flex-direction: column;
        gap: 10px;
    }

    .rec_description .col_left img {
        width: 120px;
    }

    #portrait {
        width: 120px;
    }

    h1, h2, p, li, .col_right, .contact_info, .social_media_info {
        overflow-wrap: anywhere;
    }

    .emaillink,
    .emaillink a {
        display: inline-block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
		font-size: 0.8rem;
    }

    .sm_icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 380px) {
    html,
    body {
		font-size: 85%; 
    }

    .rec_description .col_left img,
    #portrait {
        width: 104px;
    }

}

/* ---------- print ---------- */

@page {
    size: A4;
    margin: 12mm 24mm 12mm 24mm;
}

@media print {
    html,
    body {
        width: 210mm;
        height: 297mm;
        font-size: 11pt;
        line-height: 1.2;
        background: #fff;
    }

    body {
        padding: 0;
    }

    #main {
        max-width: none;
        padding: 0;
        box-shadow: none;
        background: #fff;
    }

    .link,
    a {
        color: black;
        text-decoration: none;
    }

    h1 {
        font-size: 20pt;
    }

    h2 {
        font-size: 16pt;
    }

    .printmargin {
        margin-top: 32px;
    }

    #lang,
    #nav_back,
    #streaming_provider,
    .videoframe {
        display: none !important;
    }

    #print_header {
        display: block;
        page-break-before: always;
    }

    .cover_art {
        width: 180px;
        height: auto;
    }

    .figcaption {
        font-size: 9px;
    }

    .printview {
        display: block;
        clear: both;
    }

    .contact {
        background: none;
        padding: 0;
    }

    .rec_description {
        background: none;
        padding-left: 0;
    }
	
	.quotation {
		width: 95%;
		margin-botto: 12px;
	}
	
    .print_unit {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .print_unit h3,
    .print_unit .duration,
    .print_unit .music_example,
    .print_unit .music_example img {
        break-inside: avoid;
        page-break-inside: avoid;
        break-after: avoid;
        page-break-after: avoid;
    }
	
	.work,
	.print_unit,
	.contact,
	.rec_description {
		display: block !important;
	}

	.col_left,
	.col_right,
	.work_summary,
	.music_example {
		display: block !important;
		width: auto !important;
		max-width: 100% !important;
	}

	.music_example img {
		display: block;
		max-width: 100%;
		height: auto;
	}
}

/* ---------- scrollbars ---------- */

* {
    scrollbar-width: thin;
    scrollbar-color: #cacae8 transparent;
}

*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #cacae8;
    border-radius: 10px;
}