/* ==========================================================
   NEWS PAGES — MENU BUTTON + DRAWER
   Same look as the main site's mobile menu.
   Uses its own class names (news-*) so older menu styles
   cannot interfere with it.
   ========================================================== */

:root {
    --news-brown: #412e03;
    --news-brown-dark: #2c1f02;
    --news-gold: #d89b00;
    --news-line: #ececec;
    --news-soft: #555555;
}


/* Sizes include padding and borders, whatever the page sets */
.news-menu-button,
.news-overlay,
.news-drawer,
.news-drawer *,
.news-drawer *::before,
.news-drawer *::after {
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   Menu button (three lines)
   ---------------------------------------------------------- */

.news-menu-button {
    position: relative;
    z-index: 2;

    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 0;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.news-menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    background: #ffffff;
    border-radius: 2px;

    transition: background 0.2s ease;
}

.news-menu-button:hover span,
.news-menu-button:focus-visible span {
    background: var(--news-gold);
}


/* ----------------------------------------------------------
   Dark layer behind the drawer (tap to close)
   ---------------------------------------------------------- */

.news-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

    background: rgba(20, 14, 2, 0.55);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.news-menu-open .news-overlay {
    opacity: 1;
    visibility: visible;
}

body.news-menu-open {
    overflow: hidden;
}


/* ----------------------------------------------------------
   Drawer
   ---------------------------------------------------------- */

.news-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;

    display: flex;
    flex-direction: column;

    width: min(340px, 84vw);

    background: #ffffff;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.14);

    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

    transform: translateX(100%);
    visibility: hidden;

    transition: transform 0.25s ease, visibility 0.25s ease;
}

.news-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* "MENU" + close */
.news-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px 18px 28px;

    border-bottom: 1px solid var(--news-line);
}

.news-drawer-title {
    color: var(--news-brown);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-drawer-close {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    padding: 0;

    background: transparent;
    border: 0;

    color: var(--news-brown);

    cursor: pointer;
}

.news-drawer-close svg,
.news-sub-toggle svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.news-drawer-close:hover,
.news-drawer-close:focus-visible {
    color: var(--news-gold);
}


/* Page links */
.news-drawer-list {
    flex: 1;

    margin: 0;
    padding: 14px 28px;

    overflow-y: auto;

    list-style: none;
}

.news-drawer-list > li > a {
    position: relative;

    display: block;

    padding: 13px 0;

    color: var(--news-brown);

    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;

    transition: color 0.2s ease;
}

.news-drawer-list > li > a:hover,
.news-drawer-list > li > a:focus-visible {
    color: var(--news-gold);
}

/* Current section: short gold line under the link */
.news-drawer-list > li > a.is-active::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 8px;

    width: 32px;
    height: 2px;

    background: var(--news-gold);
}

/* Items with sub-links: link + arrow toggle */
.news-has-sub {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.news-sub-toggle {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    background: transparent;
    border: 0;

    color: var(--news-brown);

    cursor: pointer;
}

.news-sub-toggle svg {
    width: 18px;
    height: 18px;

    transition: transform 0.2s ease;
}

.news-sub-toggle:hover,
.news-sub-toggle[aria-expanded="true"] {
    color: var(--news-gold);
}

.news-sub-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.news-sub {
    grid-column: 1 / -1;

    display: none;

    margin: 2px 0 10px 4px;
    padding: 0 0 0 20px;

    border-left: 2px solid var(--news-line);

    list-style: none;
}

.news-has-sub.is-open .news-sub {
    display: block;
}

.news-sub a {
    display: block;

    padding: 11px 0;

    color: var(--news-soft);

    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.news-sub a:hover,
.news-sub a:focus-visible {
    color: var(--news-gold);
}


/* Account button, bottom centre */
.news-drawer-account {
    padding: 20px 28px 28px;

    border-top: 1px solid var(--news-line);
}

.news-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 50px;
    padding: 0 22px;

    background: var(--news-brown);
    border: 1px solid var(--news-brown);
    border-radius: 8px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-drawer-btn svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.news-drawer-btn:hover,
.news-drawer-btn:focus-visible {
    background: var(--news-gold);
    border-color: var(--news-gold);
    color: var(--news-brown-dark);
}


@media (prefers-reduced-motion: reduce) {

    .news-drawer,
    .news-overlay {
        transition: none;
    }
}
