/* The explorer's "i" and the client's HARERA sheet (info.js). Tokens from style.css. */

/* the i: in the header, after the place name (after the brand where the place name is hidden), the same spot on every page and view */
#infoBtn { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--cream-rule);
  background: rgba(14, 15, 10, .35); color: var(--cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--t-ui) var(--out), color var(--t-ui) var(--out), border-color var(--t-ui) var(--out); }
#infoBtn span { font-size: 14px; font-style: italic; line-height: 1; }
#infoBtn::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }   /* a 44 px target */
#infoBtn:hover, #infoBtn[aria-expanded="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* over the estate plan's paper the header is ink (style.css #app.m59e-paper) */
#app.m59e-paper #infoBtn { background: transparent; color: var(--ink); border-color: var(--ink-3); -webkit-backdrop-filter: none; backdrop-filter: none; }
#app.m59e-paper #infoBtn:hover, #app.m59e-paper #infoBtn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
#app.phone #infoBtn { width: 34px; height: 34px; }
#app.phone #infoBtn span { font-size: 15px; }
#app.phone #infoBtn::after { inset: -5px; }

/* the sheet: paper, the client's two registration lines as its head, the text below; wide screens: in the middle */
#infoSheet { padding: 0; border: 0; border-radius: 2px; margin: auto; width: min(680px, calc(100vw - 48px)); max-width: none; max-height: min(780px, calc(100vh - 72px)); max-height: min(780px, calc(100dvh - 72px));
  background: var(--paper); color: var(--ink); font-family: var(--f); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); overflow: hidden; }
#infoSheet[open] { display: flex; animation: isIn .32s var(--out); }
#infoSheet::backdrop { background: rgba(8, 9, 6, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#infoSheet[open]::backdrop { animation: isFade .32s var(--out); }
@keyframes isIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes isFade { from { opacity: 0; } }
.is-sheet { display: flex; flex-direction: column; width: 100%; min-height: 0; -webkit-user-select: text; user-select: text; }
.is-head { position: relative; flex: none; margin: 0 36px; padding: 30px 48px 18px 0; border-bottom: 1px solid var(--ink); }
.is-reg { margin: 0; font-size: 15px; line-height: 1.45; letter-spacing: .07em; color: var(--ink); overflow-wrap: anywhere; }
.is-web { margin: 7px 0 0; font-size: 12px; line-height: 1.4; letter-spacing: .1em; color: var(--ink-3); overflow-wrap: anywhere; }
.is-x { position: absolute; right: -14px; top: 18px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); display: grid; place-items: center;
  transition: background var(--t-ui) var(--out); }
.is-x:hover { background: rgba(51, 58, 6, .08); }
.is-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.is-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 20px 36px 32px; outline: none; }
@media (pointer: fine) { .is-body:focus-visible { box-shadow: inset 0 0 0 2px var(--sage); } }   /* keyboards see where the keys go; a phone's tap draws no frame */
.is-body p { margin: 0 0 14px; font-size: 13px; line-height: 1.65; letter-spacing: .01em; color: var(--ink-2); overflow-wrap: break-word; }
.is-body p:last-child { margin-bottom: 0; }

/* phones: a sheet from the foot, the page still showing above it (a tap there closes it) */
#app.phone #infoSheet { margin: auto 0 0; width: 100%; max-height: calc(100% - 64px - var(--sat)); border-radius: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .4); }
#app.phone #infoSheet[open] { animation: isUp .34s var(--out); }
@keyframes isUp { from { transform: translateY(40px); opacity: 0; } }
#app.phone .is-head { margin: 0 18px; padding: 22px 46px 14px 0; }
#app.phone .is-reg { font-size: 13.5px; letter-spacing: .05em; }
#app.phone .is-web { font-size: 11.5px; letter-spacing: .08em; }
#app.phone .is-x { right: -10px; top: 12px; }
#app.phone .is-body { padding: 16px 18px calc(26px + var(--sab)); }
#app.phone .is-body p { font-size: 13px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { #infoSheet[open], #infoSheet[open]::backdrop { animation: none; } }

/* the phone menu's last entry opens the same sheet (it held the explorer's note before) */
#app.phone .nav.open .nav-links .m-note { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0 0; padding: 15px 22px 15px; background: transparent; border: 0;
  border-top: 1px solid var(--rule); border-radius: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; text-align: left; cursor: pointer; }
#app.phone .nav.open .nav-links .m-note:hover { background: rgba(51, 58, 6, .08); color: #000; }
.m-note .m-i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 12px; font-style: italic; letter-spacing: 0; text-transform: none; }
