/**
 * File role: what /ro/ws/ (the VOGO eBS web services page) adds to the shared frame (/ro/e-reg/e-reg.css,
 * body.ereg-pk, and /ro/ecm-sections.css): the hero without a picture, the chapter status badges, the action tables
 * of each chapter and the code samples of the sign-in chapter. Colours are the frame's tokens.
 *
 * $file_version: 1.0.0
 */

/* The hero without a picture, as on /ro/agent-business/. */
body.ws-pk .pk-hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(31,111,235,.28) 0%, rgba(31,111,235,0) 55%),
    linear-gradient(135deg, var(--pk-abyss) 0%, var(--pk-deep) 100%);
}

/* A chapter card is a link to its chapter. */
body.ws-pk a.card { display: block; color: inherit; text-decoration: none; }
body.ws-pk a.card:hover h3 { text-decoration: underline; }

/* The state of a chapter: available, partly available, being prepared. */
body.ws-pk .ws-state { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 700; white-space: nowrap; }
body.ws-pk .ws-state--live { background: #e8f6ee; color: #16a34a; border: 1px solid #bfe6cd; }
body.ws-pk .ws-state--part { background: #eef4ff; color: #1f5fbf; border: 1px solid #c9daf6; }
body.ws-pk .ws-state--next { background: #fff4e8; color: #b45309; border: 1px solid #f3d4b0; }

/* A chapter: its head, its scopes, then one table per group of actions. */
body.ws-pk .ws-chapter { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--pk-line); }
body.ws-pk .ws-chapter__lead { max-width: 860px; color: var(--pk-muted); line-height: 1.6; }
body.ws-pk .ws-scopes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 6px; padding: 0; list-style: none;
  font-size: .95rem; color: var(--pk-ink); }
body.ws-pk .ws-group { margin: 26px 0 8px; font-size: 1.05rem; font-weight: 700; color: var(--pk-ink); }

body.ws-pk .ws-table { width: 100%; border-collapse: collapse; background: var(--pk-paper); border: 1px solid var(--pk-line);
  border-radius: 7px; overflow: hidden; font-size: .95rem; }
body.ws-pk .ws-table th { background: var(--pk-abyss); color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 10px 14px; }
body.ws-pk .ws-table td { padding: 9px 14px; border-top: 1px solid var(--pk-line); vertical-align: top; line-height: 1.45; }
/* The short columns never break; the description takes what is left. */
body.ws-pk .ws-table td.ws-nowrap,
body.ws-pk .ws-table th.ws-nowrap { white-space: nowrap; width: 1%; }
body.ws-pk .ws-table code,
body.ws-pk .ws-scopes code,
body.ws-pk .ws-chapter__lead code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; color: var(--pk-deep); }

/* The sign-in chapter: the request samples. */
body.ws-pk .ws-code { margin: 10px 0 0; padding: 14px 16px; border-radius: 7px; background: var(--pk-abyss); color: #e6edf7;
  font-family: ui-monospace, Consolas, monospace; font-size: .86rem; line-height: 1.55; white-space: pre-wrap;
  word-break: break-all; }
body.ws-pk .ws-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
body.ws-pk .ws-step h3 { margin: 0 0 6px; font-size: 1.02rem; }
body.ws-pk .ws-step p { margin: 0; color: var(--pk-muted); line-height: 1.5; }

/* The security cards, under the addresses table. */
body.ws-pk .ws-security { margin-top: 26px; }

/* Phones: the tables scroll inside their own box, the steps stack. */
@media (max-width: 860px) {
  body.ws-pk .ws-tablewrap { overflow-x: auto; }
  body.ws-pk .ws-steps { grid-template-columns: minmax(0, 1fr); }
}
