/* Space and tech page. Colors come from root.css and theme.css. */

.st {
    --st-ink: var(--headerColor, #2b3a32);
    --st-body: var(--bodyTextColor, #3d4d44);
    --st-line: var(--lineColor, #c2d6cc);
    --st-green: var(--secondaryDark, #4a7c65);
    --st-mute: #5a6d62;
    --st-shadow: 0 2px 16px rgba(43, 58, 50, 0.08);
    padding: clamp(7rem, 12vw, 9rem) 0 4rem;
    color: var(--st-body);
}
.st-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; box-sizing: border-box; }

/* Header, centered like the rest of the site */
.st-head { text-align: center; }
.st-h1 { margin: 0 0 0.6rem; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.15; color: var(--st-ink); }
.st-sub { margin: 0 auto 0.6rem; max-width: 40rem; font-size: 1.05rem; line-height: 1.55; }
.st-address { margin: 0 0 1.6rem; font-size: 0.95rem; font-weight: 700; color: var(--st-ink); }

/* Numbers */
.st-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.st-stats div { flex: 1 1 11rem; max-width: 16rem; padding: 1rem; text-align: center; background: #fff; border: 1px solid var(--st-line); border-radius: 12px; }
.st-stats b { display: block; font-size: 1.9rem; line-height: 1.2; color: var(--st-ink); }
.st-stats span { font-size: 0.85rem; color: var(--st-mute); }

.st-h2 { margin: 2.8rem 0 0.3rem; text-align: center; font-size: 1.9rem; color: var(--st-ink); }
.st-hint { margin: 0 0 1.3rem; text-align: center; font-size: 0.95rem; color: var(--st-mute); }

/* Shared card parts */
.st-card { background: #fff; border-radius: 14px; box-shadow: var(--st-shadow); overflow: hidden; }
.st-media { position: relative; }
.st-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: pointer; }
.st-open:focus-visible { outline: 3px solid #e0a82e; outline-offset: -3px; }
.st-badge { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 700; color: #fff; background: rgba(20, 32, 26, 0.55); border-radius: 999px; pointer-events: none; }
.st-body { padding: 0.9rem 1.2rem 1.2rem; }
.st-name { margin: 0 0 0.35rem; font-size: 1.25rem; color: var(--st-ink); }
.st-desc { margin: 0 0 0.7rem; max-width: none; font-size: 0.95rem; line-height: 1.5; }
.st-link { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 700; color: var(--st-green); text-decoration: none; }
.st-link:hover { text-decoration: underline; }

/* Spaces */
.st-spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.1rem; align-items: start; }
.st-spaces .st-media { height: 13rem; }
.st-tags i { display: inline-block; margin: 0 0.4rem 0.3rem 0; padding: 0.15rem 0.65rem; font-size: 0.78rem; font-style: normal; font-weight: 700; color: #2f6b4d; background: #e0f1e8; border-radius: 999px; }

/* Computing */
.st-computing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.st-row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); border-top: 4px solid #e0a82e; min-height: 11.5rem; }
.st-row .st-media { min-height: 100%; }
.st-row .st-media img { position: absolute; inset: 0; }
.st-big { display: flex; align-items: center; justify-content: center; padding: 0.5rem; text-align: center; background: #e7f1ec; }
.st-big b { font-size: 1.8rem; line-height: 1.15; color: var(--st-green); }
.st-specs { margin: 0; padding: 0; list-style: none; }
.st-specs li { padding: 0.4rem 0; border-top: 1px solid #e6eee9; font-size: 0.9rem; font-weight: 700; color: var(--st-ink); }

.st-note { margin: 1.8rem 0 0; text-align: center; font-size: 1rem; }
.st-note + .st-note { margin-top: 0.8rem; }
.st-note a { color: var(--st-green); font-weight: 700; text-decoration: none; }
.st-note a:hover { text-decoration: underline; }

/* Photo viewer */
.st-view { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 4rem 1.5rem; box-sizing: border-box; color: #fff; background: #16211b; }
.st-view[hidden] { display: none; }
.st-stage { flex: 1; min-height: 0; width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.st-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.st-info { flex: none; margin-top: 1rem; text-align: center; }
.st-vtitle { margin: 0; font-size: 1.3rem; color: #fff; }
.st-vcount { margin: 0.3rem 0 0; font-size: 0.85rem; opacity: 0.7; }
.st-x, .st-arrow { position: absolute; color: #fff; background: rgba(255, 255, 255, 0.12); border: 0; border-radius: 50%; cursor: pointer; line-height: 1; }
.st-x:hover, .st-arrow:hover { background: rgba(255, 255, 255, 0.25); }
.st-x { top: 1rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; font-size: 1.7rem; }
.st-arrow { top: 50%; width: 3rem; height: 3rem; margin-top: -2rem; font-size: 2rem; padding-bottom: 0.2rem; }
.st-prev { left: 0.8rem; }
.st-next { right: 0.8rem; }
.st-view.is-one .st-arrow { display: none; }

@media only screen and (max-width: 56rem) {
    .st-computing { grid-template-columns: 1fr; }
}
@media only screen and (max-width: 36rem) {
    .st-row { grid-template-columns: 1fr; }
    .st-row .st-media { height: 11rem; min-height: 0; }
    .st-big { height: 6rem; min-height: 0; }
    .st-view { padding: 3.5rem 0.75rem 1rem; }
    .st-arrow { top: auto; bottom: 1rem; margin-top: 0; width: 2.5rem; height: 2.5rem; background: rgba(255, 255, 255, 0.18); }
    .st-prev { left: 0.75rem; }
    .st-next { right: 0.75rem; }
}
