/* Links page (links.html): the profile header, icon row, social icons ({{social|socialicons}}),
   groups of link buttons ({{text.links.groups|linkgroups}}), compact button rows, social buttons
   ({{social|socialbuttons}}) and footer. Copied into the site by
   sbs-pkg-sync. Load it before the site's styles.css so the site can restyle any of it:
     <link rel="stylesheet" href="links.css" /> … <link rel="stylesheet" href="styles.css" />
   Colors and fonts come from the theme tokens (--deep, --abyss, --glow, --display…). */
/* Links page */
.links-page {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--sea), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--abyss)) fixed;
}
.links-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 16px 40px;
  display: grid;
  gap: 32px;
}
.links-profile {
  text-align: center;
}
.links-avatar {
  margin: 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 48%;
  border: 3px solid var(--glow);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.links-profile,
.links-foot {
  min-width: 0; /* a long name or email address wraps instead of widening the column */
}
.links-profile h1 {
  font-size: 2.6rem;
  text-transform: uppercase;
  margin: 14px 0 6px;
  overflow-wrap: anywhere; /* a long one-word name breaks instead of widening the page on phones */
}
.links-profile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.links-tagline {
  white-space: pre-line; /* a new line in the owner's tagline shows as one */
}
.links-icons {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.links-icons a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.links-icons a:hover {
  background: var(--glow);
  color: var(--abyss);
  transform: translateY(-2px);
}
.links-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
/* Social icons under the name: smaller and quieter than the contact icons above them */
.links-profile .social-icons {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.links-profile .social-icons a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.15s,
    transform 0.15s;
}
.links-profile .social-icons a:hover {
  color: var(--glow);
  transform: translateY(-2px);
}
.links-profile .social-icons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
/* The owner picks where social links show (data/text.json → links.social) */
[data-social="buttons"] .links-profile .social-icons,
[data-social="none"] .links-profile .social-icons,
[data-social="icons"] .links-social,
[data-social="none"] .links-social {
  display: none;
}
.links-group {
  display: grid;
  gap: 10px;
}
.links-group h2 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--glow);
  margin: 0 0 2px;
  text-align: center;
}
.link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 15px 20px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.link-btn span {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}
.link-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--glow);
  transform: translateY(-2px);
}
.link-btn.featured {
  background: var(--orange);
  border-color: var(--orange);
}
.link-btn.featured span {
  color: #fff;
}
.link-btn.featured:hover {
  background: color-mix(in srgb, var(--orange) 92%, black);
}
.social-btn {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}
.social-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.link-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.links-foot {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.links-foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}
.links-foot address {
  overflow-wrap: anywhere;
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}
.links-foot address a {
  color: var(--glow);
}
.links-copy {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.9) !important; /* 4.5:1 or more on every palette (test/theme.test.mjs scans them) */
}
