/* =====================================================================
   DOSIK TECHNOLOGY · PAGE CSS · SERVICE CATEGORY (/services/{category}): pillar rail, sub-service cards, proof tiles, differentiators, one quote
   Load after inner.css, on that page only.
   ===================================================================== */

/* ---------- pillar rail: the five glass glyphs (the home tabs' echo), the current pillar lifted ---------- */
.prail { position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 52px); }
.prail__lbl { font: var(--fw-medium) var(--fz-xs)/1.2 var(--f-display); color: var(--text-3); margin-bottom: 10px; }
.prail ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-bottom: 1px solid var(--line-2); }
.prail a {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 8px 8px 14px; border-radius: 16px 16px 0 0;
  font: var(--fw-medium) .98rem/1.25 var(--f-display); color: var(--text-2); text-align: center;
  transition: background-color var(--t-1), color var(--t-1);
}
.prail a:hover { background: rgba(255, 255, 255, .6); color: var(--text); }
.prail .glyph { --gs: 34px; transform: scale(.84); opacity: .78; filter: drop-shadow(0 8px 10px rgba(11, 40, 70, .16)); transition: transform var(--t-3) var(--e-spring), opacity var(--t-2); }
.prail a:hover .glyph, .prail a[aria-current] .glyph { transform: scale(1.06); opacity: 1; }
.prail a[aria-current] { color: var(--text); font-weight: var(--fw-semibold); }
.prail a::after {
  content: ""; position: absolute; bottom: -1px; inset-inline: 14%; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--c); transform: scaleX(0); transition: transform var(--t-3) var(--e-out);
}
.prail a[aria-current]::after { transform: scaleX(1); }
.prail a:hover::after { transform: scaleX(.5); }
.prail__short { display: none; }
/* ---------- service cards: the sub-services of the pillar ---------- */
.scards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.scard {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; row-gap: 14px; align-content: start;
  padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform var(--t-3) var(--e-out), box-shadow var(--t-3), border-color var(--t-3);
}
.scard::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(to left, var(--c), transparent 80%); }
.scard__glass {
  position: absolute; z-index: -1; inset-inline-end: -40px; bottom: -70px; width: 200px; aspect-ratio: 1; pointer-events: none;
  opacity: .16; transform: rotate(-10deg); transition: opacity var(--t-3), transform var(--t-4) var(--e-out);
}
.scard__glass svg { width: 100%; height: 100%; overflow: visible; }
.scard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--c, var(--teal-500)) 35%, transparent); }
.scard:hover .scard__glass { opacity: .3; transform: rotate(0deg) translateY(-8px); }
.scard .icon-tile { --it: 58px; border-radius: 17px; }
.scard .icon-tile .ico { width: 26px; height: 26px; }
.scard__head { display: grid; gap: 4px; }
.scard__title { font: var(--fw-semibold) clamp(1.18rem, 1.04rem + .5vw, 1.45rem)/1.3 var(--f-display); color: var(--text); }
.scard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* the whole card is the link target */
.scard__link:focus-visible { outline: none; }
.scard:has(.scard__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.scard__text { grid-column: 1 / -1; color: var(--text-2); line-height: 1.7; max-width: 560px; }
.scard__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.scard__tags li { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border-radius: var(--r-pill); font: var(--fw-medium) var(--fz-xs)/1.2 var(--f-display); color: var(--text-2); background: var(--bg); border: 1px solid var(--line); }
.scard__go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font: var(--fw-medium) .98rem/1.2 var(--f-display); color: var(--link); }
.scard__go .ico { width: 18px; height: 18px; transition: transform var(--t-2) var(--e-out); }
.scard:hover .scard__go .ico { transform: translateX(-5px); }
/* ---------- proof tiles (night): one big value + its label; values are real facts only ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.proof li {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 10px; min-height: 168px;
  padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--night-card) 0%, var(--night-card-2) 100%);
  border: 1px solid var(--night-line); box-shadow: var(--sh-night);
}
.proof .ico { width: 28px; height: 28px; color: var(--teal-on-night); }
.proof__val { font: var(--fw-bold) clamp(1.7rem, 1.25rem + 1.3vw, 2.5rem)/1.08 var(--f-display); color: var(--on-night); }
.proof__val--sm { font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); line-height: 1.3; }
.proof__lbl { color: var(--on-night-2); font-size: .98rem; line-height: 1.6; }
.diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.diffs li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--r-l); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
.diffs .icon-tile { --it: 42px; background: rgba(95, 216, 204, .12); color: var(--teal-on-night); }
.diffs strong { display: block; font: var(--fw-semibold) 1.04rem/1.35 var(--f-display); color: var(--on-night); }
.diffs span { display: block; margin-top: 4px; font-size: var(--fz-sm); line-height: 1.6; color: var(--on-night-2); }
/* one testimonial on a night chapter: a white card, the quote and its source side by side */
.vquote { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px clamp(20px, 3vw, 36px); }
@media (min-width: 961px) { .vquote:not(:has(.quote__logo)) { grid-template-columns: minmax(0, 1fr) auto; } }
.vquote blockquote p { font: var(--fw-medium) clamp(1.08rem, .98rem + .4vw, 1.28rem)/1.7 var(--f-display); }
.vquote .quote__by { margin-top: 0; padding: 0 0 0 0; padding-inline-start: clamp(20px, 3vw, 36px); border-top: 0; border-inline-start: 1px solid var(--line); }
html.a11y-contrast .prail .glyph { filter: none; }
html.a11y-contrast :is(.scard) { background: #fff; border: 2px solid #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-contrast :is(.proof li) { background: #000 !important; border-color: #fff; }
html.a11y-contrast .scard::before, html.a11y-contrast .scard__glass { display: none; }
@media (max-width: 1180px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .diffs { grid-template-columns: minmax(0, 1fr); }
  .vquote { grid-template-columns: minmax(0, 1fr); }
  .vquote .quote__by { padding-inline-start: 0; border-inline-start: 0; padding-top: 16px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .prail ul { gap: 2px; }
  .prail a { flex-direction: column; gap: 6px; min-height: 0; padding: 8px 2px 12px; font-size: var(--fz-xs); }
  .prail .glyph { --gs: 30px; }
  .prail__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prail__short { display: inline; }
  .scards { grid-template-columns: minmax(0, 1fr); }
  .scard { padding: 22px 20px; column-gap: 14px; }
  .scard .icon-tile { --it: 50px; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .proof li { min-height: 0; padding: 18px; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; }
  .proof li > .ico { grid-row: span 2; margin-top: 2px; }
  .proof__lbl { font-size: var(--fz-sm); }
}
@media (hover: none) {
  .scard:hover { transform: none; }
}

/* =====================================================================
   PILLAR PAGES · RICH CONTENT (services-hub agent, content-plus): in-page navigation, one-service card, capability
   tiles, the field explained, self-check, technologies, chapter seams. Built from the same tokens and card language
   (surface, hairline, --r-l, --sh-1, pillar tint via --c). The reference rules above are unchanged.
   ===================================================================== */
/* ---------- in-page navigation: a glass pill bar that rests on the first chapter and sticks under the header ---------- */
.cnav { position: sticky; top: calc(var(--hdr-h) + 10px); z-index: 40; height: 0; pointer-events: none; }
.cnav.toc { padding: 0; border: 0; border-radius: 0; background: none; }
.cnav__bar {
  width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 12px auto 0; pointer-events: auto;
  border-radius: var(--r-pill); background: var(--surface-glass-strong); border: 1px solid rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-2), inset 0 0 0 1px rgba(11, 26, 44, .05);
}
.cnav .cnav__list { display: flex; gap: 2px; padding: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.cnav .cnav__list::-webkit-scrollbar { display: none; }
.cnav li { flex: none; }
.cnav li a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 0; border-radius: var(--r-pill);
  font: var(--fw-medium) var(--fz-sm)/1.2 var(--f-display); color: var(--text-2); white-space: nowrap;
  transition: background-color var(--t-1), color var(--t-1);
}
.cnav li a::before { content: none; }
.cnav li a:hover { background: var(--hover-tint); color: var(--text); }
.cnav li a[aria-current="true"] { background: var(--grad-btn); color: var(--text-on-accent); font-weight: var(--fw-medium); }
.cnav li a:focus-visible { outline-offset: 1px; }
/* room for the bar at rest, and anchors that land below it */
.cnav + .isec { padding-top: calc(var(--sec-y) + 40px); }
.cnav ~ [id] { scroll-margin-top: 64px; }
/* ---------- a pillar with one service: one wide card, the glass large at its end ---------- */
.scards--one { grid-template-columns: minmax(0, 1fr); }
.scards--one .scard { padding: clamp(26px, 3.4vw, 44px); padding-inline-end: clamp(26px, 30%, 380px); }
.scards--one .scard__glass {
  width: clamp(140px, 14vw, 200px); inset-inline-end: 8%; top: 50%; bottom: auto; opacity: 1;
  filter: drop-shadow(0 22px 26px rgba(11, 40, 70, .22)); transform: translateY(-50%) rotate(-10deg);
}
.scards--one .scard:hover .scard__glass { opacity: 1; transform: translateY(-54%) rotate(-3deg); }
.scards--one .scard__text { max-width: 680px; font-size: 1.04rem; }
/* ---------- "מה כולל התחום": capability tiles, each a link to its service ---------- */
.caps-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 40px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line-2);
}
.caps-head__sub { max-width: 460px; color: var(--text-3); line-height: 1.6; }
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(20px, 2.4vw, 30px); }
.cap {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 22px 22px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform var(--t-3) var(--e-out), box-shadow var(--t-3), border-color var(--t-3);
}
.cap .icon-tile { --it: 46px; }
.cap__title { font: var(--fw-semibold) 1.06rem/1.35 var(--f-display); color: var(--text); }
.cap__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cap__link:focus-visible { outline: none; }
.cap:has(.cap__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.cap__text { color: var(--text-2); font-size: .95rem; line-height: 1.65; }
.cap__go { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font: var(--fw-medium) var(--fz-sm)/1.3 var(--f-display); color: var(--link); }
.cap__go .ico { width: 16px; height: 16px; flex: none; transition: transform var(--t-2) var(--e-out); }
.cap:has(.cap__link):hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--c, var(--teal-500)) 35%, transparent); }
.cap:has(.cap__link):hover .cap__go .ico { transform: translateX(-4px); }
/* ---------- the field explained: a sticky head with the "בקצרה" card | the reading column ---------- */
.cabout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cabout__side { position: sticky; top: calc(var(--hdr-h) + 84px); display: grid; gap: clamp(24px, 3vw, 36px); }
/* the FAQ head parks below the sticky in-page nav too (inner.css parks it at +32 px, under the bar) */
.cnav ~ #faq .faq .sec-head { top: calc(var(--hdr-h) + 84px); }
.cabout__glance { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-l); background: var(--bg); border: 1px solid var(--line); }
.cabout__h { margin-bottom: 14px; font: var(--fw-semibold) var(--fz-sm)/1.3 var(--f-display); color: var(--text-3); }
.cabout__feat { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cabout__text { max-width: 66ch; }
.cabout__text > p:first-child { font-size: var(--fz-lead); line-height: 1.75; color: var(--text); }
/* ---------- the self-check (backup): intro beside ten numbered question cards ---------- */
.ccheck { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ccheck__intro { position: sticky; top: calc(var(--hdr-h) + 84px); display: grid; justify-items: start; gap: 16px; }
.ccheck__intro .btn { margin-top: 6px; }
.ccheck__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccheck__list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--r-l);
  background: var(--bg); border: 1px solid var(--line);
}
.ccheck__n {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-btn); color: var(--text-on-accent); font: var(--fw-semibold) var(--fz-sm)/1 var(--f-display);
  box-shadow: 0 10px 20px -12px rgba(14, 92, 120, .8);
}
.ccheck__q { padding-top: 8px; font: var(--fw-medium) 1rem/1.55 var(--f-display); color: var(--text); }
/* ---------- technologies and vendors (dosikSourced only; communications: grouped under its text brand strips) ---------- */
.ctech { display: grid; gap: clamp(32px, 4vw, 52px); }
.ctech__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.ctech__h { font: var(--fw-semibold) var(--fz-h4)/1.3 var(--f-display); color: var(--text); }
.ctech__cap { font-size: var(--fz-sm); line-height: 1.5; color: var(--text-3); }
.ctech__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ctech__item {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; padding: 18px 20px 20px;
  border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.ctech__item::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(to left, var(--teal-500), rgba(42, 174, 162, 0) 75%); }
.ctech__name { font: var(--fw-semibold) 1.06rem/1.35 var(--f-display); color: var(--text); }
.ctech__note { font-size: .95rem; line-height: 1.6; color: var(--text-2); }
/* ---------- a proof tile whose value is a list of names: pills that wrap cleanly (no dangling "·") ---------- */
.proof__val--list { font-size: 1rem; line-height: 1.2; }
.proof__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.proof__chip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  font: var(--fw-semibold) .98rem/1.2 var(--f-display); color: var(--on-night); white-space: nowrap;
}
/* ---------- chapter seams on the long page ---------- */
/* the lead chapter followed by another chapter (the guides) carries the overlap in its bottom padding */
.contact:has(+ .chapter) { padding-bottom: calc(var(--sec-y) + var(--chapter-r)); }
/* ---------- high contrast ---------- */
html.a11y-contrast .cnav__bar { background: #fff; border: 2px solid #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-contrast .cnav li a[aria-current="true"] { background: #000; color: #fff; }
html.a11y-contrast :is(.cap, .cabout__glance, .ccheck__list li, .ctech__item) { background: #fff; border: 2px solid #000; box-shadow: none; }
html.a11y-contrast .ccheck__n { background: #000; color: #fff; box-shadow: none; }
html.a11y-contrast .ctech__item::before { display: none; }
html.a11y-contrast .proof__chip { background: #000; border-color: #fff; color: #fff; }
/* ---------- responsive ---------- */
@media (min-width: 1181px) {
  /* 3, 6 or 9 technologies: three columns, so no row ends half empty */
  .ctech__list:is(:has(> li:nth-child(3):last-child), :has(> li:nth-child(6):last-child), :has(> li:nth-child(9):last-child)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* (two related cards: inner.css §7, for every inner page) */
}
@media (max-width: 1180px) {
  .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ctech__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* a lone last capability tile spans its row (seven tiles: 3 + 3 + 1 wide, 2 + 2 + 2 + 1 wide) */
@media (min-width: 961px) and (max-width: 1180px) {
  .caps > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .caps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .cnav { top: calc(var(--hdr-h) + 8px); }
  .cnav__bar { margin-top: 8px; }
  .cnav li a { padding-inline: 10px; font-size: var(--fz-xs); }
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabout, .ccheck { grid-template-columns: minmax(0, 1fr); }
  .cabout__side, .ccheck__intro { position: static; }
  .cabout__text { max-width: none; }
  .ctech__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scards--one .scard { padding-inline-end: clamp(22px, 3vw, 34px); }
  /* the text spans the card: the glass returns to the corner watermark of the two-column cards */
  .scards--one .scard__glass, .scards--one .scard:hover .scard__glass { width: 200px; top: auto; bottom: -70px; inset-inline-end: -40px; opacity: .16; filter: none; transform: rotate(-10deg); }
}
@media (max-width: 640px) {
  /* phones: a jump list at the top of the first chapter (a sticky scroller could hide the current entry off-screen); it
     wraps, so all seven chapters, "השארת פרטים" included, are visible, and it takes its own room in the flow */
  .cnav { position: relative; top: auto; height: auto; }
  .cnav ~ [id] { scroll-margin-top: 0; }
  .cnav__bar { border-radius: var(--r-l); }
  .cnav li a { min-height: 36px; padding: 5px 13px; font-size: var(--fz-xs); }
  .cnav .cnav__list { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 4px; }
  .cnav + .isec { padding-top: var(--sec-y); }
  .caps, .ccheck__list, .ctech__list { grid-template-columns: minmax(0, 1fr); }
  .caps-head { margin-top: 44px; padding-top: 28px; }
  /* phones: the tile's icon sits beside its text, so eight tiles stay short */
  .cap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding: 18px 16px; }
  .cap .icon-tile { --it: 42px; grid-row: span 3; }
  .cap > :not(.icon-tile) { grid-column: 2; }
  .cap__go { padding-top: 2px; }
  /* phones: the questions and the technologies read as one card with hairlines, not a stack of boxes */
  .ccheck__list, .ctech__list { gap: 0; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
  .ccheck__list li { padding: 14px 16px; border: 0; border-radius: 0; background: none; }
  .ccheck__list li + li, .ctech__item + .ctech__item { border-top: 1px solid var(--line); }
  .ccheck__n { width: 34px; height: 34px; border-radius: 10px; }
  .ccheck__q { padding-top: 5px; }
  .ctech__item { padding: 14px 16px 16px; border: 0; border-radius: 0; box-shadow: none; }
  .ctech__item::before { display: none; }
}
/* a Latin name or a product run never breaks in the middle ("HP-UX", "Recovery Manager") */
:is(.cap__text, .cabout__text, .ctech__note, .ccheck__q, .scard__text, .faq .acc__body) bdi { white-space: nowrap; }
/* phones (and 150 % text): the long runs of the field text may wrap again; short names stay whole (Ui.KeepTogether) */
@media (max-width: 640px) {
  .prose.cabout__text bdi { white-space: normal; }
}
@media (hover: none) {
  .cap:has(.cap__link):hover { transform: none; }
}
