/* The Footpath (Linda, November 7, 2026: "yes put it! and the directions").
   The site as a walking trail, as on Swiss trails: signposts with reading time as walking time, trail marks on the
   sections, the line as a footpath with Yuna's paw prints, a live signpost at the top of every page.
   Loaded on every page after site-shared.css; footpath.js builds the pieces. */

/* a sign: an amber plate with a pointed end */
.sign {
  --c: var(--amber);
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 34px; padding: 0 30px 0 14px;
  background: var(--c); color: #1A1A17;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.sign .time { font-weight: 400; white-space: nowrap; }
a.sign:hover, a.sign:focus-visible { --c: #F7CB86; }

/* the signpost on the cover: the pole, the place plate, the signs */
.signpost {
  position: absolute; z-index: 3; left: var(--ml); bottom: 140px;   /* clear of the cookie bar on short screens */
  display: grid; justify-items: start; gap: 6px;
}
.signpost::before {
  content: ""; position: absolute; z-index: -1; left: 0; top: -14px; bottom: -140px; width: 9px;
  background: linear-gradient(90deg, #4A4E4B, #7A7F7B 45%, #4A4E4B); border-radius: 2px;
}
.signpost .place {
  position: relative; left: -4px; display: grid; gap: 2px; padding: 9px 14px 10px; margin-bottom: 4px;
  background: #F7F4EE; color: #1A1A17; border: 1px solid rgba(0, 0, 0, .15);
}
.signpost .place b { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.signpost .place i { font-family: var(--serif); font-size: 15px; line-height: 19px; }
.signpost .sign { width: 330px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }

/* trail marks on the sections, in place of the amber dot: white, amber, white */
.label .dot { display: none; }
.blaze {
  display: inline-block; width: 18px; height: 11px; margin-right: 10px; vertical-align: -1px;
  background: linear-gradient(#F7F4EE 0 33%, var(--amber) 33% 67%, #F7F4EE 67%);
  border: 1px solid var(--hair); border-radius: 1px;
}
.person h2 .blaze { width: 26px; height: 15px; margin-right: 14px; vertical-align: 3px; }

/* the line becomes a footpath: a dashed path, Yuna's paw prints behind her */
#linePath.is-footpath { stroke: transparent; }
.footpath path.trail { fill: none; stroke: var(--sea); stroke-width: 1.6; stroke-dasharray: 7 6; stroke-linecap: round; }
.paws ellipse { fill: var(--sea); }
.paws g { opacity: .5; }

/* the live signpost at the top of the page: where you are (white plate), the next destination (amber sign) */
.slim-inner { position: relative; }
.slim-header .menu { justify-self: end; }
.live-post {
  position: absolute; top: 0; left: 150px; height: 53px;
  display: flex; align-items: center;
  transition: opacity .18s, transform .18s;
}
.live-post.is-turning { opacity: 0; transform: translateX(-6px); }
.live-post .plate {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  background: #F7F4EE; color: #1A1A17; border: 1px solid rgba(0, 0, 0, .18); border-right: 0;
}
.live-post .plate b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #1A1A17; }
.live-post .sign { height: 26px; font-size: 10.5px; gap: 14px; padding: 0 22px 0 12px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.live-post .sign .time { color: #3A3A35; }
.live-post.is-tight .sign .time { display: none; }   /* narrow screens, long signs (footpath.js) */
.live-post.is-gone { visibility: hidden; }

/* the end of the trail, at the top of the footer */
.trail-end {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 33px;
  padding-bottom: 33px; margin-bottom: 33px; border-bottom: 1px solid var(--hair);
}
.trail-end .name { font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 33px; color: var(--ink); }
.trail-end a { font-family: var(--mono); font-size: 13px; line-height: 20px; }

@media (max-width: 720px) {
  /* phones (Linda, Nov 18, 2026): no yellow signs on the cover; the Menu and the sign at the top of every page do that work */
  .signpost { display: none; }
  .live-post { left: auto; right: 86px; }
  .live-post .plate { display: none; }   /* phones: the sign alone, beside the logo */
}

/* five menu items beside the live signpost (Linda's words, Nov 18, 2026): below 1280 px the header menu folds into
   "Menu", as it already does from 721 to 1000 px (styles.css). The menu on the home page cover is not affected. */
@media (min-width: 1001px) and (max-width: 1279px) {
  .slim-header .menu .menu-wide { display: none; }
  .slim-header .menu .menu-phone { display: block; position: relative; }
  .slim-header .menu .menu-phone summary { cursor: pointer; list-style: none; color: var(--sea); }
  .slim-header .menu .menu-phone summary::-webkit-details-marker { display: none; }
  .slim-header .menu .menu-phone ul {
    position: absolute; right: 0; top: 33px; z-index: 5;
    display: grid; gap: 10px; padding: 20px 27px;
    background: var(--paper); border: 1px solid var(--hair); white-space: nowrap;
  }
}
