/* Minification failed. Returning unminified contents.
(2,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(8,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(9,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(10,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(11,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(12,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(13,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(14,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(18,22): run-time error CSS1039: Token not allowed after unary operator: '-cream'
(26,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(35,17): run-time error CSS1039: Token not allowed after unary operator: '-green'
(41,21): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(80,17): run-time error CSS1039: Token not allowed after unary operator: '-red'
(131,32): run-time error CSS1039: Token not allowed after unary operator: '-line'
(143,32): run-time error CSS1039: Token not allowed after unary operator: '-green'
(148,32): run-time error CSS1039: Token not allowed after unary operator: '-stripe'
(152,32): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(172,25): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(179,25): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(184,25): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(231,17): run-time error CSS1039: Token not allowed after unary operator: '-green'
(265,22): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(341,22): run-time error CSS1039: Token not allowed after unary operator: '-green'
(382,21): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(387,25): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(412,22): run-time error CSS1039: Token not allowed after unary operator: '-green'
(491,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(508,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(514,17): run-time error CSS1039: Token not allowed after unary operator: '-green'
(564,28): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(565,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(569,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(574,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(578,22): run-time error CSS1039: Token not allowed after unary operator: '-green'
(583,28): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(587,28): run-time error CSS1039: Token not allowed after unary operator: '-stripe'
(591,28): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(595,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(599,22): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(604,28): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(608,28): run-time error CSS1039: Token not allowed after unary operator: '-stripe'
(612,28): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(629,17): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(634,17): run-time error CSS1039: Token not allowed after unary operator: '-green'
(641,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(654,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(668,32): run-time error CSS1039: Token not allowed after unary operator: '-line'
(683,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(702,35): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(703,22): run-time error CSS1039: Token not allowed after unary operator: '-cream'
(722,21): run-time error CSS1039: Token not allowed after unary operator: '-green'
(729,35): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(733,26): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(734,21): run-time error CSS1039: Token not allowed after unary operator: '-green'
(743,32): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(748,28): run-time error CSS1039: Token not allowed after unary operator: '-stripe'
(811,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(813,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(831,32): run-time error CSS1039: Token not allowed after unary operator: '-green-mid'
(844,22): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(847,28): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(860,26): run-time error CSS1039: Token not allowed after unary operator: '-green'
(861,28): run-time error CSS1039: Token not allowed after unary operator: '-green'
(866,17): run-time error CSS1039: Token not allowed after unary operator: '-red'
(870,17): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(876,17): run-time error CSS1039: Token not allowed after unary operator: '-red'
(885,28): run-time error CSS1039: Token not allowed after unary operator: '-red'
(893,17): run-time error CSS1039: Token not allowed after unary operator: '-red'
(911,28): run-time error CSS1039: Token not allowed after unary operator: '-cream'
(913,28): run-time error CSS1039: Token not allowed after unary operator: '-green'
(922,28): run-time error CSS1039: Token not allowed after unary operator: '-green'
(928,21): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(937,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(960,22): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(964,26): run-time error CSS1039: Token not allowed after unary operator: '-green'
(968,26): run-time error CSS1039: Token not allowed after unary operator: '-red'
(972,26): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(997,22): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(998,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1015,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(1021,22): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(1045,33): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1051,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1070,26): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(1080,22): run-time error CSS1039: Token not allowed after unary operator: '-green'
(1131,21): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(1135,25): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(1158,22): run-time error CSS1039: Token not allowed after unary operator: '-green'
(1182,22): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(1206,22): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(1207,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1241,35): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1252,17): run-time error CSS1039: Token not allowed after unary operator: '-muted'
(1265,22): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(1266,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1306,32): run-time error CSS1039: Token not allowed after unary operator: '-stripe'
(1336,26): run-time error CSS1039: Token not allowed after unary operator: '-gold-pale'
(1340,26): run-time error CSS1039: Token not allowed after unary operator: '-red-pale'
(1371,22): run-time error CSS1039: Token not allowed after unary operator: '-paper'
(1372,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1381,28): run-time error CSS1039: Token not allowed after unary operator: '-gold'
(1389,22): run-time error CSS1039: Token not allowed after unary operator: '-green-pale'
(1390,17): run-time error CSS1039: Token not allowed after unary operator: '-green'
(1485,43): run-time error CSS1039: Token not allowed after unary operator: '-line'
(1496,30): run-time error CSS1039: Token not allowed after unary operator: '-green-pale'
 */
:root {
    --green: #41693B;
    --green-mid: #3F6B3C;
    --green-pale: #E7EEE2;
    --gold: #C99A2E;
    --gold-pale: #F3E6C4;
    --cream: #F7F2E4;
    --ink: #22241E;
    --muted: #726C5C;
    --red: #9B3A2E;
    --red-pale: #F2E1DD;
    --line: #E1D8C0;
    --paper: #FFFFFF;
    --stripe: #F1EBDA;
}

html {
    background: var(--cream);
    margin: 0;
}

body {
    font-size: 15px;
    line-height: 1.55;
    font-family: 'Public Sans', system-ui, Arial, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a img {
    border: 0;
}

a {
    color: var(--green);
    outline: none;
    text-decoration: none;
}

    a:active:not(.UnstyledHyperlink), a:hover:not(.UnstyledHyperlink) {
        color: var(--gold);
        text-decoration: underline;
    }

    a:active {
        background: none;
    }

/* Plain-prose links (form pages, CRUD scaffolding, etc.) still need an
   underline to read as a link outside the styled nav/card components. */
p a:not(.UnstyledHyperlink) {
    text-decoration: underline;
}

.Bold {
    font-weight: 700;
}

.NotBold {
    font-weight: normal;
}

.FontLarger {
    font-size: 1.35em;
}

.FontLarge {
    font-size: 1.05em;
}

.FontSmall {
    font-size: smaller;
}

.FontSmaller {
    font-size: 0.85em;
}

.DarkRed {
    color: var(--red);
}

.Centred {
    text-align: center;
}

.RightAligned {
    text-align: right;
}

.Cleared {
    clear: both;
}

.TopMargin {
    margin-top: 5px;
}

.LeftMargin {
    margin-left: 10px;
}

.RightMargin {
    margin-right: 10px;
}

.BottomMargin {
    margin-bottom: 10px;
}

.FullWidth {
    width: 100%;
}

.NearlyFullWidth {
    width: 95%;
}

/* tables
----------------------------------------------------------*/
table {
    text-align: left;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0.75em;
    width: 100%;
    font-size: 0.95em;
}

    table:not(.NoBorder), table:not(.NoBorder) td {
        border: 1px solid var(--line);
    }

    table.NoBorder, table td.NoBorder {
        border: none;
    }

    table.LeftAlign {
        text-align: left;
    }

    table thead {
        background-color: var(--green);
        color: #fff;
    }

    table tbody tr:nth-child(even) {
        background-color: var(--stripe);
    }

    table tbody tr:nth-child(odd) {
        background-color: var(--paper);
    }

th, td {
    padding: 0.45em 0.65em;
    border: inherit;
}

    th.SmallPadding, td.SmallPadding {
        padding: 0 0 0 0;
    }

    th.sortable {
        cursor: pointer;
    }

        th.sortable:after {
            display: inline-block;
            margin-left: 0.5em;
            font-size: 0.65em;
            color: var(--gold-pale);
            content: '▲▼';
            vertical-align: middle;
        }

        th.sortable.asc:after {
            content: '▲';
            color: var(--gold-pale);
        }

        th.sortable.desc:after {
            content: '▼';
            color: var(--gold-pale);
        }

.float-left {
    float: left;
}

.float-right {
    float: right;
}

/* Photo & trophy tile grids
----------------------------------------------------------*/
.PhotoTile {
    width: 33%;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 10px;
    box-sizing: border-box;
}

    .PhotoTile img {
        max-width: 100%;
        height: auto;
        display: block;
    }

.TrophyTile {
    float: left;
    width: 33%;
    box-sizing: border-box;
}

    .TrophyTile img {
        max-width: 100%;
        height: auto;
    }

    .TrophyTile.HalfWidth {
        width: 50%;
    }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    color: var(--green);
}

h1 {
    font-size: 1.7em;
    line-height: 1.25;
}

h2 {
    font-size: 1.3em;
}

h3 {
    font-size: 1.15em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

/* Main layout
----------------------------------------------------------*/
.ContentContainer {
    clear: both;
    margin-left: 5px;
    margin-right: 5px;
    vertical-align: top;
}

.MainContent {
    background: var(--paper);
    max-width: 1200px;
    min-height: 100%;
    margin: 20px auto;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(34, 36, 30, 0.08), 0 12px 32px rgba(34, 36, 30, 0.06);
}

.FadeIn {
    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 2s; /* Firefox < 16 */
    -ms-animation: fadein 2s; /* Internet Explorer */
    -o-animation: fadein 2s; /* Opera < 12.1 */
    animation: fadein 2s;
}

@keyframes fadein {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* Header
----------------------------------------------------------*/
.ContentContainer.Header {
    margin: 0;
    background: var(--green);
    color: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.SiteLogo {
    display: inline-flex;
    flex-shrink: 0;
}

    .SiteLogo img {
        height: 42px;
        width: auto;
    }

.SiteTitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    color: #fff;
}

    .SiteTitle a, .SiteTitle a:hover, .SiteTitle a:active {
        color: #fff;
        outline: none;
        text-decoration: none;
    }

.Header .Login {
    margin-left: auto;
    font-size: 0.85em;
}

    .Header .Login a {
        color: var(--gold-pale);
        opacity: 0.9;
    }

        .Header .Login a:hover {
            color: var(--gold);
            opacity: 1;
            text-decoration: underline;
        }

.ContentContainer.NavBar {
    margin: 0;
    padding: 0;
}

.NavToggle {
    display: none;
}

.NavToggleLabel {
    display: none;
}

.Footer {
    clear: both;
    font-size: .8em;
}

.ContentContainer.Footer {
    margin: 0;
    background: var(--green);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
}

    .Footer .float-left,
    .Footer .float-right {
        float: none;
    }

    .Footer p {
        margin: 0;
    }

.CentreContent {
    min-height: 450px;
    position: relative;
}

.ContentContainer.CentreContent {
    margin: 0;
    padding: 28px 28px 20px;
}

.LeftCol {
    max-width: 300px;
    float: left;
    vertical-align: top;
    margin-right: 10px;
    text-align: center;
}

.RightCol {
    width: 30%;
    float: right;
    vertical-align: top;
    margin-left: 10px;
}

    .RightCol.Small {
        width: 20%;
    }

    .RightCol.Large {
        width: 40%;
    }

.PartialContents {
    text-align: center;
}

.ThreeColumnList {
    list-style-type: none;
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
}

.FiveColumnList {
    list-style-type: none;
    -webkit-column-count: 5;
    -moz-column-count: 5;
    column-count: 5;
}

.UnstyledList {
    list-style-type: none;
}

.SmallImageHeader {
    float: left;
    height: 30px;
    line-height: 30px;
}

.SubText {
    font-size: 1em;
    color: var(--muted);
    text-decoration: none;
}

    .SubText.Small {
        font-size: 0.85em;
    }

.UnstyledHyperlink {
    text-decoration: none;
}

.Eyebrow {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: 4px;
}

.SectionHeading {
    font-family: 'Lora', Georgia, serif;
    color: var(--green);
    font-size: 1.05em;
    margin: 22px 0 10px;
}

/* Scorecards
----------------------------------------------------------*/
table.Scorecard {
    min-width: 40%;
    flex: 1 1 300px;
    margin-top: 0;
}

div.Scorecard {
    display: block;
    width: 100%;
}

div.Scorecard > div.Scorecard {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

    div.Scorecard > div.Scorecard:last-child {
        margin-bottom: 0;
    }

.Scorecard thead {
    font-weight: 600;
}

    .Scorecard thead tr td span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: normal;
    }

    .Scorecard thead tr .SmallImageHeader {
        float: none;
        position: static;
        height: 22px;
        margin-right: 0;
    }

.Scorecard tr.Total {
    font-weight: 700;
    background-color: var(--gold-pale) !important;
    color: var(--ink);
}

.Scorecard tr.Extras {
    color: var(--muted);
    font-style: italic;
}

table.Scorecard.FrimleyGreen, table.Scorecard.FrimleyGreen td {
    border: 1px solid var(--line);
}

.Scorecard.FrimleyGreen thead tr {
    background: var(--green);
    color: #fff;
}

.Scorecard.FrimleyGreen tbody tr:nth-child(odd) {
    background-color: var(--paper);
}

.Scorecard.FrimleyGreen tbody tr:nth-child(even) {
    background-color: var(--stripe);
}

.Scorecard.FrimleyGreen tr.Total {
    background-color: var(--gold-pale) !important;
}

table.Scorecard.Opposition, table.Scorecard.Opposition td {
    border: 1px solid var(--line);
}

.Scorecard.Opposition thead tr {
    background: var(--gold);
    color: #2b2107;
}

.Scorecard.Opposition tbody tr:nth-child(odd) {
    background-color: var(--paper);
}

.Scorecard.Opposition tbody tr:nth-child(even) {
    background-color: var(--stripe);
}

.Scorecard.Opposition tr.Total {
    background-color: var(--gold-pale) !important;
}

.DatePicker {
    width: 5em;
}

.TimePicker {
    width: 2.5em;
}

.Numeric {
    width: 3.5em;
}

.AvailabilitySaving {
    font-weight: bold;
    color: var(--gold);
}

.AvailabilitySaved {
    font-weight: bold;
    color: var(--green);
}

/* autoComplete
----------------------------------------------------------*/

.ui-menu .ui-menu-item a {
    color: var(--ink);
    background-color: transparent;
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 0.85em;
}

/* Scrollbox
----------------------------------------------------------*/

.ScrollBox {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--line);
    padding: 3px;
    font-size: 0.88em;
}

.ScrollBoxHeader {
    font-size: 1.25em;
    font-weight: bold;
}

.ScrollBox hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1em 0;
    padding: 0;
}

.RightCol.ScrollBox img {
    max-width: 99%;
}

.SubLink {
    vertical-align: top;
    font-size: 0.7em;
    margin-left: 5px;
    text-decoration: underline;
    cursor: pointer;
    color: var(--muted);
}

.Clickable {
    cursor: pointer;
}

Header, Footer, hgroup, nav, section {
    display: block;
}

/* Menu */
.TabbedMenu {
    margin: 0;
    padding: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--gold);
    background: var(--cream);
}

    .TabbedMenu li {
        font-family: 'Public Sans', Arial, sans-serif;
        letter-spacing: 0;
        list-style: none;
        display: inline-block;
        position: relative;
        box-shadow: none;
        border-radius: 0;
        background-color: transparent;
        padding: 0;
        font-size: 0.95em;
        font-weight: 600;
    }

    .TabbedMenu li a {
        display: inline-block;
        color: var(--green);
        text-decoration: none;
        padding: 13px 14px;
        border-bottom: 3px solid transparent;
    }

    .TabbedMenu .CurrentMenuItem > a {
        border-bottom-color: var(--gold);
    }

    .TabbedMenu li:hover > a, .TabbedMenu a:hover {
        background: var(--gold-pale);
        color: var(--green);
    }

/* Clickable table rows (Results list) */
.ResultsTable tbody tr {
    cursor: pointer;
}

    .ResultsTable tbody tr:hover {
        background-color: var(--gold-pale);
    }

/* Averages */
table.Averages tr:nth-child(even) {
    background-color: var(--stripe);
}

#tblBattingAverages td:nth-child(n+2),
#tblBattingAverages th:nth-child(n+2),
#tblBowlingAverages td:nth-child(n+2),
#tblBowlingAverages th:nth-child(n+2) {
    text-align: right;
}

.Batting {
    background: url('../Content/Images/BattingAverages.png');
    background-size: 50%;
    background-repeat: repeat-y;
    background-position: center top;
}

.Bowling {
    background: url('../Content/Images/BowlingAverages.png');
    background-size: 99%;
    background-repeat: repeat-y;
    background-position: center top;
}

/* End of Averages */

.ItalicLabel {
    font-style: italic;
}

.TextBlock {
    white-space: pre-wrap;
}

.Inline {
    display: inline;
}

/* forms */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

    fieldset legend {
        display: none;
    }

    fieldset ol {
        padding: 0;
        list-style: none;
    }

        fieldset ol li {
            padding-bottom: 5px;
        }

input.Big, textarea.Big {
    width: 90%;
}

input, textarea, select {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    margin: 5px 0 6px 0;
    padding: 6px 8px;
    border-radius: 4px;
}

.AutoHeight {
    height: auto;
}

textarea {
    font-family: inherit;
    width: 90%;
    height: 8em;
}

    input:focus, textarea:focus, select:focus {
        border: 1px solid var(--green-mid);
        outline: none;
    }

input[type="checkbox"] {
    background: transparent;
    border: inherit;
    width: auto;
}

input[type="submit"],
input[type="button"],
button {
    background: var(--gold);
    color: #2b2107;
    box-shadow: none;
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Public Sans', Arial, sans-serif;
    font-size: 1em;
    font-weight: 600;
    padding: 7px 14px;
    width: auto;
}

    input[type="submit"]:hover,
    input[type="button"]:hover,
    button:hover {
        background: var(--green);
        border-color: var(--green);
        color: #fff;
    }

.error {
    color: var(--red);
}

.Warning {
    color: var(--gold);
    font-weight: bold;
}

/* styles for validation helpers */
.field-validation-error {
    color: var(--red);
    font-weight: bold;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid var(--red);
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: var(--red);
    font-weight: bold;
    font-size: 1.1em;
}

.validation-summary-valid {
    display: none;
}

/* Listomania */

.ListomaniaContent {
    padding: 10px;
}

.ListomaniaContainer {
    margin: 5px;
    width: 48%;
    background-color: var(--cream);
    float: left;
    border: 2px solid var(--green);
    border-radius: 8px;
}

.ListomaniaHeader {
    font-size: 1.2em;
    padding: 8px 10px;
    margin: 0px;
    display: block;
    background-color: var(--green);
    color: #fff;
    font-family: 'Lora', Georgia, serif;
}

    .ListomaniaHeader a, .ListomaniaHeader a:active, .ListomaniaHeader a:hover:not(.UnstyledHyperlink) {
        color: var(--gold-pale);
    }

/* End of Listomania */

/* Contact page map embed
----------------------------------------------------------*/
.MapEmbed {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

    .MapEmbed iframe {
        display: block;
        width: 100%;
        height: 420px;
        border: 0;
    }

/* Result badges
----------------------------------------------------------*/
.ResultBadge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    color: #fff;
    background: var(--muted);
}

    .ResultBadge.Won {
        background: var(--green);
    }

    .ResultBadge.Lost {
        background: var(--red);
    }

    .ResultBadge.Drew, .ResultBadge.Tied {
        background: var(--gold);
        color: #2b2107;
    }

/* Homepage
----------------------------------------------------------*/
.HomeGrid {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 28px;
}

.HomeMain {
    flex: 1 1 480px;
    min-width: 0;
}

.HomeAside {
    flex: 0 1 320px;
    min-width: 260px;
}

.ResultCard {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.ResultBadgeRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ResultHeadline {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--ink);
    display: block;
    line-height: 1.4;
}

.NextFixtureStrip {
    background: var(--gold-pale);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.IntroText {
    font-size: 0.98em;
    line-height: 1.65;
    color: #3a3a32;
}

.Timeline {
    margin-top: 8px;
}

.TimelineBody {
    position: relative;
    padding-left: 18px;
    border-left: 2px solid var(--line);
}

.TimelineDate {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 16px 0 6px;
    position: relative;
}

    .TimelineDate:first-child {
        margin-top: 0;
    }

    .TimelineDate:before {
        content: '';
        position: absolute;
        left: -23px;
        top: 4px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gold);
    }

.TimelineEntry {
    color: #3a3a32;
    line-height: 1.6;
    margin-bottom: 4px;
}

.StatsTile {
    background: var(--green);
    border-radius: 12px;
    padding: 18px 20px;
    color: #fff;
    margin-bottom: 18px;
}

    .StatsTile h2 {
        color: #fff;
        font-size: 1.05em;
        margin-bottom: 12px;
    }

.StatsRow {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.StatTile {
    flex: 1;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.StatNumber {
    font-size: 1.4em;
    font-weight: 700;
}

.StatLabel {
    font-size: 10px;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.StatsHighlights {
    font-size: 0.85em;
    line-height: 1.7;
    opacity: .92;
}

.StatsHighlightLabel {
    font-weight: 700;
    margin-top: 6px;
}

    .StatsHighlights a {
        color: var(--gold-pale);
    }

        .StatsHighlights a:hover {
            color: var(--gold);
        }

.PhotosBlock {
    margin-bottom: 18px;
}

.PhotoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.PhotoThumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Match details
----------------------------------------------------------*/
.MatchBanner {
    background: var(--green);
    border-radius: 12px;
    padding: 22px 26px;
    color: #fff;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
}

    .MatchBanner h1 {
        color: #fff;
        font-size: 1.35em;
        margin-bottom: 6px;
    }

.MatchBannerMeta {
    font-size: 0.85em;
    opacity: .8;
}

.ResultPill {
    background: var(--gold);
    color: #2b2107;
    font-size: 0.85em;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.MatchGrid {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.MatchMain {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
}

.MatchAside {
    flex: 0 0 380px;
    box-sizing: border-box;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
}

    .MatchAside h2 {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

.AsideColumn {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 380px;
}

    .AsideColumn .MatchAside {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }

/* Label/value fact lists (Statistics pages)
----------------------------------------------------------*/
.StatFacts {
    margin: 4px 0 22px;
}

.StatFact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95em;
}

    .StatFact:last-child {
        border-bottom: none;
    }

.StatFactLabel {
    min-width: 200px;
    font-weight: 600;
    color: var(--muted);
}

/* Stat list cards (Statistics pages)
----------------------------------------------------------*/
.StatBlockGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.StatBlock {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
}

.StatBlockHeader {
    margin-bottom: 10px;
}

.StatBlockRow {
    font-size: 0.9em;
    line-height: 1.7;
}

.MatchReport {
    font-size: 0.95em;
    line-height: 1.7;
    color: #3a3a32;
}

.MatchMetaBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.MatchMeta {
    margin: 0;
    font-size: 0.95em;
}

.StripedRow {
    padding: 3px 8px;
    border-radius: 4px;
}

    .StripedRow:nth-child(even) {
        background-color: var(--stripe);
    }

    .StripedRow a:not(.UnstyledHyperlink) {
        text-decoration: underline;
    }

.FootnoteRow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.MatchHighlights {
    display: flex;
    gap: 14px;
    margin: 18px 0 8px;
    flex-wrap: wrap;
}

.MatchHighlight {
    flex: 1;
    min-width: 200px;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.9em;
}

    .MatchHighlight.Gold {
        background: var(--gold-pale);
    }

    .MatchHighlight.Red {
        background: var(--red-pale);
    }

/* Averages page layout
----------------------------------------------------------*/
.AveragesGrid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 10px;
}

.AveragesCol {
    flex: 1 1 320px;
    min-width: 0;
}

/* Player cards
----------------------------------------------------------*/
.PlayerGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.PlayerCard {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .PlayerCard:hover {
        border-color: var(--gold);
        box-shadow: 0 4px 12px rgba(34, 36, 30, 0.08);
    }

.PlayerAvatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-pale);
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.PlayerName {
    font-weight: 600;
    font-size: 0.92em;
}

/********************
*   Mobile Styles   *
********************/
@media only screen and (max-width: 650px) {
    .MainContent {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .ContentContainer.CentreContent {
        padding: 16px 14px 14px;
    }

    /* Header
    ----------------------------------------------------------*/
    .ContentContainer.Header {
        padding: 12px 16px;
        row-gap: 2px;
    }

    .Header .SiteLogo {
        display: inline-flex;
    }

        .Header .SiteLogo img {
            height: 32px;
        }

    .SiteTitle {
        font-size: 1.1em;
    }

    .Header .Login {
        margin-left: 0;
        font-size: 0.8em;
        order: 3;
    }

        .Header .Login ul {
            margin: 0;
        }

    .NavToggleLabel {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 15px;
        margin-left: auto;
        cursor: pointer;
        order: 1;
    }

        .NavToggleLabel span {
            display: block;
            height: 2px;
            background: #fff;
            border-radius: 1px;
        }

    .ContentContainer.NavBar {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .NavToggle:checked ~ nav .ContentContainer.NavBar {
        max-height: 600px;
    }

    .TabbedMenu {
        flex-direction: column;
        align-items: stretch;
        border-bottom: none;
    }

        .TabbedMenu li {
            width: 100%;
            border-bottom: 1px solid var(--line);
        }

        .TabbedMenu li a {
            padding: 11px 16px;
            width: 100%;
            box-sizing: border-box;
        }

        .TabbedMenu .CurrentMenuItem > a {
            border-bottom-color: transparent;
            background: var(--green-pale);
        }

    /* Homepage
    ----------------------------------------------------------*/
    .HomeGrid {
        flex-direction: column;
    }

    .HomeMain,
    .HomeAside {
        display: contents;
    }

    .HomeMain > .ResultCard { order: 1; }
    .HomeMain > .NextFixtureStrip { order: 2; }
    .HomeMain > .IntroText { order: 3; }
    .HomeAside > .StatsTile { order: 4; }
    .HomeMain > .Timeline { order: 5; }
    .HomeMain > .Cleared { order: 5; }
    .HomeMain > .ItalicLabel { order: 6; }
    .HomeAside > .PhotosBlock { order: 7; }

    /* Match details
    ----------------------------------------------------------*/
    .MatchGrid {
        flex-direction: column;
    }

    .MatchMain {
        max-width: 100%;
    }

    .MatchAside {
        width: 100%;
        box-sizing: border-box;
    }

    .AsideColumn {
        flex: none;
        width: 100%;
    }

    .RightCol.SecondCol {
        clear: right;
        width: 50%;
    }

    .RightCol.ThirdCol {
        width: 50%;
    }

    /* Footer
    ----------------------------------------------------------*/
    Footer {
        text-align: center;
        height: auto;
        padding: 10px 0;
    }

        Footer p {
            margin: 0;
        }

    /* Photo & trophy tile grids
    ----------------------------------------------------------*/
    .PhotoTile {
        width: 50%;
    }

    .TrophyTile,
    .TrophyTile.HalfWidth {
        width: 100%;
        float: none;
    }
}

