/* Kitchen pilot only. Other departments retain their existing presentation. */
.tm-kitchen-nav,.tm-kitchen-entry{min-width:0;color:#20352b}
.tm-kitchen-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tm-kitchen-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:0;border:1px solid #d5dfd9;border-radius:10px;overflow:hidden;background:#f6f8f7;color:#213c2f;text-decoration:none!important;min-width:0}
.tm-kitchen-card>img{grid-column:1/-1;width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;background:#f4f5f4;margin:0}
.tm-kitchen-card:nth-child(3)>img{object-fit:contain;background:#fff}
.tm-kitchen-card>span{padding:15px 0 16px 15px;min-width:0}
.tm-kitchen-card strong{display:block;font-size:20px;line-height:1.3;letter-spacing:-.02em;font-weight:750}
.tm-kitchen-card small{display:block;margin-top:5px;font-size:13px;line-height:1.5;color:#617369}
.tm-kitchen-card>b{padding:16px 14px 12px 8px;align-self:start;font-size:23px;font-weight:500;color:#346749}
.tm-kitchen-card:hover{border-color:#2b6349;box-shadow:0 3px 10px #204c3b12;background:#eef5f0}
.tm-kitchen-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.tm-kitchen-secondary>a{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 12px;border:1px solid #d8e2dc;border-radius:7px;font-size:14px;line-height:1.4;font-weight:600;min-height:52px;background:#fff}
.tm-kitchen-crumbs{display:flex;align-items:center;gap:10px;margin:0 0 20px;font-size:13px;line-height:1.5;flex-wrap:wrap}
.tm-kitchen-crumbs button{font:inherit;font-weight:650;min-height:44px;border:1px solid #cad9cf;background:#f2f7f3;border-radius:6px;padding:9px 13px;color:#285d43;cursor:pointer}
.tm-kitchen-crumbs>span{color:#9aac9f}
.tm-kitchen-crumbs>strong{font-weight:550}
.tm-kitchen-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;list-style:none!important;padding:0!important;margin:0!important}
.tm-kitchen-links>li{margin:0!important;min-width:0}
.tm-kitchen-links a{display:flex;gap:14px;justify-content:space-between;align-items:center;min-height:49px;border-bottom:1px solid #e4ebe6;padding:12px 6px;font-size:16px;line-height:1.4;border-radius:4px}
.tm-kitchen-links a:hover{background:#edf5ef;text-decoration:none!important}
.tm-kitchen-links a>span{flex:none;color:#83958a;font-size:17px}
.tm-kitchen-all{display:inline-flex;align-items:center;min-height:44px;gap:12px;margin-top:15px;font-size:14px;font-weight:650}
.tm-kitchen-boards{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:20px;padding:15px 18px;border-radius:8px;background:#ffe47e;border:1px solid #e9cb59;color:#253629!important;text-decoration:none!important}
.tm-kitchen-boards>img{width:64px;height:57px;object-fit:cover;border-radius:5px;margin:0}
.tm-kitchen-boards strong{display:block;font-size:20px;line-height:1.3;font-weight:750;letter-spacing:-.02em}
.tm-kitchen-boards small{display:block;font-size:13px;margin-top:4px;line-height:1.4}
.tm-kitchen-boards>b{font-size:25px;font-weight:500}
.tm-kitchen-boards:hover{background:#ffdb5c}
.tm-kitchen-entry{margin:0 0 24px}
.tm-kitchen-entry>strong{display:block;font-size:18px;font-weight:700;margin-bottom:13px}
.tm-kitchen-entry .tm-kitchen-card>img{aspect-ratio:2/1;max-height:200px}
.tm-kitchen-entry .tm-kitchen-card strong{font-size:24px}
.tm-kitchen-entry .tm-kitchen-card small{font-size:15px}
.tm-kitchen-entry .tm-kitchen-boards{margin-top:14px;padding-block:12px}
@media(min-width:601px){.tm-kitchen-nav .tm-kitchen-card>img{aspect-ratio:16/9;object-fit:contain}}
@media(max-width:1200px) and (min-width:1051px){.tm-kitchen-cards{gap:10px}.tm-kitchen-card strong{font-size:17px}.tm-kitchen-card>span{padding-left:11px}.tm-kitchen-secondary>a{font-size:13px}}

@media(max-width:600px){
 .tm-kitchen-cards{grid-template-columns:1fr;gap:10px}
 .tm-kitchen-card{grid-template-columns:90px minmax(0,1fr) auto;align-items:center;align-content:stretch}
 .tm-kitchen-card>img,.tm-kitchen-entry .tm-kitchen-card>img{grid-column:1;aspect-ratio:auto;width:90px;height:90px;object-fit:cover;max-height:none}
 .tm-kitchen-card:nth-child(3)>img{object-fit:contain}
 .tm-kitchen-card>span{padding:12px}
 .tm-kitchen-card strong,.tm-kitchen-entry .tm-kitchen-card strong{font-size:19px}
 .tm-kitchen-card small,.tm-kitchen-entry .tm-kitchen-card small{font-size:12px;margin-top:3px}
 .tm-kitchen-card>b{align-self:center;padding:8px 12px 8px 0;font-size:20px}
 .tm-kitchen-secondary{grid-template-columns:1fr;gap:0;border:1px solid #dde5df;border-radius:7px;overflow:hidden}
 .tm-kitchen-secondary>a{border:0;border-radius:0;border-bottom:1px solid #e5eae6;font-size:14px;min-height:46px;padding:11px 12px}
 .tm-kitchen-secondary>a:last-child{border-bottom:0}
 .tm-kitchen-crumbs{gap:8px;margin-bottom:14px;font-size:12px}
 .tm-kitchen-crumbs button{padding:8px 10px}
 .tm-kitchen-boards{grid-template-columns:47px minmax(0,1fr) auto;gap:10px;padding:13px 12px;margin-top:16px}
 .tm-kitchen-boards>img{width:47px;height:51px}
 .tm-kitchen-boards strong{font-size:17px}
 .tm-kitchen-boards small{font-size:12px}
 .tm-kitchen-links{gap:8px;grid-template-columns:1fr}
 .tm-kitchen-links a{font-size:14px;padding-block:12px;min-height:50px}
 .tm-kitchen-links a>span{font-size:13px}
}


/* The menu routes to category pages; model filters live beside the catalogue. */
.tm-kitchen-links a{min-height:48px;border:1px solid #cbd8d0;border-radius:7px;background:#fff;padding:12px 15px}
.tm-kitchen-links a:hover{border-color:#58816b;background:#eef4f0}
.tm-kitchen-all{margin:0 0 16px}

/* Cabinet type and height are parallel routes, read top-to-bottom. */
.tm-cabinet-menu-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.tm-cabinet-menu-columns .tm-kitchen-links{grid-template-columns:1fr}
.tm-cabinet-menu-columns h3{font-size:17px;line-height:1.4;margin:0 0 12px;color:#20352b}
@media(max-width:600px){.tm-cabinet-menu-columns{grid-template-columns:1fr;gap:24px}}

/* Drawer selection starts with function; models are archive filters. */
.tm-drawer-menu-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px;align-items:start;margin-bottom:18px}
.tm-drawer-menu-layout .tm-kitchen-links{grid-template-columns:1fr;margin:0}
.tm-drawer-menu-image{margin:0;border:1px solid #d7e2dc;border-radius:10px;overflow:hidden;background:#f4f7f5}
.tm-drawer-menu-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.tm-drawer-menu-image figcaption{padding:12px 16px;color:#214b38;font-size:17px;font-weight:700}
.tm-drawer-menu-image small{display:block;font-size:12px;font-weight:400;margin-top:4px;color:#617269}
@media(max-width:600px){.tm-drawer-menu-layout{grid-template-columns:1fr;gap:14px}.tm-drawer-menu-image img{max-height:170px}.tm-drawer-menu-image figcaption{font-size:15px;padding:10px 12px}}

/* Finnish origin cue belongs to the kitchen overview, not its subviews. */
.tm-mega [data-department-panel="keittio"]:has([data-kitchen-view="home"]:not([hidden])) > header h2::after{content:"";display:inline-block;width:29px;height:18px;margin-left:12px;vertical-align:1px;border:1px solid #d5dedb;border-radius:2px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2011%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h18v11H0z%22%2F%3E%3Cpath%20fill%3D%22%23003580%22%20d%3D%22M5%200h3v11H5zM0%204h18v3H0z%22%2F%3E%3C%2Fsvg%3E") center/cover no-repeat}

/* Approved kitchen scene images fill only the two cabinet overview cards. */
.tm-kitchen-nav .tm-kitchen-card:is([data-kitchen-open="base-cabinets"],[data-kitchen-open="wall-cabinets"])>img{object-fit:cover;object-position:center}

/* Kitchen overview: four illustrated families, then drawers and quiet text routes. */
#tm-menu-keittio [data-kitchen-view="home"]>.tm-kitchen-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card>img{height:110px;width:100%;aspect-ratio:auto;object-fit:cover}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card[data-kitchen-open="tall-cabinets"]>img{object-fit:contain;background:#f0f2ef}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card[data-kitchen-open="doors"]>img{object-fit:contain}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card>span{padding:10px 0 11px 12px}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card strong{font-size:17px;line-height:1.25}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card small{font-size:12px;line-height:1.4;margin-top:4px}
#tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card>b{padding:10px 10px 10px 6px;font-size:21px;line-height:1;align-self:center}
#tm-menu-keittio .tm-kitchen-overview-more{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px;align-items:start}
#tm-menu-keittio .tm-kitchen-overview-more>.tm-kitchen-secondary{grid-column:span 3;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#tm-menu-keittio .tm-kitchen-secondary>a{min-height:48px;padding:11px 12px}
@media(min-width:601px) and (max-width:850px){
 #tm-menu-keittio [data-kitchen-view="home"]>.tm-kitchen-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 #tm-menu-keittio .tm-kitchen-overview-more{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #tm-menu-keittio .tm-kitchen-overview-more>.tm-kitchen-secondary{grid-column:auto;grid-template-columns:1fr}
}
@media(max-width:600px){
 #tm-menu-keittio [data-kitchen-view="home"]>.tm-kitchen-cards{grid-template-columns:1fr;gap:9px}
 #tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card{grid-template-columns:76px minmax(0,1fr) auto}
 #tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card>img{width:76px;height:76px}
 #tm-menu-keittio [data-kitchen-view="home"] .tm-kitchen-card>span{padding:10px}
 #tm-menu-keittio .tm-kitchen-overview-more{grid-template-columns:1fr}
 #tm-menu-keittio .tm-kitchen-overview-more>.tm-kitchen-secondary{grid-column:auto;grid-template-columns:1fr;gap:0}
}

/* Two made-to-measure services, joined by the familiar measuring mascot. */
.tm-kitchen-custom-pair{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(0,1.15fr);gap:0;margin-top:20px;border:1px solid #d7dfd7;border-radius:10px;background:#f5f7f3;color:#203b2e;overflow:visible}
.tm-kitchen-custom-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center;min-width:0;padding:16px;color:#203b2e;text-decoration:none!important;border-radius:10px}
.tm-kitchen-custom-card>img{width:76px;height:88px;object-fit:contain;margin:0;border-radius:6px}
.tm-kitchen-custom-card>span{min-width:0}
.tm-kitchen-custom-card strong{display:block;font-size:18px;line-height:1.2;letter-spacing:-.025em;font-weight:700}
.tm-kitchen-custom-card small{display:block;margin-top:7px;font-size:12px;line-height:1.45;color:#5d6d62}
.tm-kitchen-custom-card b{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;font-size:13px;line-height:1.35;font-weight:650;color:#235b40}
.tm-kitchen-custom-card b>span{flex:none;font-size:21px;line-height:1}
.tm-kitchen-custom-card:hover{background:#e9f0e9}
.tm-kitchen-custom-card:focus-visible{outline:3px solid #197eae;outline-offset:3px}
.tm-kitchen-custom-message{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:14px 12px;background:#ffe47e}
.tm-kitchen-custom-message>img{flex:none;width:70px;height:128px;object-fit:contain;align-self:end;margin:-23px 0 -14px}
.tm-kitchen-custom-message p{font-size:15px;line-height:1.35;margin:0;max-width:145px;color:#203b2e}
.tm-kitchen-custom-message strong{display:block;font-weight:700;margin-top:3px}
@media(min-width:761px) and (max-width:1200px){
 .tm-kitchen-custom-card{grid-template-columns:60px minmax(0,1fr);gap:10px;padding:13px}
 .tm-kitchen-custom-card>img{width:60px;height:78px}
 .tm-kitchen-custom-card strong{font-size:16px}
 .tm-kitchen-custom-message>img{width:59px;height:112px}
 .tm-kitchen-custom-message p{font-size:14px}
}
@media(max-width:760px){
 .tm-kitchen-custom-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 .tm-kitchen-custom-message{grid-column:1/-1;grid-row:1;justify-content:center;padding:12px 18px;border-radius:10px 10px 0 0}
 .tm-kitchen-custom-message>img{width:58px;height:96px;margin:-18px 0 -12px}
 .tm-kitchen-custom-message p{max-width:240px}
 .tm-kitchen-custom-card{grid-template-columns:1fr;align-content:start;gap:9px;padding:14px}
 .tm-kitchen-custom-card>img{width:100%;height:72px}
 .tm-kitchen-custom-card strong{font-size:17px}
}
@media(max-width:420px){
 .tm-kitchen-custom-pair{grid-template-columns:1fr}
 .tm-kitchen-custom-card{grid-template-columns:64px minmax(0,1fr);gap:12px}
 .tm-kitchen-custom-card>img{width:64px;height:80px}
 .tm-kitchen-custom-card:last-child{border-top:1px solid #d7dfd7}
}

/* Approved before/after illustration remains complete and readable. */
.tm-kitchen-custom-pair--comparison{grid-template-columns:minmax(0,1.05fr) minmax(0,1.2fr) minmax(0,1.05fr);overflow:hidden}
.tm-kitchen-custom-message--comparison{padding:0;overflow:hidden;background:#fff9ed}
.tm-kitchen-custom-message--comparison>img{display:block;align-self:center;flex:0 1 auto;width:100%;height:auto;max-width:480px;margin:0;object-fit:contain}
@media(max-width:760px){
 .tm-kitchen-custom-pair--comparison{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tm-kitchen-custom-message--comparison{padding:0;border-radius:0}
 .tm-kitchen-custom-message--comparison>img{width:100%;height:auto;margin:0}
}
@media(max-width:420px){.tm-kitchen-custom-pair--comparison{grid-template-columns:1fr}}

/* Service cards follow the category image-above-text layout. */
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;border-radius:0;overflow:hidden}
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card>img{display:block;flex:none;width:100%;height:110px;object-fit:cover;object-position:center top;border-radius:0;margin:0;background:#eef1ed}
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card>span{display:flex;flex:1;flex-direction:column;padding:14px 16px}
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card b{margin-top:auto;padding-top:12px}
@media(max-width:760px){.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card>img{height:100px}}

/* Compact kitchen introduction leaves more room for the product groups. */
.tm-mega [data-department-panel="keittio"]>.tm-mega-back{padding:4px 0 6px;min-height:34px}
.tm-mega .tm-mega-sections [data-department-panel="keittio"]>header{margin-bottom:10px;padding-bottom:10px}
.tm-mega .tm-mega-sections [data-department-panel="keittio"]>header h2{font-size:20px;line-height:1.25;margin:0 0 5px}
.tm-mega .tm-mega-sections [data-department-panel="keittio"]>header p{line-height:1.4}

/* Separate the three service cards so each offer remains distinct. */
.tm-kitchen-custom-pair--comparison{gap:16px;border:0;border-radius:0;background:transparent;overflow:visible}
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card,.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-message{border:1px solid #d7dfd7;border-radius:10px;overflow:hidden}
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card{background:#f5f7f3}
.tm-kitchen-custom-pair--comparison>.tm-kitchen-custom-card:hover{background:#e9f0e9}
@media(max-width:760px){.tm-kitchen-custom-pair--comparison{gap:12px}}
