/* The dive desk: brass fittings, a paper log and a chart lit from the reef. */
:root {
  --ink: #253732;
  --muted: #596962;
  --teal: #285f56;
  --paper: #efe6d0;
  --white: #fcf5e4;
  --line: #d4c7a6;
  --dark: #102e32;
  --soft: #e5e7d3;
  --gold: #e2b669;
  --side: clamp(305px, 26.3vw, 400px);
}
body {
  background: #112c30;
  color: var(--ink);
}
.topbar {
  position: relative;
  z-index: 2;
  background: #0c2024;
  border-bottom: 1px solid #a8895349;
}
.nav-inner,
.page,
.hero-content {
  max-width: 1760px;
}
.nav-inner,
.page {
  padding-inline: clamp(18px, 3.2vw, 55px);
}
.nav-inner {
  min-height: 67px;
  gap: clamp(26px, 5vw, 85px);
}
.brand {
  gap: 10px;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand .brand-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.brand strong {
  font: 400 22px/0.92 var(--serif);
  letter-spacing: -0.75px;
  color: #f6e9c9;
}
.brand small {
  font: 500 9px/1 var(--mono);
  letter-spacing: 3.1px;
  text-transform: uppercase;
  color: #dfbc79;
}
.nav-item {
  border-radius: 4px;
  color: #c7d5c9;
  min-height: 34px;
}
.nav-item.active,
.nav-save.active {
  color: #f6d799;
  background: #30413a;
  box-shadow: inset 0 0 0 1px #b9985e44;
}
.nav-item.active .icon {
  color: #e9c27b;
}
.nav-item:hover,
.nav-save:hover {
  background: #253d3b;
}
.offline-btn {
  background: #e8c783;
  color: #1b302c;
  border: 1px solid #e3bf72;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px #dcc08a78;
}
.offline-btn:hover {
  background: #f4d69a;
}
.nav-save #saved-count {
  background: #d8bc79;
}
.ocean-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b2d35;
  border-bottom: 1px solid #ad8b54;
  min-height: 228px;
  display: flex;
  align-items: center;
  color: #f9ebce;
}
.sea-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(6, 22, 24, 0.81),
      rgba(7, 29, 32, 0.68) 23%,
      rgba(9, 32, 34, 0.2) 52%,
      transparent 72%
    ),
    linear-gradient(0deg, rgba(9, 28, 30, 0.37), transparent 32%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 28px clamp(18px, 3.2vw, 55px) 27px;
  margin: auto;
  pointer-events: none;
}
.ocean-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.3px;
  color: #f1cb87;
  gap: 10px;
}
.ocean-kicker > span:not(.kicker-line) {
  font-size: 10px;
}
.ocean-kicker .kicker-line {
  width: 27px;
  background: #c9a86a;
  height: 1px;
}
#guide-edition {
  color: #ffedb3;
  border-left: 1px solid #c9a86a;
  padding-left: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-weight: 600;
}
.guide-opening {
  max-width: 52ch;
  padding: 16px;
  background: #f7eed8;
  color: #294940;
  line-height: 1.5;
}
.ocean-hero h1 {
  font: 400 clamp(50px, 4.9vw, 77px)/1.02 var(--serif);
  letter-spacing: -2.5px;
  margin: 12px 0 8px;
  color: #fbedd1;
  text-shadow: 0 2px 18px #071a1f99;
}
.ocean-hero h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: #ecc47d;
  letter-spacing: -2px;
}
.ocean-hero p {
  font-size: 15px;
  line-height: 1.4;
  color: #e1e7d7;
  margin: 0 0 14px;
  max-width: 530px;
}
.print-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px var(--sans);
  color: #f0d391;
  padding: 7px 11px;
  border: 1px solid #be9f6199;
  border-radius: 4px;
  background: #0e2526aa;
  pointer-events: auto;
}
.print-link:hover {
  background: #3e4431;
  color: #fff0be;
}
.print-link .icon {
  width: 15px;
  height: 15px;
}
.motion-button {
  position: absolute;
  z-index: 1;
  right: clamp(17px, 3vw, 48px);
  bottom: 16px;
  width: 30px;
  height: 30px;
  font: 700 15px var(--sans);
  display: grid;
  place-items: center;
  color: #f1d79a;
  background: #0a282bbd;
  border: 1px solid #bfa67199;
  border-radius: 50%;
}
.page {
  position: relative;
  background: linear-gradient(180deg, #142e30 0, #112b2f 110px, #102a2e 100%);
  padding-top: 18px;
}
.toolbar {
  margin: 0 0 15px;
  gap: 13px;
}
.searchbox {
  width: clamp(242px, 25.3vw, 355px);
  background: #1a393b;
  border-color: #6d7460;
  border-radius: 5px;
  color: #dfc58d;
}
.searchbox input {
  color: #f5eddb;
}
.searchbox input::placeholder {
  color: #c4ccbe;
}
.search-key {
  border-color: #79877570;
  color: #abae90;
}
.chip,
.filter-feature {
  border-radius: 5px;
  color: #e9e9d7;
  background: #1b393a;
  border: 1px solid #69796b;
  min-height: 36px;
}
.chip .icon {
  color: #b6c4a9;
}
.chip.is-set,
.chip[aria-expanded='true'] {
  color: #ffe3a9;
  background: #344738;
  border-color: #c2a066;
}
.chip.is-set .icon {
  color: #f0d393;
}
.filter-feature {
  background: #443e2d;
  color: #f5d796;
  border-color: #8e7950;
}
.filter-feature .icon {
  color: #e9bd6e;
  fill: #d3a25a44;
}
.filter-feature.active {
  color: #26362d;
  background: #e7c47a;
}
.filter-feature.active .icon {
  color: #5c4b28;
  fill: currentColor;
}
.clear-btn {
  color: #e8d29b;
}
.facet-menu {
  background: #fcf4e0;
  border-color: #b7a478;
  color: #283c34;
}
.facet-option:hover,
.facet-option:focus-visible,
.facet-option.chosen {
  background: #e8dfc1;
}
.workspace {
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: 15px;
  height: clamp(490px, calc(100svh - 378px), 850px);
}
.workspace .map-panel {
  grid-column: 1;
  grid-row: 1;
}
.workspace .directory {
  grid-column: 2;
  grid-row: 1;
}
.directory,
.map-panel {
  border-radius: 7px;
  border: 1px solid #a7976d;
  box-shadow: 0 5px 22px #04131838;
}
.directory {
  background: #f7efd9;
  color: #2b3830;
}
.directory-head {
  background: linear-gradient(110deg, #f7efd8, #eee2c5);
  border-bottom: 1px solid #c5b58d;
  min-height: 53px;
  padding: 0 14px;
}
.directory-head h2,
.collection-head h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
}
.directory-head .count,
.collection-head .count {
  color: #685739;
  background: #eaddb9;
  border: 1px solid #ceb981;
  border-radius: 3px;
  font-size: 10px;
}
.sort-btn {
  color: #546251;
  min-height: 28px;
}
.sort-btn .icon {
  color: #60705f;
}
.dir-row {
  border-bottom: 1px solid #d9ceb1;
  padding: 12px 13px;
  min-height: 83px;
  background: linear-gradient(100deg, #fff9e820, #c3a16a08);
}
.dir-row.selected {
  background: #e6e4cb;
  box-shadow: inset 3px 0 #9a7a3b;
}
.dir-row:hover {
  background: #eae6cf;
}
.row-copy h3 {
  font-weight: 650;
  font-size: 15px;
  color: #243a33;
}
.row-copy p {
  color: #526352;
}
.row-meta {
  color: #646c55;
}
.mark-btn {
  color: #77816b;
}
.thumb {
  border-radius: 5px;
  outline: 1px solid #6e715733;
  outline-offset: -1px;
}
.thumb > .badge-star {
  background: #edc376;
  border-color: #e9c886;
  color: #684820;
}
.chart-fallback {
  background-color: #cadccb;
  background-blend-mode: multiply;
}
.chart-fallback .icon {
  color: #547266;
}
.map-panel {
  background: #153b3d;
}
.map-canvas {
  isolation: isolate;
  min-height: 0;
  background: #326e74;
}
.chart-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline-offset: -3px !important;
  background: #254b65;
}
.chart-surface .atlas-sheet,
.chart-surface .relief-canvas,
.chart-surface .site-ink,
.chart-surface .named-pins {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.chart-surface .site-ink { z-index: 1; }
.chart-surface .named-pins { z-index: 2; }
.chart-surface.chart-dragging, .chart-surface.chart-dragging * { cursor: grabbing; }
.chart-name,
.chart-dot {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.chart-name {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.07;
  font-family: var(--sans);
  font-weight: 550;
  font-size: 12px;
  padding: 1px 4px;
  color: #213e38;
  border-radius: 3px;
  background: #fbf3d9e8;
  border: 1px solid #716e4c6b;
  box-shadow: 0 1px 1px #123e392b;
  white-space: normal;
}
.chart-name.pick {
  font-weight: 650;
  color: #513b19;
  background: #fae2a5f5;
  border-color: #93743caa;
}
.chart-name.pick:before {
  content: '✦';
  color: #9b681f;
  margin-right: 3px;
  font-size: 10px;
}
.chart-name.selected,
.chart-name:hover,
.chart-name:focus-visible {
  z-index: 4;
  background: #fcf2c7;
  border-color: #71582e;
  box-shadow: 0 0 0 2px #eccd8166;
}
.chart-dot {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  padding: 0;
  border: 1.7px solid #f6ebbb;
  background: #174d50;
  box-shadow:
    0 0 0 1px #2b4948,
    0 1px 3px #0d282e60;
  z-index: 1;
}
.chart-dot.pick {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  font-size: 12px;
  line-height: 11px;
  font-family: Georgia, serif;
  font-weight: bold;
  text-align: center;
  background: #e8b968;
  border-color: #fff1b3;
  color: #664215;
}
.chart-dot.land {
  background: #466944;
}
.chart-dot.selected {
  box-shadow:
    0 0 0 3px #edcd9485,
    0 0 0 4px #71582c;
}
.chart-name:hover + .chart-dot {
  z-index: 5;
}
.mapbar,
.map-icon,
.zoom-stack {
  border-color: #867953a6;
  background: #f6edd8;
  box-shadow: 0 2px 7px #163a3640;
  border-radius: 4px;
}
.mapbar {
  top: 13px;
  left: 13px;
  padding: 3px;
}
.mode-btn {
  border-radius: 2px;
  color: #425748;
}
.mode-btn.active {
  color: #f2dfb1;
  background: #163c3b;
}
.mode-btn.active .icon {
  color: #e6c781;
}
.map-icon:hover,
.zoom-stack button:hover {
  background: #e9debd;
}
.map-right {
  right: 12px;
  top: 13px;
  gap: 8px;
}
.map-rose {
  pointer-events: none;
  width: 53px;
  height: 61px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  filter: drop-shadow(0 1px 2px #172e2b66);
}
.map-rose img {
  width: 43px;
  height: 43px;
  opacity: 0.88;
}
.map-rose span {
  font: bold 10px var(--mono);
  color: #fbefd0;
  text-shadow:
    0 1px 2px #0b3030,
    1px 0 2px #0b3030;
}
.map-right .map-icon,
.map-right .zoom-stack button {
  width: 31px;
  height: 31px;
}
.map-scale {
  bottom: 12px;
  right: 12px;
  padding: 3px 5px 4px;
  font-size: 10px;
  border-radius: 3px;
  background: #faf0c9cc;
  color: #294342;
  filter: none;
}
.relief-caption {
  top: 56px;
  left: 13px;
  background: #fbefcbea;
  color: #345248;
  font-size: 10px;
}
.legend {
  background: #eee5cb;
  border-top: 1px solid #ab9b74;
  color: #394d42;
  min-height: 33px;
  gap: 14px;
}
.charted-site {
  width: 8px;
  height: 8px;
  background: #215c58;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #70836b;
}
.legend-star {
  color: #73572f;
}
.map-info,
.map-readout {
  color: #516653;
}
.chart-key {
  position: absolute;
  right: 5px;
  bottom: 6px;
  z-index: 4;
  width: 197px;
  max-height: 108px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fbf2d9f0;
  border: 1px solid #b19c67;
  border-radius: 4px;
  padding: 4px 7px;
  color: #354a3e;
}
.chart-key strong {
  font: 500 9px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.chart-key > div {
  overflow: auto;
}
.chart-key button {
  display: block;
  text-align: left;
  font-size: 12px;
  padding: 3px 0;
  border-bottom: 1px dotted #9e916966;
  width: 100%;
}
.map-preview {
  left: 12px;
  bottom: 12px;
  border: 1px solid #9c8b62;
  background: #fcf3dc;
  width: min(305px, calc(100% - 90px));
  border-radius: 5px;
  display: flex;
  box-shadow: 0 3px 13px #102d2c55;
}
.preview-photo {
  width: 78px;
  min-width: 78px;
  height: auto;
  min-height: 81px;
}
.preview-photo > img {
  position: absolute;
  height: 100%;
  object-fit: cover;
}
.preview-photo .pick-label {
  left: 5px;
  top: 5px;
  font-size: 0;
  gap: 0;
  padding: 3px;
}
.preview-body {
  flex: 1;
  padding: 12px 19px 10px 10px;
}
.preview-body h3 {
  font-size: 19px;
  margin: 5px 0;
  letter-spacing: -0.4px;
}
.preview-close {
  right: 3px;
  top: 2px;
  width: 21px;
  height: 21px;
  background: #f9edcf;
}
.preview-body .place-region {
  font-size: 9px;
}
.preview-bottom {
  font-size: 11px;
}
.preview-bottom .text-btn {
  font-size: 12px;
}
.map-panel.expanded {
  position: fixed;
  height: auto !important;
  inset: 10px;
  z-index: 42;
  box-shadow: 0 0 0 30px #092426bc;
}
.page-footer,
.page-footer button {
  color: #bbc7b8;
}
.page-footer .icon {
  color: #b8ad83;
}
.collection-head h2 {
  color: #f4e8c7;
}
.collection-head .sort-btn {
  color: #d4d6be;
}
.collection-head .sort-btn .icon {
  color: #cdb987;
}
.field-card {
  background: #f7efd9;
  border-color: #a99873;
  border-radius: 6px;
}
.field-card figure {
  border-bottom: 1px solid #bba77c;
}
.card-meta {
  color: #576957;
}
.field-card .mark-btn {
  background: #fbefd6ec;
}
.card-text h3 {
  color: #263d35;
}
.full-empty,
.empty {
  color: #596b59;
}
.full-empty {
  background: #f5ecd5;
  border-color: #b6a77f;
}
.empty .empty-icon {
  background: #e3e4ca;
}
dialog {
  background: #faf2dd;
  border-color: #a48d60;
  border-radius: 8px;
  color: #23372e;
}
dialog::backdrop {
  background: #06191dd4;
  backdrop-filter: blur(3px);
}
.dialog-inner .kicker,
.sheet-dialog .kicker {
  color: #79653c;
}
.dialog-close {
  background: #fbefd8ed;
  border-color: #b6a57c;
  color: #344838;
}
.detail-facts {
  background: #cec2a6;
  border-color: #c6baa0;
  border-radius: 4px;
}
.fact {
  background: #eae5cf;
}
.fact span {
  color: #68725e;
}
.why {
  border-color: #ad8846;
  background: #f1e3bd;
}
.outline,
.save-action,
.extra-options .chip {
  color: #315444;
  background: #f0ecd5;
  border: 1px solid #ada388;
}
.extra-options .chip.is-set {
  background: #d6dfc2;
  color: #203c32;
}
.extra-options .chip .icon {
  color: inherit;
}
dialog[data-kind='sheet'] {
  width: min(1100px, calc(100% - 26px));
  max-height: 92svh;
}
.sheet-dialog {
  position: relative;
}
.sheet-title {
  padding: 22px 24px 4px;
}
.sheet-dialog h2 {
  font: 400 33px/1.15 var(--serif);
  letter-spacing: -1.3px;
  margin: 6px 0;
}
.sheet-title p {
  color: #566653;
  font-size: 14px;
  margin: 5px 0;
}
.sheet-choices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  gap: 10px;
}
.sheet-choices label {
  font-size: 13px;
  font-weight: 600;
}
.sheet-choices select {
  max-width: 55vw;
  border: 1px solid #ae9d71;
  border-radius: 3px;
  background: #f7edce;
  color: #2d493e;
  min-height: 35px;
  margin-left: 5px;
  padding: 4px 22px 4px 8px;
}
.sheet-choices a {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3f6354;
}
.sheet-choices .icon {
  width: 12px;
  height: 12px;
}
.sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(205px, 1fr);
  min-height: 310px;
  height: min(56vh, 530px);
  border-block: 1px solid #c1b18a;
}
.sheet-viewport {
  position: relative;
  background: #1f3638;
  min-height: 0;
}
.sheet-viewport #paper-map {
  position: absolute;
  inset: 0;
  background: #213a3e;
  touch-action: none !important;
  z-index: 0;
}
.paper-zoom {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f6ecd2;
  border: 1px solid #9d8f67;
  border-radius: 4px;
}
.paper-zoom button {
  padding: 6px;
  display: grid;
  place-items: center;
}
.paper-zoom button + button {
  border-left: 1px solid #cdbf9a;
}
.paper-zoom .icon {
  width: 15px;
}
.sheet-index {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid #c4b58b;
}
.sheet-index-results {
  overflow: auto;
  padding: 0 10px 12px;
}
.sheet-index-results h3 {
  font: 400 18px var(--serif);
  letter-spacing: -0.5px;
  margin: 12px 0 4px;
}
.sheet-index-results button {
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  text-align: left;
  width: 100%;
  padding: 6px 2px;
  border-bottom: 1px dotted #b7a982;
}
.sheet-index-results button:hover {
  background: #e7dec2;
}
.sheet-index-results .icon {
  width: 12px;
  height: 12px;
}
.print-group strong {
  font-size: 12px;
}
.print-group {
  padding: 6px 1px;
}
.print-group button {
  padding-left: 9px;
}
.sheet-search {
  margin: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffae9;
  border: 1px solid #c4b690;
  border-radius: 4px;
  padding: 5px 8px;
}
.sheet-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  font-size: 13px;
}
.sheet-search .icon {
  width: 15px;
  height: 15px;
}
.sheet-credit {
  margin: 9px 24px 14px;
  color: #65745f;
  font-size: 12px;
}
.reports-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 8px 0;
}
.reports-list li {
  padding: 8px 10px;
  border-left: 2px solid #bca36b;
  background: #efe8ce;
}
.reports-list a {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reports-list small {
  font: 10px var(--mono);
  color: #596950;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.reports-list p {
  font-size: 13px;
  margin: 4px 0 0;
}
.print-names {
  color: #6e6347;
  font-size: 13px;
}
.gallery-top {
  position: relative;
  background: #15383c;
}
.gallery-top .detail-cover {
  height: min(34vh, 295px);
  margin: 0;
}
.gallery-top .detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-arrows {
  position: absolute;
  bottom: 9px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  padding: 3px;
  background: #0e292bea;
  color: #fff0c9;
  border: 1px solid #bfa56a88;
  border-radius: 4px;
}
.gallery-arrows button {
  width: 31px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 3px;
}
.gallery-arrows button:hover {
  background: #3e5147;
}
.gallery-arrows button .icon {
  width: 15px;
  height: 15px;
}
.gallery-arrows span {
  font: 11px var(--mono);
  padding: 0 4px;
}
.gallery-strip {
  display: flex;
  gap: 5px;
  padding: 6px 12px;
  overflow: auto;
  background: #e5ddc2;
  border-bottom: 1px solid #c5b68b;
}
.gallery-strip button {
  padding: 0;
  flex: 0 0 54px;
  height: 38px;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.7;
}
.gallery-strip button[aria-pressed='true'] {
  opacity: 1;
  border-color: #9a722c;
}
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 9px 16px 9px;
  background: #f1e8cd;
  color: #475849;
  font-size: 12px;
  line-height: 1.45;
}
.gallery-caption strong {
  font-size: 11px;
  color: #62512d;
}
.gallery-caption div {
  margin-top: 2px;
}
.gallery-caption .photo-source {
  font-size: 11px;
  color: #5d6c57;
}
.gallery-caption a {
  color: #365e4e;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 1580px) {
  .ocean-hero {
    min-height: 245px;
  }
  .ocean-hero h1 {
    font-size: 74px;
  }
}
@media (max-width: 1050px) {
  .toolbar {
    display: flex;
  }
  .filter-strip {
    flex: 1;
    overflow-x: auto;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) clamp(247px, 30vw, 310px);
  }
  .chart-name {
    font-size: 11.5px;
  }
  .map-rose {
    width: 38px;
    height: 47px;
  }
  .map-rose img {
    width: 33px;
    height: 33px;
  }
}
@media (max-width: 820px) {
  .nav-inner {
    gap: 16px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 2.3px;
  }
  .ocean-hero {
    min-height: 214px;
  }
  .ocean-hero h1 {
    font-size: 50px;
  }
  .workspace {
    gap: 10px;
  }
  .dir-row {
    padding: 10px 9px;
    gap: 8px;
  }
  .row-copy h3 {
    font-size: 14px;
  }
  .thumb {
    flex-basis: 61px;
  }
  .map-key {
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .nav-inner,
  .page {
    padding-inline: 13px;
  }
  .nav-inner {
    min-height: 86px;
    gap: 0;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand .brand-lines {
    gap: 3px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 7.5px;
  }
  .nav-tools {
    gap: 4px;
  }
  .primary-nav {
    padding: 6px 0;
  }
  .nav-item {
    min-height: 30px;
  }
  .ocean-hero {
    min-height: 192px;
  }
  .hero-content {
    padding: 19px 17px 17px;
  }
  .sea-vignette {
    background: linear-gradient(90deg, #0a2024bc, #07202472 60%, #0922281a);
  }
  .ocean-kicker {
    font-size: 9px;
    letter-spacing: 1.9px;
  }
  .ocean-hero h1 {
    font-size: clamp(36px, 9.6vw, 52px);
    letter-spacing: -1.7px;
    margin: 10px 0 8px;
  }
  .ocean-hero h1 em {
    letter-spacing: -1.4px;
  }
  .ocean-hero p {
    font-size: 13px;
    max-width: 81%;
    margin-bottom: 11px;
  }
  .print-link {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 11px;
  }
  .motion-button {
    width: 27px;
    height: 27px;
    right: 12px;
    bottom: 12px;
  }
  .page {
    padding-top: 11px;
  }
  .toolbar {
    gap: 7px;
    margin: 0 0 7px;
  }
  .toolbar .searchbox {
    width: 100%;
  }
  .filter-strip {
    flex: auto;
    width: calc(100% + 13px);
    margin-right: -13px;
    padding-right: 13px;
  }
  .filter-strip .chip,
  .filter-strip .filter-feature {
    min-height: 33px;
  }
  .mobile-switch {
    margin: 1px 0 7px;
  }
  .mobile-mode {
    background: #1c3739;
    border: 1px solid #617064;
    border-radius: 4px;
  }
  .mobile-mode button {
    color: #dbe0c8;
    border-radius: 2px;
  }
  .mobile-mode button.on {
    background: #d9c899;
    color: #294635;
  }
  .result-total {
    font-size: 10px;
    color: #cee0ce;
  }
  .workspace {
    display: block;
    height: auto;
  }
  .workspace .map-panel {
    height: clamp(420px, 62svh, 690px);
  }
  .workspace .directory {
    height: clamp(410px, 66svh, 780px);
  }
  .map-panel.expanded {
    inset: 3px !important;
    height: auto !important;
  }
  .chart-name {
    font-size: 10.8px;
    padding: 1px 3px;
  }
  .mapbar {
    top: 8px;
    left: 8px;
  }
  .map-right {
    top: 8px;
    right: 7px;
    gap: 6px;
  }
  .map-rose {
    display: none;
  }
  .mode-btn {
    min-height: 27px;
    padding-inline: 6px;
    font-size: 10.5px;
  }
  .chart-key {
    width: 140px;
  }
  .map-scale {
    bottom: 8px;
    right: 7px;
  }
  .legend {
    gap: 10px;
    min-height: 29px;
    font-size: 10px;
  }
  .relief-caption {
    left: 8px;
    top: 47px;
  }
  .map-preview {
    left: 6px;
    bottom: 6px;
    width: min(254px, calc(100% - 57px));
    border-radius: 4px;
  }
  .preview-photo {
    width: 63px;
    min-width: 63px;
    min-height: 64px;
  }
  .preview-body {
    padding: 6px 15px 6px 7px;
  }
  .preview-body h3 {
    font-size: 16px;
    margin: 3px 0;
  }
  .preview-bottom,
  .preview-bottom .text-btn {
    font-size: 10px;
  }
  .thumb {
    flex-basis: 72px;
    height: 57px;
  }
  .row-copy h3 {
    font-size: 15px;
  }
  .sheet-title {
    padding: 19px 15px 3px;
  }
  .sheet-dialog h2 {
    font-size: 26px;
  }
  .sheet-title p {
    font-size: 12px;
  }
  .sheet-choices {
    padding: 7px 13px;
  }
  .sheet-choices label {
    font-size: 11px;
  }
  .sheet-choices a {
    font-size: 11px;
  }
  .sheet-choices select {
    max-width: 47vw;
    min-height: 30px;
  }
  .sheet-layout {
    display: flex;
    flex-direction: column;
    height: clamp(390px, 58svh, 640px);
  }
  .sheet-viewport {
    flex: 1.15;
    min-height: 170px;
  }
  .sheet-index {
    flex: 1;
    border-left: 0;
    border-top: 1px solid #ac9e7d;
  }
  .sheet-credit {
    margin: 7px 12px;
    font-size: 10px;
  }
  .sheet-search input {
    font-size: 16px;
  }
  .gallery-caption {
    padding: 7px 12px;
  }
}

.sheet-features {
  font-size: 13px;
  line-height: 1.45;
  margin: 7px 0 10px;
}
.sheet-features dt {
  font-weight: 650;
  margin-top: 8px;
}
.sheet-features dd {
  margin: 0;
  color: #506051;
}
.sheet-companion {
  font-size: 12px;
  color: #526653;
  line-height: 1.5;
}

.ocean-hero h1 em {
  white-space: nowrap;
}
.map-attribution {
  font-size: 9px;
  margin-right: 8px;
  color: #61715d;
}
.photo-scope {
  position: absolute;
  right: 2px;
  bottom: 2px;
  background: #123237df;
  color: #f8efd5;
  padding: 1px 3px;
  border-radius: 2px;
  font: 600 9px/1.3 var(--sans);
  z-index: 2;
  pointer-events: none;
}
.chart-dot.reef-area {
  border-style: dashed;
  box-shadow:
    0 0 0 2px #fcf0c583,
    0 0 0 3px #35564d;
}
@media (max-width: 1190px) {
  .map-attribution {
    display: none;
  }
}
.favorite-filter .icon { color: #eea7a5; }
.favorite-filter.is-set { color: #ffeae2; background: #52313b; border-color: #dc9999; }
.favorite-filter.is-set .icon { color: #ffb1a6; fill: currentColor; }
.mark-btn.on, .save-action.on { color: #8c3046; border-color: #c27c87; background: #f5dade; }
.field-card .mark-btn.on { color: #8c3046; background: #ffe6e6; }
.nav-save.active .icon { color: #ffaba6; }
.mark-btn:hover .icon, .mark-btn:focus-visible .icon { color: #9b3450; }
#reader .save-action .icon { flex-shrink: 0; }
