/* WritingNepal 8.55 — सजावट (inc/akshar-decor.php): frames, name badges, Catch card looks + owner panel */

/* ---------- frames: a ring drawn behind the round photo ---------- */
.wn-dc-fr:not(.avatar-wrap){ position:relative; isolation:isolate; }
a.wn-dc-fr{ display:inline-block; line-height:0; border-radius:50%; }
.wn-dc-fr::before{ content:""; position:absolute; inset:-5px; border-radius:50%; z-index:-1; pointer-events:none; }
.wn-dc-fr-gold::before{ background:conic-gradient(#F7C600,#FFF3B0,#C99A00,#FFE36B,#F7C600); }
.wn-dc-fr-gurans::before{ background:conic-gradient(#C2185B,#F48FB1,#AD1457,#F8BBD0,#C2185B); }
.wn-dc-fr-himal::before{ background:conic-gradient(#1F5FA8,#E4EEF8,#0E2A4A,#9CC3EA,#1F5FA8); }
.wn-dc-fr-jhanda::before{ background:#DC143C; box-shadow:0 0 0 2px #003893; } /* 8.61 */
.wn-dc-fr-kalam::before{ background:transparent; border:3px dashed #7A4A22; inset:-7px; }
/* 8.59: on the profile the photo box is position:static on phones and the wall layout, so a ::before ring
   grew to the size of the whole card. The profile ring is drawn in the photo's own border instead. */
.avatar-wrap.wn-dc-fr{ isolation:auto; }
.avatar-wrap.wn-dc-fr::before{ content:none !important; display:none !important; }
.avatar-wrap.wn-dc-fr img.avatar-xl{ position:static; border:6px solid transparent; background-origin:border-box; background-clip:border-box; box-shadow:0 0 0 3px #fff; }
.avatar-wrap.wn-dc-fr-gold img.avatar-xl{ background-image:conic-gradient(#F7C600,#FFF3B0,#C99A00,#FFE36B,#F7C600); }
.avatar-wrap.wn-dc-fr-gurans img.avatar-xl{ background-image:conic-gradient(#C2185B,#F48FB1,#AD1457,#F8BBD0,#C2185B); }
.avatar-wrap.wn-dc-fr-himal img.avatar-xl{ background-image:conic-gradient(#1F5FA8,#E4EEF8,#0E2A4A,#9CC3EA,#1F5FA8); }
.avatar-wrap.wn-dc-fr-jhanda img.avatar-xl{ background-image:linear-gradient(#DC143C,#DC143C); box-shadow:0 0 0 3px #003893; } /* 8.61 */
.avatar-wrap.wn-dc-fr-kalam img.avatar-xl{ border:4px dashed #7A4A22; background:#fff; }
.wn-dc-fr:not(.avatar-wrap) img{ position:relative; }

/* ---------- name badges (never the Verified look: no tick, no blue) ---------- */
.wn-dc-badge{ display:inline-block; vertical-align:middle; margin-left:6px; border-radius:999px; padding:1px 9px; font-size:.7rem; font-weight:700; line-height:1.6; letter-spacing:0; white-space:nowrap; font-family:"Noto Sans Devanagari","Work Sans",sans-serif; }
h1 .wn-dc-badge{ font-size:.8rem; padding:2px 11px; }
.wn-dc-bd-kitabkira{ background:#FFF0D6; color:#8A5A00; }
.wn-dc-bd-kabi{ background:#EDE7F6; color:#4527A0; }
.wn-dc-bd-pathak{ background:#FCE4EC; color:#4A0E25; }
.wn-dc-bd-kathakar{ background:#E5F4E4; color:#1E4620; }
.wn-dc-bd-nepali{ background:#FDECEF; color:#B01030; box-shadow:inset 0 0 0 1px #F5C2CC; padding-left:6px; } /* 8.61 */
.wn-dc-bd-nepali::before{ content:""; display:inline-block; width:.72em; height:.9em; margin-right:3px; vertical-align:-.08em; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M1 1 L24 14 H9 L24 31 H1 Z' fill='%23DC143C' stroke='%23003893' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='10' r='2.4' fill='%23fff'/%3E%3Ccircle cx='7' cy='23' r='3.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain; }
.wn-dc-bd-chiyagafi{ background:#F3E6D6; color:#3B2410; }

/* ---------- Catch card looks ---------- */
.feed-card.wn-dc-sk-gold{ background:#FFFBEA; border:3px solid #F7C600 !important; box-shadow:5px 5px 0 #120A08; }
.feed-card.wn-dc-sk-lokta{ background-color:#F6EEDF; background-image:radial-gradient(rgba(120,90,40,.10) 1px,transparent 1.5px),radial-gradient(rgba(120,90,40,.07) 1px,transparent 1.5px); background-size:13px 13px,19px 19px; background-position:0 0,6px 9px; border-color:#E2D3B8 !important; }
.feed-card.wn-dc-sk-raat{ background:#15110F; color:#F4EEE4; border-color:#2A2420 !important; }
.feed-card.wn-dc-sk-raat h3,.feed-card.wn-dc-sk-raat h4,.feed-card.wn-dc-sk-raat h5,.feed-card.wn-dc-sk-raat a,.feed-card.wn-dc-sk-raat .body-text,.feed-card.wn-dc-sk-raat p{ color:#F4EEE4; }
.feed-card.wn-dc-sk-raat .feed-actions,.feed-card.wn-dc-sk-raat .icon-action{ color:#CFC6B6; border-color:#2A2420; }
.feed-card.wn-dc-sk-raat time,.feed-card.wn-dc-sk-raat .meta,.feed-card.wn-dc-sk-raat small{ color:#B8AEA2; }

/* ---------- owner button + panel ---------- */
.wn-dc-open{ margin-top:8px; border:2px solid #120A08; background:#F7C600; color:#120A08; border-radius:999px; padding:6px 14px; font:inherit; font-weight:800; font-size:.85rem; cursor:pointer; min-height:36px; }
.wn-dc-ov{ position:fixed; inset:0; background:rgba(18,10,8,.45); z-index:100000; display:flex; align-items:center; justify-content:center; padding:16px; }
.wn-dc-ov[hidden]{ display:none; }
.wn-dc-sheet{ background:#fff; color:#120A08; width:460px; max-width:100%; max-height:calc(100vh - 32px); overflow:auto; border-radius:18px; padding:18px 20px 16px; box-shadow:0 20px 60px rgba(0,0,0,.25); display:flex; flex-direction:column; gap:12px; font-family:"Noto Sans Devanagari","Work Sans",sans-serif; }
.wn-dc-top{ display:flex; align-items:flex-start; gap:10px; }
.wn-dc-top h2{ margin:0; font-size:1.25rem; flex:1; }
.wn-dc-x{ width:40px; height:40px; border-radius:50%; border:0; background:#F0EEE9; font-size:20px; cursor:pointer; flex:none; }
.wn-dc-sub{ margin:2px 0 0; font-size:.85rem; color:#5A5247; }
.wn-dc-tabs{ display:flex; background:#F0ECE3; border-radius:12px; padding:4px; gap:4px; }
.wn-dc-tabs button{ flex:1; min-height:40px; border:0; border-radius:9px; background:transparent; font:inherit; font-weight:700; font-size:.88rem; cursor:pointer; color:#120A08; }
.wn-dc-tabs button[aria-selected="true"]{ background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.wn-dc-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.wn-dc-opt{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:84px; padding:10px 4px; border-radius:12px; background:#fff; border:2px solid #E7E0D2; color:#120A08; font:inherit; font-size:.82rem; font-weight:600; cursor:pointer; }
.wn-dc-opt[aria-pressed="true"]{ border-color:#120A08; box-shadow:0 0 0 1px #120A08; }
.wn-dc-ring{ width:36px; height:36px; border-radius:50%; }
.wn-dc-tag{ font-size:.68rem; font-weight:700; border-radius:999px; padding:0 7px; line-height:17px; background:#120A08; color:#F7C600; white-space:nowrap; }
.wn-dc-tag.own{ background:#E5F4E4; color:#1E4620; }
.wn-dc-mini{ width:64px; height:40px; border-radius:8px; }
.wn-dc-err{ margin:0; color:#B3261E; font-size:.85rem; min-height:1em; }
.wn-dc-buy{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px; background:#120A08; color:#FBF8F2; position:sticky; bottom:-16px; }
.wn-dc-buy div{ flex:1; min-width:0; }
.wn-dc-buy strong{ display:block; font-size:.95rem; }
.wn-dc-buy small{ display:block; font-size:.78rem; color:#CFC6B6; }
.wn-dc-go{ border:0; border-radius:10px; background:#F7C600; color:#120A08; font:inherit; font-weight:800; padding:10px 16px; cursor:pointer; text-decoration:none; min-height:44px; display:inline-flex; align-items:center; }
.wn-dc-go[disabled]{ opacity:.5; cursor:default; }
.wn-dc-terms{ margin:0; font-size:.75rem; color:#6B6359; }

/* 8.62 — flag badge is the flag alone; "how it looks" preview inside the panel; bottom sheet on phones */
.wn-dc-badge.wn-dc-bd-icon{ background:none !important; box-shadow:none !important; padding:0 !important; width:.85em; height:1.05em; vertical-align:-.12em; margin-left:6px; font-size:1em; line-height:1; }
.wn-dc-badge.wn-dc-bd-icon::before{ width:100%; height:100%; margin:0; vertical-align:top; }
h1 .wn-dc-badge.wn-dc-bd-icon{ font-size:.8em; }
.wn-dc-opt .wn-dc-badge.wn-dc-bd-icon{ font-size:24px; }
.wn-dc-prev{ background:linear-gradient(180deg,#FBF8F2,#F3EFE6); border-radius:16px; padding:12px; display:flex; flex-direction:column; gap:10px; }
.wn-dc-prev-lbl{ font-size:.7rem; font-weight:800; color:#8a8278; text-align:center; letter-spacing:.3px; }
.wn-dc-prev-big{ display:flex; align-items:center; justify-content:center; gap:14px; }
.wn-dc-prev-big .wn-dc-pn{ font-size:1.15rem; font-weight:800; }
.wn-dc-prev-feed{ display:flex; align-items:center; gap:9px; background:#fff; border-radius:12px; padding:8px 10px; box-sizing:border-box; }
.wn-dc-prev small{ display:block; font-size:.7rem; color:#8a8278; font-weight:400; }
.wn-dc-pn{ display:flex; align-items:center; flex-wrap:wrap; gap:0; font-size:.9rem; color:#120A08; }
.wn-dc-pn.on-dark{ color:#F3EFE6; }
.wn-dc-pav{ display:inline-block; flex:none; border-radius:50%; box-sizing:border-box; overflow:hidden; background:#E7E0D2; }
.wn-dc-pav img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
@media (max-width:640px){
  .wn-dc-ov{ align-items:flex-end; padding:0; }
  .wn-dc-sheet{ width:100%; border-radius:20px 20px 0 0; max-height:92vh; }
}

/* 8.63 — the small flag sits on the photo's bottom-right edge (profile + feed), not after the name */
.wn-av-box{ position:relative; display:inline-block; line-height:0; vertical-align:top; }
.wn-dc-avflag{ position:absolute; right:-4px; bottom:0; width:26px; height:32px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M1 1 L24 14 H9 L24 31 H1 Z' fill='%23DC143C' stroke='%23003893' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='10' r='2.4' fill='%23fff'/%3E%3Ccircle cx='7' cy='23' r='3.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain; filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); pointer-events:none; z-index:2; }
a.wn-dc-flag{ position:relative; display:inline-block; line-height:0; flex:none; }
a.wn-dc-flag::after{ content:""; position:absolute; right:-12%; bottom:-2%; width:34%; height:42%; min-width:11px; min-height:13px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M1 1 L24 14 H9 L24 31 H1 Z' fill='%23DC143C' stroke='%23003893' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='10' r='2.4' fill='%23fff'/%3E%3Ccircle cx='7' cy='23' r='3.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain; filter:drop-shadow(0 1px 1px rgba(0,0,0,.35)); pointer-events:none; z-index:2; }
.wn-dc-pwrap{ position:relative; display:inline-block; line-height:0; flex:none; }
.wn-dc-pwrap .wn-dc-avflag{ right:-6%; bottom:-2%; width:30%; height:37%; }