/* Onsite capture owns this page. No report-pipeline or shared-page layout rules. */
.field-page {
  --field-deep: #0a2e30;
  --field-ink: #123b3f;
  --field-cyan: #86d9df;
  --field-paper: #f0f6f4;
  --field-line: #bdd3d1;
}
.field-page .onsite-section {
  padding: 76px 0 64px;
  background: #fff;
}
.onsite-heading {
  margin-bottom: 36px;
  max-width: 760px;
}
.field-page .onsite-heading h2,
.field-page .onsite-offline h2,
.field-page .onsite-close h2 {
  font: 400 clamp(2.3rem, 4.4vw, 4rem)/1.05 var(--font-sans);
  letter-spacing: -0.045em;
  margin-top: 18px;
}
.onsite-heading > p:last-child {
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 20px;
  color: #385e62;
}
.onsite-workspace {
  display: grid;
  grid-template-columns: 170px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  padding: 30px;
  background: var(--field-deep);
  color: #fff;
}
.onsite-project {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  padding-bottom: 23px;
  border-bottom: 1px solid #416568;
  color: #b5e2e4;
  font: 0.75rem/1.5 var(--font-mono);
}
.onsite-areas {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.onsite-areas legend {
  margin-bottom: 25px;
  padding: 0;
  max-width: 100%;
}
.onsite-areas legend > span {
  display: block;
  font: 0.75rem/1.5 var(--font-mono);
  color: #b5e2e4;
}
.onsite-areas legend strong {
  display: block;
  margin-top: 12px;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.onsite-area-options {
  display: grid;
  gap: 10px;
}
.onsite-area-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.onsite-area-options label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  padding: 16px 10px;
  border: 1px solid #527477;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  font-size: 0.88rem;
  line-height: 1.35;
}
.onsite-area-options label small {
  display: block;
  margin-top: 7px;
  color: #b5d9d9;
  font: 0.75rem/1.4 var(--font-mono);
}
.area-marker {
  font: 0.75rem/1.5 var(--font-mono);
  color: #a8d7da;
}
.area-arrow {
  color: #b9e9eb;
}
.onsite-area-options input:checked + label {
  background: #1b5155;
  border-color: #8fdee3;
}
.onsite-area-options input:focus-visible + label {
  outline: 3px solid #f0ca75;
  outline-offset: 4px;
}
.onsite-records {
  min-width: 0;
}
.onsite-record {
  background: #fff;
  color: var(--field-ink);
  padding: 25px;
  border-top: 4px solid var(--field-cyan);
  min-width: 0;
}
.onsite-record + .onsite-record {
  margin-top: 24px;
}
.onsite-record > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 0.75rem/1.4 var(--font-mono);
  color: #40666b;
}
.record-draft {
  border: 1px solid #c3d8d4;
  padding: 4px 8px;
}
.record-location {
  margin-top: 30px;
}
.record-location > span {
  color: #40666b;
  font-size: 0.8rem;
}
.onsite-record h3 {
  font: 400 clamp(1.8rem, 2.5vw, 2.4rem)/1.1 var(--font-sans);
  letter-spacing: -0.04em;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.record-observation {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--field-line);
}
.record-label {
  display: block;
  color: #40666b;
  font: 0.75rem/1.5 var(--font-mono);
}
.record-observation p {
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 9px;
}
.onsite-sample {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  padding: 17px 0;
  border-top: 1px solid var(--field-line);
  border-bottom: 1px solid var(--field-line);
}
.sample-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 67px;
  flex-shrink: 0;
  background: #f6eccf;
  color: #704c13;
  border-left: 3px solid #b18840;
  font: 1rem/1 var(--font-mono);
}
.onsite-sample strong {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 1.35rem;
}
.onsite-sample p {
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.record-measures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 23px;
}
.record-measures > div:last-child {
  grid-column: 1 / -1;
}
.record-measures dt {
  font: 0.75rem/1.5 var(--font-mono);
  color: #40666b;
}
.record-measures dd {
  font-size: 0.94rem;
  line-height: 1.4;
  margin-top: 5px;
}
.record-measures dd > span {
  color: #40666b;
}
.onsite-record > footer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 26px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #40666b;
}
.record-dot {
  width: 6px;
  height: 6px;
  background: #327c78;
  border-radius: 50%;
  flex-shrink: 0;
}
.onsite-image {
  align-self: center;
  margin: 0;
  min-width: 0;
  transform: rotate(2deg);
}
.site-image-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #cae6e6;
  font: 0.75rem/1.4 var(--font-mono);
}
.site-image-heading svg {
  width: 24px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.onsite-image img {
  width: 100%;
  height: auto;
  border: 8px solid #fff;
  box-shadow: 0 15px 35px #00181d40;
}
.onsite-image figcaption {
  margin-top: 20px;
  transform: rotate(-2deg);
}
.onsite-image figcaption strong {
  display: block;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
}
.onsite-image figcaption > span {
  display: block;
  color: #c9e2e2;
  font-size: 0.88rem;
  margin-top: 8px;
}
.onsite-image figcaption small {
  display: block;
  font: 0.75rem/1.6 var(--font-mono);
  color: #afd5d7;
  margin-top: 20px;
}
.onsite-example-note {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #c6e0e0;
  max-width: 80ch;
}
.onsite-current {
  border-bottom: 1px solid #afc9c8;
  margin-top: 25px;
}
.onsite-current summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.5;
}
.onsite-current summary::-webkit-details-marker {
  display: none;
}
.onsite-current summary > span {
  font-size: 1.25rem;
  transition: transform 0.2s;
}
.onsite-current[open] summary > span {
  transform: rotate(45deg);
}
.onsite-current > div {
  display: flex;
  align-items: start;
  gap: 30px;
  padding: 5px 0 30px;
}
.onsite-current img {
  width: min(220px, 48%);
  height: auto;
  border: 1px solid #c2d5d1;
}
.onsite-current p {
  max-width: 40ch;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #40666b;
}
.field-page .onsite-offline {
  padding: 76px 0;
  background: #0c1719;
  color: #fff;
}
.onsite-offline .cap-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px 60px;
}
.onsite-offline .eyebrow {
  color: #a9e0e1;
}
.offline-copy > p:last-child {
  max-width: 33ch;
  margin-top: 25px;
  color: #d3e4e2;
  font-size: 1.05rem;
  line-height: 1.65;
}
.offline-visual {
  display: grid;
  grid-template-columns: 1.2fr 0.34fr 1fr;
  align-items: center;
  min-width: 0;
}
.offline-device {
  border: 1px solid #57787b;
  border-top: 6px solid #94dfe3;
  background: #12383d;
  padding: 23px 18px;
}
.offline-device-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.offline-device-top svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #bbe0e2;
  stroke-width: 1.5;
}
.offline-record-ref {
  display: block;
  margin-top: 26px;
  font: 0.75rem/1.5 var(--font-mono);
  color: #cce4e3;
  overflow-wrap: anywhere;
}
.offline-line {
  width: 100%;
  height: 5px;
  background: #4f7476;
  margin-top: 17px;
}
.offline-line.short {
  width: 65%;
  margin-top: 10px;
}
.offline-saved {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 32px;
}
.offline-saved > span {
  color: #a6e1cf;
}
.offline-saved strong {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
}
.offline-device > p {
  margin-top: 8px;
  color: #c3dbdc;
  font-size: 0.8rem;
  line-height: 1.5;
}
.offline-connection {
  display: flex;
  align-items: center;
  color: #9acbce;
}
.offline-connection > span:first-child,
.offline-connection > span:last-child {
  height: 1px;
  flex: 1;
  background: #5f8e92;
}
.offline-connection > span:nth-child(2) {
  padding: 0 4px;
}
.offline-online .eyebrow {
  font: 0.75rem/1.5 var(--font-mono);
  display: block;
  letter-spacing: 0;
}
.offline-online svg {
  display: block;
  width: 64px;
  height: 54px;
  margin-top: 18px;
  stroke: #a5dcde;
  stroke-width: 1.7;
  fill: none;
}
.offline-online > strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 18px;
  letter-spacing: -0.025em;
}
.offline-online p {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #cbdfdf;
  max-width: 25ch;
}
.offline-boundary {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid #3b5c60;
  max-width: 100ch;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #bbd1d2;
}
.field-page .onsite-close {
  background: #eef6f4;
  padding-block: 70px;
}
.onsite-close .cap-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.onsite-close .cap-actions {
  flex-direction: column;
  align-items: start;
  gap: 25px;
  margin-top: 0;
}
@supports selector(:has(*)) {
  .onsite-workspace .onsite-record {
    display: none;
    margin-top: 0;
  }
  .onsite-workspace:has(#area-corridor:checked) [data-area="corridor"],
  .onsite-workspace:has(#area-reception:checked) [data-area="reception"] {
    display: block;
    animation: onsite-record-in 0.35s ease-out both;
  }
}
@keyframes onsite-record-in {
  from {
    opacity: 0.4;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1050px) {
  .onsite-workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .onsite-areas {
    grid-column: 1 / -1;
  }
  .onsite-areas legend {
    margin-bottom: 18px;
  }
  .onsite-areas legend strong {
    margin-top: 6px;
  }
  .onsite-area-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .onsite-offline .cap-container {
    gap: 35px;
  }
}
@media (max-width: 700px) {
  .field-page .cap-background img,
  .field-page .cap-background video {
    top: auto;
    bottom: 0;
    height: 240px;
    object-position: center;
  }
  .field-page .cap-local-contrast {
    background: linear-gradient(
      180deg,
      #fff 0,
      #fff calc(100% - 240px),
      #ffffff1a calc(100% - 210px),
      transparent calc(100% - 175px)
    );
  }
  .field-page .onsite-section {
    padding-block: 50px;
  }
  .onsite-heading {
    margin-bottom: 28px;
  }
  .onsite-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding: 24px 18px;
  }
  .onsite-project {
    padding-bottom: 18px;
  }
  .onsite-area-options label {
    grid-template-columns: minmax(0, 1fr) 12px;
    padding: 14px 10px;
    font-size: 0.85rem;
  }
  .area-marker {
    display: none;
  }
  .onsite-record {
    padding: 22px 18px;
  }
  .record-location {
    margin-top: 24px;
  }
  .onsite-image {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 14px;
    align-items: center;
    transform: none;
  }
  .site-image-heading {
    grid-column: 1 / -1;
    margin: 0;
  }
  .onsite-image img {
    border-width: 5px;
  }
  .onsite-image figcaption {
    transform: none;
    margin: 0;
  }
  .onsite-image figcaption strong {
    font-size: 1rem;
  }
  .onsite-image figcaption > span {
    font-size: 0.8rem;
  }
  .onsite-image figcaption small {
    margin-top: 12px;
  }
  .onsite-current > div {
    gap: 18px;
  }
  .onsite-current p {
    font-size: 0.8rem;
  }
  .field-page .onsite-offline {
    padding-block: 50px;
  }
  .onsite-offline .cap-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .offline-copy > p:last-child {
    max-width: 38ch;
  }
  .offline-device {
    padding: 18px 12px;
  }
  .offline-online > strong {
    font-size: 1.3rem;
  }
  .offline-visual {
    grid-template-columns: minmax(0, 1fr);
  }
  .offline-device,
  .offline-online {
    width: min(260px, 100%);
    min-width: 0;
    margin-inline: auto;
  }
  .offline-connection {
    width: 30px;
    height: 35px;
    justify-self: center;
    transform: rotate(90deg);
  }
  .offline-boundary {
    padding-top: 24px;
  }
  .field-page .onsite-close {
    padding-block: 50px;
  }
  .onsite-close .cap-container {
    display: block;
  }
  .onsite-close .cap-actions {
    margin-top: 32px;
  }
}
@media (max-width: 360px) {
  .field-page .cap-hero h1 {
    font-size: 1.9rem;
  }
  .onsite-workspace {
    padding-inline: 14px;
  }
  .onsite-project {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .onsite-workspace .onsite-record {
    animation: none !important;
  }
  .onsite-area-options label,
  .onsite-current summary > span {
    transition: none;
  }
}
