@import url(https://db.onlinewebfonts.com/c/84b9c7783cc172174b9afb04efcb0e40?family=PitchSans-Regular);
@import url(https://db.onlinewebfonts.com/c/68e94a17c3e618dbe0936fcbf25b26c6?family=TNY+Adobe+Caslon+Pro+Regular);

:root {
  --highlight-color: #feffcf;
}
body {
  margin: 0;
  overflow-x: hidden;
}

/* ALPHABET BAR */
#alphabet-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: white;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;

  padding: 24px 0;
  border-bottom: 1px solid #000000;
}

.alphabet-letter {
  font-family: "PitchSans-Regular";
  font-size: 12pt;
  line-height: 1;
  letter-spacing: 4px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: black;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center center;
}

.alphabet-letter:hover {
  transform: scale(2.5);
  z-index: 2;
}

.alphabet-letter.disabled {
  opacity: 0.3;
  cursor: default;
}

.alphabet-letter.disabled:hover {
  transform: none;
}

/* ROWS */
.row {
  font-family: "PitchSans-Regular";
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: center;
  padding: 0;
  border-bottom: none;
  position: relative;
  cursor: pointer;
  isolation: isolate;

  width: min(100%, 900px);
  margin: 0 auto;
  position: relative;
}
.row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #000000;
  transform: translateX(-50%);
}

.row > .col:nth-of-type(1) {
  grid-column: 1;
}

.row > .col:nth-of-type(2) {
  grid-column: 2;
}

.row > .col:nth-of-type(3) {
  grid-column: 3;
}

.col {
  padding: 10px 0;
  text-align: left;
  justify-self: start;
  line-height: 1;
  min-width: 0;
}

.letter {
  position: absolute;
  top: 10px;
  left: 0;

  transform: translateX(calc(-1 * clamp(60px, 10vw, 200px)));

  font-family: "PitchSans-Regular";
  font-size: 16px;
  line-height: 1;
}
.row.highlight-row {
  position: relative;
}

.row.highlight-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;

  left: -100vw;
  right: -100vw;

  background-color: var(--highlight-color);
  z-index: -1;
}

.row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vw;
  right: -100vw;

  background-color: var(--highlight-color);
  opacity: 0;

  z-index: -1;

  transition: opacity 0.6s ease;
}

.row.highlight-row::before {
  opacity: 1;
}

/* EXPANDED */
.expanded {
  grid-column: 1 / -1;
  grid-row: 2;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;

  transition:
    max-height 0.35s ease,
    opacity 0.3s ease,
    padding 0.35s ease;
}

.expanded.open {
  max-height: 500px;
  opacity: 1;
  padding: 0;
}

.exp {
  padding: 8px 0;
  min-width: 0;
}

.exp.sv { grid-column: 1; }
.exp.ee { grid-column: 2; }
.exp.en { grid-column: 3; }

.exp div {
  font-family: "PitchSans-Regular";
  font-size: 16px;
  line-height: 1;
  margin-bottom: 3px;
}

.exp strong {
  font-weight: normal;
}

.letter-group {
  margin-bottom: 0;
}
.letter-group:last-child {
  padding-bottom: 103px;
}

/* NAV CSS */
.nav-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 0 auto;
  align-items: center;
}

.nav-row > .nav-col:nth-child(1) {
  grid-column: 1;
}

.nav-row > .nav-col:nth-child(2) {
  grid-column: 2;
}

.nav-row > .nav-col:nth-child(3) {
  grid-column: 3;
}

.nav-col {
  font-family: "PitchSans-Regular";
  font-size: 12pt;
  letter-spacing: 100%;
  padding-bottom: 0;
  text-align: left;
  min-width: 0;
}

.nav-language-row .nav-col,
.nav-title-row .nav-col {
  letter-spacing: 0;
}

.nav-center-row > .nav-center {
  grid-column: 1 / -1;
  text-align: center;
  font-family: "PitchSans-Regular";
  font-size: 12pt;
  letter-spacing: 0;
  padding-bottom: 8px;
  justify-self: center;
}
.nav-static {
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-static:hover,
.nav-static:active,
.nav-static:focus {
  color: black !important;
  opacity: 1 !important;
  background: transparent !important;
  filter: none !important;
}

.nav-static {
  pointer-events: none;
}

.top-nav {
  border-bottom: 0 solid #ffea00;
  padding-bottom: 62px;
}

.nav-language-row {
  border-bottom: 0 solid #ff0000;
  padding-bottom: 50px;
}

.nav-title-row {
  border-bottom: none;
  position: relative;
  padding-bottom: 8px;
}

.nav-links-row {
  border-bottom: none;
  position: relative;
}

.nav-center-row {
  border-bottom: none;
  position: relative;
}
.nav-title-row::after,
.nav-links-row::after,
.nav-center-row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #000000;
  transform: translateX(-50%);
}

/*OM SIDAN CSS*/

.nav-col {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.nav-col:visited {
  color: inherit;
}

.nav-col:hover {
  opacity: 0.6;
}

/* ABOUT PAGE */

.about-page {
  min-height: calc(100vh - 220px);
}

.about-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 0 auto;
  gap: 0;
}

.about-intro {
  padding-top: 0px;
}

.about-text {
  font-family: "TNY Adobe Caslon Pro Regular";
  font-size: 16px;
  line-height: 1.15;
  width: 100%;
  min-width: 0;
}

.about-text p {
  max-width: 260px;
}

.about-text.sv {
  grid-column: 1;
}

.about-text.ee {
  grid-column: 2;
}

.about-text.en {
  grid-column: 3;
}
/* LISA AJALOOLINE INFO SEKTSIOON */

.about-toggle {
  display: flex;
  flex-direction: column;
}

.about-text-large {
  max-width: none;
  line-height: 1.35;
}

.about-text-large p {
  margin: 0 0 36px 0;
}

.about-toggle {
  display: flex;
  flex-direction: column;
}

.about-text-large {
  max-width: none;
  line-height: 1.35;
}

.about-text-large p {
  margin: 0 0 36px 0;
}

/* nool */
.arrow-summary {
  order: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0 20px 0;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

.arrow-summary::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("/Nool.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.45s ease;
}

.about-toggle.open .arrow-summary::after {
  transform: rotate(180deg);
}

/* ajaloolise teksti osa */
.about-extra {
  order: 1;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  

  transition:
    max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s ease,
    transform 0.45s ease;
}

.about-toggle.open .about-extra {
  max-height: 2500px;
  opacity: 1;
  transform: translateY(0);
}

.about-extra-inner {
  padding-top: 24px;
}

.about-extra .about-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 0 auto;
  gap: 0;
}

.about-extra .about-text.sv {
  grid-column: 1;
}

.about-extra .about-text.ee {
  grid-column: 2;
}

.about-extra .about-text.en {
  grid-column: 3;
}

/* BIBLIOGRAPHY */

.about-bibliography {
  margin-top: 0px;
  position: relative;
}

.bibliography-headings-row,
.bibliography-body-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 0 auto;
}

.bibliography-headings-row {
  border-top: none;
  position: relative;
}

.bibliography-headings-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;

  width: 100vw;
  height: 0;

  border-top: 1px solid #000;

  transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  z-index: 1;
}

.bibliography-headings-row::after {
  display: none;
  content: none;
}
.bib-head {
  font-family: "PitchSans-Regular";
  font-size: 12pt;
  letter-spacing: 0.08em;
  text-align: left;
}

.bibliography-headings-row > .bib-head:nth-child(1) {
  grid-column: 1;
}

.bibliography-headings-row > .bib-head:nth-child(2) {
  grid-column: 2;
}

.bibliography-headings-row > .bib-head:nth-child(3) {
  grid-column: 3;
}

.bibliography-body {
  grid-column: 2 / 4;
  font-family: "TNY Adobe Caslon Pro Regular";
  font-size: 16px;
  line-height: 1.15;
  max-width: 520px;
  margin-top: 40px;
  padding-bottom: 100px;
}

.bibliography-body p {
  margin: 0 0 28px 0;
}

.arrow-summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  padding: 0px 0;
}

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

.arrow-summary::after {
  content: "";
  display: inline-block;

  width: 12px;   
  height: 12px;

  background-image: url("/Nool.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  transition: transform 0.5s ease;
}

.about-toggle[open] .arrow-summary::after {
  transform: rotate(180deg);
}


/* footer */

.site-footer {
  border-top: 1px solid #000;
  overflow: hidden;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: white;
  z-index: 100;
}

.footer-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.footer-track {
  display: flex;
  width: max-content;
  animation: footer-marquee 60s linear infinite;
}

.footer-track span {
  font-family: "PitchSans-Regular";
  font-size: 14px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-right: 80px;
}

@keyframes footer-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.about-mini-nav {
  display: none;
}
.about-mobile-lang-header {
  display: none;
}

/*MOBIILI VAADE*/

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* NAV */
  .top-nav {
    padding: 16px 18px 36px;
  }

  .nav-row {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 12px;
  }

  .nav-col,
  .nav-center-row > .nav-center {
    font-size: 10pt;
    line-height: 1.05;
  }

  .nav-language-row {
    padding-bottom: 34px;
  }

  .nav-title-row {
    padding-bottom: 10px;
  }

  /* ALPHABET BAR */
  #alphabet-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;

    gap: 10px;
    padding: 12px 18px;

    scrollbar-width: none;
  }

  #alphabet-bar::-webkit-scrollbar {
    display: none;
  }

  .alphabet-letter {
    flex: 0 0 auto;
    font-size: 10pt;
    letter-spacing: 2px;
  }

  .alphabet-letter:hover {
    transform: none;
  }

  /* ROWS */
  .row {
    width: 100%;
    max-width: none;

    grid-template-rows: auto auto;

    padding: 14px 18px;
    box-sizing: border-box;
  }

  .row > .col:nth-of-type(1) {
    text-align: left;
    justify-self: start;
  }

  .row > .col:nth-of-type(2) {
    text-align: center;
    justify-self: center;
  }

  .row > .col:nth-of-type(3) {
    text-align: right;
    justify-self: end;
  }

  .col {
    padding: 2px 0;
    font-size: 13pt;
    line-height: 1.05;
  }

  .letter {
    position: static;
    transform: none;

    order: -1;
    margin-bottom: 10px;

    font-size: 11pt;
  }

  .expanded {
    grid-column: 1;
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .exp.sv,
  .exp.ee,
  .exp.en {
    grid-column: 1;
  }

  .exp {
    padding: 6px 0;
  }

  .exp div {
    font-size: 11pt;
    line-height: 1.15;
  }
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: clip;
}
.row,
.nav-row,
.col {
  min-width: 0;
}
.row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: #000;
  transform: translateX(-50%);
}
.mobile-mini-nav {
  display: none;
}
.mobile-sticky-stack {
  display: contents;
}


@media (max-width: 430px) {

 html {
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }


 .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    padding: 0px 16px;
    border-bottom: 1px solid #000;
  }

.row::after {
  display: none;
}

  .row > .col:nth-of-type(1) {
    grid-column: 1;
  }

  .row > .col:nth-of-type(2) {
    grid-column: 2;
  }

  .row > .col:nth-of-type(3) {
    grid-column: 3;
  }

  .col {
    font-size: 11pt;
    line-height: 1.1;
    padding: 4px 0;
    text-align: center;
    justify-self: center;
  }

  /* Letter A, B, C centered above group */
  .letter {
    position: static;
    transform: none;

    grid-column: 1 / -1;
    grid-row: 1;

    text-align: center;
    justify-self: center;

    font-size: 11pt;
    margin-bottom: 10px;
  }

  .row > .col {
    grid-row: 2;
  }

  .expanded {
    grid-column: 1 / -1;
    grid-row: 3;

    display: block;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    padding: 0;
  }

  .expanded.open {
    max-height: 500px;
    opacity: 1;
    padding-top: 14px;
  }

  .exp {
    padding: 4px 0;
    text-align: left;
  }

  .exp.sv,
  .exp.ee,
  .exp.en {
    grid-column: auto;
  }

  .exp div {
    font-size: 11pt;
    line-height: 1.2;
    text-align: left;
  }

  /* alphabet bar*/
   #alphabet-bar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;

    gap: 0;
    padding: 0 0;

    background: white;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;

    scrollbar-width: none;
  }

  #alphabet-bar::-webkit-scrollbar {
    display: none;
  }

  .alphabet-letter:active {
    opacity: 0.4;
  }

  .alphabet-letter {
    flex: 0 0 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13pt;
    line-height: 1;
    letter-spacing: 0;

    color: #000;
    text-decoration: none;

    border-right: 1px solid #000;
    box-sizing: border-box;
  }

  .alphabet-letter:first-child {
    border-left: 1px solid #000;
  }

  .alphabet-letter:hover {
    transform: none;
  }

  .alphabet-letter.disabled {
    opacity: 0.25;
  }

  #alphabet-bar::before {
    display: none;
  }

/* language header mobile */

  .nav-language-row {
    display: none;
  }

   .mobile-lang-header {
    position: sticky;
    top: 42px;
    z-index: 998;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    padding: 6px 16px;
    border-bottom: 1px solid #000;
    background: white;

    font-family: "PitchSans-Regular";
    font-size: 10pt;
  }

  .mobile-lang-header > div:nth-child(1) {
    text-align: left;
  }

  .mobile-lang-header > div:nth-child(2) {
    text-align: center;
  }

  .mobile-lang-header > div:nth-child(3) {
    text-align: right;
  }

  /*alphabet bar border issue*/
   #alphabet-bar .alphabet-letter:first-child {
    border-left: none !important;
  }

  #alphabet-bar .alphabet-letter:last-child {
    border-right: none !important;
  }

  /*nav bar*/
  .top-nav {
    padding: 40px 0 26px;
  }

  .nav-language-row {
    display: none !important;
  }

  .nav-row {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-col,
  .nav-center-row > .nav-center {
    display: block;
    width: 100%;
    padding: 10px 26px;
    box-sizing: border-box;
    border-bottom: 1px solid #000;
  }

  .nav-row .nav-col:nth-child(1) {
    text-align: left;
  }

  .nav-row .nav-col:nth-child(2) {
    text-align: center;
  }

  .nav-row .nav-col:nth-child(3) {
    text-align: right;
  }

  .nav-center-row > .nav-center {
    text-align: center;
  }

  .nav-row > div:empty {
    display: none;
  }

  .top-nav > .nav-row:nth-of-type(3) .nav-col:nth-child(3) {
    border-bottom: none;
  }
  .top-nav > .nav-row:nth-of-type(5) .nav-col:nth-child(3) {
    border-bottom: none;
  }

  /* meny nav */
   .mobile-sticky-stack {
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
  }

  .mobile-mini-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;

    border-top: 0px solid #000;
    border-bottom: 0px solid #000;

    transition: opacity 0.5s ease, max-height 0.5s ease;
  }

  .mobile-mini-nav.show {
    opacity: 1;
    max-height: 42px;
    pointer-events: auto;
  }

  .mobile-mini-nav a {
    padding: 10px 26px;
    font-family: "PitchSans-Regular";
    font-size: 11pt;
    letter-spacing: 6px;
    color: black;
    text-decoration: none;
  }

  .mobile-mini-nav a:nth-child(1) {
    text-align: left;
  }

  .mobile-mini-nav a:nth-child(2) {
    text-align: center;
  }

  .mobile-mini-nav a:nth-child(3) {
    text-align: right;
  }

  #alphabet-bar {
    position: static;
    top: auto;
  }

  .mobile-lang-header {
    position: static;
    top: auto;
  }

    /* ABOUT PAGE MOBILE */

    .about-page {
    min-height: auto;
    padding-bottom: 48px;
  }

  .about-intro {
    padding-top: 0;
  }

  /* language indicator */
  .about-mobile-lang-header {
    display: block;
    padding: 6px 26px 26px;
    border-top: none;
    font-family: "PitchSans-Regular";
    font-size: 10pt;
    text-align: left;
    background: white;
  }

  .about-row,
  .about-extra .about-row {
    display: flex;
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;

    margin: 0;
    padding: 0;

    scrollbar-width: none;
  }

  .about-row::-webkit-scrollbar,
  .about-extra .about-row::-webkit-scrollbar {
    display: none;
  }

  .about-text {
    flex: 0 0 100%;
    scroll-snap-align: start;

    box-sizing: border-box;
    padding: 0 26px;

    font-size: 16px;
    line-height: 1.18;
    text-align: left;
  }

  .about-text p {
    margin: 0 0 18px 0;
    max-width: none;
  }

  .about-text p:last-child {
    margin-bottom: 12px;
  }

  .arrow-summary {
    margin: 8px 0;
    padding: 6px 0;
  }

  .about-toggle {
    margin-bottom: 12px;
  }

  .about-extra-inner {
    padding-top: 0;
  }

  .about-text-large {
    line-height: 1.25;
  }

  .about-text-large p {
    margin: 0 0 22px 0;
  }

  .about-toggle.open .about-extra {
    max-height: 4000px;
  }

  /* bibliography */

.about-bibliography {
  margin-top: 12px;
}

.bibliography-headings-row {
  display: block;
  border-top: 1px solid #000;
}

.bibliography-headings-row::before,
.bibliography-headings-row::after {
  display: none;
  content: none;
}

.bib-head {
  display: none;
  padding: 10px 26px;

  font-family: "PitchSans-Regular";
  font-size: 11pt;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.bib-head.active {
  display: block;
}
.bibliography-body-row {
  display: block;
  padding: 0;
}

.bibliography-body {
  padding: 0 26px;
  margin-top: 18px;
  max-width: none;

  font-size: 16px;
  line-height: 1.18;
}
  .about-mobile-lang-header::after {
    content: "  ● ○ ○";
    letter-spacing: 0.12em;
    font-size: 9pt;
  }

  .about-mobile-lang-header[data-lang="1"]::after {
    content: "  ○ ● ○";
  }

  .about-mobile-lang-header[data-lang="2"]::after {
    content: "  ○ ○ ●";
  }
/*about collapsed nav*/
.about-mini-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    height: 42px;
    background: white;

    border-top: none;
    border-bottom: 1px solid #000;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);

    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .about-mini-nav.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  
}
