:root {
  --cifro-ink: #242424;
  --cifro-muted: #666;
  --cifro-accent: #c75a18;
  --cifro-accent-dark: #873b10;
  --cifro-paper: #fffdf8;
}

body {
  color: var(--cifro-ink);
  background: var(--cifro-paper);
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.container-header {
  background: linear-gradient(135deg, #2d2a28, #4b3a30);
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}

.container-header .navbar-brand img {
  width: 70px;
  height: auto;
  max-height: 65px;
}

.container-header .brand-logo {
  align-items: center;
  display: inline-flex;
  gap: .8rem;
}

.brand-title {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 700;
}

.container-header .container-nav,
.container-header .metismenu.mod-menu {
  flex-wrap: wrap;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  color: #fff;
  font-family: system-ui, sans-serif;
  font-weight: 650;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li.active > a {
  color: #ffd4b9;
}

.site-grid {
  gap: clamp(1rem, 2vw, 2rem);
}

.com-content-article__body,
.blog-item,
.card {
  line-height: 1.68;
}

.com-content-article__body img,
.blog-item img,
.item-page img,
.cifro-comments img {
  height: auto;
  max-width: 100%;
}

.com-content-article__body iframe,
.blog-item iframe,
.item-page iframe {
  border: 0;
  display: block;
  max-width: 100%;
  width: 100%;
}

.com-content-article__body pre,
.blog-item pre,
.item-page pre {
  max-width: 100%;
  overflow-x: auto;
}

.cifro-embed-facade {
  align-items: center;
  background: #242424;
  display: flex;
  height: 400px;
  justify-content: center;
  max-width: 100%;
  width: 100%;
}

.cifro-embed-load {
  align-items: center;
  background: #f95500;
  border: 2px solid #fff;
  border-radius: .4rem;
  color: #242424;
  cursor: pointer;
  display: inline-flex;
  font: 700 1rem/1.25 system-ui, sans-serif;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem 1rem;
}

.cifro-embed-load:hover,
.cifro-embed-load:focus-visible {
  background: #fff;
  border-color: #f95500;
  color: #242424;
}

h1, h2, h3 {
  color: #332a25;
  text-wrap: balance;
}

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

.cifro-comments {
  border-top: 2px solid #dfd4c9;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.cifro-comment {
  background: #fff;
  border: 1px solid #e2d9d0;
  border-radius: .35rem;
  margin: 1rem 0;
  padding: 1rem;
}

.cifro-comment__meta {
  color: var(--cifro-muted);
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  margin-bottom: .5rem;
}

.cifro-comment__body { white-space: normal; }

.footer {
  background: #302b28;
  color: #fff;
  margin-top: 2rem;
}

.container-sidebar-right .mod-finder {
  display: grid;
  gap: .5rem;
  min-width: 0;
}

.container-sidebar-right .mod-finder label {
  margin: 0;
}

.container-sidebar-right .mod-finder .form-control {
  min-width: 0;
  width: 100%;
}

.pagination {
  justify-content: flex-start;
  margin-inline: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-block: .25rem;
  scrollbar-width: thin;
}

.pagination .page-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.pagination .page-item:not(.active):not(.disabled) .page-link,
.pagination .page-item:not(.active):not(.disabled) .page-link:visited {
  color: #f95500;
  font-size: 1.2rem;
  font-weight: 700;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.pagination .page-item:not(.active):not(.disabled) .page-link:focus-visible {
  background-color: #f95500;
  border-color: #f95500;
  color: #242424;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:focus-visible {
  box-shadow: none;
  outline: 2px solid #f95500;
  outline-offset: 2px;
}

.navbar-toggler,
.cifro-share .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button {
  align-items: center;
  display: flex;
  min-height: 44px;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #f95500;
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .container-header .grid-child { padding-inline: 1rem; }
  .container-sidebar-right { margin-top: 1rem; }
  .com-content-article__body iframe,
  .blog-item iframe,
  .item-page iframe {
    aspect-ratio: var(--cifro-embed-ratio, 16 / 9);
    height: auto;
  }
  .cifro-embed-facade {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .container-header .navbar-brand img { width: 58px; max-height: 54px; }
  .com-content-article__body, .blog-item { font-size: 1.0625rem; }
  .cifro-comment { padding: .75rem; }
}
