/* Off-piste routes (offpiste.js): the legend's sign, and the warning shown in an off-piste route's card and in
   Directions (route.js). Colours come from design/tokens.css (--poi-offpiste, --poi-offpiste-ink, --poi-offpiste-text,
   --severe for what's required). */

/* The legend: a small diamond sign at the head of a dashed off-piste line */
.legend .offpiste-key {
  position: relative; width: 22px; height: 11px;
  background: linear-gradient(90deg, var(--poi-offpiste) 55%, transparent 0) 8px 50% / 5px 2px repeat-x;
}
.legend .offpiste-key::before {
  content: ""; position: absolute; left: 1px; top: 1px;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--poi-offpiste); border: 1.5px solid #fff; box-shadow: 0 0 0 .5px rgb(22 32 44 / .5);
}

/* The sign as a glyph in text: the warning's title, Start mode's reminder */
.ow-sign {
  position: relative; flex: none; display: inline-block;
  width: 20px; height: 20px;
}
.ow-sign::before {
  content: ""; position: absolute; inset: 3px;
  transform: rotate(45deg); border-radius: 2px;
  background: var(--poi-offpiste); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.2px rgb(22 32 44 / .35);
}
.ow-sign::after {
  content: "!"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 800 12px/1 var(--font); color: var(--poi-offpiste-ink);
}

/* The warning */
.offpiste-warn {
  margin: var(--space-4) 0 0; padding: 12px 12px 10px;
  border-radius: var(--radius-sm);
  background: rgb(238 125 26 / .1);
  box-shadow: inset 0 0 0 1px rgb(238 125 26 / .35);
  font-size: 13px; line-height: 1.4;
}
.ow-head { display: flex; align-items: center; gap: 8px; margin: 0; }
.ow-head strong { font-size: 15px; color: var(--poi-offpiste-text); }
.ow-lead { margin: 6px 0 0; color: var(--text); }
.ow-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ow-item {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px;
  padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7);
}
.ow-item strong { font-size: 13.5px; }
.ow-text { grid-column: 1 / -1; margin-top: 2px; color: var(--muted); }
.ow-label {
  justify-self: start; padding: 2px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  background: var(--fill-2); color: var(--muted);
}
/* How much each matters: what's required stands out in red, what's strongly advised in the off-piste orange */
.ow-item.required { box-shadow: inset 3px 0 0 var(--severe); }
.ow-item.required .ow-label { background: var(--severe); color: #fff; }
.ow-item.required .ow-text { color: var(--text); }
.ow-item.strong { box-shadow: inset 3px 0 0 var(--poi-offpiste); }
.ow-item.strong .ow-label { background: var(--poi-offpiste); color: var(--poi-offpiste-ink); }
.ow-item.essential .ow-label { background: rgb(var(--navy-rgb) / .85); color: #fff; }
.ow-foot { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.ow-foot a { color: var(--accent); }

/* In Directions: between the options and the steps; a tag on off-piste steps; a reminder in Start mode */
.route-offpiste .offpiste-warn { margin-top: var(--space-3); }
.route-offpiste-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--poi-offpiste); color: var(--poi-offpiste-ink);
}
.route-offpiste-line {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 0 !important; padding: 8px 10px; border-radius: 8px;
  background: rgb(238 125 26 / .1); font-size: 13px; font-weight: 600;
}
