/* ==========================================================================
   Notice board  (views/index.hbs, section.notices) - the LEFT half of div.duo

   A heading block, then the notices as cards: navy date badge, serif title,
   description and a file or link button. The list scrolls inside a fixed
   height, so any number of notices fits. (Replaces the small auto-scrolling
   box.) Layout of the two halves: duo.css.
   ========================================================================== */

.notices {
    --navy: #111d42;
    --gold: #d1a24f;
    --gold-text: #8a6217;       /* gold dark enough to read as text on white */
    --ink-soft: #4b5472;

    position: relative;
    padding: 104px 64px 112px 0;
    font-family: 'Raleway', 'PT Sans', Arial, sans-serif;
}

.notices h2,
.notices h3,
.notices p {
    margin: 0;
    text-transform: none;
}


/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */

.notices__head {
    margin-bottom: 38px;
}

.notices__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 24px;
    box-shadow: 0 0 0 6px rgba(209, 162, 79, .25);
}

.notices__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.notices__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.notices__eyebrow::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--gold);
}

.notices__title {
    margin: 16px 0 14px !important;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.16;
    color: var(--navy);
}

.notices__lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
    text-align: left;           /* timeline.css has a global "header p { text-align: center }" */
}


/* --------------------------------------------------------------------------
   List
   -------------------------------------------------------------------------- */

.notices__list {
    display: grid;
    gap: 16px;
    max-height: 540px;
    overflow-y: auto;
    padding: 6px 12px 14px 4px;    /* room for the card shadows and the scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.notices__list::-webkit-scrollbar {
    width: 8px;
}

.notices__list::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: var(--gold);
}

.notices__list:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.notice {
    display: flex;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid #e8ebf3;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 29, 66, .07);
    transition: transform .3s ease, box-shadow .3s ease;
}

@media (hover: hover) {
    .notice:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(17, 29, 66, .12);
    }
}

.notice__date {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 70px;
    padding: 12px 0 11px;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    line-height: 1;
}

/* bell, shown only when the CMS date cannot be read */
.notice__date > .fa,
.notice__date > svg {
    margin: 12px 0;
    font-size: 24px;
    color: var(--gold);
}

.notice__day {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 29px;
    font-weight: 800;
}

.notice__month {
    margin-top: 7px;
    padding-left: .2em;         /* balances the trailing letter-spacing */
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}

.notice__year {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .65);
}

.notice__body {
    min-width: 0;
}

.notice__title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.notice__text {
    margin-top: 8px !important;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.notice__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 10px 0 0;
    padding: 7px 16px;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.notice__link:hover,
.notice__link:focus {
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
}

.notice__link:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .notices {
        padding-right: 40px;
    }
}

/* Stacked layout: the notices come first, full width. */
@media (max-width: 991px) {
    .notices {
        max-width: 680px;
        padding: 76px 0 70px;
        margin: 0 auto;
    }

    .notices__list {
        max-height: 520px;
    }
}

@media (max-width: 575px) {
    .notices {
        padding: 60px 0 56px;
    }

    .notices__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
        font-size: 21px;
    }

    .notices__list {
        padding-right: 10px;
    }

    .notice {
        gap: 16px;
        padding: 20px 18px;
    }

    .notice__date {
        width: 62px;
        padding: 11px 0 10px;
    }

    .notice__day {
        font-size: 26px;
    }

    .notice__month {
        font-size: 11px;
    }

    .notice__year {
        font-size: 10px;
    }

    .notice__title {
        font-size: 19px;
    }

    .notice__text {
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice,
    .notice__link {
        transition: none;
    }
}
