/* The guide page people land on after signing up: their guide up front, four ways to keep it, the rest of the library.
   Loaded after midnight.css or mint.css, which supply the colours, buttons and the community/website links. */
.t-lib .wrap { padding: calc(env(safe-area-inset-top) + 18px) 0 calc(env(safe-area-inset-bottom) + 36px); }

/* top bar */
.lib-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lib-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.lib-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1A9F90, #0A4F4A 70%, #052725); }
.lib-av img { position: absolute; width: 112%; max-width: none; height: auto; left: -6%; top: 6%; }
.t-lib .name.lib-brand-name { margin: 0; font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.lib-back { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 14px 9px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1; text-decoration: none; transition: border-color .2s, color .2s; }
.lib-back .ic { width: 16px; height: 16px; }

/* greeting */
.lib-hello { margin-top: 30px; }
.lib-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.lib-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.lib-ok .ic { width: 14px; height: 14px; }
.lib-title { margin: 12px 0 8px; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
.lib-title:focus, .lf-name:focus { outline: none; }
.lib-lede { margin: 0; font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }

/* their guide */
.lib-feature { margin-top: 22px; padding: 18px; border-radius: 28px; }
.lf-head { display: flex; align-items: center; gap: 16px; }
.lf-cover { position: relative; flex: none; width: 104px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.lf-cover img { width: 100%; height: 100%; object-fit: cover; }
.lf-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 10px 12px; }
.lf-ph-tag { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.lf-ph-name { font-size: 15px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.lf-txt { min-width: 0; }
.lf-meta { margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; }
.lf-name { margin: 6px 0 5px; font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.lf-blurb { margin: 0; font-size: 14px; line-height: 1.4; }
.lf-ready .cta { margin-top: 18px; }
.lf-keep { margin: 18px 2px 10px; font-size: 11.5px; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.keep { display: flex; gap: 8px; }
.kp { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px 11px; border-radius: 16px;
  font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s; }
.kp .ic { width: 21px; height: 21px; }
.kp:active { transform: scale(.96); }
.lf-status { margin: 10px 2px 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lf-status:empty { margin: 0; }
.lf-soon { margin: 16px 2px 2px; font-size: 14.5px; line-height: 1.5; }

/* more guides, coming next */
.lib-more, .lib-next { margin-top: 26px; }
.lib-h { margin: 0 4px 10px; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.lib-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lr { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 20px; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s, transform .15s; }
.lr:active { transform: scale(.99); }
.lr-cover { flex: none; width: 44px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.lr-cover img { width: 100%; height: 100%; object-fit: cover; }
.lr-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lr-name { font-size: 15.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.lr-blurb { font-size: 13px; line-height: 1.35; }
.lr-go { flex: none; display: grid; place-items: center; }
.lr-go .ic { width: 18px; height: 18px; }
.lib-next-names { margin: 0 4px; font-size: 14px; line-height: 1.65; }
.t-lib .tile-com, .t-lib a.row:first-of-type { margin-top: 28px; }

/* ---------- dark (Midnight and Cinematic) ---------- */
.t-dark .lib-back { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink-2); }
.t-dark .lib-back:hover { border-color: rgba(94, 234, 212, .5); color: var(--mint); }
.t-dark .lib-kick { color: var(--mint); }
.t-dark .lib-ok { background: var(--mint); color: var(--mint-ink); }
.t-dark .lib-lede, .t-dark .lf-blurb, .t-dark .lf-soon, .t-dark .lr-blurb, .t-dark .lib-next-names { color: var(--ink-2); }
.t-dark .lib-feature { border: 1px solid var(--line); background: linear-gradient(180deg, #0F1516 0%, #0A0E0F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.t-dark .lf-cover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 16px 30px -14px rgba(0, 0, 0, .9); }
.t-dark .lf-ph { background: radial-gradient(120px 110px at 70% 20%, rgba(94, 234, 212, .35), transparent 70%), #0C1A1A; color: var(--ink); }
.t-dark .lf-meta, .t-dark .lf-keep, .t-dark .lib-h, .t-dark .lr-go { color: var(--ink-3); }
.t-dark .lib-feature.is-soon .lf-meta { color: var(--warn); }
.t-dark .kp { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); color: var(--ink); }
.t-dark .kp .ic { color: var(--mint); }
.t-dark .kp:hover, .t-dark .kp.is-done { border-color: rgba(94, 234, 212, .55); background: rgba(94, 234, 212, .07); }
.t-dark .kp.is-done { color: var(--mint); }
.t-dark .lf-status { color: var(--mint); }
.t-dark .lr { border: 1px solid var(--line); background: #0A0E0F; color: var(--ink); }
.t-dark .lr:hover { border-color: rgba(94, 234, 212, .32); }
.t-dark .lr-cover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- Fresh Mint ---------- */
.t-mint.t-lib .lib-av { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--mint-2); }
.t-mint .lib-back { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--line); }
.t-mint .lib-back:hover { box-shadow: 0 0 0 1.5px var(--mint-2); }
.t-mint .lib-kick { color: var(--focus); }
.t-mint .lib-ok { background: var(--ink); color: var(--mint); }
.t-mint .lib-lede, .t-mint .lf-blurb, .t-mint .lf-soon, .t-mint .lib-next-names { color: var(--ink-2); }
.t-mint .lib-feature { background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(6, 35, 31, .28); }
.t-mint .lf-cover { box-shadow: 0 0 0 1px rgba(6, 35, 31, .06), 0 14px 26px -14px rgba(6, 35, 31, .55); }
.t-mint .lf-ph { background: radial-gradient(120px 110px at 70% 20%, rgba(94, 234, 212, .7), transparent 70%), #DDF7F2; color: var(--ink); }
.t-mint .lf-meta, .t-mint .lf-keep, .t-mint .lib-h, .t-mint .lr-blurb, .t-mint .lr-go { color: var(--ink-3); }
.t-mint .lib-feature.is-soon .lf-meta { color: var(--warn); }
.t-mint .kp { border: 1.5px solid var(--line); background: var(--sheet); color: var(--ink); }
.t-mint .kp .ic { color: var(--focus); }
.t-mint .kp:hover, .t-mint .kp.is-done { border-color: var(--mint-2); background: #EAFBF7; }
.t-mint .lf-status { color: var(--focus); }
.t-mint .lr { border: 0; background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(6, 35, 31, .3); }
.t-mint .lr-cover { box-shadow: 0 0 0 1px rgba(6, 35, 31, .08); }
