/* Limegoat IR — base styles for plugin components. Themes restyle these with the brand. */
.lgir-icon { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
.lgir-icon svg { width: 100%; height: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Notice modal */
.lgir-locked { overflow: hidden; }
.lgir-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.lgir-modal[hidden] { display: none; }
.lgir-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); animation: lgir-fade .2s ease-out; }
.lgir-modal__box { position: relative; background: #fff; color: #1c1c1c; max-width: 560px; width: 100%; padding: 28px 28px 24px; border-top: 4px solid var(--lgir-accent, #fcb316); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: lgir-rise .25s ease-out; }
.lgir-modal__title { margin: 0 0 10px; font-size: 22px; }
.lgir-modal__box p { font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.lgir-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@keyframes lgir-fade { from { opacity: 0; } }
@keyframes lgir-rise { from { opacity: 0; transform: translateY(14px); } }

/* Market data tool states */
.lgir-tool { position: relative; min-height: 120px; }
.lgir-tool__status { display: flex; align-items: center; gap: 10px; color: #6b6b6b; font-size: 14px; padding: 18px 0; }
.lgir-tool.is-ready .lgir-tool__status, .lgir-tool.is-slow .lgir-tool__status { display: none; }
.lgir-tool__fallback { padding: 16px; background: #f6f6f6; border-left: 3px solid var(--lgir-accent, #fcb316); font-size: 14px; }
.lgir-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: lgir-spin .8s linear infinite; opacity: .6; }
@keyframes lgir-spin { to { transform: rotate(360deg); } }
.lgir-qm-source { display: none !important; }

/* Quote direction */
.lgir-quote .lgir-icon--up, .lgir-quote .lgir-icon--down { display: none; }
.lgir-quote[data-dir="up"] .lgir-icon--up, .lgir-quote[data-dir="down"] .lgir-icon--down { display: inline-flex; }
.lgir-quote[data-dir="up"] .lgir-quote__chg { color: #1a7f37; }
.lgir-quote[data-dir="down"] .lgir-quote__chg { color: #c0392b; }
.is-flash { animation: lgir-flash 1.2s ease-out; }
@keyframes lgir-flash { 0% { background: rgba(252, 179, 22, .45); } 100% { background: transparent; } }

/* Live badge */
.lgir-live { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: #c0392b; color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; animation: lgir-pulse 1.6s ease-in-out infinite; }
@keyframes lgir-pulse { 50% { opacity: .55; } }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
	.lgir-modal__backdrop, .lgir-modal__box, .lgir-spinner, .lgir-live, .is-flash { animation: none !important; }
}

/* ---------- Presentation viewer ---------- */
.lgir-pdfwrap__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin-bottom: 24px; }
.lgir-pdfwrap__head .lgir-h2 { margin-bottom: 0; }
.lgir-pdfwrap__title { margin-top: 14px !important; }
.lgir-pdfwrap__title { margin: 0; font-size: 18px; }
.lgir-pdfwrap__title span { color: var(--lgt-muted, #6b6b6b); }
.lgir-pdfwrap__actions .lgir-btn .lgir-icon { width: 18px; height: 18px; }
.lgir-pdf { position: relative; background: #1c1c1c; color: #fff; outline: none; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); }
.lgir-pdf:focus-visible { box-shadow: 0 0 0 3px var(--lgt-accent, #fcb316); }
.lgir-pdf__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 8px 12px; background: #0f0f0f; border-bottom: 3px solid var(--lgt-accent, #fcb316); }
.lgir-pdf__group { display: flex; align-items: center; gap: 4px; }
.lgir-pdf__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
.lgir-pdf__btn:hover:not([disabled]), .lgir-pdf__btn:focus-visible { background: rgba(255, 255, 255, .1); color: var(--lgt-accent, #fcb316); }
.lgir-pdf__btn[disabled] { opacity: .35; cursor: default; }
.lgir-pdf__btn .lgir-icon, .lgir-pdf__btn .lgir-icon svg { display: block; width: 20px; height: 20px; }
.lgir-pdf__btn--prev .lgir-icon, .lgir-pdf__nav--prev .lgir-icon { transform: rotate(180deg); }
.lgir-pdf__count { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 6px; font-family: var(--lgt-font-head, sans-serif); font-size: 16px; letter-spacing: .04em; }
.lgir-pdf__page-input { width: 2.6em; padding: 4px 2px; border: 1px solid #3a3a3a; border-radius: 3px; background: #1c1c1c; color: #fff; font: inherit; text-align: center; }
.lgir-pdf__page-input:focus { outline: none; border-color: var(--lgt-accent, #fcb316); }
.lgir-pdf__total { color: #bdbdbd; white-space: nowrap; }
.lgir-pdf__zoom { min-width: 3.4em; font-family: var(--lgt-font-head, sans-serif); font-size: 14px; color: #bdbdbd; text-align: center; }
.lgir-pdf__stage { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 260px; padding: 28px; overflow: auto; background: #2a2a2a radial-gradient(circle at 50% 0, #353535, #232323 70%); transition: height .3s; }
.lgir-pdf.is-zoomed .lgir-pdf__stage { justify-content: flex-start; cursor: grab; }
.lgir-pdf.is-zoomed .lgir-pdf__sheet { margin: 0 auto; }
.lgir-pdf__sheet { position: relative; flex: none; max-width: none; line-height: 0; }
.lgir-pdf__sheet.is-turn { animation: lgir-pdf-turn .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes lgir-pdf-turn { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lgir-pdf__canvas { display: block; background: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.lgir-pdf__poster { display: block; width: min(560px, 100%); height: auto; margin: 0 auto; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); }
.lgir-pdf__nav { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .25s, background-color .2s, color .2s; }
.lgir-pdf__nav .lgir-icon, .lgir-pdf__nav svg { display: block; width: 22px; height: 22px; }
.lgir-pdf__nav--prev { left: 14px; }
.lgir-pdf__nav--next { right: 14px; }
.lgir-pdf.is-ready .lgir-pdf__stage:hover .lgir-pdf__nav:not([disabled]) { opacity: 1; }
.lgir-pdf__nav:hover { background: var(--lgt-accent, #fcb316); color: #111; }
.lgir-pdf__nav[disabled] { display: none; }
.lgir-pdf__loading { position: absolute; left: 50%; bottom: 22px; display: none; align-items: center; gap: 10px; padding: 10px 16px; transform: translateX(-50%); border-radius: 30px; background: rgba(0, 0, 0, .7); font-size: 14px; line-height: 1; }
.lgir-pdf.is-loading .lgir-pdf__loading { display: inline-flex; }
.lgir-pdf__gate { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 20, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lgir-pdf__gatebox { max-width: 560px; padding: 30px 32px; background: #fff; color: var(--lgt-text, #1f1f1f); border-top: 4px solid var(--lgt-accent, #fcb316); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); line-height: 1.55; }
.lgir-pdf__gatebox p { margin: 0 0 20px; font-size: 15px; }
.lgir-pdf__gatetitle { font-family: var(--lgt-font-head, sans-serif); font-size: 22px !important; text-transform: uppercase; letter-spacing: .02em; color: var(--lgt-ink, #0a0a0a); margin-bottom: 10px !important; }
.lgir-pdf.has-gate .lgir-pdf__bar { pointer-events: none; opacity: .5; }
.lgir-pdf.has-gate .lgir-pdf__nav, .lgir-pdf.has-gate .lgir-pdf__loading { display: none; }
.lgir-pdf__frame { display: block; width: min(1100px, 82vw); height: 70vh; border: 0; background: #fff; }
.lgir-pdf.is-fallback .lgir-pdf__group--zoom, .lgir-pdf.is-fallback .lgir-pdf__group:first-child, .lgir-pdf.is-fallback .lgir-pdf__nav, .lgir-pdf.is-fallback .lgir-pdf__btn--full { display: none; }
.lgir-pdf.is-fallback .lgir-pdf__bar { justify-content: flex-end; }
.lgir-pdf__open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 1.2; white-space: nowrap; }
.lgir-pdf__noscript { padding: 20px; margin: 0; }
.lgir-pdf__noscript a { color: #fff; }
.lgir-pdf.is-full { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; box-shadow: none; }
.lgir-pdf.is-full .lgir-pdf__stage { flex: 1; height: auto !important; align-items: center; }
.lgir-pdf__btn--full .lgir-icon--collapse, .lgir-pdf.is-full .lgir-pdf__btn--full .lgir-icon--expand { display: none; }
.lgir-pdf.is-full .lgir-pdf__btn--full .lgir-icon--collapse { display: block; }
.lgir-pdf:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; }
@media (max-width: 640px) {
	.lgir-pdf__bar { padding: 6px 8px; gap: 4px; }
	.lgir-pdf__group--zoom { display: none; }
	.lgir-pdf__btn { width: 38px; height: 38px; }
	.lgir-pdf__stage { padding: 12px; min-height: 180px; }
	.lgir-pdf__gatebox { padding: 22px 20px; }
	.lgir-pdf__gatebox p { font-size: 14px; }
	.lgir-pdf__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.lgir-pdf__sheet.is-turn { animation: none; }
}
