/* LABMODUL local prototype box corner system v1.0
   One architectural white L-corner for content cards across the site.
   Existing orange CTA/button accents remain the action hierarchy. */
:root {
  --lm-box-line: rgba(255,255,255,.94);
  --lm-box-line-shadow: rgba(36,48,46,.18);
  --lm-box-line-inset: 14px;
  --lm-box-line-start: 18px;
}

/* Stable decoration surfaces. */
body .icon-box.icon-box--is-line-hover,
body .projects-box,
body .post-box .post-inner,
body .lm-contact-card {
  position: relative !important;
  isolation: isolate;
}

/* Horizontal lower line. */
body .icon-box.icon-box--is-line-hover::before,
body .projects-box::before,
body .post-box .post-inner::before,
body .lm-contact-card::before {
  content: "" !important;
  position: absolute !important;
  z-index: 8 !important;
  left: var(--lm-box-line-start) !important;
  right: 0 !important;
  bottom: var(--lm-box-line-inset) !important;
  top: auto !important;
  width: auto !important;
  height: 1px !important;
  display: block !important;
  background: var(--lm-box-line) !important;
  border: 0 !important;
  box-shadow: 0 1px 0 var(--lm-box-line-shadow);
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}

/* Vertical right line. */
body .icon-box.icon-box--is-line-hover::after,
body .projects-box::after,
body .post-box .post-inner::after,
body .lm-contact-card::after {
  content: "" !important;
  position: absolute !important;
  z-index: 8 !important;
  top: var(--lm-box-line-start) !important;
  right: var(--lm-box-line-inset) !important;
  bottom: 0 !important;
  left: auto !important;
  width: 1px !important;
  height: auto !important;
  display: block !important;
  background: var(--lm-box-line) !important;
  border: 0 !important;
  box-shadow: 1px 0 0 var(--lm-box-line-shadow);
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
}


/* Cards that previously clipped decoration retain the motif inside their edges. */
body .projects-box,
body .post-box .post-inner,
body .lm-contact-card {
  overflow: hidden !important;
}

/* Keyboard users receive the same clear architectural edge as mouse users. */
body .lm-contact-card:focus-visible,
body .projects-box:focus-within,
body .post-box .post-inner:focus-within,
body .icon-box.icon-box--is-line-hover:focus-within {
  outline: 2px solid rgba(249,120,40,.72);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  :root {
    --lm-box-line-inset: 10px;
    --lm-box-line-start: 14px;
  }
}