/* v70 · back-to-my-spot pill, «خريطة رحلتي» art tiles, bright gold «💡 لمبة ونس», the need map. Loaded last. */
:root { --v70-teal: #0f7f7a; --v70-teal-soft: #e3f6f3; --v70-plum: #6b2f7d; --v70-plum-soft: #f6ecfa; }

/* ---------- 1 · the floating pill ---------- */
.v70-back {
  position: fixed; z-index: 1000; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; max-width: min(78vw, 340px);
  padding: 5px 16px 5px 6px; margin: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #e6f7f4 0%, #f3e9f8 100%); color: #3b1f4a;
  border: 2px solid #8fd0c6; box-shadow: 0 8px 22px -8px rgba(67, 32, 77, .45), 0 2px 6px rgba(15, 127, 122, .18);
  font: 800 15px/1.25 Cairo, "Poppins", system-ui, sans-serif; text-align: start;
  transition: transform .15s ease, box-shadow .15s ease;
}
.v70-back[hidden] { display: none !important; }
.v70-back.v70-j1 { right: max(14px, env(safe-area-inset-right, 0px)); left: auto; direction: rtl; padding: 5px 6px 5px 16px; }
.v70-back.v70-lb { left: max(14px, env(safe-area-inset-left, 0px)); right: auto; direction: ltr; }
.v70-back:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(67, 32, 77, .5); }
.v70-back:focus-visible, .v70-menuback:focus-visible { outline: 3px solid #ffc83d; outline-offset: 3px; }
.v70-back.v70-over { border-color: #fff; box-shadow: 0 0 0 3px #8fd0c6, 0 12px 28px -6px rgba(37, 27, 62, .6); }
.v70-av { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; padding: 4px; box-sizing: border-box;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fff6e3 70%, #ffe7b8 100%); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(107, 47, 125, .25); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.v70-av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v70-txt { display: flex; flex-direction: column; min-width: 0; }
.v70-txt b { font-weight: 800; color: var(--v70-plum); white-space: nowrap; }
.v70-txt small { font-size: 12px; font-weight: 600; color: #0d625e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
@media (max-width: 480px) {
  .v70-back { font-size: 14px; min-height: 48px; max-width: calc(100vw - 150px); }
  .v70-av { width: 38px; height: 38px; }
  .v70-txt small { max-width: 52vw; font-size: 11.5px; }
}
@media (max-width: 380px) { .v70-back { max-width: calc(100vw - 28px); } }
@media print { .v70-back, .v70-menuback { display: none !important; } }

/* the same button in the menu header */
.v70-menuback { display: flex !important; align-items: center; gap: .55rem; width: 100%; min-height: 52px; margin: .6rem 0 .4rem;
  padding: 5px 14px 5px 6px; border-radius: 999px; cursor: pointer; text-align: start;
  background: linear-gradient(135deg, #e6f7f4 0%, #f3e9f8 100%) !important; color: #3b1f4a !important;
  border: 2px solid #8fd0c6 !important; box-shadow: 0 4px 12px -6px rgba(67, 32, 77, .4); font: 800 15px/1.25 Cairo, "Poppins", system-ui, sans-serif; }
html[dir="rtl"] .v70-menuback { padding: 5px 6px 5px 14px; }
.v70-menuback[hidden] { display: none !important; }
.v70-av-s { width: 38px; height: 38px; }
.v70-menuback .v70-txt small { max-width: 100%; }

/* ---------- 2 · «خريطة رحلتي» art tiles ---------- */
.v70-tile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px;
  padding: 3px; box-sizing: border-box; border-radius: 12px; background: #fff; border: 1.5px solid rgba(107, 47, 125, .16);
  box-shadow: 0 2px 6px rgba(67, 32, 77, .16); vertical-align: middle; overflow: hidden; }
.v70-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v45-ti.v70-ti { display: inline-flex; font-size: 0; line-height: 0; width: auto; height: auto; background: none; border: 0; padding: 0; }
.v45-ti.v70-ti .v70-tile { width: 40px; height: 40px; border-radius: 50%; }
.v70-entry { display: flex !important; align-items: center; gap: .55rem; }
.v70-entry .v70-tile { width: 34px; height: 34px; }
.v70-entry .v70-tile.v70-thumb { border-radius: 10px; background: #fffaf0; }
.v70-inl { width: 30px; height: 30px; margin-inline-end: .4rem; }
.v70-startile { background: linear-gradient(135deg, #fff6d6 0%, #ffe9a8 100%); border-color: #e7c46a; border-radius: 50%; }
.v70-starshape { display: block; width: 72%; height: 72%; background: linear-gradient(135deg, #FFE27A 0%, #F7C948 45%, #E0A526 100%);
  clip-path: polygon(50% 2%, 61.8% 36%, 98% 36.5%, 69% 58%, 79.5% 93%, 50% 72%, 20.5% 93%, 31% 58%, 2% 36.5%, 38.2% 36%);
  filter: drop-shadow(0 1px 0 #C98E12); }
h1 .v70-startile, h2 .v70-startile { width: 30px; height: 30px; }
.v45-index-sub .v70-startile, .v45-howto p .v70-startile { width: 26px; height: 26px; margin-inline-end: .3rem; }
.v45-track ol button .v70-startile, #menu .v45-allpages .v70-startile { width: 24px; height: 24px; }

/* ---------- 3 · bright gold «💡 لمبة ونس» (the ⭐ quick-version badge is untouched) ---------- */
:root { --c-series: #FFF6D6; }
.v45-vcat.v45-c-series, .v45-vcard-series .v45-vcat, .v45-series-head .v45-vcat, .v70-goldchip,
#v45TrackBar.v70-series .v45-tbtext b, .v45-track-series > summary .v45-tn b {
  background: linear-gradient(135deg, #FFE27A 0%, #F7C948 45%, #E0A526 100%) !important;
  color: #4A3200 !important; border: 1px solid #C98E12 !important; box-shadow: 0 2px 8px rgba(224, 165, 38, .35) !important;
  text-shadow: none !important; }
.v45-track-series > summary .v45-tn b, #v45TrackBar.v70-series .v45-tbtext b { display: inline-block; padding: .05rem .7rem; border-radius: 999px; }
.v45-track-series .v45-trackgo .v45-btn, #menu .v45-track-series .v45-trackgo .v45-btn, #v45TrackBar.v70-series button {
  background: linear-gradient(135deg, #FFE27A 0%, #F7C948 45%, #E0A526 100%) !important; color: #4A3200 !important;
  border: 1px solid #C98E12 !important; box-shadow: 0 2px 8px rgba(224, 165, 38, .35) !important; }
.v45-track-series > summary .v45-tc { border-color: #C98E12 !important; color: #4A3200 !important; background: #FFF6D6 !important; }
#v45TrackBar.v70-series { background: #FFF6D6 !important; border-color: #E0A526 !important; }
#main .paper.v45-bg-series { --v45-pagebg: #FFF6D6 !important; }
#main .v45-vcard-series { background: #FFF6D6 !important; border-color: #f2d58a !important; }

/* ---------- 4 · the need map ---------- */
#main figure.v70-needmap { margin: 1.1rem 0; padding: 1rem .8rem 1.1rem; border-radius: 26px; text-align: center; overflow: visible;
  background: radial-gradient(120% 90% at 50% 40%, #fffdf6 0%, #fff6d6 60%, #fde9c4 100%); border: 2px dashed #e7c46a; }
.v70-nm-art img { display: block; max-width: 100%; max-height: 340px; margin: 0 auto .8rem; object-fit: contain; border-radius: 18px; }
.v70-nm-body { container-type: inline-size; }
.v70-nm { position: relative; display: grid; gap: .8rem; justify-items: center; }
.v70-nm-paths { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; display: none; }
.v70-nm-paths line { stroke: #E0A526; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; opacity: .85; }
.v70-nm-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.v70-nm-pic { width: 150px; height: 150px; border-radius: 50%; padding: 12px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #ffe9a8 62%, #f7c948 100%); border: 4px solid #fff;
  box-shadow: 0 0 0 3px #E0A526, 0 10px 24px -8px rgba(201, 142, 18, .55); overflow: hidden; }
.v70-nm-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v70-nm-label { display: inline-block; margin-top: .35rem; padding: .2rem .9rem; border-radius: 999px; font-size: 1.05em; font-weight: 800;
  background: linear-gradient(135deg, #FFE27A 0%, #F7C948 45%, #E0A526 100%); color: #4A3200; border: 1px solid #C98E12; box-shadow: 0 2px 8px rgba(224, 165, 38, .35); max-width: 100%; overflow-wrap: anywhere; }
.v70-nm-core small { color: #6b4a00; font-weight: 600; }
.v70-nm-ways { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.v70-way { position: relative; margin: 0; padding: 0; min-width: 0; }
.v70-way::before { content: ""; position: absolute; top: -.55rem; inset-inline-start: 50%; height: .55rem; border-inline-start: 3px dotted #E0A526; }
.v70-waybtn { width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .55rem .5rem; box-sizing: border-box;
  border-radius: 18px; background: #fff; color: #2d2140; border: 2px solid #f0d58f; cursor: pointer; text-align: center;
  font: 700 .92em/1.35 Cairo, sans-serif; box-shadow: 0 4px 12px -6px rgba(138, 90, 0, .35); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.v70-waybtn:hover, .v70-waybtn:active { transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(138, 90, 0, .45); }
.v70-waybtn:focus-visible { outline: 3px solid #ffc83d; outline-offset: 2px; }
.v70-waybtn[aria-pressed="true"] { border-color: #0f7f7a; background: #ecfaf6; }
.v70-waytile { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; padding: 4px; box-sizing: border-box; background: #fff8e6;
  border: 1.5px solid #f3dc9c; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v70-waytile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v70-wayt { flex: 0 0 auto; max-width: 100%; min-width: 0; overflow-wrap: break-word; }
.v70-waytry { flex: 0 0 auto; font-size: .78em; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; background: #fff3cf; color: #6b4a00; white-space: nowrap; }
.v70-waybtn[aria-pressed="true"] .v70-waytry { background: #0f7f7a; color: #fff; }
.v70-way-own .v70-waybtn { padding-top: 1.4rem; }
.v70-waydel { position: absolute; top: .25rem; inset-inline-end: .35rem; width: 30px; height: 30px; min-height: 0; padding: 0;
  border-radius: 50%; border: 0; background: #fbe6ec; color: #a3285f; font: 800 18px/30px Cairo, sans-serif; cursor: pointer; }
.v70-nm-mine { margin-top: .8rem; }
.v70-nm-minet { margin: .2rem 0 .4rem; font-weight: 800; color: #6b2f7d; }
.v70-nm-add { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: .6rem; }
.v70-nm-plus, .v70-nm-save { min-height: 44px; padding: .3rem 1rem; border-radius: 999px; border: 2px dashed #E0A526; background: #fffdf5; color: #6b4a00; font: 800 .95em Cairo, sans-serif; cursor: pointer; }
.v70-nm-save { border-style: solid; background: linear-gradient(135deg, #FFE27A 0%, #F7C948 45%, #E0A526 100%); color: #4A3200; border-color: #C98E12; }
.v70-nm-form { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center; }
.v70-nm-form[hidden] { display: none; }
.v70-nm-in { min-height: 44px; width: min(260px, 70vw); padding: .3rem .8rem; border-radius: 14px; border: 2px solid #f0d58f; font: 600 .95em Cairo, sans-serif; }
#main figure.v70-needmap figcaption { margin-top: .9rem; font-weight: 800; color: #6b2f7d; }

/* wider screens: the five ways orbit the centre, joined by dotted gold paths */
@container (min-width: 600px) {
  .v70-nm { grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: auto auto auto; align-items: center; min-height: 420px; }
  .v70-nm-paths { display: block; }
  .v70-nm-core { grid-column: 2; grid-row: 2; }
  .v70-nm > .v70-nm-ways { display: contents; }
  .v70-nm > .v70-nm-ways .v70-way { width: 100%; max-width: 230px; }
  .v70-nm > .v70-nm-ways .v70-way::before { display: none; }
  .v70-nm > .v70-nm-ways .v70-way:nth-child(1) { grid-column: 2; grid-row: 1; }
  .v70-nm > .v70-nm-ways .v70-way:nth-child(2) { grid-column: 1; grid-row: 2; }
  .v70-nm > .v70-nm-ways .v70-way:nth-child(3) { grid-column: 3; grid-row: 2; }
  .v70-nm > .v70-nm-ways .v70-way:nth-child(4) { grid-column: 1; grid-row: 3; }
  .v70-nm > .v70-nm-ways .v70-way:nth-child(5) { grid-column: 3; grid-row: 3; }
  .v70-nm-pic { width: 180px; height: 180px; }
  .v70-nm-own { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@container (max-width: 300px) { .v70-nm-ways { grid-template-columns: 1fr; } .v70-way::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .v70-back, .v70-waybtn { transition: none; } .v70-back:hover, .v70-waybtn:hover { transform: none; } }
@media print { .v70-nm-add, .v70-waydel { display: none !important; } }
@container (min-width: 301px) and (max-width: 599px) {
  .v70-nm-ways > .v70-way:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .3rem); }
}
