/* Each project is one native synced pattern, shared by portfolio and service pages. */
.ctb-work-page { font-family: Arial,sans-serif; }
.ctb-work-hero.wp-block-cover { padding: 48px clamp(20px,4vw,48px); margin: 0; min-height: 230px; }
.ctb-work-hero .wp-block-cover__inner-container { max-width: 1080px; margin-inline: auto; padding-inline: 0; }
.ctb-work-hero .ctb-eyebrow { margin: 0 0 12px; }
.ctb-work-hero h1 { font-size: clamp(32px,4vw,44px); margin: 0; letter-spacing: -.02em; }
.ctb-work-page .ctb-section { padding-block: 44px; background: #fff; }
.ctb-work-page .ctb-work-projects { background: var(--wp--preset--color--muted,#f4f5fb); }
.ctb-work-page .ctb-section > * { max-width: 1080px; margin-inline: auto; }
.ctb-work-page .ctb-section > h2 { font-size: 30px; margin-block: 0 24px; }
.ctb-project-grid { gap: 24px; align-items: stretch; }
.ctb-project-card.wp-block-group { padding: 24px; border: 1px solid #dce4eb; border-radius: 8px; background: var(--wp--preset--color--paper,#fff); color: var(--wp--preset--color--charcoal,#35444e); height: auto; min-width: 0; box-shadow: 0 4px 16px #142e3c08; }
/* A single preview fills its column; stacked portfolio cards retain their natural height. */
.ctb-row > .wp-block-column > .ctb-project-card:only-child { height: 100%; }
.ctb-project-card > * { margin-block-start: 16px; }
.ctb-project-card > :first-child { margin-block-start: 0; }
.ctb-project-card .ctb-project-image { margin: 0 0 20px; padding: 8px; background: #fff; border-bottom: 1px solid #edf0f4; }
.ctb-project-card .ctb-project-image img { display: block; width: 100%; height: 180px; max-height: 180px; object-fit: contain; }
.ctb-project-card .ctb-project-category { color: var(--wp--preset--color--blue,#245a73); font: 700 12px/1.5 Arial,sans-serif; letter-spacing: .04em; margin-bottom: 8px; }
.ctb-project-card .ctb-project-title { color: var(--wp--preset--color--ink,#142e3c); font: 700 25px/1.22 Arial,sans-serif; letter-spacing: -.015em; text-wrap: initial; margin-top: 0; }
.ctb-project-card :where(p,li) { font-size: 16px; line-height: 1.6; }
.ctb-project-card ul { padding-left: 20px; }
.ctb-project-card li + li { margin-top: 6px; }
.ctb-project-card .ctb-project-details { border-top: 1px solid #dde4ed; border-bottom: 0; padding: 14px 0 0; }
.ctb-project-card .ctb-project-details summary { font-size: 16px; color: var(--wp--preset--color--blue,#245a73); font-weight: 700; }
.ctb-project-card .ctb-project-details > *:not(summary) { margin-top: 14px; }
.ctb-project-card .ctb-project-link { font-weight: 700; }
.ctb-project-card a { color: var(--wp--preset--color--blue,#245a73); }
.ctb-project-monogram { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--wp--preset--color--muted,#f4f5fb); color: var(--wp--preset--color--blue,#245a73); font-weight: 700; }
.ctb-work-reviews {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 16px;
 margin-top: 32px;
 padding-top: 24px;
 border-top: 1px solid #dde4ed;
 text-align: center;
}
.ctb-work-reviews .wp-block-buttons { justify-content: center; }
.ctb-work-reviews .wp-block-image { margin: 0; padding: 8px; background: #fff; }
.ctb-work-reviews .wp-block-image img {
 display: block;
 width: 132px;
 max-height: none;
 height: auto;
 margin-inline: auto;
}
@media (max-width: 781px) {
 .ctb-work-page .ctb-section { padding-block: 32px; }
 .ctb-project-grid.wp-block-group { grid-template-columns: minmax(0,1fr); }
 .ctb-project-card.wp-block-group { padding: 20px; }
 .ctb-project-card .ctb-project-title { font-size: 23px; }
 .ctb-work-hero.wp-block-cover { min-height: 200px; padding-block: 36px; }
}
