/* Content adaptations for the supplied catalogue; retain the existing theme and mobile layout. */
.yc-category-card { display:flex; flex-direction:column; }
.yc-category-copy { display:flex; flex:1; flex-direction:column; }
.yc-category-copy .yc-model-link { margin-top:auto; }
.yc-application-card>img { width:100%; height:230px; object-fit:contain; padding:20px; background:#f3f6f8; }
.yc-model-link>span,.product-copy h3 { overflow-wrap:anywhere; }
.catalogue-grid .product-card { display:flex; flex-direction:column; }
.catalogue-grid .product-copy { display:flex; flex:1; flex-direction:column; }
.catalogue-grid .product-copy .model { margin-top:auto; padding-top:12px; }
.rich-text table { max-width:100%; }
.rich-text td,.rich-text th { overflow-wrap:anywhere; vertical-align:top; }
.rich-text td a { text-decoration:underline; text-underline-offset:3px; }
/* Align the four applications as two equal columns; keep small screens in one column. */
.page-case .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:40px; }
:is(.page-case,.page-news) .article-grid>.article-card { min-width:0; }
:is(.page-case,.page-news) .article-card>h2 { overflow-wrap:anywhere; }
@media(min-width:641px) and (max-width:960px) {
 .page-news .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
/* Share natural content rows, so wrapped titles never shift neighbouring summaries.
   Older browsers keep the existing flexible card layout. */
@supports(grid-template-rows:subgrid) {
 @media(min-width:641px) {
  :is(.page-case,.page-news) .article-grid { row-gap:0; }
  :is(.page-case,.page-news) .article-grid>.article-card { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; padding:24px 0 26px; margin-bottom:24px; align-items:start; }
  :is(.page-case,.page-news) .article-card>.meta { margin-bottom:16px; }
  :is(.page-case,.page-news) .article-card>h2 { margin:0 0 18px; }
  :is(.page-case,.page-news) .article-card>p { margin:0 0 18px; }
  :is(.page-case,.page-news) .article-card>.text-link { margin-top:0; }
  .catalogue-grid { row-gap:0; }
  .catalogue-grid .product-card { display:grid; grid-row:span 5; grid-template-rows:subgrid; row-gap:0; margin-bottom:28px; }
  .catalogue-grid .product-copy { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; }
  .catalogue-grid .product-copy .model { margin-top:0; }
  .yc-category-grid { row-gap:0; }
  .yc-category-grid .yc-category-card { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; margin-bottom:26px; }
  .yc-category-grid .yc-category-copy { display:grid; grid-row:span 3; grid-template-rows:subgrid; row-gap:0; }
  .yc-category-grid .yc-category-copy>p { min-height:0; }
  .yc-category-grid .yc-model-link { margin-top:0; }
  .yc-application-grid { row-gap:0; }
  .yc-application-grid .yc-application-card { display:grid; grid-row:span 4; grid-template-rows:subgrid; row-gap:0; }
  .yc-application-grid .yc-application-copy { display:grid; grid-row:span 3; grid-template-rows:subgrid; row-gap:0; }
  .yc-application-grid .yc-application-copy>p { min-height:0; }
 }
}
@media(max-width:640px) {
 .page-case .article-grid { grid-template-columns:minmax(0,1fr); }
 .yc-application-card>img { height:210px; padding:20px; }
 .rich-text table { display:block; width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
 .rich-text table th,.rich-text table td { min-width:100px; }
 .rich-text table tr>*:first-child { min-width:108px; }
 .rich-text p { overflow-wrap:anywhere; }
}

/* Separate application entries into calm, readable cards. */
.page-case .article-grid { align-items:stretch; row-gap:24px; }
.page-case .article-grid>.article-card {
 border:1px solid #d9e5ec;
 border-top:3px solid #9fc4d7;
 background:#fff;
 padding:26px 28px 28px;
 margin:0;
 min-height:250px;
 box-shadow:0 8px 22px rgba(27,76,103,.06);
 transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.page-case .article-grid>.article-card:hover { border-color:#6eabc7; box-shadow:0 12px 28px rgba(27,76,103,.11); transform:translateY(-2px); }
.page-case .article-grid>.article-card>.meta { color:#668397; letter-spacing:.35px; margin-bottom:13px; }
.page-case .article-grid>.article-card>h2 { color:#173f59; font-size:23px; line-height:1.45; margin:0 0 18px; }
.page-case .article-grid>.article-card>p { color:#587183; font-size:13px; line-height:1.9; margin:0 0 22px; }
.page-case .article-grid>.article-card>.text-link { margin-top:auto; color:#0b6392; font-size:13px; }
@media(max-width:640px) {
 .page-case .article-grid { row-gap:16px; }
 .page-case .article-grid>.article-card { min-height:0; padding:21px 19px 22px; }
 .page-case .article-grid>.article-card>h2 { font-size:21px; margin-bottom:13px; }
 .page-case .article-grid>.article-card>p { font-size:12px; line-height:1.85; margin-bottom:17px; }
}
