/* ============================================================
   Ops Czar: For construction companies (/for/construction.html)
   Page-scoped. Classes prefixed ra- are copied verbatim from the
   Cyber Insurance Renewal Audit page; cz- classes are new pieces
   for this page. Tokens only: #F5F2EC #1C1C1A #B85C38 #6B6560
   #DDD9D0. No border-radius, no italics.
   ============================================================ */

@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/spacemono-400-latin.ttf') format('truetype'); }
body { color: #1C1C1A; }
main h1, main h2, main h3 { text-wrap: balance; }
main p { text-wrap: pretty; }
.cz-page em, .cz-page i, .cz-page cite { font-style: normal; }
.cz-page * { border-radius: 0 !important; }
.cz-page *, .cz-page *::before, .cz-page *::after { box-shadow: none !important; }
.cz-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- this page's issued-for-construction header ------------ */
.cz-page header > nav { position: relative; }
.cz-stamp { position: absolute; left: calc(clamp(24px,5vw,72px) + 7ch - 0.07em + 20px); top: calc(50% - 29px); width: 212px; height: 58px; font-family: 'Space Mono', monospace; font-size: clamp(26px,8vw,40px); transform: rotate(-6deg); transform-origin: center; pointer-events: none; z-index: 1; }
.cz-page header .oc-hamburger { position: relative; z-index: 501; }
.cz-page header .oc-hamburger.is-open .oc-ham-bar { background: #F5F2EC; }
@media (max-width: 1099px) { .cz-stamp { top: calc(50% - 22.35px); transform: rotate(-6deg) scale(0.6); transform-origin: left center; } }
@media (min-width: 720px) and (max-width: 906.99px) { .cz-stamp { display: none; } }

/* ---- section and sheet drawing details --------------------- */
.cz-marker { display: flex; align-items: center; margin: 0 0 22px; }
.cz-marker svg { display: block; flex: 0 0 auto; width: 48px; height: 48px; overflow: visible; }
.cz-marker circle { fill: #F5F2EC; stroke: #B85C38; stroke-width: 1.5; }
.cz-marker path { fill: none; stroke: #B85C38; stroke-width: 1.5; }
.cz-marker text { text-anchor: middle; font-family: 'Space Mono', monospace; font-weight: 400; }
.cz-marker .cz-marker-num { fill: #1C1C1A; font-size: 11px; font-weight: 700; }
.cz-marker-sheet { fill: #6B6560; font-size: 8px; }
.cz-marker > span { width: 72px; height: 1.5px; background: #B85C38; }
.cz-marker-dark circle { fill: #1C1C1A; }
.cz-marker.cz-marker-dark .cz-marker-num { fill: #F5F2EC; }
.cz-marker-dark .cz-marker-sheet { fill: #9B9590; }
.cz-sheet { position: relative; min-width: 0; border: 1px solid #1C1C1A; background-color: #F5F2EC; background-image: linear-gradient(rgba(221,217,208,0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(221,217,208,0.55) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.cz-hero-sheet { padding: 84px 56px 200px 64px; }
.cz-zones { position: absolute; inset: 0 0 auto; height: 20px; display: grid; grid-template-columns: repeat(6, 1fr); background: #F5F2EC; border-bottom: 1px solid #DDD9D0; font: 400 10px/19px 'Space Mono', monospace; color: #6B6560; text-align: center; }
.cz-zones > span + span { border-left: 1px solid #DDD9D0; }
.cz-titleblock { background: #F5F2EC; border-top: 1px solid #1C1C1A; border-left: 1px solid #1C1C1A; font: 400 12px/1.5 'Space Mono', monospace; color: #1C1C1A; min-width: 0; }
.cz-hero-title { position: absolute; bottom: 0; right: 0; width: 440px; }
.cz-title-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid #1C1C1A; }
.cz-title-brand > span:last-child { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #6B6560; }
.cz-drawn-wordmark { font: 700 18px/1 'Space Mono', monospace; letter-spacing: -0.03em; color: #1C1C1A; }
.cz-drawn-wordmark > span { color: #B85C38; }
.cz-title-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); border-bottom: 1px solid #DDD9D0; }
.cz-title-row > * { padding: 8px 12px; overflow-wrap: anywhere; }
.cz-title-row > :first-child { border-right: 1px solid #DDD9D0; }
.cz-title-label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: #6B6560; }
.cz-title-final { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cz-title-final > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 12px; }
.cz-title-final > div + div { border-left: 1px solid #1C1C1A; }
.cz-sheet-number { font-size: 16px; }

/* ---- hero: one file window, repositioned with CSS grid ------ */
.ra-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.cz-hero-copy { display: contents; }
.cz-hero-copy > * { grid-column: 1; min-width: 0; }
@media (min-width: 900px) {
  .ra-hero-grid { grid-template-columns: minmax(0, 55fr) minmax(0, 40fr); column-gap: 32px; }
  .ra-hero-grid > .cz-win-wrap { grid-column: 2; grid-row: 1 / 5; align-self: center; }
  .cz-hero-copy > .cz-hero-actions { grid-column: 1 / -1; margin-bottom: 16px; }
}
@media (max-width: 719px) {
  .cz-page main > .renewal-audit-hero { padding-left: 0 !important; padding-right: 0 !important; }
  .renewal-audit-hero > div { padding-top: 0 !important; }
}

.cz-hero-actions { display: flex; flex-wrap: nowrap; gap: 12px 16px; }
.cz-hero-actions .btn-primary,
.cz-hero-actions .btn-ghost { white-space: nowrap; flex: 0 0 auto; }
@media (min-width: 900px) and (max-width: 1099px) {
  .cz-hero-actions .btn-primary,
  .cz-hero-actions .btn-ghost { padding-left: 20px; padding-right: 20px; letter-spacing: 0.08em; }
}
@media (max-width: 899px) {
  .cz-sheet { background-size: 20px 20px; }
  .cz-marker svg { width: 44px; height: 44px; }
  .cz-marker > span { width: 48px; }
  .cz-hero-sheet { padding: 32px 20px 0; }
  .cz-zones { display: none; }
  .ra-hero-grid > .cz-win-wrap { grid-column: 1; grid-row: 5; margin: 0 0 32px; }
  .cz-hero-title { position: static; width: calc(100% + 40px); margin: 32px -20px 0; border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-hero-title .cz-title-brand, .cz-hero-title .cz-title-scale { display: none; }
  .cz-hero-title > .cz-title-row { display: block; padding: 12px; }
  .cz-hero-title .cz-title-row > * { padding: 0; border: 0; font-size: 11px; display: block; }
  .cz-hero-title .cz-title-label { font-size: 8px !important; }
  .cz-hero-title .cz-title-project { order: 1; border-right: 1px solid #DDD9D0; }
  .cz-hero-title .cz-title-author { order: 2; }
  .cz-hero-title .cz-title-subject { order: 3; border-right: 1px solid #DDD9D0; border-bottom: 0; }
  .cz-hero-title .cz-title-final { display: block; order: 4; }
  .cz-hero-title .cz-title-final > div { height: 100%; padding: 12px; gap: 0; border: 0; }
  .cz-hero-title .cz-sheet-number { font-size: 11px; }
  .cz-hero-actions { flex-direction: column; align-items: stretch; }
  .cz-hero-actions .btn-primary,
  .cz-hero-actions .btn-ghost { width: 100%; white-space: normal; }
}

/* ---- file window ------------------------------------------- */
.cz-win-wrap { margin-top: 40px; min-width: 0; }
@media (min-width: 900px) { .cz-win-wrap { margin-top: 0; } }
.cz-win { background: #F5F2EC; border: 1px solid #1C1C1A; min-width: 0; }
.cz-win-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 14px; border-bottom: 1px solid #DDD9D0;
}
.cz-win-name {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Figtree', system-ui, sans-serif; font-weight: 600; font-size: 13px; color: #1C1C1A; line-height: 1.3;
}
.cz-win-folder { display: block; width: 16px; height: 12px; flex: 0 0 auto; }
.cz-win-ctrl { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.cz-win-ctrl svg { display: block; width: 28px; height: 20px; }
.cz-win-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px;
  padding: 9px 14px; border-bottom: 1px solid #DDD9D0;
  font-family: 'Figtree', system-ui, sans-serif; font-size: 12px; line-height: 1.4; color: #6B6560;
}
.cz-win-crumb span:last-child { color: #1C1C1A; font-weight: 600; }
.cz-win-sep { color: #6B6560; }
.cz-win-table { padding: 0 14px 6px; }
.cz-win-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 32px;
  gap: 10px; align-items: start;
  padding: 9px 0; border-bottom: 1px solid #DDD9D0;
}
.cz-win-row:last-child { border-bottom: 0; }
.cz-win-type { display: none; }
.cz-win-head {
  padding: 8px 0;
  font-family: 'Figtree', system-ui, sans-serif; font-weight: 600; font-size: 11px; line-height: 1.3; color: #6B6560;
}
.cz-win-file {
  display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; align-items: start;
  font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; line-height: 1.35; color: #1C1C1A;
  overflow-wrap: anywhere;
}
.cz-win-file svg { display: block; width: 14px; height: 16px; margin-top: 1px; }
.cz-win-mono { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 10px; line-height: 1.6; color: #6B6560; }
.cz-win-type { font-family: 'Figtree', system-ui, sans-serif; font-size: 12px; line-height: 1.4; color: #6B6560; }
.cz-win-size { text-align: right; }
.cz-win-cap { margin: 12px 0 0; font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: #6B6560; }

@media (max-width: 899px) {
  .cz-win-row { grid-template-columns: minmax(0, 1fr); }
  .cz-win-row > .cz-win-col { display: none; }
  .cz-win-row[data-compact="hide"] { display: none; }
}

/* ---- section copy ------------------------------------------ */
.cz-callout {
  margin-top: 32px; max-width: 70ch;
  border: 1px solid #DDD9D0; border-left: 4px solid #B85C38;
  padding: clamp(22px, 2.4vw, 30px);
}
.ra-label { margin: 0 0 12px; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #B85C38; }

/* ---- numbered checklist (from cyber page) ------------------ */
.ra-check { margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid #DDD9D0; max-width: 820px; }
.ra-check > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 18px 0; border-bottom: 1px solid #DDD9D0; }
.cz-check-8 { }
@media (min-width: 900px) {
  .ra-check.cz-check-8 { max-width: none; border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 48px; }
  .ra-check.cz-check-8 > li:nth-child(1), .ra-check.cz-check-8 > li:nth-child(5) { border-top: 1px solid #DDD9D0; }
}
.ra-check.ra-check--single { display: block; max-width: 60ch; border-top: 1px solid #DDD9D0; margin-bottom: 0; }
.ra-check--single > li:first-child { border-top: 0; }

/* ---- statement --------------------------------------------- */
.cz-statement {
  max-width: 34em; margin: clamp(28px, 4vh, 44px) 0 clamp(8px, 2vh, 20px);
  font-family: 'Lora', Georgia, serif; font-weight: 400;
  font-size: clamp(20px, 2.1vw, 26px); line-height: 1.6; letter-spacing: -0.01em; color: #1C1C1A;
}

/* ---- timeline (from cyber page) ---------------------------- */
.ra-time { list-style: none; margin: 30px 0 0; padding: 0 0 0 24px; border-left: 1px solid #1C1C1A; display: grid; gap: 22px; }
.ra-time > li { position: relative; }
.ra-time > li::before { content: ""; position: absolute; left: -30px; top: 3px; width: 10px; height: 10px; background: #B85C38; }
.ra-time-label { display: block; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #1C1C1A; line-height: 1.4; }
.ra-time-text { display: block; margin-top: 4px; font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: #6B6560; }
@media (min-width: 900px) {
  .ra-time { padding: 0; border-left: 0; border-top: 1px solid #1C1C1A; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .ra-time > li { padding-top: 20px; }
  .ra-time > li::before { left: 0; top: -6px; }
}

/* ---- sample diagram drawing sheet -------------------------- */
.cz-diagram-sheet { margin-top: clamp(40px, 6vh, 56px); padding: 40px 47px 0; }
.cz-legend { display: flex; align-items: center; gap: 14px; margin: 0 0 48px; font: 400 14px/1.6 'Figtree', system-ui, sans-serif; color: #1C1C1A; }
.cz-legend > svg { flex: 0 0 64px; }
.cz-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 90px; justify-content: center; }
.cz-flow > li { position: relative; min-width: 0; }
.cz-step { height: 100%; min-height: 150px; border: 1px solid #1C1C1A; background: #F5F2EC; padding: 16px 20px; }
.cz-cloud { position: absolute; inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); overflow: visible; pointer-events: none; }
.cz-step-num { display: block; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; color: #6B6560; line-height: 1.4; }
.cz-step-name { display: block; margin-top: 4px; font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.35; color: #1C1C1A; }
.cz-step-meta { display: block; margin-top: 4px; font-family: 'Figtree', system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: #6B6560; }
.cz-tags { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.cz-tag { display: flex; align-items: flex-start; gap: 7px; color: #A34F2F; font: 600 13px/1.5 'Figtree', system-ui, sans-serif; }
.cz-tag svg { flex: 0 0 18px; margin-top: 2px; }
.cz-tag polygon { fill: none; stroke: #B85C38; stroke-width: 1.3; }
.cz-tag text { fill: #A34F2F; font: 700 8px 'Space Mono', monospace; text-anchor: middle; }

/* Cloud edges occupy 22px each side; arrows stay in the clear gap. */
.cz-arrow { position: absolute; top: calc(100% + 27px); left: 50%; width: 0; height: 28px; border-left: 1.5px solid #1C1C1A; }
.cz-arrow::after { content: ""; position: absolute; left: -5.75px; bottom: -8px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid #1C1C1A; }

@media (min-width: 900px) {
  .cz-flow { grid-template-columns: repeat(3, minmax(0, 340px)); }
  .cz-flow > li:nth-child(1) { grid-row: 1; grid-column: 1; }
  .cz-flow > li:nth-child(2) { grid-row: 1; grid-column: 2; }
  .cz-flow > li:nth-child(3) { grid-row: 1; grid-column: 3; }
  .cz-flow > li:nth-child(4) { grid-row: 2; grid-column: 3; }
  .cz-flow > li:nth-child(5) { grid-row: 2; grid-column: 2; }
  .cz-flow > li:nth-child(6) { grid-row: 2; grid-column: 1; }
  .cz-flow > li:nth-child(7) { grid-row: 3; grid-column: 1; }
  .cz-flow > li:nth-child(8) { grid-row: 3; grid-column: 2; }
  .cz-flow > li:nth-child(9) { grid-row: 3; grid-column: 3; }
  .cz-flow > li:is(:nth-child(1), :nth-child(2), :nth-child(7), :nth-child(8)) .cz-arrow { left: calc(100% + 27px); top: 50%; width: 36px; height: 0; border: 0; border-top: 1.5px solid #1C1C1A; }
  .cz-flow > li:is(:nth-child(1), :nth-child(2), :nth-child(7), :nth-child(8)) .cz-arrow::after { left: auto; right: 0; top: -5.75px; bottom: auto; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #1C1C1A; }
  .cz-flow > li:is(:nth-child(4), :nth-child(5)) .cz-arrow { left: auto; right: calc(100% + 27px); top: 50%; width: 36px; height: 0; border: 0; border-top: 1.5px solid #1C1C1A; }
  .cz-flow > li:is(:nth-child(4), :nth-child(5)) .cz-arrow::after { left: 0; top: -5.75px; bottom: auto; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 8px solid #1C1C1A; }
}
.cz-drawing-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: end; gap: 32px; margin: 64px -47px 0 0; }
.cz-general-notes { max-width: 520px; padding-bottom: 32px; font: 400 14px/1.6 'Figtree', system-ui, sans-serif; color: #3A3632; }
.cz-general-notes > p { margin: 0 0 12px; font: 700 11px/1.5 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 0.12em; color: #1C1C1A; }
.cz-general-notes > ol { margin: 0; padding-left: 20px; }
.cz-general-notes li + li { margin-top: 8px; }
.cz-diagram-title { width: 470px; max-width: 100%; }
.cz-diagram-title .cz-drawn-wordmark { font-size: 16px; }
.cz-revisions > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); border-bottom: 1px solid #DDD9D0; }
.cz-revisions > div > * { padding: 8px 10px; overflow-wrap: anywhere; }
.cz-revisions > div > :first-child { border-right: 1px solid #DDD9D0; }
.cz-revisions strong { color: #A34F2F; }
.cz-revisions .cz-revision-head { font-size: 9px; text-transform: uppercase; color: #6B6560; border-color: #1C1C1A; }
.cz-revisions > div:last-child { border-bottom-color: #1C1C1A; }
@media (max-width: 899px) {
  .cz-diagram-sheet { padding: 40px 27px 0; }
  .cz-drawing-bottom { display: block; margin: 48px -27px 0; }
  .cz-general-notes { padding: 0 27px 32px; }
  .cz-diagram-title { width: 100%; border-left: 0; }
  .cz-diagram-title .cz-title-row { grid-template-columns: 100px minmax(0, 1fr); }
  .cz-diagram-title .cz-title-row > * { font-size: 11px; }
  .cz-diagram-title .cz-title-row > .cz-title-label { font-size: 8px; }
}

/* ---- price (from cyber page / services package price) ------ */
.ra-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 12px; }
.ra-price-row strong { font-family: 'Lora', serif; font-size: clamp(40px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.03em; color: #1C1C1A; }
.ra-price-row span { font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; color: #6B6560; line-height: 1.7; }
.cz-prices { margin: 30px 0 30px; padding: clamp(26px, 2.4vw, 34px); border: 1px solid #DDD9D0; max-width: 560px; }
.cz-prices .ra-price-row:first-child { margin-top: 0; }
.ra-callout { margin-top: 32px; padding-left: 20px; border-left: 4px solid #B85C38; max-width: 60ch; }
.ra-callout-label { margin: 0 0 8px; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #B85C38; }

/* ---- form on the dark section: token palette only ---------- */
.cz-form .intake-field { border-color: #6B6560 !important; }
.cz-form .intake-field:hover { border-color: #DDD9D0 !important; }
.cz-form .intake-field:focus,
.cz-form .intake-field[aria-invalid="true"] { border-color: #B85C38 !important; }
.cz-form .intake-field::placeholder { color: #6B6560; opacity: 1; }
.cz-form select.intake-field option { background: #1C1C1A; color: #F5F2EC; }
.cz-form .intake-error { color: #B85C38; }
.cz-success { opacity: 0; transform: translateY(10px); transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cz-success.is-visible { opacity: 1; transform: none; }
.cz-success:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .cz-success { transition: none; }
}
