/* Share buttons and the share menu (modern look). Colours from v2.css. */

.wlp-modern .wlp-share { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin: 0; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.wlp-modern .wlp-share:focus-visible { outline: 3px solid var(--v2-lime); outline-offset: 2px; }
.wlp-modern .wlp-share.is-pill { height: 38px; padding: 0 16px; border-radius: 999px; background: #fff !important; color: var(--v2-blue) !important; border: 1.5px solid #CFE3F5; }
.wlp-modern .wlp-share.is-pill:hover { background: #EEF6FD !important; }
.wlp-modern .wlp-share.is-wa { height: 38px; padding: 0 16px; border-radius: 999px; background: #25D366 !important; color: #fff !important; }
.wlp-modern .wlp-share.is-wa:hover { background: #1EBE5B !important; }
.wlp-modern .wlp-share.is-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--v2-bg) !important; color: #334155 !important; }
.wlp-modern .wlp-share.is-icon:hover { color: var(--v2-blue) !important; }

/* On pictures: a small white round button on the image corner. */
.wlp-modern .v2-shw { position: relative; display: grid; min-width: 0; }
.wlp-modern .wlp-share.is-tile { position: absolute; z-index: 2; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.94) !important; color: var(--v2-navy) !important; box-shadow: 0 4px 12px rgba(15,27,45,.22); }
.wlp-modern .wlp-share.is-tile svg { width: 16px; height: 16px; }
.wlp-modern .wlp-share.is-tile:hover { transform: scale(1.08); color: var(--v2-blue) !important; }
.wlp-modern .v2-shw .wlp-share.is-tile { top: 12px; right: 12px; }
/* Small tile: bottom-right corner of the 128×72 thumbnail (10px padding + 1px border + 3px margin). */
.wlp-modern .v2-shw.is-li .wlp-share.is-tile { top: 52px; left: 105px; right: auto; width: 28px; height: 28px; }
.wlp-modern .v2-shw.is-li .wlp-share.is-tile svg { width: 14px; height: 14px; }

/* Under the post title */
.wlp-modern .wlp-sharebar { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }

/* After the lesson */
.wlp-modern .wlp-sharecard { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 32px 0 8px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #F4F9FE, #EEF6D8); border: 1px solid var(--v2-line); }
.wlp-modern .wlp-sc-art { flex: 0 0 auto; }
.wlp-modern .wlp-sc-t { flex: 1 1 220px; min-width: 0; }
.wlp-modern .wlp-sc-t strong { display: block; font-size: 17px; line-height: 1.45; color: var(--v2-ink); }
.wlp-modern .wlp-sc-t span { display: block; margin-top: 2px; font-size: 14px; color: var(--v2-muted); }
.wlp-modern .wlp-sc-b { display: flex; flex-wrap: wrap; gap: 10px; }
.wlp-modern .wlp-sharecard .wlp-share.is-wa, .wlp-modern .wlp-sharecard .wlp-share.is-pill { height: 44px; padding: 0 18px; font-size: 15px; }

/* Top of a category page */
.wlp-modern .wlp-catbar { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--v2-line); }
.wlp-modern .wlp-catbar .v2-caticon { flex: 0 0 auto; }
.wlp-modern .wlp-catbar-t { flex: 1; min-width: 0; }
.wlp-modern .wlp-catbar h1 { margin: 0 !important; font-size: 24px !important; line-height: 1.3 !important; font-weight: 800 !important; color: var(--v2-ink) !important; }
.wlp-modern .wlp-catbar-t span { font-size: 13px; color: var(--v2-muted); }

/* Archive and search entries */
.wlp-modern .blog-entry-readmore + .wlp-share { margin-top: 10px; }

/* Header, drawer, footer */
.wlp-modern .v2-actions .wlp-share.is-icon { order: 0; }
.wlp-modern .v2-drawer .wlp-share { width: 100%; justify-content: flex-start; gap: 10px; padding: 12px 4px; background: none !important; border: 0; border-bottom: 1px solid #F1F4F9; border-radius: 0; color: var(--v2-ink) !important; font-size: 15px; font-weight: 600; height: auto; }
.wlp-modern .v2-ft .wlp-share.is-pill { margin-top: 14px; background: rgba(255,255,255,.08) !important; color: #fff !important; border-color: rgba(255,255,255,.18); }
.wlp-modern .v2-ft .wlp-share.is-pill:hover { background: rgba(255,255,255,.16) !important; }

/* The share menu (laptops; phones use their own share menu) */
.wlp-sheet { position: absolute; z-index: 100000; width: 220px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid #E6ECF3; box-shadow: 0 18px 44px rgba(15,27,45,.2); font-family: 'Plus Jakarta Sans', 'Noto Sans Malayalam UI', sans-serif; animation: wlp-pop .14s ease-out; }
.wlp-sheet-h { padding: 6px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #5B6B80; }
.wlp-sheet a, .wlp-sheet button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin: 0; border: 0; border-radius: 12px; background: none; color: #0F1B2D !important; font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none !important; cursor: pointer; }
.wlp-sheet a:hover, .wlp-sheet a:focus-visible, .wlp-sheet button:hover, .wlp-sheet button:focus-visible { background: #F4F6FB; outline: none; }
.wlp-sheet svg { flex: 0 0 auto; }
.wlp-sheet .is-wa svg { color: #25D366; } .wlp-sheet .is-tg svg { color: #229ED9; } .wlp-sheet .is-fb svg { color: #1877F2; } .wlp-sheet .is-x svg { color: #0F1B2D; } .wlp-sheet .is-link svg { color: #1B7FC4; }
.wlp-sheet .is-link { border-top: 1px solid #F1F4F9; border-radius: 0 0 12px 12px; margin-top: 4px; }
@keyframes wlp-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .wlp-modern .v2-actions .wlp-share.is-icon { display: none; } /* phones: share the blog from the menu instead */
  .wlp-modern .v2-shw.is-li .wlp-share.is-tile { top: 43px; left: 89px; }
  .wlp-modern .wlp-catbar { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .wlp-modern .wlp-catbar h1 { font-size: 20px !important; }
  .wlp-modern .wlp-sharecard { padding: 16px; }
  .wlp-modern .wlp-sc-b, .wlp-modern .wlp-sc-b .wlp-share { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .wlp-sheet { animation: none; } .wlp-modern .wlp-share { transition: none; } }

/* The theme's own grey "Share my story" row repeats the share card above it. */
.wlp-modern .entry-share { display: none !important; }
