/* Weblysoft Engineering & Technology (/engineering/). Page-local, scoped to body.enx-page. */
.enx-page { --enx-rule: var(--ws-line); --enx-tint: #EEF2F8; }
.enx-page .enx-num, .enx-page .enx-hero-cap, .enx-page .enx-link,
.enx-page .enx-not, .enx-page .enx-dl dt, .enx-page .enx-arch-cap { color: var(--ws-text-2); }
.enx-page .enx-related .ws-btn { min-height: 44px; }
.enx-page #enx-practice:focus-visible { outline: 2.5px solid var(--ws-focus); outline-offset: -6px; }
.enx-page [id] { scroll-margin-top: calc(var(--ws-header) + 24px); }
.enx-kicker { font: 600 11.5px/1.2 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-navy); }
.enx-num { font: 500 12.5px/1 ui-monospace, Menlo, monospace; color: var(--ws-muted); }

/* hero */
.enx-hero { padding: clamp(48px, 6vw, 92px) 0 clamp(48px, 6vw, 84px); border-bottom: 1px solid var(--ws-line); }
.enx-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 84px); align-items: center; }
.enx-hero .ws-lead { margin-top: 24px; }
.enx-label { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ws-line); font-size: 13.5px; font-weight: 600; color: var(--ws-text-2); }
.enx-label span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ws-navy); margin: 0 14px 3px 0; }
.enx-hero .ws-btns { margin-top: 30px; }
.enx-hero-fig { margin: 0; position: relative; }
.enx-hero-fig a { display: block; }
.enx-hero-fig img { width: 100%; height: auto; display: block; }
.enx-anno { position: absolute; display: flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ws-ink); box-shadow: 0 10px 28px -16px rgba(11,22,40,.45); white-space: nowrap; }
.enx-anno::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ws-navy); }
.enx-anno.a1 { left: -18px; top: 26%; }
.enx-anno.a2 { right: -14px; top: 52%; }
.enx-anno.a3 { position: static; display: inline-flex; margin-top: 14px; }
.enx-anno.a3::before { background: var(--ws-ok); border-radius: 50%; }
.enx-hero-cap { margin-top: 30px; font-size: 13.5px; color: var(--ws-muted); line-height: 1.5; }
.enx-hero-cap b { color: var(--ws-text-2); font-weight: 600; }

/* section heads */
.enx-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: end; }
.enx-head .ws-lead { margin: 0; }

/* handover */
.enx-hand { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ws-line); margin-top: 52px; counter-reset: h; }
.enx-hand li { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--ws-line); display: grid; gap: 10px; align-content: start; }
.enx-hand li:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid var(--ws-line); }
.enx-hand li::before { counter-increment: h; content: counter(h, upper-alpha); font: 500 12.5px/1 ui-monospace, Menlo, monospace; color: var(--ws-navy); }
.enx-hand h3 { font-size: 18.5px; letter-spacing: -.015em; line-height: 1.25; color: var(--ws-ink); }
.enx-hand p { font-size: 15px; line-height: 1.55; color: var(--ws-text-2); }
.enx-hand li.enx-scope { background: var(--ws-ice); padding: 26px 24px 28px; }
.enx-hand li.enx-scope::before { content: none; }
.enx-hand li.enx-scope p { color: var(--ws-text); }

/* architecture */
.enx-arch-sec { background: var(--ws-card); border-top: 1px solid var(--ws-line); border-bottom: 1px solid var(--ws-line); }
.enx-concept { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; padding: 6px 12px; border: 1px dashed var(--ws-navy); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ws-navy); }
.enx-arch { margin-top: 18px; display: grid; grid-template-columns: 168px 1fr 168px; gap: 14px; }
.enx-rail { border: 1px solid var(--ws-line); border-radius: 12px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(24,70,132,.035) 10px 11px), var(--ws-paper); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.enx-core { display: grid; gap: 0; }
.enx-layer { border: 1px solid var(--ws-line); border-radius: 12px; background: var(--ws-paper); padding: 18px 20px; }
.enx-layer.app { background: var(--ws-navy); border-color: var(--ws-navy); color: #fff; }
.enx-layer.app h3, .enx-layer.app .enx-kicker { color: #fff; }
.enx-layer.app li { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.enx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enx-layer h3, .enx-rail h3 { font-size: 17px; letter-spacing: -.012em; color: var(--ws-ink); margin-top: 6px; }
.enx-layer ul, .enx-rail ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.enx-rail ul { flex-direction: column; }
.enx-layer li, .enx-rail li { font-size: 13px; line-height: 1.3; color: var(--ws-text-2); border: 1px solid var(--ws-line); border-radius: 6px; padding: 5px 9px; background: rgba(255,255,255,.35); }
.enx-link { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 22px; font-size: 12.5px; color: var(--ws-muted); position: relative; min-height: 40px; }
.enx-link::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 1.5px; background: var(--ws-navy); }
.enx-link::after { content: ""; position: absolute; left: 4px; bottom: -1px; border: 5px solid transparent; border-top: 6px solid var(--ws-navy); border-bottom: 0; }
.enx-link.both::after { bottom: auto; top: -1px; border-top: 0; border-bottom: 6px solid var(--ws-navy); }
.enx-link.both { }
.enx-link.guard::before { background: repeating-linear-gradient(var(--ws-err) 0 4px, transparent 4px 8px); }
.enx-link.guard::after { display: none; }
.enx-link.guard b { color: var(--ws-err); font-weight: 600; }
.enx-pairlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enx-arch-cap { margin-top: 18px; }
.enx-rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; border-top: 1px solid var(--ws-line); counter-reset: r; }
.enx-rel li { padding: 16px 0 16px 38px; border-bottom: 1px solid var(--ws-line); font-size: 15.5px; line-height: 1.55; color: var(--ws-text-2); position: relative; }
.enx-rel li::before { counter-increment: r; content: "R" counter(r); position: absolute; left: 0; top: 18px; font: 500 12px ui-monospace, Menlo, monospace; color: var(--ws-navy); }
.enx-rel b { color: var(--ws-ink); font-weight: 600; }
.enx-choice { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); align-items: start; padding-top: 36px; border-top: 2px solid var(--ws-ink); }
.enx-not { margin-top: 18px; font-size: 14.5px; color: var(--ws-muted); line-height: 1.55; }

/* practice */
.enx-case { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); margin-top: 52px; align-items: start; }
.enx-dl { border-top: 1px solid var(--ws-line); }
.enx-dl > div { padding: 18px 0; border-bottom: 1px solid var(--ws-line); display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
.enx-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); padding-top: 3px; }
.enx-dl dd { font-size: 15.5px; line-height: 1.55; color: var(--ws-text); }
.enx-dl dd ul { display: grid; gap: 6px; }
.enx-dl dd li { padding-left: 18px; position: relative; }
.enx-dl dd li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 1.5px; background: var(--ws-navy); }
.enx-boundary { margin-top: 24px; }
.enx-case .ws-btns { margin-top: 26px; }
.enx-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.enx-shots figure { margin: 0; }
.enx-shots figure:first-child { grid-column: 1 / -1; }
.enx-shots a { display: block; transition: transform .35s var(--ws-ease); }
.enx-shots a:hover { transform: translateY(-3px); }
.enx-shots img { width: 100%; height: auto; display: block; }
.enx-shots figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ws-text-2); }
.enx-shots figcaption b { display: block; color: var(--ws-ink); font-size: 15px; margin-bottom: 2px; }

/* disciplines */
.enx-disc { margin-top: 52px; border-top: 1px solid var(--ws-line-dark); }
.enx-disc > li { display: grid; grid-template-columns: 70px 1fr 1.5fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--ws-line-dark); }
.enx-disc h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.2; color: #fff; }
.enx-disc p { font-size: 15.5px; line-height: 1.6; color: var(--ws-on-dark-2); }
.enx-disc .enx-num { color: #9DBDF0; padding-top: 6px; }
.enx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.enx-tags span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ws-line-dark); color: var(--ws-on-dark); }
.enx-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 56px; background: var(--ws-line-dark); border: 1px solid var(--ws-line-dark); border-radius: 14px; overflow: hidden; }
.enx-sub > div { background: var(--ws-ink-2); padding: clamp(24px, 3vw, 36px); }
.enx-sub h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.18; color: #fff; max-width: 24ch; }
.enx-sub > div > p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; }
.enx-sub ul { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--ws-line-dark); }
.enx-sub li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--ws-line-dark); font-size: 14.5px; line-height: 1.5; color: var(--ws-on-dark); position: relative; }
.enx-sub li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1.5px; background: #9DBDF0; }
.enx-sub .ws-link { margin-top: 20px; font-size: 14.5px; }
.enx-stack { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); padding-top: 32px; border-top: 1px solid var(--ws-line-dark); }
.enx-stack h3 { font-size: 20px; color: #fff; }
.enx-stack .enx-tags span { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.enx-stack p { font-size: 14.5px; line-height: 1.6; }

/* faq */
.enx-faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ws-line); border: 1px solid var(--ws-line); border-radius: 14px; overflow: hidden; margin-top: 48px; }
.enx-faq > div { background: var(--ws-card); padding: 28px 26px 30px; display: grid; gap: 12px; align-content: start; }
.enx-faq h3 { font-size: 18.5px; line-height: 1.3; letter-spacing: -.014em; color: var(--ws-ink); }
.enx-faq p { font-size: 15px; line-height: 1.6; color: var(--ws-text-2); }

/* related */
.enx-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* reveal */
.enx-js .enx-rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ws-ease), transform .6s var(--ws-ease); transition-delay: var(--d, 0ms); }
.enx-js .enx-rv.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .enx-hand { grid-template-columns: repeat(2, 1fr); }
  .enx-hand li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .enx-hand li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--ws-line); }
  .enx-faq { grid-template-columns: repeat(2, 1fr); }
  .enx-arch { grid-template-columns: 1fr; }
  .enx-rail ul { flex-direction: row; flex-wrap: wrap; }
  .enx-rail.ops { order: 3; }
}
@media (max-width: 900px) {
  .enx-hero-grid, .enx-head, .enx-case, .enx-choice, .enx-stack, .enx-sub { grid-template-columns: 1fr; }
  .enx-rel { grid-template-columns: 1fr; }
  .enx-disc > li { grid-template-columns: 1fr; gap: 10px; }
  .enx-anno.a1 { left: 8px; } .enx-anno.a2 { right: 8px; }
}
@media (max-width: 767px) {
  .enx-hand, .enx-faq, .enx-pair, .enx-pairlinks, .enx-shots { grid-template-columns: 1fr; }
  .enx-hand li, .enx-hand li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .enx-hand li.enx-scope { padding-left: 20px; }
  .enx-dl > div { grid-template-columns: 1fr; gap: 6px; }
  .enx-anno { font-size: 11.5px; padding: 5px 9px; }
  .enx-anno.a3 { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .enx-js .enx-rv { opacity: 1; transform: none; transition: none; }
  .enx-shots a, .enx-shots a:hover { transition: none; transform: none; }
}
