/* DigitalYug story tools: Save for later, Quote card, Read on phone, Hindi / English switch */
[hidden].dy-sel-quote, [hidden].dy-toast, [hidden].dy-modal, [hidden].dy-saved-pill, .dy-modal [hidden], .dy-saved-empty[hidden] { display: none !important; }

.dy-tools .dy-save.is-on, .dy-sticky-share .dy-save.is-on { background: #141414; color: #fff; border-color: #141414; }
.dy-tools .dy-save.is-on .dy-ico, .dy-sticky-share .dy-save.is-on .dy-ico { fill: currentColor; }
@media (max-width: 991px), (pointer: coarse) { .dy-desk-only { display: none !important; } }

/* Hindi / English switch */
.dy-lang { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px auto 0; padding: 6px 6px 6px 16px; border-radius: 999px; background: #fff4f2; border: 1px solid #f7d4cd; font-size: 14px; color: #4a4d52; }
.dy-lang a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; color: #141414; background: #fff; border: 1px solid #ececec; }
.dy-lang a:hover { border-color: #f23f2e; color: #c22a1b; }
.dy-lang a.is-on { background: #f23f2e; color: #fff; border-color: #f23f2e; }
.dy-art-head .dy-lang-wrap { text-align: center; }
/* on the Hindi version the Hindi block is the main story, so always show it */
.dy-lang-hi [id*="hindi" i], .dy-lang-hi [class*="hindi" i] { display: block !important; }

/* saved pill + toast */
.dy-saved-pill { position: fixed; left: 18px; bottom: 18px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #141414; color: #fff !important; font-size: 14px; font-weight: 500; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.dy-saved-pill b { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f23f2e; align-items: center; justify-content: center; font-size: 12px; }
.dy-saved-pill .dy-ico { width: 16px; height: 16px; fill: currentColor; }
.dy-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1001; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #141414; color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.dy-toast a { color: #ff9d92; font-weight: 600; margin-left: 6px; }
@media (max-width: 991px) { .dy-saved-pill { bottom: 78px; left: 12px; padding: 8px 12px; } }

/* "make quote card" button over selected text */
.dy-sel-quote { position: absolute; z-index: 950; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: #141414; color: #fff; font: 600 13px Poppins, sans-serif; box-shadow: 0 8px 20px rgba(0,0,0,.25); cursor: pointer; }
.dy-sel-quote .dy-ico { width: 15px; height: 15px; }

/* dialog */
.dy-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dy-modal[hidden] { display: none; }
.dy-modal-bg { position: absolute; inset: 0; background: rgba(15,15,18,.55); }
.dy-modal-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 26px 24px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; }
.dy-modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f4f4f5; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dy-modal-h { margin: 6px 30px 6px; font: 700 24px/1.2 "Josefin Sans", Poppins, sans-serif; color: #141414; }
.dy-modal-p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #5f6368; }
.dy-qr-box { display: inline-block; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #ececec; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.dy-qr-box canvas { display: block; width: 240px; height: 240px; }
.dy-modal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dy-mbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: #f23f2e; color: #fff; font: 600 14px Poppins, sans-serif; cursor: pointer; }
.dy-mbtn.alt { background: #fff; color: #141414; border: 1.5px solid #e3e3e3; }
.dy-mbtn .dy-ico { width: 16px; height: 16px; }
.dy-q-size { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f4f4f5; margin-bottom: 12px; }
.dy-q-size button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: 500 13px Poppins, sans-serif; color: #5f6368; cursor: pointer; }
.dy-q-size button.is-on { background: #fff; color: #141414; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.dy-q-label { display: block; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5f6368; margin-bottom: 4px; }
#dyQuoteText { width: 100%; border: 1px solid #e3e3e3; border-radius: 12px; padding: 10px 12px; font: 15px/1.5 Poppins, sans-serif; resize: vertical; }

/* ---------- My saved stories page ---------- */
.dy-saved { max-width: 860px; margin: 32px auto 56px; font-size: 16px; }
.dy-saved-head { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, #fff1ef, #ffe9ef); margin-bottom: 22px; }
.dy-saved-ico { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #f23f2d, #f22d5f); color: #fff; }
.dy-saved-ico .dy-ico { width: 26px; height: 26px; }
.dy-saved-head h1 { margin: 0 0 4px; font: 700 28px/1.2 "Josefin Sans", Poppins, sans-serif; color: #141414; }
.dy-saved-head p { margin: 0; color: #555; font-size: 15px; }
.dy-saved-empty { text-align: center; padding: 40px 20px; border: 2px dashed #f3c7c1; border-radius: 18px; color: #444; }
.dy-saved-empty a { display: inline-block; margin-top: 14px; padding: 10px 20px; border-radius: 999px; background: #e0321f; color: #fff !important; font-weight: 600; text-decoration: none; }
.dy-saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dy-saved-item { position: relative; display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid #eee; border-radius: 16px; background: #fff; transition: box-shadow .2s, transform .2s; }
.dy-saved-item:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-2px); }
.dy-saved-img { flex: 0 0 160px; }
.dy-saved-img img { width: 160px; height: 100px; object-fit: contain; background: #f1f1f3; border-radius: 12px; display: block; }
.dy-saved-txt { flex: 1; min-width: 0; }
.dy-saved-txt h2 { margin: 0 0 6px; font: 600 17px/1.35 Poppins, sans-serif; }
.dy-saved-txt h2 a { color: #141414; text-decoration: none; }
.dy-saved-txt h2 a:hover { color: #e0321f; }
.dy-saved-txt p { margin: 0; font-size: 13px; color: #666; }
.dy-saved-txt p a { color: #e0321f; }
.dy-saved-cat { margin-left: 8px; }
.dy-saved-rm { flex: 0 0 38px; height: 38px; border: 0; border-radius: 50%; background: #f5f5f7; color: #555; cursor: pointer; display: grid; place-items: center; }
.dy-saved-rm:hover { background: #ffe3df; color: #e0321f; }
@media (max-width: 575px) {
  .dy-saved-img { flex-basis: 110px; } .dy-saved-img img { width: 110px; height: 74px; }
  .dy-saved-head h1 { font-size: 22px; }
}
.dy-lang-note { margin: 0 0 18px; padding: 10px 16px; border-radius: 12px; background: #fff4f2; border-left: 4px solid #f23f2e; font-size: 15px; color: #333; }
.dy-lang-note a { color: #c22a1b; font-weight: 600; }

/* ---------- Quote card studio (wide dialog) ---------- */
.dy-modal-box.is-wide { max-width: 940px; padding: 28px; text-align: left; }
.dy-qc:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: center; }
.dy-qc-stage { display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 22px; border-radius: 20px;
  background: radial-gradient(circle at 20% 20%, #fff 0, #f3f0ee 60%), #f3f0ee;
  background-image: radial-gradient(rgba(0,0,0,.07) 1.2px, transparent 1.2px); background-size: 18px 18px; background-color: #f6f3f1; }
.dy-qc-stage canvas { display: block; width: auto; height: min(560px, calc(100vh - 140px)); max-width: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.08); transition: transform .3s; }
.dy-qc-stage canvas:hover { transform: rotate(-1deg) scale(1.01); }
.dy-qc-side .dy-modal-h { margin: 0 40px 6px 0; }
.dy-qc-side .dy-modal-p { margin-bottom: 14px; }
.dy-qc-side .dy-q-label { margin: 14px 0 8px; }
.dy-q-label small { float: right; font-weight: 500; letter-spacing: 0; text-transform: none; color: #9a9a9a; }
.dy-q-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dy-q-themes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 2px solid #ececec; border-radius: 14px; background: #fff; font: 600 12px Poppins, sans-serif; color: #444; cursor: pointer; transition: border-color .2s, transform .2s; }
.dy-q-themes button:hover { transform: translateY(-2px); }
.dy-q-themes button.is-on { border-color: #f23f2e; color: #141414; box-shadow: 0 6px 16px rgba(242,63,46,.18); }
.dy-q-themes .sw { display: block; box-sizing: border-box; width: 100%; height: 38px; border-radius: 9px; }
.sw-photo { background: linear-gradient(135deg, #f23f2d, #f22d5f); box-shadow: inset 0 -14px 0 rgba(255,255,255,.9); }
.sw-paper { background: #fbf5ea; border: 2px solid #141414; }
.sw-night { background: radial-gradient(circle at 80% 20%, #f23f2d, transparent 60%), radial-gradient(circle at 10% 90%, #f22d5f, transparent 60%), #0d0d12; }
.sw-pop { background: #ffe14d; box-shadow: inset 0 0 0 7px #ffe14d, inset 0 0 0 10px #141414; }
.dy-qc-side .dy-q-size { display: flex; margin: 0; }
.dy-qc-side .dy-q-size button { flex: 1; }
.dy-q-hint { margin: 6px 0 0; font-size: 12px; color: #8a8a8a; }
.dy-qc-side .dy-modal-actions { justify-content: flex-start; margin-top: 18px; }
.dy-qc-side .dy-mbtn[data-download] { flex: 1; justify-content: center; background: linear-gradient(135deg, #f23f2d, #f22d5f); box-shadow: 0 10px 22px rgba(242,45,95,.3); }
@media (max-width: 860px) {
  .dy-modal-box.is-wide { padding: 20px 16px; }
  .dy-qc:not([hidden]) { grid-template-columns: 1fr; gap: 16px; }
  .dy-qc-stage { min-height: 0; padding: 14px; order: 0; }
  .dy-qc-stage canvas { height: 46vh; }
  .dy-qc-side .dy-modal-h { font-size: 20px; }
  .dy-qc-side .dy-modal-p { display: none; }
}
.dy-lang a small { margin-left: 5px; font-size: 11px; font-weight: 500; opacity: .75; }

/* Hindi translation (Google widget): keep our design, hide Google's bar */
.dy-lang button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font: 600 14px Poppins, sans-serif; color: #141414; background: #fff; border: 1px solid #ececec; cursor: pointer; }
.dy-lang button:hover { border-color: #f23f2e; color: #c22a1b; }
.dy-lang button.is-on { background: #f23f2e; color: #fff; border-color: #f23f2e; }
.dy-lang button small { margin-left: 5px; font-size: 11px; font-weight: 500; opacity: .75; }
.dy-gtr-box { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
html.dy-gtr-hi body, body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
