/* Keep the navigation and page tools together on small screens. */
.workspace{display:flex;flex-direction:column;min-height:100vh}
.workspace-header{display:contents}
.workspace-header>.topbar{margin-left:276px}
.workspace-main{flex:1;min-height:0}
.display-control{position:relative;display:inline-flex;align-items:center;flex-shrink:0}

@media(max-width:1250px){
  .workspace-header>.topbar{margin-left:246px}
}

@media(max-width:720px){
  .workspace-header{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"brand actions" "navigation navigation";
    align-items:center;
    gap:14px 8px;
    padding:14px 16px 12px;
    border-bottom:1px solid var(--line);
    background:var(--panel);
  }
  .workspace-header>.sidebar,.workspace-header>.topbar{display:contents}
  .workspace-header .topbar-context{display:none}
  .workspace-header .display-control{display:none}
  .workspace-header .wordmark{grid-area:brand;min-height:44px;margin:0;gap:6px;white-space:nowrap}
  .workspace-header .wordmark img{width:34px;height:34px}
  .workspace-header .brand-name{font-size:27px}
  .workspace-header .sidebar>nav{
    grid-area:navigation;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
    margin:0;
    padding:4px;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--bg);
  }
  .workspace-header .nav-item{
    justify-content:center;
    flex-direction:column;
    gap:5px;
    min-width:0;
    min-height:72px;
    margin:0;
    padding:9px 6px;
    border:1px solid transparent;
    border-radius:7px;
    color:var(--muted);
    font:500 max(var(--gdl-min-font-size,0px),12px)/1.4 var(--sans);
    white-space:normal;
    text-align:center;
    box-shadow:none;
  }
  .workspace-header .nav-item>svg{display:block;width:18px;height:18px}
  .workspace-header .nav-item:hover{background:var(--raised);color:var(--ink)}
  .workspace-header .nav-item.active{border-color:var(--line);background:var(--panel);color:var(--ink);box-shadow:inset 0 -2px var(--ochre)}
  .workspace-header .topbar-actions{grid-area:actions;flex-wrap:nowrap;gap:4px;margin:0}
  .workspace-header .restart-button,
  .workspace-header .contrast-toggle,
  .workspace-header .mobile-logout .logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:44px;
    height:44px;
    min-height:44px;
    padding:11px;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--panel);
    color:var(--muted);
  }
  .workspace-header .restart-button span{display:none}
  .workspace-header .restart-button svg,
  .workspace-header .mobile-logout svg{display:block;width:20px;height:20px;flex-shrink:0;stroke-linecap:round;stroke-linejoin:round}
  .workspace-header .private-tag{display:flex;gap:0}
  .workspace-header .mobile-logout{display:flex;margin:0}
  .workspace-header .restart-button:hover:enabled,
  .workspace-header .contrast-toggle:hover,
  .workspace-header .mobile-logout .logout:hover{background:var(--raised);color:var(--accent)}
}

@media(max-width:380px){
  .workspace-header .nav-item{padding:8px 4px}
}

/* Conseil : bouton Jouer / Pause du bandeau, doré comme les titres des cartes du Conseil. */
.workspace-header-play{display:flex;margin:0}
.workspace-header-menu-button.workspace-header-play-button{border-color:#9a7444;color:#ffce8d;letter-spacing:.5px}
.workspace-header-menu-button.workspace-header-play-button:hover,.workspace-header-menu-button.workspace-header-play-button:focus-visible{border-color:#b98a52;background:var(--tint);color:#ffdcad}
html[data-contrast=light] .workspace-header-menu-button.workspace-header-play-button{color:#8a5a1c;border-color:#b98a4e}
html[data-contrast=light] .workspace-header-menu-button.workspace-header-play-button:hover,html[data-contrast=light] .workspace-header-menu-button.workspace-header-play-button:focus-visible{color:#6f4511}
.workspace-mobile-play{display:none;margin:0}
@media(max-width:720px){
 html[data-gdl-game] [data-mobile-header] .workspace-mobile-play{display:flex}
 html[data-gdl-game] [data-mobile-header] .workspace-mobile-play-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid #9a7444;border-radius:var(--gui-button-radius,10px);background:var(--field);color:#ffce8d;cursor:pointer}
 html[data-gdl-game] [data-mobile-header] .workspace-mobile-play-button>svg{display:block;width:22px;height:22px;flex-shrink:0}
 html[data-gdl-game] [data-mobile-header] .workspace-mobile-play-button:is(:hover,:focus-visible){filter:brightness(1.1)}
 html[data-gdl-game][data-contrast=light] [data-mobile-header] .workspace-mobile-play-button{color:#8a5a1c;border-color:#b98a4e}
}
