@charset "utf-8";
/* CSS Document */

/* Reset some defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #333;
  padding: 0rem;
	background-image: url(assets/body-bg.jpg);
}

a:link {
	color: #0030a0;
}
a:visited {
	color: #003366;
}
a:active {
	color: #FF0000;
}
a:hover {
	color: #FF6600;
}


input, textarea, select {
	border: 1px #ccc solid;
	color: #111111; 
}

.nobr {
	white-space: nowrap;
}

.muted {
	color: #666;
	font-size: 0.9rem;
}

li a {
	/*background: url("assets/icons/external-small.png") no-repeat right;*/
	padding-right: 18px;
}
ul {
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 2em;
}

.price { color: #990000; }

/* Header */

header {
  text-align: center;
  padding: 0rem;
  border-bottom: 1px solid #ccc;
}

header h1 {
  font-size: 2rem;
  color: #291212;
}

header h2 {
  font-size: 1.2rem;
  color: #999;
  margin-top: 0.5rem;
}

main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
	

	background-color: #fff;
	color: #333;
	border: 1px solid #ddd;
	line-height: 130%;
	border-radius: 0.3em;
	
}

#top {
	padding: 0;
	background-color: #efeddf;
	background-image: url(assets/background.jpg);
	width: 100%;
	overflow: hidden;
}

.top-bar {
  display: flex;
  align-items: center;
  	justify-content: center;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.site_title {
	font-size: 2.2rem;
	color: #291212;
}

.site_title a {
    color: inherit;
    text-decoration: none;
}

.site_title a:hover {
    text-decoration: none;
	opacity: 0.85;
}

.title-main {
    display:block;
    font-size:42px;
    font-weight:600;
    letter-spacing:0.5px;
    line-height:1;
}

.title-sub {
    display:block;
    margin-top:6px;
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    opacity:0.85;
}

.site_descr {
	color: #996633;
	font-style: italic;
	font-size: 0.9rem;
}


#topmenu {
	padding: 0;
	margin: 0;
	background-color: #996633;
	font-weight: bold;
	text-align: center;
	border: 1px solid #ddd;
	zoom: 1;
	filter: alpha(opacity=50);
	opacity: 0.6;
}

.transparent {
}

#topmenu a {
	padding-left: 0.5em;
	padding-right: 0.5em;
	padding-bottom: 0.1em;
	padding-top: 0.1em;
	border-right: 1px solid #efeddf;
	text-decoration: none;
	color: #fff;
}

#topmenu a:hover {
	background-image: none;
	background-color: #efeddf;
	text-decoration: none;
	color: #CC0000;
}


.search-form {
  display: flex;
  gap: 0.5rem;
	padding-left: 1em;
}

.search-form input {
  padding: 0.4rem;
  font-size: 1rem;
}

.search-form button {
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
}

.title-group {
	margin: 0em 0.5em 0em 0.5em;
  	text-align: right;
}


/* Content */

.content {
	line-height: 1.6;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.content h2 {
  font-size: 1.5rem;
  margin-top: 0.1em;
  margin-bottom: 0.5rem;
}

.content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}


.page_title {
	font-weight: bold;
}

.page_subtitle {
	margin-top: 1em;
	font-weight: normal;
}

._opera-events a {
  font-size: 0.8rem;
  color: #0030a0; /* optional: keep your link color */
  text-decoration: underline; /* optional */
}

._opera-events p {
  margin-bottom: 1em;
}

/* Tables */

.table_all {
	background-color: #dbc7b7;
}

.table_all td {
	padding: 0.3em;
	padding-left: 0.5em;
}
	
.table_all thead tr {
	background-color: #efeddf;
}

.table_all tbody tr {
	background-color: #FFFFFF;
	vertical-align: top;
}

.table_all thead tr th {
	border: 1px solid #FFF;
	padding-left: 15px;
	padding-right: 30px;
}

/* hovered table rows */
.table_all tbody tr:hover {
    background: #fffcf5;
}



/* Opera table typography improvements */

.table_all tbody td:first-child a {
    font-weight: bold;
    font-size: 1.05rem;
}

.table_all tbody td:nth-child(3) a {
    font-style: italic;
}

.table_all tbody td:nth-child(2) {
    color: #666;
    font-size: 0.9rem;
}

.table_all tbody td:nth-child(4) {
    font-size: 0.9rem;
    color: #444;
}

.table_all td {
    padding-top: 0.45em;
    padding-bottom: 0.45em;
}




/* sort */
.table_all.tablesorter thead tr .header {
	background-image: url(assets/icons/bg.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
.table_all.tablesorter thead tr .headerSortUp {
	background-image: url(assets/icons/asc.gif);
}
.table_all.tablesorter thead tr .headerSortDown {
	background-image: url(assets/icons/desc.gif);
}

.table_all.tablesorter thead tr .headerSortDown, .table_all.tablesorter thead tr .headerSortUp {
	background-color: #ECDAB5;
}


/* Libretto */
act {
	font-size: 1.2em;
	font-weight: bold;
	
}

.act {
	font-size: 1.2em;
	font-weight: bold;
}

.quick_link {
	font-size: 1.1em;
	font-weight: bold;
}

/* Act navigation bar */
.act-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.8rem 0;
}
.act-nav__item {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border: 1px solid #aaa;
    border-radius: 3px;
    font-size: 0.88em;
    text-decoration: none;
    background: #f5f5f5;
    color: #0030a0;
}
.act-nav__item:hover {
    background: #eeede0;
    border-color: #996633;
    color: #996633;
}
.act-nav__item--current {
    background: #eeede0;
    border-color: #996633;
    color: #333;
    font-weight: bold;
    cursor: default;
}


.libretto-author {
    font-style: italic;
    margin-top: 0.6em;
    color: #555;
    font-size: 0.95em;
}


/* Breadcrumb */
.breadcrumb {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 0.6rem;
}
.breadcrumb a {
    color: #888;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #996633;
    text-decoration: underline;
}

/* Images gallery */

ul.gallery {
	list-style: none;
	padding-bottom: 6.56em;	/* image height + borders width*/
	margin-left: 0;
	padding-left: 0;
	
	
  display: flex;
  flex-wrap: wrap;       /* allow items to wrap on smaller screens */
  gap: 5px;              /* space between items, replaces margin */
}

ul.gallery li {
	
  display: block;        /* optional, default for li */
  /* float removed */
  /* margin removed, handled by gap */	
	
	/*float: left;
	margin: 0 5px 0 0;*/
}

ul.gallery a {
	padding: 2px;
	display: block;
	border: 1px #dbc7b7 solid;
	border-radius: 5px;
	line-height: 0;
}

ul.gallery a:hover { border: 1px #333 solid; }


.gallery a {
	background: none !important;
	border: 1px #dbc7b7 solid;
	display: block;
	padding: 2px !important;
	/*height: 60px;
	width: 60px;*/
}
	
.gallery a:hover { border-color: #333; }

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */


.composer_gallery {
	display: block;
	float: left;
	padding: .5em;
	margin: .5em;
	border: 1px #dbc7b7 solid;
	border-radius: 5px;
	text-align: center; /* Horizontally centers inline content */
}


/* Images inside links */
.composer_gallery a img {
  border: 1px solid #fff;
}

.composer_gallery a:hover img {
  border: 1px solid #dbc7b7;
}



/* Right menu table */
.table_menu {
	float: right;
	clear: right;
	background-color: rgb(249, 249, 249);
	border: 1px solid rgb(170, 170, 170);
	margin: 0pt 0pt 1em 1em;
	padding: 0;
	border-spacing: 0.4em;
	text-align: left;
	font-size: 0.8em;
}

.table_menu_head td {
	background-color: #efeddf;
	line-height: 1.5em;
	padding: 0;
	padding-left: .5em;
	padding-right: .5em;
}

.table_menu_row td {
	line-height: 1.5em;
	padding-left: .5em;
	padding-right: .5em;
}


/* History */

.history-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.history-card {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.history-image img {
    max-width: 300px;
    height: auto;
    display: block;
}

.history-content {
    flex: 1;
}

.history-date {
    font-weight: bold;
    margin-bottom: 10px;
}

.history-opera {
    font-weight: bold;
}

.history-source,
.history-facebook {
    margin-top: 8px;
    font-size: 0.9em;
}

.content .history-text {
    line-height: 1.6;
}

.content .history-date {
    color: #291212;
}


.history-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 20px 0;
}

.history-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.history-date {
    font-weight: bold;
    white-space: nowrap;
}

/* Footer */


footer {
  background: #f0ece0;
  color: #555;
  margin-top: 3rem;
  padding: 0;
  border-top: 2px solid #d4c9a8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-title {
  font-weight: bold;
  color: #291212;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #777;
  margin: 0 0 1rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d4c9a8;
  color: #291212;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: #996633;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #996633;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #291212;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid #d4c9a8;
  font-size: 0.82rem;
  color: #999;
}

.footer-bottom a {
  color: #996633;
  text-decoration: none;
}

.footer-bottom a:hover { color: #291212; }

/* Responsive for smaller screens */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  header h2 {
    font-size: 1rem;
  }
	
  .content h1 {
    font-size: 1.5rem;
  }
	
	.content h2 {
	  font-size: 1.2rem;
	  margin-bottom: 0.5rem;
	}	
  .content h3 {
    font-size: 1rem;
  }
}


/* ============================================================
   HOME (namespaced so it doesn't break other pages)
============================================================ */

.home { max-width: 1100px; margin: 0 auto; padding: 16px; }

.home-hero { margin: 12px 0 18px; }
.home-hero__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .home-hero__inner { grid-template-columns: 1fr; }
}

.home-hero__title { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
.home-hero__lead { font-size: 16px; line-height: 1.6; margin: 0 0 12px; color: #333; }

.home-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 8px; }
.home-hero__quicklinks { font-size: 14px; color: #555; }
.home-hero__quicklinks a { color: inherit; text-decoration: underline; }
.home-hero__quicklinks .sep { margin: 0 6px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px 14px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.card__h { font-size: 18px; margin: 0; }
.card__more { font-size: 13px; text-decoration: underline; color: #444; }

.muted { color: #666; font-size: 14px; line-height: 1.5; }

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
}
.btn--small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }

.btn--primary {
	font-weight: bold;
	opacity: 0.9;
  background: #996633;
  color: #fff;
}


.btn--primary,
.btn--primary:link,
.btn--primary:visited {
  color: #fff;
}

.btn--primary:hover {
  background: #7f4f26;
	background-color: #efeddf;
	color: #CC0000;
}

.btn--ghost { background: #fff; border-color: #ddd; color: #111; }
.btn--ghost:hover { background: #fafafa; }

/* Composer thumb grid */
.thumbgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .home-hero__card { order: -1; }
}
@media (max-width: 980px) {
  .thumbgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .thumbgrid { grid-template-columns: repeat(2, 1fr); }
}

.thumb {
  display: block;
  text-decoration: none;
  color: inherit;
}
.thumb__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
}
.thumb__ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px dashed #ddd;
  color: #777;
  font-size: 12px;
}
.thumb__label { display: block; margin-top: 6px; }
.thumb__name { display: block; font-weight: 600; font-size: 13px; line-height: 1.25; }
.thumb__dates { display: block; font-size: 12px; color: #666; }

/* Lists */
.list { margin: 0; padding: 0; list-style: none; }
.list__item { padding: 10px 0; border-top: 1px solid #f0f0f0; }
.list__item:first-child { border-top: none; padding-top: 0; }
.list__title { font-weight: 600; text-decoration: none; color: #111; }
.list__meta { display: inline-block; margin-left: 8px; color: #666; font-size: 13px; }
.list__meta a { color: inherit; text-decoration: underline; }

/* History */
.history__item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
}
.history__item:first-child { border-top: none; padding-top: 0; }
.history__year { font-weight: 700; color: #111; }
.history__text { color: #222; line-height: 1.45; }
.history__src { margin-top: 6px; font-size: 13px; }
.history__src a { text-decoration: underline; }

/* Latest paperback card layout */
.book { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.book__cover { width: 90px; height: auto; border-radius: 10px; border: 1px solid #eee; display: block; }
.book__name { font-weight: 700; margin-bottom: 4px; }
.book__sub { font-size: 13px; color: #666; margin-bottom: 10px; }

.book__desc {
  font-size: 0.9rem;
  margin: 6px 0 10px 0;
  color: #444;
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.9rem;
}


/* ============================================================
   Facebook Opera Card (Classical Aesthetic)
============================================================ */

.card--facebook {
  background: #faf7f1;
  border: 1px solid #e5dccf;
  position: relative;
}

/* subtle decorative top rule */
.card--facebook::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(to right, #996633, transparent);
  margin-bottom: 12px;
}

.card--facebook .card__h {
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #4a2c14;
}

.card__lead {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 6px;
}

.card__note {
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-bottom: 14px;
}

/* Facebook button but classical tone */
.btn--fb {
  background: #996633;
  color: #fff;
  border: 1px solid #7f4f26;
}

.btn--fb:hover {
  background: #7f4f26;
  color: #fff;
}



.hero-achievement {
  margin: 18px 0 10px 0;
  padding: 10px 14px;
  background: #f6f2e8;
  border-left: 4px solid #b08d2f;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.hero-achievement strong {
  font-weight: 600;
}

.hero-achievement a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.hero-achievement a:hover {
  text-decoration: underline;
}


.libretti-achievement {
  margin: 28px 0;
  padding: 16px 20px;
  background: #faf8f2;
  border-left: 3px solid #b08d2f;
}

.libretti-achievement__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8a7a4a;
  margin-bottom: 8px;
}

.libretti-achievement p {
  margin: 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.libretti-achievement__link a {
  text-decoration: none;
  color: #000;
}

.libretti-achievement__link a:hover {
  text-decoration: underline;
}




.opera-table-wrapper {
    
    margin: 20px auto;
}

/* Main table */
.opera-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #dbc7b7;
    font-size: 0.95rem;
}

/* Header */
.opera-table thead tr {
    background-color: #efeddf;
}

.opera-table thead th {
    border: 1px solid #ffffff;
    padding: 6px 20px 6px 12px;
    font-weight: bold;
}

/* Rows */
.opera-table tbody tr {
    background-color: #ffffff;
    vertical-align: top;
}

.opera-table td {
    padding: 6px 10px;
}

/* Hover effect (same as your existing tables) */
.opera-table tbody tr:hover {
    background: #fffcf5;
}

/* Links */
.opera-table a {
    text-decoration: none;
}

.opera-table a:hover {
    text-decoration: underline;
}

/* Center columns */
.center {
    text-align: center;
}

/* Trophy icon */
.opera-trophy {
    height: 14px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Note below table */
.opera-note {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}


/* Opera title column */
.opera-table td:first-child a {
    font-weight: bold;
    font-size: 1.05rem;
}

/* Composer column */
.opera-table td:nth-child(3) a {
    font-style: italic;
}

/* Year column */
.opera-table td:nth-child(2) {
    color: #666;
    font-size: 0.9rem;
}

/* Libretto languages */
.opera-table td:nth-child(4) {
    font-size: 0.9rem;
    color: #444;
}

/* Header typography */
.opera-table thead th {
    letter-spacing: 0.03em;
}



.libretti-benefits {
  margin: 12px 0 18px 20px;
}

.libretti-benefits li {
  margin-bottom: 6px;
}



.opera-book-promo {
  display: flex;
  gap: 14px;
  margin: 14px 0 18px 0;
  padding: 14px;
  border: 1px solid #e2e2e2;
  background: #fafafa;
}

.opera-book-promo__icon {
  font-size: 26px;
  line-height: 1;
}

.opera-book-promo__title {
  font-weight: 600;
  margin-bottom: 4px;
}

.opera-book-promo p {
  margin: 4px 0 8px 0;
}

.opera-book-promo__cover img {
  display: block;
}

.kofi-block {
  margin: 40px 0 30px;
  padding: 16px 20px;
  background: #fffdf9;
  border: 1px solid #f0e8d8;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #555;
}

.kofi-block p {
  margin: 0 0 10px;
}

/* Translations list page */
.trans-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.trans-list li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.trans-list li a {
  font-weight: 600;
  color: #291212;
}

.trans-list li a:hover {
  color: #996633;
}

.trans-list__composer {
  color: #888;
  font-size: 0.88rem;
}

.kofi-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #f5efe2;
  border: 1px solid #d8cdb2;
  border-radius: 4px;
  color: #5a4a2f;
  text-decoration: none;
  font-size: 0.95rem;
}
.kofi-btn:hover {
  background: #efe6d2;
}




    .auth-wrap {
      max-width: 480px;
      margin: 2.5rem auto;
      padding: 0 1rem;
    }
    .auth-box {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 2rem 2.2rem;
    }
    .auth-box h2 {
      margin-top: 0;
      margin-bottom: 1.4rem;
      color: #291212;
      font-size: 1.5rem;
    }
    .auth-field {
      margin-bottom: 1rem;
    }
    .auth-field label {
      display: block;
      margin-bottom: 0.3rem;
      font-weight: bold;
      font-size: 0.92rem;
      color: #444;
    }
    .auth-field input[type=text],
    .auth-field input[type=email],
    .auth-field input[type=password] {
      width: 100%;
      padding: 0.55rem 0.7rem;
      border: 1px solid #bbb;
      border-radius: 4px;
      font-size: 1rem;
      box-sizing: border-box;
    }
    .auth-field input:focus {
      outline: none;
      border-color: #996633;
    }
    .auth-btn {
      display: block;
      width: 100%;
      padding: 0.65rem;
      background: #996633;
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
      margin-top: 0.5rem;
    }
    .auth-btn:hover { background: #7a4f28; }
    .auth-google-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      width: 100%;
      padding: 0.6rem;
      background: #fff;
      color: #333;
      border: 1px solid #bbb;
      border-radius: 4px;
      font-size: 0.97rem;
      font-weight: bold;
      cursor: pointer;
      text-decoration: none;
      margin-bottom: 1.2rem;
      box-sizing: border-box;
    }
    .auth-google-btn:hover { background: #f5f5f5; text-decoration: none; }
    .auth-google-btn svg { flex-shrink: 0; }
    .auth-divider {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      margin: 1rem 0;
      color: #999;
      font-size: 0.88rem;
    }
    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      border-top: 1px solid #ddd;
    }
    .auth-error {
      background: #fdecea;
      border: 1px solid #f5c6c6;
      color: #a00;
      padding: 0.6rem 0.8rem;
      border-radius: 4px;
      margin-bottom: 1rem;
      font-size: 0.93rem;
    }
    .auth-success {
      background: #edf7ed;
      border: 1px solid #b2dfb2;
      color: #2a6e2a;
      padding: 0.6rem 0.8rem;
      border-radius: 4px;
      margin-bottom: 1rem;
      font-size: 0.93rem;
    }
    .auth-links {
      margin-top: 1.2rem;
      font-size: 0.92rem;
      text-align: center;
      color: #666;
    }
    .auth-links a { color: #996633; }
    .remember-row {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.8rem;
      font-size: 0.92rem;
    }
    /* Profile styles */
    .profile-section {
      margin-bottom: 2rem;
    }
    .profile-section h3 {
      border-bottom: 2px solid #996633;
      padding-bottom: 0.3rem;
      color: #291212;
      font-size: 1.1rem;
    }
    .profile-meta {
      font-size: 0.9rem;
      color: #888;
      margin-bottom: 1.5rem;
    }
    .favorites-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .favorites-list li {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.4rem 0;
      border-bottom: 1px solid #f0f0f0;
      font-size: 0.95rem;
    }
    .favorites-list li:last-child { border-bottom: none; }
    .remove-fav {
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      font-size: 1.1rem;
      padding: 0 0.3rem;
    }
    .remove-fav:hover { color: #a00; }
    .profile-wrap {
      max-width: 620px;
      margin: 2rem auto;
      padding: 0 1rem;
    }
    .profile-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
    }
    @media (max-width: 560px) {
      .profile-grid { grid-template-columns: 1fr; }
    }


/* -----------------------------------------------------------------------
   Book grid — Libretti page
   ----------------------------------------------------------------------- */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.book-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.book-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.book-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}
.book-card__body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}
.book-card__title {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}
.book-card__title a {
    color: #291212;
    text-decoration: none;
}
.book-card__title a:hover { color: #996633; }
.book-card__btn {
    display: block;
    text-align: center;
    padding: 0.45rem 0.5rem;
    background: #996633;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: bold;
    white-space: normal;
    line-height: 1.3;
}
.book-card__btn:hover { background: #7a4f28; }
@media (max-width: 480px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -----------------------------------------------------------------------
   Favourite opera button
   ----------------------------------------------------------------------- */
.fav-btn {
    display: inline-block;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #ccc;
    vertical-align: middle;
    margin-left: 0.3rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.15s;
    text-decoration: none;
}
.fav-btn:hover  { color: #cc3333; transform: scale(1.2); }
.fav-btn--on    { color: #cc3333; }
.fav-btn--guest { color: #ccc; }




/* Low-price highlight */
.btn--deal {
    background: #2e7d32;
    border: 2px solid #43a047;
}
.btn--deal:hover {
    background: #1b5e20;
    color: #fff;
}
.btn--deal::before {
    content: "★ ";
}

.price--deal {
    color: #2e7d32;
    font-weight: bold;
}
.price--deal::before {
    content: "★ ";
    color: #f9a825;
}

/* -----------------------------------------------------------------------
   Libretto page — sidebar floats top-right, libretto runs full width below
   ----------------------------------------------------------------------- */
.libretto-sidebar {
    float: right;
    clear: right;
    width: 180px;
    margin: 0 0 1em 1.2em;
}
.libretto-nav-box {
    background: #f9f9f9;
    border: 1px solid #aaa;
    margin-bottom: 0.6rem;
    font-size: 0.8em;
}
.libretto-nav-title {
    background: #eeede0;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    line-height: 1.5em;
}
.libretto-nav-item {
    padding: 0.1rem 0.5rem;
    line-height: 1.5em;
}
.libretto-nav-item--current { font-weight: bold; }
@media (max-width: 640px) {
    .libretto-sidebar { float: none; width: 100%; margin: 0 0 1em 0; }
}





/* ============================================
   MOBILE FIXES — max-width: 600px
   ============================================ */
@media (max-width: 600px) {

    /* 1. Reduce main padding */
  main {
    padding: 0.4rem;
  }

    .content {
        line-height: 1.45;
    }

  /* 2. Site title slightly smaller */
  .site_title {
    font-size: 1.6rem;
  }

    /* 6. Nav: flex wrap so all 6 links fit cleanly */
    #topmenu {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    #topmenu a {
        padding: 0.3em 0.5em !important;
        font-size: 0.85rem !important;
        border-right: none !important;
    }

  /* --- Composers page --- */

  /* 3. Expand the table container to full width */
  section.content table,
  section.content table td {
    width: 100% !important;
  }

    /* 4. Turn the CENTER tag into a flex grid */
  section.content table td center {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 4px !important;
  }

    /* 5. Each card: remove float, make 2-column */
  section.content table td center .composer_gallery {
    float: none !important;
    width: calc(50% - 8px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Last card (17th) alone in its row — widen it slightly */
  section.content table td center .composer_gallery:last-child:nth-child(odd) {
    width: 60% !important;
  }

  /* --- Operas page --- */

  /* Allow horizontal scroll if table is ever still too wide */
  .opera-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce header padding — the 30px sort-arrow padding was the overflow culprit */
  .table_all thead tr th {
    padding-left: 6px;
    padding-right: 18px;
  }

  .table_all td {

      padding: 0.25rem 0.3rem;
      font-size: 0.92rem;
  }

  .table_all {
    font-size: 0.82rem;
  }

  /* Year column — prevent it wrapping */
  .table_all tbody td:nth-child(2) {
    white-space: nowrap;
  }

}


/* BLOG BLOCK */

.home-blog-card {
  margin-top: 16px;
  background: #faf7f1;
  border: 1px solid #e5dccf;
}

.home-blog-card__title {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: bold;
  color: #291212;
  text-decoration: none;
  line-height: 1.4;
}

.home-blog-card__title:hover {
  color: #996633;
  text-decoration: underline;
}

.home-blog-card__meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #777;
}

.home-blog-card__cta {
  margin-top: 0.7rem;
  font-size: 0.95rem;
}

.home-blog-card__cta a {
  text-decoration: none;
  color: #996633;
  font-weight: bold;
}

.home-blog-card__cta a:hover {
  color: #291212;
  text-decoration: underline;
}


.home-blog-card__eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-blog-card__excerpt {
  margin-top: 0.65rem;
  margin-bottom: 0.8rem;
  color: #444;
  line-height: 1.5;
}

.home-blog-card__secondary {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5dccf;
}

.home-blog-card__secondary-label {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-blog-card__secondary-item + .home-blog-card__secondary-item {
  margin-top: 10px;
}

.home-blog-card__secondary-title {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  color: #291212;
  text-decoration: none;
  line-height: 1.4;
}

.home-blog-card__secondary-title:hover {
  color: #996633;
  text-decoration: underline;
}


.home-blog-card__item + .home-blog-card__item {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5dccf;
}



.rotate-hint {
  display: none;
}

@media (max-width: 600px) and (orientation: portrait) {
  .rotate-hint {
    display: block;
    margin: 0.8rem 0;
    padding: 0.55rem 0.7rem;
    background: #fff8e8;
    border: 1px solid #e5d3a3;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #5a3b16;
  }
}



