/* =====================================================================
   Nxt7a – Operations area shared chrome (os.css)
   Used by: home, vision, core_systems, operations, sops, processes.
   Tokens come from assets/tokens.css.
   ===================================================================== */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  background: linear-gradient(135deg, #f9fafb 0%, #f0fdf4 100%);
  font-family: var(--font-sans); color: var(--fg1);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 48px 32px 96px; }

/* ── Back link ──────────────────────────────────────────────── */
.back {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg3); margin-bottom: 28px; transition: color 160ms var(--ease-standard);
}
.back:hover { color: var(--brand); }
.back svg { width: 14px; height: 14px; stroke-width: 2.25; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { margin-bottom: 48px; }
.hero__logo { height: 38px; margin-bottom: 28px; display: block; }
.hero__kicker {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brand); font-weight: 600; margin-bottom: 12px;
}
.hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; max-width: 24ch; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 17px; line-height: 1.6; color: var(--fg2); margin: 0; max-width: 64ch; }
@media (max-width: 560px) { .hero h1 { font-size: 34px; } }

/* ── Sections ───────────────────────────────────────────────── */
section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.section-head .hint { font-size: 12px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.group-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--fg3); margin: 26px 0 12px;
}
.group-label:first-of-type { margin-top: 6px; }

/* ── System tile grid ───────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-xs); position: relative;
  transition: all 180ms var(--ease-standard);
}
.tile:hover { box-shadow: var(--shadow-lg); border-color: var(--border-green); transform: translateY(-1px); }
.tile__mono {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: var(--nxt-forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.tile__mono img { width: 22px; height: 22px; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.tile__glyph { width: 22px; height: 22px; display: block; }
.tile__body { min-width: 0; display: flex; flex-direction: column; }
.tile__name { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; }
.tile__desc { display: block; font-size: 11.5px; color: var(--fg3); line-height: 1.35; margin-top: 2px; }
.tile__arrow { margin-left: auto; color: var(--nxt-gray-300); flex-shrink: 0; transition: color 180ms; }
.tile:hover .tile__arrow { color: var(--brand); }
.tile__arrow svg { width: 15px; height: 15px; display: block; }

/* Product highlight tile */
.tile--product .tile__mono img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.tile--product { background: var(--nxt-forest); border-color: var(--nxt-forest); }
.tile--product .tile__name { color: #fff; }
.tile--product .tile__desc { color: rgba(255,255,255,0.65); }
.tile--product .tile__mono { background: rgba(255,255,255,0.12); }
.tile--product .tile__arrow { color: rgba(255,255,255,0.5); }
.tile--product:hover .tile__arrow { color: #86efac; }

/* Per-section icon accents – brand order: greens then browns */
.tiles.acc-1 .tile__mono { background: #3E9B4C; } /* Brand Green */
.tiles.acc-2 .tile__mono { background: #15803d; } /* Primary */
.tiles.acc-3 .tile__mono { background: #1a4d2e; } /* Forest */
.tiles.acc-4 .tile__mono { background: #c08552; } /* Ochre */
.tiles.acc-5 .tile__mono { background: #8b5a3c; } /* Umber */
.tiles.acc-6 .tile__mono { background: #6b3e1f; } /* Coffee */
.tiles.acc-7 .tile__mono { background: #3d2614; } /* Coffee Deep */
.tiles.acc-6 .tile--product .tile__mono { background: rgba(255,255,255,0.12); }

/* ── Internal document cards ────────────────────────────────── */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.doc-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: all 180ms var(--ease-standard);
}
.doc-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-green); transform: translateY(-1px); }
.doc-card__chip {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; padding: 4px 10px; background: var(--nxt-mint-100); color: var(--brand-strong);
  border-radius: 999px; margin-bottom: 12px;
}
.doc-card__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.doc-card__title .arrow { color: var(--brand); font-weight: 700; }
.doc-card__desc { font-size: 13px; color: var(--fg2); line-height: 1.5; margin: 0; }

/* Dark feature doc card */
.doc-card--accent { background: var(--nxt-forest); border-color: var(--nxt-forest); }
.doc-card--accent .doc-card__title { color: #fff; }
.doc-card--accent .doc-card__title .arrow { color: #86efac; }
.doc-card--accent .doc-card__desc { color: rgba(255,255,255,0.72); }
.doc-card--accent .doc-card__chip { background: rgba(255,255,255,0.12); color: #86efac; }

/* ── Purpose / Mission / Vision ─────────────────────────────── */
.pv-stack { display: grid; gap: 14px; margin-bottom: 28px; }
.pv-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.pv-card--accent { background: var(--nxt-forest); border-color: var(--nxt-forest); }
.pv-card--accent .pv-card__text { color: #fff; }
.pv-card--accent .pv-card__label { color: #86efac; }
.pv-card--accent .pv-card__def { color: rgba(255,255,255,0.6); }
.pv-card__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
  color: var(--brand-strong); margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.pv-card__def { font-size: 12px; line-height: 1.5; color: var(--fg3); margin: 0 0 14px; max-width: 72ch; }
.pv-card__text { font-size: 17px; line-height: 1.55; color: var(--fg1); margin: 0; font-weight: 500; letter-spacing: -0.01em; max-width: 64ch; }
.pv-chip {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  color: var(--fg3); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px;
}
.pv-card--accent .pv-chip { color: rgba(255,255,255,0.72); border-color: rgba(255,255,255,0.3); }

/* ── Values ─────────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 20px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--brand);
}
.value-card__name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--fg1); }
.value-card__desc { font-size: 12.5px; line-height: 1.5; color: var(--fg2); margin: 0; }

/* ── ESG ────────────────────────────────────────────────────── */
.esg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 720px) { .esg-grid { grid-template-columns: 1fr; } }
.esg-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }
.esg-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.esg-card__well { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.esg-card__well svg { width: 18px; height: 18px; stroke-width: 1.75; color: #fff; }
.esg-card__title { font-size: 14px; font-weight: 700; color: var(--fg1); }
.esg-card__desc { font-size: 12.5px; line-height: 1.5; color: var(--fg2); margin: 0; }

/* ── SDG tiles ──────────────────────────────────────────────── */
.sdg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 720px) { .sdg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .sdg-grid { grid-template-columns: repeat(2, 1fr); } }
.sdg-tile {
  display: block; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative; text-decoration: none;
  transition: transform 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard);
}
.sdg-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sdg-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sdg-tile__pdf {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  background: rgba(255,255,255,0.92); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 160ms var(--ease-standard); box-shadow: var(--shadow-sm);
}
.sdg-tile:hover .sdg-tile__pdf { opacity: 1; }
.sdg-tile__pdf svg { width: 13px; height: 13px; stroke-width: 2; color: var(--brand-strong); }
.sdg-credit { font-size: 11px; color: var(--fg3); margin-top: 14px; line-height: 1.55; }
.sdg-credit a { color: var(--brand-strong); text-decoration: none; }

/* ── Notes ──────────────────────────────────────────────────── */
.note {
  margin-top: 56px; padding: 22px 26px; background: #fff;
  border-radius: 12px; border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--fg2); line-height: 1.6;
}
.note h3 { font-size: 13px; font-weight: 700; color: var(--brand-strong); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.note ul { margin: 0; padding-left: 18px; }
.note li { margin-bottom: 4px; }
.note strong { color: var(--fg1); }
.note code { font-family: var(--font-mono); font-size: 12px; background: var(--nxt-gray-100); padding: 1px 5px; border-radius: 3px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--fg3); display: flex; justify-content: space-between;
  text-transform: uppercase; letter-spacing: 0.08em; flex-wrap: wrap; gap: 8px;
}
