/* Receipts panel styles, copied from the TockHK Tock Receipts plugin (TockHK LLC) so TockBOS stories match TockHK. Class names are identical. */
/* All styles stay inside the receipt. The surrounding article keeps its theme. */
.tock-receipts {
	--tr-paper: #f3f3f0;
	--tr-ink: #161616;
	--tr-muted: #666666;
	--tr-line: #d9d9d4;
	--tr-lime: #ffd400;
	--tr-panel: #e8e8e3;
	--tr-accent-ink: #111111;
	--tr-focus: #111111;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0;
	border: 1px solid var(--tr-line);
	border-radius: 6px;
	background: var(--tr-paper);
	color: var(--tr-ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	color-scheme: light;
	clear: both;
}

.tock-receipts--dark {
	--tr-paper: #192823;
	--tr-ink: #f1f0e7;
	--tr-muted: #b2c0b5;
	--tr-line: #415449;
	--tr-panel: #263a30;
	--tr-focus: #e4fc76;
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	.tock-receipts--auto {
		--tr-paper: #192823;
		--tr-ink: #f1f0e7;
		--tr-muted: #b2c0b5;
		--tr-line: #415449;
		--tr-panel: #263a30;
		--tr-focus: #e4fc76;
		color-scheme: dark;
	}
}

.tock-receipts *,
.tock-receipts *::before,
.tock-receipts *::after {
	box-sizing: border-box;
}

.tock-receipts [hidden] { display: none !important; }

.tock-receipts .tock-receipts__summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 13px 18px;
	border-radius: 5px;
	list-style: none;
	cursor: pointer;
	color: var(--tr-ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.4;
}

.tock-receipts .tock-receipts__summary::-webkit-details-marker { display: none; }
.tock-receipts .tock-receipts__summary::marker { content: ''; }
.tock-receipts .tock-receipts__summary::before,
.tock-receipts .tock-receipts__summary::after { content: none; }

.tock-receipts[open] > .tock-receipts__summary {
	border-bottom: 1px solid var(--tr-line);
	border-radius: 5px 5px 0 0;
}

.tock-receipts .tock-receipts__summary-title {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-weight: 700;
}

.tock-receipts .tock-receipts__icon { flex: 0 0 20px; }
.tock-receipts .tock-receipts__count {
	margin-inline-start: auto;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--tr-lime);
	color: var(--tr-accent-ink);
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}
.tock-receipts .tock-receipts__chevron {
	flex: 0 0 18px;
	transition: transform 120ms ease;
}
.tock-receipts[open] > .tock-receipts__summary .tock-receipts__chevron { transform: rotate(180deg); }

.tock-receipts .tock-receipts__body { padding: 0 18px; }
.tock-receipts .tock-receipts__production {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-inline-start: 3px solid var(--tr-line);
	background: var(--tr-panel);
	font-size: 13px;
}
.tock-receipts p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	overflow-wrap: anywhere;
}
.tock-receipts .tock-receipts__eyebrow {
	margin-bottom: 5px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tock-receipts .tock-receipts__tabs {
	display: flex;
	gap: 3px;
	margin-top: 12px;
	border-bottom: 1px solid var(--tr-line);
}
.tock-receipts .tock-receipts__tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0 0 -1px;
	padding: 10px 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tr-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}
.tock-receipts .tock-receipts__tab[aria-selected="true"] {
	border-bottom-color: var(--tr-ink);
	color: var(--tr-ink);
}
.tock-receipts .tock-receipts__tab:hover,
.tock-receipts .tock-receipts__summary:hover { background: var(--tr-panel); }

.tock-receipts .tock-receipts__panel { padding: 19px 0; }
.tock-receipts .tock-receipts__panel + .tock-receipts__panel { border-top: 1px solid var(--tr-line); }
.tock-receipts--enhanced .tock-receipts__panel + .tock-receipts__panel { border-top: 0; }
.tock-receipts .tock-receipts__panel-heading {
	margin: 0 0 14px;
	padding: 0;
	color: var(--tr-ink);
	font: 700 21px/1.3 Georgia, 'Times New Roman', serif;
	text-transform: none;
	letter-spacing: normal;
}
.tock-receipts--enhanced .tock-receipts__panel-heading {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tock-receipts .tock-receipts__sources,
.tock-receipts .tock-receipts__corrections {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tock-receipts .tock-receipts__source,
.tock-receipts .tock-receipts__correction {
	display: block;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tock-receipts .tock-receipts__source + .tock-receipts__source,
.tock-receipts .tock-receipts__correction + .tock-receipts__correction {
	margin-top: 17px;
	padding-top: 17px;
	border-top: 1px solid var(--tr-line);
}
.tock-receipts .tock-receipts__source::before,
.tock-receipts .tock-receipts__source::after,
.tock-receipts .tock-receipts__correction::before,
.tock-receipts .tock-receipts__correction::after { content: none; }
.tock-receipts .tock-receipts__source-type {
	display: inline-block;
	padding: 3px 6px;
	border: 1px solid var(--tr-line);
	border-radius: 2px;
	color: var(--tr-muted);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.tock-receipts .tock-receipts__source-type--issuer { background: var(--tr-panel); }
.tock-receipts .tock-receipts__source-title {
	margin: 7px 0 3px;
	padding: 0;
	font: 700 17px/1.35 Georgia, 'Times New Roman', serif;
	text-transform: none;
	letter-spacing: normal;
	overflow-wrap: anywhere;
}
.tock-receipts .tock-receipts__source-title a {
	display: block;
	min-height: 44px;
	padding: 8px 0;
}
.tock-receipts a {
	color: var(--tr-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	box-shadow: none;
	background: transparent;
	overflow-wrap: anywhere;
}
.tock-receipts a:hover { text-decoration-thickness: 2px; }
.tock-receipts .tock-receipts__link-icon {
	display: inline-block;
	margin-inline-start: 5px;
	vertical-align: baseline;
}
.tock-receipts .tock-receipts__source-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin-top: 5px;
	color: var(--tr-muted);
	font-size: 11px;
}
.tock-receipts .tock-receipts__source-note {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.55;
}
.tock-receipts .tock-receipts__prose,
.tock-receipts .tock-receipts__correction { font-size: 14px; }
.tock-receipts .tock-receipts__empty { color: var(--tr-muted); font-size: 13px; }
.tock-receipts .tock-receipts__correction-date {
	margin-bottom: 6px;
	color: var(--tr-muted);
	font-size: 11px;
	font-weight: 700;
}
.tock-receipts .tock-receipts__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0 12px;
	min-height: 54px;
	padding: 5px 0;
	border-top: 1px solid var(--tr-line);
	color: var(--tr-muted);
	font-size: 11px;
}
.tock-receipts .tock-receipts__footer a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	font-size: 12px;
	font-weight: 700;
}
.tock-receipts :is(summary, button, a, [tabindex]):focus-visible {
	outline: 2px solid var(--tr-focus);
	outline-offset: 3px;
}
.tock-receipts .tock-receipts__summary:focus-visible { outline-offset: 3px; }

@media (max-width: 400px) {
	.tock-receipts .tock-receipts__summary { gap: 8px; padding-inline: 12px; font-size: 13px; }
	.tock-receipts .tock-receipts__summary-title { gap: 6px; }
	.tock-receipts .tock-receipts__count { padding-inline: 6px; font-size: 10px; }
	.tock-receipts .tock-receipts__body { padding-inline: 12px; }
	.tock-receipts .tock-receipts__tab { flex: 1 1 auto; padding-inline: 7px; font-size: 12px; }
	.tock-receipts .tock-receipts__source-title { font-size: 16px; }
	.tock-receipts .tock-receipts__production { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.tock-receipts .tock-receipts__chevron { transition: none; }
}

@media print {
	.tock-receipts {
		--tr-paper: #fff;
		--tr-ink: #000;
		--tr-muted: #333;
		--tr-line: #aaa;
		--tr-panel: #f5f5f5;
		--tr-lime: #fff;
		--tr-accent-ink: #000;
		color-scheme: light;
		margin: 1rem 0;
		break-inside: auto;
	}
	.tock-receipts .tock-receipts__summary { break-after: avoid; }
	.tock-receipts .tock-receipts__tabs,
	.tock-receipts .tock-receipts__chevron { display: none !important; }
	.tock-receipts .tock-receipts__body,
	.tock-receipts .tock-receipts__panel[hidden] { display: block !important; }
	.tock-receipts::details-content { content-visibility: visible !important; }
	.tock-receipts .tock-receipts__panel-heading {
		position: static;
		width: auto;
		height: auto;
		margin: 0 0 10px;
		clip: auto;
		white-space: normal;
		overflow: visible;
	}
	.tock-receipts .tock-receipts__panel + .tock-receipts__panel { border-top: 1px solid var(--tr-line); }
	.tock-receipts .tock-receipts__source,
	.tock-receipts .tock-receipts__correction { break-inside: avoid; }
	.tock-receipts .tock-receipts__source-title a::after {
		content: ' (' attr(href) ')';
		font: 400 10px/1.5 Arial, Helvetica, sans-serif;
		overflow-wrap: anywhere;
	}
}

/* TockHK edition: follows the site Light / Dark switch */
html[data-theme=dark] .tock-receipts{--tr-paper:#1c1c1a;--tr-ink:#ecece8;--tr-muted:#a0a09a;--tr-line:#333;--tr-panel:#262624;--tr-lime:#ffd400;--tr-accent-ink:#111111;--tr-focus:#ffd400;color-scheme:dark}
html[data-theme=dark] .tock-receipts a{color:#5aaeea}

.tock-receipts{border-left:5px solid var(--tr-lime)}
.tock-receipts .tock-receipts__count{color:#0b1a10}

/* 1.0.5 black panel, yellow side band */
.tock-receipts,html[data-theme=dark] .tock-receipts{--tr-paper:#111;--tr-ink:#f4f4f0;--tr-muted:#b8b8b2;--tr-line:#3a3a3a;--tr-panel:#1c1c1c;--tr-lime:#ffd400;--tr-accent-ink:#111;--tr-focus:#ffd400;
  background:#111;color:#f4f4f0;border:1px solid #111;border-left:10px solid #ffd400;border-radius:4px}
.tock-receipts .tock-receipts__summary{background:#111;color:#f4f4f0;border-radius:0}
.tock-receipts .tock-receipts__summary-title,.tock-receipts .tock-receipts__chevron,.tock-receipts .tock-receipts__icon{color:#ffd400}
.tock-receipts .tock-receipts__count{background:#ffd400;color:#111}
.tock-receipts[open] > .tock-receipts__summary{border-bottom:1px solid #3a3a3a}
.tock-receipts,.tock-receipts p,.tock-receipts li,.tock-receipts span,.tock-receipts h3,.tock-receipts h4{color:#f4f4f0}
.tock-receipts .tock-receipts__summary-title,.tock-receipts .tock-receipts__summary-title *{color:#ffd400}
.tock-receipts .tock-receipts__count{color:#111}
.tock-receipts a{color:#ffd400;text-decoration-color:#ffd400}
.tock-receipts a:hover{color:#fff}
.tock-receipts [role=tab]{color:#b8b8b2;background:transparent}
.tock-receipts [role=tab][aria-selected=true]{color:#fff;border-bottom-color:#ffd400}
.tock-receipts [class*=type],.tock-receipts [class*=badge]{background:#2a2a2a;color:#f4f4f0}
.tock-receipts [class*=muted],.tock-receipts [class*=meta]{color:#b8b8b2}
