/* ============ Attendance â€” page-specific layouts ============ */

/* ---- Dual-colour headings ----------------------------------------------
   Headings stay solid ink with ONE accent phrase, and that phrase carries the
   same three-stop gradient the home page uses for this module's menu tab:
   #6528f7 -> #7b4bff -> #9779ff (the page's --purple-600 / 500 / 400).
   Scoped to .page-attendance so other product pages keep their own palette. */
.page-attendance .section-title em.at-dual,
.page-attendance .inner-hero-copy h1 .grad {
  background: linear-gradient(96deg, #6528f7 0%, #7b4bff 55%, #9779ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* ---- Accent rule under the headings -------------------------------------
   A tapered gradient bar in the same three-stop gradient: solid and deeper at
   the start, fading to nothing at the tip, with a soft brand glow so it reads
   as a drawn accent rather than a plain border. Centred headings centre it,
   left-aligned ones hang it from the text. */
.page-attendance .section-title { position: relative; }

.page-attendance .section-title::after {
  content: "";
  display: block;
  width: 148px;
  max-width: 42%;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: #6C35FF;
}

.page-attendance .section-head.center .section-title::after { margin-inline: auto; }

.at-vsteps { position: relative; display: flex; flex-direction: column; }
.at-vsteps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, var(--purple-200), #c9d8ff); border-radius: 2px; }
.at-vstep { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; }
.at-vstep .icon-badge { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; }
.at-vstep strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; color: var(--ink-800); margin-bottom: 4px; }
.at-vstep p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.at-vstep .num { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; color: var(--purple-300); font-size: 15px; min-width: 44px; padding-top: 12px; }

.at-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.at-flow-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.at-flow-h::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--purple-200), var(--purple-400), var(--purple-200)); }
.at-stage { text-align: center; padding: 0 6px; position: relative; }
.at-stage .num { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid var(--purple-300); color: var(--purple-600); display: grid; place-items: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 15px; position: relative; z-index: 1; transition: background .25s var(--ease), color .25s var(--ease); }
.at-stage:hover .num { background: var(--grad-purple); color: #fff; border-color: transparent; }
.at-stage .icon-badge { margin: 0 auto 10px; width: 46px; height: 46px; border-radius: 13px; background: var(--purple-50); color: var(--purple-600); }
.at-stage .icon-badge .ico { width: 19px; height: 19px; font-size: 19px; line-height: 1; }
.at-stage h3 { font-size: 15px; margin-bottom: 6px; }
.at-stage p { font-size: 13.5px; color: var(--text-muted); }

.at-env { background: linear-gradient(160deg, #ece4ff, #ffffff 55%, #e9efff); border: 1px solid var(--purple-100); border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; place-items: center; margin-bottom: 26px; }
.at-env-icons { display: grid; grid-template-columns: repeat(4, 60px); gap: 16px; }
.at-env-icons .icon-badge { width: 60px; height: 60px; border-radius: 16px; background: #fff; color: var(--purple-600); box-shadow: var(--shadow-sm); }
.at-env-icons .ico { width: 26px; height: 26px; }
.at-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.at-callout { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.at-callout:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.at-callout .icon-badge { margin-bottom: 12px; }
.at-callout h3 { font-size: 15.5px; margin-bottom: 6px; }
.at-callout p { font-size: 14px; color: var(--text-muted); margin: 0; }

.at-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.at-frame { border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(160deg, #1e1740, #3a2a6b); aspect-ratio: 4/3; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.at-frame::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px), repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px); }
.at-frame .face { position: absolute; border: 2px solid #7C6EFF; border-radius: 10px; width: 34%; height: 42%; top: 26%; left: 30%; }
.at-frame .face::after { content: attr(data-id); position: absolute; bottom: -22px; left: 0; background: var(--purple-600); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.at-frame figcaption { position: absolute; bottom: 10px; left: 12px; right: 12px; color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; }

.at-dash { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; display: grid; gap: 14px; }
.at-dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.at-dash-grid div { background: var(--purple-50); border-radius: var(--r-md); padding: 12px; }
.at-dash-grid strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 19px; color: var(--purple-700); }
.at-dash-grid span { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.at-bars { display: grid; gap: 8px; }
.at-bars i { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--purple-500), var(--purple-400)); }
.at-dash-list { display: grid; gap: 8px; }
.at-dash-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 8px 12px; font-size: 13px; color: var(--text-body); }
.at-dash-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }

.at-sec-rows { display: flex; flex-direction: column; }
.at-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); transition: padding-left .25s var(--ease); }
.at-row:first-child { padding-top: 0; }
.at-row:last-child { border-bottom: 0; padding-bottom: 0; }
.at-row:hover { padding-left: 8px; }
.at-row .icon-badge { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.at-row h3 { font-size: 16.5px; margin-bottom: 4px; }
.at-row p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.at-sec-visual { border-radius: var(--r-xl); background: linear-gradient(160deg, #ece4ff, #ffffff 55%, #e9efff); border: 1px solid var(--purple-100); min-height: 320px; display: grid; place-items: center; }
.at-sec-visual .icon-badge { width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--purple-600); box-shadow: var(--shadow-md); }
.at-sec-visual .ico { width: 34px; height: 34px; }

.at-integrate { background: linear-gradient(160deg, #ece4ff, #ffffff 60%, #e9efff); border: 1px solid var(--purple-100); border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.6rem); margin-bottom: 34px; }
.at-nodes { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.at-node { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; flex: 1; min-width: 110px; }
.at-node .icon-badge { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--purple-600); box-shadow: var(--shadow-sm); }
.at-node strong { font-size: 13.5px; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink-800); }
.at-node-line { flex: 1; height: 2px; min-width: 26px; background: linear-gradient(90deg, var(--purple-200), var(--purple-400)); }

.at-matrix { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.at-matrix-row { display: grid; grid-template-columns: 56px 1fr 1.4fr; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; }
.at-matrix-row + .at-matrix-row { border-top: 1px solid var(--border-soft); }
.at-matrix-row .icon-badge { width: 42px; height: 42px; border-radius: 12px; }
.at-matrix-row h3 { font-size: 16px; margin: 0; }
.at-matrix-row p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.at-cloud { position: relative; background: linear-gradient(160deg, #ece4ff, #ffffff 60%, #e9efff); border: 1px solid var(--purple-100); border-radius: var(--r-xl); min-height: 340px; display: grid; place-items: center; }
.at-cloud-hub { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 2px solid var(--purple-200); display: grid; place-items: center; box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.at-cloud-hub .ico { width: 34px; height: 34px; color: var(--purple-600); }
.at-site { position: absolute; background: #fff; border: 1px solid var(--purple-100); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-800); }
.at-site .ico { width: 16px; height: 16px; color: var(--purple-600); }
.at-site.a { top: 14%; left: 8%; }
.at-site.b { top: 14%; right: 8%; }
.at-site.c { bottom: 12%; left: 50%; transform: translateX(-50%); }

.at-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.at-app { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.at-app:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.at-app .icon-badge { margin-bottom: 16px; width: 50px; height: 50px; border-radius: 15px; }
.at-app h3 { font-size: 16.5px; margin-bottom: 8px; }
.at-app p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

.at-asym { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.at-big { background: linear-gradient(160deg, var(--purple-50), #fff 60%); border: 1px solid var(--purple-100); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.at-big .icon-badge { width: 58px; height: 58px; border-radius: 17px; }
.at-big h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); margin: 18px 0 10px; }
.at-big p { font-size: 15.5px; color: var(--text-body); margin: 0; }

@media (max-width: 1023px) {
  .at-split { grid-template-columns: 1fr; }
  .at-flow-h { grid-template-columns: repeat(2, 1fr); }
  .at-flow-h::before { display: none; }
  .at-callouts { grid-template-columns: 1fr; }
  .at-frames { grid-template-columns: 1fr; }
  .at-node-line { display: none; }
  .at-nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .at-matrix-row { grid-template-columns: 48px 1fr; }
  .at-matrix-row p { grid-column: 2; }
  .at-apps { grid-template-columns: 1fr; }
  .at-asym { grid-template-columns: 1fr; }
  .at-env-icons { grid-template-columns: repeat(2, 60px); }
}

@media (max-width: 640px) {
  .at-flow-h { grid-template-columns: 1fr; gap: 26px; }
  .at-dash-grid { grid-template-columns: 1fr 1fr; }
  .at-nodes { grid-template-columns: 1fr; }
}

/* ---- Lead band checklist -------------------------------------------------
   The Book a demo list on the left: one flex row per point, so the tick sits
   on the text's centre line with a real gap before the label. */
.page-attendance .lead-band .lead-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.page-attendance .lead-band .lead-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.page-attendance .lead-band .lead-list .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  color: #cbb8ff;
}

/* ---- Icon plates in the module gradient ---------------------------------
   Every icon tile on the page repeats the same three-stop gradient the dual
   headings and the home page menu tab use (#6528f7 -> #7b4bff -> #9779ff),
   with a white glyph — the icon treatment on the HRMS page. Kept at the end
   of the file so it wins over the per-section soft tints above.
   --plate / --plate-shadow let js/hrms-icon-palette.js style override it. */
.page-attendance .icon-badge {
  background-image: var(--plate, linear-gradient(96deg, #6528f7 0%, #7b4bff 55%, #9779ff 100%));
  background-color: transparent;
  border-color: transparent;
  color: #ffffff;
  box-shadow: var(--plate-shadow, 0 8px 18px rgba(101, 40, 247, 0.22));
}

.page-attendance .icon-badge .ico {
  background-image: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* ---- Glyph sizing and centring ------------------------------------------
   FA glyphs scale with font-size, so the fixed width/height values below are
   only honoured when the font-size matches. Everything sizes from 1em now, so
   no icon is clipped or sits off centre inside its tile. */
.page-attendance .ico { width: 1em; height: 1em; line-height: 1; vertical-align: middle; }

/* Inside a plate the glyph is a flex box, so it centres on the tile instead of
   sitting on the text baseline. */
.page-attendance .icon-badge .ico,
.page-attendance .at-cloud-hub .ico,
.page-attendance .at-sec-visual .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.page-attendance .at-site .ico { font-size: 16px; }
.page-attendance .at-stage .icon-badge .ico { font-size: 19px; }
.page-attendance .at-env-icons .ico { font-size: 26px; }
.page-attendance .at-cloud-hub .ico { font-size: 34px; }
.page-attendance .at-sec-visual .ico { font-size: 34px; }

.page-attendance .at-row .icon-badge,
.page-attendance .at-vstep .icon-badge,
.page-attendance .at-matrix-row .icon-badge { flex-shrink: 0; }

/* section title accent phrase: one solid colour (no gradient) */
.page-attendance .section-title em.at-dual {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #6528F7;
  -webkit-text-fill-color: #6528F7;
}
