/* Tamiyouz Premium Transformation — Phase 18 Portfolio & Projects Gallery.
   Additive, reversible, only archive portfolio. Existing project/book source unchanged. */
body.post-type-archive-tyz_case_study #tyz-portfolio{
 --tyz18-gold:#bf9155;--tyz18-paper:#fffdf8;--tyz18-ink:#152b45;
 --tyz18-border:rgba(119,102,77,.18);--tyz18-muted:#687589;
 --tyz18-panel:rgba(255,255,255,.91);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-section-head{
 align-items:center;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar{
 display:grid;grid-template-columns:minmax(250px,1fr) auto;gap:18px;
 align-items:center;margin:0 0 20px;padding:clamp(16px,2.1vw,26px);
 border:1px solid var(--tyz18-border);border-radius:22px;
 background:linear-gradient(120deg,var(--tyz18-panel),rgba(244,238,226,.74));
 box-shadow:0 18px 38px rgba(15,39,65,.05);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-search-wrap{
 display:flex;align-items:center;gap:12px;width:100%;min-width:0;
 padding:4px 10px 4px 17px;min-height:54px;background:var(--tyz18-paper);
 border:1px solid #d8d1c4;border-radius:14px;direction:inherit;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-search-wrap:focus-within{
 border-color:var(--tyz18-gold);box-shadow:0 0 0 3px rgba(197,150,85,.15);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-search-icon{
 color:var(--tyz18-gold);flex:none;font-size:18px;line-height:1;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-input{
 flex:1;min-width:0;min-height:44px;border:0!important;background:transparent!important;
 box-shadow:none!important;outline:0!important;font:600 14px/1.5 inherit;
 color:var(--tyz18-ink)!important;padding:8px 0;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-input::placeholder{
 color:var(--tyz18-muted);opacity:1;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-clear{
 flex:none;background:transparent;border:0;border-radius:10px;padding:8px 10px;
 color:#876440;font-size:12px;font-weight:800;min-height:38px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-clear[hidden]{display:none!important}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar-actions{
 display:flex;justify-content:flex-end;align-items:center;gap:13px;flex-wrap:wrap;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-live-count{
 color:var(--tyz18-ink);font-size:12px;font-weight:750;white-space:nowrap;
 font-variant-numeric:tabular-nums;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-view-select{
 display:flex;align-items:center;gap:3px;padding:4px;border-radius:13px;
 background:#e9e3d7;border:1px solid var(--tyz18-border);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-view-select button{
 min-height:40px;padding:8px 12px;white-space:nowrap;border-radius:9px;
 border:0;background:transparent;color:#586675;font-size:12px;font-weight:800;
 transition:background .2s,color .2s,box-shadow .2s;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-view-select button[aria-pressed="true"]{
 background:#122b49;color:#ffe8bc;box-shadow:0 3px 10px rgba(9,23,38,.13);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-filters{
 padding:0 0 8px;gap:9px;margin-bottom:17px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-filters button{
 min-height:40px;padding:10px 15px;border-color:#d8d1c7;
 border-radius:999px;transition:background .22s,border-color .22s,color .22s;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-filters button:focus-visible{
 outline:2px solid #cda66f;outline-offset:3px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-filters button[aria-pressed="true"]{
 background:#142c4b;border-color:#bd955b;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-grid{
 gap:clamp(13px,1.8vw,25px);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-project{
 min-width:0;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-project>button{
 border-radius:21px;border:1px solid #ded7ca;
 box-shadow:0 16px 40px rgba(15,34,57,.055);
 overflow:hidden;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-project>button:is(:hover,:focus-visible){
 border-color:#c9a66d;
 box-shadow:0 25px 55px rgba(12,32,58,.13);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-card-art{
 background:linear-gradient(125deg,#152f4e,#07162b);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-card-meta{
 background:linear-gradient(145deg,#fffdf7,#f8f5ee);
 min-height:107px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-card-meta h3{
 overflow-wrap:anywhere;word-break:normal;
}
body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-project>button{
 display:grid;grid-template-columns:minmax(115px,35%) minmax(0,1fr);align-items:stretch;
 text-align:start;min-height:168px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-card-art{
 height:100%;min-height:168px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-card-meta{
 min-width:0;align-items:center;min-height:168px;padding:20px;
}
body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-card-meta h3{
 font-size:clamp(14px,1.6vw,20px);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-empty{
 padding:45px 24px;margin-bottom:44px;text-align:center;
 border:1px dashed #baa27e;border-radius:20px;
 background:var(--tyz18-paper);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-empty[hidden]{display:none!important}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-empty strong{
 display:block;font-size:clamp(20px,2.2vw,26px);color:var(--tyz18-ink);
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-empty p{
 font-size:13px;color:var(--tyz18-muted);line-height:1.8;
}
body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-empty button{
 padding:12px 22px;border-radius:11px;min-height:44px;
 background:#132e4c;color:#ffedca;font-weight:800;font-size:13px;border:1px solid #b89158;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio{
 --tyz18-paper:#13263e;--tyz18-ink:#f4ead9;--tyz18-muted:#c3cbd2;
 --tyz18-panel:#142840;--tyz18-border:rgba(225,190,137,.24);
 background:linear-gradient(135deg,#0a192b,#0c2036);color:#f4ead9;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar{
 background:linear-gradient(128deg,#142d48,#0c2138);
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-search-wrap{
 border-color:rgba(234,196,139,.31);
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-view-select{
 background:#203955;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-view-select button{
 color:#d7dce3;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-filters button{
 background:#172e49;border-color:#3b516a;color:#eadfcf;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-filters button[aria-pressed="true"]{
 background:#d4ad77;border-color:#d4ad77;color:#12243a;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-card-meta{
 background:linear-gradient(130deg,#19304b,#11263e);
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-card-meta h3{
 color:#f8efe4;
}
html[data-tyz-theme="dark"] body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-card-meta small{
 color:#e0b982;
}
@media(max-width:900px){
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar{grid-template-columns:minmax(0,1fr)}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar-actions{justify-content:space-between}
}
@media(max-width:700px){
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar{padding:15px;gap:13px}
 body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-grid{grid-template-columns:minmax(0,1fr)}
 body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-project>button{grid-template-columns:minmax(105px,37%) minmax(0,1fr);min-height:136px}
 body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-card-art{height:100%;min-height:136px}
 body.post-type-archive-tyz_case_study #tyz-portfolio[data-tyz18-view="list"] .tyz-pb-card-meta{min-height:136px;padding:15px}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-live-count{font-size:11px}
}
@media(max-width:390px){
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-toolbar-actions{align-items:flex-start;flex-direction:column}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-search-wrap{padding-inline:10px}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz18-view-select button{padding-inline:10px}
}
@media(prefers-reduced-motion:reduce){
 body.post-type-archive-tyz_case_study #tyz-portfolio :is(.tyz18-view-select button,.tyz-pb-project>button,.tyz-pb-filters button){transition:none!important;animation:none!important}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-project>button:hover{transform:none!important}
}/* Narrow English introduction pre-existing overflow: grid min-content correction.
   Scoped to work gallery only, preserving the original portfolio book. */
@media(max-width:700px){
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-intro{grid-template-columns:minmax(0,1fr)}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-intro-copy{min-width:0;max-width:100%}
 body.post-type-archive-tyz_case_study #tyz-portfolio .tyz-pb-intro-copy :is(h2,p,.tyz-pb-kicker){max-width:100%;overflow-wrap:anywhere}
}
