/* Native editorial content, composed with the approved POC components. */
.terpo-editorial-page .terpo-section-copy { min-width:0; font-size:17px; line-height:1.75; }
.terpo-editorial-page .terpo-section-copy p { margin:0 0 22px; }
.terpo-editorial-page .terpo-section-copy p:last-child { margin-bottom:0; }
.terpo-editorial-page .terpo-section-copy :is(h2,h3) { margin-bottom:26px; }
.terpo-editorial-page :is(h1,h2,h3) strong { font-weight:inherit; }
.terpo-editorial-page :is(h1,h2,h3) { overflow-wrap:break-word; }
.terpo-editorial-page .collection-hero__copy > p:not(.eyebrow) { color:var(--muted); font-size:17px; }
.terpo-editorial-page .collection-hero__copy h1 { text-wrap:balance; }
.terpo-editorial-page .terpo-hero-media figure { margin:0; }
.terpo-editorial-page .terpo-hero-media img { aspect-ratio:4/3; object-fit:cover; border-radius:15px; box-shadow:0 20px 48px rgba(18,15,10,.1); }
.terpo-editorial-page .terpo-section-heading { align-items:start; }
.terpo-editorial-page .terpo-section-heading > .terpo-section-copy { color:var(--muted); }
.terpo-editorial-page .terpo-content-section--split:nth-child(odd) { background:var(--cream); }
.terpo-editorial-page .terpo-story-grid { align-items:center; }
.terpo-editorial-page .terpo-story-media figure { margin:0; }
.terpo-editorial-page .terpo-story-media img { aspect-ratio:1; object-fit:cover; border-radius:4px; }
.terpo-editorial-page .terpo-story-grid .terpo-section-copy p { color:var(--muted); }
.terpo-editorial-page .terpo-section-copy a:not(.wp-block-button__link),
.terpo-editorial-page .terpo-section-notes a { text-decoration:underline; text-underline-offset:4px; }
.terpo-editorial-page .terpo-section-copy :is(ul,ol) { padding-left:1.3em; }
.terpo-editorial-page .terpo-section-copy li + li { margin-top:12px; }
/* The same ruled process cards used on the homepage, sized for real article copy. */
.terpo-editorial-page .terpo-feature-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:36px 0 0; }
.terpo-editorial-page .terpo-feature-grid li { padding:32px; min-height:0; border-bottom:1px solid var(--line); }
.terpo-editorial-page .terpo-feature-grid li:nth-child(3n) { border-right:0; }
.terpo-editorial-page .terpo-feature-grid li > span { right:28px; }
.terpo-editorial-page .terpo-feature-copy { padding-top:36px; }
.terpo-editorial-page .terpo-feature-copy h3 { font-size:27px; margin:0 0 18px; line-height:1.18; }
.terpo-editorial-page .terpo-feature-copy p { margin:0 0 14px; color:var(--muted); font-size:16px; line-height:1.65; }
.terpo-editorial-page .terpo-feature-copy p:last-child { margin-bottom:0; }
/* Reuse the homepage material-card component for related woods and price families. */
.terpo-editorial-page .terpo-materials-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.terpo-editorial-page .home-alt-materials .terpo-section-heading > .terpo-section-copy { color:rgba(255,255,255,.7); }
.terpo-editorial-page .home-alt-material-card { min-height:0; }
.terpo-editorial-page .home-alt-material-card > figure { margin:0; width:100%; }
.terpo-editorial-page .home-alt-material-card > figure img { aspect-ratio:4/3; height:auto; object-fit:cover; }
.terpo-editorial-page .terpo-material-copy { padding:24px; }
.terpo-editorial-page .terpo-material-copy h3 { font-size:27px; line-height:1.2; margin:0 0 14px; }
.terpo-editorial-page .terpo-material-copy p { font-size:15px; line-height:1.65; margin:0 0 14px; color:rgba(255,255,255,.7); }
.terpo-editorial-page .terpo-material-copy p:last-child { margin-bottom:0; }
.terpo-editorial-page .terpo-material-copy a { text-decoration:none; }
.terpo-editorial-page .terpo-material-copy a:hover { color:var(--gold); text-decoration:none; }
.terpo-editorial-page .terpo-content-section--pricing .home-alt-material-card { background:var(--paper); border-color:var(--line); }
.terpo-editorial-page .terpo-content-section--pricing .terpo-material-copy p { color:var(--muted); }
/* Keep native WordPress image enlargement; reuse the HP realization carousel. */
.terpo-editorial-page .terpo-editorial-carousel { margin-top:36px; }
.terpo-editorial-page .wp-block-gallery.home-alt-carousel__track { display:flex; flex-wrap:nowrap; gap:14px; margin:0; }
.terpo-editorial-page .wp-block-gallery .home-alt-realization { width:calc((100% - 28px)/3)!important; flex:0 0 calc((100% - 28px)/3)!important; height:360px; margin:0!important; }
.terpo-editorial-page .wp-block-gallery .home-alt-realization img { height:100%!important; object-fit:cover; }
.terpo-editorial-page .home-alt-realization::after { display:none; }
.terpo-editorial-page .lightbox-trigger { z-index:2; }
.terpo-editorial-page .terpo-section-notes { margin-top:36px; font-size:17px; }
.terpo-editorial-page .terpo-section-notes p { margin:0 0 20px; }
.terpo-editorial-page .terpo-section-notes h3 { font-size:32px; }
.terpo-editorial-page .wp-block-button__link { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:14px 28px; border-radius:999px; background:var(--gold); color:var(--ink); font-size:14px; font-weight:700; text-decoration:none; border:1px solid var(--gold); }
.terpo-editorial-page .wp-block-button__link:hover { background:var(--paper); border-color:var(--paper); }
.terpo-editorial-page .collection-cta__inner > .terpo-section-copy { flex:1; }
.terpo-editorial-page .terpo-section-actions { flex:0 0 260px; }
.terpo-editorial-page .wp-block-buttons { margin-top:28px; }
.terpo-editorial-page .collection-cta .wp-block-buttons { margin:0; }
.terpo-editorial-page .terpo-related { background:var(--cream); }
.terpo-editorial-page .terpo-related .home-alt-heading { margin:0; }
/* Safe full-width fallback for pages with a manually rebuilt block structure. */
.terpo-editorial .terpo-prose { max-width:none; }
.terpo-editorial .terpo-legacy-section { margin-bottom:64px; }
@media(max-width:1000px){
 .terpo-editorial-page .terpo-materials-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .terpo-editorial-page .terpo-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .terpo-editorial-page .terpo-feature-grid li:nth-child(3n) { border-right:1px solid var(--line); }
 .terpo-editorial-page .terpo-feature-grid li:nth-child(2n) { border-right:0; }
}
@media(max-width:700px){
 .terpo-editorial-page .terpo-feature-grid,.terpo-editorial-page .terpo-materials-grid { grid-template-columns:1fr; }
 .terpo-editorial-page .terpo-feature-grid li { border-right:0!important; padding:26px 20px; }
 .terpo-editorial-page .collection-cta__inner { flex-direction:column; align-items:start; gap:28px; }
 .terpo-editorial-page .terpo-section-actions { flex:auto; }
 .terpo-editorial-page .wp-block-gallery .home-alt-realization { width:86%!important; flex-basis:86%!important; height:320px; }
 .terpo-editorial-page .terpo-section-copy { font-size:16px; }
}
/* Equal-height collection artwork: never crop the baked-in frame to fit longer copy. */
.collection-grid .collection-card__media { flex:1 1 auto; }
#kolekce-terasy-wpc-plne .collection-card__overlay-link { padding-top:10px; }
.terpo-editorial-page .terpo-materials-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.terpo-editorial-page .terpo-materials-grid .lightbox-trigger svg { position:static; width:12px; fill:none; stroke:none; }
@media(max-width:1000px){.terpo-editorial-page .terpo-materials-grid--3 { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:700px){.terpo-editorial-page .terpo-materials-grid--3 { grid-template-columns:1fr; }}

/* 1.4: one accessible link covers the material card, with no nested links. */
.terpo-editorial-page .home-alt-material-card { position:relative; }
.terpo-editorial-page .terpo-card-link::after { content:""; position:absolute; inset:0; z-index:1; }
.terpo-editorial-page .home-alt-material-card:has(.terpo-card-link):focus-within { outline:2px solid var(--gold); outline-offset:4px; }
.terpo-editorial-page .terpo-material-copy a:not(.terpo-card-link) { position:relative; z-index:2; }
/* Choose whole rows for the actual number of steps (4 = 2x2, 6 = 3x2). */
.terpo-editorial-page .terpo-feature-grid--1 { grid-template-columns:1fr; }
.terpo-editorial-page .terpo-feature-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.terpo-editorial-page .terpo-feature-grid li { border-right:0; }
.terpo-editorial-page .terpo-feature-grid--2 li:nth-child(odd),
.terpo-editorial-page .terpo-feature-grid--3 li:not(:nth-child(3n)) { border-right:1px solid var(--line); }
@media(min-width:1001px){
 .terpo-editorial-page .terpo-section-heading > div:first-child { position:sticky; top:calc(var(--header-h) + 30px); align-self:start; }
}
.terpo-editorial-page .terpo-content-section.terpo-tone--paper { background:var(--paper); color:var(--ink); }
.terpo-editorial-page .terpo-content-section.terpo-tone--cream { background:var(--cream); color:var(--ink); }
.terpo-editorial-page .terpo-content-section.terpo-tone--dark { background:var(--ink); color:var(--paper); }
.terpo-editorial-page .collection-cta:is(.terpo-tone--paper,.terpo-tone--cream) :is(h2,p) { color:var(--ink); }
.terpo-editorial-page .terpo-tone--dark .terpo-section-heading > .terpo-section-copy { color:rgba(255,255,255,.7); }
@media(min-width:701px) and (max-width:1000px){
 .terpo-editorial-page .terpo-feature-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .terpo-editorial-page .terpo-feature-grid li { padding:24px 16px; }
}
@media(max-width:700px){
 .terpo-editorial-page .terpo-feature-grid { grid-template-columns:1fr; }
}
/* Inline emphasis inside imported prose must not inherit HP card-label styling. */
.terpo-editorial-page .terpo-material-copy :is(em,strong,small) { display:inline; margin:0; padding:0; border:0; font-family:inherit; font-size:inherit; color:inherit; }
.terpo-editorial-page .terpo-material-copy em { font-style:normal; }
.terpo-editorial-page .terpo-material-copy strong { font-weight:700; }
