/* Intent layer for the employment agreement page. Extends site.css. */

.ef-flow h2 {
  margin-top: 0;
}

.ef-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ef-lang {
  display: flex;
  gap: 4px;
}

.ef-lang-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}

.ef-lang-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.ef-lang-btn[aria-current] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 700;
}

.ef-goals {
  margin: 0 0 18px;
  padding-left: 20px;
}

.ef-goals li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* The contract itself sits in its own bordered block below the intent section. */
.ef-doc {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfdff;
}

.ef-doc > h1 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .ef-doc {
    padding: 16px;
  }
}

.ef-flow {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.ef-flow .diagram {
  overflow-x: auto;
  margin: 4px 0 18px;
}

.ef-flow svg {
  width: 100%;
  height: auto;
  font: 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ef-box {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.5;
}

.ef-box.ef-t1,
.ef-box.ef-t2 {
  fill: var(--pale);
  stroke: var(--blue);
}

.ef-box.ef-period {
  fill: #eef7f0;
  stroke: #2f7d52;
}

.ef-box.ef-exit {
  fill: var(--warn);
  stroke: #d28f00;
}

.ef-title {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.ef-sub {
  fill: var(--muted);
  font-size: 12px;
}

.ef-rule {
  stroke: var(--line);
  stroke-width: 1;
}

.ef-money {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.ef-money-sub {
  fill: var(--muted);
  font-size: 11.5px;
}

.ef-edge {
  stroke: var(--muted);
  stroke-width: 1.5;
}

marker path {
  fill: var(--muted);
}

.ef-period {
  stroke: #2f7d52;
  stroke-width: 3;
}

.ef-period-label {
  fill: #2f7d52;
  font-size: 12px;
  font-weight: 700;
}

.ef-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pale);
  color: var(--blue);
  font: 700 11px/1 system-ui, sans-serif;
  vertical-align: 2px;
  cursor: pointer;
}

.ef-tip:hover,
.ef-tip:focus-visible {
  background: var(--blue);
  color: #fff;
}

.ef-panel {
  position: absolute;
  z-index: 70;
  width: min(330px, 88vw);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 14px 34px rgba(22, 36, 58, .26);
}

@media print {
  /* The printed sheet is the contract alone: no goals, diagram, notes or language tabs. */
  .ef-tip,
  .ef-panel,
  .ef-flow {
    display: none;
  }

  .ef-doc {
    padding: 0;
    border: 0;
    background: none;
  }
}

/* Two things the contract deliberately leaves unexplained; they live on the page. */
.ef-notes {
  margin-top: 4px;
}

.ef-notes h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.ef-note {
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
  background: #fcfdff;
}

.ef-note h4 {
  margin: 0 0 5px;
  font-size: 13.5px;
  color: var(--blue);
}

.ef-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}
