/* Opt-in Jamaica Bay brand. Site markup, data and route contracts stay shared. */
[data-journal-design="field-atlas"] {
  --background: #f3f5e8;
  --foreground: #172e2b;
  --card: #fcfdf7;
  --card-foreground: #172e2b;
  --navy: #213e36;
  --navy-deep: #172e2b;
  --navy-foreground: #f2f7d9;
  --gold: #ffc273;
  --gold-foreground: #172e2b;
  --sand: #e5ecd7;
  --border: #becdb4;
  --teal: #386447;
  --teal-foreground: #fff;
  --accent: #386447;
  --accent-foreground: #fff;
  --muted: #e9eedf;
  --muted-foreground: #475e54;
  --ring: #5a743a;
  --font-display: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --atlas-moss: #d9efac;
  --atlas-deep: #152a26;
  --atlas-sediment: #ffc273;
}
[data-journal-design="field-atlas"] .journal-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
[data-journal-design="field-atlas"] .journal-brand img {
  flex: none;
}
[data-journal-design="field-atlas"] .journal-brand .font-display {
  font-weight: 800;
  letter-spacing: -0.035em;
}
[data-journal-design="field-atlas"] :focus-visible {
  outline: 3px solid #b36a19;
  outline-offset: 4px;
}
[data-journal-design="field-atlas"] .font-display {
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
}
.field-atlas {
  display: grid;
  grid-template-columns: minmax(16.5rem, 0.73fr) minmax(0, 1.27fr);
  gap: clamp(1.5rem, 4.1vw, 4.25rem);
  align-items: start;
  margin: auto;
  max-width: 91rem;
  padding: clamp(2rem, 4.6vw, 4rem) clamp(1rem, 4.5vw, 4rem) clamp(2rem, 4.6vw, 4rem);
}
.atlas-intro {
  padding-top: clamp(0.3rem, 4vw, 4rem);
}
.atlas-eyebrow,
.atlas-map-key,
.atlas-map-caption {
  font:
    700 0.69rem/1.6 ui-monospace,
    monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.atlas-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #386447;
}
.atlas-eyebrow span {
  width: 0.65rem;
  height: 0.65rem;
  display: inline-block;
  border: 1px solid #426345;
  background: #829e68;
  transform: rotate(45deg);
}
.field-atlas h1,
.atlas-tides h1 {
  margin: 0.55rem 0 1.2rem;
  font: 800 clamp(2.5rem, 5.8vw, 5.5rem)/0.97 var(--font-display);
  letter-spacing: -0.063em;
  max-width: 12ch;
  text-wrap: balance;
}
.atlas-dek {
  margin: 0;
  max-width: 47ch;
  color: #3e574b;
  font:
    500 clamp(0.98rem, 1.35vw, 1.16rem)/1.6 "Public Sans",
    sans-serif;
}
.atlas-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.atlas-actions a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #294c38;
  border-radius: 0.2rem;
  padding: 0.7rem 0.78rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.atlas-actions a:first-child {
  background: #203b31;
  color: #f7fae8;
}
.atlas-actions a:hover,
.atlas-actions a:focus-visible {
  text-decoration: underline;
}
.atlas-jump,
.atlas-tide-back {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0;
  color: #386447;
  font-size: 0.83rem;
  font-weight: 750;
  text-underline-offset: 0.25rem;
  text-decoration: underline;
}
.atlas-field {
  position: relative;
  margin: 0;
  border: 0;
  min-inline-size: 0;
  padding: 0;
  scroll-margin-top: 6rem;
}
.atlas-field legend {
  font:
    750 0.76rem/1.35 ui-monospace,
    monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #386447;
  padding: 0 0 0.35rem;
}
.atlas-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.atlas-map {
  position: relative;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: #20433b;
  border: 1px solid #1e3c34;
  box-shadow:
    0 5px 0 #c5ccae,
    0 10px 0 #dce5cb;
  border-radius: 0.45rem 0.45rem 0.15rem 0.15rem;
}
.atlas-map-art {
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  transition: transform 0.65s cubic-bezier(0.2, 0.72, 0.17, 1);
  transform-origin: 52% 46%;
}
.atlas-map-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atlas-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  cursor: pointer;
  width: max(44px, 5%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  color: transparent;
  touch-action: manipulation;
}
.atlas-pin:nth-of-type(1) {
  left: 50.94%;
  top: 39.69%;
}
.atlas-pin:nth-of-type(2) {
  left: 21.15%;
  top: 57.97%;
}
.atlas-pin:nth-of-type(3) {
  left: 32.6%;
  top: 72.65%;
}
.atlas-pin:hover {
  border-color: #ffc273;
}
#atlas-stop-0:checked ~ .atlas-map .atlas-pin:nth-of-type(1),
#atlas-stop-1:checked ~ .atlas-map .atlas-pin:nth-of-type(2),
#atlas-stop-2:checked ~ .atlas-map .atlas-pin:nth-of-type(3) {
  border-color: #ffc273;
  box-shadow: 0 0 0 4px #ffc27355;
}
.atlas-map-key {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0.38rem 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  justify-content: space-between;
  color: #e5f1c5;
  background: #152b28ee;
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}
.atlas-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 1rem 0 0.45rem;
}
.atlas-control {
  cursor: pointer;
  border: 1px solid #b9ceaa;
  border-radius: 0.22rem;
  padding: 0.5rem 0.44rem;
  min-block-size: 44px;
  color: #294c38;
  background: #ecf1df;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  font-size: clamp(0.68rem, 1.03vw, 0.86rem);
  line-height: 1.15;
  font-weight: 800;
}
.atlas-control span {
  color: #456e3c;
  font:
    700 0.63rem/1 ui-monospace,
    monospace;
}
.atlas-control:hover {
  border-color: #386447;
}
#atlas-stop-0:checked ~ .atlas-controls label:nth-child(1),
#atlas-stop-1:checked ~ .atlas-controls label:nth-child(2),
#atlas-stop-2:checked ~ .atlas-controls label:nth-child(3) {
  background: #d9efac;
  border-color: #56804f;
  box-shadow: inset 0 -3px #729461;
}
#atlas-stop-0:focus-visible ~ .atlas-controls label:nth-child(1),
#atlas-stop-1:focus-visible ~ .atlas-controls label:nth-child(2),
#atlas-stop-2:focus-visible ~ .atlas-controls label:nth-child(3) {
  outline: 3px solid #b36a19;
  outline-offset: 2px;
}
#atlas-stop-1:checked ~ .atlas-map .atlas-map-art {
  transform: scale(1.25);
  transform-origin: 18% 60%;
}
#atlas-stop-2:checked ~ .atlas-map .atlas-map-art {
  transform: scale(1.24);
  transform-origin: 26% 72%;
}
.atlas-stop-list {
  min-height: 8.8rem;
  border: 1px solid #becdb4;
  background: #fcfdf7;
  border-radius: 0.2rem;
}
.atlas-stop {
  display: none;
  padding: 0.75rem 0.85rem;
}
#atlas-stop-0:checked ~ .atlas-stop-list .atlas-stop:nth-child(1),
#atlas-stop-1:checked ~ .atlas-stop-list .atlas-stop:nth-child(2),
#atlas-stop-2:checked ~ .atlas-stop-list .atlas-stop:nth-child(3) {
  display: block;
}
.atlas-stop h2 {
  font: 800 1.3rem/1.1 var(--font-display);
  letter-spacing: -0.04em;
  margin: 0.24rem 0;
}
.atlas-stop p:not(.atlas-eyebrow) {
  margin: 0.28rem 0;
  color: #3e574b;
  font-size: 0.87rem;
  line-height: 1.5;
}
.atlas-stop a,
.atlas-station a {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #386447;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.atlas-map-caption {
  margin: 0.48rem 0 0;
  color: #526958;
  font-size: 0.61rem;
  letter-spacing: 0.075em;
}
.atlas-tides {
  background: repeating-linear-gradient(
    171deg,
    #203b31 0px,
    #203b31 21px,
    #29463a 22px,
    #203b31 23px
  );
  color: #f1f7db;
  margin-bottom: 2rem;
}
.atlas-tide-inner {
  max-width: 75rem;
  margin: auto;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  display: grid;
  align-items: end;
  gap: 1.5rem 3rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}
.atlas-tide-inner h1 {
  max-width: 18ch;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
}
.atlas-tide-inner .atlas-eyebrow,
.atlas-tide-back {
  color: #daefac;
}
.atlas-tide-back {
  margin: 0 0 0.65rem;
}
.atlas-tide-inner .atlas-dek {
  color: #edf3dd;
}
.atlas-station {
  border: 1px solid #bfd5a3;
  border-radius: 0.26rem;
  padding: 0.75rem 1rem;
  background: #dceab9;
  color: #1b3b28;
  font-size: 0.9rem;
  line-height: 1.55;
}
.atlas-station summary {
  min-block-size: 44px;
  cursor: pointer;
  font-weight: 800;
  padding: 0.45rem 0;
}
.atlas-station p {
  margin: 0 0 0.35rem;
}
#tide-predictions {
  scroll-margin-top: 6rem;
}
[data-journal-design="field-atlas"] .journal-tide-table th {
  background: #e0ead3;
}
[data-journal-design="field-atlas"] .journal-tide-table tr:nth-child(even) {
  background: #ecf2e3;
}
@media (max-width: 750px) {
  .field-atlas,
  .atlas-tide-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.35rem;
  }
  .field-atlas h1 {
    max-width: 16ch;
  }
  .atlas-intro {
    padding-top: 0;
  }
}
@media (max-width: 390px) {
  .atlas-controls {
    gap: 0.25rem;
  }
  .atlas-control {
    display: block;
    padding: 0.42rem 0.35rem;
  }
  .atlas-control span {
    display: block;
    margin-bottom: 0.18rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-map-art,
  #atlas-stop-1:checked ~ .atlas-map .atlas-map-art,
  #atlas-stop-2:checked ~ .atlas-map .atlas-map-art {
    transform: none;
    transition: none;
  }
}

/* Source links in the legacy guide Markdown can be long literal URLs. */
[data-journal-design="field-atlas"] .editorial-body a {
  overflow-wrap: anywhere;
}
