/* LumiSchema share buttons (inc/share-buttons.php, js/share.js).
   Design and size are chosen in Settings > Share Buttons:
   .is-design-outline | brand | soft | circle | tile | minimal   and   .is-size-s | m | l
   Every hover keeps the text readable: dark text on light backgrounds, white text on the dark brand fills. */

.ls-share { --h: 30px; --fs: 12px; --ico: 15px; --round: 38px; --rico: 18px; --rname: 10px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: inherit; }
.ls-share.is-size-m { --h: 36px; --fs: 13px; --ico: 17px; --round: 44px; --rico: 20px; --rname: 10.5px; }
.ls-share.is-size-l { --h: 42px; --fs: 14px; --ico: 19px; --round: 50px; --rico: 23px; --rname: 11px; }
.ls-share-h { color: #4a5d7a; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.ls-share-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }

/* Base button = "Outline". High specificity on purpose: GeneratePress gives every <button> a blue hover background. */
.ls-share .ls-sh, .ls-share-sheet .ls-sh {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--h, 30px); margin: 0; padding: 0 calc(var(--h, 30px) * .37) 0 calc(var(--h, 30px) * .27);
    border: 1px solid #d3deee; border-radius: 999px; background: #fff; box-shadow: none;
    color: #071d33; font-family: inherit; font-size: var(--fs, 12px); font-weight: 600; line-height: 1; text-decoration: none; text-transform: none; letter-spacing: 0;
    cursor: pointer; transition: background-color .15s, border-color .15s, filter .15s;
}
.ls-share .ls-sh:hover, .ls-share .ls-sh:focus-visible, .ls-share .ls-sh:active,
.ls-share-sheet .ls-sh:hover, .ls-share-sheet .ls-sh:focus-visible, .ls-share-sheet .ls-sh:active {
    background: var(--tint, #eaf2ff); border-color: var(--c, #0b5fd8); color: #071d33; text-decoration: none; outline: none;
}
.ls-share .ls-sh:focus-visible, .ls-share-sheet .ls-sh:focus-visible { box-shadow: 0 0 0 3px rgba(11, 95, 216, .25); }
.ls-sh-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 var(--ico, 15px); }
.ls-sh-ico svg { display: block; width: var(--ico, 15px); height: var(--ico, 15px); fill: var(--c, #0b5fd8); }
.ls-sh-name { white-space: nowrap; }
.ls-sh.is-copied { background: #e7f8ee !important; border-color: #1fa855 !important; }

/* Icons only (setting "Icons only", and the Round icons design) */
.ls-share.is-style-icon .ls-sh { width: var(--h, 30px); min-height: var(--h, 30px); padding: 0; justify-content: center; }
.ls-share.is-style-icon .ls-sh-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Design: Brand colours (filled, white text; darker shades so white text passes 4.5:1) ----- */
.ls-share.is-design-brand .ls-sh { background: var(--fill, #0b5fd8); border-color: var(--fill, #0b5fd8); color: #fff; }
.ls-share.is-design-brand .ls-sh .ls-sh-ico svg { fill: #fff; }
.ls-share.is-design-brand .ls-sh:hover, .ls-share.is-design-brand .ls-sh:focus-visible, .ls-share.is-design-brand .ls-sh:active {
    background: var(--fill, #0b5fd8); border-color: var(--fill, #0b5fd8); color: #fff; filter: brightness(.86);
}

/* ----- Design: Soft (tinted, no border) ----- */
.ls-share.is-design-soft .ls-sh { background: var(--tint, #eaf2ff); border-color: transparent; }
.ls-share.is-design-soft .ls-sh:hover, .ls-share.is-design-soft .ls-sh:focus-visible, .ls-share.is-design-soft .ls-sh:active { background: #fff; border-color: var(--c, #0b5fd8); color: #071d33; }

/* ----- Design: Round icons ----- */
.ls-share.is-design-circle .ls-sh { border-radius: 50%; }

/* ----- Design: Tiles (icon above the name) ----- */
.ls-share.is-design-tile:not(.is-style-icon) .ls-sh { flex-direction: column; justify-content: center; gap: 4px; min-width: calc(var(--h, 30px) * 2.2); min-height: calc(var(--h, 30px) * 1.75); padding: 6px 8px; border-radius: 10px; font-size: calc(var(--fs, 12px) - 1px); }
.ls-share.is-design-tile .ls-sh { border-radius: 10px; }

/* ----- Design: Minimal (no boxes) ----- */
.ls-share.is-design-minimal .ls-sh { min-height: 0; padding: 4px 2px; border-color: transparent; background: transparent; border-radius: 4px; }
.ls-share.is-design-minimal .ls-share-list { gap: 4px 16px; }
.ls-share.is-design-minimal .ls-sh { padding: 4px 8px; }
.ls-share.is-design-minimal .ls-sh:hover, .ls-share.is-design-minimal .ls-sh:focus-visible, .ls-share.is-design-minimal .ls-sh:active { background: var(--tint); border-color: transparent; color: #071d33; text-decoration: none; }

/* "More" is a phone thing (on computers every network is already shown). */
.ls-share .ls-sh-more { display: none; }

/* Placements */
.ls-share.is-top.is-device { margin: 0 0 24px; padding: 12px 14px; background: #fff; border: 1px solid #e1e9f4; border-radius: 14px; }
.ls-share.is-bottom.is-device { margin: 0 0 24px; }
.ls-share.is-top.is-reviews, .ls-share.is-top.is-post { margin: -8px 0 22px; }
.ls-share.is-bottom { gap: 6px 12px; margin: 22px 0 8px; padding: 10px 14px; background: #f3f7fd; border: 1px solid #dfe8f5; border-radius: 12px; }
/* Compact: heading and buttons on one line when there is room. */
.ls-share.is-bottom .ls-share-h { flex: 0 0 auto; color: #071d33; font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.ls-share.is-bottom.is-style-label .ls-share-h { flex: 1 1 100%; }
.entry-content > .ls-share.is-top { margin: 0 0 20px; }

/* ---------- Phones: round (or square) buttons, phone networks + More ---------- */
@media (max-width: 640px) {
    .ls-share { gap: 10px; }
    .ls-share-h { flex: 1 1 100%; }
    .ls-share .ls-sh:not(.is-phone) { display: none; }
    .ls-share .ls-sh-more { display: inline-flex; }
    .ls-share-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; width: 100%; }
    .ls-share .ls-sh, .ls-share.is-style-icon .ls-sh, .ls-share.is-design-tile:not(.is-style-icon) .ls-sh, .ls-share.is-design-minimal .ls-sh {
        flex-direction: column; gap: 5px; width: auto; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; filter: none;
        color: #071d33; font-size: 11px; line-height: 1.2;
    }
    .ls-share .ls-sh .ls-sh-ico { --fit: min(var(--round), calc((100vw - 64px) / 6 - 6px)); width: var(--fit); height: var(--fit); flex-basis: auto; border: 1px solid #d3deee; border-radius: 50%; background: #fff; transition: background-color .15s, border-color .15s, filter .15s; }
    .ls-share .ls-sh .ls-sh-ico svg { width: var(--rico); height: var(--rico); fill: var(--c, #0b5fd8); }
    .ls-share .ls-sh:hover, .ls-share .ls-sh:focus-visible, .ls-share .ls-sh:active { background: transparent; border-color: transparent; box-shadow: none; color: #071d33; filter: none; text-decoration: none; }
    .ls-share .ls-sh:hover .ls-sh-ico, .ls-share .ls-sh:focus-visible .ls-sh-ico, .ls-share .ls-sh:active .ls-sh-ico { background: var(--tint, #eaf2ff); border-color: var(--c, #0b5fd8); }
    .ls-share .ls-sh:focus-visible .ls-sh-ico { box-shadow: 0 0 0 3px rgba(11, 95, 216, .25); }
    .ls-share .ls-sh-name { max-width: 100%; font-size: min(var(--rname), 10.5px); letter-spacing: -.1px; }
    /* Designs on phones: the colour sits on the round icon, the name stays dark under it. */
    .ls-share[class*="is-design-"] .ls-sh, .ls-share[class*="is-design-"] .ls-sh:hover, .ls-share[class*="is-design-"] .ls-sh:focus-visible, .ls-share[class*="is-design-"] .ls-sh:active {
        background: transparent; border-color: transparent; color: #071d33; filter: none; text-decoration: none; box-shadow: none;
    }
    /* Designs on phones */
    .ls-share.is-design-brand .ls-sh .ls-sh-ico { background: var(--fill); border-color: var(--fill); }
    .ls-share.is-design-brand .ls-sh .ls-sh-ico svg { fill: #fff; }
    .ls-share.is-design-brand .ls-sh:hover .ls-sh-ico, .ls-share.is-design-brand .ls-sh:focus-visible .ls-sh-ico { background: var(--fill); border-color: var(--fill); filter: brightness(.86); }
    .ls-share.is-design-soft .ls-sh .ls-sh-ico { background: var(--tint); border-color: transparent; }
    .ls-share.is-design-soft .ls-sh:hover .ls-sh-ico, .ls-share.is-design-soft .ls-sh:focus-visible .ls-sh-ico { background: #fff; border-color: var(--c); }
    .ls-share.is-design-tile .ls-sh .ls-sh-ico { border-radius: 12px; }
    .ls-share.is-design-minimal .ls-sh .ls-sh-ico { border-color: transparent; background: transparent; }
    /* Icons-only on phones: smaller buttons, no names */
    .ls-share.is-style-icon .ls-share-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .ls-share.is-style-icon .ls-sh .ls-sh-ico { width: calc(var(--round) - 6px); height: calc(var(--round) - 6px); }
    .ls-share.is-style-icon .ls-sh .ls-sh-ico svg { width: calc(var(--rico) - 3px); height: calc(var(--rico) - 3px); }
    .ls-share.is-bottom { padding: 10px 12px; }
    .ls-share.is-bottom .ls-share-h { flex: 1 1 100%; font-size: 13px; }
}

/* ---------- Full list (phones without a share menu) ---------- */
.ls-share-sheet { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(7, 29, 51, .3); color: #071d33; }
.ls-share-sheet::backdrop { background: rgba(7, 29, 51, .55); }
.ls-share-sheet-in { padding: 14px 20px 24px; }
.ls-share-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ls-share-sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.ls-share-sheet .ls-share-x { width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #f2f4f7; color: #071d33; font-size: 22px; line-height: 1; cursor: pointer; }
.ls-share-sheet .ls-share-x:hover, .ls-share-sheet .ls-share-x:focus-visible { background: #e4e9f2; color: #071d33; }
.ls-share-sheet-what { margin: 6px 0 16px; padding: 10px 12px; border: 1px solid #e1e9f4; border-radius: 12px; background: #f6f9fe; color: #071d33; font-size: 14px; font-weight: 700; line-height: 1.35; }
.ls-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.ls-share-sheet .ls-sh { flex-direction: column; gap: 6px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; line-height: 1.2; }
.ls-share-sheet .ls-sh .ls-sh-ico { flex: 0 0 auto; width: 52px; height: 52px; border: 1px solid #d3deee; border-radius: 50%; background: #fff; }
.ls-share-sheet .ls-sh .ls-sh-ico svg { width: 24px; height: 24px; }
.ls-share-sheet .ls-sh:hover, .ls-share-sheet .ls-sh:focus-visible, .ls-share-sheet .ls-sh:active { background: transparent; border-color: transparent; }
.ls-share-sheet .ls-sh:hover .ls-sh-ico, .ls-share-sheet .ls-sh:focus-visible .ls-sh-ico { background: var(--tint); border-color: var(--c); }
@media (max-width: 640px) {
    .ls-share-sheet { width: 100%; max-width: none; margin: auto 0 0; inset: auto 0 0 0; border-radius: 20px 20px 0 0; }
}

.ls-share-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100001; padding: 10px 16px; border-radius: 10px; background: #071d33; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(7, 29, 51, .3); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ls-share-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
