/* Active generated pages only. Historical studies and the Next app do not load this sheet. */
.fluid-layout{--page-gutter:clamp(16px,2.5vw,64px);--layout-gap:clamp(20px,2vw,40px);--tile-padding:clamp(24px,2.5vw,48px)}
.fluid-layout .wrap,.fluid-layout .wide{width:calc(100% - 2 * var(--page-gutter));max-width:none}
.fluid-layout.premium-page :is(.banner,.audience-intro){max-width:none}
.fluid-layout.project-nm-landevei-2026 .banner img{height:auto;aspect-ratio:1.8;object-fit:cover;object-position:center bottom}
.fluid-layout .page-nav{flex-wrap:wrap;gap:4px 24px}
.fluid-layout .intro{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:var(--layout-gap)}
.fluid-layout .intro-copy>p,.fluid-layout .partner-copy>p{max-width:65ch}
.fluid-layout .intro>p{max-width:65ch}
.fluid-layout .intro-copy .contact{max-width:65ch}
.fluid-layout .section-heading{gap:var(--layout-gap)}
.fluid-layout :is(.intro,.masthead,.contact-layout,.partnership,.history-layout,.company-inner,.calendar-layout)>*{min-width:0}

/* Full-width history, with optional detail remaining in the reading order. */
.fluid-layout:not(.tour-pilot) .history-layout{grid-template-columns:minmax(0,1fr);gap:40px}
.fluid-layout:not(.tour-pilot) .history-index{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);column-gap:var(--layout-gap)}
.fluid-layout:not(.tour-pilot) .history-index>:not(nav){grid-column:1}
.fluid-layout:not(.tour-pilot) .history-index nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:2;grid-row:1/4;margin:0;gap:12px 24px;align-content:start}
.fluid-layout:not(.tour-pilot) .history-index nav a{display:block;padding-block:6px;min-height:44px}
.fluid-layout:not(.tour-pilot) .history-index nav span{display:block}
.fluid-layout.project-team-drali-repsol .history-index{display:block}
.fluid-layout:not(.tour-pilot) .history-layout>.chapters{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--layout-gap)}
.fluid-layout:not(.tour-pilot) .history-layout>.chapters>.chapter{min-width:0;padding:var(--tile-padding);background:#fff;border-radius:16px;align-self:start}
.fluid-layout:not(.tour-pilot) .chapter>p:not(.year),.fluid-layout:not(.tour-pilot) .chapter-detail{max-width:72ch}
.fluid-layout:not(.tour-pilot) .chapter-detail{padding:20px 0 8px;background:transparent}
.fluid-layout .chapter :is(h3,h4,summary){overflow-wrap:break-word}
.fluid-layout.north-pilot .history-layout>.chapters{grid-template-columns:repeat(3,minmax(0,1fr))}
.fluid-layout.north-pilot .chapter:last-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:0 var(--tile-padding)}
.fluid-layout.north-pilot .chapter:last-child>:not(figure){grid-column:1}
.fluid-layout.north-pilot .chapter:last-child>.chapter-photo{grid-column:2;grid-row:1/6;margin:0}
.fluid-layout.north-pilot .chapter-photo img{aspect-ratio:1.65;object-fit:cover}
.fluid-layout.running-project .history-layout>.chapters{grid-template-columns:repeat(3,minmax(0,1fr))}
.fluid-layout.running-project .running-history-photo img{aspect-ratio:1.4;object-fit:cover}
.fluid-layout .short-history .chapters{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--layout-gap)}
.fluid-layout .short-history .chapter{padding:var(--tile-padding);background:var(--paper);border-radius:16px;min-width:0;align-self:start}

/* People, proof and offers use the available width without stretching their copy. */
.fluid-layout .masthead,.fluid-layout .contact-layout,.fluid-layout .partnership,.fluid-layout .nbe-opening{gap:var(--layout-gap)}
.fluid-layout.project-team-drali-repsol .masthead>div:last-child{align-self:center;justify-self:end}
.fluid-layout .craft-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--layout-gap)}
.fluid-layout .craft-grid article,.fluid-layout .offer-list>li,.fluid-layout .tour-choice-list>li,.fluid-layout .distance-grid>article,.fluid-layout .running-offer-grid>article{padding:var(--tile-padding);background:var(--paper);border-radius:16px;min-width:0}
.fluid-layout :is(.craft-grid,.offer-list,.tour-choice-list,.distance-grid,.running-offer-grid) p{max-width:60ch}
.fluid-layout .people-list{gap:var(--layout-gap);grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.fluid-layout .people-list>li{min-width:0;padding:28px;background:var(--paper);border-radius:16px}
.fluid-layout .roster{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.fluid-layout .roster>li{padding:24px}
.fluid-layout .roster h3{overflow-wrap:break-word}
.fluid-layout .offer-list,.fluid-layout .tour-choice-list,.fluid-layout .distance-grid,.fluid-layout .running-offer-grid{gap:var(--layout-gap)}
.fluid-layout .offer-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.fluid-layout .tour-choice-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.fluid-layout .distance-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.fluid-layout .case-grid{gap:var(--layout-gap)}
.fluid-layout .case img{height:auto;aspect-ratio:1.6}
.fluid-layout .image-pair,.fluid-layout .photo-pair{gap:var(--layout-gap)}
.fluid-layout .image-pair img{height:auto;aspect-ratio:1.6}
.fluid-layout .running-faq{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.fluid-layout .running-cross-photo{max-width:none}
.fluid-layout .running-cross-photo img{max-height:660px}
.fluid-layout .episode-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--layout-gap)}
.fluid-layout .episode-list li{display:flex;flex-direction:column;align-items:start;gap:20px;min-width:0}
.fluid-layout .episode-list a{margin-top:auto}
.fluid-layout .career-opening{gap:var(--layout-gap)}
.fluid-layout .career-opening p{max-width:48ch}
.fluid-layout .career-stories{grid-auto-columns:clamp(300px,29%,460px)}
.fluid-layout .career-records{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.fluid-layout .title-partner-grid{gap:var(--layout-gap)}
.fluid-layout .partner-group{grid-template-columns:minmax(150px,.6fr) minmax(0,3fr)}
.fluid-layout .partner-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}
.fluid-layout .partner-group-main .partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.fluid-layout .season-race{flex-basis:clamp(280px,25%,440px)}

/* Home retains the approved hero and scrollable competence posters. */
.fluid-layout.wireframe-study .competence-band>.wrap{width:100%}
.fluid-layout.wireframe-study .competence-band .section-heading{width:calc(100% - 2 * var(--page-gutter));max-width:none}
.fluid-layout.wireframe-study .evidence-grid{padding-inline:var(--page-gutter);scroll-padding-inline:var(--page-gutter)}
.fluid-layout.wireframe-study .company-landscape>figure figcaption{left:var(--page-gutter);right:var(--page-gutter)}
.fluid-layout.wireframe-study .calendar-layout,.fluid-layout.wireframe-study .questions,.fluid-layout.wireframe-study .company-inner{gap:var(--layout-gap)}
.fluid-layout.wireframe-study .project-grid{gap:32px var(--layout-gap)}
.fluid-layout.wireframe-study .audience-grid{gap:var(--layout-gap)}
.fluid-layout.wireframe-study .calendar-heading>p{max-width:36ch}
.fluid-layout.wireframe-study .calendar-note{max-width:80ch}
.fluid-layout.agenda-page .agenda-month{grid-template-columns:minmax(160px,.35fr) minmax(0,2fr);gap:24px var(--layout-gap)}
.fluid-layout.agenda-page .calendar-copy{min-width:0}
.fluid-layout.agenda-page .month-photo-rail>.calendar-photo{flex-basis:calc((100% - 40px)/3)}

@media(min-width:1101px){
  .fluid-layout.north-pilot .hero-frame{min-height:clamp(530px,36vw,820px)}
  .fluid-layout.premium-page .banner img{height:clamp(480px,34vw,740px)}
  .fluid-layout.project-forstart .banner img{object-fit:contain;background:#367e7c}
  .fluid-layout.project-nm-landevei-2026 .banner img{height:auto}
}
@media(max-width:1100px){
  .fluid-layout:not(.tour-pilot) .history-index{grid-template-columns:minmax(0,1fr)}
  .fluid-layout:not(.tour-pilot) .history-index nav{grid-column:1;grid-row:auto;margin-top:24px}
  .fluid-layout:not(.tour-pilot) .history-layout>.chapters{grid-template-columns:minmax(0,1fr)}
  .fluid-layout.north-pilot .chapter:last-child{display:block}
  .fluid-layout.north-pilot .chapter:last-child>.chapter-photo{margin-top:24px}
  .fluid-layout .craft-grid,.fluid-layout .tour-choice-list,.fluid-layout .episode-list{grid-template-columns:minmax(0,1fr)}
  .fluid-layout .distance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fluid-layout .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:960px){
  .fluid-layout .intro,.fluid-layout .masthead,.fluid-layout .contact-layout,.fluid-layout .partnership,.fluid-layout .nbe-opening,.fluid-layout .section-heading,.fluid-layout .career-opening,.fluid-layout .running-offer-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .fluid-layout .masthead .lead{max-width:48ch}
  .fluid-layout.project-team-drali-repsol .masthead>div:last-child{justify-self:start}
  .fluid-layout .header{flex-wrap:wrap;gap:0 24px}
  .fluid-layout .partnership figure img{height:auto;max-height:620px;object-fit:cover}
  .fluid-layout .short-history .chapters{grid-template-columns:minmax(0,1fr)}
  .fluid-layout .partner-group{grid-template-columns:minmax(0,1fr);gap:16px}
  .fluid-layout.wireframe-study .calendar-layout,.fluid-layout.wireframe-study .questions,.fluid-layout.wireframe-study .company-inner{grid-template-columns:minmax(0,1fr);gap:24px}
  .fluid-layout.wireframe-study .calendar-heading{padding-top:0}
  .fluid-layout.wireframe-study .calendar-heading h2{max-width:none}
  .fluid-layout.wireframe-study .audience-grid{grid-template-columns:minmax(0,1fr);padding-top:0;gap:32px}
  .fluid-layout.wireframe-study .audience-card:nth-child(2){margin-top:0}
  .fluid-layout.wireframe-study .audience-card figure img{height:auto;aspect-ratio:1.8}
  .fluid-layout.agenda-page .agenda-month{grid-template-columns:minmax(0,1fr);gap:20px}
  .fluid-layout.agenda-page .agenda-month>h2{padding-top:0}
  .fluid-layout.agenda-page .month-images{grid-column:1}
  .fluid-layout.agenda-page .month-photo-rail>.calendar-photo{flex-basis:calc(50% - 10px)}
  .fluid-layout.agenda-page .photo-controls{display:flex}
}
@media(max-width:700px){
  .fluid-layout:not(.tour-pilot) .history-layout>.chapters>.chapter,.fluid-layout .short-history .chapter,.fluid-layout .craft-grid article,.fluid-layout .offer-list>li,.fluid-layout .tour-choice-list>li,.fluid-layout .running-offer-grid>article{padding:24px 20px}
  .fluid-layout .case-grid,.fluid-layout .running-faq,.fluid-layout .distance-grid{grid-template-columns:minmax(0,1fr)}
  .fluid-layout .people-list,.fluid-layout .administration{grid-template-columns:minmax(0,1fr)}
  .fluid-layout .roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .fluid-layout .roster>li{padding:20px 16px}
  .fluid-layout .career-stories{grid-auto-columns:88%}
  .fluid-layout .season-race{flex-basis:88%}
  .fluid-layout .partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fluid-layout .image-pair img{aspect-ratio:auto}
  .fluid-layout.agenda-page .month-photo-rail>.calendar-photo{flex-basis:82%}
  .fluid-layout.agenda-page .month-photo-rail>.calendar-photo:only-child{flex-basis:100%}
}
@media(max-width:400px){.fluid-layout .roster{grid-template-columns:minmax(0,1fr)}}

/* Nordsjørittet Sprint 2 keeps the shortened history in a quiet two-column proof. */
.fluid-layout.north-pilot .compact-history .history-layout>.chapters{grid-template-columns:repeat(2,minmax(0,1fr))}
.fluid-layout.north-pilot .compact-history .chapter:last-child{grid-column:auto;display:block}
@media(max-width:700px){.fluid-layout.north-pilot .compact-history .history-layout>.chapters{grid-template-columns:minmax(0,1fr)}}
