/* site palette */
html:root {
    --bg: #F8EFE4;
    --surface: #FFFFFF;
    --surface-alt: #D8F0F5;
    --text: #201911;
    --text-muted: #72675A;
    --border: #E4DED8;
    --primary: #296E7E;
    --primary-hover: #205663;
    --on-primary: #FFFFFF;
    --primary-text: #296E7E;
    --accent: #EDAB19;
    --on-accent: #111111;
    --accent-text: #8B630B;
    --dark-band: #0F282E;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3BDB6;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #0F282E;
    --section-alt-bg: #D8F0F5;
    --dark-band-bg: #0F282E;
    --brand-band-bg: #296E7E;
    --hero-bg: #0F282E;
}

/* /site palette */

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

html {
    scroll-behavior: smooth;
    font-family: 'Hedvig Letters Serif', Georgia, serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Hedvig Letters Serif', Georgia, serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.kwt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease-in-out, transform 0.25s ease-in-out;
}

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

.kwt-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary-text);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease-in-out;
}

.kwt-btn-alt:hover {
    color: var(--primary-hover);
}

.kwt-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.kwt-card:hover {
    transform: translateY(-2px);
}

.kwt-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.kwt-media img,
.kwt-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kwt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.kwt-title {
    font-family: 'Hedvig Letters Serif', Georgia, serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 16px;
}

.kwt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    background-color: var(--primary);
    color: var(--on-primary);
}

.kwt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--on-primary);
    flex-shrink: 0;
}

.kwt-section {
    background-color: var(--bg);
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .kwt-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.kwt-section-alt {
    background-color: var(--section-alt-bg, var(--surface-alt));
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .kwt-section-alt {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.kwt-section-dark {
    background-color: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding-top: 48px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .kwt-section-dark {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

.kwt-section-brand {
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding-top: 24px;
    padding-bottom: 24px;
}

.kwt-section-brand .kwt-btn {
    background-color: var(--brand-btn-bg, #FFFFFF);
    color: var(--brand-btn-text, #0F282E);
}

.kwt-section-brand .kwt-btn:hover {
    background-color: var(--bg);
    color: var(--brand-btn-text, #0F282E);
}

.kwt-section-brand .kwt-btn-alt {
    color: var(--on-primary);
    border: 1px solid var(--on-primary);
    text-decoration: none;
}

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

.kwt-section-dark .kwt-eyebrow,
.kwt-on-dark .kwt-eyebrow {
    color: var(--accent);
}

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

.kwt-section-dark .kwt-btn-alt,
.kwt-on-dark .kwt-btn-alt {
    color: var(--on-dark);
}

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

.kwt-section-dark .kwt-card .kwt-title,
.kwt-on-dark .kwt-card .kwt-title {
    color: var(--text);
}

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

/* ===== header ===== */
.bf-header {
    font-family: 'Hedvig Letters Serif', serif;
}

.bf-header .bf-nav-link {
    white-space: nowrap;
}

.bf-header .bf-nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bf-header .kwt-btn {
    white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .bf-header > div:first-child {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bf-header span.whitespace-nowrap {
        font-size: 17px;
    }

    .bf-header .bf-nav-link {
        font-size: 14px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .bf-header .kwt-btn {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 14px;
    }
}

@media (max-width: 1023px) {
    .bf-header .js-mobile-menu:not(.hidden) {
        display: block;
    }
}

/* ===== draw_the_boundary_before_debating_the_details ===== */
.bff-hero {
    position: relative;
    width: 100%;
    min-height: 580px;
}

.bff-hero__video-wrapper {
    z-index: 1;
}

.bff-hero__video {
    object-position: center;
}

.bff-hero__overlay {
    backdrop-filter: blur(1px);
}

.bff-hero__card select {
    appearance: auto;
}

.bff-hero__card input::placeholder {
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}

@media (max-width: 767px) {
    .bff-hero {
        min-height: auto;
    }
}

/* ===== founders_message ===== */
.bf-founder-block .bf-founder-content p {
    overflow-wrap: anywhere;
}

.bf-founder-block .bf-signature-mark svg {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .bf-founder-block .bf-founder-media-wrap {
        max-width: 100%;
    }
}

/* ===== architecture ===== */
#architecture-grid {
    background-color: var(--surface-alt, #D8F0F5);
}

#architecture-grid .kwt-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

#architecture-grid .kwt-card:hover {
    transform: translateY(-2px);
}

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

/* ===== featured_case_the_external_service_that_looked_internal ===== */
.featured-case-block .kwt-eyebrow {
    letter-spacing: 0.08em;
}

.featured-case-block .kwt-card {
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.featured-case-block ul li span {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

/* ===== how_we_work ===== */
.process-steps-section {
    background-color: var(--dark-band, #0F282E);
    color: var(--on-dark, #FFFFFF);
    overflow: hidden;
}

.process-steps-section .process-card {
    min-height: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .process-steps-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== press_mentions ===== */
.kwt-press-mentions {
    overflow-wrap: anywhere;
}

.kwt-press-mentions .kwt-card {
    min-height: 100%;
}

/* ===== explore_our_resources ===== */
.bf-resources-block {
    overflow-wrap: anywhere;
}

.bf-resources-block .kwt-card {
    min-width: 0;
}

.bf-resources-block .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== quick_application ===== */
.boundary-form-block input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.boundary-form-block input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

@media (max-width: 767px) {
    .boundary-form-block .kwt-title {
        font-size: 16px;
    }
}

/* ===== footer ===== */
.boundary-footer {
    background-color: var(--dark-band, #0F282E);
    color: var(--on-dark-muted, #C3BDB6);
    overflow-wrap: anywhere;
}

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

.boundary-footer input[type="email"]::placeholder {
    color: var(--on-dark-muted, #C3BDB6);
    opacity: 0.85;
}

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

    .boundary-footer__main .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE: draw-io ===== */
.drawio-breakdown .kwt-card{transition:all 0.25s ease-in-out;}.drawio-breakdown .kwt-card:hover{transform:translateY(-2px);}.drawio-principles .kwt-card{transition:all 0.25s ease-in-out;}.drawio-principles .kwt-card:hover{transform:translateY(-2px);}.drawio-metrics-cta a.kwt-btn-alt:hover{background-color:rgba(255,255,255,0.08);}

/* ===== PAGE: case-studies ===== */
.case-studies-grid .case-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.case-studies-grid .case-media-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .case-studies-grid .case-card {
    width: 100%;
  }
}

/* ===== PAGE: knowledge-base ===== */
.kb-listing-block .kwt-card { box-shadow: none; }
.kb-listing-block .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) { .kb-listing-block .kwt-card { width: 100%; } }

/* ===== PAGE: training-programs ===== */
.course-catalog-section input::placeholder {
  color: #72675A;
  opacity: 0.8;
}
.course-catalog-section .course-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .course-catalog-section .course-card {
    width: 100%;
  }
}

/* ===== PAGE: privacy ===== */
.kwt-section { overflow-wrap: anywhere; }
.js-nav-link.active { color: var(--primary); font-weight: 600; }

/* ===== PAGE: terms ===== */
.terms-content article{scroll-margin-top:90px}

/* ===== PAGE: disclaimer ===== */
.disclaimer-page-content h2, .disclaimer-page-content h3 {
  font-family: var(--font-family-headings, 'Hedvig Letters Serif', serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.disclaimer-page-content p, .disclaimer-page-content span, .disclaimer-page-content a {
  overflow-wrap: anywhere;
}
.disclaimer-page-content a {
  transition: color 0.2s ease-in-out;
}

.comment-card {
    transition: all 0.25s ease-in-out;
}

.comment-card:hover {
    transform: translateY(-2px);
}

.avatar-initials {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 9999px;
    background-color: #296E7E;
    color: #FFFFFF;
    font-family: 'Hedvig Letters Serif', serif;
}

.comment-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.comment-action-btn:focus-visible {
    outline: 2px solid #296E7E;
    outline-offset: 2px;
}

.reply-comment {
    transition: all 0.25s ease-in-out;
}

.reply-comment:hover {
    transform: translateY(-1px);
}

.reply-comment .avatar-initials {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 9999px;
    background-color: #0F282E;
    color: #FFFFFF;
    font-family: 'Hedvig Letters Serif', serif;
}

.reply-comment .comment-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.reply-comment .comment-action-btn:focus-visible {
    outline: 2px solid #296E7E;
    outline-offset: 2px;
}


/* ===== PAGE TEMPLATE: case-studies ===== */
.bf-header {
    font-family: 'Hedvig Letters Serif', serif;
}

.bf-header .bf-nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 1023px) {
    .bf-header .js-mobile-menu:not(.hidden) {
        display: block;
    }
}

.bf-case-detail {
    overflow-wrap: anywhere;
}

.bf-case-detail input::placeholder,
.bf-case-detail textarea::placeholder {
    color: #72675A;
    opacity: 0.7;
}

.bf-case-content h2 {
    overflow-wrap: anywhere;
}

.bf-note-card.half-width {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .bf-note-card.half-width {
        margin-left: 0;
        margin-right: auto;
    }
}

.boundary-footer {
    background-color: var(--dark-band, #0F282E);
    color: var(--on-dark-muted, #C3BDB6);
    overflow-wrap: anywhere;
}

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

.boundary-footer input[type="email"]::placeholder {
    color: var(--on-dark-muted, #C3BDB6);
    opacity: 0.85;
}

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

    .boundary-footer__main .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: knowledge-base ===== */
.bf-header {
    font-family: 'Hedvig Letters Serif', serif;
}

.bf-header .bf-nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bff-hero {
    position: relative;
    width: 100%;
    background-color: var(--dark-band, #0F282E);
}

.boundary-footer {
    background-color: var(--dark-band, #0F282E);
    color: var(--on-dark-muted, #C3BDB6);
    overflow-wrap: anywhere;
}

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

.boundary-footer input[type="email"]::placeholder {
    color: var(--on-dark-muted, #C3BDB6);
    opacity: 0.85;
}

.kb-detail-page .kb-h2 {
    font-family: 'Hedvig Letters Serif', serif;
    line-height: 1.3;
}

.kb-detail-page .kb-content p {
    overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
    .bf-header .js-mobile-menu:not(.hidden) {
        display: block;
    }
}

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

    .boundary-footer__main .grid {
        grid-template-columns: 1fr;
    }

    .kb-detail-page .kb-table thead {
        display: none;
    }

    .kb-detail-page .kb-table,
    .kb-detail-page .kb-table tbody,
    .kb-detail-page .kb-table tr,
    .kb-detail-page .kb-table td {
        display: block;
        width: 100%;
    }

    .kb-detail-page .kb-table td {
        padding: 8px 14px;
    }
}

/* ===== PAGE TEMPLATE: training-programs ===== */
.bf-header {
    font-family: 'Hedvig Letters Serif', serif;
}

.bf-header .bf-nav-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tp-detail-wrapper {
    font-family: 'Hedvig Letters Serif', serif;
}

.tp-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-enroll-form input::placeholder {
    color: var(--text-muted, #72675A);
    opacity: 0.85;
}

.tp-enroll-form select {
    appearance: auto;
}

.boundary-footer {
    background-color: var(--dark-band, #0F282E);
    color: var(--on-dark-muted, #C3BDB6);
    overflow-wrap: anywhere;
}

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

.boundary-footer input[type="email"]::placeholder {
    color: var(--on-dark-muted, #C3BDB6);
    opacity: 0.85;
}

@media (max-width: 1023px) {
    .bf-header .js-mobile-menu:not(.hidden) {
        display: block;
    }
}

@media (max-width: 767px) {
    .tp-spec-table thead {
        display: none;
    }

    .tp-spec-table,
    .tp-spec-table tbody,
    .tp-spec-table tr,
    .tp-spec-table th,
    .tp-spec-table td {
        display: block;
        width: 100%;
    }

    .tp-spec-table th {
        padding-bottom: 4px;
    }

    .tp-spec-table td {
        padding-top: 0;
        padding-bottom: 12px;
    }

    .boundary-footer__prestrip .grid {
        grid-template-columns: 1fr;
    }

    .boundary-footer__main .grid {
        grid-template-columns: 1fr;
    }
}

/* 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%;
  }
}
