/* One contact dock for the whole site.
 *
 * Replaces the two stacked floating pills ("WhatsApp" and "Chat with Cravin") that used to
 * sit on top of page content — on the About page they covered the mission and vision cards.
 * A single round button in the corner cannot cover body text, and everything the old pills
 * offered now lives in its panel.
 */
.site-dock { position: fixed; right: 18px; bottom: 18px; z-index: 35; }
.site-dock > summary {
    list-style: none; width: 58px; height: 58px; border-radius: 50%; display: grid;
    place-items: center; gap: 0; background: var(--ink, #20251f); color: #fff;
    cursor: pointer; box-shadow: 0 8px 26px rgba(15, 25, 18, .32);
    border: 2px solid rgba(255, 255, 255, .18); font-size: 22px; line-height: 1;
    transition: transform .16s ease, background .16s ease;
}
.site-dock > summary::-webkit-details-marker { display: none; }
.site-dock > summary:hover { transform: translateY(-2px); }
.site-dock[open] > summary { background: var(--orange, #eb642c); }
.site-dock > summary .site-dock-hint {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}

.site-dock-panel {
    position: absolute; right: 0; bottom: 72px; width: min(340px, calc(100vw - 28px));
    max-height: min(74vh, 560px); overflow: auto; padding: 20px 20px 18px;
    background: var(--surface, #fff); color: var(--ink, #20251f);
    border: 1px solid var(--line, #e2ded2); border-radius: 16px;
    box-shadow: 0 20px 55px rgba(15, 25, 18, .26);
}
.site-dock-panel h2 { font-size: 22px; margin: 0 30px 6px 0; line-height: 1.2; }
.site-dock-panel .site-dock-sub { margin: 0 0 14px; font-size: 12px; line-height: 1.6; opacity: .75; }
.site-dock-close {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; min-height: 34px;
    border-radius: 50%; background: transparent; color: inherit; border: 1px solid var(--line, #e2ded2);
    font-size: 17px; padding: 0;
}
.site-dock-list { display: grid; gap: 8px; margin: 0 0 14px; }
.site-dock-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border: 1px solid var(--line, #e2ded2); border-radius: 10px;
    font-size: 13px; font-weight: 600; text-decoration: none; color: inherit;
    background: var(--surface-soft, #faf9f5);
}
.site-dock-list a:hover { border-color: var(--orange, #eb642c); }
.site-dock-list a small { display: block; font-weight: 400; font-size: 11px; opacity: .7; }
.site-dock-list a.is-primary { background: var(--ink, #20251f); color: var(--paper, #fff); border-color: var(--ink, #20251f); }
.site-dock-list a.is-primary small { opacity: .8; }
.site-dock-list a.is-whatsapp { background: #126d43; color: #fff; border-color: #126d43; }
.site-dock-panel form { margin: 0; }
.site-dock-panel label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.site-dock-panel textarea { margin: 6px 0 9px; font-size: 13px; }
.site-dock-panel button[type=submit] { width: 100%; justify-content: center; font-size: 13px; }
.site-dock-panel .site-dock-note { margin: 12px 0 0; font-size: 10.5px; line-height: 1.6; opacity: .65; }
.site-dock-divider { border: 0; border-top: 1px solid var(--line, #e2ded2); margin: 14px 0; }

/* The old pills: neutralised in case a cached page still renders them. */
.whatsapp-dock, .assistant-dock { display: none !important; }

/* Nothing should hide behind the dock at the very bottom of a page. */
body:not(.admin-page) { padding-bottom: 76px; }

@media (max-width: 720px) {
    .site-dock { right: 12px; bottom: 12px; }
    .site-dock > summary { width: 52px; height: 52px; font-size: 19px; }
    .site-dock-panel { bottom: 64px; padding: 18px 16px 16px; }
    .page-directions { display: none; }
    body:not(.admin-page) { padding-bottom: 70px; }
}
