/* Optional page-specific styles */


/* FAQ */
.faq details{
  background: rgba(246,241,231,0.7);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 10px 26px rgba(1,34,47,.06);
}
.faq summary{
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  outline: none;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary:after{
  content: "+";
  float:right;
  font-weight:900;
  color: var(--gold);
}
.faq details[open] summary:after{ content:"–"; }
.faq .answer{ padding-top: 10px; color: var(--text); }

/* Quiz */
.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.pill input{ accent-color: var(--teal); }
.quiz__q{ padding: 14px 14px; border:1px solid var(--hair); border-radius: var(--radius); background: rgba(255,255,255,0.72); margin: 12px 0; }
.quiz__q .card__title{ margin:0; }

/* Steps list */
.steps{ padding-left: 20px; }
.steps li{ margin: 10px 0; color: var(--text); }
.steps b{ color: var(--navy); }


/* Breadcrumbs */
.breadcrumbs{font-size:14px;margin:10px 0 20px;color:var(--muted);} 
.breadcrumbs a{color:inherit;text-decoration:none;border-bottom:1px solid transparent;} 
.breadcrumbs a:hover{border-bottom-color:currentColor;}
.breadcrumbs .sep{opacity:.6;margin:0 6px;}


/* === Card grids === */
.cardGrid3 {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
@media(max-width:1000px){
  .cardGrid3{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .cardGrid3{grid-template-columns:1fr;}
}

/* article cards */
.article-card{
  background:#fff;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.article-card .content{padding:22px;}
.tag-btn{
  border:1px solid var(--accent);
  background:transparent;
  border-radius:999px;
  padding:6px 14px;
  font-size:13px;
  cursor:pointer;
}
.tag-btn.active{background:var(--accent);color:white;}


/* Team cards */
.teamCard{ overflow:hidden; }
.teamCard__body{ padding: 18px; }
.teamCard__name{ margin: 12px 0 6px; font-size: 20px; }
.teamCard__role{ font-size: 13px; color: var(--muted); }
.teamCard__actions{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

/* Circular avatar placeholder */
.avatar{
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border: 1px solid var(--stroke);
  background: radial-gradient(circle at 30% 30%, rgba(184,150,76,.22), rgba(255,255,255,.7));
  box-shadow: var(--shadow-sm);
}
.avatar span{
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}

.online-city-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.online-city-directory li {
  display: flex;
  margin: 0;
}

.online-city-directory a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #b9cdd1;
  border-radius: 0.45rem;
  background: #fff;
  color: #01222f;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.online-city-directory a:hover,
.online-city-directory a:focus-visible {
  background: #edf5f4;
  text-decoration: underline;
}

.online-city-directory a:focus-visible {
  outline: 2px solid #126365;
  outline-offset: 2px;
}

/* Article-to-service links: accessible, compact, and visible near the introduction. */
.article-service-cta { margin-top: 1.25rem; }
.article-service-cta p { font-family: inherit; font-size: 1rem; line-height: 1.55; margin: 0 0 .8rem; }
.article-service-cta .btn { display: inline-block; max-width: 100%; white-space: normal; margin-bottom: .65rem; }
.article-service-cta p:last-child { margin-bottom: 0; }
.article-service-cta p:last-child a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }

/* Version 3: restrained, accessible typography and responsive page layouts. */
body main h1 {
  font-size: clamp(2rem, 3.2vw, 3.25rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.012em !important;
  font-weight: 400;
  margin: 0 0 1.1rem !important;
  max-width: 100% !important;
  overflow-wrap: break-word;
  white-space: normal !important;
  text-wrap: pretty;
  transform: none !important;
}
body main h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.35rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.012em !important;
  overflow-wrap: break-word;
  white-space: normal !important;
  transform: none !important;
}
body main h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
  white-space: normal !important;
  transform: none !important;
}
body main :is(h1,h2,h3) :is(em,span,strong) {
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  white-space: normal !important;
}
body main :is(h1,h2,h3) em { margin-left: 0 !important; display: inline !important; }
body main :is(h1,h2,h3) { word-break: normal !important; }
body main :is(section,header)[class$="-hero"] {
  padding-top: clamp(28px, 4vw, 56px) !important;
  padding-bottom: clamp(32px, 4vw, 64px) !important;
  min-height: 0 !important;
}
body main :is(section,header)[class$="-hero"] .breadcrumbs { margin-bottom: 1.5rem !important; }
body main :is(section,header)[class$="-hero"] [class$="__grid"] > * { min-width: 0; }
body main :is(.assessment-hero__second,.mva-hero__line,.wsib-hero__accent,.inner-hero__accent,.aleksei-credentials,.hero-thought) {
  font-size: clamp(1.35rem, 2vw, 1.9rem) !important;
  line-height: 1.35 !important;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  transform: none !important;
}
body.standout .home-hero { min-height: 0 !important; padding: 56px 0 32px !important; }
body.standout .home-hero__grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(24px,4vw,60px); }
body.standout .home-hero__copy,body.standout .home-hero__visual { min-width: 0; }
body.standout .home-hero h1 { font-size: clamp(2.15rem,3.5vw,3.5rem) !important; line-height: 1.19 !important; margin: 16px 0 18px !important; }
body.standout .home-hero__lead { font-size: 1.05rem !important; line-height: 1.65 !important; }
body.standout .home-hero__visual { min-height: 440px; }
body.standout .home-actions { margin-top: 24px; }
body .referrer-hero { background: #f9efe1; }
body .referrer-hero__grid { display: block; padding: 0; max-width: 900px; }
body .referrer-hero h1 { margin: 12px 0 16px !important; max-width: 830px !important; }
body .referrer-hero__aside { border: 0; padding: 0; margin: 0 0 28px; max-width: 740px; }
body .referrer-hero__aside p { font-family: var(--font-body,Arial,sans-serif); font-size: 1.05rem; line-height: 1.65; margin: 0 0 16px; }
body .referrer-hero__aside .referral-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
body .referrer-hero__aside .referral-actions .btn { white-space: normal; max-width: 100%; }
body .referrer-hero__aside .referral-actions .text-link { color: #174b50; font-size: 1rem; text-decoration: underline; }
body .referrer-audience { margin-top: 24px; }
body .professional-pathways { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
body .professional-pathways .panel { min-width: 0; background: #fff; border: 1px solid #c3d2cd; border-radius: 12px; box-shadow: none; }
body .professional-pathways .panel__inner { display: flex; flex-direction: column; height: 100%; padding: 24px; }
body .professional-pathways h3 { margin: 0 0 12px; }
body .professional-pathways p { flex: 1; line-height: 1.6; margin: 0 0 18px; }
body .professional-pathways .btn { white-space: normal; align-self: flex-start; max-width: 100%; }
body .referrer-route__heading > p,body .manifesto__grid > p { font-size: clamp(1.65rem,2.4vw,2.4rem) !important; line-height: 1.3 !important; }
@media(max-width:1000px) {
 body.standout .home-hero__grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
 body.standout .home-hero__visual { min-height: 360px; }
 body .professional-pathways { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
 body main h1,body.standout .home-hero h1 { font-size: clamp(1.9rem,6.2vw,2.4rem) !important; line-height: 1.25 !important; }
 body main h2 { font-size: 1.65rem !important; }
 body main h3 { font-size: 1.25rem !important; }
 body.standout .home-hero { padding: 30px 0 25px !important; }
 body.standout .home-hero__visual { min-height: 300px; }
 body .professional-pathways { grid-template-columns: minmax(0,1fr); }
 body .referrer-hero__aside .referral-actions { align-items: flex-start; flex-direction: column; }
}
