@import "jem.css";
@import "joomgallery.css";
@import "layout.css";
@import "menu.css";

/* fonts */

/* noto-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/noto-sans-v42-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/noto-sans-v42-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/noto-sans-v42-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* noto-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/noto-sans-v42-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* root */

:root {
  --cassiopeia-color-primary: #000;
  --cassiopeia-color-secondary: #ffc107;
  --cassiopeia-color-link: #000;
  --cassiopeia-color-hover: #000;
  --link-color: #000;
  --link-hover-color: #000;

  --cassiopeia-font-family-body: 'Noto Sans', sans-serif;
  --cassiopeia-font-family-headings: 'Noto Sans', sans-serif;
  --cassiopeia-font-weight-headings: 400;
  --cassiopeia-font-weight-normal: 300;

  --body-font-family: var(--cassiopeia-font-family-body);
  --body-font-size: 1.125rem;
  --body-font-weight: 300;
  --body-line-height: 1.5;
  --body-color: #000;
  --body-bg: #fff;

  --overlay-menu-background: #fff;
  --overlay-menu-lines: #000;
  --overlay-menu-container: #fff;
}

.pagination {
  --pagination-disabled-bg: #fff;
}

/* offline */

body.site .offline-card .header {
  height: 160px;
}

/* user.js */

.item-page-container,
.com-content-category-blog__item,
.custom-class {
  opacity: 0;
  transform: translateY(45px);
  transition: transform 0.6s, opacity 0.9s;
}

/* typo */

* {
  hyphens: auto;
  hyphenate-limit-chars: 10 3 4;
}

h1 {
  font-size: 1.5rem;
}

h2, h3 {
  font-size: 1.25rem;
}

h4, h5, h6 {
  font-size: 1.25rem;
}

p {
  min-height: calc(var(--body-font-size) * var(--body-line-height));
}

/* layout */

body.site .header.container-header {
  background: var(--body-bg);
  margin-bottom: 2em;
}

body.site .container-header .navbar-brand{
  font-size: 1rem;
  margin-left: -5px;
}

body.site .container-header .navbar-brand a {
  color: var(--body-color);
  font-size: 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
}

body.site .container-header .site-description {
  color: var(--body-color);
  font-size: 1.125rem;
  letter-spacing: 0.1px;
  line-height: 1;
  text-transform: uppercase;
}

body.site .container-header .mod-menu > li > a,
body.site .container-header .mod-menu > li > span {
  color: var(--cassiopeia-color-link);
}

body.site .container-header .mod-list li > a:hover,
body.site .container-header .mod-list li.active > a,
body.site .level > .mod-menu.mod-list li a:hover,
body.site .level > .mod-menu.mod-list li.active a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

body.site .container-header .mod-menu {
  justify-content: flex-end;
}

body.site .com-content-category-blog .category-desc {
  margin-bottom: 3em;
}

body.site main table {
  border-collapse: separate;
  border-spacing: 0 0.5em;
}

body.site main td {
  vertical-align: top;
}

/* news */

body.site.news .com-content-category-blog__item,
body.site.news .com-content-article.item-page {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0 4em;
  margin-bottom: 4em;
}

body.site.news .com-content-article.item-page .page-header,
body.site.news .com-content-article.item-page .list-inline {
  grid-column: -1/1;
}

@media (max-width: 579px) {
  body.site.news .com-content-category-blog__item,
  body.site.news .com-content-article.item-page {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

body.site.news .com-content-category-blog__item .tags .list-inline-item,
body.site.news .com-content-article.item-page .list-inline-item {
  margin: 0;
}

.page-link.active,
.active > .page-link {
  background-color: var(--body-color);
  border-color: var(--body-color);
}

/* contact | info */

body.site.info .com-content-category-blog__item.blog-item {
  border: 1.5px solid var(--body-color);
  box-shadow: none;
  border-radius: 0.125em;
}

body.site.info .com-content-category-blog__item.blog-item .item-content {
  padding: 0;
}

body.site.info .com-content-category-blog__item.blog-item .item-content a {
  padding: 1em;
  display: block;
}

/* mod main menu level */

body.site .level > .mod-menu.mod-list {
  display: flex;
  flex-direction: row;
  gap: 0 1em;
  justify-content: space-around;
  margin-bottom: 3em;
  background: #f5f5f5;
  border-radius: 0.5em;
  flex-wrap: wrap;
  padding: 0 0.5em;
}

body.site .level > .mod-menu.mod-list li a {
  font-size: 1.125rem;
}

/* mod overlay menu */

.overlaid .nav-overlay > ul.mod-menu .active > a,
.overlaid .nav-overlay > ul.mod-menu span.separator {
  color: var(--cassiopeia-color-link);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
}

.overlaid .nav-overlay > ul.mod-menu a, .nav-overlay > ul.mod-menu span.separator {
  color: var(--cassiopeia-color-link);
}

/* mod rd brand */

body.site .no-card > .brand {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

body.site .no-card > .brand a {
  display: inline-block;
  height: 100%;
  width: 100%;
}

body.site .no-card > .brand img {
  object-fit: cover;
  width: 100%;
  max-width: none;
  height: 100%;
  position: relative;
}

body.site .no-card > .brand .brand-caption {
  color: var(--body-bg);
  font-size: 1rem;
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 0.25em;
  max-width: 1320px;
  margin: 0 auto;
}

/* mod articles */

body.site .container-component > .current {
  z-index: 1;
}

body.site .container-component > .current .mod-list {
  background: rgba(255, 255, 255, 0.75);
  display: inline-block;
  padding: 1em;
}

/* footer */

body.site footer .mod-menu {
  flex-direction: row;
  gap: 1em;
}

/* JoomGallery */

body.site.com_joomgallery h3 {
  display: none;
}

body.site img[src="/gallery/images/0-noimage.raw?type=thumbnail"] {
  opacity: 0;
}

body.site .jg-image > .jg-image-caption > a {
  text-decoration: none;
}

body.site .jg-image > .jg-image-caption > div p {
  min-height: auto;
}

/* rd gallery */
.fotorama__dot {
  box-sizing: content-box;
}

.fotorama-caption {
  text-align: center;
  font-size: 0.875rem;
}
