/* Guías online: pestañas, buscador, fichas de funciones y tablas de modelos */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gd-lead { font-size: var(--fs-md); line-height: 1.6; color: var(--site-gris-texto); max-width: 920px; margin: 0 0 18px; }

.gd-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.gd-search { position: relative; display: flex; align-items: center; flex: 1 1 380px; max-width: 560px; border: 1.5px solid #ccd5e0; border-radius: 8px; background: #fff; }
.gd-search:focus-within { border-color: #1a6bc8; }
.gd-search i { margin-left: 14px; color: #8a9aaa; flex: none; }
.gd-search input { flex: 1 1 auto; min-width: 0; padding: 12px 10px; border: none; border-radius: 8px; font-size: var(--fs-md); font-family: var(--font-body); background: transparent; color: var(--site-azul-marino); outline: none; }
.gd-count { flex: none; font-size: var(--fs-sm); font-weight: 700; color: var(--site-azul-acento, #1a6bc8); white-space: nowrap; padding: 5px 12px; margin: 0 6px 0 8px; background: #e7f1fb; border-radius: 20px; }
.gd-count:empty { display: none; }

.gd-tabs { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; background: var(--site-gris-claro); padding: 10px 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--site-borde); }
.gd-tab { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--c, #003366); background: #fff; color: var(--c, #003366); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); padding: 7px 14px; border-radius: 20px; cursor: pointer; line-height: 1.1; }
.gd-tab small { font-weight: 600; opacity: .8; }
.gd-tab:hover { background: var(--t, #eef3f9); }
.gd-tab[aria-selected="true"] { background: var(--c, #003366); color: #fff; }
.gd-tabs.searching .gd-tab { opacity: .45; pointer-events: none; }
.gd-panel[hidden] { display: none; }

.gd-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.gd-card { background: var(--t); border: 1px solid var(--t2); border-top: 4px solid var(--c); border-radius: 10px; padding: 16px 18px; }
.gd-card h3 { color: var(--c); font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.gd-card p { margin: 0; font-size: var(--fs-md); line-height: 1.55; color: #2a3948; }
.gd-h { font-size: var(--fs-lg); color: var(--site-azul-marino); margin: 24px 0 10px; }
.gd-cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; font-size: var(--fs-sm); }
.gd-cmp th { color: #fff; text-align: left; padding: 10px 14px; background: var(--site-azul-marino); }
.gd-cmp th.g { background: #0b6bcb; } .gd-cmp th.p { background: #2e9e4a; }
.gd-cmp td { padding: 10px 14px; border-bottom: 1px solid var(--site-borde); vertical-align: top; line-height: 1.5; }
.gd-cmp td:first-child { font-weight: 700; color: var(--site-azul-marino); width: 150px; }
.gd-keys { list-style: none; margin: 0; padding: 0; }
.gd-keys li { position: relative; padding: 9px 0 9px 26px; font-size: var(--fs-md); line-height: 1.55; color: #2a3948; border-bottom: 1px solid var(--site-borde); }
.gd-keys li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--site-verde); }
.gd-note { background: #fff; border-left: 4px solid var(--c); border-radius: 0 8px 8px 0; padding: 12px 16px; font-size: var(--fs-md); line-height: 1.55; color: #2a3948; margin: 14px 0; }

.gd-banner { background: var(--c); color: #fff; border-radius: 12px 12px 0 0; padding: 16px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gd-banner h2 { color: #fff; margin: 0; font-size: var(--fs-xl); }
.gd-banner p { margin: 0; font-size: var(--fs-sm); opacity: .95; max-width: 460px; }
.gd-chip { display: inline-block; background: rgba(255, 255, 255, .24); border-radius: 20px; padding: 3px 12px; font-size: var(--fs-sm); font-weight: 600; margin-top: 6px; }
.gd-tablewrap { background: #fff; border: 1px solid var(--t2); border-top: 0; border-radius: 0 0 12px 12px; overflow-x: auto; margin-bottom: 22px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.gd-table th { background: var(--t2); color: #12202f; text-align: left; padding: 9px 14px; position: sticky; top: 0; }
.gd-table td { padding: 6px 14px; border-bottom: 1px solid var(--t2); vertical-align: top; line-height: 1.4; }
.gd-table td.ct { font-family: Menlo, Consolas, monospace; font-size: 12px; color: var(--c); width: 36%; word-break: break-word; }
.gd-table tr.sec td { background: var(--c); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.gd-table tr.l0 td { background: var(--t2); font-weight: 800; }
.gd-table tr.l1 td { background: var(--t); font-weight: 700; }
.gd-table tr.l1 td.lb { padding-left: 26px; } .gd-table tr.l2 td.lb { padding-left: 42px; }
.gd-table tr.l3 td.lb { padding-left: 60px; color: #3c4b5c; } .gd-table tr.l4 td.lb { padding-left: 78px; color: #3c4b5c; }
.gd-table tr[hidden] { display: none; }
.gd-cols { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.gd-cols span { background: var(--t2); color: #12202f; border-radius: 6px; padding: 4px 10px; font-size: var(--fs-sm); font-weight: 600; }
.gd-dl { columns: 2; column-gap: 28px; list-style: none; margin: 0 0 14px; padding: 0; font-size: var(--fs-md); line-height: 1.5; }
.gd-dl li { break-inside: avoid; padding: 3px 0 3px 16px; position: relative; }
.gd-dl li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gd-sec { margin-bottom: 28px; }

/* Fichas de funciones */
.gd-catbanner { background: var(--c); color: #fff; border-radius: 12px; padding: 14px 20px; margin-bottom: 14px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gd-catbanner h2 { color: #fff; margin: 0; font-size: var(--fs-xl); }
.gd-catbanner p { margin: 0; font-size: var(--fs-sm); max-width: 520px; opacity: .95; }
.gd-fns { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-bottom: 26px; }
.gd-fn { background: #fff; border: 1px solid var(--t2); border-left: 6px solid var(--c); border-radius: 10px; padding: 14px 16px; }
.gd-fn[hidden] { display: none; }
.gd-fnhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.gd-fname { background: var(--c); color: #fff; font-family: Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; padding: 3px 10px; border-radius: 6px; }
.gd-en { font-family: Menlo, Consolas, monospace; font-size: 12px; color: #6b7a8c; }
.gd-def { margin: 0 0 8px; font-size: var(--fs-md); line-height: 1.5; color: #2a3948; }
.gd-lbl { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin: 8px 0 3px; }
.gd-copy { border: 0; background: var(--t2); color: #12202f; font-family: var(--font-body); font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.gd-copy:hover { background: var(--c); color: #fff; }
.gd-fn pre { margin: 0; background: var(--t); border-radius: 6px; padding: 8px 10px; font-family: Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; color: #12202f; }
.gd-fn pre .cm { color: #6b7a8c; font-style: italic; }
.gd-empty { text-align: center; padding: 30px 0; color: var(--site-gris-texto); }
.gd-source { font-size: var(--fs-xs); color: var(--site-gris-texto); line-height: 1.55; max-width: 980px; margin: 14px 0 0; }
.gd-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.gd-catgrid button { text-align: left; border: 1px solid var(--t2); border-top: 4px solid var(--c); background: #fff; border-radius: 8px; padding: 10px 12px; cursor: pointer; font-family: var(--font-body); }
.gd-catgrid b { display: block; color: var(--site-azul-marino); font-size: var(--fs-md); } .gd-catgrid span { font-size: var(--fs-sm); color: var(--site-gris-texto); }

/* Cuentas con nombre al pasar el ratón */
.acc { cursor: help; border-bottom: 1px dotted currentColor; border-radius: 2px; outline: none; }
.acc:hover, .acc:focus { background: rgba(0, 0, 0, .07); }
/* Partidas y grupos con descripción al pasar el ratón */
.lb[data-tip] { cursor: help; }
.lb[data-tip]:hover, .lb[data-tip]:focus { background: rgba(0, 0, 0, .05); outline: none; }
.gd-tip { position: fixed; z-index: 1000; width: max-content; max-width: calc(100vw - 16px); background: #0f2a44; color: #fff; font-family: var(--font-body); font-size: 12.5px; line-height: 1.4; padding: 8px 11px; border-radius: 7px; box-shadow: 0 6px 18px rgba(0, 17, 40, .35); pointer-events: none; white-space: pre; }
.gd-tip::first-line { font-weight: 700; }
.gd-tip--wrap { white-space: normal; width: 320px; max-width: calc(100vw - 16px); }
.gd-tip--wrap::first-line { font-weight: 400; }
@media (max-width: 480px) { .gd-tip { white-space: pre-line; } }
.gd-tip[hidden] { display: none; }

@media (max-width: 800px) {
  .gd-two { grid-template-columns: 1fr; }
  .gd-fns { grid-template-columns: 1fr; }
  .gd-dl { columns: 1; }
  .gd-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .gd-tab { flex: none; }
  .gd-cmp td:first-child { width: 96px; }
}
