/* ============================================================
   HOMEPAGE
   ------------------------------------------------------------
   Loaded after styles_new.css / mobile-fixes.css, which were
   written for the old fixed-position logo layout. The homepage
   is now a normal centred flow column over the colour field, so
   a few of those older rules need neutralising here rather than
   being edited out of files the other pages still depend on.
   ============================================================ */

.sy-body {
    margin: 0;
    min-height: 100svh;
    background: #fff;
    overflow-x: hidden;
}

/* styles_new.css pins .logo-menu-container to the middle of the viewport.
   Nothing on this page uses that container any more, but the dropdown it
   styled still lives inside .sy-mark-wrap — so the wrapper needs to be a
   plain positioned parent instead. */
.sy-mark-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sy-mark-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

/* The caret sits under the mark and flips when the menu opens. */
.sy-mark-wrap .menu-caret {
    display: block;
    width: 9px;
    height: 9px;
    margin: 1.1rem auto 0;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: caretHint 1.8s ease-in-out 2.5s 3;
}

.sy-mark-link:hover .menu-caret { opacity: 1; }

.sy-mark-wrap.menu-open .menu-caret {
    transform: rotate(-135deg);
    opacity: 1;
    animation: none;
}

/* The dropdown.
   ------------------------------------------------------------
   Rebuilt rather than inherited. It was rendering 270×517px and
   swallowing the links below it, because item padding was being
   added three times over: styles_new.css sets padding on the
   anchor, mobile-first.css adds more for touch targets, and
   .menu-links li carries its own margin on top. The result was
   ~100px per row.

   These rules replace all of that with one compact panel. The
   !important on padding is needed to beat mobile-first.css,
   which other pages still rely on. */
.sy-mark-wrap .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.85rem;
    z-index: 20;
    width: max-content;
    min-width: 190px;
    padding: 0.4rem 0;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.sy-mark-wrap .menu-links {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sy-mark-wrap .menu-links li { margin: 0; }

.sy-mark-wrap .menu-links a {
    display: block;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9375rem;
    line-height: 1.25;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

/* styles_new.css draws an underline bar under each item; not wanted here. */
.sy-mark-wrap .menu-links a::after { display: none; }

.sy-mark-wrap .menu-links a:hover,
.sy-mark-wrap .menu-links a:focus-visible {
    background: #000;
    color: #fff;
}

/* Info button sits above the field. */
.info-button-container { z-index: 10; }

@media (prefers-reduced-motion: reduce) {
    .sy-mark-wrap .menu-caret { animation: none; }
}
