/* Nuratech Partners — partner area and product-page additions.
   Uses the Nuratech theme's colours (CSS variables) when present. */

.ntpp {
	--p-bg: var(--nt-bg, #0F0E0D); --p-panel: var(--nt-panel, #151412); --p-tile: var(--nt-tile, #1C1B18);
	--p-line: var(--nt-line, #242220); --p-line2: var(--nt-line-2, #2E2B28); --p-line3: var(--nt-line-3, #5A554E);
	--p-text: var(--nt-text, #F1ECE3); --p-text2: var(--nt-text-2, #BDB7AD); --p-muted: var(--nt-muted, #A39D93); --p-faint: var(--nt-faint, #8C867C);
	--p-accent: var(--nt-accent, #E6B566); --p-ink: var(--nt-ink, #0F0E0D);
	--p-fs: calc(var(--nt-fs-s, 1) * var(--nt-fs-body, 1));
	--p-fs-label: calc(var(--nt-fs-s, 1) * var(--nt-fs-label, 1));
	--p-fs-sub: calc(var(--nt-fs-s, 1) * var(--nt-fs-sub, 1));
	background: var(--p-bg); color: var(--p-text); padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 8vw, 120px); min-height: 60vh;
}
.ntpp__wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.ntpp--open .ntpp__wrap { display: block; }
.ntpp button, .ntpp input, .ntpp select, .ntpp textarea { font-family: inherit; }
.ntpp .nt-btn { border: 0; cursor: pointer; }
.ntpp .nt-btn--ghost { border: 1px solid var(--p-line3); background: transparent; }
.ntpp .nt-btn--light { color: var(--p-ink); }
.ntpp :focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }

/* Headings & text */
.ntpp-h1 { font-family: var(--nt-serif, inherit); font-weight: 300; font-size: calc(clamp(34px, 3.6vw, 52px) * var(--nt-fs-s, 1) * var(--nt-fs-head, 1)); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 14px !important; color: var(--p-text); }
.ntpp-h2 { font-size: calc(13px * var(--p-fs-label)); font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--p-faint); margin: 36px 0 14px !important; }
.ntpp-lead { font-size: calc(17px * var(--p-fs)); line-height: 1.6; color: var(--p-text2); max-width: 680px; margin: 0 0 28px !important; }
.ntpp-small, .ntpp-alt { font-size: calc(14px * var(--p-fs)); color: var(--p-muted); }
.ntpp-alt a, .ntpp-lead a, .ntpp-crumbs a { color: var(--p-accent); }
.ntpp-crumbs { margin: 0 0 14px !important; font-size: calc(14px * var(--p-fs)); }
.ntpp-crumbs a::before { content: '← '; }
.ntpp-muted { color: var(--p-faint); }
.ntpp-sub { display: block; margin-top: 2px; font-size: calc(13px * var(--p-fs)); font-weight: 400; color: var(--p-muted); }
.ntpp-badge { display: inline-block; padding: 8px 16px !important; line-height: 1.4; border-radius: 18px; border: 1px solid var(--p-accent); color: var(--p-accent); font-size: calc(14px * var(--p-fs)); margin: 0 0 28px !important; }
.ntpp-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; align-items: center; justify-content: center; background: var(--p-line2); color: var(--p-text); font-size: calc(12px * var(--nt-fs-body, 1)); font-weight: 500; vertical-align: 3px; }

/* Card (login, application, pending) */
.ntpp-card { max-width: 640px; margin: 0 auto; }
.ntpp--open .nt-eyebrow { margin-bottom: 14px !important; }

/* Side navigation */
.ntpp-side { position: sticky; top: 100px; }
.ntpp-side__who { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; margin: 0 0 12px !important; border-bottom: 1px solid var(--p-line2); }
.ntpp-side__who strong { font-size: calc(17px * var(--p-fs-sub)); font-weight: 500; }
.ntpp-side__who span { font-size: calc(13px * var(--p-fs)); color: var(--p-muted); }
.ntpp-nav { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 2px; }
.ntpp-nav a { display: flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 4px; font-size: calc(15px * var(--p-fs)); color: var(--p-text2); }
.ntpp-nav a:hover { color: var(--p-text); background: var(--p-panel); }
.ntpp-nav a[aria-current="page"] { color: var(--p-text); background: var(--p-tile); box-shadow: inset 2px 0 0 var(--p-accent); }
.ntpp-nav__sep { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--p-line2); }

/* Notices */
.ntpp-notice { padding: 14px 18px; border-radius: 4px; margin: 0 0 22px; font-size: calc(15px * var(--p-fs)); border: 1px solid var(--p-line2); background: var(--p-panel); color: var(--p-text); }
.ntpp-notice--error { border-color: #8B3A2E; background: #2A1714; }
.ntpp-notice--ok { border-color: #4B6B3A; background: #18200F; }
.ntpp-notice a { color: var(--p-accent); text-decoration: underline; }

/* Forms */
.ntpp-form p { margin: 0 0 18px !important; }
.ntpp-form label { display: block; margin-bottom: 8px; font-size: calc(14px * var(--p-fs-label)); color: var(--p-muted); }
.ntpp-form input[type=text], .ntpp-form input[type=email], .ntpp-form input[type=tel], .ntpp-form input[type=password], .ntpp-form input[type=number], .ntpp-form input[type=month], .ntpp-form input[type=search], .ntpp-form select, .ntpp-form textarea, .ntpp-search input, .ntpp-addlist select, .ntpp-addlist input[type=text] {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border-radius: 4px;
	border: 1px solid var(--p-line2); background: var(--p-panel); color: var(--p-text); font-size: calc(16px * var(--p-fs));
}
.ntpp-form textarea { min-height: 96px; line-height: 1.5; }
.ntpp-form input:focus, .ntpp-form select:focus, .ntpp-form textarea:focus, .ntpp-search input:focus { border-color: var(--p-accent); outline: none; }
.ntpp-form--panel { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--p-line2); border-radius: 4px; background: var(--p-panel); }
.ntpp-form--panel input, .ntpp-form--panel select, .ntpp-form--panel textarea { background: var(--p-bg) !important; }
.ntpp-form--panel .ntpp-h2:first-child { margin-top: 0 !important; }
.ntpp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.ntpp-span2 { grid-column: 1 / -1; }
.ntpp-form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: calc(14px * var(--p-fs)); }
.ntpp-form__row a { color: var(--p-accent); }
.ntpp-form .ntpp-check, .ntpp-check { display: inline-flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--p-text2); font-size: calc(15px * var(--p-fs)); }
.ntpp-check input { margin-top: 3px; accent-color: var(--p-accent); width: 18px; height: 18px; }
.ntpp-wide { width: 100%; }
.ntpp-opt { color: var(--p-faint); }
.ntpp-hp { position: absolute !important; left: -9999px; }
.ntpp-types { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ntpp-types legend { font-size: calc(14px * var(--p-fs-label)); color: var(--p-muted); margin-bottom: 10px; }
.ntpp-form .ntpp-type { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--p-line2); border-radius: 4px; cursor: pointer; margin: 0; }
.ntpp-type:has(input:checked) { border-color: var(--p-accent); background: var(--p-panel); }
.ntpp-type input { margin-top: 4px; accent-color: var(--p-accent); width: 18px; height: 18px; flex-shrink: 0; }
.ntpp-type strong { display: block; color: var(--p-text); font-size: calc(17px * var(--p-fs-sub)); font-weight: 500; }
.ntpp-type em { display: block; margin-top: 4px; font-style: normal; color: var(--p-muted); font-size: calc(14px * var(--p-fs)); line-height: 1.5; }
.ntpp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ntpp-linkbtn { background: none; border: 0; color: var(--p-muted); text-decoration: underline; cursor: pointer; font-size: calc(14px * var(--p-fs)); padding: 8px; }
.ntpp-linkbtn:hover { color: #E07A62; }

/* Page head with actions */
.ntpp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 8px; }
.ntpp-head__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ntpp-head__title { flex: 1 1 360px; }
.ntpp-h1--input { width: 100%; background: transparent; border: 0; border-bottom: 1px dashed var(--p-line3); padding: 0 0 6px; color: var(--p-text); }
.ntpp-sub-input { width: 100%; background: transparent; border: 0; border-bottom: 1px dashed var(--p-line2); padding: 4px 0; color: var(--p-text2); font-size: calc(17px * var(--p-fs)); margin-bottom: 24px; }
.ntpp-h1--input:focus, .ntpp-sub-input:focus { outline: none; border-bottom-color: var(--p-accent); }

/* Dashboard tiles */
.ntpp-tiles { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ntpp-tile { display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box; padding: 26px; border: 1px solid var(--p-line2); border-radius: 4px; background: var(--p-panel); }
.ntpp-tile svg { color: var(--p-accent); }
.ntpp-tile strong { font-size: calc(20px * var(--p-fs-sub)); font-weight: 500; color: var(--p-text); }
.ntpp-tile span { font-size: calc(14px * var(--p-fs)); line-height: 1.5; color: var(--p-muted); }
.ntpp-tile:hover { border-color: var(--p-accent); }

/* Tables */
.ntpp-search { max-width: 420px; margin: 0 0 16px !important; }
.ntpp-table-wrap { overflow-x: auto; border: 1px solid var(--p-line2); border-radius: 4px; }
.ntpp-table { width: 100%; border-collapse: collapse; font-size: calc(15px * var(--p-fs)); }
.ntpp-table th, .ntpp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.ntpp-table thead th { font-size: calc(12px * var(--p-fs-label)); font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--p-faint); background: var(--p-panel); white-space: nowrap; }
.ntpp-table tbody th { font-weight: 500; }
.ntpp-table tbody tr:hover { background: var(--p-panel); }
.ntpp-table .num { text-align: right; white-space: nowrap; }
.ntpp-table tr[hidden] { display: none; }
.ntpp-dl { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--p-line3); border-radius: 15px; font-size: calc(12px * var(--nt-fs-body, 1)); font-weight: 500; letter-spacing: .5px; }
.ntpp-dl:hover { border-color: var(--p-accent); }
.ntpp-empty { color: var(--p-muted); }
.ntpp-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: calc(13px * var(--p-fs)); background: var(--p-line2); }
.ntpp-status--protected, .ntpp-status--approved, .ntpp-status--won { background: #24331A; color: #B9D99A; }
.ntpp-status--rejected, .ntpp-status--lost { background: #33201B; color: #E0A693; }

/* Marketing files */
.ntpp-files { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
.ntpp-file { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--p-line2); border-radius: 4px; background: var(--p-panel); }
.ntpp-file__thumb { width: 84px; height: 84px; border-radius: 3px; overflow: hidden; background: var(--p-tile); display: flex; align-items: center; justify-content: center; color: var(--p-faint); font-size: calc(13px * var(--nt-fs-body, 1)); letter-spacing: 1px; }
.ntpp-file__thumb img { width: 100%; height: 100% !important; object-fit: cover; }
.ntpp-file__body { display: flex; flex-direction: column; gap: 3px; }
.ntpp-file__body strong { font-weight: 500; font-size: calc(17px * var(--p-fs-sub)); }
.ntpp-file__body span { color: var(--p-text2); font-size: calc(14px * var(--p-fs)); }
.ntpp-file__body em { font-style: normal; color: var(--p-faint); font-size: calc(13px * var(--p-fs)); }
.ntpp-file .nt-btn { min-height: 44px; padding: 0 20px; }

/* Shortlists */
.ntpp-lists { list-style: none; margin: 0 0 28px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ntpp-lists a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--p-line2); border-radius: 4px; background: var(--p-panel); }
.ntpp-lists a:hover { border-color: var(--p-accent); }
.ntpp-lists strong { font-size: calc(18px * var(--p-fs-sub)); font-weight: 500; }
.ntpp-lists span { font-size: calc(14px * var(--p-fs)); color: var(--p-muted); }
.ntpp-items { list-style: none; margin: 0 0 24px !important; padding: 0 !important; border-top: 1px solid var(--p-line2); }
.ntpp-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--p-line2); align-items: start; }
.ntpp-item__img { width: 72px; height: 72px; border-radius: 3px; overflow: hidden; background: var(--p-tile); display: block; }
.ntpp-item__img img { width: 100%; height: 100% !important; object-fit: cover; }
.ntpp-item__model { font-size: calc(17px * var(--p-fs-sub)); font-weight: 500; }
.ntpp-item__specs { display: block; margin-top: 2px; font-size: calc(13px * var(--p-fs)); color: var(--p-muted); }
.ntpp-item__fields { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ntpp-item__fields label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: calc(13px * var(--p-fs)); }
.ntpp-item__fields input { min-height: 38px !important; padding: 6px 10px !important; font-size: calc(14px * var(--p-fs)) !important; }
.ntpp-item__fields label:first-child input { width: 72px; }
.ntpp-item__note { flex: 1 1 260px; }
.ntpp-item__rm { display: inline-flex !important; gap: 6px; align-items: center; font-size: calc(13px * var(--p-fs)) !important; color: var(--p-faint) !important; }

/* Header link (Nuratech header) */
.ntpp-hlink { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.ntpp-hlink.is-in svg { color: var(--nt-accent); }
.ntpp-drawer-link { margin-top: 12px; }


/* Product page: price box, login hint, add to shortlist */
.ntpp-pricebox { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--nt-accent, #E6B566); border-radius: 4px; display: flex; flex-direction: column; gap: 6px; }
.ntpp-pricebox__label { font-size: calc(13px * var(--nt-fs-s, 1) * var(--nt-fs-label, 1)); color: var(--nt-muted, #A39D93); }
.ntpp-pricebox__value { font-size: calc(26px * var(--nt-fs-s, 1) * var(--nt-fs-head, 1)); }
.ntpp-pricebox__value strong { font-weight: 500; }
.ntpp-pricebox__value s { color: var(--nt-faint, #8C867C); font-size: .7em; margin-right: 6px; }
.ntpp-pricebox__value em { font-style: normal; font-size: .55em; color: var(--nt-muted, #A39D93); }
.ntpp-pricebox__note { font-size: calc(13px * var(--nt-fs-s, 1) * var(--nt-fs-body, 1)); color: var(--nt-faint, #8C867C); }
.ntpp-pricebox--none { flex-direction: row; justify-content: space-between; align-items: center; }
.ntpp-pricehint { margin-top: 18px !important; font-size: calc(14px * var(--nt-fs-s, 1) * var(--nt-fs-body, 1)); }
.ntpp-pricehint a { color: var(--nt-accent, #E6B566); border-bottom: 1px solid currentColor; }
.ntpp-addlist { display: flex; flex-wrap: wrap; gap: 8px; }
.ntpp-addlist select, .ntpp-addlist input[type=text] { flex: 1 1 180px; width: auto; min-height: 48px; padding: 8px 12px; border-radius: 24px; border: 1px solid var(--nt-line-3, #5A554E); background: transparent; color: var(--nt-text, #F1ECE3); font: inherit; font-size: calc(15px * var(--nt-fs-body, 1)); }
.ntpp-addlist select option { color: #111; }
.ntpp-addlist .nt-btn { flex: 1 1 160px; min-height: 48px; background: transparent; cursor: pointer; border: 1px solid var(--nt-line-3, #5A554E); }
.ntpp-addlist__ok { flex-basis: 100%; margin: 4px 0 0 !important; font-size: calc(14px * var(--nt-fs-body, 1)); color: var(--nt-text-2, #BDB7AD); }
.ntpp-addlist__ok a { color: var(--nt-accent, #E6B566); }

@media (max-width: 1023px) {
	.ntpp__wrap { grid-template-columns: minmax(0, 1fr); }
	.ntpp-side { position: static; }
	.ntpp-side__who { padding-bottom: 12px; }
	.ntpp-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px !important; scrollbar-width: none; }
	.ntpp-nav a { white-space: nowrap; border: 1px solid var(--p-line2); border-radius: 21px; min-height: 40px; }
	.ntpp-nav a[aria-current="page"] { box-shadow: none; border-color: var(--p-accent); }
	.ntpp-nav__sep { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 639px) {
	.ntpp-grid2 { grid-template-columns: minmax(0, 1fr); }
	.ntpp-file { grid-template-columns: 64px minmax(0, 1fr); }
	.ntpp-file__thumb { width: 64px; height: 64px; }
	.ntpp-file .nt-btn { grid-column: 1 / -1; }
	.ntpp-item { grid-template-columns: 56px minmax(0, 1fr); }
	.ntpp-item__img { width: 56px; height: 56px; }
	.ntpp-item__rm { grid-column: 2; }
	.ntpp-head__actions, .ntpp-head__actions .nt-btn { width: 100%; }
	.ntpp-table th, .ntpp-table td { padding: 11px 12px; }
	.ntpp-table .ntpp-col-cat { display: none; }
	.ntpp-table tbody th { min-width: 110px; }
}


/* Product page: "Partner login required" box in place of the download buttons. */
.ntpp-dl-lock { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--nt-line-2, #2E2B28); border-radius: 4px; background: var(--nt-panel, #151412); color: var(--nt-text, #F1ECE3); }
.ntpp-dl-lock__icon { flex: none; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--nt-line-3, #5A554E); color: var(--nt-text, #F1ECE3); }
.ntpp-dl-lock__body { min-width: 0; }
.ntpp-dl-lock__title { margin: 0 0 4px !important; font-size: calc(18px * var(--nt-fs-s, 1) * var(--nt-fs-sub, 1)); font-weight: 500; line-height: 1.3; }
.ntpp-dl-lock__text { margin: 0 !important; font-size: calc(15px * var(--nt-fs-s, 1) * var(--nt-fs-body, 1)); line-height: 1.55; color: var(--nt-text-2, #BDB7AD); }
.ntpp-dl-lock__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 0 !important; }
.ntpp-dl-lock__actions .nt-btn { min-height: 44px; }
.ntpp-dl-lock__apply { font-size: calc(15px * var(--nt-fs-s, 1) * var(--nt-fs-body, 1)); text-decoration: underline; text-underline-offset: 3px; color: var(--nt-text, #F1ECE3); }
.ntp-downloads--locked { display: block; margin-top: 28px !important; }
@media (max-width: 479px) { .ntpp-dl-lock { flex-direction: column; } }

/* Downloads page box (works inside any page template). */
.ntpp-dl-lock--page { max-width: 640px; margin: 24px 0 48px; text-align: left; }
.ntpp-dl-lock--page .ntpp-dl-lock__login { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; min-height: 44px; border-radius: 22px; background: #F1ECE3; color: #0F0E0D !important; text-decoration: none !important; font-weight: 500; }

/* Note for staff (only they see it) */
.ntpp-staff-note { margin: 12px 0 0 !important; padding: 10px 14px; border-left: 3px solid #2271b1; background: rgba(34,113,177,.12); color: var(--nt-text-2, #BDB7AD); font-size: 13px; line-height: 1.5; }
.ntpp-staff-note a { color: var(--nt-text, #F1ECE3); text-decoration: underline; }
