/* Pembrokeshire Lottery tables. */
/* ---- Colours: change these to restyle every table ----
   Matched to the live companies-supported page (November 2026). */
.plt-wrap {
	--plt-head-bg:   #470a58; /* header row background (purple) */
	--plt-head-text: #ffffff; /* header row text */
	--plt-row-bg:    #d0e028; /* every body row (lime) */
	--plt-row-text:  #470a58; /* body text (purple) */
	--plt-line:      #eeeeee; /* cell borders */
	--plt-highlight: #d0e028; /* summary box accent */
	--plt-panel:     #f7f8fa; /* summary box background */
	margin: 0 0 2em;
}

.plt-summary { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0 0 1.25em; padding: 0; }
.plt-summary li { flex: 1 1 150px; background: var(--plt-panel); border-left: 4px solid var(--plt-highlight); color: var(--plt-row-text); padding: 12px 16px; margin: 0; line-height: 1.4; }
.plt-summary strong { display: block; font-size: 1.5em; }

.plt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.plt-toolbar input, .plt-toolbar select { border: 1px solid var(--plt-line); border-radius: 4px; padding: 8px 10px; font: inherit; background: #fff; }
.plt-search { flex: 1 1 240px; }
.plt-search input { width: 100%; }
.plt-count { margin-left: auto; font-size: .9em; opacity: .75; }

.plt-scroll { overflow: visible; max-width: 100%; }
.plt-table { width: 100%; max-width: 100%; table-layout: auto; border-collapse: collapse; font-size: clamp(11px, 1.45vw, 14px); border: 1px solid var(--plt-line); color: var(--plt-row-text); }
.plt-table th, .plt-table td { padding: .45em clamp(4px, 1.1vw, 16px); overflow-wrap: anywhere; hyphens: auto; text-align: left; vertical-align: middle; line-height: 1.7; }
.plt-table td { background: var(--plt-row-bg); color: var(--plt-row-text); font-weight: 500; border-top: 1px solid var(--plt-line); border-left: 1px solid var(--plt-line); }
.plt-table thead th { background: var(--plt-head-bg); color: var(--plt-head-text) !important; padding: 0; border: 0; overflow-wrap: normal; vertical-align: bottom; }
.plt-table thead th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .65em clamp(4px, 1.1vw, 16px); cursor: pointer; font-weight: 700; color: inherit; line-height: 1.3; }
.plt-table thead th button:focus-visible { outline: 2px solid var(--plt-head-text); outline-offset: -4px; }
.plt-arrow::after { content: "\2195"; opacity: .45; margin-left: 3px; font-size: .85em; }
.plt-table th[aria-sort="ascending"] .plt-arrow::after { content: "\2191"; opacity: 1; }
.plt-table th[aria-sort="descending"] .plt-arrow::after { content: "\2193"; opacity: 1; }
.plt-table .plt-num { text-align: right; overflow-wrap: normal; }
.plt-table .plt-number { font-variant-numeric: tabular-nums; letter-spacing: .12em; font-weight: 600; }
.plt-none { padding: 1em 0; font-style: italic; }
.plt-table tr[hidden] { display: none !important; }
.plt-wrap *, .plt-wrap *::before { box-sizing: border-box; }
.plt-table td[data-label="Loan Date"], .plt-table td[data-label="Draw Date"] { overflow-wrap: normal; }

/* Phones: each row becomes a card with labels. */
@media (max-width: 680px) {
	.plt-table { font-size: 14px; }
	.plt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.plt-table, .plt-table tbody, .plt-table tr, .plt-table td { display: block; width: 100%; }
	.plt-table { border: 0; }
	.plt-table tr { border: 1px solid var(--plt-line); border-radius: 6px; margin-bottom: 10px; padding: 6px 0; background: var(--plt-row-bg); overflow: hidden; }
	.plt-table td { border: 0; background: transparent; padding: 4px 12px; overflow-wrap: anywhere; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.plt-table td::before { content: attr(data-label); font-weight: 600; text-align: left; }
	.plt-table .plt-num { text-align: right; }
	.plt-count { margin-left: 0; }
}
