/*
Theme Name: tamek Poule
Theme URI: http://192.168.2.217/
Author: tamek internal
Description: Internal WordPress theme for the 2026 World Cup pool.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: tamek-poule
*/

:root {
  --tmk-red: #de212b;
  --tmk-red-dark: #b71922;
  --tmk-navy: #121036;
  --tmk-navy-deep: #070834;
  --tmk-ink: #17181b;
  --tmk-graphite: #53585a;
  --tmk-line: #d8d9d7;
  --tmk-paper: #f4f5f4;
  --tmk-white: #ffffff;
  --tmk-yellow: #ffe216;
  --tmk-orange: #f29823;
  --tmk-orange-hot: #f4a421;
  --tmk-orange-red: #e6522f;
  --tmk-accent: var(--tmk-orange);
  --tmk-accent-dark: var(--tmk-orange-red);
  --tmk-accent-soft: rgba(242, 152, 35, 0.14);
  --tmk-accent-wash: #fff6e4;
  --tmk-gradient-warm: linear-gradient(90deg, #ffe216 0%, #f29823 100%);
  --tmk-gradient-hot: linear-gradient(90deg, #e6522f 0%, #f4a421 100%);
  --tmk-gradient-brand: linear-gradient(282deg, #e6522f 0%, #ffe216 100%);
  --tmk-green: #15735f;
  --tmk-shadow: 0 12px 28px rgba(23, 24, 27, 0.07);
  --tmk-radius: 8px;
  --tmk-content: 1360px;
  --tmk-font: "Gotham Book", "Gotham", "Avenir Next", "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
}

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

html {
  background: var(--tmk-paper);
  color: var(--tmk-ink);
  font-family: var(--tmk-font);
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--tmk-paper);
  color: var(--tmk-ink);
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--tmk-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--tmk-accent-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(83, 88, 90, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 24px rgba(23, 24, 27, 0.05);
  backdrop-filter: blur(12px);
}

.site-header__bar {
  width: min(var(--tmk-content), calc(100% - 64px));
  height: auto;
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 10px 28px;
  padding: 12px 0;
}

.brand {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 220px;
  height: auto;
}

.brand__fallback {
  font-size: 28px;
  font-weight: 800;
  color: var(--tmk-accent);
}

.primary-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--tmk-graphite);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: rgba(255, 226, 22, 0.1);
  color: var(--tmk-navy);
}

.primary-nav a:hover::after,
.primary-nav a:focus::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--tmk-gradient-warm);
}

.header-tools {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 6px;
  background: var(--tmk-gradient-hot);
  color: var(--tmk-white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(230, 82, 47, 0.16);
  transition: color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.header-action:hover,
.header-action:focus,
.header-action:active {
  background: var(--tmk-gradient-hot);
  color: var(--tmk-white);
  box-shadow: 0 8px 18px rgba(230, 82, 47, 0.2);
  filter: brightness(1.04) saturate(1.02);
}

.header-action:active {
  box-shadow: 0 4px 12px rgba(230, 82, 47, 0.18);
  filter: brightness(1.01) saturate(1.01);
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
}

.account-menu__summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 6px;
  border: 1px solid rgba(83, 88, 90, 0.22);
  border-radius: 6px;
  background: var(--tmk-white);
  color: var(--tmk-ink);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 5px 14px rgba(23, 24, 27, 0.06);
}

.account-menu__summary::-webkit-details-marker {
  display: none;
}

.account-menu__summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--tmk-graphite);
  border-bottom: 2px solid var(--tmk-graphite);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.account-menu[open] .account-menu__summary::after {
  transform: translateY(2px) rotate(225deg);
}

.account-menu__summary:hover,
.account-menu__summary:focus {
  border-color: rgba(242, 152, 35, 0.48);
  color: var(--tmk-navy);
}

.account-menu__avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tmk-gradient-hot);
  color: var(--tmk-white);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.account-menu--logged-out .account-menu__avatar {
  background: #eceeed;
  color: var(--tmk-graphite);
}

.account-menu__text {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-menu__status {
  color: var(--tmk-graphite);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.account-menu__name {
  max-width: 150px;
  overflow: hidden;
  color: var(--tmk-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(83, 88, 90, 0.18);
  border-radius: 8px;
  background: var(--tmk-white);
  box-shadow: 0 14px 30px rgba(23, 24, 27, 0.14);
}

.account-menu__panel a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--tmk-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.account-menu__panel a:hover,
.account-menu__panel a:focus {
  background: rgba(255, 226, 22, 0.12);
  color: var(--tmk-navy);
}

.site-main {
  flex: 1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(18, 16, 54, 0.16);
  background:
    linear-gradient(180deg, rgba(18, 16, 54, 0.92) 0%, rgba(7, 8, 52, 0.98) 100%),
    var(--tmk-navy);
  color: var(--tmk-white);
}

.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--tmk-gradient-brand);
}

.page-hero__inner {
  position: relative;
  width: min(var(--tmk-content), calc(100% - 64px));
  min-height: 156px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 34px 0 36px;
}

.page-hero h1 {
  margin: 0;
  max-width: 820px;
  color: var(--tmk-white);
  font-size: 42px;
  line-height: 1.08;
  font-weight: 750;
}

.content-band {
  width: min(var(--tmk-content), calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 58px;
}

.content-panel {
  border: 1px solid rgba(83, 88, 90, 0.14);
  border-radius: var(--tmk-radius);
  background: var(--tmk-white);
  box-shadow: var(--tmk-shadow);
}

.content-panel__inner {
  padding: 28px 30px 32px;
}

.entry-content {
  color: #242529;
  font-size: 16px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 26px 0 14px;
  color: var(--tmk-ink);
  line-height: 1.15;
}

.entry-content h2 {
  font-size: 26px;
  font-weight: 700;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 700;
}

.entry-content p {
  max-width: 780px;
}

.wp-block-buttons {
  gap: 12px;
  margin: 22px 0 28px;
}

.wp-block-button__link,
.entry-content input[type="submit"],
.entry-content button,
.football-pool input[type="submit"],
.football-pool button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  border: 0;
  background: var(--tmk-gradient-hot);
  color: var(--tmk-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(230, 82, 47, 0.14);
  transition: color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.entry-content input[type="submit"]:hover,
.entry-content input[type="submit"]:focus,
.entry-content button:hover,
.entry-content button:focus,
.football-pool input[type="submit"]:hover,
.football-pool input[type="submit"]:focus,
.football-pool button:hover,
.football-pool button:focus,
.wp-block-button__link:active,
.entry-content input[type="submit"]:active,
.entry-content button:active,
.football-pool input[type="submit"]:active,
.football-pool button:active {
  background: var(--tmk-gradient-hot);
  color: var(--tmk-white);
  box-shadow: 0 8px 18px rgba(230, 82, 47, 0.19);
  filter: brightness(1.04) saturate(1.02);
}

.wp-block-button__link:active,
.entry-content input[type="submit"]:active,
.entry-content button:active,
.football-pool input[type="submit"]:active,
.football-pool button:active {
  box-shadow: 0 4px 12px rgba(230, 82, 47, 0.17);
  filter: brightness(1.01) saturate(1.01);
}

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: var(--tmk-white);
  color: var(--tmk-navy);
  border: 2px solid transparent;
  background:
    linear-gradient(var(--tmk-white), var(--tmk-white)) padding-box,
    var(--tmk-gradient-warm) border-box;
  box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:active,
.wp-block-button.is-style-outline .wp-block-button__link:active {
  background:
    linear-gradient(var(--tmk-accent-wash), var(--tmk-accent-wash)) padding-box,
    var(--tmk-gradient-warm) border-box;
  color: var(--tmk-navy);
  box-shadow: 0 6px 14px rgba(242, 152, 35, 0.12);
  filter: none;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="password"],
.entry-content input[type="number"],
.entry-content select,
.entry-content textarea,
.football-pool input[type="text"],
.football-pool input[type="email"],
.football-pool input[type="password"],
.football-pool input[type="number"],
.football-pool select,
.football-pool textarea {
  min-height: 40px;
  border: 1px solid #c9cbc6;
  border-radius: 6px;
  background: var(--tmk-white);
  color: var(--tmk-ink);
  font: inherit;
}

.entry-content input[type="number"],
.football-pool input[type="number"] {
  width: 72px;
  padding: 6px 8px;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="password"],
.entry-content select,
.entry-content textarea,
.football-pool input[type="text"],
.football-pool input[type="email"],
.football-pool input[type="password"],
.football-pool select,
.football-pool textarea {
  padding: 8px 10px;
}

.entry-content table,
.football-pool table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  background: var(--tmk-white);
  color: var(--tmk-ink);
  font-size: 14px;
}

.entry-content th,
.entry-content td,
.football-pool th,
.football-pool td {
  border-bottom: 1px solid var(--tmk-line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
}

.entry-content th,
.football-pool th {
  background: #eceeed;
  color: var(--tmk-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.entry-content tr:nth-child(even) td,
.football-pool tr:nth-child(even) td {
  background: #fafaf7;
}

.entry-content tr:hover td,
.football-pool tr:hover td {
  background: #fffaf0;
}

.football-pool .ranking,
.football-pool .matches,
.football-pool .pool-ranking,
.football-pool .pool-ranking-table {
  overflow-x: visible;
}

.matchinfo.new-layout {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  margin: 18px 0 30px;
  align-items: stretch;
}

.matchinfo.new-layout .matchtype {
  position: relative;
  grid-column: 1 / -1;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(255, 226, 22, 0.18), rgba(242, 152, 35, 0.12) 42%, rgba(230, 82, 47, 0.08)),
    #f1f2f1;
  color: var(--tmk-graphite);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.matchinfo.new-layout .matchtype::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--tmk-gradient-hot);
}

.matchinfo.new-layout .match-card {
  width: 100%;
  margin: 0;
  flex: none;
  flex-grow: 0;
  justify-content: normal;
  min-width: 0;
  min-height: 148px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 64px;
  grid-template-areas:
    "header header header"
    "homeFlag home homeScore"
    "awayFlag away awayScore";
  grid-template-rows: auto minmax(38px, auto) minmax(38px, auto);
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px 16px;
  border: 1px solid rgba(83, 88, 90, 0.18);
  border-radius: var(--tmk-radius);
  background: var(--tmk-white);
  box-shadow: 0 8px 20px rgba(23, 24, 27, 0.05);
}

.matchinfo.new-layout .match-card.match-card--netherlands {
  border-color: rgba(230, 82, 47, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 226, 22, 0.26) 0%, rgba(242, 152, 35, 0.18) 44%, rgba(230, 82, 47, 0.16) 100%),
    var(--tmk-white);
  box-shadow: 0 10px 24px rgba(230, 82, 47, 0.13);
}

.matchinfo.new-layout .match-card.match-card--netherlands .match-card-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-bottom-color: rgba(230, 82, 47, 0.24);
}

.matchinfo.new-layout .match-card.match-card--netherlands .match-card-header::before {
  content: "Oranje";
  justify-self: start;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--tmk-gradient-hot);
  color: var(--tmk-white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.matchinfo.new-layout .match-card > * {
  position: static !important;
  float: none !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0;
}

.matchinfo.new-layout .match-card-header {
  grid-area: header;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tmk-line);
  color: var(--tmk-graphite);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.matchinfo.new-layout .matchdate,
.matchinfo.new-layout .time {
  flex: none;
  display: block;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.15;
}

.matchinfo.new-layout .time {
  color: var(--tmk-orange-red);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.matchinfo.new-layout .match-card > .flag {
  width: 44px;
  height: 30px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  justify-self: start;
  overflow: hidden;
  border: 1px solid rgba(83, 88, 90, 0.16);
  border-radius: 4px;
  background: var(--tmk-white);
}

.matchinfo.new-layout .match-card > .flag.home {
  grid-area: homeFlag;
}

.matchinfo.new-layout .match-card > .flag.away {
  grid-area: awayFlag;
}

.matchinfo.new-layout .match-card > .flag img.flag {
  width: 100%;
  height: 100%;
  display: block !important;
  object-fit: contain;
}

.matchinfo.new-layout .match-card > .home:not(.flag),
.matchinfo.new-layout .match-card > .away:not(.flag) {
  width: auto;
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  color: var(--tmk-ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.22;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}

.matchinfo.new-layout .match-card > .home:not(.flag) {
  grid-area: home;
}

.matchinfo.new-layout .match-card > .away:not(.flag) {
  grid-area: away;
}

.matchinfo.new-layout .match-card > .home:not(.flag) a,
.matchinfo.new-layout .match-card > .away:not(.flag) a {
  color: var(--tmk-ink);
  text-decoration: none;
}

.matchinfo.new-layout .match-card > .home:not(.flag) a:hover,
.matchinfo.new-layout .match-card > .away:not(.flag) a:hover {
  color: var(--tmk-orange-red);
}

.matchinfo.new-layout .score {
  justify-self: stretch;
  width: auto;
  min-width: 64px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(83, 88, 90, 0.22);
  border-radius: 6px;
  background: #f7f8f7;
  color: var(--tmk-graphite);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.matchinfo.new-layout .score:nth-last-child(2) {
  grid-area: homeScore;
}

.matchinfo.new-layout .score:last-child {
  grid-area: awayScore;
}

.matchinfo.new-layout .score a {
  width: 100%;
  min-height: 36px;
  display: block;
  text-decoration: none;
}

.matchinfo.new-layout .score input {
  width: 48px;
  min-height: 32px;
  padding: 4px 6px;
  text-align: center;
}

.football-pool .team,
.football-pool .match,
.football-pool .name {
  font-weight: 700;
}

.football-pool .score,
.football-pool .points,
.football-pool .rank {
  font-variant-numeric: tabular-nums;
}

.football-pool .today td,
.football-pool tr.today td {
  background: #fff8d9;
}

.football-pool .fp-error,
.football-pool .error {
  border-left: 4px solid var(--tmk-red);
  padding: 12px 14px;
  background: #fff1f2;
}

.football-pool .fp-message,
.football-pool .message,
.football-pool .updated {
  border-left: 4px solid var(--tmk-green);
  padding: 12px 14px;
  background: #eff8f5;
}

.site-footer {
  border-top: 1px solid rgba(93, 94, 96, 0.18);
  background: var(--tmk-navy);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer__inner {
  width: min(var(--tmk-content), calc(100% - 64px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  padding: 12px 0;
}

.site-footer__title {
  flex: 0 0 auto;
  font-weight: 700;
}

.site-footer__credit {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.site-footer a {
  color: var(--tmk-white);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--tmk-white);
  color: var(--tmk-navy);
}

.skip-link:focus {
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .site-header__bar,
  .page-hero__inner,
  .content-band,
  .site-footer__inner {
    width: min(var(--tmk-content), calc(100% - 40px));
  }

  .site-header__bar {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 10px 18px;
  }

  .brand__logo {
    width: 186px;
  }

  .primary-nav ul {
    gap: 2px;
  }

  .primary-nav a {
    padding: 0 9px;
    font-size: 13px;
  }

  .account-menu__name {
    max-width: 112px;
  }
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__bar {
    height: auto;
    min-height: 74px;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding: 12px 0;
  }

  .brand__logo {
    width: 172px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .primary-nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .primary-nav a {
    min-height: 36px;
  }

  .header-tools {
    justify-self: end;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .matchinfo.new-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .site-header {
    position: relative;
  }

  .site-header__bar,
  .page-hero__inner,
  .content-band,
  .site-footer__inner {
    width: min(var(--tmk-content), calc(100% - 24px));
  }

  .site-header__bar {
    grid-template-columns: 1fr;
  }

  .brand,
  .primary-nav,
  .header-tools {
    grid-column: 1;
  }

  .header-tools {
    grid-row: auto;
    justify-self: start;
    flex-wrap: wrap;
  }

  .header-action {
    min-height: 40px;
  }

  .account-menu__summary {
    min-height: 40px;
  }

  .account-menu__name {
    max-width: 190px;
  }

  .account-menu__panel {
    left: 0;
    right: auto;
  }

  .content-band {
    padding: 18px 0 34px;
  }

  .content-panel__inner {
    padding: 20px 14px 24px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .matchinfo.new-layout {
    gap: 12px;
    margin: 14px 0 24px;
  }

  .matchinfo.new-layout .match-card {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
    padding: 12px;
    gap: 8px 10px;
  }

  .matchinfo.new-layout .score {
    min-width: 58px;
  }

  .matchinfo.new-layout .match-card > .flag {
    width: 38px;
    height: 26px;
  }

  .site-footer__inner {
    height: auto;
    min-height: 64px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
  }

  .site-footer__credit {
    max-width: none;
    text-align: left;
  }
}

@media print {
  body {
    min-width: 0;
    background: #fff;
  }

  .site-header,
  .site-footer {
    display: none;
  }

  .content-band,
  .content-panel__inner {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .content-panel {
    border: 0;
    box-shadow: none;
  }
}
