# Harbour tide card with quay

> The day's tide curve: drag the time and the water climbs or drops along the quay gauge with the boat floating on top.

- Category: [Cards](https://library.aimran.es/components/cards)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-card-tide-harbour
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Tides decide when a boat can leave, and a curve alone is hard to feel. This card links the semidiurnal tide line to a small harbour scene: as you scrub the hour, the water rises along the depth marks on the stone quay and the moored boat rides up with it, rocking gently. It suits marinas, surf and fishing apps, coastal tourism and weather sites.

The main color is the sea and the curve, the second the hull and the time marker. Change the high tide time and range in the formula, or tap the four tide chips to jump straight to each one.

## Code

### HTML

```html
<article class="uvq07-tde" style="--lv:67.6%"><header><div><h3>Tides in Cudillero</h3><p>Today · coefficient 92</p></div><p class="rd"><b class="tm">14:20</b><span><b class="hm">2,7 m</b><span class="tr" data-a="Rising" data-b="Falling">Rising</span></span></p></header><div class="sn" aria-hidden="true"><i class="sky"></i><span class="qy"><i style="--m:0"><b>0</b></i><i style="--m:1"><b>1</b></i><i style="--m:2"><b>2</b></i><i style="--m:3"><b>3</b></i><i style="--m:4"><b>4</b></i><i class="bl"></i></span><span class="wt"><i class="wv"></i></span><span class="bt"><svg viewBox="0 0 40 30"><path class="ms" d="M17 3v19"/><path class="sl" d="M18 4l11 15H18z"/><path class="hl" d="M3 21h34l-5 7H8z"/><path class="wl" d="M5 24h30"/></svg></span></div><div class="cv" role="slider" tabindex="0" aria-label="Time of day" aria-valuemin="0" aria-valuemax="1439" aria-valuenow="860" aria-valuetext="14:20 · 2,7 m"><svg viewBox="0 0 240 60" preserveAspectRatio="none"><path class="ar" d="M0,60 L0.0,40.40 2.5,38.19 5.0,35.83 7.5,33.35 10.0,30.81 12.5,28.23 15.0,25.66 17.5,23.15 20.0,20.72 22.5,18.42 25.0,16.29 27.5,14.36 30.0,12.65 32.5,11.21 35.0,10.05 37.5,9.18 40.0,8.63 42.5,8.41 45.0,8.50 47.5,8.93 50.0,9.67 52.5,10.71 55.0,12.05 57.5,13.65 60.0,15.49 62.5,17.55 65.0,19.78 67.5,22.16 70.0,24.65 72.5,27.20 75.0,29.78 77.5,32.34 80.0,34.85 82.5,37.26 85.0,39.53 87.5,41.63 90.0,43.53 92.5,45.19 95.0,46.59 97.5,47.71 100.0,48.52 102.5,49.02 105.0,49.20 107.5,49.05 110.0,48.58 112.5,47.79 115.0,46.69 117.5,45.32 120.0,43.67 122.5,41.79 125.0,39.71 127.5,37.44 130.0,35.05 132.5,32.55 135.0,29.99 137.5,27.41 140.0,24.85 142.5,22.36 145.0,19.97 147.5,17.72 150.0,15.65 152.5,13.79 155.0,12.16 157.5,10.81 160.0,9.74 162.5,8.97 165.0,8.53 167.5,8.40 170.0,8.60 172.5,9.13 175.0,9.97 177.5,11.11 180.0,12.53 182.5,14.21 185.0,16.13 187.5,18.24 190.0,20.53 192.5,22.95 195.0,25.46 197.5,28.03 200.0,30.60 202.5,33.15 205.0,35.63 207.5,38.00 210.0,40.22 212.5,42.27 215.0,44.09 217.5,45.67 220.0,46.98 222.5,48.00 225.0,48.72 227.5,49.12 230.0,49.19 232.5,48.93 235.0,48.36 237.5,47.47 240.0,46.28 L240,60Z"/><polyline class="ln" points="0.0,40.40 2.5,38.19 5.0,35.83 7.5,33.35 10.0,30.81 12.5,28.23 15.0,25.66 17.5,23.15 20.0,20.72 22.5,18.42 25.0,16.29 27.5,14.36 30.0,12.65 32.5,11.21 35.0,10.05 37.5,9.18 40.0,8.63 42.5,8.41 45.0,8.50 47.5,8.93 50.0,9.67 52.5,10.71 55.0,12.05 57.5,13.65 60.0,15.49 62.5,17.55 65.0,19.78 67.5,22.16 70.0,24.65 72.5,27.20 75.0,29.78 77.5,32.34 80.0,34.85 82.5,37.26 85.0,39.53 87.5,41.63 90.0,43.53 92.5,45.19 95.0,46.59 97.5,47.71 100.0,48.52 102.5,49.02 105.0,49.20 107.5,49.05 110.0,48.58 112.5,47.79 115.0,46.69 117.5,45.32 120.0,43.67 122.5,41.79 125.0,39.71 127.5,37.44 130.0,35.05 132.5,32.55 135.0,29.99 137.5,27.41 140.0,24.85 142.5,22.36 145.0,19.97 147.5,17.72 150.0,15.65 152.5,13.79 155.0,12.16 157.5,10.81 160.0,9.74 162.5,8.97 165.0,8.53 167.5,8.40 170.0,8.60 172.5,9.13 175.0,9.97 177.5,11.11 180.0,12.53 182.5,14.21 185.0,16.13 187.5,18.24 190.0,20.53 192.5,22.95 195.0,25.46 197.5,28.03 200.0,30.60 202.5,33.15 205.0,35.63 207.5,38.00 210.0,40.22 212.5,42.27 215.0,44.09 217.5,45.67 220.0,46.98 222.5,48.00 225.0,48.72 227.5,49.12 230.0,49.19 232.5,48.93 235.0,48.36 237.5,47.47 240.0,46.28"/><line class="nw" x1="143.3" x2="143.3" y1="0" y2="60"/></svg><i class="dt" style="left:59.72%;top:35.91%"></i><span class="ax"><span>00</span><span>06</span><span>12</span><span>18</span><span>24</span></span></div><ul class="nx"><li><button type="button" data-t="4.300"><span>High tide</span><b>04:18</b><em>3,8 m</em></button></li><li><button type="button" data-t="10.510"><span>Low tide</span><b>10:31</b><em>0,4 m</em></button></li><li><button type="button" data-t="16.720"><span>High tide</span><b>16:43</b><em>3,8 m</em></button></li><li><button type="button" data-t="22.930"><span>Low tide</span><b>22:56</b><em>0,4 m</em></button></li></ul></article>
```

### CSS

```css
.uvq07-tde {
  --c1: #0e7490;
  --c2: #e85d3a;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq07-tde {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  width: 18em;
  box-sizing: border-box;
  padding: 1.1em;
  border-radius: 1.5em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 24px 48px -30px rgba(0,0,0,.45);
}

.uvq07-tde header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6em;
}

.uvq07-tde h3 {
  margin: 0;
  font-size: .98em;
  font-weight: 750;
}

.uvq07-tde header p {
  margin: .2em 0 0;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .rd {
  display: grid;
  justify-items: end;
  margin: 0!important;
  text-align: right;
  color: var(--fg)!important;
}

.uvq07-tde .tm {
  font-size: 1.45em;
  font-weight: 750;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.uvq07-tde .rd>span {
  display: flex;
  gap: .4em;
  align-items: baseline;
  margin-top: .2em;
  font-size: .72em;
}

.uvq07-tde .hm {
  font-variant-numeric: tabular-nums;
  color: var(--c1);
}

.uvq07-tde .tr {
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .tr::before {
  content: "▼ ";
  font-size: .8em;
}

.uvq07-tde.up .tr::before {
  content: "▲ ";
}

.uvq07-tde .sn {
  position: relative;
  display: block;
  height: 7.2em;
  margin: .9em 0 .7em;
  overflow: hidden;
  border-radius: 1em;
  background: linear-gradient(180deg,color-mix(in srgb,var(--c1) 22%,var(--bg)),color-mix(in srgb,var(--c1) 6%,var(--bg)));
}

.uvq07-tde .sky {
  position: absolute;
  right: 28%;
  top: .7em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 1.2em #ffd27a;
}

.uvq07-tde .qy {
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 0;
  width: 26%;
  background: repeating-linear-gradient(180deg,transparent 0 1.1em,rgba(0,0,0,.12) 1.1em calc(1.1em + 1px)),linear-gradient(90deg,#8d959b,#b4bbc0 40%,#9aa2a8);
  box-shadow: inset 2px 0 0 rgba(255,255,255,.35);
}

.uvq07-tde .qy>i {
  position: absolute;
  left: 0;
  width: .55em;
  height: 2px;
  bottom: calc(var(--m) * 22.73% - 1px);
  background: #fff;
}

.uvq07-tde .qy>i b {
  position: absolute;
  left: .75em;
  top: -.55em;
  font-size: .55em;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

.uvq07-tde .bl {
  left: auto!important;
  right: .6em;
  top: -.55em;
  bottom: auto!important;
  width: .6em!important;
  height: .55em!important;
  border-radius: .2em .2em 0 0;
  background: #3a3f44!important;
}

.uvq07-tde .wt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--lv) * .8);
  background: linear-gradient(180deg,color-mix(in srgb,var(--c1) 80%,#fff),color-mix(in srgb,var(--c1) 85%,#000));
  opacity: .8;
  transition: height calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-tde .wv {
  position: absolute;
  left: 0;
  top: -.35em;
  width: 200%;
  height: .7em;
  background: radial-gradient(.5em .4em at 50% 100%,color-mix(in srgb,var(--c1) 80%,#fff) 98%,transparent) 0 0/1.6em 100% repeat-x;
  animation: uvq07-tde-w calc(3s / var(--k)) linear infinite;
}

.uvq07-tde .bt {
  position: absolute;
  left: 30%;
  bottom: calc(var(--lv) * .8 - .45em);
  width: 3.2em;
  transition: bottom calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-tde .bt svg {
  display: block;
  width: 100%;
  animation: uvq07-tde-b calc(2.6s / var(--k)) ease-in-out infinite;
  transform-origin: 50% 90%;
}

.uvq07-tde .ms {
  fill: none;
  stroke: #3a3f44;
  stroke-width: 1.6;
}

.uvq07-tde .sl {
  fill: #fffaf0;
  stroke: rgba(0,0,0,.15);
  stroke-width: .6;
}

.uvq07-tde .hl {
  fill: var(--c2);
}

.uvq07-tde .wl {
  stroke: #fff;
  stroke-width: 1.2;
  opacity: .8;
}

.uvq07-tde .cv {
  position: relative;
  height: 3.6em;
  cursor: ew-resize;
  touch-action: none;
  outline: 0;
  border-radius: .5em;
}

.uvq07-tde .cv:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq07-tde .cv svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq07-tde .ar {
  fill: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq07-tde .ln {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.uvq07-tde .nw {
  stroke: color-mix(in srgb,var(--fg) 35%,transparent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.uvq07-tde .dt {
  position: absolute;
  width: .8em;
  height: .8em;
  margin: -.4em 0 0 -.4em;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 .2em var(--bg),0 .2em .4em rgba(0,0,0,.3);
  transition: transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq07-tde .cv:active .dt,.uvq07-tde .cv:focus-visible .dt {
  transform: scale(1.25);
}

.uvq07-tde .ax {
  display: flex;
  justify-content: space-between;
  margin-top: .3em;
  font-size: .6em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  font-variant-numeric: tabular-nums;
}

.uvq07-tde .nx {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .35em;
  margin: 1.4em 0 0;
  padding: 0;
}

.uvq07-tde .nx button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  width: 100%;
  gap: .1em;
  padding: .45em .2em;
  border-radius: .7em;
  font-size: .72em;
  text-align: center;
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq07-tde .nx button:hover {
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq07-tde .nx button:active {
  transform: scale(.94);
}

.uvq07-tde .nx button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq07-tde .nx span {
  font-size: .85em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .nx b {
  font-variant-numeric: tabular-nums;
}

.uvq07-tde .nx em {
  font-style: normal;
  font-size: .85em;
  color: var(--c1);
  font-weight: 700;
}

@keyframes uvq07-tde-w {
  to {
    transform: translateX(-1.6em);
  }
}

@keyframes uvq07-tde-b {
  0%,100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-.12em) rotate(3deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq07-tde,.uvq07-tde *,.uvq07-tde *::before,.uvq07-tde *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq07-tde").forEach(el => {
  const cv=el.querySelector(".cv"),dt=el.querySelector(".dt"),nw=el.querySelector(".nw"),tm=el.querySelector(".tm"),hm=el.querySelector(".hm"),tr=el.querySelector(".tr");let t=14.3333,drag=false;
const K=2*Math.PI/12.42,H=x=>2.1+1.7*Math.cos(K*(x-4.3)),fmt=x=>{const m=Math.round(x*60)%1440;return String(Math.floor(m/60)).padStart(2,"0")+":"+String(m%60).padStart(2,"0")};
const set=v=>{t=Math.max(0,Math.min(23.99,v));const h=H(t),y=54-h/4*48,up=Math.sin(K*(t-4.3))<0,hs=h.toFixed(1).replace(".",",")+" m";
dt.style.left=(t/24*100).toFixed(2)+"%";dt.style.top=(y/60*100).toFixed(2)+"%";nw.setAttribute("x1",(t*10).toFixed(1));nw.setAttribute("x2",(t*10).toFixed(1));
el.style.setProperty("--lv",(h/4*100).toFixed(1)+"%");tm.textContent=fmt(t);hm.textContent=hs;tr.textContent=up?tr.dataset.a:tr.dataset.b;el.classList.toggle("up",up);
cv.setAttribute("aria-valuenow",String(Math.round(t*60)));cv.setAttribute("aria-valuetext",fmt(t)+" · "+hs)};
const at=e=>{const r=cv.getBoundingClientRect();set((e.clientX-r.left)/r.width*24)};
cv.addEventListener("pointerdown",e=>{drag=true;cv.setPointerCapture(e.pointerId);at(e)});cv.addEventListener("pointermove",e=>{if(drag)at(e)});cv.addEventListener("pointerup",()=>{drag=false});
cv.addEventListener("keydown",e=>{const m={ArrowRight:1/6,ArrowUp:1/6,ArrowLeft:-1/6,ArrowDown:-1/6,PageUp:1,PageDown:-1}[e.key];if(m){e.preventDefault();set(t+m)}if(e.key==="Home"){e.preventDefault();set(0)}if(e.key==="End"){e.preventDefault();set(23.99)}});
el.querySelectorAll(".nx button").forEach(b=>b.addEventListener("click",()=>set(+b.dataset.t)));set(t)
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq07-tde {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  width: 18em;
  box-sizing: border-box;
  padding: 1.1em;
  border-radius: 1.5em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 24px 48px -30px rgba(0,0,0,.45);
}

.uvq07-tde header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6em;
}

.uvq07-tde h3 {
  margin: 0;
  font-size: .98em;
  font-weight: 750;
}

.uvq07-tde header p {
  margin: .2em 0 0;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .rd {
  display: grid;
  justify-items: end;
  margin: 0!important;
  text-align: right;
  color: var(--fg)!important;
}

.uvq07-tde .tm {
  font-size: 1.45em;
  font-weight: 750;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.uvq07-tde .rd>span {
  display: flex;
  gap: .4em;
  align-items: baseline;
  margin-top: .2em;
  font-size: .72em;
}

.uvq07-tde .hm {
  font-variant-numeric: tabular-nums;
  color: var(--c1);
}

.uvq07-tde .tr {
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .tr::before {
  content: "▼ ";
  font-size: .8em;
}

.uvq07-tde.up .tr::before {
  content: "▲ ";
}

.uvq07-tde .sn {
  position: relative;
  display: block;
  height: 7.2em;
  margin: .9em 0 .7em;
  overflow: hidden;
  border-radius: 1em;
  background: linear-gradient(180deg,color-mix(in srgb,var(--c1) 22%,var(--bg)),color-mix(in srgb,var(--c1) 6%,var(--bg)));
}

.uvq07-tde .sky {
  position: absolute;
  right: 28%;
  top: .7em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 1.2em #ffd27a;
}

.uvq07-tde .qy {
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 0;
  width: 26%;
  background: repeating-linear-gradient(180deg,transparent 0 1.1em,rgba(0,0,0,.12) 1.1em calc(1.1em + 1px)),linear-gradient(90deg,#8d959b,#b4bbc0 40%,#9aa2a8);
  box-shadow: inset 2px 0 0 rgba(255,255,255,.35);
}

.uvq07-tde .qy>i {
  position: absolute;
  left: 0;
  width: .55em;
  height: 2px;
  bottom: calc(var(--m) * 22.73% - 1px);
  background: #fff;
}

.uvq07-tde .qy>i b {
  position: absolute;
  left: .75em;
  top: -.55em;
  font-size: .55em;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

.uvq07-tde .bl {
  left: auto!important;
  right: .6em;
  top: -.55em;
  bottom: auto!important;
  width: .6em!important;
  height: .55em!important;
  border-radius: .2em .2em 0 0;
  background: #3a3f44!important;
}

.uvq07-tde .wt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--lv) * .8);
  background: linear-gradient(180deg,color-mix(in srgb,var(--c1) 80%,#fff),color-mix(in srgb,var(--c1) 85%,#000));
  opacity: .8;
  transition: height calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-tde .wv {
  position: absolute;
  left: 0;
  top: -.35em;
  width: 200%;
  height: .7em;
  background: radial-gradient(.5em .4em at 50% 100%,color-mix(in srgb,var(--c1) 80%,#fff) 98%,transparent) 0 0/1.6em 100% repeat-x;
  animation: uvq07-tde-w calc(3s / var(--k)) linear infinite;
}

.uvq07-tde .bt {
  position: absolute;
  left: 30%;
  bottom: calc(var(--lv) * .8 - .45em);
  width: 3.2em;
  transition: bottom calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-tde .bt svg {
  display: block;
  width: 100%;
  animation: uvq07-tde-b calc(2.6s / var(--k)) ease-in-out infinite;
  transform-origin: 50% 90%;
}

.uvq07-tde .ms {
  fill: none;
  stroke: #3a3f44;
  stroke-width: 1.6;
}

.uvq07-tde .sl {
  fill: #fffaf0;
  stroke: rgba(0,0,0,.15);
  stroke-width: .6;
}

.uvq07-tde .hl {
  fill: var(--c2);
}

.uvq07-tde .wl {
  stroke: #fff;
  stroke-width: 1.2;
  opacity: .8;
}

.uvq07-tde .cv {
  position: relative;
  height: 3.6em;
  cursor: ew-resize;
  touch-action: none;
  outline: 0;
  border-radius: .5em;
}

.uvq07-tde .cv:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq07-tde .cv svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq07-tde .ar {
  fill: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq07-tde .ln {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.uvq07-tde .nw {
  stroke: color-mix(in srgb,var(--fg) 35%,transparent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.uvq07-tde .dt {
  position: absolute;
  width: .8em;
  height: .8em;
  margin: -.4em 0 0 -.4em;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 .2em var(--bg),0 .2em .4em rgba(0,0,0,.3);
  transition: transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq07-tde .cv:active .dt,.uvq07-tde .cv:focus-visible .dt {
  transform: scale(1.25);
}

.uvq07-tde .ax {
  display: flex;
  justify-content: space-between;
  margin-top: .3em;
  font-size: .6em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  font-variant-numeric: tabular-nums;
}

.uvq07-tde .nx {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .35em;
  margin: 1.4em 0 0;
  padding: 0;
}

.uvq07-tde .nx button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  width: 100%;
  gap: .1em;
  padding: .45em .2em;
  border-radius: .7em;
  font-size: .72em;
  text-align: center;
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq07-tde .nx button:hover {
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq07-tde .nx button:active {
  transform: scale(.94);
}

.uvq07-tde .nx button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq07-tde .nx span {
  font-size: .85em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .nx b {
  font-variant-numeric: tabular-nums;
}

.uvq07-tde .nx em {
  font-style: normal;
  font-size: .85em;
  color: var(--c1);
  font-weight: 700;
}

@keyframes uvq07-tde-w {
  to {
    transform: translateX(-1.6em);
  }
}

@keyframes uvq07-tde-b {
  0%,100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-.12em) rotate(3deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq07-tde,.uvq07-tde *,.uvq07-tde *::before,.uvq07-tde *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const cv=el.querySelector(".cv"),dt=el.querySelector(".dt"),nw=el.querySelector(".nw"),tm=el.querySelector(".tm"),hm=el.querySelector(".hm"),tr=el.querySelector(".tr");let t=14.3333,drag=false;
const K=2*Math.PI/12.42,H=x=>2.1+1.7*Math.cos(K*(x-4.3)),fmt=x=>{const m=Math.round(x*60)%1440;return String(Math.floor(m/60)).padStart(2,"0")+":"+String(m%60).padStart(2,"0")};
const set=v=>{t=Math.max(0,Math.min(23.99,v));const h=H(t),y=54-h/4*48,up=Math.sin(K*(t-4.3))<0,hs=h.toFixed(1).replace(".",",")+" m";
dt.style.left=(t/24*100).toFixed(2)+"%";dt.style.top=(y/60*100).toFixed(2)+"%";nw.setAttribute("x1",(t*10).toFixed(1));nw.setAttribute("x2",(t*10).toFixed(1));
el.style.setProperty("--lv",(h/4*100).toFixed(1)+"%");tm.textContent=fmt(t);hm.textContent=hs;tr.textContent=up?tr.dataset.a:tr.dataset.b;el.classList.toggle("up",up);
cv.setAttribute("aria-valuenow",String(Math.round(t*60)));cv.setAttribute("aria-valuetext",fmt(t)+" · "+hs)};
const at=e=>{const r=cv.getBoundingClientRect();set((e.clientX-r.left)/r.width*24)};
cv.addEventListener("pointerdown",e=>{drag=true;cv.setPointerCapture(e.pointerId);at(e)});cv.addEventListener("pointermove",e=>{if(drag)at(e)});cv.addEventListener("pointerup",()=>{drag=false});
cv.addEventListener("keydown",e=>{const m={ArrowRight:1/6,ArrowUp:1/6,ArrowLeft:-1/6,ArrowDown:-1/6,PageUp:1,PageDown:-1}[e.key];if(m){e.preventDefault();set(t+m)}if(e.key==="Home"){e.preventDefault();set(0)}if(e.key==="End"){e.preventDefault();set(23.99)}});
el.querySelectorAll(".nx button").forEach(b=>b.addEventListener("click",()=>set(+b.dataset.t)));set(t)
}

export default function CardTideHarbour() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#0e7490",
          "--c2": "#e85d3a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <article className="uvq07-tde" style={{ "--lv": "67.6%" } as CSSProperties}><header><div><h3>Tides in Cudillero</h3><p>Today · coefficient 92</p></div><p className="rd"><b className="tm">14:20</b><span><b className="hm">2,7 m</b><span className="tr" data-a="Rising" data-b="Falling">Rising</span></span></p></header><div className="sn" aria-hidden="true"><i className="sky"></i><span className="qy"><i style={{ "--m": "0" } as CSSProperties}><b>0</b></i><i style={{ "--m": "1" } as CSSProperties}><b>1</b></i><i style={{ "--m": "2" } as CSSProperties}><b>2</b></i><i style={{ "--m": "3" } as CSSProperties}><b>3</b></i><i style={{ "--m": "4" } as CSSProperties}><b>4</b></i><i className="bl"></i></span><span className="wt"><i className="wv"></i></span><span className="bt"><svg viewBox="0 0 40 30"><path className="ms" d="M17 3v19" /><path className="sl" d="M18 4l11 15H18z" /><path className="hl" d="M3 21h34l-5 7H8z" /><path className="wl" d="M5 24h30" /></svg></span></div><div className="cv" role="slider" tabIndex={0} aria-label="Time of day" aria-valuemin="0" aria-valuemax="1439" aria-valuenow="860" aria-valuetext="14:20 · 2,7 m"><svg viewBox="0 0 240 60" preserveAspectRatio="none"><path className="ar" d="M0,60 L0.0,40.40 2.5,38.19 5.0,35.83 7.5,33.35 10.0,30.81 12.5,28.23 15.0,25.66 17.5,23.15 20.0,20.72 22.5,18.42 25.0,16.29 27.5,14.36 30.0,12.65 32.5,11.21 35.0,10.05 37.5,9.18 40.0,8.63 42.5,8.41 45.0,8.50 47.5,8.93 50.0,9.67 52.5,10.71 55.0,12.05 57.5,13.65 60.0,15.49 62.5,17.55 65.0,19.78 67.5,22.16 70.0,24.65 72.5,27.20 75.0,29.78 77.5,32.34 80.0,34.85 82.5,37.26 85.0,39.53 87.5,41.63 90.0,43.53 92.5,45.19 95.0,46.59 97.5,47.71 100.0,48.52 102.5,49.02 105.0,49.20 107.5,49.05 110.0,48.58 112.5,47.79 115.0,46.69 117.5,45.32 120.0,43.67 122.5,41.79 125.0,39.71 127.5,37.44 130.0,35.05 132.5,32.55 135.0,29.99 137.5,27.41 140.0,24.85 142.5,22.36 145.0,19.97 147.5,17.72 150.0,15.65 152.5,13.79 155.0,12.16 157.5,10.81 160.0,9.74 162.5,8.97 165.0,8.53 167.5,8.40 170.0,8.60 172.5,9.13 175.0,9.97 177.5,11.11 180.0,12.53 182.5,14.21 185.0,16.13 187.5,18.24 190.0,20.53 192.5,22.95 195.0,25.46 197.5,28.03 200.0,30.60 202.5,33.15 205.0,35.63 207.5,38.00 210.0,40.22 212.5,42.27 215.0,44.09 217.5,45.67 220.0,46.98 222.5,48.00 225.0,48.72 227.5,49.12 230.0,49.19 232.5,48.93 235.0,48.36 237.5,47.47 240.0,46.28 L240,60Z" /><polyline className="ln" points="0.0,40.40 2.5,38.19 5.0,35.83 7.5,33.35 10.0,30.81 12.5,28.23 15.0,25.66 17.5,23.15 20.0,20.72 22.5,18.42 25.0,16.29 27.5,14.36 30.0,12.65 32.5,11.21 35.0,10.05 37.5,9.18 40.0,8.63 42.5,8.41 45.0,8.50 47.5,8.93 50.0,9.67 52.5,10.71 55.0,12.05 57.5,13.65 60.0,15.49 62.5,17.55 65.0,19.78 67.5,22.16 70.0,24.65 72.5,27.20 75.0,29.78 77.5,32.34 80.0,34.85 82.5,37.26 85.0,39.53 87.5,41.63 90.0,43.53 92.5,45.19 95.0,46.59 97.5,47.71 100.0,48.52 102.5,49.02 105.0,49.20 107.5,49.05 110.0,48.58 112.5,47.79 115.0,46.69 117.5,45.32 120.0,43.67 122.5,41.79 125.0,39.71 127.5,37.44 130.0,35.05 132.5,32.55 135.0,29.99 137.5,27.41 140.0,24.85 142.5,22.36 145.0,19.97 147.5,17.72 150.0,15.65 152.5,13.79 155.0,12.16 157.5,10.81 160.0,9.74 162.5,8.97 165.0,8.53 167.5,8.40 170.0,8.60 172.5,9.13 175.0,9.97 177.5,11.11 180.0,12.53 182.5,14.21 185.0,16.13 187.5,18.24 190.0,20.53 192.5,22.95 195.0,25.46 197.5,28.03 200.0,30.60 202.5,33.15 205.0,35.63 207.5,38.00 210.0,40.22 212.5,42.27 215.0,44.09 217.5,45.67 220.0,46.98 222.5,48.00 225.0,48.72 227.5,49.12 230.0,49.19 232.5,48.93 235.0,48.36 237.5,47.47 240.0,46.28" /><line className="nw" x1="143.3" x2="143.3" y1="0" y2="60" /></svg><i className="dt" style={{ left: "59.72%", top: "35.91%" }}></i><span className="ax"><span>00</span><span>06</span><span>12</span><span>18</span><span>24</span></span></div><ul className="nx"><li><button type="button" data-t="4.300"><span>High tide</span><b>04:18</b><em>3,8 m</em></button></li><li><button type="button" data-t="10.510"><span>Low tide</span><b>10:31</b><em>0,4 m</em></button></li><li><button type="button" data-t="16.720"><span>High tide</span><b>16:43</b><em>3,8 m</em></button></li><li><button type="button" data-t="22.930"><span>Low tide</span><b>22:56</b><em>0,4 m</em></button></li></ul></article>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Harbour tide card with quay” block (Cards) from AIMRAN Library to my project.

## What it is
The day's tide curve: drag the time and the water climbs or drops along the quay gauge with the boat floating on top.

## Chosen settings
- Main color: #0e7490
- Secondary color: #e85d3a
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Mareas en Cudillero"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq07-tde {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  width: 18em;
  box-sizing: border-box;
  padding: 1.1em;
  border-radius: 1.5em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 24px 48px -30px rgba(0,0,0,.45);
}

.uvq07-tde header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6em;
}

.uvq07-tde h3 {
  margin: 0;
  font-size: .98em;
  font-weight: 750;
}

.uvq07-tde header p {
  margin: .2em 0 0;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .rd {
  display: grid;
  justify-items: end;
  margin: 0!important;
  text-align: right;
  color: var(--fg)!important;
}

.uvq07-tde .tm {
  font-size: 1.45em;
  font-weight: 750;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.uvq07-tde .rd>span {
  display: flex;
  gap: .4em;
  align-items: baseline;
  margin-top: .2em;
  font-size: .72em;
}

.uvq07-tde .hm {
  font-variant-numeric: tabular-nums;
  color: var(--c1);
}

.uvq07-tde .tr {
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .tr::before {
  content: "▼ ";
  font-size: .8em;
}

.uvq07-tde.up .tr::before {
  content: "▲ ";
}

.uvq07-tde .sn {
  position: relative;
  display: block;
  height: 7.2em;
  margin: .9em 0 .7em;
  overflow: hidden;
  border-radius: 1em;
  background: linear-gradient(180deg,color-mix(in srgb,var(--c1) 22%,var(--bg)),color-mix(in srgb,var(--c1) 6%,var(--bg)));
}

.uvq07-tde .sky {
  position: absolute;
  right: 28%;
  top: .7em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 1.2em #ffd27a;
}

.uvq07-tde .qy {
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 0;
  width: 26%;
  background: repeating-linear-gradient(180deg,transparent 0 1.1em,rgba(0,0,0,.12) 1.1em calc(1.1em + 1px)),linear-gradient(90deg,#8d959b,#b4bbc0 40%,#9aa2a8);
  box-shadow: inset 2px 0 0 rgba(255,255,255,.35);
}

.uvq07-tde .qy>i {
  position: absolute;
  left: 0;
  width: .55em;
  height: 2px;
  bottom: calc(var(--m) * 22.73% - 1px);
  background: #fff;
}

.uvq07-tde .qy>i b {
  position: absolute;
  left: .75em;
  top: -.55em;
  font-size: .55em;
  font-style: normal;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}

.uvq07-tde .bl {
  left: auto!important;
  right: .6em;
  top: -.55em;
  bottom: auto!important;
  width: .6em!important;
  height: .55em!important;
  border-radius: .2em .2em 0 0;
  background: #3a3f44!important;
}

.uvq07-tde .wt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--lv) * .8);
  background: linear-gradient(180deg,color-mix(in srgb,var(--c1) 80%,#fff),color-mix(in srgb,var(--c1) 85%,#000));
  opacity: .8;
  transition: height calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-tde .wv {
  position: absolute;
  left: 0;
  top: -.35em;
  width: 200%;
  height: .7em;
  background: radial-gradient(.5em .4em at 50% 100%,color-mix(in srgb,var(--c1) 80%,#fff) 98%,transparent) 0 0/1.6em 100% repeat-x;
  animation: uvq07-tde-w calc(3s / var(--k)) linear infinite;
}

.uvq07-tde .bt {
  position: absolute;
  left: 30%;
  bottom: calc(var(--lv) * .8 - .45em);
  width: 3.2em;
  transition: bottom calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-tde .bt svg {
  display: block;
  width: 100%;
  animation: uvq07-tde-b calc(2.6s / var(--k)) ease-in-out infinite;
  transform-origin: 50% 90%;
}

.uvq07-tde .ms {
  fill: none;
  stroke: #3a3f44;
  stroke-width: 1.6;
}

.uvq07-tde .sl {
  fill: #fffaf0;
  stroke: rgba(0,0,0,.15);
  stroke-width: .6;
}

.uvq07-tde .hl {
  fill: var(--c2);
}

.uvq07-tde .wl {
  stroke: #fff;
  stroke-width: 1.2;
  opacity: .8;
}

.uvq07-tde .cv {
  position: relative;
  height: 3.6em;
  cursor: ew-resize;
  touch-action: none;
  outline: 0;
  border-radius: .5em;
}

.uvq07-tde .cv:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq07-tde .cv svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq07-tde .ar {
  fill: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq07-tde .ln {
  fill: none;
  stroke: var(--c1);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.uvq07-tde .nw {
  stroke: color-mix(in srgb,var(--fg) 35%,transparent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.uvq07-tde .dt {
  position: absolute;
  width: .8em;
  height: .8em;
  margin: -.4em 0 0 -.4em;
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 0 .2em var(--bg),0 .2em .4em rgba(0,0,0,.3);
  transition: transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq07-tde .cv:active .dt,.uvq07-tde .cv:focus-visible .dt {
  transform: scale(1.25);
}

.uvq07-tde .ax {
  display: flex;
  justify-content: space-between;
  margin-top: .3em;
  font-size: .6em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  font-variant-numeric: tabular-nums;
}

.uvq07-tde .nx {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .35em;
  margin: 1.4em 0 0;
  padding: 0;
}

.uvq07-tde .nx button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  width: 100%;
  gap: .1em;
  padding: .45em .2em;
  border-radius: .7em;
  font-size: .72em;
  text-align: center;
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq07-tde .nx button:hover {
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq07-tde .nx button:active {
  transform: scale(.94);
}

.uvq07-tde .nx button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq07-tde .nx span {
  font-size: .85em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-tde .nx b {
  font-variant-numeric: tabular-nums;
}

.uvq07-tde .nx em {
  font-style: normal;
  font-size: .85em;
  color: var(--c1);
  font-weight: 700;
}

@keyframes uvq07-tde-w {
  to {
    transform: translateX(-1.6em);
  }
}

@keyframes uvq07-tde-b {
  0%,100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-.12em) rotate(3deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq07-tde,.uvq07-tde *,.uvq07-tde *::before,.uvq07-tde *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const cv=el.querySelector(".cv"),dt=el.querySelector(".dt"),nw=el.querySelector(".nw"),tm=el.querySelector(".tm"),hm=el.querySelector(".hm"),tr=el.querySelector(".tr");let t=14.3333,drag=false;
const K=2*Math.PI/12.42,H=x=>2.1+1.7*Math.cos(K*(x-4.3)),fmt=x=>{const m=Math.round(x*60)%1440;return String(Math.floor(m/60)).padStart(2,"0")+":"+String(m%60).padStart(2,"0")};
const set=v=>{t=Math.max(0,Math.min(23.99,v));const h=H(t),y=54-h/4*48,up=Math.sin(K*(t-4.3))<0,hs=h.toFixed(1).replace(".",",")+" m";
dt.style.left=(t/24*100).toFixed(2)+"%";dt.style.top=(y/60*100).toFixed(2)+"%";nw.setAttribute("x1",(t*10).toFixed(1));nw.setAttribute("x2",(t*10).toFixed(1));
el.style.setProperty("--lv",(h/4*100).toFixed(1)+"%");tm.textContent=fmt(t);hm.textContent=hs;tr.textContent=up?tr.dataset.a:tr.dataset.b;el.classList.toggle("up",up);
cv.setAttribute("aria-valuenow",String(Math.round(t*60)));cv.setAttribute("aria-valuetext",fmt(t)+" · "+hs)};
const at=e=>{const r=cv.getBoundingClientRect();set((e.clientX-r.left)/r.width*24)};
cv.addEventListener("pointerdown",e=>{drag=true;cv.setPointerCapture(e.pointerId);at(e)});cv.addEventListener("pointermove",e=>{if(drag)at(e)});cv.addEventListener("pointerup",()=>{drag=false});
cv.addEventListener("keydown",e=>{const m={ArrowRight:1/6,ArrowUp:1/6,ArrowLeft:-1/6,ArrowDown:-1/6,PageUp:1,PageDown:-1}[e.key];if(m){e.preventDefault();set(t+m)}if(e.key==="Home"){e.preventDefault();set(0)}if(e.key==="End"){e.preventDefault();set(23.99)}});
el.querySelectorAll(".nx button").forEach(b=>b.addEventListener("click",()=>set(+b.dataset.t)));set(t)
}

export default function CardTideHarbour() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#0e7490",
          "--c2": "#e85d3a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <article className="uvq07-tde" style={{ "--lv": "67.6%" } as CSSProperties}><header><div><h3>Tides in Cudillero</h3><p>Today · coefficient 92</p></div><p className="rd"><b className="tm">14:20</b><span><b className="hm">2,7 m</b><span className="tr" data-a="Rising" data-b="Falling">Rising</span></span></p></header><div className="sn" aria-hidden="true"><i className="sky"></i><span className="qy"><i style={{ "--m": "0" } as CSSProperties}><b>0</b></i><i style={{ "--m": "1" } as CSSProperties}><b>1</b></i><i style={{ "--m": "2" } as CSSProperties}><b>2</b></i><i style={{ "--m": "3" } as CSSProperties}><b>3</b></i><i style={{ "--m": "4" } as CSSProperties}><b>4</b></i><i className="bl"></i></span><span className="wt"><i className="wv"></i></span><span className="bt"><svg viewBox="0 0 40 30"><path className="ms" d="M17 3v19" /><path className="sl" d="M18 4l11 15H18z" /><path className="hl" d="M3 21h34l-5 7H8z" /><path className="wl" d="M5 24h30" /></svg></span></div><div className="cv" role="slider" tabIndex={0} aria-label="Time of day" aria-valuemin="0" aria-valuemax="1439" aria-valuenow="860" aria-valuetext="14:20 · 2,7 m"><svg viewBox="0 0 240 60" preserveAspectRatio="none"><path className="ar" d="M0,60 L0.0,40.40 2.5,38.19 5.0,35.83 7.5,33.35 10.0,30.81 12.5,28.23 15.0,25.66 17.5,23.15 20.0,20.72 22.5,18.42 25.0,16.29 27.5,14.36 30.0,12.65 32.5,11.21 35.0,10.05 37.5,9.18 40.0,8.63 42.5,8.41 45.0,8.50 47.5,8.93 50.0,9.67 52.5,10.71 55.0,12.05 57.5,13.65 60.0,15.49 62.5,17.55 65.0,19.78 67.5,22.16 70.0,24.65 72.5,27.20 75.0,29.78 77.5,32.34 80.0,34.85 82.5,37.26 85.0,39.53 87.5,41.63 90.0,43.53 92.5,45.19 95.0,46.59 97.5,47.71 100.0,48.52 102.5,49.02 105.0,49.20 107.5,49.05 110.0,48.58 112.5,47.79 115.0,46.69 117.5,45.32 120.0,43.67 122.5,41.79 125.0,39.71 127.5,37.44 130.0,35.05 132.5,32.55 135.0,29.99 137.5,27.41 140.0,24.85 142.5,22.36 145.0,19.97 147.5,17.72 150.0,15.65 152.5,13.79 155.0,12.16 157.5,10.81 160.0,9.74 162.5,8.97 165.0,8.53 167.5,8.40 170.0,8.60 172.5,9.13 175.0,9.97 177.5,11.11 180.0,12.53 182.5,14.21 185.0,16.13 187.5,18.24 190.0,20.53 192.5,22.95 195.0,25.46 197.5,28.03 200.0,30.60 202.5,33.15 205.0,35.63 207.5,38.00 210.0,40.22 212.5,42.27 215.0,44.09 217.5,45.67 220.0,46.98 222.5,48.00 225.0,48.72 227.5,49.12 230.0,49.19 232.5,48.93 235.0,48.36 237.5,47.47 240.0,46.28 L240,60Z" /><polyline className="ln" points="0.0,40.40 2.5,38.19 5.0,35.83 7.5,33.35 10.0,30.81 12.5,28.23 15.0,25.66 17.5,23.15 20.0,20.72 22.5,18.42 25.0,16.29 27.5,14.36 30.0,12.65 32.5,11.21 35.0,10.05 37.5,9.18 40.0,8.63 42.5,8.41 45.0,8.50 47.5,8.93 50.0,9.67 52.5,10.71 55.0,12.05 57.5,13.65 60.0,15.49 62.5,17.55 65.0,19.78 67.5,22.16 70.0,24.65 72.5,27.20 75.0,29.78 77.5,32.34 80.0,34.85 82.5,37.26 85.0,39.53 87.5,41.63 90.0,43.53 92.5,45.19 95.0,46.59 97.5,47.71 100.0,48.52 102.5,49.02 105.0,49.20 107.5,49.05 110.0,48.58 112.5,47.79 115.0,46.69 117.5,45.32 120.0,43.67 122.5,41.79 125.0,39.71 127.5,37.44 130.0,35.05 132.5,32.55 135.0,29.99 137.5,27.41 140.0,24.85 142.5,22.36 145.0,19.97 147.5,17.72 150.0,15.65 152.5,13.79 155.0,12.16 157.5,10.81 160.0,9.74 162.5,8.97 165.0,8.53 167.5,8.40 170.0,8.60 172.5,9.13 175.0,9.97 177.5,11.11 180.0,12.53 182.5,14.21 185.0,16.13 187.5,18.24 190.0,20.53 192.5,22.95 195.0,25.46 197.5,28.03 200.0,30.60 202.5,33.15 205.0,35.63 207.5,38.00 210.0,40.22 212.5,42.27 215.0,44.09 217.5,45.67 220.0,46.98 222.5,48.00 225.0,48.72 227.5,49.12 230.0,49.19 232.5,48.93 235.0,48.36 237.5,47.47 240.0,46.28" /><line className="nw" x1="143.3" x2="143.3" y1="0" y2="60" /></svg><i className="dt" style={{ left: "59.72%", top: "35.91%" }}></i><span className="ax"><span>00</span><span>06</span><span>12</span><span>18</span><span>24</span></span></div><ul className="nx"><li><button type="button" data-t="4.300"><span>High tide</span><b>04:18</b><em>3,8 m</em></button></li><li><button type="button" data-t="10.510"><span>Low tide</span><b>10:31</b><em>0,4 m</em></button></li><li><button type="button" data-t="16.720"><span>High tide</span><b>16:43</b><em>3,8 m</em></button></li><li><button type="button" data-t="22.930"><span>Low tide</span><b>22:56</b><em>0,4 m</em></button></li></ul></article>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
