/* Annetts & Orchard — Process Library shared styles (menu + process pages) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal:  #00AEC7;
  --blue:  #004C97;
  --navy:  #003d7a;
  --white: #ffffff;
  --bg:    #f5f8fb;
  --border:#d4dde4;
  --line:  #edf1f4;
  --text:  #1a2b3c;
  --muted: #5f717e;
  --amber: #b86e00;
  --amber-bg: #fff6e6;
}
body { font-family: 'Arimo', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }

/* ---------- Nav / hero (matches the hub) ---------- */
nav {
  background: var(--navy); padding: 0 2.5rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-logo img { height: 42px; display: block; }
.nav-badge {
  background: rgba(0,174,199,0.15); border: 1px solid rgba(0,174,199,0.4); color: var(--teal);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
}
.hero { background: var(--blue); padding: 2rem 2.5rem 2rem; position: relative; overflow: hidden; }
.hero-amp {
  position: absolute; right: -40px; top: -70px; font-family: Georgia, serif; font-size: 300px; font-weight: 700;
  color: var(--teal); opacity: 0.05; pointer-events: none; line-height: 1;
}
.hero-inner { max-width: 1100px; margin: 0 auto; border-left: 4px solid var(--teal); padding-left: 1.5rem; position: relative; z-index: 1; }
.crumbs { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 0.6rem; }
.crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs span { margin: 0 6px; }
.hero-inner h1 { font-size: 26px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.35rem; }
.hero-inner p  { font-size: 14px; color: rgba(255,255,255,0.65); max-width: 640px; line-height: 1.6; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 0.9rem; font-size: 12px; color: rgba(255,255,255,0.55); }
.hero-meta b { color: rgba(255,255,255,0.9); font-weight: 600; }

main { max-width: 1140px; width: 100%; margin: 0 auto; padding: 2rem 2rem 4rem; flex: 1; }

footer { background: var(--navy); padding: 1rem 2.5rem; border-top: 3px solid var(--teal); }
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.6; max-width: 1100px; margin: 0 auto; }

/* ---------- Menu page (tiles) ---------- */
.section { margin-bottom: 2.5rem; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 10px;
}
.section-label .count { color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tool-card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--teal); border-radius: 3px;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-card.blue { border-top-color: var(--blue); }
a.tool-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,76,151,0.11); }
.tool-card.soon { opacity: 0.55; border-top-color: var(--border); }
.card-body { padding: 1.1rem 1.2rem 0.9rem; flex: 1; }
.card-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem; }
.tool-card.blue .card-tag { color: var(--blue); }
.tool-card.soon .card-tag { color: var(--muted); }
.card-title { font-size: 16px; font-weight: 700; color: var(--blue); letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.4rem; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-footer { padding: 0.65rem 1.2rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card-footer .meta { font-size: 11px; color: var(--muted); }
.cta { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 7px; transition: color 0.15s, gap 0.15s; white-space: nowrap; }
a.tool-card:hover .cta { color: var(--teal); gap: 10px; }
.cta-circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, border-color 0.15s; }
a.tool-card:hover .cta-circle { background: var(--teal); border-color: var(--teal); }
.cta-circle svg { width: 8px; height: 8px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
a.tool-card:hover .cta-circle svg { stroke: white; }

/* ---------- Process page ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1.25rem; }
.toolbar .left, .toolbar .right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn {
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--blue);
  background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 7px 12px; cursor: pointer;
}
.btn:hover { border-color: var(--teal); color: var(--teal); }
.search {
  font-family: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 3px; width: 230px; background: var(--white);
}
.search:focus { outline: none; border-color: var(--teal); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }

/* Stage overview strip */
.stage-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 2rem; }
.stage-pill {
  background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 10px 12px; text-align: left;
  font-family: inherit; cursor: pointer; color: inherit; position: relative;
}
.stage-pill:hover { border-color: var(--teal); }
.stage-pill .n { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal); }
.stage-pill .t { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 2px; line-height: 1.3; }
.stage-pill .c { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Timeline */
.timeline { position: relative; }
.stage { position: relative; padding-left: 56px; margin-bottom: 1.5rem; scroll-margin-top: 16px; }
.stage::before { content: ''; position: absolute; left: 19px; top: 0; bottom: -1.5rem; width: 2px; background: var(--border); }
.stage:last-child::before { bottom: 20px; }
.stage-head { position: relative; margin-bottom: 0.9rem; padding-top: 4px; }
.stage-node {
  position: absolute; left: -56px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg);
}
.stage-head .n { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); }
.stage-head h2 { font-size: 19px; color: var(--blue); letter-spacing: -0.01em; margin-top: 2px; }
.stage-head p { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 720px; line-height: 1.55; }

.step { position: relative; margin-bottom: 0.6rem; scroll-margin-top: 16px; }
.step::before {
  content: ''; position: absolute; left: -42px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal);
}
.step.open::before { background: var(--teal); }
.step-card { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 3px; }
.step.milestone .step-card { border-left-color: var(--blue); }
.step.milestone::before { border-color: var(--blue); width: 14px; height: 14px; left: -43px; top: 17px; transform: rotate(45deg); border-radius: 2px; }
.step.milestone.open::before { background: var(--blue); }
.step-head {
  width: 100%; background: none; border: 0; font-family: inherit; color: inherit; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px;
}
.step-num { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.step-title { font-size: 15px; font-weight: 700; color: var(--blue); line-height: 1.35; }
.step-sum { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.step-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.chip { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 2px; background: #eef4fa; color: var(--blue); white-space: nowrap; }
.chip.time { background: #e6f7fa; color: #00788a; }
.chip.ms { background: var(--blue); color: var(--white); }
.chip.draft { background: var(--amber-bg); color: var(--amber); }
.chev { width: 22px; height: 22px; margin-top: 1px; color: var(--muted); transition: transform 0.18s; }
.step.open .chev { transform: rotate(180deg); color: var(--teal); }
.step-body { display: none; border-top: 1px solid var(--line); padding: 14px 16px 16px 60px; }
.step.open .step-body { display: block; }
.step-body h4 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal); margin: 14px 0 6px; }
.step-body h4:first-child { margin-top: 0; }
.step-body p { font-size: 13.5px; line-height: 1.6; margin-bottom: 8px; }
.step-body ul { list-style: none; }
.step-body li { font-size: 13.5px; line-height: 1.5; padding: 3px 0 3px 22px; position: relative; }
.step-body ul.check li::before {
  content: ''; position: absolute; left: 2px; top: 7px; width: 11px; height: 11px; border: 1.5px solid var(--border); border-radius: 2px;
}
.step-body ul.plain li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.callout { background: #f2f8fc; border-left: 3px solid var(--blue); padding: 10px 12px; border-radius: 2px; margin-top: 4px; }
.callout li { padding-left: 16px !important; }
.callout li::before { content: '§'; position: absolute; left: 0; top: 3px; color: var(--blue); font-weight: 700; font-size: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: var(--blue); border: 1px solid var(--border); border-radius: 3px; padding: 5px 10px; background: var(--white);
}
.link:hover { border-color: var(--teal); color: var(--teal); }
.link .k { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.step-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.copy-link { font-size: 11px; color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit; }
.copy-link:hover { color: var(--teal); }
.step.hidden, .stage.hidden { display: none; }
mark { background: #fff1a8; color: inherit; padding: 0 1px; }
.empty { display: none; font-size: 14px; color: var(--muted); padding: 1rem 0 0 56px; }

@media (max-width: 760px) {
  .stage-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .search { width: 100%; }
  .toolbar .left, .toolbar .right { width: 100%; }
}
@media (max-width: 600px) {
  nav, .hero, main, footer { padding-left: 1rem; padding-right: 1rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .stage { padding-left: 40px; }
  .stage::before { left: 13px; }
  .stage-node { left: -40px; width: 28px; height: 28px; font-size: 12px; }
  .step::before { left: -32px; }
  .step.milestone::before { left: -33px; }
  .step-head { grid-template-columns: 1fr auto; }
  .step-num { display: none; }
  .step-body { padding-left: 14px; }
}

@media print {
  nav, .toolbar, .stage-strip, .chev, .step-foot, footer { display: none !important; }
  body { background: #fff; }
  .hero { background: #fff; padding: 0 0 1rem; }
  .hero-amp { display: none; }
  .hero-inner h1 { color: var(--blue); }
  .hero-inner p, .hero-meta, .crumbs { color: var(--muted); }
  .hero-meta b { color: var(--text); }
  main { padding: 0; max-width: none; }
  .step-body { display: block !important; }
  .step, .stage-head { break-inside: avoid; }
  .step.hidden, .stage.hidden { display: block; }
}
