/* Shared colors for Bootstrap components and the project pages. */
:root, [data-bs-theme="light"] {
    --st24-ink: #1d2025;
    --st24-muted: #545a62;
    --st24-surface: #fff;
    --st24-page: #f4f4f5;
    --st24-line: #d7d9de;
    --st24-accent: #b51e2d;
    --st24-link: #a12130;
    --st24-deep: #202126;
    --st24-radius: 6px;
    --bs-body-color: var(--st24-ink);
    --bs-body-bg: var(--st24-page);
    --bs-secondary-color: var(--st24-muted);
    --bs-border-color: var(--st24-line);
    --bs-border-radius: var(--st24-radius);
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: var(--st24-radius);
    --bs-link-color-rgb: 161, 33, 48;
    --bs-link-hover-color-rgb: 123, 16, 29;
}
[data-bs-theme="dark"] {
    --st24-ink: #f2f2f4;
    --st24-muted: #b7bac2;
    --st24-surface: #22242a;
    --st24-page: #17181c;
    --st24-line: #3b3e46;
    --st24-link: #ff9a9e;
    --bs-link-color-rgb: 255, 154, 158;
    --bs-link-hover-color-rgb: 255, 181, 184;
}
body { padding-top: 5.4rem; background: var(--st24-page); color: var(--st24-ink); line-height: 1.65; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #dc555f; outline-offset: 3px; }
.st24-nav { background: #1c1e23; border-bottom: 1px solid #373940; min-height: 4.25rem; }
.st24-nav .nav-link { color: #ebecef; padding-inline: .64rem; }
.st24-nav .nav-link:hover, .st24-nav .nav-link.active { color: white; }
.st24-nav .nav-exhibitor { margin: .25rem .4rem; white-space: nowrap; }
.navbar-brand img { max-width: 100%; object-fit: contain; }
.btn-primary { --bs-btn-bg: var(--st24-accent); --bs-btn-border-color: var(--st24-accent); --bs-btn-hover-bg: #941726; --bs-btn-hover-border-color: #941726; --bs-btn-active-bg: #7b1020; --bs-btn-active-border-color: #7b1020; }
.st24-main { padding-top: .75rem; }
.project-hero { position: relative; display: grid; align-items: end; min-height: clamp(24rem, 42vw, 35rem); padding: clamp(1.35rem, 4.8vw, 4.25rem); color: #fff; background: linear-gradient(90deg, #16171bf5 0%, #16171bc7 41%, #17181c30 100%), url('/img/domek.jpg') center 43% / cover, var(--st24-deep); border-radius: var(--st24-radius); }
.project-hero-copy { max-width: 37rem; }
.project-hero h1, .exhibitor-page h1 { font-size: clamp(2.4rem, 5.4vw, 5.1rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 750; text-wrap: balance; }
.project-hero p { color: #f3f3f5; font-size: clamp(1.05rem, 1.8vw, 1.28rem); max-width: 36rem; margin-block: 1.25rem 1.75rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.action-row .btn, .exhibitor-callout .btn { padding: .7rem 1.1rem; font-weight: 650; }
.project-hero-secondary { color: #fff; border: 1px solid #ffffff8a; }
.project-hero-secondary:hover { color: #1c1e23; background: #fff; }
.project-section { margin-top: clamp(2.8rem, 7vw, 5rem); scroll-margin-top: 5.3rem; }
.section-heading { margin-bottom: 1.2rem; }
.section-heading h2, .exhibitor-callout h2 { font-size: clamp(1.65rem, 3.2vw, 2.7rem); font-weight: 750; letter-spacing: -.04em; }
.section-heading p, .room-card p, .explore-card p, .exhibitor-steps p { color: var(--st24-muted); margin-bottom: 0; }
.room-status, .room-card, .explore-card, .exhibitor-steps li { border: 1px solid var(--st24-line); border-radius: var(--st24-radius); background: var(--st24-surface); }
.room-status { padding: 1.3rem 1.5rem; color: var(--st24-muted); }
#room-retry { margin-top: .7rem; }
.room-list, .explore-grid, .exhibitor-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.room-card { padding: 1.25rem 1.5rem; }
.room-card h3, .explore-card h3, .exhibitor-steps h3 { font-size: 1.2rem; font-weight: 700; }
.room-card span { display: inline-block; margin-top: .65rem; font-weight: 700; }
.room-card, .explore-card { color: var(--st24-ink); text-decoration: none; }
.room-card:hover, .explore-card:hover { border-color: var(--st24-link); color: var(--st24-ink); }
.explore-card { overflow: hidden; }
.explore-card img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--st24-deep); }
/* Keep the subject in frame when the home cards use a shared image ratio. */
.home-page .explore-card img { aspect-ratio: 16 / 9; }
.home-photo--history img { object-position: center top; }
.home-photo--howitworks img { object-position: center 60%; }
.home-photo--lake img { object-position: center 56%; }
.home-photo--crib img { object-position: center 48%; }
.home-photo--house img { object-position: center 34%; }
.explore-card div { padding: 1.15rem 1.35rem; }
.exhibitor-callout { background: var(--st24-deep); color: #f2f2f4; border-radius: var(--st24-radius); padding: clamp(1.3rem, 4vw, 2.8rem); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.exhibitor-callout p { color: #ced0d6; margin-bottom: 0; max-width: 52ch; }
.exhibitor-steps { padding-left: 1.6rem; }
.exhibitor-steps li { padding: 1.25rem; margin-right: .25rem; }
.control-page { max-width: 90rem; }
main .card, main .accordion-item, .modal-content { --bs-card-border-color: var(--st24-line); background: var(--st24-surface); }
main .accordion { --bs-accordion-btn-bg: var(--st24-surface); --bs-accordion-active-bg: var(--st24-page); --bs-accordion-active-color: var(--st24-link); }
.st24-page { min-height: 25rem; padding-top: .75rem; }
.page-heading { margin-bottom: clamp(1.5rem, 3.5vw, 2.7rem); padding-block: .8rem 1.25rem; border-bottom: 1px solid var(--st24-line); }
.page-heading h1 { margin-bottom: .6rem; font-size: clamp(2.15rem, 4.5vw, 3.6rem); font-weight: 750; line-height: 1.1; letter-spacing: -.042em; }
.page-heading p { max-width: 76ch; color: var(--st24-muted); margin-bottom: .65rem; }
.page-heading p:last-child { margin-bottom: 0; }
.authors-page .card-img, .technology-page .card-img { border-radius: 0; }
.authors-page .card-body, .technology-page .card-body { padding: clamp(1rem, 2.2vw, 1.75rem); }
.control-page #control_items_area > div + div { margin-top: .65rem; }
.control-page .control-item { min-height: 2.35rem; }
.control-page .control_item_left { width: 60%; }
.control-page .control_item_right { width: 40%; }
.stream-frame { overflow: hidden; border-radius: var(--st24-radius); background: #101114; }
.stream-frame .video-js, .stream-frame iframe { width: 100%; height: 100%; border: 0; }
.stream-frame [hidden] { display: none !important; }
.stream-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .8rem; }
.stream-feedback { min-height: 1.6em; color: var(--st24-muted); }
.authors-page .card { overflow: hidden; }
#footer-sterowanie24 { margin-top: 3.5rem; }
@media (max-width: 575.98px) {
    body { padding-top: 4.8rem; }
    .project-hero { background-image: linear-gradient(0deg, #16171bf5, #17181c60), url('/img/domek.jpg'); background-position: center, 39% 47%; }
    .st24-nav .nav-exhibitor { margin-left: 0; }
}
.project-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(.85rem, 3vw, 2.5rem);
    padding: clamp(1.3rem, 3.8vw, 2.6rem);
    background: var(--st24-surface);
    border: 1px solid var(--st24-line);
    border-radius: var(--st24-radius);
    align-items: center;
}
.project-intro h2 {
    margin: 0 0 .85rem;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.04em;
    text-wrap: balance;
}
.project-intro p { color: var(--st24-muted); margin-bottom: .6rem; }
.project-intro p:last-child { margin-bottom: 0; }
.stats-section + .stats-section, .media-section + .media-section { margin-top: 2.75rem; }
.stats-section > h2, .media-section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.stats-overview, .server-report, .media-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.stats-overview > div {
    padding: 1rem 1.25rem;
    background: var(--st24-surface);
    border: 1px solid var(--st24-line);
    border-top: 3px solid var(--st24-accent);
    border-radius: var(--st24-radius);
}
.stats-overview dt, .device-summary dt { color: var(--st24-muted); font-weight: 500; }
.stats-overview dd { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 750; line-height: 1.3; margin: .25rem 0 0; font-variant-numeric: tabular-nums; }
.stats-note { color: var(--st24-muted); }
.server-report { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.device-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
.device-summary dd { margin: 0; font-weight: 650; }
.traffic-chart:not([hidden]) { display: block; }
.traffic-chart img { display: block; width: 100%; margin-bottom: .35rem; border: 1px solid var(--st24-line); }
#drukarka-termiczna { scroll-margin-top: 5.3rem; }
.media-page .recording-card h3 { margin-top: .25rem; }
.media-page time { color: var(--st24-muted); font-size: .9rem; }
.recording-card span { color: var(--st24-link); font-weight: 650; }
.recording-list-heading { margin-top: 1.65rem; font-size: 1.2rem; }
.recording-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: .55rem; list-style: none; padding: 0; margin-bottom: .8rem; }
.recording-list a { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .5rem; border: 1px solid var(--st24-line); border-radius: var(--st24-radius); background: var(--st24-surface); color: var(--st24-ink); text-decoration: none; }
.recording-list a:hover { border-color: var(--st24-link); }
.recording-list img { width: clamp(4.5rem, 19vw, 7rem); height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--st24-deep); border-radius: 4px; }
.recording-list time { display: block; }
.media-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 1.25rem; align-items: center; padding: 1rem; background: var(--st24-surface); border: 1px solid var(--st24-line); border-radius: var(--st24-radius); }
.media-story img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.media-story h2 { font-size: 1.5rem; }
.media-story p { margin-bottom: .7rem; color: var(--st24-muted); }
.media-player .modal-dialog { max-width: min(calc(100vw - 1rem), 58rem); }
.media-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #101114; margin-bottom: .5rem; }
@media (max-width: 575.98px) { .media-story { grid-template-columns: 1fr; } }
.project-intro figure { margin: 0; }
.project-intro img { display: block; width: 100%; height: auto; border-radius: var(--st24-radius); }
.project-intro figcaption { margin-top: .5rem; font-size: .9rem; }
.timeline-index { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-bottom: 2rem; }
.timeline-index a { display: inline-block; padding: .3rem .6rem; border: 1px solid var(--st24-line); border-radius: var(--st24-radius); background: var(--st24-surface); text-decoration: none; }
.timeline-index a:hover { border-color: var(--st24-link); }
.project-timeline { --timeline-date-width: 10.5rem; list-style: none; margin: 0; padding: 0; }
.project-timeline > li {
    position: relative;
    display: grid;
    grid-template-columns: var(--timeline-date-width) minmax(0, 1fr);
    gap: 1.6rem;
    padding-bottom: 1.3rem;
    scroll-margin-top: 5.3rem;
}
.project-timeline > li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--timeline-date-width);
    border-left: 1px solid var(--st24-line);
}
.project-timeline > li::after {
    content: "";
    position: absolute;
    top: 1.25rem;
    left: calc(var(--timeline-date-width) - 4px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--st24-accent);
}
.project-timeline > li > :is(time, .timeline-date) { align-self: start; color: var(--st24-link); font-weight: 700; padding-top: .92rem; }
.timeline-entry { padding: clamp(1rem, 3vw, 1.45rem); background: var(--st24-surface); border: 1px solid var(--st24-line); border-radius: var(--st24-radius); }
.timeline-entry.has-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 28%); gap: 1.1rem; align-items: center; }
.timeline-entry h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); letter-spacing: -.02em; }
.timeline-entry p { margin: 0; color: var(--st24-muted); max-width: 72ch; }
.timeline-entry img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--st24-deep); border-radius: var(--st24-radius); }
#beginnings .timeline-entry img,
#sterowanie24_project .timeline-entry img,
#english .timeline-entry img,
#kod-2013 .timeline-entry img,
#zaplecze-2024 .timeline-entry img { object-fit: contain; background: var(--st24-page); }
#tajemnicza-przystan .timeline-entry img { object-position: center 56%; }
#dom-mateusza .timeline-entry img { object-position: center 34%; }
#drukarka .timeline-entry img { object-position: center 46%; }
.timeline-action { display: inline-block; margin-top: .65rem; font-weight: 650; }
.history-full { margin-top: 2.7rem; }
.history-full, .history-chapters [id], #wiadomosci-2020, #printer-title { scroll-margin-top: 5.3rem; }
.history-chapter-panel { margin-top: 1rem; padding: clamp(1.05rem, 3vw, 1.8rem); background: var(--st24-surface); border: 1px solid var(--st24-line); border-radius: var(--st24-radius); }
.history-chapter-panel h3 { margin-bottom: .85rem; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.history-chapter { max-width: 62rem; }
.facebook-recordings { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.facebook-recordings .recording-card img { object-fit: contain; }
.works-section + .works-section { margin-top: clamp(2.4rem, 5vw, 4rem); }
.works-section > h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; padding-bottom: .5rem; }
.works-systems { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.works-systems .card-img-top { width: 100%; height: auto; aspect-ratio: 2.6; object-fit: cover; }
.works-systems p { margin: 0; color: var(--st24-muted); }
.works-monitoring { margin-top: 1rem; color: var(--st24-muted); }
@media (max-width: 700px) {
    .project-intro { grid-template-columns: 1fr; }
    .project-timeline > li { --timeline-date-width: .35rem; padding-left: 1.25rem; grid-template-columns: minmax(0, 1fr); gap: .4rem; }
    .project-timeline > li > :is(time, .timeline-date) { padding-top: .2rem; }
    .project-timeline > li::after { top: .65rem; }
    .timeline-entry.has-visual { grid-template-columns: 1fr; }
}
