:root {
  --tonko-blue: #00008b;
  --tonko-blue-dark: #00005f;
  --tonko-border: #8fa4d9;
  --tonko-paper: #ffffff;
  --tonko-soft: #f4f7ff;
  --tonko-focus: #ffcc00;
  color-scheme: light;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--tonko-blue-dark);
  background: var(--tonko-paper);
  font-family: Verdana, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: #0000c5;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--tonko-focus);
  outline-offset: 3px;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--tonko-blue-dark);
  border-radius: 4px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding: 0;
  background: #ffffff;
}

.site-brand {
  display: block;
  width: min(1013px, 100%);
}

.site-brand img {
  display: block;
  width: 100%;
}

.site-layout {
  width: 100%;
}

.site-menu {
  border: 0;
}

.site-menu > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 16px;
  color: var(--tonko-blue);
  background: #ffffff;
  font-size: 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.site-menu > summary::after {
  width: 30px;
  height: 22px;
  background: linear-gradient(
    to bottom,
    currentColor 0 3px,
    transparent 3px 9px,
    currentColor 9px 12px,
    transparent 12px 19px,
    currentColor 19px 22px
  );
  content: "";
}

.site-menu__panel {
  padding: 10px;
  background: #ffffff;
}

.primary-nav {
  display: grid;
  gap: 6px;
}

.primary-nav a,
.page-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 13px;
  color: #111111;
  background: linear-gradient(#bcbcbc, #919191);
  border: 1px solid #6f6f6f;
  border-radius: 18px 4px 18px 18px;
  box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.page-nav a:hover,
.page-nav a:focus-visible,
.primary-nav a[aria-current="page"],
.page-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--tonko-blue);
}

.site-language {
  margin-top: 16px;
}

.site-language.language-selector--desktop {
  width: auto;
  margin: 16px 0 0;
  padding-top: 8px;
}

.site-main,
.content-main {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 58px) clamp(16px, 4vw, 48px);
}

.site-main h1,
.content-main h1 {
  margin: 0 0 18px;
  color: var(--tonko-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.site-main h2,
.content-main h2 {
  margin: 1.7em 0 0.55em;
  color: var(--tonko-blue-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.lead {
  max-width: 850px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  text-align: center;
}

.hero-image {
  display: block;
  width: min(100%, 760px);
  margin: 24px auto;
  border: 1px solid #d2d2d2;
}

.feature-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.feature-card {
  padding: 18px;
  background: var(--tonko-soft);
  border: 1px solid var(--tonko-border);
  border-radius: 6px;
}

.feature-card h2,
.feature-card h3 {
  margin-top: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--tonko-blue);
  border: 2px solid var(--tonko-blue);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--tonko-blue);
  background: #ffffff;
}

.page-header {
  padding: 12px 16px;
  background: #ffffff;
}

.page-header__inner {
  display: flex;
  width: min(100%, 1100px);
  margin: 0 auto;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.page-header__brand {
  color: var(--tonko-blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 0 0 28px;
}

.page-nav a {
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 12px 3px 12px 12px;
  font-size: 0.9rem;
}

.content-main figure {
  margin: 28px auto;
  text-align: center;
}

.content-main figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.responsive-table caption {
  margin-bottom: 8px;
  font-weight: 700;
  text-align: left;
}

.responsive-table th,
.responsive-table td {
  padding: 11px;
  border: 1px solid var(--tonko-border);
  text-align: left;
  vertical-align: top;
}

.responsive-table th {
  color: #ffffff;
  background: var(--tonko-blue);
}

.responsive-table tbody th {
  color: var(--tonko-blue-dark);
  background: var(--tonko-soft);
}

.salmon-monitor {
  margin: 28px 0;
  padding: clamp(16px, 3vw, 28px);
  background: var(--tonko-soft);
  border: 1px solid var(--tonko-border);
  border-radius: 6px;
}

.salmon-monitor img {
  display: block;
  width: 100%;
}

.salmon-monitor__caption {
  font-size: 0.9rem;
  text-align: center;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.photo-gallery a {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: var(--tonko-soft);
  border: 1px solid var(--tonko-border);
}

.photo-gallery img {
  display: block;
  max-height: 180px;
  object-fit: contain;
}

.scenery-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.translated-content {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.translated-content img {
  max-width: 100%;
  height: auto;
}

.translated-content iframe {
  width: min(100%, 720px);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.translated-content table {
  width: min(100%, 920px);
  margin: 24px auto;
  border-collapse: collapse;
}

.translated-content th,
.translated-content td {
  padding: 10px;
  border: 1px solid var(--tonko-border);
  text-align: left;
  vertical-align: top;
}

.translated-content hr {
  height: 2px;
  margin: 24px 0;
  background: var(--tonko-blue);
  border: 0;
}

.site-footer {
  padding: 24px 16px;
  color: #ffffff;
  background: var(--tonko-blue-dark);
  text-align: center;
}

.site-footer a {
  color: #ffffff;
}

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

@media (min-width: 900px) {
  .site-layout {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    align-items: start;
  }

  .site-sidebar {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
  }

  .site-menu {
    border: 0;
  }

  .site-menu > summary {
    display: none;
  }

  .site-menu:not([open]) > .site-menu__panel,
  .site-menu__panel {
    display: block !important;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .responsive-table tr {
    margin-bottom: 14px;
    border: 1px solid var(--tonko-border);
  }

  .responsive-table th,
  .responsive-table td {
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
