/*   = = =   Island Dock : the floating pill of section links at the bottom centre   = = =   */

/* - - - LOADED LAST, as Nox Cella's dock sheet is. Its pill : the panel colour at 82% over a 20px blur, ringed in the
   accent at 28% (with the glass on it is a crystal capsule instead, GlassPanels-Styling.css), round buttons of a 22px
   mark, the one on screen lit by an inset ring and a tint (`is-active`, Portfolio-Script.js). On a wide screen each
   mark carries its word ; on a narrow one the mark alone, its word in its title.

   EVERY MARK IS A CIRCLE, at any size (2026-10-21, the owner's word : "the outline which appears around them is not a
   perfect circle. Fix that") : a button as tall as it is wide (`aspect-ratio`), so its lit ring is round. The island
   is as wide as its marks (`max-content`) up to the screen less 8px a side, and where they do not fit, every mark
   shrinks alike, staying round, its glyph a little smaller with it (never more than 56% of the mark). Until that day
   an island carrying the tool kept its marks' height and narrowed them by 2px a side on a phone : 40 by 44, an oval
   ring. With Home first (index.php), a visitor's island holds eight marks, 384px on a phone (the full 44px each),
   and the owner's devices nine and a rule, each mark 39px on the owner's phone (412 wide) ; while a PDF is up the
   CV's mark makes them nine and ten (2026-10-23), every one still round at 411. - - - */
.nk-island
{
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 1500;
    width: max-content;
    max-width: calc(100vw - 16px);
}
.island-shell
{
    --nk-island-gap: 4px;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--nk-island-gap);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(var(--panel-rgb), 0.82);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--accent-rgb), 0.28);
}
.island-btn
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 1 44px;
    width: 44px;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.island-btn svg
{
    width: min(22px, 56%);
    height: auto;
    aspect-ratio: 1;
    display: block;
    flex-shrink: 0;
}
.island-btn:active
{
    transform: scale(0.9);
}

/* - - - YOU ARE HERE. A PRESS LIGHTS ITS MARK AT ONCE (2026-10-22, the owner's word : "Pressing on a button should
   make the circular outline fade out and fade in on that particular icon, rather than go step by step on each
   button") : the ring fades out of the lit mark as it fades into the pressed one, over the transition above, and the
   marks between them never light : Portfolio-Script.js holds the section-on-screen lighting while the page glides
   there. Till then the page lit each section it passed, and the ring stepped across the island. - - - */
.island-btn.is-active
{
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.08);
}

/* - - - BACK LIGHTS WHILE IT IS PRESSED (2026-10-24, the owner's word : "Make the back button on the islands have a
   feedback animation when pressed, likewise how the nox cella iteration has") : Nox Cella's island press
   (IslandPress-Script.js, its `ui.island.press` figures), Portfolio-Script.js writing the classes (11). From the
   moment a finger or the mouse comes down on it, and for 140 ms at least, it wears `is-pressed` : the lit mark's
   accent, ring and tint, coming in over 120 ms ; while it is held down it shrinks as every mark does (`is-held`,
   where `:active` alone missed a quick tap on a phone) ; let go without leaving, the light goes over 320 ms
   (`is-released`). Once it leaves, the light stays under the loader's black ground. The class is doubled, as Nox
   Cella doubles it, to stand over the pointer's hover below. - - - */
.island-btn.is-pressed.is-pressed
{
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.08);
    transition-duration: 120ms;
}
.island-btn.is-held
{
    transform: scale(0.9);
}
.island-btn.is-released
{
    transition-duration: 320ms;
}

/* - - - MARKS ALONE ON EVERY SCREEN (2026-11-03, the owner's word : "On desktop get rid of the names, only show icons,
   and look into nox cella to implement the same custom tooltip on hover above each button please") : the word a
   wide screen showed beside each mark (from 1280px, since 2026-10-21) is gone ; the markup keeps it for the page's
   words, unseen, and the button's name is its `title`, drawn by the tooltip below. - - - */
.island-label
{
    display: none;
}

/* - - - THE TOOLTIP, NOX CELLA'S (Tooltip-Styling.css there; Tooltip-Script.js here, on the island's buttons) : one
   node on <body>, fixed, over everything (the island's 1500, the windows' 1400), a hairline outline in the accent with
   a blur of whatever is behind it and no fill, no gradient, no shadow ; the name centred in small type, 7px by 11px
   of room, 8px corners. It rises 3px into place as it fades in over 120 ms (drops into place when drawn below), and
   takes no pointer. Nox Cella's figures (`tooltips.style` : 1px, 14px blur, 8px, 10.5px type). - - - */
.nk-tip
{
    position: fixed;
    z-index: 1000001;
    max-width: min(300px, calc(100vw - 24px));
    padding: 7px 11px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: transparent;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--text-main);
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0.4px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
    pointer-events: none;
}
.nk-tip.show
{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nk-tip.is-below
{
    transform: translateY(-3px);
}
.nk-tip.is-below.show
{
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce)
{
    .nk-tip { transition: none; }
}

/* - - - The tool at the island's end, behind a rule, as Nox Cella's islands set BACK apart : the effects editor's
   button on this PC and a paired device, or the key a device not yet paired asks with (index.php prints one or
   neither). A <button>, drawn as the links are, lit as the section on screen is while its window is open. - - - */
.island-rule
{
    flex-shrink: 0;
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: rgba(var(--accent-rgb), 0.3);
}
button.island-btn
{
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.island-btn.nk-editor-open.is-open,
.island-btn.nk-pair-open.is-open
{
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.08);
}

/* - - - THE HOME PAGE'S BACK (2026-11-03, the owner's word : "implement the back on the island which will appear,
   disappear, look and function likewise how its used to go into sub pages or back") : the project pages' BACK, a
   mark (and its word on a wide screen) at the island's head with a rule after it, drawn and lit exactly as theirs is
   (`.island-btn`, `is-pressed` above), but FOLDED AWAY until a window that asks for it is open (ModalFrame-Script.js,
   `is-shown`) : no width, no padding, transparent, and the island's gap taken back by a negative margin, so the
   island is exactly as it was. IT COMES AND GOES AS NOX CELLA'S ISLAND CONTROLS DO (the owner's word, the same day :
   "Look into how nox cella is doing it and implement it likewise"; IslandMotion-Script.js) : the layout lands at once
   and the motion is drawn on the compositor, nothing here transitioning a width or a margin. - - - */
.island-btn.island-back:not(.is-shown)
{
    overflow: hidden;
    width: 0;
    flex-basis: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: calc(-1 * var(--nk-island-gap));
    opacity: 0;
    pointer-events: none;
}
.island-rule.island-back-rule:not(.is-shown)
{
    width: 0;
    margin-left: 0;
    margin-right: calc(-1 * var(--nk-island-gap));
    opacity: 0;
}

/* - - - THE PILL'S SKIN WHILE IT MOVES, Nox Cella's sliding skin (IslandMotion-Script.js) : the pill's own background,
   border and frost, or its glass, are switched off (`is-skin-slide`, over the glass's inline filter) and two nested
   rounded windows draw it, A rounded on the left, B inside it on the right, each an overflow clip slid by a translate
   the engine writes, so the skin and the marks move as one ; the fill inside both is exactly the capsule, in the
   pill's own colours as it rests (read by the engine) under its frost (a glass pill's frost without its refraction,
   for the 280 ms of the motion) ; the ring is the left arc with the long lines (rl, cut by d half a height short of
   the right end) and the right arc (rr). The fill takes B's rounding on itself, or Chrome draws its frost to B's
   square corners (Nox Cella's finding). Nothing between the skin and the pill may be a backdrop root. At rest the pill
   draws itself ; `is-skin-settle` holds its transitions off for two frames. A LEAVING CONTROL'S GHOST takes no
   press. - - - */
html .island-shell.is-skin-slide
{
    background: transparent !important;
    border-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.island-shell.is-skin-slide,
.island-shell.is-skin-settle
{
    transition: none !important;
}
.island-shell > .nk-isl-skin
{
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: -1;
    display: none;
    pointer-events: none;
}
.island-shell.is-skin-slide > .nk-isl-skin
{
    display: block;
}
.nk-isl-skin-a,
.nk-isl-skin-b,
.nk-isl-skin-d
{
    position: absolute;
    top: 0;
    display: block;
    overflow: hidden;
}
.nk-isl-skin-fill
{
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background-color: var(--nk-isl-skin-color, rgba(var(--panel-rgb), 0.82));
    background-image: var(--nk-isl-skin-image, none);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
html .island-shell.nk-glass > .nk-isl-skin .nk-isl-skin-fill
{
    -webkit-backdrop-filter: blur(var(--nk-glass-blur, 0.9px)) saturate(var(--nk-glass-saturation, 1.4)) brightness(calc(var(--nk-glass-brightness, 0.85) * var(--nk-glass-light, 1)));
    backdrop-filter: blur(var(--nk-glass-blur, 0.9px)) saturate(var(--nk-glass-saturation, 1.4)) brightness(calc(var(--nk-glass-brightness, 0.85) * var(--nk-glass-light, 1)));
}
.nk-isl-skin-rl,
.nk-isl-skin-rr
{
    position: absolute;
    top: 0;
    display: block;
    box-sizing: border-box;
    border: 1px solid var(--nk-isl-skin-ring, rgba(var(--accent-rgb), 0.28));
}
.nk-isl-skin-rl { border-right-width: 0; }
.nk-isl-skin-rr { right: 0; border-left-width: 0; }
.island-shell > .nk-isl-ghost
{
    pointer-events: none;
}

/* - - - A phone : the pill's own spacing a little tighter, so its marks keep more of their size - - - */
@media (max-width: 430px)
{
    .island-shell { --nk-island-gap: 2px; padding: 6px 8px; }
    .island-rule { margin: 0 2px; }
}

/*   = = = = = =   A Held Mark's Places   = = = = = =   */

/* - - - A SECTION'S PLACES FROM ITS MARK HELD DOWN (2026-11-18, the owner's word : "use the same styling as in nox
   cella when you reveal the dropdown of a filter or sort button and instead have it appears in the centered of the
   island just above it with the appropriate colours of the website") : Portfolio-Script.js (17) builds one panel on
   <body> and places it, CENTRED ON THE ISLAND, its foot 9px above it. Its skin is Nox Cella's anchored drop-down, rule
   for rule (SubmissionForm-SelectionFields-StylingComponent.css, Anchored, there the Sarsonis catalogues' sorting
   panel) : SQUARE, a solid accent hairline, the page behind it BLURRED AND NOT DIMMED (a transparent fill over a 5px
   frost), no shadow and no glow, the section's name small over its places. NO POINTER (the same day, the owner's
   word : "Please remove the arrow pointing to the opened button") : Nox's 8px triangle under its button is left out,
   the held mark lit instead (`is-menu-open`, below). As small as its longest place, which never wraps, the same room
   on every side ; a list taller than the room scrolls inside it, with no bar. Over the island (1500) and the windows (1400, a notice 1450), under the tooltip, which stays
   silent while it is open. Every colour is the page's own token. - - - */
.nk-places
{
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1600;
    box-sizing: border-box;
    min-width: 0;
    max-width: calc(100vw - 16px);
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 8px;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--nk-places-fade, 180ms) ease-in-out var(--nk-places-delay, 0ms),
                visibility 0s linear calc(var(--nk-places-fade, 180ms) + var(--nk-places-delay, 0ms));
}
.nk-places.is-open
{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--nk-places-fade, 180ms) ease-in-out 0ms, visibility 0s linear 0s;
}
.nk-places-title
{
    display: block;
    padding: 0 0.8rem 4px;
    color: var(--text-muted);
    font-size: 8px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}
.nk-places-scroller
{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.nk-places-scroller::-webkit-scrollbar { display: none; }

/* - - - THE PLACES FADE, THE LIGHT COMES LAST AND GOES FIRST (Nox Cella's Collapsing) : each place fades on a delay of
   its own, its place from the top times the stagger on the way in (`--nk-i`), from the bottom on the way out
   (`--nk-ri`), 180 ms each and 50 ms apart, so they arrive top-down and leave bottom-up ; the panel comes with the first
   and goes with the last (`--nk-places-delay`). The place on the screen as the menu opens is lit (`is-chosen`) : the
   accent, and behind its words a band of the accent, brightest at their centre and fading out to both sides, Nox's
   centred light ; dark (`is-unlit`) until the last place has arrived, and from the press that shuts the menu. The
   colour keeps its own undelayed 0.3s, so a hover answers at once. - - - */
.nk-places-choice
{
    position: relative;
    isolation: isolate;
    display: block;
    margin: 0;
    padding: 0.45rem 0.6rem;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--text-muted);
    font-size: 9.5px;
    line-height: 1.5;
    letter-spacing: 1.1px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity var(--nk-places-fade, 180ms) ease-in-out calc(var(--nk-i, 0) * var(--nk-places-stagger, 50ms)),
                color 0.3s ease-in-out 0s;
}
.nk-places.is-closing .nk-places-choice
{
    transition-delay: calc(var(--nk-ri, 0) * var(--nk-places-stagger, 50ms)), 0s;
}
.nk-places.is-faded .nk-places-choice
{
    opacity: 0;
    pointer-events: none;
}
.nk-places-choice.is-chosen
{
    color: var(--primary-color);
}
.nk-places-choice::before
{
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(var(--accent-rgb), 0.16) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}
.nk-places-choice.is-chosen::before
{
    opacity: 1;
}
.nk-places.is-unlit .nk-places-choice.is-chosen::before
{
    opacity: 0;
}
.nk-places-choice:focus
{
    outline: none;
}
.nk-places-choice:focus-visible
{
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}
@media (hover: hover)
{
    .nk-places-choice:hover { color: var(--text-main); }
}

/* - - - The held mark is lit while its menu is open, as the lit mark is ; a long press on it raises no picture of the
   link (a phone's own). - - - */
.island-btn.is-menu-open
{
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.08);
}
.nk-island [data-nk-hold]
{
    -webkit-touch-callout: none;
}
@media (prefers-reduced-motion: reduce)
{
    .nk-places,
    .nk-places.is-open,
    .nk-places-choice,
    .nk-places-choice::before { transition: none; }
}

@media (hover: hover)
{
    .island-btn:hover { background-color: rgba(255, 255, 255, 0.07); color: var(--text-main); }
    .island-btn.is-active:hover,
    .island-btn.is-menu-open:hover { color: var(--primary-color); }
}

@media (prefers-reduced-motion: reduce)
{
    .island-btn { transition: none; }
}

/* - - - Author : Nikolaos S. Kaounas - - - */
