/* FIX2806: Active stylesheet, loaded from base.html AFTER existing styles. No new header. */
/* Responsive course labs links. */
.nga2805-course-links{display:flex!important;gap:10px;flex-wrap:wrap;margin:16px 0 18px;align-items:center}
.nga2805-course-links a{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;padding:10px 17px!important;border:1px solid #bcd5ef!important;border-radius:10px!important;background:#f2f7ff!important;color:#1258a5!important;font-size:14px!important;font-weight:750!important;text-decoration:none!important;line-height:1.35!important}
.nga2805-course-links a:last-child{background:#1767e9!important;border-color:#1767e9!important;color:#fff!important}
.nga2805-course-links a:focus-visible,.nga2805-lab-card:focus-visible{outline:3px solid #71a9ff;outline-offset:2px}
.nga2805-labs-section{scroll-margin-top:88px;padding:32px 0 40px!important;background:#f5f8fd}
.nga2805-labs-section>.wrap{width:calc(100% - 40px);max-width:1280px;margin-inline:auto}
.nga2805-labs-heading h2{font-size:clamp(24px,2.4vw,32px);line-height:1.2;margin:8px 0}
.nga2805-labs-heading p{margin:0 0 20px;line-height:1.6;color:#586d84}
.nga2805-labs-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}
.nga2805-labs-grid .nga2805-lab-card{box-sizing:border-box;min-width:0;display:flex!important;flex-direction:column;gap:11px;padding:20px!important;border:1px solid #d6e3f2!important;border-radius:16px!important;background:#fff!important;text-decoration:none!important;box-shadow:0 6px 18px rgba(13,48,93,.055);overflow-wrap:anywhere;transition:border-color .15s,box-shadow .15s}
.nga2805-labs-grid .nga2805-lab-card:hover{border-color:#7daeea!important;box-shadow:0 10px 28px rgba(13,48,93,.11)}
.nga2805-lab-card .nga2805-lab-type{display:block;color:#61758c;font-size:12px;font-weight:650;line-height:1.45}
.nga2805-lab-card b{display:block;color:#15365b;font-size:17px;line-height:1.38}
.nga2805-lab-card>span:last-child{display:block;margin-top:auto;padding-top:7px;color:#1165c2;font-size:13px;font-weight:800}
@media(max-width:1000px){.nga2805-labs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  /* Existing mobile header: shrink, align, never create a second header. */
  .site-header>.nav,.site-header .wrap.nav{min-height:64px!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding-top:7px!important;padding-bottom:7px!important}
  .site-header .network-guide-academy-brand{min-width:0!important;max-width:calc(100% - 72px)!important;flex:0 1 auto!important;gap:7px!important}
  .site-header .network-guide-academy-brand .networktech-mark{width:42px!important;height:42px!important;flex:0 0 42px!important}
  .site-header .network-guide-academy-brand .networktech-mark img{width:42px!important;height:42px!important;object-fit:contain!important}
  .site-header .network-guide-academy-brand .networktech-wordmark{min-width:0!important;max-width:100%!important}
  .site-header .network-guide-academy-brand .networktech-name{font-size:clamp(10px,3vw,14px)!important;line-height:1.15!important;white-space:normal!important}
  .site-header .network-guide-academy-brand .networktech-slogan{font-size:clamp(5.5px,1.48vw,8px)!important;letter-spacing:0!important;line-height:1.35!important}
  /* Duplicate global crumbs are removed only on individual resource topic pages. */
  body.resource-topic-page .breadcrumb-bar{display:none!important}
  body.resource-topic-page .resource-topic-pagehead{padding:18px 0 14px!important;min-height:0!important}
  body.resource-topic-page .resource-topic-pagehead .wrap{width:calc(100% - 32px)!important;max-width:100%!important;min-width:0!important}
  body.resource-topic-page .resource-topic-pagehead .resource-breadcrumb{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;white-space:nowrap!important;gap:8px!important;margin:0 0 13px!important;padding:0 0 5px!important;scrollbar-width:thin;max-width:100%}
  body.resource-topic-page .resource-breadcrumb>*{flex-shrink:0!important}
  body.resource-topic-page .resource-topic-title-row{display:flex!important;flex-direction:column!important;gap:12px!important}
  body.resource-topic-page .resource-topic-title-row>div:first-child{width:100%!important;min-width:0!important}
  body.resource-topic-page .resource-topic-title-row h1{font-size:clamp(27px,7vw,35px)!important;line-height:1.12!important;margin:10px 0!important;letter-spacing:-.03em!important;overflow-wrap:break-word!important}
  body.resource-topic-page .resource-topic-title-row p{margin:0!important;font-size:14px!important;line-height:1.6!important}
  body.resource-topic-page .resource-topic-primary-actions{width:100%!important;justify-content:flex-start!important;display:flex!important;gap:9px!important;flex-wrap:wrap!important}
  body.resource-topic-page .resource-topic-reader{padding-top:12px!important}
  body.resource-topic-page .resource-topic-reader .wrap{width:calc(100% - 32px)!important;max-width:100%!important}
  body.resource-topic-page .resource-topic-reader .content-block{padding-top:16px!important;padding-bottom:16px!important;margin-bottom:12px!important}
  body.resource-topic-page .resource-topic-reader .resource-public-description,body.resource-topic-page .resource-topic-reader .resource-paid-preview{padding:15px!important}
  .nga2805-labs-section{padding:24px 0 28px!important}
  .nga2805-labs-section>.wrap{width:calc(100% - 32px)!important}
  .nga2805-labs-grid{grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
  .nga2805-labs-grid .nga2805-lab-card{padding:17px!important}
  .nga2805-course-links{display:flex!important;flex-wrap:nowrap!important;max-width:100%;overflow-x:auto!important;gap:7px!important;padding-bottom:7px}
  .nga2805-course-links a{flex:0 0 auto!important;padding:9px 13px!important;font-size:12px!important}
}
@media(max-width:380px){.site-header .network-guide-academy-brand .networktech-mark{width:36px!important;height:36px!important;flex-basis:36px!important}.site-header .network-guide-academy-brand .networktech-mark img{width:36px!important;height:36px!important}}

/* FIX2807: compact Labs Guide cards and correct curriculum target */
#course-curriculum{scroll-margin-top:95px!important}
.nga2805-labs-grid .nga2805-lab-card{
  min-height:102px!important;height:auto!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;align-items:center!important;
  gap:5px 14px!important;padding:15px 19px!important;
}
.nga2805-lab-card .nga2805-lab-type{
  grid-column:1;grid-row:1;font-size:11px!important;line-height:1.2!important
}
.nga2805-lab-card b{
  grid-column:1;grid-row:2;font-size:17px!important;line-height:1.3!important
}
.nga2805-lab-card>span:last-child{
  grid-column:2;grid-row:1 / 3;align-self:center!important;
  margin:0!important;padding:0!important;white-space:nowrap;
  font-size:12px!important
}
@media(max-width:700px){
  #course-curriculum{scroll-margin-top:80px!important}
  .nga2805-labs-grid .nga2805-lab-card{min-height:94px!important;padding:14px!important;gap:6px 9px!important}
  .nga2805-lab-card b{font-size:15px!important}
  .nga2805-lab-card>span:last-child{white-space:normal!important;max-width:85px;text-align:right}
}

/* FIX2808: compact lab cards — prevent grid stretching and large inherited heights. */
.nga2805-labs-section .nga2805-labs-grid{
  grid-auto-rows:max-content!important;
  align-items:start!important;
  align-content:start!important;
  gap:12px!important;
}
.nga2805-labs-section .nga2805-labs-grid>a.nga2805-lab-card{
  box-sizing:border-box!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  align-self:start!important;
  padding:12px 16px!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:min-content min-content!important;
  align-items:center!important;
  align-content:center!important;
  gap:3px 12px!important;
}
.nga2805-labs-section .nga2805-lab-card .nga2805-lab-type{
  grid-column:1!important;grid-row:1!important;
  margin:0!important;padding:0!important;
  font-size:11px!important;line-height:1.2!important;
}
.nga2805-labs-section .nga2805-lab-card b{
  grid-column:1!important;grid-row:2!important;
  margin:0!important;padding:0!important;
  font-size:16px!important;line-height:1.3!important;
}
.nga2805-labs-section .nga2805-lab-card>span:last-child{
  grid-column:2!important;grid-row:1 / 3!important;
  align-self:center!important;margin:0!important;padding:0!important;
  font-size:12px!important;line-height:1.2!important;
}
@media(max-width:700px){
  .nga2805-labs-section .nga2805-labs-grid>a.nga2805-lab-card{padding:11px 13px!important;gap:3px 7px!important;}
  .nga2805-labs-section .nga2805-lab-card b{font-size:14px!important;}
  .nga2805-labs-section .nga2805-lab-card>span:last-child{max-width:76px!important;white-space:normal!important;text-align:right!important;}
}
