/* site.css - shared by every page. One source of truth for:
   link bars (contents + footers), dropdown look, embed mode, textareas, scrollbars. */

:root{--caret:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><polygon points='0,0 14,0 7,9' fill='white'/></svg>")}

/* ---------- textareas: vertical resize only ---------- */
textarea{resize:vertical!important;max-width:100%;min-height:3em}

/* ---------- link bars (contents + footers) ----------
   Desktop: each .lr (row) is its own line, never wrapping.
   Mobile (<=700px): rows flow inline and wrap naturally, no forced breaks. */
.linkbar{text-align:center;line-height:1.4}
.linkbar a,.linkbar a:visited{color:#fff}
.linkbar .lr{display:inline}
@media(min-width:701px){.linkbar .lr{display:block;white-space:nowrap}}
.site-foot .linkbar{margin:16pt 0 0;line-height:1.5}
.toc-links.linkbar{max-width:none;margin:0 auto 10pt}

/* ---------- dropdowns: one look everywhere ---------- */
.dd-caret{display:inline-block;width:14px;height:9px;flex:0 0 14px;background:var(--caret) no-repeat center/contain;transition:transform .2s ease;vertical-align:middle}
.dd.open>.dd-btn .dd-caret,details[open]>summary .dd-caret,.dd-open .dd-caret{transform:rotate(180deg)}

.dd{position:relative;display:block;width:100%;margin:0 0 8pt;font:inherit}
.dd.dd-inline{display:inline-block;width:auto}
.dd-btn{display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%;height:auto!important;min-height:0;margin:0;padding:7px 10px 8px!important;background:transparent!important;color:#fff!important;border:1px solid #fff!important;border-radius:4px;font:inherit;font-size:inherit;line-height:1.35;text-align:left;cursor:pointer;white-space:normal}
.dd-btn:hover{background:rgba(255,255,255,.05)!important}
.dd-btn:focus-visible{outline:1px solid #fff;outline-offset:2px}
.dd-btn[disabled]{opacity:.5;cursor:default}
.dd-btn.ph .dd-label{color:#888}
.dd-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35;padding-bottom:3px}
.dd-list{position:absolute;left:0;right:0;top:calc(100% + 2px);z-index:10000;margin:0;padding:4px 0;list-style:none;background:#2a2a2a;border:1px solid #fff;border-radius:4px;max-height:min(50vh,320px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 6px 18px rgba(0,0,0,.6)}
.dd-list[hidden]{display:none}
.dd.up .dd-list{top:auto;bottom:calc(100% + 2px)}
.dd-item{padding:6px 10px 7px;cursor:pointer;color:#fff;white-space:normal;line-height:1.35}
.dd-item[aria-selected=true]{background:rgba(255,255,255,.16)}
.dd-item.hl{background:rgba(255,255,255,.28)}
.dd-item.dd-off{opacity:.45;cursor:default}
.dd-native{display:none!important}
.dd.dd-hidden{display:none!important}

/* Fallback if JS never enhances a select: same caret, native popup */
select:not(.dd-native){-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent var(--caret) no-repeat right 10px center!important;padding-right:34px!important}
select:not(.dd-native) option{background:#2a2a2a;color:#fff}

/* ---------- details/summary dropdown bars (Alphomegenator, Bibliotecher) ---------- */
.dd-bar{border:1px solid #fff;border-radius:4px;margin:0 0 8pt;background:transparent}
.dd-bar>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;font:inherit;font-size:inherit;font-weight:400;font-style:normal;color:#fff;user-select:none}
.dd-bar>summary::-webkit-details-marker{display:none}
.dd-bar>summary:hover{background:rgba(255,255,255,.05)}
.dd-bar>summary .dd-title{font:inherit;font-size:inherit;font-weight:400;font-style:normal;margin:0;text-align:left}
.dd-bar>summary .dd-sub{font:inherit;font-size:inherit;font-weight:400;font-style:normal;color:#fff;margin-left:auto;text-align:right}
@media(max-width:600px){.dd-bar>summary .dd-sub{display:none}}

/* ---------- embed mode (page is inside an iframe on home/tech/suite/app) ---------- */
html.embedded .site-head,html.embedded .site-foot{display:none!important}
html.embedded body{padding:10px 12px!important;background:transparent!important;max-width:100%!important;margin:0!important;overflow-x:hidden}
html.embedded{overflow-x:hidden}
html.embedded::-webkit-scrollbar,html.embedded ::-webkit-scrollbar{width:8px;height:8px}
html.embedded::-webkit-scrollbar-thumb,html.embedded ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:4px}
html.embedded{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}

/* ---------- shared header/footer blocks ---------- */
.site-head img.site-logo{width:100px;height:100px;display:block;margin:0 auto 8pt;border-radius:50%}
.site-foot img.site-logo{width:100px;height:100px;display:block;margin:8pt auto 8pt;border-radius:50%}
