
/* =========================================================
   LINK V13 — PORTAL / STUDENT / RESOURCE EXPERIENCE
   ========================================================= */

:root{
  --v13-navy:#082b50;
  --v13-green:#67bd32;
  --v13-teal:#159aa6;
  --v13-ink:#173550;
  --v13-muted:#617487;
  --v13-line:#dbe5ea;
  --v13-soft:#f5f8f9;
  --v13-white:#fff;
}

/* BUSINESS: top tabs are PAGE navigation and must be readable. */
body.link-backend-v11 .portal-main .link-role-tabs{
  background:transparent !important;
  border-bottom:1px solid var(--v13-line) !important;
  padding:0 0 14px !important;
  margin:0 0 20px !important;
}

body.link-backend-v11 .portal-main .link-role-tabs .nav-button,
body.link-backend-v11 .portal-main .link-role-tabs button{
  background:#fff !important;
  color:var(--v13-navy) !important;
  border:1px solid #ccdbe3 !important;
  box-shadow:none !important;
  opacity:1 !important;
  padding:10px 14px !important;
  font-weight:850 !important;
}

body.link-backend-v11 .portal-main .link-role-tabs .nav-button.active,
body.link-backend-v11 .portal-main .link-role-tabs button.active{
  background:#eef7e9 !important;
  color:var(--v13-navy) !important;
  border-color:#8bc768 !important;
  box-shadow:inset 0 -3px 0 var(--v13-green) !important;
}

.link-v13-management-note{
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid var(--v13-line);
  border-left:5px solid var(--v13-green);
  border-radius:9px;
  background:#fff;
  color:var(--v13-ink);
  line-height:1.5;
}

.link-v13-management-note strong{color:var(--v13-navy)}
.link-v13-local-preview{
  color:#52697c !important;
  background:#eef4f7 !important;
  border-left:4px solid var(--v13-teal) !important;
  padding:10px 12px !important;
  border-radius:7px !important;
}

/* NONPROFIT identity card at the top after login. */
.link-v13-org-identity{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid var(--v13-line);
  border-radius:11px;
  background:#fff;
  width:max-content;
  max-width:100%;
}

.link-v13-org-identity img{
  width:92px;
  height:72px;
  object-fit:contain;
  background:#fff;
  border-radius:8px;
}

.link-v13-org-identity-copy{
  min-width:0;
}

.link-v13-org-identity-copy small{
  display:block;
  color:#5b9834;
  font-weight:900;
  letter-spacing:.10em;
  font-size:10px;
}

.link-v13-org-identity-copy strong{
  display:block;
  margin-top:4px;
  color:var(--v13-navy);
  font-size:18px;
}

/* Tangible resource alert only. */
.link-v13-resource-alert{
  margin:0 0 18px;
  padding:16px 18px;
  border:1px solid #b9dba7;
  border-left:6px solid var(--v13-green);
  border-radius:10px;
  background:#f4faef;
  color:var(--v13-ink);
}

.link-v13-resource-alert-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
}

.link-v13-resource-alert h3{
  margin:0 0 5px;
  color:var(--v13-navy);
  font-size:18px;
}

.link-v13-resource-alert p{margin:0;line-height:1.5}
.link-v13-resource-alert-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.link-v13-resource-alert button{
  border:0;
  border-radius:7px;
  padding:9px 11px;
  font-weight:850;
  cursor:pointer;
}
.link-v13-resource-alert .view{
  background:var(--v13-navy);
  color:#fff;
}
.link-v13-resource-alert .dismiss{
  background:#e7edef;
  color:var(--v13-navy);
}

/* GROUP / SCHOOL public auth pages: no floating portal sidebar. */
body.link-v13-group-public .link-backend-utility-sidebar{
  display:none !important;
}
body.link-v13-group-public main,
body.link-v13-group-public .shell{
  margin-left:auto !important;
  margin-right:auto !important;
}

body.link-v13-group-public header.top .brand{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff !important;
  border-radius:11px !important;
  padding:7px 12px !important;
  min-width:210px;
  min-height:78px;
  color:transparent !important;
  text-decoration:none !important;
  overflow:hidden;
}
body.link-v13-group-public header.top .brand img{
  display:block;
  width:190px;
  max-width:100%;
  max-height:66px;
  object-fit:contain;
}

/* STUDENTS: approved story structure = image LEFT / text RIGHT. */
.link-student-story-v13{
  width:min(1320px,calc(100% - 34px));
  margin:34px auto 26px;
  display:grid;
  grid-template-columns:minmax(340px,.9fr) minmax(0,1.1fr);
  gap:clamp(28px,5vw,68px);
  align-items:center;
  padding:30px;
  border:1px solid var(--v13-line);
  border-radius:16px;
  background:#fff;
}

.link-student-story-v13-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.link-student-story-v13-visual img{
  display:block;
  width:100%;
  max-width:570px;
  max-height:500px;
  height:auto;
  object-fit:contain;
  object-position:center;
}

.link-student-story-v13-copy{
  min-width:0;
}

.link-student-story-v13-copy .eyebrow{
  color:#5b9834;
  font-weight:900;
  letter-spacing:.11em;
}

.link-student-story-v13-copy h1{
  color:var(--v13-navy);
  font-size:clamp(38px,5.2vw,68px);
  line-height:1.02;
  margin:9px 0 16px;
}

.link-student-story-v13-copy p{
  color:var(--v13-muted);
  font-size:18px;
  line-height:1.6;
  max-width:720px;
}

.link-student-story-v13-copy .actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

/* Student page should show ONLY the canonical public header. */
body.link-v13-student-page > header:not(.site-header),
body.link-v13-student-page > nav:not(.main-nav){
  display:none !important;
}

/* Never let the old internal student brand/nav take over again. */
body.link-v13-student-page .student-site-header,
body.link-v13-student-page .student-nav,
body.link-v13-student-page .student-header,
body.link-v13-student-page .ecosystem-nav{
  display:none !important;
}

@media(max-width:860px){
  .link-student-story-v13{
    grid-template-columns:1fr;
    padding:22px;
  }
  .link-student-story-v13-visual img{max-width:620px}
}


/* Dedicated V13 student cleanup safety layer. */
body.link-v13-student-page .link-student-story-v13 + .hero[hidden],
body.link-v13-student-page .link-student-story-v13 ~ .intro[hidden]{
  display:none !important;
}
