/* site palette */
html:root {
    --bg: #FFFFFF;
    --surface: #F7F5F5;
    --surface-alt: #F3D9D7;
    --text: #221514;
    --text-muted: #725B5A;
    --border: #E4D9D8;
    --primary: #AD2A20;
    --primary-hover: #8F231A;
    --on-primary: #FFFFFF;
    --primary-text: #AD2A20;
    --accent: #3FF4ED;
    --on-accent: #111111;
    --accent-text: #077E7A;
    --dark-band: #A4281E;
    --on-dark: #FFFFFF;
    --on-dark-muted: #D5CDCC;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #A4281E;
    --section-alt-bg: #F3D9D7;
    --dark-band-bg: #A4281E;
    --brand-band-bg: #AD2A20;
    --hero-bg: #A4281E;
}

/* /site palette */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Proza Libre', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: var(--text-muted) !important;
}

.nrp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
    text-decoration: none;
}

.nrp-btn:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
}

.nrp-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--primary-text);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 1px solid var(--primary);
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 150ms ease-in-out, color 150ms ease-in-out, border-color 150ms ease-in-out;
    text-decoration: none;
}

.nrp-btn-alt:hover {
    background-color: var(--surface-alt);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.nrp-card {
    background-color: var(--surface);
    color: var(--text);
    border-radius: 0px;
    border: none;
    box-shadow: none;
    padding: 2rem;
    transition: background-color 150ms ease-in-out;
}

.nrp-card:hover {
    background-color: var(--surface-alt);
}

.nrp-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 0px;
    overflow: hidden;
    border: none;
}

.nrp-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
}

.nrp-eyebrow {
    font-size: 0.8125rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.nrp-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.nrp-title span,
.nrp-title .accent-word {
    color: var(--primary-text);
}

.nrp-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--on-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 0px;
}

.nrp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.nrp-section {
    background-color: var(--bg);
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nrp-section-alt {
    background-color: var(--section-alt-bg, var(--surface-alt));
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nrp-section-dark {
    background-color: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nrp-section-dark .nrp-title {
    color: var(--on-dark);
}

.nrp-section-dark .nrp-eyebrow {
    color: var(--on-dark-muted);
}

.nrp-section-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.nrp-section-dark .nrp-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.nrp-section-dark .nrp-btn-alt:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--on-dark);
    border-color: var(--on-dark);
}

.nrp-section-dark .nrp-card {
    background-color: var(--surface);
    color: var(--text);
}

.nrp-section-dark .nrp-card .nrp-title {
    color: var(--text);
}

.nrp-section-dark .nrp-card .text-muted {
    color: var(--text-muted) !important;
}

.nrp-section-brand {
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nrp-section-brand .nrp-btn {
    background-color: var(--brand-btn-bg, #FFFFFF);
    color: var(--brand-btn-text, var(--primary));
}

.nrp-section-brand .nrp-btn:hover {
    background-color: var(--surface);
    color: var(--primary-hover);
}

.nrp-section-brand .nrp-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.nrp-section-brand .nrp-btn-alt:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--on-primary);
}

.nrp-on-dark {
    color: var(--on-dark);
}

.nrp-on-dark h1,
.nrp-on-dark h2,
.nrp-on-dark h3,
.nrp-on-dark .nrp-title {
    color: var(--on-dark);
}

.nrp-on-dark p,
.nrp-on-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.nrp-on-dark .nrp-card {
    background-color: var(--surface);
    color: var(--text);
}

.nrp-on-dark .nrp-card .text-muted {
    color: var(--text-muted) !important;
}

.nrp-on-dark .nrp-card h1,
.nrp-on-dark .nrp-card h2,
.nrp-on-dark .nrp-card h3 {
    color: var(--text);
}

/* accent words inside titles on dark bands must stay visible */
.nrp-section-dark .nrp-title span,
.nrp-section-brand .nrp-title span,
.nrp-on-dark .nrp-title span {
    color: var(--accent);
}
.nrp-section-dark .nrp-card .nrp-title span,
.nrp-section-brand .nrp-card .nrp-title span,
.nrp-on-dark .nrp-card .nrp-title span {
    color: var(--primary-text);
}

/* ===== header ===== */
.header-block {
    font-family: 'Proza Libre', sans-serif;
}

.header-block .js-dropdown-menu {
    min-width: 16rem;
}

@media (max-width: 767px) {
    .header-block nav a {
        overflow-wrap: anywhere;
    }
}

/* ===== hero ===== */
.cla-hero {
    position: relative;
    background-color: var(--hero-bg, #A4281E);
}

.cla-hero__grid-pattern {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

.cla-hero h1 {
    overflow-wrap: anywhere;
}

.cla-hero .nrp-btn {
    border-radius: 0px;
}

.cla-hero .nrp-btn-alt {
    border-radius: 0px;
}

@media (max-width: 767px) {
    .cla-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .cla-hero__actions .nrp-btn,
    .cla-hero__actions .nrp-btn-alt {
        width: 100%;
    }
}

/* ===== founder_message ===== */
.founder-section .founder-bracket-frame {
    position: relative;
    background-color: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.founder-section .founder-bracket-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 24px;
    height: 24px;
    border-top: 4px solid #FFFFFF;
    border-left: 4px solid #FFFFFF;
    pointer-events: none;
}

.founder-section .founder-bracket-frame::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-bottom: 4px solid #FFFFFF;
    border-right: 4px solid #FFFFFF;
    pointer-events: none;
}

.founder-section .founder-image-wrapper {
    position: relative;
}

.founder-section .founder-info-plate {
    border-left: 3px solid #3FF4ED;
}

@media (max-width: 767px) {
    .founder-section .founder-bracket-frame {
        padding: 1.25rem;
    }
}

/* ===== work_formats ===== */
.cla-work-formats {
    box-sizing: border-box;
}

.cla-work-formats .cla-card {
    min-height: 100%;
    border-radius: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cla-work-formats .cla-card:hover {
    background-color: var(--surface);
}

@media (max-width: 767px) {
    .cla-work-formats .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== cost_calculator ===== */
#cost-calculator-section input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 0px;
    cursor: pointer;
    -webkit-appearance: none
}

#cost-calculator-section input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 0px;
    cursor: pointer;
    border: none
}

#cost-calculator-section input::placeholder {
    color: var(--text-muted);
    opacity: 0.85
}

/* ===== featured_case ===== */
.nrp-featured-case {
    font-family: 'Proza Libre', sans-serif;
}

.nrp-featured-case .js-status-panel.is-invalid {
    border-left-color: #AD2A20;
    background-color: #FFFFFF;
}

.nrp-featured-case .js-status-panel.is-valid {
    border-left-color: #077E7A;
    background-color: #F7F5F5;
}

@media (max-width: 767px) {
    .nrp-featured-case .js-param-input+span {
        padding: 8px;
    }
}

/* ===== configuration_rules_grid ===== */
#configuration-rules-grid .nrp-card {
    transition: background-color 0.2s ease;
}

#configuration-rules-grid .nrp-card:hover {
    background-color: var(--surface-alt);
}

#configuration-rules-grid .nrp-media {
    transition: transform 0.3s ease;
}

#configuration-rules-grid .nrp-card:hover .nrp-media {
    transform: scale(1.03);
}

@media (max-width: 767px) {
    #configuration-rules-grid .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== product_family_grid ===== */
.product-family-grid-container .nrp-card {
    background-color: var(--surface);
    border-radius: 0px;
    transition: background-color 0.2s ease;
}

.product-family-grid-container .nrp-card:hover {
    background-color: #FFFFFF;
}

.product-family-grid-container .nrp-card img {
    border-radius: 0px;
}

@media (max-width: 767px) {
    .product-family-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ===== combination_matrix_grid ===== */
.combination-matrix-block {
    overflow-wrap: anywhere;
}

.combination-matrix-block .combination-matrix-block__card {
    transition: background-color 0.2s ease;
}

.combination-matrix-block .combination-matrix-block__card:hover {
    background-color: var(--surface-alt);
}

.combination-matrix-block .combination-matrix-block__img {
    transition: transform 0.3s ease;
}

.combination-matrix-block .combination-matrix-block__card:hover .combination-matrix-block__img {
    transform: scale(1.04);
}

.combination-matrix-block .combination-matrix-block__link:hover .combination-matrix-block__arrow {
    transform: translateX(4px);
}

.combination-matrix-block .combination-matrix-block__arrow {
    transition: transform 0.2s ease;
}

@media (max-width: 767px) {
    .combination-matrix-block .combination-matrix-block__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== practical_cases_grid ===== */
.atlas-cases-block {
    background-color: var(--surface-alt);
}

.atlas-cases-block .atlas-cases-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.atlas-cases-block .atlas-cases-card:hover {
    background-color: var(--surface);
}

@media (max-width: 767px) {
    .atlas-cases-block .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== footer ===== */
.cla-footer {
    font-family: 'Proza Libre', sans-serif;
}

.cla-footer a {
    text-decoration: none;
}

.cla-footer-disclaimer {
    border-radius: 0px;
}

.cla-footer-link {
    transition: color 0.15s ease-in-out;
}

.cla-footer-wa-link {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767px) {
    .cla-footer .grid {
        grid-template-columns: 1fr;
    }
}

.header-block {
    font-family: 'Proza Libre', sans-serif;
}

.header-block .js-dropdown-menu {
    min-width: 16rem;
}

.cla-repeat-hero {
    font-family: 'Proza Libre', sans-serif;
    background-color: var(--hero-bg, #A4281E);
}

.cla-catalog-section {
    font-family: 'Proza Libre', sans-serif;
}

.cla-item-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cla-item-card:hover {
    border-color: var(--primary, #AD2A20);
}

.cla-faq-section {
    font-family: 'Proza Libre', sans-serif;
}

.cla-footer {
    font-family: 'Proza Libre', sans-serif;
}

.cla-footer a {
    text-decoration: none;
}

.cla-footer-disclaimer {
    border-radius: 0px;
}

.cla-footer-link {
    transition: color 0.15s ease-in-out;
}

.cla-footer-wa-link {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767px) {
    .header-block nav a {
        overflow-wrap: anywhere;
    }

    .cla-footer .grid {
        grid-template-columns: 1fr;
    }

    .cla-catalog-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== PAGE: onshape-variant-logic ===== */
.active-opt {
  cursor: pointer;
}
.js-bracket-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}
.js-frame-btn, .js-bracket-btn {
  transition: all 0.15s ease-in-out;
}
.nrp-card {
  border-radius: 0px;
}

/* ===== PAGE: about ===== */
.about-atlas-page .nrp-eyebrow {
  font-family: 'Proza Libre', sans-serif;
  letter-spacing: 0.15em;
}
.about-atlas-page .nrp-title {
  font-family: 'Proza Libre', sans-serif;
  overflow-wrap: anywhere;
}
.about-atlas-page .js-tab-btn {
  border-radius: 0px;
  cursor: pointer;
}
.about-atlas-page .js-tab-btn.active {
  background-color: #AD2A20;
  color: #FFFFFF;
}
.about-atlas-page .js-tab-pane.hidden {
  display: none;
}
@media (max-width: 767px) {
  .about-atlas-page .js-tabs-container {
    flex-direction: column;
  }
  .about-atlas-page .js-tab-btn {
    width: 100%;
    text-align: left;
  }
}

/* ===== PAGE: contact ===== */
.contact-block-section input::placeholder, .contact-block-section textarea::placeholder { color: var(--text-muted); opacity: 0.8; } .contact-block-section input, .contact-block-section select, .contact-block-section textarea { border-radius: 0px; } .contact-block-section .contact-info-card, .contact-block-section .sla-badge-box, .contact-block-section .contact-form { border-radius: 0px; } @media (max-width: 767px) { .contact-block-section .contact-form { padding: 1.25rem; } }

/* ===== PAGE: privacy ===== */
.privacy-page .privacy-nav-box {
  border-radius: 0px;
}

.privacy-page .privacy-section {
  border-radius: 0px;
  scroll-margin-top: 100px;
}

.privacy-page .privacy-toc-link.active {
  background-color: var(--surface-alt);
  color: var(--primary);
  font-weight: 700;
  border-left: 2px solid var(--primary);
}

@media (max-width: 767px) {
  .privacy-page .privacy-nav-box {
    position: static;
  }
}

/* ===== PAGE: terms ===== */
.terms-page { overflow-wrap: anywhere; }
.terms-page .terms-page__nav-link.is-active { color: var(--primary); font-weight: 700; border-left: 2px solid var(--primary); padding-left: 0.5rem; }
@media (max-width: 767px) {
  .terms-page__container { grid-template-columns: 1fr; }
  .terms-page__sidebar { display: none; }
}

/* ===== PAGE: disclaimer ===== */
.cla-disclaimer-wrap .cla-toc-link{transition:color 150ms ease-in-out,padding-left 150ms ease-in-out}.cla-disclaimer-wrap .cla-toc-link:hover{padding-left:0.25rem}

.comment-item {
    border-radius: 0px;
    background-color: #F7F5F5;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    object-fit: cover;
    border-radius: 0px;
    border: 1px solid #E4D9D8;
}

.comment-btn {
    cursor: pointer;
    user-select: none;
    border-radius: 0px;
}

.reply-item {
    border-radius: 0px;
    background-color: #FFFFFF;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: cover;
    border-radius: 0px;
    border: 1px solid #E4D9D8;
}


/* ===== PAGE TEMPLATE: configuration-rules, product-family-structure, combination-matrix, practical-cases ===== */
.header-block {
    font-family: 'Proza Libre', sans-serif;
}

.header-block .js-dropdown-menu {
    min-width: 16rem;
}

@media (max-width: 767px) {
    .header-block nav a {
        overflow-wrap: anywhere;
    }
}

.cla-hero {
    position: relative;
    background-color: var(--hero-bg, #A4281E);
}

.cla-hero h1 {
    overflow-wrap: anywhere;
}

.cla-framed-article {
    background-color: var(--bg, #FFFFFF);
}

.cla-content-frame {
    border-radius: 0px;
}

.cla-content-frame h2,
.cla-content-frame h3 {
    overflow-wrap: anywhere;
}

.cla-related-card {
    border-radius: 0px;
}

.cla-footer {
    font-family: 'Proza Libre', sans-serif;
}

.cla-footer a {
    text-decoration: none;
}

.cla-footer-disclaimer {
    border-radius: 0px;
}

.cla-footer-link {
    transition: color 0.15s ease-in-out;
}

.cla-footer-wa-link {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767px) {
    .cla-footer .grid {
        grid-template-columns: 1fr;
    }

    .cla-cta-banner {
        flex-direction: column;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ===== FILTER: featured button (high-contrast accent) ===== */
.js-filter-btn.filter-btn-featured {
  background-color: var(--accent) !important;
  color: var(--on-accent) !important;
  border: 2px solid var(--accent-text) !important;
  box-shadow: 0 2px 0 var(--accent-text);
  font-weight: 800;
}
.js-filter-btn.filter-btn-featured:hover {
  background-color: #23E8E1 !important;
  border-color: #045A57 !important;
  color: #0B1B1A !important;
}
.js-filter-btn.filter-btn-featured:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--accent-text);
}
.js-filter-btn.filter-btn-featured:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
/* selected state: filter JS adds bg-[var(--primary)] to the active button */
.js-filter-btn.filter-btn-featured.bg-\[var\(--primary\)\] {
  background-color: var(--accent-text) !important;
  color: #FFFFFF !important;
  border-color: #043F3D !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.js-filter-btn.filter-btn-featured.bg-\[var\(--primary\)\]:hover {
  background-color: #0B8A85 !important;
  color: #FFFFFF !important;
}

/* ===== FEATURED CASE: view full case study CTA ===== */
.nrp-btn.featured-case-cta {
  background-color: var(--accent) !important;
  color: var(--on-accent) !important;
  border: 2px solid var(--accent-text) !important;
  box-shadow: 0 3px 0 var(--accent-text);
}
.nrp-btn.featured-case-cta:hover {
  background-color: #23E8E1 !important;
  color: #0B1B1A !important;
  border-color: #043F3D !important;
}
.nrp-btn.featured-case-cta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-text);
}
.nrp-btn.featured-case-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
