/* WerkDok Profile LAB 1.13 — accessible, responsive garage and chronological post feed */
.wd-profile-cover{background:#051522;}
.wd-profile-cover-image{background-image:url('assets/profile-cover-dark-new.webp');background-size:clamp(560px,58%,1000px) auto;background-position:right 45%;opacity:.96;}
.wd-profile-cover-fade{background:linear-gradient(90deg,#031421 2%,#031421ed 30%,#031421ad 54%,#0314210a 95%),linear-gradient(0deg,#031421b8,transparent 70%);}
.wd-profile-post-feed{display:flex;flex-direction:column;gap:16px;min-width:0;}
.wd-author-post{min-width:0;display:flex;flex-direction:column;border:1px solid #255267;background:linear-gradient(140deg,#0b2a3d,#061b2b);border-radius:18px;overflow:hidden;}
.wd-author-post-header{display:flex;align-items:center;gap:11px;padding:16px 18px 8px;}
.wd-author-post-avatar{width:43px;height:43px;flex:0 0 43px;border-radius:50%;border:2px solid #80d9e8;background:url('assets/profile-avatar.webp') center top/cover;}
.wd-author-post-author{display:grid;gap:3px;min-width:0;}
.wd-author-post-author strong{font-size:14px;color:#f2fbff;}
.wd-author-post-author small{color:#abc6d3;font-size:11px;}
.wd-author-post-copy{padding:7px 18px 13px;overflow-wrap:anywhere;}
.wd-author-post-copy h3{margin:0 0 8px;font-size:17px;line-height:1.3;color:#fff;}
.wd-author-post-copy p{font-size:14px;line-height:1.62;color:#d1e5ef;margin:0 0 8px;white-space:pre-line;}
.wd-post-topic{display:inline-block;margin:5px 0 0;padding:5px 10px;border:1px solid #227a8b;color:#55deed;border-radius:999px;font-size:11px;font-weight:700;}
.wd-author-post-photo{display:block;width:100%;aspect-ratio:16/8.7;max-height:360px;object-fit:cover;object-position:center;}
.wd-author-post-counts{display:flex;align-items:center;justify-content:space-between;padding:11px 18px;color:#adc8d5;font-size:12px;}
.wd-author-post-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 16px;padding:8px 0;border-top:1px solid #2c5266;}
.wd-author-post-actions button{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 4px;border:0;border-radius:10px;background:transparent;color:#c5dce6;font:700 12px Manrope,sans-serif;cursor:pointer;}
.wd-author-post-actions button:hover,.wd-author-post-actions button.is-active{color:#25dae7;background:#0d3948;}
.wd-author-post-actions .icon{width:17px;height:17px;}
.wd-author-post-comments{display:grid;gap:9px;padding:10px 18px 16px;border-top:1px solid #28536b;}
.wd-author-post-comments>p{margin:0;background:#10344a;border-radius:10px;padding:11px 12px;color:#d0e3ed;font-size:12px;}
.wd-post-comment-form{display:flex;gap:8px;}
.wd-post-comment-form input{flex:1;min-width:0;border:1px solid #2c6172;border-radius:10px;color:var(--text);background:#071a29;padding:9px 12px;}
.wd-post-comment-form button{border:0;border-radius:10px;padding:9px 12px;background:#18cbd9;color:#08252e;font-weight:800;cursor:pointer;}
.wd-profile-post-empty{padding:22px;color:var(--pr-muted);}
.wd-profile-bottom-grid{grid-template-columns:minmax(0,1.45fr) minmax(230px,.55fr);align-items:start;}
.wd-profile-posts-panel{min-width:0;}
.wd-profile-garage-widget{position:sticky;top:0;}
/* New accordion garage */
.wd-garage-lead{margin:0 0 5px;font-size:13px;line-height:1.6;color:#c0d8e3;}
.wd-garage-workspace{display:grid;grid-template-columns:minmax(220px,.83fr) minmax(0,1.5fr);align-items:start;gap:15px;min-width:0;}
.wd-garage-selector{display:grid;gap:12px;}
.wd-garage-car{width:100%;display:grid;grid-template-columns:minmax(95px,42%) minmax(0,1fr) 24px;gap:11px;align-items:center;text-align:left;border:1px solid #285b73;border-radius:15px;padding:9px;background:linear-gradient(140deg,#0b2a3f,#061e2f);color:#f3faff;cursor:pointer;transition:background .2s,border-color .2s,transform .2s;}
.wd-garage-car:hover{border-color:#46cbd5;transform:translateY(-1px);}
.wd-garage-car.is-selected{border-color:#1ad9e4;background:linear-gradient(145deg,#104258,#082637);box-shadow:inset 0 0 0 1px #1bd8e52c;}
.wd-garage-car img{width:100%;height:92px;object-fit:cover;border-radius:10px;}
.wd-garage-car-body{display:grid;gap:7px;min-width:0;}
.wd-garage-car-body strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere;}
.wd-garage-car-body small{font-size:11px;line-height:1.4;color:#aed1e0;}
.wd-garage-car-arrow{font-size:21px;color:#2edce7;}
.wd-garage-detail{min-width:0;display:grid;gap:12px;}
.wd-garage-hero{height:250px;position:relative;overflow:hidden;border:1px solid #285769;border-radius:18px;background:#0a2636;}
.wd-garage-hero>img{width:100%;height:100%;object-fit:cover;display:block;}
.wd-garage-hero::after{content:"";position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#061522e6);pointer-events:none;}
.wd-garage-hero-caption{position:absolute;left:18px;right:18px;bottom:17px;z-index:1;display:grid;gap:4px;}
.wd-garage-hero-caption h3{font:800 23px Outfit,Manrope,sans-serif;line-height:1.15;color:#fff;margin:0;}
.wd-garage-hero-caption span{font-size:12px;color:#d3eaf1;}
.wd-garage-close{position:absolute;right:12px;top:12px;z-index:2;width:36px;height:36px;border-radius:10px;background:#021522d9;border:1px solid #568298aa;color:#fff;font-size:24px;cursor:pointer;}
.wd-garage-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.wd-garage-thumbnails button{padding:2px;border-radius:11px;border:1px solid #2b5267;background:#031826;cursor:pointer;overflow:hidden;}
.wd-garage-thumbnails button.is-active{border:2px solid #23d6e5;}
.wd-garage-thumbnails img{width:100%;aspect-ratio:2/1.1;object-fit:cover;display:block;border-radius:8px;}
.wd-garage-tabs{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px;}
.wd-garage-tabs button{border:1px solid transparent;background:transparent;white-space:nowrap;color:#b2d2e0;border-radius:9px;padding:10px 13px;font:700 12px Manrope,sans-serif;cursor:pointer;}
.wd-garage-tabs button.is-active{background:#0a3d4b;border-color:#187b8e;color:#28deee;}
.wd-garage-details-content{min-height:140px;padding:17px;background:#0a293c;border:1px solid #245167;border-radius:16px;color:#d3e8f1;font-size:13px;line-height:1.6;}
.wd-garage-empty{color:#b5ccdb;line-height:1.6;}
.wd-garage-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 20px;margin:0;}
.wd-garage-spec-line{display:grid;gap:4px;min-width:0;padding-bottom:8px;border-bottom:1px solid #31566978;}
.wd-garage-spec-line dt{font-size:11px;color:#91b5c8;}
.wd-garage-spec-line dd{margin:0;font-size:13px;color:#f1fbff;font-weight:800;overflow-wrap:anywhere;}
.wd-garage-related-post{display:grid;gap:6px;padding:9px 0;border-bottom:1px solid #2a5265;}
.wd-garage-related-post strong{font-size:13px;color:#d7f8ff;}
.wd-garage-related-post small{font-size:11px;color:#b1c9d7;}
.wd-garage-bottom-actions{display:flex;flex-wrap:wrap;gap:9px;}
.wd-garage-bottom-actions a{flex:1 1 160px;text-align:center;text-decoration:none;}
/* Light specific palette */
html[data-theme='light'] .wd-profile-cover-image{background-image:url('assets/profile-cover-light.webp');}
html[data-theme='light'] .wd-profile-post-feed .wd-author-post{background:linear-gradient(145deg,#fff,#f8fbfd);border-color:#d3e5ed;}
html[data-theme='light'] .wd-author-post-author strong,html[data-theme='light'] .wd-author-post-copy h3{color:#153147;}
html[data-theme='light'] .wd-author-post-author small,html[data-theme='light'] .wd-author-post-copy p,html[data-theme='light'] .wd-author-post-counts{color:#567185;}
html[data-theme='light'] .wd-post-topic{color:#0387a3;border-color:#94dae0;background:#ecfaff;}
html[data-theme='light'] .wd-author-post-actions{border-color:#d4e6ef;}
html[data-theme='light'] .wd-author-post-actions button{color:#4a697d;}
html[data-theme='light'] .wd-author-post-actions button:hover,html[data-theme='light'] .wd-author-post-actions button.is-active{background:#e3f8fa;color:#018ba2;}
html[data-theme='light'] .wd-author-post-comments{border-color:#d5e8ef;}
html[data-theme='light'] .wd-author-post-comments>p{background:#e8f4f8;color:#183b50;}
html[data-theme='light'] .wd-post-comment-form input{background:#fff;border-color:#bfdce8;color:#1a3c4d;}
html[data-theme='light'] .wd-garage-lead{color:#557486;}
html[data-theme='light'] .wd-garage-car{background:#f9fcff;color:#143249;border-color:#d3e7ef;}
html[data-theme='light'] .wd-garage-car.is-selected{background:#e7f8fb;border-color:#07adc3;}
html[data-theme='light'] .wd-garage-car-body small{color:#678398;}
html[data-theme='light'] .wd-garage-details-content{background:#f7fbfd;color:#284c62;border-color:#d4e7ef;}
html[data-theme='light'] .wd-garage-tabs button{color:#5d7685;}
html[data-theme='light'] .wd-garage-tabs button.is-active{background:#e1f8fa;color:#008b9c;border-color:#9adce4;}
html[data-theme='light'] .wd-garage-spec-line{border-color:#d8e7ef;}
html[data-theme='light'] .wd-garage-spec-line dt{color:#678194;}
html[data-theme='light'] .wd-garage-spec-line dd,html[data-theme='light'] .wd-garage-related-post strong{color:#123145;}
html[data-theme='light'] .wd-garage-empty,html[data-theme='light'] .wd-garage-related-post small{color:#627d8e;}
/* Resizing without broken cards */
@media(max-width:1500px){.wd-profile-bottom-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,.6fr)}.wd-garage-workspace{grid-template-columns:minmax(200px,.85fr) minmax(0,1.15fr)} }
@media(max-width:1240px){.wd-garage-workspace{grid-template-columns:1fr}.wd-garage-selector{grid-template-columns:repeat(3,minmax(0,1fr));}.wd-garage-car{display:flex;flex-direction:column;align-items:stretch;}.wd-garage-car img{height:114px;}.wd-garage-car-arrow{display:none}.wd-garage-detail{max-width:100%;}}
@media(max-width:980px){.wd-profile-bottom-grid{grid-template-columns:minmax(0,1fr)}.wd-profile-garage-widget{position:relative;}.wd-garage-workspace{grid-template-columns:1fr;}}
@media(max-width:640px){.wd-garage-selector{grid-template-columns:1fr}.wd-garage-car{display:grid;grid-template-columns:114px minmax(0,1fr) 18px;}.wd-garage-car img{height:80px}.wd-garage-car-arrow{display:block}.wd-garage-hero{height:205px}.wd-author-post-photo{aspect-ratio:4/3}.wd-profile-cover-image{background-size:auto 100%;}.wd-garage-spec-grid{gap:8px}.wd-profile-bottom-grid{gap:12px}}
