/* Calisoftworks public portal — light professional home theme */

body.portal-home{
  color-scheme:light;
  --home-bg:#f6f8fb;
  --home-surface:#ffffff;
  --home-surface-soft:#f9fafb;
  --home-border:#e2e8f0;
  --home-border-strong:#d4dce7;
  --home-text:#172033;
  --home-muted:#667085;
  --home-blue:#2563eb;
  --home-blue-dark:#1d4ed8;
  --home-blue-soft:#eff6ff;
  --home-violet:#7c3aed;
  --home-green:#16846b;
  margin:0;
  background:var(--home-bg);
  color:var(--home-text);
  -webkit-font-smoothing:antialiased;
}

body.portal-home .site-header{
  min-height:68px;
  padding:10px max(20px,calc((100vw - 1120px)/2));
  border-bottom:1px solid rgba(226,232,240,.92);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}

body.portal-home .logo{gap:11px;color:var(--home-text)}
body.portal-home .logo-mark{
  width:38px;height:38px;border:0;border-radius:11px;
  background:#172033;color:#fff;
  letter-spacing:-.06em;
  box-shadow:0 4px 12px rgba(15,23,42,.12);
}
body.portal-home .logo strong{font-size:.94rem;letter-spacing:-.015em}
body.portal-home .logo small{color:#8992a3;font-size:.62rem;letter-spacing:.14em}
body.portal-home .site-header nav{gap:6px}
body.portal-home .site-header nav a{
  color:#5d6677;border-radius:9px;padding:.55rem .72rem;font-weight:650;
}
body.portal-home .site-header nav a:hover{color:var(--home-text);background:#f3f5f8}
body.portal-home .site-header nav .admin-link{
  border:1px solid var(--home-border);background:#fff;color:#414b5d;margin-left:4px;
}

body.portal-home main{width:min(1120px,calc(100% - 40px));margin:0 auto}
body.portal-home .hero{
  min-height:0;
  padding:86px 0 74px;
  grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);
  gap:64px;
  align-items:center;
}
body.portal-home .hero-copy{max-width:720px}
body.portal-home .eyebrow{
  display:inline-block;
  color:var(--home-blue);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.14em;
}
body.portal-home .hero h1{
  max-width:760px;
  margin:.65rem 0 1.15rem;
  color:#111827;
  font-size:clamp(2.7rem,6vw,5.1rem);
  line-height:.98;
  letter-spacing:-.055em;
  text-wrap:balance;
}
body.portal-home .hero p,
body.portal-home .section-heading p{color:var(--home-muted)}
body.portal-home .hero-copy>p{
  max-width:650px;font-size:1.05rem;line-height:1.75;margin:0;
}
body.portal-home .hero-actions{margin-top:30px;gap:10px}
body.portal-home .button{
  min-height:42px;
  border:1px solid var(--home-border-strong);
  background:#fff;
  color:#334155;
  border-radius:10px;
  padding:.7rem 1rem;
  font-size:.84rem;
  font-weight:750;
  box-shadow:0 1px 2px rgba(15,23,42,.025);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;
}
body.portal-home .button:hover{border-color:#bdc7d5;box-shadow:0 5px 14px rgba(15,23,42,.06);transform:translateY(-1px)}
body.portal-home .button.primary{
  border-color:var(--home-blue);background:var(--home-blue);color:#fff;
  box-shadow:0 5px 14px rgba(37,99,235,.16);
}
body.portal-home .button.primary:hover{background:var(--home-blue-dark);border-color:var(--home-blue-dark)}

body.portal-home .hero-panel{
  border:1px solid var(--home-border);
  border-radius:18px;
  padding:25px;
  background:var(--home-surface);
  box-shadow:0 18px 50px rgba(30,41,59,.07);
}
body.portal-home .hero-panel>span{color:#8992a3;font-size:.67rem;font-weight:750;letter-spacing:.12em}
body.portal-home .hero-panel>strong{color:var(--home-text);font-size:1.55rem;letter-spacing:-.035em;margin:.42rem 0 1.3rem}
body.portal-home .hero-panel p{
  position:relative;
  margin:0;
  padding:.78rem 0 .78rem 20px;
  border-top:1px solid #edf0f4;
  color:#5d6677;
  font-size:.82rem;
}
body.portal-home .hero-panel p:before{
  content:"";position:absolute;left:0;top:1.05rem;width:8px;height:8px;border-radius:50%;background:#24a77e;
  box-shadow:0 0 0 4px #eaf8f3;
}

body.portal-home .section{padding:64px 0;border-top:1px solid var(--home-border)}
body.portal-home .section-heading{margin-bottom:26px;align-items:flex-end}
body.portal-home .section-heading h2{
  color:var(--home-text);
  font-size:clamp(1.75rem,3.5vw,2.55rem);
  letter-spacing:-.045em;
  margin:.36rem 0 0;
}
body.portal-home .section-heading>p{max-width:390px;font-size:.82rem;line-height:1.6}

body.portal-home .project-grid{gap:18px}
body.portal-home .project-card{
  position:relative;
  min-height:318px;
  overflow:hidden;
  border:1px solid var(--home-border);
  border-radius:18px;
  padding:27px;
  background:var(--home-surface);
  box-shadow:0 8px 30px rgba(30,41,59,.045);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
body.portal-home .project-card:hover{transform:translateY(-2px);border-color:#ccd5e1;box-shadow:0 16px 38px rgba(30,41,59,.075)}
body.portal-home .project-card.cyan,
body.portal-home .project-card.violet{box-shadow:0 8px 30px rgba(30,41,59,.045)}
body.portal-home .project-card:after{
  content:"";position:absolute;right:-45px;top:-55px;width:150px;height:150px;border-radius:50%;pointer-events:none;
}
body.portal-home .project-card.cyan:after{background:#edf8ff}
body.portal-home .project-card.violet:after{background:#f5f0ff}
body.portal-home .project-top{position:relative;z-index:1}
body.portal-home .project-code{
  display:grid;place-items:center;width:48px;height:48px;border-radius:13px;
  background:#f2f5f9;color:#253247;font-size:1rem;font-weight:850;letter-spacing:-.03em;
}
body.portal-home .project-card.cyan .project-code{background:#eaf6ff;color:#1769aa}
body.portal-home .project-card.violet .project-code{background:#f2edff;color:#6d43bd}
body.portal-home .tag{
  border:1px solid var(--home-border);background:#fbfcfd;color:#697386;
  font-size:.68rem;font-weight:700;padding:.34rem .56rem;
}
body.portal-home .project-card h3{
  color:var(--home-text);font-size:1.75rem;letter-spacing:-.04em;margin:1.35rem 0 .65rem;
}
body.portal-home .project-card>p{color:var(--home-muted);line-height:1.68;font-size:.9rem;max-width:95%}
body.portal-home .project-links{margin-top:auto;padding-top:24px}
body.portal-home .text-link{color:#526071;font-size:.79rem;font-weight:650}
body.portal-home .text-link:hover{color:var(--home-blue)}
body.portal-home .project-meta{
  margin-top:19px;padding-top:15px;border-top:1px solid #edf0f4;color:#8a94a5;font-size:.68rem;
}

body.portal-home .updates-section{padding-bottom:58px}
body.portal-home .updates-grid{gap:18px}
body.portal-home .updates-card{
  border:1px solid var(--home-border);border-radius:16px;background:var(--home-surface);padding:22px;
  box-shadow:0 5px 22px rgba(30,41,59,.035);
}
body.portal-home .updates-head strong{color:#283446;font-size:.95rem}
body.portal-home .updates-card ul{margin-top:14px}
body.portal-home .updates-card li{
  grid-template-columns:88px 1fr;gap:14px;border-top:1px solid #edf0f4;padding:11px 0;font-size:.79rem;
}
body.portal-home .updates-card time{color:#98a2b3;font-variant-numeric:tabular-nums}
body.portal-home .updates-card li span{color:#536174;line-height:1.45}

body.portal-home .stats-section{padding-top:58px;padding-bottom:58px}
body.portal-home .stats-grid{gap:12px}
body.portal-home .stat{
  border:1px solid var(--home-border);border-radius:14px;padding:19px;background:#fff;box-shadow:none;
}
body.portal-home .stat strong{color:#253247;font-size:1.65rem;letter-spacing:-.045em}
body.portal-home .stat span{color:#7b8495;font-size:.7rem}

body.portal-home .access-callout{
  margin:0 0 64px;
  padding:30px 32px;
  border:1px solid #dce6f5;
  border-radius:18px;
  background:linear-gradient(135deg,#f7faff 0,#fff 72%);
}
body.portal-home .access-callout h2{color:var(--home-text);font-size:1.65rem;letter-spacing:-.035em;margin:.35rem 0 .45rem}
body.portal-home .access-callout p{color:var(--home-muted);font-size:.86rem;line-height:1.6}

body.portal-home footer{
  border-top:1px solid var(--home-border);
  padding:24px max(20px,calc((100vw - 1120px)/2));
  background:#fff;color:#8b95a5;font-size:.7rem;
}

@media(max-width:850px){
  body.portal-home main{width:min(100% - 28px,1120px)}
  body.portal-home .hero{grid-template-columns:1fr;gap:28px;padding:62px 0 54px}
  body.portal-home .hero-panel{max-width:none}
  body.portal-home .project-grid,body.portal-home .updates-grid{grid-template-columns:1fr}
  body.portal-home .section{padding:52px 0}
}

@media(max-width:560px){
  body.portal-home main{width:min(100% - 20px,1120px)}
  body.portal-home .site-header{padding:9px 10px}
  body.portal-home .logo-mark{width:36px;height:36px}
  body.portal-home .site-header nav .admin-link{padding:.5rem .62rem;font-size:.76rem}
  body.portal-home .hero{padding:48px 0 44px}
  body.portal-home .hero h1{font-size:2.55rem;line-height:1.02}
  body.portal-home .hero-copy>p{font-size:.96rem}
  body.portal-home .hero-panel{padding:21px}
  body.portal-home .section-heading{gap:10px;margin-bottom:20px}
  body.portal-home .project-card{padding:22px;min-height:300px}
  body.portal-home .project-card h3{font-size:1.55rem}
  body.portal-home .updates-card{padding:18px}
  body.portal-home .stats-grid{grid-template-columns:1fr 1fr}
  body.portal-home .access-callout{margin-bottom:38px;padding:24px 20px}
  body.portal-home footer{padding:20px 10px}
}

@media(max-width:390px){
  body.portal-home .stats-grid{grid-template-columns:1fr}
  body.portal-home .hero-actions{align-items:stretch}
  body.portal-home .hero-actions .button{flex:1}
}

/* CalisoftProjects 2026 identity — supplied artwork, no CSS redraw */
body.portal-home .site-header .logo{display:inline-flex;align-items:center;flex:none;text-decoration:none}
body.portal-home .site-header .logo-image{display:block;width:96px;height:96px;object-fit:contain;object-position:center;border-radius:0}
@media(max-width:560px){
  body.portal-home .site-header .logo-image{width:78px;height:78px}
}
@media(max-width:390px){
  body.portal-home .site-header .logo-image{width:69px;height:69px}
}
