/* Southern Cross Fertilisers — standalone holding-page variants.
   Loaded after the prototype styles so each page is correct when opened
   directly, without a design harness or runtime body-class mutation. */

/* B — Phosphate Hill anchors the left; Mount Isa and Townsville stack. */
@media (min-width: 981px) {
  .assets-layout-anchor .asset-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: repeat(2, minmax(240px, 1fr));
  }

  .assets-layout-anchor .asset-grid > li:first-child { grid-row: 1 / span 2; }

  .assets-layout-anchor .asset-grid > li:first-child .asset-card {
    position: relative;
    display: block;
    min-height: 520px;
  }

  .assets-layout-anchor .asset-grid > li:first-child .asset-card__media {
    position: absolute;
    inset: 0;
  }

  .assets-layout-anchor .asset-grid > li:first-child .asset-card__body {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    min-height: 0;
    margin: 0;
    border-radius: 22px;
  }

  .assets-layout-anchor .asset-grid > li:not(:first-child) .asset-card {
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1.22fr);
    grid-template-rows: 1fr;
    min-height: 250px;
  }

  .assets-layout-anchor .asset-grid > li:not(:first-child) .asset-card__body {
    min-height: 0;
    margin: 0 0 0 -16px;
    padding: 25px 27px;
    /* Match the parent card's clip radius so the outer border arcs are not
       trimmed at the top-right and bottom-right corners. */
    border-radius: 28px;
  }

  .assets-layout-anchor .asset-grid > li:not(:first-child) .asset-card h3 {
    font-size: clamp(22px, 1.65vw, 27px);
  }

  .assets-layout-anchor .asset-grid > li:not(:first-child) .asset-card__body > p:last-child {
    font-size: 14px;
  }
}

/* The original SVG has broad internal margins. This tighter viewBox makes the
   complete composition about 18% larger at the same layout width while
   retaining clear space for the labels, halos and coastline. */
.holding-page .locations__map--svg .map {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  overflow: visible;
}

/* Keep the smoke glass consistent across image-backed and plain-ground cards.
   The logo's fine bone ring is echoed in a precise outer rim and a very quiet
   inner highlight; the lower-opacity wash keeps the imagery visibly present. */
body.holding-page.glass-theme-smoke {
  --unified-glass-background: linear-gradient(145deg, rgba(37, 38, 34, 0.68), rgba(21, 25, 22, 0.58));
  --unified-glass-border: rgba(245, 241, 232, 0.48);
  --unified-glass-highlight: rgba(245, 241, 232, 0.3);
  --unified-glass-shadow: 0 30px 82px -36px rgba(0, 0, 0, 0.72);
  --unified-glass-brightness: 0.9;
}

body.holding-page.glass-theme-smoke :is(
  .asset-card__body,
  .c2-about__claim,
  .c2-cover__card,
  #contact .c2-scene__panel
) {
  box-shadow: var(--unified-glass-shadow), inset 0 1px 0 var(--unified-glass-highlight),
    inset 0 0 0 1px rgba(245, 241, 232, 0.07);
}

/* The About photograph previously had an additional heavy green wash under
   its panel. Keep a little tonal support for legibility, without masking the
   image that the glass is meant to reveal. */
body.holding-page.glass-theme-smoke .c2-about::after {
  background: linear-gradient(90deg, rgba(8, 33, 8, 0.13) 0%, rgba(8, 33, 8, 0.04) 50%, rgba(8, 33, 8, 0) 100%);
}

/* Both variants use the exact smoke-glass material assigned to the About pane. */
body.holding-page .asset-card__body {
  color: var(--unified-glass-text);
  border-color: var(--unified-glass-border);
  background: var(--unified-glass-background);
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(26px) saturate(1.18) brightness(var(--unified-glass-brightness));
  backdrop-filter: blur(26px) saturate(1.18) brightness(var(--unified-glass-brightness));
  box-shadow: var(--unified-glass-shadow), inset 0 1px 0 var(--unified-glass-highlight);
}

body.holding-page .asset-card { border: 0; }

/* The route is intentionally a static, quiet connector in both standalone
   options. Other page motion and reduced-motion rules remain unchanged. */
body.holding-page .locations__map--svg .map__route {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none !important;
}

/* The map and cards share the same 1440px outer grid; the map itself has no
   panel, border or box shadow. */
body.holding-page .asset-map {
  width: 100%;
  margin-inline: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Bone option: one clean cut from the photograph into a plain bone field.
   Keep the image covering the frame at every scroll position; the shared
   upward image drift otherwise exposes a thin tinted strip at the foot. */
body.holding-page--bone,
body.holding-page--bone .run,
body.holding-page--bone .asset-network,
body.holding-page--bone .asset-map {
  background-color: var(--bone);
}

body.holding-page--bone .hero-e { overflow: hidden; }
body.holding-page--bone .hero-e .hero-d__media img {
  animation: none;
  transform: scale(1.06);
}
body.holding-page--bone .hero-e::after { display: none; }
.c2-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.c2-form-status {
  padding: 12px 16px;
  border: 1px solid rgba(245, 241, 232, 0.45);
  border-radius: 12px;
  color: var(--bone);
  background: rgba(8, 33, 8, 0.65);
}
.c2-form-status[data-state="sent"] { border-color: #a9cda9; }
.c2-form-status[hidden] { display: none; }
/* Keep every contact control on the same translucent glass treatment. */
body.holding-page--dark #contact .c2-field input,
body.holding-page--dark #contact .c2-field select,
body.holding-page--dark #contact .c2-field textarea {
  color: var(--bone);
  -webkit-text-fill-color: var(--bone);
  background-color: var(--unified-field-background, rgba(255, 255, 255, 0.07));
  background-image: none;
  color-scheme: dark;
}
body.holding-page--dark #contact .c2-field input:-webkit-autofill,
body.holding-page--dark #contact .c2-field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--bone);
  -webkit-box-shadow: 0 0 0 1000px #3b3932 inset;
}
body.holding-page--bone .asset-network { background-image: none; color: var(--green-deep); }

body.holding-page--bone .asset-network__head h2,
body.holding-page--bone .asset-network__intro {
  color: var(--green-deep);
}

body.holding-page--bone .asset-network__head .tint {
  color: var(--green-light);
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

body.holding-page--bone .asset-network__head .eyebrow { color: var(--rust); }

body.holding-page--bone .asset-map {
  background: transparent;
  color: var(--green);
}

body.holding-page--bone .asset-map h2,
body.holding-page--bone .asset-map .lead-dark { color: var(--green); }

body.holding-page--bone .asset-map .tint {
  color: var(--green-light);
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

body.holding-page--bone .asset-map .map__rest {
  fill: rgba(12, 49, 12, 0.11);
  stroke: rgba(12, 49, 12, 0.18);
}

body.holding-page--bone .asset-map .map__qld { stroke: rgba(12, 49, 12, 0.35); }
body.holding-page--bone .asset-map .map__qld-glow { fill: #7fbf7f; }
body.holding-page--bone .asset-map .map__route { stroke: rgba(12, 49, 12, 0.75); }
body.holding-page--bone .asset-map .map__halo { fill: var(--brand); opacity: 0.45; }
body.holding-page--bone .asset-map .map__dot { fill: var(--green); stroke: var(--bone); }
body.holding-page--bone .asset-map .map__label rect { fill: var(--green); stroke: rgba(12, 49, 12, 0.25); }
body.holding-page--bone .asset-map .map__title { fill: var(--bone); }
body.holding-page--bone .asset-map .map__sub { fill: #a9cda9; }
body.holding-page--bone .asset-map .locations__legend li { border-color: var(--rule-bone); color: var(--ink-muted); }
body.holding-page--bone .asset-map .locations__legend span { color: var(--green); }

body.holding-page--bone .asset-map.band--map {
  margin-bottom: 0;
  padding-top: clamp(70px, 7vw, 104px);
  padding-bottom: clamp(180px, 20vh, 240px);
}

/* Dark option: hero, assets and map read as one continuous deep-green field. */
body.holding-page--dark .run,
body.holding-page--dark .asset-network { background-color: var(--green-deep); }
body.holding-page--dark .asset-network { background-image: none; color: var(--bone); }
body.holding-page--dark .asset-map { background: transparent; color: var(--bone); }

body.holding-page--dark .asset-network__head h2,
body.holding-page--dark .asset-network__intro,
body.holding-page--dark .asset-map h2,
body.holding-page--dark .asset-map .lead-dark { color: var(--bone); }

body.holding-page--dark .asset-network__head .tint,
body.holding-page--dark .asset-map .tint {
  color: #a9cda9;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

body.holding-page--dark .asset-map .map__rest {
  fill: rgba(245, 241, 232, 0.1);
  stroke: rgba(245, 241, 232, 0.2);
}

body.holding-page--dark .asset-map .map__qld { stroke: rgba(245, 241, 232, 0.32); }
body.holding-page--dark .asset-map .map__qld-glow { fill: #3e8a3e; }
body.holding-page--dark .asset-map .map__route { stroke: rgba(245, 241, 232, 0.82); }
body.holding-page--dark .asset-map .map__halo { fill: var(--bone); opacity: 0.45; }
body.holding-page--dark .asset-map .map__dot { fill: var(--bone); stroke: var(--green); }
body.holding-page--dark .asset-map .map__label rect { fill: #0c310c; stroke: rgba(143, 203, 143, 0.52); }
body.holding-page--dark .asset-map .map__title { fill: var(--bone); }
body.holding-page--dark .asset-map .map__sub { fill: #a9cda9; }
body.holding-page--dark .asset-map .locations__legend li { border-color: rgba(245, 241, 232, 0.18); color: rgba(245, 241, 232, 0.66); }
body.holding-page--dark .asset-map .locations__legend span { color: var(--bone); }

/* The Contact item is a true rounded button at every navigation breakpoint. */
body.holding-page .primary-nav__aside a.search-pill {
  color: var(--green);
  background: rgba(245, 241, 232, 0.96);
  border-color: rgba(245, 241, 232, 0.98);
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
  min-height: 44px;
  padding-inline: 13px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

body.holding-page .primary-nav__aside a.search-pill:hover,
body.holding-page .primary-nav__aside a.search-pill:focus-visible {
  color: var(--green-deep);
  background: var(--bone);
  border-color: var(--bone);
}

@media (max-width: 980px) {
  .asset-network__head { grid-template-columns: 1fr; gap: 22px; }
  .asset-grid { grid-template-columns: 1fr; }
  .asset-card {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: minmax(260px, auto);
  }
  .asset-card__body { min-height: 0; margin: 0 0 0 -20px; border-radius: 24px 0 0 24px; }
  .asset-map .locations__head { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  .asset-network { padding-block: 76px 88px; }
  .asset-card { grid-template-columns: 1fr; grid-template-rows: 230px 1fr; }
  .asset-card__body { min-height: 0; margin: -20px 0 0; border-radius: 22px 22px 0 0; }
  .asset-map { margin-top: 16px; padding: 44px 0 28px; }
  body.holding-page--bone .asset-map.band--map { padding-top: 52px; padding-bottom: 210px; }
  .asset-map .locations__map { margin-top: 18px; }
}

@media (prefers-reduced-transparency: reduce) {
  body.holding-page .asset-card__body {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* On phones the About photograph becomes a narrow frame behind a full-height
   panel. Let the bone section carry the copy directly instead. */
@media (max-width: 767px) {
  body.holding-page #about .c2-about--holding {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
    isolation: auto;
    border-radius: 0;
    background: transparent;
  }

  body.holding-page #about .c2-about--holding .c2-about__media,
  body.holding-page #about .c2-about--holding::after { display: none; }

  body.holding-page #about .c2-about--holding .c2-about__claim {
    width: 100%;
    min-height: 0;
    padding: 0;
    gap: 22px;
    border: 0;
    border-radius: 0;
    color: var(--green-deep);
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.holding-page #about .c2-about--holding .c2-about__claim > .eyebrow {
    color: var(--rust);
  }

  body.holding-page #about .c2-about--holding .c2-about__claim .c2-about__heading,
  body.holding-page #about .c2-about--holding .c2-about__claim p:not(.eyebrow) {
    color: var(--green-deep);
  }

  body.holding-page #about .c2-about--holding .c2-about__claim .c2-about__heading .tint {
    color: var(--green-light);
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
  }

  body.holding-page #about .c2-about--holding .c2-about__claim .holding-coming-soon {
    color: var(--green) !important;
  }
}

/* The bone study keeps the same single-action mobile navigation as the dark
   holding page, so Contact remains available without opening a menu. */
@media (max-width: 1023px) {
  body.holding-page--bone .masthead-d { flex-wrap: nowrap; }
  body.holding-page--bone .nav-toggle { display: none !important; }

  body.holding-page--bone.has-js .primary-nav,
  body.holding-page--bone .primary-nav,
  body.holding-page--bone.home--pillnav.is-compact.has-js .primary-nav {
    display: block !important;
    position: static;
    flex: 0 0 auto;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  body.holding-page--bone .primary-nav__main { display: none; }
  body.holding-page--bone .primary-nav__aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.holding-page--bone .primary-nav__aside a.search-pill,
  body.holding-page--bone.home--pillnav.is-compact .primary-nav__aside a.search-pill {
    min-height: 44px;
    padding: 0 13px;
    color: var(--green-deep);
    border: 1px solid var(--bone);
    border-radius: 999px;
    background: var(--bone);
    font-size: 14px;
  }
}

/* Let the map lead into the stockpile without a long blank mobile interval.
   The loading cut-out sits below the quotation instead of behind its copy. */
@media (max-width: 640px) {
  body.holding-page.home--sweep .asset-network:has(+ .divider) {
    padding-bottom: 88px;
  }

  body.holding-page--bone.home--map-bone.map-treatment-fade .asset-map.band--map {
    padding-bottom: 36px;
  }

  body.holding-page .c2-quote-band { padding-bottom: 0; }
  body.holding-page .c2-quote { display: block; min-height: 0; }
  body.holding-page .c2-quote__panel { padding: 0; }
  body.holding-page .c2-quote__loader {
    position: relative;
    display: block;
    width: min(76vw, 320px);
    height: auto;
    margin: 28px 0 0 auto;
    opacity: 1;
  }
  body.holding-page .c2-quote__loader img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* The bone page is built from the current dark HTML. Preserve its responsive
   navigation, card geometry, map framing and contact spacing on the light
   palette; only the ground and text colours differ. */
@media (min-width: 1024px) and (max-width: 1239px) {
  body.holding-page--bone .nav-toggle { display: none !important; }
  body.holding-page--bone.has-js .primary-nav,
  body.holding-page--bone .primary-nav {
    display: flex !important;
    position: static;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 0 clamp(18px, 2.4vw, 34px);
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  body.holding-page--bone .primary-nav__main,
  body.holding-page--bone .primary-nav__aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.holding-page--bone .primary-nav__main { gap: 18px; }
  body.holding-page--bone .primary-nav li + li { border: 0; }
  body.holding-page--bone .primary-nav a { min-height: 44px; padding: 0; font-size: 15px; }
  body.holding-page--bone .primary-nav__aside a.search-pill { padding-inline: 13px; font-size: 14px; }
}

@media (max-width: 640px) {
  body.holding-page--bone .hero-e .hero-d__scrim--base {
    background: linear-gradient(0deg,
      rgba(8, 33, 8, 0.90) 0%, rgba(8, 33, 8, 0.86) 30%,
      rgba(8, 33, 8, 0.72) 52%, rgba(8, 33, 8, 0.54) 68%,
      rgba(8, 33, 8, 0.30) 82%, rgba(8, 33, 8, 0.08) 100%);
  }
  body.holding-page--bone.home--sweep .run > .asset-network {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
  body.holding-page--bone .asset-card {
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  body.holding-page--bone .asset-card__media {
    overflow: hidden;
    border-radius: 28px 28px 0 0;
  }
  body.holding-page--bone .asset-card__body { border-radius: 22px; }
  body.holding-page--bone .asset-map .locations__map {
    width: 100%;
    margin-top: 24px;
  }
  body.holding-page--bone .locations__map--svg .map__label { display: block; }
  body.holding-page--bone .locations__map--svg .map__title {
    font-size: 28px;
    dominant-baseline: middle;
    transform: translateY(5px);
  }
  body.holding-page--bone .locations__map--svg .map__sub { display: none; }
  body.holding-page--bone .asset-map .locations__legend { display: none; }
  body.holding-page--bone #contact .c2-scene {
    align-items: flex-start;
    padding: 18px 12px clamp(112px, 30vw, 150px);
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  body.holding-page--bone .locations__map--svg.is-in .map__route {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: map-draw 1100ms cubic-bezier(0.4, 0, 0.2, 1) 700ms both !important;
  }
}

/* The smoke theme's generic compact-link colour must not turn the light
   Contact button's label white. Keep the button legible in both variants. */
body.holding-page.glass-theme-smoke.content-2.home--pillnav.is-compact .primary-nav__aside a.search-pill {
  color: var(--green-deep);
}

@media (min-width: 1024px) and (max-width: 1239px) {
  body.holding-page.home--pillnav.is-compact.has-js .primary-nav {
    position: static;
    display: flex !important;
    width: auto;
    margin-left: clamp(18px, 2.4vw, 34px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
}
