/* "O mapie" (js/about.js): a discreet button in the bottom bar next to the dbijou.pl link and a paper card
   (phone: bottom sheet) with the author, the contact address, the sources and the privacy note. The button
   lives inside #credits, so it hides with the credits during the intro, the tour, the walk and the bottom cards. */
#crSign { display: flex; align-items: center; gap: 6px; pointer-events: none; }
#abBtn { pointer-events: auto; padding: 1px 5px; font-family: "Silkscreen", monospace; font-size: 10px; line-height: 1.3; color: var(--ink);
  white-space: nowrap; background: rgba(244, 236, 216, .55); border: 0; cursor: pointer; opacity: .7; transition: opacity .15s steps(2, end);
  -webkit-tap-highlight-color: transparent; }
#abBtn:hover, #abBtn:focus-visible, #abBtn.active { opacity: 1; background: var(--paper); outline: 2px solid var(--ink); }
#abBtn:active { transform: translate(1px, 1px); }
body.intro-on #abBtn { pointer-events: none; }

/* the card: desktop bottom-right above the credits, same place as the report card; z above the layers sheet (30) */
#pkAbout { position: fixed; right: 8px; bottom: 44px; z-index: 40; width: 360px; max-height: calc(100vh - 60px); overflow: auto;
  overscroll-behavior: contain; background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 8px 10px 10px; }
#pkAbout[hidden] { display: none; }
#pkAbout .ab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
#pkAbout .ab-head b { font-weight: 600; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
#pkAbout .ab-x { font: inherit; font-size: 16px; width: 30px; height: 28px; background: none; border: 0; cursor: pointer; color: var(--ink); }
#pkAbout .ab-x:focus-visible { outline: 2px dashed var(--ink); outline-offset: -2px; }
#pkAbout .ab-body { font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.4; }
#pkAbout p { margin: 0 0 6px; }
#pkAbout .ab-lead { opacity: .85; }
#pkAbout h3 { font-family: "Silkscreen", monospace; font-size: 10px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; opacity: .75; margin: 10px 0 3px; }
#pkAbout a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 2px; }
#pkAbout a:hover, #pkAbout a:focus-visible { background: var(--accent); outline: 0; }
#pkAbout .ab-fb { font: inherit; font-size: 12px; font-weight: 600; padding: 1px 6px; background: #fff; color: var(--ink); border: 2px solid var(--ink); cursor: pointer; }
#pkAbout .ab-fb:active { transform: translate(1px, 1px); }
#pkAbout .ab-fb:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
#pkAbout .ab-note { font-size: 11px; line-height: 1.35; opacity: .75; margin-top: 8px; padding-top: 6px; border-top: 2px solid rgba(43, 36, 51, .2); }
#pkAbout details { border-top: 2px solid rgba(43, 36, 51, .2); margin-top: 6px; padding-top: 6px; }
#pkAbout summary { font-family: "Pixelify Sans", monospace; font-size: 14px; font-weight: 600; cursor: pointer; padding: 2px 0; }
#pkAbout summary:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
#pkAbout details p, #pkAbout details li { font-size: 12px; line-height: 1.4; }
#pkAbout details p { margin: 6px 0 0; }
#pkAbout ul { margin: 6px 0 0; padding-left: 16px; }
#pkAbout li { margin-bottom: 3px; }

/* phone portrait: a bottom sheet like the layers panel and the report card */
@media (max-width: 600px) {
  #crSign { align-self: flex-end; }
  #abBtn { padding: 3px 6px; }
  #pkAbout { left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; border-width: 3px 0 0; box-shadow: 0 -3px 0 rgba(43, 36, 51, .25);
    padding: 6px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  #pkAbout .ab-head b { font-size: 13px; }
}
@media (max-height: 520px) { #pkAbout { max-height: calc(100vh - 16px); bottom: 8px; } }
