/* PH Realizace 1.2.2. The existing 53+ server-rendered cards stay in the DOM.
   Only the public listing is styled; no catalogue, forms or project edits. */
@font-face{font-family:'PHRI Poster';src:url('../fonts/Anton-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'PHRI Notes';src:url('../fonts/Caveat.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
body.phri-realizace-page{
 --phri-yellow:#f7bc00;--phri-ink:#141410;--phri-paper:#f8f3e7;
 --phri-nested-inset:0px;
 --phri-page-width:var(--phkm-page-width,min(1040px,calc(min(100vw,var(--global-content-width,1090px)) - var(--global-content-edge-padding,1.41rem) - var(--global-content-edge-padding,1.41rem) - var(--global-content-boxed-padding,2.54rem) - var(--global-content-boxed-padding,2.54rem) - var(--phri-nested-inset))));
}
body.phri-realizace-page .entry-content .ph-realizace-page{
 position:relative;isolation:isolate;box-sizing:border-box;container:phri-page / inline-size;
 width:var(--phri-page-width)!important;max-width:none!important;left:auto;
 margin:0 0 32px!important;margin-left:calc(50% - var(--phri-page-width) / 2)!important;
 padding:0 0 24px!important;background-color:var(--phri-paper)!important;
 background-image:url('../images/paper-header.webp'),repeating-linear-gradient(0deg,transparent 0 35px,#71644c07 35px 36px)!important;
 background-size:100% auto,100% 36px;background-repeat:no-repeat,repeat;
 color:var(--phri-ink);box-shadow:0 9px 26px #4337251b;
 border:0!important;border-radius:0!important;overflow:visible!important;
}
body.phri-realizace-page .ph-realizace-page *,body.phri-realizace-page .ph-realizace-page *::before,body.phri-realizace-page .ph-realizace-page *::after{box-sizing:border-box}
body.phri-realizace-page .ph-realizace-page::before{content:'';position:absolute;inset:16px 12px 14px;border-left:1px solid #453e322b;border-right:1px solid #453e322b;pointer-events:none;z-index:-1}
body.phri-realizace-page .entry-content .ph-realizace-page :is(h1,h2,h3){color:var(--phri-ink)!important;text-shadow:none!important;-webkit-text-stroke:0!important;letter-spacing:.005em!important;font-synthesis:none;word-break:normal;overflow-wrap:normal}
body.phri-realizace-page .ph-realizace-page .phri-pencil-note{font:500 21px/1.05 'PHRI Notes',cursive;color:#4a463c;letter-spacing:0;text-transform:none;pointer-events:none}
body.phri-realizace-page .ph-realizace-page .phri-title-highlight{position:relative;display:inline-block;padding:.06em .2em .13em;margin-left:-.12em;background:url('../images/brush-yellow.svg') center/100% 100% no-repeat;isolation:isolate}
/* The heading is live text. Background paper, strokes and pictures are separate. */
body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-hero.phri-hero{
 display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);align-items:center;gap:12px;
 min-height:0;padding:26px 32px 22px;margin:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important;
}
body.phri-realizace-page .phri-hero::after{content:none!important}
body.phri-realizace-page .phri-hero-copy{position:relative;min-width:0;padding:0!important;z-index:2}
body.phri-realizace-page .phri-hero .ph-kicker{display:inline-block;font:800 11px/1.3 Arial,sans-serif!important;letter-spacing:.06em!important;color:#fffdf5!important;background:var(--phri-ink)!important;box-shadow:none!important;padding:6px 9px!important;margin:0 0 13px!important;transform:rotate(-1deg)}
body.phri-realizace-page .entry-content .phri-hero h1{
 font:400 clamp(29px,4.8cqi,49px)/1.14 'PHRI Poster',Impact,sans-serif!important;
 margin:0 0 10px!important;max-width:none!important;text-transform:uppercase;
}
body.phri-realizace-page .phri-title-first{font-size:1.2em}
body.phri-realizace-page .phri-title-small{font-size:.74em}
body.phri-realizace-page .phri-title-second{display:block}
body.phri-realizace-page .phri-hero h1 .phri-title-highlight{font-size:1.2em;white-space:nowrap;transform:rotate(-1deg)}
body.phri-realizace-page .entry-content .phri-hero p{font:600 clamp(13px,1.4cqi,15px)/1.5 Arial,sans-serif!important;color:var(--phri-ink)!important;margin:0!important;max-width:100%!important}
body.phri-realizace-page .phri-under-surface{display:block;width:180px;margin:13px 0 0 auto;transform:rotate(-5deg);text-align:center;border-bottom:2px solid var(--phri-yellow)}
body.phri-realizace-page .phri-hero-art{position:relative;width:100%;aspect-ratio:1;min-width:0;align-self:center;overflow:hidden;background:#090909;transform:none;box-shadow:0 5px 12px #33291c26}
body.phri-realizace-page .phri-hero-illustration{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;margin:0!important;object-fit:cover;object-position:center;mask:none!important;-webkit-mask:none!important;transform:scale(1.018)}
/* Three original illustrations, framed as taped photographs. */
body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-intro.phri-intro{
 display:block;margin:0!important;padding:22px 32px 30px!important;background:transparent!important;
 border:0!important;border-top:1px solid #d7a423!important;box-shadow:none!important;overflow:visible!important;
}
body.phri-realizace-page .phri-intro .ph-label{display:inline-block;background:transparent!important;color:#585144!important;font:700 10px/1.3 Arial,sans-serif!important;letter-spacing:.08em!important;box-shadow:none!important;padding:0!important;margin:0 0 8px!important}
body.phri-realizace-page .entry-content .phri-intro h2{font:400 clamp(24px,3.8cqi,39px)/1.17 'PHRI Poster',Impact,sans-serif!important;text-transform:uppercase;margin:0 0 10px!important;max-width:none!important}
body.phri-realizace-page .entry-content .phri-intro p{font:500 13px/1.55 Arial,sans-serif!important;color:var(--phri-ink)!important;max-width:none!important;margin:0!important}
body.phri-realizace-page .phri-intro .phri-story{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr);align-items:center;margin:30px 0 0!important;gap:0}
body.phri-realizace-page .phri-intro .phri-step{position:relative;min-width:0;margin:0!important;padding:0!important;overflow:visible}
body.phri-realizace-page .phri-intro .phri-scene{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#e5ddcc;border:6px solid #fffdf3;outline:1px solid #62574466;box-shadow:3px 4px 0 #45371f20;transform:rotate(-1deg)}
body.phri-realizace-page .phri-step-during .phri-scene{transform:rotate(1deg)}
body.phri-realizace-page .phri-step-after .phri-scene{transform:rotate(-.6deg)}
body.phri-realizace-page .phri-step::before,body.phri-realizace-page .phri-step::after{content:'';position:absolute;width:43px;height:20px;background:#edc866ae;z-index:3;pointer-events:none;border-top:1px solid #f9e4a1;top:-7px;left:-7px;transform:rotate(-28deg)}
body.phri-realizace-page .phri-step::after{top:auto;left:auto;bottom:27px;right:-6px;transform:rotate(-62deg)}
body.phri-realizace-page .phri-bathroom-strip{position:absolute;display:block!important;left:0;top:0;width:300%!important;height:100%!important;max-width:none!important;object-fit:fill;margin:0!important}
body.phri-realizace-page .phri-scene-illustration{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;margin:0!important}
body.phri-realizace-page .phri-caption{margin:0!important;padding:0!important}
body.phri-realizace-page .phri-step-label{position:absolute;top:-18px;left:9px;z-index:4;display:flex;align-items:center;gap:9px;max-width:calc(100% - 15px);padding:5px 8px;background:var(--phri-yellow);color:#141410!important;transform:rotate(-3deg);box-shadow:2px 3px 0 #51452527;font:400 clamp(13px,1.7cqi,18px)/1.15 'PHRI Poster',Impact,sans-serif!important;text-transform:uppercase}
body.phri-realizace-page .phri-step-number{font-size:1.6em;padding-right:7px;border-right:1px solid #332a2255}
body.phri-realizace-page .phri-step-caption{display:block;text-align:center;padding:10px 0 0;font:500 clamp(15px,1.8cqi,19px)/1.15 'PHRI Notes',cursive;color:#312c23}
body.phri-realizace-page .phri-story-arrow{position:relative;z-index:5;font:400 40px/1 'PHRI Notes',cursive;text-align:center;color:#161612;transform:translateY(-14px)}
/* The complete catalogue: two feature cards, then as many regular rows as needed. */
body.phri-realizace-page .phri-catalog-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px 17px;margin:0}
body.phri-realizace-page .phri-catalog-heading::before{content:'';position:absolute;left:12px;right:12px;top:0;height:5px;background:repeating-linear-gradient(-45deg,#151510 0 9px,#f7bc00 9px 18px)}
body.phri-realizace-page .entry-content .phri-catalog-heading h2{font:600 clamp(23px,3cqi,31px)/1.1 'PHRI Notes',cursive!important;text-transform:uppercase;margin:0!important;padding-bottom:5px;background:linear-gradient(var(--phri-yellow),var(--phri-yellow)) left bottom/95% 2px no-repeat;transform:rotate(-1deg)}
body.phri-realizace-page .phri-catalog-note{max-width:180px;text-align:center;transform:rotate(-4deg)}
body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:18px 16px!important;margin:0!important;padding:0 20px 18px!important;width:100%!important;max-width:none!important}
body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card{
 grid-column:span 2!important;position:relative;display:flex!important;flex-direction:column;min-width:0;
 padding:10px!important;background:#fffcf5c9!important;border:1px solid #998a6c44!important;border-radius:0!important;
 box-shadow:2px 4px 0 #4b3f2920,0 2px 8px #4b3f2910!important;overflow:visible!important;
 transform:none!important;transition:box-shadow .15s ease!important;text-decoration:none!important;color:#141410!important;
}
body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card:nth-child(-n+2){grid-column:span 3!important}
body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card:hover{box-shadow:2px 5px 0 #b993284a,0 3px 12px #4b3f2926!important}
body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card:focus-visible{outline:3px solid #141410;outline-offset:4px}
body.phri-realizace-page .ph-realizace-card::after{content:'';position:absolute;right:26px;top:31px;width:39px;height:17px;background:#f5c735aa;transform:rotate(13deg);pointer-events:none;z-index:12}
body.phri-realizace-page .ph-realizace-card>.phri-card-location{display:flex;align-items:center;gap:7px;color:#232119!important;font:700 10px/1.3 Arial,sans-serif!important;text-transform:uppercase;letter-spacing:0!important;margin:0 0 8px!important;min-height:17px;padding:0!important}
body.phri-realizace-page .phri-card-location::before{content:'';display:inline-block;width:10px;height:13px;border:3px solid #eeb300;border-radius:55% 55% 55% 0;transform:rotate(-45deg);flex-shrink:0;margin:0 1px 1px 2px}
body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-card .phrc-story-media{
 display:grid!important;position:relative;grid-template-columns:minmax(0,2.65fr) minmax(0,1fr)!important;
 grid-template-rows:repeat(2,minmax(0,1fr))!important;height:auto!important;min-height:0!important;max-height:none!important;
 aspect-ratio:1.72!important;gap:3px!important;padding:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;overflow:hidden!important;
}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-media::before{content:none!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-shot-main{grid-column:1!important;grid-row:1/3!important;aspect-ratio:auto!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-minis{display:contents!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-shot{aspect-ratio:auto!important;border:0!important;margin:0!important;padding:0!important;min-height:0}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-shot img{width:100%!important;height:100%!important;object-fit:cover!important;transform:none!important;filter:none!important;transition:none!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-shot figcaption{font:700 8px/1.25 Arial,sans-serif!important;letter-spacing:0!important;left:4px!important;right:4px!important;bottom:4px!important;text-shadow:0 1px 3px #000!important;box-shadow:none!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-shot-main figcaption{font-size:9px!important;width:fit-content;background:#f7bc00e8!important;color:#141410!important;padding:4px 5px!important;text-shadow:none!important;max-width:calc(100% - 8px)}
body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-card-type{top:5px!important;left:5px!important;max-width:calc(100% - 10px)!important;padding:4px 5px!important;font:700 8px/1.2 Arial,sans-serif!important;background:#f7bc00ed!important;box-shadow:none!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content{display:flex;flex:1;flex-direction:column;min-width:0;padding:10px 2px 2px!important;background:transparent!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content h2{order:1;font:400 21px/1.18 'PHRI Poster',Impact,sans-serif!important;text-transform:uppercase;margin:0 0 8px!important;max-width:none!important}
body.phri-realizace-page .entry-content .ph-realizace-grid>a:nth-child(-n+2) .ph-realizace-content h2{font-size:25px!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content p{order:2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font:400 12px/1.5 Arial,sans-serif!important;color:#222!important;margin:0 0 14px!important}
body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content>strong{order:3;display:inline-flex;align-items:center;align-self:flex-start;width:auto!important;max-width:100%;margin-top:auto!important;padding:8px 12px!important;color:#10100f!important;background:var(--phri-yellow)!important;border:0!important;box-shadow:2px 3px 0 #bd992333!important;font:400 15px/1.3 'PHRI Poster',Impact,sans-serif!important;text-transform:uppercase}
/* Unenhanced fallback cards still show their original photo and full link. */
body.phri-realizace-page .ph-realizace-grid .ph-realizace-img:not(.phrc-story-media){height:180px!important}
@media(max-width:1100px){body.phri-realizace-page{--phri-nested-inset:64px}}
@media(max-width:950px) and (min-width:781px){
 body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card,body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card:nth-child(-n+2){grid-column:auto!important}
 body.phri-realizace-page .phri-step-label{font-size:12px!important;gap:4px;padding:5px}
 body.phri-realizace-page .phri-step-number{padding-right:4px;font-size:1.4em}
}
@media(max-width:780px){
 body.phri-realizace-page{--phri-page-width:var(--phkm-page-width,calc(100vw - 32px))}
 body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-hero.phri-hero{padding:23px 20px 18px;gap:10px}
 body.phri-realizace-page .entry-content .phri-hero h1{font-size:clamp(26px,4.9cqi,38px)!important}
 body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-intro.phri-intro{padding:20px 20px 25px!important}
 body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0 16px 15px!important;gap:16px 12px!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card,body.phri-realizace-page .entry-content .ph-realizace-grid>a.ph-realizace-card:nth-child(-n+2){grid-column:auto!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content h2,body.phri-realizace-page .entry-content .ph-realizace-grid>a:nth-child(-n+2) .ph-realizace-content h2{font-size:22px!important}
 body.phri-realizace-page .phri-catalog-heading{padding:23px 20px 16px}
 body.phri-realizace-page .phri-catalog-note{display:none}
 body.phri-realizace-page .phri-step-label{font-size:13px!important;gap:5px}
 body.phri-realizace-page .phri-step-number{font-size:1.35em}
}
@media(max-width:600px){
 body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-hero.phri-hero{grid-template-columns:1fr;padding:22px 19px 20px;gap:16px}
 body.phri-realizace-page .entry-content .phri-hero h1{font-size:clamp(29px,8.7cqi,46px)!important}
 body.phri-realizace-page .phri-hero-art{max-width:310px;width:88%;margin:0 auto}
 body.phri-realizace-page .entry-content .phri-hero p{font-size:13px!important;line-height:1.5!important}
 body.phri-realizace-page .phri-under-surface{margin-top:13px;font-size:20px!important}
 body.phri-realizace-page .entry-content .phri-intro h2{font-size:clamp(26px,7.7cqi,36px)!important}
 body.phri-realizace-page .phri-intro .phri-story{grid-template-columns:1fr;gap:20px;max-width:360px;margin:29px auto 0!important}
 body.phri-realizace-page .phri-story-arrow{font-size:32px;transform:rotate(90deg);height:20px;line-height:20px;margin:0 auto 6px}
 body.phri-realizace-page .phri-step-label{font-size:19px!important;top:-15px;left:11px;gap:10px;padding:6px 10px}
 body.phri-realizace-page .phri-step-number{font-size:1.45em}
 body.phri-realizace-page .phri-step-caption{font-size:21px;padding-top:10px}
 body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-grid{grid-template-columns:minmax(0,1fr)!important;padding:0 14px 12px!important;gap:20px!important}
 body.phri-realizace-page .entry-content .phri-catalog-heading h2{font-size:27px!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-card .phrc-story-media{aspect-ratio:1.5!important;grid-template-columns:minmax(0,2.5fr) minmax(0,1fr)!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid .phrc-story-shot figcaption{font-size:9px!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content h2,body.phri-realizace-page .entry-content .ph-realizace-grid>a:nth-child(-n+2) .ph-realizace-content h2{font-size:25px!important}
 body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content p{font-size:13px!important;-webkit-line-clamp:4}
 body.phri-realizace-page .entry-content .ph-realizace-grid .ph-realizace-content>strong{font-size:16px!important;padding:10px 15px!important}
}
@media(prefers-reduced-motion:reduce){body.phri-realizace-page .ph-realizace-page *{transition:none!important;scroll-behavior:auto!important}}

/* Special editorial hooks retain the original PHRC styles and copy. */

/* Content stays readable when scripting is blocked. */
body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-hero:not(.phri-hero){background:transparent!important;box-shadow:none!important;color:#141410!important;border:0!important}
body.phri-realizace-page .entry-content .ph-realizace-page>.ph-realizace-hero:not(.phri-hero) p{color:#141410!important}
