/* BlueOcean ocean style for the application pages (same language as /highschool/):
   moving-wave logo emblem, wavy ripple under the logo, waves inside dark hero panels,
   and a quiet fixed background of currents and sea. Decorative only; all motion stops
   under prefers-reduced-motion. */

/* ---------- Logo emblem ---------- */
.bo-wave-logo { flex: none; overflow: visible; filter: drop-shadow(0 2px 6px rgba(11, 103, 194, 0.28)); }
.bo-wave-logo-back { fill: #3bbcd2; fill-opacity: 0.62; animation: bo-swell-right 4.6s linear infinite; }
.bo-wave-logo-front { animation: bo-swell-left 3.2s linear infinite; }
.bo-wave-logo-foam { fill: none; stroke: #fff; stroke-opacity: 0.85; stroke-width: 1.3; stroke-linecap: round; animation: bo-swell-left 5.4s linear infinite; }
.bo-wave-logo-ring { fill: none; stroke: rgba(11, 103, 194, 0.32); stroke-width: 1.2; }
.bo-wave-brand:hover .bo-wave-logo path { animation-duration: 1.6s; }
@keyframes bo-swell-left { from { transform: translateX(0); } to { transform: translateX(-20px); } }
@keyframes bo-swell-right { from { transform: translateX(-20px); } to { transform: translateX(0); } }

/* Application-form brand bar: emblem replaces the letter mark; wordmark gets the ocean gradient and a flowing underline. */
.bo-wave-brand .ouac-brand-mark { display: none; }
a.ouac-brand.bo-wave-brand { display: inline-flex; align-items: center; gap: 12px; }
.bo-wave-brand > span:last-child { position: relative; padding-bottom: 7px; background: linear-gradient(100deg, #0a5db3 0%, #1690d8 55%, #13a09e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bo-wave-brand > span:last-child small { -webkit-text-fill-color: #6d8192; }
.bo-wave-brand > span:last-child::after { content: ""; position: absolute; left: 0; width: 7.2em; bottom: 0; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3Q3.5 0.4 7 3T14 3' fill='none' stroke='%231690d8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 14px 6px repeat-x; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); animation: bo-ripple 1.8s linear infinite; }

/* Letters on the larger emblems (hero card, student portal). */
.bo-wave-logo-letters { font: 700 12.4px Georgia, "Times New Roman", "Songti SC", serif; letter-spacing: 0.6px; fill: #0b5fb5; }
/* Pulse rings spreading out like ripples. */
.bo-wave-logo-pulse { fill: none; stroke: #8fd2ff; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: bo-pulse 3.6s ease-out infinite; }
.bo-wave-logo-pulse.is-late { animation-delay: -1.8s; }
@keyframes bo-pulse { from { transform: scale(0.96); opacity: 0.85; } to { transform: scale(1.3); opacity: 0; } }
.bo-wave-logo.has-pulse { filter: drop-shadow(0 8px 22px rgba(4, 30, 64, 0.35)); }

/* Hero logo card: no white card any more, the emblem sits on the dark panel. */
.policy-mark.bo-logo-card { width: auto; height: auto; flex: 0 0 auto; background: none; overflow: visible; }
.policy-mark.bo-logo-card .bo-wave-logo { display: block; width: 72px; height: 72px; }
.brand-logo-card.bo-logo-card { width: auto; height: auto; flex: 0 0 auto; padding: 0; background: none; box-shadow: none; border-radius: 50%; overflow: visible; }
.bo-logo-card .bo-wave-logo { display: block; width: 112px; height: 112px; }
@media (max-width: 760px) { .bo-logo-card .bo-wave-logo { width: 88px; height: 88px; } }

/* Gradient wordmark next to the emblem in header links. */
.bo-wordmark { position: relative; padding-bottom: 6px; font-weight: 750; font-size: 18px; letter-spacing: -0.01em; color: #0b67c2; background: linear-gradient(100deg, #0a5db3 0%, #1690d8 55%, #13a09e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bo-wordmark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3Q3.5 0.4 7 3T14 3' fill='none' stroke='%231690d8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 14px 6px repeat-x; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); animation: bo-ripple 1.8s linear infinite; }
.bo-wave-link { text-decoration: none !important; }

/* Header logo links. */
.bo-wave-link { display: inline-flex !important; align-items: center; gap: 10px; }
.bo-wave-link:hover .bo-wave-logo path { animation-duration: 1.6s; }

/* Ripple under the BlueOcean logo image. */
.bo-wave-holder { position: relative; }
.bo-ripple { position: absolute; left: 10%; right: 10%; bottom: 3px; height: 7px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7' viewBox='0 0 14 7'%3E%3Cpath d='M0 3.5Q3.5 0.6 7 3.5T14 3.5' fill='none' stroke='%231690d8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 14px 7px repeat-x; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); animation: bo-ripple 1.8s linear infinite; }
@keyframes bo-ripple { to { background-position: 14px 0; } }

/* ---------- Waves inside the dark hero panels ---------- */
.app-shell > .hero, .intake-hero, .ouac-intro { position: relative; isolation: isolate; overflow: hidden; }
.app-shell > .hero::before, .intake-hero::before, .ouac-intro::before {
  content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: calc(100% + 720px); height: 120px; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='120' viewBox='0 0 720 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70Q180 40 360 70T720 70V120H0Z' fill='%23ffffff' fill-opacity='0.07'/%3E%3Cpath d='M0 92Q90 78 180 92T360 92T540 92T720 92V120H0Z' fill='%23ffffff' fill-opacity='0.06'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.1'%3E%3Cpath d='M0 40Q180 14 360 40T720 40'/%3E%3Cpath d='M0 54Q180 28 360 54T720 54'/%3E%3C/g%3E%3C/svg%3E") 0 100% / 720px 120px repeat-x;
  animation: bo-panel-sea 22s linear infinite;
}
.ouac-intro::before { height: 150px; background-size: 720px 150px; }
@keyframes bo-panel-sea { from { transform: translateX(-720px); } to { transform: translateX(0); } }

/* ---------- Fixed page background: currents and a low sea ---------- */
.bo-ocean-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bo-ocean-currents { position: absolute; top: 0; left: -40px; width: calc(100% + 80px); height: 100%; animation: bo-drift 18s ease-in-out infinite alternate; }
.bo-ocean-lines path { fill: none; stroke: #0b67c2; stroke-width: 1.2; stroke-opacity: 0.1; }
.bo-ocean-lines path:nth-child(odd) { stroke: #13a09e; }
.bo-ocean-flow path { fill: none; stroke: #1690d8; stroke-width: 2; stroke-linecap: round; stroke-opacity: 0.35; stroke-dasharray: 140 1700; animation: bo-flow 11s linear infinite; }
.bo-ocean-flow path:nth-child(2) { stroke: #13a09e; stroke-dasharray: 90 1750; animation-duration: 14s; animation-delay: -6s; }
.bo-ocean-sea { position: absolute; left: 0; bottom: 0; width: 200%; height: 110px; fill: currentColor; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); animation: bo-sea 36s linear infinite; }
.bo-ocean-sea.is-far { color: rgba(80, 165, 255, 0.10); }
.bo-ocean-sea.is-near { height: 80px; color: rgba(19, 160, 158, 0.08); animation-duration: 24s; animation-direction: reverse; }
@keyframes bo-drift { from { transform: translate(-24px, -6px); } to { transform: translate(24px, 6px); } }
@keyframes bo-flow { from { stroke-dashoffset: 1840; } to { stroke-dashoffset: 0; } }
@keyframes bo-sea { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .bo-ocean-sea { height: 72px; }
  .bo-ocean-sea.is-near { height: 54px; }
}
@media print {
  .bo-ocean-bg, .bo-ripple, .bo-wave-logo-pulse { display: none !important; }
  .app-shell > .hero::before, .intake-hero::before, .ouac-intro::before, .bo-wave-brand > span:last-child::after { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .bo-wave-logo path, .bo-wave-logo-pulse, .bo-wordmark::after, .bo-ripple, .bo-wave-brand > span:last-child::after, .bo-ocean-currents, .bo-ocean-flow path, .bo-ocean-sea,
  .app-shell > .hero::before, .intake-hero::before, .ouac-intro::before { animation: none !important; }
}
