/* COMMS — header action buttons (contact + bell share .nlc-hbtn / .nlc-pop) and the contact form. Theme tokens from style.css. */
.nlc-ct, .nlc-bell { position: relative; }
.nlc-hbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--cream, #faf7f1); color: var(--ink, #1c1a17); cursor: pointer; }
.nlc-hbtn[aria-expanded="true"] { color: var(--red, #b81823); background: var(--red-50, #fdf1f2); }
@media (hover: hover) and (pointer: fine) { .nlc-hbtn:hover { color: var(--red, #b81823); background: var(--red-50, #fdf1f2); } }
.nlc-hbtn:focus-visible { outline: 3px solid var(--gold, #f2b134); outline-offset: 2px; }
.nlc-hbtn__n { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red, #b81823); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.nlc-hbtn__n[hidden] { display: none; }

.nlc-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: min(400px, calc(100vw - 24px)); max-height: min(calc(100vh - 96px), 720px); overflow: auto; overscroll-behavior: contain;
	background: #fff; border: 1px solid var(--line, #e7dfcf); border-radius: var(--r, 14px); box-shadow: 0 18px 50px rgba(28, 26, 23, .18); padding: 16px 18px 14px; text-align: start; color: var(--ink, #1c1a17); }
.nlc-pop[hidden] { display: none; }
.nlc-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.nlc-pop__x { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #6a6158); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nlc-pop__x:hover { background: var(--cream, #faf7f1); color: var(--ink, #1c1a17); } }
.nlc-ct__h { margin: 0; font-size: 20px; }
.nlc-ct__lead { margin: 0 0 10px; color: var(--ink-2, #443f38); font-size: 15px; }

.nlc-linkbtn { min-height: 44px; padding: 6px 4px; border: 0; background: none; color: var(--red, #b81823); font: 600 14px/1.3 var(--font, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nlc-linkbtn:hover { color: var(--red-d, #951420); } }
.nlc-linkbtn--muted { color: var(--muted, #6a6158); font-weight: 500; }
.nlc-inline-form { display: inline; margin: 0; }

/* the form (popover + [nlc_contact_form]) */
.nlc-ctf { display: grid; gap: 8px; }
.nlc-ctf__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: start; }
.nlc-ctf__row { display: grid; gap: 4px; }
.nlc-ctf__row > label { font-weight: 700; font-size: 15px; }
.nlc-ctf__row small { font-weight: 400; color: var(--muted, #6a6158); }
.nlc-ctf input[type=text], .nlc-ctf input[type=tel], .nlc-ctf input[type=email], .nlc-ctf textarea {
	width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line, #e7dfcf); border-radius: var(--r-sm, 9px); font: 16px var(--font, sans-serif); background: #fff; color: var(--ink, #1c1a17); }
.nlc-ctf textarea { min-height: 64px; resize: vertical; }
.nlc-ctf input[dir=ltr] { text-align: left; }
.nlc-ctf input:focus, .nlc-ctf textarea:focus { border-color: var(--red, #b81823); }
.nlc-ctf [aria-invalid="true"] { border-color: var(--red, #b81823); background: #fffafa; }
.nlc-ctf__err { color: var(--red-d, #951420); font-size: 14px; font-weight: 600; }
.nlc-ctf__err:empty { display: none; }
.nlc-ctf__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; }
.nlc-ctf__consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red, #b81823); flex-shrink: 0; }
.nlc-ctf__msg { margin: 0; font-weight: 700; font-size: 15px; }
.nlc-ctf__msg:empty { display: none; }
.nlc-ctf__msg.is-ok { padding: 10px 12px; border-radius: var(--r-sm, 9px); background: #eef8f1; color: var(--green, #17713f); }
.nlc-ctf__msg.is-err { padding: 10px 12px; border-radius: var(--r-sm, 9px); background: var(--red-50, #fdf1f2); color: var(--red-d, #951420); }
.nlc-ctf__done { padding: 14px; border-radius: var(--r-sm, 9px); background: #eef8f1; color: var(--green, #17713f); font-weight: 700; }
.nlc-ctf__alt { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line, #e7dfcf); font-size: 15px; }
.nlc-ctf__alt a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.nlc-ctf__alt a:first-child { color: #128c4a; }
.nlc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nlc-ct-inline { max-width: 560px; padding: 20px; border: 1px solid var(--line, #e7dfcf); border-radius: var(--r, 14px); background: #fff; }

/* Phones: the panel spans the header's width (the sticky header is the containing block). */
@media (max-width: 600px) {
	.nlc-ct, .nlc-bell { position: static; }
	.nlc-pop { top: 100%; inset-inline: 12px; width: auto; max-height: calc(100vh - 96px); margin-top: 6px; }
	.nlc-ctf__pair { grid-template-columns: 1fr; }
}
/* Motion (design-system/MASTER.md, Emil): the panel grows out of its own button — transform-origin is the button's
   centre, measured by contact.js / notify.js into --nlc-pop-ox (22px = the button's centre when the panel is anchored to
   it, the no-JS default). In: 180ms --ease-out from scale(.96) + a 4px lift, never from a zero scale. Out: 130ms, then the
   script sets [hidden]. Only transform + opacity move; reduced motion keeps a plain fade (the theme then drops it). */
.nlc-pop { transform-origin: var(--nlc-pop-ox, 22px) -6px; }
.nlc-pop.is-closing { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
	.nlc-pop { transition: opacity 180ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 180ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)); }
	.nlc-pop.is-closing { opacity: 0; transform: translateY(-2px) scale(0.98); transition-duration: 130ms; }
	@starting-style { .nlc-pop:not([hidden]) { opacity: 0; transform: translateY(-4px) scale(0.96); } }
}
@media (prefers-reduced-motion: reduce) {
	.nlc-pop { transition: opacity 120ms linear; }
	.nlc-pop.is-closing { opacity: 0; }
	@starting-style { .nlc-pop:not([hidden]) { opacity: 0; } }
}

/* press feedback on the header buttons and the panel's own buttons */
.nlc-hbtn { transition: color 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), background-color 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 160ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)); }
.nlc-hbtn:active, .nlc-pop__x:active, .nlc-ctf .nlc-btn:active { transform: scale(0.97); }
.nlc-pop__x, .nlc-ctf .nlc-btn { transition: background-color 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), color 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), transform 160ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)); }
.nlc-ctf input, .nlc-ctf textarea { transition: border-color 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)), box-shadow 150ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)); }
@media (prefers-reduced-motion: reduce) {
	.nlc-hbtn:active, .nlc-pop__x:active, .nlc-ctf .nlc-btn:active { transform: none; }
}
