:root {
  --paper: #EDF1F5;
  --sheet: #FFFFFF;
  --ink: #16233B;
  --ink-2: #4A5872;
  --ink-3: #7D8AA0;
  --rule: #CDD6E1;
  --rule-soft: #E2E8EF;
  --done: #1E7A57;
  --done-soft: #D7EDE3;
  --action: #2552C4;
  --action-dark: #1C3F9A;
  --action-soft: #E3EAFB;
  --locked: #B7C1CF;
  --danger: #B3261E;
  --danger-soft: #FBE4E2;

  --font-head: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-s: 4px;
  --radius-m: 8px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-stretch: 87.5%;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0; }
a { color: var(--action); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 2px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { font-family: var(--font-head); font-stretch: 75%; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-sub { color: #AFC0DA; font-size: 0.9rem; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: #DCE4F2; text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem/1 var(--font-body);
  padding: 12px 18px; border-radius: var(--radius-s);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-dark); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink-3); background: var(--sheet); }
.btn-done { background: var(--done); color: #fff; }
.btn-done:hover { filter: brightness(0.92); }
.btn-small { padding: 8px 12px; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Tiras de progreso segmentadas (el elemento principal) ---------- */
.strip { display: flex; gap: 2px; height: 14px; width: 100%; }
.strip .seg { background: var(--rule); border-radius: 1px; min-width: 3px; position: relative; overflow: hidden; }
.strip .seg.done { background: var(--done); }
.strip .seg.partial::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: #8CC3AC;
}
.strip .seg.now { box-shadow: inset 0 0 0 2px var(--action); }
.strip-lg { height: 26px; gap: 3px; }
.strip-group { display: flex; gap: 2px; height: 100%; }
.strip-lg > .strip-group + .strip-group { margin-left: 8px; }
.strip-group .seg { height: 100%; }

/* ---------- Mensajes ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-s); background: var(--done-soft); color: #134D37; margin-bottom: 20px; }
.flash.error { background: var(--danger-soft); color: var(--danger); }

/* ---------- Formularios de acceso ---------- */
.auth { min-height: calc(100vh - 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--ink); color: #fff; padding: clamp(32px, 6vw, 80px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-side h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14ch; }
.auth-side p { color: #C5D2E6; max-width: 46ch; }
.auth-ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.18); max-width: 440px; }
.auth-ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.18); font-size: 0.95rem; }
.auth-ledger li span:last-child { color: #9FB2CF; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.form { width: 100%; max-width: 380px; display: grid; gap: 18px; }
.form h2 { font-size: 1.75rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-3); }
.field input {
  font: inherit; padding: 11px 12px; border: 1px solid var(--rule); border-radius: var(--radius-s);
  background: var(--sheet); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.form .alt { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Dashboard ---------- */
.hero { padding-block: clamp(28px, 5vw, 56px) 28px; display: grid; gap: 28px; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-resume { display: grid; gap: 6px; max-width: 60ch; }
.hero-resume .lesson-name { font-family: var(--font-head); font-stretch: 87.5%; font-size: 1.35rem; font-weight: 600; }
.totals { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.total b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.total span { color: var(--ink-2); font-size: 0.9rem; }
.strip-legend { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-3); margin-top: 8px; gap: 12px; flex-wrap: wrap; }

.ledger { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); margin-bottom: 56px; }
.ledger-head { display: grid; grid-template-columns: 1fr auto; padding: 16px 24px; border-bottom: 1px solid var(--rule); align-items: baseline; gap: 12px; }
.ledger-row {
  display: grid; grid-template-columns: 48px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--rule-soft);
}
.ledger-row:last-child { border-bottom: 0; }
.course-icon { width: 48px; height: 48px; border-radius: var(--radius-m); display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 1.25rem; }
.ledger-row.finished .course-icon { background: var(--done-soft); color: var(--done); }
.course-name { display: grid; gap: 4px; }
.course-name a { color: var(--ink); text-decoration: none; }
.course-name a:hover { color: var(--action); }
.course-name p { color: var(--ink-2); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meter { display: grid; gap: 8px; }
.course-meter .meta { display: flex; justify-content: space-between; font-size: 0.87rem; color: var(--ink-2); gap: 8px; }
.course-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Página de curso ---------- */
.course-head { padding-block: 28px 20px; display: grid; gap: 14px; }
.crumbs { font-size: 0.9rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 56px; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-m); overflow: hidden; }
.player-frame iframe, .player-frame #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-info { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); margin-top: 16px; padding: 20px 24px; display: grid; gap: 16px; }
.lesson-info .titles { display: grid; gap: 4px; }
.watch-meter { display: grid; gap: 8px; }
.watch-bar { height: 10px; background: var(--rule-soft); border-radius: 5px; position: relative; overflow: hidden; }
.watch-bar .fill { position: absolute; inset: 0 auto 0 0; background: #6FAE93; width: 0; transition: width 0.4s ease; }
.watch-bar .goal { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.watch-meter.done .fill { background: var(--done); }
.watch-meter .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--ink-2); flex-wrap: wrap; }
.status-done { color: var(--done); font-weight: 600; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.syllabus { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.syllabus-head { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.syllabus ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.syllabus li a, .syllabus li .locked-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 12px 20px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule-soft);
}
.syllabus li a:hover { background: var(--paper); }
.syllabus li.current a { background: var(--action-soft); box-shadow: inset 3px 0 0 var(--action); }
.syllabus li .locked-row { color: var(--ink-3); cursor: not-allowed; }
.syllabus .mark {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem;
  border: 1.5px solid var(--rule); color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600;
}
.syllabus li.done .mark { background: var(--done); border-color: var(--done); color: #fff; }
.syllabus li.current .mark { border-color: var(--action); color: var(--action); }
.syllabus li.locked .mark { border-style: dashed; color: var(--locked); }
.syllabus .l-title { font-size: 0.93rem; line-height: 1.35; }
.syllabus .l-sub { display: block; font-size: 0.78rem; color: var(--ink-3); margin-top: 2px; }
.syllabus .l-dur { font-size: 0.82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.mini { height: 3px; background: var(--rule-soft); margin-top: 6px; border-radius: 2px; overflow: hidden; }
.mini i { display: block; height: 100%; background: #6FAE93; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--radius-m);
  display: flex; align-items: center; gap: 14px; z-index: 50; max-width: calc(100vw - 32px);
  transition: opacity 0.25s ease, transform 0.25s ease; box-shadow: 0 10px 30px rgba(22,35,59,0.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i.fa-circle-check { color: #7FD1AE; font-size: 1.2rem; }
.toast a { color: #fff; font-weight: 600; }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); margin-bottom: 56px; }
table.grid { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
table.grid th, table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: middle; white-space: nowrap; }
table.grid th { font-weight: 600; color: var(--ink-2); background: var(--paper); font-size: 0.85rem; }
table.grid th.c, table.grid td.c { text-align: center; }
.pct-cell { display: inline-block; min-width: 44px; padding: 3px 6px; border-radius: 3px; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.pct-0 { color: var(--ink-3); }
.pct-some { background: var(--action-soft); color: var(--action-dark); }
.pct-full { background: var(--done-soft); color: var(--done); font-weight: 600; }
.badge { display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; background: var(--action-soft); color: var(--action-dark); margin-left: 6px; font-weight: 600; }

/* ---------- Certificado ---------- */
.cert-page { padding-block: 32px 56px; display: grid; gap: 20px; justify-items: center; }
.cert {
  background: var(--sheet); width: 100%; max-width: 960px; aspect-ratio: 1.414; padding: clamp(24px, 6%, 64px);
  border: 1px solid var(--rule); position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule-soft) 31px 32px);
}
.cert::before { content: ''; position: absolute; inset: 14px; border: 2px solid var(--ink); pointer-events: none; }
.cert-top { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; color: var(--ink-2); position: relative; }
.cert-body { display: grid; gap: 14px; position: relative; }
.cert-body .name { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; font-stretch: 87.5%; line-height: 1.05; }
.cert-body .course-title { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; font-stretch: 87.5%; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; position: relative; font-size: 0.92rem; }
.cert-foot .sign { border-top: 1.5px solid var(--ink); padding-top: 6px; min-width: 200px; }

/* ---------- Errores / perfil ---------- */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 28px; max-width: 560px; margin: 40px auto; display: grid; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .course-layout { grid-template-columns: 1fr; }
  .syllabus { position: static; max-height: none; }
  .ledger-row { grid-template-columns: 48px minmax(0, 1fr); }
  .ledger-row .course-meter, .ledger-row .course-actions { grid-column: 2; }
  .course-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
  .ledger-row { grid-template-columns: 1fr; padding: 18px 16px; }
  .ledger-row .course-icon { display: none; }
  .ledger-row .course-meter, .ledger-row .course-actions { grid-column: 1; }
  .ledger-head { padding: 14px 16px; }
  .strip-lg { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .no-print { display: none !important; }
  body { background: #fff; }
  .cert-page { padding: 0; }
  .cert { border: 0; max-width: none; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ---------- Páginas de lectura más anchas ---------- */
.wrap:has(> .course-layout), .wrap:has(.course-layout) { max-width: min(1800px, 100%); }
.course-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
@media (max-width: 1000px) { .course-layout { grid-template-columns: 1fr; } }
.prose-es p, .prose-es ul, .prose-es ol { max-width: 110ch; }
.prose-es img { cursor: zoom-in; }

/* ---------- Ampliar imágenes ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 18, 32, 0.92); display: none; overflow: auto; cursor: zoom-out; padding: 48px 16px 24px; }
.lightbox.open { display: block; }
.lightbox img { display: block; margin: 0 auto; max-width: 100%; height: auto; background: #fff; border-radius: 6px; cursor: zoom-in; }
.lightbox.zoomed img { max-width: none; width: auto; cursor: zoom-out; }
.lightbox-bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 16px; color: #E6ECF5; font-size: 0.9rem; background: rgba(10, 18, 32, 0.85); }
.lightbox-bar button { font: inherit; color: #fff; background: #2F6FED; border: 0; border-radius: 6px; padding: 6px 14px; cursor: pointer; }

/* ---------- Ancho uniforme en el contenido de las guías ---------- */
main .prose-es p, main .prose-es ul, main .prose-es ol, main .prose-es .lead, main .prose-es blockquote, main .prose-es pre { max-width: none; }
main .prose-es table { display: table; width: 100%; table-layout: auto; overflow-wrap: break-word; }
.prose-es { font-size: 1.04rem; line-height: 1.7; }

/* ---------- Base de conocimiento: menú de temas, guía e índice de la página ---------- */
.kb-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 24px; align-items: start; padding-bottom: 56px; }
.kb-nav, .kb-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.kb-nav { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 10px 0; font-size: 0.9rem; }
.kb-nav-search { padding: 4px 12px 10px; }
.kb-nav-search input { width: 100%; font: inherit; padding: 7px 10px; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
.kb-nav summary { cursor: pointer; padding: 7px 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; list-style-position: inside; }
.kb-nav summary:hover { background: var(--paper); }
.kb-nav ul { list-style: none; margin: 0; padding: 0 0 6px; }
.kb-nav li a { display: block; padding: 5px 14px 5px 26px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.kb-nav li a:hover { background: var(--paper); color: var(--ink); }
.kb-nav li.current a { background: var(--action-soft); color: var(--action); font-weight: 600; box-shadow: inset 3px 0 0 var(--action); }
.kb-side { display: grid; gap: 16px; }
.kb-side .syllabus { position: static; max-height: none; }
.kb-toc { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 14px 0; font-size: 0.88rem; }
.kb-toc strong { display: block; padding: 0 16px 8px; }
.kb-toc ul { list-style: none; margin: 0; padding: 0; }
.kb-toc a { display: block; padding: 4px 16px; color: var(--ink-2); text-decoration: none; line-height: 1.35; border-left: 3px solid transparent; }
.kb-toc li.sub a { padding-left: 30px; font-size: 0.85rem; }
.kb-toc a:hover { color: var(--ink); background: var(--paper); }
.kb-toc a.active { color: var(--action); border-left-color: var(--action); font-weight: 600; }
.wrap.kbw { max-width: min(1900px, 100%); }
@media (max-width: 1280px) { .kb-layout { grid-template-columns: 240px minmax(0, 1fr); } .kb-side { grid-column: 1 / -1; position: static; max-height: none; } .kb-toc { display: none; } }
@media (max-width: 860px) { .kb-layout { grid-template-columns: 1fr; } .kb-nav { position: static; max-height: 320px; } }

/* ---------- Videoteca ---------- */
.vl-tools { display: grid; gap: 12px; margin-bottom: 20px; }
.vl-tools input { width: 100%; max-width: 680px; font: inherit; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--sheet); color: var(--ink); }
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 0.88rem; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--action); }
.chip.active { background: var(--action); border-color: var(--action); color: #fff; }
.chip.active .faint { color: #dbe6ff; }
.vl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; padding-bottom: 56px; }
.vl-group { margin-bottom: 28px; }
.vl-group h2 { font-size: 1.15rem; margin-bottom: 4px; }
.vl-group[hidden], .vl-list li[hidden] { display: none; }
.vl-list .video-item.playing { background: var(--action-soft); box-shadow: inset 3px 0 0 var(--action); }
.vl-player { position: sticky; top: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px; }
.vl-placeholder { text-align: center; color: var(--ink-3); padding: 60px 16px; }
.vl-placeholder i { font-size: 3rem; margin-bottom: 8px; }
.vl-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-s); overflow: hidden; margin-bottom: 12px; }
.vl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vl-player h2 { font-size: 1.2rem; margin: 0 0 2px; }
.vl-lessons { display: grid; gap: 4px; margin: 12px 0; font-size: 0.93rem; }
@media (max-width: 1000px) { .vl-layout { grid-template-columns: 1fr; } .vl-player { position: static; order: -1; } }

#vl-desc { white-space: pre-line; max-width: none; }

/* ---------- Administración: encabezado y diálogo "Crear usuario" ---------- */
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.modal { border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 0; background: var(--sheet); color: var(--ink);
  width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(10, 18, 32, 0.35); }
.modal::backdrop { background: rgba(10, 18, 32, 0.6); }
.modal .form { max-width: none; padding: 28px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-close { font: inherit; font-size: 1.1rem; line-height: 1; color: var(--ink-3); background: transparent; border: 0; border-radius: var(--radius-s); padding: 8px 10px; cursor: pointer; }
.modal-close:hover { color: var(--ink); background: var(--paper); }
.modal .check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.modal .check input { width: 18px; height: 18px; accent-color: var(--action); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
