/* Galerie studentských portfolií FMK
   Layout: kraft-paper desk; masthead left + logo right; centred row of ivory folders that
   wraps into more rows as the cohort grows; discreet bilingual footer. Single paper theme. */

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* Color */
  --desk: #c4b8aa;          /* warm grey-beige paper background */
  --desk-ink: #4b4038;      /* tint for grain and shadows */
  --paper: #f4e4cd;         /* ivory card stock */
  --paper-quiet: #e9dcc8;   /* inactive "coming soon" folder */
  --ink: #23211f;           /* charcoal typewriter ink */
  --ink-soft: #57524d;      /* program, subtitle */
  --ink-faint: #6a645f;     /* footer, quiet labels */
  --rule: #cdb99d;          /* hairlines on paper */
  --rule-desk: #8f8274;     /* separator on the desk */
  --brick: #b0493a;         /* hover arrow */
  /* Type */
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --brand: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Motion (storyboard): 0 px at 0 ms, 6 px at 90 ms, 12 px at 180 ms */
  --lift: -12px;
  --lift-time: 180ms;
  --lift-ease: cubic-bezier(.45, 0, .55, 1);
  /* Folder sizing */
  --card-min: 228px;
  --card-max: 312px;
  --card-gap: clamp(16px, 1.9vw, 30px);
  --card-pad: clamp(14px, 1.3vw, 20px);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 1.1 -.48'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .24 0 0 0 .9 -.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .22' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .99 0 0 0 0 .96 0 0 0 0 .91 0 0 0 1.1 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--desk); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--type);
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--desk);
  background-image: var(--grain), var(--mottle);
  background-size: 220px 220px, 640px 640px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.svg-defs { position: absolute; width: 0; height: 0; }

.page {
  max-width: 1540px;
  margin-inline: auto;
  padding-top: max(clamp(28px, 5.5vw, 76px), env(safe-area-inset-top, 0px));
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(16px, 3.4vw, 56px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 3.4vw, 56px), env(safe-area-inset-right, 0px));
}

/* ---------- Masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.title {
  margin: 0;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.subtitle {
  margin: .2em 0 0;
  font-size: clamp(1.05rem, .8rem + 1.1vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-soft);
  opacity: .82;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(16px, 1.6vw, 24px);
}
.btn {
  appearance: none;
  font: inherit;
  font-size: clamp(.95rem, .85rem + .35vw, 1.15rem);
  line-height: 1.2;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 38%, transparent);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  padding: .62em 1.35em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn--en { color: var(--ink-soft); border-color: var(--ink-soft); }
.btn:hover { background: color-mix(in srgb, var(--paper) 75%, transparent); }
.btn:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
.btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Logo slot: text lockup until the official FMK / UTB files are added (see index.html). */
.brand {
  margin: 0;
  padding-top: .35rem;
  font-family: var(--brand);
  color: var(--ink);
  text-align: right;
}
.brand-full { display: flex; flex-direction: column; gap: .15em; font-size: clamp(1rem, .7rem + .7vw, 1.4rem); line-height: 1.15; }
.brand-full span:first-child { font-weight: 600; }
.brand-compact {
  display: none;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1.05;
  letter-spacing: .06em;
  border: 1.5px solid var(--ink);
  padding: .45em .5em;
  text-align: center;
}
.brand-logo { display: block; height: auto; }
.brand-logo--full { width: clamp(220px, 20vw, 320px); }
.brand-logo--compact { display: none; width: 44px; }

/* ---------- Gallery ---------- */
.gallery-section { margin-top: clamp(40px, 5vw, 72px); }
.gallery-section[aria-busy="true"] { min-height: clamp(420px, 42vw, 640px); }
.gallery {
  --count: 5;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
  column-gap: var(--card-gap);
  row-gap: 0;
  max-width: calc(var(--count) * var(--card-max) + (var(--count) - 1) * var(--card-gap));
}
.gallery-item {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
}
.gallery-item::after { content: ""; grid-row: 6; height: clamp(30px, 3vw, 46px); }

.folder {
  --paper-color: var(--paper);
  position: relative;
  grid-row: 1 / 6;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  padding: 0 var(--card-pad) 16px;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  filter: drop-shadow(0 1px 1px rgb(75 60 45 / .16)) drop-shadow(0 6px 9px rgb(75 60 45 / .17));
  transition: transform var(--lift-time) var(--lift-ease), filter var(--lift-time) var(--lift-ease);
  -webkit-tap-highlight-color: transparent;
}
.folder > :not(.folder-paper) { position: relative; z-index: 1; }

/* paper shape: tab + body with softly irregular edges */
.folder-paper { position: absolute; inset: 0; z-index: 0; filter: url(#paper-edge); pointer-events: none; }
.folder-tab, .folder-body {
  position: absolute;
  background-color: var(--paper-color);
  background-image: var(--fibres), var(--grain);
  background-size: 360px 360px, 220px 220px;
}
.folder-tab {
  top: 0;
  left: 16px;
  width: 128px;
  height: 32px;
  clip-path: path("M0 32 C7 32 9 28 11 21 L15 7 C16.5 2.5 19.5 0 24 0 L104 0 C108.5 0 111.5 2.5 113 7 L117 21 C119 28 121 32 128 32 Z");
}
.folder-body {
  inset: 30px 0 0 0;
  border-radius: 6px 7px 6px 7px;
  box-shadow: inset 0 0 22px rgb(150 115 75 / .14), inset 0 -2px 0 rgb(150 115 75 / .08);
}

.folder-code {
  grid-row: 1;
  justify-self: start;
  width: 128px;
  height: 32px;
  margin-left: calc(16px - var(--card-pad));
  line-height: 34px;
  text-align: center;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.folder-photo {
  grid-row: 2;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  margin-top: 14px;
}
.folder-photo--empty {
  background-image: var(--grain), repeating-linear-gradient(135deg, transparent 0 10px, rgb(120 100 80 / .08) 10px 11px);
  outline: 1px solid var(--rule);
  outline-offset: -1px;
}
/* Name and programme sit together; the head stretches to the tallest card in the row,
   so any spare height falls between the programme and the rule, not after the name. */
.folder-head {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.folder-name {
  font-size: clamp(1.02rem, .85rem + .4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.folder-program {
  font-size: clamp(.84rem, .74rem + .22vw, .98rem);
  line-height: 1.3;
  color: var(--ink-soft);
}
.folder-bio {
  grid-row: 4;
  align-self: start;
  margin-top: 12px;
  font-size: clamp(.84rem, .76rem + .25vw, .98rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.folder-arrow {
  grid-row: 5;
  justify-self: end;
  align-self: end;
  display: block;
  width: 26px;
  height: 26px;
  margin-top: 8px;
  color: var(--ink);
  transition: color var(--lift-time) var(--lift-ease);
}

/* Coming soon folder: quieter, no link, no arrow, no hover */
.folder--soon {
  --paper-color: var(--paper-quiet);
  filter: drop-shadow(0 1px 1px rgb(75 60 45 / .12)) drop-shadow(0 5px 8px rgb(75 60 45 / .12));
}
.folder--soon .folder-photo { opacity: .62; object-fit: cover; }
.folder--soon .folder-code { color: var(--ink-faint); }
.soon-title {
  grid-row: 3;
  margin: 16px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.02rem, .85rem + .4vw, 1.3rem);
  line-height: 1.3;
  color: var(--ink-faint);
  text-wrap: balance;
}
.soon-en {
  grid-row: 4;
  margin: 12px 0 0;
  font-size: clamp(.84rem, .76rem + .25vw, .98rem);
  color: var(--ink-faint);
}

/* Hover only with a fine pointer; keyboard focus gets the same lift plus an outline */
@media (hover: hover) and (pointer: fine) {
  a.folder:hover {
    transform: translateY(var(--lift));
    filter: drop-shadow(0 3px 3px rgb(75 60 45 / .18)) drop-shadow(0 20px 22px rgb(75 60 45 / .26));
  }
  a.folder:hover .folder-arrow { color: var(--brick); }
}
a.folder:focus { outline: none; }
a.folder:focus-visible {
  transform: translateY(var(--lift));
  filter: drop-shadow(0 3px 3px rgb(75 60 45 / .18)) drop-shadow(0 20px 22px rgb(75 60 45 / .26));
  outline: 2px dashed var(--ink);
  outline-offset: 6px;
  border-radius: 4px;
}
a.folder:focus-visible .folder-arrow { color: var(--brick); }

.gallery-status {
  margin: 0 auto;
  max-width: 52ch;
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.legal {
  margin-top: clamp(6px, 1vw, 16px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-desk);
  text-align: center;
  color: var(--ink-faint);
}
.legal p { margin: 0 auto; max-width: 92ch; text-wrap: balance; }
.legal-cs { font-size: .8rem; line-height: 1.5; }
.legal .legal-en { font-size: .72rem; line-height: 1.5; margin-top: 4px; opacity: .9; }

/* ---------- Dialogs (About + mobile list) ---------- */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgb(52 44 36 / .58); }
.about { width: min(600px, calc(100% - 32px)); }
.dialog-folder { --paper-color: var(--paper); position: relative; padding-top: 34px; }
.dialog-folder .folder-tab {
  left: 24px;
  width: 150px;
  height: 36px;
  clip-path: path("M0 36 C8 36 10 32 12 24 L17 8 C18.5 3 22 0 27 0 L123 0 C128 0 131.5 3 133 8 L138 24 C140 32 142 36 150 36 Z");
  filter: url(#paper-edge);
}
.dialog-paper {
  position: relative;
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4.5vw, 50px);
  border-radius: 6px 8px 7px 8px;
  background-color: var(--paper);
  background-image: var(--fibres), var(--grain);
  background-size: 360px 360px, 220px 220px;
  box-shadow: inset 0 0 26px rgb(150 115 75 / .14), 0 24px 48px rgb(30 22 15 / .32);
}
.dialog-paper h2 {
  margin: 0 3rem 1.1rem 0;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1.15;
  text-wrap: balance;
}
.dialog-paper p { margin: 0 0 1em; max-width: 60ch; font-size: clamp(.98rem, .92rem + .25vw, 1.1rem); line-height: 1.6; }
.dialog-paper p:last-child { margin-bottom: 0; }
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}
.close:hover { background: rgb(80 60 40 / .08); }
.close:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.close svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .about[open] .dialog-folder { animation: drop-in 220ms cubic-bezier(.2, .7, .3, 1); }
  .about[open]::backdrop { animation: fade 220ms ease; }
  .sheet[open] .sheet-paper { animation: slide-up 260ms cubic-bezier(.2, .7, .3, 1); }
  .sheet[open]::backdrop { animation: fade 220ms ease; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(14px) rotate(-.6deg); } }
@keyframes slide-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* bottom sheet */
.sheet {
  width: 100%;
  max-width: 560px;
  margin: auto auto 0;
}
.sheet-paper {
  display: flex;
  flex-direction: column;
  max-height: min(86dvh, 720px);
  border-radius: 16px 16px 0 0;
  background-color: var(--paper);
  background-image: var(--fibres), var(--grain);
  background-size: 360px 360px, 220px 220px;
  box-shadow: 0 -12px 40px rgb(30 22 15 / .3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-head {
  position: relative;
  flex: none;
  padding: 26px max(24px, env(safe-area-inset-right, 0px)) 6px max(24px, env(safe-area-inset-left, 0px));
}
.sheet-head::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 4px;
  margin-left: -22px;
  border-radius: 2px;
  background: var(--rule);
}
.sheet-head h2 { margin: 6px 3rem 0 0; font-size: 1.55rem; line-height: 1.2; }
.sheet .close { top: 16px; right: max(12px, env(safe-area-inset-right, 0px)); }
.sheet-list {
  list-style: none;
  margin: 0;
  padding: 4px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-list li { border-bottom: 1px solid var(--rule); }
.sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  column-gap: 16px;
  padding: 16px 2px;
  color: inherit;
  text-decoration: none;
}
.sheet-row:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.row-name { display: block; font-weight: 700; font-size: 1.08rem; line-height: 1.25; overflow-wrap: anywhere; }
.row-program { display: block; color: var(--ink-soft); font-size: .95rem; margin-top: 2px; }
.row-code { color: var(--ink-soft); font-size: .88rem; white-space: nowrap; letter-spacing: .03em; }
.sheet-row svg { width: 24px; height: 24px; }
@media (hover: hover) { .sheet-row:hover svg { color: var(--brick); } }
.sheet-list .row-soon { border-bottom: 0; padding: 18px 2px 4px; color: var(--ink-faint); font-size: .98rem; }

/* fixed list strip (single-column layout only) */
.list-strip { display: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 599px) {
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .masthead { column-gap: 14px; row-gap: 0; }
  .masthead-text { display: contents; }
  .title { grid-column: 1; grid-row: 1; font-size: clamp(1.3rem, 6.1vw, 1.9rem); }
  .brand { grid-column: 2; grid-row: 1; padding-top: .25rem; }
  .subtitle { grid-column: 1 / -1; grid-row: 2; font-size: 1.02rem; }
  .about-actions { grid-column: 1 / -1; grid-row: 3; gap: 10px; margin-top: 14px; }
  .btn { font-size: .9rem; padding: .6em .9em; }
  .brand-full, .brand-logo--full { display: none; }
  .brand-compact, .brand-logo--compact { display: block; }
  .gallery-section { margin-top: 30px; }
  .gallery { grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: none; }
  .gallery-item { width: min(100%, 400px); }
  .gallery-item::after { height: 30px; }
  .folder-name { font-size: 1.22rem; }
  .folder-program { font-size: 1rem; }
  .folder-bio { font-size: .98rem; }
  .list-strip {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background-color: var(--paper);
    background-image: var(--fibres), var(--grain);
    background-size: 360px 360px, 220px 220px;
    border-top: 1px solid var(--rule);
    box-shadow: 0 -8px 20px rgb(60 45 30 / .16);
  }
  .list-strip .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 1.02rem;
    padding: .8em 1em;
    background: transparent;
  }
  .list-strip svg { width: 22px; height: 22px; flex: none; }
  .legal-cs { font-size: .78rem; }
}
@media (min-width: 600px) { .sheet { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .folder, .folder-arrow, .btn { transition: none !important; }
  a.folder:hover, a.folder:focus-visible { transform: none !important; }
}

/* ---------- 404 ---------- */
.notfound { max-width: 60ch; padding-block: 12vh; }
.notfound p { color: var(--ink-soft); font-size: 1.05rem; }
.notfound a { color: var(--ink); text-underline-offset: 3px; }
.notfound a:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }

/* ---------- Sticky note on a folder (demo portfolio) ---------- */
:root {
  --note: #bd3a2a;          /* red sticky-note paper */
  --note-ink: #fcefdf;      /* ivory lettering on the note */
  --tape: rgb(236 226 205 / .62);
}
.folder > .folder-sticker {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: -6px;
  width: 84px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  padding: 11px 5px 7px;
  text-align: center;
  color: var(--note-ink);
  background-color: var(--note);
  background-image: linear-gradient(180deg, rgb(255 255 255 / .1) 0 18%, transparent 18% 100%), var(--grain);
  background-size: auto, 220px 220px;
  border-radius: 1px 1px 2px 7px / 1px 1px 2px 4px;
  box-shadow: 0 1px 1px rgb(60 20 10 / .25), 1px 5px 7px -4px rgb(40 15 5 / .5);
  transform: rotate(5deg);
  transform-origin: 50% 0;
  transition: transform var(--lift-time) var(--lift-ease);
  pointer-events: none;
}
.folder-sticker::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 34px;
  height: 11px;
  margin-left: -17px;
  background: var(--tape);
  box-shadow: 0 1px 1px rgb(60 40 20 / .12);
  transform: rotate(-4deg);
}
.sticker-line {
  font-size: .5625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
}
.sticker-big {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  padding: 3px 4px 0;
  border-top: 1px solid currentColor;
}
@media (hover: hover) and (pointer: fine) {
  a.folder:hover .folder-sticker { transform: rotate(7deg) translateY(-1px); }
}
.row-tag {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 1px 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--note-ink);
  background: var(--note);
  border-radius: 2px;
}

/* ---------- Footer: Czech and English side by side ---------- */
@media (min-width: 860px) {
  .legal {
    display: grid;
    grid-template-columns: minmax(0, 66ch) minmax(0, 66ch);
    justify-content: center;
  }
  .legal p { margin: 0; max-width: none; text-wrap: pretty; }
  .legal .legal-cs, .legal .legal-en { font-size: .78rem; line-height: 1.55; margin-top: 0; }
  .legal .legal-cs { text-align: right; padding-right: 24px; border-right: 1px solid var(--rule-desk); }
  .legal .legal-en { text-align: left; padding-left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .folder-sticker { transition: none !important; }
}
