.top-nav a { position: relative; }
.nav-new { position: absolute; top: -11px; right: 9px; padding: 4px 7px; border-radius: 6px; background: #ffce00; color: #111; font: italic 800 12px/1 Arial,sans-serif; letter-spacing: .06em; box-shadow: 0 0 0 2px #111; animation: new-pulse 2.4s ease-in-out infinite; }
.top-nav a.active .nav-new { background: #111; color: #ffce00; box-shadow: 0 0 0 2px #ffce00; }
@keyframes new-pulse { 0%,100% { opacity: 1; transform: translateY(0); } 50% { opacity: .45; transform: translateY(-2px); } }
.walnut-card { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 22px 16px 16px; overflow: hidden; border-radius: inherit; background: #ffce00; color: #080808; text-align: left; }
.walnut-card::before,.knowledge-card-copy::before { content: ''; position: absolute; inset: 0 0 0 48%; pointer-events: none; opacity: .28; background: repeating-linear-gradient(65deg,transparent 0 65px,#fff 65px 110px,transparent 110px 155px); }
.walnut-card > * { position: relative; }
.walnut-card > strong { max-width: 94%; font-size: 27px; line-height: 1.05; margin-top: 17px; }
.service-new { position: absolute; top: 12px; right: 16px; font: italic 800 12px/1 Arial,sans-serif; letter-spacing: .08em; }
.walnut-price { display: block; margin: auto 0; padding: 18px 0; font-size: 45px; font-weight: 800; line-height: 1; }
.walnut-price small { display: block; margin-top: 7px; font-size: 16px; font-weight: 500; }
.walnut-description { font-size: 17px; line-height: 1.2; margin-bottom: 14px; }
.walnut-more { display: grid; place-items: center; min-height: 56px; background: white; border-radius: 14px; font-size: 18px; text-transform: uppercase; }
.knowledge-page { background: #fff; }
.knowledge-page .knowledge-hero-shell { position: absolute; top: 0; left: 0; width: 100%; height: 690px; overflow: visible; }
.knowledge-page .knowledge-hero-canvas { width: 100%; height: 690px; transform: none; }
.knowledge-page .knowledge-hero-canvas .hero { width: 100%; height: 690px; min-height: 0; }
.knowledge-page .hero-photo { background-position: center; }
.knowledge-page .hero-shade { background: linear-gradient(#000 0%,rgba(0,0,0,.65) 44%,rgba(0,0,0,.3) 65%,#fff 100%); }
.knowledge-page .white-curve,.knowledge-page .brand-lockup,.knowledge-page .hero-actions { display: none; }
.knowledge-page .top-nav { left: 13% !important; top: 48px !important; width: 74% !important; }
.knowledge-content { width: min(1440px,calc(100% - 64px)); padding: 210px 0 80px; }
.knowledge-heading { max-width: 1200px; margin: 0 auto 40px; text-align: center; color: white; }
.knowledge-heading h1 { font-family: Arial,sans-serif; font-size: clamp(36px,4.7vw,72px); font-weight: 800; line-height: 1.05; }
.knowledge-heading > span { max-width: none; margin-top: 24px; color: #fff; font-size: 18px; }
.knowledge-search { position: relative; z-index: 5; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 24px; padding: 36px 28px 44px; border: 0; border-radius: 26px; box-shadow: 0 5px 18px #0003; }
.knowledge-search label,.knowledge-filter { grid-column: span 1; min-width: 0; color: #767676; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.knowledge-filter > span { display: block; margin-bottom: 9px; }
.knowledge-search input[type=search],.knowledge-search select,.knowledge-filter summary { width: 100%; min-width: 0; height: 66px; padding: 16px 20px; border: 1px solid #e3e3e3; border-radius: 15px; background: #f4f4f4; box-shadow: inset 0 2px 7px #0002; color: #333; font: 400 18px/1.4 Arial,sans-serif; text-transform: none; }
.knowledge-search input::placeholder { color: #808080; opacity: 1; }
.knowledge-filter details { position: relative; }
.knowledge-filter summary { cursor: pointer; list-style: none; display: flex; align-items: center; padding-right: 30px; }
.knowledge-filter summary::-webkit-details-marker { display: none; }
.knowledge-filter summary::after { content: ''; position: absolute; right: 15px; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.knowledge-options { position: absolute; top: calc(100% + 12px); left: 0; z-index: 10; width: 100%; max-height: 310px; overflow-y: auto; padding: 12px; background: white; box-shadow: 0 4px 18px #0003; border-radius: 16px; scrollbar-width: thin; }
.knowledge-options input[type=search] { height: 46px; padding: 10px; font-size: 16px; }
.knowledge-options button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 6px; border: 0; background: white; color: #111; font: 400 16px/1.25 Arial,sans-serif; text-align: left; cursor: pointer; }
.knowledge-options i { flex: 0 0 16px; height: 16px; border: 1px solid currentColor; border-radius: 50%; }
.knowledge-options .is-chosen i { background: #111; }
.knowledge-options .is-muted { color: #858585; }
.knowledge-options button:hover { background: #fff7cc; color: #111; }
.knowledge-options p { font-weight: 400; font-size: 14px; text-transform: none; }
.knowledge-search .knowledge-photo-filter { grid-column: span 1; height: 66px; margin-top: 23px; border-radius: 15px; background: #f4f4f4; box-shadow: inset 0 2px 7px #0002; font-size: 16px; }
.knowledge-search .knowledge-reset { grid-column: span 2; height: 66px; margin-top: 23px; border-radius: 15px; font-size: 18px; text-transform: uppercase; }
.knowledge-reset:disabled { background: #c3c3c3; opacity: 1; }
.knowledge-summary { margin: 64px 0 24px; }
.knowledge-summary strong { color: #767676; font-size: 22px; }
.knowledge-grid { grid-template-columns: 1fr; gap: 56px; }
.knowledge-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,3fr); gap: 26px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.knowledge-card:hover { transform: none; box-shadow: none; }
.knowledge-card-media { height: auto; min-height: 340px; border-radius: 24px; box-shadow: 0 4px 16px #0003; }
.knowledge-card-media > img { position: absolute; inset: 0; }
.knowledge-card-copy { position: relative; display: flex; flex-direction: column; gap: 22px; overflow: hidden; padding: 30px; border-radius: 24px; background: #ffce00; box-shadow: 0 4px 16px #0003; }
.knowledge-card-copy > * { position: relative; }
.knowledge-card-copy > div { color: #333; font-size: 16px; flex-wrap: wrap; }
.knowledge-card-copy > div span { font-weight: 400; }
.knowledge-card-copy h2 { font-size: 25px; margin: 0; }
.knowledge-card-copy > p { display: block; min-height: 0; overflow: visible; color: #111; font-size: 18px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-card-copy footer { margin-top: auto; border-color: #0002; }
.knowledge-card-copy code { color: #333; }
.knowledge-cost { display: block; margin-top: 12px; font-size: clamp(20px,2vw,30px); text-transform: uppercase; }
.knowledge-view { position: absolute; left: 16px; right: 16px; bottom: 16px; min-height: 52px; border: 0; border-radius: 30px; background: white; color: #111; font-size: 19px; text-transform: uppercase; cursor: pointer; }
.knowledge-photo-dialog { position: fixed; inset: 0; width: min(900px,calc(100% - 32px)); max-height: 90dvh; margin: auto; padding: 24px; border: 0; border-radius: 22px; }
.knowledge-photo-dialog::backdrop { background: #000b; }
.knowledge-photo-dialog form { position: sticky; top: 0; display: flex; justify-content: flex-end; }
.knowledge-photo-dialog button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffce00; font-size: 28px; cursor: pointer; }
.knowledge-photo-dialog img { position: static; display: block; width: 100%; height: auto; margin-top: 16px; }
.knowledge-page .knowledge-map { position: relative; left: auto; top: auto; width: 100%; height: auto; padding: 70px max(24px,calc((100% - 1440px)/2)); text-align: center; }
.knowledge-map .map-bg { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(#fffc,#fffc),url('/assets/services-cta-bg.webp') center/cover; }
.knowledge-page .knowledge-map h2,.knowledge-page .knowledge-map p { position: relative; left: auto; top: auto; width: auto; margin: 0 auto 22px; max-width: 1100px; }
.knowledge-page .knowledge-map h2 { font-size: clamp(28px,3.4vw,50px); line-height: 1.08; }
.knowledge-page .knowledge-map p { font-size: 18px; }
.knowledge-page .knowledge-map .real-map { position: relative; left: auto; top: auto; width: 100%; height: 380px; margin-top: 42px; }
.knowledge-page .knowledge-footer { background: #fff; }
@media (max-width: 900px) {
 .nav-new { position: static; display: inline-block; margin-left: 10px; vertical-align: middle; }
 .knowledge-page .top-nav { left: 16px !important; top: 76px !important; width: calc(100% - 32px) !important; z-index: 30; }
 .knowledge-page .knowledge-hero-shell,.knowledge-page .knowledge-hero-canvas,.knowledge-page .knowledge-hero-canvas .hero { height: 620px; }
 .knowledge-content { width: calc(100% - 32px); padding-top: 150px; }
 .knowledge-heading h1 { font-size: clamp(32px,6vw,52px); }
 .knowledge-search { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; padding: 24px; }
 .knowledge-search .knowledge-query { grid-column: 1 / -1; }
 .knowledge-search .knowledge-reset { grid-column: 1 / -1; margin-top: 0; }
 .knowledge-search .knowledge-photo-filter { grid-column: span 1; }
 .knowledge-card { grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 18px; }
 .knowledge-card-copy { padding: 24px; }
}
@media (max-width: 560px) {
 .knowledge-content { padding-top: 130px; padding-bottom: 48px; }
 .knowledge-heading { margin-bottom: 28px; }
 .knowledge-heading > span { font-size: 16px; line-height: 1.45; }
 .knowledge-search { padding: 22px 16px; grid-template-columns: minmax(0,1fr); gap: 18px; }
 .knowledge-search label,.knowledge-search .knowledge-photo-filter,.knowledge-search .knowledge-reset,.knowledge-filter { grid-column: 1 / -1; }
 .knowledge-search .knowledge-photo-filter,.knowledge-search .knowledge-reset { margin-top: 0; }
 .knowledge-search input[type=search],.knowledge-search select,.knowledge-filter summary { height: 58px; padding: 14px; font-size: 16px; }
 .knowledge-summary { margin-top: 36px; }
 .knowledge-grid { gap: 32px; }
 .knowledge-card { grid-template-columns: 1fr; gap: 12px; }
 .knowledge-card-media { min-height: 260px; }
 .knowledge-card-copy { padding: 22px; gap: 18px; }
 .knowledge-card-copy > p { font-size: 16px; }
 .knowledge-card-copy > div,.knowledge-card-copy footer { flex-direction: column; align-items: flex-start; gap: 8px; }
 .knowledge-card-copy h2 { font-size: 23px; }
 .knowledge-page .knowledge-map { padding: 42px 16px; }
 .knowledge-page .knowledge-map .real-map { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .nav-new { animation: none; } }
/* Override the fixed desktop canvas only on the fluid knowledge page. */
.knowledge-page .knowledge-hero-canvas .hero { width: 100% !important; height: 690px !important; z-index: auto !important; }
.knowledge-page .hero-photo,.knowledge-page .hero-shade { inset: 0 !important; width: 100% !important; height: 100% !important; }
.knowledge-page .hero-shade { background: linear-gradient(#000 0%,rgba(0,0,0,.7) 40%,rgba(0,0,0,.25) 68%,#fff 100%) !important; }
.knowledge-page .white-curve { display: none !important; }
.knowledge-page .top-nav { z-index: 20 !important; overflow: visible !important; }
.top-nav { overflow: visible; }
.knowledge-page .knowledge-content { pointer-events: none; }
.knowledge-page .knowledge-content > * { pointer-events: auto; }
@media (max-width: 900px) { .knowledge-page .knowledge-hero-canvas .hero { height: 620px !important; } }
.knowledge-page .hero-actions { display: none !important; }
@media (min-width: 901px) { .knowledge-page .brand-lockup { display: none !important; } }
@media (max-width: 900px) {
 .services-page .service-art-card:has(.walnut-card) { grid-column: 1 / -1 !important; width: min(100%,420px) !important; height: 414px !important; aspect-ratio: auto !important; }
 .walnut-card > strong { font-size: 28px; }
}
.walnut-card::before,.knowledge-card-copy::before { background: url('/assets/card-chevrons.svg') center/100% 100% no-repeat; }
.knowledge-page .knowledge-hero-canvas .hero.hero-sub > .white-curve { display: none !important; width: 100% !important; }
/* The map follows content flow instead of the shared fixed-height canvas. */
.knowledge-page .map-section.knowledge-map { height: auto !important; min-height: 0 !important; overflow: visible !important; padding: 64px 24px !important; }
.knowledge-page .map-section.knowledge-map .map-bg { inset: 0 !important; width: 100% !important; height: 100% !important; background: linear-gradient(#fffffff0,#ffffffcf),url('/assets/map-bg-wide.webp') center/cover !important; }
.knowledge-page .map-section.knowledge-map h2,.knowledge-page .map-section.knowledge-map p { position: relative !important; inset: auto !important; width: 100% !important; max-width: 1100px; transform: none !important; margin: 0 auto 24px !important; }
.knowledge-page .map-section.knowledge-map .real-map { position: relative !important; inset: auto !important; width: 100% !important; max-width: 1440px; height: 380px !important; transform: none !important; margin: 32px auto 0 !important; }
@media (max-width: 560px) {
 .knowledge-page .map-section.knowledge-map { padding: 42px 16px !important; }
 .knowledge-page .map-section.knowledge-map .real-map { height: 300px !important; }
 .knowledge-page .top-nav:not(.is-open) { visibility: hidden !important; opacity: 0 !important; }
}
@media (max-width: 900px) {
 .knowledge-page .knowledge-hero-shell:has(.top-nav.is-open) { z-index: 30; }
 .knowledge-page .knowledge-hero-shell:has(.top-nav.is-open) .hero { z-index: 30 !important; }
}
