/* Public Oposición / Bolsa detail page. Scoped to `.process-detail-*` so it
   never leaks into the process listings or the plaza detail page (which keeps
   using the older `.oposition-*` rules in app-premium.css). Shares the visual
   language of organism-detail-2026.css and the .exam-detail-* blocks:
   same tokens, same escudo container, same card rhythm.

   Composition (3rd pass, 2026-09-13): the page reads as an editorial ficha,
   not a dashboard. There is no page-long sidebar -- Seguimiento/Organismo is
   an auxiliary column only next to Datos, and every section below that goes
   back to using the full page width. The hero is one surface (identity +
   estado share a border/shadow), not two floating pieces. */

/* ---------- Hero ---------- */
.process-detail-hero {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--border-light);
  background: #f8fbff;
}

.process-detail-hero__breadcrumbs {
  margin-bottom: 18px;
}

/* One surface: identity+CTAs on the flexible track, estado on a stable
   right rail -- both inside the same bordered/shadowed card so the hero
   reads as a single composition instead of "content block + floating
   status widget". minmax(300px,340px) keeps the rail legible without
   starving long H1s of width; the collapse point is proven at 960px (see
   the responsive block below). */
.process-detail-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  grid-template-areas:
    "identity status"
    "actions  status";
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.process-detail-hero__identity {
  grid-area: identity;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  padding: 26px 28px 4px;
}

.process-detail-hero__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 8px;
  background: var(--bg, #f6f8fc);
  border: 1px solid var(--border-light);
  border-radius: 13px;
}

.process-detail-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-detail-hero__logo svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-detail-hero__logo img + svg {
  display: none;
}

.process-detail-hero__content {
  min-width: 0;
  flex: 1 1 auto;
}

.process-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.process-detail-hero__badges .public-eyebrow {
  margin: 0;
}

/* Balanced against the estado rail rather than dominating it -- the H1 no
   longer needs to carry the whole hero's visual weight on its own now that
   estado is part of the same surface (§8). */
.process-detail-hero__title {
  margin: 0;
  max-width: 46ch;
  color: var(--text);
  font-weight: 780;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.process-detail-hero__agency {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 650;
}

.process-detail-hero__agency a {
  color: var(--primary);
  text-decoration: none;
}

.process-detail-hero__agency a:hover {
  text-decoration: underline;
}

.process-detail-hero__facts {
  margin: 9px 0 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
}

.process-detail-hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 28px 24px;
}

.process-detail-hero__actions .process-detail-hero__updated {
  flex-basis: 100%;
}

.process-detail-hero__actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Seguir is secondary in priority: a quiet outline rather than a second
   filled button competing with the primary action (§11). */
.process-detail-hero__actions .btn-secondary,
.process-detail-hero__actions .process-detail-follow-btn {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
  font-weight: 600;
}

.process-detail-hero__actions .btn-secondary:hover,
.process-detail-hero__actions .process-detail-follow-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.process-detail-follow-btn.is-following {
  color: #087a5a;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.process-detail-hero__updated {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.process-detail-hero__updated-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero status rail (resumen operativo) ---------- */
/* Part of the same card as identity: a vertical divider + a whisper of tone
   color is enough to read as "the other half of one composition" instead of
   a second card. Tone matches the state pill's semantics (open=green,
   closed=neutral, everything else=primary blue). */
.process-detail-hero__status {
  grid-area: status;
  min-width: 0;
  padding: 26px 26px;
  border-left: 1px solid var(--border-light);
}

.process-detail-hero__status[data-status-tone="info"] {
  background: linear-gradient(165deg, rgba(30, 99, 255, 0.05), transparent 65%);
}

.process-detail-hero__status[data-status-tone="open"] {
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.07), transparent 65%);
}

.process-detail-hero__status[data-status-tone="closed"] {
  background: var(--surface-soft, #f8fafd);
}

.process-detail-hero__status .public-eyebrow {
  margin: 0;
}

.process-detail-hero__summary-title {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 720;
  font-size: 19px;
  line-height: 1.2;
}

.process-detail-hero__summary-body {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

/* Label / value rows with a thin divider between each -- not one card per
   date (§10). */
.process-detail-hero__dates {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 0;
}

.process-detail-hero__dates div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
}

.process-detail-hero__dates div + div {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.process-detail-hero__dates dt {
  color: var(--muted);
  font-weight: 650;
}

.process-detail-hero__dates dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  text-align: right;
}

.process-detail-hero__dates-item--highlight {
  margin: 0 -10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
}

.process-detail-hero__dates-item--highlight dt,
.process-detail-hero__dates-item--highlight dd {
  color: #047854;
}

/* Staff toolbar: a discreet secondary strip outside the public hero card,
   so it never affects that card's height or is mistaken for public UI
   (§12). */
.process-detail-staff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.process-detail-staff > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Page rhythm ---------- */
/* No more page-long main/sidebar split (§4): the page is a vertical stack of
   full-width sections, and a handful of them pair up into their own 2-column
   row. Each row is scoped to its own content, so there is never an empty
   column running past where the auxiliary content ends (§2). */
.process-detail-page {
  display: grid;
  gap: 30px;
  margin: 28px 0 40px;
}

.process-detail-row {
  display: grid;
  gap: 28px;
  align-items: start;
}

.process-detail-row--top {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

.process-detail-row--consulta {
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
}

.process-detail-row--editorial {
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

/* A row with only one section (e.g. Requisitos absent, or only Cronología)
   lets that section take the full row instead of hugging one column. */
.process-detail-row--consulta > *:only-child,
.process-detail-row--editorial > *:only-child {
  grid-column: 1 / -1;
}

/* ---------- Cards ---------- */
/* No box-shadow at rest -- the hero already carries the page's one
   "elevated" surface. Everything else reads as "delimited content to
   consult" via border + fill, same reference as organism-detail-2026.css
   (.organism-latest-card). */
.process-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

/* Section heading: small icon box + h2, same concept as the activity-list
   headings on the organism page. */
.process-detail-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-detail-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(30, 99, 255, 0.09);
  color: var(--primary);
}

.process-detail-card__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-detail-card > h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

.process-detail-card__intro {
  margin: -6px 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.process-detail-card__more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  display: inline-block;
  margin-top: 14px;
}

.process-detail-card__more:hover {
  text-decoration: underline;
}

.process-detail-muted {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

/* ---------- Shared label/value field list ---------- */
/* Used by "Datos de la convocatoria" (per group) and "Requisitos": plain
   label + value rows, cero mini-cards. Alignment comes from CSS Grid, not
   from a bordered cell per field. */
.process-detail-fieldlist {
  display: grid;
  /* Capped at 42% (not `auto`) so a long label -- "Publicación en boletín
     autonómico o provincial" -- wraps onto its own line instead of eating
     the value column's width down to nothing inside the narrower halves of
     the 2x2 datos grid. */
  grid-template-columns: minmax(84px, 42%) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 11px;
  margin: 0;
}

.process-detail-fieldlist dt {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  padding-top: 2px;
}

.process-detail-fieldlist dd {
  grid-column: 2;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.process-detail-fieldlist dt.process-detail-fieldlist__wide,
.process-detail-fieldlist dd.process-detail-fieldlist__wide {
  grid-column: 1 / -1;
}

.process-detail-fieldlist dd.process-detail-fieldlist__wide {
  margin-top: -3px;
}

.process-detail-fieldlist--extra {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

/* Data-value links: a link because the value happens to point somewhere,
   not a call to action -- dark text with an underline (so the link
   affordance never depends on color alone) that only turns primary blue on
   hover/focus (§28). */
.process-detail-fieldlist dd a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.process-detail-fieldlist dd a:hover,
.process-detail-fieldlist dd a:focus-visible {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.process-detail-data__longtext > summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 650;
  font-size: 14px;
}

.process-detail-data__longtext > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.process-detail-data__longtext[open] > summary {
  margin-bottom: 6px;
}

/* ---------- Datos de la convocatoria ---------- */
/* One outer card, one internal 2x2 grid of labelled groups (Proceso/Acceso
   over Administración/Fechas), a single vertical divider between the two
   columns and a single horizontal divider between the two row-groups -- not
   four bordered mini-cards (§13). The divider row spans both columns so the
   horizontal rule stays a straight line even when Proceso and Acceso have a
   different number of fields (grid items stretch to the row's full height,
   so the vertical border on the right column also spans correctly). */
.process-detail-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "proceso acceso"
    "divider divider"
    "administracion fechas";
  column-gap: 32px;
}

.process-detail-data-grid__divider {
  grid-area: divider;
  height: 1px;
  background: var(--border-light);
  margin: 22px 0;
}

.process-detail-data-grid__group[data-group="proceso"] { grid-area: proceso; }
.process-detail-data-grid__group[data-group="acceso"] { grid-area: acceso; }
.process-detail-data-grid__group[data-group="administracion"] { grid-area: administracion; }
.process-detail-data-grid__group[data-group="fechas"] { grid-area: fechas; }

.process-detail-data-grid__group[data-group="acceso"],
.process-detail-data-grid__group[data-group="fechas"] {
  padding-left: 32px;
  border-left: 1px solid var(--border-light);
}

.process-detail-data__group {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Documentos ---------- */
/* A flat list with a divider between rows -- not a card per document
   (§18). Only the primary/prioritary document gets a soft highlight; every
   other row is a plain line (§19). */
.process-detail-doclist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-detail-doc-row {
  border-bottom: 1px solid var(--border-light);
}

.process-detail-doc-row:last-child {
  border-bottom: none;
}

.process-detail-doc-row__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  text-decoration: none;
  color: inherit;
}

.process-detail-doc-row.is-primary {
  background: rgba(30, 99, 255, 0.045);
  margin: 0 -10px;
  border-radius: 10px;
  border-bottom-color: transparent;
}

.process-detail-doc-row.is-primary .process-detail-doc-row__link {
  padding: 13px 10px;
}

.process-detail-doc-row__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(30, 99, 255, 0.08);
  color: var(--primary);
  flex: 0 0 auto;
}

.process-detail-doc-row__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-detail-doc-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-detail-doc-row__body strong {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  overflow-wrap: anywhere;
}

.process-detail-doc-row__body small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.process-detail-doc-row__action {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.process-detail-details {
  margin-top: 14px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.process-detail-details > summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  list-style: revert;
}

.process-detail-details > summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.process-detail-linklist {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.process-detail-linklist a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.process-detail-linklist a:hover {
  text-decoration: underline;
}

.process-detail-linklist small {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Requisitos de acceso ---------- */
/* Neutral stone accent -- a local, editorial treatment of this one section,
   not a new semantic color category (32° vs the OEP orange's 26° hue was
   too close; stone reads as neutral). One surface, no inner card (§17). */
.process-detail-req {
  border-color: rgba(120, 113, 108, 0.28);
  background: linear-gradient(135deg, rgba(120, 113, 108, 0.06), transparent);
}

.process-detail-req .process-detail-card__icon {
  background: rgba(120, 113, 108, 0.16);
  color: #57534e;
}

.process-detail-req__titulacion {
  white-space: pre-line;
}

.process-detail-req__note {
  margin-top: 14px;
}

/* ---------- Temario oficial ---------- */
/* Capped reading width so a full-width card (there is no sidebar to
   constrain it anymore) doesn't stretch topic lines edge-to-edge on wide
   desktops (§20-21). */
.process-detail-temario__body {
  max-width: 1000px;
}

.process-detail-temario__bloque + .process-detail-temario__bloque {
  margin-top: 20px;
}

.process-detail-temario__bloque-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.process-detail-temario__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.process-detail-temario__list + .process-detail-details .process-detail-temario__list {
  margin-top: 14px;
}

.process-detail-temario__item {
  padding-left: 0;
}

.process-detail-temario__item + .process-detail-temario__item {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.process-detail-temario__text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
}

.process-detail-temario__num {
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 4px;
}

.process-detail-temario__link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 13px;
}

.process-detail-temario__link-label {
  color: var(--muted);
  font-weight: 650;
}

.process-detail-chip {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg, #f6f8fc);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.process-detail-temario__count {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Editorial sections (cardless) ---------- */
/* Narrative/secondary sections (Cronología, Sobre esta convocatoria, the
   empty Exámenes state, Relacionados) sit directly on the page background
   instead of inside another white card -- a divider rule above the heading
   gives them rhythm without adding another identical box (§22, §26). */
.process-detail-editorial {
  padding: 0;
}

.process-detail-editorial__heading {
  margin: 0 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

/* Inside a 2-column editorial row, only the left section needs its own
   top divider from whatever precedes the row -- the right section already
   reads as paired with it via the shared row and the vertical gap. Both
   still get the divider for a consistent top edge across the row. */

.process-detail-editorial--compact {
  margin-top: -4px;
}

.process-detail-editorial--compact .process-detail-editorial__heading {
  margin-bottom: 8px;
  padding-top: 20px;
  font-size: 16px;
}

.process-detail-editorial--compact__empty {
  margin: 0;
}

.process-detail-editorial--compact__empty a {
  margin-left: 6px;
  color: var(--primary);
  font-weight: 650;
  text-decoration: none;
}

.process-detail-editorial--compact__empty a:hover {
  text-decoration: underline;
}

/* ---------- Cronología ---------- */
.process-detail-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-detail-timeline__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 18px;
}

.process-detail-timeline__item:last-child {
  padding-bottom: 0;
}

.process-detail-timeline__date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-top: 1px;
}

.process-detail-timeline__body {
  position: relative;
  min-width: 0;
  padding: 0 0 4px 18px;
  border-left: 2px solid var(--border);
}

.process-detail-timeline__item:last-child .process-detail-timeline__body {
  border-left-color: transparent;
}

.process-detail-timeline__marker {
  position: absolute;
  left: -8px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card);
}

.process-detail-timeline__head {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.process-detail-timeline__kind {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.process-detail-timeline__desc {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.process-detail-timeline__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.process-detail-timeline__link:hover {
  text-decoration: underline;
}

/* ---------- Sobre esta convocatoria (+ Oferta Pública de Empleo) ---------- */
.process-detail-about {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.process-detail-about :first-child {
  margin-top: 0;
}

.process-detail-about :last-child {
  margin-bottom: 0;
}

/* OEP folds into "Sobre esta convocatoria" as contextual metadata instead of
   its own full section (§23) -- when prose is also present, a small label
   introduces it as a distinct sub-block; when OEP is the only content, the
   section heading itself already reads "Oferta Pública de Empleo". */
.process-detail-oep--sub {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.process-detail-oep__label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.process-detail-oep__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-detail-oep__list > li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.process-detail-oep__list > li:last-child {
  border-bottom: none;
}

.process-detail-oep__list strong {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
}

.process-detail-oep__list small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.process-detail-oep__link {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.process-detail-oep__link:hover {
  text-decoration: underline;
}

/* ---------- Exámenes ---------- */
/* If there's a list, a light card holds flat internal rows (exams are
   actionable content, so they keep a delimited surface) -- but each exam is
   a row with a divider, not another bordered box (§24). */
.process-detail-examlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-detail-exam-row {
  border-bottom: 1px solid var(--border-light);
}

.process-detail-exam-row:last-child {
  border-bottom: none;
}

.process-detail-exam-row__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.09);
  color: var(--accent);
  flex: 0 0 auto;
}

.process-detail-exam-row__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-detail-examlist li.process-detail-exam-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
}

.process-detail-exam-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-detail-exam-row__body strong {
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.process-detail-exam-row__body strong a {
  color: var(--text);
  text-decoration: none;
}

.process-detail-exam-row__body strong a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.process-detail-exam-row__body small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.process-detail-exam-row__action {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.process-detail-exam-row__action:hover {
  text-decoration: underline;
}

/* ---------- Procesos relacionados ---------- */
/* Pure-CSS responsive grid -- no backend branching on item count (§25). One
   item fills the width, two sit side by side once there's room, and so on. */
.process-detail-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-detail-related__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 13px 15px;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.process-detail-related__row:hover {
  border-color: rgba(30, 99, 255, 0.4);
}

.process-detail-related__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.process-detail-related__main strong {
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.process-detail-related__main small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

/* ---------- Row auxiliar: Seguimiento + Organismo ---------- */
/* The only lateral auxiliary block left in the page, scoped to the top row
   next to Datos -- not a page-long sidebar (§4, §15). Sticky within that
   row only: position:sticky can't escape its own containing block, so it
   naturally stops being sticky once the row ends. */
.process-detail-sidegroup {
  display: grid;
  position: sticky;
  top: 88px;
}

.process-detail-sidegroup__block--divider {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.process-detail-side > h2 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 16px;
}

.process-detail-side__link {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.process-detail-side__link:hover {
  text-decoration: underline;
}

.process-detail-follow p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.process-detail-follow form {
  margin: 0;
}

.process-detail-orgcard__body {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
}

.process-detail-orgcard__logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 5px;
}

.process-detail-orgcard__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-detail-orgcard__logo img + svg {
  display: none;
}

.process-detail-orgcard__logo svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-detail-orgcard .process-detail-side__link:first-of-type {
  margin-top: 14px;
}

/* ---------- Responsive ---------- */
/* Every 2-column row in the page (hero, datos+auxiliar, requisitos+
   documentación, cronología+sobre) collapses at the same 960px breakpoint,
   proven against real short and long H1s in the previous pass and re-
   checked here for the requisitos/documentación 38%/62% split, which is
   narrower and would cramp earlier if it didn't share the same point. */
@media (max-width: 960px) {
  .process-detail-hero__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "status"
      "actions";
  }

  .process-detail-hero__status {
    border-left: none;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
  }

  .process-detail-row--top,
  .process-detail-row--consulta,
  .process-detail-row--editorial {
    grid-template-columns: 1fr;
  }

  .process-detail-sidegroup {
    position: static;
  }
}

@media (max-width: 640px) {
  /* The hero was consuming most of the first mobile viewport on its own
     (measured ~525px of a 390x844 screen -- Situación actual wasn't even
     fully visible without scrolling). Tighter spacing throughout, not
     smaller tap targets: every control keeps its full-size hit area. */
  .process-detail-hero {
    padding: 14px 0 16px;
  }

  .process-detail-hero__breadcrumbs {
    margin-bottom: 10px;
  }

  .process-detail-hero__card {
    border-radius: 18px;
  }

  .process-detail-hero__identity {
    gap: 12px;
    padding: 18px 18px 4px;
  }

  .process-detail-hero__logo {
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 10px;
  }

  .process-detail-hero__badges {
    margin-bottom: 6px;
  }

  .process-detail-hero__title {
    font-size: 22px;
  }

  .process-detail-hero__agency {
    margin-top: 8px;
    font-size: 14px;
  }

  .process-detail-hero__facts {
    margin-top: 5px;
    font-size: 13.5px;
  }

  .process-detail-hero__status {
    padding: 16px 18px;
  }

  .process-detail-hero__summary-title {
    font-size: 17px;
  }

  .process-detail-hero__actions {
    padding: 14px 18px 20px;
    gap: 8px;
  }

  /* Only the official action stays full-width/dominant. Seguir is
     secondary in priority so it shouldn't match it stretch-for-stretch --
     auto width keeps it visually and semantically lighter. */
  .process-detail-hero__actions .btn.btn-primary {
    width: 100%;
  }

  .process-detail-hero__actions .process-detail-follow-btn {
    width: auto;
  }

  .process-detail-card {
    padding: 18px 16px;
  }

  .process-detail-fieldlist {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .process-detail-fieldlist dt,
  .process-detail-fieldlist dd {
    grid-column: 1 / -1;
  }

  .process-detail-fieldlist dd {
    margin-top: -6px;
  }

  /* The 2x2 datos grid stacks into the four groups in their natural order;
     every group gets the same top divider instead of only the bottom row,
     since there are no more columns to separate with a vertical rule. */
  .process-detail-data-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "proceso"
      "acceso"
      "administracion"
      "fechas";
  }

  .process-detail-data-grid__divider {
    display: none;
  }

  .process-detail-data-grid__group[data-group="acceso"],
  .process-detail-data-grid__group[data-group="fechas"] {
    padding-left: 0;
    border-left: 0;
  }

  .process-detail-data-grid__group[data-group="acceso"],
  .process-detail-data-grid__group[data-group="administracion"],
  .process-detail-data-grid__group[data-group="fechas"] {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
  }

  .process-detail-editorial__heading {
    padding-top: 20px;
    font-size: 17px;
  }

  .process-detail-doc-row__link,
  .process-detail-examlist li.process-detail-exam-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .process-detail-doc-row__action,
  .process-detail-exam-row__action {
    grid-column: 2;
  }

  .process-detail-timeline__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .process-detail-timeline__body {
    border-left: 0;
    padding-left: 0;
  }

  .process-detail-timeline__marker {
    display: none;
  }
}

@media (max-width: 400px) {
  /* At the narrowest widths the logo shrinks a little further but stays
     inline with the title block -- stacking it above (the previous
     behaviour) cost a full row of height for no readability gain. */
  .process-detail-hero__logo {
    width: 38px;
    height: 38px;
    padding: 5px;
  }
}
