/* PUBLIC_CANDIDATE_D02_SERVICES_20260521 - minimal stylesheet
   Local public-candidate bundle. Not deployed by this file alone.
   No purple-gradient SaaS hero. Neutral, dense, B2B-readable. */

:root {
  --ink: #1a1f24;
  --ink-soft: #4c5560;
  --ink-mute: #8590a0;
  --rule: #d8dde3;
  --rule-soft: #ecf0f4;
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --accent: #2a4858;
  --warn-bg: #fff6e0;
  --warn-ink: #6b4f00;
  --held-bg: #f1f3f6;
  --held-ink: #5a6470;
  --slot-bg: #eef2f6;
  --slot-stripe: #e2e8ee;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 64px;
  overflow-wrap: anywhere;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  margin-bottom: 32px;
  font-size: 14px;
}
.nav .wordmark {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .inquire { font-weight: 500; }

/* Local-preview banner */
.preview-banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 10px 16px;
  font-size: 13px;
  border: 1px solid #f2dcb0;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* Typography */
h1 { font-size: 32px; line-height: 1.2; margin: 16px 0 8px; }
h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--rule-soft); }
h3 { font-size: 17px; margin: 24px 0 8px; }
.lead { font-size: 17px; color: var(--ink-soft); margin: 8px 0 24px; }

p, ul, ol, table { margin: 12px 0; }
p, li, h1, h2, h3, th, td, .preview-banner, .slot, .slot small {
  overflow-wrap: anywhere;
  word-break: normal;
}
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule-soft);
}
th { background: var(--rule-soft); font-weight: 600; }

/* Code-ish strings (placeholders, emails, repo URLs) */
code, .placeholder {
  background: var(--slot-bg);
  padding: 1px 5px;
  border-radius: 3px;
  font: 13px/1.4 ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Visual slots (neutral placeholders, NOT generated images) */
.slot {
  background:
    repeating-linear-gradient(
      45deg,
      var(--slot-bg) 0 12px,
      var(--slot-stripe) 12px 24px
    );
  border: 1px dashed var(--ink-mute);
  border-radius: 4px;
  color: var(--ink-soft);
  text-align: center;
  padding: 28px 16px;
  margin: 16px 0;
  font: 13px/1.4 ui-monospace, "SF Mono", Consolas, monospace;
}
.slot small { color: var(--ink-mute); display: block; margin-top: 4px; font-family: inherit; }
.slot.hero { padding: 64px 16px; }

/* CSS-only visual anchors for the local preview. No external image assets. */
.hero-visual {
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%);
  border-radius: 6px;
  margin: 16px 0 24px;
  padding: 22px;
  width: 100%;
  max-width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.visual-desk {
  width: min(100%, 720px);
  min-height: 204px;
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.visual-sheet,
.visual-service-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(42, 72, 88, 0.08);
}
.visual-sheet--large { grid-row: span 2; }
.visual-sheet--accent,
.visual-service-card--accent { border-left: 4px solid var(--accent); }
.visual-sheet span,
.visual-service-card span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.visual-sheet i,
.visual-service-card i {
  display: block;
  height: 8px;
  width: 100%;
  background: var(--rule-soft);
  border-radius: 2px;
  margin: 8px 0;
}
.visual-sheet i:nth-of-type(2),
.visual-service-card i:nth-of-type(2) { width: 72%; }
.visual-sheet i:nth-of-type(3),
.visual-service-card i:nth-of-type(3) { width: 46%; background: #dbe5e9; }
.visual-rail {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.visual-rail b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #233944;
  color: #fff;
  border-radius: 3px;
  padding: 7px 8px;
  font-size: 12px;
  text-align: center;
}
.visual-service-grid {
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.visual-service-card--wide {
  grid-row: span 2;
  min-height: 180px;
}

/* Held / benchmark-held boxes */
.held {
  background: var(--held-bg);
  color: var(--held-ink);
  border-left: 3px solid var(--ink-mute);
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 14px;
}
.held strong { color: var(--ink); }

/* CTAs (text-only by design) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 8px;
}
.cta {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  border-radius: 3px;
}
.cta:hover { background: var(--ink); color: #fff; }

/* Hub page lists */
.read-order td:first-child { width: 32px; color: var(--ink-mute); }

/* Footer */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}
.footer .cols h4 {
  font-size: 13px;
  margin: 0 0 8px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0.02em;
}
.footer .cols ul { list-style: none; padding: 0; margin: 0; }
.footer .cols li { margin: 4px 0; }
.footer .strip {
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
}

/* Tagged status */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}
.tag.held { background: #fdecea; color: #8a2418; }
.tag.ready { background: #e5f1ea; color: #1f5732; }
.tag.edits { background: #fff6e0; color: #6b4f00; }

/* Proof strip 3-column */
.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.proof .col {
  border: 1px solid var(--rule);
  padding: 16px;
  background: var(--bg-card);
  border-radius: 4px;
}
.proof .col h3 { margin: 0 0 8px; font-size: 15px; }
.proof .col p { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; }

/* Two-column fit grid */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fit-grid .col {
  border: 1px solid var(--rule);
  padding: 16px;
  background: var(--bg-card);
  border-radius: 4px;
}

@media (max-width: 760px) {
  .page { padding: 0 16px 48px; }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav ul {
    width: 100%;
    gap: 12px;
  }
  h1 { font-size: 26px; }
  h1 {
    max-width: 358px;
    white-space: normal;
    word-break: break-word;
  }
  h2, h3, p, .lead, .preview-banner, .slot, .hero-visual, .cta-row, .proof, .fit-grid, .footer {
    max-width: 358px;
  }
  .lead { font-size: 16px; }
  table {
    display: block;
    overflow-x: auto;
  }
  th, td {
    min-width: 132px;
  }
  table.stack-table,
  table.stack-table thead,
  table.stack-table tbody,
  table.stack-table tr,
  table.stack-table td {
    display: block;
    width: 100%;
  }
  table.stack-table thead {
    display: none;
  }
  table.stack-table tr {
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--bg-card);
    margin: 12px 0;
    padding: 4px 0;
  }
  table.stack-table td {
    min-width: 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  table.stack-table td:last-child {
    border-bottom: 0;
  }
  table.stack-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-mute);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
  }
  .cta-row { gap: 10px; }
  .cta {
    flex: 1 1 100%;
    text-align: center;
  }
  .slot.hero { padding: 52px 12px; }
  .hero-visual {
    min-height: 220px;
    padding: 14px;
  }
  .visual-desk,
  .visual-service-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }
  .visual-sheet--large,
  .visual-service-card--wide {
    grid-row: auto;
    min-height: 0;
  }
  .visual-rail {
    position: static;
    margin-top: 6px;
  }
  .proof, .fit-grid, .footer .cols { grid-template-columns: 1fr; }
  .nav ul { gap: 10px; flex-wrap: wrap; }
}
