/*=============== LĀPA – THEME ON TOP OF THE DATAKOM PAGE ===============
  Loaded only by lapa.html, after styles.css, etherlocked-cartoon.css,
  indexo.css and datakom.css. The page uses
  <body class="ether-page indexo-page datakom-page lapa-page">, so it gets the
  INDEXO layouts and the Datakom components (swatches, scrolling compare).
  This file only:
    1. swaps the colour tokens for LĀPA's deep green,
    2. puts the new main page's flower photo behind the title,
    3. adds the layouts only this page has: the logo, filter chips, wide
       pictures and the two phones.
===================================================================== */

/* ───────────── 1. TOKENS ───────────── */
.lapa-page {
  /* ground: a dark version of LĀPA's green (#2D5F3F) */
  --paper: rgb(22, 36, 28);
  --paper-2: rgb(33, 54, 41);
  --paper-3: rgb(45, 72, 55);
  --night: rgb(14, 24, 18);
  --text: #eef3ef;
  --ink: #17251d;
  --pencil: #93a99a;

  /* accents: a soft, toned-down green so it reads without glowing */
  --orange: #8fb39a;
  --orange-hi: #a3c2ac;
  --orange-dk: #b3ccba;
  --mustard: #d0ded4;
  --brick: #a3c2ac;
  --itch: #2d5f3f;
  --itch-hi: #3a6b4b;
  --mark: rgba(143, 179, 154, 0.15);

  --olive: #98ad75;
  --sage: #a9cfc5;

  background-color: var(--paper);
}

/* ───────────── 2. HERO ───────────── */
.lapa-page .work-details {
  background: var(--night) url("../img/Lapa/lapa-hero-bg.webp") 50% 50% / cover no-repeat;
}

.lapa-page .indexo-hero-shade {
  background:
    radial-gradient(ellipse at center, rgba(14, 24, 18, 0.45) 0%, rgba(14, 24, 18, 0.85) 100%),
    linear-gradient(to bottom, rgba(14, 24, 18, 0.3) 0%, rgba(14, 24, 18, 0.8) 100%);
}

.lapa-page .work-title {
  text-shadow: 0 4px 0 rgba(14, 24, 18, 0.6), 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* the "Scroll" pill: green with light text */
.lapa-page .dk-compare__hint {
  background: var(--itch-hi);
}

.lapa-page .dk-compare__wrap::after {
  background: linear-gradient(to bottom, transparent, rgba(14, 24, 18, 0.55));
}

/* the caption under each page: grey, in the body font, like the other
   captions on the site */
.lapa-page .lapa-compare figcaption {
  margin-top: var(--space-s);
  color: var(--pencil);
}

/* shorter windows, the shape of one screen: the old page fits exactly,
   the new one still scrolls */
.lapa-page .lapa-compare .dk-compare__frame {
  height: auto;
  aspect-ratio: 800 / 662;
}

/* the old page is only one screen tall: no shade, it does not scroll */
.lapa-page .dk-compare__col:first-child .dk-compare__wrap::after {
  display: none;
}

.lapa-page .dk-compare__frame--static {
  overflow: hidden;
}

/* ───────────── 3. THIS PAGE'S OWN LAYOUTS ───────────── */
/* the logo on white */
.lapa-page .lapa-logo {
  width: 11rem;
  margin: var(--flow-gap) 0;
}

.lapa-page .lapa-logo img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 50%;
}

/* the two sites' menus, side by side */
.lapa-page .lapa-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
  max-width: var(--content-width);
}

.lapa-page .lapa-map__site {
  display: grid;
  align-content: start;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--paper-2);
  border-radius: var(--radius);
}

/* the closed area: a dashed edge, like a door that needs a key */
.lapa-page .lapa-map__site--members {
  background: transparent;
  border: var(--stroke-thin) dashed rgba(143, 179, 154, 0.5);
}

.lapa-page .lapa-map__tag {
  justify-self: start;
  padding: var(--space-3xs) var(--space-xs);
  font-size: var(--fs-label);
  line-height: var(--lh-snug);
  color: var(--text);
  background: var(--itch);
  border-radius: var(--radius-pill);
}

.lapa-page .lapa-map__site--members .lapa-map__tag {
  color: var(--ink);
  background: var(--orange);
}

.lapa-page .lapa-map__title {
  margin: 0;
  font-family: var(--cartoon-font);
  font-weight: 400;
  font-size: var(--fs-h4);
  letter-spacing: 0.04em;
  color: var(--orange-hi);
}

.lapa-page .lapa-map__menu {
  display: grid;
  gap: var(--space-s);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lapa-page .lapa-map__menu li {
  display: grid;
  gap: var(--space-3xs);
  padding-top: var(--space-s);
  border-top: var(--stroke-thin) solid rgba(143, 179, 154, 0.2);
}

.lapa-page .lapa-map__menu b {
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
}

.lapa-page .lapa-map__menu span {
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: var(--pencil);
}

/* two screenshots of different heights shown at the same size: both are
   cut to one shape from the top, so the bottom of the taller one is hidden */
.lapa-page .lapa-ba-even img {
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 1299;
  object-fit: cover;
  object-position: top;
}

/* a row of the photos the client provided */
.lapa-page .lapa-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-s);
  max-width: var(--content-width);
  margin-top: var(--flow-gap);
}

.lapa-page .lapa-photos .shot {
  margin: 0;
}

.lapa-page .lapa-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* the white and light grey colour cards: dark text so it stays readable */
.lapa-page .dk-tone__chip.lapa-tone--light {
  color: var(--ink);
}

/* the filters as chips */
.lapa-page .lapa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  max-width: var(--content-width);
  margin: var(--flow-gap) 0;
  padding: 0;
  list-style: none;
}

.lapa-page .lapa-chips li {
  padding: var(--space-3xs) var(--space-s);
  font-size: var(--fs-label);
  color: var(--text);
  background: var(--paper-3);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px rgba(143, 179, 154, 0.22);
}

/* one picture across the content column */
.lapa-page .lapa-wide {
  max-width: var(--content-width);
  margin: var(--flow-gap) 0 0;
}

/* a screenshot with numbered outlines on its parts and a note for each
   beside it, at the height of its outline: the same marks and notes as the
   annotated screens on the INDEXO page (annot-notes.js places the notes).
   The profile is wide, so the picture gets more room than INDEXO's phones. */
.lapa-page .rp-annot.lapa-annot {
  --mark-c: var(--orange);
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.lapa-page .lapa-annot .dash-compare__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* the two phones, side by side, at phone-like width */
.lapa-page .lapa-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 15rem));
  gap: var(--space-l);
  margin-top: var(--flow-gap);
}

.lapa-page .lapa-phones .shot {
  margin: 0;
}

/* cut from the top, just past the end of the old page: long enough to show
   the old news columns cut off on the right, and the new page's first
   section fitting the screen */
.lapa-page .lapa-phones img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 1280;
  object-fit: cover;
  object-position: top;
  border-radius: 1.25rem;
}

@media (max-width: 600px) {
  .lapa-page .rp-annot.lapa-annot {
    grid-template-columns: minmax(0, 1fr);
  }

  .lapa-page .lapa-annot .screen {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .lapa-page .lapa-logo {
    width: 8rem;
  }

  .lapa-page .lapa-phones {
    gap: var(--space-s);
  }

  .lapa-page .lapa-photos {
    gap: var(--space-2xs);
  }

  .lapa-page .lapa-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .lapa-page .lapa-map__site {
    padding: var(--space-s);
  }}
