/*
 * Genesis Open 8
 * Shared application styles
 *
 * Keep this file human-readable. Group related rules together and avoid
 * minifying it in source control so future Genesis administrators can edit it.
 */

:root {
    --bg: #f5f6f4;
    --ink: #151713;
    --muted: #666b62;
    --line: #dfe3dc;
    --panel: #ffffff;
    --brand: #1f5a36;
    --danger: #912d2d;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  background-image: url("img/GenOpen8.png");
  background-repeat: no-repeat;
  background-position-x: calc(100% + 50vw);
  background-position-y: calc(100% + 25vw);
  background-size: contain;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
} 

a {
    color: var(--brand);
    text-decoration: none;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: auto;
    padding: 0 20px;
}

/* Header / navigation */

header {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand{
  font-weight:800;
  color:var(--ink);
  font-size:20px;
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* optional: horizontal centering */
  gap: 8px;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

main {
    flex: 1;
    padding-top: 36px;
    padding-bottom: 60px;
}

footer {
    padding: 24px 0;
    color: var(--muted);
    margin-top: auto;
    border-top: 1px solid var(--line);
}

.footerrow {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Typography */

.hero {
    padding: 60px 0 42px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    margin: 8px 0 18px;
}

.hero p {
    max-width: 720px;
    font-size: 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 40px;
}

.hero-copy {
    min-width: 0;
}

.gologrt {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gologrt img {
    display: block;
    width: min(100%, 300px);
    height: auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
    font-size: 12px;
    color: var(--brand);
}

.muted {
    color: var(--muted);
    font-weight: 400;
}

.center {
    text-align: center;
}

.metric {
    font-size: 26px;
    font-weight: 800;
}

.bigscore {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.score {
    font-size: 20px;
    font-weight: 800;
}

.score small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
}

.score-inline {
    white-space: nowrap;
}

/* Buttons */

.button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    padding: 11px 17px;
    font-weight: 700;
    cursor: pointer;
}

.button.secondary {
    background: #e8ece8;
    color: var(--ink);
}

.button.danger {
    background: var(--danger);
}

.button.blue {
    background: #2d5f91;
}

.button.warning {
    background: #9a7415;
}

.button.small {
    padding: 7px 11px;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Cards / layout */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
}

.linkcard {
    color: var(--ink);
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stack {
    display: grid;
    gap: 12px;
}

.stack .card {
    margin-bottom: 0;
}

.narrow {
    max-width: 620px;
    margin: auto;
}

.pagehead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.staff-line {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.staff-line:last-of-type {
    border-bottom: 0;
}

.match {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Forms */

.form {
    display: grid;
    gap: 16px;
}

.form label {
    display: grid;
    gap: 6px;
    font-weight: 650;
}

input,
select,
textarea,
.form input,
.form select {
    font: inherit;
    padding: 10px 11px;
    border: 1px solid #cdd2cb;
    border-radius: 8px;
    background: #ffffff;
}

textarea {
    width: 100%;
    resize: vertical;
}

.form small {
    color: var(--muted);
    font-weight: 400;
}

.check {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    align-items: flex-start;
    gap: 9px !important;
    font-weight: 500 !important;
}

.check input {
    margin-top: 5px;
}

.inline-form {
    display: inline;
}

/* Notices / statuses */

.notice {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.notice.success {
    background: #e4f3e9;
}

.notice.error {
    background: #f6e4e4;
}

.status {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecefea;
    font-size: 12px;
    font-weight: 800;
}

.status.approved,
.status.final,
.status.paid {
    background: #dff2e5;
}

.status.pending {
    background: #fff1c9;
}

.status.rejected,
.status.denied,
.status.cancelled {
    background: #f5dfdf;
}

.danger-panel {
    border-color: #d7aaaa;
    background: #fffafa;
}

/* Tables */

.tablewrap {
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

/* Player cards / verification photos */

.playergrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.player {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
}

.player.public {
    grid-template-columns: 1fr;
}

.player img,
.avatarplaceholder {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    background: #ecefea;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--muted);
}

.public img,
.public .avatarplaceholder {
    width: 100%;
    height: 190px;
}

.compact {
    display: grid;
    gap: 7px;
}

.staff-roster-grid {
    grid-template-columns: 1fr;
}

.staff-player-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
}

.staff-player-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    background: #ecefea;
}

.staff-player-body h3 {
    margin: 0;
}

.staff-player-actions {
    margin-top: 12px;
}

.roster-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    background: #ecefea;
}

.team-title-row .roster-thumb {
    flex: 0 0 auto;
}

/* Team logos */

.team-logo-preview {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
}

.team-logo-preview img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 10px;
}

.team-logo-small {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 6px;
    flex: 0 0 auto;
}

.team-logo-card {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    margin-bottom: 12px;
}

.team-logo-placeholder {
    width: 84px;
    height: 84px;
    border: 1px dashed #c8cec5;
    border-radius: 12px;
    background: #f4f6f2;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 12px;
}

.team-public-head,
.team-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.team-public-head {
    margin-bottom: 28px;
}

.team-logo-hero {
    width: 132px;
    height: 132px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    padding: 10px;
}

.team-card {
    min-height: 190px;
}

.team-card h2,
.team-card h3 {
    margin-top: 0;
}

/* Match Center */

.matchclock {
    font-size: 13px;
    color: var(--muted);
    margin-top: 8px;
}

.readycount {
    font-weight: 800;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 999px;
}

.readycount.ready {
    background: #dff2e5;
}

.readycount.notready {
    background: #f5dfdf;
}

.checkin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkin-player {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 7px;
    align-content: start;
}

.checkin-player img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    background: #ecefea;
}

.checkin-player.guest {
    background: #fafaf7;
}

.guest-badge {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--brand);
}

.kickoff-panel {
    border-left: 4px solid var(--brand);
}

.threshold-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.threshold-grid > div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbf9;
}

/* Legal pages */

.legal {
    max-width: 860px;
    margin: 0 auto;
}

.legal h1 {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
    margin: 0.2em 0 0.5em;
}

.legal h2 {
    margin-top: 34px;
}

.legal li {
    margin-bottom: 7px;
}

/* Mobile */

@media (max-width: 760px) {
    .nav {
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-direction: column;
    }

    .grid2,
    .grid3,
    .playergrid,
    .threshold-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 30px;
    }

    .pagehead {
        flex-direction: column;
    }

    .player {
        grid-template-columns: 76px 1fr;
    }

    .player img,
    .avatarplaceholder {
        width: 76px;
        height: 76px;
    }

    .checkin-grid {
        grid-template-columns: 1fr;
    }

    .checkin-player img {
        height: 180px;
    }

    .row-between {
        align-items: flex-start;
        flex-direction: column;
    }

    .bigscore {
        font-size: 42px;
    }

    .team-logo-hero {
        width: 96px;
        height: 96px;
    }

    .team-public-head,
    .team-title-row {
        align-items: flex-start;
    }

    .team-logo-small {
        width: 58px;
        height: 58px;
    }

    .staff-player-card {
        grid-template-columns: 1fr;
    }

    .staff-player-photo {
        width: 100%;
        height: 220px;
    }
}
