Files
hope-food-pantry-app/public/css/app.css
T
blake b039eef5ae feat: enhance confirmation page and email templates with receipt layout and directions
Refactored the ConfirmationPage component to utilize a new receipt layout for improved clarity on signup status. Added a directions note to the email templates for better user guidance. Updated styles for the receipt elements to ensure consistency and visual appeal.
2026-10-28 15:20:11 -05:00

4733 lines
78 KiB
CSS

/* Load public/brand/tokens.css before this file.
Color and type come from those variables.
Lexend and Charm are self-hosted so this matches hopefoodpantrysc.org
without a request to Google Fonts. */
@font-face {
font-family: "Lexend";
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../brand/fonts/lexend-latin.woff2") format("woff2");
}
@font-face {
font-family: "Charm";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("../brand/fonts/charm-400.woff2") format("woff2");
}
@font-face {
font-family: "Charm";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("../brand/fonts/charm-700.woff2") format("woff2");
}
:root {
color-scheme: light;
--hope-shadow: 0 4px 10px #22222240;
--hope-shadow-soft: 0 2px 2px #22222240;
--hope-yellow-hover: #fae7a9;
--hope-blue-wash: rgb(228 243 251 / 0.82);
--hope-open: #e4f0d8;
--hope-open-edge: #c5d7b4;
--hope-full: #f6e2de;
--hope-full-edge: #e4c4be;
--hope-scrollbar-size: 14px;
--hope-scrollbar-thumb: var(--hope-gold);
--hope-scrollbar-thumb-hover: color-mix(in srgb, var(--hope-gold) 72%, var(--hope-ink));
--hope-scrollbar-track: color-mix(in srgb, var(--hope-border) 48%, var(--hope-blue-100));
}
*,
*::before,
*::after {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
html {
height: 100%;
scroll-behavior: smooth;
}
html,
body {
overflow-x: hidden;
}
/* Gold pill on a soft track, the same family as the buttons. */
html {
scrollbar-width: thin;
scrollbar-color: var(--hope-scrollbar-thumb) var(--hope-scrollbar-track);
}
@supports selector(::-webkit-scrollbar) {
html {
scrollbar-width: auto;
scrollbar-color: auto;
}
*::-webkit-scrollbar {
width: var(--hope-scrollbar-size);
height: var(--hope-scrollbar-size);
}
*::-webkit-scrollbar-button {
display: none;
width: 0;
height: 0;
}
*::-webkit-scrollbar-track {
background: var(--hope-scrollbar-track);
border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
background: var(--hope-yellow);
border: 2px solid var(--hope-gold);
border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
background: var(--hope-yellow-hover);
}
*::-webkit-scrollbar-corner {
background: transparent;
}
}
body {
display: flex;
flex-direction: column;
min-height: 100%;
margin: 0;
font-family: var(--font-body);
font-size: 1.125rem;
font-weight: 400;
color: var(--hope-ink);
background: var(--hope-blue-50);
line-height: 1.7;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.skip-link {
position: absolute;
left: 0.75rem;
top: 0.75rem;
transform: translateY(-150%);
background: var(--hope-yellow);
color: var(--hope-ink);
padding: 0.75rem 1.1rem;
min-height: 44px;
border-radius: 999px;
border: 1px solid var(--hope-gold);
box-shadow: var(--hope-shadow-soft);
z-index: 1100;
text-decoration: none;
font-weight: 650;
}
.skip-link:focus {
transform: none;
}
:focus-visible {
outline: 3px solid var(--hope-ink);
outline-offset: 3px;
}
main:focus,
main:focus-visible {
outline: none;
}
/* Header. Pixel sizes match hopefoodpantrysc.org, whose root font size is 10px. */
a.btn,
button,
.inline-form button,
.move-form button,
.signup-form button,
.cancel-form button {
position: relative;
z-index: 0;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 44px;
padding: 0.65rem 1.35rem;
border-radius: 999px;
border: 1px solid var(--hope-gold);
background: var(--hope-yellow);
color: var(--hope-ink);
box-shadow: var(--hope-shadow-soft);
font: inherit;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: transform 0.3s ease;
}
a.btn::before,
button::before,
.btn-card::before {
content: "";
position: absolute;
inset: 0 auto 0 -100%;
width: 100%;
background: var(--hope-yellow-hover);
transition: left 0.3s ease;
z-index: -1;
}
a.btn:hover::before,
button:hover::before,
.btn-card:hover::before {
left: 0;
}
a.btn:hover,
a.btn:active {
transform: scale(1.08);
text-decoration: none;
color: var(--hope-ink);
}
/* Same-origin clicks crossfade. Named chrome stays in place while the page changes. */
@view-transition {
navigation: auto;
}
.header {
position: relative;
font-size: 18px;
line-height: 1.8;
font-weight: 400;
color: #222;
}
.nav {
view-transition-name: site-header;
left: 0;
position: fixed;
z-index: 999;
padding: 10px 5%;
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
background: linear-gradient(
to bottom,
rgb(236 247 252 / 0.75) 0%,
rgb(236 247 252 / 0.75) 50%,
transparent 100%
);
}
.logo {
max-width: 230px;
height: auto;
margin-bottom: 0.5925em;
transition: all 0.5s;
}
.logo:hover {
transform: scale(1.1);
}
.nav-links {
list-style: none;
display: flex;
gap: 50px;
margin: 0;
background-color: #e4f3fb;
padding: 15px 30px;
border-radius: 50px;
box-shadow: 0 4px 4px #22222240;
justify-content: center;
align-items: center;
}
.main-nav-link:link,
.main-nav-link:visited {
display: inline-block;
text-decoration: none;
color: #222;
transition: all 0.3s;
}
.main-nav-link:hover,
.main-nav-link:active {
text-decoration: none;
transform: scale(1.1);
color: #444;
}
.nav-links .btn:link,
.nav-links .btn:visited {
min-height: 0;
padding: 10px 30px;
border-radius: 50px;
border: 1px solid #fbcd62;
background-color: #f9e194;
color: #222;
box-shadow: 0 2px 2px #22222240;
font-weight: 400;
gap: 0;
transition: all 0.3s;
}
.nav-links .btn:hover,
.nav-links .btn:active {
transform: scale(1.1);
color: #222;
text-decoration: none;
}
.btn-mobile-nav {
display: none;
z-index: 1000;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: none;
box-shadow: none;
min-height: 0;
overflow: visible;
line-height: 0;
cursor: pointer;
}
.btn-mobile-nav::before {
content: none;
}
.btn-mobile-nav:hover,
.btn-mobile-nav:active {
transform: none;
background: none;
}
.icon-mobile-nav {
width: 50px;
height: 50px;
}
.icon-mobile-nav[name="close"] {
display: none;
}
.header.nav-open .icon-mobile-nav[name="close"] {
display: block;
}
.header.nav-open .icon-mobile-nav[name="open"] {
display: none;
}
.session-bar {
view-transition-name: session-bar;
position: fixed;
z-index: 1000;
top: 118px;
right: 5%;
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 28px;
margin: 0;
padding: 0;
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
font-size: 18px;
line-height: 1;
}
.session-bar a,
.session-logout button {
position: relative;
display: inline-flex;
align-items: center;
min-height: 44px;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
overflow: visible;
color: #222;
font: inherit;
font-size: 18px;
font-weight: 400;
line-height: 1;
text-decoration: none;
cursor: pointer;
transition: transform 0.3s;
}
.session-bar a:hover,
.session-bar a:active,
.session-logout button:hover,
.session-logout button:active {
transform: scale(1.1);
background: transparent;
color: #444;
}
.session-bar a.session-entry,
.session-bar a[aria-current="page"] {
font-weight: 650;
}
.session-bar a[aria-current="page"]::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 7px;
height: 2px;
border-radius: 999px;
background: var(--hope-gold);
}
.session-logout {
display: flex;
align-items: center;
position: relative;
width: max-content;
margin: 0;
padding-left: 28px;
}
.session-logout::before {
content: "";
position: absolute;
left: 0;
top: 50%;
height: 18px;
transform: translateY(-50%);
border-left: 1px solid var(--hope-border);
}
.session-logout button::before {
content: none;
}
/* Page */
main {
flex: 1 0 auto;
width: min(72rem, calc(100% - 2rem));
margin-inline: auto;
padding: 9rem 0 3rem;
}
h1,
h2,
h3 {
line-height: 1.2;
letter-spacing: -0.03em;
font-weight: 500;
}
h1 {
width: fit-content;
max-width: 100%;
margin: 0.2rem 0 0.75rem;
font-size: 2.75rem;
}
h2 {
margin: 0 0 0.35rem;
font-size: 1.85rem;
}
h3 {
margin: 0;
font-size: 1.3rem;
font-weight: 650;
}
.location,
.zone,
.description,
.empty,
.spots,
.status,
.when,
.shift-date {
margin: 0.3rem 0;
}
.description {
white-space: pre-wrap;
}
main a {
color: var(--hope-ink);
text-underline-offset: 0.15em;
}
main a:hover {
color: var(--hope-ink-2);
}
.receipt {
display: grid;
gap: 1.05rem;
width: 100%;
}
.receipt-head {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 0.85rem 1rem;
align-items: center;
}
.receipt h1 {
margin: 0;
font-size: clamp(2rem, 4vw, 2.55rem);
}
.receipt-mark {
display: grid;
place-items: center;
width: 3.35rem;
height: 3.35rem;
border-radius: 999px;
background: var(--hope-yellow);
border: 1px solid var(--hope-gold);
box-shadow: var(--hope-shadow-soft);
color: var(--hope-ink);
}
.receipt.is-cancelled .receipt-mark {
background: var(--hope-full);
border-color: var(--hope-full-edge);
}
.receipt-mark svg {
display: block;
width: 1.65rem;
height: 1.65rem;
}
.receipt-mark path {
fill: none;
stroke: currentColor;
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
}
.receipt-summary {
margin: 0.2rem 0 0;
}
.receipt .spots,
.receipt-hold {
margin-top: 0.65rem;
}
.receipt-hold {
display: inline-block;
width: fit-content;
padding: 0.15rem 0.7rem;
border: 1px solid var(--hope-border-2);
border-radius: 999px;
background: #fff;
font-weight: 650;
}
.receipt-card {
display: flex;
flex-direction: column;
width: min(44rem, 100%);
margin: 0;
padding: 0;
overflow: hidden;
background: #fff;
border-radius: 1.75rem;
box-shadow: var(--hope-shadow);
}
.receipt-banner {
margin: 0;
padding: 0.75rem 1.15rem;
background: var(--hope-yellow);
color: var(--hope-ink);
font-size: 1.35rem;
font-weight: 650;
line-height: 1.25;
letter-spacing: -0.02em;
text-align: center;
}
.receipt.is-cancelled .receipt-banner {
background: var(--hope-full);
}
.receipt-body {
display: grid;
gap: 0.85rem;
align-content: start;
flex: 1;
padding: 1.05rem 1.25rem 1.2rem;
}
.receipt-role,
.receipt-when,
.receipt-where,
.receipt-note {
margin: 0;
}
.receipt-role,
.receipt-date,
.receipt-clock,
.receipt-where {
display: block;
}
.receipt-role,
.receipt-date,
.receipt-where {
font-size: 1.2rem;
font-weight: 650;
line-height: 1.35;
}
.receipt-clock {
margin-top: 0.15rem;
color: var(--hope-ink-2);
font-weight: 500;
}
.receipt-note {
color: var(--hope-ink-2);
font-size: 1.02rem;
line-height: 1.55;
}
.receipt-link {
display: block;
margin-top: auto;
padding: 0.9rem 1.25rem 1rem;
overflow-wrap: anywhere;
background: var(--hope-blue-100);
color: var(--hope-ink);
font-size: 1rem;
font-weight: 650;
line-height: 1.45;
text-decoration: none;
user-select: all;
word-break: break-all;
}
.receipt-link:hover,
.receipt-link:active {
background: var(--hope-blue-75);
color: var(--hope-ink);
text-decoration: none;
}
.signup-board {
margin-top: 1.25rem;
}
.schedule-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem 1.25rem;
margin: 0 0 1rem;
}
.view-menu {
position: relative;
width: fit-content;
}
.view-menu > summary {
display: inline-flex;
align-items: center;
gap: 0.45rem;
min-height: 2.5rem;
padding: 0.2rem 0.85rem;
list-style: none;
cursor: pointer;
background: #fff;
border: 1px solid var(--hope-border-2);
border-radius: 999px;
color: var(--hope-ink);
font-weight: 650;
}
.view-menu > summary::-webkit-details-marker {
display: none;
}
.view-menu > summary::marker {
content: "";
}
.view-menu > summary::after {
content: "";
width: 0.4rem;
height: 0.4rem;
margin-left: 0.15rem;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: translateY(-0.12rem) rotate(45deg);
}
.view-menu[open] > summary::after {
transform: translateY(0.12rem) rotate(225deg);
}
.view-menu-kicker {
color: var(--hope-ink-2);
font-weight: 500;
}
.view-menu-list {
position: absolute;
z-index: 4;
top: calc(100% + 0.35rem);
left: 0;
display: grid;
min-width: 100%;
padding: 0.3rem;
background: #fff;
border-radius: 1rem;
box-shadow: var(--hope-shadow);
}
.view-menu-list a {
padding: 0.45rem 0.8rem;
border-radius: 0.7rem;
color: var(--hope-ink);
font-weight: 650;
text-decoration: none;
white-space: nowrap;
}
.view-menu-list a:hover,
.view-menu-list a:active {
background: var(--hope-blue-75);
color: var(--hope-ink);
text-decoration: none;
}
.view-menu-list a[aria-current='page'] {
background: var(--hope-yellow);
}
.window-note {
flex: 1 1 16rem;
min-width: 0;
margin: 0;
color: var(--hope-ink-2);
text-align: right;
}
@media (max-width: 42em) {
.schedule-bar {
flex-wrap: wrap;
}
.window-note {
flex-basis: 100%;
text-align: left;
}
.view-menu[open] {
margin-bottom: 6.4rem;
}
}
.day-board {
list-style: none;
display: grid;
gap: 1.25rem;
margin: 0;
padding: 0;
}
.day-card {
overflow: hidden;
background: var(--hope-blue-50);
border-radius: 1.75rem;
box-shadow: var(--hope-shadow);
container: day / inline-size;
}
.day-card[aria-current='date'] {
outline: 2px solid var(--hope-ink);
outline-offset: 2px;
}
.day-card-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: center;
gap: 0.35rem 0.85rem;
padding: 0.95rem 1.1rem;
background: var(--hope-yellow);
text-align: center;
}
.day-card-dow {
margin: 0;
font-size: 1.05rem;
font-weight: 650;
}
.day-card-head h2 {
margin: 0;
font-size: 1.35rem;
font-weight: 700;
}
.day-card-head .today-flag {
align-self: center;
}
.day-card-shifts {
display: grid;
grid-template-columns: 1fr;
gap: 1px;
background: var(--hope-border-2);
}
/* A row is 4, 2, or 1. Three columns leaves one shift alone on the next row. */
@container day (min-width: 32rem) {
.day-card-shifts:has(> :nth-child(2)) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@container day (min-width: 64rem) {
.day-card-shifts:has(> :nth-child(4)) {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.shift-pane {
display: flex;
flex-direction: column;
min-width: 0;
background: var(--hope-blue-50);
}
.shift-pane-body {
display: grid;
gap: 0.15rem;
flex: 1;
padding: 1rem 1.2rem 0.85rem;
}
.shift-pane-body h3 {
margin-bottom: 0.15rem;
}
.roster-label {
margin: 0.75rem 0 0.2rem;
color: var(--hope-ink-2);
font-size: 0.82rem;
font-weight: 650;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.roster-names {
list-style: none;
margin: 0;
padding: 0;
}
.roster-names li {
display: flex;
align-items: center;
gap: 0.45rem;
padding: 0.12rem 0;
}
.roster-names li span {
min-width: 0;
}
.roster-mark {
width: 1.5rem;
height: 1.5rem;
flex: none;
}
.roster-empty {
margin: 0;
color: var(--hope-ink-2);
}
.shift-calendar {
margin-top: 0.25rem;
}
.month-nav {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: 0.5rem 0.75rem;
margin: 0 0 0.35rem;
}
.month-nav a {
width: 2.75rem;
height: 2.75rem;
min-height: 2.75rem;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--hope-gold);
border-radius: 999px;
background: var(--hope-yellow);
color: var(--hope-ink);
box-shadow: var(--hope-shadow-soft);
text-decoration: none;
}
.month-nav a:hover {
background: var(--hope-yellow-hover);
color: var(--hope-ink);
text-decoration: none;
}
.month-arrow svg {
width: 1.25rem;
height: 1.25rem;
display: block;
fill: none;
stroke: currentColor;
stroke-width: 2.4;
stroke-linecap: round;
stroke-linejoin: round;
}
.month-nav a[rel='prev'] {
justify-self: start;
}
.month-nav a[rel='next'] {
justify-self: end;
}
.cal-title {
margin: 0;
font-size: clamp(1.25rem, 2.4vw, 1.85rem);
font-weight: 500;
letter-spacing: -0.03em;
text-align: center;
}
.cal-weekdays,
.cal-week-days {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 0.4rem;
}
.cal-week-days {
align-items: start;
}
.cal-weekdays {
margin: 0.55rem 0 0.35rem;
text-align: center;
font-size: 0.82rem;
font-weight: 650;
color: var(--hope-ink-2);
}
.cal-weeks,
.cal-week-days,
.day-shifts {
list-style: none;
margin: 0;
padding: 0;
}
.cal-weeks {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.week-tray,
.day-reveal,
.tray-label,
.event-dot,
.expand-chevron {
display: none;
}
.shift-drawer {
display: contents;
}
.cal-day {
position: relative;
min-width: 0;
border-radius: 0.7rem;
background: var(--hope-blue-75);
border: 1px solid var(--hope-border);
}
.cal-day::before {
content: "";
display: block;
padding-bottom: 100%;
}
.cal-day-face {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
gap: 0.15rem;
overflow: hidden;
padding: 0.3rem;
border-radius: inherit;
}
.cal-day:hover,
.cal-day:focus-within {
z-index: 5;
overflow: visible;
}
.cal-day:hover .cal-day-face,
.cal-day:focus-within .cal-day-face,
.cal-day:hover .day-shifts,
.cal-day:focus-within .day-shifts {
overflow: visible;
}
.cal-day.is-outside {
background: transparent;
border-color: transparent;
box-shadow: none;
}
.cal-day.is-today {
background: var(--hope-yellow);
border-color: var(--hope-ink);
}
.cal-day.is-past .day-num,
.cal-day.is-outside .day-num {
color: var(--hope-ink-2);
font-weight: 500;
}
.day-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.2rem;
margin: 0;
min-width: 0;
}
.day-weekday {
display: none;
}
.day-num {
font-weight: 650;
font-size: 0.95rem;
letter-spacing: -0.03em;
line-height: 1.1;
}
.today-flag {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 0.35rem;
background: var(--hope-blue-50);
border: 1px solid var(--hope-gold);
border-radius: 999px;
font-size: 0.68rem;
font-weight: 700;
line-height: 1.4;
}
.day-shifts {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-height: 0;
overflow: hidden;
}
.day-shifts > li {
min-width: 0;
}
@property --cal-fill {
syntax: "<percentage>";
inherits: false;
initial-value: 0%;
}
.cal-shift {
--cal-hold-time: 1s;
position: relative;
display: block;
min-width: 0;
color: inherit;
text-decoration: none;
}
.cal-shift:hover,
.cal-shift:focus-visible {
color: inherit;
text-decoration: none;
}
.cal-line {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0.08rem 0.28rem;
border-radius: 0.35rem;
background: var(--hope-yellow);
font-size: 0.78rem;
font-weight: 650;
line-height: 1.35;
}
.cal-day.is-today .cal-line {
background: rgb(255 255 255 / 0.45);
}
.cal-hold {
position: absolute;
z-index: 2;
top: 0.45rem;
right: 0.45rem;
width: 1rem;
height: 1rem;
box-sizing: border-box;
border: 1.5px solid var(--hope-ink);
border-radius: 50%;
background: conic-gradient(from -90deg, var(--hope-yellow) var(--cal-fill), rgb(34 34 34 / 0.14) 0);
pointer-events: none;
}
.cal-shift:hover .cal-hold {
animation: cal-fill var(--cal-hold-time) linear forwards;
}
@keyframes cal-fill {
to {
--cal-fill: 100%;
}
}
@keyframes cal-persist {
0%,
99% {
pointer-events: none;
}
100% {
pointer-events: auto;
}
}
.cal-detail {
position: absolute;
z-index: 6;
top: calc(100% + 0.15rem);
left: 0;
display: grid;
gap: 0.2rem;
width: min(15rem, 70vw);
padding: 0.65rem 1.9rem 0.7rem 0.75rem;
background: var(--hope-blue-50);
border: 1px solid var(--hope-ink);
border-radius: 0.85rem;
box-shadow: var(--hope-shadow);
white-space: normal;
visibility: hidden;
opacity: 0;
pointer-events: none;
transition:
opacity 0.12s ease,
visibility 0s linear 0.12s;
}
.cal-detail::before {
content: "";
position: absolute;
right: 0;
bottom: 100%;
left: 0;
height: 0.4rem;
}
.cal-shift:hover .cal-detail,
.cal-shift:focus-visible .cal-detail {
visibility: visible;
opacity: 1;
pointer-events: none;
animation: cal-persist var(--cal-hold-time) linear forwards;
}
.cal-shift:focus-visible .cal-detail {
pointer-events: auto;
animation: none;
}
.cal-week-days > .cal-day:nth-child(n + 5) .cal-detail {
left: auto;
right: 0;
}
.cal-detail .role,
.cal-detail .when,
.cal-detail .status,
.cal-detail .spots,
.cal-detail .cal-names,
.cal-detail .cal-action {
margin: 0;
font-size: 0.95rem;
line-height: 1.35;
}
.cal-detail .role,
.cal-detail .cal-action {
font-weight: 700;
}
.cal-detail .cal-action {
text-decoration: underline;
text-underline-offset: 0.12em;
}
.shift-list {
list-style: none;
margin: 1rem 0 0;
padding: 0;
display: grid;
gap: 1.35rem;
}
.shift-list > li {
min-width: 0;
}
.shift-list > li:has(> article) {
display: flex;
}
.shift-card {
min-width: 0;
background: var(--hope-blue-100);
border: 0;
border-radius: 1.75rem;
box-shadow: var(--hope-shadow);
padding: 1.15rem 1.25rem 1.25rem;
}
li.shift-card p {
margin: 0.2rem 0 0;
}
article.shift-card {
flex: 1;
display: flex;
flex-direction: column;
padding: 0;
overflow: hidden;
background: var(--hope-blue-50);
}
.card-heading {
display: flex;
align-items: center;
justify-content: center;
gap: 0.7rem;
padding: 0.95rem 1.1rem;
background: var(--hope-yellow);
text-align: center;
}
.card-heading .icon {
width: 1.7rem;
height: 1.7rem;
flex: none;
}
.card-heading h3 {
font-size: 1.35rem;
}
.card-body {
display: grid;
gap: 0.15rem;
padding: 1.05rem 1.2rem 0.35rem;
flex: 1;
}
.shift-date {
font-weight: 650;
}
.role {
display: block;
}
.status,
.spots {
font-weight: 650;
}
.spots.is-open,
.spots.is-full,
.status.is-confirmed {
display: inline-block;
width: fit-content;
margin-top: 0.45rem;
padding: 0.15rem 0.7rem;
border-radius: 999px;
color: var(--hope-ink);
}
.spots.is-open,
.status.is-confirmed {
background: var(--hope-open);
border: 1px solid var(--hope-open-edge);
}
.spots.is-full {
background: var(--hope-full);
border: 1px solid var(--hope-full-edge);
}
.btn-card {
position: relative;
z-index: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: auto;
padding: 0.85rem 1.2rem;
min-height: 52px;
background: var(--hope-blue-100);
color: var(--hope-ink);
font-weight: 700;
font-size: 1.25rem;
text-decoration: none;
}
.btn-card img {
width: auto;
height: 1.45rem;
flex: none;
}
.btn-card::before {
background: var(--hope-blue-75);
}
.btn-card:hover,
.btn-card:active {
color: var(--hope-ink);
text-decoration: none;
}
.btn-card.is-static {
margin: 0;
margin-top: auto;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0;
cursor: default;
font-size: 0.85rem;
font-weight: 500;
line-height: 1.25;
}
.shift-full-label {
font-weight: 700;
}
.btn-card.is-static::before,
.btn-card.is-static:hover::before,
.btn-card.is-static:active::before {
content: none;
}
.btn-card.is-static:hover,
.btn-card.is-static:active {
color: var(--hope-ink);
}
.empty {
margin-top: 0.5rem;
padding: 1.1rem 1.25rem;
background: var(--hope-blue-100);
border-radius: 1.5rem;
box-shadow: var(--hope-shadow);
}
/* Forms */
.signup-form,
.cancel-form {
display: grid;
gap: 0.95rem;
max-width: 36rem;
margin-top: 1.5rem;
padding: 1.35rem 1.35rem 1.45rem;
background: var(--hope-blue-100);
border-radius: 1.75rem;
box-shadow: var(--hope-shadow);
}
.shift-card .signup-form,
.shift-card .cancel-form,
.shift-card .move-form {
max-width: none;
margin-top: 0.75rem;
padding: 0;
background: transparent;
border-radius: 0;
box-shadow: none;
}
.signup-form h2 {
font-size: 1.6rem;
}
.name-pair {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.95rem;
}
.signup-form label,
.signup-form fieldset,
.move-form label {
display: grid;
gap: 0.35rem;
margin: 0;
font-weight: 650;
}
.signup-form fieldset {
border: 1px solid var(--hope-border);
border-radius: 1.25rem;
padding: 0.9rem 1rem 1rem;
background: var(--hope-blue-75);
}
.signup-form legend {
padding: 0 0.35rem;
}
.signup-form input,
.signup-form select,
.signup-form textarea,
.move-form select,
.cancel-form button,
.signup-form button {
font: inherit;
color: var(--hope-ink);
}
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form input[type="search"],
.signup-form input[type="date"],
.signup-form input[type="time"],
.signup-form input[type="number"],
.signup-form select,
.signup-form textarea,
.move-form select {
width: 100%;
min-height: 48px;
padding: 0.7rem 1rem;
background: var(--hope-blue-50);
border: 0;
border-radius: 999px;
box-shadow: var(--hope-shadow);
}
.signup-form textarea {
min-height: 7.5rem;
border-radius: 1.25rem;
resize: vertical;
}
.signup-form button,
.cancel-form button,
.move-form button,
.inline-form button {
width: fit-content;
}
.cancel-form,
.move-form {
display: grid;
gap: 0.85rem;
margin-top: 1.25rem;
}
.manage-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
align-items: stretch;
margin-top: 1.25rem;
}
.manage-actions:has(> :only-child) {
max-width: 36rem;
}
.manage-actions > .cancel-form {
max-width: none;
margin-top: 0;
height: 100%;
align-content: space-between;
}
.other-shifts {
margin-top: 2.25rem;
}
.other-shifts > p {
max-width: 40rem;
}
.other-shift-list {
display: grid;
gap: 1rem;
margin: 1rem 0 0;
padding: 0;
list-style: none;
}
.other-shift {
padding: 1.2rem 1.25rem 1.35rem;
background: var(--hope-blue-100);
border-radius: 1.75rem;
box-shadow: var(--hope-shadow);
}
.other-shift .event-name {
margin: 0;
font-weight: 650;
}
.other-shift h3 {
margin: 0.15rem 0 0.35rem;
}
.other-shift .cancel-form,
.other-shift .move-form {
max-width: none;
margin-top: 0.85rem;
padding: 0;
background: transparent;
border-radius: 0;
box-shadow: none;
}
.move-form select {
background: var(--hope-blue-50);
}
.inline-form {
display: flex;
margin-top: 0.75rem;
}
.check {
display: flex;
align-items: center;
gap: 0.65rem;
min-height: 44px;
font-weight: 500;
}
.check input {
width: 1.25rem;
height: 1.25rem;
min-height: 0;
padding: 0;
border-radius: 0.2rem;
box-shadow: none;
}
.hint {
font-weight: 400;
color: var(--hope-ink-2);
}
.error,
.field-error {
font-weight: 650;
}
.error {
margin: 0.35rem 0;
padding: 0.75rem 0.95rem;
background: var(--hope-yellow);
border: 1px solid var(--hope-gold);
border-radius: 1rem;
box-shadow: var(--hope-shadow-soft);
}
.error ul {
margin: 0.35rem 0 0;
padding-left: 1.2rem;
}
.details {
margin: 1.25rem 0;
padding: 0.4rem 1.15rem 0.9rem;
background: var(--hope-blue-100);
border-radius: 1.5rem;
box-shadow: var(--hope-shadow);
}
.details div {
margin: 0.7rem 0;
}
.details dt {
font-weight: 650;
}
.details dd {
margin: 0;
}
.hp {
position: absolute;
left: -10000px;
width: 1px;
height: 1px;
overflow: hidden;
}
/* Coordinator desk */
.desk-intro {
display: grid;
gap: 0.2rem;
margin-bottom: 1.35rem;
}
.desk-intro h1 {
margin-bottom: 0.15rem;
}
.desk-signed {
margin: 0;
}
.desk-signed strong,
.desk-note strong {
font-weight: 650;
}
.desk-note {
width: fit-content;
max-width: min(42rem, 100%);
margin: 0.45rem 0 0;
padding: 0.3rem 0.8rem;
background: var(--hope-yellow);
border: 1px solid var(--hope-gold);
border-radius: 999px;
box-shadow: var(--hope-shadow-soft);
font-size: 0.95rem;
font-weight: 400;
line-height: 1.45;
}
.desk-note.is-saved {
display: inline-flex;
align-items: center;
gap: 0.35rem;
min-height: 1.5rem;
padding: 0.28rem 0.7rem 0.28rem 0.5rem;
background: #fff;
border: 1px solid #e4edf5;
box-shadow: none;
color: #4a5563;
font-size: 0.75rem;
font-weight: 500;
line-height: 1.2;
}
.desk-note-check {
width: 0.8rem;
height: 0.8rem;
flex: none;
}
.desk-note-check path {
fill: none;
stroke: #3b8950;
stroke-width: 1.75;
stroke-linecap: round;
stroke-linejoin: round;
}
.event-dialog {
width: 100%;
max-width: none;
height: 100%;
max-height: none;
margin: 0;
padding: 1rem;
border: 0;
background: transparent;
color: inherit;
overflow: visible;
}
.event-dialog[open] {
position: fixed;
z-index: 1100;
inset: 0;
display: grid;
place-items: center;
background: rgb(34 34 34 / 0.32);
}
.event-dialog.is-modal {
background: transparent;
}
.event-dialog::backdrop {
background: rgb(34 34 34 / 0.32);
}
.event-dialog-card {
position: relative;
width: min(32rem, 100%);
}
.event-dialog .signup-form {
width: 100%;
max-width: none;
max-height: calc(100dvh - 2rem);
margin: 0;
overflow: auto;
}
.event-dialog .signup-form h2 {
padding-right: 2.75rem;
}
.event-dialog-dismiss {
position: absolute;
top: 0.85rem;
right: 0.85rem;
z-index: 1;
margin: 0;
}
.event-dialog-close {
width: 2.5rem;
min-height: 2.5rem;
padding: 0;
background: var(--hope-blue-50);
border-color: var(--hope-border);
box-shadow: none;
}
.event-dialog-close::before {
background: var(--hope-yellow);
}
.event-dialog-close img {
width: 1.15rem;
height: 1.15rem;
}
html:has(#signup-dialog[open]) {
overflow: hidden;
}
#signup-dialog {
overflow: hidden;
}
.signup-dialog-card {
width: min(36rem, 100%);
max-height: calc(100dvh - 2rem);
}
.signup-dialog-close {
position: absolute;
top: 0.85rem;
right: 0.85rem;
z-index: 2;
}
#signup-dialog-body {
box-sizing: border-box;
overflow: hidden;
border-radius: 1.75rem;
max-height: inherit;
/* Keep the scrollbar off the curved corners. */
padding: 1.35rem 0.55rem 1.35rem 0;
background: var(--hope-blue-100);
box-shadow: var(--hope-shadow);
}
.signup-dialog-panel {
display: flex;
flex-direction: column;
width: 100%;
max-height: calc(100dvh - 2rem - 2.7rem);
overflow: hidden;
background: transparent;
}
.signup-dialog-scroll {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
}
.signup-dialog-scroll::-webkit-scrollbar-track,
.event-dialog .signup-form::-webkit-scrollbar-track {
margin-top: 0.45rem;
margin-bottom: 0.85rem;
}
/* The new-event form scrolls as one piece, with the close control over its corner. */
.event-dialog .signup-form::-webkit-scrollbar-track {
margin-top: 3.55rem;
}
.signup-dialog-summary {
display: grid;
gap: 0.15rem;
padding: 0 3.4rem 0.15rem 1.35rem;
}
.signup-dialog-title {
margin: 0;
font-size: 1.6rem;
overflow-wrap: anywhere;
}
.signup-dialog-summary .location,
.signup-dialog-summary .when,
.signup-dialog-summary .status,
.signup-dialog-summary .spots {
margin: 0;
}
.signup-dialog-note {
margin: 0;
padding: 0.35rem 1.35rem 1.35rem;
}
.event-dialog .signup-dialog-panel .signup-form {
max-width: none;
max-height: none;
margin: 0;
overflow: visible;
background: transparent;
box-shadow: none;
border-radius: 0;
}
.event-dialog .signup-dialog-panel .signup-form h2 {
padding-right: 0;
font-size: 1.25rem;
}
.confirm-dialog {
width: 100%;
max-width: none;
height: 100%;
max-height: none;
margin: 0;
padding: 1rem;
border: 0;
background: transparent;
color: inherit;
overflow: visible;
}
.confirm-dialog[open] {
position: fixed;
z-index: 1100;
inset: 0;
display: grid;
place-items: center;
background: rgb(34 34 34 / 0.16);
}
.confirm-dialog.is-modal {
background: transparent;
}
.confirm-dialog::backdrop {
background: rgb(34 34 34 / 0.16);
}
.confirm-card {
position: relative;
width: min(22.5rem, 100%);
padding: 1.05rem 1.15rem 1rem;
background: var(--hope-blue-50);
border: 1px solid var(--hope-border);
border-radius: 1.15rem;
box-shadow: var(--hope-shadow-soft);
}
.confirm-form {
display: grid;
gap: 0.4rem;
margin: 0;
}
.confirm-form h2 {
margin: 0 1.8rem 0.1rem 0;
font-size: 1.2rem;
line-height: 1.3;
overflow-wrap: anywhere;
}
.confirm-form p,
.confirm-detail,
.confirm-note {
margin: 0;
font-size: 0.95rem;
line-height: 1.45;
}
.confirm-detail,
.confirm-note {
color: var(--hope-ink-2);
}
.confirm-detail {
white-space: pre-line;
}
.confirm-form .error {
margin: 0;
padding: 0.55rem 0.75rem;
box-shadow: none;
}
.confirm-actions {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
margin-top: 0.45rem;
}
.confirm-dialog button {
min-height: 40px;
padding: 0.35rem 0.95rem;
font-size: 0.95rem;
box-shadow: none;
}
.confirm-dialog button:hover,
.confirm-dialog button:active {
transform: none;
}
.confirm-x {
position: absolute;
top: 0.55rem;
right: 0.55rem;
margin: 0;
}
.confirm-dialog .event-dialog-close {
width: 2.15rem;
min-height: 2.15rem;
padding: 0;
}
.notice {
display: flex;
align-items: center;
gap: 0.65rem;
width: fit-content;
max-width: min(42rem, 100%);
margin: 0 0 1.15rem;
padding: 0.4rem 0.4rem 0.4rem 0.95rem;
background: var(--hope-yellow);
border: 1px solid var(--hope-gold);
border-radius: 999px;
box-shadow: var(--hope-shadow-soft);
font-size: 0.95rem;
font-weight: 500;
}
.notice-dismiss {
width: 2rem;
min-height: 2rem;
padding: 0;
border: 0;
border-radius: 999px;
background: transparent;
box-shadow: none;
font-size: 1.35rem;
line-height: 1;
font-weight: 500;
}
.notice-dismiss::before {
content: none;
}
.notice-dismiss:hover,
.notice-dismiss:focus-visible {
background: var(--hope-gold);
transform: none;
}
.desk-events {
display: grid;
gap: 1rem;
padding: 1.2rem 1.25rem 1.3rem;
background: var(--hope-blue-100);
border-radius: 1.75rem;
box-shadow: var(--hope-shadow);
}
.desk-toolbar {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 0.85rem 1.5rem;
}
.desk-toolbar h2,
.desk-toolbar-copy p {
margin: 0;
}
.desk-toolbar-copy p {
margin-top: 0.2rem;
color: var(--hope-ink-2);
}
.desk-actions {
display: flex;
flex-wrap: wrap;
gap: 0.55rem;
}
a.btn.btn-quiet,
button.btn-quiet {
background: var(--hope-blue-50);
border-color: var(--hope-border);
}
a.btn.btn-quiet::before,
button.btn-quiet::before {
background: var(--hope-blue-100);
}
.event-board {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.65rem;
}
.event-board > li {
min-width: 0;
}
.shift-more {
margin: 0;
}
.shift-more[open] {
display: grid;
gap: 0.65rem;
}
.shift-more[open] > summary {
order: 1;
}
.shift-more:not([open]) > .event-board {
display: none;
}
.shift-more > summary {
display: inline-flex;
align-items: center;
gap: 0.4rem;
width: fit-content;
min-height: 2.75rem;
color: var(--hope-ink-2);
font-weight: 650;
list-style: none;
cursor: pointer;
}
.shift-more > summary::-webkit-details-marker {
display: none;
}
.shift-more > summary::after {
content: "";
width: 0.45rem;
height: 0.45rem;
border-right: 2.5px solid currentColor;
border-bottom: 2.5px solid currentColor;
transform: translateY(-0.12rem) rotate(45deg);
}
.shift-more[open] > summary::after {
transform: translateY(0.12rem) rotate(-135deg);
}
.shift-more .shift-more-open,
.shift-more[open] .shift-more-closed {
display: none;
}
.shift-more[open] .shift-more-open {
display: inline;
}
.event-card {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.7rem 1.15rem;
min-height: 4.75rem;
padding: 0.85rem 1.1rem;
background: var(--hope-blue-50);
border: 2px solid transparent;
border-radius: 1.25rem;
box-shadow: var(--hope-shadow-soft);
color: var(--hope-ink);
text-decoration: none;
}
.event-card:hover,
.event-card:focus-visible {
border-color: var(--hope-gold);
color: var(--hope-ink);
text-decoration: none;
}
.event-card::after {
content: "";
flex: none;
width: 0.55rem;
height: 0.55rem;
margin-left: 0.15rem;
border-right: 2.5px solid currentColor;
border-bottom: 2.5px solid currentColor;
transform: rotate(-45deg);
}
.event-card-title {
flex: 1 1 12rem;
min-width: 0;
font-size: 1.4rem;
font-weight: 650;
letter-spacing: -0.03em;
line-height: 1.2;
}
.event-card-foot {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.55rem 0.9rem;
}
.event-pill {
display: inline-flex;
align-items: center;
min-height: 1.75rem;
padding: 0.1rem 0.7rem;
background: var(--hope-yellow);
border: 1px solid var(--hope-gold);
border-radius: 999px;
font-size: 0.92rem;
font-weight: 650;
line-height: 1.3;
}
.event-pill.is-open {
background: var(--hope-open);
border-color: var(--hope-open-edge);
color: var(--hope-ink);
}
.event-pill.is-full {
background: var(--hope-full);
border-color: var(--hope-full-edge);
color: var(--hope-ink);
}
.event-pill.is-hidden {
background: transparent;
border-color: var(--hope-border);
color: var(--hope-ink-2);
font-weight: 500;
}
.event-count {
font-weight: 650;
}
.desk-events .empty {
margin: 0;
background: var(--hope-blue-50);
box-shadow: none;
}
.event-page {
display: grid;
gap: 1.35rem;
}
.event-page .desk-intro,
.event-page > .notice {
margin: 0;
}
@media (min-width: 75.001em) {
.event-page .desk-intro {
padding-top: 1.75rem;
}
}
.event-page .shift-list {
margin: 0;
}
.event-page .shift-card {
background: var(--hope-blue-50);
box-shadow: var(--hope-shadow-soft);
}
.pick-bar {
align-items: center;
justify-content: flex-end;
}
.pick,
.pick-all {
display: inline-flex;
align-items: center;
gap: 0.4rem;
min-height: 2rem;
color: var(--hope-ink-2);
font-size: 0.92rem;
font-weight: 500;
}
.pick input,
.pick-all input {
width: 1.05rem;
height: 1.05rem;
margin: 0;
accent-color: var(--hope-ink);
}
.event-card:has(> .pick) {
padding-left: 0.85rem;
}
.event-card > .pick {
flex: none;
}
.person-head {
display: flex;
align-items: center;
gap: 0.55rem;
}
.person-head strong {
min-width: 0;
}
.text-action {
color: var(--hope-ink-2);
font-weight: 650;
text-decoration: underline;
text-underline-offset: 0.12em;
}
.text-action:hover {
color: var(--hope-ink);
}
.event-page .desk-intro .desk-toolbar {
align-items: center;
}
.event-status,
.panel-note,
.event-remove {
margin: 0;
}
.event-status {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.45rem 0.75rem;
margin-top: 0.45rem;
}
.panel-note {
color: var(--hope-ink-2);
font-size: 0.95rem;
line-height: 1.45;
}
.desk-intro .panel-note {
margin-top: 0.55rem;
}
.event-card:has(> .shift-open) {
padding: 0 1.1rem 0 0;
}
.shift-open {
display: flex;
flex: 1;
flex-wrap: wrap;
align-items: center;
gap: 0.7rem 1.15rem;
min-width: 0;
min-height: 4.75rem;
padding-left: 1.1rem;
color: inherit;
text-decoration: none;
}
.shift-open:hover {
color: inherit;
text-decoration: none;
}
.shift-remove {
flex: none;
color: var(--hope-ink-2);
font-weight: 650;
text-decoration: underline;
text-underline-offset: 0.12em;
}
.shift-remove:hover {
color: var(--hope-ink);
}
.desk-inline {
margin: 0;
}
.desk-events h2 {
margin: 0;
}
.shift-row {
display: flex;
align-items: center;
gap: 0.55rem;
}
.shift-row .event-card {
flex: 1;
}
.shift-when {
color: var(--hope-ink-2);
font-weight: 500;
}
.event-card.is-static {
cursor: default;
}
.event-card.is-static::after {
content: none;
}
.event-card.is-static:hover,
.event-card.is-static:focus-visible {
border-color: transparent;
}
.event-details-form {
max-width: 40rem;
margin: 0.35rem 0 0;
padding: 0;
background: transparent;
border-radius: 0;
box-shadow: none;
}
.event-remove {
margin-top: 0.35rem;
}
.event-remove a {
color: var(--hope-ink-2);
font-weight: 650;
}
.signup-form.desk-download {
max-width: none;
margin-top: 1.75rem;
}
.desk-range {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 0.95rem;
}
.desk-range label {
flex: 1 1 14rem;
max-width: 18rem;
}
.desk-home-intro {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 0.85rem 1.5rem;
}
.desk-home-copy h1 {
margin-bottom: 0.15rem;
}
.desk-date {
margin: 0;
color: var(--hope-ink-2);
font-size: 1.05rem;
}
.desk-home-intro .desk-signed {
margin-top: 0.15rem;
color: var(--hope-ink-2);
font-size: 0.95rem;
}
.desk-intro-side {
display: grid;
justify-items: end;
gap: 0.45rem;
margin-left: auto;
}
.desk-home-intro .desk-note {
margin: 0.15rem 0 0;
}
.desk-links {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.35rem 0.9rem;
font-size: 0.95rem;
}
.desk-links a {
font-weight: 650;
}
.coordinator-board {
display: grid;
gap: 1rem;
}
.coordinator-board .desk-panel {
display: flex;
flex-direction: column;
gap: 0.8rem;
min-width: 0;
margin: 0;
padding: 1.15rem 1.2rem 1.2rem;
background: #fff;
border: 1px solid #e6eef3;
border-radius: 1.35rem;
box-shadow: 0 8px 24px rgb(34 55 70 / 0.05);
}
.coordinator-board .desk-panel h2 {
margin: 0;
font-size: 1.35rem;
font-weight: 650;
}
.desk-panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem 1rem;
}
.desk-panel-aside {
margin: 0;
color: #7d8b99;
font-size: 0.92rem;
}
.desk-panel-head .btn {
min-height: 2.15rem;
padding: 0.28rem 0.9rem;
box-shadow: none;
font-size: 0.92rem;
}
.desk-panel-head .btn:hover,
.desk-panel-head .btn:active {
transform: none;
}
.desk-rows {
list-style: none;
display: grid;
gap: 0.55rem;
margin: 0;
padding: 0;
}
.desk-row {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 0.75rem 1rem;
min-height: 4.15rem;
padding: 0.7rem 0.95rem;
background: var(--hope-blue-75);
border-radius: 0.95rem;
color: var(--hope-ink);
text-decoration: none;
}
.desk-row:hover,
.desk-row:focus-visible {
background: var(--hope-blue-100);
color: var(--hope-ink);
text-decoration: none;
}
.desk-row-main {
display: flex;
align-items: center;
gap: 1.35rem;
min-width: 0;
}
.desk-row-when {
flex: none;
min-width: 10.5rem;
font-size: 0.98rem;
font-weight: 650;
line-height: 1.3;
}
.desk-row-copy {
min-width: 0;
}
.desk-row-copy strong,
.desk-row-copy span {
display: block;
line-height: 1.3;
}
.desk-row-copy strong {
font-size: 0.98rem;
font-weight: 650;
}
.desk-row-copy span {
color: #7d8b99;
font-size: 0.86rem;
}
.desk-row::after {
content: "";
flex: none;
width: 0.42rem;
height: 0.42rem;
margin-left: 0.15rem;
border-right: 2px solid #8b98a6;
border-bottom: 2px solid #8b98a6;
transform: rotate(-45deg);
}
.need-pill {
display: inline-flex;
align-items: center;
flex: none;
margin-left: auto;
min-height: 1.7rem;
padding: 0.12rem 0.7rem;
border-radius: 999px;
font-size: 0.82rem;
font-weight: 650;
line-height: 1.2;
white-space: nowrap;
}
.need-pill.is-open {
background: var(--hope-yellow);
color: #6a5314;
}
.need-pill.is-needs {
background: var(--hope-full);
color: #8a3d36;
}
.need-pill.is-public {
background: #d7ebf8;
color: #2d5f86;
font-weight: 600;
}
.need-pill.is-hidden {
background: #e6e9ee;
color: #5c6770;
font-weight: 600;
}
.desk-full {
list-style: none;
display: grid;
gap: 0.2rem;
margin: 0;
padding: 0;
}
.desk-full li {
display: flex;
align-items: center;
gap: 0.4rem;
color: #2f7d4a;
font-size: 0.95rem;
font-weight: 500;
}
.desk-full-check {
width: 0.9rem;
height: 0.9rem;
flex: none;
}
.desk-full-check path {
fill: none;
stroke: currentColor;
stroke-width: 1.75;
stroke-linecap: round;
stroke-linejoin: round;
}
.coordinator-board .desk-panel .empty {
margin: 0;
padding: 0.85rem 1rem;
background: var(--hope-blue-75);
border-radius: 0.95rem;
box-shadow: none;
}
.desk-split {
display: grid;
gap: 1rem;
align-items: stretch;
}
.coordinator-board form.signup-form.desk-download {
max-width: none;
height: 100%;
margin: 0;
gap: 0.75rem;
}
.desk-download-copy {
margin: 0;
color: var(--hope-ink-2);
font-size: 0.98rem;
line-height: 1.45;
}
.range-presets {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
}
.range-presets button {
min-height: 2.15rem;
padding: 0.25rem 0.85rem;
background: #fff;
border: 1px solid #d5dee6;
box-shadow: none;
color: var(--hope-ink);
font-size: 0.92rem;
font-weight: 600;
}
.range-presets button::before {
content: none;
}
.range-presets button:hover,
.range-presets button:active {
transform: none;
background: var(--hope-blue-75);
}
.range-presets button[aria-pressed='true'] {
background: var(--hope-yellow);
border-color: var(--hope-gold);
color: var(--hope-ink);
}
.range-presets button[aria-pressed='true']:hover,
.range-presets button[aria-pressed='true']:active {
background: var(--hope-yellow-hover);
border-color: var(--hope-gold);
color: var(--hope-ink);
}
.desk-fields {
display: grid;
gap: 0.7rem;
}
.coordinator-board .desk-download label {
gap: 0.28rem;
font-size: 0.92rem;
}
.coordinator-board .desk-download input[type='date'] {
background: #fff;
border: 1px solid #d5dee6;
border-radius: 0.75rem;
box-shadow: none;
}
.coordinator-board .desk-download button[type='submit'] {
margin-top: auto;
box-shadow: none;
}
.coordinator-board .desk-download button[type='submit']:hover,
.coordinator-board .desk-download button[type='submit']:active {
transform: none;
}
@media (min-width: 64rem) {
.desk-split {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
}
@media (max-width: 42em) {
.desk-row-main {
flex-direction: column;
align-items: flex-start;
gap: 0.15rem;
}
.desk-row-when {
min-width: 0;
}
.desk-intro-side {
justify-items: start;
margin-left: 0;
}
}
.signup-form input[type='file'] {
font: inherit;
max-width: 100%;
}
.contact-list {
list-style: none;
margin: 1rem 0 0;
padding: 0;
}
.contact-row {
display: grid;
grid-template-columns: minmax(10rem, 1.2fr) minmax(12rem, 1.6fr) minmax(7rem, 0.8fr) auto;
gap: 0.35rem 1rem;
align-items: baseline;
padding: 0.75rem 0;
border-top: 1px solid var(--hope-border-2);
}
.contact-row p {
margin: 0;
overflow-wrap: anywhere;
}
.contact-row[hidden] {
display: none;
}
.contact-actions {
display: grid;
grid-template-columns: repeat(3, max-content) minmax(0, 1fr);
align-items: start;
column-gap: 0.75rem;
row-gap: 0.85rem;
width: 100%;
margin: 1.25rem 0 0;
}
.contact-menu {
display: contents;
}
.contact-menu > summary {
grid-row: 1;
justify-self: start;
display: inline-flex;
align-items: center;
gap: 0.4rem;
min-height: 2.35rem;
padding: 0.28rem 0.9rem;
list-style: none;
cursor: pointer;
background: #fff;
border: 1px solid #d5dee6;
border-radius: 999px;
color: var(--hope-ink);
font-size: 0.92rem;
font-weight: 650;
}
.contact-actions > .contact-menu:nth-child(1) > summary {
grid-column: 1;
}
.contact-actions > .contact-menu:nth-child(2) > summary {
grid-column: 2;
}
.contact-actions > .contact-menu:nth-child(3) > summary {
grid-column: 3;
}
.contact-menu > summary::-webkit-details-marker {
display: none;
}
.contact-menu:not([open]) > :not(summary) {
display: none;
}
.contact-menu[open] > :not(summary),
.contact-menu[open]::details-content {
grid-column: 1 / -1;
grid-row: 2;
justify-self: start;
width: min(36rem, 100%);
min-width: 0;
}
.contact-actions > .contact-menu:nth-child(2)[open] > :not(summary),
.contact-actions > .contact-menu:nth-child(2)[open]::details-content {
grid-row: 3;
}
.contact-actions > .contact-menu:nth-child(3)[open] > :not(summary),
.contact-actions > .contact-menu:nth-child(3)[open]::details-content {
grid-row: 4;
}
.contact-toolbar > .contact-find {
margin-top: 0;
padding: 0;
background: transparent;
box-shadow: none;
}
.contact-toolbar > .contact-find button {
width: fit-content;
}
.contact-menu > .signup-form {
margin-top: 0;
}
@media (max-width: 42em) {
.contact-actions {
column-gap: 0.4rem;
}
.contact-menu > summary {
padding-inline: 0.65rem;
}
}
.contact-menu[open] .edit-chevron {
transform: translateY(0.08rem) rotate(225deg);
}
.contact-toolbar {
display: grid;
grid-template-columns: minmax(0, 1fr) max-content max-content max-content;
align-items: center;
column-gap: 0.75rem;
row-gap: 0.85rem;
}
.contact-toolbar > .contact-find,
.contact-toolbar > .empty {
grid-column: 1;
grid-row: 1;
justify-self: start;
min-width: 0;
width: min(28rem, 100%);
max-width: 28rem;
}
.contact-toolbar > .contact-actions {
display: contents;
margin: 0;
}
.contact-toolbar > .contact-actions > .contact-menu:nth-child(1) > summary {
grid-column: 2;
}
.contact-toolbar > .contact-actions > .contact-menu:nth-child(2) > summary {
grid-column: 3;
}
.contact-toolbar > .contact-actions > .contact-menu:nth-child(3) > summary {
grid-column: 4;
}
.contact-toolbar > .contact-actions > .contact-menu[open] > :not(summary),
.contact-toolbar > .contact-actions > .contact-menu[open]::details-content {
grid-column: 1 / -1;
grid-row: 2;
justify-self: stretch;
width: 100%;
max-width: none;
}
.contact-toolbar .contact-menu .signup-form {
width: 100%;
max-width: none;
background: var(--hope-blue-50);
}
.contact-toolbar .contact-actions > .contact-menu:nth-child(1) .signup-form input[type="text"],
.contact-toolbar .contact-actions > .contact-menu:nth-child(1) .signup-form input[type="email"],
.contact-toolbar .contact-actions > .contact-menu:nth-child(1) .signup-form input[type="tel"] {
background: #fff;
box-shadow: var(--hope-shadow);
}
@media (max-width: 42em) {
.contact-toolbar {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0.85rem;
}
.contact-toolbar > .contact-find,
.contact-toolbar > .empty {
grid-column: auto;
width: 100%;
max-width: none;
}
.contact-toolbar > .contact-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.5rem;
width: 100%;
}
.contact-toolbar > .contact-actions > .contact-menu {
display: block;
width: max-content;
order: 0;
}
.contact-toolbar > .contact-actions > .contact-menu > summary {
grid-column: auto;
grid-row: auto;
}
.contact-toolbar > .contact-actions > .contact-menu[open] {
order: 1;
flex: 1 0 100%;
width: 100%;
}
.contact-toolbar > .contact-actions > .contact-menu[open] > :not(summary),
.contact-toolbar > .contact-actions > .contact-menu[open]::details-content {
grid-column: auto;
grid-row: auto;
width: 100%;
max-width: none;
}
}
.contact-shift-list {
list-style: none;
margin: 0 0 1.25rem;
padding: 0;
}
.contact-shift-list li {
padding: 0.35rem 0;
border-top: 1px solid var(--hope-border-2);
overflow-wrap: anywhere;
}
.contact-more {
margin: 0.35rem 0 0;
}
.admin-list {
list-style: none;
margin: 1rem 0 0;
padding: 0;
}
.admin-row {
display: grid;
grid-template-columns: minmax(10rem, 1.2fr) minmax(12rem, 1.6fr) auto;
gap: 0.35rem 1rem;
align-items: baseline;
padding: 0.75rem 0;
border-top: 1px solid var(--hope-border-2);
}
.admin-row p {
margin: 0;
overflow-wrap: anywhere;
}
.admin-you {
margin-left: 0.45rem;
font-size: 0.85rem;
font-weight: 650;
}
#add-shift {
border-radius: 1.25rem;
padding-right: 2.5rem;
}
@media (max-width: 42em) {
.contact-row,
.admin-row {
grid-template-columns: 1fr;
}
}
/* Footer. Pixel sizes match hopefoodpantrysc.org. */
.footer {
view-transition-name: site-footer;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 100px;
width: 100%;
margin: 220px 0 0;
padding: 250px 5% 30px;
background-color: #e4f3fb;
color: #222;
font-size: 18px;
line-height: 1.8;
font-weight: 400;
}
.footer .wave {
position: absolute;
left: 0;
width: 100%;
height: auto;
bottom: -6%;
pointer-events: none;
}
.footer .wave-secondary {
top: -40%;
}
.footer-nav {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(4, 1fr);
width: 100%;
justify-items: center;
align-items: start;
}
.footer-nav-links {
list-style: none;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin: 0;
padding: 0;
justify-content: center;
align-items: start;
}
.footer-cell {
display: flex;
flex-direction: column;
gap: 15px;
}
.footer h3 {
margin: 0;
font-size: 30px;
font-weight: 700;
letter-spacing: -1.5px;
line-height: 1.2;
color: #222;
}
.footer p,
.footer address {
margin: 0;
font-style: normal;
}
.equal-text {
font-size: 12.5px;
color: #444;
}
.copyright-text {
position: relative;
z-index: 1;
margin: 0;
text-align: center;
font-size: 15px;
color: #444;
}
.footer a:link,
.footer a:visited,
.footer a:active {
color: #222;
transition: all 0.3s;
}
.footer a:hover {
color: #444;
}
.social-links {
display: flex;
flex-direction: column;
justify-content: center;
gap: 15px;
}
.social-links img {
width: 40px;
height: auto;
transition: all 0.3s;
}
.social-links img:hover {
filter: invert(25%) sepia(5%) saturate(19%) hue-rotate(314deg) brightness(95%) contrast(89%);
}
.social-flex {
display: flex;
align-items: center;
}
@media (min-width: 48rem) {
.shift-list:has(> li > article) {
grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
}
}
@media (max-width: 100em) {
.footer {
margin-top: 160px;
padding: 50px 5% 30px;
}
.footer-nav {
grid-template-columns: 1fr 1fr;
justify-items: start;
gap: 50px;
margin-top: 100px;
width: 70%;
}
.footer-nav > :nth-child(4) {
grid-column: 2 / 3;
grid-row: 1 / 2;
}
.footer .wave-secondary {
top: -20%;
}
}
@media (max-width: 85em) {
.nav-links {
gap: 40px;
}
.footer h3 {
font-size: 25px;
}
.footer-nav {
width: 80%;
}
}
@media (max-width: 75em) {
.btn-mobile-nav {
display: block;
}
.nav-links {
border-radius: 0;
background: linear-gradient(rgb(228 243 251 / 0.95));
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100vh;
transform: translateX(100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 72px 24px 180px;
transition: all 0.4s ease-in;
font-size: 25px;
font-weight: 700;
opacity: 0;
pointer-events: none;
visibility: hidden;
box-shadow: none;
}
.session-bar {
top: auto;
right: 0;
left: 0;
bottom: 28px;
z-index: 1001;
justify-content: center;
gap: 22px;
width: auto;
padding: 14px 24px 0;
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
border-top: 1px solid var(--hope-border);
transform: translateX(100%);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: transform 0.4s ease-in, opacity 0.4s ease-in;
}
.header.nav-open ~ main .session-bar {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateX(0);
}
.session-logout {
margin: 0;
padding: 0;
}
.session-logout::before {
content: none;
}
.header.nav-open .nav-links {
opacity: 1;
pointer-events: auto;
visibility: visible;
transform: translateX(0);
}
.nav-links .btn:link,
.nav-links .btn:visited {
font-weight: 700;
}
.footer-nav {
width: 90%;
}
}
@media (max-width: 62em) {
.footer .wave-secondary {
top: -10%;
}
}
@media (max-width: 42em) {
main {
width: min(72rem, calc(100% - 1.5rem));
padding-top: 7.25rem;
}
h1 {
font-size: 2.15rem;
}
.footer {
margin-top: 48px;
padding: 50px 5% 30px;
}
.footer-nav {
grid-template-columns: 1fr;
justify-items: center;
}
.footer-nav > :nth-child(4) {
grid-column: 1 / 2;
grid-row: 2 / 3;
}
.footer .wave-secondary {
top: -5%;
}
.footer-cell {
width: 250px;
}
.logo {
max-width: 200px;
}
.nav-links .btn:link,
.nav-links .btn:visited {
padding: 20px 30px;
width: 250px;
}
.manage-actions {
grid-template-columns: 1fr;
}
.signup-form button,
.cancel-form button,
.move-form button {
width: 100%;
}
.desk-actions {
width: 100%;
}
.desk-actions .btn,
.desk-actions .desk-inline {
flex: 1 1 8rem;
}
.event-page .desk-actions {
flex-direction: column;
}
.event-page .desk-actions .btn,
.event-page .desk-actions .desk-inline {
flex: 0 0 auto;
}
.event-page .desk-actions .btn,
.event-page .desk-actions .desk-inline,
.desk-actions .desk-inline button,
.event-page .desk-inline button {
width: 100%;
}
.event-page .event-card {
position: relative;
align-items: flex-start;
padding-right: 2.1rem;
}
.event-page .event-card::after {
position: absolute;
top: 1.35rem;
right: 1.15rem;
margin: 0;
}
.event-page .shift-open,
.event-page .event-card-foot {
flex-basis: 100%;
}
.event-page .shift-open {
padding-right: 0;
}
.event-page .pick-bar {
flex-direction: row;
width: auto;
margin-left: auto;
}
.event-page .pick-bar .btn {
width: auto;
flex: 0 0 auto;
}
.shift-remove {
margin: 0 0 0.85rem 1.1rem;
}
.shift-row {
align-items: stretch;
}
.shift-row > .btn,
.shift-row > .desk-inline {
align-self: center;
}
.desk-range {
display: grid;
}
.desk-range label {
max-width: none;
}
.name-pair {
grid-template-columns: 1fr;
}
}
@media (max-width: 33em) {
.header,
.footer {
font-size: 13.824px;
}
.nav {
padding-top: 7.68px;
padding-bottom: 7.68px;
}
.footer {
gap: 76.8px;
padding: 38.4px 5% 23.04px;
}
.footer-nav {
gap: 38.4px;
margin-top: 76.8px;
}
.footer-nav-links {
gap: 15.36px;
}
.footer-cell {
width: 192px;
gap: 11.52px;
}
.footer h3 {
font-size: 17.28px;
}
.equal-text {
font-size: 9.6px;
}
.copyright-text {
display: flex;
flex-direction: column;
align-items: center;
font-size: 11.52px;
}
.social-links {
gap: 11.52px;
}
.social-links img {
width: 30.72px;
}
.nav-links {
font-size: 19.2px;
}
.logo {
max-width: 153.6px;
}
.icon-mobile-nav {
width: 38.4px;
height: 38.4px;
}
.nav-links .btn:link,
.nav-links .btn:visited {
padding: 23.04px 15.36px;
width: 230.4px;
}
}
/* Hamburger widths. Shift names are not squeezed into the day cells. */
@media (max-width: 75em) {
.cal-day {
display: flex;
flex-direction: column;
}
.cal-day::before {
content: none;
}
.cal-day-face {
position: static;
flex: 1;
display: flex;
flex-direction: column;
gap: 0;
padding: 0;
overflow: visible;
}
.cal-day:hover,
.cal-day:focus-within,
.cal-day:hover .cal-day-face,
.cal-day:focus-within .cal-day-face,
.cal-day:hover .day-shifts,
.cal-day:focus-within .day-shifts {
overflow: visible;
}
.cal-day.has-shifts .day-label,
.shift-drawer {
display: none;
}
.cal-day:has(details[open]) .shift-drawer {
display: block;
}
.day-reveal {
display: block;
width: 100%;
}
.day-summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
width: 100%;
margin: 0;
padding: 0.7rem 0.85rem;
list-style: none;
cursor: pointer;
font: inherit;
color: inherit;
background: transparent;
border: 0;
text-align: left;
}
.day-summary::-webkit-details-marker {
display: none;
}
.day-summary::marker {
content: "";
}
.day-summary time {
display: flex;
align-items: baseline;
gap: 0.45rem;
}
.day-markers {
display: flex;
align-items: center;
gap: 0.55rem;
margin-left: auto;
}
.event-dot {
display: block;
width: 0.72rem;
height: 0.72rem;
border-radius: 50%;
background: var(--hope-yellow);
border: 2px solid var(--hope-ink);
flex: none;
}
.cal-day.is-today .event-dot {
background: var(--hope-gold);
}
.day-shifts {
gap: 0.5rem;
overflow: visible;
}
.cal-line,
.cal-hold,
.cal-shift:hover .cal-hold {
display: none;
}
.cal-detail,
.cal-shift:hover .cal-detail,
.cal-shift:focus-visible .cal-detail,
.cal-week-days > .cal-day:nth-child(n + 5) .cal-detail {
position: static;
left: auto;
right: auto;
visibility: visible;
opacity: 1;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 0.75rem;
row-gap: 0.12rem;
align-items: center;
width: auto;
margin: 0;
padding: 0.65rem 0.75rem;
background: var(--hope-blue-50);
border: 1px solid var(--hope-border-2);
border-left: 4px solid var(--hope-gold);
border-radius: 0.75rem;
box-shadow: none;
pointer-events: none;
animation: none;
transition: none;
}
.cal-detail::before {
content: none;
}
.cal-detail .role {
grid-column: 1;
font-size: 1.05rem;
}
.cal-detail .when,
.cal-detail .status,
.cal-detail .spots,
.cal-detail .cal-names {
grid-column: 1;
}
.cal-detail .cal-action {
grid-column: 2;
grid-row: 1 / -1;
align-self: center;
justify-self: end;
margin: 0;
white-space: nowrap;
}
.cal-detail .spots.is-open,
.cal-detail .spots.is-full {
margin-top: 0.25rem;
}
}
/* Wider hamburger layout: one even week row, shifts open underneath it. */
@media (min-width: 42.001em) and (max-width: 75em) {
.cal-day,
.cal-day.is-outside {
min-height: 4.75rem;
}
.day-summary,
.cal-day.is-empty .day-label {
flex: 1;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 0.35rem;
min-height: 4.75rem;
margin: 0;
padding: 0.35rem 0.2rem;
}
.day-markers {
margin-left: 0;
}
.day-num {
font-size: 1.3rem;
}
.today-flag,
.expand-chevron {
display: none;
}
.cal-day:has(details[open]) {
border-color: var(--hope-ink);
box-shadow: inset 0 0 0 1px var(--hope-ink);
}
.shift-calendar.js .cal-day .shift-drawer {
display: none;
}
.shift-calendar.js .week-tray .shift-drawer {
display: block;
}
.week-tray:not(:empty) {
display: block;
margin-top: 0.45rem;
}
.week-tray .shift-drawer {
padding: 0.9rem 1rem 1rem;
background: var(--hope-blue-75);
border: 1px solid var(--hope-ink);
border-radius: 0.9rem;
}
.week-tray .tray-label {
display: block;
margin: 0 0 0.65rem;
font-size: 1.2rem;
font-weight: 650;
}
.week-tray .day-shifts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
gap: 0.55rem;
}
}
/* Narrow hamburger layout: a single column, collapsed until a day is opened. */
@media (max-width: 42em) {
.cal-weekdays {
display: none;
}
.cal-weeks,
.cal-week-days {
gap: 0.5rem;
}
.cal-week-days {
display: flex;
flex-direction: column;
align-items: stretch;
}
.cal-day {
width: 100%;
}
.cal-day.is-outside {
display: none;
}
.day-summary,
.cal-day.is-empty .day-label {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
width: 100%;
min-height: 3.25rem;
margin: 0;
padding: 0.7rem 0.95rem;
}
.day-summary time,
.cal-day.is-empty .day-label time {
display: flex;
flex-direction: row;
align-items: baseline;
gap: 0.45rem;
}
.day-weekday {
display: block;
color: var(--hope-ink);
font-size: 1rem;
font-weight: 650;
line-height: 1.2;
}
.cal-day.is-past .day-weekday {
color: var(--hope-ink-2);
}
.day-num {
font-size: 1.15rem;
}
.expand-chevron {
display: block;
width: 0.48rem;
height: 0.48rem;
margin-top: -0.15rem;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: rotate(45deg);
flex: none;
}
details[open] > .day-summary .expand-chevron {
margin-top: 0.15rem;
transform: rotate(225deg);
}
.cal-day:has(details[open]) .shift-drawer {
padding: 0 0.75rem 0.8rem;
}
}
@media (prefers-reduced-motion: reduce) {
@view-transition {
navigation: none;
}
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
animation: none !important;
}
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
transition: none !important;
}
.cal-shift:hover .cal-detail,
.cal-shift:focus-visible .cal-detail {
pointer-events: auto;
animation: none;
}
.cal-hold {
display: none;
}
}
/* Coordinator event page */
.event-page {
gap: 0.95rem;
}
.event-head {
display: grid;
gap: 0.2rem;
}
@media (min-width: 42.01em) {
.event-head {
padding-top: 1.85rem;
}
}
.crumb {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem 0.55rem;
margin: 0;
color: var(--hope-ink-2);
font-size: 0.92rem;
line-height: 1.3;
}
.crumb-part {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.crumb a {
color: var(--hope-ink);
font-weight: 600;
text-decoration: none;
}
.crumb a:hover {
text-decoration: underline;
}
.crumb [aria-current='page'] {
color: var(--hope-ink-2);
}
main > .crumb,
.event-page > .crumb {
margin-bottom: 0.35rem;
}
.event-titlebar,
.event-panel-head,
.event-danger {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.75rem 1rem;
}
.event-title {
display: flex;
align-items: center;
gap: 0.6rem;
min-width: 0;
}
.event-page h1 {
margin: 0;
font-size: clamp(1.85rem, 3vw, 2.35rem);
font-weight: 650;
}
.event-badge {
display: inline-flex;
align-items: center;
flex: none;
min-height: 1.4rem;
padding: 0.05rem 0.55rem;
border-radius: 999px;
background: #e7edf2;
color: #5c6770;
font-size: 0.75rem;
font-weight: 650;
line-height: 1.2;
}
.event-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.event-actions form {
display: flex;
margin: 0;
}
.event-page .event-actions .btn-line,
.event-page .event-actions button.btn-line,
.event-page .event-actions a.btn.btn-line {
height: 2.5rem;
min-height: 2.5rem;
padding: 0 0.95rem;
}
.event-page .btn-line,
.event-page button.btn-line,
.event-page a.btn.btn-line {
min-height: 2.35rem;
padding: 0.28rem 0.9rem;
background: #fff;
border: 1px solid #d5dee6;
box-shadow: none;
color: var(--hope-ink);
font-size: 0.92rem;
font-weight: 650;
}
.event-page .btn-line::before,
.event-page button.btn-line::before,
.event-page a.btn.btn-line::before {
content: none;
}
.event-page .btn-line:hover,
.event-page .btn-line:active,
.event-page button.btn-line:hover,
.event-page button.btn-line:active,
.event-page a.btn.btn-line:hover,
.event-page a.btn.btn-line:active {
transform: none;
background: #f4f8fb;
color: var(--hope-ink);
}
.event-page .event-panel-tools > a.btn:not(.btn-line) {
min-height: 2.35rem;
padding: 0.28rem 0.95rem;
box-shadow: none;
font-size: 0.92rem;
}
.event-page .event-panel-tools > a.btn:not(.btn-line):hover,
.event-page .event-panel-tools > a.btn:not(.btn-line):active {
transform: none;
}
.event-strip,
.event-panel,
.event-danger {
background: #fff;
border: 1px solid #e6eef3;
box-shadow: 0 8px 24px rgb(34 55 70 / 0.05);
}
.event-strip {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 0.75rem 1rem;
padding: 0.85rem 1rem;
border-radius: 1rem;
}
.event-strip-line {
display: flex;
flex-wrap: wrap;
align-items: baseline;
grid-column: 1;
grid-row: 1;
gap: 0.35rem 0.85rem;
min-width: 0;
margin: 0;
}
.event-strip-line strong {
font-weight: 650;
}
.event-strip-line span {
color: #5c6b78;
}
.event-edit {
display: contents;
}
.event-edit:not([open]) > form {
display: none;
}
.event-edit > summary {
display: inline-flex;
align-items: center;
justify-self: end;
grid-column: 2;
grid-row: 1;
gap: 0.4rem;
min-height: 2.35rem;
padding: 0.28rem 0.9rem;
list-style: none;
cursor: pointer;
background: #fff;
border: 1px solid #d5dee6;
border-radius: 999px;
color: var(--hope-ink);
font-size: 0.92rem;
font-weight: 650;
}
.event-edit > summary::-webkit-details-marker {
display: none;
}
.event-edit[open] > form {
grid-column: 1 / -1;
grid-row: 2;
}
.edit-chevron {
width: 0.4rem;
height: 0.4rem;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: translateY(-0.1rem) rotate(45deg);
}
.event-edit[open] .edit-chevron {
transform: translateY(0.08rem) rotate(225deg);
}
.event-panel {
display: grid;
gap: 0.8rem;
padding: 1.1rem 1.15rem 1rem;
border-radius: 1.15rem;
}
.event-panel h2,
.event-danger h2 {
margin: 0;
font-size: 1.28rem;
font-weight: 650;
}
.event-panel-title {
display: flex;
align-items: center;
gap: 0.4rem;
min-width: 0;
}
.event-panel-tools {
display: grid;
justify-items: end;
gap: 0.35rem;
}
.event-panel-tools .pick-all {
font-size: 0.8rem;
color: #7d8b99;
}
.event-panel-note {
margin: 0.15rem 0 0;
color: #7d8b99;
font-size: 0.92rem;
line-height: 1.4;
}
.event-page button.text-action {
min-height: 0;
padding: 0;
background: transparent;
border: 0;
box-shadow: none;
color: #4d7494;
font: inherit;
font-size: 0.92rem;
font-weight: 650;
text-decoration: underline;
text-underline-offset: 0.12em;
}
.event-page button.text-action::before {
content: none;
}
.event-page button.text-action:hover,
.event-page button.text-action:active {
transform: none;
background: transparent;
color: var(--hope-ink);
}
.help-tip {
position: relative;
display: inline-flex;
}
.help-tip > summary {
display: grid;
place-items: center;
width: 1.15rem;
height: 1.15rem;
border: 1.5px solid #b7c3cc;
border-radius: 999px;
color: #8b98a6;
font-size: 0.72rem;
font-weight: 700;
line-height: 1;
list-style: none;
cursor: pointer;
}
.help-tip > summary::-webkit-details-marker {
display: none;
}
.help-tip:not([open]) > p {
display: none;
}
.help-tip p {
position: absolute;
z-index: 6;
top: calc(100% + 0.45rem);
left: 0;
width: min(22rem, 70vw);
margin: 0;
padding: 0.7rem 0.8rem;
background: #fff;
border: 1px solid #e6eef3;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(34 55 70 / 0.12);
color: #44515c;
font-size: 0.86rem;
font-weight: 400;
letter-spacing: 0;
line-height: 1.45;
}
.shift-lines,
.repeat-lines {
list-style: none;
display: grid;
gap: 0.55rem;
margin: 0;
padding: 0;
}
.shift-line {
display: flex;
align-items: center;
gap: 0.15rem;
min-width: 0;
}
.event-panel:has(.is-pick) .shift-line,
.shift-lines:has(> .is-pick) > .shift-line {
display: grid;
grid-template-columns: 1.35rem minmax(0, 1fr);
align-items: center;
column-gap: 0.15rem;
padding-left: 0.7rem;
background: #f3f7fb;
border-radius: 0.95rem;
}
.event-panel:has(.is-pick) .shift-line .shift-line-link,
.shift-lines:has(> .is-pick) > .shift-line .shift-line-link {
background: transparent;
}
.event-panel:has(.is-pick) .shift-line:not(.is-pick) .shift-line-link,
.shift-lines:has(> .is-pick) > .shift-line:not(.is-pick) .shift-line-link {
grid-column: 2;
}
.shift-line.is-pick .shift-line-link:hover,
.shift-line.is-pick .shift-line-link:focus-visible,
.shift-lines:has(> .is-pick) > .shift-line:not(.is-pick) .shift-line-link:hover,
.shift-lines:has(> .is-pick) > .shift-line:not(.is-pick) .shift-line-link:focus-visible {
background: #e8f1f7;
}
.shift-line-link {
display: flex;
align-items: center;
gap: 0.85rem 1rem;
flex: 1;
min-width: 0;
min-height: 4.35rem;
padding: 0.55rem 0.95rem;
background: #f3f7fb;
border-radius: 0.95rem;
color: inherit;
text-decoration: none;
}
.shift-line-link:hover,
.shift-line-link:focus-visible {
background: #e8f1f7;
color: inherit;
text-decoration: none;
}
.shift-date {
display: grid;
justify-items: center;
flex: none;
width: 2.6rem;
line-height: 1.05;
}
.shift-dow,
.shift-mon {
color: #8b98a6;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.04em;
}
.shift-num {
font-size: 1.35rem;
font-weight: 650;
letter-spacing: -0.03em;
}
.shift-copy {
display: grid;
min-width: 0;
gap: 0.05rem;
}
.shift-copy strong {
font-size: 1rem;
font-weight: 650;
line-height: 1.25;
}
.shift-copy span {
color: #7d8b99;
font-size: 0.86rem;
line-height: 1.3;
}
.fill-pill {
display: inline-flex;
align-items: center;
flex: none;
gap: 0.28rem;
margin-left: auto;
min-height: 1.7rem;
padding: 0.12rem 0.7rem;
border-radius: 999px;
font-size: 0.82rem;
font-weight: 650;
line-height: 1.2;
white-space: nowrap;
}
.fill-pill.is-open {
background: #f8e7b0;
color: #8a6414;
}
.fill-pill.is-full {
background: #e3f6e8;
color: #1f7a43;
}
.fill-pill.is-needs {
background: #fde4e1;
color: #b42318;
}
.fill-pill.is-cancelled {
background: #eef1f4;
color: #5c6770;
}
.fill-check {
width: 0.85rem;
height: 0.85rem;
flex: none;
}
.fill-check path {
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.shift-line-link::after {
content: "";
flex: none;
width: 0.42rem;
height: 0.42rem;
margin-left: 0.1rem;
border-right: 2px solid #8b98a6;
border-bottom: 2px solid #8b98a6;
transform: rotate(-45deg);
}
.shift-tail {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
column-gap: 1rem;
row-gap: 0.55rem;
min-height: 2.2rem;
}
.event-page .shift-more {
grid-column: 1;
width: 100%;
min-width: 0;
}
.event-page .shift-more[open] {
display: flex;
flex-direction: column;
gap: 0.55rem;
grid-column: 1 / -1;
grid-row: 1;
width: 100%;
min-width: 0;
}
.event-page .shift-more:not([open]) > .shift-lines {
display: none;
}
.event-page .shift-more[open] > .shift-lines {
width: 100%;
min-width: 0;
}
.event-page .shift-more > summary {
display: inline-flex;
align-items: center;
gap: 0.35rem;
width: fit-content;
min-height: 2.2rem;
color: #5c6b78;
font-size: 0.92rem;
font-weight: 650;
list-style: none;
cursor: pointer;
}
.event-page .shift-more > summary::-webkit-details-marker {
display: none;
}
.event-page .shift-more > summary::after {
content: "";
width: 0.4rem;
height: 0.4rem;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: translateY(-0.08rem) rotate(45deg);
}
.event-page .shift-more[open] > summary {
order: 1;
}
.event-page .shift-more[open] > summary::after {
transform: translateY(0.08rem) rotate(225deg);
}
.shift-lines > li:has(> .shift-more) {
display: grid;
gap: 0.55rem;
}
.event-page .shift-tail:has(.shift-more[open]) > .fill-legend {
grid-row: 1;
align-self: end;
margin: 0 0 0.4rem;
z-index: 1;
}
.fill-legend {
grid-column: 2;
grid-row: 1;
align-self: center;
margin-top: 0;
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.3rem 0.85rem;
margin: 0;
padding: 0;
list-style: none;
color: #7d8b99;
font-size: 0.8rem;
}
.fill-legend li {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.fill-dot {
width: 0.45rem;
height: 0.45rem;
border-radius: 999px;
}
.fill-dot.is-full {
background: #3d9a62;
}
.fill-dot.is-open {
background: #e0b44a;
}
.fill-dot.is-needs {
background: #e06a60;
}
.repeat-line {
display: flex;
align-items: center;
gap: 0.6rem;
min-height: 4.15rem;
padding: 0.7rem 0.85rem 0.7rem 1rem;
background: #f3f7fb;
border-radius: 0.95rem;
}
.repeat-copy {
display: grid;
min-width: 0;
margin-right: auto;
gap: 0.05rem;
}
.repeat-copy strong {
font-size: 0.98rem;
font-weight: 650;
line-height: 1.3;
}
.repeat-copy span {
color: #7d8b99;
font-size: 0.86rem;
line-height: 1.3;
}
.repeat-line .btn-line {
flex: none;
}
.more-menu {
position: relative;
flex: none;
}
.more-menu > summary {
display: grid;
place-items: center;
width: 2.25rem;
height: 2.25rem;
border: 1px solid #d5dee6;
border-radius: 999px;
background: #fff;
color: #5c6770;
font-size: 1.15rem;
line-height: 1;
list-style: none;
cursor: pointer;
}
.more-menu > summary::-webkit-details-marker {
display: none;
}
.more-menu:not([open]) > .more-menu-pop {
display: none;
}
.more-menu-pop {
position: absolute;
z-index: 5;
top: calc(100% + 0.3rem);
right: 0;
display: grid;
min-width: 8.5rem;
padding: 0.3rem;
background: #fff;
border: 1px solid #e6eef3;
border-radius: 0.75rem;
box-shadow: 0 8px 24px rgb(34 55 70 / 0.1);
}
.more-menu-pop a {
padding: 0.4rem 0.65rem;
border-radius: 0.5rem;
font-size: 0.92rem;
font-weight: 650;
text-decoration: none;
}
.more-menu-pop a:hover {
background: #f3f7fb;
color: var(--hope-ink);
}
.event-danger {
padding: 0.95rem 1.05rem;
border-color: #f0c2bc;
border-radius: 1rem;
}
.event-danger h2 {
color: #c24135;
font-size: 1.05rem;
}
.event-danger p {
margin: 0.12rem 0 0;
color: #7d8b99;
font-size: 0.9rem;
line-height: 1.4;
}
.event-page .btn-danger,
.event-page a.btn.btn-danger {
min-height: 2.35rem;
padding: 0.28rem 0.95rem;
background: #fff;
border: 1px solid #e7b2ab;
box-shadow: none;
color: #c24135;
font-size: 0.92rem;
font-weight: 650;
}
.event-page .btn-danger::before,
.event-page a.btn.btn-danger::before {
content: none;
}
.event-page .btn-danger:hover,
.event-page .btn-danger:active,
.event-page a.btn.btn-danger:hover,
.event-page a.btn.btn-danger:active {
transform: none;
background: #fff6f5;
color: #c24135;
}
.event-panel .empty {
margin: 0;
padding: 0.85rem 1rem;
background: #f3f7fb;
border-radius: 0.95rem;
box-shadow: none;
}
.event-page .pick-bar {
margin-top: -0.2rem;
}
@media (max-width: 42em) {
.event-actions,
.event-actions form {
width: 100%;
}
.event-actions .btn-line,
.event-actions button.btn-line {
width: 100%;
}
.event-danger,
.repeat-line {
align-items: stretch;
}
.repeat-line .btn-line,
.event-danger .btn-danger {
width: auto;
}
.event-page .shift-tail {
grid-template-columns: minmax(0, 1fr);
}
.event-page .fill-legend {
grid-column: 1;
grid-row: 2;
justify-content: flex-start;
margin-top: 0.15rem;
}
.event-page .shift-tail:has(.shift-more[open]) > .fill-legend {
grid-row: 2;
align-self: start;
margin: 0.15rem 0 0;
}
.shift-line-link {
flex-wrap: wrap;
}
}