[data-lve-departure] {
  box-sizing: border-box;
  min-width: 0;
  margin-block: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1rem, 3.6vw, 2.1rem);
  border: 1px solid #dacdad;
  border-top: 4px solid #a16d19;
  border-radius: 12px;
  background: #fcf8ef;
  color: #18283a;
  line-height: 1.5;
}

#calculadora[data-lve-departure],
[data-lve-departure] #con-comida,
.lvhs-editorial [id],
#ejemplo-salida { scroll-margin-block-start: 10rem; }

[data-lve-departure] *,
.lvhs-jumps *,
.lvhs-example * { box-sizing: border-box; }

[data-lve-departure] [hidden] { display: none !important; }

[data-lve-departure] h2 {
  margin: 0 0 1rem;
  color: inherit;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.15;
}

[data-lve-departure] [data-lve-form] {
  display: grid;
  gap: 1rem;
  margin: 0;
}

[data-lve-departure] label {
  display: grid;
  min-width: 0;
  align-content: end;
  gap: .35rem;
  margin: 0;
  font: inherit;
  font-weight: 650;
  line-height: 1.35;
}

[data-lve-departure] .lve-salida-minutos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
}

[data-lve-departure] :is(input, select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .55rem .72rem;
  border: 1px solid #817b6e;
  border-radius: 6px;
  background-color: #fff;
  color: #18283a;
  font: inherit;
  font-size: max(1rem, 16px);
  font-weight: 450;
  line-height: 1.35;
}

[data-lve-departure] select {
  -webkit-appearance: none;
  appearance: none;
  height: 48px;
  padding-inline-end: 2.6rem;
  text-overflow: ellipsis;
}

[data-lve-departure] .lve-salida-meal-toggle {
  display: flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
}
[data-lve-departure] .lve-salida-meal-toggle input {
  appearance: auto;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  padding: 0;
  accent-color: #1c3142;
}
[data-lve-departure] [data-lve-meal-fields] p { margin: 0 0 .75rem; }
[data-lve-departure] .lve-salida-meal-guide { margin: 1rem 0 0; }
[data-lve-departure] .lve-salida-meal-guide a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #234b59;
  text-underline-offset: .18em;
}

[data-lve-departure] label:has(> select) { position: relative; }
[data-lve-departure] label:has(> select)::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  bottom: 21px;
  width: .55rem;
  height: .55rem;
  border: solid #1c3142;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

@media (forced-colors: active) {
  [data-lve-departure] label:has(> select)::after { border-color: ButtonText; }
}

[data-lve-departure] .lve-salida-selection {
  margin: -.4rem 0 0;
  padding-inline-start: .7rem;
  border-inline-start: 3px solid #a16d19;
  color: #344250;
  font-size: .95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
[data-lve-departure] [aria-invalid="true"] { border: 2px solid #953a25; }

[data-lve-departure] button,
.lvhs-jumps a,
.lvhs-editorial-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: .65rem 1rem;
  border: 1px solid #20364a;
  border-radius: 7px;
  background: #1c3142;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

[data-lve-departure] button { justify-self: start; }
[data-lve-departure] [data-lve-export],
.lvhs-jumps a,
.lvhs-editorial-links a { background: #fffaf1; color: #1c3142; }

[data-lve-departure] button:hover,
.lvhs-jumps a:hover,
.lvhs-editorial-links a:hover { background: #304c60; color: #fff; }

[data-lve-departure] :is(button, select, input):focus-visible,
.lvhs-jumps a:focus-visible,
.lvhs-editorial-links a:focus-visible {
  outline: 3px solid #9d630a;
  outline-offset: 3px;
}

[data-lve-departure] [data-lve-help]:empty,
[data-lve-departure] [data-lve-answer]:empty { margin: 0; padding: 0; }

[data-lve-departure] [data-lve-help]:empty { display: none; }

[data-lve-departure] [data-lve-answer][data-state] {
  margin-block: 1.15rem .85rem;
  padding: 1rem;
  border: 1px solid #d9ccac;
  border-radius: 7px;
  background: #fff;
}

[data-lve-departure] [data-lve-answer][data-state="error"] {
  border-inline-start: 4px solid #953a25;
  color: #75331f;
}

[data-lve-departure] .lve-salida-result-title {
  margin: 0 0 .55rem;
  font-weight: 700;
}

[data-lve-departure] .lve-salida-times,
.lvhs-editorial .lvhs-example { margin: 0; padding: 0; list-style: none; }

[data-lve-departure] .lve-salida-times li,
.lvhs-editorial .lvhs-example li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .15rem 1rem;
  margin: 0;
  padding: .5rem 0;
  border-block-start: 1px solid #ddd5c6;
  line-height: 1.45;
}

[data-lve-departure] .lve-salida-times li:first-child { color: #66420a; }
[data-lve-departure] .lve-salida-times time,
.lvhs-example time { font-variant-numeric: tabular-nums; }
.lvhs-editorial .lvhs-example time { font-weight: 700; }

.lvhs-jumps,
.lvhs-editorial-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: .75rem; }
.lvhs-editorial { color: #1c3142; line-height: 1.6; overflow-wrap: anywhere; }
.lvhs-editorial h2 { line-height: 1.2; margin-block: 1.5em .5em; }
.lvhs-editorial p { margin-block: .55em 1em; }

[data-lve-departure] [data-lve-static] a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #234b59;
  text-underline-offset: .18em;
}

[data-lve-departure]:has([data-lve-form]:not([hidden])) [data-lve-static] { display: none; }

@media (max-width: 700px) {
  .lve2-single:has([data-lve-departure]) .lve2-article-hero {
    padding-block: 1.25rem !important;
  }
  .lve2-single:has([data-lve-departure]) .lve2-article-hero h1 {
    font-size: clamp(2rem, 7.2vw, 2.8rem) !important;
    line-height: 1.08 !important;
  }
  .lve2-single:has([data-lve-departure]) .wp-block-post-featured-image img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1200 / 630;
    object-fit: contain !important;
  }
}

@media (max-width: 580px) {
  [data-lve-departure] .lve-salida-minutos { grid-template-columns: minmax(0, 1fr); }
  [data-lve-departure] button { width: 100%; }
  [data-lve-departure] .lve-salida-times li { display: grid; }
}
