/* Product previews are square; photographic proof, document and detail components retain their own contracts. */
.medal-image-crop[data-frame-kind="product"]{aspect-ratio:1;background:transparent}
.sample:has(>.medal-image-crop[data-frame-kind="product"]) .sample-copy{border-top:0}
.template-home #cases .section-head{margin-bottom:24px}
/* Form content stays in normal document flow; page scrolling reveals every field and action. */
.quote-shell{block-size:auto;height:auto;max-block-size:none;max-height:none;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto;scroll-padding-block:0}
.quote-shell :is(input,select,textarea,button,[tabindex]){scroll-margin-block:12px}
@media(max-width:760px){
 .frame{width:calc(100% - 36px)}
 .section{padding-block:48px}
 .card-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .sample:not(.real-case-card) .sample-copy{position:relative;padding:12px;min-height:0}
 .sample:not(.real-case-card) .sample-copy>p{margin:0 0 6px;line-height:1.35}
 .sample:not(.real-case-card) .sample-copy>h3{margin:0 0 4px;font-size:16px;line-height:1.25}
 .sample:not(.real-case-card) .sample-copy>a,.sample:not(.real-case-card) .medal-actions a{min-height:44px}
 .template-catalog .sample-copy>a,.template-catalog .medal-actions{padding-right:28px}
 .template-catalog .sample-copy::after{right:10px;bottom:10px;width:13px;height:21px}
 .footer-row>nav a,.footer-row>a:not(.brand){display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:359px){
 .card-grid{grid-template-columns:minmax(0,1fr)}
 .masthead .compact{font-size:.8125rem;white-space:nowrap}
}

.masthead .header-cta-short{display:none}
@media(max-width:359px){
 .masthead .header-row{flex-wrap:nowrap;gap:0 6px;padding-block:4px}
 .masthead .brand{flex:0 0 auto;max-inline-size:100px;min-height:44px}
 .masthead .mobile-menu{flex:0 0 54px}
 .masthead .mobile-menu summary{width:54px;min-height:44px;padding-inline:4px;gap:4px;justify-content:center;white-space:nowrap}
 .masthead .compact{flex:0 1 auto;min-width:0;max-inline-size:94px;min-height:44px;margin-left:auto}
 .masthead .header-cta-full,.masthead .header-cta-arrow{display:none}
 .masthead .header-cta-short{display:inline}
}

/* Keep the autumn case stamp in free footer space instead of behind introductory copy. */
.template-home #cases{background-position:right 18px bottom 12px;background-size:88px auto}
