/* Shared frame of every interactive project: the top bar and the signature at the bottom.
   Rule: JAKUB/_design/guides/07-interactive-projects.md. How to connect: README-project-shell.md.
   One source. A project does not copy or restyle anything below; it only reads --jg-pbar-h. */

:root{--jg-pbar-h:4.25rem}
@media (max-width:52rem){:root{--jg-pbar-h:6.25rem}}

/* ---------- top bar ---------- */
.jg-pbar{
  --jg-red:#DB3C2A;--jg-cta:#c4331f;--jg-ink:#fff;--jg-mute:#a1a1aa;
  position:sticky;top:0;left:0;z-index:1000;width:100%;height:var(--jg-pbar-h);box-sizing:border-box;margin:0;
  display:flex;align-items:stretch;gap:1rem;padding:0 0 0 1.5rem;
  background:#131313;color:var(--jg-ink);
  font-family:"Space Mono",ui-monospace,monospace;font-size:11px;line-height:1;letter-spacing:.15em;text-transform:uppercase;
  -webkit-font-smoothing:antialiased
}
.jg-pbar *{box-sizing:border-box}
.jg-pbar a{color:inherit;text-decoration:none}
.jg-pbar a:focus-visible,.jg-pbar summary:focus-visible{outline:2px solid var(--jg-red);outline-offset:-2px}

.jg-pbar__brand{display:flex;align-items:center;min-width:0;overflow:hidden;white-space:nowrap;
  font-family:Inter,system-ui,sans-serif;font-weight:900;font-size:1.125rem;letter-spacing:-.05em;color:var(--jg-ink)}
.jg-pbar__brand a{color:var(--jg-ink)}
.jg-pbar__brand a:hover{color:var(--jg-red)}
.jg-pbar__brand i{font-style:normal;color:var(--jg-red);margin:0 .35rem}
.jg-pbar__title{overflow:hidden;text-overflow:ellipsis}

/* everything after the brand is pushed to the right */
.jg-pbar__right{display:flex;align-items:stretch;margin-left:auto;min-width:0}
.jg-pbar__secs{display:flex;align-items:stretch;min-width:0}
.jg-pbar__secs a,.jg-pbar__more summary{display:flex;align-items:center;padding:0 1.25rem;color:var(--jg-mute);white-space:nowrap;cursor:pointer;transition:color .1s,background-color .1s}
.jg-pbar__secs a:hover,.jg-pbar__more summary:hover{color:var(--jg-ink)}
/* The current tab uses the darker red of the support button: white on #DB3C2A is 4.4:1, under the
   4.5:1 that 11px text needs; on #c4331f it is 5.2:1. */
.jg-pbar__secs a[aria-current="page"]{background:var(--jg-cta);color:#fff}

.jg-pbar__more{position:relative;display:flex}
.jg-pbar__more summary{list-style:none}
.jg-pbar__more summary::-webkit-details-marker{display:none}
.jg-pbar__more summary::after{content:" ▾"}
.jg-pbar__more[open] summary{color:var(--jg-ink);background:#2a2a2a}
.jg-pbar__menu{position:absolute;top:100%;right:0;min-width:14rem;background:#2a2a2a;display:flex;flex-direction:column;padding:.5rem 0}
.jg-pbar__menu a{padding:.9rem 1.25rem}

.jg-pbar__lang{display:flex;align-items:center;padding:0 .9rem;color:var(--jg-mute)}
.jg-pbar__lang:hover{color:var(--jg-ink)}

.jg-pbar__cta{display:inline-flex;align-items:center;gap:.35em;align-self:center;min-height:44px;margin:0 1.5rem 0 .75rem;padding:0 12px;
  background:var(--jg-cta);color:#fff!important;font-size:12px;font-weight:700;letter-spacing:0;text-transform:none;white-space:nowrap;transition:background-color .1s}
.jg-pbar__cta:hover,.jg-pbar__cta:focus-visible{background:var(--jg-red)}

/* phone: row 1 brand + support, row 2 sections (scrolling sideways) + language, pushed right */
@media (max-width:52rem){
  .jg-pbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:3.5rem 2.75rem;gap:0;padding:0}
  .jg-pbar__brand{grid-area:1/1;padding-left:1rem;font-size:.95rem}
  .jg-pbar__brand i{margin:0 .3rem}
  .jg-pbar__right{display:contents}
  .jg-pbar__cta{grid-area:1/2;margin:0 1rem 0 .75rem;padding:0 10px;font-size:11px}
  .jg-pbar__cta-long{display:none}
  .jg-pbar__row2{grid-area:2/1/3/3;display:flex;align-items:stretch;min-width:0}
  .jg-pbar__secs{flex:1 1 auto;overflow-x:auto;scrollbar-width:none}
  .jg-pbar__secs::-webkit-scrollbar{display:none}
  .jg-pbar__secs>:first-child{margin-left:auto}
  .jg-pbar__secs a,.jg-pbar__more summary{padding:0 .9rem;letter-spacing:.08em}
  .jg-pbar__lang{padding:0 1rem}
}
@media (min-width:52.01rem){.jg-pbar__row2{display:contents}}
@media (max-width:23rem){.jg-pbar__brand{font-size:.85rem}.jg-pbar__cta{margin:0 .75rem 0 .5rem}}

/* ---------- signature ---------- */
.jg-sig{
  --jg-red:#DB3C2A;
  position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.5rem;margin:0;padding:1.25rem 1.5rem;
  background:#000;color:#a1a1aa;
  font-family:"Space Mono",ui-monospace,monospace;font-size:10px;line-height:1.4;letter-spacing:.15em;text-transform:uppercase;
  -webkit-font-smoothing:antialiased
}
.jg-sig::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--jg-red)}
.jg-sig a{color:#fff;text-decoration:none;transition:color .1s}
/* Each link is at least 24px tall, so wrapped rows stay apart enough to tap (WCAG 2.5.8). */
.jg-sig__links a{display:inline-flex;align-items:center;min-height:24px}
.jg-sig a:hover{color:var(--jg-red)}
.jg-sig a:focus-visible{outline:2px solid var(--jg-red);outline-offset:2px}
.jg-sig__rec{width:28px;height:28px;flex:none;display:block}
.jg-sig__wm{font-family:Inter,system-ui,sans-serif;font-weight:900;font-size:18px;line-height:1;letter-spacing:-.05em;margin-left:-.5rem}
.jg-sig__wm i{font-style:normal;color:var(--jg-red)}
.jg-sig__tag{flex:1 1 14rem;min-width:0}
.jg-sig__links{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem}
@media (max-width:40rem){.jg-sig__tag{flex-basis:100%;order:1}.jg-sig__links{order:2}}
