/* ==========================================================================
   AAGH CONCIERGE DOCK -- the static sites' copy. Canonical source:
   AAGH_CONCIERGE/static-dock/dock.css. Do NOT edit a site's copy by hand:
   TOOLS/chat/install-dock.py rewrites it, and only the token block just
   below differs from site to site.

   It sits ON TOP of the site's own concierge styling (chat.css / concierge.css)
   and loads after it. It changes nothing about the contact sheet. It adds:
     - the section readout and its hover list, in place of the plain label
     - the scroll ring on the launcher
     - the colour switch (light type over dark ground, dark over light) that
       takes the place of a plate behind the label
     - the "step aside" fade for the page's own controls
   Behaviour: dock.js. The dock's position is written by dock.js as an inline
   `bottom` (and removed again at rest), so the site's own `bottom` -- which
   changes with the breakpoint -- is what applies when nothing is lifting it.
   ========================================================================== */

/*CDOCK_TOKENS*/
.cdock {
    --cdock-accent: #0b7a6c;
    --cdock-accent-hi: #82ebdc;
    --cdock-accent-rgb: 130, 235, 220;
    --cdock-ink: #08060f;
    --cdock-ink-hi: #f3ede4;
    --cdock-ink-hi-rgb: 243,237,228;
    --cdock-panel-rgb: 8, 6, 15;
    --cdock-halo-rgb: 255, 255, 255;
}
/*END_CDOCK_TOKENS*/

.cdock-launch { position: relative; }

/* ---- the label: a readout that is also the list's button -------------------
   NO PLATE: no background, no border, no blur. The TYPE does the plate's job:
   dock.js reads what is behind the label and sets .cdock-dark, and the rules
   below switch the colour, with a faint halo of the opposite tone for the
   moment a boundary passes through it. The padding stays: it is the hover
   target that opens the list. */
.cdock .cdock-label {
    position: relative;
    pointer-events: auto;
    white-space: nowrap;
    color: var(--cdock-ink);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.cdock .cdock-plain {
    pointer-events: none;
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.2;
    text-shadow: 0 0 9px rgba(var(--cdock-halo-rgb), 0.85);
}
.cdock .cdock-index { display: block; }

.cdock .cdock-readout {
    display: inline-flex; align-items: baseline; gap: 0.55rem;
    margin: 0; padding: 0.5rem 0.7rem 0.5rem 0.8rem;
    font: inherit; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.2;
    color: inherit; cursor: pointer;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    -webkit-appearance: none; appearance: none;
    text-shadow: 0 0 9px rgba(var(--cdock-halo-rgb), 0.85);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.cdock .cdock-readout:hover,
.cdock .cdock-readout[aria-expanded="true"] { color: var(--cdock-accent); }
.cdock .cdock-num { font-weight: 700; color: var(--cdock-accent); font-variant-numeric: tabular-nums; white-space: pre; }
.cdock .cdock-name { font-weight: 700; }
.cdock .cdock-readout:focus-visible { outline: 2px solid var(--cdock-accent); outline-offset: 4px; border-radius: 2px; }

/* over a dark ground: light type, the accent lifted */
.cdock.cdock-dark .cdock-label { color: rgba(var(--cdock-ink-hi-rgb), 0.92); }
.cdock.cdock-dark .cdock-readout,
.cdock.cdock-dark .cdock-plain { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.cdock.cdock-dark .cdock-num,
.cdock.cdock-dark .cdock-readout:hover,
.cdock.cdock-dark .cdock-readout[aria-expanded="true"] { color: var(--cdock-accent-hi); }
.cdock.cdock-dark .cdock-readout:focus-visible { outline-color: var(--cdock-accent-hi); }

/* ---- no connector: the readout and the launcher are NOT joined by a line (owner 2026-10-11: "remove the dash
   line from between the AAGH label and the concierge btn"). It was a 1px hairline hung off the label. */

/* ---- the list: a small glass sheet above the readout, LEFT-aligned so the 01/02/03 numerals line up in a column.
   It hangs from the readout's edge nearest the button -- that is where the dock is. */
.cdock .cdock-list {
    position: absolute; right: 0; bottom: calc(100% + 0.5rem);
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
    min-width: 100%; max-width: calc(100vw - 2rem);
    padding: 0.6rem 0.8rem 0.6rem 0.9rem;
    background: rgba(var(--cdock-panel-rgb), 0.9);
    border: 1px solid rgba(var(--cdock-ink-hi-rgb), 0.13);
    border-radius: 4px;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
    text-align: left;
}
.cdock.cdock-lbl-right .cdock-list { right: auto; left: 0; }
/* the list opens on hover (dock.js), so the pointer has to be able to travel from the readout up onto it: an
   invisible strip across the gap keeps it inside the list's own box, so nothing between the two closes it */
.cdock .cdock-list::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 0.75rem; }
.cdock .cdock-index.is-open .cdock-list {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.cdock .cdock-item {
    display: inline-flex; align-items: baseline; gap: 0.55rem;
    padding: 0.15rem 0;
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.2;
    white-space: nowrap; text-decoration: none;
    color: rgba(var(--cdock-ink-hi-rgb), 0.72);
    transition: color 0.3s ease;
}
/* NO DASH before the active row: the current section is marked by its accent colour alone, and every row starts
   at the sheet's left padding, so the numerals share one x */
.cdock .cdock-item-num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cdock-accent-hi); }
.cdock .cdock-item-name { font-weight: 700; }
.cdock .cdock-item:hover,
.cdock .cdock-item:focus-visible,
.cdock .cdock-item.is-active { color: var(--cdock-accent-hi); }
.cdock .cdock-item:focus-visible { outline: 2px solid var(--cdock-accent-hi); outline-offset: 3px; border-radius: 2px; }

/* ---- the scroll ring: the page's progress, drawn just inside the launcher's edge ---- */
.cdock .cdock-ring {
    position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
    fill: none !important; transform: rotate(-90deg); pointer-events: none; opacity: 1;
    transition: opacity 0.3s ease;
}
.cdock .cdock-ring circle { fill: none; stroke-width: 1.5; }
.cdock .cdock-ring circle:first-child { stroke: rgba(var(--cdock-accent-rgb), 0.16); }
.cdock .cdock-ring-bar {
    stroke: var(--cdock-accent-hi); stroke-linecap: round;
    stroke-dasharray: 157.08; stroke-dashoffset: 157.08;
    transition: stroke-dashoffset 0.25s ease-out;
}
.cdock.is-open .cdock-ring { opacity: 0; }

/* ---- STEPPING ASIDE for the page's own controls (dock.js adds .cdock-aside). Never while the sheet is open. ---- */
.cdock.cdock-aside:not(.is-open) {
    opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* the readout stays on a phone: it is the way around the page there */
@media (max-width: 640px) {
    .cdock .cdock-label { display: block; }
    .cdock .cdock-plain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cdock .cdock-list { transition: none; }
    .cdock .cdock-ring-bar { transition: none; }
}
