/* Arhiv Zavoda GSD: modern edition (generated pages: tools/modernize.py) */

/* Alegreya + Alegreya Sans, self-hosted (SIL OFL, see fonts/OFL.txt) */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Palette from rural Slovenian houses: limewashed walls, shutter green, moss, aged larch */
:root {
  --limewash: #f3f4ef;
  --paper: #fbfbf8;
  --ink: #25302a;
  --ink-soft: #55615a;
  --shutter: #2e6a4e;
  --shutter-deep: #234f3b;
  --moss: #e2e9dd;
  --larch: #8a6a43;
  --rule: #c8d0c4;

  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --spine: 2.75rem;
  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--serif);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

a { color: var(--shutter); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--shutter-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--shutter); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: calc(var(--spine) + 1rem); }

/* ------------------------------------------------------------ archive spine */
/* The one bold element: a box-file spine down the left edge */
.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  background: var(--shutter);
  color: var(--limewash);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 1.25rem 0;
  z-index: 5;
}
.spine p {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 500 0.95rem/1 var(--sans);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.spine .spine-years { font: italic 400 1.05rem/1 var(--serif); letter-spacing: 0; opacity: 0.85; }
.spine a { color: inherit; text-decoration: none; }
.spine a:hover { text-decoration: underline; }

.page { margin-left: var(--spine); min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------ masthead */
.masthead {
  padding: 1.5rem var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.masthead .logo img { display: block; height: 64px; width: auto; }

.search { display: flex; align-items: center; gap: 0.5rem; }
.search input {
  font: 400 1rem/1.2 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  width: 14rem;
  max-width: 55vw;
}
.search input:focus { border-color: var(--shutter); outline: none; box-shadow: 0 0 0 2px var(--moss); }
.search button {
  font: 500 1rem/1.2 var(--sans);
  color: var(--paper);
  background: var(--shutter);
  border: 0;
  border-radius: 3px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.search button:hover { background: var(--shutter-deep); }

.notice {
  margin: 0.75rem var(--gutter) 0;
  font: italic 400 1.05rem/1.4 var(--serif);
  color: var(--ink-soft);
}
.notice a { font-style: normal; font-family: var(--sans); font-weight: 500; }

/* ------------------------------------------------------------ navigation */
.nav { margin: 1.25rem 0 0; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); }
.nav-desktop > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.nav-desktop > ul > li { position: relative; }
.nav-desktop > ul > li > a {
  display: block;
  padding: 0.6rem 0 0.7rem;
  font: 500 1.05rem/1.2 var(--sans);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.nav-desktop > ul > li > a:hover,
.nav-desktop > ul > li.current > a { color: var(--shutter); border-bottom-color: var(--shutter); }

.nav-desktop .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 4;
  min-width: 19rem;
  max-width: 26rem;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--shutter);
  box-shadow: 0 10px 24px -12px rgba(37, 48, 42, 0.35);
  padding: 0.6rem 0;
}
.nav-desktop li:hover > .sub,
.nav-desktop li:focus-within > .sub { display: block; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a {
  display: block;
  padding: 0.35rem 1rem;
  font: 400 1rem/1.3 var(--sans);
  color: var(--ink);
  text-decoration: none;
}
.sub a:hover { background: var(--moss); color: var(--shutter-deep); }
.sub ul ul a { padding-left: 2rem; font-size: 0.95rem; color: var(--ink-soft); }

.nav-mobile { display: none; }

/* ------------------------------------------------------------ main column */
main { flex: 1; padding: 2rem var(--gutter) 4rem; }

.crumbs { margin: 0 0 1.25rem; font: 400 0.95rem/1.4 var(--sans); color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--rule); margin-right: 0.5rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--shutter); text-decoration: underline; }

h1 {
  font: 700 clamp(2rem, 1.4rem + 2.6vw, 3.1rem)/1.12 var(--serif);
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  max-width: 24ch;
  text-wrap: balance;
}

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose div, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose div > div { margin: 0; }
.prose h2 { font: 700 1.5rem/1.25 var(--serif); margin: 2rem 0 0.75rem; text-wrap: balance; }
.prose h3, .prose h4 { font: 700 1.2rem/1.3 var(--serif); margin: 1.5rem 0 0.5rem; }
.prose strong, .prose b { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--larch); }
.prose ul.plain { list-style: none; padding-left: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 2px; vertical-align: middle; }
.prose .float-right { float: right; margin: 0.25rem 0 1rem 1.25rem; max-width: 45%; }
.prose .float-left { float: left; margin: 0.25rem 1.25rem 1rem 0; max-width: 45%; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose::after { content: ""; display: block; clear: both; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25em; }
.prose table { border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.prose td, .prose th { padding: 0.4rem 0.6rem; vertical-align: top; text-align: left; }
.prose table.data td, .prose table.data th { border-bottom: 1px solid var(--rule); }

.embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.25em; background: var(--moss); }
.embed.slides { aspect-ratio: 4 / 3; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lead { font-size: 1.35rem; line-height: 1.5; color: var(--ink-soft); max-width: 52ch; margin: -0.75rem 0 2rem; }

/* ------------------------------------------------------------ register (section contents, index) */
.register { max-width: var(--measure); margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.register h2 { font: 500 1.05rem/1.3 var(--sans); color: var(--ink-soft); margin: 0 0 0.75rem; }
.register ul { list-style: none; margin: 0; padding: 0; }
.register li { padding: 0.45rem 0; border-bottom: 1px dotted var(--rule); }
.register li a { font: 400 1.15rem/1.35 var(--serif); text-decoration: none; }
.register li a:hover { text-decoration: underline; }
.register .count { font: 400 0.9rem/1 var(--sans); color: var(--larch); margin-left: 0.4rem; white-space: nowrap; }

.index-tree { max-width: var(--measure); }
.index-tree ul { list-style: none; margin: 0; padding: 0; }
.index-tree ul ul { margin-left: 0.4rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.index-tree li { margin: 0.2rem 0; }
.index-tree > ul > li { margin: 0 0 1.75rem; }
.index-tree > ul > li > a { font: 700 1.4rem/1.3 var(--serif); }
.index-tree a { text-decoration: none; }
.index-tree a:hover { text-decoration: underline; }
.index-tree .hidden-page { font-style: italic; }

/* the section register sits beside the text once there is room for it */
@media (min-width: 1100px) {
  .with-aside {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(15rem, 21rem);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .with-aside > .register { margin-top: 0; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
}

/* ------------------------------------------------------------ search page */
.results { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.results li { padding: 1rem 0; border-bottom: 1px dotted var(--rule); }
.results a { font: 700 1.2rem/1.3 var(--serif); text-decoration: none; }
.results a:hover { text-decoration: underline; }
.results p { margin: 0.35rem 0 0; font-size: 1.05rem; color: var(--ink-soft); }
.results mark { background: var(--moss); color: inherit; padding: 0 0.1em; }
.search-summary { font: 400 1.05rem/1.4 var(--sans); color: var(--ink-soft); }

/* ------------------------------------------------------------ footer */
.foot {
  border-top: 1px solid var(--rule);
  padding: 1.75rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink-soft);
}
.foot p { margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--shutter); }
.foot .snapshot { font: italic 400 1rem/1.5 var(--serif); }

/* ------------------------------------------------------------ small screens */
@media (max-width: 760px) {
  :root { --spine: 0px; }
  body { font-size: 1.125rem; }
  .spine {
    position: static;
    width: auto;
    flex-direction: row;
    padding: 0.45rem var(--gutter);
    gap: 1rem;
  }
  .spine p { writing-mode: horizontal-tb; transform: none; font-size: 0.85rem; white-space: normal; }
  .spine .spine-years { font-size: 0.95rem; }
  .masthead .logo img { height: 52px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; max-width: none; }
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary {
    cursor: pointer;
    list-style: none;
    padding: 0.7rem 0;
    font: 500 1.05rem/1.2 var(--sans);
    color: var(--shutter);
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary::before { content: "☰"; margin-right: 0.5rem; }
  .nav-mobile[open] summary::before { content: "✕"; }
  .nav-mobile ul { list-style: none; margin: 0; padding: 0 0 0.75rem; }
  .nav-mobile ul ul { padding: 0 0 0.25rem 1rem; }
  .nav-mobile a { display: block; padding: 0.35rem 0; font: 400 1.05rem/1.3 var(--sans); color: var(--ink); text-decoration: none; }
  .nav-mobile > ul > li > a { font-weight: 700; }
  .nav-mobile li.current > a { color: var(--shutter); }
  .prose .float-right, .prose .float-left { float: none; margin: 0 0 1rem; max-width: 100%; }
}

@media print {
  .spine, .nav, .search, .notice a, .register, .foot ul, .skip { display: none !important; }
  .page { margin: 0; }
  body { background: #fff; font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
