/* Oceansa digital visiting card.
   Approved logo colours: #5389BD blue, #A8A857 olive, #373435 ink.
   Deep blue #255089 and link blue #1A46BF follow the approved email signatures.
   Light background only. The dark-contrast logo is not approved. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  background: #e7eef4;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #e7eef4;
  color: #1f2937;
  font-family: "Segoe UI", Calibri, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-right: max(12px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(12px, env(safe-area-inset-left));
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

address {
  font-style: normal;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2;
  background: #ffffff;
  color: #255089;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.card {
  width: 100%;
  max-width: 26.5rem;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d5dee7;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(37, 80, 137, 0.1);
}

.card-edge {
  display: flex;
  height: 8px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.card-edge span:first-child {
  flex: 3 1 0;
  background: #5389bd;
}

.card-edge span:last-child {
  flex: 1 1 0;
  background: #a8a857;
}

.card-body {
  padding: 18px 16px 16px;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-link:focus-visible {
  outline: 3px solid #373435;
  outline-offset: 4px;
  border-radius: 8px;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 348;
  margin: 0 auto;
}

.identity {
  margin-top: 16px;
  text-align: center;
}

h1,
.page-title {
  margin: 0;
  color: #373435;
  font-size: 1.7rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role {
  margin: 6px 0 0;
  color: #255089;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.company {
  margin: 6px 0 0;
  color: #1a46bf;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.rule {
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  background: #a8a857;
  border: 0;
}

.actions {
  margin-top: 16px;
}

.actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  background: #255089;
  color: #ffffff;
  border: 2px solid #255089;
}

.btn-secondary {
  flex: 1 1 0;
  background: #ffffff;
  color: #255089;
  border: 2px solid #255089;
}

.btn:hover {
  background: #1c3f72;
  border-color: #1c3f72;
  color: #ffffff;
}

.btn:focus-visible,
.fact a:focus-visible,
.social-link:focus-visible,
.person:focus-visible {
  outline: 3px solid #373435;
  outline-offset: 2px;
}

.hint {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.85rem;
  text-align: center;
}

.facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid #e2e8ee;
}

.facts li {
  border-bottom: 1px solid #e2e8ee;
}

.fact,
.fact-static {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 11px 0;
  color: inherit;
  text-decoration: none;
}

.fact-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f1f8;
  color: #255089;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
}

.fact-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fact-label {
  display: block;
  color: #255089;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  margin-top: 1px;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.fact:hover .fact-value,
.fact:focus-visible .fact-value {
  color: #1a46bf;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social {
  margin-top: 16px;
  text-align: center;
}

.social-label {
  margin: 0 0 4px;
  color: #255089;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}

.social-link img {
  width: 28px;
  height: 28px;
  max-width: none;
}

.card-address {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: break-word;
}

.card-foot {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: break-word;
}

.card-foot a {
  color: #1a46bf;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-foot a:hover,
.card-foot a:focus-visible {
  color: #255089;
}

.card-foot a:focus-visible {
  outline: 3px solid #373435;
  outline-offset: 2px;
}

.lede {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
  text-align: center;
}

.people {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.person {
  display: block;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid #d5dee7;
  border-radius: 12px;
  background: #f7fafc;
  color: inherit;
  text-decoration: none;
}

.person:hover {
  border-color: #255089;
  background: #eef5fb;
}

.person-name {
  display: block;
  color: #373435;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.person-role {
  display: block;
  margin-top: 2px;
  color: #255089;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.director-block {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #d5dee7;
  border-radius: 12px;
  background: #f7fafc;
}

.director-heading {
  margin: 0;
  color: #373435;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.director-role {
  margin: 4px 0 0;
  color: #255089;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.mode-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.mode-actions-spaced {
  margin-top: 18px;
}

.mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.mode-btn-primary {
  background: #255089;
  color: #ffffff;
  border: 2px solid #255089;
}

.mode-btn-secondary {
  background: #ffffff;
  color: #255089;
  border: 2px solid #255089;
}

.mode-btn:hover {
  background: #1c3f72;
  border-color: #1c3f72;
  color: #ffffff;
}

.mode-btn:focus-visible {
  outline: 3px solid #373435;
  outline-offset: 2px;
}

@media (min-width: 390px) {
  .mode-actions {
    flex-direction: row;
  }

  .mode-btn {
    flex: 1 1 0;
  }
}

@media (min-width: 768px) {
  body {
    padding: 40px 24px;
  }

  .card-body {
    padding: 22px 22px 18px;
  }

  h1,
  .page-title {
    font-size: 1.85rem;
  }
}

@media (forced-colors: active) {
  .card,
  .btn,
  .person,
  .fact-icon {
    border: 1px solid ButtonText;
  }
}

@media print {
  body {
    background: #ffffff;
    padding: 0;
  }

  .card {
    box-shadow: none;
    max-width: none;
  }

  .actions,
  .skip {
    display: none;
  }
}
