/* Uzupełnienia wzorca RDISGIE dla redakcji księgi jubileuszowej WWNiG. */
:root { --paper: #fffdf7; --muted: #59635c; --green: #006548; --ink: #182520; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > .kontener { width: 100%; flex: 1 0 auto; }
h1, h2, h3, p, a, label, td, th { overflow-wrap: anywhere; }
h2 { font-size: clamp(1.43rem, 2.2vw, 1.87rem); font-weight: 650; letter-spacing: -.025em; }
h3 { font-weight: 650; letter-spacing: -.012em; }
[hidden] { display: none !important; }
.university-mark { flex: none; width: auto; height: 54px; }
.jubilee-mark { color: var(--green); display: inline-flex; align-items: baseline; gap: .16em; font-weight: 600; }
.jubilee-mark strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.09em; font-size: 2.85rem; line-height: 1; }
.jubilee-mark span { font-size: 1rem; margin-inline-start: .22em; }
.nav-logout { display: block; width: 100%; border: 0; background: none; color: #29332c; text-align: left; padding: 13px 14px; cursor: pointer; font: 550 1.05rem / 1.35 var(--krój); }
.nav-logout:hover { background: #eae8de; }
.public-layout { padding-block: clamp(32px, 5vw, 75px); }
.wrap { width: 100%; min-width: 0; }
.narrow { max-width: 43rem; }
.page-foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 18px; font-size: .94rem; color: #4a544c; }
.page-foot-inner strong { letter-spacing: .07em; color: var(--ink); }
.foot-rule { display: inline-block; vertical-align: middle; height: 13px; width: 1px; background: #a7ada5; margin: 0 .75rem; }
.page-head, .section-head, .workspace-card, .module-link { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.page-head { padding-bottom: 24px; border-bottom: 1px solid var(--linia); margin-bottom: 26px; }
.page-head h1, .section-head h2, .sheet > h2, .page-column > h2, .module-link h2, .module-link h3, .workspace-card h2, .empty-state h3 { margin: 0; }
.page-head .btn, .section-head .btn { flex: 0 0 auto; }
.eyebrow { font-size: .82rem; letter-spacing: .13em; font-weight: 650; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
.intro { color: var(--muted); font-size: 1.18rem; line-height: 1.5; max-width: 65ch; }
.back { display: inline-block; color: var(--muted); font-size: .96rem; margin-bottom: 24px; }
.dim, .form-help, .source-ref, figcaption { color: var(--muted); }
.form-help, .source-ref, figcaption { font-size: .96rem; line-height: 1.4; }
.form-help, figcaption { margin: 0; }
.field, .stack-form { display: grid; align-content: start; gap: .38rem; min-width: 0; }
.stack-form { gap: 1.1rem; }
.stack-form > .btn, .stack-form > button { justify-self: start; }
.field label, .field-label, legend, .crop-fields label { font-weight: 650; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { font: inherit; color: var(--ink); border: 1px solid #838a7e; border-radius: 2px; padding: .5rem .72rem; background: #fffffc; width: 100%; min-width: 0; min-height: 44px; }
select { padding-right: 1.55rem; }
textarea { resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #69716b; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 1.13rem; height: 1.13rem; margin: .15rem 0 0; flex: 0 0 auto; }
.checkbox-label, .no-photo { display: flex; align-items: flex-start; gap: .7rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: .55rem 1rem; min-height: 44px; border-radius: 2px; font: 600 1rem / 1.3 var(--krój); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary, .btn-dark { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-primary:hover, .btn-dark:hover { background: #004e37; border-color: #004e37; color: #fff; }
.btn-outline { background: transparent; color: var(--green); border: 1px solid #618375; }
.btn-outline:hover { background: #e5eee7; color: #064e38; }
.btn-plain { border: 0; background: transparent; color: var(--green); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.suffix { font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.sheet, .workspace-card, .comparison { background: var(--paper); border: 1px solid var(--linia); border-top: 3px solid var(--green); }
.sheet, .workspace-card { padding: clamp(17px, 2.5vw, 30px); margin-block: 22px; }
.sheet > h2 { margin-bottom: 13px; }
.sheet > :last-child, .workspace-card p:last-child { margin-bottom: 0; }
.notice { padding: .8rem 1rem; border-left: 4px solid var(--green); background: #e5eee4; color: #204230; margin-block: 0 1.15rem; }
.notice-warning { background: #f5ebd2; border-color: #896129; color: #503c22; }
.notice-error, .errorlist { color: #842327; }
.notice-error { background: #f8e6e1; border-color: #a93333; }
.errorlist { margin: 0; padding-inline-start: 1.2rem; font-size: .95rem; }
.login-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "cover form"; max-width: 1030px; margin: 0 auto; align-items: stretch; background: var(--paper); border: 1px solid var(--linia); }
.login-art { grid-area: cover; margin: 0; background: #e7e4d7; display: grid; place-items: center; padding: clamp(20px, 3vw, 42px); }
.login-art img { display: block; width: min(100%, 350px); height: auto; box-shadow: 0 7px 18px rgba(29,43,33,.17); }
.login-panel { grid-area: form; align-self: center; padding: clamp(24px, 4vw, 60px); }
.login-panel h1 { margin: 0 0 .65rem; font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1.1; }
.login-panel .intro { font-size: 1.11rem; margin-bottom: 1.35rem; }
.stack-form .login-button { margin-top: .25rem; justify-self: stretch; justify-content: space-between; }
.login-help { margin: 1.3rem 0 0; border-top: 1px solid var(--linia); padding-top: .85rem; color: var(--muted); font-size: .94rem; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 32px; border: 1px solid var(--linia); border-top: 3px solid var(--green); background: var(--paper); }
.stat { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 13px clamp(8px, 1.3vw, 19px); line-height: 1.14; color: var(--ink); text-decoration: none; }
.stat + .stat { border-left: 1px solid var(--linia); }
.stat span { font-size: .94rem; font-weight: 600; }
.stat strong { font-size: clamp(1.7rem, 2.4vw, 2.4rem); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: .4rem; }
a.stat:hover { background: #eaece2; }
.section-head { margin: 0 0 15px; }
.filter-form { display: grid; grid-template-columns: minmax(8rem, 1.3fr) repeat(2, minmax(7rem, 1fr)) auto; align-items: end; gap: 10px; background: #efede5; border-top: 1px solid var(--linia); padding: 14px; }
.filter-form label { font-size: .92rem; }
.table-wrap table { width: 100%; max-width: none; border-collapse: collapse; }
.people-table thead th { background: transparent; text-align: left; color: var(--muted); font-size: .9rem; }
.people-table th, .people-table td { border-width: 0 0 1px; border-style: solid; border-color: var(--linia); padding: .8rem .55rem; vertical-align: middle; }
.people-table tbody th { background: transparent; font-weight: 600; text-align: left; }
.people-table small { display: block; font-size: .84rem; line-height: 1.25; color: var(--muted); font-weight: 400; }
.people-table td:last-child { text-align: right; }
.row-arrow { font-size: 1.25rem; text-decoration: none; }
.status { display: inline-flex; align-items: center; width: fit-content; color: #3b473e; border: 1px solid #b9c1b6; background: #eeefe7; padding: .2rem .55rem; border-radius: 2px; line-height: 1.28; font-size: .92rem; font-weight: 600; }
.status-submitted { background: #e9f1f3; color: #254852; border-color: #b7c9cc; }
.status-approved { background: #e4efe5; color: #215335; border-color: #a6c1ab; }
.status-returned { background: #f8ecd5; color: #6a4520; border-color: #d3b88a; }
.empty-state { text-align: center; padding: 24px 12px; border-bottom: 1px solid var(--linia); }
.empty-state h3 { margin-bottom: .45rem; }
.pagination { display: flex; justify-content: center; gap: 20px; align-items: center; margin: 18px auto; }
.module-link { border-block: 1px solid var(--linia); padding: 17px 0; margin-block: 25px; }
.workspace-list .module-link { margin-block: 0; border-top: 0; }
.workspace-actions { display: grid; justify-items: end; gap: .8rem; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 22px; }
.page-column { padding: clamp(15px, 2vw, 26px); min-width: 0; }
.page-column h2 { margin-bottom: .8rem; }
.page-column .actions, .page-column .btn { margin-top: .65rem; }
.page-column .actions .btn { margin: 0; }
.source-column { background: #efede5; }
.draft-column { border-left: 1px solid var(--linia); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-text { line-height: 1.62; }
.archive-portraits { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.archive-portraits figure, .selected-portrait { margin: 0; }
.archive-portraits img, .selected-portrait img { display: block; max-width: 115px; max-height: 155px; object-fit: contain; margin-bottom: .3rem; }
.selected-portrait { margin-top: 16px; }
.photo-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-bottom: 15px; }
.photo-choice { width: 135px; background: var(--tlo); border: 1px solid var(--linia); cursor: pointer; }
.photo-choice img { display: block; width: 100%; height: 140px; object-fit: contain; background: #e7e5dc; }
.photo-choice span { display: flex; gap: .4rem; align-items: flex-start; padding: .45rem; font-size: .9rem; line-height: 1.3; }
.photo-choice:has(:checked) { outline: 2px solid var(--green); }
.no-photo { margin-bottom: .4rem; }
.tool-details { margin: 1.15rem 0 0; border: 1px solid var(--linia); background: var(--paper); }
.tool-details > summary { cursor: pointer; font-weight: 600; color: var(--ink); margin: 0; min-height: 44px; }
.tool-content { padding: clamp(14px, 2vw, 24px); }
.tool-content > .field { max-width: 28rem; }
.photo-upload, .crop-tool, .account-section { border-top: 1px solid var(--linia); margin-top: 21px; padding-top: 18px; }
.photo-upload .btn, .crop-tool > .btn, .decision .btn { margin-top: .9rem; }
.crop-tool h3, .account-section h3 { margin: 0 0 .7rem; }
.crop-tool .form-help { margin-block: .75rem; }
.crop-preview { display: flex; justify-content: flex-start; margin-block: 12px; }
.crop-board { position: relative; touch-action: none; user-select: none; cursor: crosshair; }
.crop-board img { display: block; max-width: 100%; max-height: 320px; }
.crop-box { position: absolute; inset: 0; pointer-events: none; outline: 2px solid #fff; outline-offset: -2px; border: 3px solid #006548; }
.crop-fields { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .6rem; max-width: 38rem; }
.crop-fields label { font-size: .92rem; }
.reopen, .administration { margin-block: 22px; }
.account-section .stack-form { max-width: 40rem; }
.account-section > a { display: inline-block; margin-top: 1rem; }
.secret { background: #eeede6; padding: .58rem .75rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 68rem) {
  .uklad-strony { grid-template-columns: 198px minmax(0,1fr); gap: 26px; }
  .filter-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 59.99rem) {
  .uklad-strony { display: block; }
  .panel-boczny { margin-bottom: 20px; }
  .account-section { max-width: none; }
}
@media (max-width: 44rem) {
  .login-layout { display: flex; flex-direction: column; }
  .login-art { padding: 20px; }
  .login-art img { width: min(100%, 255px); }
  .login-panel { align-self: stretch; padding: 21px; }
  .public-layout { padding-block: 18px 30px; }
  .page-head, .section-head, .workspace-card, .module-link { flex-wrap: wrap; }
  .workspace-actions { justify-items: start; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--linia); }
  .comparison { grid-template-columns: 1fr; }
  .draft-column { border-left: 0; border-top: 1px solid var(--linia); }
  .page-foot-inner { align-items: start; flex-direction: column; gap: .4rem; }
}
@media (max-width: 33rem) {
  .jubilee-mark strong { font-size: 2.05rem; }
  .jubilee-mark span { font-size: .8rem; }
  .marka { gap: 10px; }
  .university-mark { height: 44px; }
  .people-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .people-table tbody, .people-table tr, .people-table td, .people-table tbody th { display: block; }
  .people-table tr { padding: .6rem .3rem; border-bottom: 1px solid var(--linia); }
  .people-table td, .people-table tbody th { border: 0; padding: .16rem 0; }
  .people-table td:last-child { display: none; }
  .people-table td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: .9rem; margin-right: .4rem; }
  .crop-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .back { margin-bottom: 16px; }
}
@media print {
  .public-layout, .uklad-strony { padding: 10px 0; }
  .btn, .tool-details, .nav-logout, .filter-form, .back { display: none !important; }
  .sheet, .comparison, .source-column { background: white; }
}
.lab-register, .review-list { list-style: none; padding: 0; border-top: 2px solid var(--green); }
.lab-register li, .review-list li { display: flex; justify-content: space-between; gap: .75rem 1rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid var(--linia); }
.lab-register h2 { font-size: 1.18rem; margin: 0 0 .25rem; }
.lab-register .status, .review-list .status { flex-shrink: 0; }
.lab-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.lab-picture { margin: 0; border: 1px solid var(--linia); background: var(--tlo); }
.lab-picture img { width: 100%; height: 128px; display: block; object-fit: contain; background: #e7e5dc; }
.lab-picture label, .lab-picture figcaption { display: flex; gap: .55rem; font-size: .96rem; line-height: 1.35; padding: .55rem; overflow-wrap: anywhere; }
.lab-picture small { display: block; color: var(--muted); font-size: .84rem; }
.lab-picture:has(:checked) { outline: 2px solid var(--green); }
.archive-portraits figure { max-width: 100%; }
.lab-queue { margin-block: 35px 20px; padding-top: 22px; border-top: 1px solid var(--linia); }
.conflict-panel { margin: 0 0 20px; }
@media (max-width: 33rem) {
  .lab-register li, .review-list li { flex-direction: column; }
}
.page-foot-inner { align-items: flex-start; gap: 18px 40px; }
.footer-edition, .footer-meta { display: grid; gap: 1px; min-width: 0; line-height: 1.45; }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand img { flex: none; width: auto; height: 45px; }
.page-foot-inner .footer-edition strong { letter-spacing: 0; font-size: 1rem; }
.footer-meta { text-align: right; justify-items: end; gap: 5px; }
.footer-meta a { color: #214f39; }
.footer-meta span { font-size: .88rem; }
.declaration { max-width: 50rem; margin-inline: auto; }
.declaration h2 { margin-top: 1.6em; }
.declaration h3 { margin-top: 1em; }
.declaration-dates { display: flex; flex-wrap: wrap; gap: 15px 40px; margin-block: 1.5rem; }
.declaration-dates dt { color: var(--muted); font-size: .95rem; }
.declaration-dates dd { margin: 0; font-weight: 600; }
@media (min-width: 53.01rem) {
  .biography-register { table-layout: fixed; }
  .biography-register .col-stage { width: clamp(9.4rem, 19%, 16rem); }
  .biography-register .col-life { width: clamp(9.8rem, 20%, 16rem); }
  .biography-register .col-open { width: 3rem; }
  .biography-register thead th, .biography-register [data-label] { white-space: nowrap; overflow-wrap: normal; }
  .biography-register [scope="row"] { overflow-wrap: break-word; }
  .biography-filters { grid-template-columns: minmax(8rem, 1.2fr) repeat(3, minmax(7.7rem, 1fr)) auto; }
}
@media (max-width: 53rem) {
  .biography-register colgroup { display: none; }
  .biography-register thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .biography-register tbody, .biography-register tr, .biography-register tbody th { display: block; }
  .biography-register tr { padding: .8rem 0; border-bottom: 1px solid var(--linia); }
  .biography-register tbody td, .biography-register tbody th { border: 0; padding: .2rem 0; }
  .biography-register tbody td[data-label] { display: grid; grid-template-columns: minmax(6.7rem, max-content) 1fr; gap: .6rem; align-items: baseline; }
  .biography-register td[data-label]::before { content: attr(data-label); margin: 0; color: var(--muted); font-size: .94rem; }
  .biography-register tbody td:last-child { display: none; }
}
@media (max-width: 44rem) {
  .footer-meta { text-align: left; justify-items: start; }
}
@media (max-width: 33rem) {
  .biography-filters { grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
}

.cover-poll { margin: 0 0 2.25rem; }
.cover-poll-compact { padding: clamp(14px, 2.3vw, 26px); background: #f0eee5; border-block: 1px solid var(--linia); }
.cover-poll-compact .section-head { margin: 0; }
.cover-poll .section-head h2 a { color: var(--ink); text-decoration: none; }
.cover-poll .section-head h2 a:hover { text-decoration: underline; }
.cover-poll > p { margin: .55rem 0 1.15rem; }
.cover-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(8px,2.1vw,24px); align-items: start; }
.cover-option { min-width: 0; }
.cover-zoom, .cover-original { display: block; position: relative; }
.cover-zoom { text-align: center; padding-bottom: .35rem; background: #e2e0d4; color: var(--ink); font-size: .9rem; }
.cover-zoom img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; margin: 0 auto .25rem; }
.cover-poll-compact .cover-zoom img { max-height: 160px; }
.cover-option > label { display: flex; align-items: center; gap: .45rem; cursor: pointer; min-height: 44px; font-weight: 650; }
.cover-option input[type="radio"] { margin: 0; }
.cover-submit { margin-top: .8rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.cover-poll .cover-results-link { margin: .75rem 0 0; }
.cover-original { width: min(100%, 56rem); }
.cover-original img { width: 100%; height: auto; display: block; }
.cover-original span { display: inline-block; padding-block: .75rem; }
.cover-results dl { margin: 0; }
.cover-results dl > div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--linia); padding: .5rem 0; }
.cover-results dd { margin: 0; font-weight: 650; }
@media (max-width: 30rem) {
  .cover-poll-compact { padding-inline: 8px; }
  .cover-grid { gap: 6px; }
  .cover-option > label { gap: .25rem; font-size: .97rem; }
  .cover-zoom { font-size: .8rem; }
}
