/* Shared alpha shell. Loaded after application styles to preserve usable navigation. */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: white; color: var(--green); border: 2px solid var(--green); }
.skip-link:focus { top: 8px; }
.cw-site-header { position: sticky; top: 0; z-index: 25; flex: none; flex-wrap: wrap; gap: 12px 30px; padding-top: 12px; padding-bottom: 12px; }
.cw-site-header .site-nav { gap: 22px; }
.cw-site-header .site-nav a { display: inline-flex; min-height: 44px; }
.cw-site-header .brand { min-width:44px; min-height:44px; }
:focus-visible { outline:3px solid #0d5c63 !important; outline-offset:3px; }
/* Designer main isolates its paint stack; lift phone sheets above navigation. */
body:has(main > [aria-modal="true"]) main { z-index:30; }
.alpha-badge { font-size: .72rem; color: var(--green); background: var(--wash); padding: 7px 10px; border-radius: 20px; white-space: nowrap; }
.cw-active-user { font-size:.75rem; color:var(--green); background:var(--wash); padding:8px 12px; border-radius:10px; max-width:100%; overflow-wrap:anywhere; }
body:has(> .cw-site-footer) { padding-bottom: var(--cw-site-footer-height,53px); }
.cw-site-footer { position: fixed; inset: auto 0 0; z-index: 24; width: 100%; max-width: none; margin: 0; padding: 4px max(24px,calc((100vw - 1280px)/2)) calc(4px + env(safe-area-inset-bottom,0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .78rem; }
.cw-site-footer > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cw-site-footer > div span { font-size: .72rem; }
.cw-site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cw-site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); }
.cw-content-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.cw-content-main { width: 100%; max-width: 1120px; padding-top: 58px; flex: 1; }
.cw-content-main h1 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 800px; margin-bottom: 24px; }
.cw-content-main p { line-height: 1.7; max-width: 740px; }
.cw-content-main a { color: var(--green); }
.cw-lead { font-size: clamp(1.15rem, 2.3vw, 1.45rem); color: var(--deep-ocean); }
.cw-hero { padding: 22px 0 48px; }
.cw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 28px 0; }
.cw-content-main a.cw-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; background: var(--green); color: white; padding: 14px 22px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.cw-button:hover { background: var(--deep-ocean); }
.cw-preview-note { color: var(--muted); font-size: .86rem; }
.cw-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.cw-card-grid article, .cw-panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.cw-panel { margin: 30px 0; }
.cw-content-main .cw-steps h2 { font-size: 1.7rem; }
@media (max-width: 760px) {
  .cw-site-header { gap: 8px 16px; }
  .cw-site-header .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; }
  .cw-site-header .site-nav a { font-size: .78rem; }
  .alpha-badge { margin-left: auto; }
  .cw-card-grid { grid-template-columns: 1fr; }
  .cw-content-main { padding-top: 30px; }
  body:has(> .cw-site-footer) { padding-bottom: var(--cw-site-footer-height,97px); }
  .cw-site-footer { padding-left: 16px; padding-right: 16px; }
  .cw-site-footer > div { display: none; }
  .cw-site-footer nav { width: 100%; gap: 0 20px; }
  .cw-site-footer [data-feedback-entry] { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.cw-button { font:inherit; background:var(--green); color:white; border:0; border-radius:10px; padding:14px 22px; min-height:48px; cursor:pointer; }
.cw-button:disabled { opacity:.6; cursor:wait; }
#alpha-entry-form label, .cw-feedback-dialog label { display:block; margin:16px 0 8px; }
#alpha-user-code, .cw-feedback-dialog textarea, .cw-feedback-dialog select { width:100%; font:inherit; font-size:16px; border:1px solid var(--line); border-radius:8px; padding:12px; background:white; color:var(--ink); }
.cw-agreement-text { white-space:pre-wrap; line-height:1.65; padding:18px; background:var(--paper); border-radius:10px; }
.cw-agreement-text p { margin:0 0 20px; }
.cw-agreement-text p:last-child { margin-bottom:0; }
#alpha-entry-form .cw-check { display:flex; align-items:flex-start; gap:12px; line-height:1.5; }
.cw-check input { flex:none; width:20px; height:20px; }
.cw-feedback-dialog { width:min(620px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--line); border-radius:16px; padding:24px; color:var(--ink); }
.cw-feedback-dialog::backdrop { background:rgba(20,61,70,.45); }
.cw-feedback-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cw-feedback-heading button { min-width:44px; min-height:44px; font-size:24px; background:var(--wash); border:0; border-radius:8px; }
.cw-feedback-dialog p { line-height:1.55; }
#alpha-support-context { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.85rem; line-height:1.6; }
.cw-recording-status { flex-basis:100%; max-width:none; margin:0; line-height:1.5; }
.cw-recording-status:empty { display:none; }

/* One edge-to-edge brand hero across every current CruiseWeaver page. */
.cw-brand-hero {
  display: block;
  flex: none;
  width: 100%;
  height: clamp(180px, 26vw, 420px);
  background: #f7f6ee url('/ui/assets/cruiseweaver-ocean-hero-caps.png') center 40% / cover no-repeat;
}

.cw-content-page #main-content::before,
.journey-detail-page #main-content::before { display: none; }

/* Compact branding leaves the journey itself in focus on browsing pages. */
.cw-banner-brand { display: none; }
body.results-mode .cw-brand-hero,
body.journey-detail-page .cw-brand-hero {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center bottom;
  border-bottom: 1px solid rgba(13,92,99,.18);
}
body.results-mode .cw-banner-brand,
body.journey-detail-page .cw-banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #143d46;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .16em;
  text-shadow: 0 1px 3px rgba(255,255,255,.9);
}
.cw-banner-brand svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
html { scroll-padding-top: calc(var(--cw-site-header-height,68px) + 16px); scroll-padding-bottom: calc(var(--cw-site-footer-height,53px) + 16px); }
@media (max-width: 760px) {
  body.results-mode .cw-brand-hero,
  body.journey-detail-page .cw-brand-hero { height: 56px; }
  body.results-mode .cw-banner-brand,
  body.journey-detail-page .cw-banner-brand { font-size: 15px; gap: 8px; }
  .cw-banner-brand svg { width: 24px; height: 24px; }
}
