:root {
  --clr-yellow-accent: #fff1c2;
  --clr-yellow-300: #b0e5a2;
  --clr-yellow-100: #c4ecb9;
  --clr-teal-600: #47afae;
  --clr-teal-300: #b0e5a2;
  --clr-teal-100: #c4ecb9;
  --clr-blue-600: #00419f;
  --clr-blue-300: #9fe1df;
  --clr-white: #ffffff;

  --clr-base: var(--clr-blue-600);
  --clr-surface: var(--clr-blue-300);
  --clr-link: var(--clr-teal-600);
  --clr-surface-info: var(--clr-teal-300);
  --clr-surface-info-light: var(--clr-teal-100);
  --clr-surface-mnenje: var(--clr-yellow-300);
  --clr-surface-mnenje-light: var(--clr-yellow-100);

  --opct-bg-image: 0.2;

  --ff-heading: "wf-bricolage-grotesque", sans-serif;
  --ff-title: "wf-bricolage-title", serif;
  --ff-body: "wf-space-grotesk", sans-serif;
  --ff-mono: "wf-space-mono", monospace;
}

body {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background: #fff;
}

/* component styles */

.circle-icon {
  width: 45px;
  height: 45px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--clr-base);
  box-shadow: none;
  color: var(--clr-base);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .circle-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 767.98px) {
  .circle-icon {
    border-width: 2px;
  }
}

.circle-icon:hover,
.circle-icon.active {
  background: var(--clr-white);
  box-shadow: none;
}

button.circle-icon[data-help]:hover,
button.circle-icon[data-help].active {
  background: var(--clr-yellow-accent);
}

@media (max-width: 767.98px) {
  .circle-icon:hover,
  .circle-icon.active {
    box-shadow: none;
  }
}

.circle-icon svg {
  width: 100%;
  height: 100%;
}

.go-to-home.circle-icon {
  background: #9fe1df;
}

.go-to-home.circle-icon:hover,
.go-to-home.circle-icon.active {
  background: #68d2cf;
}

.scrollable {
  overflow-y: auto;
  padding-right: 45px;
}

.scrollable {
  scrollbar-width: none;
}

.scrollable::-webkit-scrollbar {
  display: none;
}

/* Custom overlay scrollbar */
.custom-scrollbar {
  position: fixed;
  width: 6px;
  border-radius: 4px;
  background: var(--clr-base);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 9999;
}

@media (max-width: 1199.98px) {
  .scrollable {
    padding-right: 32px;
  }
}

@media (max-width: 767.98px) {
  .scrollable {
    padding-right: 16px;
  }
}

@media (max-width: 575.98px) {
  .scrollable {
    padding-right: 8px;
  }
}

/* fixed overlay styles */

.cefizelj-overlay .top-left-icons,
.item .top-left-icons,
.half-content .top-left-icons {
  position: absolute;
  top: 45px;
  left: 45px;
  z-index: 1000;
  display: flex;
  gap: 20px;
}

@media (max-width: 1199.98px) {
  .cefizelj-overlay .top-left-icons,
  .item .top-left-icons,
  .half-content .top-left-icons {
    top: 32px;
    left: 32px;
  }
}

@media (max-width: 991.98px) {
  .cefizelj-overlay .top-left-icons,
  .item .top-left-icons,
  .half-content .top-left-icons {
    gap: 15px;
  }
}

@media (max-width: 767.98px) {
  .cefizelj-overlay .top-left-icons,
  .item .top-left-icons,
  .half-content .top-left-icons {
    top: 16px;
    left: 16px;
    gap: 10px;
  }
}

.half-content .top-left-icons {
  display: none;
}

.half-content .top-right-icons {
  position: absolute;
  bottom: 45px;
  right: 45px;
  z-index: 1200;
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .half-content .top-left-icons {
    display: flex;
    left: 16px;
  }
}

.half-content .top-left-icons .circle-icon {
  width: 38px;
  height: 38px;
  background: var(--clr-white);
}

.half-content .top-right-icons .circle-icon {
  width: 65px;
  height: 65px;
  background: var(--clr-white);
}

.half-content .top-right-icons .circle-icon:hover,
.half-content .top-right-icons .circle-icon:focus-visible {
  background: #68d2cf;
  color: var(--clr-white);
}

@media (max-width: 1199.98px) {
  .half-content .top-right-icons {
    bottom: 32px;
    right: 32px;
  }
  .half-content .top-right-icons .circle-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 767.98px) {
  .half-content .top-right-icons,
  .half-right .top-right-icons,
  .half-rightr .top-right-icons {
    position: fixed !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
  }

  .half-content .top-right-icons .circle-icon {
    width: 38px;
    height: 38px;
  }
}

.cefizelj-overlay .top-left-icons .circle-icon {
  width: 65px;
  height: 65px;
}

@media (max-width: 991.98px) {
  .cefizelj-overlay .top-left-icons .circle-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 767.98px) {
  .cefizelj-overlay .top-left-icons .circle-icon {
    width: 28px;
    height: 28px;
  }

  .cefizelj-overlay .top-left-icons .go-to-home.circle-icon {
    width: 38px;
    height: 38px;
    margin-top: -8px;
    margin-left: -8px;
  }
}

.cefizelj-overlay .modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cefizelj-overlay .modal {
  position: relative;
  display: flex;
  background: var(--clr-white);
  box-shadow: 0 0 0 3px var(--clr-base);
  margin-inline: 0.5rem;
  padding: 45px;
  max-width: 920px;
  max-height: 90%;
}

@media (max-width: 1199.98px) {
  .cefizelj-overlay .modal {
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  .cefizelj-overlay .modal {
    padding: 16px;
    padding-right: 18px;
  }

  .cefizelj-overlay .modal .scrollable {
    padding-right: 24px;
  }
}

.cefizelj-overlay .modal .modal-content {
  overflow: hidden;
}

.cefizelj-overlay .modal .close-icon {
  position: absolute;
  top: 25px;
  right: 25px;
  background: var(--clr-white);
}

@media (max-width: 1199.98px) {
  .cefizelj-overlay .modal .close-icon {
  top: 18px;
  right: 18px;
  }
}

@media (max-width: 767.98px) {
  .cefizelj-overlay .modal .close-icon {
  top: 8px;
  right: 5px;
  }
}

/* main cefizelj app styles */

.cefizelj-container {
  width: auto;
  height: 100vh;
  height: 100svh;
  white-space: nowrap;
  overflow: hidden;
}

.half {
  width: 50%;
  height: 100%;
  display: inline-block;
  white-space: normal;
  vertical-align: top;
  position: relative;
}

/* Collapsed off-screen history panels — kept in DOM for multi-step back */
.half.half-archived {
  width: 0 !important;
  margin-left: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

.half.half-archived .item,
.half.half-archived .article {
  box-shadow: none;
}

/* @media (max-width: 767.98px) {
  .half-root {
    width: 100%;
  }
} */

.centermycontentvertically {
  text-align: center;
  display: flex;
}

.centermevertically {
  display: inline-block;
  text-align: left;
  position: relative;
  margin: auto;
}

@media (max-width: 767.98px) {
  .half-content {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .half-left-more {
    width: 100%;
  }
}

.item,
.half-content .article {
  box-shadow: 0 0 0 3px var(--clr-base);
}

@media (max-width: 767.98px) {
  .item,
  .half-content .article {
    box-shadow: 0 0 0 2px var(--clr-base);
  }
}

.item.hide-border,
.half-content .article.hide-border {
  box-shadow: none;
}

.half-content .article {
  padding: 45px;
}

@media (max-width: 1199.98px) {
  .half-content .article {
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  .half-content .article {
    padding: 24px;
  }
}

.half-content .article .hero-image {
  position: relative;
  margin-inline: -45px;
  margin-bottom: 0.5rem;
}

@media (max-width: 1199.98px) {
  .half-content .article .hero-image {
    margin-inline: -32px;
  }
}

@media (max-width: 767.98px) {
  .half-content .article .hero-image {
    margin-inline: -24px;
  }
}

.half-content .article .hero-image:first-child {
  margin-top: -45px;
}

@media (max-width: 1199.98px) {
  .half-content .article .hero-image:first-child {
    margin-top: -32px;
  }
}

@media (max-width: 767.98px) {
  .half-content .article .hero-image:first-child {
    margin-top: -24px;
  }
}

.half-content .article .hero-image img {
  margin-bottom: 0;
  width: 100%;
  display: block;
}

.half-content .article .hero-image h1 {
  padding-inline: 45px;
  padding-top: 4rem;
  padding-bottom: 1rem;
  margin-bottom: 0;
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

@media (max-width: 1199.98px) {
  .half-content .article .hero-image h1 {
    padding-inline: 32px;
  }
}

@media (max-width: 767.98px) {
  .half-content .article .hero-image h1 {
    position: relative;
    inset: auto;
    padding-inline: 24px;
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
    margin-top: calc(-3.5rem + 27px);
    background: none;
    z-index: 1;
  }

  /* Images are 2:1 ratio → height always = 50vw on mobile (full-width bleed).
     top: calc(50vw - 100px) anchors gradient to the image bottom, not the
     hero-image div bottom, so it stays fixed regardless of title length. */
  .half-content .article .hero-image::after {
    content: "";
    position: absolute;
    top: calc(50vw - 45px);
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 20%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.78) 75%,
      rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 0;
  }
}

.half-content .article > *:not(.hero-image):first-child {
  padding-top: 3rem;
}

.item {
  --_item-bg: var(--clr-surface);
  --_item-bg-hover: var(--clr-surface);
  width: 100%;
  height: auto;
  background-color: var(--_item-bg);
  color: var(--clr-base);
  user-select: none;
  overflow: hidden;
  position: relative;
}

/* Keep text, logos, and controls above tree illustration layers */
.item > * {
  position: relative;
  z-index: 1;
}

/* Tree illustrations: separate layer so opacity can fade in/out */
.item.mnenje::before,
.item.info::before,
.item.pravica::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: auto 92%;
  background-position: 20% bottom;
  opacity: 0;
  transition: opacity 0.5s ease, background-size 0.5s ease;
}

.item.mnenje::before {
  background-image: url("../img/mnenje.svg");
}

.item.info::before {
  background-image: url("../img/info.svg");
}

.item.pravica::before {
  background-image: url("../img/pravica.svg");
}

.item.mnenje.mnenje-img::before,
.item.info.info-img::before,
.item.pravica.pravica-img::before,
.item.mnenje.item-selected::before,
.item.info.item-selected::before,
.item.pravica.item-selected::before {
  opacity: 1;
}

.item.mnenje.item-illustration-hiding::before,
.item.info.item-illustration-hiding::before,
.item.pravica.item-illustration-hiding::before {
  opacity: 0;
  transition: opacity 0.2s ease, background-size 0.2s ease;
}

@media (max-width: 991.98px) {
  .item.mnenje::before,
  .item.info::before,
  .item.pravica::before {
    background-position: center bottom;
    background-size: 82% auto;
  }

  .item.mnenje.stretched.item-selected::before,
  .item.info.stretched.item-selected::before,
  .item.pravica.stretched.item-selected::before {
    background-size: 110% auto;
  }
}

.item:not(.noclick) {
  cursor: pointer;
}

.item:not(.noclick):hover {
  background-color: var(--_item-bg-hover);
}

.item h1.fwd,
.item h1.bck {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding-inline: 8rem;
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--clr-base);
}

@media (max-width: 1199.98px) {
  .item h1.fwd,
  .item h1.bck {
    font-size: 1.6rem;
  }
}

@media (max-width: 991.98px) {
  .item h1.fwd,
  .item h1.bck {
    padding-inline: 5.5rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .item h1.fwd,
  .item h1.bck {
    padding-inline: 2.5rem;
    font-size: 0.85rem;
    gap: 10px;
  }
}

.item h1.fwd span,
.item h1.bck span {
  margin-top: -0.2em;
  text-align: center;
}

.item h1.fwd svg,
.item h1.bck svg {
  flex-shrink: 0;
  height: 30px;
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1199.98px) {
  .item h1.fwd svg,
  .item h1.bck svg {
    height: 25px;
  }
}

@media (max-width: 991.98px) {
  .item h1.fwd svg,
  .item h1.bck svg {
    height: 20px;
    right: 3rem;
  }
}

@media (max-width: 767.98px) {
  .item h1.fwd svg,
  .item h1.bck svg {
    height: 12px;
    right: 0.85rem;
  }

  .half-right .item h1.fwd {
    justify-content: center;
    padding-left: 2rem;
    padding-right: 3rem;
  }

  .half-right .item h1.fwd svg {
    right: 1.4rem;
  }
}

.item h1.bck {
  flex-direction: row-reverse;
}

.item h1.bck svg {
  transform: scaleX(-1) translateY(-50%);
  left: 4rem;
  right: auto;
}

@media (max-width: 991.98px) {
  .item h1.bck svg {
    left: 3rem;
  }
}

@media (max-width: 767.98px) {
  .item h1.bck svg {
    left: 0.85rem;
  }
}

.item.stretched:not(.hide-border) .top-left-icons,
.item.shrunk .top-left-icons {
  display: none;
}

.item.stretched.hide-border .top-left-icons {
  top: auto;
  bottom: 45px;
}

@media (max-width: 1199.98px) {
  .item.stretched.hide-border .top-left-icons {
    bottom: 32px;
  }
}

@media (max-width: 767.98px) {
  .item.stretched.hide-border .top-left-icons {
    bottom: 8px;
  }
}

.item .top-left-icons {
}

@media (max-width: 767.98px) {
  .item .top-left-icons {
    top: 8px;
    left: 8px;
  }
}

.item .top-left-icons .circle-icon {
  width: 65px;
  height: 65px;
}

@media (max-width: 991.98px) {
  .item .top-left-icons .circle-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 767.98px) {
  .item .top-left-icons .circle-icon {
    width: 28px;
    height: 28px;
  }
}

/* extra class item variants */

.item.mnenje {
  --_item-bg: var(--clr-surface-mnenje-light);
  --_item-bg-hover: var(--clr-surface-mnenje);
}

.item.info {
  --_item-bg: var(--clr-surface-info-light);
  --_item-bg-hover: var(--clr-surface-info);
}

.item.pravica {
  --_item-bg: var(--clr-surface-mnenje-light);
  --_item-bg-hover: var(--clr-surface-mnenje);
}

.half-root .item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/zemlja.svg");
  background-repeat: no-repeat;
  background-size: auto 64%;
  background-position: center bottom;
}

@media (max-width: 1500px) and (min-width: 1200px) {
  .half-root .item::before {
    /* Start at 64% at 1500px, shrink proportionally down to 1200px */
    background-size: auto calc(64% * (100vw / 1500px));
    background-position: center bottom;
  }
}

@media (max-width: 1199.98px) {
  .half-root .item::before {
    background-size: 104% auto;
    background-position: center 72%;
  }
}

@media (max-width: 767.98px) {
  .half-root .item::before {
    background-size: 104% auto;
    background-position: center 56%;
  }
}

.item.mnenje-img h1.fwd,
.item.mnenje-img h1.bck,
.item.info-img h1.fwd,
.item.info-img h1.bck,
.item.pravica-img h1.fwd,
.item.pravica-img h1.bck {
  font-family: var(--ff-title);
  font-weight: 400;
  font-size: 2.8rem;
}

@media (max-width: 1199.98px) {
  .item.mnenje-img h1.fwd,
  .item.mnenje-img h1.bck,
  .item.info-img h1.fwd,
  .item.info-img h1.bck,
  .item.pravica-img h1.fwd,
  .item.pravica-img h1.bck {
    font-size: 2.4rem;
  }
}

@media (max-width: 991.98px) {
  .item.mnenje-img h1.fwd,
  .item.mnenje-img h1.bck,
  .item.info-img h1.fwd,
  .item.info-img h1.bck,
  .item.pravica-img h1.fwd,
  .item.pravica-img h1.bck {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .item.mnenje-img h1.fwd,
  .item.mnenje-img h1.bck,
  .item.info-img h1.fwd,
  .item.info-img h1.bck,
  .item.pravica-img h1.fwd,
  .item.pravica-img h1.bck {
    font-size: 1.15rem;
  }
}

/* root html page */

@media (max-width: 767.98px) {
  .root-more .content {
    padding-bottom: 96px;
  }

  .root-more .footer {
    padding-top: 10px;
  }
}

@media (max-width: 575.98px) {
  .root-more .content {
    margin-top: 10vh;
  }
}

.root-html {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 45px;
  overflow-y: auto;
  scrollbar-width: none;
  /* Above .half-root .item::before (earth illustration) */
  z-index: 1;
}

.root-html::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1199.98px) {
  .root-html {
    padding: 32px;
  }
}

@media (max-width: 767.98px) {
  .root-html {
    padding: 16px;
  }
}

.root-html .title {
  margin-top: 17vh;
  margin-bottom: 4vh;
}

@media (max-width: 991.98px) {
  .root-html .title {
    margin-top: 10vh;
    margin-bottom: 5vh;
  }
}

.root-html .title h1 {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(3.2rem, min(5.6vw, 11.5vh), 5.6rem);
  line-height: 1;
  color: var(--clr-base);
  text-align: right;
}

@media (min-width: 992px) and (max-height: 900px) {
  .root-html .title h1 {
    font-size: clamp(3rem, min(5.2vw, 10.5vh), 5.2rem);
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .root-html .title h1 {
    font-size: clamp(2.6rem, min(4.8vw, 9vh), 4.6rem);
  }
}

/* Short + medium desktop windows: keep footer controls in view */
@media (min-width: 990px) and (max-width: 1200px) and (max-height: 800px) {
  .root-html .title {
    margin-top: 7vh;
    margin-bottom: 1.25vh;
  }

  .root-html .title h1 {
    font-size: clamp(1.7rem, min(3.35vw, 6.3vh), 2.95rem);
    line-height: 0.9;
  }

  .root-html .title h1 em,
  .root-html .title h1 .title-main {
    line-height: 0.86;
  }

  .root-html .title h1 em {
    margin-bottom: 0.06em;
  }

  .root-html .footer {
    margin-top: 8px;
  }

  .root-html .footer .show-more a,
  .root-html .footer .hide-more a {
    gap: 10px;
    font-size: 1.55rem;
  }

  .root-html .footer .show-more a svg,
  .root-html .footer .hide-more a svg {
    height: 18px;
  }
}

@media (max-width: 1199.98px) {
  .root-html .title h1 {
    font-size: 4.4rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .title h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .title h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 575.98px) {
  .root-html .title h1 {
    font-size: 2rem;
  }
}

.root-html .title h1 em {
  display: block;
  font-style: normal;
  color: var(--clr-yellow-accent);
  line-height: 0.94;
  margin-bottom: 0.12em;
}

.root-html .title h1 .title-main {
  display: block;
  line-height: 0.94;
}

.root-html .content {
  margin-bottom: auto;
}

.root-html .content h2,
.root-html .content h3,
.root-html .content h4 {
  font-family: var(--ff-title);
  font-weight: 400;
  color: var(--clr-base);
  margin-bottom: 1.5rem;
}

.root-html .content h2 {
  font-size: 2.8rem;
}

@media (max-width: 1199.98px) {
  .root-html .content h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .content h2 {
    font-size: 1.6rem;
  }
}

.root-html .content h3 {
  font-size: 2.4rem;
}

@media (max-width: 1199.98px) {
  .root-html .content h3 {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .content h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .content h3 {
    font-size: 1.4rem;
  }
}

.root-html .content h4 {
  font-size: 2rem;
}

@media (max-width: 1199.98px) {
  .root-html .content h4 {
    font-size: 1.6rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .content h4 {
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .content h4 {
    font-size: 1.2rem;
  }
}

.root-html .content p {
  font-family: var(--ff-body);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--clr-base);
  text-align: left;
  margin-bottom: 1.5rem;
}

@media (max-width: 1199.98px) {
  .root-html .content p {
    font-size: 1.2rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .content p {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .content p {
    font-size: 0.875rem;
  }
}

@media (max-width: 575.98px) {
  .root-html .content p {
    font-size: 0.75rem;
  }
}

.root-html .content p.lead {
  font-size: 1.6rem;
}

@media (max-width: 1199.98px) {
  .root-html .content p.lead {
    font-size: 1.4rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .content p.lead {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .content p.lead {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .root-html .content p.lead {
    font-size: 0.875rem;
  }
}

.root-html .footer {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  column-gap: 28px;
  margin-top: 45px;
}

@media (max-width: 1199.98px) {
  .root-html .footer {
    margin-top: 32px;
  }
}

@media (max-width: 767.98px) {
  .root-html .footer {
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
}

.root-html .footer .logos {
  display: flex;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.root-html .footer .logos a {
  text-decoration: none;
  color: var(--clr-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.root-html .footer .logos .logo-static {
  color: var(--clr-white);
  cursor: default;
  display: inline-flex;
  align-items: center;
}

.root-html .footer .logos .logo-static:hover,
.root-html .footer .logos .logo-static:focus,
.root-html .footer .logos .logo-static:active {
  color: var(--clr-white);
}

.root-html .footer .logos a:hover {
  color: var(--clr-base);
}

.root-html .footer .logos img,
.root-html .footer .logos svg {
  height: clamp(28px, calc(28px + (100vw - 786px) * 45 / 764), 73px);
  width: auto;
  display: block;
}

@media (min-width: 786px) {
  .root-html .footer .logos {
    gap: clamp(14px, calc(14px + (100vw - 786px) * 14 / 764), 28px);
  }
}

/* Extra shrink while title/info text is still large */
@media (min-width: 1200px) and (max-width: 1550px) {
  .root-html .footer .logos img,
  .root-html .footer .logos svg {
    height: clamp(45px, calc(45px + (100vw - 1200px) * 17.5 / 350), 62.5px);
  }

  .root-html .footer .logos {
    gap: clamp(15px, calc(15px + (100vw - 1200px) * 7 / 350), 22px);
  }
}

@media (max-width: 767.98px) {
  .root-html .footer {
    flex-wrap: nowrap;
    align-items: flex-end;
  }

  .root-html .footer .logos img,
  .root-html .footer .logos svg {
    width: 54px;
    height: auto;
  }

  .root-html .footer .logos {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 0;
  }
}

.root-html .footer .show-more,
.root-html .footer .hide-more {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: max-content;
  padding-left: 8px;
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
}

.root-html .footer .show-more a,
.root-html .footer .hide-more a {
  display: flex;
  align-items: center;
  gap: 25px;
  font-family: var(--ff-title);
  font-size: 2.8rem;
  line-height: 1;
  transform: translateY(4px);
  color: var(--clr-base);
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .root-html .footer .show-more a,
  .root-html .footer .hide-more a {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .root-html .footer .show-more a,
  .root-html .footer .hide-more a {
    gap: 15px;
    font-size: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .root-html .footer .show-more a,
  .root-html .footer .hide-more a {
    gap: 10px;
    font-size: 1.2rem;
    transform: translateY(-4px);
  }
}

.root-html .footer .show-more a:hover,
.root-html .footer .hide-more a:hover {
  text-decoration: underline;
}

.root-html .footer .show-more a span,
.root-html .footer .hide-more a span {
  margin-top: -0.05em;
}

.root-html .footer .show-more a svg,
.root-html .footer .hide-more a svg {
  flex-shrink: 0;
  height: 30px;
}

@media (max-width: 1199.98px) {
  .root-html .footer .show-more a svg,
  .root-html .footer .hide-more a svg {
    height: 25px;
  }
}

@media (max-width: 991.98px) {
  .root-html .footer .show-more a svg,
  .root-html .footer .hide-more a svg {
    height: 20px;
  }
}

/* Pre-stack edge case: prevent logo/info collision just before vertical layout */
@media (min-width: 768px) and (max-width: 860px) {
  .root-html .footer {
    column-gap: 18px;
  }

  .root-html .footer .show-more a,
  .root-html .footer .hide-more a {
    gap: 10px;
    font-size: 1.35rem;
  }

  .root-html .footer .show-more a svg,
  .root-html .footer .hide-more a svg {
    height: 16px;
  }
}

@media (max-width: 767.98px) {
  .root-html .footer .show-more a svg,
  .root-html .footer .hide-more a svg {
    height: 12px;
  }
}

.root-html .footer .show-more.active {
  display: none;
}

.root-html .footer .hide-more a svg {
  transform: scaleX(-1);
}

/* article (and modal) */

.article {
  height: 100%;
  background: var(--clr-white);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.3;
  color: var(--clr-base);
  text-align: left;
}

/* Keep modal/article text spacing visually even at top and bottom */
.article > :first-child {
  margin-top: 0;
}

.article > :last-child {
  margin-bottom: 0;
}

.article h1,
.article h2,
.article h3,
.article h4 {
  font-family: var(--ff-mono);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.article h1 {
  font-size: 2rem;
}

@media (max-width: 1199.98px) {
  .article h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .article h1 {
    font-size: 1.5rem;
  }
}

.article h2 {
  font-size: 1.75rem;
}

@media (max-width: 1199.98px) {
  .article h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .article h2 {
    font-size: 1.25rem;
  }
}

.article h3 {
  font-size: 1.5rem;
}

@media (max-width: 1199.98px) {
  .article h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 991.98px) {
  .article h3 {
    font-size: 1rem;
  }
}

.article h4 {
  font-size: 1.25rem;
}

@media (max-width: 1199.98px) {
  .article h4 {
    font-size: 1rem;
  }
}

@media (max-width: 991.98px) {
  .article h4 {
    font-size: 0.875rem;
  }
}

.article p,
.article ul,
.article ol,
.article details {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article details > p {
  margin-left: 4rem;
}

/* Small gap before / after a block of expandable sections (not between them) */
.article details:not(details + details) {
  padding-top: 1.5rem;
}

.article details:not(:has(+ details)) {
  margin-bottom: 3rem;
}

/* Bullets sit further right than the intro line above (e.g. "in sicer, če:") */
.article details > ul {
  margin-left: 4rem;
  padding-left: 1.6em;
  list-style-position: outside;
}

.article ul li p {
  margin-bottom: 0;
}

@media (max-width: 1199.98px) {
  .article p,
  .article ul,
  .article ol,
  .article details {
    font-size: 1rem;
  }

  .article details > p,
  .article details > ul {
    margin-left: 3.5rem;
  }
}

@media (max-width: 991.98px) {
  .article p,
  .article ul,
  .article ol,
  .article details {
    font-size: 0.875rem;
  }

  .article details > p,
  .article details > ul {
    margin-left: 3rem;
  }
}

.article details summary {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  list-style: none;
  color: var(--clr-base);
  cursor: pointer;
}

.article details summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 1199.98px) {
  .article details summary {
    font-size: 1.4rem;
  }
}

@media (max-width: 991.98px) {
  .article details summary {
    font-size: 1.2rem;
  }
}

.article details summary::before {
  flex-shrink: 0;
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-block: -0.4em -0.5em;
  margin-right: 1em;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.468 11.469"><path fill="none" stroke="%2300419f" stroke-miterlimit="10" stroke-width=".525" d="M11.206 5.734a5.472 5.472 0 1 1-10.944 0 5.472 5.472 0 0 1 10.944 0z"/><path fill="%2300419f" d="M3.498 5.508h1.83V3.677h.763v1.83h1.83v.763h-1.83V8.1h-.762V6.27H3.498Z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.article details[open] summary {
  color: var(--clr-link);
  margin-bottom: 1.5rem;
}

.article details[open] summary::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.468 11.469"><path fill="none" stroke="%2347afae" stroke-miterlimit="10" stroke-width=".525" d="M11.206 5.734a5.472 5.472 0 1 1-10.944 0 5.472 5.472 0 0 1 10.944 0z"/><path fill="%2347afae" d="m3.498 5.508 4.423-.001v.763H3.498Z"/></svg>');
}

.article ul {
  list-style-type: "- ";
  padding-left: 1.2em;
  list-style-position: outside;
}

.article p.lead {
  font-size: 1.6rem;
}

@media (max-width: 1199.98px) {
  .article p.lead {
    font-size: 1.4rem;
  }
}

@media (max-width: 991.98px) {
  .article p.lead {
    font-size: 1.2rem;
  }
}

.article p,
.article li,
.article span,
.article strong,
.article em {
  color: var(--clr-base) !important;
}

/* Enforce consistent link style in info and article pages */
.root-html .content a,
.article a {
  color: var(--clr-link) !important;
  text-decoration: none;
  text-underline-offset: 0.1em;
  text-decoration-thickness: 0.1em;
}

.root-html .content a *,
.article a *,
.article a span,
.article a strong,
.article a em {
  color: var(--clr-link) !important;
}

.root-html .content a:hover,
.article a:hover {
  text-decoration: underline;
}

.article img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.article iframe {
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
}

.share-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  background: var(--clr-base);
  color: var(--clr-white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.share-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.share-toast.is-error {
  background: #8b1e1e;
}

@media (max-width: 767.98px) {
  .share-toast {
    top: 14px;
    right: 14px;
    font-size: 0.875rem;
  }
}
