/*
 * Casa Serapias: site theme on top of Bootstrap 5.
 * Colours come from the materials around the house: whitewashed walls, gneiss stone,
 * the lake, and the emerald of the Verzasca (used only to mean "free").
 */

@font-face {
    font-family: "Piazzolla";
    src: url("/static/font/piazzolla-latin-opsz-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --kalk: #F5F6F3;        /* whitewash, page background */
    --kalk-deep: #E9ECE7;   /* recessed surfaces */
    --gneis: #59625F;       /* stone grey, secondary text and rules */
    --gneis-line: #CDD3CE;  /* hairlines */
    --ink: #1B2528;         /* text */
    --lago: #1C5876;        /* links, primary actions */
    --lago-deep: #133F55;
    --verzasca: #2F8F78;    /* free dates */
    --verzasca-tint: #DCEFE7;
    --verzasca-ink: #0F4A3B;

    --bs-body-font-family: "Piazzolla", Georgia, serif;
    --bs-body-bg: var(--kalk);
    --bs-body-color: var(--ink);
    --bs-secondary-color: var(--gneis);
    --bs-border-color: var(--gneis-line);
    --bs-link-color-rgb: 28, 88, 118;
    --bs-link-hover-color-rgb: 19, 63, 85;
    --bs-primary-rgb: 28, 88, 118;
    --bs-focus-ring-color: rgba(28, 88, 118, .35);
}

body {
    background: var(--kalk);
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-optical-sizing: auto;
    font-variant-numeric: lining-nums;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
}

a { text-underline-offset: .18em; }

:focus-visible {
    outline: 2px solid var(--lago);
    outline-offset: 2px;
}

.btn-primary {
    --bs-btn-bg: var(--lago);
    --bs-btn-border-color: var(--lago);
    --bs-btn-hover-bg: var(--lago-deep);
    --bs-btn-hover-border-color: var(--lago-deep);
    --bs-btn-active-bg: var(--lago-deep);
    --bs-btn-active-border-color: var(--lago-deep);
    --bs-btn-disabled-bg: var(--lago);
    --bs-btn-disabled-border-color: var(--lago);
}

.btn-outline-primary {
    --bs-btn-color: var(--lago);
    --bs-btn-border-color: var(--lago);
    --bs-btn-hover-bg: var(--lago);
    --bs-btn-hover-border-color: var(--lago);
    --bs-btn-active-bg: var(--lago-deep);
    --bs-btn-active-border-color: var(--lago-deep);
}

.btn { font-weight: 500; }

.pagination {
    --bs-pagination-color: var(--lago);
    --bs-pagination-bg: transparent;
    --bs-pagination-hover-color: var(--lago-deep);
    --bs-pagination-hover-bg: var(--kalk-deep);
    --bs-pagination-active-bg: var(--lago);
    --bs-pagination-active-border-color: var(--lago);
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
}

.card {
    --bs-card-bg: #fff;
    --bs-card-cap-bg: transparent;
    --bs-card-border-color: var(--gneis-line);
}

/* ---------- shell ---------- */

.site-nav {
    background: var(--kalk);
    border-bottom: 1px solid var(--gneis-line);
}

.site-nav .navbar-brand {
    font-weight: 650;
    font-size: 1.35rem;
    letter-spacing: -.01em;
    color: var(--ink);
}

.site-nav .nav-link {
    color: var(--gneis);
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
    color: var(--ink);
}

.site-nav .nav-link.active {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--lago);
    text-decoration-thickness: 2px;
    text-underline-offset: .45em;
}

.site-footer {
    margin-top: 4rem;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--gneis-line);
    color: var(--gneis);
    font-size: .9rem;
}

/* Reading column for public pages. */
.page {
    max-width: 72rem;
    margin-inline: auto;
}

.measure { max-width: 40rem; }

/* ---------- panorama (Panoramatafel) ---------- */

.pano {
    margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    background: var(--kalk-deep);
}

.pano-inner {
    position: relative;
    width: max(100%, 62rem);
}

.pano-inner img {
    display: block;
    width: 100%;
    height: auto;
}

/* A label in the sky with a thin line down to what it names. */
.pano-label {
    position: absolute;
    top: 9%;   /* bottom is set per label: the place it points at */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.pano-label span {
    padding: .1rem .55rem;
    background: rgba(245, 246, 243, .92);
    color: var(--ink);
    font-size: .85rem;
    font-weight: 550;
    border-radius: 2px;
    white-space: nowrap;
}

.pano-label::after {
    content: "";
    flex: 1;
    width: 1px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 0 2px rgba(0, 0, 0, .35);
}

.pano-hint {
    margin: .4rem 0 0;
    font-size: .85rem;
    color: var(--gneis);
}

@media (min-width: 62rem) {
    .pano-hint { display: none; }
}

/* ---------- welcome ---------- */

.intro {
    display: grid;
    gap: 2rem 4rem;
    padding: 2.5rem 0 1rem;
}

@media (min-width: 62rem) {
    .intro { grid-template-columns: minmax(0, 1fr) 18rem; }
}

.intro h1 {
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -.025em;
    margin-bottom: .35rem;
}

.intro .lede {
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--gneis);
    margin-bottom: 1.5rem;
}

.intro .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1.75rem 0 0;
}

/* Key facts: stone-grey rule on the left, like an engraved plaque. */
.facts {
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--gneis);
    align-self: start;
}

.facts dt {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gneis);
}

.facts dd {
    margin-bottom: .9rem;
    font-weight: 550;
}

.facts dd:last-child { margin-bottom: 0; }

.section {
    padding-top: 3.5rem;
}

.section > h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    letter-spacing: -.015em;
    margin-bottom: .75rem;
}

.apartments {
    display: grid;
    gap: 3rem 4rem;
    margin-top: 2rem;
}

@media (min-width: 62rem) {
    .apartments { grid-template-columns: 1fr 1fr; }
}

.apartment h3 {
    font-size: 1.6rem;
    margin-bottom: .15rem;
}

.apartment .capacity {
    color: var(--gneis);
    margin-bottom: 1.25rem;
}

.apartment .plan {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--gneis-line);
    padding: .75rem;
    margin-bottom: 1.25rem;
}

.apartment ul {
    padding-left: 1.1rem;
    margin-bottom: 1.5rem;
}

.apartment li { margin-bottom: .35rem; }

.apartment li::marker { color: var(--gneis); }

.rates {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums lining-nums;
}

.rates th,
.rates td {
    padding: .45rem 0;
    border-top: 1px solid var(--gneis-line);
    vertical-align: baseline;
}

.rates th { font-weight: 400; }

.rates td {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.rates tr:last-child th,
.rates tr:last-child td {
    border-bottom: 1px solid var(--gneis-line);
}

.notes {
    color: var(--gneis);
    font-size: .95rem;
    margin-top: 1.5rem;
}

.notes p { margin-bottom: .4rem; }

.views {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 48rem) {
    .views { grid-template-columns: 2fr 1fr 1fr; }
    .views img { aspect-ratio: auto; height: 17rem; }
}

.views figure { margin: 0; }

.views img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.views figcaption {
    margin-top: .45rem;
    font-size: .9rem;
    color: var(--gneis);
}

/* ---------- Bilder: carousel, caption under the photo ---------- */

/* Photos are 1000 × 750; don't upscale them, and keep photo, caption and dots
   on one screen (~20rem for nav, heading and caption). */
.gallery {
    max-width: max(20rem, min(1000px, calc((100svh - 20rem) * 4 / 3)));
    margin-top: 1.5rem;
}

.gallery figure { margin: 0; }

.gallery-frame {
    position: relative;
    background: var(--kalk-deep);
}

.gallery-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery .carousel-control-prev,
.gallery .carousel-control-next {
    width: 12%;
    opacity: .85;
}

.gallery .carousel-control-prev-icon,
.gallery .carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: rgba(27, 37, 40, .45);
    background-size: 1.1rem;
}

.gallery figcaption {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    min-height: 3rem;
    padding-top: .6rem;
    color: var(--gneis);
}

.gallery-count {
    flex: none;
    min-width: 3.2rem;
    font-variant-numeric: tabular-nums;
    font-size: .9rem;
}

/* Bootstrap overlays the dots on the photo; put them below the caption instead. */
.gallery .gallery-dots {
    position: static;
    justify-content: flex-start;
    margin: .25rem 0 0;
    gap: .35rem;
}

.gallery .gallery-dots [data-bs-target] {
    width: .7rem;
    height: .7rem;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--gneis-line);
    opacity: 1;
}

.gallery .gallery-dots .active { background-color: var(--lago); }

/* ---------- Lageplan ---------- */

/* Fills the page column, but leaves room for nav and heading on one screen. */
.map-frame {
    margin-top: 1.5rem;
    height: clamp(20rem, calc(100svh - 18rem), 40rem);
    background: var(--kalk-deep);
    border: 1px solid var(--gneis-line);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.columns {
    display: grid;
    gap: 0 3rem;
}

@media (min-width: 62rem) {
    .columns { grid-template-columns: 1fr 1fr; }
}

/* ---------- public calendar ---------- */

.page-head {
    padding: 2.5rem 0 .5rem;
}

.page-head h1 {
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.page-head p {
    color: var(--gneis);
    font-size: 1.15rem;
    margin-bottom: 0;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .95rem;
}

.legend li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.swatch {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 1.6rem;
    font-size: .8rem;
    border-radius: 3px;
}

.swatch-free {
    background: var(--verzasca-tint);
    color: var(--verzasca-ink);
    font-weight: 650;
    box-shadow: inset 0 -2px 0 var(--verzasca);
}

.swatch-past { color: #B4BBB8; }

.swatch-taken {
    color: var(--gneis);
    text-decoration: line-through;
}

.cal .card {
    border: 0;
    border-top: 2px solid var(--ink);
    border-radius: 0;
    background: transparent;
    height: 100%;
}

.cal .card-header {
    padding: .6rem 0 .3rem;
    border: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.cal .card-body { padding: 0; }

.cal table {
    margin: 0;
    font-variant-numeric: tabular-nums lining-nums;
    border-collapse: separate;
    border-spacing: 0 3px;
    --bs-table-bg: transparent;
}

.cal thead td {
    font-size: .75rem;
    padding-bottom: .1rem;
}

.cal tbody td {
    padding: .3rem 0;
    font-size: .9rem;
}

.cal td.table-success {
    --bs-table-bg: var(--verzasca-tint);
    --bs-table-color: var(--verzasca-ink);
    --bs-table-bg-state: var(--verzasca-tint);
    background: var(--verzasca-tint);
    color: var(--verzasca-ink);
    font-weight: 650;
    box-shadow: inset 0 -2px 0 var(--verzasca);
}

.cal td.cal-past {
    color: #B4BBB8;
}

.cal td.text-decoration-line-through {
    color: #8A928F !important;
}

.cal-cta {
    margin-top: 2.5rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--gneis-line);
}

/* ---------- contact ---------- */

.contact {
    display: grid;
    gap: 2.5rem 4rem;
    margin-top: 1.5rem;
}

@media (min-width: 62rem) {
    .contact { grid-template-columns: minmax(0, 1fr) 18rem; }
}

.contact form { max-width: 40rem; }

.contact .form-label {
    font-weight: 550;
    margin-bottom: .3rem;
}

.contact .form-control {
    background: #fff;
    border-color: var(--gneis-line);
    padding: .6rem .8rem;
    font-size: 1.0625rem;
}

.contact .form-control:focus {
    border-color: var(--lago);
    box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
}

.contact-owner {
    align-self: start;
    padding-left: 1.25rem;
    border-left: 3px solid var(--gneis);
    line-height: 1.7;
}

.contact-owner address {
    margin: 0;
    font-style: normal;
}

.contact-owner h2 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

altcha-widget {
    --altcha-color-base: #fff;
    --altcha-color-border: var(--gneis-line);
    --altcha-color-text: var(--ink);
    --altcha-border-radius: 4px;
    --altcha-max-width: 100%;
}

.cal td.rounded-start { border-radius: 3px 0 0 3px !important; }
.cal td.rounded-end { border-radius: 0 3px 3px 0 !important; }
.cal td.rounded-start.rounded-end { border-radius: 3px !important; }

/* =========================================================
 * Pages behind the login. Same materials, denser: a working tool.
 * ========================================================= */

:root {
    --lago-tint: #DCE9F0;
    --gneis-tint: #E4E7E3;
    --amber: #8A5A00;
    --amber-tint: #FBEFD5;
}

.page-wide { max-width: 90rem; margin-inline: auto; }
/* Same left edge as the wide admin pages, but a short measure for forms and notes. */
.page-narrow { max-width: 90rem; margin-inline: auto; }
.page-narrow > * { max-width: 44rem; }

.page-login {
    max-width: 24rem;
    margin: 4rem auto 0;
}

.page-login h1 {
    font-size: 2.2rem;
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}

/* Second bar under the site navigation, only when logged in. */
.admin-bar {
    background: var(--ink);
    color: #C9D1CE;
    font-size: .95rem;
}

.admin-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-links {
    display: flex;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.admin-link {
    position: relative; /* keeps visually-hidden text inside the scrolling bar */
    display: block;
    padding: .5rem .7rem;
    color: #C9D1CE;
    text-decoration: none;
    white-space: nowrap;
}

.admin-link:hover,
.admin-link:focus-visible { color: #fff; }

.admin-link.active {
    color: #fff;
    box-shadow: inset 0 -3px 0 #7FB3CE;
}

.admin-bar :focus-visible { outline-color: #7FB3CE; }

.admin-user {
    display: flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
}

.admin-user span { color: #8F9A96; }

@media (max-width: 575.98px) {
    .admin-user span { display: none; }
    /* Phones: one row that scrolls sideways, so the sticky header stays short.
       The fade at the right edge hints that more links follow. */
    .admin-bar-inner { gap: .5rem; }
    .admin-links {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 1.5rem), transparent);
    }
    .admin-link { padding: .45rem .55rem; }
}

.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 2rem 0 1.25rem;
}

.admin-head h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -.02em;
    margin-bottom: .2rem;
}

.admin-head p {
    color: var(--gneis);
    margin: 0;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.admin-actions .btn-link {
    --bs-btn-color: var(--lago);
    --bs-btn-hover-color: var(--lago-deep);
    padding-inline: 0;
}

/* Year navigation sits left on admin pages, under the heading. */
.page-wide .pagination,
.page-narrow .pagination { justify-content: flex-start !important; }

/* ---------- reservations overview ---------- */

@media (min-width: 80rem) {
    .admin-months {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
    }
}

.admin-month {
    display: grid;
    gap: 1rem 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--gneis-line);
}

@media (min-width: 48rem) {
    .admin-month { grid-template-columns: 17rem minmax(0, 1fr); }
}

.admin-month-cal .card {
    border: 0;
    background: transparent;
}

.admin-month-cal .card-header {
    padding: 0 0 .4rem;
    border: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-month-cal .card-body { padding: 0; }

.admin-month-cal table {
    margin: 0;
    font-variant-numeric: tabular-nums lining-nums;
    --bs-table-bg: transparent;
}

.admin-month-cal thead td { font-size: .75rem; }

.admin-month-cal tbody td { padding: 0; }

.admin-month-cal tbody a {
    display: block;
    padding: .28rem 0;
    color: var(--ink);
    text-decoration: none;
    border-radius: 3px;
}

.admin-month-cal tbody a:hover { background: var(--kalk-deep); }

.admin-month-cal td.table-primary,
.admin-month-cal td.table-secondary {
    --bs-table-bg: transparent;
    --bs-table-bg-state: transparent;
}

.admin-month-cal td.table-primary a {
    background: var(--lago-tint);
    color: var(--lago-deep);
    font-weight: 650;
}

.admin-month-cal td.table-secondary a {
    background: #D9DDE9;
    color: #2E3550;
    font-weight: 650;
}

.admin-month-cal td.table-primary a:hover,
.admin-month-cal td.table-secondary a:hover { filter: brightness(.94); }

.admin-month-cal td.rounded-start a { border-radius: 3px 0 0 3px; }
.admin-month-cal td.rounded-end a { border-radius: 0 3px 3px 0; }
.admin-month-cal td:not(.rounded-start):not(.rounded-end).table-primary a,
.admin-month-cal td:not(.rounded-start):not(.rounded-end).table-secondary a { border-radius: 0; }

.admin-month-empty {
    color: var(--gneis);
    margin: 0;
    align-self: center;
}

.reservation-list {
    list-style: none;
    margin: 0;
    padding: 0;
    align-self: start;
}

.reservation-list li + li { border-top: 1px solid var(--gneis-line); }

.reservation-list a {
    display: grid;
    grid-template-columns: .5rem minmax(0, 1fr) auto;
    column-gap: .9rem;
    padding: .65rem .5rem;
    color: var(--ink);
    text-decoration: none;
}

.reservation-list a:hover { background: #fff; }

.reservation-swatch {
    grid-row: 1 / span 3;
    border-radius: 2px;
}

.swatch-a { background: var(--lago); }
.swatch-b { background: #4E5A86; }

.reservation-name {
    font-weight: 600;
    grid-column: 2;
}

.reservation-meta {
    grid-column: 2;
    color: var(--gneis);
    font-size: .92rem;
}

.reservation-rent {
    grid-column: 3;
    grid-row: 1;
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
}

/* ---------- detail pages ---------- */

.admin-split {
    display: grid;
    gap: 2rem 3rem;
}

.admin-split > * { min-width: 0; } /* lets wide tables scroll instead of widening the page */

@media (min-width: 62rem) {
    .admin-split { grid-template-columns: minmax(0, 1fr) 24rem; }
    .admin-split-aside-first { grid-template-columns: 24rem minmax(0, 1fr); }
}

.admin-aside {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.admin-panel {
    background: #fff;
    border: 1px solid var(--gneis-line);
    border-radius: 4px;
    padding: 1.25rem 1.4rem;
}

.admin-panel h2 {
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

.admin-form { max-width: 40rem; }

.admin-panel .admin-form { max-width: none; }

.admin-form .form-control,
.admin-form .form-select {
    background-color: #fff;
    border-color: var(--gneis-line);
}

.admin-form .form-label { font-weight: 550; margin-bottom: .25rem; }

.admin-form fieldset + fieldset { margin-top: 1rem; }

.admin-form legend {
    font-size: 1rem;
    font-weight: 650;
    padding-top: .75rem;
    margin-bottom: .6rem;
    border-top: 1px solid var(--gneis-line);
}

.admin-form fieldset:first-of-type legend { border-top: 0; padding-top: 0; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .5rem 0;
}

.panel-note {
    color: var(--gneis);
    font-size: .92rem;
    margin: .75rem 0 0;
}

.details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .35rem 1.25rem;
    margin-bottom: 1rem;
}

.details dt { font-weight: 400; color: var(--gneis); }
.details dd { margin: 0; }

.calc {
    width: 100%;
    font-variant-numeric: tabular-nums lining-nums;
}

.calc th { font-weight: 400; padding: .3rem 0; }
.calc td { text-align: right; padding: .3rem 0; white-space: nowrap; }

.calc tfoot th,
.calc tfoot td {
    border-top: 2px solid var(--ink);
    font-weight: 650;
    padding-top: .5rem;
}

.calc-note {
    margin: .75rem 0 0;
    padding: .5rem .7rem;
    background: var(--amber-tint);
    color: var(--amber);
    font-size: .92rem;
    border-radius: 3px;
}

/* Contract steps: a real sequence, so numbered. */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.1rem 2.4rem;
    color: var(--gneis);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--gneis-line);
    font-size: .85rem;
    font-weight: 650;
    background: #fff;
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: .78rem;
    top: 1.75rem;
    bottom: .15rem;
    width: 1.5px;
    background: var(--gneis-line);
}

.steps li strong { display: block; color: var(--gneis); }
.steps li p { margin: .15rem 0 .4rem; font-size: .95rem; }

.steps li.done::before {
    content: "✓";
    background: var(--verzasca-tint);
    border-color: var(--verzasca);
    color: var(--verzasca-ink);
}

.steps li.current { color: var(--ink); }
.steps li.current strong { color: var(--ink); }

.steps li.current::before {
    background: var(--lago);
    border-color: var(--lago);
    color: #fff;
}

.status {
    display: inline-block;
    padding: .12rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 550;
    white-space: nowrap;
}

.status-none { background: var(--gneis-tint); color: var(--gneis); }
.status-waiting { background: var(--lago-tint); color: var(--lago-deep); }
.status-check { background: var(--amber-tint); color: var(--amber); }
.status-done { background: var(--verzasca-tint); color: var(--verzasca-ink); }

.status-link { text-decoration: none; }
.status-link:hover .status { filter: brightness(.95); text-decoration: underline; }

/* ---------- tables ---------- */

.admin-table {
    --bs-table-bg: transparent;
    font-variant-numeric: tabular-nums lining-nums;
    margin-bottom: .5rem;
}

.admin-table thead th {
    font-size: .85rem;
    font-weight: 550;
    color: var(--gneis);
    border-bottom: 2px solid var(--ink);
    white-space: nowrap;
    vertical-align: bottom;
}

.admin-table td,
.admin-table th { padding: .55rem .6rem; vertical-align: middle; }

.admin-table tbody tr:hover { --bs-table-bg: #fff; }

.admin-table tfoot th,
.admin-table tfoot td {
    border-top: 2px solid var(--ink);
    border-bottom: 0;
    font-weight: 650;
}

.admin-table .num { text-align: right; }
.nowrap { white-space: nowrap; }

.admin-table tr.row-warn { --bs-table-bg: var(--amber-tint); }

.ical-preview {
    margin-top: .75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--gneis-line);
    border-radius: 4px;
    font-size: .8rem;
    max-height: 28rem;
}

details summary { cursor: pointer; color: var(--lago); }

/* Contract text (shared with the guests' page): quieter cards. */
.card-header {
    font-weight: 600;
}

/* Keep visually-hidden (absolutely positioned) text inside scrolling containers. */
.table-responsive { position: relative; }
