/* The site's tile navigation (js/nav.js) for the pages that do not load css/style.css: the Spiritual Spaces and the Times of Gathering.
   Compact tiles (a picture strip with the label) so the altar and the calendar still fit on the screen; the phone icon bar is the
   same as everywhere else. Colours come from the page's own palette (--gold / --gold2), as css/style.css does with --accent. */
.site-nav { --accent: var(--gold, #e8bf5f); --accent-hi: var(--gold2, #f7dc95); display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px;
    margin: 0; padding: 6px 10px; background: var(--navbg, #120e1a); border-bottom: 1px solid var(--line, #2e2640); position: relative; z-index: 2; }
.site-nav .nav-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 62px; margin: 0; padding: 0 6px 7px;
    border-radius: 10px; overflow: hidden; cursor: pointer; background: #000 var(--img) center / cover no-repeat; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); color: var(--accent); font: inherit; transition: transform 0.2s ease, border-color 0.2s ease; }
.site-nav .nav-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.88) 100%); }
.site-nav .nav-tile .nav-icon, .site-nav .nav-tile .nav-sub, .site-nav .nav-tile .nav-label .short { display: none; }
.site-nav .nav-tile .nav-label { position: relative; z-index: 1; line-height: 1.1; text-align: center; font: 600 12px/1.1 Georgia, serif; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent); text-shadow: 0 2px 6px #000, 0 0 2px #000; }
.site-nav .nav-tile:hover, .site-nav .nav-tile:focus-visible { transform: translateY(-2px); border-color: var(--accent); }
.site-nav .nav-tile.active { border-color: var(--accent-hi); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent); }
.site-nav .nav-tile.active .nav-label { color: var(--accent-hi); }
:root { --tiles: 76px; }   /* the tile strip's height, taken off the ritual and calendar layouts */
@media (max-width: 720px) {
    :root { --tiles: 0px; }
    body.has-nav { padding-bottom: calc(var(--navfoot, 58px) + var(--mubar, 0px)); }
    .site-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(0, 0, 0, 0.93); backdrop-filter: blur(12px); border-top: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-bottom: 0; }
    .site-nav .nav-tile { height: auto; justify-content: flex-start; gap: 3px; padding: 3px 0 2px; background: none; border: none; box-shadow: none; }
    .site-nav .nav-tile::before { display: none; }
    .site-nav .nav-tile .nav-icon { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--img) center / cover no-repeat;
        border: 1.5px solid color-mix(in srgb, var(--accent) 65%, transparent); }
    .site-nav .nav-tile .nav-label { text-transform: none; font: 10.5px/1.15 Georgia, serif; letter-spacing: 0.02em; color: #d8d0bc; }
    .site-nav .nav-tile .nav-label .long { display: none; } .site-nav .nav-tile .nav-label .short { display: inline; }
    .site-nav .nav-tile.active .nav-icon { border-color: var(--accent-hi); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
    .site-nav .nav-tile:hover { transform: none; }
}
@media (max-width: 1040px) and (min-width: 721px) { .site-nav .nav-tile .nav-label { font-size: 10.5px; } }
