.school-identity,.school-ribbon,.announcements,.video-main,.notice-archive,.school-link {font-family:"Segoe UI",Arial,sans-serif}
.school-identity {display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,28px);padding:clamp(9px,1vw,16px) 16px;color:#09254c!important;background:white;text-decoration:none!important}
.school-identity img {width:clamp(60px,9vw,130px);height:auto;flex:none}
.school-details {min-width:0;font-family:Georgia,serif;line-height:1.25}
.school-identity strong,.board-head h1,.video-main h1 {font-family:Georgia,serif}
.school-identity strong {display:block;font-size:clamp(1.4rem,3vw,3rem);line-height:1.12;text-transform:uppercase}
.school-medium {display:block;margin:2px 0;font:500 clamp(.95rem,1.8vw,1.65rem)/1.35 "Segoe UI",Arial,sans-serif;text-transform:uppercase}
.school-codes {display:flex;flex-wrap:wrap;column-gap:.6em;font-size:clamp(.95rem,1.55vw,1.5rem)}
.school-codes span + span {border-left:1px solid currentColor;padding-left:.6em}
#hpmiHeader,.school-ribbon {background:#082a4e}
#hpmiHeader .hpmi-header-inner {min-height:48px;gap:clamp(8px,1.4vw,22px)}
#hpmiHeader .hpmi-nav-item>a,#hpmiHeader .school-link,.school-ribbon a {color:white;text-decoration:none;font-weight:600}
#hpmiHeader .hpmi-nav-item>a {min-height:48px}
#hpmiHeader .hpmi-chevron {border-color:currentColor}
#hpmiHeader .hpmi-mobile-toggle {margin-left:auto;background:white}
#hpmiHeader .hpmi-mobile-menu {background:white;max-height:62vh;overflow:auto}
.school-link,.school-ribbon a {font-size:1rem;padding:8px 2px;white-space:nowrap}
.school-ribbon {display:flex;flex-wrap:wrap;justify-content:center;gap:4px 24px;padding:8px 12px}
.school-link:hover,.school-ribbon a:hover {text-decoration:underline!important;text-underline-offset:4px}
.announcements,.video-main,.notice-archive {width:min(94%,960px);margin:clamp(24px,5vw,64px) auto;box-sizing:border-box}
.announcements {background:white;border:1px solid #d7dfe6;border-radius:20px;overflow:hidden;box-shadow:0 10px 32px #09294c12;color:#132338}
.board-head {padding:clamp(18px,3vw,32px);background:#062847;color:white}
.board-head h1,.video-main h1 {margin:0;font-size:clamp(1.8rem,4vw,2.65rem);line-height:1.15}
.board-head h1 {color:white}
.board-head p {margin:0 0 6px;color:#f0d397;letter-spacing:.11em;text-transform:uppercase;font-size:.88rem}
.board-list {display:grid;gap:10px;padding:clamp(12px,2vw,24px)}
.board-row {display:flex;align-items:center;gap:clamp(10px,2vw,20px);border:1px solid #dbe2e9;border-radius:14px;padding:14px;box-shadow:0 3px 10px #2035500a;color:#11253a!important;text-decoration:none!important}
a.board-row:hover {border-color:#ce932e;background:#fffaf0}
.board-date {display:grid;align-content:center;text-align:center;flex:0 0 64px;min-height:64px;background:#082d50;color:white;border-radius:12px;font-size:.8rem;font-weight:600}
.board-date b {font-size:1.55rem;line-height:1.15}
.board-copy {min-width:0;overflow-wrap:anywhere;font-size:1.05rem;line-height:1.4;font-weight:600}
.board-type {display:table;background:#e8edf1;color:#39495b;border-radius:5px;padding:2px 8px;margin-bottom:5px;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
.board-type.exam {background:#fff0c0;color:#804700}
.board-type.holiday {background:#ffe3df;color:#902b23}
.board-open {margin-left:auto;color:#455f75;font-size:1.4rem}
.board-all {display:table;margin:0 auto 18px;font-weight:600;color:#114e80;text-decoration:underline}
.board-retry,.notice-archive summary {cursor:pointer}
.gallery-page {margin:0;background:#f4f7fa;color:#09294c}
.video-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:24px;margin:24px 0}
.video-grid article {overflow:hidden;background:white;border:1px solid #dae3ec;border-radius:14px;padding-bottom:20px}
.video-grid video {object-fit:contain;display:block;width:100%;aspect-ratio:16/9;border:0;background:#082a4e}
.video-grid h2,.video-grid a {margin:14px 18px 6px}
.video-grid h2 {font-size:1.25rem}
@media(max-width:600px){#hpmiHeader .hpmi-header-inner {width:calc(100% - 24px)}.school-link {font-size:.94rem}.school-ribbon {gap:2px 14px}.board-date {flex-basis:52px;min-height:56px}}

.notice-entry {width:min(94%,1120px);margin:24px auto;font-family:"Segoe UI",Arial,sans-serif}
.notice-entry a {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:16px clamp(16px,3vw,32px);border:1px solid #dce4ed;border-left:4px solid #caa25b;border-radius:6px;background:#f7f9fc;color:#102e53;text-decoration:none}
.notice-entry-title {font:600 clamp(1.2rem,2.4vw,1.65rem) Georgia,serif}
.notice-entry-action {color:#154773;font-size:1rem;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.notice-entry a:hover,.notice-entry a:focus-visible {background:#eef3f8}
#hpmiHeader .hpmi-header-inner:has(> .hpmi-nav:first-child) .hpmi-nav {justify-content:center}
.notice-archive summary {padding:14px 18px;color:#123758;background:#f4f7fa;border-radius:8px;font-weight:600}

.school-address, .school-trust {
    display: block;
    font-size: clamp(.9rem, 1.15vw, 1.1rem);
    line-height: 1.3;
}
@media (min-width: 641px) and (max-width: 1100px) {
    .school-identity {justify-content: space-between; text-align: left}
    .school-identity img {order: 1}
}
@media (min-width: 1101px) {
    .school-identity {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
        padding: 8px 16px;
    }
    .school-identity img {grid-area: 1 / 2; justify-self: end}
    .school-details {grid-area: 1 / 1; text-align: left}
    .school-identity img {width: clamp(72px, 6vw, 88px)}
    .school-identity strong {font-size: clamp(1.65rem, 2.4vw, 2.3rem)}
    .school-medium {margin: 1px 0; font-size: 1.12rem; line-height: 1.2}
    .school-codes {display: inline-flex; font-size: 1rem}
    .school-codes + .school-codes, .school-trust {border-left: 1px solid currentColor; margin-left: .4em; padding-left: .6em}
    .school-address, .school-trust {display: inline; font-size: .95rem}
    .school-address::before {content: ""; display: block; margin-top: 2px}
}
@media (max-width: 640px) {
    .school-identity {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 3px 10px;
        padding: 8px 12px;
    }
    .school-details {display: contents}
    .school-identity img {width: 46px; grid-area: 1 / 2; justify-self: end}
    .school-identity strong {grid-area: 1 / 1; font-size: clamp(1.22rem, 4.8vw, 1.65rem); text-wrap: balance}
    .school-address, .school-trust, .school-medium, .school-codes {grid-column: 1 / -1; text-align: left}
    .school-medium {margin: 1px 0; font-size: .9rem}
    .school-codes {justify-content: flex-start; font-size: .875rem; line-height: 1.35}
    .school-codes span {max-width: 100%}
    .school-medium + .school-codes {flex-direction: column}
    .school-medium + .school-codes span + span {padding: 0; border: 0}
    .school-ribbon {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0 8px}
    .school-ribbon a {display: grid; place-items: center; min-height: 44px; padding: 0 4px}
    #hpmiHeader .hpmi-mobile-toggle {width: 44px; height: 44px}
    #hpmiHeader .hpmi-mobile-menu {max-height: min(62dvh, calc(100dvh - 100%)); overscroll-behavior: contain}
    .notice-entry {margin: 14px auto}
}

@media (max-width: 1100px) {
    #hpmiHeader .hpmi-header-inner {
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        box-sizing: border-box;
    }
    #hpmiHeader .hpmi-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        gap: 8px;
        width: auto;
        min-width: 0;
        height: 44px;
        padding: 0 8px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: white;
        font: 600 1rem/1.2 "Segoe UI", Arial, sans-serif;
        text-transform: none;
    }
    #hpmiHeader .hpmi-mobile-toggle::after {
        content: "";
        width: 20px;
        height: 14px;
        box-sizing: border-box;
        border-block: 2px solid currentColor;
        background: linear-gradient(currentColor,currentColor) center / 100% 2px no-repeat;
    }
    #hpmiHeader .hpmi-mobile-toggle[aria-expanded="true"]::after {
        height: 20px;
        border: 0;
        background: linear-gradient(45deg,transparent 46%,currentColor 47% 53%,transparent 54%),
                    linear-gradient(-45deg,transparent 46%,currentColor 47% 53%,transparent 54%);
    }
    #hpmiHeader .hpmi-mobile-toggle:focus-visible {
        outline: 2px solid #efc87e;
        outline-offset: -3px;
    }
}
