/* PunchMan theme — matches TriNect: warm paper, near-black ink, indigo accent, Archivo + Hanken Grotesk. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #14150f; --paper: #f6f4ef; --card: #fff;
  --accent: #6657d9; --accent-ink: #4b3fb0; --accent-soft: #efedff;
  --teal: #138b75; --muted: #696d65; --line: #deddd5; --line-strong: #c8c8be;
  /* Status colours are only ever used as small text or small glyphs on their own tinted background
     (pills, the flash toast, the onboarding tick), where 4.5:1 applies. The old pair measured 3.62:1
     for green and 4.07:1 for amber, so both are a shade deeper now; --teal keeps the original value
     for the large filled Clock In button, which is judged against 3:1 and passes. */
  --green: #0f6d5b; --green-bg: #e2f1ec; --red: #b3261e; --red-bg: #fbe9e7;
  --amber: #845a00; --amber-bg: #f7edd6;
  --muted-strong: #5f6259;   /* --muted (4.42:1) is too light on the grey pill's own background */
  /* aliases kept so older markup keeps working */
  --navy: #14150f; --navy-2: #6657d9; --gold: #6657d9; --bg: #f6f4ef; --text: #14150f;
  --radius: 14px;
}
* { box-sizing: border-box; }
/* `hidden` must win over any class that sets `display` (.finger, .facecam, table rows, ...).
   Without this, an element marked hidden in the markup can still be on screen. */
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: "Archivo", "Hanken Grotesk", system-ui, sans-serif; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); }

.btn { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; transition: background .15s, border-color .15s; }
.btn:hover { background: #f1efe9; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.danger { color: var(--red); border-color: #e6c9c6; }
.btn.danger:hover { background: var(--red-bg); }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

input, select, textarea { border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }  /* a wrapped pill collapses into an unreadable blob in a narrow table column */
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.gray { background: #ecebe4; color: var(--muted-strong); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.error { color: var(--red); }

/* ---- The PunchMan mark, animated -------------------------------------------------------------
   The logo is four stacked layers cut from the original artwork (see brand/README.md): rays, gear,
   the blue ring + wrench, and the fist. All share one canvas, so they line up exactly; the transform
   origin is the gear's measured centre, not the image centre. mark.js spins the gear and punches. */
.pm-mark { position: relative; display: inline-block; width: var(--s, 40px); aspect-ratio: 520 / 528; flex: none; cursor: pointer; }
.pm-mark img { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 52.27% 50.36%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pm-mark .rays { animation: pm-rays 3.4s ease-in-out infinite; }
@keyframes pm-rays { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .45; } }
.pm-mark.punch .fist { animation: pm-punch .52s cubic-bezier(.2, 1.5, .35, 1); }
.pm-mark.punch .rays { animation: pm-burst .6s cubic-bezier(.2, .8, .3, 1); }
.pm-mark.punch .ring { animation: pm-jolt .4s ease-out; }
@keyframes pm-punch { 0% { transform: scale(1); } 28% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes pm-burst { 0% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pm-jolt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 60% { transform: rotate(3deg); } }
.pm-mark.shake { animation: pm-shake .42s; }
@keyframes pm-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6%); } 40%, 80% { transform: translateX(6%); } }
/* Entrance: the parts assemble, then the fist lands. */
.pm-mark.intro .rays { animation: pm-in-rays 1.1s .55s both cubic-bezier(.2, .8, .3, 1), pm-rays 3.4s 1.7s ease-in-out infinite; }
.pm-mark.intro .gear { animation: pm-in-gear 1s both cubic-bezier(.2, .8, .3, 1); }
.pm-mark.intro .ring { animation: pm-in-ring .8s .2s both cubic-bezier(.2, .8, .3, 1); }
.pm-mark.intro .fist { animation: pm-in-fist .6s .75s both cubic-bezier(.25, 1.6, .4, 1); }
/* Keep each layer visible from first paint. Transform-only entrances retain the motion without
   delaying the page's largest visible content on a cold mobile connection. */
@keyframes pm-in-rays { from { transform: scale(.7); } to { transform: none; } }
@keyframes pm-in-gear { from { transform: rotate(-120deg) scale(.85); } to { transform: none; } }
@keyframes pm-in-ring { from { transform: scale(.6) rotate(40deg); } to { transform: none; } }
@keyframes pm-in-fist { from { transform: scale(2.4); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pm-mark img, .pm-mark { animation: none !important; } }

/* ---- Trinect footer: the same footer trinect.org uses, on every public PunchMan page ---------- */
.tn-foot { background: #f6f4ef; border-top: 1px solid #deddd5; color: #11120f; padding: 64px 0 40px; font-family: "Hanken Grotesk", system-ui, sans-serif; position: relative; z-index: 1; }
.tn-foot .in { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.tn-foot .top { display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; padding-bottom: 56px; }
.tn-foot .id { display: flex; align-items: center; gap: 10px; color: #11120f; text-decoration: none; font-family: "Archivo", "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.tn-foot .id img { width: 30px; height: 30px; object-fit: contain; }
.tn-foot .tn-tag { font-family: "Source Serif 4", Georgia, serif; font-size: 25.6px; line-height: 1.3; margin: 26px 0 0; max-width: 460px; font-weight: 400; }
.tn-foot .cols { display: flex; gap: 72px; }
.tn-foot h4 { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: #696d65; margin: 0 0 22px; }
.tn-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tn-foot ul a { color: #11120f; text-decoration: none; font-size: 14px; }
.tn-foot ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tn-foot .base { border-top: 1px solid #deddd5; padding-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #696d65; }
.tn-foot .base p { margin: 0; }
@media (max-width: 760px) {
  .tn-foot .top { grid-template-columns: 1fr; }
  .tn-foot .cols { gap: 40px; flex-wrap: wrap; }
  .tn-foot .in { padding: 0 20px; }
  .tn-foot .base { flex-direction: column; }
}
