:root{
  /* ATMP Norway logo based palette */
  --atmp-navy:#001F64;
  --atmp-navy-2:#001646;
  --atmp-blue:#001F64;
  --atmp-red:#CE0000;
  --atmp-red-dark:#A50000;
  --atmp-sky:#eaf1fb;
  --atmp-sky-2:#f6f9fd;
  --atmp-ice:#f8fafc;
  --atmp-muted:#667085;
  --atmp-text:#101828;
  --atmp-line:#d9e2ef;
  --atmp-teal:#0f6b7a;
  --atmp-gold:#b28a2e;
}

body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--atmp-text);line-height:1.55;background:#fff;}
a{text-decoration:none;color:var(--atmp-navy)}
a:hover{color:var(--atmp-red)}
.text-muted-atmp{color:var(--atmp-muted)!important}.bg-soft{background:var(--atmp-sky-2)}.bg-navy{background:var(--atmp-navy)!important}.text-blue{color:var(--atmp-navy)!important}.border-soft{border-color:var(--atmp-line)!important}.shadow-atmp{box-shadow:0 22px 50px rgba(0,31,100,.10)!important}.rounded-atmp{border-radius:1rem!important}

.navbar{min-height:74px;background:rgba(255,255,255,.96)!important;backdrop-filter:saturate(160%) blur(10px);box-shadow:0 1px 0 rgba(0,31,100,.07)}
.navbar.border-bottom{border-bottom-color:rgba(0,31,100,.10)!important}.navbar-brand{padding-top:.35rem;padding-bottom:.35rem}.brand-logo{height:46px;width:auto;display:block}.brand-mark{width:38px;height:38px;border-radius:7px;background:var(--atmp-navy);display:inline-block}.brand-text{font-weight:800;line-height:1;letter-spacing:-.04em}.brand-text small{display:block;color:var(--atmp-red);font-size:.72rem;letter-spacing:.05em}.nav-link{font-size:.92rem;color:#4b5870;font-weight:600;position:relative}.nav-link.active,.nav-link:hover{color:var(--atmp-navy)!important}.nav-link.active:after{content:"";position:absolute;left:.5rem;right:.5rem;bottom:.15rem;height:2px;background:var(--atmp-red);border-radius:999px}.navbar-toggler{border-color:var(--atmp-line)}

.btn{font-weight:800;border-radius:.45rem;padding:.72rem 1.45rem;line-height:1.05}.btn-navy{background:var(--atmp-navy);color:#fff;box-shadow:0 12px 26px rgba(0,31,100,.18)}.btn-navy:hover{background:var(--atmp-navy-2);color:#fff}.btn-outline-atmp{border:1px solid var(--atmp-line);background:#fff;color:var(--atmp-navy)}.btn-outline-atmp:hover{border-color:var(--atmp-navy);color:var(--atmp-navy);background:var(--atmp-sky)}.btn-blue{background:var(--atmp-red);color:#fff}.btn-blue:hover{background:var(--atmp-red-dark);color:#fff}

.hero{padding:7rem 0 7.5rem}.eyebrow{display:inline-flex;align-items:center;justify-content:center;padding:.25rem 4.8rem;border:1px solid #c9d8ef;background:var(--atmp-sky);color:var(--atmp-navy);border-radius:999px;font-size:.7rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;line-height:1.1}.eyebrow:before{content:"";width:.44rem;height:.44rem;border-radius:50%;background:var(--atmp-red);margin-right:.55rem}.hero-title{font-size:clamp(2.6rem,6vw,5rem);line-height:1.02;letter-spacing:-.06em;max-width:900px;color:var(--atmp-navy)}.lead-atmp{font-size:1.12rem;color:var(--atmp-muted)}.section{padding:5.5rem 0}.page-head{padding:4.5rem 0;background:linear-gradient(180deg,var(--atmp-sky-2),#fff)}.page-head-dark{padding:4.5rem 0;background:var(--atmp-navy);color:#fff}.page-title{font-size:clamp(2.25rem,4vw,3.25rem);letter-spacing:-.04em;color:var(--atmp-navy)}

.card-atmp{border:1px solid var(--atmp-line);border-radius:1rem;background:#fff;box-shadow:0 3px 10px rgba(0,31,100,.04)}.card-atmp:hover{box-shadow:0 12px 30px rgba(0,31,100,.08)}.image-slot{min-height:255px;background:linear-gradient(135deg,var(--atmp-sky),var(--atmp-navy));color:#fff;display:flex;align-items:flex-end;padding:1.4rem;font-size:.78rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;position:relative;overflow:hidden;background-size:cover;background-position:center;text-shadow:0 2px 8px rgba(0,0,0,.45)}.image-slot.tall{min-height:520px;border-radius:1rem;box-shadow:0 22px 50px rgba(0,31,100,.12)}.image-slot.dark{background:var(--atmp-navy)}.dot{width:30px;height:30px;border-radius:50%;background:var(--atmp-sky);display:inline-block;flex:0 0 auto;border:1px solid rgba(0,31,100,.10)}.dot:nth-child(2n),.partner-dot:after{background:var(--atmp-red)}

.timeline{position:relative}.timeline:before{content:"";position:absolute;left:0;right:0;top:28px;height:2px;background:#dfe7f4}.timeline-dot{width:56px;height:56px;border-radius:50%;background:var(--atmp-navy);box-shadow:0 8px 20px rgba(0,31,100,.18);position:relative;margin:0 auto 1.5rem}.pill-atmp{border:1px solid var(--atmp-line);background:#fff;border-radius:999px;padding:.65rem 2rem;font-weight:800;color:#52637c}.pill-atmp.active{background:var(--atmp-navy);color:#fff;box-shadow:0 8px 18px rgba(0,31,100,.16)}.badge-atmp,.tag{display:inline-flex;background:var(--atmp-red);color:#fff;border-radius:4px;padding:.2rem .8rem;font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.tag{font-size:.65rem;padding:.25rem .55rem}.number-dot{width:40px;height:40px;border-radius:50%;background:var(--atmp-navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.governance-row{border-left:4px solid var(--atmp-red);background:var(--atmp-sky-2);padding:1.15rem;margin-top:1rem}.governance-row.teal{border-left-color:var(--atmp-teal)}.governance-row.navy{border-left-color:var(--atmp-navy)}

.mission-card{min-height:270px;padding:3rem;color:#fff}.mission-card[style*="--atmp-blue"]{background:var(--atmp-navy-2)!important}.stat{border:1px solid var(--atmp-line);background:#fff;border-radius:.5rem;padding:1rem 1.25rem}.stat strong{display:block;color:var(--atmp-navy);font-size:2rem;line-height:1}.partner-dot{width:64px;height:64px;border-radius:50%;background:#fff;margin:0 auto 1rem;box-shadow:0 8px 22px rgba(0,31,100,.06);position:relative;border:1px solid var(--atmp-line)}.partner-dot:after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;right:10px;top:10px}.role-label{font-size:.75rem;color:var(--atmp-navy);font-weight:900;text-transform:uppercase;letter-spacing:.08em}.role-label:before{content:"";display:inline-block;width:.45rem;height:.45rem;background:var(--atmp-red);border-radius:50%;margin-right:.45rem;vertical-align:.08rem}

.staff-photo{aspect-ratio:1/1;background:var(--atmp-sky-2);border-bottom:1px solid var(--atmp-line);padding:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.staff-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.news-feature{border:1px solid var(--atmp-line);border-radius:1.25rem;overflow:hidden}.news-feature-content{padding:3.5rem 4.25rem}.meta{font-size:.75rem;color:var(--atmp-muted);display:flex;gap:.75rem;align-items:center;margin-bottom:1rem}.link-atmp{color:var(--atmp-navy);font-weight:900;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}.link-atmp:hover{color:var(--atmp-red)}

.form-control,.form-select{border:1px solid #6b7d99;background:#fbfdff;padding:.95rem 1rem;border-radius:.45rem}.form-control:focus,.form-select:focus{border-color:var(--atmp-navy);box-shadow:0 0 0 .2rem rgba(0,31,100,.08)}.upload-box{border:2px dashed #6b7d99;border-radius:.75rem;text-align:center;padding:4.5rem 1.5rem;color:var(--atmp-muted);background:var(--atmp-sky-2)}.contact-icon{width:38px;height:38px;border-radius:7px;background:var(--atmp-sky);border:1px solid rgba(0,31,100,.08)}.map-slot{min-height:320px;background:var(--atmp-sky-2);display:flex;align-items:center;justify-content:center;text-align:center;color:var(--atmp-muted)}.map-pin{width:64px;height:64px;border-radius:50%;background:#fff;box-shadow:0 14px 30px rgba(0,31,100,.14);margin:0 auto 1.25rem;border-top:4px solid var(--atmp-red)}.capability-card{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14)}

.footer{background:var(--atmp-navy);color:#fff;padding:4.2rem 0 2rem}.footer-bg-image{background-image:url("../img/bg_footer.edcc37a7b54b.webp");background-size:cover;background-position:center center;background-repeat:no-repeat}.footer a,.footer p,.footer small{color:#c5cede}.footer a:hover{color:#fff}.footer .footer-heading{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.footer .footer-brand{font-size:1.25rem;line-height:1.2;color:#fff}.footer .footer-brand:after{content:"";display:block;width:34px;height:3px;background:var(--atmp-red);border-radius:999px;margin-top:.75rem}.article-body{font-size:1.12rem;color:#334155}.article-body .intro{font-size:1.35rem;line-height:1.55;color:var(--atmp-text)}.article-body h2{font-size:1.9rem;line-height:1.15;letter-spacing:-.035em;color:var(--atmp-navy);margin:2.75rem 0 .9rem}.article-body blockquote{margin:2.5rem 0;padding:1.75rem 2rem;border-left:4px solid var(--atmp-red);background:var(--atmp-sky-2);border-radius:0 .85rem .85rem 0;color:var(--atmp-text);font-size:1.35rem;line-height:1.45;font-weight:700}.text-panel{background:#fff;border:1px solid var(--atmp-line);border-radius:1rem;padding:2.5rem;box-shadow:0 14px 32px rgba(0,31,100,.06)}.text-panel p{color:var(--atmp-muted);font-size:1.05rem;line-height:1.75}.text-callout{background:var(--atmp-sky-2);border-left:4px solid var(--atmp-red);border-radius:0 .75rem .75rem 0;padding:1.25rem 1.4rem;margin:1.75rem 0;color:#334155}.sticky-aside{position:sticky;top:100px}

/* Project image and logo updates */
.image-slot>*{position:relative;z-index:1}.image-facility{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/john-ugelstads-hus-radium-06.4c7f4944df4b.webp")}.image-team{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/lab1.90604355db91.jpg")}.image-news{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/lab6.8e7486e81d43.jpg")}.image-science{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/lab.a826ad751e55.jpg")}.image-facility-wide{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/john-ugelstads-hus-radium-06.4c7f4944df4b.webp")}.image-article{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/laborator.b8c55fbf1b12.png")}.image-featured{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/home.244d3ce48b59.png")}.image-training{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/lab1.90604355db91.jpg")}.image-event{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),url("../img/lab6.8e7486e81d43.jpg")}

@media (max-width:991.98px){.navbar .btn{margin-top:.6rem}.hero{padding:5rem 0}.eyebrow{padding:.25rem 1.8rem}.timeline:before{display:none}.news-feature-content{padding:2.2rem}.sticky-aside{position:static}.image-slot.tall{min-height:320px}.section{padding:4rem 0}.nav-link.active:after{left:0;right:auto;width:34px;bottom:-.05rem}}
@media (max-width:575.98px){.brand-logo{height:38px}.eyebrow{padding:.25rem 1.1rem}}


/* Entry process step number fix */
.step-icon.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  text-align: center;
  line-height: 1;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
}

/* Document list — file cards (document_list.html) */
.doc-file{display:flex;align-items:center;gap:1.1rem;height:100%;padding:1rem 1.25rem;color:var(--atmp-text);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.doc-file:hover{color:var(--atmp-text);border-color:#c3d3ec;transform:translateY(-1px)}
/* The file glyph: a sheet of paper with a folded top-right corner, its type
   ribbon tinted by --file-accent (mapped per extension below). */
.doc-file-icon{--file-accent:var(--atmp-navy);position:relative;flex:0 0 auto;display:flex;align-items:flex-end;width:48px;height:60px;background:#fff;border:1px solid var(--atmp-line);border-radius:.4rem;box-shadow:0 2px 6px rgba(0,31,100,.06);overflow:hidden}
.doc-file-icon::after{content:"";position:absolute;top:-1px;right:-1px;width:15px;height:15px;background:var(--atmp-sky-2);border-left:1px solid var(--atmp-line);border-bottom:1px solid var(--atmp-line);border-bottom-left-radius:.35rem}
.doc-file-ext{display:block;width:100%;padding:.2rem .1rem;background:var(--file-accent);color:#fff;font-size:.56rem;font-weight:900;letter-spacing:.04em;text-align:center}
.doc-file-icon[data-ext="pdf"]{--file-accent:var(--atmp-red)}
.doc-file-icon[data-ext="doc"],.doc-file-icon[data-ext="docx"],.doc-file-icon[data-ext="txt"],.doc-file-icon[data-ext="md"]{--file-accent:var(--atmp-navy)}
.doc-file-icon[data-ext="xls"],.doc-file-icon[data-ext="xlsx"],.doc-file-icon[data-ext="csv"]{--file-accent:var(--atmp-teal)}
.doc-file-icon[data-ext="ppt"],.doc-file-icon[data-ext="pptx"]{--file-accent:var(--atmp-gold)}
.doc-file-icon[data-ext="zip"]{--file-accent:var(--atmp-muted)}
.doc-file-body{flex:1 1 auto;min-width:0}
.doc-file-name{display:block;font-weight:800;line-height:1.25;color:var(--atmp-navy);overflow-wrap:anywhere}
.doc-file:hover .doc-file-name{color:var(--atmp-red)}
.doc-file-meta{display:block;margin-top:.15rem;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--atmp-muted)}
.doc-file-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--atmp-sky);color:var(--atmp-navy);border:1px solid var(--atmp-line);transition:background .15s ease,color .15s ease,border-color .15s ease}
.doc-file:hover .doc-file-action{background:var(--atmp-navy);color:#fff;border-color:var(--atmp-navy)}

/* Newsletter signup notice (newsletter_cta.html) */
.newsletter-notice{max-width:32rem}

.step-icon.dot .step-number {
  display: block;
  line-height: 1;
  transform: translateY(1px);
}

/* Event landing page */
.event-landing-page .event-hero{
  padding:5.8rem 0 5rem;
  background:linear-gradient(180deg,var(--atmp-sky-2),#fff);
  overflow:hidden;
}
.event-landing-page .event-title{
  font-size:clamp(2.45rem,5.5vw,4.9rem);
  line-height:1.03;
  letter-spacing:-.06em;
  color:var(--atmp-navy);
  font-weight:900;
}
.event-landing-page .event-meta-card{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  overflow:hidden;
  border:1px solid var(--atmp-line);
  border-radius:1rem;
  background:var(--atmp-line);
  box-shadow:0 12px 26px rgba(0,31,100,.06);
}
.event-landing-page .event-meta-card div{
  background:#fff;
  padding:1rem 1.1rem;
}
.event-landing-page .event-meta-card span{
  display:block;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--atmp-muted);
  margin-bottom:.25rem;
}
.event-landing-page .event-meta-card strong{
  display:block;
  color:var(--atmp-navy);
  font-size:.95rem;
  line-height:1.25;
}
.event-landing-page .event-hero-image{
  min-height:560px;
  border-radius:1.35rem;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
  box-shadow:0 28px 70px rgba(0,31,100,.16);
}
.event-landing-page .event-hero-image:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,31,100,0) 40%,rgba(0,22,70,.72));
}
.event-landing-page .image-event-main{
  background-image:linear-gradient(180deg,rgba(0,31,100,.02),rgba(0,22,70,.18)),url("../img/lab6.8e7486e81d43.jpg");
}
.event-landing-page .event-image-label{
  position:absolute;
  left:1.5rem;
  bottom:1.5rem;
  z-index:2;
  background:rgba(255,255,255,.92);
  color:var(--atmp-navy);
  border-radius:999px;
  padding:.65rem 1rem;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.event-landing-page .event-info-card .number-dot{
  background:var(--atmp-navy);
}
.event-landing-page .event-info-card:nth-child(1) .number-dot{
  box-shadow:0 0 0 5px rgba(206,0,0,.08);
}
.event-landing-page .event-agenda{
  border:1px solid var(--atmp-line);
  border-radius:1rem;
  overflow:hidden;
  background:#fff;
}
.event-landing-page .event-agenda-row{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:1.35rem;
  padding:1.35rem 1.5rem;
  border-bottom:1px solid var(--atmp-line);
}
.event-landing-page .event-agenda-row:last-child{
  border-bottom:0;
}
.event-landing-page .event-agenda-row time{
  color:var(--atmp-red);
  font-weight:900;
  letter-spacing:.04em;
}
.event-landing-page .event-agenda-row h3{
  margin:0 0 .25rem;
  font-weight:800;
  color:var(--atmp-navy);
}
.event-landing-page .event-agenda-row p{
  margin:0;
  color:var(--atmp-muted);
}
.event-landing-page .event-audience-pill{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:999px;
  padding:.85rem 1rem;
  font-weight:800;
  text-align:center;
}
.event-landing-page .event-quote-card{
  background:#fff;
  color:var(--atmp-navy);
  border-radius:1.2rem;
  padding:2.6rem;
  box-shadow:0 22px 50px rgba(0,0,0,.12);
  border-top:5px solid var(--atmp-red);
}
.event-landing-page .event-quote-card p{
  font-size:1.45rem;
  line-height:1.35;
  font-weight:800;
  letter-spacing:-.03em;
  margin-bottom:1.25rem;
}
.event-landing-page .event-quote-card span{
  color:var(--atmp-muted);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.72rem;
}
.event-landing-page .event-registration-note{
  border-left:4px solid var(--atmp-red);
  background:var(--atmp-sky-2);
  border-radius:0 .85rem .85rem 0;
  padding:1.15rem 1.25rem;
  color:#334155;
  font-weight:700;
}
@media (max-width:991.98px){
  .event-landing-page .event-hero{padding:4.2rem 0;}
  .event-landing-page .event-hero-image{min-height:380px;}
}
@media (max-width:767.98px){
  .event-landing-page .event-meta-card{grid-template-columns:1fr;}
  .event-landing-page .event-agenda-row{grid-template-columns:1fr;gap:.35rem;}
  .event-landing-page .event-quote-card{padding:1.7rem;}
  .event-landing-page .event-quote-card p{font-size:1.2rem;}
}

/* Simple event landing page */
.simple-event-page .simple-event-image {
  display: block;
  height: 460px;
  object-fit: cover;
  object-position: center;
}

.simple-event-page .simple-event-kicker {
  color: #CE0000;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.simple-event-page .simple-event-info {
  border-left: 4px solid #CE0000;
}

@media (max-width: 767.98px) {
  .simple-event-page .simple-event-image {
    height: 300px;
  }
}


/* Compact buttons in the top navigation */
.navbar .nav-actions {
  align-items: center;
}

.navbar .nav-actions .btn {
  padding: 0.42rem 0.78rem;
  font-size: 0.82rem;
  line-height: 1.12;
  border-radius: 0.38rem;
  min-height: 0;
  white-space: nowrap;
}

.navbar .nav-actions .btn-navy {
  min-width: 76px;
}

@media (max-width: 991.98px) {
  .navbar .nav-actions {
    align-items: flex-start;
  }

  .navbar .nav-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.6rem;
  }
}

/* Article sharing */
.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.article-share-label {
  color: var(--atmp-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-share-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--atmp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--atmp-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.article-share-link:hover {
  background: var(--atmp-navy);
  border-color: var(--atmp-navy);
  color: #fff;
  transform: translateY(-1px);
}

.article-share-button {
  padding: 0;
  cursor: pointer;
}

.article-share-button.is-copied {
  background: var(--atmp-red);
  border-color: var(--atmp-red);
  color: #fff;
}

@media (max-width: 575.98px) {
  .article-meta-bar {
    align-items: flex-start;
  }

  .article-share {
    width: 100%;
    margin-left: 0;
  }
}

/* Layout utility classes replacing previous inline styles */
.container-narrow {
  max-width: 860px;
}

.container-article {
  max-width: 980px;
}

.max-width-760 {
  max-width: 760px;
}

.max-width-680 {
  max-width: 680px;
}

.text-on-navy-muted {
  color: #d8e0ec;
}

.bg-atmp-blue {
  background: var(--atmp-blue);
}

.form-textarea-large {
  min-height: 170px;
}

.step-icon-lg {
  width: 62px;
  height: 62px;
}

/* Timeline ("How it Works"). Three layouts from one markup:
   - lg+   : steps side by side, connector line between the dots
   - sm/md : two steps per row, centred, no connector
   - phones: dots in a left rail with the text beside them and the line
             running down between them (a horizontal row of 4 steps on a
             375px screen leaves ~120px per step, which reads as a column
             of single words).
   The step columns are `col-12 col-sm-6 col-lg`, so the dot colours below
   key off child position rather than a `.col` class, and each step can
   override its own colour from the CMS. */
.timeline {
  position: relative;
}

/* Full-width rule from the original design; the per-step segments below
   replace it so the line never runs behind the text. */
.timeline::before {
  display: none;
}

.timeline > * {
  position: relative;
  /* Without this, a long word (e.g. "Application") stretches its own step
     wider than the others and the dots stop being evenly spaced. */
  min-width: 0;
}

/* Dot fill. The automatic navy/red/teal sequence sets --timeline-dot-fill on
   the step, so a `timeline-dot--*` class set on the dot itself (from the
   block's "Dot colour" field) always wins: a custom property declared on the
   element beats one inherited from its parent, whatever the selectors weigh. */
.timeline-dot {
  background: var(--timeline-dot-fill, var(--atmp-navy));
  z-index: 1;
}

.timeline > *:nth-child(2) {
  --timeline-dot-fill: var(--atmp-red);
}

.timeline > *:nth-child(3) {
  --timeline-dot-fill: var(--atmp-teal);
}

.timeline-dot--navy {
  --timeline-dot-fill: var(--atmp-navy);
}

.timeline-dot--red {
  --timeline-dot-fill: var(--atmp-red);
}

.timeline-dot--teal {
  --timeline-dot-fill: var(--atmp-teal);
}

/* Connector between dots, only while the steps share one line. */
@media (min-width: 992px) {
  .timeline > *:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: #dfe7f4;
    z-index: 0;
  }
}

@media (max-width: 575.98px) {
  .timeline > * {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 1rem;
    align-items: start;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  /* Label and description share the second column, stacked. */
  .timeline > * > :not(.timeline-dot) {
    grid-column: 2;
  }

  /* Vertical rail: from under one dot down to the top of the next. Bootstrap
     puts the vertical gutter on the step as margin-top and the horizontal
     one as padding, so `bottom: -gutter-y` lands on the next dot and the
     line stays centred under this one even if the gutters change. */
  .timeline > *:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    bottom: calc(-1 * var(--bs-gutter-y, 1.5rem));
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 21px);
    width: 2px;
    background: #dfe7f4;
  }

  .timeline > * > :last-child {
    margin-bottom: 0;
  }
}

/* Partner and collaborator logos */
.logo-section{background:#fff;}
.logo-kicker{font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--atmp-red);}
.logo-card{height:128px;border:1px solid var(--atmp-line);border-radius:1rem;background:#fff;box-shadow:0 8px 22px rgba(0,31,100,.04);display:flex;align-items:center;justify-content:center;padding:1.45rem;transition:box-shadow .2s ease,transform .2s ease;}
.logo-card:hover{box-shadow:0 14px 32px rgba(0,31,100,.09);transform:translateY(-2px);}
.logo-card img{max-width:100%;max-height:74px;width:auto;height:auto;object-fit:contain;display:block;}
.logo-card.logo-card-photo img{max-height:86px;}
.logo-card.logo-card-wide img{max-height:58px;}
@media (max-width:575.98px){.logo-card{height:112px;padding:1.1rem;}}

/* Uploaded-image variant of .image-slot: same navy gradient overlay as the
   baked-in .image-* presets, with the photo supplied via the --image-src
   custom property (set inline in the template). */
.image-slot.image-photo{background-image:linear-gradient(180deg,rgba(0,31,100,.03),rgba(0,22,70,.68)),var(--image-src);}

/* Listing-card thumbnails (news, events, card grids). The Wagtail `fill-`
   renditions already crop to 3:2 around any focal point set in the admin;
   pinning the display box to that same 3:2 ratio stops the browser from
   cropping a second time, so one landscape image looks identical in every
   card. Text sits beside/below these boxes (never over them), so the dark
   legibility overlay is dropped here and the photo shows in full. */
.card-media{aspect-ratio:3/2;min-height:0}
/* Light branded tint shows through while the photo loads, or as a graceful
   placeholder if the source image is ever missing (no more blank white box). */
.card-media.image-photo{background-color:var(--atmp-sky-2);background-image:var(--image-src)}
/* Featured news card is side-by-side on desktop: let the image sit flush
   at the top-left instead of stretching to the text height. */
.news-feature .row{align-items:flex-start}
/* News images are event posters (wide, with text running to the edges), so any
   crop slices off letters. The templates request `max-` (not `fill-`) renditions
   so Wagtail no longer crops, and `contain` fits the whole poster inside the
   card — the light tint frames whatever letterboxing remains. */
.template-newsindex .card-media.image-photo,
.image-slot.article-hero{background-size:contain;background-repeat:no-repeat;background-position:center}
/* Article detail hero: standalone banner with no overlaid text, shown in full
   (rounded corners + shadow carried over from the old `.tall` variant). */
.image-slot.article-hero{aspect-ratio:2/1;min-height:0;background-color:var(--atmp-sky-2);background-image:var(--image-src);border-radius:1rem;box-shadow:0 22px 50px rgba(0,31,100,.12)}

/* Skip-to-content link (WCAG 2.4.1 Bypass Blocks): off-screen until focused,
   then slides into the top-left corner as a clearly visible navy chip. */
.skip-link{position:fixed;left:1rem;top:-4rem;z-index:2000;background:var(--atmp-navy);color:#fff;padding:.7rem 1.15rem;border-radius:.45rem;font-weight:800;box-shadow:0 12px 26px rgba(0,31,100,.18);transition:top .15s ease}
.skip-link:focus,.skip-link:focus-visible{top:1rem;color:#fff;outline:3px solid #fff;outline-offset:2px}
#content:focus{outline:none}
@media (prefers-reduced-motion:reduce){.skip-link{transition:none}}

/* Event meta card rendered as a definition list (WCAG 1.3.1): keep the grid
   cells tight — the term/value pairs sit inside each .event-meta-card div. */
.event-landing-page .event-meta-card dt,.event-landing-page .event-meta-card dd{margin:0}
