/* Shared navigation must render identically with either legacy or portal CSS. */
.portal-utility, .portal-header { font: 14px/1.5 'Segoe UI',Arial,sans-serif; width: 100%; float: none; }
.portal-utility { background: #f3edf6; color: #62506b; font-size: 12px; }
.portal-nav-shell { width: calc(100% - 40px); max-width: 1200px; margin: 0 auto; }
.portal-utility .portal-nav-shell { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.portal-header { display: block; padding: 0; margin: 0; background: linear-gradient(110deg,#fff 60%,#faf5fc); border: 0; border-bottom: 3px solid #c6a45a; box-shadow: 0 5px 20px rgba(61,22,73,.09); }
.portal-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.portal-header .portal-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #44234d; }
.portal-brand img { box-sizing: content-box; width: 56px; height: 56px; object-fit: contain; padding: 8px; border: 1px solid #eadfce; border-radius: 16px; background: #fff; box-shadow: 0 3px 10px rgba(85,45,20,.04); }
.portal-brand strong { display: block; font-size: 22px; font-weight: 700; line-height: 1.3; }
.portal-brand small { display: block; font-size: 10px; letter-spacing: 2px; margin-top: 5px; color: #77667f; }
.portal-utility a, .portal-header .portal-switch { color: #672572; text-decoration: none; }
.portal-header .portal-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; border: 1px solid #dfcfe5; border-radius: 10px; background: #fff; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.portal-header .portal-switch:hover { background: #f3e9f6; border-color: #bc92c7; }
.portal-menu-bar { background: linear-gradient(110deg,#571363,#772083 65%,#672175); }
.portal-desktop-nav { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 0; }
.portal-header nav a { display: block; position: relative; color: #fff; padding: 12px 15px; border-radius: 8px; font-size: 14px; text-decoration: none; font-weight: 600; line-height: 1.4; transition: background .15s, color .15s; }
.portal-header nav a:hover { background: rgba(255,255,255,.13); color: #fff; }
.portal-header nav a[aria-current=page], .portal-header nav a[aria-current=location] { background: #fff; color: #672572; box-shadow: inset 0 -3px #d1ad59, 0 2px 7px rgba(30,0,38,.12); }
.portal-mobile-nav { display: none; }
.portal-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.portal-header-actions form { margin: 0; }
.portal-header .portal-signout { display: inline-block; width: auto; margin: 0; padding: 10px 16px; min-height: 44px; border: 1px solid #772083; border-radius: 8px; background: #772083; color: #fff; font: 600 14px/1.5 'Segoe UI',Arial,sans-serif; cursor: pointer; }
.portal-header .portal-signout:hover { background: #5c1766; }
.portal-header .portal-signout:focus-visible { outline: 3px solid #c6a45a; outline-offset: 3px; }
.portal-skip { position: absolute; top: -100px; left: 16px; z-index: 10000; background: #fff; color: #772083; padding: 12px 18px; border-radius: 6px; }
.portal-skip:focus { top: 12px; }
.portal-announcements { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; padding: 12px 20px; background: #faf6ed; border-bottom: 1px solid #ebdfc5; font: 12px/1.6 'Segoe UI',Arial,sans-serif; color: #69522b; }
.portal-announcements span::before { content: '\2022'; margin-right: 8px; color: #99752c; }
.portal-draft-note { margin: 0; padding: 10px 20px; text-align: center; font: 12px/1.6 'Segoe UI',Arial,sans-serif; color: #69522b; background: #fffaf0; }
.portal-header .portal-brand-row { max-width: 1200px; }
.portal-header a:focus-visible, .portal-header summary:focus-visible { outline: 3px solid #e6c576; outline-offset: 2px; }
.portal-header summary { cursor: pointer; }
/* Management and standalone pages: clear data hierarchy and consistent controls. */
.admin-page, .inner-page { background: #f7f5f9; color: #352b3c; }
.admin-page main.container, .inner-page main.container { padding-bottom: 42px; }
.admin-page .page-heading, .inner-page .page-heading { padding: 28px 0; }
.admin-page .page-heading h2, .inner-page .page-heading h2 { font-family: 'Segoe UI',Arial,sans-serif; font-size: 28px; letter-spacing: -.5px; color: #43234c; }
.admin-page main section, .inner-page main section { border-radius: 14px; border-color: #e5dce9; box-shadow: 0 5px 20px rgba(65,25,77,.035); }
.admin-page main .stat { font-size: 36px; color: #772083; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-page main .grid > section { border-top: 3px solid #c6a45a; }
.admin-page main th { background: #f3ecf6; color: #56305f; font-size: 12px; font-weight: 700; }
.admin-page main td { font-size: 14px; vertical-align: middle; }
.admin-page main tbody tr:nth-child(even) { background: #fcfafd; }
.admin-page main tbody tr:hover { background: #f5eef8; }
.admin-page main .table-scroll { border: 1px solid #e6ddea; border-radius: 10px; }
.admin-page main input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .admin-page main select, .admin-page main textarea { border-radius: 8px; border-color: #d9cfe0; }
.admin-page main button, .admin-page main .button, .inner-page main button { border-radius: 9px; min-height: 44px; }
.admin-page main .notice, .inner-page main .notice { border-radius: 10px; }
.admin-page main h3 { font-family: 'Segoe UI',Arial,sans-serif; font-size: 21px; }
.portal-page-title { padding: 8px 0 24px; margin-bottom: 20px; border-bottom: 1px solid #e5dce9; }
.portal-page-title .portal-page-label { display: block; color: #772083; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 10px; }
.portal-page-title h1 { font: 700 30px/1.3 'Segoe UI',Arial,sans-serif; color: #43234c; letter-spacing: -.5px; margin: 0 0 10px; }
.portal-page-title p { color: #706276; margin: 0; max-width: 700px; line-height: 1.7; }
@media (max-width: 760px) {
    .portal-nav-shell { width: calc(100% - 28px); }
    .portal-utility .portal-nav-shell { font-size: 10px; }
    .portal-brand-row { padding: 16px 0; gap: 12px; flex-wrap: wrap; }
    .portal-brand strong { font-size: 17px; }
    .portal-brand img { width: 44px; height: 44px; }
    .portal-brand small { font-size: 9px; letter-spacing: 1px; }
    .portal-header .portal-switch { font-size: 12px; padding: 8px 12px; }
    .portal-desktop-nav { display: none; }
    .portal-mobile-nav { display: block; color: #fff; }
    .portal-mobile-nav summary { padding: 13px 0; color: #fff; font-weight: 600; margin: 0; }
    .portal-mobile-nav summary span { float: right; }
    .portal-mobile-nav nav { padding: 0 0 12px; }
    .portal-mobile-nav[open] summary { border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 10px; }
    .portal-mobile-nav nav a { margin: 4px 0; padding: 13px 15px; }
}
@media (prefers-reduced-motion: reduce) { .portal-header nav a, .portal-header .portal-switch { transition: none; } }
@media print { .portal-header, .portal-utility { display: none; } }
