:root {
  --page-max: 1040px;
  --public-nav-width: 210px;
  --public-header-height: 150px;
  --public-menu-color: #424242;
  --public-menu-active: #14161b;
  --public-menu-text: #f8f7f4;
  --public-menu-icon: #b6ff2e;
  --public-content-color: #f1f3f4;
  --public-shadow: 0 14px 38px rgba(20, 35, 29, .18);
  --table-head-bg: #424242;
  --table-head-text: #f8f7f4;
  --table-row-bg: #fff;
  --table-row-alt: #eceeef;
  --table-row-hover: #dce0e2;
  --table-total-bg: #dfe2e4;
  --green: #50585e;
  --green-dark: #30363a;
  --green-soft: #e4e8ea;
  --yellow: #f5d328;
  --ink: #1d2a20;
  --muted: #627066;
  --line: #cbd1d4;
  --bg: #d9dde0;
  --danger: #a10000;
  --menu-accent: var(--public-menu-icon);
}

* {box-sizing: border-box}
html {overflow-y: scroll; color: var(--ink); background: var(--bg); font-family: Roboto, Arial, sans-serif}
body {min-height: 100vh; margin: 0}
a {color: var(--green-dark)}

body.is-public {
  display: flow-root;
  min-width: 320px;
  background-color: var(--bg);
  background-image: var(--sport-background-image, none);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.public-shell {
  display: grid;
  grid-template-columns: var(--public-nav-width) minmax(0, 1fr);
  grid-template-rows: var(--public-header-height) minmax(500px, auto) 30px;
  grid-template-areas: "mark header" "sidebar content" "sidebar footer";
  width: calc(100% - 34px);
  max-width: var(--page-max);
  min-height: 720px;
  margin: 15px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  background: var(--public-menu-color);
  box-shadow: var(--public-shadow);
}

.public-sport-mark {
  position: relative;
  z-index: 2;
  grid-area: mark;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
}
.public-sport-mark img {
  display: block;
  width: auto;
  height: 160px;
  max-width: 182px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .22));
  transform: translateY(13px);
}

.public-header {
  position: relative;
  grid-area: header;
  display: flex;
  min-width: 0;
  min-height: var(--public-header-height);
  align-items: center;
  justify-content: space-between;
  padding: 24px 34px 24px 42px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
  background: var(--sport-primary, #006020);
  color: var(--sport-on-primary, #fff);
}
.public-header::before,
.public-header::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
}
.public-header::before {
  background:
    linear-gradient(118deg, rgb(0 0 0 / 23%) 0 20%, transparent 20% 100%),
    linear-gradient(62deg, transparent 0 42%, rgb(255 255 255 / 11%) 42% 58%, transparent 58% 100%),
    linear-gradient(132deg, transparent 0 68%, rgb(0 0 0 / 20%) 68% 100%);
}
.public-header::after {
  clip-path: polygon(0 70%, 33% 18%, 59% 70%, 81% 28%, 100% 55%, 100% 100%, 0 100%);
  background: rgb(0 0 0 / 12%);
}
.public-brand {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 24px 34px 24px 42px;
  color: var(--sport-on-primary, #fff);
  text-decoration: none;
}
.public-brand:hover {color: var(--sport-on-primary, #fff)}
.public-brand-mobile-icon {display: none}
.public-brand-text {position: relative; display: block; min-width: 0; height: 100%; flex: 1; align-self: stretch; line-height: 1}
.public-brand-text strong {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--sport-on-primary, #fff);
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 900;
  letter-spacing: .025em;
  line-height: .94;
  text-align: right;
  text-transform: uppercase;
  text-shadow: 2px 1px rgb(0 0 0 / 85%), -1px 1px rgb(0 0 0 / 85%), 2px -1px rgb(0 0 0 / 85%), -1px -1px rgb(0 0 0 / 85%), 4px 3px 3px rgba(0, 0, 0, .5);
}
.public-brand-text small {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 100%;
  color: var(--sport-on-primary, #fff);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
  text-shadow: 1px 1px rgb(0 0 0 / 75%), -1px 1px rgb(0 0 0 / 75%), 1px -1px rgb(0 0 0 / 75%), -1px -1px rgb(0 0 0 / 75%), 2px 2px 2px rgba(0, 0, 0, .5);
}

.public-sidebar {grid-area: sidebar; display: flex; min-width: 0; flex-direction: column; padding: 35px 0 12px; background: var(--public-menu-color); color: var(--public-menu-text)}
.public-nav {display: block; max-width: none; margin: 0; padding: 0 8px; border: 0; background: transparent}
.public-nav-main,
.public-admin-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 72px;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 9px 14px 9px 15px;
  border: 0;
  border-left: 4px solid transparent;
  color: var(--public-menu-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .24);
  transition: background-color .14s ease, border-color .14s ease;
}
.public-nav-main svg,
.public-admin-entry svg,
.public-team-toggle svg,
.public-team-link svg {flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; color: var(--public-menu-icon)}
.public-nav-main svg,
.public-admin-entry svg {width: 38px; height: 38px; stroke-width: 1.65}
.public-nav-main:hover,
.public-nav-main:focus,
.public-nav-main.active,
.public-admin-entry:hover,
.public-admin-entry:focus,
.public-admin-entry.active,
.public-team-link:hover,
.public-team-link:focus,
.public-team-link.active {border-left-color: var(--menu-accent); background: var(--public-menu-active); color: var(--public-menu-text)}
.public-admin-entry {min-height: 62px; padding-block: 8px; font-size: 13px}
.public-admin-entry svg {width: 29px; height: 29px; margin-left: 4px}
.public-team-navs {margin: 6px 0 8px; border-top: 1px solid rgba(255, 255, 255, .15)}
.public-team-nav {margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .18)}
.public-team-toggle {display: flex; width: 100%; min-height: 39px; align-items: center; gap: 9px; margin: 0; padding: 6px 12px 5px 14px; border: 0; background: rgba(0, 0, 0, .1); color: var(--public-menu-text); font: 900 14px/1.2 Roboto, Arial, sans-serif; text-align: left; text-shadow: 1px 1px 1px rgba(0, 0, 0, .25)}
.public-team-toggle svg {width: 21px; height: 21px; stroke-width: 1.7}
.public-team-toggle i {display: none; margin-left: auto; font-style: normal}
.public-team-nav.active-team .public-team-toggle {background: var(--public-menu-active)}
.public-team-nav > div {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))}
.public-team-link {display: flex; min-width: 0; min-height: 45px; align-items: center; justify-content: center; gap: 6px; padding: 6px 4px; border-right: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid transparent; color: var(--public-menu-text); font-size: 12px; font-weight: 700; text-decoration: none; text-shadow: 1px 1px 1px rgba(0, 0, 0, .24)}
.public-team-link:last-child {border-right: 0}
.public-team-link svg {width: 20px; height: 20px; stroke-width: 1.7}

.site-main {grid-area: content; width: auto; min-width: 0; min-height: 500px; margin: 0; padding: 26px 28px 32px; border: 0; background: var(--public-content-color)}
.site-footer {grid-area: footer; display: flex; max-width: none; height: 30px; min-height: 30px; max-height: 30px; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 5px 14px; border-top: 1px solid var(--line); background: #fff; color: var(--green-dark); font-size: 10px}
.site-footer a {color: var(--green-dark); text-decoration: none}
.site-footer a:hover {text-decoration: underline}
.footer-credit,
.footer-account {white-space: nowrap}
.footer-account {display: inline-flex; align-items: center; gap: 4px; margin-left: auto}
.footer-toplist {display: flex; width: 1px; height: 1px; flex: 0 0 1px; align-items: center; overflow: hidden; line-height: 0}
.footer-toplist img {display: block; width: 1px; height: 1px}
.footer-logout-form {display: inline; margin: 0}
.footer-logout-form button {padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; cursor: pointer}
.footer-logout-form button:hover {text-decoration: underline}

.admin-nav {display: flex; max-width: none; align-items: center; gap: 2px; margin: 0 0 22px; border: 1px solid var(--line); background: #fff}
.admin-nav a,
.admin-logout-button {min-width: 95px; padding: 12px 16px; border: 0; background: transparent; color: var(--ink); font: 700 14px/1.2 Roboto, Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer}
.admin-nav a:hover,
.admin-nav a.active,
.admin-logout-button:hover {background: var(--green-soft); color: var(--green-dark)}
.admin-logout-form {margin: 0 0 0 auto}
body.is-admin .admin-main {background: var(--public-content-color)}

.public-page-heading {display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 1px solid var(--line)}
.public-page-heading h1 {min-width: 0; margin: 0; color: var(--green-dark); font-size: 30px; line-height: 1.1; overflow-wrap: anywhere}
.public-page-meta {display: block; flex: 0 0 auto; margin-left: auto; padding-bottom: 2px; color: var(--muted); font-size: 12px; text-align: right}
.empty-state {padding: 20px; border: 1px dashed var(--line); background: #f7f8f9; color: var(--muted); text-align: center}
.flash {padding: 10px 12px; border: 1px solid}
.flash.success {border-color: #75ae69; background: #e1f5dc; color: #214d26}
.flash.error {border-color: #c67474; background: #ffe4e4; color: #771b1b}
.flash.info {border-color: #7c9eb9; background: #e8f3fc; color: #274f6e}
.back-link {display: inline-block; margin-bottom: 12px}

.news-list {display: grid; gap: 10px}
.news-card {display: grid; grid-template-columns: 140px minmax(0, 1fr); min-height: 105px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 3px 10px rgba(24, 49, 36, .045)}
.news-card:hover {border-color: var(--green); box-shadow: 0 4px 14px rgba(0, 60, 20, .1)}
.news-card-image {position: relative; display: grid; place-items: center; overflow: hidden; background: var(--green-soft)}
.news-card-image > img:not(.sport-news-placeholder) {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.news-card-body {display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 13px}
.news-card-body strong {color: var(--green-dark); font-size: 18px}
.news-card-body time,
.public-detail time {color: var(--muted); font-size: 12px}
.news-card-body > span {line-height: 1.45}
.news-pagination {display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin: 18px 0 2px}
.news-list + .news-pagination {margin-top: 18px}
.news-pagination a,
.news-pagination strong {display: inline-flex; min-width: 31px; min-height: 31px; align-items: center; justify-content: center; padding: 3px 7px; border: 1px solid #acd29f; background: rgba(255,255,255,.78); color: var(--green-dark); font-size: 13px; text-decoration: none}
.news-pagination strong {border-color: var(--green); background: var(--green); color: #fff}
.news-pagination .page-arrow {font-weight: 900}

.detail-main-image {float: left; margin: 0 18px 10px 0}
.detail-main-image img {width: 260px; max-height: 190px; object-fit: cover}
.rich-content {line-height: 1.6; overflow-wrap: anywhere}
.rich-content h1,
.rich-content h2,
.rich-content h3 {color: var(--green-dark)}
.rich-content::after {display: block; clear: both; content: ""}
.info-page > .rich-content {margin: 0}
.info-page > .rich-content > :first-child {margin-top: 0}
.info-page > .rich-content > :last-child {margin-bottom: 0}
.public-gallery {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px}
.public-gallery img {width: 100%; aspect-ratio: 4 / 3; object-fit: cover}

.member-list {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px}
.member-card {display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid var(--line); background: #fff}
.member-card span {color: var(--muted)}
.member-groups {display: grid; gap: 16px}
.member-group,
.member-contact {min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .52)}
.member-contact {margin-top: 16px}
.member-group legend,
.member-contact > legend {padding: 0 8px; color: var(--green-dark); font-weight: 900}
.member-group legend {font-size: 16px}
.member-contact-content {display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px}
.member-contact-content strong {font-size: 17px}
.member-contact-identity {display: flex; flex-direction: column; gap: 2px}
.member-contact-role {color: var(--muted); font-size: 13px; font-weight: 700}
.member-contact-content a {color: var(--green-dark); font-weight: 700; text-decoration: none}
.member-contact-content a:hover {text-decoration: underline}

.matches-public-wrap,
.public-lanes-wrap {overflow: auto}
.matches-public,
.public-lanes {width: 100%; border-collapse: collapse; background: #fff}
.matches-public th,
.matches-public td,
.public-lanes th,
.public-lanes td {padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: middle}
.matches-public thead th,
.public-lanes thead th,
.standings-header,
.home-panel-header {height: 34px; min-height: 34px; background: var(--table-head-bg); color: var(--table-head-text); font-size: 12px}
.matches-public .center,
.public-lanes td,
.public-lanes th {text-align: center}
.matches-public tbody tr:nth-child(odd) td {background: var(--table-row-bg)}
.matches-public tbody tr:nth-child(even) td {background: var(--table-row-alt)}
.matches-public tr.clickable-row {cursor: pointer}
.matches-public tr.clickable-row:hover td,
.matches-public tr.clickable-row:focus td {background: var(--table-row-hover)}
.matches-public tr.clickable-row:focus {outline: 2px solid var(--green); outline-offset: -2px}
.matches-public tr.is-scheduled {color: #000}
.matches-public .match-home {text-align: right !important}
.matches-public th:nth-child(3),
.matches-public td:nth-child(3) {text-align: center !important}
.match-date {font-weight: 800; white-space: nowrap}
.match-date span,
.match-date time {display: inline}
.match-date time {font-size: .9em; font-weight: 600}
.match-date time::before {content: ' - '}
.match-result {font-size: 16px; font-weight: 900; text-align: center; white-space: nowrap}
.match-winner {font-weight: 900}
.match-report-link {font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap}
.match-report-link:hover,
.match-report-link:focus {text-decoration: none}
.match-meta {min-width: 64px; text-align: center !important; white-space: nowrap}
.match-meta span {display: inline-grid; width: 22px; height: 22px; place-items: center; color: var(--green)}
.match-meta svg {width: 17px; height: 17px; fill: currentColor}
.matches-public tbody tr.is-nearest td {background: #fff0a6; color: #3d3200}
.matches-public tbody tr.is-nearest td:first-child {box-shadow: inset 4px 0 0 #d5a900}
.matches-public tbody tr.is-nearest:hover td,
.matches-public tbody tr.is-nearest:focus td {background: #ffe77a}

.match-comment {margin: 0 0 18px}
.match-photos {margin-top: 22px}
.public-detail header.match-scoreboard {display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr) minmax(0, 1fr); align-items: center; gap: 20px; margin-bottom: 16px; padding: 10px; border: 1px solid var(--line); background: #fff; text-align: center; box-shadow: 0 3px 10px rgba(24, 49, 36, .045)}
.match-team {display: flex; flex-direction: column; gap: 5px}
.match-team span {color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase}
.match-team strong {color: var(--green-dark); font-size: 23px}
.match-score {display: flex; flex-direction: column; gap: 5px}
.match-score > strong {color: var(--green-dark); font-size: 34px}
.match-score > span {font-size: 19px; font-weight: 800}
.match-score small {margin-bottom: 2px; color: var(--muted)}
.match-score > .match-result-block {display: inline-flex; min-width: 112px; align-self: center; justify-content: center; padding: 5px 14px; border-radius: 3px; background: #6e7478; color: #fff; font-size: 42px; line-height: 1; text-shadow: 1px 2px 2px rgb(0 0 0 / 30%)}
.match-score > .match-result-block.is-favourable {background: #09a127}
.match-score > .match-result-block.is-unfavourable {background: #c90000}
.match-score > .match-result-block.is-neutral {background: #6e7478}
.match-score > .match-score-difference {display: block; align-self: auto; padding: 0; background: transparent; color: var(--ink); font-size: 15px}
.public-performances {margin-top: 22px}
.public-performance-grid {display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 12px}
.public-player-card {min-width: 0; padding: 10px; border: 1px solid var(--line); background: #fff}
.public-player-heading {display: flex; min-height: 22px; flex-direction: column; justify-content: center; margin-bottom: 8px}
.public-player-heading > strong {color: var(--green-dark)}
.public-player-substitution {margin-top: 3px; color: var(--danger); font-size: 11px}
.public-player-substitution strong {font-size: 13px; font-weight: 900}
.public-player-difference {display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: stretch; color: var(--muted); font-size: 18px; font-weight: 900}
.public-player-difference > strong {display: inline-block; min-width: 48px; padding: 5px 7px; border-radius: 3px; background: #6e7478; color: #fff; text-align: center; text-shadow: 1px 1px 1px rgb(0 0 0 / 40%)}
.public-player-difference.is-favourable > strong {background: #09a127}
.public-player-difference.is-unfavourable > strong {background: #c90000}
.public-player-difference small {margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700}
.public-lanes {table-layout: fixed; font-size: 14px}
.public-lanes th,
.public-lanes td {padding: 5px}
.public-lanes th:nth-child(1),
.public-lanes td:nth-child(1) {width: 12%}
.public-lanes th:nth-child(n + 2):nth-child(-n + 5),
.public-lanes td:nth-child(n + 2):nth-child(-n + 5) {width: 17%}
.public-lanes th:nth-child(6),
.public-lanes td:nth-child(6) {width: 20%}
.public-lanes thead th {font-size: 10px; font-weight: 400; letter-spacing: .01em}
.public-lanes tbody th {background: inherit; color: var(--ink); font-size: 11px; font-weight: 600}
.public-lanes tr.total {background: var(--table-total-bg)}
.public-lanes td.public-player-point {background: inherit; font-size: inherit; vertical-align: middle}
.public-player-point > span {display: inline-flex; min-width: 44px; align-items: center; justify-content: center; padding: 0 6px 5px; border-bottom: 8px solid #6e7478; color: var(--ink); font-size: 38px; font-weight: 900; line-height: 1}
.public-player-point.is-favourable > span {border-bottom-color: #09a127}
.public-player-point.is-unfavourable > span {border-bottom-color: #c90000}
.public-player-point.is-neutral > span {border-bottom-color: #6e7478}

.standings-table {overflow: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 3px 10px rgba(24, 49, 36, .045)}
.standings-header,
.standings-row {display: grid; grid-template-columns: 42px minmax(208px, 1fr) 42px 150px 78px 60px 170px; min-width: 750px; align-items: stretch}
.standings-header {font-weight: 900}
.standings-header > span,
.standings-row > span {display: flex; min-width: 0; min-height: 38px; align-items: center; justify-content: center; padding: 4px 6px; border-right: 1px solid var(--line)}
.standings-header > span {border-right-color: rgba(255, 255, 255, .2)}
.standings-header > span:last-child,
.standings-row > span:last-child {border-right: 0}
.standings-row {border-top: 1px solid var(--line); background: var(--table-row-bg); font-size: 14px}
.standings-row.is-alternate {background: var(--table-row-alt)}
.standings-row.is-local {background: #0645ff; color: #ffff00; font-weight: 900}
.standings-row.is-local > span {border-right-color: rgba(255, 255, 255, .28)}
.standings-row.is-next-opponent:not(.is-local) {background: #fff0a6; color: #3d3200; font-weight: 900; box-shadow: inset 4px 0 0 #d5a900}
.standings-team {justify-content: flex-start !important; overflow-wrap: anywhere; text-align: left}
.standings-balance-cell,
.standings-points {gap: 7px}
.standings-balance,
.standings-points-bar {display: flex; width: 120px; height: 14px; flex: 0 0 120px; overflow: hidden; border: 1px solid rgba(28, 76, 37, .28); background: rgba(255, 255, 255, .75)}
.standings-balance i,
.standings-points-bar i {display: block; height: 100%}
.standings-balance .wins {background: linear-gradient(180deg, #48df5c, #11942a)}
.standings-balance .draws {background: linear-gradient(180deg, #ffeb87, #d3ab28)}
.standings-balance .losses {background: linear-gradient(180deg, #ff7fc5, #d82a8d)}
.standings-points-bar i {background: var(--sport-primary, #006020)}
.standings-points strong {min-width: 24px; text-align: right}
.standings-official {margin: 14px 0 0; text-align: right}
.standings-official a {display: inline-block; padding: 6px 0 3px; border-bottom: 2px solid var(--yellow); color: var(--green-dark); font-size: 13px; font-weight: 900; text-decoration: none}

.home-match-columns {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px}
.home-table-panel {min-width: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .65)}
.home-panel-header {display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-bottom: 1px solid var(--line)}
.home-panel-header svg {width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round}
.home-panel-header h2 {margin: 0; color: inherit; font-size: 12px; font-weight: 900; line-height: 1.2}
.home-panel-header > a {margin-left: auto; color: inherit; font-size: 12px; font-weight: 800; text-decoration: none}
.home-panel-header > a:hover {text-decoration: underline}
.home-table-list {min-height: 1px}
.home-table-row {display: grid; grid-template-columns: 54px minmax(0, 1fr) 68px; min-height: 47px; border-top: 1px solid var(--line); background: var(--table-row-bg); color: var(--ink); text-decoration: none}
.home-table-row:first-child {border-top: 0}
.home-table-row:nth-child(even) {background: var(--table-row-alt)}
.home-table-row[href]:hover {background: var(--table-row-hover)}
.home-table-date {display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); color: var(--green-dark)}
.home-table-date strong {font-size: 13px; line-height: 1}
.home-table-date span {margin-top: 4px; font-size: 12px; font-weight: 800}
.home-table-teams {display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); align-items: center; gap: 3px; padding: 4px 8px; font-size: 13px; line-height: 1.15}
.home-table-teams strong {min-width: 0; overflow-wrap: anywhere}
.home-table-teams strong:first-child {text-align: right}
.home-table-teams strong:last-child {text-align: left}
.home-table-teams i {color: var(--muted); font-style: normal; text-align: center}
.home-table-position {position: relative; top: -.42em; display: inline-block; color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1; vertical-align: baseline}
.home-table-teams strong:first-child .home-table-position {margin-right: 3px}
.home-table-teams strong:last-child .home-table-position {margin-left: 3px}
.home-table-teams .home-own-team {color: var(--green-dark); font-size: 14px; font-weight: 950; letter-spacing: .025em; text-transform: uppercase}
.home-table-value {display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--line); background: #eef1f2}
.home-table-value strong {font-size: 19px; font-weight: 950; line-height: 1; white-space: nowrap}
.home-table-value small {margin-top: 4px; font-size: 9px; font-weight: 900; letter-spacing: .055em}
.home-result-win {background: #c9f4bb; color: #155b16}
.home-result-draw {background: #fff2a8; color: #6d5b00}
.home-result-loss {background: #f5c5c5; color: #8f1f1f}
.home-upcoming-value {background: #fff2a8; color: #2f3130}
.home-empty {margin: 0; padding: 18px; color: var(--muted); text-align: center}
.home-news-panel {margin-top: 0; border: 0; background: transparent}
.home-news-panel > .home-panel-header {border: 1px solid var(--line)}
.home-news-list {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px}
.home-news-card {display: grid; min-width: 0; min-height: 158px; grid-template-columns: 128px minmax(0, 1fr); border: 1px solid var(--line); border-left: 3px solid var(--sport-primary, #006020); background: #fff; color: var(--ink); text-decoration: none}
.home-news-card:hover {border-color: var(--green)}
.home-news-image {position: relative; display: grid; min-height: 158px; place-items: center; overflow: hidden; background: var(--green-soft)}
.home-news-image > img:not(.sport-news-placeholder) {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.home-news-body {display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 12px}
.home-news-body time {color: var(--muted); font-size: 11px}
.home-news-body > strong {color: var(--green-dark); font-size: 18px; line-height: 1.18}
.home-news-body > span {color: var(--muted); font-size: 12px; line-height: 1.35}
.home-news-body > b {align-self: flex-start; margin-top: auto; color: var(--green-dark); font-size: 13px; font-weight: 900}

.archive-teams {display: flex; flex-wrap: wrap; gap: 14px}
.archive-team {width: calc(25% - 10.5px); max-width: calc(25% - 10.5px); flex: 0 0 calc(25% - 10.5px); min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .74)}
.archive-team legend,
.archive-news > legend {padding: 0 8px; color: var(--green-dark); font-weight: 900}
.archive-team.is-inactive {background: #f3f5f2}
.archive-team.is-inactive legend {color: var(--muted)}
.archive-seasons {display: flex; flex-wrap: wrap; gap: 8px}
.archive-seasons a {display: inline-flex; min-height: 36px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); background: #fff; color: var(--green-dark); font-weight: 800; text-decoration: none}
.archive-seasons a:hover {border-color: var(--green); background: var(--green-soft)}
.archive-detail > .back-link {margin-bottom: 14px}
.archive-standings {margin-top: 26px}
.archive-standings h2 {margin: 0 0 10px; color: var(--green-dark); font-size: 20px}
.archive-matches-title {margin: 26px 0 10px; color: var(--green-dark); font-size: 20px}
.archive-news {min-width: 0; margin: 20px 0 0; padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .74)}
.archive-news-years {display: grid; gap: 16px}
.archive-news-year > h2 {display: flex; min-height: 34px; align-items: center; margin: 0; padding: 5px 10px; background: var(--table-head-bg); color: var(--table-head-text); font-size: 12px}
.archive-news-list {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px}
.archive-news-card {display: grid; min-width: 0; min-height: 112px; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); background: var(--table-row-bg); color: var(--ink); text-decoration: none}
.archive-news-card:hover {background: var(--table-row-hover)}
.archive-news-image {display: grid; min-height: 112px; place-items: center; overflow: hidden; background: var(--green-soft)}
.archive-news-image img {width: 100%; height: 100%; object-fit: cover}
.archive-news-body {display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 10px}
.archive-news-body time {color: var(--muted); font-size: 11px}
.archive-news-body strong {color: var(--green-dark); font-size: 16px; line-height: 1.2}
.archive-news-body > span {color: var(--muted); font-size: 12px; line-height: 1.35}
.news-card-image img.sport-news-placeholder,
.home-news-image img.sport-news-placeholder,
.archive-news-image img.sport-news-placeholder {width: 72%; height: 72%; object-fit: contain; filter: grayscale(50%) opacity(75%)}

@media (max-width: 900px) {
  .home-news-list {grid-template-columns: 1fr}
}
@media (max-width: 800px) {
  .public-detail header.match-scoreboard {grid-template-columns: 1fr; gap: 10px}
  .match-score {order: -1}
  .archive-news-list {grid-template-columns: 1fr}
  .archive-team {width: calc(50% - 7px); max-width: calc(50% - 7px); flex-basis: calc(50% - 7px)}
}
@media (max-width: 760px) {
  body.is-public {background-image: none !important}
  .public-shell {grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(420px, auto) auto; grid-template-areas: "header" "sidebar" "content" "footer"; width: 100%; min-height: 100vh; margin: 0; border: 0; box-shadow: none}
  .public-sport-mark {display: none}
  .public-header {min-height: 84px; padding: 8px 14px}
  .public-brand {padding: 8px 14px}
  .public-brand-mobile-icon {display: none}
  .public-brand-text strong {top: 50%; right: auto; bottom: auto; left: 0; font-size: clamp(28px, 8vw, 42px); text-align: left; transform: translateY(-50%)}
  .public-brand-text small {display: none}
  .public-sidebar {padding: 5px 7px 7px}
  .public-nav {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0}
  .public-nav-main {grid-template-columns: 29px minmax(0, 1fr); min-height: 44px; gap: 6px; padding: 4px 7px; border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid transparent; background: rgba(255, 255, 255, .035); font-size: 13px}
  .public-nav-main svg {width: 23px; height: 23px}
  .public-team-navs {grid-column: 1 / -1; margin: 2px 0; border: 1px solid rgba(255, 255, 255, .15)}
  .public-team-nav:last-child {border-bottom: 0}
  .public-team-toggle {min-height: 34px; padding: 4px 8px; cursor: pointer}
  .public-team-toggle svg {width: 18px; height: 18px}
  .public-team-toggle i {display: block}
  .public-team-toggle i::before {content: '+'}
  .public-team-nav.is-open .public-team-toggle i::before {content: '−'}
  .public-nav.team-menu-ready .public-team-nav > div {display: none}
  .public-nav.team-menu-ready .public-team-nav.is-open > div {display: grid}
  .public-team-link {min-height: 36px; padding: 3px; font-size: 11px}
  .public-team-link svg {width: 17px; height: 17px}
  .public-admin-entry {grid-column: 1 / -1; grid-template-columns: 27px 1fr; min-height: 40px; margin-top: 4px; padding: 4px 7px; border: 1px solid rgba(255, 255, 255, .14); border-left: 3px solid transparent}
  .public-admin-entry svg {width: 21px; height: 21px; margin: 0}
  .site-main {width: 100%; padding: 20px 15px 26px}
  .site-footer {margin: 0}
  .admin-nav {margin-bottom: 18px; flex-wrap: wrap}
  .admin-logout-form {margin-left: 0}
  .news-card {grid-template-columns: 90px minmax(0, 1fr)}
  .public-gallery,
  .member-list {grid-template-columns: repeat(2, minmax(0, 1fr))}
  .detail-main-image {float: none; display: block; margin: 0 0 14px}
  .detail-main-image img {width: 100%}
  .matches-public {font-size: 11px}
  .matches-public th,
  .matches-public td {padding: 5px 4px}
  .matches-public th:nth-child(5),
  .matches-public td:nth-child(5),
  .matches-public th:nth-child(6),
  .matches-public td:nth-child(6) {display: none}
  .match-result {font-size: 13px}
  .match-date {line-height: 1.15; text-align: center !important}
  .match-date span,
  .match-date time {display: block}
  .match-date time {margin-top: 2px}
  .match-date time::before {content: ''}
  .public-detail header.match-scoreboard {grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; padding: 7px 4px}
  .match-score {order: 0; gap: 3px}
  .match-score > span {display: none}
  .match-score > .match-score-difference {display: none}
  .match-score > .match-result-block {min-width: 78px; padding: 4px 7px; font-size: 30px}
  .match-score small {font-size: 10px}
  .match-team {gap: 3px}
  .match-team strong {font-size: 15px; overflow-wrap: anywhere}
  .match-team span {font-size: 9px}
  .public-performance-grid {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px}
  .public-player-card {padding: 5px}
  .public-player-heading {font-size: 11px}
  .public-player-difference {display: none}
  .public-lanes {font-size: 12px}
  .public-lanes th,
  .public-lanes td {padding: 4px 2px}
  .public-lanes th:nth-child(2),
  .public-lanes td:nth-child(2),
  .public-lanes th:nth-child(3),
  .public-lanes td:nth-child(3),
  .public-lanes th:nth-child(4),
  .public-lanes td:nth-child(4) {display: none}
  .public-lanes th:nth-child(1),
  .public-lanes td:nth-child(1) {width: 15%}
  .public-lanes th:nth-child(5),
  .public-lanes td:nth-child(5) {width: 20%}
  .public-lanes th:nth-child(6),
  .public-lanes td:nth-child(6) {width: 18%}
  .public-player-point > span {min-width: 34px; padding-inline: 3px; border-bottom-width: 6px; font-size: 28px}
  .standings-table {overflow: visible}
  .standings-header,
  .standings-row {grid-template-columns: 30px minmax(0, 1fr) 34px 44px; min-width: 0; font-size: 11px}
  .standings-header > span,
  .standings-row > span {min-height: 32px; padding: 3px}
  .standings-header > span:nth-child(4),
  .standings-row > span:nth-child(4),
  .standings-header > span:nth-child(5),
  .standings-row > span:nth-child(5),
  .standings-header > span:nth-child(6),
  .standings-row > span:nth-child(6) {display: none}
  .standings-points-bar {display: none}
  .standings-points {gap: 0}
  .standings-points strong {min-width: 0; text-align: center}
  .home-match-columns {grid-template-columns: 1fr}
  .home-table-row {grid-template-columns: 50px minmax(0, 1fr) 64px}
  .home-table-teams {padding-inline: 5px; font-size: 12px}
  .home-table-teams .home-own-team {font-size: 12px}
  .home-news-card {grid-template-columns: 90px minmax(0, 1fr)}
}
@media (max-width: 640px) {
  .public-page-heading {align-items: flex-start}
  .member-contact-content {align-items: flex-start; flex-direction: column; gap: 7px}
}
@media (max-width: 480px) {
  .public-header {min-height: 76px}
  .public-brand-mobile-icon {width: 68px; height: 68px; flex-basis: 68px}
  .public-brand-text strong {font-size: 28px}
  .public-page-heading h1 {font-size: 26px}
  .news-card {grid-template-columns: 78px minmax(0, 1fr)}
  .news-card-body {padding: 10px}
  .site-footer {height: auto; max-height: none; align-items: center; flex-direction: row; flex-wrap: nowrap; gap: 8px; padding: 9px 10px}
  .footer-account {flex: 0 0 auto; margin-left: auto}
  .footer-credit {min-width: 0; white-space: nowrap}
  .archive-news-card {grid-template-columns: 82px minmax(0, 1fr)}
  .archive-news-image {min-height: 100px}
  .archive-team {width: 100%; max-width: none; flex-basis: 100%}
  .archive-seasons a {flex: 1 1 calc(50% - 8px); justify-content: center}
}
