/* ReefRadar standalone pages (About, map credits, etc.) */
html:has(body.static-site-page) {
  overflow-x: clip;
}

body.static-site-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

body.static-site-page > .site-header {
  flex: 0 0 auto;
}

body.static-site-page > main {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  padding: 0 24px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.static-site-page > .company-footer {
  flex: 0 0 auto;
  margin: 48px -24px 0 !important;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

.static-site-page header.site-header nav a.nav,
.static-site-page header.site-header nav button.nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.static-site-page header.site-header nav a.nav:hover,
.static-site-page header.site-header nav button.nav:hover {
  color: var(--mint);
}

.static-site-page header.site-header nav .nav.nav-bubble .icon {
  width: 17px;
  height: 17px;
  margin: 0 6px 0 0 !important;
  flex: 0 0 17px;
  opacity: 0.95;
}

[data-theme=light] .static-site-page header.site-header nav a.nav,
[data-theme=light] .static-site-page header.site-header nav button.nav {
  color: #deefff;
}

[data-theme=light] .static-site-page header.site-header nav a.nav:hover,
[data-theme=light] .static-site-page header.site-header nav button.nav:hover,
[data-theme=light] .static-site-page header.site-header nav button.nav.nav-bubble:hover {
  color: #fff;
}

[data-theme=light] .static-site-page header.site-header nav a.nav[aria-current=page] {
  color: #fff;
}

[data-theme=light] body.static-site-page header.site-header .header-actions {
  gap: 10px;
}

.content-main {
  max-width: none;
  padding: 0;
}

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 0 16px;
}

.content-page .eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 2px;
}

.content-page h1 {
  margin: 0 0 18px;
  font: 800 clamp(30px, 4vw, 40px) Manrope, sans-serif;
  line-height: 1.12;
  letter-spacing: -1px;
}

.content-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 62ch;
}

.content-page h2 {
  margin: 28px 0 10px;
  font: 700 18px Manrope, sans-serif;
  letter-spacing: -0.02em;
}

.content-page p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 68ch;
}

.content-page a:not(.text-button) {
  color: var(--mint);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-link-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.content-link-list--plain a {
  font-size: 15px;
  font-weight: 600;
}

.content-link-list .content-link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}

.content-link-list .content-link-button:hover {
  color: #9ef5de;
}

[data-theme=light] .content-link-list .content-link-button {
  color: #076cb7;
}

[data-theme=light] .content-link-list .content-link-button:hover {
  color: #055a9a;
}

.license-dialog {
  width: min(650px, 94vw);
  max-height: 85dvh;
  overflow: auto;
  background: var(--panel);
  color: inherit;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.license-dialog-body {
  margin-top: 8px;
}

.license-dialog-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.license-dialog-text h3,
.license-dialog-text h4 {
  margin: 18px 0 8px;
  font: 700 15px Manrope, sans-serif;
  color: inherit;
}

.license-dialog-text h3:first-child,
.license-dialog-text h4:first-child {
  margin-top: 0;
}

.license-dialog-text p {
  margin: 0 0 12px;
}

.license-dialog-text hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.license-loading,
.license-error {
  font-size: 14px;
  color: var(--muted);
}

[data-theme=light] .license-dialog {
  background: #fff;
  color: #194660;
}

[data-theme=light] .license-dialog-text {
  color: #4a7084;
}

.content-back {
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.content-back .text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
}

[data-theme=light] .content-page h1,
[data-theme=light] .content-page h2 {
  color: #123e62;
}

[data-theme=light] .content-page a:not(.text-button) {
  color: #076cb7;
}

[data-theme=light] .content-back .text-button {
  color: #076cb7;
}

@media (max-width: 760px) {
  body.static-site-page > main {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.static-site-page > .company-footer {
    margin-left: -12px !important;
    margin-right: -12px !important;
  }
}
