/* Approved C concept. Scoped to the portal home; other services retain their themes. */
.portal-night {
  --bg: #111b2c; --surface: #1d2a3d; --paper: #f1f3f7; --paper-bright: #f1f3f7;
  --muted: #b5c0d0; --line: #ffffff1c; --accent: #e7b18d; --accent-strong: #e7b18d;
  --container-max: 1180px; --page-gutter: 32px;
  background: radial-gradient(ellipse at 85% 10%, #26304544, transparent 42%), #111b2c;
}
.portal-night .site-header { position: sticky; top: 0; background: #111b2cf5; backdrop-filter: blur(18px); box-shadow: 0 8px 26px #080e181c; }
.portal-night .header-inner { min-height: 80px; }
.portal-night .brand { font-size: 22px; letter-spacing: -.04em; }
.portal-night .brand-glyph { border-radius: 50%; transform: none; width: 9px; height: 9px; }
.portal-night .brand small { display: none; }
.portal-night .nav { gap: 28px; }
.portal-night .nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 14px; letter-spacing: .02em; }
.portal-night .nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.portal-night a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.portal-night #main-content, .portal-night #files { scroll-margin-top: 130px; }
.night-skip { position: fixed; top: -100px; left: 16px; z-index: 60; padding: 10px 16px; background: #fff; color: #111b2c; }
.night-skip:focus { top: 12px; }
.portal-night .portal-hero { padding: 58px 0 0; border: 0; background: none; }
.portal-night .portal-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; width: min(1180px, calc(100% - 64px)); min-height: 0; margin-inline: auto; overflow: visible; }
.portal-night .portal-hero-copy { display: block; padding: 0; }
.portal-night .portal-hero-grid::before, .portal-night .portal-hero-media::before { display: none; }
.portal-night .portal-hero-media { position: relative; inset: auto; width: 100%; height: 280px; border-radius: 160px 160px 12px 12px; border: 1px solid #ffffff14; box-shadow: 0 20px 54px #050b174d; }
.portal-night .portal-hero-media img { object-position: center; }
.portal-night .archive-kicker { color: #e7b18d; font-size: 12px; letter-spacing: .18em; }
.portal-night .portal-hero h1 { font-size: clamp(28px, 4.2vw, 58px); line-height: 1.5; letter-spacing: -.045em; margin: 17px 0 19px; }
.portal-night .portal-hero h1 span { color: inherit; font-weight: inherit; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.portal-night .portal-lead { color: #b5c0d0; font-size: 16px; line-height: 1.9; }
.portal-night .archive-section { padding: 48px 0 58px; border: 0; }
.portal-night .archive-section-head { margin-bottom: 24px; }
.portal-night .archive-section-head h2 { font-size: 22px; }
.portal-night .archive-section-head p { display: none; }
.portal-night .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portal-night .archive-card { display: block; border-radius: 16px; background: #1d2a3d; overflow: hidden; }
.portal-night .archive-card:nth-child(2) { background: #202b3f; }
.portal-night .archive-card:nth-child(3) { background: #282b3e; }
.portal-night .archive-card:hover, .portal-night .archive-card:focus-within { background: #2a3850; border-color: #e7b18d80; transform: translateY(-2px); box-shadow: 0 12px 28px #060c192e; }
.night-service-link { display: flex; flex-direction: column; height: 100%; padding: 26px 28px 28px; text-decoration: none; }
.portal-night .night-service-link:focus-visible { outline-offset: -4px; border-radius: 16px; }
.night-service-link h3 { margin: 0 0 5px; font-size: 24px; line-height: 1.4; letter-spacing: -.035em; }
.night-service-link:hover h3, .night-service-link:focus-visible h3 { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.night-service-label { font-size: 14px; color: #acb9cb; }
.night-service-link p { margin: 24px 0 0; font-size: 16px; line-height: 1.85; color: #b5c0d0; }
.portal-night .portal-updates { padding: 0 0 62px; background: none; border: 0; }
.portal-night .portal-update-item { grid-template-columns: 150px 145px minmax(0, 1fr); gap: 20px; padding: 20px 0; min-height: 76px; }
.portal-night .portal-update-item:hover { background: #ffffff05; }
.portal-night .portal-update-item:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.portal-night .portal-update-item time { font-size: 13px; }
.portal-night .portal-update-tag { font-size: 12px; min-width: 0; border: 0; padding: 4px 0; color: #e7b18d; }
.portal-night .portal-update-copy strong { font-size: 16px; font-weight: 500; }
.portal-night .portal-update-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; margin-top: 4px; font-size: 13px; line-height: 1.75; color: #aab8cb; }
.portal-night .portal-update-archive-actions a { font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.portal-night .site-footer { background: none; padding: 34px 0 40px; }
.portal-night .footer-brand strong { font-size: 20px; }
.portal-night .footer-brand span { font-size: 14px; }
.portal-night .footer-grid { grid-template-columns: 1fr 1.5fr; gap: 36px; }
.portal-night .footer-nav-group strong { font-size: 12px; }
.portal-night .footer-nav-group a { font-size: 14px; min-height: 32px; }
@media (max-width: 1000px) {
  .portal-night .nav { gap: 18px; }
  .portal-night .portal-update-item { grid-template-columns: 150px minmax(0, 1fr); gap: 8px 20px; }
  .portal-night .portal-update-copy { grid-column: 1 / -1; }
  .portal-night .portal-hero-grid { gap: 24px; }
  .portal-night .portal-hero-media { height: 240px; }
  .night-service-link { padding: 24px 20px; }
  .night-service-link h3 { font-size: 20px; }
  .portal-night .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .portal-night { --page-gutter: 20px; }
  .portal-night .header-inner { min-height: 108px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 14px 0 8px; }
  .portal-night .nav { width: 100%; justify-content: space-between; gap: 6px 14px; }
  .portal-night .nav a { font-size: 12px; min-height: 40px; padding: 7px 0; }
  .portal-night .portal-hero { padding-top: 34px; }
  .portal-night .portal-hero-grid { width: calc(100% - 40px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 20px; }
  .portal-night .portal-hero-copy { display: contents; }
  .portal-night .portal-hero-copy > .archive-kicker { grid-column: 1; grid-row: 1; align-self: end; margin: 0; font-size: 10px; letter-spacing: .12em; }
  .portal-night .portal-hero-copy > h1 { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .portal-night .portal-lead { grid-column: 1 / -1; grid-row: 3; font-size: 14px; margin: 6px 0 0; }
  .portal-night .portal-hero h1 { font-size: clamp(23px, 6.5vw, 32px); line-height: 1.55; }
  .portal-night .portal-hero-media { grid-column: 2; grid-row: 1 / 3; height: 100%; min-height: 180px; aspect-ratio: 4 / 5; border-radius: 120px 120px 12px 12px; }
  .portal-night .archive-section { padding: 34px 0 42px; }
  .portal-night .archive-grid { grid-template-columns: 1fr; gap: 14px; }
  .night-service-link { padding: 24px; }
  .night-service-link h3 { font-size: 24px; }
  .night-service-link p { margin-top: 20px; }
  .portal-night .archive-section-head h2 { font-size: 20px; }
  .portal-night .portal-update-item { grid-template-columns: auto 1fr; gap: 8px 14px; padding: 18px 0; }
  .portal-night .portal-update-copy { grid-column: 1 / -1; }
  .portal-night .footer-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  body.portal-page.portal-night .nav { gap: 6px 8px; }
  body.portal-page.portal-night .nav a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-night .archive-card { transition: none; }
  .portal-night .archive-card:hover { transform: none; }
}
