/* Games list — background color per day-of-week for the date column.
   One entry per day; edit the background / text colors here to taste. */
.day-sun { background-color: #f19b91; color: #000000; }  /* Sunday    — red    */
.day-mon { background-color: #a4f76a; color: #000000; }  /* Monday    — orange */
.day-tue { background-color: #3274b5; color: #000000; }  /* Tuesday   — amber  */
.day-wed { background-color: #e2792e; color: #000000; }  /* Wednesday — green  */
.day-thu { background-color: #98faea; color: #000000; }  /* Thursday  — teal   */
.day-fri { background-color: #73bff9; color: #000000; }  /* Friday    — blue   */
.day-sat { background-color: #fdf171; color: #000000; }  /* Saturday  — violet */

body {
    background-color: #1c1c1c;  /* base-200 */
    background-image: url('images/background_50.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: 75%;
    /* Clears the fixed navbar (daisyUI's 4rem min-height) exactly. The gap below it comes from each
       page's own top padding (pt-10). This sits outside Tailwind's layers, so it overrides the
       body's p-8 top padding. */
    padding-top: 4rem;
}

/* The "Acting for" banner sits fixed under the navbar (text-sm line + py-1): clear it too, so it
   doesn't cover the page's title. */
body:has(#acting-for-banner) {
    padding-top: calc(4rem + 1.75rem);
}

input[type="date"].rit-empty-datetime::-webkit-datetime-edit-month-field,
input[type="date"].rit-empty-datetime::-webkit-datetime-edit-day-field,
input[type="date"].rit-empty-datetime::-webkit-datetime-edit-year-field,
input[type="time"].rit-empty-datetime::-webkit-datetime-edit-hour-field,
input[type="time"].rit-empty-datetime::-webkit-datetime-edit-minute-field,
input[type="time"].rit-empty-datetime::-webkit-datetime-edit-second-field,
input[type="time"].rit-empty-datetime::-webkit-datetime-edit-millisecond-field,
input[type="time"].rit-empty-datetime::-webkit-datetime-edit-ampm-field,
input[type="time"].rit-empty-datetime::-webkit-datetime-edit-meridiem-field {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}



/* DaisyUI's .tooltip sets display:inline-block, which knocks an icon off-center inside a .btn.
   Restore the button's flex centering for icon buttons that also carry a tooltip (e.g. the
   accept/decline actions in referee-actions). */
.btn.tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* daisyUI tooltips (`tooltip` + `data-tip`) are the only tooltips on the site — no native `title`
   tooltips. `.tooltip` makes its element inline-block, so keep buttons, badges and cards laid out
   as daisyUI draws them. (Plain CSS outside Tailwind's layers, so these win over the component.) */
.btn.tooltip { display: inline-flex; align-items: center; justify-content: center; }
.badge.tooltip { display: inline-flex; }
.card.tooltip { display: flex; }

/* Tooltips are drawn by `initFloatingTooltips` (reffingit.js) in the top layer, where containers
   can't clip them, so hide daisyUI's own (except the schedule grid's #cell-tip, which places itself). */
.tooltip:not(#cell-tip)[data-tip]::before,
.tooltip:not(#cell-tip)[data-tip-from]::before,
.tooltip:not(#cell-tip)::after { display: none; }
.rit-tooltip {
    position: fixed;
    inset: auto;
    margin: 0;
    border: 0;
    max-width: 20rem;
    width: max-content;
    padding: .25rem .5rem;
    border-radius: min(var(--radius-field), .8rem);
    background-color: var(--color-neutral);
    color: var(--color-neutral-content);
    font-size: .875rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    overflow: visible;
}
/* Page descriptions shown from the ⓘ after a title (data-tip-from) are paragraphs, not labels. */
.rit-tooltip.rit-tooltip-wide {
    max-width: min(32rem, calc(100vw - 2rem));
    padding: .5rem .75rem;
    line-height: 1.4;
}

/* Focus rings in the brand amber. daisyUI colors a focused field from its --input-color (white text
   color in our theme), so pointing that at the primary color turns the field's outline and edge
   amber. Everything else reached by keyboard (buttons, links, checkboxes, toggles) gets the same
   amber ring; a mouse click on a button shows none, as browsers decide with :focus-visible. */
.input:focus, .input:focus-within,
.select:focus, .select:focus-within,
.textarea:focus, .textarea:focus-within,
.file-input:focus, .file-input:focus-within {
    --input-color: var(--color-primary);
}
:focus-visible {
    outline-color: var(--color-primary);
}

/* Dropdown caret for buttons that open a popover menu: the same mark daisyUI draws on the
   menubar's <details> menus (a small chevron made of a rotated corner), pointing up while open.
   `reffingit.js` sets aria-expanded on the button as its popover opens and closes. */
.rit-caret {
    display: inline-block;
    flex-shrink: 0;
    width: .375rem;
    height: .375rem;
    margin-inline-start: .25rem;
    translate: 0 -1px;
    rotate: -135deg;
    box-shadow: inset 2px 2px;
    transition-property: rotate, translate;
    transition-duration: .2s;
    pointer-events: none;
}
[aria-expanded="true"] > .rit-caret {
    translate: 0 1px;
    rotate: 45deg;
}

/* Phone menu (navbar): its submenus open in place, not as the desktop bar's floating dropdowns. */
#main-menu details > ul { position: static; width: auto; box-shadow: none; padding: 0; margin-inline-start: 1rem; }
