/* Share icon on charts, tables and book pages (share.js), and the 1200x630 card used for the preview picture. */

.pt-share-rel { position: relative; }
.pt-share-frame { position: relative; display: block; }

/* The icon sits inside the element's frame, bottom-right. On a table or page taller than the screen, share.js
   slides it up to the visible bottom edge (never above the frame's top). */
.pt-share-dock { position: absolute; right: 6px; bottom: 6px; z-index: 4; display: flex; justify-content: flex-end; pointer-events: none; }

.pt-share-dock > .pt-share-btn {
	pointer-events: auto;
	position: relative;
	box-sizing: border-box;
	width: 28px; height: 28px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	-webkit-appearance: none; appearance: none;
	-webkit-tap-highlight-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(13, 17, 23, 0.85);
	box-shadow: none; text-shadow: none; outline: none;
	font: inherit; line-height: 0;
	color: var(--ink-1, #c9d1d9);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
/* The share glyph (three linked dots), drawn with a mask so it takes the button's text colour. */
.pt-share-ico {
	display: block; width: 15px; height: 15px; flex: none;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.5l6.8-4M8.6 13.5l6.8 4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.5l6.8-4M8.6 13.5l6.8 4' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pt-share-rel:hover > .pt-share-dock .pt-share-btn,
.pt-share-frame:hover > .pt-share-dock .pt-share-btn,
.pt-share-dock > .pt-share-btn:hover, .pt-share-dock > .pt-share-btn:focus-visible, .pt-share-dock > .pt-share-btn[aria-expanded="true"] { opacity: 1; color: var(--accent, #00a0d2); border-color: var(--accent, #00a0d2); }
.pt-share-dock > .pt-share-btn:focus-visible { outline: 2px solid var(--accent, #00a0d2); outline-offset: 2px; }

/* "Share" tooltip on hover and keyboard focus. */
.pt-share-btn::after {
	content: attr(data-tip);
	position: absolute; right: 0; bottom: calc(100% + 6px);
	padding: 3px 7px; border-radius: 3px;
	background: var(--ink-0, #e6edf3); color: var(--bg-0, #0b0f14);
	font: 600 11px/1.3 "Montserrat", system-ui, sans-serif; letter-spacing: 0.02em; white-space: nowrap;
	opacity: 0; transform: translateY(2px); pointer-events: none; transition: opacity 0.12s, transform 0.12s;
}
.pt-share-btn:hover::after, .pt-share-btn:focus-visible::after { opacity: 1; transform: none; }
.pt-share-btn[aria-expanded="true"]::after { opacity: 0; }

@media (hover: none) { .pt-share-dock > .pt-share-btn { opacity: 0.85; } }

.pt-share-menu {
	pointer-events: auto;
	position: absolute; right: 0; bottom: 34px; z-index: 30;
	min-width: 190px; padding: 8px;
	background: var(--bg-1, #0d1117); color: var(--ink-0, #e6edf3);
	border: 1px solid var(--line-2, rgba(255, 255, 255, 0.16)); border-radius: 6px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	font: 13px/1.4 "Montserrat", system-ui, sans-serif; text-align: left;
}
.pt-share-menu-hd { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2, #9aa4b2); padding: 2px 6px 6px; }
.pt-share-menu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pt-share-menu-items a, .pt-share-menu-items button {
	display: block; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent;
	color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.pt-share-menu-items a:hover, .pt-share-menu-items button:hover,
.pt-share-menu-items a:focus-visible, .pt-share-menu-items button:focus-visible { background: var(--accent-soft, rgba(0, 160, 210, 0.14)); color: var(--accent, #00a0d2); outline: none; }
.pt-share-status { font-size: 11px; color: var(--ink-2, #9aa4b2); padding: 6px 6px 2px; }

.pt-share-target { outline: 2px solid var(--accent, #00a0d2); outline-offset: 4px; border-radius: 4px; transition: outline-color 0.6s; }


@media print { .pt-share-dock { display: none !important; } }

/* ---------- capture surface (?pt_share=key): the element alone, framed as a govdata card ---------- */

html.pt-share-capturing, html.pt-share-capturing body { overflow: hidden !important; background: var(--bg-0, #0b0f14) !important; }
html.pt-share-capturing body { margin: 0 !important; padding: 132px 44px 64px !important; width: 1200px; height: 630px; box-sizing: border-box; }
html.pt-share-capturing .pt-share-hidden,
html.pt-share-capturing .pt-share-dock,
html.pt-share-capturing #wpadminbar { display: none !important; }
html.pt-share-capturing .pt-share-path {
	display: block !important; position: static !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; box-shadow: none !important; background: transparent !important;
	max-width: none !important; min-height: 0 !important; width: auto !important; transform: none !important;
}
html.pt-share-capturing .pt-share-path::before, html.pt-share-capturing .pt-share-path::after { display: none !important; }
html.pt-share-capturing .pt-share-subject { max-height: 434px; overflow: hidden; margin: 0 !important; }
html.pt-share-capturing .pt-share-subject-chart { height: 420px !important; width: 100% !important; }
html.pt-share-capturing .pt-share-subject-page { padding: 0 !important; border: 0 !important; box-shadow: none !important; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
html.pt-share-capturing .pt-share-subject-table { overflow: hidden !important; }
.pt-share-more { margin-top: 6px; font: 12px/1.4 "JetBrains Mono", monospace; color: var(--ink-2, #9aa4b2); }

.pt-share-card { position: fixed; inset: 0; width: 1200px; height: 630px; pointer-events: none; z-index: 2147483000; font-family: "Montserrat", system-ui, sans-serif; color: var(--ink-0, #e6edf3); }
.pt-share-card-hd { position: absolute; left: 44px; right: 44px; top: 28px; display: flex; align-items: center; gap: 12px; }
.pt-share-card-mark { width: 30px; height: 30px; border: 1px solid var(--accent, #00a0d2); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.pt-share-card-mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #00a0d2); box-shadow: 0 0 10px var(--accent, #00a0d2); }
.pt-share-card-brand { font-weight: 700; letter-spacing: 0.12em; font-size: 16px; }
.pt-share-card-site { margin-left: auto; font: 13px "JetBrains Mono", monospace; color: var(--accent, #00a0d2); }
.pt-share-card-kicker { position: absolute; left: 44px; right: 44px; top: 68px; font: 600 12px/1.3 "Montserrat", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, #00a0d2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-share-card-title { position: absolute; left: 44px; right: 44px; top: 86px; font-size: 26px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-share-card-ft { position: absolute; left: 44px; right: 44px; bottom: 22px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--ink-2, #9aa4b2); border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1)); padding-top: 12px; }
.pt-share-card-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-share-card-nokicker .pt-share-card-title { top: 72px; }
.pt-share-card-only .pt-share-card-title { top: 230px; font-size: 44px; white-space: normal; }
