/**
 * CSS sections menu
 * -----------------
 * 
 * Colours
 * Typography
 * Resets
 * Header
 * Navigation
 * Settings
 * noUi-Slider
 * Search
 * Notifications
 * Buttons
 * Map toggle control
 * Output pane
 * Modal dialog for etymology
 * Right hand panel for records details
 * Service classes
 * Webforms related stuff
 * Webmap related stuff
 * Pagination
 * Accordion menu
 * sht
 * Grid
 * Loading spinner
 * Media queries
 *   Large screens
 *   Small screens
 * Tooltips
 * FONTS !
 *   Junicode
 *   Raleway
 *   FreeSerif
 */

:root
{
	/**Colours*/
	
	--theme-blue: #0090c5;
	--red: #960018;
	--font-grey: #333;
	--gray-300: #a0a0a0;
	--off-white: #f8f8ff;
	--outln: solid 1px pink;
  --muted-teal: #3a8d8c;
  --warm-teracotta: #c96d4c;
  --dusty-lavander: #a398c0;
  --sage-green: #8a9a5b;
  --soft-mustard: #c7a252;
  --muted-coral: #d17c69;
  --deep-plum: #6b4978;

	/**Typography*/

	font-size: clamp(15pt, 1vw + .1rem, 1.6rem);
	font-family: 'Raleway', monospace, sans;
	font-weight: 400;
	color: var(--font-grey);
	box-sizing: border-box;
}

/**Resets*/

*, *::before, *::after
{
	/*outline: solid 1px pink;*/
	margin: unset;
	padding: unset;
	box-sizing: border-box;
}

html
{
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

html, body
{
  margin: 0;
  padding: 0;
}

:not(header) h2, :not(header) h3, :not(header) h4 {
  margin-block-start: 1.22em;
  margin-block-end: 0.66em;
}

/**
 * Layout
 */

body
{
  display: grid;
  grid-template-areas: 
    "header header header"
    ". content ."
    "footer footer footer";
  grid-template-columns: 
    2em 1fr 2em;
  /*
  position: relative;
  grid-template-rows: 72px calc(100vh - 107px);
  */
}

ul {
  padding-inline: 1.25em;
  margin-block-end: 0.5em;
}

.content
{
  grid-area: content;
}

.foot
{
  grid-area: footer;
  height: 9vh;
  padding-right: .8em;
  padding-left: .8em;
  overflow-y: clip;
}

/**Header*/

.main_header
{
  display: flex;
  grid-area: header;
  height: 72px;
  background-color: #ececec;
  background-image: url('/pics/topo_back.png');
  background-blend-mode: screen;
  background-size: auto;
  place-items: center;
  isolation: isolate;
  position: sticky;
  z-index: 1000;
  top: 0;
  box-shadow: 0px 1px 5px -6px var(--gray-300);
}

.main_header h1
{
  margin: unset;
  margin: 0;
  /*
  font-family: radmannsdorf;
  */
  padding-left: 1rem;
  position: relative;
  font-size: 1.2rem;
  color: var(--font-grey);
  letter-spacing: 3px;
}


.logo_wrapper > h1
{
  margin-top: 0.5em;
}

.logo
{
  position: relative;
  display: flex;
  max-width: 25ch;
  max-height: 72px;
  margin-left: 1rem;
}

.logo::before, .logo::after
{
  content: '';
  height: 100%;
  position: absolute;
  top: 0;
  z-index: -1;
  mix-blend-mode: screen;
}


.logo::before
{
  left: 0;
  width: 50%;
  background-image: linear-gradient(
    to left,
    rgba(200,200,200,1),
    rgba(200,200,200,0)
  );
}

.logo::after
{
  left: 50%;
  width: 50%;
  background-image: linear-gradient(
    to right,
    rgba(200,200,200,1),
    rgba(200,200,200,0)
  );
}

.main_title
{
  font-size: large;
  letter-spacing: .2em;
  margin-left: .5em;
  font-weight: 500;
}

#logo:hover
{
  filter: invert(100%);
}

/**
 * Navigation
 */
nav
{
  position: absolute;
  top: 100%;
  background: white;
  width: 100%;
  transform-origin: top;
  transform: scale(1, 0);
  text-align: left;
  transition: transform 400ms ease-in-out;
  box-shadow: 0 5px 5px -4px rgba(0,0,0,.25);

}


nav.horizontal
{
  padding-top: 0.75em;
  border-top: 1px solid var(--off-white);
}


.impressum
{
  z-index: 5;
  font-size: 1.25em;
}

.main_header .impressum
{
  display: none;
}

.impressum ul
{
  padding: 0;
}

.impressum ul li
{
  list-style: none;
}

.impressum ul li a
{
  text-decoration: none;
  color: var(--red);
}

nav ul
{
  margin: 0;
  padding: 0;
  list-style: none;
  margin-left: 1em;
}

nav li
{
  margin-block-end: 0.66em;
}

nav a
{
  display: block;
  text-decoration: none;
  color: var(--theme-blue);
  font-size: .85rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

nav a:hover
{
  color: #000;
}
.nav-toggle
{
  display: none;
}

.nav-toggle:checked ~ nav
{
  transform: scale(1, 1);
}

.nav-toggle:checked ~ nav a
{
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

.nav-toggle-label
{
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0;
  height: 72px;
  width: 72px;
  margin-left: auto;
  background-color: white;
}

.nav-toggle-label span
{
  margin: 0 1em;
  flex-shrink: 0;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after
{
  display: block;
  background: var(--theme-blue);
  height: 3px;
  width: 1.4em;
  border-radius: 3px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after
{
  content: '';
  position: absolute;
}

.nav-toggle-label span::before
{
  bottom: 7px;
}

.nav-toggle-label span::after
{
  top: 7px;
}


.nav-toggle-label .logo_img
{
  display: none;
}
/**
 * Layouts
 * 
 */

.ozje
{
  max-width: 69ch;
  /*max-height: calc(100% - 72px);*/
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  padding: 1px;
}

.ozje h2, .ozje h3
{
  hyphens: none;
  -moz-hyphens: none;
}
/* Left list pane */

ul.no_marker
{
  list-style-type: none;
}


/**
 * Buttons
 */

button
{
  cursor: pointer;
  overflow: visible;
}

.btn
{
  display: grid;
  place-items: center;
  place-content: center;
  border: none;
  padding: 0;
  font-family: Arial;
}

/*.btn:last-child
{
  border-bottom-width: .25px;
}*/

.btn:hover
{
  background-color: white;
}

.center
{
  margin: 0 auto;
}

.center.ozje {
  min-height: calc(100svh - 72px);
}

.btn-small
{
  display: block;
}

.btn-large
{
  padding: 2%;
  height: 3em;
}

.w-auto
{
  width: fit-content;
}

/*.unicode-button
{
  position: relative;
  top: -3px;
  display: inline-block;
  white-space: nowrap;
  width: auto;
  padding: unset;
  margin: unset;
  background-color: unset;
  border: unset;
  font-size: 1.2em;
  padding: 3px;
  border-radius: 0;
  text-shadow:  none;
}

.ok
{
  position: relative;
}

.ok:hover
{
  background: pink;
}

.unicode-button.ok::before
{
  content: \128269;
}
*/
.clear
{
  /*height: 24px;
  border: 0;
  z-index: 3;
  */
  color: var(--red);
  border-radius: 100vh;
}
/*
.unicode-button.clear::before
{
  content: '×';
  color: var(--red);
}


.unicode-button.rst::before
{
  content: '⟳';
}

.unicode-button.ok::before
{
  content: '\1f50d';
}

.unicode-button.rst::before, .unicode-button.clear::before .unicode-button.ok::before
{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  z-index: 5;
}
*/
.btn-med
{
  display: block;
  width: 120px;
  height: 44px;
}

.switch
{
  display:none;
}

.srch-settings label.switch_lbl
{
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.switch_icon
{
  --timing: .33s;
  display: flex;
  align-items: center;
  position: relative;
  line-height: 1.5em;
  height: 1.5em;
  width: 3em;
  outline: 1px solid gainsboro;
  border-radius: 100vh;
/*  left: calc(var(--lbl-width) + 1ch);*/
}

.switch_icon::after
{
  content: '';
  position: absolute;
  z-index: 1;
  border-radius: 100vh;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 50%;
  background-color: #333;
  transition: transform var(--timing);
}


.switch:checked ~ .switch_icon::after
{
  transform: translateX(100%);
  background-color: var(--theme-blue);
  transition: transform var(--timing);
}

span.lbl_text
{
  position:absolute;
  left:calc(-1 * var(--lbl-width));
  width: var(--lbl-width);
}


/**
 * Search filters commands
 */

.srch-settings
{
  height: 0;
  transform-origin: top;
  transform: scale(1,0);
  transition: ease-in-out 250ms;
  background: #fbfbfb;
  font-size: .8rem;
  box-shadow: 5px 5px 5px -7px rgba(0, 0, 0, .25);
  padding: 0 1em 1em;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, .25);
}

.srch_header {
  display: flex;
  align-content: center;
  justify-content: space-between;
  height: 1.5rem;
  background-color: var(--gray-300);
}

.btn_close
{
	font-size: 2em;
	color: var(--red);
	background-color: white;
	height: 31px;
	width: 31px;
	border-radius: 0.25rem;
	font-size: 1.4rem;
}

.cksl.modal .btn_close {
	position: absolute;
	top: 1.5rem;
	right: 1.6rem;
}

.btn_close::before 
{
  content: '×';
  position: absolute;
  transform: translate(0px, 1px);
}

.btn_close:hover
{
  cursor: pointer;
  box-shadow: 1px 1px 3px dimgray;
  color: var(--warm-teracotta);
}

/**
 * Search and filters section
 * 
 */

/*****
 * Unordered list search
 */

.find_node
{
  display: grid;
  --size: 1.6rem;
  height: var(--size);
  width: 100%;
  grid-template-columns: 25% 1fr 25%;
}

.find_wrap
{
  /*display: grid;
  grid-template-columns: auto  var(--size) 9ch var(--size) var(--size);*/
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--theme-blue);
}

.find_node .btn
{
  width: var(--size);
  height: var(--size);
}

.find_node .__find
{
  border: 0;
  flex-grow:1;
}

.find_node .__find:focus-visible
{
  outline: 0;
}

.find_node button
{
  justify-content: center;
  align-items: center;
  height: calc(var(--size) - 2px);
  width: var(--size);
  font-size: calc(var(--size) - 1.4);
  background-color: transparent;
  border: 0;
  margin-left: 0.75ch;
}

.find_node .show.find_prev, .find_node .show.find_next, .find_node .show.clear
{
  display: flex;
}

.find_node .show.counters
{
  display: inline;
}

button.find_next, button.find_prev
{
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 66%;
  mask-size: 66%;
  background-color: var(--theme-blue);
  cursor: pointer;
}
.find_next
{
  -webkit-mask-image: url('/pics/chevron_down.svg');
  mask-image: url('/pics/chevron_down.svg');
}

.find_prev
{
  -webkit-mask-image: url('/pics/chevron_up.svg');
  mask-image: url('/pics/chevron_up.svg')
}

.find_node .find_prev, .find_node .find_next, .find_node .clear, .find_node .counters
{
  font-family: sans;
  display: none;
}

.find_node .clear:hover
{
  background: gainsboro;
}

.list
{
  overflow:auto;
  max-width: 26ch;
}

.selected
{
  background-color: yellow;
}

.current
{
  font-weight: bold;
}

.counters
{
  border-radius: 50vh;
  min-width: 5ch;
  text-align: center;
  padding: 1px 6px;
  font-size: 0.7rem;
  line-height: 1.4rem;
}

.counters *
{
  max-height: inherit;
}

/**
 * Filters 
 */
.srch-settings *
{
  opacity: 1;
  border: unset;
  background-color: unset;
}

.srch-settings h2
{
  font-family: unset;
  font-size: 1.3em;
  font-weight: 700;
  margin-block: unset;
}

.srch-settings .form_row
{
  display: grid;
  margin-top: .6em;
}

.srch-settings .form_row > label {
  margin-bottom: 0.25em;
}

.srch-settings .multicheckbox
{
  border: 1px solid var(--font-grey);
  flex-basis: 15ch;
}

.srch-settings .multicheckbox ul
{
  list-style: none;
  margin-block: 0.5em;
  padding-inline: 0.75em;
}

.srch-settings .multicheckbox li
{
  display: block;
  white-space: nowrap;
  font-size: 0.77rem;
}

.srch-settings .multicheckbox li:hover
{
  background-color: pink;
}

.multicheckbox input,
.multicheckbox label
{
  display: inline-block;
}

.multicheckbox label
{
  width: 80%;
}

.srch-sttngs-label.active
{
  font-size: 1.4rem;
  color: var(--red);
}

/*
.srch-sttngs-label
{
  padding: 0 .5em;
  font-size: 16pt;
}
.srch-sttngs-label:hover
{
  background-color: gainsboro;
  color: var(--font-grey);
  font-weight: 700;
}
*/

.searchbar
{
  --size: 1.6rem;
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  height: var(--size);
  width: 100%;
  gap: 3px;
  border-bottom: 2px solid var(--theme-blue);
  background-color: white;
}

.searchbar:focus-within
{
  border-bottom-color: var(--red);
}

input.srch
{
  border: 0;
  flex-grow: 1;
  padding-left: .2rem;
  outline: 0;
  background-color: transparent;
  line-height: calc(var(--size) / 2);
  font-size:  calc(var(--size) / 2);
  width: 100%;
}

.searchbar button
{
  width: calc(var(--size) - 7px);
  border: 0;
  background-color: white;
  font-size: 1.125rem;
  border-radius: 2px;
  position: relative;
  z-index: 100;
}

.searchbar button:hover,
.searchbar button:focus
{
  border: 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.65);
}

.searchbar button.blue
{
  color: var(--theme-blue);
}



@keyframes flickerAnimation {
  0%   { color:var(--red);}
  50%  { color:var(--theme-blue);}
  100% { color:var(--red);}
}

.animate-flicker 
{
    animation: flickerAnimation 8s infinite;
}

.srch-sttngs-toggle
{
  display: none;
  width: 0;
  height: 0;
}

.srch-sttngs-toggle:checked ~ .srch-settings
{
  transform: scale(1,1);
  transition: ease-in-out 250ms;
  height: auto;
}

form.srch
{
  display: flex;
  flex-direction: row;
  justify-content: safe flex-start;
  height: 2.2em;
  width: 100%;
}

/*.srch input.srch
{
  height: 1.6em;
  width: calc(100% - 24px);
  outline: unset;
  border: unset;
  border-bottom: 3px solid var(--theme-blue);
  font-size: 18pt;
}

.srch input.srch:focus
{
  outline: unset;
  border: unset;
  border-bottom: 3px solid var(--red);
}

.srch .clear
{
  margin-left: -77px;
  background-color: #ffffff;
  visibility: hidden;
}

.srch .rst
{
  height: 100%;
  color: var(--theme-blue);
  visibility: hidden;
}

.srch .clear.active, .srch .rst.active
{
  visibility: visible;
}

.srch .ok
{
  color: var(--font-grey);
}
*/

/**
 * Map toggle control
 */
.map-toggle
{
  display: none;
  width:0;
  height:0;
  visibility: hidden;
  position:absolute;
  z-index: 8;
}

.map-toggle-label
{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 16px;
  cursor: pointer;
  margin: 0 auto 1px;
  padding: .25rem 0;
  font-size: 10px;
  color: #444;
  background: white;
  border: solid 1px whitesmoke;
  border-top: none;
}

/* Map stuff */
.map
{
  transition: transform 400ms ease-in-out;
}

.ol-attribution.ol-unselectable.ol-control
{
  display: flex;
  justify-items: right;
  width: 45ch;
  text-align: left;
}

.ol-attribution.ol-unselectable.ol-control.ol-collapsed 
{
  width: unset;
}

.popup
{
  background: rgb(254, 254, 254);
  font-size: .9rem;
  box-sizing: content-box;
  max-width: 46ch;
}

.popup h4, .popup p 
{
  margin: 0;
  line-height: 1.6em;
  padding: 0 1em;
}

.popup h4
{
  display: block;
  margin-bottom: .5em;
  background: rgba(200, 200, 200, .8);
  width: auto;
  height: auto;
  padding-top: .6em;
}

.popup p
{
  padding: 0 .6em .6em;
}

.ol-popup 
{
  position: absolute;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

  bottom: 12px;
  left: -50px;
  min-width: 280px;
}

.ol-popup:after, .ol-popup:before
{
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.ol-popup:after 
{
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}

.ol-popup:before 
{
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.ol-popup-closer 
{
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 8px;
}

.ol-popup-closer:after
{
  content: "✖";
}

/**
 * TreeView section
 */
.treeView
{
  max-height: 320px;
  overflow-y: scroll;
  overflow-x: clip;
  line-height: 18pt;
  width:100%;
  font-family: "Junicode";
}

ul.collapsibleList
{
  background:url('/pics/list-item-contents.png') repeat-y left;
}

.treeView ul
{
  list-style-type: none;
  margin-block: 0;
}

.treeView span:hover
{
  background-color: gainsboro;
  display: block;
}

.treeView .collapsibleList li
{
  min-width: 35ch;
  padding-left: 32px;
  cursor:pointer;
  background:url('/pics/list-item.png') no-repeat;
}

.treeView ul li:last-child
{
  background:url('/pics/list-item-last.png') no-repeat;
}

.treeView ul li:last-child>ul
{
  background-image: none;
}

.treeView ul li>span
{
  display: block;
  padding-left: .25em;
  margin-left: -.25em;
}

.treeView .collapsibleList li.treeBranch > ul {
  margin-left: -32px;
  cursor: pointer;
  background: url('/pics/list-item-contents.png') repeat-y left;
}

/**
 * Map box
 */

.map
{
  height: 460px;
  width: 100%;
  background-color: var(--off-white);
}

.ol-attribution.ol-unselectable.ol-control
{
  display: flex;
  justify-items: right;
  width: 45ch;
  text-align: left;
}

.ol-attribution.ol-unselectable.ol-control.ol-collapsed 
{
  width: unset;
}

.popup
{
  background: rgb(254, 254, 254);
  font-size: .9rem;
  box-sizing: content-box;
  max-width: 46ch;
}

.popup h4, .popup p 
{
  margin: 0;
  line-height: 1.6em;
  padding: 0 1em;
}

.popup h4
{
  display: block;
  margin-bottom: .5em;
  background: rgba(200, 200, 200, .8);
  width: auto;
  height: auto;
  padding-top: .6em;
}

.popup p
{
  padding: 0 .6em .6em;
}

.ol-popup 
{
  position: absolute;

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

  bottom: 12px;
  left: -50px;
  min-width: 280px;
}

.ol-popup:after, .ol-popup:before
{
  top: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.ol-popup:after 
{
  border-top-color: white;
  border-width: 10px;
  left: 48px;
  margin-left: -10px;
}

.ol-popup:before 
{
  border-top-color: #cccccc;
  border-width: 11px;
  left: 48px;
  margin-left: -11px;
}

.ol-popup-closer 
{
  text-decoration: none;
  position: absolute;
  top: 2px;
  right: 8px;
}

.ol-popup-closer:after
{
  content: "✖";
}


/******
 * Webmap related stuff
 **/

.overlay{
  display: block;
  width: 320px; height: auto;
  background: whitesmoke;
  /*border: solid 1px;*/
  border-radius: 4px;
  box-shadow: 2px 2px 10px #333;
  padding: 0 15px;
  font-family: roman;
  opacity: 0.85;
}

.overlay_arrow{
  left: 50%;
  margin-left: -16px;
  width: 0;
  height: 0;
  position: absolute;
}
.overlay_arrow.above{
  bottom: -15px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 16px solid whitesmoke;
}
.overlay_arrow.below{
  top: -15px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 16px solid #336699;
}

.overlay_arrow.left {
  width: 0;
  height: 0;
  left: 1px;
  top: 37%;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 16px solid white;
}

.infoWindow {
  width: 320px;
  /*height: auto;
  font-family: Arial, sans-serif;
  background-color: whitesmoke;*/
}


/**
 * Modal dialog for etymology
 */

.etymology
{
  box-sizing: border-box;
  max-width: 69em;
  max-height: 640px;
  padding: 1rem 2.2rem 2rem;
  overflow-y: scroll;
}

.etym.button
{
  position: absolute;
  top: 0;
  right: 0;
}

.etym.button:hover
{
  background-color: pink;
}


.etymology article
{
  font-family: unset;
  padding: unset;
}

.cksl.button {
  border-radius: 0.25rem;
  text-decoration: none;
  color: unset;
  font-size: smaller;
  padding: 2px 0.5rem;
  display: inline-grid;
}

.cksl.button img 
{
	max-height: 1em;
}

.modal {
  margin: 100px auto;
  background: #fff;
  border: 1px solid #666;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cksl.modal {
  max-inline-size: 80ch;
  max-height: 85%;
  overflow: scroll;
  text-align: justify;
  padding-inline: 3.5em;
  padding-block: 4em;
  font-family: Junicode;
  background-color: var(--off-white);
}

.cksl ol, .cksl ul {
  padding-inline: 1.75em;
}

.cksl p {
  margin-bottom: 1em;
}

.modal h2 { margin-top: 0; }

.modal .close {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 20px;
  right: 20px;
  opacity: 0.8;
  transition: all 200ms;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #777;
}

.modal .close:hover { opacity: 1; }

.overlay_mod {
  position: absolute;
  z-index: 9;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 200ms;
  visibility: hidden;
  opacity: 0;
}

.overlay_mod .cancel {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: default;
}

.overlay_mod:target {
  visibility: visible;
  opacity: 1;
}

/**
 * Output pane 
 */

.output
{
  flex-basis: 69ch;
  overflow-x: hidden;
  overflow-y: hidden;
  outline: 1px solid var(--gray-300);
  outline-offset: -1px;
}
  
.output .toponym, .output .paleonym
{
  width: 100%;
  line-height: 1.6;
  padding-block: 1rem;
  padding-inline: 2.6rem;
  border: 1px solid var(--gray-300);
}

.toponym header
{
  display: flex;
  align-items: baseline;
  gap: .5em;
  font-family: unset;
}

.toponym header h2
{
  display: inline-block;
}

.toponym p
{
  margin-bottom: 1rem;
}

.context
{
  font-size: .95rem;
  margin-bottom: 1.5em;
}

.context q
{
  color: var(--red);
}

.toponym .note
{
  display: block;
}

.note
{
  margin-left: .9em;
  margin-block-end: 1.76em;
  text-indent: -.3em;
  line-height: 1.3;
}

.note::before
{
  content: '*';
  position: relative;
  left: -.5em;
}

div.izpisi
{
  display: flex;
  top: 1px;
  position: relative;
  flex-direction: column;
  font-family: Junicode;
  overflow-y: clip;
  height: calc(100% - 2px);
  background-color: var(--off-white);
}

.izpisi .toponym, .izpisi .paleonym, .izpisi header, .izpisi section 
{
  max-inline-size: 70ch;
  margin: 0 auto;
  background-color: white;
}

.oblike 
{
  overflow-y: auto;
  flex-basis: 100%;
}

.oblike h1,h2,h3
{
  margin: unset;
}

.oblika header h2, .oblika header p.subtitl
{
  display: contents;
}

.toponym p, .paleonym p
{
  display: inline;
  margin-block-end: unset;
}

.toponym p.region, .paleonym p.region
{
  display: block;
  font-variant: small-caps;
}

.izpisi .region
{
  margin-bottom: 1.1rem;
}

.Primorska
{
  border-bottom: 2px solid var(--muted-teal);
}

.Kranjska
{
  border-bottom: 2px solid var(--red);
}

.Posavinje
{
  border-bottom: 2px solid var(--dusty-lavander);
}

h2.toponym_name, h2.paleonym_name
{
  display: inline;
  line-height: 0.8;
}

.toponym .type_list, .paleonym .type_list
{
  display: block;
  font-size: .9em;
  margin-top: .6em;
}

div.kraj
{
  background-color: #f7f7f7;
  height: 50px;
  padding-left: 15px;
}

div.oblika
{
  margin-bottom: 15px;
  box-shadow: 5px 5px 5px 2px #888888;
  border-style: solid;
  border-color:  #888888;
  border-width: 0.5px;
  padding: 0 2.5%;
}

.oblika header
{
  display: flex;
  align-items: baseline;
  gap: .5em;
  font-family: unset;
}

p.oblika
{
  font-style: italic;
  font-weight: bold;
  font-size: large;
  margin-top: 30px;
  text-shadow: 3px 3px 5px #888888;
}

h2.oblika li
{
  position: relative;
  left: 32px;
}

.oblike ol
{
  padding: 0;
  margin: 0;
}

.paleonym_deatils 
{
  overflow-y: scroll;
  height: 725px;
  min-height: 600px;
}

.subtitl
{
  margin: unset;
  padding: unset;
  margin-left:  -0.4em;
}


.facet-filters {
  padding-inline: 1rem;
  background-color: #0090c50f;
  backdrop-filter: blur(5px);
  padding-block: 4rem;
  z-index: 1000;
  height: 100svh;
  font-size: 0.85rem;
}

button.toggle-filters
{
  height: 2.4rem;
  width: 2.4rem;
  background-image: url('/pics/chevron_left.svg');
  background-size: contain;
  border: 1px solid gainsboro;
  border-radius: 7px;
  background-color: white;
  backdrop-filter: color(var(--theme-blue));
}

button.toggle-filters.collapse
{
  background-image: url('/pics/chevron_right.svg');
}

.facet-filters fieldset 
{
  margin-bottom: 1em;
  padding-bottom: 0.5rem;
  padding-inline: 0.25rem;
}

.facet-filters fieldset .grid 
{
  margin-top: 0.5em;
  padding-inline: 0.25em;
  margin-bottom: revert;
  padding-top: revert;
}

/**
 * Service classes
 * 
 */
.grid
{
  display:grid;
  min-height: overflow;
  min-width: overflow;
}

.w-800p
{
  max-width: 800px;
}

.center_me
{
  margin-inline: auto;
}

._2fr_1fr
{
  grid-template-columns: 2fr 0.9rem;
}

.flex_row
{
  display:flex;
  gap: 2em;
}
.space_even
{
  justify-content: space-evenly;
}

.start
{
  justify-content: start;
}

.mt-2
{
  margin-top: 2.5em;
}


h1, h2, h3
{
  /*text-shadow: 3px 3px 5px #888888;
  padding-left: 15px;
  padding-bottom: 0;
  height: 2em;
  padding-top: 0.5em;*/
  margin: .6em 0 .4em 0;
  font-weight: 500;
}

h1
{
  font-size: 2.5rem;
  margin: 11px 0;
}

h2
{
  font-size: 2rem;
  margin: 0;
}

h3
{
  font-size: 1.78rem;
}

h3.oblika
{
  margin: unset;
}

h4
{
  font-size: 1.62rem;
}

h5
{
  font-size: 1.22rem;
}

h5
{
  font-size: 1rem;
}

.oblika h4
{
  padding-left: 15px;

}

hr
 {
   margin-left: 0;
   margin: 1em 0 0.5em;
   border: unset;
   border-top: solid 1px var(--font-grey);
   width: 46%;
 }

div.center
{
  margin: 0 auto;
  width: 100%;
}

.right
{
  position: fixed;
  right: 0px;
}

/**
 * Webforms related stuff
 **/

select
{
  width: 172px;
  display: inline-block;
  font-size: medium;
  margin-left: auto;
}

textarea
{
  width: 312px;
  height: 208px;
  font-family: "Times New Roman";
  font-size: medium;
  display: block;
}

article /*Double-check font-family, font-size, paddings!*/
{
  font-size: 1rem;
  line-height: 1.6em;
  padding: 3em 1.618em;
}

article p
{
  margin-bottom: .5em;
}

/*************************
 *        Tables         *
 ************************/
table
{
  line-height: 1.4;
}

td
{
  padding-bottom: 0.5em;
  vertical-align: top;
  padding-inline: 1px;
}

td.list-item
{
  padding-bottom: 0.5rem;
  vertical-align: top;
}

/**
 * General purpose utility classes
 */

.center-content
{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hide
{
  visibility: hidden;
}

.active
{
  visibility: visible;
}

/**
 * Figures service classes
 */
.img_flex
{
  max-width: 100%;
  height: auto;
}

cite
{
  font-style: normal;
}

cite::before
{
  content: '\201c';
}

cite::after
{
  content: '\201D';
}

.outline
{
  outline: 1px solid gainsboro;
}

.p_5m
{
  padding: .5em;
}

.clear_small
{
  margin-bottom: 1em;
}

.keeptogether
{
  white-space: nowrap;
}


.float_left
{
  position: relative;
  float: left;
  margin-left: auto;
}

.float_right
{
  float: right;
  margin-right: auto
}

figure
{
  margin: unset;
}

.p-3
{
  padding: 3em;
}

.w-100
{
  width: 100%;
}

.mh-7
{
  max-height: 7em;
}

.mh-11
{
  max-height: 11em;
}

/*************************
*    Accordion menu      *
*************************/

.izpisi .accordion-head
{
  display: grid;
  height: 4.5em;
  background-color: unset;
}

.accordion-head
{
  display: grid;
  align-content: center;
  height: auto;
  padding: 1.3em 2.6rem;
  padding-bottom: 1.5em;
  cursor: pointer;
}

.accordion-head > h3
{
  margin: 0;
}


.post .accordion-head
{
  padding-bottom: 1em;
}

.posts
{
  border: 1px solid var(--gray-300);
}

.accordion-head, .post
{
  /*height: 56px;*/
  text-align: left;
  border-style: solid;
  border-color:  var(--gray-300);
  border-width: 1px;
  border-bottom-width: 0;
  width: auto;
  height: auto;
}

.accordion-head:first-of-type, .post:first-of-type
{
  border-top: none;
}

.accordion-head:last-of-type, .post:last-of-type
{
  border-bottom-width: 1px;
}

.accordion-head.active
{
  background: #0090c5;
  color: white;
}

.accordion-head.active:last-of-type
{
  border-bottom-width: 0;
}

.accordion-head h3::before
{
  content: "+";
  float: right;
  transition-duration: 350ms;
  transition-timing-function: ease-in-out;
}

.acctab
{
  outline: 1px solid gainsboro;
  width: 99%;
  /*position: relative;*/
}

.active h3::before
{
  content: "-";
  position: relative;
  left: -5px;
  float: right;
  transition-timing-function: ease-in-out;
}

.accordion-panel
{
  position: absolute;
  height: 1px;
  width: 1px;
  padding: 3em 2.6rem;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  -webkit-transition: height .5s ease-in-out;
  -moz-transition: height .5s ease-in-out;
  -o-transition: height .5s ease-in-out;
  -ms-transition: height .5s ease-in-out;
  transition: height .5s ease-in-out, opacity .9s ease-in-out;
}

.accordion-panel.show
{
  position: relative;
  max-height: calc(var(--content-height) - 9.6em);
  overflow-y: auto;
  width: auto;
  height: auto;
  padding-top: 0;
  border-width: 1px;
  border-style: solid;
  border-color: var(--gray-300);
  border-top-width: 0;
  border-bottom-width: 0;
}

.accordion-panel:last-of-type.show
{
  border-bottom-width: 1px;
}

.accordion-panel ul
{
  padding-left: 1.5rem;
}

/*Accordion-content*/

.asterism 
{
  --aster-size: 1.618rem;
  position: relative;
  display: block;
  height: var(--aster-size);
  width: 100%;
  margin-top: 1.6rem;
  font-size: var(--aster-size);
  text-align: center;
  line-height: 1;
}

.asterism::after 
{
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  content: "⁂";
  /* content: "❦"; */
  color: var(--theme-blue);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.record h4, .record h5
{
  padding: 0;
  margin: 1em 0 0.25em;
}

.record > h3 
{
  font-size: 1.5em;
  margin: 1.2em 0 .8em 0;
  border-bottom: solid 1px var(--theme-blue);
}

.record:first-of-type h4
{
  margin-top: .75em;
}

.record
{
  margin-top: 2em;
}

.record li {
	line-height: 1.3;
}

.suggestions
{
  position: absolute;
  background-color: white;
  box-shadow: 0 0 7px -5px currentColor;
  z-index: 100;
  top: 1.6em;
  left: 0;
  transform: scale(1,1);
  transition-duration: 500ms;
  font-size: 0.8rem;
  width: 29ch;
  overflow: auto;
  max-height: 30vh;
  padding: 0.25rem 0;
}

.suggestions:empty
{
  transform: scale(1,0);
  transition-duration: 400ms;
  transition-timing-function: ease-in-out;
  transform-origin: top;
}

.suggestions ul
{
  padding: 0 0.5rem;
  list-style: none;
}

.suggestions li
{
  padding-bottom: 0.2rem;
}

.suggestions li:focus, .suggestions li:hover
{
  outline: 0;
  background-color: pink;
}

.notification
{
  display: grid;
  position: absolute;
  top: 2em;
  left: 50%;
  grid-template-columns: auto 31px;
  transform: translateX(-50%);
  transform-origin: border-right;
  transition-duration: 500ms;
  z-index: 999;
  align-items: center;
  /*flex-basis: 22%;*/
  box-sizing: border-box;
  width: 90%;
  max-width: 70ch;
  min-height: 4em;
  padding: 0 3ch;
  font-size: large;
  font-weight: 700;
  background-color: var(--off-white);
  visibility: hidden;
  box-shadow: 1px 0px 25px dimgray;
  border-radius: 5px;
}

.content.show_map .notification 
{
  visibility: revert;
}

.notification .btn_close
{
  display: inline-grid;
  grid-column: 2 / 3;
  border: none;
  padding: 0;
  place-items: center;
  place-content: center;
  font-family: Arial;
}

.notification.hidden
{
  width: 0;
  transition: all;
  transition-duration: 400ms;
  transition-timing-function: ease-in-out;
  transform-origin: border-right;
  opacity: 0;
}

.notification.warning
{
  color: var(--red);
}

.notification.message
{
  color: var(--theme-blue);
}

#shield
{
  position: absolute;
  background: white;
  opacity: 0.75;
  z-index: 99;
  height: 100%;
  width: 100%;
  font-weight: bold;
}

/*******
 * sht *
 * *****/

 .volume_title
 {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: .5em;
  font-weight: bold;
  line-height: 1.4;
 }

 .series_title
 {
  margin: 0;
 }


/**
 * noUiSlider
 **/

.__timeslider
{
  flex-basis: 100%;
  font-size: .7rem;
}

.__timeslider, .noUi-target
{
  margin: 2.2em 1em;
  /*margin-top: 1.7em;
  margin-bottom: 1.7em;
  margin-right: 1em;
  margin-left: 1em;*/
}

.__timeslider, .noUi-connects
{
  border-radius: 0 !important;
}

.noUi-horizontal
{
  height: .5em !important;
}

.noUi-connect
{
  background-color: var(--theme-blue) !important;
}

.noUi-pips-horizontal
{
  height: unset !important;
  padding: unset !important;
  padding-top: .5em !important;
}

.noUi-horizontal .noUi-handle
{
  height: 23px !important;
}

.noUi-handle.noUi-handle-lower
{
  top: 18px !important;
}

.noUi-handle.noUi-handle-upper
{
  top: -36px !important;
}

.noUi-handle.noUi-handle-lower, .noUi-handle.noUi-handle-upper
{
  width: 48px !important;
  right: -24px !important;
  border-radius: unset;
  background-color: rgba(255,255,255,.85);
}

.noUi-handle.noUi-handle-lower .noUi-tooltip, .noUi-handle.noUi-handle-upper .noUi-tooltip
{
  position: static;
  background-color: unset;
  color: var(--font-grey);
  transform: translate(0, -100%);
  border: unset;
  border-radius: unset;
  padding: .24em;
  height: 100%;
  width: 100%;
}

.noUi-handle.noUi-handle-lower::before, .noUi-handle.noUi-handle-upper::before
{
  display: unset;
  content: unset;
  top: unset;
  left: unset;
  height: unset;
  width: unset;

}

.noUi-handle.noUi-handle-lower::after, .noUi-handle.noUi-handle-upper::after 
{
  width: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  background-color: transparent;
  left: -1px;
}

.noUi-handle.noUi-handle-lower::after
{
  border-bottom: 12px solid #d9d9d9;
  top: -15px;
}

.noUi-handle.noUi-handle-upper::after
{
  border-top: 12px solid #d9d9d9;
  top: 22px;
}

[class^="noUi-value"]
{
  color: var(--font-grey) !important;
}


/**
 * Loading spinner
 */
/**************
 * Tooltips
 **************/

span[data-tool-tip]:not([data-tool-tip=""])
{
  --tooltip-color: rgba(50, 50, 50, .97);
  --offset: .4rem;
  --arrow-size: 10px;
  --bubble-width: 50ch;
  --scale: 0;
  position: relative;
  cursor: help;
  text-decoration: underline dotted var(--font-grey);
}

span[data-tool-tip]:not([data-tool-tip=""])::before, span[data-tool-tip]:not([data-tool-tip=""])::after
{
  position: absolute;
  content:'';
  z-index: 100;
  transform: translateY(var(--translate-y, 0)) scaleY(var(--scale));
  transition: 80ms transform ease-out;
}

span[data-tool-tip]:not([data-tool-tip=""])::before
{
  /* background: blue; */
  border: var(--arrow-size) solid transparent;
  border-bottom-color: var(--tooltip-color);
  left: var(--offset);
  --translate-y: 100%;
  transform-origin: bottom;
}

span[data-tool-tip]:not([data-tool-tip=""])::after
{
  content: attr(data-tool-tip);
  width: max-content;
  max-width: var(--bubble-width);
  height: auto;
  color: var(--off-white);
  padding: .75em;
  border-radius: 2px;
  background-color: var(--tooltip-color);
  font-size: .9rem;
  left: calc(-1 * var(--offset));
  transform-origin: top;
  --translate-y: calc(var(--arrow-size) * 4);
  box-shadow: 1px 1px 3px var(--font-grey);
}

span[data-tool-tip]:not([data-tool-tip=""]):hover::before, span[data-tool-tip]:not([data-tool-tip=""]):hover::after
{
  --scale: 1;
}


/*****************
 * Media queries
 * ***************/

/** Small screens **/
@media screen and (max-width: 1460px){
  .logo_img{
    width: 90%
  }
  
  .logo{
    padding-top: 0.2rem;
  }
  
  .logo_wrapper 
  {
    display: flex;
  }

  .map {
    height: 0;
    transition: height 500ms ease-in-out;
  }

  .show_map .map {
    height: 320px;
  }
}

.right.expanded
{
  transform: translate(0%);
  transition-timing-function: ease-out;
}

.right.collapsed
{
  transform: translate(100%);
  transition-timing-function: ease-in;
}
.right.collapsed .toggle-filters
{
  position: relative;
  left: -3.6rem;
  top: 4rem;
}

#login, #register
{
  margin: 0 auto;
  min-width: 320px;
  max-width: 480px;
}

/*****************
 * Media queries
 * ***************/
 /**Large screens*/
@media screen and (min-width: 1460px)
{
  body
  {
    height: 100vh;
    overflow: auto;
    grid-template-areas: 
    "header header header"
    "content content content"
    "footer footer footer";
  }
  
  header.main_header
  {
    display: grid;
    grid-template-columns: minmax(5ch, 10ch) auto minmax(700px, 3fr) auto minmax(5ch, 10ch);
    font-size: .5rem;
    justify-items: safe left;
  }

  .logo
  {
    width: 44ch;
    margin-left: 0;

  }

  .nav-toggle-label
  {
    display: none;
  }

  .nav-toggle-label .logo_img
  {
    display: block;
  }

  .content {
    position: relative;
    --content-height: calc(91vh - 72px - 1.6rem);
    height: calc(91vh - 72px);
    width: 100%;
    overflow: hidden;
    padding: 0 .75em;
    display: grid;
    grid-template-areas: 
    "search search search"
    "tree map output";
    grid-template-columns: 16% 45% 39%;
    justify-content: center;
    transition: grid-template-columns 600ms ease-in-out;
  }

  .content > div:not(.find_node) {
    height: var(--content-height);
  }

  .find_node
  {
    grid-area: search;
  }

  .output
  {
    grid-area: output;
  }

  .izpisi
  {
    height: var(--content-height);
  }

  .map
  {
    grid-area: map;
  }

  .iskalnik
  {
    grid-area: tree;
    display: flex;
    flex-direction: column;
    border-right: solid 12px white;
    position: relative;
    max-width: 28ch;
  }

  .iskalnik form
  {
    width: inherit;
    height: auto;
  }

  input.srch
  {
    max-width: calc(100% - 4 * var(--size) + 16px);
  }

  .logo_wrapper
  {
    justify-self: start;
    grid-column: 2 / 3;
  }

  nav
  {
    all: unset;
    display: flex;
    width: 100%;
    grid-column: 3 / 4;
    justify-content: space-evenly;
    align-items: center;
  }

  header h1
  {
    display: none;
  }

  nav ul {
    display: flex;
    column-gap: 4em;
    justify-content: flex-start;

  }

  nav a {
    font-weight: bold;
    margin-bottom: 0;
    color: var(--font-grey);
  }

  nav li 
  {
    opacity: 1;
    position: relative;
    justify-content: center;
  }

  nav li.active a
  {
    color: var(--theme-blue);
  }

  nav li::before
  {
    content: '';
    display: block;
    height: 4px;
    background: #0090c5;
    position: absolute;
    top: -.45em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform ease-in-out 250ms;
  }

  nav li:hover::before
  {
    transform: scale(1, 1);
  }

  nav li.active::before
  {
    transform: scale(1, 1);
  }

  nav a
  {
    opacity: 1;
  }

    .treeView
  {
    max-height: unset;
    flex-basis: calc(100vh - 142px);
    border-right: 1px solid whitesmoke;
  }

  .admin.glava li a
  {
    color: white;
  }
  
  .main_header .impressum
  {
    display:block;
    grid-column: 4 / 5;
    justify-self: end;
  }

  .map-toggle-label
  {
    position: absolute;
    font-weight: bold;
    top: calc(50% - 48px);
    left: calc(100% - 1px);
    width: 12px;
    height: 48px;
    border-left: none;
    margin-right: 1px;
  }
  
  .map
  {
    height: 100%;
  }
}

/**
 * FONTS !
 */

/**
 * - Junicode
 */

@font-face
{
  font-family: 'Junicode';
  src: url('fonts/Junicode-BoldCondensed-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-stretch: condensed;
}

@font-face
{
  font-family: 'Junicode';
  src: url('fonts/Junicode-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
}

@font-face
{
  font-family: 'Junicode';
  src: url('/fonts/Junicode-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face
{
  font-family: 'Junicode';
  src: url('/fonts/Junicode-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
}

@font-face
{
  font-family: 'Junicode';
  src: url('/fonts/Junicode.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/**
 * - Raleway
 */


@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

@font-face
{
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
