/* Property Exit brand tokens (Phase 47). Source of truth: the Property Exit Brand Guide.
   Loaded first on every page, before site.css / home.css / page styles. Change a brand value here, not in the pages. */

/* Inter, self-hosted (SIL Open Font License, see fonts/OFL-Inter.txt). One variable file covers weights 100-900. */
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"),url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:100 900;src:url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"),url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  /* brand */
  --navy:#142d2b; --green:#1e6255; --green-hover:#164d43; --mint:#e8f1ed; --cream:#f8f7f2; --gold:#c79b58;
  /* text */
  --ink:#172b29; --muted:#616e6b; --nav-link:#435450;
  /* surfaces and lines */
  --white:#fff; --surface-soft:#f8faf8; --cta-band:#eaf2ed; --check-well:#e1f1e9;
  --line:#e1e6e1; --divider:#edf0ed; --border-control:#cbd9d3; --border-input:#8d9692;
  /* feedback */
  --alert-bg:#fff7e4; --alert-border:#ead7a6; --alert-text:#6c541f;
  --success-bg:#e9f5ee; --success-text:#1d604e;
  --danger:#a23b2f; --danger-hover:#8a2f25; --error-text:#a33d35;
  --doc-accepted:#1e7f5c; --doc-rejected:#c4432b; --doc-pending:#9aa9a1;
  /* dark grounds */
  --footer-bg:#102724; --footer-text:#d8e4df; --footer-muted:#a9bcb4; --footer-fine:#8fa79d; --footer-rule:#2b4740;
  --topbar-text:#d9e6e1; --on-navy-muted:#c4d2cc; --calc-field:#203e38; --calc-field-border:#4b6961; --calc-result:#24463e;
  --toast-success:#4fae8b; --toast-error-bg:#5a1f19; --toast-error-edge:#e0685c;
  --scrim:rgba(10,25,22,.58);
  /* shape and depth */
  --radius-xs:6px; --radius-sm:8px; --radius-btn:9px; --radius-md:10px; --radius-mark:11px; --radius-notice:12px;
  --radius-panel:14px; --radius-card:15px; --radius-dialog:16px; --radius-feature:20px; --radius-pill:999px;
  --shadow-card:0 4px 14px rgba(22,48,43,.025); --shadow-search:0 12px 32px rgba(25,56,48,.07);
  --shadow-raised:0 16px 45px rgba(22,48,43,.09); --shadow-dialog:0 24px 70px rgba(0,0,0,.28);
  --shadow:var(--shadow-raised);   /* older name used by site.css and home.css */
  /* layout */
  --container-max:1160px; --nav-height:74px; --touch-target:44px;
  /* Type scale (Phase 105): use these six sizes, nothing smaller than --fs-xs. */
  --fs-xs:12px; --fs-sm:13px; --fs-md:14px; --fs-lg:16px; --fs-xl:20px; --fs-2xl:28px;
  /* Status label tones (Phase 105) */
  --tone-ok-bg:#e6f3ec; --tone-ok:#1d604e; --tone-wait-bg:#fdf3dc; --tone-wait:#7a5a12;
  --tone-bad-bg:#fbe7e4; --tone-bad:#a23b2f; --tone-info-bg:#e8eff7; --tone-info:#2f557f; --tone-done-bg:#eef0ef; --tone-done:#4f5b56;
  --font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased}
/* Keyboard focus: gold outline plus a green inner ring (gold alone is 2.5:1 on white; the green ring brings it over 3:1). */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--gold);outline-offset:2px;box-shadow:0 0 0 2px var(--green)}
/* Figures line up in columns of EGP amounts. */
.num,.money,.finance-row,.data-list dd,table,.card-value,.calc-result strong,.stat strong,.analytics-kpi strong{font-variant-numeric:tabular-nums}

/* Brand mark: shared by the public pages and the admin pages. The letter comes from SITE_MARK. */
.brand-mark{width:35px;height:35px;border-radius:var(--radius-mark);background:var(--green);display:inline-grid;place-items:center;color:var(--white);font-weight:800;font-size:18px;letter-spacing:0;flex:0 0 auto}
.admin-brand{display:flex;align-items:center;gap:10px;letter-spacing:-.5px}
/* Screen sizes (Phase 114): CSS cannot read custom properties inside @media, so every stylesheet writes these two
   numbers: max-width:1023px = tablet and below (compact navigation, two columns at most); max-width:767px = phone
   (one column, touch-sized controls). Desktop is 1024px and up. tests/test_workflows.py checks no other width is used. */

/* Loading placeholders (Phase 154): one set for every page, public and admin. Drawn by PE.skel (static/site.js) in the
   shape of the content they stand for (the real card classes give the real sizes, so nothing moves when the content
   arrives). Neutral grey with a soft shimmer; no shimmer for people who ask for reduced motion. Hidden from screen
   readers (aria-hidden); the container carries aria-busy and a short "Loading" status. */
.skel{display:block;position:relative;overflow:hidden;background:#e7ebe8;border-radius:var(--radius-xs);color:transparent}
.skel::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:pe-shimmer 1.5s ease-in-out infinite}
@keyframes pe-shimmer{to{transform:translateX(100%)}}
.skel-line{height:12px;margin:7px 0}.skel-line.sm{height:10px}.skel-title{height:18px;width:70%;margin:6px 0 10px}
.w-20{width:20%}.w-30{width:30%}.w-40{width:40%}.w-50{width:50%}.w-60{width:60%}.w-70{width:70%}.w-80{width:80%}.w-90{width:90%}
.skel-pill{display:inline-block;height:22px;width:84px;border-radius:var(--radius-pill);margin:0 6px 0 0}
.skel-box{border-radius:0}.skel-img{aspect-ratio:16/9;width:100%;border-radius:var(--radius-md)}
.skel-card{pointer-events:none}.skel-card:hover{box-shadow:none;transform:none;border-color:var(--line)}
.skel-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:8px 0 14px}
.skel-stat{border:1px solid var(--line);border-radius:var(--radius-md);padding:12px 14px;background:#fff}
.skel-table{width:100%;border-collapse:collapse}.skel-table td,.skel-table th{padding:10px 8px;border-bottom:1px solid var(--divider)}
.skel-chart{display:flex;align-items:flex-end;gap:8px;height:160px;padding:10px 0}.skel-chart .skel{flex:1;border-radius:4px 4px 0 0}
.skel-profile{display:flex;gap:12px;align-items:center}.skel-avatar{width:44px;height:44px;border-radius:50%;flex:none}
.skel-detail{display:grid;gap:12px}.skel-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--divider)}.skel-error{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.skel-more{display:contents}.skel-block{grid-column:1/-1;min-width:0}
/* the space is held from the first paint, before the script draws the placeholders (no jump of what is below) */
.card-grid[data-skel]:empty,.pcard-grid[data-skel]:empty{min-height:100vh}[data-skel]:empty{min-height:48px}
.meta[role=status]:empty::before{content:"\a0"}.skel-chart .h0{height:35%}.skel-chart .h1{height:60%}.skel-chart .h2{height:85%}.skel-chart .h3{height:50%}
/* photos: a neutral area of the final size until the picture arrives; a broken address shows the placeholder picture */
.pe-img{position:relative;overflow:hidden}.pe-img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pe-img.is-broken>img{display:none}.pe-img.is-broken{background:var(--mint) url(/static/img/unit-placeholder.svg) center 58%/46% auto no-repeat}
@media (prefers-reduced-motion:reduce){.skel::after{animation:none;display:none}}
