/*
 * Type size.
 *
 * Tabler sets the body at 14px, which is a size for a dense dashboard rather
 * than for lists somebody reads all evening. One step up, through Tabler's
 * own variable so everything scaled off it comes with — tables, forms, cards
 * and the rest — rather than a pile of per-element overrides.
 */
:root {
    --tblr-body-font-size: 0.9375rem;
}

/* The brand green, from the logo. Defined here rather than on the sign in
   page alone, now that the buttons and the links across the application use
   it. */
:root {
    --asana-green: #43966a;
    --asana-green-dark: #367a56;
    --asana-green-darker: #2b6245;
}

/*
 * The accent colour Tabler hangs everything else off: the underline under the
 * open menu, a focus ring, a checked box. Left blue it would have been the
 * only blue thing on a green page, which reads as something nobody finished
 * rather than as a choice.
 *
 * Deliberately after the button rules rather than instead of them. Those name
 * the two greens they want; this one catches everything nobody thought to
 * name.
 */
:root {
    --tblr-primary: var(--asana-green);
    --tblr-primary-rgb: 67, 150, 106;
}

/*
 * Links.
 *
 * The darker green rather than the mid one: a link sits in a paragraph at
 * body size, where #43966a against white is thin to read. Set as both the
 * colour and its rgb parts, because Tabler builds a link's colour out of the
 * latter so that it can fade them.
 */
:root {
    --tblr-link-color: var(--asana-green-dark);
    --tblr-link-color-rgb: 54, 122, 86;
    --tblr-link-hover-color: var(--asana-green-darker);
    --tblr-link-hover-color-rgb: 43, 98, 69;
}

/*
 * Tables.
 *
 * Every list in the application is a table, and they were all set at Tabler's
 * default row height, which is generous for reading a paragraph and wasteful
 * for scanning twenty names. These make the rows shorter, band them so the eye
 * can follow one across, and mark the headers that can be sorted.
 */

.page-body .table > :not(caption) > * > * {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.page-body .table thead th {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    white-space: nowrap;
}

/*
 * A shade heavier than the body text. Tabler's 400 is set for paragraphs,
 * and a column of names and numbers scanned at speed reads thin at it.
 */
.page-body .table tbody td {
    font-weight: 500;
}

/*
 * Banding, on every table rather than the handful that opted in.
 *
 * Driven through Tabler's own striping variables rather than a flat
 * background, which is what lets a row that is already saying something with
 * its colour keep saying it: .table-danger and the rest each redefine
 * --tblr-table-striped-bg to a shade of themselves, so a marked row bands in
 * its own colour instead of being painted over in grey.
 */
.page-body .table > tbody > tr:nth-of-type(even) > * {
    --tblr-table-color-type: var(--tblr-table-striped-color);
    --tblr-table-bg-type: var(--tblr-table-striped-bg);
}

/* Dark enough to actually read as a band. The old shade was a hair off
   white and did nothing at arm's length. */
.page-body .table {
    --tblr-table-striped-bg: #eef1f5;
}

/*
 * A table of inputs is a form wearing a table's clothes. Banding it stripes
 * the gaps between fields rather than grouping anything, and fights the
 * boxes for the eye. Rows there are told apart by their inputs already.
 */
.page-body .table-form > tbody > tr:nth-of-type(even) > * {
    --tblr-table-bg-type: initial;
}

.page-body .table-form tbody td {
    font-weight: 400;
}

/* Inputs sitting in a table row are what make it tall. */
.page-body .table .form-control,
.page-body .table .form-select {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    min-height: 0;
}

/*
 * Sortable headers. The class is added by the script, so a header only looks
 * clickable once it actually is.
 */
.page-body .table th.sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 1.1rem;
}

.page-body .table th.sortable::after {
    content: "";
    position: absolute;
    right: 0.35rem;
    top: 50%;
    margin-top: -0.15rem;
    border-left: 0.25rem solid transparent;
    border-right: 0.25rem solid transparent;
    border-top: 0.3rem solid currentColor;
    opacity: 0.25;
}

.page-body .table th.sorted-asc::after {
    border-top: 0;
    border-bottom: 0.3rem solid currentColor;
    opacity: 0.8;
}

.page-body .table th.sorted-desc::after {
    opacity: 0.8;
}


/*
 * Cards.
 *
 * Tabler sets 1.25rem of padding on every side of a card and the same again
 * between a title and what follows it, which suits a page with one card on it
 * and wastes a screenful on a page with six. These bring it in far enough that
 * a short card reads as short.
 */

.page-body .card {
    --tblr-card-spacer-y: 0.85rem;
    --tblr-card-spacer-x: 1rem;
    --tblr-card-cap-padding-y: 0.6rem;
    --tblr-card-cap-padding-x: 1rem;
}

/*
 * Set outright rather than through the variable above it: Tabler defines
 * .card-title twice and the later rule hard-codes the margin, so the variable
 * never gets a say.
 */
.page-body .card-title {
    margin-bottom: 0.5rem;
}

/* Description lists are the other thing making short cards tall. */
.page-body .card-body dl.row dd,
.page-body .card-body dl.row dt {
    margin-bottom: 0.15rem;
}

/* The alerts inside a card are notes, not announcements. */
.page-body .card-body .alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}


/*
 * The sign in screen.
 *
 * Deliberately unlike the rest of the application: no navigation, no page
 * furniture, one card with the mark on it. The green is the logo's, so the
 * button and the links belong to the same picture rather than to Tabler's
 * default blue.
 */

.auth-page {
    background-color: #f7f8fa;
}

/* The card and the line under it are one column, so they line up. */
.auth-wrap {
    width: 100%;
    max-width: 25rem;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(24, 36, 51, 0.08);
    padding: 2.5rem 2.25rem;
}

.auth-card__logo {
    display: block;
    max-width: 15rem;
    height: auto;
    margin: 0 auto 0.75rem;
}

.auth-card__title {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: #1d273b;
}

/* Filled rather than outlined: the placeholder is the label here. */
.auth-card .form-control {
    background-color: #f4f5f7;
    border-color: transparent;
    border-radius: 0.5rem;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
}

.auth-card .form-control:focus {
    background-color: #fff;
    border-color: var(--asana-green);
    box-shadow: 0 0 0 0.2rem rgba(67, 150, 106, 0.15);
}

.auth-card .btn-asana {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1.05rem;
    color: #fff;
    background-color: var(--asana-green);
    border: 0;
    border-radius: 0.5rem;
}

.auth-card .btn-asana:hover,
.auth-card .btn-asana:focus {
    color: #fff;
    background-color: var(--asana-green-dark);
}

.auth-page a {
    color: var(--asana-green);
    text-decoration: none;
}

.auth-page a:hover {
    text-decoration: underline;
}

.auth-card .form-check-input:checked {
    background-color: var(--asana-green);
    border-color: var(--asana-green);
}


/*
 * Alerts.
 *
 * Tabler lays an alert out as a flex row with a 1rem gap, which suits its
 * icon-beside-text layout. Ours are sentences, and in a flex row every
 * element in one becomes its own column: "rated <strong>48</strong> (C)"
 * came out with a gap either side of the number, as though it were a table.
 *
 * Nothing here uses the icon layout, so they go back to being paragraphs.
 */
.alert {
    display: block;
}


/*
 * Score boxes on the rating form.
 *
 * Narrow, centred, and without the spinner arrows: the arrows are a slower
 * way to do what the keyboard is for, and they take up more of the box than
 * the digit does.
 */
.score-input {
    width: 4rem;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/*
 * A table's column names stay put while its rows scroll.
 *
 * A World Series roster runs past the fold and has fourteen columns; without
 * this, scrolling to the bottom of it leaves somebody guessing which column
 * they are reading.
 */
.page-body table.table thead th,
.page-body .table th.sortable {
    position: sticky;
    top: 0;
    z-index: 2;

    /* Opaque, or the rows show through as they pass underneath. */
    background-color: var(--tblr-bg-surface, #fff);
}


/*
 * The locks, in colour.
 *
 * partials/locks.blade.php says in words what is locked; this tints the bar
 * across the top of every screen to match, so somebody can tell at a glance,
 * and from a screenshot, which way round things are. Colour is never the only
 * statement: the banner is always there with it, for anybody who cannot
 * separate these two tints.
 *
 * Set through Tabler's own variables rather than background-color, so the
 * navbar keeps the inset box-shadow it draws its bottom border with.
 */

/* Either of the two lock dates: restricted, not stopped. */
.lock-restricted .navbar {
    --tblr-navbar-bg: #fdf3d3;
    --tblr-navbar-border-color: #e3bc45;
}

/* The whole database, for maintenance. Nothing moves for anybody. */
.lock-full .navbar {
    --tblr-navbar-bg: #fadcdd;
    --tblr-navbar-border-color: #dc9fa2;
}

/*
 * The note beside the logo. Sized and weighted to be read without competing
 * with the page itself: the bar is not where the detail lives.
 */
.lock-note {
    margin-left: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    color: #6b4e00;
}

.lock-full .lock-note {
    color: #8a2a2e;
}

/* On a phone the bar is already full. The banner below says it all anyway. */
@media (max-width: 575.98px) {
    .lock-note {
        display: none;
    }
}


/*
 * Buttons.
 *
 * The primary action is the logo's green, not Tabler's blue. It was already
 * the green on the sign in screen, and a button that changes colour once you
 * are through the door reads as a different application.
 *
 * Only the primary ones. Red stays red: a button that deletes something
 * should not look like a button that saves it.
 */
.btn-primary {
    --tblr-btn-bg: var(--asana-green);
    --tblr-btn-border-color: var(--asana-green);
    --tblr-btn-hover-bg: var(--asana-green-dark);
    --tblr-btn-hover-border-color: var(--asana-green-dark);
    --tblr-btn-active-bg: var(--asana-green-dark);
    --tblr-btn-active-border-color: var(--asana-green-dark);
    --tblr-btn-disabled-bg: var(--asana-green);
    --tblr-btn-disabled-border-color: var(--asana-green);
    --tblr-btn-focus-shadow-rgb: 67, 150, 106;
}

.btn-outline-primary {
    --tblr-btn-color: var(--asana-green-dark);
    --tblr-btn-border-color: var(--asana-green);
    --tblr-btn-hover-bg: var(--asana-green);
    --tblr-btn-hover-border-color: var(--asana-green);
    --tblr-btn-active-bg: var(--asana-green-dark);
    --tblr-btn-active-border-color: var(--asana-green-dark);
    --tblr-btn-disabled-color: var(--asana-green);
    --tblr-btn-disabled-border-color: var(--asana-green);
    --tblr-btn-focus-shadow-rgb: 67, 150, 106;
}

/* A link styled as a button is still a link, so it takes the link's colour.
   Tabler gives it the primary blue from its own button variables, which this
   file no longer agrees with. */
.btn-link {
    --tblr-btn-color: var(--asana-green-dark);
    --tblr-btn-hover-color: var(--asana-green-darker);
    --tblr-btn-active-color: var(--asana-green-darker);
}

/*
 * The help page.
 *
 * Prose, which the rest of the application is not: tables here are a few rows
 * of explanation rather than a list of two hundred names, and the type wants
 * room to be read rather than scanned.
 */

.help-contents {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.help-body {
    line-height: 1.65;
}

.help-body h2 {
    font-size: 1.5rem;
}

.help-body h2:not(:first-child),
.help-body h3 {
    margin-top: 1.75rem;
}

.help-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.help-body p,
.help-body ul,
.help-body ol {
    margin-bottom: 1rem;
    max-width: 44rem;
}

.help-body li {
    margin-bottom: 0.3rem;
}

/* An explanatory table, not a list view: it keeps its own breathing room
   rather than the tight rows the rest of the application uses. */
.help-body table {
    width: auto;
    max-width: 44rem;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

.help-body th,
.help-body td {
    padding: 0.4rem 1rem 0.4rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
    text-align: left;
    vertical-align: top;
}

.help-body thead th {
    border-bottom-width: 2px;
}

/* The wording of a banner, quoted exactly as it appears on screen. */
.help-body blockquote {
    margin: 0 0 1.25rem;
    padding: 0.6rem 1rem;
    border-left: 3px solid var(--asana-green);
    background: #f6f8f7;
    max-width: 44rem;
}

.help-body blockquote p:last-child {
    margin-bottom: 0;
}

.help-body code {
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    background: var(--tblr-bg-surface-secondary);
}


/* --------------------------------------------------------------------------
   World Series registration

   The pages a player fills in. Wider than the sign-in card and plainer than
   the application: whoever is on these pages is here once a year, on a phone,
   at a kitchen table, and the only thing that matters is that the next thing
   to do is obvious.
   -------------------------------------------------------------------------- */

.reg-page {
    background: #fff;
}

.reg-shell {
    max-width: 52rem;
}

.reg-masthead {
    text-align: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.reg-masthead__logo {
    height: 54px;
    width: auto;
}

.reg-masthead__title {
    margin: 0.75rem 0 0;
    font-size: 1.5rem;
    font-weight: 400;
}

/* The pale green band carrying the player's name, kept from the old form:
   it is the one place that confirms we matched the right person. */
.reg-banner {
    background: #d6e8dd;
    color: var(--asana-green-darker);
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--tblr-border-radius);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.reg-banner__subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

.reg-form {
    margin-bottom: 1.5rem;
}

.reg-field {
    margin-bottom: 0.65rem;
}

.reg-field--check {
    margin-bottom: 0.4rem;
}

.reg-field__label {
    font-weight: 600;
    margin-bottom: 0;
    padding-top: 0.4rem;
}

.reg-field__required {
    color: var(--tblr-danger);
}

.reg-field__note {
    font-size: 0.85rem;
    color: var(--tblr-secondary);
}

.reg-field__note--above {
    margin-bottom: 0.65rem;
}

.reg-field__heading {
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    margin: 1.5rem 0 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tblr-border-color);
}

/* Prose a player has to read before they can agree to it. Constrained in
   height so that a four-thousand word code of conduct does not bury the
   button underneath it, and scrolled rather than truncated so that all of
   it is still there. */
.reg-prose {
    max-height: 26rem;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    background: #fcfdfc;
    font-size: 0.9rem;
    line-height: 1.55;
}

.reg-prose__intro {
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
}

.reg-prose__intro p:last-child {
    margin-bottom: 0;
}

.reg-prose p,
.reg-prose ul,
.reg-prose ol {
    margin-bottom: 0.85rem;
}

.reg-prose li {
    margin-bottom: 0.3rem;
}

.reg-agreement {
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--asana-green);
    border-radius: var(--tblr-border-radius);
    background: #f3f8f5;
}

.reg-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* The button that moves them on takes the room. On the old form it was the
   full width of the page, and that is the one thing about it worth keeping. */
.reg-next {
    flex: 1 1 auto;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 1.05rem;
}

.reg-summary {
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    margin-bottom: 1.25rem;
}

.reg-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.reg-summary__row:last-child {
    border-bottom: 0;
}

.reg-summary__row--total {
    background: #f3f8f5;
    font-size: 1.1rem;
}

.reg-details {
    margin-top: 1.25rem;
}

.reg-details summary {
    cursor: pointer;
    font-weight: 600;
}

.reg-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 1.5rem;
}

.reg-steps__step {
    display: inline-block;
    min-width: 2.4rem;
    padding: 0.35rem 0;
    text-align: center;
    border: 1px solid var(--tblr-border-color);
    margin-left: -1px;
    color: var(--tblr-secondary);
    text-decoration: none;
}

.reg-steps__step:first-child {
    margin-left: 0;
    border-top-left-radius: var(--tblr-border-radius);
    border-bottom-left-radius: var(--tblr-border-radius);
}

.reg-steps__step:last-child {
    border-top-right-radius: var(--tblr-border-radius);
    border-bottom-right-radius: var(--tblr-border-radius);
}

a.reg-steps__step {
    color: var(--asana-green-dark);
}

a.reg-steps__step:hover {
    background: #f3f8f5;
}

.reg-steps__step.is-current {
    background: #b9d8c6;
    color: var(--asana-green-darker);
    font-weight: 600;
    position: relative;
    z-index: 1;
}


/* --------------------------------------------------------------------------
   How wide the page runs

   Tabler stops the main container at 1320px, which was chosen for a content
   site and is too narrow for this one: the roster, series ratings and
   registration tables all have more columns than that comfortably holds, and
   the space either side was doing nothing but pushing them into a horizontal
   scroll.

   Raised here rather than in the five templates that use the class, so the
   header, the navigation, the page heading, the body and the footer can never
   drift apart and leave the page looking stepped.
   -------------------------------------------------------------------------- */

@media (min-width: 1400px) {
    .container-xl {
        max-width: 1620px;
    }
}

/*
 * ---------------------------------------------------------------------
 * The 2026 look
 * ---------------------------------------------------------------------
 *
 * Everything below redresses Tabler rather than replacing it: softer
 * corners, more air, and the brand green used for the one thing on a
 * screen that is current rather than for decoration.
 *
 * Written against Tabler's own classes and a short list of asana-* ones,
 * so a page that has not been touched still comes along.
 */

:root {
    --asana-green-wash: #eef6f1;
    --asana-green-wash-strong: #dfeee6;
    --asana-ink: #182433;
    --asana-muted: #67727e;
    --asana-line: #e6e9ee;
    --asana-radius: 14px;
    --asana-radius-sm: 10px;
}

body {
    background: #f6f8fa;
    color: var(--asana-ink);
}

.asana-icon {
    flex: 0 0 auto;
    vertical-align: -0.2em;
}

/* ---------- The bar across the top ---------- */

.asana-topbar {
    background: #fff;
    border-bottom: 1px solid var(--asana-line);
    padding-block: 0.5rem;
    min-height: 0;
}

.asana-brand img {
    height: 34px;
    width: auto;
    max-height: 34px;
}

.asana-topbar .navbar-nav {
    gap: 0.15rem;
    flex-direction: row;
    align-items: center;
}

.asana-topbar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--asana-radius-sm);
    color: var(--asana-muted);
    font-weight: 500;
    white-space: nowrap;
}

.asana-topbar .nav-link:hover {
    background: #f1f3f6;
    color: var(--asana-ink);
}

/*
 * The current section, as a filled pill.
 *
 * Tabler marks it with a hairline under the text, which is invisible on a
 * bar this busy. A pill is the only green block in the row, which is what
 * makes it readable at a glance.
 */
.asana-topbar .nav-item.active > .nav-link,
.asana-topbar .nav-item.active > .nav-link:hover {
    background: var(--asana-green-wash);
    color: var(--asana-green-darker);
    font-weight: 600;
}

.asana-topbar .nav-item.active > .nav-link .asana-icon {
    color: var(--asana-green);
}

/* Tabler draws its own underline on an open or active item. */
.asana-topbar .nav-link::after,
.asana-topbar .nav-item::after {
    display: none !important;
}

.asana-topbar .dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.15rem;
    opacity: 0.6;
}

/* ---------- Who is signed in ---------- */

.asana-account {
    gap: 0.35rem;
    align-items: center;
    margin-left: auto;
}

.asana-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--asana-muted);
}

.asana-bell:hover {
    background: #f1f3f6;
    color: var(--asana-ink);
}

.asana-bell__dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--asana-green);
    border: 2px solid #fff;
}

.asana-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.4rem 0.25rem 0.6rem;
    border-radius: 999px;
    color: inherit;
}

.asana-user:hover {
    background: #f1f3f6;
}

.asana-user__who {
    line-height: 1.25;
    text-align: right;
}

.asana-user__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--asana-ink);
}

.asana-user__email {
    font-size: 0.75rem;
    color: var(--asana-muted);
}

.asana-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--asana-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.asana-user__chevron {
    color: var(--asana-muted);
}

/* ---------- The toolbar ---------- */

.asana-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--asana-line);
    padding-block: 0.65rem;
}

.asana-toolbar .container-xl {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.asana-toolbar__league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem 0.3rem 0.85rem;
    border: 1px solid var(--asana-line);
    border-radius: 999px;
    background: #fff;
    color: var(--asana-muted);
    min-width: 0;
}

.asana-toolbar__league .form-select {
    border: 0;
    box-shadow: none;
    padding: 0 1.75rem 0 0;
    background-position: right 0.25rem center;
    font-weight: 500;
    color: var(--asana-ink);
    width: auto;
    max-width: 18rem;
}

.asana-toolbar__league .form-select:focus {
    box-shadow: none;
}

.asana-toolbar__league--fixed {
    padding-right: 1rem;
    color: var(--asana-ink);
    font-weight: 500;
}

.asana-toolbar__search {
    margin-left: auto;
    min-width: min(22rem, 100%);
}

.asana-toolbar__search .input-group {
    border: 1px solid var(--asana-line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.asana-toolbar__search .form-control,
.asana-toolbar__search .btn {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.asana-toolbar__search .form-control {
    padding-left: 1rem;
}

.asana-toolbar__search .btn {
    color: var(--asana-green-dark);
    font-weight: 600;
}

/* ---------- Page header ---------- */

.page-header {
    margin-block: 1.25rem 0.25rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-pretitle {
    letter-spacing: 0.08em;
    font-size: 0.6875rem;
}

/* ---------- Cards ---------- */

.page-body .card {
    border: 1px solid var(--asana-line);
    border-radius: var(--asana-radius);
    box-shadow: 0 1px 2px rgba(24, 36, 51, 0.04);
    --tblr-card-spacer-y: 1.05rem;
    --tblr-card-spacer-x: 1.15rem;
    --tblr-card-cap-padding-y: 0.9rem;
    --tblr-card-cap-padding-x: 1.15rem;
}

.page-body .card-header {
    border-bottom: 1px solid var(--asana-line);
    background: transparent;
}

.page-body .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 650;
}

.page-body .card-title .asana-icon {
    color: var(--asana-green);
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: var(--asana-radius-sm);
    font-weight: 550;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--asana-green);
    border-color: var(--asana-green);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--asana-green-dark);
    border-color: var(--asana-green-dark);
}

.btn-pill,
.asana-toolbar .btn {
    border-radius: 999px;
}

/* ---------- Tables ---------- */

.page-body .table thead th {
    letter-spacing: 0.06em;
    font-size: 0.6875rem;
    color: var(--asana-muted);
    border-bottom: 1px solid var(--asana-line);
}

/*
 * Tight rows. These tables are read by the screenful — nine teams, forty
 * players, a page of history — and roomy rows meant scrolling to see a list
 * that fits. The badges and links inside a cell set the real floor on how
 * short a row can be, so this is close to it.
 */
.page-body .table > :not(caption) > * > * {
    padding-block: 0.3rem;
}

.page-body .table tbody td,
.page-body .table tbody th {
    line-height: 1.35;
}

/* A badge sitting in a row is otherwise what decides the row's height. */
.page-body .table tbody .badge {
    padding-block: 0.15rem;
}

/*
 * Banding off, lines on.
 *
 * Stripes were doing the work of keeping an eye on one row when the rows
 * were tight. With this much air a hairline does it without turning every
 * other row grey, which was the loudest thing on a page otherwise built
 * out of white cards.
 */
.page-body .table > tbody > tr:nth-of-type(even) > * {
    --tblr-table-bg-type: initial;
}

.page-body .table > tbody > tr + tr > * {
    border-top: 1px solid var(--asana-line);
}

.page-body .table tbody tr:hover > * {
    background: #fafbfc;
}

/* ---------- Alerts ---------- */

.page-body .alert {
    border-radius: var(--asana-radius);
    border: 1px solid var(--asana-line);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-body .alert-info {
    background: #f3f7fb;
    color: var(--asana-ink);
}

.page-body .alert-success {
    background: var(--asana-green-wash);
    border-color: var(--asana-green-wash-strong);
    color: var(--asana-green-darker);
}

@media (max-width: 767.98px) {

    .asana-topbar .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 0.5rem;
    }

    .asana-toolbar__search {
        margin-left: 0;
        width: 100%;
    }
}

/*
 * Brand, then where you can go, then who you are.
 *
 * The links take the space that is left and the account block is pinned to
 * the right, so a long league name in the middle cannot push the avatar off
 * the end of the bar.
 */
.asana-topbar__links {
    min-width: 0;
}

.asana-topbar__links .navbar-nav {
    flex-wrap: wrap;
}

@media (min-width: 768px) {

    .asana-topbar .container-xl {
        flex-wrap: nowrap;
    }

    /*
     * Only once this is a bar. Narrower than that the links are a drawer
     * that drops below the brand, and they keep the full-width basis the
     * drawer is built on: given `auto` instead, the drawer sizes itself to
     * its contents and opens as a narrow column pinned against the right
     * edge, with the logo stranded beside it. It came right only when
     * something inside grew too wide to sit there, which opening a menu
     * did — so it looked like a bug that fixed itself on the first tap.
     */
    .asana-topbar__links {
        flex: 1 1 auto;
        margin-left: 1.25rem;
    }

    .asana-account {
        flex: 0 0 auto;
    }
}

/* ---------- The banner at the top of a page about one thing ---------- */

.asana-hero {
    background:
        radial-gradient(120% 140% at 85% 0%, #dcefe3 0%, rgba(220, 239, 227, 0) 60%),
        linear-gradient(180deg, var(--asana-green-wash) 0%, #f4f9f6 100%);
    border-bottom: 1px solid var(--asana-green-wash-strong);
    padding-block: 1.5rem;

    /* No margin of its own. The page body below already brings its own
       space, and the two stacked put the first card most of an inch below
       a banner it belongs to. The border is what separates them. */
    margin-bottom: 0;
}

.asana-hero__row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.asana-hero__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fff;
    color: var(--asana-green);
    border: 1px solid var(--asana-green-wash-strong);
    flex: 0 0 auto;
}

.asana-hero__name {
    min-width: 0;
}

.asana-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--asana-muted);
}

.asana-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0.1rem 0 0.15rem;
    line-height: 1.15;
}

.asana-hero__where,
.asana-hero__where a {
    color: var(--asana-green-dark);
    font-weight: 500;
    font-size: 0.875rem;
}

.asana-hero__dot {
    color: var(--asana-muted);
    margin-inline: 0.15rem;
}

.asana-hero__badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.asana-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    color: var(--asana-green-darker);
    border: 1px solid var(--asana-green-wash-strong);
}

/*
 * The figures, inline rather than in a card.
 *
 * Pushed to the right on a wide screen and allowed to wrap underneath on a
 * narrow one, so the name always has the left edge.
 */
.asana-hero__stats {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    margin-left: auto;
}

.asana-hero__stats dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--asana-muted);
    margin-bottom: 0.15rem;
}

.asana-hero__stats dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.asana-hero__stats .badge {
    font-size: 0.95rem;
    padding: 0.2rem 0.55rem;
}

.asana-hero__provisional {
    color: var(--asana-muted);
    font-weight: 500;
    cursor: help;
}

.asana-hero__people {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.asana-hero__label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--asana-muted);
    margin-bottom: 0.1rem;
}

.asana-hero__edit {
    background: #fff;
}

@media (max-width: 991.98px) {

    .asana-hero__stats,
    .asana-hero__people {
        margin-left: 0;
        width: 100%;
        gap: 1.25rem;
        flex-wrap: wrap;
    }
}

/*
 * The bar is eight items wide before anybody has a long league name, so it
 * is tightened rather than allowed to wrap onto a second line.
 */
@media (min-width: 992px) and (max-width: 1599.98px) {

    .asana-topbar .nav-link {
        padding-inline: 0.5rem;
        gap: 0.3rem;
        font-size: 0.875rem;
    }

    .asana-topbar__links {
        margin-left: 0.75rem;
    }
}

/*
 * The season card.
 *
 * Tinted because it is the only card on the page somebody is meant to act
 * on rather than read. A column of identical white boxes gave the one with
 * a button in it no more weight than the one listing who has left.
 */
.page-body .card-season {
    background: linear-gradient(180deg, var(--asana-green-wash) 0%, #f7fbf9 100%);
    border-color: var(--asana-green-wash-strong);
}

.page-body .card-season .btn-primary {
    width: 100%;
    justify-content: center;
}

/*
 * The division and the score.
 *
 * These are the two numbers the whole page exists to produce, and they were
 * set at the same weight as the labels around them. Bigger and heavier in
 * both places they appear — the banner and the card — so that the answer is
 * findable from across a desk.
 */
.asana-hero__stats dd {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.asana-hero__stats .badge {
    font-size: 1.35rem;
    font-weight: 800;
    padding: 0.1rem 0.7rem;
    border-radius: 10px;
    line-height: 1.25;
}

/* The big letter in the classification card, and the sum beside it. */
.page-body .card .badge.fs-2 {
    font-size: 1.9rem !important;
    font-weight: 800;
    padding: 0.15rem 0.8rem;
    border-radius: 12px;
    line-height: 1.2;
}

.page-body .card .badge.fs-2 + div .h3 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/*
 * Cards stacked in a column.
 *
 * Down a narrow column they sat edge to edge, which read as one tall card
 * with rules through it rather than as three separate answers. Set here
 * rather than as a margin in the markup so every stacked column in the
 * application is spaced the same, including ones nobody has looked at.
 */
.page-body .row-cards > [class*="col-"] > .card + .card {
    margin-top: 1rem;
}

/*
 * Links in the body.
 *
 * Almost every link on a page of lists is a person or a team — the thing
 * the row is about — so they carry the weight. Colour alone was doing it,
 * and green against grey at this size is a quiet difference to ask
 * somebody to find forty times down a roster.
 *
 * Buttons and menu items are excluded: those have their own weight, and a
 * button that is also a link would end up heavier than the rest.
 */
.page-body .table a:not(.btn),
.page-body .card-body a:not(.btn):not(.dropdown-item) {
    font-weight: 600;
}

/* ---------- Things only some heroes have ---------- */

.asana-hero__pronouns {
    font-size: 1rem;
    font-weight: 500;
    color: var(--asana-muted);
    margin-left: 0.4rem;
}

.asana-hero__logo {
    max-height: 44px;
    max-width: 44px;
    width: auto;
    object-fit: contain;
}

.asana-hero__none {
    font-size: 1rem;
    font-weight: 500;
    color: var(--asana-muted);
}

/* A date is read, not compared, so it does not want the weight a score has. */
.asana-hero__date {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* A count of what is still wanting, rather than of what is there. */
.asana-hero__wanting {
    color: #b5651d;
}

/*
 * The league page carries half a dozen buttons. They wrap rather than
 * squeezing the name, and keep a white ground so they read as controls
 * against the tinted band.
 */
.asana-hero__people {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.asana-hero__people .btn {
    background: #fff;
}

.asana-hero__people .btn-primary {
    background: var(--asana-green);
}

.asana-hero__people .btn-primary:hover {
    background: var(--asana-green-dark);
}

/*
 * The class and the score in a list of teams.
 *
 * These are what somebody is scanning a league or a series for, and they
 * were set at the weight of the manager's email beside them. The same
 * treatment the team page gives them, scaled down to a table row — the
 * letter a step larger again, because it is read first and the score is
 * what explains it.
 */
.page-body .asana-cell-class .badge {
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.15rem 0.6rem;
    border-radius: 8px;
    line-height: 1.3;
}

/* Named with the element, so it outranks the weight every body cell gets. */
.page-body .table tbody td.asana-cell-score {
    font-weight: 700;
    font-size: 1rem;
    color: var(--asana-ink);
}

/*
 * The manager's row on a roster.
 *
 * Tinted so a desk can find them without reading every name. The tint is
 * deliberately lighter than the one on the season card: that card is
 * something to press, this row is something to notice.
 *
 * The (M) beside the name says the same thing in text, because a row that
 * only differs by colour says nothing to somebody who cannot see the
 * difference, and nothing at all in print.
 */
.page-body .table > tbody > tr.asana-row-manager > * {
    background: var(--asana-green-wash);
}

.page-body .table > tbody > tr.asana-row-manager:hover > * {
    background: var(--asana-green-wash-strong);
}

.asana-manager-mark {
    margin-left: 0.3rem;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--asana-green-dark);
    cursor: help;
}

/*
 * A standing notice on the sign in page.
 *
 * Not an alert: alerts on this page are about what just happened — a
 * password rejected, a reset sent — and they come and go. This is always
 * there, so it is quieter than one and still impossible to walk past.
 */
.auth-notice {
    background: var(--asana-green-wash);
    border: 1px solid var(--asana-green-wash-strong);
    border-radius: var(--asana-radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--asana-ink);
}

.auth-notice a {
    font-weight: 600;
    white-space: nowrap;
}

/* The terms page. Narrower measure and a little more line height than the
   forms around it, because this is the one screen here anybody actually
   reads rather than fills in. */
.terms-body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--asana-ink);
}

.terms-body p:last-child {
    margin-bottom: 0;
}

/* The rebuild-caches page. A plain list of what ran and what it said —
   whoever is looking at this is checking whether four commands worked, not
   reading prose. */
.deploy-output {
    border: 1px solid var(--asana-green-wash-strong);
    border-radius: var(--asana-radius-sm);
    background: var(--asana-green-wash);
    padding: 0.75rem 0.9rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.deploy-output__row {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.2rem 0;
}

.deploy-output__mark.is-ok {
    color: #2f7a3d;
    font-weight: 700;
}

.deploy-output__mark.is-bad {
    color: #b02a37;
    font-weight: 700;
}

.deploy-output__detail {
    color: var(--asana-ink);
    opacity: 0.75;
}

/* Lists of people, to the same measure as the tables. A roster beside the
   control that adds to it is there to be glanced at while you work down a
   team sheet, and Tabler's default padding turned eleven names into a scroll. */
.page-body .list-group-item {
    padding-block: 0.3rem;
    line-height: 1.35;
}

.page-body .list-group-item .badge {
    padding-block: 0.15rem;
}

/* A button in a row should not be what decides the row's height. The roster
   carries a Remove button and the ratings list carries nothing, which is the
   whole reason one sat taller than the other at the same padding. */
.page-body .table tbody .btn-sm {
    padding-block: 0.05rem;
    line-height: 1.3;
}
