@import url('./portrait-preview.css');
/* Shared academic presentation, based on the approved publications preview. */
:root {
  --ink: #24282c; --muted: #64696f; --accent: #913d45;
  --accent-dark: #77323a; --accent-soft: #f7edef; --link: #245d7b;
  --rule: #e1e4e7; --line: #e1e4e7; --surface: #f6f7f8;
  --bg: #fff; --card: #fff; --math-blue: #173f78;
  --shadow: 0 1px 3px #24282c0b; --radius: 5px;
}
*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
html { scroll-padding-top: 24px; }
body.academic-site { margin: 0; background: #fff; color: var(--ink); font: 12px/1.55 Verdana, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:not([type="search"]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--link); outline-offset: 3px;
}
/* Text inputs also match :focus-visible after pointer focus. */
input[type="search"]:focus {
  outline: none; box-shadow: none; background: #eef1f3;
}
@media (forced-colors: active) {
  input[type="search"]:focus { outline: 1px solid Highlight !important; outline-offset: 1px; }
}
/* Restore disclosure markers removed by the legacy W3 reset. */
.academic-site summary { display: list-item; list-style: disclosure-closed inside; cursor: pointer; }
.academic-site details[open] > summary { list-style-type: disclosure-open; }
.academic-site summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.academic-site summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.academic-shell { width: calc(100% - 64px); max-width: 1600px; margin: 0 auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2000; padding: 8px 12px; background: #fff; }
.skip-link:focus { top: 8px; }
.academic-masthead { border-top: 4px solid var(--accent); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 20px; }
.researcher-identity { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; color: var(--ink); min-width: 0; }
.researcher-identity img { width: 44px; height: 56px; border-radius: 3px; object-fit: cover; object-position: 50% 35%; flex-shrink: 0; }
.researcher-name { display: block; font: 28px/1.2 Georgia, serif; }
.researcher-role { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); line-height: 1.6; }
.academic-affiliation { text-align: right; font-size: 10px; line-height: 1.8; color: var(--muted); }
.academic-affiliation span { display: block; }
.academic-affiliation span:first-child { color: var(--ink); }
.academic-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav-inner, .nav-links { display: flex; align-items: stretch; gap: 25px; }
.nav-links a { padding: 12px 0 10px; border-bottom: 2px solid transparent; font-size: 11px; text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current] { border-color: var(--accent); color: var(--accent); }
.academic-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--rule); padding: 20px 0 26px; color: var(--muted); font-size: 10px; }
.academic-footer a { color: var(--muted); text-decoration: none; }
.site-content { padding-top: 22px; padding-bottom: 36px; min-width: 0; min-height: 45vh; }
.site-heading { margin-bottom: 22px; }
.site-heading h1 { margin: 0; font: 27px/1.2 Georgia, serif; font-weight: 400; }
.academic-site :is(.site-heading h1, .hero h1, .hrs-page-title) { color: var(--ink); font-weight: 400; }
.site-heading p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }
.academic-site h6 { text-shadow: none; font-family: inherit; font-weight: normal; }
.academic-site .w3-container { border-radius: 0; }
.site-section { border-top: 2px solid #aa6770; padding: 12px 0 22px; min-width: 0; }
.site-section h2 { margin: 0 0 14px; font: 14px/1.4 Verdana, sans-serif; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.contact-grid p { margin: 0 0 14px; }
.contact-grid address { font-style: normal; line-height: 1.9; }
.contact-label { display: block; margin-bottom: 4px; font-size: 10px; color: var(--muted); }
.consultation-lines { font-size: 11px; line-height: 1.9; }
.consultation-lines span { display: block; }
.activity-grid { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 28px; align-items: start; }
.activity-grid ul { list-style: none; padding: 0; margin: 0; font-size: 11px; }
.activity-grid li { padding: 7px 0; border-bottom: 1px solid #eceef0; }
.activity-grid li:last-child { border: 0; }
.site-content :is(.mb, .mb2, .w3-btn, .w3-button, .hrs-action, .hrs-pill, .demo-btn, .demo-button, .btn), .site-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 6px 11px; min-height: 30px;
  background: var(--surface) !important; color: #53616a !important;
  font-size: 11px !important; font-weight: 400; line-height: 1.4; text-decoration: none;
  box-shadow: 0 1px 2px #24282c08 !important; text-shadow: none; transform: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.site-content :is(.mb, .mb2, .w3-btn, .w3-button, .hrs-action, .hrs-pill, .demo-btn, .demo-button, .btn):hover, .site-button:hover {
  color: var(--accent) !important; background: #f1e6e8 !important;
  box-shadow: 0 1px 3px #24282c12 !important; transform: none;
}
.site-content :is(input, select, textarea) { max-width: 100%; }
.site-content :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  border: 1px solid var(--rule); border-radius: 4px; background: #fff; padding: 6px 8px; color: var(--ink);
}
.site-content pre { max-width: 100%; overflow: auto; border: 1px solid var(--rule); border-radius: 4px; padding: 12px; background: var(--surface); }
.site-content img { max-width: 100%; }
.site-content table { max-width: 100%; font-variant-numeric: tabular-nums; }
.site-content th { font-weight: normal; }
.site-content math { color: var(--math-blue); }
.site-content math[display="block"] { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-block: 4px; }
.page-teaching .w3-card-2, .page-legacy .w3-card-2 { box-shadow: none !important; border-radius: 0; background: #fff; }
.page-teaching ol { font: inherit; }
.page-teaching :is(.box, .box-in, .box-1, .box-w) { box-shadow: none; border: 1px solid var(--rule); }
.page-teaching #kursy, .page-teaching #activity-students { margin: 0 0 26px !important; padding: 0 0 14px; }
.page-teaching #kursy > header, .page-teaching #activity-students > header, .page-legacy .w3-card-2 > header {
  background: transparent !important; border: 0 !important; border-top: 2px solid #aa6770 !important; border-bottom: 1px solid var(--rule) !important; padding: 7px 0;
}
.page-teaching #kursy > header h6, .page-teaching #activity-students > header h6 { margin: 0; font-size: 14px; }
.page-teaching #przyciski { padding: 12px 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.page-teaching #przyciski button { height: 30px; flex-shrink: 0; white-space: nowrap; }
.page-teaching #przyciski button[aria-expanded="true"] { background: #eedfe1 !important; color: #77323a !important; }
.other-courses { margin-left: auto; align-self: flex-start; font-size: 11px; }
.other-courses summary { cursor: pointer; color: var(--muted); padding: 6px; }
.other-course-buttons { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.course-notes { padding: 0 0 20px; }
.course-notes h3 { font: 14px/1.4 Verdana, sans-serif; margin: 8px 0 14px; }
.course-resources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 24px; padding: 0; margin: 0; list-style: none; }
.course-resources b { font-weight: 400; }
.course-resources li { border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.page-teaching #kursy > .hidden { margin: 0 0 18px !important; padding: 12px 16px 22px !important; border: 1px solid var(--rule); border-radius: 5px; position: relative; }
.page-teaching #kursy > .hidden > header { background: var(--surface) !important; border: 0 !important; margin: -12px -16px 12px; padding: 8px 16px; }
.page-teaching #kursy > .hidden .w3-card-2 { margin: 16px 0 !important; padding: 0 0 12px; }
.page-teaching .w3-pale-red { background: var(--accent-soft) !important; }
.page-teaching .w3-border-red { border-color: #aa6770 !important; }
.page-teaching :is(.w3-tiny, .w3-small, .w3-slim) { font-family: Verdana, sans-serif; font-size: 11px !important; }
.page-teaching article { line-height: 1.65; }
.page-teaching .course-requirements { border-top: 1px solid var(--rule); padding: 14px 0 0 !important; }
.course-close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; padding: 5px !important; }
.course-close svg { width: 14px; height: 14px; }
.page-teaching #id06 iframe { width: 100%; height: 840px; border: 1px solid var(--rule) !important; border-radius: 4px !important; }
.page-teaching #papers-students { margin: 0 !important; padding: 12px 0 !important; }
.page-teaching #papers-students h6 { font-size: 12px; margin: 0 0 8px; }
.page-teaching #papers-students .w3-ul { font-size: 10px !important; line-height: 1.55; }
.page-teaching #papers-students li { padding: 5px 0; }
.page-teaching #papers-students a { overflow-wrap: anywhere; }
.page-teaching #activity-students .w3-card-2 { margin-inline: 0 !important; }
.page-teaching .w3-modal-content { max-width: calc(100% - 28px); padding-bottom: 16px; border-radius: 5px; box-shadow: 0 4px 20px #24282c22; }
.page-exercises .wrap { width: min(1120px, calc(100% - 64px)); padding: 22px 0 36px; }
.page-exercises .hero { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 20px; }
.page-exercises .hero h1 { font: 27px/1.2 Georgia, serif; margin: 0 0 10px; }
.page-exercises .hero p { max-width: 90ch; }
.page-exercises .list-nav { background: #fffffff2; border: 0; border-block: 1px solid var(--rule); border-radius: 0; box-shadow: none; margin-bottom: 22px; }
.page-exercises .list-nav__link { background: var(--surface); border: 0; box-shadow: none; font-weight: 400; }
.page-exercises .list-nav__items { flex-wrap: wrap; overflow: visible; }
.page-exercises .list-nav__index { font-weight: 400; }
.page-exercises .list-nav__link.is-active { background: #eedfe1; color: var(--accent-dark); }
.page-exercises .list-section { border: 0; border-top: 2px solid #aa6770; border-radius: 0; background: none; box-shadow: none; padding: 20px 0 28px; margin-top: 18px; }
.page-exercises .list-section::before { border: 0; border-radius: 0; color: var(--accent); font-weight: 400; box-shadow: none; left: 0; }
.page-exercises .card, .page-exercises .list-section > .card { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 18px 0 24px; background: #fff; min-width: 0; }
.page-exercises .card::before { display: none; }
.page-exercises .card h2 { font-size: 16px; font-weight: 400; color: var(--ink); }
.page-exercises .card h3 { color: var(--ink); }
.page-exercises .card details > summary { min-height: 30px; padding-block: 5px; color: var(--link); }
.page-exercises .card details[open] { padding-bottom: 12px; }
.page-exercises :is(.context, .protocol, .demo-shell) { border-color: var(--rule); background: var(--surface); box-shadow: none; }
.page-exercises .context { border: 0; border-left: 2px solid #cbd4db; border-radius: 0; }
.page-exercises .note { background: #fcf8ee; border-color: #e9ddbd; }
.page-exercises .demo-shell { background: #fff; }
.page-exercises .demo-panel, .page-exercises .demo-figure { box-shadow: none; }
.page-exercises .demo-panel--choice { background: #eef3f6; border-color: #ccdbe3; }
.page-exercises .demo-value { background: var(--surface); border-color: var(--rule); }
.page-exercises .demo-status[data-tone="ok"] { background: #eef3f6; border-color: #ccdbe3; color: #245d7b; }
.page-exercises .formula { background: #fafbfc; border-color: var(--rule); }
.page-exercises .list-section > .card[data-kind="list"] { background: #fff; border-color: var(--rule); }
.page-exercises .step, .page-exercises .protocol .head { border-color: var(--rule); }
.page-exercises .step { grid-template-columns: 44px minmax(0, 1fr); }
.page-exercises .step > * { min-width: 0; }
.page-exercises .card :is(button, input, select) { font-size: 11px; }
.page-hrs #hrsDemo { margin: 0 auto !important; border: 0; border-radius: 0; box-shadow: none !important; }
.page-hrs math.hrs-inline-math { display: inline math; }
.page-hrs math.hrs-math-block { display: block math; }
.page-hrs .hrs-status-pill { background: #eef3f6; color: #53616a; box-shadow: none; }
.page-hrs #hrsDemo > header { background: transparent !important; border: 0 !important; padding: 0 0 14px; }
.page-hrs #hrsDemo > header h6 { font: 25px/1.3 Georgia, serif; margin: 0; }
.page-hrs #hrsDemo > header h1 { font: 27px/1.2 Georgia, serif; margin: 0; }
.page-hrs .hrs-intro { background: var(--surface); border: 0; border-radius: 4px; }
.page-hrs :is(.hrs-panel, .hrs-side-panel, .hrs-side-section, .hrs-doc-section) { box-shadow: none; }
.page-hrs .hrs-panel, .page-hrs .hrs-side-panel { border: 1px solid var(--rule); }
.page-hrs .hrs-panel-head { background: var(--surface); border-color: var(--rule); }
.page-hrs .hrs-workbench { padding: 16px 0; gap: 16px; }
.page-hrs .hrs-lower-panels { padding: 0 0 24px; gap: 16px; }
.page-hrs .hrs-lower-panels > section { border-top: 1px solid var(--rule); padding: 14px 0; }
.page-legacy .w3-row-padding { display: flex; flex-wrap: wrap; margin-inline: -8px; }
.page-legacy .w3-row-padding > * { min-width: 0; }
.page-legacy .w3-card-2 { margin: 0 0 20px !important; min-width: 0; }
.page-legacy .w3-card-2 > article { padding: 12px 0 !important; }
.page-legacy :is(span[name], td) { overflow-wrap: anywhere; }
.page-legacy :is(table, pre) { font-size: 11px; }
.page-proof .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.page-proof [class*="col-md-"] { width: 100%; padding: 0 8px; min-width: 0; }
.page-proof .content-section { border: 1px solid var(--rule); box-shadow: none; border-radius: 5px; padding: 12px; overflow-wrap: anywhere; }
.page-proof h4 { font: 16px/1.4 Verdana, sans-serif; margin-top: 0; }
.page-proof .form-control { display: block; width: 100%; }
.page-proof .table { width: 100%; text-align: left; border-collapse: collapse; }
.page-proof .table :is(td, th) { border-bottom: 1px solid var(--rule); padding: 5px; }
.page-proof .table tr > :not(:first-child) { text-align: right; }
.page-proof .table { font-size: 11px; }
.page-proof .article-metadata { color: var(--accent); }
.site-embedded :is(.academic-masthead, .academic-nav, .academic-footer, .skip-link) { display: none; }
.site-embedded .wrap { width: calc(100% - 28px); padding-top: 14px; }
@media (min-width: 768px) {
  .page-proof .col-md-3 { width: 25%; } .page-proof .col-md-9 { width: 75%; }
  .page-proof .col-md-4 { width: 33.333333%; } .page-proof .col-md-12 { width: 100%; }
}
@media (max-width: 1050px) {
  .academic-shell { width: calc(100% - 40px); }
  .contact-grid, .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .academic-affiliation { max-width: 260px; }
}
@media (max-width: 700px) {
  .academic-shell, .page-exercises .wrap { width: calc(100% - 28px); }
  .masthead-inner { display: block; padding: 17px 0 14px; }
  .researcher-name { font-size: 24px; }
  .researcher-identity { gap: 12px; }
  .researcher-identity img { width: 38px; height: 49px; }
  .academic-affiliation { max-width: none; margin-top: 11px; text-align: left; font-size: 9px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10px; padding: 11px 0 9px; }
  .site-heading h1, .page-exercises .hero h1 { font-size: 24px; }
  .contact-grid, .activity-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-content { padding-top: 18px; }
  .page-teaching #kursy > .hidden { padding: 12px 10px 20px !important; }
  .page-teaching #kursy > .hidden > header { margin-inline: -10px; padding-inline: 10px; }
  .page-teaching article { padding-inline: 0 !important; }
  .course-resources { grid-template-columns: 1fr; gap: 9px; }
  .other-courses { margin-left: 0; width: 100%; }
  .page-teaching #id06 iframe { height: 720px; }
  .page-exercises .context { padding: 10px; }
  .page-exercises .card { padding-block: 14px 20px; }
  .page-legacy .w3-col { width: 100%; }
  .page-hrs #hrsDemo > header h6 { font-size: 22px; }
  .page-hrs #hrsDemo > header h1 { font-size: 24px; }
  .academic-footer { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-content button { transition: none; }
}
