/* Gig.is shared presentation. */
:root{--ink:#203237;--muted:#758187;--line:#e8eded;--teal:#178489;--soft:#eff6f5;--bg:#f7f9f9;--header:64px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;color:var(--ink);background:var(--bg);font-family:Tajawal,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,a{-webkit-tap-highlight-color:transparent}
button,input{font:inherit}
button{color:inherit;cursor:pointer}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible{outline:none}
button{border:0}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[hidden]{display:none!important}
.nav-shell{position:fixed;z-index:60;top:18px;left:50%;transform:translateX(-50%);width:390px;max-width:calc(100% - 32px)}
.nav-top{height:64px;background:#fff;border:1px solid #e8ecec;border-radius:18px;box-shadow:0 5px 24px #20323709;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:relative;z-index:2}
.brand{font-family:Montserrat,Arial,sans-serif;font-size:28px;letter-spacing:-1.3px;font-weight:650;direction:ltr;text-decoration:none;color:var(--ink);line-height:1;white-space:nowrap}
.brand span{color:var(--teal)}
.menu-toggle{display:flex;align-items:center;gap:11px;background:transparent;font-size:14px;padding:12px 0;line-height:1}
.menu-toggle svg{width:23px;height:23px}
.nav-panel{margin-top:7px;background:#fff;border:1px solid #e8ecec;border-radius:20px;box-shadow:0 14px 45px #20323710;padding:25px 22px 15px;max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;animation:menu-in .18s ease}
.menu-intro{text-align:center;margin-bottom:23px}
.menu-intro h1{font-size:19px;font-weight:600;margin:0 0 8px;line-height:1.5}
.menu-intro p{font-size:13px;color:#8b969b;margin:0}
.category-title{font-size:13px;font-weight:600;margin:25px 0 13px}
.categories{display:flex;flex-wrap:wrap;gap:8px}
.category{flex:1 0 28%;padding:10px 5px;border-radius:24px;background:#f2f4f5;color:#526068;font-size:12px;white-space:nowrap;line-height:1.5}
.category[aria-pressed=true]{color:#fff;background:var(--teal)}
.category:hover{background:#e5eeee}
.category[aria-pressed=true]:hover{background:#15767b}
.nav-actions{margin-top:24px;border-top:1px solid var(--line)}
.nav-action{width:100%;display:flex;align-items:center;gap:12px;padding:17px 2px;background:#fff;text-align:right;border-bottom:1px solid var(--line);font-size:14px}
.nav-action .action-count{color:#87929a;font:400 12px Montserrat,Arial,sans-serif}
.nav-action .row-icon{margin-inline-start:auto}
.nav-action .arrow{width:15px;height:15px;color:#8c969d}
.nav-action[aria-pressed=true]{color:var(--teal)}
.about-pane{padding:16px 0 4px}
.about-pane p{font-size:13px;line-height:1.95;color:#738188;margin:0 0 12px}
.about-pane a{font-size:12px;color:var(--teal);text-decoration:none}
.about-pane small{display:block;color:#99a3a8;font-size:11px;margin:12px 0}
.nav-backdrop{position:fixed;inset:0;background:#24383c20;backdrop-filter:blur(1px);z-index:50;animation:fade .15s ease}
body.menu-open{overflow:hidden}
main{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:112px 0 36px}
.results-line{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 22px;font-size:12px;color:var(--muted)}
.reset-filter{background:#eaf2f2;color:var(--teal);padding:6px 12px;border-radius:20px;font-size:12px}
.list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;align-items:stretch}
.project{position:relative;min-width:0;display:flex;flex-direction:column;border:1px solid #e4eaea;background:#fff;border-radius:16px;padding:20px;cursor:pointer;transition:border-color .18s,box-shadow .18s}
.project:hover{border-color:#cddfdd;box-shadow:0 5px 22px #20323705}
.project-top{display:flex;align-items:center;gap:14px;min-width:0}
.project-number{flex:0 0 58px;width:58px;height:58px;border-radius:13px;background:#fff;object-fit:contain;display:block;border:1px solid #f0f2f2}
.project-name{font-size:15px;font-weight:600;margin:0;line-height:1.6;min-width:0;overflow-wrap:anywhere}
.project-desc{font-size:13px;font-weight:400;line-height:1.9;color:var(--muted);margin:15px 0 16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:45px}
.card-foot{display:flex;align-items:center;gap:7px;border-top:1px solid #f0f2f3;padding-top:12px;margin-top:auto}
.card-domain{font:400 9px Montserrat,Arial,sans-serif;color:#9ba4aa;direction:ltr;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50%}
.card-tag{font-size:10px;color:#88949b;margin-inline-start:auto;white-space:nowrap}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;background:transparent;border:0;color:#88979d;border-radius:8px;text-decoration:none;padding:0}
.icon-btn svg{width:18px;height:18px}
.icon-btn:hover{background:#f0f6f5;color:var(--teal)}
.favorite[aria-pressed=true]{color:#b36d61}
.favorite[aria-pressed=true] svg{fill:#b36d6118}
.visit{color:var(--teal)}
.mobile-fav{display:none}
.empty{text-align:center;padding:75px 15px;color:var(--muted);font-size:14px;line-height:2}
.empty strong{display:block;color:var(--ink);font-weight:500}
.new-label{font-size:9px;font-weight:400;color:var(--teal);margin-inline-start:5px;background:#edf7f2;padding:1px 5px;border-radius:5px}
dialog{color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:22px;padding:0;width:min(540px,calc(100% - 32px));max-height:85dvh;overflow-y:auto;box-shadow:0 24px 90px #20323720}
dialog::backdrop{background:#20323738;backdrop-filter:blur(2px)}
.detail-actions{display:flex;gap:10px;margin-top:22px}
.detail-visit{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;background:var(--teal);border-radius:12px;padding:14px;color:#fff;text-decoration:none;font-size:14px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#244348;color:#fff;border-radius:12px;padding:12px 20px;font-size:13px;box-shadow:0 7px 30px #20323712;pointer-events:none}
@media(min-width:701px) and (max-width:1000px){main{width:calc(100% - 36px)}
.list{gap:12px}
.project{padding:16px}
.project-top{gap:10px}
.project-number{width:49px;height:49px;flex-basis:49px}
.project-name{font-size:14px}
.card-domain{max-width:38%}
.card-tag{font-size:9px}}
@media(max-width:700px){:root{--bg:#fff}
html{scroll-padding-top:100px}
.nav-shell{top:max(12px,env(safe-area-inset-top));width:calc(100% - 28px);max-width:420px}
.nav-top{height:64px;padding:0 20px;border-radius:17px;box-shadow:0 4px 24px #2032370b}
.brand{font-size:27px}
.menu-toggle{font-size:13px}
.nav-panel{padding:22px 20px 14px;margin-top:5px;max-height:calc(100dvh - 102px)}
.menu-intro h1{font-size:19px}
.menu-intro{margin-bottom:22px}
.nav-backdrop{background:#2032374a;backdrop-filter:none}
main{width:calc(100% - 34px);padding-top:105px;padding-bottom:22px}
.list{display:flex;flex-direction:column;gap:0}
.project{display:grid;grid-template-columns:58px minmax(0,1fr) 32px;column-gap:14px;row-gap:4px;padding:22px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;box-shadow:none!important;cursor:pointer;align-items:start}
.project-top{display:contents}
.project-number{grid-column:1;grid-row:1 / span 3;width:58px;height:58px;flex:none;border-radius:13px;margin-top:3px}
.project-name{grid-column:2;grid-row:1;font-size:16px;line-height:1.6}
.project-desc{grid-column:2;grid-row:2;font-size:13px;line-height:1.8;min-height:0;margin:0;display:-webkit-box;-webkit-line-clamp:2}
.card-foot{grid-column:2;grid-row:3;border:0;margin:3px 0 0;padding:0;display:block}
.card-domain{display:none}
.card-tag{font-size:9px;color:#9aa5aa;margin:0}
.card-foot .icon-btn{display:none}
.mobile-fav{display:flex;grid-column:3;grid-row:1 / span 3;align-self:center;width:32px;height:38px;color:#809198}
.mobile-fav svg{width:20px;height:20px}
.results-line{font-size:11px;margin:0 0 12px;justify-content:space-between}
.new-label{font-size:8px}
dialog{width:100%;max-width:620px;margin:auto auto 0;border-radius:23px 23px 0 0;max-height:88dvh;border-bottom:0}
.toast{bottom:max(22px,env(safe-area-inset-bottom))}}
@media(max-width:360px){main{width:calc(100% - 28px)}
.project{grid-template-columns:51px minmax(0,1fr) 29px;column-gap:11px}
.project-number{width:51px;height:51px}
.project-name{font-size:14px}
.project-desc{font-size:11px}
.nav-panel{padding-inline:17px}
.category{font-size:11px}
.menu-intro h1{font-size:17px}}
@keyframes menu-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.logo-unavailable{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;font-size:9px;line-height:1.6;color:#a1aaae;background:#f8fafa}
@media(max-width:700px){dialog[open]{animation:detail-in .2s ease}
@keyframes detail-in{from{transform:translateY(60px);opacity:0}to{transform:translateY(0);opacity:1}}}
.search-results{background:transparent;color:var(--teal);font-size:11px;padding:9px 0 0;width:100%;text-align:center}
.project:focus,.project:focus-visible,.project:active{outline:none!important;box-shadow:none!important;}
.project:focus-visible{background:#f7fafa;}
.nav-shell button:focus,.nav-shell a:focus,.nav-shell input:focus{outline:none!important;}
.nav-shell .menu-toggle:focus-visible{background:#f3f6f5;border-radius:8px;}
.nav-shell .nav-action:focus-visible{background:#f7fafa;}
.mobile-actions{display:none;}
@media(max-width:700px){.mobile-actions{display:flex;flex-direction:column;gap:6px;grid-column:3;grid-row:1 / span 3;align-self:center;align-items:center;}
.mobile-actions .mobile-fav{display:flex;align-self:auto;grid-column:auto;grid-row:auto;height:32px;}
.mobile-actions .mobile-visit{display:flex;color:#708c90;width:30px;height:30px;}
.mobile-visit svg{width:19px;height:19px;stroke-width:1.6;}
.mobile-actions button:focus,.mobile-actions a:focus{outline:none!important;}}
button:focus,a:focus,input:focus,.icon-btn:focus{outline:none!important;}
button:focus-visible{filter:brightness(.96);}
.about-pane a{display:inline-flex;align-items:center;gap:7px;}
.about-pane a svg{width:15px;height:15px;stroke-width:1.6;}
.back-to-top{position:fixed;bottom:max(22px,calc(env(safe-area-inset-bottom) + 12px));left:22px;z-index:30;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #e5eceb;border-radius:50%;background:#ffffffed;color:#58777c;box-shadow:0 4px 18px #2032370c;backdrop-filter:blur(10px);padding:0;}
.back-to-top svg{width:19px;height:19px;stroke-width:1.6;}
.back-to-top:hover{background:#f3f8f7;}
body.menu-open .back-to-top,body:has(dialog[open]) .back-to-top{display:none!important;}
@media(max-width:700px){.back-to-top{left:17px;width:39px;height:39px;}}
.nav-tools{display:flex;align-items:center;gap:17px;}
.search-toggle{width:30px;height:36px;color:#657d82;}
.search-toggle svg{width:20px;height:20px;}
.header-search{display:flex;align-items:center;gap:12px;width:100%;height:100%;}
.header-search input{flex:1;min-width:0;width:100%;border:0;background:transparent;color:var(--ink);font:400 16px Tajawal,Arial,sans-serif;padding:16px 0;outline:none;}
.header-search input::placeholder{color:#8b999f;}
.header-search>svg{width:20px;height:20px;color:#82959a;}
.header-search .icon-btn{width:30px;flex:0 0 30px;color:#809197;}
.nav-shell.search-open .nav-top>.brand,.nav-shell.search-open .nav-tools{display:none!important;}
.back-to-top{left:auto;right:22px;}
@media(max-width:700px){.nav-tools{gap:15px}
.back-to-top{left:auto;right:17px;}}
.header-search input::-webkit-search-cancel-button{-webkit-appearance:none;}
.project-number{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;background:#f0f3f4;color:#718087;border:0;border-radius:9px;font:500 12px Montserrat,Arial,sans-serif;direction:ltr;text-align:center;letter-spacing:.1px;}
@media(max-width:700px){.project{grid-template-columns:34px minmax(0,1fr) 32px;column-gap:12px;}
.project-number{width:34px;height:34px;min-width:34px;flex-basis:34px;border-radius:8px;font-size:11px;margin-top:4px;}}
@media(max-width:360px){.project{grid-template-columns:32px minmax(0,1fr) 29px;column-gap:10px}
.project-number{width:32px;height:32px;min-width:32px;flex-basis:32px;font-size:10px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-footer{padding:8px 20px calc(30px + env(safe-area-inset-bottom,0px));text-align:center;color:#738188}
.site-footer p{margin:0;font-size:13px;font-weight:400;line-height:1.8}
.site-footer bdi{font-family:Montserrat,Arial,sans-serif;font-size:11px}
.about-author{margin:16px 0 18px}
.about-author p{margin-bottom:10px}
.credentials{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.credential{font-family:Montserrat,Arial,sans-serif;font-size:10px;font-weight:500;line-height:1.5;padding:5px 7px;border-radius:6px;background:#f0f3f3;color:#526068;white-space:nowrap;cursor:help;transition:background .15s,color .15s}
.credential:hover,.credential:focus-visible{background:#e4eaea;color:#203237}
.credential:focus-visible{outline:1px solid #738188;outline-offset:2px}
.certificate-tooltip{position:fixed;z-index:1000;max-width:min(270px,calc(100vw - 24px));padding:9px 12px;border-radius:8px;background:#20272b;color:#fff;font-family:Tajawal,Arial,sans-serif;font-size:13px;font-weight:400;text-align:center;line-height:1.65;box-shadow:0 4px 14px #15202518;opacity:0;transition:opacity .16s ease;pointer-events:auto;overflow-wrap:anywhere}
.certificate-tooltip.is-visible{opacity:1}
.certificate-tooltip::after{content:"";position:absolute;top:100%;left:var(--tip-arrow,50%);transform:translateX(-50%);border:5px solid transparent;border-top-color:#20272b}
.certificate-tooltip.below::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#20272b}
@media(prefers-reduced-motion:reduce){.certificate-tooltip,.credential{transition:none}}
.about-author .author-name{margin-bottom:3px}
.about-author .author-specialty{font-size:12px;color:#738188;margin-bottom:12px}
.credentials{direction:rtl;justify-content:flex-start}
.credential{direction:ltr}
.certificate-tooltip .certificate-en{font-family:Montserrat,Arial,sans-serif;font-size:11px;line-height:1.65}
.certificate-tooltip .certificate-ar{font-family:Tajawal,Arial,sans-serif}
.project-heading{min-width:0;flex:1}
.mobile-card-tag{display:none}
@media(max-width:700px){.project-heading{grid-column:2;grid-row:1;display:flex;align-items:flex-start;gap:8px;min-width:0}
.project-heading .project-name{flex:1;min-width:0}
.mobile-card-tag{display:inline-block;flex:none;white-space:nowrap;font-size:9px;line-height:1.7;color:#8b989e;background:#f3f6f6;border-radius:5px;padding:2px 5px;margin-top:3px}
.project .card-foot{display:none}
.project .project-number{grid-row:1 / span 2}
.project .mobile-actions{grid-row:1 / span 2}}
