/* project-status.css — /dubai-project-status/, the DLD project status tracker.
   Scoped to .pst. */

.pst{--ink:#0b1220;--muted:#5b6b7f;--line:#e6eaf0;--accent:#0f766e;--warm:#b45309;
  max-width:1240px;margin:0 auto;padding:36px 24px 64px;color:var(--ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}

/* Sidebar beside the content from the H1 down; stacks under 820px (Windows
   laptops at 125-150% scaling report ~900px, so 980px was too early). */
.pst-cols{display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,27%,340px);gap:clamp(20px,2.6vw,36px);align-items:start}
.pst-side{position:sticky;top:90px;max-height:calc(100vh - 100px);overflow-y:auto;scrollbar-width:thin}
/* min-width:0 on the column, and minmax(0,1fr) rather than 1fr when stacked: a
   bare 1fr is minmax(auto,1fr), so the 5-column table's min-content width was
   stretching the whole page to 428px on a 375px phone and cutting the text off. */
.pst-cols>div{min-width:0}
@media(max-width:820px){.pst-cols{grid-template-columns:minmax(0,1fr);gap:0}.pst-side{position:static;max-height:none;overflow:visible;margin-top:32px}}

.pst h1{font-size:clamp(27px,4.2vw,42px);line-height:1.1;letter-spacing:-.025em;margin:0 0 16px}
.pst h2{font-size:22px;letter-spacing:-.015em;margin:40px 0 10px;scroll-margin-top:90px}
.pst-answer{font-size:19px;line-height:1.6;max-width:72ch;margin:0 0 10px;color:#1c2b3d}
.pst-answer strong{color:var(--ink)}
.pst-src{font-size:13px;color:var(--muted);margin:0 0 22px}
.pst-note{font-size:14px;color:var(--muted);line-height:1.6;max-width:78ch;margin:8px 0}
.pst-note a,.pst-more a,.pst-count a{color:var(--accent);font-weight:600;text-decoration:none}
.pst-note a:hover,.pst-more a:hover,.pst-count a:hover{text-decoration:underline}

.pst-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:10px}
.pst-tile{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 14px 12px;text-decoration:none;color:var(--ink)}
a.pst-tile:hover,a.pst-tile.on{border-color:var(--accent);box-shadow:0 0 0 2px rgba(15,118,110,.14)}
.pst-tile b{display:block;font-size:26px;letter-spacing:-.02em;line-height:1.1}
.pst-tile span{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.pst-tile small{display:block;font-size:11.5px;color:#8696a8;margin-top:2px}
.pst-tile--warn b{color:var(--warm)}

.pst-search{display:flex;gap:8px;margin:8px 0 6px;max-width:680px}
.pst-search input{flex:1;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px;background:#fff}
.pst-search input:focus{outline:2px solid var(--accent);outline-offset:1px}
.pst-search button{padding:12px 20px;border:0;border-radius:10px;background:var(--accent);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.pst-count{font-size:13px;color:var(--muted);margin:0 0 10px}

.pst-tblwrap{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.pst-tbl{width:100%;border-collapse:collapse;font-size:14.5px;background:#fff}
.pst-tbl--s{border:1px solid var(--line);border-radius:12px;overflow:hidden;display:table}
.pst-tbl th,.pst-tbl td{padding:10px 12px;text-align:left;border-top:1px solid var(--line);vertical-align:top}
.pst-tbl thead th{background:#f2f5f8;border-top:0;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;white-space:nowrap}
.pst-tbl td.n,.pst-tbl th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.pst-tbl td small{display:block;color:var(--muted);font-size:12.5px;font-weight:400;margin-top:2px;white-space:normal}
.pst-tbl a{color:var(--accent);font-weight:600;text-decoration:none}
.pst-tbl a:hover{text-decoration:underline}
.pst-tbl tbody tr:hover{background:#f7fafc}
#pst-rows tr{content-visibility:auto;contain-intrinsic-size:auto 56px}

.pst-b{display:inline-block;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap}
.pst-b--a{background:#dcfce7;color:#166534}
.pst-b--p{background:#f1f5f9;color:#475569}
.pst-b--c{background:#fef3c7;color:#92400e}
.pst-b--f{background:#dbeafe;color:#1e40af}
.pst-b--x{background:#fee2e2;color:#991b1b}
.pst-bar{display:inline-block;width:54px;height:6px;border-radius:3px;background:#e6eaf0;margin-right:8px;vertical-align:middle;overflow:hidden}
.pst-bar i{display:block;height:100%;background:var(--accent);border-radius:3px}
.pst-late{color:var(--warm)!important;font-weight:600!important}
.pst-up{color:#166534;font-weight:700}
.pst-flat,.pst-na{color:#8696a8}

.pst-dl{display:grid;grid-template-columns:auto 1fr;gap:10px 14px;margin:12px 0 0;font-size:15px;line-height:1.55;max-width:78ch}
.pst-dl dt{margin:0}.pst-dl dd{margin:0;color:#33455c}
.pst-dl a{color:var(--accent);font-weight:600}
.pst-ol{margin:10px 0 0;padding-left:20px;font-size:15px;line-height:1.75;color:#33455c;max-width:78ch}

.pst-faq{margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.pst-faq details{border-top:1px solid var(--line)}
.pst-faq details:first-child{border-top:0}
.pst-faq summary{cursor:pointer;padding:14px 18px;font-weight:600;font-size:15.5px;list-style:none}
.pst-faq summary::-webkit-details-marker{display:none}
.pst-faq summary::after{content:'+';float:right;color:var(--accent);font-weight:700}
.pst-faq details[open] summary::after{content:'\2212'}
.pst-faq p{margin:0;padding:0 18px 16px;color:#33455c;line-height:1.65;font-size:14.5px;max-width:80ch}
.pst-more{margin-top:34px;font-size:14.5px;line-height:1.9;color:var(--muted)}

@media(max-width:640px){
  .pst{padding:24px 16px 96px}
  .pst-hide{display:none}
  .pst-tbl th,.pst-tbl td{padding:9px 7px;font-size:13px}
  .pst-tbl thead th{white-space:normal;font-size:10.5px;letter-spacing:.03em}
  .pst-tblwrap{overflow-x:auto}
  .pst-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pst-bar{display:none}
  .pst-search{flex-direction:column}
  .pst-dl{grid-template-columns:1fr;gap:4px 0}.pst-dl dd{margin-bottom:10px}
}
