html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}

/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}summary{display:list-item}
audio,canvas,progress,video{display:inline-block}progress{vertical-align:baseline}
audio:not([controls]){display:none;height:0}[hidden],template{display:none}
a{background-color:transparent}a:active,a:hover{outline-width:0}
abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}
b,strong{font-weight:bolder}dfn{font-style:italic}mark{background:#ff0;color:#000}
small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px}img{border-style:none}
code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}hr{box-sizing:content-box;height:0;overflow:visible}
button,input,select,textarea,optgroup{font:inherit;margin:0}optgroup{font-weight:bold}
button,input{overflow:visible}button,select{text-transform:none}
button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}
button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}
button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}
fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}
legend{color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}
[type=checkbox],[type=radio]{padding:0}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px}
[type=search]::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
/* End extract */

/* Common elements */

html {
  background-color: #ddeeff;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #222;
  background-color: white;
}

h1 {
  font-size: 2.1rem;
}

a {
  color: #0066bb;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
}

hr {
  border: 1px solid #ff8855;
}

/* Scroll container is added around every table by TineLContentEnhancer. Keeping the scroll on the wrapper lets the table stay a real table. */
.tlTableScroll {
  margin: 1rem 0;
  overflow-x: auto;
}

table {
  margin: 1rem 0;
  border-spacing: 0;
  border-collapse: collapse;
  text-align: left;
}

.tlTableScroll > table {
  margin: 0;
}

table tbody tr:nth-of-type(2n+1) {
  background: #4444440a;
}

table td, table th {
  padding: .6rem .4rem;
  border-bottom: .05rem solid #e7e9ed;
  vertical-align: top;
}

/* Main structural elements */

nav#tlMenu {
  position: fixed;
  top: 0;
  z-index: 40;
  width: 300px;
  height: 100%;
  padding: 8px 16px;
  background-image: linear-gradient(#0066bb, #0099dd);
  font-size: 1.15rem;
  color: white;
  overflow-y: auto;
  transition: left .5s;
}

#tlLogo {
  margin: 80px 0;
  padding: 8px 16px;
  text-align: center;
}

nav#tlToc {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  width: 200px;
  height: 100%;
  padding: 8px 16px;
  background-color: #ddeeff;
  color: black;
  overflow-y: auto;
  transition: right .5s;
}

nav#tlTocButton {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 8px 16px;
  color: black;
}

header {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 8px 16px;
  background-color: rgba(0,102,187,.9); /* IE/Edge quirk: #0066bbe6 */
  font-size: 1.15rem;
  color: white;
  z-index: 5;
}

svg#tlHeaderLogo {
  height: 24px;
  width: 77px;
  fill: currentColor;
  vertical-align: middle;
}

div#tlDimMenu,
div#tlDimToc {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5); /* IE/Edge quirk: #00000080 */
  cursor: pointer;
}

.tlMain {
  margin-left: 340px;
  margin-right: 40px;
  min-width: 320px;
  padding: 8px 16px;
  overflow-wrap: break-word;
  transition: margin .5s;
}

.tlMainWToc {
  margin-right: 240px;
}

#tlMainTitle {
  margin-top: 80px;
  font-size: 3.1rem;
  line-height: 1.1;
  color: #0066bb;
}

#tlMainSubtitle {
  font-size: 1.8rem;
  color: #0066bb;
}

#tlMainTitleHr {
  margin: 20px 0;
  width: 74px;
  border: 5px solid #ff8855;
  border-radius: 4px;
  text-align: left; /* IE/Edge quirk */
}

article {
  margin: 2em 0;
}

footer {
  margin-top: 80px;
  z-index: 4;
  width: 100%;
  background-color: #ddeeff;
  font-size: .85rem;
}

div#tlCopyright {
  text-align: center;
}

/* Special screen/print cases */

@media screen and (max-width: 992px) {
  nav#tlMenu {
    left: -300px;
  }
  nav#tlToc {
    right: -200px;
  }
  main,
  #tlCopyright {
    margin: 0 !important;
  }
  nav#tlTocButton {
    display: none;
  }
}

@media screen and (min-width: 993px) and (max-width: 1216px) {
  nav#tlMenu {
    left: 0 !important;
  }
  nav#tlToc {
    right: -200px;
  }
  header,
  div#tlDimMenu,
  .tlMenuCloseButton {
    display: none !important;
  }
  main,
  div#tlCopyright {
    margin-left: 340px;
    margin-right: 0 !important;
  }
}

@media screen and (min-width: 1217px) {
  nav#tlMenu {
    left: 0 !important;
  }
  nav#tlToc {
    right: 0 !important;
  }
  header,
  div#tlDimMenu,
  div#tlDimToc,
  nav#tlTocButton,
  .tlMenuCloseButton,
  .tlTocCloseButton {
    display: none !important;
  }
}

@media print {
  .tlTableScroll {
    overflow-x: visible; /* Hides scrollbar in Chrome */
  }
  header,
  nav#tlMenu,
  nav#tlTocButton,
  nav#tlToc,
  #footerSitemap,
  .tlButton {
    display: none !important;
  }
  .tlMain,
  .tlMainWToc {
    margin: 0;
  }
}

/* Main individual elements */

.tlMenuButton {
  display: block;
  padding: 8px 16px;
  font-size: 1.15rem;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: .3s;
  -webkit-tap-highlight-color: transparent; /* Prevents default selection background on Android Chrome */
}

.tlMenuButton:hover {
  background-color: white;
  color: #0066bb;
}

/* Turn off hover & active effect on touch devices */
@media (hover: none) {
  .tlNoHover:hover {
    background-color: transparent;
    color: inherit;
  }
}

.tlSubMenuButton {
  margin-left: 1em;
}

.tlSubMenuButton,
.tlSmallMenuButton {
  font-size: 1rem;
}

.tlMenuCloseButton,
.tlTocCloseButton {
  position: absolute;
}

.tlTocCloseButton {
  right: 16px;
}

.tlTocCloseButtonBackground {
  background-color: rgba(221,238,255,.8); /* IE/Edge quirk: #ddeeffcc */
}

.tlTocTitle {
  margin: 80px 0;
}

.tlSkipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: white;
  color: #0066bb;
  border: 2px solid #0066bb;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}

/* Only visible while it has keyboard focus. Mouse users never see it. */
.tlSkipLink:focus {
  left: 0;
}

.tlSectionAnchor {
  position: absolute;
  margin-left: -32px;
  font-weight: normal;
  font-size: 90%;
  text-decoration: none;
}

/* Quick search box in the left sidebar */

#tlMenuSearch {
  display: flex;
  margin: 8px 16px 16px 16px;
}

#tlMenuSearch input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
  color: #222;
}

#tlMenuSearch button {
  padding: 6px 10px;
  border: 0;
  border-radius: 0 6px 6px 0;
  background-color: #ff8855;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

#tlMenuSearch button:hover {
  background-color: #ffbb55;
}

/* Customized per-content elements */

.tlFloatContainer {
  overflow: auto;
}

.tlFloater {
  float: left;
  margin: 0 1em;
}

.tlButton {
  display: inline-block;
  padding: 6px 16px;
  margin: 3px 0; /* For multiple buttons laid out in multiple lines */
  border: 0;
  border-radius: 999px;
  background: #ddeeff;
  color: black;
  cursor: pointer;
  text-decoration: none;
}

.tlButton:hover {
  background: #ffccbb;
}

.tlOrange {
  color: #ff8855;
}

.tlBox {
  margin: 1.5rem 0;
  padding: .1rem 1rem;
  border-left: 10px solid #ff8855;
  background: #fff8f4;
  border-radius: 6px;
}

/* Jokes: one .tlJoke block per joke, separated by a hairline.
   A joke may hold several paragraphs, a list, a picture or a table. */

article.tlJokes .tlJoke {
  padding: 1.1rem .2rem;
  border-bottom: 1px solid #ddeeff;
}

/* Every second joke on a faint grey, like alternating rows in a table.
   Every div inside a jokes article is a joke, so nth-of-type counts them.
   This rule stays above :hover and :target, which have the same weight and
   have to win. */
article.tlJokes .tlJoke:nth-of-type(even) {
  background-color: #fafafa;
}

article.tlJokes .tlJoke:hover {
  background-color: #f4f9ff;
}

article.tlJokes .tlJoke > :first-child {
  margin-top: 0;
}

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

article.tlJokes .tlJoke p {
  margin: 0 0 .8rem 0;
}

article.tlJokes .tlJoke ol,
article.tlJokes .tlJoke ul {
  margin: 0 0 .8rem 0;
}

article.tlJokes > h1,
article.tlJokes > h2 {
  margin-top: 2.5rem;
  color: #0066bb;
}

/* Sayings (izreki) */

article.tlSayings ol > li {
  margin: .6rem 0;
}

/* Picture galleries */

.tlGallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.tlGallery figure {
  margin: 0;
  width: 144px;
  text-align: center;
  font-size: .8rem;
  word-break: break-all;
}

.tlGallery figure img {
  display: block;
  margin: 0 auto .3rem auto;
  border: 1px solid #ddeeff;
  border-radius: 4px;
}

.tlGallery figure a {
  text-decoration: none;
}

.tlGallery figure a:hover img {
  border-color: #ff8855;
}

/* Search page */

#tlSearchForm {
  margin: 1rem 0 1.5rem 0;
}

#tlSearchLine {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}

#tlSearchForm input[type=text] {
  flex: 1;
  min-width: 0;
  padding: .5rem .8rem;
  border: 1px solid #0066bb;
  border-radius: 6px;
  font-size: 1.05rem;
  color: #222;
}

#tlSearchForm button {
  padding: .5rem 1.2rem;
  border: 0;
  border-radius: 6px;
  background-color: #0066bb;
  color: white;
  font-size: 1.05rem;
  cursor: pointer;
}

#tlSearchForm button:hover {
  background-color: #ff8855;
}

#tlSearchStatus {
  color: #0066bb;
  font-weight: bold;
}

.tlSearchHit {
  padding: 1.1rem 0.2rem;
  border-top: 1px solid #ddeeff;
}

.tlSearchHit:nth-of-type(even) {
  background-color: #fafafa;
}

.tlSearchHit:hover {
  background-color: #f4f9ff;
}

.tlSearchHit mark {
  background: #ffdd99;
}

/* Section navigation below the table of contents in the right sidebar */

#tlTocNav {
  margin-top: 2rem;
  padding-top: .5rem;
  border-top: 1px solid #99bbdd;
  font-size: .95rem;
}

#tlTocNav p {
  margin: .5rem 16px;
}

#tlTocNav ul {
  margin: .3rem 0;
  padding: 0;
  list-style: none;
}

#tlTocNav li a {
  display: block;
  padding: 4px 16px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

#tlTocNav li a:hover {
  background-color: white;
  color: #0066bb;
}

/* Permanent joke number, small and faint until the joke is hovered */

.tlJokeId {
  float: right;
  margin-left: 1.5em;
  color: #cfdff0;
  font-size: .75rem;
  text-decoration: none;
}

article.tlJokes .tlJoke:hover .tlJokeId {
  color: #ff8855;
}

.tlJokeId:target {
  color: #ff8855;
}

article.tlJokes .tlJoke:has(.tlJokeId:target) {
  background-color: #fff4ec;
}

/* Display face */

#tlMainTitle,
#tlMainSubtitle,
.tlMenuButton,
.tlButton,
#tlTocNav,
#tlMenuSearch input,
#tlMenuSearch button,
#tlSearchForm button,
article h1,
article h2,
article h3 {
  font-family: 'Comfortaa', 'Poppins', sans-serif;
  letter-spacing: -.01em;
  font-weight: 700;
}

/* One picked joke on the front page */

.tlSearchHitSource,
#tlFeaturedSource {
  font-size: .85rem;
}

#tlFeaturedNext {
  background: #0066bb;
  color: white;
}

#tlFeaturedNext:hover {
  background: #ff8855;
}

/* Pictures opened over the page, in the browser's own dialog */

#tlPictureDialog {
  max-width: 92vw;
  max-height: 92vh;
  padding: 1rem;
  border: 0;
  border-radius: 12px;
  background: white;
  color: #222;
}

#tlPictureDialog::backdrop {
  background: rgba(0, 32, 64, .75);
}

#tlPictureDialog img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
}

#tlPictureDialog p {
  margin: .6rem 0 0 0;
  font-size: .85rem;
  text-align: center;
  word-break: break-all;
}

#tlPictureDialog form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .4rem;
}

#tlPictureDialog form button {
  padding: .2rem .6rem;
  border: 0;
  border-radius: 6px;
  background: #ddeeff;
  color: #0066bb;
  font: inherit;
  cursor: pointer;
}

#tlPictureDialog form button:hover {
  background: #ff8855;
  color: white;
}
