/* Isolated report workspace: escape the host's narrow text column, not the page. */
@media screen {
body.wdm-app-page :is(.entry-content, .wp-block-post-content):has(> .wdm-team-report-focus) { padding-inline: 0 !important; }
body.wdm-app-page :is(.entry-content, .wp-block-post-content) > .wdm-team-report-focus,
.wdm-public-view.wdm-team-report-focus {
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: none !important;
	margin: 16px auto;
	padding: clamp(12px, 1.5vw, 28px);
	font-size: 16px;
	line-height: 1.55;
}
.wdm-team-report-focus *, .wdm-team-report-focus *::before { box-sizing: border-box; }
.wdm-team-report-focus .wdm-team-matchday { margin-top: 0; }
.wdm-team-report-focus :is(h3, h4) { font-size: clamp(22px, 2vw, 30px); line-height: 1.25; }
.wdm-team-report-focus h5 { font-size: 18px; overflow-wrap: anywhere; }
.wdm-team-report-focus :is(.wdm-team-form-note, small, .wdm-kicker, .wdm-team-matchday__meta, .wdm-team-matchday__game-players label > span) {
	font-size: 14px;
	line-height: 1.5;
}
.wdm-team-report-focus :is(label, .wdm-public-table th, .wdm-public-table td, .button) { font-size: 16px; }
.wdm-team-report-focus :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea, .button) {
	font-size: 16px;
	min-height: 48px;
	max-width: 100%;
}
.wdm-team-report-focus :is(input, select, textarea, button, a):focus-visible { outline: 3px solid #ffca70; outline-offset: 3px; }
.wdm-team-report-focus :is(.wdm-team-matchday__results, .wdm-team-matchday__report-team) { padding: clamp(12px, 1.2vw, 24px); }
.wdm-team-report-focus .wdm-section-title-row { flex-wrap: wrap; gap: 12px; }
.wdm-team-report-focus .wdm-team-matchday__header > div { min-width: 0; }
.wdm-team-report-focus .wdm-team-matchday__header h3 { overflow-wrap: anywhere; }
.wdm-team-report-focus .wdm-team-matchday__highscore-table { min-width: 0; width: 100%; }
.wdm-team-report-focus .wdm-team-matchday__highscore-table :is(th, td) { padding: 8px 4px; }
.wdm-team-report-focus .wdm-team-matchday__highscore-table select { min-width: 120px; }
.wdm-team-report-focus .wdm-team-matchday__highscore-table input { min-width: 44px; width: 56px; padding-inline: 4px; }
.wdm-team-report-focus .wdm-team-matchday__structured-score-table { min-width: 0; width: 100%; }
.wdm-team-report-focus .wdm-team-matchday__structured-score-table th:first-child small { font-size: 14px; }
.wdm-team-report-focus .wdm-team-matchday__game-players label { grid-template-columns: 28px minmax(0, 1fr); }
.wdm-team-report-focus .wdm-team-matchday__game-players select { min-width: 0; }
.wdm-team-report-focus .wdm-team-matchday__game-score { grid-template-columns: 64px auto 64px; min-width: 180px; }
.wdm-team-report-focus .wdm-team-live-save-control .button { font-size: 16px; }
.wdm-team-report-focus .wdm-team-live-save-control small { font-size: 14px; max-width: none; }
.wdm-team-report-focus .wdm-team-matchday__note { display: grid; gap: 8px; }
.wdm-team-report-focus .wdm-team-matchday__note textarea { width: 100%; }
.wdm-team-report-focus label.wdm-team-field:has(select[name="reporting_team_id"]) { display: grid; gap: 8px; }
.wdm-team-report-focus .wdm-team-matchday__review { align-items: stretch; }
.wdm-team-report-focus .wdm-team-matchday__review form { display: grid; gap: 12px; flex: 1 1 280px; min-width: 0; }
.wdm-team-report-focus .wdm-team-matchday__review label { display: grid; gap: 8px; }
.wdm-team-report-focus .wdm-team-matchday__review textarea { width: 100%; }
/* A compact card per position keeps all six optional statistics reachable without sideways scrolling. */
@media screen and (max-width: 1499px) {
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores tbody { display: grid; gap: 12px; }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--wdm-theme-border); border-radius: 10px; }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores :is(th, td) { min-width: 0; padding: 0; border: 0; background: none; }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores th,
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores td:first-of-type { grid-column: 1 / -1; }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores td[data-report-label]::before { content: attr(data-report-label); display: block; font-size: 14px; margin-bottom: 4px; }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores :is(select, input) { width: 100%; min-width: 0; }
}
@media screen and (max-width: 900px) {
	.wdm-team-report-focus :is(.wdm-team-matchday__report-lineups, .wdm-team-matchday__player-tools) { grid-template-columns: minmax(0, 1fr); }
	.wdm-team-report-focus .wdm-team-matchday__header { flex-direction: column; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table tbody { display: grid; gap: 16px; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table tr { display: grid; grid-template-areas: "title" "home" "away" "score"; gap: 12px; padding: 12px; border: 1px solid var(--wdm-theme-border); border-radius: 10px; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table :is(th, td) { min-width: 0; border: 0; padding: 0; background: none; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table th { grid-area: title; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table td:first-of-type { grid-area: home; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table td:last-of-type { grid-area: away; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table td[data-report-label]::before { content: attr(data-report-label); display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; overflow-wrap: anywhere; }
	.wdm-team-report-focus .wdm-team-matchday__structured-score-table .wdm-team-matchday__game-score { grid-area: score; justify-content: center; }
	.wdm-team-report-focus .wdm-team-matchday__report-actions .button { width: 100%; white-space: normal; }
}
@media screen and (max-width: 480px) {
	body.wdm-app-page :is(.entry-content, .wp-block-post-content) > .wdm-team-report-focus,
	.wdm-public-view.wdm-team-report-focus { width: calc(100% - 16px); padding: 10px; }
	.wdm-team-report-focus .wdm-team-matchday__add-player { grid-template-columns: minmax(0, 1fr); }
	.wdm-team-report-focus .wdm-team-matchday__report-team { padding: 10px; }
	.wdm-team-report-focus .wdm-team-matchday__results { padding: 10px; }
	.wdm-team-report-focus .wdm-team-matchday__editable-highscores tr { padding: 8px; }
}
}
@media print {
	.wdm-public-view.wdm-team-report-focus { width: 100%; margin: 0; padding: 0; }
}
