/* lawgeeks.limited — shared styles on top of the per-page layout CSS */

body { margin: 0; --u-headline-font: 'Space Grotesk', Arial, sans-serif; --u-text-font: 'Inter', Arial, sans-serif; }
.anchor { display: block; height: 0; overflow: hidden; }
/* zero block elements parked outside the artboard must not widen the page (clip keeps position:sticky working) */
#site { overflow-x: clip; }

/* appear animations (zero blocks); only when JS runs */
.js .u-animate[data-fx-style] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(.19, 1, .22, 1);
  backface-visibility: hidden;
}
.js .u-animate[data-fx-style="fadeinright"] { transform: translateX(calc(var(--fx-d, 100px) * -1)); }
.js .u-animate[data-fx-style="fadeinleft"] { transform: translateX(var(--fx-d, 100px)); }
.js .u-animate[data-fx-style="fadeinup"] { transform: translateY(var(--fx-d, 100px)); }
.js .u-animate[data-fx-style="fadeindown"] { transform: translateY(calc(var(--fx-d, 100px) * -1)); }
.js .u-animate[data-fx-style="zoomin"] { transform: scale(.9); }
.js .u-animate[data-fx-style="zoomout"] { transform: scale(1.2); }
.js .u-animate.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .u-animate[data-fx-style] { opacity: 1; transform: none; transition: none; }
}

/* mobile menu shows only on narrow screens */
@media (min-width: 981px) { .u-screenmax-980px { display: none !important; } }

/* practice accordion */
.js .acc-panel { height: 0; overflow: hidden; transition: height .5s ease-in-out; }
.acc-row { cursor: pointer; }
.acc-row:focus-visible { outline: 2px solid #3ddc97; outline-offset: -2px; }

/* "Notes from the geeks" feed — no posts yet */
.feed { background: #f4f6f4; padding: 0 20px 90px; }
.feed__wrap { max-width: 1160px; margin: 0 auto; }
.feed__empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; border: 1px solid #dfe5e2; border-radius: 4px;
  font-family: var(--u-text-font); font-size: 14px; color: #8a9893;
}

/* contact form (zero block fields) */
.cf-field { position: relative; font-family: var(--u-text-font); color: #000; }
.cf-title { display: block; font-size: 16px; font-weight: 400; color: #000; padding-bottom: 5px; }
.cf-field input[type=text], .cf-field input[type=email], .cf-field select, .cf-field textarea {
  display: block; width: 100%; box-sizing: border-box; margin: 0;
  height: 50px; padding: 0; border: 0; border-bottom: 1px solid #000; border-radius: 0;
  background: transparent; color: #000; outline: none;
  font-family: var(--u-headline-font); font-size: 16px; font-weight: 400; line-height: 1.33;
  -webkit-appearance: none; appearance: none;
}
.cf-field textarea { height: 85px; padding-top: 10px; resize: vertical; }
.cf-field ::placeholder { color: #000; opacity: .5; }
.cf-select { position: relative; }
.cf-select::after {
  content: ''; position: absolute; right: 0; top: 50%; margin-top: -3px; pointer-events: none;
  border-top: 6px solid #000; border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.cf-field select { padding-right: 24px; cursor: pointer; }
.cf-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 12px; line-height: 1.2; color: #959595; padding-top: 3px; }
.cf-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.cf-box { flex: 0 0 auto; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid #8d8d8d;
  border-radius: 2px; opacity: .6; position: relative; }
.cf-check input:checked + .cf-box { opacity: 1; border-color: #000; }
.cf-check input:checked + .cf-box::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cf-check input:focus-visible + .cf-box { outline: 2px solid #3ddc97; outline-offset: 2px; }
.cf-check a { color: inherit; }
.cf-error { font-size: 13px; color: #e5322d; min-height: 0; padding-top: 4px; }
.cf-error:empty { display: none; }
.cf-field.is-error input, .cf-field.is-error select, .cf-field.is-error textarea { border-bottom-color: #e5322d; }
.cf-field.is-error .cf-box { border-color: #e5322d; opacity: 1; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cf-msg { position: fixed; inset: 0; z-index: 100002; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); padding: 16px; }
.cf-msg__box { background: #fff; color: #0b1512; max-width: 420px; width: 100%; padding: 32px 28px; text-align: center;
  border-radius: 8px; font-family: var(--u-text-font); box-sizing: border-box; }
.cf-msg__title { font-family: var(--u-headline-font); font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.cf-msg__text { font-size: 16px; line-height: 1.5; margin: 0 0 24px; }
.cf-msg__btn { background: #0b1512; color: #fff; border: 0; border-radius: 8px; padding: 14px 32px;
  font: 600 14px var(--u-text-font); cursor: pointer; }
