@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap");
@import url("./article.css");
@import url("./shadow-box.css");
@import url("./category.css");
@import url("./tag.css");
@import url("./navigation-lotus.css");

/* Ruby-Sapphire — native Joomla template */

:root {
  --rs-background: #3a3a3c;
  --rs-text: #e0e0e0;
  --rs-dark: #212326;
  --rs-accent: #8e1a36;
  --rs-footer: #383639;
}

html {
  background: #313334 url('/images/texture.jpg') center top / auto repeat fixed;
  padding: 60px;
}

body {
  max-width: 1420px;
  margin: 0 auto;
  background: #383639 url('/images/main-texture.png') repeat;
  color: var(--rs-text);
}

@media (max-width: 768px) {
  html {
    padding: 30px;
  }
}

.container-header {
  background: #383639 url('/images/main-texture.png') repeat;
}

.container-footer {
  background: #383639 url('/images/main-texture.png') repeat;
  text-align: center;
}

.container-footer .grid-child {
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

a {
  text-decoration: none;
}

a:hover {
  color: var(--rs-accent);
}

/* Ruby-Sapphire desktop header */
@media (min-width: 992px) {
  .container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px max(24px, calc((100% - 1200px) / 2));
  }

  .container-header > .grid-child {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .container-header .brand-logo img {
    width: 350px;
    max-width: 100%;
    height: auto;
  }

  .container-header .container-nav {
    flex: 1;
    justify-content: flex-end;
    padding: 0;
  }

  .container-header nav {
    margin-top: 0;
  }
}

/* Ruby-Sapphire: standardized Oswald headings */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body h1 {
  font-weight: 500;
}

body h2 {
  font-weight: 500;
}

body h3,
body h4,
body h5,
body h6 {
  font-weight: 400;
}

/* Slideshow caption: retain its lighter Oswald appearance */
body .rs-slider-caption {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
}

/* Ruby-Sapphire typographic identity */
.container-header .navbar-brand {
  text-align: left;
}

.container-header .brand-logo {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.035em;
  color: #e6e2df;
  text-decoration: none;
  border-bottom: 2px solid #874153;
  padding-bottom: 7px;
}

.container-header .brand-logo:hover {
  color: #fff;
  text-decoration: none;
}

.container-header .site-description {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #aaa5a3;
  margin-top: 9px;
}

@media (max-width: 600px) {
  .container-header .brand-logo {
    font-size: 27px;
    letter-spacing: 0.015em;
  }

  .container-header .site-description {
    font-size: 12px;
  }
}

@media (min-width: 992px) {
  .container-header {
    flex-direction: row-reverse;
  }
  .container-header .navbar-brand {
    text-align: right;
  }
  .container-header .container-nav {
    justify-content: flex-start;
  }
}

body.com_content.view-article:not(:has(.rs-homepage)) {
  max-width: 1160px;
  margin-inline: auto;
}

/* Site text search */
body.com_finder.view-search .com-finder {
  max-width: 920px;
  margin: 0 auto 40px;
  padding: 50px 60px;
  box-sizing: border-box;
  background: #fff;
  color: #595959;
  font: 17px/1.5 "Source Sans Pro", Arial, sans-serif;
}
body.com_finder.view-search .rs-search-heading {
  margin: 0 0 32px;
  color: #595959;
  font: 400 clamp(28px, 3vw, 38px)/1.2 "Oswald", sans-serif;
}
body.com_finder.view-search .rs-search-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 16px;
  background: var(--rs-accent, #8e1a36);
}
body.com_finder .com-finder__search label {
  display: block;
  margin-bottom: 8px;
}
body.com_finder .com-finder__search .input-group {
  gap: 8px;
}
body.com_finder .com-finder__search .form-control {
  min-width: 160px;
  border: 1px solid #ccc;
  border-radius: 3px !important;
  padding: 10px 14px;
}
body.com_finder .com-finder__search .form-control:focus {
  border-color: var(--rs-accent, #8e1a36);
  box-shadow: 0 0 0 2px rgba(142, 26, 54, .12);
}
body.com_finder .com-finder__search .btn {
  border-radius: 3px !important;
  margin: 0 !important;
  padding: 10px 16px;
  box-shadow: none;
}
body.com_finder .com-finder__search .btn-primary {
  background: var(--rs-accent, #8e1a36);
  border-color: var(--rs-accent, #8e1a36);
  color: #fff;
}
body.com_finder .com-finder__search .btn-secondary {
  background: #f5f5f5;
  border-color: #ddd;
  color: #666;
}
body.com_finder .com-finder__search .btn:hover {
  background: #426789;
  border-color: #426789;
  color: #fff;
}
body.com_finder .com-finder__advanced .card {
  background: #f8f8f8;
  border-color: #e5e5e5;
}
body.com_finder .com-finder a {
  color: var(--rs-accent, #8e1a36);
}
body.com_finder .com-finder a:hover {
  color: #426789;
}
@media (max-width: 768px) {
  body.com_finder.view-search .com-finder {
    padding: 28px 24px;
  }
  body.com_finder .com-finder__search .form-control {
    flex-basis: 100%;
    width: 100%;
  }
}

body.com_finder .control-group:has(select:is(
  #tax-type, #tax-category, #tax-language, #tax-country
)) {
  display: none;
}

/* Shared Ruby-Sapphire data tables */
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  color: #595959;
  font: 15px/1.45 "Source Sans Pro", Arial, sans-serif;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  padding: 10px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  border: 0;
  border-bottom: 1px solid #ddd;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > thead > tr > :is(th, td),
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > tbody > tr:first-child > th {
  background: var(--rs-accent, #8e1a36);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > tbody > tr > td {
  background: #fff;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > tbody > tr:nth-child(even) > td {
  background: #f9f9f9;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > tbody > tr:hover > td {
  background: #f1f1f1;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > tfoot > tr > td {
  background: #fafafa;
  color: #777;
  font: italic 13px/1.4 "Oswald", sans-serif;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > caption,
main .lotus-table-caption {
  caption-side: top;
  text-align: center;
  padding: 0 0 10px;
  color: #777;
  font: 400 20px/1.3 "Oswald", sans-serif;
}
@media (max-width: 768px) {
  main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    padding: 6px;
  }
}

main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) {
  table-layout: auto !important;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) :is(col, th, td) {
  width: auto !important;
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  hyphens: none;
}

main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > thead > tr > :is(th, td) {
  background: #3b3b3b;
  color: var(--rs-accent, #8e1a36);
}
main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > thead > tr > :is(th, td) a {
  color: inherit;
}

main table:is(.pro_table, .lotus-table, :has(th)):not(.shadow-box, .figure-table, .shadow-box table, .figure-table table) > thead > tr > :is(th, td) {
  color: #d0cdcb;
}
