/* ==========================================================================
   Elephant Hide of Knysna: Knysna page (knysna.html)
   Suite spreads (suite.css) + restaurant.css; here: the short lists in the
   story spreads and the six-area grid.
   ========================================================================== */

.kn-list { margin-top: 1.3rem; border-bottom: 1px solid var(--line); }
.kn-list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.kn-name { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; color: var(--grey-dark); }
.kn-name small { flex: none; font-family: var(--font-body); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); padding-top: .3rem; }
.kn-note { display: block; margin-top: .2rem; font-size: .86rem; line-height: 1.5; color: var(--grey-text); }

/* Golf distances from the lodge, drawn like the home page's Garden Route line (Mark, 2026-11-09).
   Phones and tablets: a gold line down the side; the deck turns it into one line across the spread. */
.kg-route { position: relative; margin-top: 2rem; padding-left: 1.6rem; }
.kg-line { position: absolute; left: .35rem; top: .4rem; bottom: .4rem; width: 1px; height: auto; background: var(--gold); }
.kg-line path { display: none; fill: none; stroke: var(--gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.kg-route ol { display: grid; gap: 1.1rem; }
.kg-route li { position: relative; display: flex; flex-direction: column-reverse; }
.kg-route li::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem + .35rem - .3rem);
  top: .45rem;
  width: .6rem;
  height: .6rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--white);
}
.kg-route li.is-home::before { background: var(--gold); box-shadow: 0 0 0 .3rem var(--gold-wash); }
.kg-km { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; color: var(--gold-deep); white-space: nowrap; }
.kg-place { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-dark); white-space: nowrap; }
.kg-route li.is-home .kg-km { color: var(--grey-dark); }

/* The line draws, then the stops arrive along it */
.anim-ready .kn-story:not(.is-visible) .kg-line path { stroke-dashoffset: 1; }
.anim-ready .kn-story.is-visible .kg-line path { animation: a-draw 2.2s var(--ease-io) 1.5s both; }
.anim-ready .kn-story:not(.is-visible) .kg-route li { opacity: 0; }
.anim-ready .kn-story.is-visible .kg-route li { animation: a-rise 1s var(--ease-soft) calc(1.7s + var(--i) * .24s) both; }

@media (min-width: 1200px) and (min-aspect-ratio: 1001/1000) and (min-height: 640px) {
  .kn-story .sy-copy { top: 5cqw; }
  .kn-story .sy-lead { font-size: 1.4cqw; }
  .kn-story .sy-body { margin-top: 1cqw; }
  .kn-list { margin-top: 1.3cqw; }
  .kn-list li { padding: .6cqw 0; }
  .kn-name { gap: 1cqw; font-size: 1.15cqw; }
  .kn-name small { font-size: max(11px, .62cqw); padding-top: .25cqw; }
  .kn-note { margin-top: .15cqw; font-size: max(11px, .86cqw); line-height: 1.5; }

  /* Golf distances: one line across the white space under the list and the wide photo (copy left edge to photo right edge),
     pinned near the foot of the canvas because the list ends lower at 1280x720 (its notes stop shrinking at 11px) */
  .kg-route { position: absolute; left: 0; top: 42cqw; width: 58.5cqw; height: 7cqw; margin: 0; padding: 0; }
  .kg-line { left: 0; top: 3.3cqw; bottom: auto; width: 100%; height: 2px; background: none; overflow: visible; }
  .kg-line path { display: block; }
  .kg-route ol { display: block; }
  .kg-route li {
    position: absolute; left: calc(var(--x) * 1%); top: 0;
    width: 14cqw; transform: translateX(-50%);
    flex-direction: column; align-items: center; text-align: center;
  }
  .kg-route li::before {
    left: 50%; top: 3.3cqw;
    width: .95cqw; height: .95cqw;
    transform: translate(-50%, -50%);
  }
  .kg-route li.is-home::before { width: 1.35cqw; height: 1.35cqw; box-shadow: 0 0 0 .55cqw var(--gold-wash); }
  .kg-km { height: 2.2cqw; font-size: 1.65cqw; line-height: 1.2; }
  .kg-place { margin-top: 2.5cqw; font-size: max(11px, .7cqw); }

  /* Six areas in three rows of two, so every heading and line fits on one row (Janine, 2026-10-14) */
  .kn-areas .ft-title { top: 3.8cqw; }
  .kn-areas .ft-groups { top: 13.2cqw; grid-template-columns: repeat(2, 1fr); gap: 1.2cqw 2.4cqw; }
  .kn-areas .ft-group li { padding: .2cqw 0; }
  .kn-areas .ft-group .i { width: 1.6cqw; height: 1.6cqw; }
  .kn-areas .ft-foot { top: 44cqw; }
}

/* Six areas: one column on phones, two from 600px; no line wraps */
.kn-areas .ft-groups { grid-template-columns: 1fr; }
.kn-areas .ft-group:last-child { grid-column: auto; }
.kn-areas .ft-group:last-child ul { display: block; }
.kn-areas .ft-group li, .kn-areas .ft-group h3 { white-space: nowrap; }
@media (min-width: 600px) { .kn-areas .ft-groups { grid-template-columns: 1fr 1fr; } }
