/* DayHelp public site. One bold element: the shift notice with taped-over contacts. Everything else stays quiet. */

/* Fallback with Onest's width while the font loads: the headline does not reflow when Onest arrives (CLS). */
@font-face { font-family: 'Onest Fallback'; src: local('Arial'), local('Liberation Sans'), local('Helvetica'); size-adjust: 104.5%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --bg: #f4f7fb; --card: #fff; --ink: #14243b; --mut: #283c55; --acc: #0648cb; --acc-dark: #04379c;
  --sun: #ffd36b; --line: #c9d4e3; --field: #63748a; --wash: #e9f0ff;
  --gutter: clamp(16px, 4vw, 48px); --shell: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Onest, 'Onest Fallback', system-ui, sans-serif; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acc); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 780; text-wrap: balance; }
h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 740; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.wrap { width: min(100%, var(--shell)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 760px; }
main > section { padding-block: clamp(44px, 7vw, 88px); }
main > section > .wrap > h2 { margin-bottom: 14px; max-width: 24ch; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--mut); max-width: 56ch; margin-top: 18px; }
.sub { color: var(--mut); max-width: 62ch; margin-bottom: 26px; }
.small, .note { font-size: 14px; color: var(--mut); }
.place { display: inline-block; background: var(--sun); color: var(--ink); border-radius: 4px 12px 12px 4px; padding: 5px 12px; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border-radius: 10px; border: 2px solid var(--acc);
  background: var(--acc); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; text-align: center; }
.btn:hover { background: var(--acc-dark); border-color: var(--acc-dark); }
.btn.alt { background: var(--card); color: var(--acc); }
.btn.alt:hover { background: var(--wash); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 700; }
main > section .wrap > .btn { margin-top: 26px; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px 22px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 820; letter-spacing: -.05em; color: var(--ink); text-decoration: none; min-height: 44px; }
.mark { width: 28px; height: 28px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230648CB'/%3E%3Cpath fill='%23FFD36B' d='M12 43V24l10-8 9 8v19H12Zm21 0V24l9-8 10 8v19H33ZM12 46h40v4H12z'/%3E%3Cpath fill='%230648CB' d='M19 32h6v11h-6zM39 32h6v11h-6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.nav { display: flex; gap: 4px 18px; margin-right: auto; }
.nav a, .langs a, .crumbs a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover, .nav a[aria-current] { color: var(--acc); text-decoration: underline; }
.langs { display: flex; border: 1px solid var(--field); border-radius: 10px; overflow: hidden; }
.langs a { padding: 0 11px; font-size: 14px; }
.langs a:focus-visible { outline-offset: -3px; outline-color: var(--ink); }
.langs a[aria-current]:focus-visible { outline-color: var(--sun); }
.langs a + a { border-left: 1px solid var(--field); }
.langs a[aria-current] { background: var(--ink); color: #fff; }
.crumbs { font-size: 15px; color: var(--mut); padding-top: 10px; }
.crumbs a { color: var(--acc); font-weight: 600; min-height: 44px; }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(44px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .small { margin-top: 16px; max-width: 48ch; }
.hero-art { position: relative; padding-bottom: 210px; }
.hero-art > img { border-radius: 6px 6px 22px 6px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* The notice: a posted shift with contacts taped over. */
.notice { position: absolute; left: clamp(-36px, -3vw, -12px); bottom: 0; width: min(340px, 80%); background: var(--card); border: 2px solid var(--ink);
  border-radius: 4px 4px 14px 4px; padding: 16px 18px 14px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.2deg); }
.notice::before { content: ''; position: absolute; top: -12px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: var(--sun); opacity: .92; transform: rotate(3deg); }
.notice figcaption { font-weight: 760; font-size: 15px; line-height: 1.3; margin-bottom: 10px; }
.notice ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.notice li { display: flex; align-items: center; gap: 8px; font-size: 15px; min-height: 26px; }
.notice li.open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.notice li.shut { position: relative; color: var(--mut); }
.notice li.shut::before { content: ''; width: 8px; height: 8px; border-radius: 2px; border: 2px solid var(--ink); flex: none; }
.notice li.shut i { flex: 1; height: 18px; border-radius: 2px; background: repeating-linear-gradient(-45deg, var(--sun) 0 10px, #f5c34a 10px 20px); }
.notice p { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--field); font-size: 14px; color: var(--mut); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); margin-top: 26px; }
.roles article { background: var(--card); border: 1px solid var(--line); border-radius: 6px 6px 18px 6px; overflow: hidden; display: flex; flex-direction: column; }
.roles article:first-child { border-top: 5px solid var(--acc); }
.roles article:last-child { border-top: 5px solid var(--sun); }
.roles img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.roles h3 { font-size: 23px; margin: 22px 24px 8px; }
.roles p { margin-inline: 24px; color: var(--mut); }
.roles ul { margin: 14px 24px 0; }
.roles .role-go { margin: auto 24px 24px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.roles .role-go .more { margin-top: 0; }

/* Lists */
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 13px; height: 7px; border-left: 3px solid var(--acc); border-bottom: 3px solid var(--acc); transform: rotate(-45deg); }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 6px 6px 16px 6px; padding: 20px; }
.band .steps li { background: var(--bg); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; background: var(--sun); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--mut); }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 64px); margin-top: 10px; }
.facts li { padding: 20px 0; border-top: 1px solid var(--line); }
.facts h3 { margin-bottom: 6px; }
.facts p { color: var(--mut); max-width: 56ch; }
.cols { columns: 2 260px; column-gap: 40px; padding-left: 22px; }
.cols li { margin-bottom: 8px; break-inside: avoid; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border: 1px solid var(--field); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* Tiles: categories and areas */
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles + .tiles { margin-top: 18px; }
.tiles a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 6px 6px 16px 6px; overflow: hidden; text-decoration: none; color: var(--ink); }
.band .tiles a { background: var(--bg); }
.tiles a:hover { border-color: var(--acc); }
.tiles a:hover strong { text-decoration: underline; }
.tiles img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tiles strong { font-size: 21px; color: var(--acc); margin: 16px 18px 2px; }
.tiles span { color: var(--mut); margin: 0 18px 18px; }

/* Inner pages */
.intro { padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px) !important; }
.intro.with-photo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.photo img { border-radius: 6px 6px 22px 6px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.two-col h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.two-col p { color: var(--mut); }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 0; font-weight: 700; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--acc); color: var(--acc); font-weight: 700; }
details[open] summary::after { content: '−'; }
details p { padding: 0 0 18px; color: var(--mut); max-width: 64ch; }

/* Landings: the other side gets one quiet line, not a second set of buttons. */
.switch-side { padding-block: 28px !important; border-top: 1px solid var(--line); }
.switch-side p { font-size: 18px; font-weight: 650; }
.switch-side a { font-weight: 750; }

/* Legal documents: one readable column, with the date styled as a DayHelp label. */
.legal-doc { max-width: 800px; padding-block: 24px clamp(36px, 6vw, 72px); }
.legal-doc header .small { display: inline-block; margin-bottom: 14px; padding: 5px 12px; background: var(--sun); color: var(--ink); border-radius: 4px 12px 12px 4px; }
.legal-doc > .btn { margin-top: 20px; }
.legal-doc section, .legal-links { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-doc h2 { font-size: clamp(22px, 3vw, 28px); }
.legal-doc section p { margin-top: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Final band and footer */
.final { background: var(--ink); color: #fff; }
.final h2 { color: #fff; }
.final p { color: #dfe7f2; margin-top: 10px; font-size: 18px; }
.final .btn { border-color: var(--sun); background: var(--sun); color: var(--ink); }
.final .btn:hover { background: #ffe08f; border-color: #ffe08f; }
.final .btn.alt { background: transparent; color: #fff; border-color: #fff; }
.final .btn.alt:hover { background: #24395a; }
.final :focus-visible { outline-color: var(--sun); }
.foot { background: var(--card); border-top: 1px solid var(--line); padding-block: 44px 56px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot p { color: var(--mut); font-size: 14px; margin-top: 10px; max-width: 42ch; }
.foot h2 { font-size: 15px; letter-spacing: 0; margin-bottom: 6px; }
.foot nav { display: flex; flex-direction: column; }
.foot nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; padding-block: 4px; line-height: 1.3; }

@media (max-width: 960px) {
  .hero .wrap, .intro.with-photo .wrap, .two-col { grid-template-columns: 1fr; }
  .hero-art { padding-bottom: 0; }
  .notice { position: relative; left: auto; bottom: auto; width: auto; margin: -36px 12px 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top .wrap { padding-block: 8px; gap: 4px 12px; }
  .langs { margin-left: auto; }
  .top .btn.small { order: 3; width: 100%; background: var(--card); color: var(--acc); }
  .nav { order: 4; width: 100%; gap: 0 14px; flex-wrap: wrap; }
  .nav a { font-size: 15px; }
  .roles, .steps, .facts, .tiles, .tiles.two { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
  .roles .role-go .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .notice { animation: pin .5s cubic-bezier(.2, .8, .3, 1.2) .15s both; }
  @keyframes pin { from { transform: translateY(14px) rotate(-4deg); opacity: 0; } }
}
