/* eStudánky – veřejný web, Bootstrap 5.
Styly po částech webu; responzivní pravidla jsou vždy u příslušné části. */

/* Základ, barvy, typografie a tlačítka */
/* Hlášení – společný vzhled všech variant Bootstrap alert */
.alert { position: relative; padding: 1rem 1.1rem 1rem 3.65rem; border-left: 5px solid currentColor; border-radius: .5rem; line-height: 1.5; overflow-wrap: anywhere; --stud-alert-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%2011v6%22%2F%3E%3Cpath%20d%3D%22M12%207h.01%22%2F%3E%3C%2Fsvg%3E"); }
.alert::before { content: ""; position: absolute; top: 1rem; left: 1rem; width: 1.5rem; height: 1.5rem; background-color: currentColor; -webkit-mask: var(--stud-alert-icon) center / contain no-repeat; mask: var(--stud-alert-icon) center / contain no-repeat; pointer-events: none; }
.alert-warning { --stud-alert-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203%202%2021h20L12%203Z%22%2F%3E%3Cpath%20d%3D%22M12%209v5m0%203h.01%22%2F%3E%3C%2Fsvg%3E"); }
.alert-danger { --stud-alert-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%207v6m0%204h.01%22%2F%3E%3C%2Fsvg%3E"); }
.alert-success { --stud-alert-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22m7.5%2012%203%203%206-6%22%2F%3E%3C%2Fsvg%3E"); }
.alert > :last-child { margin-bottom: 0; }
.alert-dismissible { padding-right: 3rem; }

:root { --stud-blue: #123e69; --stud-green: #177547; --stud-ink: #20282e; }
h1 { font-size: clamp(1.65rem,2.6vw,2.25rem); font-weight: 800; line-height: 1.2; color: var(--stud-blue); font-family: Roboto,sans-serif; }
body { color: var(--stud-ink); background: linear-gradient(180deg,#e4f3ff 80px,#eef8ff 350px,#fff 800px); position: relative; font-size: 1.0625rem; line-height: 1.55; background-color: #fff; font-family: Roboto,sans-serif; }
a { color: #124b81; }
a:where(:not(.btn,.source-card,.page-link,.nav-link,.dropdown-item,.navbar-brand,.source-photo,.homepage-shortcut,.homepage-advanced)):not(nav a):not(.estudanky-navbar a):not(.homepage-shortcuts a):not(:has(img)):hover,a:where(:not(.btn,.source-card,.page-link,.nav-link,.dropdown-item,.navbar-brand,.source-photo,.homepage-shortcut,.homepage-advanced)):not(nav a):not(.estudanky-navbar a):not(.homepage-shortcuts a):not(:has(img)):focus-visible { color: #0c5135; background-color: #e1f3e7; box-shadow: 0 0 0 2px #e1f3e7; border-radius: .15rem; box-decoration-break: clone; }
h2,h3,h4 { color: var(--stud-blue); font-family: Roboto,sans-serif; }
.container { max-width: 1140px; }
.btn-primary { --bs-btn-bg: #144f85; --bs-btn-border-color: #144f85; --bs-btn-hover-bg: #103e68; --bs-btn-hover-border-color: #103e68; }
.btn-success { --bs-btn-bg: #177547; --bs-btn-border-color: #177547; --bs-btn-hover-bg: #d6edaf; --bs-btn-hover-border-color: #739a45; --bs-btn-hover-color: #153d27; --bs-btn-active-bg: #bedf8e; --bs-btn-active-border-color: #739a45; --bs-btn-active-color: #153d27; --bs-btn-focus-shadow-rgb: 115,154,69; }
.card { border-color: #dce9ee; box-shadow: 0 3px 14px rgba(22,65,98,.04); }
.pagination a,a.btn { text-decoration: none; }
h5,h6 { font-family: Roboto,sans-serif; }

/* Společné ikony a pomocné prvky */
.stud-icon { display: inline-block; width: 1.4em; height: 1.4em; flex: none; vertical-align: middle; color: currentColor; }
.stud-icon-nav { width: 1.25rem; height: 1.25rem; margin-right: .45rem; color: var(--stud-blue); }
.stud-icon-action { width: 1.4rem; height: 1.4rem; margin-right: .45rem; color: #177547; }
nav a { text-decoration: none; }
#map { height: 28rem; }
#m { height: 20rem; }
.w-90 { width: 90% !important; }
.smapa { margin-top: -3rem; }
.zn { position: absolute; top: 2px; width: 40px; text-align: center; font-size: 70%; font-weight: 600; }
.znw { position: absolute; top: 2px; width: 40px; text-align: center; font-size: 70%; font-weight: 600; color: #fff; }
.clip { text-decoration: underline; }
.ikona { width: calc(clamp(90px,35vw,175px)); height: auto; }
.estudanky-lightbox .modal-body img { max-height: 78vh; object-fit: contain; }
.estudanky-lightbox [hidden] { display: none !important; }
form .form-check-input:focus { border-color: #72a885; box-shadow: 0 0 0 .2rem rgba(92,153,113,.18); }
button,input,select,textarea { font-family: Roboto,sans-serif; }

/* Hlavní menu a přihlášení v liště */
.estudanky-navbar { border-bottom: 1px solid #e5eef4; position: relative; z-index: 1030; background: #fff; }
.estudanky-navbar .container { position: relative; z-index: 1; }
.estudanky-navbar .navbar-brand { display: inline-flex; align-items: center; color: var(--stud-blue); white-space: nowrap; font-weight: 750; font-size: 1.25rem; margin-right: 1rem; gap: .55rem; }
.estudanky-navbar .navbar-brand img { height: 52px; width: auto; }
.estudanky-navbar .nav-link { color: var(--stud-blue); padding-inline: .6rem !important; font-weight: 700; font-size: 1.15rem; }
.estudanky-user-link { color: var(--stud-blue); }
.estudanky-navbar .nav-link:hover { color: #0b7552; background: rgba(215,236,248,.65); border-radius: .4rem; }
.estudanky-user-link:hover { color: #0b7552; }
.estudanky-navbar .dropdown-menu { border-color: #dce9ee; box-shadow: 0 8px 25px rgba(12,46,72,.14); max-height: calc(min(75vh,35rem)); overflow-y: auto; min-width: 0; width: max-content; max-width: calc(100vw - 2rem); padding: .4rem; background: #e6f1f8; border: 1px solid #a7c8dd; }
.estudanky-navbar .navbar-toggler { border-color: #aac5d2; }
.estudanky-navbar .estudanky-login { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .3rem .7rem; border: 1px solid #144f85; border-radius: .45rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.estudanky-navbar .estudanky-login:hover { background: #eaf4fa; }
.estudanky-navbar .nav-link:focus-visible { background: rgba(215,236,248,.65); border-radius: .4rem; }
.estudanky-navbar .dropdown-item { padding: .55rem .8rem; white-space: nowrap; border-radius: .3rem; color: #143c58; font-size: 1.05rem; }
.estudanky-navbar .dropdown-item:focus,.estudanky-navbar .dropdown-item:hover { background: #afcfdf; color: #082e45; }
.estudanky-navbar .dropdown-item:active { background: #1d5277; color: #fff; }
.estudanky-navbar .nav-link[aria-expanded=true] { background: #d2e7f2; border-radius: .4rem; }
.estudanky-navbar .navbar-brand .navbar-drop { height: 44px; width: auto; flex-shrink: 0; }
.estudanky-navbar .navbar-brand .navbar-wordmark-svg { width: 165px; height: auto; display: block; flex-shrink: 0; }
@media (max-width:991.98px) {
  .estudanky-navbar .dropdown-menu { box-shadow: none; border: 0; max-height: none; min-width: 0; width: 100%; max-width: none; }
  .estudanky-navbar .dropdown-item { white-space: normal; }
}
@media (max-width:479.98px) {
  .estudanky-navbar .navbar-brand .navbar-drop { height: 37px; }
  .estudanky-navbar .navbar-brand .navbar-wordmark-svg { width: 142px; }
}

/* Úvodní stránka */
body:has(.homepage-hero) { background: linear-gradient(180deg,#e8f6ff 4rem,#edf8ff 38rem,#fff 62rem); }
.homepage-hero { padding: 3.3rem 0 1.3rem; position: relative; background: var(--studanky-pramen, none) 100%/380px auto no-repeat; }
.homepage-hero h1 { margin-bottom: .8rem; max-width: 650px; letter-spacing: -.025em; font-size: calc(clamp(1.9rem,3.1vw,2.85rem)); font-family: Roboto,sans-serif; font-weight: 800; line-height: 1.13; }
.homepage-hero p { max-width: calc(100% - 370px); color: var(--stud-ink); font-size: 1.08rem; margin-bottom: .2rem; }
.homepage-new { background: #edf8f0; border: 1px solid #278258; color: var(--stud-blue); font-weight: 700; margin-top: .8rem; white-space: nowrap; }
.homepage-new:hover { background: #d8f0e0; color: #10375d; }
.homepage-advanced .stud-icon-action { color: currentColor; }
.homepage-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: .75rem; margin-bottom: 1.4rem; }
.homepage-search form { display: flex; flex: 1 1 420px; min-width: 0; position: relative; border: 1px solid #90b7d9; border-radius: .55rem; padding: .25rem; background: #fff; }
.homepage-search input { min-width: 0; border: 0; padding-left: 3rem; background: transparent; box-shadow: none; }
.homepage-search .stud-icon-search { position: absolute; top: 50%; transform: translateY(-50%); left: .9rem; width: 1.5rem; height: 1.5rem; color: #146143; }
.homepage-search .btn-success { font-weight: 700; border-radius: .4rem; margin-left: .25rem; }
.homepage-search .homepage-advanced { font-weight: 700; display: inline-flex; align-items: center; }
.homepage-shortcuts { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .65rem; margin-bottom: 1.2rem; }
.homepage-shortcuts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; min-height: 130px; background: #fff; color: var(--stud-blue); border-radius: .65rem; text-decoration: none; font-weight: 700; box-shadow: 0 2px 12px rgba(18,62,105,.06); transition: background-color .18s,box-shadow .18s,transform .18s; padding: .8rem .35rem; text-align: center; }
.homepage-shortcuts a:hover,.homepage-shortcuts a:focus-visible { background: #ddf0fa; box-shadow: 0 6px 20px rgba(18,62,105,.16); transform: translateY(-2px); }
.homepage-shortcuts a[href="/prameny-studanky-proc-pecovat"]:hover,.homepage-shortcuts a[href="/prameny-studanky-proc-pecovat"]:focus-visible { background: #e3f4e8; }
.homepage-shortcuts .stud-icon { width: 3.5rem; height: 3.5rem; color: #174e89; }
.homepage-shortcuts a[href="/prameny-studanky-proc-pecovat"] .stud-icon { color: #187b49; }
.homepage-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 1rem .5rem; margin-bottom: 1.35rem; background: #e7f3fb; border-top: 4px solid #cce8f8; border-radius: .7rem; }
.homepage-stat { display: flex; align-items: center; gap: .7rem; padding: .4rem 1rem; border-right: 1px solid #b8d7ec; }
.homepage-stat:last-child { border: 0; }
.homepage-stat .stud-icon { color: #225f9c; width: 2.4rem; height: 2.4rem; }
.homepage-stat strong { display: block; color: var(--stud-blue); font-size: 1.25rem; line-height: 1.2; }
.homepage-panel { background: #fff; border-radius: .7rem; padding: 1rem; height: 100%; }
.homepage-panel h2 { font-family: Roboto,sans-serif; font-size: 1.45rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .6rem; }
.homepage-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .75rem; border-bottom: 1px solid #dce9ee; flex-wrap: wrap; gap: .7rem; }
.homepage-map { display: flex; flex-direction: column; align-items: center; border-radius: .5rem; border: 1px solid #dce9de; color: #275d53; text-align: center; min-height: 0; justify-content: flex-start; background: linear-gradient(145deg,#f4f8f1,#edf4f0); padding: .25rem; overflow: hidden; }
.homepage-map .stud-icon { width: 2.5rem; height: 2.5rem; color: #178457; }
.homepage-changes,.homepage-news { list-style: none; padding: 0; margin: 0; }
.homepage-changes li { border-bottom: 1px solid #e0ebf1; padding: .8rem 0; display: flex; align-items: flex-start; gap: .5rem; }
.homepage-news li { border-bottom: 1px solid #e0ebf1; padding: .8rem 0; }
.homepage-changes li:last-child,.homepage-news li:last-child { border: 0; }
.homepage-changes a { font-weight: 700; }
.homepage-changes small { display: block; color: #53626b; line-height: 1.4; }
.homepage-news time { display: block; color: #5c6972; font-size: .85rem; }
.homepage-news p { margin: .2rem 0 0; }
.homepage-news a { color: var(--stud-blue); text-decoration: underline; }
.homepage-hero-row { display: block; padding-right: 350px; }
.homepage-search form:focus-within { outline: 3px solid #b5d9f0; }
.homepage-search input:focus { box-shadow: none; }
.homepage-panel h2 .stud-icon { width: 1.9rem; height: 1.9rem; }
.homepage-shortcuts .homepage-add-tile { background: #d8efdf; border: 1px solid #9ac8aa; color: #125334; }
.homepage-shortcuts .homepage-add-tile .stud-icon { color: #177547; }
.homepage-shortcuts .homepage-add-tile:hover,.homepage-shortcuts .homepage-add-tile:focus-visible { background: #bde4ca; }
.homepage-map>svg { display: block; width: 100%; height: auto; border-radius: .4rem; }
.homepage-map-link { font-size: .9rem; margin: .4rem 0 .2rem; font-weight: 600; }
.homepage-map svg a { cursor: pointer; }
.homepage-map svg a:focus circle,.homepage-map svg a:hover circle { stroke: #163e56; stroke-width: 3; }
.homepage-change-photo { flex: 0 0 60px; border-radius: .45rem; overflow: hidden; background: #e7f0f4; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-basis: 52px; }
.homepage-change-photo img { width: 100%; height: 100%; object-fit: cover; }
.homepage-change-photo .stud-icon { width: 1.7rem; height: 1.7rem; }
.homepage-changes li>div { min-width: 0; }
.homepage-changes li>div>a { font-weight: 600; line-height: 1.3; display: block; font-size: .95rem; }
.homepage-all-sources { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1rem; font-size: 1rem; min-height: 46px; font-weight: 700; white-space: nowrap; }
.homepage-all-sources .stud-icon { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }
.homepage-map svg a:focus path,.homepage-map svg a:hover path { stroke: #163e56; stroke-width: 2.5; }
.homepage-panel-head .homepage-all-sources,.selection-actions .homepage-all-sources { background: linear-gradient(180deg,#236b9c,#174d79); color: #fff; border: 1px solid #12416a; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.05rem; font-size: 1.05rem; min-height: 49px; font-weight: 700; box-shadow: 0 2px 4px rgba(20,63,100,.12); }
.homepage-panel-head .homepage-all-sources:hover,.homepage-panel-head .homepage-all-sources:focus-visible,.selection-actions .homepage-all-sources:hover,.selection-actions .homepage-all-sources:focus-visible { background: #cfe8fa; color: #123e69; border-color: #83b4d5; }
.homepage-panel-head .homepage-all-sources .stud-icon { width: 1.45rem; height: 1.45rem; display: block; color: currentColor; flex-shrink: 0; }
.homepage-stat span { font-size: .97rem; line-height: 1.35; }
@media (max-width:767.98px) {
  .homepage-hero { padding: 2rem 0 1rem; background-image: none; padding-right: 0; min-height: 0; }
  .homepage-shortcuts,.homepage-stats { grid-template-columns: repeat(2,1fr); }
  .homepage-stat:nth-child(2) { border: 0; }
  .homepage-search form { flex-basis: 100%; }
  .homepage-all-sources { white-space: normal; font-size: .9rem; }
  .homepage-hero-row { padding-right: 0; }
  .homepage-hero p { max-width: none; }
}
@media (min-width:768px) and (max-width:991.98px) {
  .homepage-hero { background-size: 230px auto; }
  .homepage-hero-row { padding-right: 230px; }
  .homepage-hero p { max-width: calc(100% - 240px); }
}
@media (min-width:576px) and (max-width:991.98px) {
  .homepage-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:575.98px) {
  .homepage-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:479.98px) {
  .homepage-panel-head .homepage-all-sources { font-size: .95rem; }
}

/* Články */
.article-page { padding-bottom: 0; padding-top: .35rem; }
.article-content { margin: 0; padding: 0; color: #111; font-size: 1.15rem; line-height: 1.65; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 1.25rem; }
.article-content h2 { font-family: Roboto,sans-serif; font-weight: 800; font-size: 2rem; line-height: 1.25; margin: 1.8rem 0 .9rem; }
.article-content h3 { font-weight: 700; font-size: 1.3rem; margin: 1.5rem 0 .7rem; }
.article-content img { max-width: 100%; height: auto; }
.article-content a { text-underline-offset: .15em; }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid #218759; background: #eef8f2; }
.article-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.article-content td,.article-content th { padding: .5rem .7rem; border: 1px solid #dce9ee; }
@media (max-width:575.98px) {
  .article-content h2 { font-size: 1.6rem; }
}

/* Výpisy a schránka */
.source-list-page { padding-bottom: .5rem; padding-top: .35rem; }
.source-filters { display: grid; grid-template-columns: minmax(180px,1.3fr) repeat(3,minmax(120px,1fr)) 200px; gap: 1rem; padding: 1.4rem 1.2rem; background: transparent; border-radius: .8rem; }
.source-search-field { position: relative; }
.source-search-field input { padding-left: 2.8rem; }
.source-search-field .stud-icon { position: absolute; top: 12px; left: 12px; color: #146143; width: 22px; height: 22px; }
.source-filter-actions { padding-top: 1.7rem; display: flex; flex-direction: column; gap: .45rem; }
.source-filter-actions .btn { min-height: 45px; font-weight: 700; }
.source-filter-actions > a { font-size: 1rem; text-align: center; }
.source-filter-actions .stud-icon { width: 18px; height: 18px; }
.source-toolbar { background: transparent; box-shadow: none; border: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 1rem; }
.source-toolbar p { margin: 0; color: var(--stud-blue); font-size: 1.15rem; }
.source-toolbar strong { font-family: Roboto,sans-serif; font-weight: 800; }
.source-sort { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.source-sort .form-select { width: auto; }
.source-filter-buttons { display: flex; gap: .4rem; }
.source-filter-buttons .btn { flex: 1; min-width: 0; padding-left: .5rem; padding-right: .5rem; }
.source-cards { display: flex; flex-direction: column; gap: .85rem; }
.source-card { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 1.25rem; padding: .7rem 1rem .7rem .7rem; background: #fff; border-radius: .8rem; transition: box-shadow .16s,filter .16s; color: var(--stud-ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.source-card-compact { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr) auto; gap: .8rem; padding: .8rem 1rem; font-size: .95rem; }
.source-authors { font-size: 1rem; line-height: 1.45; display: flex; flex-direction: column; gap: .35rem; }
.source-author-row { display: flex; align-items: flex-start; gap: .55rem; }
.source-author-row .stud-icon { flex: none; width: 22px; height: 22px; margin-top: .1rem; }
.source-card-main { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .25rem 1.2rem; }
.source-card-heading { grid-column: 1; min-width: 0; }
.source-card-main .source-location { grid-column: 1; grid-row: 2; }
.source-card-main .source-type { grid-column: 2; grid-row: 1/3; padding-top: 1.8rem; }
.source-card-main .source-authors { grid-column: 3; grid-row: 1/3; padding-top: 1.8rem; }
.source-photo { display: block; width: 150px; height: 150px; border-radius: .55rem; overflow: hidden; }
.source-photo img { width: 100%; height: 100%; object-fit: cover; }
.source-photo-empty { display: flex; align-items: center; justify-content: center; background: #edf7fc; color: #2865a0; }
.source-photo-empty .stud-icon { width: 60px; height: 60px; }
.source-card h2 { font-family: Roboto,sans-serif; font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin: 0 0 .4rem; color: var(--stud-blue); }
.source-date { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #53626b; margin: 0 0 .7rem; }
.source-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.source-dot.updated { background: #158442; }
.source-dot.added { background: #0759e8; }
.source-card-meta { display: contents; }
.source-location { display: flex; gap: .75rem; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
.source-type { align-items: flex-start; font-size: .86rem; line-height: 1.4; border-left: 1px solid #c9deed; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.source-card-meta .stud-icon { width: 26px; height: 26px; color: #174e89; }
.source-card-meta strong { display: block; color: var(--stud-blue); font-weight: 600; }
.source-card-meta span { display: block; color: #53626b; }
.source-pagination { margin: 1.6rem 0 .5rem; }
.source-pagination .pagination { gap: .4rem; margin: 0; }
.source-pagination .page-link { border-radius: .4rem; border-color: #c3ddec; color: #144f85; }
.source-pagination .active .page-link { background: #177547; border-color: #177547; color: #fff; }
.source-type .source-test-badge { display: inline-block; max-width: 100%; margin: 0 0 .55rem; padding: .48em .8em; border-radius: .35rem; font-size: .95rem; font-weight: 700; line-height: 1.3; white-space: normal; color: #111; }
.source-type .source-test-inaccessible,.source-card-compact.source-test-inaccessible { background-color: #ffbd75; }
.source-type .source-test-rescue,.source-card-compact.source-test-rescue { background-color: #ffe477; }
.source-type .source-test-drinkable,.source-card-compact.source-test-drinkable { background-color: #c7e8ff; }
.source-type .source-test-defunct,.source-card-compact.source-test-defunct { background-color: #dedede; }
.source-type .source-test-artificial,.source-card-compact.source-test-artificial { background-color: #dcc7ef; }
.source-type .source-type-name { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.source-feature-icons { flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; display: flex; }
.source-type .source-feature-icon { display: inline-flex; position: relative; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #98bcd5; border-radius: .5rem; background: #eaf5fc; color: #174e89; cursor: help; }
.source-feature-icon .stud-icon { width: 28px; height: 28px; color: inherit; }
.source-feature-icon:after { content: attr(data-label); position: absolute; bottom: calc(100% + .45rem); left: 50%; transform: translateX(-50%); padding: .4rem .6rem; border-radius: .3rem; background: #183b55; color: #fff; font-size: .8rem; font-weight: 400; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 10; }
.source-feature-icon:focus:after,.source-feature-icon:hover:after { opacity: 1; }
.source-feature-icon:focus-visible { outline: 2px solid #174e89; outline-offset: 3px; }
.source-type-heading { display: flex; align-items: center; gap: .6rem; }
.source-type-heading .stud-icon { flex: none; width: 30px; height: 30px; }
.source-type .source-type-secondary { display: block; color: inherit; font-size: inherit; font-weight: 400; }
.source-type-details { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.source-type-details:empty { display: none; }
.source-type-details .source-feature-icons,.source-type-details .source-test-badge { margin: 0; }
.source-card:hover { color: var(--stud-ink); filter: brightness(.98); box-shadow: 0 0 0 1px #9dc5df,0 3px 12px rgba(19,69,103,.08); }
.source-card:focus-visible { outline: 2px solid var(--stud-blue); outline-offset: 3px; box-shadow: 0 0 0 1px #9dc5df,0 3px 12px rgba(19,69,103,.08); }
.detail-test-badge.source-test-inaccessible { background: #ffbd75; }
.detail-test-badge.source-test-rescue { background: #ffe477; }
.detail-test-badge.source-test-drinkable { background: #c7e8ff; }
.detail-test-badge.source-test-defunct { background: #dedede; }
.detail-test-badge.source-test-artificial { background: #dcc7ef; }
.source-table-name { font-size: 1.12rem; font-weight: 700; text-decoration: none; }
.source-table-id,.source-table-line { display: block; font-size: .9rem; margin-top: .2rem; }
/* Rozbalovací informace: společný vzhled pro formuláře, nápovědu a návštěvy. */
.clipboard-help,.account-registration-info,.clipboard-visits { --disclosure-bg: #dcecf5; --disclosure-hover: #c6e1ef; --disclosure-border: #87afc5; --disclosure-color: #183f58; background: var(--disclosure-bg); border: 1px solid var(--disclosure-border); color: var(--disclosure-color); transition: background-color .15s ease, border-color .15s ease; }
.clipboard-help,.account-registration-info { margin-bottom: 1.3rem; padding: .85rem 1rem; border-radius: 10px; }
.clipboard-help>summary,.account-registration-info>summary,.clipboard-visits>summary { cursor: pointer; font-weight: 650; font-size: 1.1rem; line-height: 1.5; }
.clipboard-help:not([open]):hover,.account-registration-info:not([open]):hover,.clipboard-visits:not([open]):hover { background: var(--disclosure-hover); }
.clipboard-help>summary:focus-visible,.account-registration-info>summary:focus-visible,.clipboard-visits>summary:focus-visible { outline: 3px solid var(--disclosure-border); outline-offset: 5px; border-radius: 3px; }
.clipboard-help p { margin: .8rem 0 0; }
.clipboard-filters { background: hsla(0,0%,100%,.75); border: 1px solid #d4e3e8; padding: 1.25rem; border-radius: 16px; margin-bottom: 1.4rem; }
.clipboard-filters h2 { font-size: 1.25rem; margin: 0 0 1rem; }
.clipboard-category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .6rem; }
.clipboard-category { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1px solid #d9e3e6; border-radius: 9px; cursor: pointer; }
.clipboard-category .form-check-input { float: none; margin: 0; flex-shrink: 0; }
.clipboard-category:has(input:not(:checked)) { background: #f5f7f8; }
.clipboard-count { margin-left: auto; min-width: 1.5rem; padding: .05rem .4rem; text-align: center; border-radius: 20px; background: hsla(0,0%,100%,.8); font-size: .85rem; }
.clipboard-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.clipboard-cards { display: grid; gap: 1rem; }
.clipboard-card { background: #fff; border: 1px solid #d3e2e8; border-radius: 16px; overflow: hidden; }
.clipboard-card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: #f1f7f9; }
.clipboard-card-header h2 { font-size: 1.35rem; margin: 0; }
.clipboard-card-header h2 a { text-decoration: none; }
.clipboard-source-id { display: block; margin-top: .2rem; font-size: .85rem; }
.clipboard-category-label { padding: .35rem .7rem; font-weight: 650; border-radius: 8px; white-space: nowrap; }
.clipboard-category-0 { background: #edf2f4; }
.clipboard-category-1 { background: #e2f1e8; }
.clipboard-category-2 { background: #fff2ce; }
.clipboard-category-3 { background: #dfeef8; }
.clipboard-category-4 { background: #e9e3f4; }
.clipboard-category-5 { background: #fbe6de; }
.clipboard-category-6 { background: #dcf2ee; }
.clipboard-category-7 { background: #e8eed6; }
.clipboard-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.25rem; }
.clipboard-source-summary { display: flex; gap: 1rem; min-width: 0; align-items: flex-start; }
.clipboard-source-summary .source-photo { width: 120px; height: 120px; flex: 0 0 120px; }
.clipboard-source-summary .source-photo img { width: 100%; height: 100%; object-fit: cover; }
.clipboard-location { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .75rem; font-size: .92rem; }
.clipboard-location .stud-icon { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: #26738b; margin-top: .1rem; }
.clipboard-note { background: #f5f8f5; border-radius: 10px; padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
.clipboard-note h3 { font-size: 1rem; margin: 0 0 .5rem; }
.clipboard-note p { margin: 0; }
.clipboard-note-empty { color: #54606a; font-style: italic; }
.clipboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0 1.25rem 1rem; }
.clipboard-actions form,.clipboard-visit-actions form { margin: 0; }
.clipboard-visits { padding: 1rem 1.25rem; border-width: 1px 0 0; }
.clipboard-visits summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.clipboard-visits summary:before { content: "▸"; }
.clipboard-visits[open] summary:before { content: "▾"; }
.clipboard-visits summary .stud-icon { width: 1.2rem; height: 1.2rem; }
.clipboard-visits summary .clipboard-count { margin-left: 0; background: #e2edf2; }
.clipboard-visit { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #dfebef; }
.clipboard-visit:last-child { border-bottom: 0; padding-bottom: 0; }
.clipboard-visit p { margin: .4rem 0 0; overflow-wrap: anywhere; }
.clipboard-visit-actions { display: flex; align-items: flex-start; gap: .5rem; flex-shrink: 0; }
.clipboard-page>form:last-child { margin-top: 1rem; }
.source-test-repair { background: #fbe1cc; color: #813e19; }
@media (max-width:1199.98px) {
  .source-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .source-filter-search { grid-column: span 2; }
  .source-filter-actions { padding-top: 0; }
}
@media (max-width:767.98px) {
  .source-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-filter-search { grid-column: 1/-1; }
  .source-card { grid-template-columns: 95px minmax(0,1fr); gap: .8rem; align-items: start; }
  .source-photo { width: 95px; height: 110px; }
  .source-card h2 { font-size: 1.2rem; }
  .source-card-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-card-compact > :first-child { grid-column: 1/-1; }
  .source-card-main { display: block; }
  .source-card-meta { display: flex; flex-direction: column; gap: .6rem; }
  .source-card-main .source-type,.source-card-main .source-authors { padding-top: 0; }
  .source-type { border: 0; padding-left: 0; }
  .clipboard-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .clipboard-visit { flex-direction: column; }
  .clipboard-card-body,.clipboard-card-header { padding: 1rem; }
  .clipboard-actions { padding: 0 1rem 1rem; }
}
@media (max-width:575.98px) {
  .source-sort { width: 100%; }
  .source-card-meta .stud-icon { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .source-card { transition: none; }
}
@media (max-width:991.98px) {
  .clipboard-card-body { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width:479.98px) {
  .clipboard-source-summary .source-photo { width: 85px; height: 85px; flex-basis: 85px; }
  .clipboard-card-header h2 { font-size: 1.15rem; }
  .clipboard-card-header { align-items: flex-start; }
}

/* Detail zdroje a mapa */
.source-detail-page { padding-bottom: .5rem; color: #111; padding-top: .35rem; }
.detail-header { padding: .25rem 315px 1rem 0; min-height: 0; background: var(--studanky-pramen, none) 100%/310px auto no-repeat; }
.detail-header h1 { margin: 0 0 1rem; overflow-wrap: anywhere; }
.detail-heading-type { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.16rem; color: var(--stud-blue); }
.detail-heading-type .stud-icon { width: 32px; height: 32px; flex: none; }
.detail-heading-status { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .85rem; }
.detail-test-badge { padding: .48em .8em; border-radius: .35rem; font-size: .95rem; line-height: 1.3; white-space: normal; font-weight: 700; color: #111; }
.detail-feature { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; background: #eaf5fc; border: 1px solid #98bcd5; border-radius: .4rem; color: var(--stud-blue); font-size: .85rem; text-decoration: none; }
.detail-feature .stud-icon { width: 24px; height: 24px; flex: none; }
a.detail-feature:hover { background: #d4eaf8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: .3rem 0 1.4rem; }
.detail-actions .btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .85rem; font-weight: 600; }
.detail-actions .stud-icon { width: 22px; height: 22px; }
.detail-actions #clip:empty { display: none; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.3rem; align-items: stretch; }
.detail-media-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.3rem; align-items: start; }
.detail-media-grid > div { min-width: 0; }
.detail-section { padding: 1.3rem; margin: 0 0 1.2rem; background: #fff; border: 1px solid #deebf3; border-radius: .8rem; }
.detail-section h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.detail-section h2 .stud-icon { width: 26px; height: 26px; flex: none; color: #174e89; }
.detail-section>:last-child { margin-bottom: 0; }
.detail-section .list-group-item { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; padding: .42rem 0; line-height: 1.35; background: transparent; border-color: #e5eef4; color: #111; font-size: inherit; }
.detail-label { flex: 0 0 145px; color: #465b68; }
.detail-value { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.detail-section a { text-underline-offset: .15em; }
.detail-main-photo { display: block; border-radius: .5rem; overflow: hidden; }
.detail-main-photo img { display: block; width: 100%; max-height: 520px; height: auto; object-fit: contain; background: #f1f7fa; }
.detail-older-photos,.detail-photo-caption { font-size: .86rem; color: #465b68; margin: .7rem 0 0; }
.detail-photo-empty { display: flex; flex-direction: column; align-items: center; gap: .4rem; justify-content: center; min-height: 230px; border-radius: .5rem; background: #eff8fc; text-align: center; padding: 1rem; }
.detail-photo-empty .stud-icon { width: 65px; height: 65px; color: #87b6d0; }
.detail-photo-empty p { margin: .3rem 0; }
.detail-map>a { display: block; border-radius: .5rem; overflow: hidden; }
.detail-map img { display: block; width: 100%; height: auto; }
.detail-note-content { line-height: 1.65; overflow-wrap: anywhere; }
.detail-note-content img { max-width: 100%; height: auto; }
.detail-note-content>:last-child { margin-bottom: 0; }
.detail-note-content table { display: block; overflow-x: auto; max-width: 100%; }
.detail-visits ul { list-style: none; padding: 0; margin: 0; }
.detail-visits li { padding: .8rem 0; border-bottom: 1px solid #e5eef4; line-height: 1.6; overflow-wrap: anywhere; }
.detail-visits li:last-child { border: 0; }
.detail-measurements>div { overflow-x: auto; max-width: 100%; }
.detail-measurements table { margin-bottom: 0; font-size: .86rem; }
.detail-measurements thead th { background: #eaf5fc; color: #174e89; }
.detail-report { --disclosure-bg: #ffe4d4; --disclosure-hover: #ffd3ba; --disclosure-border: #ce9676; --disclosure-color: #70432d; margin: .6rem 0 1.2rem; }
.detail-report .form-control,.detail-report .form-select { border-color: #a9c9e2; }
.detail-back { margin: 1rem 0; }
.detail-map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: .8rem; font-size: .85rem; line-height: 1.5; }
.detail-map-current,.detail-map-legend a { display: inline; }
.detail-map-number { display: inline-flex; justify-content: center; align-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #18794e; color: #fff; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.detail-map-current .detail-map-number { background: #1769a7; }
.detail-map-distance { color: #53626b; white-space: nowrap; }
@media (max-width:991.98px) {
  .detail-grid,.detail-media-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width:767.98px) {
  .detail-section { padding: 1rem; }
  .detail-header { background-image: none; padding-right: 0; min-height: 0; }
}
@media (max-width:575.98px) {
  .detail-label { flex-basis: 130px; }
}

/* Formuláře a uživatelský účet */
.modal-content { border: 1px solid #a9c9e2; border-radius: .8rem; }
.modal-header { background: #edf6fc; color: var(--stud-blue); }
.modal-body .form-group { margin-bottom: .8rem; }
.web-form-panel { padding: 1.3rem; margin-bottom: 1.2rem; background: #fff; border: 1px solid #deebf3; border-radius: .8rem; color: #111; }
.web-form-panel-warning { background: #fff0e8; border-color: #e8bda9; }
.web-form-panel h2,.public-page .web-form-panel h2,.account-login-help h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin: 0 0 1.1rem; }
.web-form-panel h2 .stud-icon,.account-login-help h2 .stud-icon { width: 26px; height: 26px; flex: none; color: #174e89; }
.web-form-panel-warning h2,.web-form-panel-warning h2 .stud-icon { color: #70432d; }
.web-form :where(label:not(.form-check-label):not(.selection-option):not(.clipboard-category)) { display: block; font-size: .94rem; font-weight: 500; color: #1b3f56; margin-bottom: .45rem; }
form .form-control,form .form-select { border-color: #a9c9e2; min-height: 44px; }
form .form-control:focus { border-color: #72a885; box-shadow: 0 0 0 .2rem rgba(92,153,113,.18); }
form .form-select:focus { border-color: #72a885; box-shadow: 0 0 0 .2rem rgba(92,153,113,.18); background-color: #f1faed; }
.web-form .form-check-label,.web-form .selection-option { font-weight: 400; color: #111; }
form .form-control:focus:not([readonly]) { background-color: #f1faed; }
.source-entry-form .form-control[readonly] { background: #edf3f7; }
.source-form-inputs { display: flex; gap: .5rem; align-items: stretch; }
.source-form-inputs>.form-control,.source-form-inputs>.form-select { width: 100%; min-width: 0; flex: 1 1 0; }
.source-form-inputs>select[name=from_month] { flex: 1.6 1 0; }
.source-form-inputs>select[name=from_year] { flex: 1.3 1 0; }
.web-form .input-group-text { background: #edf6fc; border-color: #a9c9e2; color: var(--stud-blue); }
.web-form .input-group-text .stud-icon { width: 1.3rem; height: 1.3rem; }
.web-form-actions { display: flex; align-items: flex-end; justify-content: flex-end; }
.web-form button[type=submit],.web-form-actions .btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .65rem 1.1rem; font-weight: 600; }
.web-form button[type=submit] .stud-icon,.web-form-actions .stud-icon { width: 1.3rem; height: 1.3rem; }
.source-form-help,.web-form .form-text { font-size: .84rem; color: #53626b; margin-top: .4rem; }
.source-form-intro { margin-bottom: 1rem; color: #111; }
.source-required { font-weight: 400; color: #53626b; font-size: .82rem; }
.source-form-map { border-radius: .5rem; background: #eff8fc; padding: .9rem; }
.source-form-map p { font-size: .91rem; margin-bottom: .7rem; color: #111; }
.source-form-map-canvas { width: 100%; height: 300px; border-radius: .5rem; overflow: hidden; z-index: 0; }
.source-patron-choice { margin: 0; padding: 0; border: 0; }
.source-patron-choice legend { font-size: .94rem; font-weight: 600; margin-bottom: .6rem; color: #1b3f56; }
.source-entry-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; margin: 0 0 1.2rem; border: 1px solid #a8cdb7; border-radius: .7rem; background: #edf8f0; }
.source-entry-submit p { margin: 0; max-width: 680px; color: #111; line-height: 1.5; }
.account-login-field { margin-bottom: 1rem; }
.account-login-help { padding: 1.3rem; background: #edf8fc; border: 1px solid #aacddd; border-radius: .8rem; color: #111; max-width: 520px; }
.account-login-help p { margin: 0; line-height: 1.6; }
.source-patron-field .form-control { max-width: none; }
.source-patron-choice .form-check-inline { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.source-patron-choice .form-check-input { margin-top: 0; }
.selection-form { display: grid; gap: 1rem; }
.selection-panel { margin-bottom: 0; }
.selection-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.selection-location-columns { grid-template-columns: repeat(3,minmax(0,1fr)); }
.selection-group { min-width: 0; margin: 0; }
.selection-group legend { float: none; width: auto; font-weight: 650; font-size: 1rem; margin-bottom: .6rem; }
.selection-option { display: flex; align-items: flex-start; gap: .65rem; padding: .4rem .5rem; border-radius: 7px; cursor: pointer; line-height: 1.35; }
.selection-option:hover,.selection-option:has(input:checked) { background: #e6f2f5; }
.selection-option .form-check-input { float: none; margin: .12rem 0 0; flex-shrink: 0; width: 1.25em; height: 1.25em; border: 2px solid #618aa2; cursor: pointer; }
.selection-flags { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .3rem 1rem; }
.selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.selection-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.05rem; min-height: 49px; font-size: 1.05rem; font-weight: 700; }
.selection-actions .stud-icon { width: 1.2rem; height: 1.2rem; }
.source-selection-results { padding-top: 1.5rem; }
.selection-multiple { height: auto; background-image: none; padding-right: .75rem; }
.selection-field-label { display: flex; align-items: center; gap: .45rem; }
.selection-field-label .stud-icon { width: 1.15rem; height: 1.15rem; color: #26738b; }
.selection-hint { cursor: help; }
.account-register-form .account-login-field { margin-bottom: 0; }
.account-register-form .account-consent { margin: 1.1rem 0; }
.account-registration-info p { margin: .75rem 0; line-height: 1.6; }
.account-password-form { max-width: 540px; margin: 1rem 0; }
.account-recovery-page .account-login-help p+p { margin-top: .8rem; }
.account-result-page>.alert,.account-result-page>p { max-width: 760px; }
.account-action-panel { max-width: 760px; padding: 1.2rem; background: #fff; border: 1px solid #d3e2e8; border-radius: 13px; }
.account-result-submit { padding: .7rem 1.1rem; font-weight: 650; }
.account-new-password { display: block; width: fit-content; font-size: 1.4rem; font-weight: 700; color: #153f2a; background: #fff; border: 1px solid #acd0b9; border-radius: 8px; padding: .65rem 1rem; margin: .75rem 0; letter-spacing: .08em; user-select: all; }
.settings-page h1 { display: flex; align-items: center; gap: .65rem; }
.settings-page h1 .stud-icon { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.settings-column { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.settings-panel { margin-bottom: 0; }
.settings-panel legend { float: none; width: auto; font-size: .95rem; font-weight: 600; color: var(--stud-blue); margin: 0 0 .6rem; }
.settings-panel .form-check { margin-bottom: .65rem; min-height: 1.5rem; }
.settings-panel .form-check-label { text-transform: none; cursor: pointer; line-height: 1.45; font-weight: 400; }
.settings-panel .form-check-input { margin-top: .25rem; cursor: pointer; }
.settings-panel .form-check-input:checked { background-color: #245775; border-color: #245775; }
.settings-hint { font-size: .9rem; line-height: 1.55; margin: .7rem 0 1rem; }
.settings-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .1rem .8rem; }
.settings-summary { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0 .65rem; padding-top: 1rem; border-top: 1px solid #dce6e9; }
.settings-summary dt { font-weight: 400; font-size: .85rem; }
.settings-summary dd { font-size: 1.2rem; font-weight: 700; margin: 0; color: #174a68; }
.settings-save { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.3rem 0; padding: 1.15rem; border-radius: .7rem; background: #e8f1e5; border: 1px solid #cbdcc6; color: #111; }
.settings-save span { font-size: .9rem; }
@media (max-width:991.98px) {
  .account-login-help { max-width: none; }
}
@media (max-width:767.98px) {
  .web-form-panel { padding: 1rem; }
  .source-form-map-canvas { height: 300px; }
  .selection-columns,.selection-location-columns { grid-template-columns: 1fr; gap: 1rem; }
  .selection-flags { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width:575.98px) {
  .source-entry-submit .btn { width: 100%; justify-content: center; }
  .account-result-submit { width: 100%; }
}
@media (max-width:479.98px) {
  .selection-flags { grid-template-columns: 1fr; }
}
@media (max-width:399.98px) {
  .settings-check-grid { grid-template-columns: 1fr; }
}

/* Společné záhlaví a obsah stránek */
.source-breadcrumb [aria-current] { color: #53626b; }
.source-breadcrumb,.error-breadcrumb,.detail-breadcrumb,.source-form-breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; font-size: 1.05rem; margin: 0 0 .65rem; }
.source-list-header,.public-page-header,.source-form-header { display: block; padding: 1rem 310px 2.3rem 0; min-height: 0; margin: 0; background: var(--studanky-pramen, none) 100%/330px auto no-repeat; }
.source-list-header h1,.public-page-header h1,.source-form-header h1 { margin: 0 0 1rem; letter-spacing: -.025em; }
.source-list-header>p,.public-page-header>p,.source-form-header>p { font-size: 1.15rem; line-height: 1.55; margin: 0; color: #111; }
.error-page { padding-bottom: 1rem; padding-top: .35rem; }
.error-breadcrumb [aria-current] { color: #53626b; }
.error-header { padding: 1rem 390px 2rem 0; min-height: 255px; background: var(--studanky-pramen, none) 100%/380px auto no-repeat; }
.error-code { display: inline-block; margin: 0 0 .9rem; padding: .35rem .75rem; border: 1px solid #a2c5dc; border-radius: .4rem; color: var(--stud-blue); font-weight: 700; background: #e8f5fd; }
.error-header h1 { margin: 0 0 1rem; }
.error-intro { font-size: 1.18rem; line-height: 1.55; color: #111; margin: 0; }
.error-content { color: #111; font-size: 1.04rem; line-height: 1.65; }
.error-content>p { max-width: 750px; margin-bottom: 1rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.3rem 0 1.5rem; }
.error-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem 1rem; font-weight: 600; }
.error-actions .stud-icon { width: 23px; height: 23px; }
.error-contact { font-size: .95rem; }
.detail-breadcrumb [aria-current] { color: #53626b; overflow-wrap: anywhere; }
.source-form-breadcrumb [aria-current] { color: #53626b; }
.public-page { color: #111; padding-bottom: 1rem; overflow-wrap: anywhere; padding-top: .35rem; }
.public-page>p { line-height: 1.65; margin-bottom: 1rem; }
.public-page h2 { font-weight: 750; font-size: 1.7rem; margin: 1.5rem 0 .85rem; }
.public-page h3 { font-weight: 700; font-size: 1.3rem; margin: 1.25rem 0 .75rem; }
.public-page h4 { font-weight: 650; font-size: 1.12rem; }
.public-page>ul { padding-left: 1.4rem; line-height: 1.65; }
.public-page>ul li { margin-bottom: .35rem; }
.public-page a { text-underline-offset: .15em; }
.public-page img { max-width: 100%; height: auto; }
.public-page .table { color: #111; background: #fff; border-color: #d8e5eb; }
.public-page .table th { background: #e3f0f5; color: #173f51; border-color: #cddfe7; padding: .7rem .85rem; }
.public-page .table td { padding: .65rem .85rem; vertical-align: middle; }
.public-page .table-hover tbody tr:hover { background: #edf6f9; }
.public-page>.table { display: block; overflow-x: auto; }
.public-page .table-responsive,.public-page .table-responsive-xl { border-radius: 12px; margin: 1rem 0; }
.public-page form { margin: 1rem 0; }
.public-page .form-group { margin-bottom: 1rem; }
.public-page .input-group .form-control { min-width: 0; }
.public-page .alert.w-75,.public-page form.w-75 { width: 100% !important; }
.public-page .pagination { flex-wrap: wrap; gap: .25rem; }
.public-page .report-link-card h2 { font-size: 1.15rem; margin: 0; line-height: 1.4; }
.public-panel { background: hsla(0,0%,100%,.85); border: 1px solid #d3e2e8; border-radius: 14px; padding: 1.25rem; }
.public-page .public-panel > h2,.public-page .statistics-panel h2 { margin: 0 0 1rem; font-size: 1.3rem; display: flex; align-items: center; gap: .65rem; }
.public-panel > h2 .stud-icon { width: 1.5rem; height: 1.5rem; color: #26738b; }
.public-page .gallery-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.studanky-bez-kresby .homepage-hero,.studanky-bez-kresby .source-list-header,.studanky-bez-kresby .error-header,.studanky-bez-kresby .detail-header,.studanky-bez-kresby .source-form-header,.studanky-bez-kresby .public-page-header { background-image: none; padding-right: 0; min-height: 0; }
.studanky-bez-kresby .homepage-hero-row { padding-right: 0; }
.studanky-bez-kresby .homepage-hero p { max-width: none; }
@media (max-width:575.98px) {
  .error-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width:767.98px) {
  .public-page { padding-top: 1rem; }
  .public-page .float-end,.public-page .float-start { float: none !important; }
  .source-list-header,.error-header,.source-form-header,.public-page-header { background-image: none; padding-right: 0; min-height: 0; }
}

/* Měření a rozbory vody */
.measurement-cards { display: grid; gap: 1rem; }
.measurement-card { border: 1px solid #cfdee6; border-radius: 15px; background: #fff; overflow: hidden; }
.measurement-card>header { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #edf5f8; }
.measurement-card>header h2 { font-size: 1.25rem; margin: 0 0 .3rem; }
.measurement-card>header h2 a { text-decoration: none; }
.measurement-card>header span { font-size: .85rem; }
.measurement-date { display: flex; align-items: center; gap: .45rem; white-space: nowrap; font-size: .95rem; }
.measurement-date .stud-icon { width: 1.2rem; height: 1.2rem; color: #26738b; }
.measurement-values { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1px; background: #e3edf1; margin: 0; }
.measurement-values>div { padding: .8rem 1.1rem; background: #fff; }
.measurement-values dt { font-size: .85rem; font-weight: 550; }
.measurement-values dd { margin: .35rem 0 0; font-size: 1.15rem; font-weight: 650; }
.web-form .measurement-values .form-control { min-width: 0; padding: .35rem .45rem; font-size: .95rem; }
.web-form .measurement-values label { min-height: 2.4em; font-size: .8rem; line-height: 1.2; }
.measurement-values dd small { font-size: .8rem; font-weight: 400; }
.measurement-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.measurement-actions form { margin: 0; }
.measurements-page h1 { display: flex; align-items: center; gap: .65rem; }
.measurements-page h1 .stud-icon { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.measurements-page .measurement-cards { margin-top: 1.2rem; }
.measurements-page .measurement-card>header { align-items: center; flex-wrap: wrap; padding: .65rem 1rem; }
.measurements-page .measurement-card>header h2 { margin: 0; }
.measurements-page .measurement-card>header>span { margin-left: auto; text-align: right; }
.measurements-page .measurement-card h2 { line-height: 1.35; }
.measurements-page .measurement-card-compact { border-top: 3px solid #9ebed0; }
.measurements-page .measurement-card-compact + .measurement-card-compact { margin-top: .65rem; }
.measurements-page .measurement-card-compact .measurement-values { grid-template-columns: repeat(8,minmax(0,1fr)); }
.measurements-page .measurement-card-compact>header { padding: .7rem 1rem; }
.measurements-page .measurement-card-compact h2 { font-size: 1.1rem; }
.measurements-page .measurement-card-compact .measurement-values>div { padding: .45rem .55rem; min-width: 0; overflow-wrap: anywhere; }
.measurements-page .measurement-card-compact .measurement-values dt { font-size: .8rem; line-height: 1.2; }
.measurements-page .measurement-card-compact .measurement-values dd { margin: .2rem 0 0; font-size: 1rem; line-height: 1.3; }
.measurements-page .measurement-card-compact .measurement-inline-person { grid-column: span 1; }
.measurements-page .measurement-card-compact .measurement-inline-weather { grid-column: span 2; }
.measurements-page .measurement-card-compact .measurement-inline-person dd,.measurements-page .measurement-card-compact .measurement-inline-weather dd { font-size: .9rem; font-weight: 400; overflow-wrap: anywhere; }
.measurements-page .measurement-card-compact .measurement-footer .measurement-date { color: #65438b; }
.measurements-page .measurement-card-compact .measurement-footer .stud-icon { color: inherit; }
@media (max-width:991.98px) {
  .measurement-values,.measurements-page .measurement-card-compact .measurement-values { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .measurements-page .measurement-card-compact .measurement-inline-weather { grid-column: span 2; }
}
@media (max-width:767.98px) {
  .measurement-values { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .measurement-card>header { flex-direction: column; align-items: flex-start; }
}
@media (max-width:479.98px) {
  .measurement-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:575.98px) {
  .measurements-page .measurement-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .measurements-page .measurement-values>div { padding: .75rem; }
  .measurements-page .measurement-card>header { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .measurements-page .measurement-card>header>span { margin-left: 0; text-align: left; }
  .measurements-page .measurement-card-compact .measurement-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .measurements-page .measurement-card-compact .measurement-inline-person,.measurements-page .measurement-card-compact .measurement-inline-weather { grid-column: span 2; }
}

/* Novinky, statistika, galerie a další přehledy */
.report-link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.report-link-card { display: flex; align-items: flex-start; gap: 1rem; background: #fff; border: 1px solid #d3e2e8; border-radius: 14px; padding: 1.15rem; }
.report-link-card h2 a { text-decoration: none; }
.report-link-icon .stud-icon { width: 1.7rem; height: 1.7rem; color: #228256; }
.report-link-date { display: block; font-size: .85rem; margin-top: .4rem; }
.report-link-card:hover { background: #edf6f9; }
.statistics-panel { background: hsla(0,0%,100%,.85); border: 1px solid #d3e2e8; border-radius: 14px; padding: 1.25rem; }
.statistics-panel h2 .stud-icon { width: 1.5rem; height: 1.5rem; color: #26738b; }
.statistics-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; align-items: start; }
.statistics-panel ol,.statistics-panel ul { padding-left: 1.3rem; line-height: 1.6; margin-bottom: 1.2rem; }
.statistics-panel li { margin-bottom: .35rem; }
.statistics-panel h3 { border-top: 1px solid #e0e9ed; padding-top: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.gallery-card { border: 1px solid #d3e2e8; background: #fff; border-radius: 13px; overflow: hidden; }
.gallery-card>a { display: block; overflow: hidden; aspect-ratio: 4/3; background: #eaf1f4; }
.gallery-card:hover .gallery-photo { transform: scale(1.035); }
.gallery-caption { padding: .85rem 1rem; }
.gallery-caption a { display: block; font-weight: 650; text-decoration: none; line-height: 1.35; }
.gallery-caption span { display: block; font-size: .85rem; margin-top: .25rem; }
.guestbook-messages { display: grid; gap: 1rem; }
.guestbook-message { background: #fff; border: 1px solid #d3e2e8; border-radius: 13px; overflow: hidden; }
.guestbook-message header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .85rem 1.1rem; background: #edf5f8; }
.guestbook-message header time { font-size: .9rem; }
.guestbook-message-text { padding: 1rem 1.1rem; line-height: 1.6; }
.guestbook-message-text>:last-child { margin-bottom: 0; }
.media-list { width: 100%; border: 1px solid #d3e2e8; border-radius: 14px; overflow: hidden; background: #fff; }
.media-list-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #e1ebef; }
.media-list-item:last-child { border-bottom: 0; }
.media-list-item:hover { background: #edf6f9; }
.media-type-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 45px; height: 45px; border-radius: 10px; background: #e8f2f7; color: #26738b; }
.media-type-icon .stud-icon { width: 30px; height: 30px; }
.media-item-content { flex: 1; min-width: 0; }
.media-item-content>a { font-weight: 600; text-decoration: none; line-height: 1.5; }
.media-item-type { display: block; margin-top: .25rem; font-size: .85rem; }
.media-external { font-size: 1.2rem; color: #26738b; }
.news-page h1 { display: flex; align-items: center; gap: .65rem; }
.news-page h1 .stud-icon { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.news-timeline { margin: 1.5rem 0 2rem; }
.news-year { font-size: 1.45rem; color: #174a68; font-weight: 700; margin: 1.75rem 0 .75rem; }
.news-entry { display: grid; grid-template-columns: 10rem minmax(0,1fr); gap: 1.25rem; padding: 1.15rem 1.3rem; margin-bottom: .6rem; background: hsla(0,0%,100%,.8); border: 1px solid #d8e5e9; border-left: 4px solid #6b9caf; border-radius: .65rem; color: #111; }
.news-date { display: flex; align-items: center; align-self: start; gap: .55rem; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.news-date .stud-icon { width: 1.5rem; height: 1.5rem; color: #245775; }
.news-text { min-width: 0; overflow-wrap: anywhere; line-height: 1.65; }
.news-text>:last-child { margin-bottom: 0; }
.news-text img { max-width: 100%; height: auto; }
@media (max-width:991.98px) {
  .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:767.98px) {
  .report-link-grid,.statistics-columns { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-entry { grid-template-columns: 1fr; gap: .65rem; padding: 1rem; }
}
@media (max-width:479.98px) {
  .gallery-grid { gap: .65rem; }
  .gallery-caption { padding: .7rem; }
  .gallery-caption a { font-size: .9rem; }
}
@media (max-width:575.98px) {
  .media-list-item { padding: .85rem; gap: .75rem; }
  .media-type-icon { flex-basis: 38px; height: 38px; }
  .media-type-icon .stud-icon { width: 26px; height: 26px; }
}

/* Patička */
.estudanky-footer { margin-top: 0; border-top: 1px solid #9dbfd5; background: #e5f1f8; }
.footer-scene { position: relative; width: 100%; background: linear-gradient(to bottom,#cce3f2,#e5f1f8 85px); overflow: hidden; }
.footer-scene::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: url("../im/paticka-krajina.webp?v=20261004-modra") center 45% / cover no-repeat; mask-image: linear-gradient(to bottom,transparent,#000 20px,#000 75%,transparent); pointer-events: none; }
.footer-sections { position: relative; display: grid; grid-template-columns: 1fr; gap: 1rem; padding-top: 1.2rem; padding-bottom: 75px; }
.footer-section { min-width: 0; text-align: center; font-size: .95rem; }
.footer-section h2 { font-family: inherit; font-size: .95rem; font-weight: 500; line-height: 1.5; margin: 0 0 .6rem; color: var(--stud-ink); }
.footer-support-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.2rem; }
.footer-support-row h2 { margin: 0; white-space: nowrap; }
.footer-section p { margin: 0 0 .8rem; }
.footer-supporters { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.footer-supporters img { display: block; max-height: 60px; width: auto; max-width: 138px; height: auto; }
.footer-supporters img.footer-praha { width: auto; max-height: 60px; }
.footer-license { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .45rem; font-size: .85rem; }
.footer-license img { display: block; max-width: 100px; max-height: 25px; width: auto; height: auto; }
.estudanky-footer-bottom { background: #dcecf6; border-top: 1px solid #cddfe9; font-size: .9rem; padding: .8rem 0; }
.estudanky-footer-bottom .container { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .5rem 0; }
.footer-item { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: .3rem; }
.footer-item+.footer-item::before { content: "|"; color: #607b8d; margin: 0 .65rem; }
.estudanky-footer-bottom a { text-decoration: none; }
.measurement-footer { padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.measurement-footer p { margin: 0; }
.measurements-page .measurement-footer p+p { margin-top: .35rem; }
.measurements-page .measurement-card-compact .measurement-footer { padding: .5rem .8rem; background: #eee5f7; }
@media (max-width:991.98px) {
  .footer-supporters { gap: .8rem; }
}
@media (max-width:575.98px) {
  .footer-sections { padding-top: 1rem; padding-bottom: 65px; }
  .footer-scene::after { height: 75px; }
  .footer-supporters img { max-width: 120px; max-height: 54px; }
  .footer-supporters img.footer-praha { max-height: 54px; }
  .estudanky-footer-bottom .container { justify-content: center; text-align: center; }
}
@media (max-width:767.98px) {
  .measurement-footer { flex-direction: column; align-items: flex-start; }
}
