/* BDAW WP Repo — the public pages.
   Two layers. The first is layout only, for every theme. The second is a
   plain look for a theme that does not draw these pages itself
   (body.bdaw-repo-plain); a theme that does (add_theme_support('bdaw-repo'),
   like BDAW WP Repo & Support) styles the same classes in its own look. */

/* ---- layout, every theme ---- */
.bdaw-repo{display:grid; grid-template-columns:minmax(0,1fr); gap:1.4rem; min-width:0}
.bdaw-repo > *{margin:0}
.bdaw-repo [hidden]{display:none !important}
.bdaw-repo .bdaw-hp{position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden}
.bdaw-repo .loginform{display:grid; gap:.9rem}
.bdaw-repo .loginform__field{display:grid; gap:.35rem}
.bdaw-repo .loginform__field input,.bdaw-repo .loginform__field select,.bdaw-repo .loginform__field textarea{width:100%; box-sizing:border-box}
.bdaw-repo .loginform__msg:not(.show){display:none}
.bdaw-repo .loginform button{justify-self:start}
.bdaw-repo-ro{width:100%; box-sizing:border-box; opacity:.8}
.bdaw-repo-grid,.bdaw-repo-cards,.bdaw-repo-topics{display:grid; gap:1rem; grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr))}
.bdaw-repo-two{display:grid; gap:.9rem; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr))}
.bdaw-repo-search{display:flex; align-items:center; gap:.6rem}
.bdaw-repo-search input[type=search]{flex:1; min-width:0}
.bdaw-repo-search .mag{width:1.1em; height:1.1em; flex:none}
.bdaw-repo-links,.bdaw-repo-recent,.bdaw-repo-rel,.bdaw-repo-changes,.bdaw-repo-all ul{list-style:none; margin:0; padding:0; display:grid; gap:.45rem}
.bdaw-repo-pkg,.bdaw-repo-topic,.bdaw-repo-card{display:grid; align-content:start; gap:.7rem; padding:1.2rem 1.3rem 1.3rem}
.bdaw-repo-pkg > *,.bdaw-repo-topic > *,.bdaw-repo-card > *{margin:0}
.bdaw-repo-actions{display:flex; flex-wrap:wrap; gap:.6rem; align-items:center}
.bdaw-repo-table{margin:0; overflow-x:auto}
.bdaw-repo-table table{width:100%; border-collapse:collapse}
.bdaw-repo-code{word-break:break-all}
.bdaw-repo-new > summary{list-style:none; cursor:pointer; display:inline-block}
.bdaw-repo-new > summary::-webkit-details-marker{display:none}
.bdaw-repo-new[open] > summary{margin-bottom:1rem}
.bdaw-repo-link{background:none; border:0; padding:0; cursor:pointer; text-decoration:underline; font:inherit; color:inherit}
.bdaw-repo-inline{max-width:44rem}
.bdaw-repo-msg{padding:1rem 1.2rem}
.bdaw-repo-msg > *{margin:0}
.bdaw-repo-msg > * + *{margin-top:.6rem}
.bdaw-repo-doors{margin-top:2rem}

/* ---- the plain look: any other theme ---- */
.bdaw-repo-plain .bdaw-repo{--r-line:#d0d0d0; --r-accent:#1d4ed8; --r-soft:#f5f5f5; --r-mute:#666}
.bdaw-repo-plain .bdaw-repo .is-style-bdaw-panel{border:1px solid var(--r-line); background:#fff}
.bdaw-repo-plain .bdaw-repo .eyebrow{font:600 .72rem/1.4 ui-monospace,monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--r-mute)}
.bdaw-repo-plain .bdaw-repo .pill{display:inline-block; padding:.6em 1.1em; border:1px solid var(--r-line); background:#fff; color:#111; text-decoration:none; cursor:pointer; font:500 .95rem/1.2 inherit}
.bdaw-repo-plain .bdaw-repo .pill--solid{background:var(--r-accent); border-color:var(--r-accent); color:#fff}
.bdaw-repo-plain .bdaw-repo .loginform__field span{font-size:.85rem; color:var(--r-mute)}
.bdaw-repo-plain .bdaw-repo input,.bdaw-repo-plain .bdaw-repo select,.bdaw-repo-plain .bdaw-repo textarea{padding:.55em .7em; border:1px solid var(--r-line); font:inherit}
.bdaw-repo-plain .bdaw-repo .loginform__msg{color:#b91c1c}
.bdaw-repo-plain .bdaw-repo .loginform__msg.ok{color:#15803d}
.bdaw-repo-plain .bdaw-repo-notice{border:1px solid var(--r-line); border-left:3px solid var(--r-accent); padding:.9rem 1.1rem; background:var(--r-soft)}
.bdaw-repo-plain .bdaw-repo-notice.is-warn{border-left-color:#d97706}
.bdaw-repo-plain .bdaw-repo-notice.is-ok{border-left-color:#15803d}
.bdaw-repo-plain .bdaw-repo-notice.is-bad{border-left-color:#b91c1c}
.bdaw-repo-plain .bdaw-repo-notice > *{margin:.2rem 0}
.bdaw-repo-plain .bdaw-repo-notice__title{font-weight:600}
.bdaw-repo-plain .bdaw-repo-chip,.bdaw-repo-plain .bdaw-badge{display:inline-block; padding:0 .5em; border:1px solid currentColor; font:600 .7rem/1.6 ui-monospace,monospace; letter-spacing:.06em; text-transform:uppercase}
.bdaw-repo-plain .bdaw-repo-chip.is-off{opacity:.4}
.bdaw-repo-plain .sysrow{display:flex; flex-wrap:wrap; gap:.4rem}
.bdaw-repo-plain .sysrow > *{padding:.35em .9em; border:1px solid var(--r-line); background:#fff; color:#333; text-decoration:none; cursor:pointer; font:inherit}
.bdaw-repo-plain .sysrow > .active{border-color:var(--r-accent); color:var(--r-accent)}
.bdaw-repo-plain .bdaw-repo-table :is(th,td){border-bottom:1px solid var(--r-line); padding:.5rem .6rem; text-align:left}
.bdaw-repo-plain .bdaw-note,.bdaw-repo-plain .bdaw-repo-req,.bdaw-repo-plain .bdaw-repo-sha{color:var(--r-mute); font-size:.85rem}
.bdaw-repo-plain .bdaw-repo-msg.is-staff{border-left:3px solid var(--r-accent)}
.bdaw-repo-plain .readout{font:.8rem ui-monospace,monospace; color:var(--r-mute)}
.bdaw-repo-plain .readout b.is-off{opacity:.4}
.bdaw-repo-plain .bdaw-repo-strength.s0,.bdaw-repo-plain .bdaw-repo-strength.s1{color:#b91c1c}
.bdaw-repo-plain .bdaw-repo-strength.s2{color:#b45309}
.bdaw-repo-plain .bdaw-repo-strength.s3{color:#15803d}
.bdaw-repo-plain .is-style-bdaw-callout{border:1px solid var(--r-line); border-left:3px solid var(--r-accent); padding:1rem 1.2rem}

/* ---- a product's release panel (1.0.1): status is a traffic light, never a style ---- */
.bdaw-repo-product{margin:1.6rem 0; padding:1.2rem 1.3rem; border:1px solid rgba(127,127,127,.35)}
.bdaw-repo-product__light{display:flex; align-items:center; gap:.55rem; margin:0 0 .9rem; font:600 .8rem/1.4 ui-monospace,monospace; letter-spacing:.08em; text-transform:uppercase}
.bdaw-repo-product__light i{width:.75rem; height:.75rem; border-radius:50%; background:#8b949e; flex:0 0 auto}
.bdaw-repo-product__light span{text-transform:none; letter-spacing:0; font-weight:400; opacity:.8}
.bdaw-repo-product__light.is-green i{background:#3FB950}.bdaw-repo-product__light.is-green b{color:#3FB950}
.bdaw-repo-product__light.is-yellow i{background:#E3B341}.bdaw-repo-product__light.is-yellow b{color:#E3B341}
.bdaw-repo-product__light.is-red i{background:#F85149}.bdaw-repo-product__light.is-red b{color:#F85149}
.bdaw-repo-product__light.is-off i{background:#8b949e}
.bdaw-repo-product .bdaw-repo-facts{width:100%; border-collapse:collapse; margin:0 0 1rem}
.bdaw-repo-product .bdaw-repo-facts th,.bdaw-repo-product .bdaw-repo-facts td{text-align:left; vertical-align:top; padding:.45rem .6rem .45rem 0; border-top:1px solid rgba(127,127,127,.25)}
.bdaw-repo-product .bdaw-repo-facts th{width:13rem; font-weight:600; white-space:nowrap}
.bdaw-repo-product .bdaw-repo-sha256{word-break:break-all; font-size:.8rem}
.bdaw-repo-product h3{margin:1.4rem 0 .5rem}
.bdaw-repo-product .bdaw-repo-steps{margin:0; padding-left:1.3rem}
.bdaw-repo-product .bdaw-repo-steps li{margin:.3rem 0}
@media (max-width:640px){.bdaw-repo-product .bdaw-repo-facts th{width:auto; white-space:normal; display:block; border-top:1px solid rgba(127,127,127,.25); padding-bottom:0}.bdaw-repo-product .bdaw-repo-facts td{display:block; border-top:0}}


/* 1.1.2: product artwork, the second sentence, stable · RC in lists */
.bdaw-repo-art{display:inline-block; flex:none; line-height:0; overflow:hidden; border-radius:4px; vertical-align:middle}
.bdaw-repo-art svg,.bdaw-repo-art img{display:block; width:100%; height:100%; object-fit:cover}
.bdaw-repo-art.is-thumb{width:2rem; height:2rem; margin-right:.55rem}
.bdaw-repo-art.is-large{width:7.5rem; height:7.5rem}
.bdaw-repo-product__head{display:flex; gap:1.1rem; align-items:flex-start; margin:.4rem 0 1rem}
.bdaw-repo-product__head .bdaw-lede{margin-top:0}
.bdaw-repo-product__detail{margin:.3rem 0 0; opacity:.85}
.bdaw-repo-list__items li{display:flex; align-items:center; flex-wrap:wrap; gap:.25rem .4rem; margin:.35rem 0}
.bdaw-repo-list__items li>a{display:inline-flex; align-items:center; text-decoration:none}
.bdaw-repo-list__items li>a:hover .bdaw-repo-list__name{text-decoration:underline}
.bdaw-repo-list__ver.is-rc{letter-spacing:.02em}
.bdaw-repo-list__ver.is-build{font-style:italic}
@media (max-width:640px){.bdaw-repo-product__head{flex-direction:column}.bdaw-repo-art.is-large{width:5.5rem; height:5.5rem}}
.bdaw-repo-pkg__head{display:flex; align-items:center; gap:.2rem}
.bdaw-repo-pkg__head .eyebrow{margin:0}
.bdaw-repo-product__more{margin:1rem 0 .3rem}
.bdaw-repo-product__help{margin:.3rem 0 0; opacity:.85; font-size:.92em}
.bdaw-repo-details{margin-top:.6rem}
.bdaw-repo-details h3{font-size:1rem; margin:.9rem 0 .3rem}

/* 1.1.4: the account dialog (a theme with its own .modal — BDAW WP Console — draws it; the plain look below for any other) */
.bdaw-repo-agree{display:grid; gap:.5rem}
.bdaw-repo-agree .bdaw-repo-check{display:flex; align-items:flex-start; gap:.55rem; line-height:1.45}
.bdaw-repo-agree input[type=checkbox]{flex:none; width:1.05rem; height:1.05rem; margin:.15rem 0 0}
.bdaw-repo-plain .bdaw-repo-modal{position:fixed; inset:0; z-index:100000; display:grid; place-items:center; padding:1rem; visibility:hidden; opacity:0; pointer-events:none; transition:opacity .2s}
.bdaw-repo-plain .bdaw-repo-modal.on{visibility:visible; opacity:1; pointer-events:auto}
.bdaw-repo-plain .bdaw-repo-modal .modal__veil{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.bdaw-repo-plain .bdaw-repo-modal .modal__panel{position:relative; width:min(92vw,30rem); max-height:88vh; overflow:auto; background:#fff; padding:1.25rem; border-radius:6px}
.bdaw-repo-plain .bdaw-repo-modal .modal__x{position:absolute; top:.6rem; right:.6rem; border:0; background:none; font-size:1.3rem; cursor:pointer}
.bdaw-repo-modal .modal__panel > .bdaw-repo-auth{border:0; padding:0; background:none}

/* 1.5.0: Activate — the licenses to choose for a site */
.bdaw-repo-pick { list-style: none; padding: 0; margin: 0 0 1em; }
.bdaw-repo-pick li { margin: .4em 0; }
.bdaw-repo-pick label { display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline; cursor: pointer; }
.bdaw-repo-try form { display: inline-flex; gap: .3em; margin-top: .2em; }
.bdaw-repo-elsewhere { margin: 0 0 1em; } .bdaw-repo-elsewhere summary { cursor: pointer; }

/* 1.6.0: free software and signed keys */
.bdaw-repo-apps { list-style: none; padding: 0; margin: 0 0 1.5em; }
.bdaw-repo-app { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .75em 0; border-bottom: 1px solid var(--r-line, rgba(127,127,127,.25)); }
.bdaw-repo-app form { margin: 0; flex: none; }
.bdaw-repo-keyrow td { padding-top: 0; }
.bdaw-repo-key summary { cursor: pointer; }
.bdaw-repo-key .bdaw-repo-code { display: block; margin-bottom: .6em; word-break: break-all; white-space: normal; font-size: .85em; line-height: 1.5; }
