/* Staff: register-led. Hero = narrow text beside a wide register (calendar + salary slip); the month-end argument as
   a conversation; monthly vs daily pay as two worked sums; every payment as a dated list. */

.sf-hero { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 4vw; align-items: start; padding-top: 124px; padding-bottom: clamp(40px, 7vh, 80px) }
.sf-hero .h-xl { font-size: clamp(36px, 3.9vw, 58px) }
.sf-text { padding-top: 10px }

/* the register */
.reg { border: 1px solid var(--border); border-radius: 18px; background: #fff; padding: 18px 20px 20px; box-shadow: 0 50px 90px -60px rgba(31,35,40,.5) }
.reg-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px }
.reg-who { display: flex; align-items: center; gap: 12px } .reg-who .tag { margin: 0 }
.reg-month { font-size: 18px; letter-spacing: -0.01em }
.reg-hint { margin: 10px 0 14px; font-size: 14.5px; color: var(--muted) } .reg-hint .eg { margin-left: 6px }
.reg-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start }

.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px }
.cal-dow span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--faint); padding-bottom: 4px }
.cal-pad { aspect-ratio: 1 }
.day { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1; border-radius: 9px; display: grid; grid-template-rows: auto 1fr; justify-items: center; padding: 4px 0 6px; background: #fff; border: 1.5px dashed #D6E1EE; transition: transform .1s, background .2s }
.day:active { transform: scale(.94) }
.day:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 1px }
.day-n { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.2 }
.dot { display: block; align-self: center; width: 46%; aspect-ratio: 1; border-radius: 50%; background: transparent }
.day.future { cursor: default; border: 1px solid #EEF2F7; background: #FAFBFD } .day.future .day-n { color: #A7B3C2 }
.day.today { box-shadow: 0 0 0 2px var(--ink) }
/* the owner's symbols, and the tile tinted to match */
.st-present .dot, .dot.st-present { background: #00A884 }
.st-half .dot, .dot.st-half { background: conic-gradient(#00A884 0 50%, #C3CDD8 0) }
.st-absent .dot, .dot.st-absent { background: #E5484D }
.st-leave .dot, .dot.st-leave { background: radial-gradient(circle, #0284C7 0 26%, #fff 28%); box-shadow: inset 0 0 0 3px #0284C7 }
.day.st-present { background: #EAF8F2; border: 1.5px solid #CBEEDF } .day.st-absent { background: #FDEEEE; border: 1.5px solid #F7CFCF }
.day.st-half { background: linear-gradient(90deg, #EAF8F2 50%, #F1F4F8 50%); border: 1.5px solid #D6E3EA } .day.st-leave { background: #E8F4FD; border: 1.5px solid #C5E3F8 }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted) }
.legend li { display: flex; align-items: center; gap: 7px } .legend .dot { width: 14px; flex: none }

/* the salary slip */
.pay { padding: 16px; border-radius: 12px; background: #FBFAF6; border: 1px solid #ECE5D6; min-height: 340px }
.pay-l { font-size: 13.5px; font-weight: 700; color: var(--faint); margin-bottom: 8px }
.pay-lines { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; font-size: 14.5px }
.pay-lines dt { color: var(--muted) } .pay-lines dd { margin: 0; text-align: right; font-weight: 600 }
.pay-due { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 12px 0 14px; padding-top: 12px; border-top: 2px solid var(--ink) }
.pay-due span { font-weight: 700 } .pay-due b { font: 800 26px/1 var(--font); letter-spacing: -0.02em }
.pay .kb { width: 100%; padding: 11px }
.pay-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13.5px }
.pay-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; border-top: 1px dotted #D9D2C3; color: var(--muted) }
.pay-list b { color: var(--ink) }

/* the month-end argument */
.ar-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; margin-top: 30px }
.ar-talk { display: grid; gap: 12px }
.ar-b { margin: 0; max-width: 420px; padding: 12px 16px 13px; border-radius: 16px; font-size: 17px; line-height: 1.45 }
.ar-b small { display: block; font-size: 12px; font-weight: 700; color: var(--faint); margin-bottom: 2px }
.ar-them { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px }
.ar-you { justify-self: end; background: var(--sky-light); border-bottom-right-radius: 4px }
.ar-text p { margin: 0 0 16px; font-size: 18px; color: #2F3640; max-width: 32em } .ar-text p:first-child { color: var(--muted) }

/* monthly vs daily */
.sf-ways { background: linear-gradient(180deg, var(--bg), #EEF8F3 25%, #EEF8F3 75%, var(--bg)) }
.wy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 34px 0 14px; border-top: 2px solid var(--ink) }
.wy-col { padding: 24px 36px 0 0 } .wy-col + .wy-col { padding-left: 36px; border-left: 1px solid #CFE9DC }
.wy-col h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em } .wy-col > p { margin: 0 0 16px; color: var(--muted); max-width: 30em }
.wy-calc { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #CFE9DC; max-width: 420px }
.wy-calc div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0 } .wy-calc span { color: var(--muted) }
.wy-calc .t { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink) } .wy-calc .t span { color: var(--ink); font-weight: 700 } .wy-calc .t b { font-size: 19px }

/* payments on record */
.sf-rec { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; align-items: start }
.rc-link a { color: var(--link); font-weight: 700; text-decoration: none } .rc-link a:hover { text-decoration: underline }
.rc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink) }
.rc-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--border) }
.rc-d { color: var(--faint); font-weight: 600 } .rc-list small { display: block; color: var(--faint); font-size: 14px } .rc-list li > b { font-size: 18px }

@media (max-width: 1100px) { .reg-body { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 980px) {
  .sf-hero { grid-template-columns: minmax(0, 1fr); padding-top: 104px; gap: 26px }
  .reg { padding: 14px 12px 16px } .cal-dow, .cal-grid { gap: 4px } .day { border-radius: 7px } .day-n { font-size: 10.5px }
  .ar-in, .sf-rec { grid-template-columns: minmax(0, 1fr); gap: 26px }
  .wy-grid { grid-template-columns: minmax(0, 1fr) } .wy-col + .wy-col { padding-left: 0; border-left: 0; border-top: 1px solid #CFE9DC; margin-top: 24px }
}
@media (prefers-reduced-motion: reduce) { .day { transition: none } }
