/* The link pages: one column, phone first. Loads after theme.css. */

/* link-in-bio page: one column, phone first; the red square hangs left of the text edge */
.lib { width: 100%; max-width: 390px; margin: 0 auto; padding: 16px 20px 28px 36px; flex: 1 0 auto; }
.lib-head { height: 56px; display: flex; align-items: center; }
.lib-mark { display: block; width: 104px; height: auto; }

.lib-who { margin-top: 36px; display: flex; gap: 14px; }
.lib-photo { width: 88px; height: 88px; flex: none; border-radius: var(--radius); object-fit: cover; }
.lib-id { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.lib-id h1 { font-size: 1.375rem; line-height: 1.15; text-wrap: balance; }
.lib-title { margin-top: 6px; font-size: 0.75rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.lib-social { list-style: none; margin: 0 0 0 -10px; padding: 0; display: flex; }
.lib-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; }
.lib-social a:hover { color: var(--accent); }
.lib-social svg { width: 17px; height: 17px; }

.lib-tag { margin-top: 24px; font-size: 0.875rem; line-height: 1.65; color: var(--muted); white-space: nowrap; }

.lib-links { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--border); }
.lib-links li { border-bottom: 1px solid var(--border); }
.lib-links a {
  position: relative; min-height: 64px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 1.375rem; line-height: 1.2; color: var(--fg); text-decoration: none;
}
.lib-links span { min-width: 0; text-wrap: balance; }
.lib-links a:hover { color: var(--accent); }
.lib-links .lead::before { content: ''; position: absolute; left: -15px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--dot); }
.lib-links .lead span { font-weight: 600; }
.lib-links svg { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform 0.12s ease; }
.lib-links a:hover svg { transform: translate(2px, -2px); }

/* the fixed line breaks are set for a 390px screen; narrower phones let the text wrap */
@media (max-width: 389px) {
  .lib { padding-left: 28px; padding-right: 16px; }
  .lib-title { white-space: normal; }
  .lib-tag { white-space: normal; text-wrap: balance; }
  .lib-tag br { display: none; }
  .lib-links a { font-size: 1.25rem; min-height: 58px; }
}
@media (max-width: 339px) {
  .lib-photo { width: 72px; height: 72px; }
  .lib-id h1 { font-size: 1.25rem; }
}
