/* Altiv Jobs. Colours and font from the Altiv Brand Kit (exact values only). */
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-200.otf") format("opentype"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-300.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("fonts/Aspekta-400.otf") format("opentype"); font-weight: 400; font-display: swap; }

:root {
  --yellow: #FFC91B;
  --near-black: #131615;
  --logo-charcoal: #343333;
  --off-white: #EEEEEE;
  --pale-grey: #DAE2E2;
  --font: "Aspekta", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --tap: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  color: var(--near-black);
  background: var(--pale-grey);
}

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: var(--near-black);
}
.logo { height: 26px; width: auto; display: block; }
.who { font-weight: 400; font-size: 15px; color: var(--pale-grey); }
.sample-strip {
  background: var(--yellow); color: var(--near-black);
  font-weight: 400; font-size: 14px; text-align: center; padding: 6px 16px;
}

main { max-width: 560px; margin: 0 auto; padding: 16px 16px calc(140px + env(safe-area-inset-bottom)); outline: none; }

h1 { font-weight: 200; font-size: 30px; line-height: 1.15; margin: 0 0 4px; }
h2 {
  font-weight: 400; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--logo-charcoal); margin: 28px 0 10px;
}
h3 { font-weight: 400; font-size: 19px; line-height: 1.3; margin: 0 0 4px; }
p { margin: 0 0 8px; }
a { color: inherit; }
.muted { color: var(--logo-charcoal); font-size: 15px; }

.card { background: var(--off-white); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; }
.card.flag { border-left: 6px solid var(--yellow); }
a.card { display: block; text-decoration: none; }
.heard { white-space: pre-line; }

.dayhead { display: grid; grid-template-columns: var(--tap) 1fr var(--tap); align-items: center; gap: 8px; text-align: center; }
.navbtn {
  display: flex; align-items: center; justify-content: center;
  height: var(--tap); border-radius: var(--radius); background: var(--off-white);
  font-size: 28px; text-decoration: none;
}
.time { font-weight: 400; font-size: 15px; color: var(--logo-charcoal); margin-bottom: 2px; }
.site { display: inline-block; margin: 2px 0 6px; text-decoration: underline; text-underline-offset: 3px; }
.activity { display: flex; gap: 12px; padding: 6px 16px 14px; color: var(--logo-charcoal); font-size: 15px; }
.activity .time { min-width: 96px; margin: 0; }
.back { display: inline-block; min-height: 44px; line-height: 44px; font-weight: 400; text-decoration: none; }

.btn {
  display: flex; align-items: center; justify-content: center; position: relative;
  width: 100%; min-height: var(--tap); margin-top: 10px; padding: 0 18px;
  border: 1.5px solid var(--logo-charcoal); border-radius: var(--radius);
  background: var(--off-white); color: var(--near-black);
  font: inherit; font-weight: 400; font-size: 17px; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--yellow); border-color: var(--yellow); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

.progress { height: 10px; border-radius: 5px; background: var(--pale-grey); overflow: hidden; margin: 12px 0; }
.progress > span { display: block; height: 100%; background: var(--yellow); transition: width .4s; }

.picked { list-style: none; padding: 0; margin: 12px 0 0; }
.picked li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--pale-grey); font-size: 15px; overflow-wrap: anywhere; }

.field {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--near-black); background: var(--off-white);
  border: 1px solid var(--logo-charcoal); border-radius: 8px;
}
textarea.field { min-height: 200px; resize: vertical; }
.q p { margin-bottom: 10px; }
.row { padding: 12px 0; border-top: 1px solid var(--pale-grey); }
.row:first-child { border-top: 0; padding-top: 0; }
.line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.line.first { margin-top: 0; }
.line.first .field { flex: 1; min-width: 0; }
.line .field[type="time"] { flex: 1; min-width: 0; }
.line .qty { width: 84px; flex: none; }
.line .unit { width: 84px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--pale-grey); font-size: 13px; font-weight: 400; white-space: nowrap;
}
.tag.warn { background: var(--yellow); }
.x {
  flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 8px;
  background: var(--pale-grey); color: var(--near-black); font: inherit; font-size: 22px; cursor: pointer;
}
.error { font-weight: 400; margin: 8px 0 0; }

.footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--off-white); border-top: 1px solid var(--pale-grey);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.footer .inner { max-width: 560px; margin: 0 auto; }
.footer .btn { margin-top: 0; }
.footer p { font-size: 13px; text-align: center; color: var(--logo-charcoal); margin: 6px 0 0; }

dialog {
  width: calc(100% - 32px); max-width: 420px; padding: 20px;
  border: 0; border-radius: var(--radius); background: var(--off-white); color: var(--near-black);
}
dialog::backdrop { background: rgba(19, 22, 21, .6); }
