/* NandaBase 3.8: preserve the interactive NANDA registry, scope educational tables. */
/* The legacy global `table{min-width:850px!important}` and `th{background:...!important}`
   are intended for the legacy registry, NOT article/worksheet tables. */
html{scroll-padding-top:96px}
main table:not(#tablaNanda){min-width:0!important;max-width:100%;box-sizing:border-box}
main .nb-v37-overflow{width:100%;max-width:100%;min-width:0;overflow-x:visible!important;border:0;background:transparent}
main table.nb-v37-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border:1px solid #d6e5e3!important;border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}
main table.nb-v37-table th,main table.nb-v37-table td{font-size:.92rem;line-height:1.65;overflow-wrap:anywhere;word-break:normal;padding:12px 14px!important;border-bottom:1px solid #dce9e6!important;letter-spacing:normal!important;box-sizing:border-box}
main table.nb-v37-table thead th{color:#14394c!important;background:#e7f4f0!important;font-weight:800!important;border-bottom:2px solid #c4dfd7!important}
main table.nb-v37-table tbody th{color:#183b4d!important;background:#f0f7f5!important;font-weight:760!important;width:34%!important}
main table.nb-v37-table tbody td{color:#263d4e!important;background:#fff!important;width:66%!important}
main table.nb-v37-table tr:last-child th,main table.nb-v37-table tr:last-child td{border-bottom:0!important}
.nb-reading-section[id],.nb-v37-study[id],.nb-intent-article-section[id],section[id],[id^="apartado-"]{scroll-margin-top:105px}
.nb-reading-article,.nb-v37-study,.nb-v37-hub,.nb-intent-content,.nb-landing,.nb-v37-overflow{min-width:0;box-sizing:border-box}
/* General explanatory tables (examples, comparisons), not the interactive taxonomy. */
main table.nb-v38-responsive-table{width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse!important;table-layout:fixed!important;background:#fff;border:1px solid #d9e7e4}
main .nb-v38-responsive-table thead th{background:#e7f4f0!important;color:#163d4a!important;font-weight:800!important;letter-spacing:normal!important}
main .nb-v38-responsive-table tbody th{background:#f0f8f5!important;color:#193d48!important;letter-spacing:normal!important}
main .nb-v38-responsive-table td{background:#fff!important;color:#243e4d!important}
main .nb-v38-responsive-table :is(th,td){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;line-height:1.55;padding:11px 13px;vertical-align:top;border:1px solid #d9e7e4}
main .nb-intent-main .nb-v38-responsive-table{table-layout:auto!important}
/* Rounded learning panel with sensible width in both languages and tablet layouts */
.nb-v38-practice{margin:28px 0;padding:26px 28px;border:1px solid #d3e6e1;border-radius:16px;background:#f6fbf9;box-sizing:border-box;color:#1a3c49}
.nb-v38-practice h2{margin:0 0 14px;color:#0a2342;font-size:clamp(1.24rem,2.2vw,1.55rem)}
.nb-v38-practice h3{margin:16px 0 8px;color:#123d4e;font-size:1.08rem}
.nb-v38-practice p,.nb-v38-practice li{line-height:1.75;color:#244452;margin:0 0 12px}
.nb-v38-practice ul,.nb-v38-practice ol{padding-left:22px}
.nb-v38-practice a{color:#087a71;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){
  main .nb-v37-overflow{overflow:visible!important}
  main table.nb-v37-table,main table.nb-v37-table tbody,main table.nb-v37-table tbody tr,main table.nb-v37-table tbody th,main table.nb-v37-table tbody td{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
  main table.nb-v37-table{border:none!important;background:transparent!important;border-radius:0!important}
  main table.nb-v37-table thead{display:none!important}
  main table.nb-v37-table tbody tr{margin:0 0 12px;border:1px solid #d9e7e3;border-radius:12px;overflow:hidden;background:#fff!important}
  main table.nb-v37-table tbody th{border-bottom:1px solid #d6e5e1!important;padding:11px 13px!important;background:#eaf5f1!important;color:#143d4c!important}
  main table.nb-v37-table tbody td{border-bottom:0!important;padding:12px 13px!important;background:#fff!important;line-height:1.65}
  main table.nb-v38-responsive-table{display:block!important;border:0!important;background:transparent!important}
  main table.nb-v38-responsive-table thead{display:none!important}
  main table.nb-v38-responsive-table tbody{display:block!important}
  main table.nb-v38-responsive-table tbody tr{display:block!important;overflow:hidden;margin:0 0 13px;border:1px solid #d6e5e0!important;border-radius:12px;background:#fff!important}
  main table.nb-v38-responsive-table tbody td,main table.nb-v38-responsive-table tbody th{display:block!important;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;padding:11px 13px!important;border:0!important;border-bottom:1px solid #e4eeeb!important;text-align:left}
  main table.nb-v38-responsive-table tbody td::before{content:attr(data-label);display:block;margin-bottom:5px;color:#196c66;font-size:.72rem;font-weight:800;letter-spacing:.03em}
  main table.nb-v38-responsive-table tbody th{background:#eaf5f1!important;color:#173c49!important;font-weight:800!important}
  .nb-v38-practice{padding:19px 17px;margin:20px 0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Solid sticky navigation and offset for educational tables and in-page links. */
.nb-nav{background:#fff!important}
.nb-v37-overflow,.nb-v38-responsive-table{scroll-margin-top:112px}
