/* New York Harbor sunset finder and date picker. */
#nyc-sunset-finder { padding: clamp(28px, 5vw, 64px) 0; scroll-margin-top: 110px; }
#nyc-sunset-finder *, #nyc-sunset-finder *::before, #nyc-sunset-finder *::after { box-sizing: border-box; }
#nyc-sunset-finder [hidden] { display: none !important; }
#nyc-sunset-finder .nycs-panel {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  border: 1px solid #d6e3ec; border-radius: 24px; color: #fff;
  background: radial-gradient(ellipse at 85% 24%, #c9dfeb24 0, transparent 56%), linear-gradient(115deg, #1c354b 8%, #284963 58%, #345778);
  box-shadow: 0 18px 40px #1c354b20; font-family: 'Poppins', Arial, sans-serif;
}
#nyc-sunset-finder .nycs-copy { padding: 36px 16px 30px 38px; min-width: 0; container: nyc-sunset-controls / inline-size; }
#nyc-sunset-finder .nycs-eyebrow { margin: 0 0 14px; color: #ffbe59; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
#nyc-sunset-finder .nycs-eyebrow span { margin-right: 6px; font-size: 19px; vertical-align: -1px; }
#nyc-sunset-finder h2 { color: #fff; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 15px; font-family: 'PT Serif', Georgia, serif; font-weight: 700; text-transform: none; }
#nyc-sunset-finder .nycs-intro { max-width: 410px; color: #e3edf5; font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
#nyc-sunset-finder form { margin: 0; }
#nyc-sunset-finder label { display: block; font-size: 12px; font-weight: 700; color: #fff; margin: 0 0 8px; }
/* Stack safely by default; use a row only when this panel has enough room. */
#nyc-sunset-finder .nycs-fields {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start;
  gap: 10px; width: 100%; max-width: 495px; min-width: 0;
}
/* Keep the native iOS picker, with predictable sizing for its visible date field. */
#nyc-sunset-finder input[type="date"] {
  -webkit-appearance: none; appearance: none; color-scheme: light;
  display: block; box-sizing: border-box; flex: none; justify-self: start;
  width: 100%; min-width: 0; max-width: 320px; height: 52px; min-height: 52px;
  margin: 0; border: 1px solid #c7d8e5; border-radius: 12px; padding: 12px;
  background: #f1f5f8; color: #142a3e;
  font: 700 16px/1.25 'Poppins', Arial, sans-serif;
}
#nyc-sunset-finder input::-webkit-date-and-time-value {
  display: block; min-height: 1.25em; margin: 0; padding: 0; text-align: left;
}
#nyc-sunset-finder input::-webkit-datetime-edit { min-width: 0; padding: 0; }
#nyc-sunset-finder button { font-family: inherit; cursor: pointer; text-transform: none; transition: background .15s ease; }
#nyc-sunset-finder .nycs-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  flex: none; justify-self: start; width: auto; max-width: 100%; min-width: 0;
  min-height: 52px; margin: 0; border: 0; border-radius: 12px;
  background: #ffbe59; color: #142a3e; padding: 12px 18px;
  font-size: 14px; font-weight: 800; line-height: 1.25; white-space: nowrap;
}
#nyc-sunset-finder .nycs-submit span { margin: 0; font-size: 0; }
#nyc-sunset-finder .nycs-submit span::before { content: "\2197\FE0E"; font: 18px/1 'Poppins', Arial, sans-serif; }
#nyc-sunset-finder .nycs-submit:hover { background: #ffdda3; }
#nyc-sunset-finder .nycs-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
#nyc-sunset-finder .nycs-quick button { min-height: 44px; padding: 8px 13px; border: 1px solid #8aabc4; border-radius: 24px; color: #fff; background: transparent; font-size: 12px; font-weight: 700; }
#nyc-sunset-finder .nycs-quick button:hover, #nyc-sunset-finder .nycs-quick button[aria-pressed="true"] { background: #fff1dc; border-color: #fff1dc; color: #142a3e; }
#nyc-sunset-finder .nycs-quick span { flex-basis: 100%; color: #e3edf5; font-size: 11px; line-height: 1.5; margin-top: 3px; }
#nyc-sunset-finder :is(button, input, a):focus-visible { outline: 3px solid #ffe1a7; outline-offset: 4px; }
#nyc-sunset-finder input:focus-visible { outline-color: #ffc67b; }
#nyc-sunset-finder #nycs-error { color: #ffe1ae; font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
#nyc-sunset-finder .nycs-noscript { color: #fff1dc; font-size: 13px; }
#nyc-sunset-finder .nycs-noscript a { color: inherit; text-decoration: underline; }
#nyc-sunset-finder .nycs-result { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 25px 24px 28px; min-width: 0; }
#nyc-sunset-finder .nycs-scene { position: relative; width: 100%; max-width: 270px; height: 98px; margin-bottom: 16px; }
#nyc-sunset-finder .nycs-sun { position: absolute; width: 110px; height: 55px; left: calc(50% - 55px); bottom: 26px; border-radius: 110px 110px 0 0; background: linear-gradient(#fff1bd, #ffbe59); box-shadow: 0 -18px 60px #ffbd6960; }
#nyc-sunset-finder .nycs-horizon { position: absolute; bottom: 25px; height: 1px; width: 100%; left: 0; background: linear-gradient(90deg, transparent, #ffe1ae 30%, #ffe1ae 70%, transparent); }
#nyc-sunset-finder .nycs-reflection { position: absolute; top: 77px; left: calc(50% - 42px); width: 84px; height: 1px; background: #ffd4a2a6; box-shadow: 0 7px #ffd4a254, 0 14px #ffd4a22b; }
#nyc-sunset-finder .nycs-result-label { font-size: 12px; font-weight: 700; letter-spacing: 2.3px; text-transform: uppercase; color: #ffdda3; margin: 0 0 7px; }
#nyc-sunset-finder #nycs-time { display: block; white-space: nowrap; font-size: clamp(46px, 5.4vw, 70px); line-height: 1.1; font-weight: 800; letter-spacing: -2.5px; font-variant-numeric: tabular-nums; color: #fff8eb; }
#nyc-sunset-finder #nycs-time .nycs-period { font-size: .42em; font-weight: 600; letter-spacing: 0; margin-left: 7px; }
#nyc-sunset-finder .nycs-zone { color: #ffdda3; font-size: 12px; margin: 10px 0 18px; }
#nyc-sunset-finder .nycs-result-date { padding: 9px 15px; border: 1px solid #e7eff680; border-radius: 30px; color: #e3edf5; font-size: 12px; margin: 0; line-height: 1.5; }
#nyc-sunset-finder .nycs-footnote { grid-column: 1 / -1; background: #11293d73; border-top: 1px solid #fff2d526; padding: 16px 38px 18px; }
#nyc-sunset-finder .nycs-footnote p { margin: 0 0 6px; color: #e3edf5; font-size: 13px; line-height: 1.6; }
#nyc-sunset-finder .nycs-footnote a { display: inline-block; color: #ffdda3; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
#nyc-sunset-finder .nycs-footnote small { display: block; color: #c7d8e5; font-size: 11px; line-height: 1.65; }
@media (max-width: 760px) {
  #nyc-sunset-finder .nycs-panel { grid-template-columns: 1fr; }
  #nyc-sunset-finder .nycs-copy { padding: 27px 24px 18px; }
  #nyc-sunset-finder h2 { font-size: 34px; }
  #nyc-sunset-finder .nycs-result { padding: 15px 24px 28px; }
  #nyc-sunset-finder #nycs-time { font-size: 66px; }
  #nyc-sunset-finder .nycs-scene { height: 79px; margin-bottom: 12px; }
  #nyc-sunset-finder .nycs-sun { width: 92px; height: 46px; left: calc(50% - 46px); bottom: 19px; }
  #nyc-sunset-finder .nycs-horizon { bottom: 18px; }
  #nyc-sunset-finder .nycs-reflection { top: 65px; }
  #nyc-sunset-finder .nycs-footnote { padding: 16px 24px 18px; }
}
@media (max-width: 380px) {
  #nyc-sunset-finder .nycs-copy { padding-left: 20px; padding-right: 20px; }
  #nyc-sunset-finder h2 { font-size: 29px; }
  #nyc-sunset-finder #nycs-time { font-size: 58px; }
}
@media (prefers-reduced-motion: reduce) { #nyc-sunset-finder button { transition: none; } }

/* Branded date picker. The native field stays available if enhancement is unsupported. */
#nyc-sunset-finder .nycs-date-trigger {
  display: flex; align-items: center; justify-content: flex-start; gap: 11px;
  flex: none; justify-self: start; min-width: 0; height: 52px; min-height: 52px;
  width: 100%; max-width: 320px; margin: 0; padding: 12px 14px;
  border: 1px solid #c7d8e5; border-radius: 12px; background: #f1f5f8;
  color: #142a3e; box-shadow: 0 3px 10px #1c354b20;
  font: 700 15px/1.35 'Poppins', Arial, sans-serif; text-align: left;
}
#nyc-sunset-finder .nycs-date-trigger:hover { background: #e6eef4; border-color: #ffd393; }
#nyc-sunset-finder .nycs-date-trigger[aria-expanded="true"] { border-color: #ffbe59; box-shadow: 0 0 0 3px #ffbe5933; }
#nyc-sunset-finder .nycs-date-icon { flex: 0 0 23px; width: 23px; height: 23px; color: #355a78; }
#nyc-sunset-finder .nycs-date-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nyc-sunset-finder .nycs-date-chevron { flex: 0 0 18px; width: 18px; height: 18px; color: #4b6479; }
#nyc-sunset-finder .nycs-calendar {
  position: fixed; inset: auto; margin: 0; padding: 0; width: min(360px, calc(100vw - 24px));
  max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  overflow: auto; overscroll-behavior: contain; border: 1px solid #c7d8e5; border-radius: 20px;
  background: #f1f5f8; color: #142a3e; box-shadow: 0 24px 72px #10283e4d;
  font: 14px/1.4 'Poppins', Arial, sans-serif; color-scheme: light;
}
#nyc-sunset-finder .nycs-calendar::backdrop { background: #10283e4d; }
#nyc-sunset-finder .nycs-calendar-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 20px; background: linear-gradient(110deg, #1c354b, #345778); color: #ffdda3;
}
#nyc-sunset-finder .nycs-calendar-top p {
  margin: 0; color: #ffdda3; font-size: 11px; font-weight: 800; line-height: 1.4;
  letter-spacing: 1.2px; text-transform: uppercase;
}
#nyc-sunset-finder .nycs-calendar-close {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
  padding: 0; border: 1px solid #ffffff26; border-radius: 50%; color: #fff4e5; background: #ffffff0d;
}
#nyc-sunset-finder .nycs-calendar-close:hover { background: #ffffff24; }
#nyc-sunset-finder .nycs-calendar-close svg { width: 20px; height: 20px; }
#nyc-sunset-finder .nycs-calendar-body { padding: 16px 14px 12px; }
#nyc-sunset-finder .nycs-calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 10px; }
#nyc-sunset-finder .nycs-calendar-prev, #nyc-sunset-finder .nycs-calendar-next {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px;
  padding: 0; border: 1px solid #c7d8e5; border-radius: 10px; background: #fff; color: #142a3e;
}
#nyc-sunset-finder .nycs-calendar-nav button:hover:not(:disabled) { background: #e6eef4; }
#nyc-sunset-finder .nycs-calendar-nav button:disabled { opacity: .35; cursor: default; }
#nyc-sunset-finder .nycs-calendar-nav svg { width: 20px; height: 20px; }
#nyc-sunset-finder .nycs-calendar-selects { display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
#nyc-sunset-finder .nycs-calendar-selects select {
  width: auto; max-width: 100%; min-width: 0; min-height: 40px; margin: 0; padding: 4px 2px;
  border: 0; border-radius: 5px; background-color: transparent; color: #142a3e;
  font: 700 15px/1.3 'Poppins', Arial, sans-serif; cursor: pointer;
}
#nyc-sunset-finder .nycs-calendar-grid { width: 100%; margin: 0; table-layout: fixed; border-collapse: separate; border-spacing: 2px; border: 0; background: transparent; }
#nyc-sunset-finder .nycs-calendar-grid th { height: 30px; padding: 0; border: 0; background: transparent; color: #4b6479; font-size: 11px; font-weight: 700; text-align: center; }
#nyc-sunset-finder .nycs-calendar-grid td { padding: 0; border: 0; background: transparent; text-align: center; }
#nyc-sunset-finder .nycs-calendar-day {
  position: relative; display: block; width: 100%; min-width: 0; height: 42px;
  margin: 0; padding: 0; border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: #142a3e; font-size: 14px; font-weight: 700; line-height: 1;
}
#nyc-sunset-finder .nycs-calendar-day.is-outside { color: #4b6479; font-weight: 400; }
#nyc-sunset-finder .nycs-calendar-day:hover:not(:disabled) { background: #e6eef4; }
#nyc-sunset-finder .nycs-calendar-day[aria-current="date"] { border-color: #8aabc4; }
#nyc-sunset-finder .nycs-calendar-day[aria-current="date"]::after { content: ''; position: absolute; bottom: 4px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #355a78; }
#nyc-sunset-finder .nycs-calendar-day.is-selected, #nyc-sunset-finder .nycs-calendar-day.is-selected:hover { border-color: #e9b36e; background: #ffbe59; color: #142a3e; box-shadow: 0 2px 6px #bd814527; }
#nyc-sunset-finder .nycs-calendar-day:disabled { opacity: .3; cursor: default; }
#nyc-sunset-finder .nycs-calendar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px 4px 0; border-top: 1px solid #c7d8e5; }
#nyc-sunset-finder .nycs-calendar-bottom > span { display: inline-flex; align-items: center; gap: 7px; color: #4b6479; font-size: 11px; }
#nyc-sunset-finder .nycs-calendar-bottom i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #355a78; }
#nyc-sunset-finder .nycs-calendar-today { min-height: 36px; padding: 6px 12px; border: 1px solid #e8c9a3; border-radius: 20px; background: #fff0db; color: #142a3e; font-size: 12px; font-weight: 700; }
#nyc-sunset-finder .nycs-calendar-today:hover { background: #ffdda3; }
#nyc-sunset-finder .nycs-calendar :is(button, select):focus-visible { outline: 2px solid #355a78; outline-offset: 1px; }
#nyc-sunset-finder .nycs-calendar-top button:focus-visible { outline-color: #ffbe59; }
#nyc-sunset-finder .nycs-calendar-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* The available copy-column width, rather than the viewport, controls the form. */
@container nyc-sunset-controls (min-width: 460px) {
  #nyc-sunset-finder .nycs-fields { grid-template-columns: minmax(0, 1fr) max-content; }
}

/* Compact desktop calendar with custom month/year controls. */
#nyc-sunset-finder .nycs-calendar { width: min(320px, calc(100vw - 24px)); border-radius: 17px; }
#nyc-sunset-finder .nycs-calendar-top { padding: 9px 12px 9px 16px; gap: 8px; }
#nyc-sunset-finder .nycs-calendar-top p { font-size: 10px; letter-spacing: .9px; }
#nyc-sunset-finder .nycs-calendar-close { flex-basis: 30px; width: 30px; height: 30px; }
#nyc-sunset-finder .nycs-calendar-body { padding: 12px 12px 10px; }
#nyc-sunset-finder .nycs-calendar-nav { gap: 3px; margin-bottom: 7px; }
#nyc-sunset-finder .nycs-calendar-prev, #nyc-sunset-finder .nycs-calendar-next { flex-basis: 30px; width: 30px; height: 34px; border-radius: 9px; }
#nyc-sunset-finder .nycs-calendar-selects { gap: 5px; }
#nyc-sunset-finder .nycs-calendar-selects select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  min-height: 34px; padding: 5px 23px 5px 8px; border: 1px solid #c7d8e5;
  border-radius: 8px; background-color: #f1f5f8; box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23355a78' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 6px center; background-repeat: no-repeat; background-size: 12px;
  color: #142a3e; font-size: 13px; font-weight: 700; line-height: 1.3;
}
#nyc-sunset-finder .nycs-calendar-selects .nycs-calendar-month { width: 115px; }
#nyc-sunset-finder .nycs-calendar-selects .nycs-calendar-year { width: 70px; }
#nyc-sunset-finder .nycs-calendar-grid th { height: 26px; font-size: 10px; }
#nyc-sunset-finder .nycs-calendar-day { height: 36px; border-radius: 9px; font-size: 13px; }
#nyc-sunset-finder .nycs-calendar-bottom { margin-top: 8px; padding-top: 8px; }
#nyc-sunset-finder .nycs-calendar-today { min-height: 32px; padding: 5px 10px; font-size: 11px; }

#nyc-sunset-finder .nycs-result { background: linear-gradient(130deg, transparent, rgba(113, 158, 192, .13)); }
#nyc-sunset-finder .nycs-sailing-note { max-width: 32em; margin: 14px 0 0; color: #fff; font-size: 14px; line-height: 1.55; }
#nyc-sunset-finder .nycs-sailing-note:empty { display: none; }
#nyc-sunset-finder .nycs-result-date { font-weight: 500; }
#nyc-sunset-finder .nycs-noscript { margin: 0; line-height: 1.6; }
.nlc-blog-callout .nycs-jump-link { color: #244965; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }

/* Pier 16 seasonal departure table */
#departure-schedule { scroll-margin-top: 7rem; }
.nlc-schedule-wrap {
  margin: 16px 0 20px;
  border: 1px solid #c9d6df;
  border-radius: 12px;
  overflow: hidden;
}
table.nlc-schedule {
  width: 100%;
  margin: 0;
  border: 0;
  border-spacing: 0;
  border-collapse: collapse;
  color: #1c354b;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.5;
}
.nlc-schedule th, .nlc-schedule td {
  padding: .8em 1em;
  border: 0;
  text-align: left;
  vertical-align: middle;
}
.nlc-schedule thead th {
  color: #fff;
  background: #223f59;
  border-bottom: 3px solid #ffbe59;
  font-weight: 700;
}
.nlc-schedule tbody th { font-weight: 500; }
.nlc-schedule tbody td { font-weight: 700; }
.nlc-schedule tbody tr { background: #fff; }
.nlc-schedule tbody tr:nth-child(even) { background: #f1f5f8; }
.nlc-schedule tbody tr + tr > * { border-top: 1px solid #dce5eb; }
.nlc-schedule td time { white-space: nowrap; }
.nlc-schedule a { color: #244965; text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 440px) {
  .nlc-schedule th, .nlc-schedule td { padding: .7em .65em; }
}
