@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/montserrat-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("../assets/fonts/montserrat-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-text: #fff;
  --color-focus: #25d8f2;
  --scrollbar-thumb: #629ba3;
  --header-height: 76.84px;
  --page-gutter-left: clamp(24px, 4.322917vw, 83px);
  --page-gutter-right: clamp(24px, 2.291667vw, 44px);
}

html {
  scroll-padding-top: calc(var(--header-height) + 12px);
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar, ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--scrollbar-thumb); }
}

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

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--color-text);
  background: #003442;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html:has(:is(.menu-dialog, .project-dialog)[open]) {
  overflow: hidden;
}

body:has(:is(.menu-dialog, .project-dialog)[open]) {
  margin-right: var(--overlay-scrollbar-width, 0px);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 6px;
}

[aria-disabled="true"] {
  cursor: default;
}

.cookie-notice {
  position: fixed;
  z-index: 10;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  gap: 10px;
  width: 390px;
  max-width: calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)));
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: #003442;
  box-shadow: 0 6px 24px rgb(0 52 66 / 22%);
  font-size: 14px;
  --color-focus: #fff;
}

.cookie-notice strong {
  font-weight: 500;
}

.cookie-notice p {
  margin: 3px 0 0;
  color: #e0ebed;
  font-size: 13px;
}

.cookie-notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-choice__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cookie-choice__actions button {
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 4px;
  color: #003442;
  background: #e0ebed;
  font-weight: 500;
}

.cookie-choice__actions button:hover {
  background: #d4e7ea;
}

@media (max-width: 767px) {
  .article-detail-page .cookie-notice {
    bottom: calc(max(24px, env(safe-area-inset-bottom)) + 72px);
  }
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: var(--header-height);
  margin-bottom: calc(-1 * var(--header-height));
  color: #fff;
  border: 1px solid rgb(224 249 255 / 24%);
  border-top-color: transparent;
  background: rgb(8 43 54 / 96%);
  box-shadow: 0 10px 28px rgb(0 24 32 / 16%);
  --color-focus: #fff;
}

/* The tint keeps white navigation readable over both photos and white pages. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgb(8 43 54 / 80%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
  }
}

.site-header::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgb(225 250 255 / 12%), transparent 32%, rgb(160 225 235 / 8%) 66%, transparent),
    linear-gradient(180deg, rgb(255 255 255 / 7%), transparent 55%);
  pointer-events: none;
  content: "";
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--page-gutter-left) var(--page-gutter-right);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #082b36;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header::before { opacity: 0.4; }
}

.brand {
  position: relative;
  top: 0.086px;
  display: block;
  flex: 0 0 167.59px;
  height: 53px;
}

.brand__symbol {
  position: absolute;
  top: 0;
  left: 0.048px;
}

.brand__wordmark {
  position: absolute;
  top: 14.066px;
  left: 53.488px;
}

.header-search {
  position: relative;
  flex: 0 0 163.64px;
  min-width: 0;
  margin-left: 41px;
}

.header-search:has(.header-search__form:not([hidden])) { flex: 0 1 330px; }

.search-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 5.41px;
  min-height: 44px;
  letter-spacing: -0.16px;
}

.search-trigger img {
  flex: none;
  transform: translateY(0.846px);
}

.search-trigger span {
  transform: translateY(0.586px);
}

.desktop-nav {
  margin-left: auto;
  transform: translateY(0.586px);
}

.desktop-nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav__list li:nth-child(1) { width: 68px; }
.desktop-nav__list li:nth-child(2) { width: 68px; }
.desktop-nav__list li:nth-child(3) { width: 66px; }

.desktop-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  letter-spacing: -0.16px;
}

.header-phone {
  display: flex;
  flex: 0 0 157px;
  align-items: center;
  height: 24px;
  margin-left: 8px;
  padding-left: 7px;
  border-left: 1px solid #fff;
  letter-spacing: -0.16px;
  white-space: nowrap;
  transform: translateY(0.586px);
}

.menu-toggle {
  display: grid;
  flex: 0 0 64px;
  min-width: 64px;
  place-items: center;
  height: 44px;
  margin-left: 65px;
}

.menu-icon {
  position: relative;
  display: block;
  width: 64px;
  height: 17px;
  transform: translateY(0.426px);
}

.menu-icon img {
  position: absolute;
  left: 0;
}

.menu-icon img:nth-child(1) { top: 0; }
.menu-icon img:nth-child(2) { top: 7.66px; left: 10px; }
.menu-icon img:nth-child(3) { top: 15.66px; }

.menu-toggle:hover .menu-icon {
  opacity: 0.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


@media (max-width: 1199px) {
  .header-search { margin-left: 24px; flex-basis: 110px; }
  .menu-toggle { margin-left: 32px; }
}

@media (max-width: 959px) {
  .desktop-nav { display: none; }
  .header-search { margin-right: auto; }
  .header-phone { flex-basis: auto; }
}

@media (max-width: 639px) {
  :root {
    --mobile-gutter: max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
    --page-gutter-left: var(--mobile-gutter);
    --page-gutter-right: var(--mobile-gutter);
  }

  .cookie-notice { left: var(--mobile-gutter); max-width: calc(100% - 2 * var(--mobile-gutter)); }
  .header-phone { display: none; }
  .header-search { position: static; flex-basis: auto; margin-left: auto; margin-right: 20px; }
  .header-search:has(.header-search__form:not([hidden])) { flex: 1 1 auto; margin-left: 0; margin-right: 12px; }
  .site-header__inner:has(.header-search__form:not([hidden])) > .brand { display: none; }
  .search-trigger span { display: none; }
  .menu-toggle { flex-basis: 44px; margin-left: 0; }
  .menu-icon { transform: translateY(0.426px) scaleX(0.625); }
}

@media (max-width: 359px) {
  .header-search { margin-right: 8px; }
}

