/* Life Returned — the share lip: a small tab on the right edge of every page.
   Own file, because the intro does not load style.css. */

.lip {
  --lip-ink: #161512;
  --lip-paper: #f3efe6;
  --lip-orange: #ff4d00;
  --lip-green: #c6ff3d;
  --lip-w: 40px;
  position: fixed;
  right: 0;
  top: 62%;
  z-index: 30;
  font-family: "Archivo", system-ui, sans-serif;
}
.lip-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--lip-w);
  min-height: 124px;
  padding: .9rem 0;
  background: var(--lip-orange);
  color: var(--lip-ink);
  box-shadow: -3px 6px 16px rgb(22 21 18 / .28), -1px 2px 4px rgb(22 21 18 / .18);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.lip-tab::-webkit-details-marker { display: none; }
.lip-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
/* Open, the tab joins the dark panel it opened. */
.lip-tab:hover, .lip[open] .lip-tab { background: var(--lip-ink); color: var(--lip-paper); box-shadow: inset 5px 0 0 var(--lip-orange), -3px 6px 16px rgb(22 21 18 / .28); }
.lip-tab:focus-visible { outline: 2px solid var(--lip-green); outline-offset: 2px; }

.lip-panel {
  position: fixed;
  right: var(--lip-w);
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(25rem, calc(100vw - var(--lip-w) - 16px));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1rem 1rem 1.1rem;
  background: var(--lip-ink);
  color: var(--lip-paper);
  box-shadow: 0 10px 40px rgb(22 21 18 / .25);
}
.lip[open] .lip-panel { animation: lip-out .25s ease both; }
@keyframes lip-out { from { opacity: 0; transform: translateX(10px); } }
.lip-title {
  margin: 0 0 .7rem;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lip-orange);
}
.lip-lead { margin: -.3rem 0 .85rem; font-family: "Caveat", cursive; font-weight: 600; font-size: 1.35rem; line-height: 1.05; color: var(--lip-green); }
.lip-note { margin: 1rem 0 0; font-size: .72rem; line-height: 1.45; color: rgb(243 239 230 / .6); }
.lip-list { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.lip-list li:first-child, .lip-media { grid-template-columns: 1fr; }
.lip-list li:first-child { grid-column: 1 / -1; }
.lip-list + .lip-title { margin-top: 1.1rem; }
.lip-list li { padding: 0; }
.lip-list li::before { content: none; }
.lip-list li:has(> [hidden]) { display: none; }
.lip-list a, .lip-list button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 40px;
  padding: .65rem .9rem;
  border: 1.5px solid rgb(243 239 230 / .4);
  background: none;
  color: var(--lip-paper);
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.lip-list a:hover, .lip-list button:hover,
.lip-list a:focus-visible, .lip-list button:focus-visible { background: var(--lip-green); border-color: var(--lip-green); color: var(--lip-ink); outline: none; }

@media (prefers-reduced-motion: reduce) { .lip[open] .lip-panel { animation: none; } }
@media print { .lip { display: none; } }
