/* TimeAttend user guide — brand: forest #0B3D32, green #22C55E (#65E58C on dark), mint #F2F9F6 */
:root {
  --forest: #0B3D32; --forest-2: #072C23; --green: #22C55E; --green-2: #65E58C; --mint: #F2F9F6; --white: #FFFFFF;
  --ink: #102D25; --ink-2: #33493F; --muted: #64776E; --line: #DCE8E1; --line-2: #E9F1EC;
  --amber: #B45309; --amber-bg: #FFF4DE; --font: 'Inter', 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
.lang-ar { --font: 'Tajawal', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--mint); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--green); color: #03140E; font-weight: 700; }
.skip:focus { top: 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)); padding-top: env(safe-area-inset-top, 0px); background: var(--forest); color: var(--white); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: 'Inter', sans-serif; font-size: 19px; letter-spacing: -.02em; }
.brand b span { color: var(--green-2); }
.brand em { font-style: normal; color: #A9C2B5; font-size: 14px; font-weight: 600; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; }
.top-end { display: flex; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.search svg { width: 16px; height: 16px; fill: none; stroke: #A9C2B5; stroke-width: 2; flex: none; }
.search input { width: 220px; border: 0; background: transparent; color: var(--white); font: inherit; font-size: 14px; outline: none; }
.search input::placeholder { color: #8FB3A4; }
.ghost { height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: var(--white); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; cursor: pointer; }
.menu svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }

/* layout */
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); align-items: start; }
.toc { position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; padding: 22px 16px 40px; background: var(--white); border-inline-end: 1px solid var(--line); }
.toc-h { margin: 0 8px 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lang-ar .toc-h { letter-spacing: 0; font-size: 14px; }
.toc-part { margin-bottom: 14px; }
.toc-part > span { display: block; margin: 0 8px 6px; font-size: 12.5px; font-weight: 800; color: var(--forest); }
.lang-ar .toc-part > span { font-size: 14px; }
.toc a { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; transition: background .15s, color .15s; }
.lang-ar .toc a { font-size: 15px; }
.toc a i { font-style: normal; font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted); min-width: 18px; }
.toc a:hover { background: var(--mint); color: var(--forest); }
.toc a.on { background: #E2F5EA; color: var(--forest); font-weight: 700; box-shadow: inset 3px 0 0 var(--green); }
.lang-ar .toc a.on { box-shadow: inset -3px 0 0 var(--green); }
.toc a[hidden] { display: none; }

.content { min-width: 0; max-width: 880px; padding: 36px max(24px, env(safe-area-inset-right, 0px)) 60px; margin-inline: auto; width: 100%; }
.hero { padding: 34px 34px 30px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, #13574A 0%, var(--forest) 50%, var(--forest-2) 100%); color: var(--white); margin-bottom: 28px; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }
.lang-ar .eyebrow { letter-spacing: 0; font-size: 14px; }
.hero h1 { margin: 8px 0 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.02em; }
.lang-ar .hero h1 { letter-spacing: 0; }
.hero p { margin: 0; color: #CFE5D9; font-size: 17px; line-height: 1.7; max-width: 620px; }

.part-h { margin: 34px 0 12px; display: flex; align-items: center; gap: 12px; }
.part-h span { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #15803D; white-space: nowrap; }
.lang-ar .part-h span { letter-spacing: 0; font-size: 15px; }
.part-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.sec { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-bottom: 16px; }
.sec[hidden] { display: none; }
.sec h2 { margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; font-size: 23px; line-height: 1.3; letter-spacing: -.01em; }
.lang-ar .sec h2 { letter-spacing: 0; }
.sec h2 i { font-style: normal; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800; color: #15803D; background: #E2F5EA; border-radius: 7px; padding: 3px 8px; }
.sec h3 { margin: 20px 0 10px; font-size: 17px; color: var(--forest); }
.sec p { margin: 0 0 12px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.sec strong { color: var(--ink); font-weight: 700; }
.sec code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .88em; background: var(--mint); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--forest); unicode-bidi: isolate; }

.steps { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--green-2); font-family: 'Inter', sans-serif; font-weight: 800; font-size: 13px; margin-top: 1px; }
.bul { margin: 0 0 12px; padding-inline-start: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bul li { position: relative; padding-inline-start: 20px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.bul li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 6px; padding: 14px 16px; border-radius: 12px; }
.note svg { width: 20px; height: 20px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.note p { margin: 0; font-size: 15px; }
.note.tip { background: #E8F6EE; border: 1px solid #BFE5CF; } .note.tip svg { stroke: #15803D; }
.note.warn { background: var(--amber-bg); border: 1px solid #F1D59C; } .note.warn svg { stroke: var(--amber); }

.tbl { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { background: #F5FAF7; color: var(--muted); font-size: 13px; font-weight: 700; text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line-2); vertical-align: top; line-height: 1.6; color: var(--ink-2); }
.tbl tr:first-child td { border-top: 0; }
.tbl td:first-child { font-weight: 700; color: var(--ink); }

mark { background: #FFF1A8; color: inherit; border-radius: 3px; padding: 0 2px; }
.no-hit { padding: 20px; text-align: center; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu { display: inline-grid; place-items: center; }
  .toc { position: fixed; top: 68px; inset-inline-start: 0; z-index: 15; width: min(320px, 86vw); height: calc(100vh - 68px); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); transform: translateX(-105%); transition: transform .25s ease; }
  .lang-ar .toc { transform: translateX(105%); }
  .toc.open { transform: none !important; }
  .search input { width: 150px; }
  .brand em { display: none; }
}
@media (max-width: 640px) {
  .search, .ghost[data-print] { display: none; }
  .content { padding: 22px 16px 50px; }
  .hero { padding: 26px 22px; }
  .sec { padding: 20px 18px; }
  .sec h2 { font-size: 20px; }
}
@media print {
  .top, .toc, .skip, .no-hit { display: none !important; }
  .layout { display: block; }
  body { background: #FFFFFF; }
  .content { max-width: none; padding: 0; }
  .hero { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
  .hero p { color: var(--ink-2); }
  .sec { break-inside: avoid-page; border: 0; padding: 10px 0; }
  .sec[hidden] { display: block !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toc { transition: none; } }

/* screenshots with numbered pins, click to zoom */
.shot { margin: 18px 0 20px; }
.shot-img { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FFFFFF; cursor: zoom-in; box-shadow: 0 10px 30px rgba(11, 61, 50, .08); }
.shot-img img { display: block; width: 100%; height: auto; }
.shot-img:hover { box-shadow: 0 14px 36px rgba(11, 61, 50, .14); }
.pin { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #E11D48; color: #FFFFFF; font: 800 13px/26px 'Inter', sans-serif; text-align: center; box-shadow: 0 0 0 3px #FFFFFF, 0 4px 10px rgba(0, 0, 0, .3); pointer-events: none; }
.shot figcaption { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--forest); text-align: center; }
.legend { margin: 12px 0 0; padding: 14px 16px; list-style: none; counter-reset: g; border-radius: 12px; background: #F7FBF9; border: 1px solid var(--line); display: grid; gap: 8px; }
.legend li { counter-increment: g; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.legend li::before { content: counter(g); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 12px; background: #E11D48; color: #FFFFFF; font: 800 12px 'Inter', sans-serif; margin-top: 1px; }
.zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(4, 20, 15, .88); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.zoom-x { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: #FFFFFF; color: var(--forest); font-size: 26px; cursor: pointer; }
@media print { .shot-img { box-shadow: none; } .zoom { display: none !important; } .shot { break-inside: avoid; } }

/* sizes: wider content for pictures, a phone at phone size, tall pages capped (the full one opens on click) */
.content { max-width: 1060px; }
.sec p, .sec .steps, .sec .bul, .sec .note, .sec .tbl, .sec h3 { max-width: 860px; }
.shot--wide .shot-img { max-width: 100%; }
.shot--phone { display: flex; flex-direction: column; align-items: center; }
.shot--phone .shot-img { width: 300px; max-width: 80vw; border: 9px solid #0E1513; border-radius: 34px; box-shadow: 0 24px 50px rgba(11, 61, 50, .25); }
.shot--tall .shot-img { max-height: 640px; }
.shot--tall .shot-img::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFFFFF 85%); pointer-events: none; }
.shot-more { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--forest); color: #FFFFFF; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(11, 61, 50, .3); }
@media print { .shot--tall .shot-img { max-height: none; } .shot--tall .shot-img::after, .shot-more { display: none; } }
/* zoom: real size, tall pages scroll instead of shrinking */
.zoom { display: flex; overflow: auto; }
.zoom img { margin: auto; max-width: 100%; max-height: none; width: auto; height: auto; }
.zoom-x { position: fixed; z-index: 61; }
