/* Edge-to-edge Maritime Wire. Light language matches Company Presentation. */
:root { --maragensea-newsbar-height: 80px; }
body.maragensea-has-newsbar { padding-bottom: calc(var(--maragensea-newsbar-height) + env(safe-area-inset-bottom, 0px)); }
.maragensea-newsbar, .maragensea-newsbar * { box-sizing: border-box; }

.maragensea-newsbar {
  --dispatch-ink: #050e0f;
  --dispatch-ivory: #f7f7df;
  --dispatch-gold: #a68862;
  --dispatch-brass: #d2b389;
  position: fixed;
  z-index: 99990;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--dispatch-ink);
  color: var(--dispatch-ivory);
  font-family: Montserrat, Arial, sans-serif;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .22);
  isolation: isolate;
}
.maragensea-newsbar__flag {
  position: relative;
  display: grid;
  height: 64px;
  grid-template-columns: clamp(190px, 17vw, 260px) minmax(0, 1fr) clamp(216px, 18vw, 278px) 48px;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(166, 136, 98, .48);
  background: rgba(5, 14, 15, .97);
  isolation: isolate;
}

/* Same skewed ivory light as the presentation CTA, also across the whole bar. */
.maragensea-newsbar__flag::before,
.maragensea-newsbar__label::before,
.maragensea-newsbar button.maragensea-newsbar__status::before {
  position: absolute;
  z-index: 0;
  top: -60%;
  bottom: -60%;
  left: -42%;
  width: 24%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(247, 247, 223, .24), transparent);
  pointer-events: none;
  transform: skewX(-18deg);
  animation: maritime-wire-light-pass 4.2s ease-in-out infinite;
}
.maragensea-newsbar__flag::before { width: 18%; animation-duration: 8.4s; }
.maragensea-newsbar__label::before,
.maragensea-newsbar button.maragensea-newsbar__status::before {
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 226, .2), transparent);
  animation-duration: 6.4s;
}
.maragensea-newsbar__flag > * { position: relative; z-index: 1; }

.maragensea-newsbar__label,
.maragensea-newsbar button.maragensea-newsbar__status {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0;
  padding: 0 20px;
  overflow: hidden;
  background: #b39b78;
  color: #101a18;
  isolation: isolate;
}
.maragensea-newsbar__label { border-right: 1px solid rgba(166, 136, 98, .26); }
.maragensea-newsbar button.maragensea-newsbar__status { border-left: 1px solid rgba(166, 136, 98, .26); }
.maragensea-newsbar button.maragensea-newsbar__status::before { animation-delay: 1.4s; }
.maragensea-newsbar__label::after,
.maragensea-newsbar button.maragensea-newsbar__status::after {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: var(--dispatch-gold);
  box-shadow: 0 0 8px rgba(210, 179, 137, .6);
  content: "";
  transform-origin: left;
  animation: maritime-wire-gold-trace 4.2s ease-in-out infinite;
  pointer-events: none;
}
.maragensea-newsbar button.maragensea-newsbar__status::after { transform-origin: right; animation-delay: 1.4s; }
.maragensea-newsbar__edition,
.maragensea-newsbar__status-text {
  position: relative;
  color: #101a18;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: none;
}
.maragensea-newsbar__label .maragensea-newsbar__signal-bars i,
.maragensea-newsbar button.maragensea-newsbar__status .maragensea-newsbar__status-dot { background: #21342a; }
.maragensea-newsbar button.maragensea-newsbar__status .maragensea-newsbar__status-dot::after { border-color: #21342a; }
.maragensea-newsbar__signal-bars {
  position: relative;
  display: flex;
  width: 16px;
  height: 15px;
  flex: 0 0 16px;
  gap: 3px;
  align-items: flex-end;
}
.maragensea-newsbar__signal-bars i {
  width: 2px;
  height: 6px;
  background: var(--dispatch-brass);
  transform-origin: bottom;
  animation: maritime-wire-signal 1.8s ease-in-out infinite;
}
.maragensea-newsbar__signal-bars i:nth-child(2) { height: 10px; animation-delay: -.25s; }
.maragensea-newsbar__signal-bars i:nth-child(3) { height: 14px; animation-delay: -.5s; }
.maragensea-newsbar__status-dot {
  position: relative;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--dispatch-brass);
  box-shadow: 0 0 7px rgba(210, 179, 137, .5);
}
.maragensea-newsbar__status-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--dispatch-gold);
  border-radius: 50%;
  content: "";
  animation: maritime-wire-online-pulse 2.4s ease-out infinite;
}

.maragensea-newsbar__viewport {
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dispatch-gold) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
}
.maragensea-newsbar.is-ready .maragensea-newsbar__viewport { overflow: hidden; }
.maragensea-newsbar__viewport:focus-visible { outline: 1px solid var(--dispatch-brass); outline-offset: -8px; }
.maragensea-newsbar__track { display: flex; width: max-content; height: 100%; align-items: center; will-change: transform; }
.maragensea-newsbar.is-ready .maragensea-newsbar__track { animation: dispatch-news-ticker var(--maragensea-ticker-duration, 65s) linear infinite; }
.maragensea-newsbar__viewport:hover .maragensea-newsbar__track,
.maragensea-newsbar__viewport:focus .maragensea-newsbar__track { animation-play-state: paused; }
.maragensea-newsbar__set { display: flex; height: 100%; align-items: center; flex: none; }
.maragensea-newsbar__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
  color: var(--dispatch-ivory);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3px;
  line-height: 1.5;
  white-space: nowrap;
}
.maragensea-newsbar__item b { color: var(--dispatch-gold); font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.maragensea-newsbar__separator { display: block; width: 20px; height: 1px; flex: none; background: var(--dispatch-gold); opacity: .4; }

.maragensea-newsbar .maragensea-newsbar__pause {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dispatch-gold);
  cursor: pointer;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease;
}
.maragensea-newsbar.is-ready .maragensea-newsbar__pause { display: flex; }
.maragensea-newsbar .maragensea-newsbar__pause:hover { background: rgba(210, 179, 137, .09); color: var(--dispatch-ivory); }
.maragensea-newsbar .maragensea-newsbar__pause:focus,
.maragensea-newsbar .maragensea-newsbar__pause:active { border: 0; background: transparent; color: var(--dispatch-brass); box-shadow: none; }
.maragensea-newsbar__pause:not(:focus-visible) { outline: none; }
.maragensea-newsbar .maragensea-newsbar__pause:focus-visible { outline: 1px solid var(--dispatch-brass); outline-offset: -4px; }
.maragensea-newsbar__pause svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.maragensea-newsbar__play-icon,
.maragensea-newsbar.is-paused .maragensea-newsbar__pause-icon { display: none; }
.maragensea-newsbar.is-paused .maragensea-newsbar__play-icon { display: block; }


/* Contact drawer sits outside the clipped light-sweep strip. */
.maragensea-newsbar button.maragensea-newsbar__status {
  appearance: none;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  text-decoration: none;
  transition: background-color .2s ease;
}
.maragensea-newsbar button.maragensea-newsbar__status { border: 0; border-left: 1px solid rgba(166, 136, 98, .26); }
.maragensea-newsbar button.maragensea-newsbar__status:hover,
.maragensea-newsbar button.maragensea-newsbar__status:focus,
.maragensea-newsbar.is-contacts-open button.maragensea-newsbar__status {
  background: #bda684;
  color: #101a18;
  box-shadow: none;
}
.maragensea-newsbar button.maragensea-newsbar__status:not(:focus-visible) { outline: none; }
.maragensea-newsbar button.maragensea-newsbar__status:focus-visible { outline: 1px solid var(--dispatch-brass); outline-offset: -5px; }

.maragensea-newsbar__contacts {
  position: absolute;
  z-index: 3;
  right: clamp(12px, 2.5vw, 48px);
  bottom: calc(100% + 12px);
  width: 348px;
  max-width: calc(100vw - 24px);
  padding: 20px 18px 14px;
  border: 1px solid rgba(166, 136, 98, .4);
  background: rgba(5, 14, 15, .98);
  color: var(--dispatch-ivory);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .7, .3, 1), visibility 0s .22s;
}
.maragensea-newsbar__contacts::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 48px;
  height: 1px;
  background: var(--dispatch-brass);
  content: "";
  transform: scaleX(.4);
  transform-origin: left;
  transition: transform .3s ease;
}
/* A transparent bridge keeps the drawer open while crossing the gap. */
.maragensea-newsbar__contacts::after { position: absolute; top: 100%; right: 0; left: 0; height: 14px; content: ""; }
.maragensea-newsbar.is-contacts-open .maragensea-newsbar__contacts {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.maragensea-newsbar.is-contacts-open .maragensea-newsbar__contacts::before { transform: scaleX(1); }
.maragensea-newsbar__contacts-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 15px; }
.maragensea-newsbar__contacts-heading p { margin: 0; color: var(--dispatch-brass); font: 500 10px/1.5 Montserrat, Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.maragensea-newsbar__contacts-heading > span { color: rgba(247, 247, 223, .5); font-size: 9px; line-height: 1.5; letter-spacing: .3px; }
.maragensea-newsbar__contact-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.maragensea-newsbar__contact-list > li { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(166, 136, 98, .19); }
.maragensea-newsbar button.maragensea-newsbar__contact {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 13px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dispatch-ivory);
  font-family: inherit;
  font-weight: 400;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition: background-color .18s ease, color .18s ease;
}
.maragensea-newsbar button.maragensea-newsbar__contact:hover,
.maragensea-newsbar button.maragensea-newsbar__contact:focus,
.maragensea-newsbar button.maragensea-newsbar__contact:active { background: rgba(166, 136, 98, .08); color: var(--dispatch-ivory); box-shadow: none; }
.maragensea-newsbar button.maragensea-newsbar__contact:focus-visible { outline: 1px solid var(--dispatch-brass); outline-offset: -1px; }
.maragensea-newsbar button.maragensea-newsbar__contact:not(:focus-visible) { outline: none; }
.maragensea-newsbar__contact-info { display: grid; gap: 6px; min-width: 0; }
.maragensea-newsbar__contact-kind { color: var(--dispatch-gold); font-size: 8px; line-height: 1.4; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; }
.maragensea-newsbar__contact-value { font-size: 13px; line-height: 1.6; letter-spacing: .2px; white-space: nowrap; user-select: text; }
.maragensea-newsbar__copy-symbol { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--dispatch-gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.maragensea-newsbar__copy-outline { opacity: .7; transition: opacity .16s ease; }
.maragensea-newsbar__copy-check { opacity: 0; stroke: var(--dispatch-brass); stroke-dasharray: 22; stroke-dashoffset: 22; transition: opacity .16s ease, stroke-dashoffset .3s ease; }
.maragensea-newsbar__contact.is-copied .maragensea-newsbar__copy-outline { opacity: 0; }
.maragensea-newsbar__contact.is-copied .maragensea-newsbar__copy-check { opacity: 1; stroke-dashoffset: 0; }
.maragensea-newsbar__contact.is-copied .maragensea-newsbar__contact-kind { color: var(--dispatch-brass); }
.maragensea-newsbar__contacts-hint { margin: 11px 8px 0; color: rgba(247, 247, 223, .45); font-size: 9px; line-height: 1.5; letter-spacing: .2px; }
.maragensea-newsbar__copy-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* Pause stops the updates AND the decorative motion. */
.maragensea-newsbar.is-paused *,
.maragensea-newsbar.is-paused *::before,
.maragensea-newsbar.is-paused *::after,
.maragensea-newsbar.is-inactive *,
.maragensea-newsbar.is-inactive *::before,
.maragensea-newsbar.is-inactive *::after { animation-play-state: paused !important; }

@keyframes dispatch-news-ticker { to { transform: translateX(-50%); } }
@keyframes maritime-wire-light-pass {
  0%, 36% { left: -42%; opacity: 0; }
  44% { opacity: 1; }
  68%, 100% { left: 118%; opacity: 0; }
}
@keyframes maritime-wire-gold-trace {
  0%, 100% { opacity: .16; transform: scaleX(.18); }
  44%, 60% { opacity: .8; transform: scaleX(1); }
}
@keyframes maritime-wire-signal {
  0%, 100% { opacity: .5; transform: scaleY(.45); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes maritime-wire-online-pulse {
  0% { opacity: .7; transform: scale(.5); }
  80%, 100% { opacity: 0; transform: scale(1.5); }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .maragensea-newsbar__flag { grid-template-columns: 174px minmax(0, 1fr) 196px 44px; }
  .maragensea-newsbar__label, .maragensea-newsbar button.maragensea-newsbar__status { gap: 10px; padding: 0 14px; }
  .maragensea-newsbar__edition, .maragensea-newsbar__status-text { font-size: 9px; letter-spacing: 1.2px; }
}
@media (max-width: 767px) {
  :root { --maragensea-newsbar-height: 96px; }
  body.maragensea-has-newsbar .maragensea-story__content { padding-bottom: max(124px, calc(var(--maragensea-newsbar-height) + 36px)); }
  body.maragensea-has-newsbar .maragensea-story__scroll-hint,
  body.maragensea-has-newsbar .maragensea-story__continue { bottom: calc(var(--maragensea-newsbar-height) + 9px); }
  .maragensea-newsbar { height: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .maragensea-newsbar__flag { height: 78px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-rows: 36px 41px; }
  .maragensea-newsbar__label { grid-column: 1; grid-row: 1; justify-content: flex-start; padding: 0 14px; border-right: 0; gap: 9px; }
  .maragensea-newsbar button.maragensea-newsbar__status { grid-column: 2 / -1; grid-row: 1; justify-content: flex-end; gap: 10px; padding: 0 16px; border-left: 0; }
  .maragensea-newsbar__edition, .maragensea-newsbar__status-text { font-size: 9px; letter-spacing: 1px; }
  .maragensea-newsbar__signal-bars { width: 13px; flex-basis: 13px; gap: 2px; }
  .maragensea-newsbar__label::after, .maragensea-newsbar button.maragensea-newsbar__status::after { right: 14px; left: 14px; opacity: .4; }
  .maragensea-newsbar__viewport { grid-column: 1 / 3; grid-row: 2; border-top: 1px solid rgba(166, 136, 98, .15); }
  .maragensea-newsbar__item { gap: 12px; padding: 0 22px; font-size: 11px; letter-spacing: 0; }
  .maragensea-newsbar__separator { width: 14px; }
  .maragensea-newsbar .maragensea-newsbar__pause { grid-column: 3; grid-row: 2; height: 40px; }
}
@media (max-width: 359px) {
  .maragensea-newsbar__edition, .maragensea-newsbar__status-text { font-size: 8px; letter-spacing: .65px; }
  .maragensea-newsbar__label { padding-left: 12px; gap: 7px; }
  .maragensea-newsbar button.maragensea-newsbar__status { padding-right: 12px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .maragensea-newsbar *,
  .maragensea-newsbar *::before,
  .maragensea-newsbar *::after { animation: none !important; transition: none !important; }
  .maragensea-newsbar__flag::before,
  .maragensea-newsbar__label::before,
  .maragensea-newsbar button.maragensea-newsbar__status::before,
  .maragensea-newsbar__status-dot::after { display: none; }
  .maragensea-newsbar__label::after, .maragensea-newsbar button.maragensea-newsbar__status::after { opacity: .25; transform: none; }
  .maragensea-newsbar.is-ready .maragensea-newsbar__viewport { overflow-x: auto; }
  .maragensea-newsbar__set[aria-hidden="true"],
  .maragensea-newsbar.is-ready .maragensea-newsbar__pause { display: none; }
}

/* Approved translucent bronze end boxes. */
/* Remove floating rails only; keep .maragensea-story__rail and footer socials. */
#social_side_links,
#maragensea-page-nav { display: none !important; }
.maragensea-newsbar__label,
.maragensea-newsbar button.maragensea-newsbar__status {
  background: linear-gradient(115deg, rgba(178, 142, 80, .24), rgba(178, 142, 80, .07));
  color: #c8b292;
  box-shadow: inset 0 1px 0 rgba(210, 179, 137, .28);
}
.maragensea-newsbar__label { border-right-color: rgba(166, 136, 98, .2); }
.maragensea-newsbar button.maragensea-newsbar__status { border-left-color: rgba(166, 136, 98, .2); }
.maragensea-newsbar__edition,
.maragensea-newsbar__status-text {
  color: #c8b292;
  font-weight: 500;
  text-shadow: none;
}
.maragensea-newsbar__label .maragensea-newsbar__signal-bars i,
.maragensea-newsbar button.maragensea-newsbar__status .maragensea-newsbar__status-dot { background: #b59a74; }
.maragensea-newsbar button.maragensea-newsbar__status .maragensea-newsbar__status-dot { box-shadow: none; }
.maragensea-newsbar button.maragensea-newsbar__status .maragensea-newsbar__status-dot::after { border-color: rgba(181, 154, 116, .55); }
.maragensea-newsbar__label::before,
.maragensea-newsbar button.maragensea-newsbar__status::before {
  background: linear-gradient(90deg, transparent, rgba(210, 179, 137, .1), transparent);
  animation-duration: 9s;
}
.maragensea-newsbar button.maragensea-newsbar__status:hover,
.maragensea-newsbar button.maragensea-newsbar__status:focus,
.maragensea-newsbar.is-contacts-open button.maragensea-newsbar__status {
  background: linear-gradient(115deg, rgba(178, 142, 80, .3), rgba(178, 142, 80, .11));
  color: #c8b292;
  box-shadow: inset 0 1px 0 rgba(210, 179, 137, .35);
}
