/* =========================================================
   UASEA DESIGN SYSTEM
   ========================================================= */


@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation:
    page-fade-out
    100ms ease-in both;
}

::view-transition-new(root) {
  animation:
    page-fade-in
    180ms
    cubic-bezier(0.2, 0, 0, 1)
    both;
}

@keyframes page-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.96;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.15rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


:root {
  color-scheme: light;

  --map-control-top-gap:
  clamp(
    0.35rem,
    0.8vw,
    0.6rem
  );

  /* Brand */
  --color-brand-900: #163f5f;
  --color-brand-800: #20577f;
  --color-brand-700: #2d6f9f;
  --color-brand-600: #3e82b8;
  --color-brand-500: #4e8bcc;
  --color-brand-100: #e9f3fb;
  --color-brand-050: #f4f9fd;

  /* Status */
  --color-success: #16845b;
  --color-success-soft: #e5f7ef;
  --color-danger: #c94646;
  --color-danger-soft: #fff0f0;
  --color-warning: #9a6b00;
  --color-warning-soft: #fff8df;

  /* Neutral */
  --color-text: #1f3445;
  --color-text-muted: #627587;
  --color-border: rgba(30, 75, 108, 0.14);
  --color-surface: #ffffff;
  --color-page: #f3f7fa;

  /* Layout */
  --header-height: clamp(3.75rem, 5vw, 4.5rem);
  --page-gutter: clamp(0.75rem, 2.5vw, 2rem);
  --content-width: 72rem;

  /* Radius */
  --radius-small: 0.5rem;
  --radius-medium: 0.75rem;
  --radius-large: 1rem;
  --radius-xlarge: 1.25rem;
  --radius-pill: 999rem;

  /* Shadows */
  --shadow-small:
  0 0.15rem 0.55rem rgba(20, 57, 82, 0.08);

  --shadow-medium:
  0 0.45rem 1.25rem rgba(20, 57, 82, 0.10);

  --shadow-large:
  0 0.8rem 2rem rgba(20, 57, 82, 0.14);

  /* Forecast */
  --forecast-height:
    clamp(
      18rem,
      44dvh,
      35rem
    );

  --forecast-collapsed-height:
    4.25rem;

  --forecast-header-approx:
    7.5rem;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

    --coordinate-width:
      min(
        23rem,
        calc(100vw - 2 * var(--page-gutter))
      );

    --coordinate-panel-height:
      4.8rem;
  }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      width: 100%;
      min-height: 100%;
      scroll-behavior: smooth;
    }

    body {
      width: 100%;
      min-height: 100%;
      margin: 0;

      color: var(--color-text);
      background: var(--color-page);

      font-family: inherit;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }

    body.map-page {
      height: 100dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

  body.content-page {
    min-height: 100dvh;
    display: block;

    background:
      radial-gradient(
        circle at top left,
        rgba(78, 139, 204, 0.10),
        transparent 28rem
      ),
      var(--color-page);

    line-height: 1.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 0.2rem solid rgba(78, 139, 204, 0.42);
  outline-offset: 0.18rem;
}


/* =========================================================
   SHARED HEADER
   ========================================================= */

.site-header {
  min-height: var(--header-height);
  padding-inline: var(--page-gutter);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  color: white;

  background:
    linear-gradient(
      120deg,
      var(--color-brand-900),
      var(--color-brand-600)
    );

  border-bottom:
    1px solid rgba(255, 255, 255, 0.16);

  box-shadow:
    0 0.35rem 1.5rem rgba(18, 58, 87, 0.18);

  position: relative;
  z-index: 2000;
}

.content-page .site-header {
  position: sticky;
  top: 0;
}

.site-brand {
  color: white;
  text-decoration: none;

  font-size:
    clamp(1.1rem, 2vw, 1.35rem);

  font-weight: 700;
  letter-spacing: 0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a,
.site-nav button {
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.88);
  background: transparent;

  border: 0;
  border-radius: 0.25rem;

  font-size:
    clamp(0.82rem, 1.5vw, 0.95rem);

  font-weight: 600;
  text-decoration: none;
  cursor: pointer;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav button:hover {
  color: white;
  background:
    rgba(255, 255, 255, 0.13);

  text-decoration: none;
  transform: translateY(-0.05rem);
}

.site-nav a[aria-current="page"] {
  color: white;
  background: rgba(255, 255, 255, 0.12);

  box-shadow:
    inset 0 -0.15rem 0
    rgba(255, 255, 255, 0.9);
}



/* =========================================================
   MAP
   ========================================================= */

#map-wrapper {
  position: absolute;
  inset:
    var(--header-height)
    0
    0;

  z-index: 1;
}

.map-container {
  width: 100%;
  height: 100%;
}

.leaflet-top,
.leaflet-bottom,
.leaflet-left,
.leaflet-right {
  z-index: 900;
}

.leaflet-top .leaflet-control,
.leaflet-bottom .leaflet-control {
  margin: 0;
}

/*
 * Το map-wrapper αρχίζει ήδη κάτω από το header,
 * επομένως εδώ δεν ξαναπροσθέτουμε το header height.
 */
.leaflet-top.leaflet-left {
  top: var(--map-control-top-gap);

  left:
    calc(
      var(--page-gutter) +
      var(--coordinate-width) +
      0.55rem
    );
}

.leaflet-control-zoom {
  overflow: hidden !important;

  border: 1px solid var(--color-border) !important;
  border-radius: 0.75rem !important;

  box-shadow: var(--shadow-small) !important;
  background: #fff !important;
}

.leaflet-control-zoom a {
  width: 2.4rem !important;
  height: 2.4rem !important;
  line-height: 2.25rem !important;

  color: var(--color-brand-900) !important;
  background: #fff !important;

  border: 0 !important;

  font-size: 1.1rem !important;
  font-weight: 600 !important;

  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.leaflet-control-zoom a + a {
  border-top: 1px solid var(--color-border) !important;
}

.leaflet-control-zoom a:hover {
  color: var(--color-brand-800) !important;
  background: var(--color-brand-050) !important;
}




/* Adjustments Panel - Floating Right 
.adjustments {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  width: 350px;
  z-index: 15;
  overflow-y: auto;
  max-height: 80vh;
  border: 1px solid #ccc;
}*/

/* Label and Input Field Row Layout *//*
.adjustments .adjustment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}*/

/*
.adjustments label {
  flex: 1;
  font-weight: bold;
  white-space: nowrap;
}*/
/*
.adjustments input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #007bff;
  border-radius: 4px;
  width: 50px;
  text-align: center;
}*/

/* =========================================================
   COORDINATE SEARCH
   ========================================================= */

.coordinate-search {
  position: absolute;

  top:
    calc(
      var(--header-height) +
      var(--map-control-top-gap)
    );

  left: var(--page-gutter);

width: var(--coordinate-width);

  padding: 0.8rem;

background: #ffffff;
border: 1px solid var(--color-border);
border-radius: var(--radius-large);
box-shadow: var(--shadow-small);

backdrop-filter: none;
-webkit-backdrop-filter: none;

  z-index: 1200;
}

.coordinate-search label {
  display: block;
  margin-bottom: 0.45rem;

  color: var(--color-brand-900);

  font-size: 0.78rem;
  font-weight: 700;
}

.coordinate-search > div {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.coordinate-search input {
  min-width: 0;
  flex: 1;

  padding: 0.7rem 0.85rem;

  color: var(--color-text);
  background: white;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);

  font-size: 0.88rem;
}

.coordinate-search input:focus {
  border-color: var(--color-brand-500);

  box-shadow:
    0 0 0 0.2rem
    rgba(78, 139, 204, 0.14);
}

.coordinate-search button {
  padding-inline: 1rem;

  color: white;
  background: var(--color-brand-700);

  border: 0;
  border-radius: 0.65rem;

  box-shadow: var(--shadow-small);

  font-size: 0.86rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.coordinate-search button:hover {
  background: var(--color-brand-800);

  box-shadow: var(--shadow-medium);

  transform: translateY(-0.05rem);
}

.coordinate-search button:active {
  transform: translateY(0);
}


/* =========================================================
   MAP ACTIONS
   ========================================================= */

.adjustments-wrapper {
  position: absolute;

    top:
    calc(
      var(--header-height) +
      var(--map-control-top-gap)
    );

  right: var(--page-gutter);

  z-index: 1300;
}

.map-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-action-btn {
  min-height: 2.5rem;
  padding: 0.6rem 0.95rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  color: white;
  background: var(--color-brand-700);

  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 0.7rem;

  box-shadow: var(--shadow-small);

  font-size: 0.82rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.map-action-btn:hover {
  background: var(--color-brand-800);
  transform: translateY(-0.04rem);
  box-shadow: var(--shadow-medium);
}

.map-action-btn:active {
  transform: translateY(0);
}



/* =========================================================
   CONDITIONS PANEL
   ========================================================= */

#adjustments-panel {
  display: none;
  opacity: 0;

  transform: translateY(-0.5rem);

  pointer-events: none;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

#adjustments-panel.show {
  display: block;
  opacity: 1;

  transform: translateY(0);

  pointer-events: auto;
}

.adjustments-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;

  width:
    min(
      23rem,
      calc(100vw - 2 * var(--page-gutter))
    );

  max-height:
    min(
      65dvh,
      34rem
    );

  padding:
    clamp(1rem, 2vw, 1.3rem);

  overflow-y: auto;

  color: var(--color-text);

background: #ffffff;
border: 1px solid var(--color-border);
border-radius: var(--radius-large);
box-shadow: var(--shadow-medium);

backdrop-filter: none;
-webkit-backdrop-filter: none;

  font-size: 0.82rem;
}

.dropdown-arrow {
  position: absolute;

  top: -0.45rem;
  right: 1.5rem;

  width: 0.9rem;
  height: 0.9rem;

  background: white;

  transform: rotate(45deg);

  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}

.adjustments-panel .adjustment-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(4rem, 0.38fr)
    minmax(4rem, 0.38fr);

  align-items: center;
  gap: 0.5rem;

  margin-bottom: 0.65rem;
}

.adjustments-panel label {
  min-width: 0;

  color: var(--color-text);

  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.3;
}

.adjustments-panel input {
  width: 100%;
  min-width: 0;
  height: 2.5rem;

  padding-inline: 0.55rem;

  color: var(--color-text);
  background: white;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);

  font-size: 0.8rem;
  text-align: center;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.adjustments-panel input:focus {
  border-color: var(--color-brand-500);

  box-shadow:
    0 0 0 0.18rem
    rgba(78, 139, 204, 0.14);
}

.adjustments-panel input:disabled {
  color: var(--color-text-muted);
  background: #eef2f5;

  cursor: not-allowed;
}


/* =========================================================
   TOGGLE SWITCH
   ========================================================= */

.switch {
  position: relative;

  display: inline-block;

  width: 3rem;
  height: 1.7rem;

  flex: 0 0 auto;
}

.switch input {
  width: 0;
  height: 0;

  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;

  background: #c9d4dc;

  border-radius: var(--radius-pill);

  cursor: pointer;

  transition: background-color 180ms ease;
}

.slider::before {
  content: "";

  position: absolute;

  width: 1.25rem;
  height: 1.25rem;

  left: 0.22rem;
  bottom: 0.22rem;

  background: white;

  border-radius: 50%;
  box-shadow: var(--shadow-small);

  transition: transform 180ms ease;
}

.switch input:checked + .slider {
  background: var(--color-brand-600);
}

.switch input:checked + .slider::before {
  transform: translateX(1.3rem);
}


/* =========================================================
   CURRENT CONDITIONS
   ========================================================= */


   .info-panel:not(.hidden) {
  animation:
    floating-panel-enter
    180ms ease-out;
}

@keyframes floating-panel-enter {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-panel {
  position: absolute;

top:
  calc(
    var(--header-height) +
    var(--map-control-top-gap) +
    var(--coordinate-panel-height) +
    0.45rem
  );

  left: var(--page-gutter);

  width:
    min(
      20rem,
      calc(100vw - 2 * var(--page-gutter))
    );

  max-height:
    calc(
      100dvh -
      var(--header-height) -
      var(--forecast-collapsed-height) -
      3 * var(--page-gutter)
    );

  padding: 1rem;

  overflow-y: auto;

  color: var(--color-text);

background: #ffffff;
border: 1px solid var(--color-border);
border-radius: var(--radius-large);
box-shadow: var(--shadow-medium);

backdrop-filter: none;
-webkit-backdrop-filter: none;

  z-index: 1150;

  font-size: 0.82rem;
  line-height: 1.55;
}

.info-panel.hidden {
  display: none;
}

.panel-header {
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;

  border-bottom: 1px solid var(--color-border);

  cursor: move;
  user-select: none;
}

.panel-header h3 {
  color: var(--color-brand-900);

  font-size: 0.95rem;
}


/* =========================================================
   DAYLIGHT AND PRINT
   ========================================================= */

   .daylight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;

  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;

  border-bottom: 1px solid var(--color-border);
}

.daylight-info {
  display: inline-flex;
  align-items: center;

  padding: 0.42rem 0.7rem;

  color: var(--color-warning);
  background: var(--color-warning-soft);

  border: 1px solid rgba(237, 198, 79, 0.45);
  border-radius: 0.7rem;

  font-size: 0.77rem;
  font-weight: 600;
}

.print-day-btn {
  padding: 0.5rem 0.8rem;

  color: white;
  background: var(--color-brand-700);

  border: 0;
  border-radius: 0.7rem;

  font-size: 0.77rem;
  font-weight: 600;

  cursor: pointer;
}


/* =========================================================
   FORECAST PANEL
   ========================================================= */

.forecast-container {
  position: fixed;

  left: 50%;
  bottom:
  clamp(
    0.25rem,
    0.6vw,
    0.5rem
  );

  transform: translateX(-50%);

  width:
    min(
      78rem,
      calc(100% - 2 * var(--page-gutter))
    );

  height: var(--forecast-height);
  min-height: var(--forecast-collapsed-height);
  max-height: var(--forecast-height);

  padding: 0.85rem;

  color: var(--color-text);
  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-medium);

  z-index: 1001;

  font-size:
    clamp(0.75rem, 1.1vw, 0.84rem);

  overflow: hidden;

  transition:
    height 220ms ease,
    max-height 220ms ease;
}

.forecast-container.collapsed {
  height: var(--forecast-collapsed-height);
  min-height: var(--forecast-collapsed-height);
  max-height: var(--forecast-collapsed-height);

  display: flex;
  align-items: center;
}

.forecast-container.expanded {
  height: var(--forecast-height);
  min-height: var(--forecast-height);
  max-height: var(--forecast-height);

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.forecast-container > p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}



.forecast-buttons {
  position: relative;
  z-index: 2;

  flex: 0 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;

  width: 100%;

  margin-bottom: 0.65rem;
  padding: 0.25rem 0.1rem 0.5rem;

  overflow-x: auto;
  overflow-y: hidden;

  background: #ffffff;

  scrollbar-width: thin;
}

.day-button {
  flex: 0 0 auto;

  min-height: 2.2rem;
  padding: 0.5rem 0.8rem;

  color: var(--color-brand-900);
  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: 0.7rem;

  box-shadow: none;

  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;

  cursor: pointer;

transition:
  background-color 180ms
    cubic-bezier(0.2, 0, 0, 1),
  border-color 180ms
    cubic-bezier(0.2, 0, 0, 1),
  box-shadow 180ms
    cubic-bezier(0.2, 0, 0, 1),
  filter 180ms
    cubic-bezier(0.2, 0, 0, 1),
  transform 100ms ease;
}

.day-button:hover {
  filter: brightness(0.96);
}

.day-button:active {
  transform: scale(0.98);
}

.day-button:hover {
  background: var(--color-brand-050);
  border-color: rgba(78, 139, 204, 0.3);
  transform: none;
}

.day-button.active {
  color: #ffffff;

  border-color: #ffffff;

  box-shadow:
    inset 0 0 0 2px
    var(--color-brand-900);

  transform: none;
}




.hourly-forecast {
  display: none;

  flex: 1 1 auto;
  flex-direction: column;

  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;

  padding: 0.65rem;
  margin: 0;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: 0.45rem;

  overflow: hidden;
  
  animation:
      forecast-tab-enter
      180ms
      cubic-bezier(0.2, 0, 0, 1);
  }

  @keyframes forecast-tab-enter {
    from {
      opacity: 0;
      transform: translateY(0.12rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes forecast-day-enter {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forecast-table-scroll {
  flex: 1 1 auto;

  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;

  overflow-x: auto;
  overflow-y: auto;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  border: 1px solid var(--color-border);
  border-radius: 0.3rem;

  scrollbar-width: thin;
}

.hourly-forecast table {
  width: 100%;
  min-width: 70rem;

  border-collapse: separate;
  border-spacing: 0;

  text-align: center;
}

.hourly-forecast thead th {
  position: sticky;

  padding: 0.6rem 0.45rem;

  color: white;
  background: var(--color-brand-700);

  border: 0;
  border-right:
    1px solid rgba(255, 255, 255, 0.12);
  border-bottom:
    1px solid rgba(255, 255, 255, 0.15);

  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;

  z-index: 4;
}

.hourly-forecast thead tr:first-child th {
  top: 0;
  height: 2rem;
}

.hourly-forecast thead tr:nth-child(2) th {
  top: 2rem;
}

.hourly-forecast tbody td {
  padding: 0.6rem 0.45rem;

  color: var(--color-text);
  background: white;

  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid rgba(30, 75, 108, 0.07);

  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.3;
}

.hourly-forecast tbody tr:nth-child(even) td {
  background: var(--color-brand-050);
}

.hourly-forecast tbody tr:last-child td {
  border-bottom: 0;
}

.hourly-forecast th.sticky-col,
.hourly-forecast tbody td:first-child {
  position: sticky;
  left: 0;

  z-index: 3;
}

.hourly-forecast th.sticky-col {
  background: var(--color-brand-800);
  z-index: 6;
}

.hourly-forecast tbody td:first-child {
  background: white;
  font-weight: 600;
}

.hourly-forecast tbody tr:nth-child(even) td:first-child {
  background: var(--color-brand-050);
}

.hourly-forecast tbody tr.flyable-row td {
  color: #174c34;
  background: #c3f7c3 !important;
}

.hourly-forecast tbody tr.flyable-row td:first-child {
  background: #c3f7c3 !important;

  box-shadow:
    inset 0.25rem 0 0
    #16a34a;
}




/* Flyability Status Colors */
.fly-yes {
  color: #087443;
  font-weight: 700;
}

.fly-no {
  color: #c62828;
  font-weight: 700;
}

/* Highlight Bad Conditions */
.hourly-forecast tbody td.text-red {
  color: #b42318 !important;
  background: #fff1f0 !important;
  font-weight: 700;
}




/*wind direction arrow*/
.wind-arrow {
  margin-left: 4px;
  transition: transform .2s ease;
  transform-origin: 50% 60%;
}


/* =========================================================
   GRAPH MODAL
   ========================================================= */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  padding: var(--page-gutter);

  background:
    rgba(14, 36, 52, 0.62);

  backdrop-filter: blur(0.35rem);
  -webkit-backdrop-filter: blur(0.35rem);

  justify-content: center;
  align-items: center;

  z-index: 3000;
}

.modal-content {
  position: relative;

  width:
    min(
      76rem,
      100%
    );

  max-height:
    calc(
      100dvh -
      2 * var(--page-gutter)
    );

  padding:
    clamp(1rem, 3vw, 1.75rem);

  overflow-y: auto;
  overflow-x: hidden;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: 1rem;

  box-shadow: var(--shadow-large);

  text-align: center;
}

.close {
  position: sticky;
  top: 0;
  float: right;

  width: 2.6rem;
  height: 2.6rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-text-muted);
  background: var(--color-brand-050);

  border: 0;
  border-radius: var(--radius-pill);

  font-size: 1.5rem;
  font-weight: 700;

  cursor: pointer;
  z-index: 10;
}

.close:hover {
  color: white;
  background: var(--color-brand-700);
}

.chart-container {
  width: 100%;

  height:
    clamp(
      18rem,
      42vw,
      24rem
    );

  margin-bottom: 1rem;

  position: relative;

  overflow: hidden;

  background: white;

  border:
    1px solid var(--color-border);

  border-radius: var(--radius-large);
}

#meteogram-container {
  width: 100%;

  height:
    clamp(
      24rem,
      55vw,
      34rem
    );

  margin-bottom: 1.5rem;

  position: relative;

  overflow: hidden;

  background: white;

  border:
    1px solid var(--color-border);

  border-radius: var(--radius-large);
}

.download-btn {
  margin: 0 0 1.75rem;
  padding: 0.65rem 1rem;

  color: var(--color-brand-800);
  background: var(--color-brand-100);

  border:
    1px solid rgba(78, 139, 204, 0.18);

  border-radius: var(--radius-pill);

  font-size: 0.82rem;
  font-weight: 700;

  cursor: pointer;
}

.download-btn:hover {
  color: white;
  background: var(--color-brand-700);
}


.chart-container:empty,
#meteogram-container:empty {
  background: var(--color-brand-050);
  border-radius: var(--radius-large);
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.leaflet-marker-icon {
  display: block !important;
  opacity: 1 !important;
}


.graphs-header {
  margin-bottom: 1rem;
  text-align: left;
}

.graphs-header h2 {
  margin: 0 0 0.35rem;
  color: var(--color-brand-900);
  font-size: 1.3rem;
  line-height: 1.2;
}

.graphs-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.forecast-location-notice {
  display: none;

  flex: 0 0 auto;

  margin: 0 0 0.45rem;
  padding: 0.35rem 0.6rem;

  color: #6b510d;
  background: #fff9e8;

  border: 0;
  border-left: 0.2rem solid #d2a327;
  border-radius: 0.15rem;

  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;

  white-space: normal;
}

.forecast-container.expanded
.forecast-location-notice {
  display: block;

  animation:
    notice-enter
    180ms ease-out;
}

.forecast-container.collapsed
.forecast-location-notice {
  display: none;
}

@keyframes notice-enter {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   ABOUT AND PUBLICATIONS
   ========================================================= */


   .section-kicker {
  display: block;

  margin-bottom: 0.4rem;

  color: var(--color-brand-700);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.protocol-introduction {
  color: var(--color-brand-900);

  font-size:
    clamp(
      1rem,
      1.6vw,
      1.1rem
    );

  font-weight: 600;
}

.protocol-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 1rem;

  margin-top: 1.35rem;
}

.protocol-item {
  position: relative;

  padding:
    1.4rem;

  background: #eef5fa;

  border: 0;
  border-radius: 0.75rem;

  box-shadow: none;

  transition:
    background-color 180ms
      cubic-bezier(0.2, 0, 0, 1),
    box-shadow 180ms
      cubic-bezier(0.2, 0, 0, 1);
}

.protocol-number {
  width: 2rem;
  height: 2rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 0.8rem;

  color: var(--color-brand-800);
  background: rgba(62, 130, 184, 0.12);

  border-radius: 50%;

  font-size: 0.72rem;
  font-weight: 700;
}

.protocol-item h3 {
  margin-bottom: 0.7rem;

  color: var(--color-brand-900);

  font-size: 1.05rem;
}

.protocol-item p {
  text-align: left;

  font-size: 0.9rem;
  line-height: 1.7;
}

.protocol-reference {
  margin-top: 1.25rem;
  padding-top: 1.1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  border-top: 1px solid var(--color-border);
}

.protocol-reference p {
  max-width: 55rem;
}

@media (hover: hover) {
  .protocol-item:hover {
    background: #e7f1f8;

    box-shadow:
      0 2px 5px rgba(20, 57, 82, 0.08);

    transform: none;
  }
}

   @media (hover: hover) {
  .info-card,
  .publication-card {
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .publication-card:hover {
  background: var(--color-brand-050);

    transform: none;
    box-shadow: none;
  }

  @media (hover: hover) {
  .info-card:hover {
    background: #f8fbfd;

    box-shadow:
      0 2px 5px rgba(20, 57, 82, 0.10),
      0 5px 14px rgba(20, 57, 82, 0.07);

    transform: none;
  }
}
}

body.content-page {
  min-height: 100dvh;
  display: block;

  color: var(--color-text);
  background: #f5f7f9;

  line-height: 1.7;
}

.page-wrapper {
  width:
    min(
      82rem,
      calc(
        100% -
        var(--page-gutter) -
        var(--page-gutter)
      )
    );

  margin-inline: auto;

  padding-block:
    clamp(1.5rem, 3vw, 2.5rem)
    clamp(3rem, 6vw, 5rem);
}


/* Page introduction */

.hero {
  margin: 0 0
    clamp(1.75rem, 4vw, 3rem);

  padding:
    clamp(2rem, 5vw, 4rem)
    clamp(1.5rem, 4vw, 3.5rem);

  color: var(--color-text);
  background: #eaf3f9;

  border: 0;
  border-radius: 0.75rem;

  box-shadow: none;
}

.hero::after {
  display: none;
}

.eyebrow {
  display: block;

  margin: 0 0 0.65rem;
  padding: 0;

  color: var(--color-brand-700);
  background: transparent;

  border: 0;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: none;

  margin: 0 0 1rem;

  color: var(--color-brand-900);

  font-size:
    clamp(2.3rem, 5vw, 4rem);

  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 72rem;
  margin: 0;

  color: var(--color-text-muted);

  font-size:
    clamp(1rem, 1.7vw, 1.12rem);

  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


/* Main content sections */

.section {
  position: relative;

  margin: 0;
  padding:
    clamp(2rem, 4vw, 3rem)
    clamp(0.25rem, 1vw, 0.75rem);

  background: transparent;

  border: 0;
  border-bottom:
    1px solid var(--color-border);

  border-radius: 0;

  box-shadow: none;
}

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 1.15rem;
  padding: 0;

  color: var(--color-brand-900);

  border: 0;

  font-size:
    clamp(1.35rem, 2.4vw, 1.8rem);

  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
}


.section h3 {
  margin: 0 0 0.45rem;

  color: var(--color-brand-800);

  font-size: 1rem;
}
.section p {
  max-width: none;
  margin: 0;

  line-height: 1.8;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.section p + p {
  margin-top: 1rem;
}

.section li {
  line-height: 1.75;

  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.section p + p {
  margin-top: 0.9rem;
}

.section ul,
.section ol {
  padding-left: 1.25rem;
}

.section li {
  line-height: 1.7;
}

.section li + li {
  margin-top: 0.55rem;
}


/* How-to cards */

.card-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(100%, 14rem),
        1fr
      )
    );

  gap: 1rem;
}

.info-card {
  padding:
    1.35rem 1.4rem;

  background: var(--color-surface);

  border: 0;
  border-radius: 0.75rem;

  box-shadow:
    0 1px 2px rgba(20, 57, 82, 0.08),
    0 1px 4px rgba(20, 57, 82, 0.06);

  transition:
    background-color 180ms
      cubic-bezier(0.2, 0, 0, 1),
    box-shadow 180ms
      cubic-bezier(0.2, 0, 0, 1);
}

.info-card h3 {
  margin-bottom: 0.55rem;

  color: var(--color-brand-900);
}

.info-card p {
  text-align: left;
}


/* Tables */

.table-wrapper {
  width: 100%;
  overflow-x: auto;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: 0.3rem;
}

.table-wrapper table {
  width: 100%;
  min-width: 42rem;

  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  padding:
    clamp(0.7rem, 1.5vw, 1rem);

  border-bottom: 1px solid var(--color-border);

  text-align: left;
  vertical-align: top;
}

.table-wrapper th {
  color: white;
  background: var(--color-brand-700);

  font-size: 0.84rem;
  font-weight: 600;
}

.table-wrapper tr:last-child td {
  border-bottom: 0;
}

.table-wrapper td:first-child {
  color: var(--color-brand-900);
  font-weight: 700;
}


/* Notices */

.notice {
  margin-top: 1.25rem;
  padding:
    1rem 1.15rem;

  color: #6b510d;
  background: var(--color-warning-soft);

  border: 0;
  border-radius: 0.65rem;

  box-shadow:
    inset 0 0 0 1px
    rgba(154, 107, 0, 0.12);
}


/* External links */

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;

  margin-top: 1rem;
}

.source-link,
.doi-link {
  min-height: 2.5rem;
  padding:
    0.55rem 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: white;
  background: var(--color-brand-700);

  border: 0;
  border-radius: 0.55rem;

  box-shadow:
    0 1px 2px rgba(20, 57, 82, 0.12);

  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;

  transition:
    background-color 160ms
      cubic-bezier(0.2, 0, 0, 1),
    box-shadow 160ms
      cubic-bezier(0.2, 0, 0, 1);
}

.source-link:hover,
.doi-link:hover {
  color: white;
  background: var(--color-brand-800);

  box-shadow:
    0 2px 5px rgba(20, 57, 82, 0.16);

  transform: none;
}

.source-link:hover,
.doi-link:hover {
  background: var(--color-brand-800);
  border-color: var(--color-brand-800);

  transform: none;
  box-shadow: none;
}


/* Publications */

.publication-list {
  display: block;

  margin-top:
    clamp(1.5rem, 3vw, 2.5rem);

  background: var(--color-surface);

  border-radius: 0.75rem;

  box-shadow:
    0 1px 2px rgba(20, 57, 82, 0.08),
    0 2px 7px rgba(20, 57, 82, 0.05);

  overflow: hidden;
}

.publication-card {
  position: relative;

  min-height: auto;

  display: grid;

  grid-template-columns:
    4.5rem minmax(0, 1fr) auto;

  grid-template-rows:
    auto auto;

  column-gap: 1.4rem;
  row-gap: 0.35rem;

  align-items: center;

  padding:
    clamp(1.25rem, 2.5vw, 1.8rem);

  background: var(--color-surface);

  border: 0;
  border-bottom:
    1px solid var(--color-border);

  border-radius: 0;

  box-shadow: none;

  transition:
    background-color 160ms
      cubic-bezier(0.2, 0, 0, 1);
}

.publication-card:last-child {
  border-bottom: 0;
}

.publication-card::before {
  display: none;
}

.publication-year {
  grid-column: 1;
  grid-row: 1 / 3;

  align-self: start;

  display: block;

  margin: 0;
  padding-top: 0.15rem;

  color: var(--color-brand-700);
  background: transparent;

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.publication-card h2 {
  grid-column: 2;
  grid-row: 1;

  margin: 0;

  color: var(--color-brand-900);

  font-size:
    clamp(1.05rem, 1.7vw, 1.25rem);

  font-weight: 650;
  line-height: 1.4;
}

.publication-meta {
  grid-column: 2;
  grid-row: 2;

  margin: 0;

  color: var(--color-text-muted);

  font-size: 0.9rem;
  line-height: 1.65;

  text-align: left;
  hyphens: none;
}

.publication-card .doi-link {
  grid-column: 3;
  grid-row: 1 / 3;

  align-self: center;

  margin: 0;
}

.site-footer {
  padding:
    1.5rem var(--page-gutter);

  color: var(--color-text-muted);

  border-top: 1px solid var(--color-border);

  text-align: center;
  font-size: 0.8rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 64rem) {
  :root {
    --forecast-height:
    clamp(
      25rem,
      60dvh,
      40rem
    );

    --forecast-header-approx:
      8.5rem;
  }
}

@media (max-width: 48rem) {


      .hero p,
    .section p,
    .section li,
    .publication-meta {
      text-align: left;
      hyphens: none;
    }

    .publication-list {
      grid-template-columns: 1fr;
    }

    .hero,
    .section,
    .publication-card {
      padding:
        1.25rem;
    }

  /*
 * Σε μικρή οθόνη δεν χωράει το zoom δίπλα
 * στο coordinate panel, οπότε μπαίνει από κάτω.
 */
  .leaflet-top.leaflet-left {
    top:
      calc(
        var(--page-gutter) +
        var(--coordinate-panel-height) +
        0.55rem
      );

    left: var(--page-gutter);
  }

  .forecast-buttons {
    justify-content: flex-start;
  }

  .forecast-container {
    --forecast-height:
      min(
        74dvh,
        42rem
      );
  }

  .forecast-table-scroll {
    border-inline: 0;
  }

  :root {
    --page-gutter: 0.75rem;

    --forecast-height:
      clamp(21rem, 62dvh, 38rem);

    --forecast-header-approx:
      9.5rem;
  }

  .site-header {
    gap: 0.5rem;
  }

  .site-nav {
    gap: 0.1rem;
  }

  .site-nav a,
  .site-nav button {
    padding-inline: 0.65rem;
  }

  .coordinate-search {
    top:
      calc(
        var(--header-height) +
        var(--page-gutter)
      );

    left: var(--page-gutter);

    width:
      calc(
        100% -
        2 * var(--page-gutter)
      );
  }

  .adjustments-wrapper {
    top:
      calc(
        var(--header-height) +
        6.8rem
      );

    right: var(--page-gutter);
  }

  .adjustments-panel {
    width:
      calc(
        100vw -
        2 * var(--page-gutter)
      );
  }

  .info-panel {
    top: auto;
    bottom:
      calc(
        var(--forecast-collapsed-height) +
        1.25rem
      );

    left: var(--page-gutter);

    width:
      min(
        19rem,
        calc(
          100vw -
          2 * var(--page-gutter)
        )
      );

    max-height: 30dvh;
  }

  .publication-list {
  display: block;
}

.publication-card {
  grid-template-columns:
    1fr;

  grid-template-rows:
    auto;

  gap: 0.65rem;
}

.publication-year,
.publication-card h2,
.publication-meta,
.publication-card .doi-link {
  grid-column: 1;
  grid-row: auto;
}

.publication-card .doi-link {
  justify-self: start;
  margin-top: 0.35rem;
}

.forecast-container {
  bottom: 0;

  width: 100%;

  border-radius:
    1rem
    1rem
    0
    0;

  border-inline: 0;
  border-bottom: 0;

  padding: 0.7rem;
}

.forecast-buttons {
  margin-bottom: 0.6rem;
}

.hourly-forecast {
  padding: 0.45rem;
}


.daylight-header {
  align-items: flex-start;
}


  .hourly-forecast table {
    min-width: 48rem;
  }

  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    width: 100%;
    max-height: 96dvh;

    border-radius: var(--radius-large);
  }

  .page-wrapper {
    width:
      calc(
        100% -
        2 * var(--page-gutter)
      );
  }
}

@media (max-width: 30rem) {
  .site-brand {
    font-size: 1rem;
  }

  .site-nav a,
  .site-nav button {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }

  .map-action-btn {
    padding-inline: 0.75rem;
    font-size: 0.78rem;
  }

  .adjustments-panel .adjustment-row {
    grid-template-columns:
      minmax(0, 1fr)
      3.75rem
      3.75rem;
  }

}

/* Day contains at least one flyable hour */
.day-button.has-flyable-hours {
  color: #ffffff;
  background: #16a34a;
  border-color: #15803d;
}

/* Day contains no flyable hours */
.day-button.no-flyable-hours {
  color: #ffffff;
  background: #dc2626;
  border-color: #b91c1c;
}

.day-button.has-flyable-hours:hover {
  color: #ffffff;
  background: #15803d;
  border-color: #166534;
}

.day-button.no-flyable-hours:hover {
  color: #ffffff;
  background: #b91c1c;
  border-color: #991b1b;
}


.forecast-loading {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  color: var(--color-text-muted);

  font-size: 0.84rem;
  font-weight: 600;
}

.forecast-loading-spinner {
  width: 1rem;
  height: 1rem;

  border:
    0.13rem solid
    rgba(45, 111, 159, 0.22);

  border-top-color:
    var(--color-brand-700);

  border-radius: 50%;

  animation:
    forecast-loading-spin
    700ms linear infinite;
}

@keyframes forecast-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

.table-wrapper .category-cell {
  width: 9rem;

  padding:
    1rem 0.8rem;

  vertical-align: middle;
  text-align: center;

  background: #eef5fa;

  border-right:
    1px solid var(--color-border);

  font-weight: 700;
}

.table-wrapper .category-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 2.25rem;
  padding:
    0.45rem 0.8rem;

  border-radius: 0.55rem;

  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.table-wrapper .category-atmosphere span {
  color: #245f89;
  background: #dcecf7;
}

.table-wrapper .category-marine span {
  color: #176c76;
  background: #dceff0;
}

.table-wrapper .category-solar span {
  color: #80600b;
  background: #fff1c7;
}

.table-wrapper tr.category-start td {
  border-top:
    0.15rem solid
    rgba(30, 75, 108, 0.16);
}