/* The waterfront forecast, in the Manor's shared editorial style. */
.tides-page {
  --td-paper: #f8f6f0;
  --td-ink: #303d33;
  --td-muted: #62695e;
  --td-sage: #e9ece3;
  --td-line: #d5d8cb;
  --td-high: #5e7557;
  --td-low: #865552;
  background: var(--td-paper);
  color: var(--td-ink);
  font: 400 16px/1.8 var(--font-sansserif), sans-serif;
}
.tides-page *, .tides-page *::before, .tides-page *::after { box-sizing: border-box; }
.tides-page [hidden] { display: none !important; }
.tides-page :is(h1, h2, h3) { margin: 0; color: inherit; font: 400 44px/1.2 'Playfair Display', Georgia, serif; text-transform: none; letter-spacing: -.025em; }
.tides-page :is(p, figure, ul) { margin: 0; }
.tides-page em { color: #66765e; font-weight: 400; }
.tides-page a { color: inherit; }
.tides-page :is(a, button, input):focus-visible { outline: 2px solid #743b42; outline-offset: 5px; }
.tides-page button { cursor: pointer; font: inherit; }
.tides-page img { display: block; width: 100%; height: auto; }
.tides-page section[id] { scroll-margin-top: calc(var(--estate-height, 124px) + 25px); }
.td-shell { width: min(1240px, 88%); margin-inline: auto; }
.tides-page .td-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .17em; line-height: 1.6; text-transform: uppercase; margin-bottom: 18px; }
.td-waterfront-photo { position: relative; background: var(--td-sage); overflow: hidden; }
.tides-page figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 4px 9px; background: #26382cd9; color: #fffdf5; font-size: 9px; line-height: 1.6; }
.tides-page figcaption a { text-decoration: none; }
.tides-page figcaption a:hover { text-decoration: underline; }
.td-daily { padding-top: 24px; }
.td-daily-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.tides-page .td-daily-heading h1 { font-size: clamp(32px, 3vw, 42px); }
.td-selected-date { min-height: 25px; margin-top: 6px !important; color: var(--td-muted); font-size: 14px; }
.td-date-control { flex-shrink: 0; }
.td-date-control label { display: block; color: var(--td-muted); font: 700 10px/1.5 var(--font-sansserif), sans-serif; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 9px; }
.td-date-actions { display: flex; gap: 8px; }
.tides-page #tide-date { color-scheme: light; width: 180px; min-width: 0; height: 48px; margin: 0; padding: 10px 12px; border: 1px solid #9ba58f; border-radius: 0; background: #fffdf8; box-shadow: none; color: var(--td-ink); font: 400 15px/1.5 var(--font-sansserif), sans-serif; }
.tides-page #tide-date::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; }
.tides-page .td-today { min-height: 48px; padding: 9px 17px; border: 1px solid var(--td-line); background: transparent; color: var(--td-ink); font-size: 12px; }
.tides-page .td-today:hover { background: var(--td-sage); }
.td-chart-panel { background: #fffdf8; border: 1px solid var(--td-line); padding: 20px 32px 0; }
.td-chart-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.td-chart-meta > p { color: var(--td-muted); }
.td-chart-meta > p > span { white-space: nowrap; }
.td-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 0; list-style: none; }
.td-legend li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 11px; }
.td-dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; vertical-align: middle; background: var(--td-high); border-radius: 50%; }
.td-dot--low { background: var(--td-low); border-radius: 0; transform: rotate(45deg); }
.td-dot--now { background: var(--td-ink); }
.td-chart-canvas { position: relative; height: clamp(200px, 38svh, 320px); width: 100%; margin-top: 16px; }
.td-day-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 22px -32px 0; background: #edf0e7; border-top: 1px solid var(--td-line); }
.td-summary-group { padding: 22px 32px 25px; }
.td-summary-group + .td-summary-group { border-left: 1px solid var(--td-line); }
.td-summary-label { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.td-summary-times { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 10px; }
.td-summary-time { display: block; color: var(--td-ink); font: 400 24px/1.5 'Playfair Display', Georgia, serif; white-space: nowrap; }
.td-summary-height { display: block; color: var(--td-muted); font-size: 12px; }
.td-chart-note { margin-top: 17px !important; color: var(--td-muted); font-size: 11px; }
.td-loading { min-height: 365px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 30px; text-align: center; }
.td-loading p { font: 400 24px/1.5 'Playfair Display', Georgia, serif; margin: 19px 0 6px; }
.td-loading > span:last-child { font-size: 12px; color: var(--td-muted); }
.td-loading-mark { display: block; width: 30px; height: 30px; border: 1px solid var(--td-line); border-top-color: var(--td-high); border-radius: 50%; animation: td-turn 1.1s linear infinite; }
.tides-page #error-message { max-width: none; margin: 0; padding: 60px 0; text-align: center; }
.tides-page .td-error h3 { font-size: 30px; }
.td-error p { max-width: 450px; margin: 20px auto !important; color: var(--td-muted); }
.tides-page .td-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 48px; padding: 11px 22px; border: 1px solid var(--td-ink); background: var(--td-ink); color: #fffdf5; font-size: 13px; }
.td-button:hover { background: #4b614b; }
.td-button > span { font-size: 22px; }
.td-no-script { padding: 25px 0; }
.tides-page #tide-table-container { margin-top: 0; }
.td-forecast { padding-block: 80px 90px; }
.td-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.td-section-heading > p { max-width: 350px; font-size: 14px; color: var(--td-muted); }
.td-forecast-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 55px; align-items: start; }
.td-table-wrap { min-width: 0; border-top: 1px solid #8f9b85; }
.td-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; background: transparent; font-size: 14px; }
.td-table th, .td-table td { width: auto; height: auto; padding: 18px 16px; border: 0; border-bottom: 1px solid var(--td-line); background: transparent; text-align: left; vertical-align: middle; }
.td-table td { cursor: default; }
.tides-page .td-table td:hover { background: transparent; }
.td-table thead { background: #e9ede3; }
.td-table thead th { font: 700 10px/1.7 var(--font-sansserif), sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.td-table thead th:first-child { width: 23%; }
.td-table thead .td-dot { margin-right: 9px; }
.td-table tbody th { font: 400 14px/1.6 var(--font-sansserif), sans-serif; }
.td-table tbody th strong { display: block; font-weight: 700; }
.td-table tbody th span { display: block; color: var(--td-muted); font-size: 12px; }
.td-table tbody tr[data-today] { background: #edf0e780; }
.td-table tbody tr:last-child :is(th, td) { border-bottom-color: #8f9b85; }
.td-table-tide { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; font-variant-numeric: tabular-nums; }
.td-table-tide + .td-table-tide { margin-top: 6px; }
.td-table-time { white-space: nowrap; }
.td-table-height { color: var(--td-muted); font-size: 11px; white-space: nowrap; }
.td-empty { color: var(--td-muted); }
.td-waterfront-photo { aspect-ratio: .84; }
.td-waterfront-photo > img { height: 100%; object-fit: cover; object-position: center 55%; }
.td-waterfront-copy { padding: 32px 28px 36px; background: var(--td-sage); }
.tides-page .td-waterfront-copy h3 { font-size: clamp(30px, 3vw, 40px); }
.td-waterfront-copy .td-eyebrow { font-size: 9px; }
.td-waterfront-copy > p:last-child { margin-top: 20px; font-size: 14px; color: var(--td-muted); }
@keyframes td-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .td-loading-mark { animation: none; } }
@media (max-width: 1000px) {
  .td-shell { width: 90%; }
  .td-daily-heading { align-items: start; }
  .td-forecast-grid { gap: 28px; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .td-table :is(th, td) { padding-inline: 10px; }
  .td-table-tide { display: block; }
  .td-table-height { display: block; }
  .td-waterfront-copy { padding: 25px 20px; }
  .td-section-heading > p { max-width: 280px; }
}
@media (max-width: 700px) {
  .td-shell { width: calc(100% - 40px); }
  .td-daily { padding-top: 16px; }
  .td-daily-heading { flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .tides-page .td-daily-heading h1 { font-size: clamp(27px, 7.8vw, 34px); }
  .td-date-control { width: 100%; }
  .td-date-control label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .tides-page #tide-date { flex: 1; width: auto; font-size: 16px; }
  .tides-page .td-today { padding-inline: 22px; }
  .td-chart-panel { padding: 14px 14px 0; }
  .td-chart-meta { flex-direction: column; align-items: start; gap: 8px; }
  .td-legend { gap: 20px; }
  .td-chart-canvas { height: clamp(180px, 32svh, 250px); margin-top: 12px; }
  .td-day-summary { margin: 15px -14px 0; }
  .td-summary-group { padding: 18px 14px 21px; }
  .td-summary-label { font-size: 9px; letter-spacing: .08em; }
  .td-summary-times { flex-direction: column; gap: 12px; }
  .td-summary-time { font-size: 22px; }
  .td-summary-height { font-size: 11px; }
  .td-chart-note { font-size: 10px; }
  .td-loading { min-height: 330px; }
  .td-loading p { font-size: 21px; }
  .tides-page .td-error h3 { font-size: 27px; }
  .td-forecast { padding-block: 50px 55px; }
  .td-section-heading { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 25px; }
  .tides-page .td-section-heading h2 { font-size: 34px; }
  .td-section-heading > p { max-width: none; font-size: 13px; }
  .td-forecast-grid { grid-template-columns: 1fr; gap: 35px; }
  .td-table :is(th, td) { padding: 15px 10px; }
  .td-table thead th { font-size: 9px; letter-spacing: .04em; }
  .td-table thead .td-dot { width: 6px; height: 6px; margin-right: 6px; }
  .td-table tbody th { font-size: 13px; }
  .td-table-time { font-size: 13px; }
  .td-waterfront { display: grid; grid-template-columns: 1fr; }
  .td-waterfront-photo { aspect-ratio: 1.15; }
  .td-waterfront-copy { padding: 28px; }
}
@media (max-width: 360px) {
  .td-shell { width: calc(100% - 32px); }
  .td-table :is(th, td) { padding-inline: 7px; }
  .td-table thead .td-dot { display: none; }
  .td-summary-time { font-size: 20px; }
}
