/*
 * Small fixes on top of the original stylesheets (which are kept unchanged).
 * Loaded after innerstyles.css / styles.css.
 */

/* The outer page box used "overflow: auto" to wrap its floated content, but that also
   cut off drop-down menus at the page edge (3rd-level sub-menus were not fully visible).
   "display: flow-root" wraps the floats the same way without cutting anything off. */
#rn_main_container > .container,
#rn_main_container > .container1 {
    overflow: visible;
    display: flow-root;
}

/* Drop-down menus above the page content and banner */
#smoothmenu1 {
    position: relative;
    z-index: 1000;
}

/* In a narrow window a sub-menu has no room on the right and opens to the left, on top of
   its parent column. The normal menu background is semi-transparent, so the two columns'
   texts showed through each other; such a sub-menu gets a solid background and a shadow. */
#smoothmenu1 ul.ddsm-flipped {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
#smoothmenu1 ul.ddsm-flipped > li > a {
    background: #fbf9f6;
}
#smoothmenu1 ul.ddsm-flipped > li > a:hover {
    background: #f1ece5;
}

/* ===== Footer (partials/footer.blade.php) ===== */
.site-footer {
    clear: both;
    width: 950px;
    margin-top: 15px;
    background: #00354e;
    color: #c7d6e2;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}
.site-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.6fr;
    gap: 40px;
    padding: 30px 35px 26px;
}
.site-footer__title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    position: relative;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.site-footer__title::after {             /* short gold accent line */
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: #f2b705;
}
.site-footer__links,
.site-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__links li {
    margin: 0 0 7px;
}
.site-footer__links a {
    color: #c7d6e2;
    text-decoration: none;
    transition: color .15s, padding-left .15s;
}
.site-footer__links a::before {
    content: "\203A";                   /* › */
    color: #f2b705;
    margin-right: 8px;
    font-weight: bold;
}
.site-footer__links a:hover {
    color: #fff;
    padding-left: 3px;
}
.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
}
.site-footer__contact svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #f2b705;
}
.site-footer__contact a {
    color: #c7d6e2;
    text-decoration: none;
    word-break: break-word;
}
.site-footer__contact a:hover {
    color: #fff;
}
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 35px;
    background: #002838;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8fa6b8;
    font-size: 12px;
}
.site-footer__bottom a {
    color: #c7d6e2;
    text-decoration: none;
}
.site-footer__bottom a:hover {
    color: #f2b705;
}

/* ===== List pages: Price Sensitive Information, News, reports (pages/types/list.blade.php) ===== */
.doc-list {
    clear: both;
    width: 879px;
    padding: 22px 0 6px;
    font-family: Arial, Helvetica, sans-serif;
}
.doc-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 12px;
    padding: 12px 18px 12px 12px;
    background: #fff;
    border: 1px solid #e3e9ee;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 53, 78, .05);
    color: #00354e;
    text-decoration: none;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: doc-in .45s ease both;
    animation-delay: calc(var(--i, 0) * 45ms);
}
.doc-item::before {                          /* gold accent bar on the left */
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #f2b705;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .25s ease;
}
.doc-item:hover,
.doc-item:focus-visible {
    transform: translateY(-2px);
    border-color: #c9d8e3;
    box-shadow: 0 8px 22px rgba(0, 53, 78, .14);
    outline: none;
}
.doc-item:hover::before,
.doc-item:focus-visible::before {
    transform: scaleY(1);
}

/* calendar tile */
.doc-item__tile {
    flex: 0 0 62px;
    height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #eef4f8;
    color: #00354e;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}
.doc-item__day { font-size: 24px; font-weight: bold; }
.doc-item__month { margin-top: 3px; font-size: 11px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: #c48f00; }
.doc-item__year { margin-top: 3px; font-size: 11px; opacity: .75; }
.doc-item:hover .doc-item__tile { background: #00354e; color: #fff; }
.doc-item:hover .doc-item__month { color: #f2b705; }

/* text */
.doc-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.doc-item__title {
    font-size: 15px;
    font-weight: bold;
    color: #00354e;
}
.doc-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7f8e;
}

/* badge + arrow */
.doc-item__badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 20px;
    background: #eef4f8;
    color: #00354e;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .6px;
}
.doc-item__badge--pdf { background: #fdecea; color: #c62828; }
.doc-item__arrow {
    flex: 0 0 auto;
    font-size: 18px;
    color: #9fb2c0;
    transition: transform .2s ease, color .2s ease;
}
.doc-item:hover .doc-item__arrow { transform: translateX(5px); color: #f2b705; }

.doc-list__empty { padding: 30px 0; text-align: center; color: #6b7f8e; }

@keyframes doc-in {
    from { opacity: 0; translate: 0 10px; }   /* "translate" so the hover lift (transform) still works */
    to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .doc-item, .doc-item::before, .doc-item__tile, .doc-item__arrow { animation: none; transition: none; }
}

/* Report tiles (no date): label on top, period in the middle, e.g. QUARTER / Q3 / 2025-26 */
.doc-item__tile--period .doc-item__month { margin: 0 0 4px; font-size: 10px; }
.doc-item__tile--period .doc-item__day { font-size: 19px; letter-spacing: -.3px; }
.doc-item__tile--period .doc-item__year { margin-top: 4px; font-size: 10px; }

/* ===== Desktop menu bar + drop-down menus (hover menu, > 980px; the mobile menu is in responsive.css) ===== */
@media (min-width: 981px) {
    /* top bar: no "|" separators, gold underline on hover */
    #smoothmenu1 > ul { margin-top: 2px; }
    #smoothmenu1 > ul > li.menu-sep { display: none; }
    #smoothmenu1 > ul > li { margin-right: 0; padding-top: 0; }
    #smoothmenu1 > ul > li > a {
        position: relative;
        padding: 7px 10px 9px;
        color: #00354e;
        font-size: 15px;
        transition: color .2s;
    }
    #smoothmenu1 > ul > li > a::after {
        content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px;
        background: #f2b705; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
    }
    #smoothmenu1 > ul > li > a:hover,
    #smoothmenu1 > ul > li > a.selected { color: #c48f00; }
    #smoothmenu1 > ul > li > a:hover::after,
    #smoothmenu1 > ul > li > a.selected::after { transform: scaleX(1); }

    /* drop-down panels: solid white, shadow, gold top edge */
    #smoothmenu1 ul li ul {
        padding: 6px 0;
        background: #fff;
        border-top: 3px solid #f2b705;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 14px 34px rgba(0, 37, 55, .2) !important;
    }
    #smoothmenu1 ul li ul ul { margin-top: -9px; border-radius: 0 6px 6px 6px; }   /* align nested panels with their item */
    #smoothmenu1 ul li ul li { border-bottom: 1px solid #eef2f5; }
    #smoothmenu1 ul li ul li:last-child { border-bottom: 0; }
    #smoothmenu1 ul li ul li a,
    #smoothmenu1 ul li ul li a.fin {
        position: relative;
        width: 235px;
        padding: 9px 30px 9px 18px;
        background: none;
        border-left: 3px solid transparent;
        color: #22384a;
        font-size: 14px;
        line-height: 1.35;          /* long names wrap onto two lines without overlapping */
        transition: background .15s, color .15s, border-color .15s, padding-left .15s;
    }
    #smoothmenu1 ul li ul li a.fin { width: 140px; }   /* Finance panels: short labels, so all levels fit side by side */
    #smoothmenu1 ul li ul li a:hover,
    #smoothmenu1 ul li ul li a.selected {
        background: #f3f7fa;
        border-left-color: #f2b705;
        color: #00354e;
        padding-left: 22px;
    }
    /* "›" on items that open another sub-menu */
    #smoothmenu1 ul li ul li:has(> ul) > a::after {
        content: "\203A"; position: absolute; right: 12px; top: 50%; transform: translateY(-52%);
        color: #c48f00; font-size: 18px; font-weight: bold;
    }
    .ddshadow { display: none !important; }
}
