/*=GENERAL*************************************************************************************/
    
	* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{

    --cl-fnt:#14213D;
    --cl-bg: #f9f9f9;
    --cl-org:#FCA311;
    --cl-gr:#e5e5e5;
}
    
    html, body {
      margin: 0;
      height: 100vh;
      font-family: Arial, sans-serif;
      background-color: var(--cl-bg);
      color:var(--cl-fnt);
    }

    body {
      display: flex;
      flex-direction: column;
    }

/*=GENERAL END*************************************************************************************/
/*=NAV ------------------------------------------------------------------------------------------------------*/
    nav {
     
      color: var(--cl-fnt);
      display: flex;
      justify-content: flex-end;
      padding: 1rem;
      gap: 1rem;
    }

    nav ul {
  display: flex;               /* horisontaalne paigutus */
  justify-content: flex-end;   /* viib paremasse serva */
  list-style: none;            /* eemaldab täpid */
  margin: 0;
  padding: 0;
  gap: 1rem;                   /* vahe linkide vahel (soovi korral) */
}

a{
      color: var(--cl-fnt);
      text-decoration: underline;
      text-decoration-style: dashed;
      font-weight: bold; 
      text-underline-offset: 3px;
}

a:visited{
   color: var(--cl-gr);
      text-decoration: underline;
}

nav ul li a, nav ul li a:visited {
   color: var(--cl-fnt);
      text-decoration: none;
      font-weight: bold;        /* või mõni muu värv */
}

nav a:hover, a:hover  {
      text-decoration: underline;
      text-decoration-color: var(--cl-org);
    }

nav ul li a.active {
  font-weight: bold;
  color: var(--cl-org);     /* või valitud esiletõstuvärv */
  text-decoration: underline;
}



    

/*=NAV end ------------------------------------------------------------------------------------------------------*/
 /*=HOME ------------------------------------------------------------------------------------------------------*/   
    .content, .content-pg{
      background-color: var(--cl-bg);
      color: var(--cl-fnt);
      padding: 1rem;
    }

    .content {
      padding: 5rem;
    }

    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      text-align: left;
      width: 100%;
      max-width: none;
    }

    .content h1,
    .content h2,
    .content h3 {
      display: block;
      width: 100%;
      box-sizing: border-box;
      text-align: center;
    }

    /* Esilehe h2 ilma sõnastiku kollase alumise jooneta */
    .content h2.n-lne {
      border-bottom: none;
      padding-bottom: 0;
    }

    .content h3{
      margin:2rem 0;
    }

    /* Esilehe “Lugemist” sektsioon */
    .reading-section {
      width: 100%;
      margin-top: 5rem;
    }

    /* Tekst vasakule, aga joone pikkus kogu sektsiooni laiusele */
    .reading-heading {
      display: block;
      width: 100%;
      box-sizing: border-box;
      text-align: left !important; /* tühistab .content h2 text-align:center */
      border-bottom: 2px solid var(--cl-org);
      padding-bottom: 0.3rem;
      margin-bottom: 1rem;
    }

    .reading-half {
      display: flex;
      flex-direction: row;
      gap: 1rem;
      width: 100%;
    }

    .reading-col {
      flex: 1;
      min-width: 0;
      margin-top:2rem
    }

    .reading-list {
      list-style: disc;
      padding-left: 1.5rem;
      margin: 0;
    }

    .reading-list li {
      margin: 0.35rem 0;
    }

    /*.reading-list a {
      text-decoration: underline;
      text-decoration-style: dashed;
      text-underline-offset: 3px;
      color: var(--cl-fnt);
      font-weight: bold;
    }*/

    /* Kaks lõiku ühel real: vasak pool 50% (nagu varem), parem pool 50%; parempoolne tekst ~72% selle poole laiusest */
    .content-lede-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      column-gap: 1rem;
      row-gap: 0;
      align-items: start;
      width: 100%;
      box-sizing: border-box;
      margin-top: 0.75rem;
    }

    .content-lede-row p {
      min-width: 0;
      margin: 0;
    }

    .content-lede-row p:first-child {
      grid-column: 1;
      text-align: right;
    }

    .content-lede-row p:last-child {
      grid-column: 2;
      text-align: left;
      /* Tekstiriba laius = ~72% parempoolsest poolest (vahemik 70–75%) */
      width: 90%;
      box-sizing: border-box;
    }

    .content-lede-tail {
      display: block;
      width: 35%;
      margin-top: 0.75rem;
      margin-left: 60%;
      text-align: left;
      box-sizing: border-box;
    }

    @media (max-width: 640px) {
      .content-lede-row {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
      }

      .content-lede-row p:first-child,
      .content-lede-row p:last-child {
        grid-column: auto;
      }
      .content-lede-row p,
      .content-lede-row p:first-child,
      .content-lede-row p:last-child,
      .content-lede-tail {
        text-align: left;
        width: 100%;
        margin-left: 0;
      }
    }

    .bld{
        font-weight:bold;
    }

    .itl{
      font-style: italic;
    
    }

    small{ 
      font-size: 0.7rem;
    }

    .cntr{
      text-align: center;
    }

    hr.y-ln{
       border: 2px solid var(--cl-org);
    }

    .blg > p, .blg > ol > li{
    font-size: 1.2rem;
    line-height: 2.1rem;
    }
/*=HOME END ------------------------------------------------------------------------------------------------------*/
/*=DICTIONARY ------------------------------------------------------------------------------------------------------*/
  .content-pg{
    width: 80%;
    margin:0 auto

  }

  .content-pg h1{
    text-align: center;
  }

  .m-b, h1, .blg p{
    margin-bottom: 20px;
  }

.alp-mnu {
    display: flex;
    flex:1;
    gap: 10px;
    position: sticky;
    top: 0;
    padding: 10px;
    background-color: var(--cl-gr);
    /*border-bottom: 1px solid var(--cl-org);*/
    z-index: 10;
  }
  #alphabetMenu button {
    background:var(--cl-org);
    border: 1px solid var(--cl-bg);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  #alphabetMenu button:hover {
    background: var(--cl-fnt);
    color: var(--cl-org);
  }
  #alphabetMenu button.active {
    background: var(--cl-fnt);
    color: var(--cl-org);
  }
  
  section {
    margin-bottom: 3rem;
  }
  h2 {
    border-bottom: 2px solid var(--cl-org);
    padding-bottom: 0.3rem;
  }
  dl dt {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 20px;
  }
  dl dd {
    margin-left: 1.5rem;
    margin-bottom: 3.5rem;
  }

  dd p {
    margin-bottom:20px;
    line-height: 2.1rem;
  }

  .dict-o-lst li, .dict-lst li{
    margin-bottom:0.8%;
    margin-left: 20px;
  }

  /*=DICTIONARY END ------------------------------------------------------------------------------------------------------*/
/*=FOOTER ------------------------------------------------------------------------------------------------------*/
    footer {
      height: 60px;
      text-align: center;
      line-height: 60px;
      font-size: 0.9rem;
    }

    footer a {
      color: var(--cl-fnt);
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }
/*=FOOTER END ------------------------------------------------------------------------------------------------------*/

/*=POST VIEW ------------------------------------------------------------------------------------------------------*/
.post-view {
  display: block;
  font-family: sans-serif;
  width: min(800px, calc(100% - 2em));
  max-width: 800px;
  margin: 40px auto;
  padding: 0 1em 2rem;
  line-height: 1.6;
}

.post-view h1 {
  border-bottom: 2px solid var(--cl-org) !important;
  padding-bottom: 0.3rem;
  display: block;
}

.post-view .meta {
  color: gray;
  margin-bottom: 0.625rem;
}

.post-view .post-content,
.post-view .post-content p,
.post-view .post-content li,
.post-view .post-content span {
  background-color: transparent !important;
}

.post-view .post-content > ul {
  /* Quill HTML + globaalne CSS reset teeb default-ul margin/padding kaduma.
     Paneme tagasi “vana” tunnetusega loogika. */
  margin: 0.9rem 0 1.5rem 0;
  padding: 0 2rem; /* ~40px-ish */
}

.post-view .post-content > ul > li {
  margin: 0;
  padding: 0;
}

.post-view .post-content {
  margin-bottom: 1.5rem;
}

.post-view .post-content p {
  margin-bottom:1.5rem;

}

.tags{
  padding-bottom:4rem
}


.post-view .tag {
  display: inline-block;
  background: #eee;
  color: #333;
  padding: 4px 8px;
  margin-right: 5px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-view .post-home {
  margin-top: 1.25rem;
}

.post-view .post-home-link {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  color: var(--cl-fnt);
  font-weight: bold;
}

.post-view .post-home-link:hover {
  color: var(--cl-org);
}
/*=POST VIEW END --------------------------------------------------------------------------------------------------*/
